]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Make the first three sections of the Supplementary tools in Additional.lyx on using...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871 Koma-Script
2872 \end_layout
2873
2874 \begin_layout Standard
2875 by 
2876 \noun on
2877 Bernd Rellermeyer
2878 \end_layout
2879
2880 \begin_layout Subsubsection
2881 Overview
2882 \end_layout
2883
2884 \begin_layout Standard
2885 The \SpecialChar LyX
2886  document classes 
2887 \emph on
2888 article (koma-script)
2889 \emph default
2890
2891 \emph on
2892 report (koma-script)
2893 \emph default
2894
2895 \emph on
2896 book
2897 \emph default
2898  
2899 \emph on
2900 (koma-script)
2901 \emph default
2902 , and 
2903 \emph on
2904 letter
2905 \emph default
2906  
2907 \emph on
2908 (koma-script)
2909 \emph default
2910  correspond to the \SpecialChar LaTeX
2911  document classes 
2912 \family typewriter
2913 scrartcl.cls
2914 \family default
2915
2916 \family typewriter
2917 scrreprt.cls
2918 \family default
2919
2920 \family typewriter
2921 scrbook.cls
2922 \family default
2923 , and 
2924 \family typewriter
2925 scrlettr.cls
2926 \family default
2927 , resp.
2928 \begin_inset space ~
2929 \end_inset
2930
2931 of the Koma-Script family.
2932  They are replacements for the standard document classes 
2933 \family typewriter
2934 article.cls
2935 \family default
2936
2937 \family typewriter
2938 report.cls
2939 \family default
2940
2941 \family typewriter
2942 book.cls
2943 \family default
2944  and 
2945 \family typewriter
2946 letter.cls
2947 \family default
2948 , resp., and fit better to European typography conventions in a number of
2949  points.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Standard character size is 11pt in 
2954 \emph on
2955 article (koma-script)
2956 \emph default
2957
2958 \emph on
2959 report (koma-script)
2960 \emph default
2961 , and 
2962 \emph on
2963 book (koma-script)
2964 \emph default
2965 , and 12pt in 
2966 \emph on
2967 letter (koma-script)
2968 \emph default
2969 .
2970 \end_layout
2971
2972 \begin_layout Itemize
2973 Headings, labels of the description environment, and a number of elements
2974  of the 
2975 \emph on
2976 letter (koma-script)
2977 \emph default
2978  document class are set in a bold sans serif font.
2979 \begin_inset Foot
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 There is a big difference between the bold sans serif old cm fonts and new
2984  ec fonts, especially in the appearance of headings.
2985  In comparison, the ec bold sans serif fonts look a bit thin.
2986  Here the \SpecialChar LaTeX
2987  package 
2988 \family typewriter
2989 cmsd.sty by
2990 \family default
2991  
2992 \shape smallcaps
2993 Walter Schmidt
2994 \shape default
2995  helps to produce the 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 usual
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  appearance when using the ec fonts.
3004 \end_layout
3005
3006 \end_inset
3007
3008  The numbering of chapter headings is made in the same way as the numbering
3009  of section headings, that is without the extra line 
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013 Chapter\SpecialChar ldots
3014
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018 .
3019  In addition, the appearance of the headings can be modified by using a
3020  number of options (in \SpecialChar LyX
3021  to be entered in the field 
3022 \family sans
3023 Extra
3024 \begin_inset space ~
3025 \end_inset
3026
3027 Options
3028 \family default
3029  of the dialog 
3030 \family sans
3031 Layout\SpecialChar menuseparator
3032 Document
3033 \family default
3034 ).
3035  
3036 \end_layout
3037
3038 \begin_layout Itemize
3039 The main means in the Koma-Script document classes to design the type area
3040  are the options 
3041 \family sans
3042 BCOR
3043 \family default
3044  and 
3045 \family sans
3046 DIV
3047 \family default
3048  (in \SpecialChar LyX
3049  to be entered in the extra class options field in the dialog 
3050 \family sans
3051 Document\SpecialChar menuseparator
3052 Settings
3053 \family default
3054 ).
3055  They make a clearer modification of page margins possible as do the options
3056  of the dialog 
3057 \family sans
3058 Document\SpecialChar menuseparator
3059 Settings
3060 \family default
3061 .
3062  
3063 \end_layout
3064
3065 \begin_layout Itemize
3066 The \SpecialChar LaTeX
3067  document classes of the Koma-Script family define a number of additional
3068  commands.
3069  Those part of it which makes sense in \SpecialChar LyX
3070  is implemented in corresponding
3071  paragraph types.
3072 \end_layout
3073
3074 \begin_layout Standard
3075 Detailed descriptions of the \SpecialChar LaTeX
3076  document classes of the Koma-Script family
3077  can be found in the Koma-Script documentation 
3078 \emph on
3079 scrguide
3080 \emph default
3081  (German) and 
3082 \emph on
3083 scrguien
3084 \emph default
3085  (English).
3086 \end_layout
3087
3088 \begin_layout Subsubsection
3089 article (koma-script), report (koma-script), and book (koma-script)
3090 \end_layout
3091
3092 \begin_layout Standard
3093 The document classes 
3094 \emph on
3095 article (koma-script)
3096 \emph default
3097
3098 \emph on
3099 report (koma-script)
3100 \emph default
3101 , and 
3102 \emph on
3103 book
3104 \emph default
3105  
3106 \emph on
3107 (koma-script)
3108 \emph default
3109  are implemented in the layout files 
3110 \family typewriter
3111 scrartcl.layout
3112 \family default
3113
3114 \family typewriter
3115 scrreprt.layout
3116 \family default
3117 , and 
3118 \family typewriter
3119 scrbook.layout
3120 \family default
3121 , resp.
3122  They contain all the paragraph types of the corresponding standard document
3123  classes 
3124 \emph on
3125 article
3126 \emph default
3127
3128 \emph on
3129 report
3130 \emph default
3131 , and 
3132 \emph on
3133 book
3134 \emph default
3135 , resp., partly modified, with the exception of the \SpecialChar LyX
3136  specific 
3137 \family sans
3138 List
3139 \family default
3140 -type, which is replaced by the new 
3141 \family sans
3142 Labeling
3143 \family default
3144 -type having the same functionality.
3145  Beside the 
3146 \family sans
3147 Labeling
3148 \family default
3149 -Type there is a number of new paragraph types added.
3150  They are 
3151 \emph on
3152 not
3153 \emph default
3154  part of 
3155 \emph on
3156 letter (koma-script)
3157 \emph default
3158 .
3159 \end_layout
3160
3161 \begin_layout Itemize
3162
3163 \family sans
3164 Addpart, Addchap
3165 \family default
3166
3167 \family sans
3168 Addsec
3169 \family default
3170 : are equivalents to 
3171 \family sans
3172 Part*, Chapter*
3173 \family default
3174  and 
3175 \family sans
3176 Section*
3177 \family default
3178 , resp., additionally inserting an entry in the table of contents.
3179  
3180 \family sans
3181 Addpart
3182 \family default
3183  and 
3184 \family sans
3185 Addchap
3186 \family default
3187  are not contained in 
3188 \emph on
3189 article (koma-script)
3190 \emph default
3191 .
3192 \end_layout
3193
3194 \begin_layout Itemize
3195
3196 \family sans
3197 Addchap*
3198 \family default
3199
3200 \family sans
3201 Addsec*
3202 \family default
3203 : behave exactly as 
3204 \family sans
3205 Addchap
3206 \family default
3207  and 
3208 \family sans
3209 Addsec
3210 \family default
3211 , resp., additionally clearing running heads.
3212  
3213 \family sans
3214 Addchap*
3215 \family default
3216  is not contained in 
3217 \emph on
3218 article (koma-script)
3219 \emph default
3220 .
3221 \begin_inset Foot
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 There is also an 
3226 \family typewriter
3227
3228 \backslash
3229 addpart*
3230 \family default
3231  command in 
3232 \emph on
3233 book (koma-script)
3234 \emph default
3235  and in 
3236 \emph on
3237 report (koma-script)
3238 \emph default
3239 , but since this is identical to 
3240 \family sans
3241 Part*
3242 \family default
3243 , is has not been implemented in \SpecialChar LyX
3244 .
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Itemize
3253
3254 \family sans
3255 Minisec
3256 \family default
3257 : generates a heading directly above the following paragraph in the standard
3258  character size without affecting the structure of the document.
3259 \end_layout
3260
3261 \begin_layout Itemize
3262
3263 \family sans
3264 Captionabove
3265 \family default
3266  and 
3267 \family sans
3268 Captionbelow
3269 \family default
3270  are special captions which respect the different space settings needed
3271  for captions placed above or below an element (if you follow strict typographic
3272  rules, you might want to place table captions always above the table).
3273  You can also use the class option 
3274 \family typewriter
3275 tablecaptionsabove
3276 \family default
3277 , which will switch 
3278 \family sans
3279 caption
3280 \family default
3281  to 
3282 \family sans
3283 captionabove
3284 \family default
3285  for tables and 
3286 \family sans
3287 captionbelow
3288 \family default
3289  for figures.
3290  You need at least Koma-Script version 2.8q to use this.
3291 \end_layout
3292
3293 \begin_layout Itemize
3294
3295 \family sans
3296 Dictum
3297 \family default
3298 : can be used to set a bonmot, e.
3299 \begin_inset space \thinspace{}
3300 \end_inset
3301
3302 g.
3303 \begin_inset space \space{}
3304 \end_inset
3305
3306 at the beginning of a chapter.
3307  If you use the optional argument (
3308 \family sans
3309 Insert\SpecialChar menuseparator
3310 Dictum
3311 \begin_inset space ~
3312 \end_inset
3313
3314 Author
3315 \family default
3316 ), you can insert the dictum's author there.
3317  Dictum and author are separated by a line.
3318  You need at least Koma-Script version 2.8q to use this.
3319  
3320 \family sans
3321 Dictum
3322 \family default
3323  is not contained in 
3324 \emph on
3325 article (koma-script)
3326 \emph default
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 The following types, together with the standard types 
3332 \family sans
3333 Title
3334 \family default
3335
3336 \family sans
3337 Author
3338 \family default
3339 , and 
3340 \family sans
3341 Date
3342 \family default
3343 , form the title area of the document.
3344  They must be entered ahead of the first 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 ordinary
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  paragraph.
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 The corresponding \SpecialChar LaTeX
3358  commands must appear before the 
3359 \family typewriter
3360
3361 \backslash
3362 maketitle
3363 \family default
3364  command.
3365 \end_layout
3366
3367 \end_inset
3368
3369  When such a type is used more than once, the latter usage overwrites the
3370  former one, that means, for every type only the latest usage is valid.
3371  The order of the different types however has, like 
3372 \family sans
3373 Title
3374 \family default
3375
3376 \family sans
3377 Author
3378 \family default
3379 , and 
3380 \family sans
3381 Date
3382 \family default
3383 , no effect on the appearance of the produced document.
3384 \end_layout
3385
3386 \begin_layout Itemize
3387
3388 \family sans
3389 Subject
3390 \family default
3391 : produces a centered paragraph above the ordinary title (
3392 \family sans
3393 Title
3394 \family default
3395
3396 \family sans
3397 Author
3398 \family default
3399
3400 \family sans
3401 Date
3402 \family default
3403 ) for the subject of the document.
3404 \end_layout
3405
3406 \begin_layout Itemize
3407
3408 \family sans
3409 Publishers
3410 \family default
3411 : produces a centered paragraph below the ordinary title (
3412 \family sans
3413 Title
3414 \family default
3415
3416 \family sans
3417 Author
3418 \family default
3419
3420 \family sans
3421 Date
3422 \family default
3423 ) for the publishers' name.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family sans
3429 Dedication
3430 \family default
3431 : in 
3432 \emph on
3433 report (koma-script)
3434 \emph default
3435  and 
3436 \emph on
3437 book (koma-script)
3438 \emph default
3439  produces a centered paragraph on its own page behind the title page, or
3440  in 
3441 \emph on
3442 article (koma-script)
3443 \emph default
3444  produces a centered paragraph below the ordinary title (
3445 \family sans
3446 Title
3447 \family default
3448
3449 \family sans
3450 Author
3451 \family default
3452
3453 \family sans
3454 Date
3455 \family default
3456
3457 \family sans
3458 Publishers
3459 \family default
3460 ) for a dedication.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464
3465 \family sans
3466 Titlehead
3467 \family default
3468 : produces a left aligned paragraph above the ordinary title (
3469 \family sans
3470 Title
3471 \family default
3472
3473 \family sans
3474 Author
3475 \family default
3476
3477 \family sans
3478 Date
3479 \family default
3480
3481 \family sans
3482 Subject
3483 \family default
3484 ) for a document`s head.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Uppertitleback
3491 \family default
3492 : produces in a double-sided print in 
3493 \emph on
3494 report (koma-script)
3495 \emph default
3496  and 
3497 \emph on
3498 book (koma-script)
3499 \emph default
3500  a left-aligned paragraph at the top of the title page`s back or has no
3501  effect in a single-sided print or in 
3502 \emph on
3503 article (koma-script)
3504 \emph default
3505 .
3506 \end_layout
3507
3508 \begin_layout Itemize
3509
3510 \family sans
3511 Lowertitleback
3512 \family default
3513 : produces in a double-sided print in 
3514 \emph on
3515 report (koma-script)
3516 \emph default
3517  and 
3518 \emph on
3519 book (koma-script)
3520 \emph default
3521  a left-aligned paragraph at the bottom of the title page`s back or has
3522  no effect in a single-sided print or in 
3523 \emph on
3524 article (koma-script)
3525 \emph default
3526 .
3527 \end_layout
3528
3529 \begin_layout Itemize
3530
3531 \family sans
3532 Extratitle
3533 \family default
3534 : produces a special 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 dirty
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  page ahead of the actual document containing a paragraph without special
3543  formatting.
3544 \end_layout
3545
3546 \begin_layout Standard
3547 The layout files for the document classes 
3548 \emph on
3549 article (koma-script)
3550 \emph default
3551
3552 \emph on
3553 report (koma-script)
3554 \emph default
3555 , and 
3556 \emph on
3557 book (koma-script)
3558 \emph default
3559  do include the file 
3560 \family typewriter
3561 scrmacros.inc
3562 \family default
3563 .
3564  This is thought of as a place to define your own types.
3565  Copy scrmacros
3566 \family typewriter
3567 .inc
3568 \family default
3569  in your personal layout directory and edit the file!
3570 \end_layout
3571
3572 \begin_layout Subsubsection
3573 letter (koma-script)
3574 \end_layout
3575
3576 \begin_layout Description
3577 Note: This section discusses the obsolete 
3578 \family sans
3579 KOMA-Script-Letter (v.
3580 \begin_inset space ~
3581 \end_inset
3582
3583 1)
3584 \family default
3585 , which is not even included anymore in recent KOMA releases.
3586  Please refer to the next section for the current KOMA-Script-Letter class
3587  (v.
3588 \begin_inset space ~
3589 \end_inset
3590
3591 2)!
3592 \end_layout
3593
3594 \begin_layout Standard
3595 \noindent
3596 The document class 
3597 \emph on
3598 letter (koma-script)
3599 \emph default
3600  is implemented in the layout file 
3601 \family typewriter
3602 scrlettr.layout
3603 \family default
3604 .
3605  It contains all the paragraph types of the corresponding standard document
3606  class 
3607 \emph on
3608 letter
3609 \emph default
3610 , partly modified, with the exception of the \SpecialChar LyX
3611  specific types 
3612 \family sans
3613 \SpecialChar LyX
3614 -Code
3615 \family default
3616  and 
3617 \family sans
3618 Comment
3619 \family default
3620  and the 
3621 \family sans
3622 List
3623 \family default
3624  type, which is replaced by the new 
3625 \family sans
3626 Labeling
3627 \family default
3628  type.
3629  In addition, it contains, in contrast to the standard document class, the
3630  standard types 
3631 \family sans
3632 \SpecialChar LaTeX
3633
3634 \family default
3635
3636 \family sans
3637 Quotation
3638 \family default
3639
3640 \family sans
3641 Quote
3642 \family default
3643 , and 
3644 \family sans
3645 Verse
3646 \family default
3647 .
3648  Furthermore, there are a number of new letter specific types.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 The appearance of the letter produced by this document class can be controlled
3653  by a number of \SpecialChar LaTeX
3654  commands, which you can put in the \SpecialChar LaTeX
3655  preamble.
3656 \begin_inset Foot
3657 status collapsed
3658
3659 \begin_layout Plain Layout
3660 For example, the standard appearance of the letter`s heading, consisting
3661  of name and address, is quite self-willed.
3662  An 
3663 \begin_inset Quotes eld
3664 \end_inset
3665
3666 ordinary
3667 \begin_inset Quotes erd
3668 \end_inset
3669
3670  heading is produced by the following \SpecialChar LaTeX
3671  commands in the preamble:
3672 \end_layout
3673
3674 \begin_layout LyX-Code
3675
3676 \backslash
3677 firsthead{
3678 \backslash
3679 parbox[b]{
3680 \backslash
3681 textwidth}
3682 \end_layout
3683
3684 \begin_layout LyX-Code
3685   {
3686 \backslash
3687 ignorespaces 
3688 \backslash
3689 fromname
3690 \backslash
3691
3692 \backslash
3693  
3694 \backslash
3695 ignorespaces 
3696 \backslash
3697 fromaddress}} 
3698 \end_layout
3699
3700 \begin_layout LyX-Code
3701
3702 \backslash
3703 nexthead{
3704 \backslash
3705 parbox[b]{
3706 \backslash
3707 textwidth}
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711   {
3712 \backslash
3713 ignorespaces 
3714 \backslash
3715 fromname 
3716 \backslash
3717 hfill 
3718 \backslash
3719 ignorespaces 
3720 \backslash
3721 pagename
3722 \backslash
3723  
3724 \backslash
3725 thepage}}
3726 \end_layout
3727
3728 \end_inset
3729
3730  A detailed German description of such \SpecialChar LaTeX
3731  commands can be found in the Koma-Script
3732  documentation 
3733 \emph on
3734 scrguide
3735 \emph default
3736 .
3737  With it, the letter's author can produce his personal letter layout.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The types 
3742 \family sans
3743 Letter
3744 \family default
3745  and 
3746 \family sans
3747 Opening
3748 \family default
3749  define the beginning of the letter and must be used in every letter.
3750  To emphasize them in the \SpecialChar LyX
3751  document class, they are marked with the letter
3752  
3753 \shape italic
3754 L
3755 \shape default
3756  or 
3757 \shape italic
3758 O
3759 \shape default
3760 , resp.
3761 \begin_inset space ~
3762 \end_inset
3763
3764 in the left margin.
3765  It is possible to write any number of letters in one file.
3766  An 
3767 \family sans
3768 Opening
3769 \family default
3770  type produces a new letter using the same addressee and a 
3771 \family sans
3772 Letter
3773 \family default
3774  type produces a new addressee.
3775  The types 
3776 \family sans
3777 Closing
3778 \family default
3779
3780 \family sans
3781 PS
3782 \family default
3783
3784 \family sans
3785 CC
3786 \family default
3787 , and 
3788 \family sans
3789 Encl
3790 \family default
3791  are ordinary paragraph types and can also be used several times in one
3792  and the same letter.
3793 \end_layout
3794
3795 \begin_layout Itemize
3796
3797 \family sans
3798 Letter
3799 \family default
3800 : produces a paragraph for the addressee and implicitly defines the beginning
3801  of the letter.
3802 \end_layout
3803
3804 \begin_layout Itemize
3805
3806 \family sans
3807 Opening
3808 \family default
3809 : produces a paragraph for the form of address and implicitly produces a
3810  new letter.
3811 \end_layout
3812
3813 \begin_layout Itemize
3814
3815 \family sans
3816 Closing
3817 \family default
3818 : produces a paragraph for a close.
3819 \end_layout
3820
3821 \begin_layout Itemize
3822
3823 \family sans
3824 PS
3825 \family default
3826 : produces a paragraph for a postscript.
3827 \end_layout
3828
3829 \begin_layout Itemize
3830
3831 \family sans
3832 CC
3833 \family default
3834 : produces a paragraph for a distribution list.
3835 \end_layout
3836
3837 \begin_layout Itemize
3838
3839 \family sans
3840 Encl
3841 \family default
3842 : produces a paragraph for enclosures.
3843 \end_layout
3844
3845 \begin_layout Standard
3846 The types 
3847 \family sans
3848 Name
3849 \family default
3850
3851 \family sans
3852 Signature
3853 \family default
3854
3855 \family sans
3856 Address
3857 \family default
3858
3859 \family sans
3860 Telephone
3861 \family default
3862
3863 \family sans
3864 Place
3865 \family default
3866
3867 \family sans
3868 Backaddress
3869 \family default
3870
3871 \family sans
3872 Specialmail
3873 \family default
3874
3875 \family sans
3876 Location
3877 \family default
3878
3879 \family sans
3880 Title
3881 \family default
3882 , and 
3883 \family sans
3884 Subject
3885 \family default
3886  are input types provided with a label to enter information, which will
3887  be processed by the document class.
3888 \begin_inset Foot
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 It could be seen as a matter of inconsequence, that the types 
3893 \family sans
3894 Letter
3895 \family default
3896  and 
3897 \family sans
3898 Opening
3899 \family default
3900  described above are not such input types as well.
3901  Because of the special meaning of those types, however, I have implemented
3902  them as ordinary paragraph types with a one letter mark in the left margin.
3903  Moreover, it would affect my feeling of symmetry, if the 
3904 \family sans
3905 Opening
3906 \family default
3907  type and the 
3908 \family sans
3909 Closing
3910 \family default
3911  type had such a serious different appearance.
3912 \end_layout
3913
3914 \end_inset
3915
3916  The types must be used ahead of the corresponding 
3917 \family sans
3918 Opening
3919 \family default
3920  type.
3921 \end_layout
3922
3923 \begin_layout Standard
3924 An implementation of these types in a WYSIWYG fashion does not seem to make
3925  sense, because the real appearance of the produced letter does not only
3926  depend on the usage of the particular type, but also on other factors.
3927  For example, a signature entered in the 
3928 \family sans
3929 Signature
3930 \family default
3931  type will in the standard behavior appear in the produced letter only,
3932  when in the same letter also a 
3933 \family sans
3934 Closing
3935 \family default
3936  type is used.
3937  The entered value of the 
3938 \family sans
3939 Telephone
3940 \family default
3941  type will in the standard behavior not appear in the produced letter at
3942  all.
3943  The possibility to design the letter`s heading freely is already indicated
3944  in a footnote above.
3945 \end_layout
3946
3947 \begin_layout Standard
3948 The input types can also be used as empty paragraphs.
3949  This makes sense e.
3950 \begin_inset space \thinspace{}
3951 \end_inset
3952
3953 g.
3954 \begin_inset space \space{}
3955 \end_inset
3956
3957 for the 
3958 \family sans
3959 Signature
3960 \family default
3961  type.
3962  If the 
3963 \family sans
3964 Signature
3965 \family default
3966  type is not used at all, in the standard behavior the value of the 
3967 \family sans
3968 Name
3969 \family default
3970  type is used as signature, whereas if an empty 
3971 \family sans
3972 Signature
3973 \family default
3974  type is used, no signature value is defined.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 By using the input types it is possible to write a letter template, containing
3979  filled input types with your personal dates (name, address, etc.) and empty
3980  input types for other dates you want to enter.
3981 \end_layout
3982
3983 \begin_layout Itemize
3984
3985 \family sans
3986 Name
3987 \family default
3988 : sender's name, in the standard behavior appears as a centered paragraph
3989  in small caps in the letter`s heading.
3990 \end_layout
3991
3992 \begin_layout Itemize
3993
3994 \family sans
3995 Signature
3996 \family default
3997 : sender's signature, in the standard behavior appears below the 
3998 \family sans
3999 Closing
4000 \family default
4001  type.
4002  If no 
4003 \family sans
4004 Signature
4005 \family default
4006  type is used, the value of the 
4007 \family sans
4008 Name
4009 \family default
4010  type appears instead.
4011 \end_layout
4012
4013 \begin_layout Itemize
4014
4015 \family sans
4016 Address
4017 \family default
4018 : sender's address, in the standard behavior appears in a centered paragraph
4019  in the letter`s heading below the sender's name.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Telephone
4026 \family default
4027 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4028  variable
4029  
4030 \family typewriter
4031
4032 \backslash
4033 telephonenum
4034 \family default
4035 .
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Place
4042 \family default
4043 : place of the letter`s making.
4044 \end_layout
4045
4046 \begin_layout Itemize
4047
4048 \family sans
4049 Date
4050 \family default
4051 : date of the letter`s making.
4052  
4053 \family sans
4054 Place
4055 \family default
4056  and 
4057 \family sans
4058 Date
4059 \family default
4060 , in the standard behavior, produce the place and the date in a right-aligned
4061  line below the addressee's field.
4062  If an empty 
4063 \family sans
4064 Date
4065 \family default
4066  type is used, neither place nor date appear, independent of the value of
4067  the 
4068 \family sans
4069 Place
4070 \family default
4071  type.
4072  If no 
4073 \family sans
4074 Date
4075 \family default
4076  type is used, the date of the letter `s production is used.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Backaddress
4083 \family default
4084 : sender`s back address, in the standard behavior appears above the addressee's
4085  field in a small sans serif font.
4086 \end_layout
4087
4088 \begin_layout Itemize
4089
4090 \family sans
4091 Specialmail
4092 \family default
4093 : special mail information, in the standard behavior appears underlined
4094  above the addressee's field below the back address.
4095 \end_layout
4096
4097 \begin_layout Itemize
4098
4099 \family sans
4100 Location
4101 \family default
4102 : additional information, in the standard behavior appears on right side
4103  below the addressee`s field.
4104 \end_layout
4105
4106 \begin_layout Itemize
4107
4108 \family sans
4109 Title
4110 \family default
4111 : the letter's title, in the standard behavior appears in a big, bold, sans
4112  serif font above the subject.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \family sans
4118 Subject
4119 \family default
4120 : the letter's subject, in the standard behavior appears in a bold font
4121  above the 
4122 \family sans
4123 Opening
4124 \family default
4125  paragraph.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 The types 
4130 \family sans
4131 Yourref
4132 \family default
4133
4134 \family sans
4135 Yourmail
4136 \family default
4137
4138 \family sans
4139 Myref
4140 \family default
4141
4142 \family sans
4143 Customer
4144 \family default
4145 , and 
4146 \family sans
4147 Invoice
4148 \family default
4149  produce a business letter like line above the 
4150 \family sans
4151 Title
4152 \family default
4153  line containing the fields 
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Your ref.
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Your letter of
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Our ref.
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Customer no.
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185
4186 \begin_inset Quotes eld
4187 \end_inset
4188
4189 Invoice no.
4190 \begin_inset Quotes erd
4191 \end_inset
4192
4193 , and 
4194 \begin_inset Quotes eld
4195 \end_inset
4196
4197 Date
4198 \begin_inset Quotes erd
4199 \end_inset
4200
4201 .
4202  For the date field, the value of the 
4203 \family sans
4204 Date
4205 \family default
4206  type is used.
4207  If one of these 
4208 \begin_inset Quotes eld
4209 \end_inset
4210
4211 business letter types
4212 \begin_inset Quotes erd
4213 \end_inset
4214
4215  is used, the value of the 
4216 \family sans
4217 Place
4218 \family default
4219  type however does not appear, but only the \SpecialChar LaTeX
4220  variable 
4221 \family typewriter
4222
4223 \backslash
4224 fromplace
4225 \family default
4226  is set.
4227  The ordinary output of place and date in a right-aligned line below the
4228  addressee`s field is suppressed.
4229  The types are implemented as input types provided with a label and must
4230  be used ahead of the corresponding 
4231 \family sans
4232 Opening
4233 \family default
4234  type.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Yourref
4241 \family default
4242 : Your ref.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Yourmail
4249 \family default
4250 : Your letter of.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Myref
4257 \family default
4258 : Our ref.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Customer
4265 \family default
4266 : Customer no.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Invoice
4273 \family default
4274 : Invoice no.
4275 \end_layout
4276
4277 \begin_layout Subsubsection
4278 The new letter class: letter (koma-script v.2)
4279 \end_layout
4280
4281 \begin_layout Standard
4282 by 
4283 \noun on
4284 Jürgen Spitzmüller
4285 \end_layout
4286
4287 \begin_layout Standard
4288 \begin_inset VSpace medskip
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Standard
4295 \noindent
4296 Koma-Script version 2.8 has introduced a new letter class 
4297 \family typewriter
4298 scrlttr2
4299 \family default
4300  which supersedes the now unsupported 
4301 \family typewriter
4302 scrlettr
4303 \family default
4304 .
4305  It has — on the \SpecialChar LaTeX
4306  side — a completely new interface and is not compatible
4307  with the old class.
4308  Therefore, \SpecialChar LyX
4309  supports both, though it is recommended you use the new class.
4310 \end_layout
4311
4312 \begin_layout Standard
4313 This class covers the same functionality as 
4314 \emph on
4315 letter (koma-script),
4316 \emph default
4317  and a few more.
4318  The basic items are 
4319 \family sans
4320 Address
4321 \family default
4322  (receiver's address, same as 
4323 \family sans
4324 Letter
4325 \family default
4326  in the old layout), 
4327 \family sans
4328 Opening
4329 \family default
4330 , and 
4331 \family sans
4332 Closing
4333 \family default
4334 .
4335  
4336 \family sans
4337 NextAddress
4338 \family default
4339  will start a new letter (i.
4340 \begin_inset space \thinspace{}
4341 \end_inset
4342
4343 e.
4344 \begin_inset space \space{}
4345 \end_inset
4346
4347 you can write several letters per document).
4348  New elements are sender's 
4349 \family sans
4350 E-Mail
4351 \family default
4352
4353 \family sans
4354 URL
4355 \family default
4356
4357 \family sans
4358 Fax
4359 \family default
4360
4361 \family sans
4362 Bank
4363 \family default
4364  and the possibility to use a 
4365 \family sans
4366 Logo
4367 \family default
4368  (via 
4369 \family sans
4370 Insert\SpecialChar menuseparator
4371 Graphics
4372 \family default
4373 ) in the header.
4374 \end_layout
4375
4376 \begin_layout Standard
4377 The biggest improvement is, though, that the letter's layout is configurable
4378  to meet almost any needs.
4379  This can be done via the preamble or with a special style file (Letter
4380  Class Option, extension 
4381 \family typewriter
4382 *.lco
4383 \family default
4384 ), that will be read in as a class option.
4385 \begin_inset Foot
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 The KOMA package comes with some default 
4390 \family typewriter
4391 *.lco
4392 \family default
4393  files.
4394  There is, for instance, a 
4395 \family typewriter
4396 DIN.lco
4397 \family default
4398  file that follows german typesetting rules, or a 
4399 \family typewriter
4400 KOMAold.lco
4401 \family default
4402  that provides the default layout of the old 
4403 \family typewriter
4404 scrlettr
4405 \family default
4406  class.
4407  The latter can be loaded with the class option 
4408 \family typewriter
4409 KOMAold
4410 \family default
4411 , inserted via the 
4412 \family sans
4413 Layout\SpecialChar menuseparator
4414 Document\SpecialChar menuseparator
4415 Extra Options
4416 \family default
4417  field.
4418 \end_layout
4419
4420 \end_inset
4421
4422  Have a look at the 
4423 \emph on
4424 koma-letter2
4425 \emph default
4426  template that is included in \SpecialChar LyX
4427  for examples.
4428  A detailed description is to be found in the Koma-Script documentation
4429  (
4430 \emph on
4431 scrguide
4432 \emph default
4433 ).
4434 \end_layout
4435
4436 \begin_layout Subsubsection
4437 Problems
4438 \end_layout
4439
4440 \begin_layout Standard
4441 Visualizing the Koma-Script document classes in \SpecialChar LyX
4442 , the \SpecialChar LyX
4443  internals cause some
4444  problems.
4445 \end_layout
4446
4447 \begin_layout Itemize
4448 The chapter number of a 
4449 \family sans
4450 Chapter
4451 \family default
4452  type appears on a line of its own above the chapter heading instead of
4453  appearing in the same line ahead of it.
4454  The cause for that is the \SpecialChar LyX
4455  internal behavior for the labeltype 
4456 \family sans
4457 Counter_Chapter
4458 \family default
4459  in the layout file.
4460 \end_layout
4461
4462 \begin_layout Itemize
4463 The headings of the types 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471  are only put in the 
4472 \begin_inset Quotes eld
4473 \end_inset
4474
4475 true
4476 \begin_inset Quotes erd
4477 \end_inset
4478
4479  \SpecialChar LaTeX
4480  table of contents, but not in the \SpecialChar LyX
4481  table of contents (
4482 \family sans
4483 Document\SpecialChar menuseparator
4484 Table
4485 \begin_inset space ~
4486 \end_inset
4487
4488 of
4489 \begin_inset space ~
4490 \end_inset
4491
4492 Contents
4493 \family default
4494 ).
4495 \end_layout
4496
4497 \begin_layout Itemize
4498 The paragraphs in a 
4499 \emph on
4500 letter
4501 \emph default
4502  document class appear in a skip separation mode, not indented.
4503  This is the standard behavior, no special \SpecialChar LaTeX
4504  commands are needed for that.
4505  But in the 
4506 \family sans
4507 Document\SpecialChar menuseparator
4508 Settings
4509 \family default
4510  dialog the corresponding radio button indicates 
4511 \family sans
4512 Indent
4513 \family default
4514 .
4515  A 
4516 \family sans
4517 Skip
4518 \family default
4519  value always has the effect that extra \SpecialChar LaTeX
4520  commands are inserted in the document
4521  to produce the gap, which is not what is wanted in this case.
4522 \end_layout
4523
4524 \begin_layout Subsection
4525
4526 \change_inserted 564990737 1670924924
4527 Polish M.
4528 \begin_inset space \thinspace{}
4529 \end_inset
4530
4531 W.
4532 \begin_inset space \space{}
4533 \end_inset
4534
4535 collection
4536 \change_deleted 564990737 1670924933
4537 Article (mwart), book (mwbk) and report (mwrep)
4538 \begin_inset Argument status
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542 The 
4543 \family typewriter
4544 mw
4545 \family default
4546  Classes
4547 \end_layout
4548
4549 \end_inset
4550
4551
4552 \change_unchanged
4553
4554 \end_layout
4555
4556 \begin_layout Standard
4557 by 
4558 \noun on
4559 Tomasz Luczak
4560 \end_layout
4561
4562 \begin_layout Standard
4563 The \SpecialChar LyX
4564  document classes 
4565 \emph on
4566 article (mwart)
4567 \emph default
4568
4569 \emph on
4570 report (mwrep)
4571 \emph default
4572  and 
4573 \emph on
4574 book
4575 \emph default
4576  
4577 \emph on
4578 (mwbk)
4579 \emph default
4580  correspond to the \SpecialChar LaTeX
4581  document classes 
4582 \family typewriter
4583 mwart.cls
4584 \family default
4585
4586 \family typewriter
4587 mwrep.cls
4588 \family default
4589  and 
4590 \family typewriter
4591 mwbk.cls
4592 \family default
4593 , resp.
4594  They are replacements for the standard document classes 
4595 \family typewriter
4596 article.cls
4597 \family default
4598
4599 \family typewriter
4600 report.cls
4601 \family default
4602  and 
4603 \family typewriter
4604 book.cls
4605 \family default
4606 , resp., and fit better to Polish typography conventions in a number of points.
4607  
4608 \end_layout
4609
4610 \begin_layout Standard
4611 Basic differences:
4612 \end_layout
4613
4614 \begin_layout Itemize
4615 Unnumbered titles (with star, e.
4616 \begin_inset space \thinspace{}
4617 \end_inset
4618
4619 g.
4620 \begin_inset space \space{}
4621 \end_inset
4622
4623
4624 \family sans
4625 Section*
4626 \family default
4627 ) are added into table of contents,
4628 \end_layout
4629
4630 \begin_layout Itemize
4631 Additional page styles:
4632 \end_layout
4633
4634 \begin_deeper
4635 \begin_layout Description
4636 uheadings header with separated lines,
4637 \end_layout
4638
4639 \begin_layout Description
4640 myheadings custom header, contents headers via commands: 
4641 \family typewriter
4642
4643 \backslash
4644 markright
4645 \family default
4646  and 
4647 \family typewriter
4648
4649 \backslash
4650 markboth
4651 \family default
4652 ,
4653 \end_layout
4654
4655 \begin_layout Description
4656 myuheadings custom header with separated lines,
4657 \end_layout
4658
4659 \begin_layout Description
4660 outer page number is placed on outer side of page
4661 \end_layout
4662
4663 \end_deeper
4664 \begin_layout Itemize
4665 Options 
4666 \end_layout
4667
4668 \begin_deeper
4669 \begin_layout Description
4670 rmheadings serif titles — default,
4671 \end_layout
4672
4673 \begin_layout Description
4674 sfheadings sansserif titles,
4675 \end_layout
4676
4677 \begin_layout Description
4678 authortitle on title page first placed is author next title — default,
4679 \end_layout
4680
4681 \begin_layout Description
4682 titleauthor on title page first placed is title next author,
4683 \end_layout
4684
4685 \begin_layout Description
4686 withmarginpar reserve place on page for margins.
4687 \end_layout
4688
4689 \end_deeper
4690 \begin_layout Section
4691
4692 \change_inserted 564990737 1670439534
4693 Articles
4694 \end_layout
4695
4696 \begin_layout Standard
4697
4698 \change_inserted 564990737 1670794710
4699 See also the document classes in the Collections (section
4700 \begin_inset space ~
4701 \end_inset
4702
4703
4704 \begin_inset CommandInset ref
4705 LatexCommand ref
4706 reference "sec:Collections"
4707
4708 \end_inset
4709
4710 ).
4711 \end_layout
4712
4713 \begin_layout Subsection
4714
4715 \change_inserted 564990737 1670794716
4716
4717 \lang american
4718 A&A Paper
4719 \end_layout
4720
4721 \begin_layout Standard
4722
4723 \change_inserted 564990737 1670794716
4724
4725 \lang american
4726 Original by 
4727 \noun on
4728 Peter Sütterlin
4729 \noun default
4730 ; updated by the \SpecialChar LyX
4731  Team
4732 \end_layout
4733
4734 \begin_layout Subsubsection
4735
4736 \change_inserted 564990737 1670794716
4737
4738 \lang american
4739 Introduction
4740 \end_layout
4741
4742 \begin_layout Standard
4743
4744 \change_inserted 564990737 1670794716
4745
4746 \lang american
4747 This section describes how \SpecialChar LyX
4748  can be used to write articles for submission
4749  to the scientific journal 
4750 \emph on
4751 Astronomy and Astrophysics
4752 \emph default
4753  (
4754 \begin_inset CommandInset href
4755 LatexCommand href
4756 name "aa-package"
4757 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4758 literal "false"
4759
4760 \end_inset
4761
4762 ) using Version 9.1 of the document class 
4763 \family typewriter
4764 aa.cls
4765 \family default
4766 ; information about it is available at 
4767 \begin_inset Flex URL
4768 status collapsed
4769
4770 \begin_layout Plain Layout
4771
4772 \change_inserted 564990737 1670794716
4773
4774 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4775 \change_unchanged
4776
4777 \end_layout
4778
4779 \end_inset
4780
4781 .
4782 \end_layout
4783
4784 \begin_layout Standard
4785
4786 \change_inserted 564990737 1670794716
4787
4788 \lang american
4789 A manual comes together with the package and should be consulted before
4790  installing this document class as described in the 
4791 \emph on
4792 Installing New Document Classe
4793 \emph default
4794 s section of the 
4795 \emph on
4796 Customization
4797 \emph default
4798  manual.
4799  
4800 \end_layout
4801
4802 \begin_layout Standard
4803
4804 \change_inserted 564990737 1670794716
4805
4806 \lang american
4807 \begin_inset Note Greyedout
4808 status open
4809
4810 \begin_layout Plain Layout
4811
4812 \change_inserted 564990737 1670794716
4813
4814 \lang american
4815 Please note that the publisher of the journal was changed from Springer
4816  to EDP Sciences starting January 1, 2001.
4817  That change also involved some slight changes to the style files, namely
4818  the removal of the thesaurus command.
4819  If you have an older version installed, please upgrade.
4820  For information about compatibility with the old (version 4) layout, please
4821  refer to the comments in 
4822 \family typewriter
4823 \SpecialChar LyX
4824 Dir/layouts/aapaper.layout
4825 \family default
4826 .
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \end_layout
4833
4834 \begin_layout Subsubsection
4835
4836 \change_inserted 564990737 1670794716
4837
4838 \lang american
4839 Getting started
4840 \end_layout
4841
4842 \begin_layout Standard
4843
4844 \change_inserted 564990737 1670794716
4845
4846 \lang american
4847 It is recommended you start from the template 
4848 \emph on
4849 aa.lyx
4850 \emph default
4851  in the menu 
4852 \family sans
4853 \bar under
4854 F
4855 \bar default
4856 ile\SpecialChar menuseparator
4857 New
4858 \begin_inset space ~
4859 \end_inset
4860
4861 fro
4862 \bar under
4863 m
4864 \bar default
4865
4866 \begin_inset space ~
4867 \end_inset
4868
4869 Template
4870 \family default
4871 .
4872  If you are not using the template, note the following settings:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876
4877 \change_inserted 564990737 1670794716
4878
4879 \lang american
4880 Select 
4881 \family sans
4882 article (A&A)
4883 \family default
4884  in the 
4885 \family sans
4886 \bar under
4887 D
4888 \bar default
4889 ocument\SpecialChar menuseparator
4890
4891 \bar under
4892 S
4893 \bar default
4894 ettings\SpecialChar menuseparator
4895 Document
4896 \begin_inset space ~
4897 \end_inset
4898
4899 Class
4900 \family default
4901  dialog (OK, that one was obvious).
4902 \end_layout
4903
4904 \begin_layout Itemize
4905
4906 \change_inserted 564990737 1670794716
4907
4908 \lang american
4909 Don't change the 
4910 \family sans
4911 Headings
4912 \begin_inset space ~
4913 \end_inset
4914
4915
4916 \bar under
4917 s
4918 \bar default
4919 tyle
4920 \family default
4921  in the 
4922 \family sans
4923 Page
4924 \begin_inset space ~
4925 \end_inset
4926
4927 Layout
4928 \family default
4929  dialog: leave it set to 
4930 \family sans
4931 Default
4932 \family default
4933 .
4934  The whole layout is done by the macros, you shouldn't change anything.
4935 \end_layout
4936
4937 \begin_layout Subsubsection
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \lang american
4942 The header block
4943 \end_layout
4944
4945 \begin_layout Standard
4946
4947 \change_inserted 564990737 1670794716
4948
4949 \lang american
4950 First thing to enter is the header information.
4951  It consists of five entries, of which one is optional.
4952  They are
4953 \end_layout
4954
4955 \begin_layout Itemize
4956
4957 \change_inserted 564990737 1670794716
4958
4959 \family sans
4960 \lang american
4961 Title
4962 \family default
4963 : [required] 
4964 \end_layout
4965
4966 \begin_layout Itemize
4967
4968 \change_inserted 564990737 1670794716
4969
4970 \family sans
4971 \lang american
4972 Subtitle
4973 \family default
4974 : [optional] 
4975 \end_layout
4976
4977 \begin_layout Itemize
4978
4979 \change_inserted 564990737 1670794716
4980
4981 \family sans
4982 \lang american
4983 Author
4984 \family default
4985 : [required]
4986 \end_layout
4987
4988 \begin_layout Itemize
4989
4990 \change_inserted 564990737 1670794716
4991
4992 \family typewriter
4993 \lang american
4994 Institute
4995 \family default
4996 : [required]
4997 \end_layout
4998
4999 \begin_layout Itemize
5000
5001 \change_inserted 564990737 1670794716
5002
5003 \family sans
5004 \lang american
5005 Date
5006 \family default
5007 : [required].
5008  Suggested format is 
5009 \family typewriter
5010 Received: <date>; Accepted <date> 
5011 \end_layout
5012
5013 \begin_layout Standard
5014
5015 \change_inserted 564990737 1670794716
5016
5017 \lang american
5018 Although the order of the single header entries doesn't matter it is advised
5019  to keep the above sequence, just to get the best optics and meets the layout
5020  of the real document.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_inserted 564990737 1670794716
5026
5027 \lang american
5028 If you want to place footnotes in the header block, e.
5029 \begin_inset space \thinspace{}
5030 \end_inset
5031
5032 g.
5033 \begin_inset space \space{}
5034 \end_inset
5035
5036 to state your present address, just use the standard footnote via the menu
5037  
5038 \family sans
5039 \bar under
5040 I
5041 \bar default
5042 nsert\SpecialChar menuseparator
5043
5044 \bar under
5045 F
5046 \bar default
5047 ootnote.
5048
5049 \family default
5050  \SpecialChar LyX
5051  will automagically use the term 
5052 \family typewriter
5053
5054 \backslash
5055 thanks{}
5056 \family default
5057  in that case.
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5066  commands that
5067  have no counterpart in \SpecialChar LyX
5068 :
5069 \end_layout
5070
5071 \begin_layout Itemize
5072
5073 \change_inserted 564990737 1670794716
5074
5075 \family typewriter
5076 \lang american
5077
5078 \backslash
5079 and
5080 \family default
5081  to separate different names for more than one author and institute, respectivel
5082 y.
5083 \end_layout
5084
5085 \begin_layout Itemize
5086
5087 \change_inserted 564990737 1670794716
5088
5089 \family typewriter
5090 \lang american
5091
5092 \backslash
5093 inst{<nr>}
5094 \family default
5095  to mark corresponding author/institute pairs.
5096  The institutes are numbered sequentially as they appear in the 
5097 \family sans
5098 Institute
5099 \family default
5100  field, so you have to put a marker to each author.
5101 \end_layout
5102
5103 \begin_layout Itemize
5104
5105 \change_inserted 564990737 1670794716
5106
5107 \family typewriter
5108 \lang american
5109
5110 \backslash
5111 email{address}
5112 \family default
5113  to supply an email address for fast contact.
5114 \end_layout
5115
5116 \begin_layout Standard
5117
5118 \change_inserted 564990737 1670794716
5119
5120 \lang american
5121 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5122  code in \SpecialChar LyX
5123 .
5124  See the examples in the template and in the file 
5125 \emph on
5126 aa_sample.lyx
5127 \emph default
5128  in the 
5129 \family sans
5130 Examples
5131 \family default
5132  directory.
5133  
5134 \end_layout
5135
5136 \begin_layout Subsubsection
5137
5138 \change_inserted 564990737 1670794716
5139
5140 \lang american
5141 The abstract
5142 \end_layout
5143
5144 \begin_layout Standard
5145
5146 \change_inserted 564990737 1670794716
5147
5148 \lang american
5149 The abstract should immediately follow the header block and must contain
5150  five tokens: 
5151 \family typewriter
5152
5153 \backslash
5154 abstract{}{}{}{}{}
5155 \family default
5156  
5157 \end_layout
5158
5159 \begin_layout Enumerate
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family typewriter
5164 \lang american
5165 context heading
5166 \family default
5167  (optional) {} leave it empty if necessary 
5168 \end_layout
5169
5170 \begin_layout Enumerate
5171
5172 \change_inserted 564990737 1670794716
5173
5174 \family typewriter
5175 \lang american
5176 aims heading
5177 \family default
5178  (mandatory) {} 
5179 \end_layout
5180
5181 \begin_layout Enumerate
5182
5183 \change_inserted 564990737 1670794716
5184
5185 \family typewriter
5186 \lang american
5187 methods heading
5188 \family default
5189  (mandatory) {} 
5190 \end_layout
5191
5192 \begin_layout Enumerate
5193
5194 \change_inserted 564990737 1670794716
5195
5196 \family typewriter
5197 \lang american
5198 results heading
5199 \family default
5200  (mandatory) {} 
5201 \end_layout
5202
5203 \begin_layout Enumerate
5204
5205 \change_inserted 564990737 1670794716
5206
5207 \family typewriter
5208 \lang american
5209 conclusions heading
5210 \family default
5211  (optional) {} leave it empty if necessary 
5212 \end_layout
5213
5214 \begin_layout Standard
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \lang american
5219 (NB.
5220  This structure not shown in 
5221 \emph on
5222 aa_sample.lyx.
5223 \emph default
5224 )
5225 \end_layout
5226
5227 \begin_layout Subsubsection
5228
5229 \change_inserted 564990737 1670794716
5230
5231 \lang american
5232 Supported environments
5233 \end_layout
5234
5235 \begin_layout Standard
5236
5237 \change_inserted 564990737 1670794716
5238
5239 \lang american
5240 The A&A paper layout supports the following environments for structuring
5241  your text:
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family sans
5249 \lang american
5250 Standard
5251 \end_layout
5252
5253 \begin_layout Itemize
5254
5255 \change_inserted 564990737 1670794716
5256
5257 \family sans
5258 \lang american
5259 Section
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Subsection
5269 \end_layout
5270
5271 \begin_layout Itemize
5272
5273 \change_inserted 564990737 1670794716
5274
5275 \family sans
5276 \lang american
5277 Subsubsection
5278 \end_layout
5279
5280 \begin_layout Itemize
5281
5282 \change_inserted 564990737 1670794716
5283
5284 \family sans
5285 \lang american
5286 Itemize
5287 \end_layout
5288
5289 \begin_layout Itemize
5290
5291 \change_inserted 564990737 1670794716
5292
5293 \family sans
5294 \lang american
5295 Enumerate
5296 \end_layout
5297
5298 \begin_layout Itemize
5299
5300 \change_inserted 564990737 1670794716
5301
5302 \family sans
5303 \lang american
5304 Description
5305 \end_layout
5306
5307 \begin_layout Itemize
5308
5309 \change_inserted 564990737 1670794716
5310
5311 \family sans
5312 \lang american
5313 Caption
5314 \end_layout
5315
5316 \begin_layout Itemize
5317
5318 \change_inserted 564990737 1670794716
5319
5320 \family sans
5321 \lang american
5322 Abstract
5323 \end_layout
5324
5325 \begin_layout Itemize
5326
5327 \change_inserted 564990737 1670794716
5328
5329 \family sans
5330 \lang american
5331 Acknowledgment
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family sans
5339 \lang american
5340 Bibliography
5341 \end_layout
5342
5343 \begin_layout Itemize
5344
5345 \change_inserted 564990737 1670794716
5346
5347 \family sans
5348 \lang american
5349 \SpecialChar LaTeX
5350
5351 \end_layout
5352
5353 \begin_layout Subsubsection
5354
5355 \change_inserted 564990737 1670794716
5356
5357 \lang american
5358 Commands not supported by \SpecialChar LyX
5359
5360 \end_layout
5361
5362 \begin_layout Standard
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \lang american
5367 Some commands are not yet supported by the 
5368 \family sans
5369 paper (A&A)
5370 \family default
5371  layout for \SpecialChar LyX
5372 .
5373  Some have already been mentioned.
5374  For the sake of completeness, they are listed all together here:
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \change_inserted 564990737 1670794716
5380
5381 \family typewriter
5382 \lang american
5383
5384 \backslash
5385 and
5386 \end_layout
5387
5388 \begin_layout Itemize
5389
5390 \change_inserted 564990737 1670794716
5391
5392 \family typewriter
5393 \lang american
5394
5395 \backslash
5396 email
5397 \end_layout
5398
5399 \begin_layout Itemize
5400
5401 \change_inserted 564990737 1670794716
5402
5403 \family typewriter
5404 \lang american
5405
5406 \backslash
5407 inst{}
5408 \end_layout
5409
5410 \begin_layout Itemize
5411
5412 \change_inserted 564990737 1670794716
5413
5414 \family typewriter
5415 \lang american
5416
5417 \backslash
5418 keywords{}
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \change_inserted 564990737 1670794716
5424
5425 \family typewriter
5426 \lang american
5427
5428 \backslash
5429 object{}
5430 \end_layout
5431
5432 \begin_layout Standard
5433
5434 \change_inserted 564990737 1670794716
5435
5436 \lang american
5437 If you want to use any of these commands, you have to enter them yourself.
5438  
5439 \family typewriter
5440 Do not forget to use
5441 \family sans
5442  
5443 \bar under
5444 I
5445 \bar default
5446 nsert\SpecialChar menuseparator
5447 \SpecialChar TeX
5448
5449 \begin_inset space ~
5450 \end_inset
5451
5452 Code
5453 \family default
5454 \series bold
5455 !
5456 \end_layout
5457
5458 \begin_layout Subsubsection
5459
5460 \change_inserted 564990737 1670794716
5461
5462 \lang american
5463 Figure and Table Floats
5464 \end_layout
5465
5466 \begin_layout Standard
5467
5468 \change_inserted 564990737 1670794716
5469
5470 \lang american
5471 \SpecialChar LyX
5472  provides support for the necessary float environments 
5473 \family sans
5474 figure, figure*, table
5475 \family default
5476  and 
5477 \family sans
5478 table*
5479 \family default
5480 , therefore we won't tell much about it here.
5481  Refer to the 
5482 \emph on
5483 User's
5484 \begin_inset space ~
5485 \end_inset
5486
5487 Guide
5488 \emph default
5489 .
5490  Just remember that tables should be left-aligned.
5491  For that, select the table and change the alignment in 
5492 \family sans
5493 \bar under
5494 E
5495 \bar default
5496 dit\SpecialChar menuseparator
5497
5498 \bar under
5499 P
5500 \bar default
5501 aragraph
5502 \begin_inset space ~
5503 \end_inset
5504
5505 Settings.
5506 \end_layout
5507
5508 \begin_layout Standard
5509
5510 \change_inserted 564990737 1670794716
5511
5512 \lang american
5513 There is only one special thing: the figures with a caption beside the figure.
5514  To create such a figure, you have to do the following:
5515 \end_layout
5516
5517 \begin_layout Enumerate
5518
5519 \change_inserted 564990737 1670794716
5520
5521 \lang american
5522 Create a wide figure float: 
5523 \family sans
5524 \bar under
5525 I
5526 \bar default
5527 nsert\SpecialChar menuseparator
5528 Flo
5529 \bar under
5530 a
5531 \bar default
5532 t\SpecialChar menuseparator
5533 Figure
5534 \family default
5535 , then, from within the float, use the menu 
5536 \family sans
5537 \bar under
5538 E
5539 \bar default
5540 dit\SpecialChar menuseparator
5541 Flo
5542 \bar under
5543 a
5544 \bar default
5545 t
5546 \begin_inset space ~
5547 \end_inset
5548
5549 Settings
5550 \family default
5551  and check 
5552 \family sans
5553 \bar under
5554 S
5555 \bar default
5556 pan
5557 \begin_inset space ~
5558 \end_inset
5559
5560 columns
5561 \family default
5562  in the 
5563 \family sans
5564 float
5565 \family default
5566  dialog.
5567 \end_layout
5568
5569 \begin_layout Enumerate
5570
5571 \change_inserted 564990737 1670794716
5572
5573 \lang american
5574 Enter your caption text.
5575 \end_layout
5576
5577 \begin_layout Enumerate
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \lang american
5582 Press 
5583 \family sans
5584 Return
5585 \family default
5586  to move the cursor above the caption.
5587 \end_layout
5588
5589 \begin_layout Enumerate
5590
5591 \change_inserted 564990737 1670794716
5592
5593 \lang american
5594 Insert your figure
5595 \end_layout
5596
5597 \begin_layout Enumerate
5598
5599 \change_inserted 564990737 1670794716
5600
5601 \lang american
5602 Position the cursor after the figure and insert a horizontal fill by using
5603  the menu: 
5604 \family sans
5605 \bar under
5606 I
5607 \bar default
5608 nsert\SpecialChar menuseparator
5609 F
5610 \bar under
5611 o
5612 \bar default
5613 rmatting\SpecialChar menuseparator
5614 H
5615 \bar under
5616 o
5617 \bar default
5618 rizontal
5619 \begin_inset space ~
5620 \end_inset
5621
5622 Space
5623 \family default
5624  to open the 
5625 \family sans
5626 space
5627 \family default
5628  dialog and select the 
5629 \family sans
5630 Horizontal fill
5631 \family default
5632  option from the 
5633 \family sans
5634 \bar under
5635 S
5636 \bar default
5637 pacing
5638 \family default
5639  pull-down menu.
5640 \end_layout
5641
5642 \begin_layout Enumerate
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \lang american
5647 Switch to \SpecialChar LaTeX
5648  mode: 
5649 \family sans
5650 M-c
5651 \begin_inset space ~
5652 \end_inset
5653
5654 t
5655 \family default
5656 .
5657 \end_layout
5658
5659 \begin_layout Enumerate
5660
5661 \change_inserted 564990737 1670794716
5662
5663 \lang american
5664 Enter 
5665 \family typewriter
5666
5667 \backslash
5668 parbox[b]{55mm}{
5669 \family default
5670  
5671 \emph on
5672 Do not close the brace!
5673 \end_layout
5674
5675 \begin_layout Enumerate
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \lang american
5680 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5681  mode and insert
5682  the closing brace: 
5683 \family sans
5684 M-c
5685 \begin_inset space ~
5686 \end_inset
5687
5688 t
5689 \family default
5690  
5691 \family typewriter
5692 }
5693 \family default
5694 .
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 Also, refer to the figures in the file 
5703 \emph on
5704 aa_sample.lyx
5705 \emph default
5706  in the 
5707 \family sans
5708 Examples
5709 \family default
5710  directory.
5711 \end_layout
5712
5713 \begin_layout Subsubsection
5714
5715 \change_inserted 564990737 1670794716
5716
5717 \lang american
5718 Referee layout
5719 \end_layout
5720
5721 \begin_layout Standard
5722
5723 \change_inserted 564990737 1670794716
5724
5725 \lang american
5726 For submission, the paper has to be formatted in a special double-spacing
5727  layout.
5728  For this purpose, you have to add the option 
5729 \family typewriter
5730 referee
5731 \family default
5732  to the 
5733 \family sans
5734 Cus
5735 \bar under
5736 t
5737 \bar default
5738 om Class
5739 \begin_inset space ~
5740 \end_inset
5741
5742 options
5743 \family default
5744  in the 
5745 \family sans
5746 \bar under
5747 D
5748 \bar default
5749 ocument\SpecialChar menuseparator
5750
5751 \bar under
5752 S
5753 \bar default
5754 ettings\SpecialChar menuseparator
5755 Document
5756 \begin_inset space ~
5757 \end_inset
5758
5759 Class
5760 \family default
5761  dialog.
5762  
5763 \end_layout
5764
5765 \begin_layout Subsubsection
5766
5767 \change_inserted 564990737 1670794716
5768
5769 \lang american
5770 The example paper
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 The example paper 
5779 \emph on
5780 aa_sample.lyx
5781 \emph default
5782  was written with \SpecialChar LyX
5783 .
5784  It is the example paper from the original macro package, 
5785 \family typewriter
5786 aa.dem
5787 \family default
5788  in the 
5789 \begin_inset CommandInset href
5790 LatexCommand href
5791 name "aa-package"
5792 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5793 literal "false"
5794
5795 \end_inset
5796
5797 , but translated to \SpecialChar LyX
5798  using the older unstructured abstract type.
5799  Use it for inspiration, and compare the \SpecialChar LaTeX
5800  code in 
5801 \family typewriter
5802 aa.dem
5803 \family default
5804  with the \SpecialChar LyX
5805  way of writing.
5806 \end_layout
5807
5808 \begin_layout Subsection
5809 AAS\SpecialChar TeX
5810
5811 \end_layout
5812
5813 \begin_layout Standard
5814 by 
5815 \noun on
5816 Mike Ressler
5817 \end_layout
5818
5819 \begin_layout Subsubsection
5820 Introduction
5821 \end_layout
5822
5823 \begin_layout Standard
5824 AAS\SpecialChar TeX
5825  is a set of macros produced by the American Astronomical Society to
5826  facilitate electronic manuscript submission to the three journals they
5827  publish: the Astrophysical Journal (including the Letters and Supplement),
5828  the Astronomical Journal, and the Publications of the Astronomical Society
5829  of the Pacific.
5830  \SpecialChar LyX
5831  has proven to be an excellent tool for generating these documents, especially
5832  given its equation, citation, and figure handling capabilities.
5833  \SpecialChar LyX
5834  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5835  is the version described here, or higher.
5836  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5837 2.09 and are fundamentally
5838  incompatible with \SpecialChar LyX
5839 .
5840  The AAS\SpecialChar TeX
5841  package may be downloaded from the AAS\SpecialChar TeX
5842  Web site
5843 \end_layout
5844
5845 \begin_layout Standard
5846 \begin_inset VSpace medskip
5847 \end_inset
5848
5849
5850 \end_layout
5851
5852 \begin_layout Standard
5853 \align center
5854 \begin_inset Flex URL
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858
5859 https://aas.org/aastex/aastex-downloads
5860 \end_layout
5861
5862 \end_inset
5863
5864
5865 \end_layout
5866
5867 \begin_layout Standard
5868 \begin_inset VSpace medskip
5869 \end_inset
5870
5871
5872 \end_layout
5873
5874 \begin_layout Standard
5875 A complete user guide is contained in that package and you should familiarize
5876  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5877 .
5878  \SpecialChar LyX
5879  will not reduce the need to figure out all the AAS\SpecialChar TeX
5880  commands, it will only
5881  reduce the drudgery of typing everything in.
5882  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5883  document conforms
5884  completely to the requirements of the journal to which you are submitting
5885  your paper.
5886 \end_layout
5887
5888 \begin_layout Subsubsection
5889 Starting a New Paper
5890 \end_layout
5891
5892 \begin_layout Standard
5893 I strongly suggest that you start with the AAS\SpecialChar TeX
5894  template file.
5895  Click on 
5896 \family sans
5897 File\SpecialChar menuseparator
5898 New from
5899 \family default
5900  
5901 \family sans
5902 Template
5903 \family default
5904 , enter the new file name, then choose the 
5905 \family typewriter
5906 aastex6.lyx
5907 \family default
5908  template.
5909  This will show the most common fields found in a manuscript.
5910  Simply overwrite the existing text (including the brackets, 
5911 \family typewriter
5912 <>
5913 \family default
5914 ) with the correct information.
5915  Many of the AAS\SpecialChar TeX
5916  commands and environments can be implemented directly in
5917  \SpecialChar LyX
5918 , but some cannot.
5919  For commands such as these, the \SpecialChar LaTeX
5920  code must be entered directly and marked
5921  as such.
5922  Such commands are referred to as \SpecialChar TeX
5923  code, or Evil Red Text.
5924  I tried to minimize the amount of \SpecialChar TeX
5925  code needed in an AAS\SpecialChar TeX
5926  document.
5927 \end_layout
5928
5929 \begin_layout Subsubsection
5930 Finishing Your Paper
5931 \end_layout
5932
5933 \begin_layout Standard
5934 When the paper is finished to your satisfaction and previews/prints correctly,
5935  there are a few 
5936 \begin_inset Quotes eld
5937 \end_inset
5938
5939 postprocessing
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  actions which need to be done before you submit it to the journals.
5944  
5945 \end_layout
5946
5947 \begin_layout Enumerate
5948 Export your paper as a \SpecialChar LaTeX
5949  file (
5950 \family sans
5951 File\SpecialChar menuseparator
5952 Export\SpecialChar menuseparator
5953 \SpecialChar LaTeX
5954
5955 \family default
5956 ).
5957  
5958 \end_layout
5959
5960 \begin_layout Enumerate
5961 Edit the resulting 
5962 \family typewriter
5963 .tex
5964 \family default
5965  file with your favorite text editor
5966 \end_layout
5967
5968 \begin_deeper
5969 \begin_layout Enumerate
5970 remove the comment lines before the 
5971 \family typewriter
5972
5973 \backslash
5974 documentclass
5975 \family default
5976  command
5977 \end_layout
5978
5979 \begin_layout Enumerate
5980 remove the 
5981 \family typewriter
5982
5983 \backslash
5984 usepackage...{fontenc}
5985 \family default
5986  line if it appears (usually just after 
5987 \family typewriter
5988
5989 \backslash
5990 documentclass
5991 \family default
5992 }; also remove the 
5993 \family typewriter
5994
5995 \backslash
5996 secnumdepth
5997 \family default
5998  line if it appears.
5999 \end_layout
6000
6001 \begin_layout Enumerate
6002 remove everything between (and including) the 
6003 \family typewriter
6004
6005 \backslash
6006 makeatletter
6007 \family default
6008  and 
6009 \family typewriter
6010
6011 \backslash
6012 makeatother
6013 \family default
6014  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6015  preamble
6016  (which should appear immediately after the 
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 User specified \SpecialChar LaTeX
6021  commands
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025  comment in the 
6026 \family typewriter
6027 .tex
6028 \family default
6029  file).
6030 \end_layout
6031
6032 \end_deeper
6033 \begin_layout Enumerate
6034 Run the resulting file through \SpecialChar LaTeX
6035  to make sure it still processes correctly.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 Reread the journal requirements to make sure your filenames and formats
6040  are correct.
6041 \end_layout
6042
6043 \begin_layout Enumerate
6044 Submit it.
6045 \end_layout
6046
6047 \begin_layout Subsubsection
6048 Comments On Specific Commands
6049 \end_layout
6050
6051 \begin_layout Standard
6052 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6053  commands: the
6054  AAS\SpecialChar TeX
6055  User Guide (
6056 \family typewriter
6057 aasguide.tex
6058 \family default
6059 ) gives a good description of each.
6060  Thus it's probably easiest for me to go down the list as found in the guide
6061  and offer comments where necessary.
6062  So let's begin \SpecialChar ldots
6063
6064 \end_layout
6065
6066 \begin_layout Paragraph
6067 Things that work as expected
6068 \end_layout
6069
6070 \begin_layout Standard
6071 Because they work as you might expect, I simply list them and the section
6072  they are found in: 
6073 \family typewriter
6074
6075 \backslash
6076 documentclass
6077 \family default
6078  (2.1.1), 
6079 \family typewriter
6080
6081 \backslash
6082 begin{document}
6083 \family default
6084  (2.2), 
6085 \family typewriter
6086
6087 \backslash
6088 title
6089 \family default
6090  (2.3), 
6091 \family typewriter
6092
6093 \backslash
6094 author
6095 \family default
6096  (2.3), 
6097 \family typewriter
6098
6099 \backslash
6100 affil
6101 \family default
6102  (2.3), 
6103 \family typewriter
6104
6105 \backslash
6106 abstract
6107 \family default
6108  (2.4), 
6109 \family typewriter
6110
6111 \backslash
6112 keywords
6113 \family default
6114  (2.5), 
6115 \family typewriter
6116
6117 \backslash
6118 section
6119 \family default
6120  (2.7), 
6121 \family typewriter
6122
6123 \backslash
6124 subsection
6125 \family default
6126  (2.7), 
6127 \family typewriter
6128
6129 \backslash
6130 subsubsection
6131 \family default
6132  (2.7), 
6133 \family typewriter
6134
6135 \backslash
6136 paragraph
6137 \family default
6138  (2.7), 
6139 \family typewriter
6140
6141 \backslash
6142 facility
6143 \family default
6144  (2.10), 
6145 \family typewriter
6146
6147 \backslash
6148 begin{displaymath}
6149 \family default
6150  (2.12), 
6151 \family typewriter
6152
6153 \backslash
6154 begin{equation}
6155 \family default
6156  (2.12), 
6157 \family typewriter
6158
6159 \backslash
6160 begin{eqnarray}
6161 \family default
6162  (2.12), 
6163 \family typewriter
6164
6165 \backslash
6166 begin{mathletters}
6167 \family default
6168  (2.12), 
6169 \family typewriter
6170
6171 \backslash
6172 begin{thebibliography}
6173 \family default
6174  (2.13.1), 
6175 \family typewriter
6176
6177 \backslash
6178 bibitem
6179 \family default
6180  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6181  graphicx figure commands (2.14.1), 
6182 \family typewriter
6183
6184 \backslash
6185 begin{table}
6186 \family default
6187  (2.15.4), 
6188 \family typewriter
6189
6190 \backslash
6191 begin{tabular}
6192 \family default
6193  (2.15.4), 
6194 \family typewriter
6195
6196 \backslash
6197 caption
6198 \family default
6199  (2.15.4), 
6200 \family typewriter
6201
6202 \backslash
6203 label
6204 \family default
6205  (2.15.4, amongst other places), 
6206 \family typewriter
6207
6208 \backslash
6209 tablerefs
6210 \family default
6211  (2.15.5), 
6212 \family typewriter
6213
6214 \backslash
6215 tablecomments
6216 \family default
6217  (2.15.5), 
6218 \family typewriter
6219
6220 \backslash
6221 url
6222 \family default
6223  (2.17.4), 
6224 \family typewriter
6225
6226 \backslash
6227 end{document}
6228 \family default
6229  (2.18).
6230 \end_layout
6231
6232 \begin_layout Standard
6233 The following style options also work correctly: 
6234 \family typewriter
6235 longabstract
6236 \family default
6237  (2.4), 
6238 \family typewriter
6239 preprint
6240 \family default
6241  (3.2.1), 
6242 \family typewriter
6243 preprint2
6244 \family default
6245  (3.2.2), 
6246 \family typewriter
6247 eqsecnum
6248 \family default
6249  (3.3), 
6250 \family typewriter
6251 flushrt
6252 \family default
6253  (3.4).
6254  Simply put them in the 
6255 \family sans
6256 Options
6257 \family default
6258  box in 
6259 \family sans
6260 Layout\SpecialChar menuseparator
6261 Document
6262 \family default
6263 .
6264 \end_layout
6265
6266 \begin_layout Paragraph
6267 Things that work, but require more comment
6268 \end_layout
6269
6270 \begin_layout Standard
6271 The following items work, but require a little more discussion:
6272 \end_layout
6273
6274 \begin_layout Itemize
6275 These items are reserved for use by the journal editors, but you can put
6276  them into the \SpecialChar LaTeX
6277  preamble if you feel compelled to do so: 
6278 \family typewriter
6279
6280 \backslash
6281 received
6282 \family default
6283
6284 \family typewriter
6285
6286 \backslash
6287 revised
6288 \family default
6289
6290 \family typewriter
6291
6292 \backslash
6293 accepted
6294 \family default
6295
6296 \family typewriter
6297
6298 \backslash
6299 ccc
6300 \family default
6301
6302 \family typewriter
6303
6304 \backslash
6305 cpright
6306 \family default
6307  (all from 2.1.3)
6308 \end_layout
6309
6310 \begin_layout Itemize
6311 These items may be placed in the \SpecialChar LaTeX
6312  preamble, and are included as blanks in
6313  the template file: 
6314 \family typewriter
6315
6316 \backslash
6317 slugcomment
6318 \family default
6319  (2.1.4), 
6320 \family typewriter
6321
6322 \backslash
6323 shorttitle
6324 \family default
6325  (2.1.5), 
6326 \family typewriter
6327
6328 \backslash
6329 shortauthors
6330 \family default
6331  (2.1.5)
6332 \end_layout
6333
6334 \begin_layout Itemize
6335
6336 \family typewriter
6337
6338 \backslash
6339 email
6340 \family default
6341  (2.3) – can only be used 
6342 \begin_inset Quotes eld
6343 \end_inset
6344
6345 standalone
6346 \begin_inset Quotes erd
6347 \end_inset
6348
6349 , not in the middle of a paragraph.
6350  Use \SpecialChar TeX
6351  code if you need to embed it.
6352 \end_layout
6353
6354 \begin_layout Itemize
6355
6356 \family typewriter
6357
6358 \backslash
6359 and
6360 \family default
6361  (2.3) – will have extra {} after it.
6362  This should not cause an error.
6363 \end_layout
6364
6365 \begin_layout Itemize
6366
6367 \family typewriter
6368
6369 \backslash
6370 notetoeditor
6371 \family default
6372  (2.6) – can only be used 
6373 \begin_inset Quotes eld
6374 \end_inset
6375
6376 standalone
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380 , not in the middle of a paragraph.
6381  Use \SpecialChar TeX
6382  code if you need to embed it.
6383 \end_layout
6384
6385 \begin_layout Itemize
6386
6387 \family typewriter
6388
6389 \backslash
6390 placetable
6391 \family default
6392  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6393  hand
6394 \end_layout
6395
6396 \begin_layout Itemize
6397
6398 \family typewriter
6399
6400 \backslash
6401 placefigure
6402 \family default
6403  (2.8) – same as for 
6404 \family typewriter
6405
6406 \backslash
6407 placetable
6408 \end_layout
6409
6410 \begin_layout Itemize
6411
6412 \family typewriter
6413
6414 \backslash
6415 acknowledgements
6416 \family default
6417  (2.9) – will have extra {} after it.
6418  This should not cause an error.
6419 \end_layout
6420
6421 \begin_layout Itemize
6422
6423 \family typewriter
6424
6425 \backslash
6426 appendix
6427 \family default
6428  (2.11) – will have extra {} after it.
6429  This should not cause an error.
6430 \end_layout
6431
6432 \begin_layout Itemize
6433
6434 \family typewriter
6435
6436 \backslash
6437 figcaption
6438 \family default
6439  (2.14.2) – you can insert an optional filename argument by placing the cursor
6440  at the beginning of the text and selecting 
6441 \family sans
6442 Insert\SpecialChar menuseparator
6443 Short Title
6444 \family default
6445 .
6446  
6447 \begin_inset Quotes eld
6448 \end_inset
6449
6450 Short Title
6451 \begin_inset Quotes erd
6452 \end_inset
6453
6454  inserts an optional argument of the type needed by 
6455 \family typewriter
6456
6457 \backslash
6458 figcaption
6459 \family default
6460 .
6461  Hopefully it will be renamed someday.
6462 \end_layout
6463
6464 \begin_layout Itemize
6465
6466 \family typewriter
6467
6468 \backslash
6469 objectname
6470 \family default
6471  (2.17.1) – same as 
6472 \family typewriter
6473
6474 \backslash
6475 figcaption
6476 \family default
6477  for the catalog ID optional parameter
6478 \end_layout
6479
6480 \begin_layout Itemize
6481
6482 \family typewriter
6483
6484 \backslash
6485 dataset
6486 \family default
6487  (2.17.1) – same as 
6488 \family typewriter
6489
6490 \backslash
6491 figcaption
6492 \family default
6493  for the catalog ID optional parameter
6494 \end_layout
6495
6496 \begin_layout Paragraph
6497 Things not implemented, use \SpecialChar TeX
6498  code
6499 \end_layout
6500
6501 \begin_layout Standard
6502
6503 \family typewriter
6504
6505 \backslash
6506 eqnum
6507 \family default
6508  (2.12), 
6509 \family typewriter
6510
6511 \backslash
6512 setcounter{equation}
6513 \family default
6514  (2.12), Journal name abbreviations (2.13.4), 
6515 \family typewriter
6516
6517 \backslash
6518 figurenum
6519 \family default
6520  (2.14.1), 
6521 \family typewriter
6522
6523 \backslash
6524 epsscale
6525 \family default
6526  (2.14.1), 
6527 \family typewriter
6528
6529 \backslash
6530 plotone
6531 \family default
6532  (2.14.1), 
6533 \family typewriter
6534
6535 \backslash
6536 plottwo
6537 \family default
6538  (2.14.1), 
6539 \family typewriter
6540
6541 \backslash
6542 tablenum
6543 \family default
6544  (2.15.4), 
6545 \family typewriter
6546
6547 \backslash
6548 tableline
6549 \family default
6550  (2.15.4, insert it as the first element in the lefthand cell after where
6551  you want it.
6552  Don't use any of \SpecialChar LyX
6553 's rules in the table), 
6554 \family typewriter
6555
6556 \backslash
6557 tablenotemark
6558 \family default
6559  (2.15.5), 
6560 \family typewriter
6561
6562 \backslash
6563 tablenotetext
6564 \family default
6565  (2.15.5), much of Misc (2.17, except 
6566 \family typewriter
6567
6568 \backslash
6569 objectname
6570 \family default
6571
6572 \family typewriter
6573
6574 \backslash
6575 dataset
6576 \family default
6577
6578 \family typewriter
6579
6580 \backslash
6581 url
6582 \family default
6583 , and 
6584 \family typewriter
6585
6586 \backslash
6587 email
6588 \family default
6589 ; see above), 
6590 \family typewriter
6591
6592 \backslash
6593 singlespace
6594 \family default
6595  (3.1), 
6596 \family typewriter
6597
6598 \backslash
6599 doublespace
6600 \family default
6601  (3.1), 
6602 \family typewriter
6603
6604 \backslash
6605 onecolumn
6606 \family default
6607  (3.2), 
6608 \family typewriter
6609
6610 \backslash
6611 twocolumn
6612 \family default
6613  (3.2)
6614 \end_layout
6615
6616 \begin_layout Paragraph
6617 Things that cannot be implemented
6618 \end_layout
6619
6620 \begin_layout Standard
6621 \SpecialChar ldots
6622  at least in any meaningful sort of way, so I suggest ignoring them.
6623  They are the references environment (2.13.3), and the deluxetable environment
6624  (2.15).
6625  If you really, really need to use deluxetable, I suggest editing it in
6626  a separate file with a text editor, then using 
6627 \family sans
6628 Insert\SpecialChar menuseparator
6629 Child
6630 \begin_inset space ~
6631 \end_inset
6632
6633 Document
6634 \family default
6635  to include it in your \SpecialChar LyX
6636  document.
6637  See the 
6638 \family typewriter
6639 aas_sample.lyx
6640 \family default
6641  file to see an example of this.
6642 \end_layout
6643
6644 \begin_layout Subsubsection
6645 FAQs, Tips, Tricks, and Other Ruminations
6646 \end_layout
6647
6648 \begin_layout Paragraph
6649 Getting \SpecialChar LyX
6650  and AAS\SpecialChar TeX
6651  to cooperate
6652 \end_layout
6653
6654 \begin_layout Standard
6655 It can be a bit tricky to get \SpecialChar LyX
6656  to recognize a new layout and document class.
6657  When all else fails, do this:
6658 \end_layout
6659
6660 \begin_layout Enumerate
6661 Make certain that \SpecialChar LaTeX
6662  can find AAS\SpecialChar TeX
6663 .
6664  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6665  distribution into a
6666  directory completely unrelated to \SpecialChar LaTeX
6667  or AAS\SpecialChar TeX
6668  and run \SpecialChar LaTeX
6669  on 
6670 \family typewriter
6671 sample.tex
6672 \family default
6673 .
6674 \end_layout
6675
6676 \begin_layout Enumerate
6677 Make certain that 
6678 \family typewriter
6679 aastex.layout
6680 \family default
6681  appears in \SpecialChar LyX
6682 's 
6683 \family typewriter
6684 layouts
6685 \family default
6686  folder
6687 \end_layout
6688
6689 \begin_layout Enumerate
6690 Rerun 
6691 \family sans
6692 Tools\SpecialChar menuseparator
6693 Reconfigure
6694 \family default
6695  in \SpecialChar LyX
6696 , then restart \SpecialChar LyX
6697 .
6698 \end_layout
6699
6700 \begin_layout Enumerate
6701 Open a regular new file, not from a template.
6702  Does AAS\SpecialChar TeX
6703  appear in the class list in 
6704 \family sans
6705 Document\SpecialChar menuseparator
6706 Settings
6707 \family default
6708 ?
6709 \end_layout
6710
6711 \begin_layout Standard
6712 If you get a warning from an existing AAS\SpecialChar TeX
6713  document about not being able
6714  to find the AAS\SpecialChar TeX
6715  layout or a message about 
6716 \begin_inset Quotes eld
6717 \end_inset
6718
6719 You should not mix title layouts with normal ones
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723 , things haven't been installed correctly.
6724 \end_layout
6725
6726 \begin_layout Paragraph
6727 \SpecialChar LaTeX
6728  error processing a table 
6729 \end_layout
6730
6731 \begin_layout Standard
6732 \SpecialChar LyX
6733 , by default, attempts to center the table caption/title.
6734  This seems to produce a bad interaction in AAS\SpecialChar TeX
6735  so you should click somewhere
6736  in the caption/title, then select 
6737 \family sans
6738 Edit\SpecialChar menuseparator
6739 Paragraph
6740 \begin_inset space ~
6741 \end_inset
6742
6743 Settings
6744 \family default
6745 , then set the 
6746 \family sans
6747 Alignment
6748 \family default
6749  to 
6750 \family sans
6751 Block
6752 \family default
6753 .
6754  This took care of it for me.
6755 \end_layout
6756
6757 \begin_layout Paragraph
6758 References
6759 \end_layout
6760
6761 \begin_layout Standard
6762 A couple of things: 1) I have noticed some funny spacing in the reference
6763  entries in the text.
6764  When you enter the bibliography item data, make sure their is 
6765 \emph on
6766 no
6767 \emph default
6768  space between the last author and the parenthesis setting off the year;
6769  
6770 \emph on
6771 e.
6772 \begin_inset space \thinspace{}
6773 \end_inset
6774
6775 g.
6776 \begin_inset space \space{}
6777 \end_inset
6778
6779
6780 \emph default
6781 type 
6782 \family typewriter
6783 Ressler(1992)
6784 \family default
6785 , not 
6786 \family typewriter
6787 Ressler (1992)
6788 \family default
6789 .
6790  2) Entering the references at all is not obvious.
6791  The easiest thing is to start typing your first reference at the end of
6792  the document, then mark it as type 
6793 \family sans
6794 References
6795 \family default
6796 .
6797  That will put a small gray box in front of what you just typed.
6798  Click on the box to fill in the rest of the information.
6799  For new references, go to the end of an existing reference and press return.
6800  That will create a new line with its own box, etc.
6801 \end_layout
6802
6803 \begin_layout Paragraph
6804 Including EPS files
6805 \end_layout
6806
6807 \begin_layout Standard
6808 Even though AAS\SpecialChar TeX
6809  provides its own figure commands (
6810 \family typewriter
6811
6812 \backslash
6813 plotone
6814 \family default
6815 , for example), I much prefer \SpecialChar LaTeX
6816 's standard figure commands (with the default
6817  graphicx).
6818  You can insert the 
6819 \family typewriter
6820
6821 \backslash
6822 plotone
6823 \family default
6824 , etc.
6825 \begin_inset space ~
6826 \end_inset
6827
6828 commands as \SpecialChar TeX
6829  code into a Figure Float box if you desire, but I never have
6830  much luck getting the layout right.
6831  With the standard graphics, \SpecialChar LyX
6832  will insert a 
6833 \family typewriter
6834
6835 \backslash
6836 usepackage{graphicx}
6837 \family default
6838  command into the \SpecialChar LaTeX
6839  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6840  way,
6841  interspersing the figures in the text.
6842  I believe ApJ accepts figures exactly this way now; AJ might still use
6843  the 
6844 \begin_inset Quotes eld
6845 \end_inset
6846
6847 stack everything at the end
6848 \begin_inset Quotes erd
6849 \end_inset
6850
6851  technique.
6852 \end_layout
6853
6854 \begin_layout Paragraph
6855 Things I could have done, but didn't
6856 \end_layout
6857
6858 \begin_layout Standard
6859 There are a few 
6860 \begin_inset Quotes eld
6861 \end_inset
6862
6863 pretty
6864 \begin_inset Quotes erd
6865 \end_inset
6866
6867  things I could have implemented, but chose not to.
6868  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6869  window,
6870  even though it is double-spaced in the paper manuscript.
6871  Also, I chose not to make separate layouts for the preprint and preprint2
6872  styles.
6873  Since I assume you will spend most of your time in the plain manuscript
6874  mode anyway, I decided not to chew up more disk space with this.
6875  
6876 \end_layout
6877
6878 \begin_layout Subsubsection
6879 Final Caveat
6880 \end_layout
6881
6882 \begin_layout Standard
6883 Your mileage may vary.
6884  I've now had papers published by both ApJ and AJ that have had 98% of the
6885  effort done in \SpecialChar LyX
6886 ; the last 2% was the \SpecialChar LaTeX
6887  post-processing and a few cleanups.
6888  I have had no trouble with the submission process, and I'm sure the journals
6889  were never aware that there might be a difference.
6890  So, go forth and publish!
6891 \end_layout
6892
6893 \begin_layout Subsection
6894
6895 \change_inserted 564990737 1671042028
6896
6897 \lang american
6898 Elsevier
6899 \end_layout
6900
6901 \begin_layout Standard
6902
6903 \change_inserted 564990737 1671042028
6904
6905 \lang american
6906 The document class 
6907 \family sans
6908 article
6909 \begin_inset space \thinspace{}
6910 \end_inset
6911
6912 (Elsevier)
6913 \family default
6914  provides the 
6915 \family typewriter
6916 elsarticle.cls
6917 \family default
6918  document class.
6919  This provides the following additional environments: 
6920 \family sans
6921 Title
6922 \begin_inset space ~
6923 \end_inset
6924
6925 footnote
6926 \family default
6927
6928 \family sans
6929 Author
6930 \begin_inset space ~
6931 \end_inset
6932
6933 footnote
6934 \family default
6935
6936 \family sans
6937 Corresponding
6938 \begin_inset space ~
6939 \end_inset
6940
6941 author
6942 \family default
6943
6944 \family sans
6945 Address
6946 \family default
6947
6948 \family sans
6949 Email
6950 \family default
6951  and 
6952 \family sans
6953 Keywords
6954 \family default
6955 .
6956  A template 
6957 \family typewriter
6958 elsarticle.lyx
6959 \family default
6960 .
6961  is available in the menu 
6962 \family sans
6963 \bar under
6964 F
6965 \bar default
6966 ile\SpecialChar menuseparator
6967 New
6968 \begin_inset space ~
6969 \end_inset
6970
6971 fro
6972 \bar under
6973 m
6974 \bar default
6975
6976 \begin_inset space ~
6977 \end_inset
6978
6979 Template
6980 \family default
6981 .
6982  It has been customized with further environments and contains all the informati
6983 on you may need.
6984  However, the documentation is also available from 
6985 \begin_inset CommandInset href
6986 LatexCommand href
6987 name "CTAN"
6988 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
6989 literal "false"
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Subsection
6997
6998 \change_inserted 564990737 1671042046
6999
7000 \lang american
7001 Paper
7002 \end_layout
7003
7004 \begin_layout Standard
7005
7006 \change_inserted 564990737 1671042046
7007
7008 \lang american
7009 The document class 
7010 \family sans
7011 article
7012 \begin_inset space \thinspace{}
7013 \end_inset
7014
7015 (paper)
7016 \family default
7017  provides an alternative to the 
7018 \family typewriter
7019 article.cls
7020 \family default
7021  document class.
7022  It provides similar functionality, but you might prefer this layout with
7023  sans serif sections, headings, and more.
7024 \end_layout
7025
7026 \begin_layout Subsection
7027 Rev\SpecialChar TeX
7028 4
7029 \end_layout
7030
7031 \begin_layout Standard
7032 by 
7033 \noun on
7034 Amir Karger
7035 \end_layout
7036
7037 \begin_layout Standard
7038 \begin_inset VSpace bigskip
7039 \end_inset
7040
7041
7042 \end_layout
7043
7044 \begin_layout Standard
7045 \noindent
7046 The 
7047 \family sans
7048 Revtex
7049 \begin_inset space ~
7050 \end_inset
7051
7052 4
7053 \family default
7054  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7055  4.0 (the 
7056 \begin_inset Formula $\beta$
7057 \end_inset
7058
7059  release of May, 1999) class.
7060 \end_layout
7061
7062 \begin_layout Standard
7063 \SpecialChar LyX
7064  has a 
7065 \family sans
7066 Revtex
7067 \family default
7068  textclass, which works with Rev\SpecialChar TeX
7069  3.1.
7070  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7071  2.09.
7072  That means that it doesn't interact very well with \SpecialChar LyX
7073 , which requires \SpecialChar LaTeX2e
7074 , although
7075  it has been kludged to work.
7076  Since Rev\SpecialChar TeX
7077  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7078 , \SpecialChar LyX
7079  with the
7080  
7081 \family sans
7082 Rev\SpecialChar TeX
7083
7084 \begin_inset space ~
7085 \end_inset
7086
7087 4
7088 \family default
7089  textclass should also be pretty easy to use.
7090 \end_layout
7091
7092 \begin_layout Standard
7093 These documents are supposed to be used in 
7094 \emph on
7095 addition
7096 \emph default
7097  to the Rev\SpecialChar TeX
7098  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7099  macros,
7100  and assume you'll know what to put in the preamble if necessary.
7101 \end_layout
7102
7103 \begin_layout Subsubsection
7104 Installation
7105 \end_layout
7106
7107 \begin_layout Standard
7108 All you need to do is install Rev\SpecialChar TeX
7109  4, as described in the package's README
7110  file.
7111  The package can be found at The Rev\SpecialChar TeX
7112  4 Web Site 
7113 \begin_inset Flex URL
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117
7118 http://publish.aps.org/revtex4/
7119 \end_layout
7120
7121 \end_inset
7122
7123 .
7124  Install it somewhere that \SpecialChar LaTeX
7125  can see it.
7126  Test it by trying to \SpecialChar LaTeX
7127  a short Rev\SpecialChar TeX
7128  4 document in some random directory (i.
7129 \begin_inset space \thinspace{}
7130 \end_inset
7131
7132 e.
7133 \begin_inset space \space{}
7134 \end_inset
7135
7136 not the directory where you installed the class file.) Then, if you reconfigure
7137  \SpecialChar LyX
7138 , it will find the class file and let you use the Rev\SpecialChar TeX
7139 4 textclass.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7144  4 document
7145  using 
7146 \family typewriter
7147 tex2lyx
7148 \family default
7149 , or to use the 
7150 \family sans
7151 Revtex
7152 \begin_inset space ~
7153 \end_inset
7154
7155 4
7156 \family default
7157  template, found in the templates directory.
7158 \end_layout
7159
7160 \begin_layout Subsubsection
7161 Preamble Matter
7162 \end_layout
7163
7164 \begin_layout Standard
7165 Optional arguments to 
7166 \family typewriter
7167
7168 \backslash
7169 documentclass
7170 \family default
7171 , like 
7172 \begin_inset Quotes eld
7173 \end_inset
7174
7175 preprint
7176 \begin_inset Quotes erd
7177 \end_inset
7178
7179  and 
7180 \begin_inset Quotes eld
7181 \end_inset
7182
7183 aps
7184 \begin_inset Quotes erd
7185 \end_inset
7186
7187 , go in the 
7188 \family sans
7189 Extra
7190 \begin_inset space ~
7191 \end_inset
7192
7193 Options
7194 \family default
7195  field in the 
7196 \family sans
7197 Document
7198 \begin_inset space ~
7199 \end_inset
7200
7201 Layout
7202 \family default
7203  dialog, as usual.
7204  Remember that in Rev\SpecialChar TeX
7205 , at least one optional argument is required! 
7206 \end_layout
7207
7208 \begin_layout Standard
7209 Other preamble matter, like 
7210 \family typewriter
7211
7212 \backslash
7213 draft
7214 \family default
7215  etc.
7216 \begin_inset space ~
7217 \end_inset
7218
7219 goes in the 
7220 \family sans
7221 \SpecialChar LaTeX
7222
7223 \begin_inset space ~
7224 \end_inset
7225
7226 Preamble
7227 \family default
7228  dialog, also as usual.
7229 \end_layout
7230
7231 \begin_layout Subsubsection
7232 Layouts
7233 \end_layout
7234
7235 \begin_layout Standard
7236 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7237 4.0.
7238  For example, the Email layout corresponds to 
7239 \family typewriter
7240
7241 \backslash
7242 email{}
7243 \family default
7244 .
7245  Note that (at least as of Rev\SpecialChar TeX
7246  4.0 Beta), the 
7247 \family sans
7248 Address
7249 \family default
7250  and 
7251 \family sans
7252 Affiliation
7253 \family default
7254  layouts are exactly equivalent, so you shouldn't need to use both.
7255 \begin_inset Foot
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 In case you're curious, both were included so that 
7260 \family typewriter
7261 tex2lyx
7262 \family default
7263  would be able to translate both 
7264 \family typewriter
7265
7266 \backslash
7267 address
7268 \family default
7269  and 
7270 \family typewriter
7271
7272 \backslash
7273 affiliation
7274 \family default
7275 .
7276 \end_layout
7277
7278 \end_inset
7279
7280
7281 \end_layout
7282
7283 \begin_layout Subsubsection
7284 Important Notes
7285 \end_layout
7286
7287 \begin_layout Standard
7288 There are a couple of important unique aspects of Rev\SpecialChar TeX
7289  4 which might cause
7290  bugs that will be even more confusing in \SpecialChar LyX
7291 .
7292 \end_layout
7293
7294 \begin_layout Standard
7295 In Rev\SpecialChar TeX
7296 , the 
7297 \family typewriter
7298
7299 \backslash
7300 thanks
7301 \family default
7302  command goes 
7303 \emph on
7304 outside
7305 \emph default
7306  the 
7307 \family typewriter
7308
7309 \backslash
7310 author
7311 \family default
7312  command.
7313  The \SpecialChar LyX
7314  equivalent is that there is a separate Thanks layout.
7315  Do 
7316 \emph on
7317 not
7318 \emph default
7319  write footnotes in the 
7320 \family sans
7321 Author
7322 \family default
7323  layout, or weird things may happen.
7324  See the Rev\SpecialChar TeX
7325  4 documentation for more details.
7326 \end_layout
7327
7328 \begin_layout Standard
7329 Also, the 
7330 \family sans
7331 Author
7332 \begin_inset space ~
7333 \end_inset
7334
7335 Email
7336 \family default
7337
7338 \family sans
7339 Author
7340 \begin_inset space ~
7341 \end_inset
7342
7343 URL
7344 \family default
7345 , and 
7346 \family sans
7347 Thanks
7348 \family default
7349  layouts must be placed 
7350 \emph on
7351 in between
7352 \emph default
7353  the 
7354 \family sans
7355 Author
7356 \family default
7357  layout and the corresponding 
7358 \family sans
7359 Address
7360 \family default
7361  (or equivalent 
7362 \family sans
7363 Affiliation
7364 \family default
7365 ) layout.
7366  If you put the 
7367 \family sans
7368 Thanks
7369 \family default
7370  after the 
7371 \family sans
7372 Address
7373 \family default
7374 , the \SpecialChar LaTeX
7375  won't compile.
7376 \end_layout
7377
7378 \begin_layout Subsection
7379
7380 \change_inserted 564990737 1671042072
7381
7382 \lang american
7383 Springer Journals
7384 \end_layout
7385
7386 \begin_layout Standard
7387
7388 \change_inserted 564990737 1671042072
7389
7390 \lang american
7391 All the 
7392 \family sans
7393 svj*
7394 \family default
7395  classes were replaced in 2013 with a completely new 
7396 \family sans
7397 sr-vorl.cls
7398 \family default
7399 .
7400  This package provides a \SpecialChar LaTeX
7401  class and templates for books to be published
7402  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7403  Research, Springer VS Research, or Springer VS Forschung.
7404  The documentation is available in German from 
7405 \begin_inset CommandInset href
7406 LatexCommand href
7407 name "CTAN"
7408 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7409 literal "false"
7410
7411 \end_inset
7412
7413 .
7414 \end_layout
7415
7416 \begin_layout Section
7417
7418 \change_inserted 564990737 1670439560
7419 Books
7420 \end_layout
7421
7422 \begin_layout Standard
7423
7424 \change_inserted 564990737 1670439581
7425 See also the document classes in the Collections (section
7426 \begin_inset space ~
7427 \end_inset
7428
7429
7430 \begin_inset CommandInset ref
7431 LatexCommand ref
7432 reference "sec:Collections"
7433
7434 \end_inset
7435
7436 ).
7437 \end_layout
7438
7439 \begin_layout Subsection
7440 Memoir
7441 \end_layout
7442
7443 \begin_layout Standard
7444 By 
7445 \noun on
7446 Jürgen Spitzmüller
7447 \end_layout
7448
7449 \begin_layout Subsubsection
7450 Overview
7451 \end_layout
7452
7453 \begin_layout Standard
7454 Memoir is a very powerful and constantly evolving class.
7455  It has been designed with regard to fictional and non-fictional literature.
7456  Its aim is to let the user have maximum control over the typesetting of
7457  his document.
7458  Memoir is based on the standard book class, but it can also emulate the
7459  article class (see below).
7460 \end_layout
7461
7462 \begin_layout Standard
7463 Peter Wilson, the developer of Memoir, is known as the author of lots of
7464  useful packages in the \SpecialChar LaTeX
7465  world.
7466  Most of them have been merged with Memoir.
7467  Therefore, it is much easier to layout the table of contents, appendices,
7468  chapter designs and such.
7469  \SpecialChar LyX
7470 , though, does not support all of these goodies natively.
7471  Some of them might be added to forthcoming releases
7472 \begin_inset Foot
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 You are invited to send suggestions to 
7477 \begin_inset Flex URL
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481
7482 lyx-devel@lists.lyx.org
7483 \end_layout
7484
7485 \end_inset
7486
7487 .
7488 \end_layout
7489
7490 \end_inset
7491
7492 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7493 's framework.
7494  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7495
7496  commands (\SpecialChar TeX
7497  code
7498 \begin_inset Foot
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 Cf.
7503 \begin_inset ERT
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507
7508
7509 \backslash
7510  
7511 \end_layout
7512
7513 \end_inset
7514
7515 section
7516 \begin_inset space ~
7517 \end_inset
7518
7519
7520 \begin_inset CommandInset ref
7521 LatexCommand ref
7522 reference "sec:Inserting-TeX-Code"
7523
7524 \end_inset
7525
7526  for details.
7527 \end_layout
7528
7529 \end_inset
7530
7531 ).
7532  In this section, we can only list those features that are natively supported
7533  by \SpecialChar LyX
7534 .
7535  For detailed descriptions (and for the rest of features) we recommend you
7536  have a look at the detailed manual of the Memoir class
7537 \begin_inset Foot
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 Cf.
7542 \begin_inset ERT
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546
7547
7548 \backslash
7549  
7550 \end_layout
7551
7552 \end_inset
7553
7554
7555 \begin_inset Flex URL
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559
7560 CTAN:/macros/latex/memoir/memman.pdf
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566 \end_layout
7567
7568 \end_inset
7569
7570 , which is not only a user guide for the class, but also both a comprehensive
7571  description on good typesetting and a superb example for good typesetting
7572  itself.
7573 \end_layout
7574
7575 \begin_layout Subsubsection
7576 Basic features and restrictions
7577 \end_layout
7578
7579 \begin_layout Standard
7580 Memoir supports basically all features of the standard book classes.
7581  There are, however, some differences, as follows:
7582 \end_layout
7583
7584 \begin_layout Description
7585 Font
7586 \begin_inset space ~
7587 \end_inset
7588
7589 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7590 \end_layout
7591
7592 \begin_layout Description
7593 Page
7594 \begin_inset space ~
7595 \end_inset
7596
7597 style: The fancy page style is not supported, due to a command clash between
7598  Memoir and the fancyhdr package (they both define a command with the same
7599  name, which confuses \SpecialChar LaTeX
7600 ).
7601  Instead, Memoir comes with a number of its own page styles (see 
7602 \family sans
7603 Document\SpecialChar menuseparator
7604 Settings\SpecialChar menuseparator
7605 Page
7606 \begin_inset space ~
7607 \end_inset
7608
7609 Style
7610 \family default
7611 ).
7612  If you want to use these for the chapter pages, you have to use the command
7613  
7614 \family typewriter
7615
7616 \backslash
7617 chapterstyle
7618 \family default
7619  in the main text or in preamble (e.
7620 \begin_inset space \thinspace{}
7621 \end_inset
7622
7623 g.
7624 \begin_inset space \space{}
7625 \end_inset
7626
7627
7628 \family typewriter
7629
7630 \backslash
7631 chapterstyle{companion}
7632 \family default
7633 ).
7634 \end_layout
7635
7636 \begin_layout Description
7637 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7638  optional argument in the standard classes.
7639  With this, you can specify an alternative version of the title for the
7640  table of contents and the headers (for instance, if the title is too long).
7641  In \SpecialChar LyX
7642 , you can do this via 
7643 \family sans
7644 Insert\SpecialChar menuseparator
7645 Short
7646 \begin_inset space ~
7647 \end_inset
7648
7649 Title
7650 \family default
7651  at the beginning of a chapter/section.
7652  Memoir features a second optional argument and thus separates the table
7653  of contents from the header.
7654  You can define three variants of a title with this: one for the main text,
7655  one for the table of contents, and one for the headers.
7656  \SpecialChar LyX
7657  makes these available in form of specific 
7658 \family sans
7659 Short Title
7660 \family default
7661  variants in the 
7662 \family sans
7663 Insert
7664 \family default
7665  menu.
7666 \end_layout
7667
7668 \begin_layout Description
7669 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7670  of contents, the list of figures and the list of table start a new page
7671  automatically.
7672  Memoir does not follow this route.
7673  You have to insert a page break yourself, if you want to have one.
7674 \end_layout
7675
7676 \begin_layout Description
7677 Titlepage: For some unknown reason, Memoir uses pagination on the title
7678  page (in the standard classes, title pages are 
7679 \begin_inset Quotes eld
7680 \end_inset
7681
7682 empty
7683 \begin_inset Quotes erd
7684 \end_inset
7685
7686 ).
7687  If you want an empty title page, type 
7688 \family typewriter
7689
7690 \backslash
7691 aliaspagestyle{title}{empty}
7692 \family default
7693  in the preamble.
7694 \end_layout
7695
7696 \begin_layout Description
7697 Article: With the class option 
7698 \emph on
7699 article
7700 \emph default
7701  (to be inserted in 
7702 \family sans
7703 Document\SpecialChar menuseparator
7704 Settings\SpecialChar menuseparator
7705 Class Settings\SpecialChar menuseparator
7706 Custom
7707 \begin_inset space ~
7708 \end_inset
7709
7710 Options
7711 \family default
7712 ), you can emulate article style.
7713  That is, counters (footnotes, figures, tables etc.) will not be reset on
7714  new chapters, chapters don't start a new page (but are—in contrary to 
7715 \begin_inset Quotes eld
7716 \end_inset
7717
7718 real
7719 \begin_inset Quotes erd
7720 \end_inset
7721
7722  article classes—still allowed), parts, though, use their own page, as in
7723  book.
7724 \end_layout
7725
7726 \begin_layout Description
7727 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7728  font commands, which have been used in the old \SpecialChar LaTeX
7729  version 2.09 (e.
7730 \begin_inset space \thinspace{}
7731 \end_inset
7732
7733 g.
7734 \begin_inset space \space{}
7735 \end_inset
7736
7737
7738 \family typewriter
7739
7740 \backslash
7741 rm
7742 \family default
7743
7744 \family typewriter
7745
7746 \backslash
7747 it
7748 \family default
7749 ).
7750  It produces an error and stops \SpecialChar LaTeX
7751  whenever such a command appears.
7752  The class option 
7753 \emph on
7754 oldfontcommands
7755 \emph default
7756  reallows the commands and spits out warnings instead (which does at least
7757  not stop \SpecialChar LaTeX
7758 ).
7759  Since a lot of packages and particularly Bib\SpecialChar TeX
7760  style files are still using
7761  those commands, we have decided to use this option by default.
7762 \end_layout
7763
7764 \begin_layout Subsubsection
7765 Extra features
7766 \end_layout
7767
7768 \begin_layout Standard
7769 We will only describe the features supported by \SpecialChar LyX
7770  (which is not much currently).
7771  Please consult the Memoir manual
7772 \begin_inset Foot
7773 status collapsed
7774
7775 \begin_layout Plain Layout
7776 Cf.
7777 \begin_inset ERT
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781
7782
7783 \backslash
7784  
7785 \end_layout
7786
7787 \end_inset
7788
7789
7790 \begin_inset Flex URL
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794
7795 CTAN:/macros/latex/memoir/memman.pdf
7796 \end_layout
7797
7798 \end_inset
7799
7800 .
7801 \end_layout
7802
7803 \end_inset
7804
7805  for details.
7806 \end_layout
7807
7808 \begin_layout Description
7809 Abstract: You may wonder why an abstract is an extra feature.
7810  Well, it is in book class.
7811  Usually books don't have abstracts.
7812  Memoir, however, has.
7813  You can use it wherever and how often you like.
7814 \end_layout
7815
7816 \begin_layout Description
7817 Chapterprecis: You may know this older typesetting style: The contents of
7818  a chapter are summarized below the title and also in the table of contents
7819  (e.
7820 \begin_inset space \thinspace{}
7821 \end_inset
7822
7823 g.
7824 \begin_inset space \space{}
7825 \end_inset
7826
7827
7828 \emph on
7829 Our hero arrives in Troia; he loses some friends; he finds others
7830 \emph default
7831 ).
7832  Chapterprecis does exactly this.
7833  It is therefore only sensible below a chapter.
7834 \end_layout
7835
7836 \begin_layout Description
7837 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7838  The epigraph environment provides an elegant way of typesetting such a
7839  motto.
7840  The motto itself (text) and its (optional) author (source) are divided
7841  by a short line.
7842  The author (source) can be inserted via 
7843 \family sans
7844 Insert\SpecialChar menuseparator
7845 Epigraph Source
7846 \family default
7847 \emph on
7848 .
7849 \end_layout
7850
7851 \begin_layout Description
7852 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7853  complex figurative poems).
7854  \SpecialChar LyX
7855  can only support a few of them.
7856  One is poemtitle, which is a centered title for poems, which will also
7857  be added to the table of contents (verse is the standard environment for
7858  poems.
7859  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7860  code,
7861  because they have to be nested inside regular verse environments, which
7862  is not possible with \SpecialChar LyX
7863 ).
7864 \end_layout
7865
7866 \begin_layout Description
7867 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7868 \end_layout
7869
7870 \begin_layout Section
7871
7872 \change_inserted 564990737 1670439605
7873 Curricula vitarum
7874 \end_layout
7875
7876 \begin_layout Section
7877
7878 \change_inserted 564990737 1671041968
7879 Letters
7880 \end_layout
7881
7882 \begin_layout Subsection
7883
7884 \change_inserted 564990737 1671041970
7885
7886 \lang american
7887 Din-Brief
7888 \end_layout
7889
7890 \begin_layout Standard
7891
7892 \change_inserted 564990737 1671041970
7893
7894 \lang american
7895 The document class 
7896 \family sans
7897 Din-Brief
7898 \family default
7899  provides the 
7900 \family typewriter
7901 dinbrief.cls
7902 \family default
7903  document class for writing letters according to the 
7904 \emph on
7905 Deutsches Institut für Normung
7906 \emph default
7907  conventions.
7908  The file 
7909 \emph on
7910 dinbrief.lyx
7911 \emph default
7912  in the menu 
7913 \family sans
7914 \bar under
7915 F
7916 \bar default
7917 ile\SpecialChar menuseparator
7918 New
7919 \begin_inset space ~
7920 \end_inset
7921
7922 fro
7923 \bar under
7924 m
7925 \bar default
7926
7927 \begin_inset space ~
7928 \end_inset
7929
7930 Template
7931 \family default
7932  offers guidance on its use.
7933  The documentation is available from 
7934 \begin_inset CommandInset href
7935 LatexCommand href
7936 name "CTAN"
7937 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
7938 literal "false"
7939
7940 \end_inset
7941
7942 .
7943 \end_layout
7944
7945 \begin_layout Section
7946
7947 \change_inserted 564990737 1670439660
7948 Presentations
7949 \end_layout
7950
7951 \begin_layout Subsection
7952 Foils [aka 
7953 \family sans
7954 Foil\SpecialChar TeX
7955
7956 \family default
7957 ]
7958 \begin_inset CommandInset label
7959 LatexCommand label
7960 name "sec:foiltex"
7961
7962 \end_inset
7963
7964
7965 \end_layout
7966
7967 \begin_layout Standard
7968 by 
7969 \noun on
7970 Allan Rae
7971 \end_layout
7972
7973 \begin_layout Subsubsection
7974 Introduction
7975 \end_layout
7976
7977 \begin_layout Standard
7978 This section describes how to use \SpecialChar LyX
7979  to make slides for overhead projectors.
7980  There are two document classes that can do this: the default slides class
7981  and the 
7982 \family sans
7983 Foil\SpecialChar TeX
7984
7985 \family default
7986  slides class.
7987  This section documents the latter.
7988 \end_layout
7989
7990 \begin_layout Standard
7991 I'm going to say this again, nice and clear, so that there's no misunderstanding
7992 :
7993 \end_layout
7994
7995 \begin_layout Standard
7996 \begin_inset VSpace bigskip
7997 \end_inset
7998
7999
8000 \end_layout
8001
8002 \begin_layout Standard
8003 \align center
8004
8005 \size large
8006 This section documents the class 
8007 \begin_inset Quotes eld
8008 \end_inset
8009
8010
8011 \family sans
8012 FoilTeX
8013 \family default
8014
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018  
8019 \emph on
8020 only.
8021 \end_layout
8022
8023 \begin_layout Standard
8024 \begin_inset VSpace bigskip
8025 \end_inset
8026
8027
8028 \end_layout
8029
8030 \begin_layout Standard
8031 If you're looking for the documentation for 
8032 \begin_inset Quotes eld
8033 \end_inset
8034
8035
8036 \family sans
8037 slides (default)
8038 \family default
8039
8040 \begin_inset Quotes erd
8041 \end_inset
8042
8043 , check out section
8044 \begin_inset space ~
8045 \end_inset
8046
8047
8048 \begin_inset CommandInset ref
8049 LatexCommand ref
8050 reference "sec:slitex"
8051
8052 \end_inset
8053
8054 .
8055  If your machine doesn't have the 
8056 \family sans
8057 foils
8058 \family default
8059  class 
8060 \family sans
8061 FoilTeX
8062 \family default
8063  installed, you'll probably have to use the default 
8064 \family sans
8065 slides
8066 \family default
8067  class, which isn't quite as good as 
8068 \family sans
8069 foils.
8070 \end_layout
8071
8072 \begin_layout Standard
8073 The 
8074 \family sans
8075 foils
8076 \family default
8077  class is designed for use with version
8078 \begin_inset space ~
8079 \end_inset
8080
8081 2.1 of the 
8082 \family sans
8083 foils.cls
8084 \family default
8085  \SpecialChar LaTeX
8086  class file which is now an integral part of \SpecialChar LaTeX2e
8087 .
8088 \end_layout
8089
8090 \begin_layout Subsubsection
8091 Getting Started
8092 \end_layout
8093
8094 \begin_layout Standard
8095 Obviously, to use this document class, you need to select 
8096 \family sans
8097 FoilTeX
8098 \family default
8099  from the 
8100 \family sans
8101 Class
8102 \family default
8103  entry in the 
8104 \family sans
8105 Document
8106 \begin_inset space ~
8107 \end_inset
8108
8109 Layout
8110 \family default
8111  dialog.
8112  There are some settings in the 
8113 \family sans
8114 Document
8115 \begin_inset space ~
8116 \end_inset
8117
8118 Layout
8119 \family default
8120  dialog that you should know about that are specific to this class:
8121 \end_layout
8122
8123 \begin_layout Itemize
8124 Don't change the options 
8125 \family sans
8126 Sides
8127 \family default
8128  and 
8129 \family sans
8130 Columns
8131 \family default
8132  on the 
8133 \family sans
8134 Document
8135 \begin_inset space ~
8136 \end_inset
8137
8138 Layout
8139 \family default
8140  dialog.
8141  They're ignored by the 
8142 \family sans
8143 foils
8144 \family default
8145  class.
8146 \end_layout
8147
8148 \begin_layout Itemize
8149 The default font size is 20
8150 \begin_inset space \thinspace{}
8151 \end_inset
8152
8153 pt with the other options being 17
8154 \begin_inset space \thinspace{}
8155 \end_inset
8156
8157 pt, 25
8158 \begin_inset space \thinspace{}
8159 \end_inset
8160
8161 pt and 30
8162 \begin_inset space \thinspace{}
8163 \end_inset
8164
8165 pt.
8166 \end_layout
8167
8168 \begin_layout Itemize
8169 The default font is 
8170 \family sans
8171 sans
8172 \family default
8173  
8174 \family sans
8175 serif
8176 \family default
8177  but all math equations are still typeset in the usual roman font.
8178 \end_layout
8179
8180 \begin_layout Itemize
8181
8182 \family sans
8183 Foil\SpecialChar TeX
8184
8185 \family default
8186  supports A4 and Letter paper sizes as well as a special size for working
8187  with 35
8188 \begin_inset space \thinspace{}
8189 \end_inset
8190
8191 mm slides.
8192  It doesn't support A5, B5, legal or executive paper sizes.
8193 \end_layout
8194
8195 \begin_layout Itemize
8196 Don't bother changing the 
8197 \family sans
8198 Float Placement
8199 \family default
8200  settings because they are ignored anyway.
8201  All floats appear where they are defined in the text.
8202 \end_layout
8203
8204 \begin_layout Itemize
8205 The 
8206 \family sans
8207 Pagestyle
8208 \family default
8209  setting behaves a bit differently for this class.
8210  
8211 \family sans
8212 Foil\SpecialChar TeX
8213
8214 \family default
8215  provides extensive footer and header capabilities including a user-defined
8216  logo.
8217  See section
8218 \begin_inset space ~
8219 \end_inset
8220
8221
8222 \begin_inset CommandInset ref
8223 LatexCommand ref
8224 reference "sec:foilfoot"
8225
8226 \end_inset
8227
8228  for more details.
8229  The title page is treated differently to all other pages in the document
8230  and is 
8231 \emph on
8232 always
8233 \emph default
8234  unnumbered and 
8235 \emph on
8236 always
8237 \emph default
8238  has the logo centered at the bottom of the page (if one is defined).
8239  The possible page style choices and what they do are as follows:
8240 \end_layout
8241
8242 \begin_deeper
8243 \begin_layout Labeling
8244 \labelwidthstring MMMMMMM
8245
8246 \family sans
8247 \series bold
8248 empty
8249 \family default
8250 \series default
8251  The final output contains no page numbers, or other headers or footers
8252  (except footnotes of course).
8253  
8254 \end_layout
8255
8256 \begin_layout Labeling
8257 \labelwidthstring MMMMMMM
8258
8259 \family sans
8260 \series bold
8261 plain
8262 \family default
8263 \series default
8264  The final output contains page numbers centered at the bottom of the page.
8265  No other headings or footers (other than footnotes).
8266 \end_layout
8267
8268 \begin_layout Labeling
8269 \labelwidthstring MMMMMMM
8270
8271 \series bold
8272 foilheadings
8273 \series default
8274  Page numbers in lower right corner.
8275  Additional headers and footers are also shown.
8276  This is also the default.
8277 \end_layout
8278
8279 \begin_layout Labeling
8280 \labelwidthstring MMMMMMM
8281
8282 \series bold
8283 fancy
8284 \series default
8285  Gives you access to the 
8286 \family sans
8287 fancyheadings
8288 \family default
8289  package although its use with 
8290 \family sans
8291 Foil\SpecialChar TeX
8292
8293 \family default
8294  is discouraged by the writer of the 
8295 \family sans
8296 Foil\SpecialChar TeX
8297
8298 \family default
8299  package because of some potential page layout clashes.
8300 \end_layout
8301
8302 \end_deeper
8303 \begin_layout Paragraph
8304 Extra Options
8305 \end_layout
8306
8307 \begin_layout Standard
8308 The following options may be used in the extra class options in the 
8309 \family sans
8310 Document\SpecialChar menuseparator
8311 Settings
8312 \family default
8313  dialog.
8314 \end_layout
8315
8316 \begin_layout Labeling
8317 \labelwidthstring MMMMMMx
8318
8319 \series bold
8320 35mmSlide
8321 \series default
8322  This sets up the page layout for 7.33
8323 \begin_inset space \thinspace{}
8324 \end_inset
8325
8326 in by 11
8327 \begin_inset space \thinspace{}
8328 \end_inset
8329
8330 in paper, which is about the same aspect ratio as a 35
8331 \begin_inset space \thinspace{}
8332 \end_inset
8333
8334 mm slide, making it a bit easier to work with this medium.
8335 \end_layout
8336
8337 \begin_layout Labeling
8338 \labelwidthstring MMMMMMx
8339
8340 \series bold
8341 headrule
8342 \series default
8343  Places a rule across the page below the header on every page except the
8344  title page.
8345 \end_layout
8346
8347 \begin_layout Labeling
8348 \labelwidthstring MMMMMMx
8349
8350 \series bold
8351 footrule
8352 \series default
8353  Places a rule across the page above the footer on every page except the
8354  title page.
8355 \end_layout
8356
8357 \begin_layout Labeling
8358 \labelwidthstring MMMMMMx
8359
8360 \series bold
8361 dvips
8362 \series default
8363  This is automatically set each time you create a new 
8364 \family sans
8365 foils
8366 \family default
8367  document.
8368  This option tells 
8369 \family sans
8370 Foil\SpecialChar TeX
8371
8372 \family default
8373  to use the dvips driver to rotate those pages that are set as landscape
8374  foils.
8375 \end_layout
8376
8377 \begin_layout Labeling
8378 \labelwidthstring MMMMMMx
8379
8380 \series bold
8381 landscape
8382 \series default
8383  Simply changes the page dimensions to those of a landscape page but doesn't
8384  do any rotation.
8385  Thus if you use this option you need to use an external program to rotate
8386  each page or feed your paper through your printer as landscape.
8387  Note that this option effectively reverses the roles of the 
8388 \family sans
8389 Foilhead
8390 \family default
8391  and 
8392 \family sans
8393 Rotatefoilhead
8394 \family default
8395  environments (don't worry these are described in the next section).
8396 \end_layout
8397
8398 \begin_layout Labeling
8399 \labelwidthstring MMMMMMx
8400
8401 \series bold
8402 leqno
8403 \series default
8404  Equation numbers on the left.
8405 \end_layout
8406
8407 \begin_layout Labeling
8408 \labelwidthstring MMMMMMx
8409
8410 \series bold
8411 fleqn
8412 \series default
8413  Flush-left equations.
8414 \end_layout
8415
8416 \begin_layout Subsubsection
8417 Supported Environments
8418 \end_layout
8419
8420 \begin_layout Standard
8421 Most of the environments commonly supported in other classes are also supported
8422  by the 
8423 \family sans
8424 foils
8425 \family default
8426  class.
8427  There are several additional environments provided by 
8428 \family sans
8429 Foil\SpecialChar TeX
8430
8431 \family default
8432  as well as a couple added by \SpecialChar LyX
8433 .
8434  The following environments are shared with other classes:
8435 \end_layout
8436
8437 \begin_layout Standard
8438 \begin_inset Flex Multiple Columns
8439 status open
8440
8441 \begin_layout Itemize
8442
8443 \family sans
8444 Standard
8445 \end_layout
8446
8447 \begin_layout Itemize
8448
8449 \family sans
8450 Itemize
8451 \end_layout
8452
8453 \begin_layout Itemize
8454
8455 \family sans
8456 Enumerate
8457 \end_layout
8458
8459 \begin_layout Itemize
8460
8461 \family sans
8462 Description
8463 \end_layout
8464
8465 \begin_layout Itemize
8466
8467 \family sans
8468 List
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 \SpecialChar LyX
8475 -Code
8476 \end_layout
8477
8478 \begin_layout Itemize
8479
8480 \family sans
8481 Verse
8482 \end_layout
8483
8484 \begin_layout Itemize
8485
8486 \family sans
8487 Quote
8488 \end_layout
8489
8490 \begin_layout Itemize
8491
8492 \family sans
8493 Quotation
8494 \end_layout
8495
8496 \begin_layout Itemize
8497
8498 \family sans
8499 TitleAuthor
8500 \end_layout
8501
8502 \begin_layout Itemize
8503
8504 \family sans
8505 Date
8506 \end_layout
8507
8508 \begin_layout Itemize
8509
8510 \family sans
8511 Abstract
8512 \end_layout
8513
8514 \begin_layout Itemize
8515
8516 \family sans
8517 Bibliography
8518 \end_layout
8519
8520 \begin_layout Itemize
8521
8522 \family sans
8523 Address
8524 \end_layout
8525
8526 \begin_layout Itemize
8527
8528 \family sans
8529 RightAddress
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Standard
8538 That is, all the major environments apart from the sectioning environments.
8539  Since foils are essentially self-contained sections, with a title and body,
8540  
8541 \family sans
8542 Foil\SpecialChar TeX
8543
8544 \family default
8545  provides specific commands for starting new foils and these are:
8546 \end_layout
8547
8548 \begin_layout Itemize
8549
8550 \family sans
8551 Foilhead
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family sans
8557 Rotatefoilhead
8558 \end_layout
8559
8560 \begin_layout Standard
8561 \SpecialChar LyX
8562  also provides slightly modified versions of these two environments called:
8563 \end_layout
8564
8565 \begin_layout Itemize
8566
8567 \family sans
8568 ShortFoilhead
8569 \end_layout
8570
8571 \begin_layout Itemize
8572
8573 \family sans
8574 ShortRotatefoilhead
8575 \end_layout
8576
8577 \begin_layout Standard
8578 and the differences will be explained in the next section.
8579 \end_layout
8580
8581 \begin_layout Standard
8582 Since foils are often used in presenting ideas or new theorems and such
8583  
8584 \family sans
8585 Foil\SpecialChar TeX
8586
8587 \family default
8588  also provides a comprehensive box of goodies for presenting them:
8589 \end_layout
8590
8591 \begin_layout Standard
8592 \begin_inset Flex Multiple Columns
8593 status open
8594
8595 \begin_layout Itemize
8596
8597 \family sans
8598 Theorem
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family sans
8604 Lemma
8605 \end_layout
8606
8607 \begin_layout Itemize
8608
8609 \family sans
8610 Corollary
8611 \end_layout
8612
8613 \begin_layout Itemize
8614
8615 \family sans
8616 Proposition
8617 \end_layout
8618
8619 \begin_layout Itemize
8620
8621 \family sans
8622 Definition
8623 \end_layout
8624
8625 \begin_layout Itemize
8626
8627 \family sans
8628 Proof
8629 \end_layout
8630
8631 \begin_layout Itemize
8632
8633 \family sans
8634 Theorem*
8635 \end_layout
8636
8637 \begin_layout Itemize
8638
8639 \family sans
8640 Lemma*
8641 \end_layout
8642
8643 \begin_layout Itemize
8644
8645 \family sans
8646 Corollary*
8647 \end_layout
8648
8649 \begin_layout Itemize
8650
8651 \family sans
8652 Proposition*
8653 \end_layout
8654
8655 \begin_layout Itemize
8656
8657 \family sans
8658 Definition*
8659 \end_layout
8660
8661 \end_inset
8662
8663
8664 \end_layout
8665
8666 \begin_layout Standard
8667 The starred versions are unnumbered while the unstarred versions are numbered.
8668  There are also two list environments added by \SpecialChar LyX
8669  and these are:
8670 \end_layout
8671
8672 \begin_layout Itemize
8673
8674 \family sans
8675 TickList
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \family sans
8681 CrossList
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \family sans
8687 Foil\SpecialChar TeX
8688
8689 \family default
8690  provides some powerful header and footer capabilities that are best set
8691  in the preamble although they may be set at any point in a document.
8692  If you want to change these settings in your document the best place to
8693  do so is at the very top of a foil, i.
8694 \begin_inset space \thinspace{}
8695 \end_inset
8696
8697 e.
8698 \emph on
8699
8700 \begin_inset space \space{}
8701 \end_inset
8702
8703
8704 \emph default
8705 straight after the foilhead.
8706 \end_layout
8707
8708 \begin_layout Standard
8709 For this purpose, the following command styles are provided [
8710 \shape smallcaps
8711 Martin Vermeer
8712 \shape default
8713 ]:
8714 \end_layout
8715
8716 \begin_layout Standard
8717 \begin_inset Flex Multiple Columns
8718 status open
8719
8720 \begin_layout Itemize
8721
8722 \family sans
8723 My
8724 \begin_inset space ~
8725 \end_inset
8726
8727 Logo
8728 \end_layout
8729
8730 \begin_layout Itemize
8731
8732 \family sans
8733 Restriction
8734 \end_layout
8735
8736 \begin_layout Itemize
8737
8738 \family sans
8739 Right
8740 \begin_inset space ~
8741 \end_inset
8742
8743 Footer
8744 \end_layout
8745
8746 \begin_layout Itemize
8747
8748 \family sans
8749 Right
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Header
8754 \end_layout
8755
8756 \begin_layout Itemize
8757
8758 \family sans
8759 Left
8760 \begin_inset space ~
8761 \end_inset
8762
8763 Header
8764 \end_layout
8765
8766 \begin_deeper
8767 \begin_layout Plain Layout
8768 \begin_inset space ~
8769 \end_inset
8770
8771
8772 \end_layout
8773
8774 \end_deeper
8775 \end_inset
8776
8777
8778 \end_layout
8779
8780 \begin_layout Standard
8781 There are also a few commands provided by 
8782 \family sans
8783 Foil\SpecialChar TeX
8784
8785 \family default
8786  that aren't directly supported by \SpecialChar LyX
8787  but I'll tell you what they do and how
8788  to use them in section
8789 \begin_inset space ~
8790 \end_inset
8791
8792
8793 \begin_inset CommandInset ref
8794 LatexCommand ref
8795 reference "sec:unsuppfoils"
8796
8797 \end_inset
8798
8799 .
8800 \end_layout
8801
8802 \begin_layout Subsubsection
8803 Building a Set of Foils
8804 \end_layout
8805
8806 \begin_layout Standard
8807 This section will give a simple introduction to using the different environments
8808  to build a set of foils.
8809  If you want to see an example set of foils, take a look at the 
8810 \family typewriter
8811 Foils.lyx
8812 \family default
8813  file you find in \SpecialChar LyX
8814 's 
8815 \family typewriter
8816 examples
8817 \family default
8818  folder.
8819 \end_layout
8820
8821 \begin_layout Paragraph
8822 Give It a Title Page
8823 \end_layout
8824
8825 \begin_layout Standard
8826 Unlike other classes that provide 
8827 \family sans
8828 Title
8829 \family default
8830
8831 \family sans
8832 Author
8833 \family default
8834
8835 \family sans
8836 Date
8837 \family default
8838  and 
8839 \family sans
8840 Abstract
8841 \family default
8842  environments, 
8843 \family sans
8844 foils
8845 \family default
8846  creates the title on a page of its own.
8847  If you leave out the 
8848 \family sans
8849 Date
8850 \family default
8851  environment \SpecialChar LaTeX
8852  will substitute the current date (every time you regenerate
8853  the output).
8854 \end_layout
8855
8856 \begin_layout Paragraph
8857 Start a New Foil
8858 \end_layout
8859
8860 \begin_layout Standard
8861 As I mentioned earlier, there are four ways of starting a new foil.
8862  For portrait foils you should use 
8863 \family sans
8864 Foilhead
8865 \family default
8866  or 
8867 \family sans
8868 ShortFoilhead.
8869
8870 \family default
8871  The difference between these two environments is the amount of space between
8872  the title of the foil (the foilhead) and the body of the foil.
8873 \end_layout
8874
8875 \begin_layout Standard
8876 Landscape foils are generated using the 
8877 \family sans
8878 Rotatefoilhead
8879 \family default
8880  and 
8881 \family sans
8882 ShortRotatefoilhead
8883 \family default
8884  environments.
8885  Again the only difference is the spacing between foilhead and body.
8886  Both of the short versions have 0.5
8887 \begin_inset space ~
8888 \end_inset
8889
8890 inches less separation between the foilhead and the body.
8891  
8892 \end_layout
8893
8894 \begin_layout Standard
8895 One problem with the support for landscape foils is the requirement that
8896  you have to use the 
8897 \family typewriter
8898 dvips
8899 \family default
8900  driver to generate the PostScript output otherwise the foils won't be rotated.
8901  It is possible to get landscape foils even if you haven't got the 
8902 \family typewriter
8903 dvips
8904 \family default
8905  driver provided you can feed your foils sideways through your printer ;-)
8906 \end_layout
8907
8908 \begin_layout Paragraph
8909 Theorems, Lemmas, Proofs and more
8910 \end_layout
8911
8912 \begin_layout Standard
8913 You can't have two of the same type of these environments directly following
8914  each other.
8915  If you use a normal paragraph break, , you will just be extending the previous
8916  environment as if you had merged the two environments together.
8917  Rather than that, you need to insert a so-called separator.
8918  Please refer to the section entitled 
8919 \emph on
8920 Separate Nestings
8921 \emph default
8922  in the 
8923 \emph on
8924 User's Guide
8925 \emph default
8926 .
8927 \end_layout
8928
8929 \begin_layout Paragraph
8930 Lists
8931 \end_layout
8932
8933 \begin_layout Standard
8934 You get all the commonly supported list styles found in other classes as
8935  well as two new ones.
8936  I'll only describe the new ones here.
8937  If you want to find out more about the other list environments check out
8938  the 
8939 \emph on
8940 User's Guide.
8941
8942 \emph default
8943  If you intend to use itemized lists you might also want to read about the
8944  
8945 \family sans
8946 Itemize
8947 \begin_inset space ~
8948 \end_inset
8949
8950 Bullet
8951 \begin_inset space ~
8952 \end_inset
8953
8954 Selection
8955 \family default
8956  dialog described above in section
8957 \begin_inset space ~
8958 \end_inset
8959
8960
8961 \begin_inset CommandInset ref
8962 LatexCommand ref
8963 reference "sec:bullet"
8964
8965 \end_inset
8966
8967 .
8968 \end_layout
8969
8970 \begin_layout Standard
8971 The two new list styles, 
8972 \family sans
8973 TickList
8974 \family default
8975  and 
8976 \family sans
8977 CrossList
8978 \family default
8979 , are designed to make it easier for you to create lists of do's and don'ts
8980  or right and wrong by providing dedicated environments that use a tick
8981  or a cross as the label of the list.
8982  These lists are in fact dedicated variants of the 
8983 \family sans
8984 Itemize
8985 \family default
8986  environment.
8987  They do however require that you have the 
8988 \family typewriter
8989 psnfss
8990 \family default
8991  packages installed.
8992 \end_layout
8993
8994 \begin_layout Paragraph
8995 Figures and Tables
8996 \end_layout
8997
8998 \begin_layout Standard
8999
9000 \family sans
9001 Foil\SpecialChar TeX
9002
9003 \family default
9004  redefines the floating tables and figures so that they appear exactly where
9005  they are in the text rather than pushing them to the top of the page or
9006  to some user specified location.
9007  In fact if you change the float placement settings they are simply ignored.
9008 \end_layout
9009
9010 \begin_layout Paragraph
9011 Page Headers and Footers
9012 \begin_inset CommandInset label
9013 LatexCommand label
9014 name "sec:foilfoot"
9015
9016 \end_inset
9017
9018
9019 \end_layout
9020
9021 \begin_layout Standard
9022
9023 \family sans
9024 My
9025 \begin_inset space ~
9026 \end_inset
9027
9028 Logo
9029 \family default
9030  and 
9031 \family sans
9032 Restriction
9033 \family default
9034  are two commands used to control the left-footer text string.
9035  The first is meant to allow you to include a graphic logo on your foils
9036  and defaults to 
9037 \begin_inset Quotes eld
9038 \end_inset
9039
9040 -Typeset by 
9041 \family sans
9042 Foil\SpecialChar TeX
9043
9044 \family default
9045 -
9046 \begin_inset Quotes erd
9047 \end_inset
9048
9049 .
9050  While the second is meant to provide a classification for the audience,
9051  
9052 \emph on
9053 e.
9054 \begin_inset space \thinspace{}
9055 \end_inset
9056
9057 g.
9058 \emph default
9059
9060 \begin_inset space \space{}
9061 \end_inset
9062
9063 Confidential.
9064  It is empty by default.
9065 \end_layout
9066
9067 \begin_layout Standard
9068 The remaining page corners can be filled by 
9069 \family sans
9070 Right
9071 \begin_inset space ~
9072 \end_inset
9073
9074 Footer
9075 \family default
9076  (which defaults to page numbers), 
9077 \family sans
9078 Right
9079 \begin_inset space ~
9080 \end_inset
9081
9082 Header
9083 \family default
9084  (top right) and 
9085 \family sans
9086 Left
9087 \begin_inset space ~
9088 \end_inset
9089
9090 Header
9091 \family default
9092  (top left).
9093 \end_layout
9094
9095 \begin_layout Subsubsection
9096 Unsupported 
9097 \family sans
9098 Foil\SpecialChar TeX
9099
9100 \family default
9101  Goodies
9102 \begin_inset CommandInset label
9103 LatexCommand label
9104 name "sec:unsuppfoils"
9105
9106 \end_inset
9107
9108
9109 \end_layout
9110
9111 \begin_layout Standard
9112 All the commands mentioned below need to be set in a 
9113 \family sans
9114 \SpecialChar LaTeX
9115
9116 \family default
9117  environment or as 
9118 \family sans
9119 \SpecialChar TeX
9120
9121 \family default
9122  within another environment.
9123 \end_layout
9124
9125 \begin_layout Paragraph
9126 Lengths
9127 \end_layout
9128
9129 \begin_layout Standard
9130 All lengths are adjusted using the 
9131 \family typewriter
9132
9133 \backslash
9134 setlength{
9135 \family default
9136 \emph on
9137 lengthname
9138 \family typewriter
9139 \emph default
9140 }{
9141 \family default
9142 \emph on
9143 newlength
9144 \family typewriter
9145 \emph default
9146 }
9147 \family default
9148  command.
9149  Where 
9150 \emph on
9151 lengthname
9152 \emph default
9153  should be replaced by the name given to the length you want to change and
9154  
9155 \emph on
9156 newlength
9157 \emph default
9158  is the length value.
9159  All lengths should be specified in units of length such as inches (
9160 \family typewriter
9161 in
9162 \family default
9163 ), millimeters (
9164 \family typewriter
9165 mm
9166 \family default
9167 ) or points (
9168 \family typewriter
9169 pt
9170 \family default
9171 ) or relative to some document or font-based length such as 
9172 \family typewriter
9173
9174 \backslash
9175 textwidth
9176 \family default
9177 .
9178  
9179 \end_layout
9180
9181 \begin_layout Standard
9182 It's possible to change the spacing between a foilhead and the body of the
9183  foil by adjusting the length specified by 
9184 \family typewriter
9185
9186 \backslash
9187 foilheadskip
9188 \family default
9189 .
9190  For example, to make 
9191 \emph on
9192 all
9193 \emph default
9194  foilheads 0.5
9195 \begin_inset space \space{}
9196 \end_inset
9197
9198 in closer to their bodies put the following in the preamble: 
9199 \family typewriter
9200
9201 \backslash
9202 setlength{
9203 \backslash
9204 foilheadskip}{-0.5in}
9205 \end_layout
9206
9207 \begin_layout Standard
9208 The spacings around floats can be adjusted by setting these lengths:
9209 \end_layout
9210
9211 \begin_layout Labeling
9212 \labelwidthstring MMMMMMMMMMM
9213
9214 \family typewriter
9215
9216 \backslash
9217 abovefloatskip
9218 \family default
9219  Separation between the text and the top of the float
9220 \end_layout
9221
9222 \begin_layout Labeling
9223 \labelwidthstring MMMMMMMMMMM
9224
9225 \family typewriter
9226
9227 \backslash
9228 abovecaptionskip
9229 \family default
9230  Separation between the float and the caption
9231 \end_layout
9232
9233 \begin_layout Labeling
9234 \labelwidthstring MMMMMMMMMMM
9235
9236 \family typewriter
9237
9238 \backslash
9239 belowcaptionskip
9240 \family default
9241  Separation between the caption and the following text
9242 \end_layout
9243
9244 \begin_layout Labeling
9245 \labelwidthstring MMMMMMMMMMM
9246
9247 \family typewriter
9248
9249 \backslash
9250 captionwidth
9251 \family default
9252  You can make the captions narrower than the surrounding text by adjusting
9253  this length.
9254  Best done relative to 
9255 \family typewriter
9256
9257 \backslash
9258 textwidth
9259 \family default
9260 .
9261 \end_layout
9262
9263 \begin_layout Standard
9264 There are also several title page related lengths that you may find useful
9265  if you have a long title or several authors:
9266 \end_layout
9267
9268 \begin_layout Labeling
9269 \labelwidthstring MMMMMMMMMMM
9270
9271 \family typewriter
9272
9273 \backslash
9274 abovetitleskip
9275 \family default
9276  Separation from headers to 
9277 \family sans
9278 Title
9279 \end_layout
9280
9281 \begin_layout Labeling
9282 \labelwidthstring MMMMMMMMMMM
9283
9284 \family typewriter
9285
9286 \backslash
9287 titleauthorskip
9288 \family default
9289  between 
9290 \family sans
9291 Title
9292 \family default
9293  and 
9294 \family sans
9295 Author
9296 \family default
9297  environments
9298 \end_layout
9299
9300 \begin_layout Labeling
9301 \labelwidthstring MMMMMMMMMMM
9302
9303 \family typewriter
9304
9305 \backslash
9306 authorauthorskip
9307 \family default
9308  between multiple 
9309 \family sans
9310 Author
9311 \family default
9312  lines
9313 \end_layout
9314
9315 \begin_layout Labeling
9316 \labelwidthstring MMMMMMMMMMM
9317
9318 \family typewriter
9319
9320 \backslash
9321 authordateskip
9322 \family default
9323  between the 
9324 \family sans
9325 Author
9326 \family default
9327  and the 
9328 \family sans
9329 Date
9330 \end_layout
9331
9332 \begin_layout Labeling
9333 \labelwidthstring MMMMMMMMMMM
9334
9335 \family typewriter
9336
9337 \backslash
9338 dateabstractskip
9339 \family default
9340  between the 
9341 \family sans
9342 Date
9343 \family default
9344  and the 
9345 \family sans
9346 Abstract
9347 \end_layout
9348
9349 \begin_layout Standard
9350 The last length related command affects all the list environments.
9351  If you place 
9352 \family typewriter
9353
9354 \backslash
9355 zerolistvertdimens
9356 \family default
9357  
9358 \emph on
9359 inside
9360 \emph default
9361  a list environment then all the vertical spacing between the list items
9362  is removed.
9363  Note that this is a command not a length so it doesn't require 
9364 \family typewriter
9365
9366 \backslash
9367 setlength
9368 \family default
9369  like the stuff mentioned above.
9370 \end_layout
9371
9372 \begin_layout Paragraph
9373 Headers and Footers
9374 \end_layout
9375
9376 \begin_layout Standard
9377 The 
9378 \family typewriter
9379
9380 \backslash
9381 LogoOn
9382 \family default
9383  and 
9384 \family typewriter
9385
9386 \backslash
9387 LogoOff
9388 \family default
9389  commands control whether the logo in the 
9390 \family sans
9391 MyLogo
9392 \family default
9393  definition appear on a given page.
9394  If you put 
9395 \family typewriter
9396
9397 \backslash
9398 LogoOff
9399 \family default
9400  in the preamble then none of the foils will have the logo on them.
9401  If you don't want the logo on a particular page place the 
9402 \family typewriter
9403
9404 \backslash
9405 LogoOff
9406 \family default
9407  directly after the foilhead of that page and the 
9408 \family typewriter
9409
9410 \backslash
9411 LogoOn
9412 \family default
9413  directly after the next foilhead.
9414 \end_layout
9415
9416 \begin_layout Standard
9417 If you decide to use the 
9418 \family sans
9419 fancy
9420 \family default
9421  page style setting in the 
9422 \family sans
9423 Document
9424 \begin_inset space ~
9425 \end_inset
9426
9427 Layout
9428 \family default
9429  dialog you should probably add 
9430 \family typewriter
9431
9432 \backslash
9433 let
9434 \backslash
9435 headwidth
9436 \backslash
9437 textwidth
9438 \family default
9439  to your preamble so headers and footers on landscape pages are correctly
9440  placed when rotated.
9441  This is due to some clashes between the page layouts provided by the 
9442 \family sans
9443 fancyheadings
9444 \family default
9445  package and the 
9446 \family sans
9447 foils
9448 \family default
9449  class.
9450 \end_layout
9451
9452 \begin_layout Subsection
9453 Slides [aka 
9454 \noun on
9455 Sli\SpecialChar TeX
9456
9457 \noun default
9458 ]
9459 \begin_inset CommandInset label
9460 LatexCommand label
9461 name "sec:slitex"
9462
9463 \end_inset
9464
9465
9466 \end_layout
9467
9468 \begin_layout Standard
9469 by 
9470 \noun on
9471 John Weiss
9472 \noun default
9473  
9474 \end_layout
9475
9476 \begin_layout Subsubsection
9477 Introduction
9478 \end_layout
9479
9480 \begin_layout Standard
9481 This section describes how to use \SpecialChar LyX
9482  to make slides for overhead projectors.
9483  There are two document classes that can do this: the default slides class
9484  and the 
9485 \family sans
9486 Foil\SpecialChar TeX
9487
9488 \family default
9489  slides class.
9490  This section documents the former.
9491 \end_layout
9492
9493 \begin_layout Standard
9494 I'm going to say this again, nice and clear, so that there's no misunderstanding
9495 :
9496 \end_layout
9497
9498 \begin_layout Standard
9499 \begin_inset VSpace bigskip
9500 \end_inset
9501
9502
9503 \end_layout
9504
9505 \begin_layout Standard
9506 \align center
9507
9508 \size large
9509 This section documents the class 
9510 \begin_inset Quotes eld
9511 \end_inset
9512
9513
9514 \family sans
9515 slides (default)
9516 \family default
9517
9518 \begin_inset Quotes erd
9519 \end_inset
9520
9521  
9522 \emph on
9523 only.
9524 \end_layout
9525
9526 \begin_layout Standard
9527 \begin_inset VSpace bigskip
9528 \end_inset
9529
9530
9531 \end_layout
9532
9533 \begin_layout Standard
9534 If you're looking for the documentation for 
9535 \begin_inset Quotes eld
9536 \end_inset
9537
9538
9539 \family sans
9540 slides (Foil\SpecialChar TeX
9541 )
9542 \family default
9543
9544 \begin_inset Quotes erd
9545 \end_inset
9546
9547 , check out section
9548 \begin_inset space ~
9549 \end_inset
9550
9551
9552 \begin_inset CommandInset ref
9553 LatexCommand ref
9554 reference "sec:foiltex"
9555
9556 \end_inset
9557
9558 .
9559  The 
9560 \family sans
9561 foils
9562 \family default
9563  class [
9564 \begin_inset Quotes eld
9565 \end_inset
9566
9567
9568 \family sans
9569 slides (Foil\SpecialChar TeX
9570 )
9571 \family default
9572
9573 \begin_inset Quotes erd
9574 \end_inset
9575
9576 ] is actually somewhat better than the default 
9577 \family sans
9578 slides
9579 \family default
9580  class,
9581 \begin_inset Foot
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 \SpecialChar ldots
9586 or so I've been told repeatedly by its advocates.
9587  Having never used it, I have no idea if this claim is true or not.
9588 \end_layout
9589
9590 \end_inset
9591
9592  which this section documents.
9593 \end_layout
9594
9595 \begin_layout Standard
9596 This class is the \SpecialChar LaTeX2e
9597  improvement of the old 
9598 \noun on
9599 Sli\SpecialChar TeX
9600
9601 \noun default
9602  package.
9603  Every \SpecialChar LaTeX2e
9604  distribution includes this class [which I'll just refer to as 
9605 \begin_inset Quotes eld
9606 \end_inset
9607
9608
9609 \family sans
9610 slides
9611 \family default
9612
9613 \begin_inset Quotes erd
9614 \end_inset
9615
9616  from now on], so you're bound to have it.
9617  As I noted earlier, there are other classes, such as 
9618 \family sans
9619 foils
9620 \family default
9621 , which also produce slides for overhead projectors and do a better job
9622  at it.
9623  However, there are some things which 
9624 \family sans
9625 slides
9626 \family default
9627  can do which the others can't, such as generate overlays.
9628  Read on to learn more!
9629 \end_layout
9630
9631 \begin_layout Subsubsection
9632 Getting Started
9633 \begin_inset CommandInset label
9634 LatexCommand label
9635 name "sec:slidesetup"
9636
9637 \end_inset
9638
9639
9640 \end_layout
9641
9642 \begin_layout Standard
9643 Obviously, to use this document class, you need to select 
9644 \begin_inset Quotes eld
9645 \end_inset
9646
9647
9648 \family sans
9649 slides (default)
9650 \family default
9651
9652 \begin_inset Quotes erd
9653 \end_inset
9654
9655  from the class list in the 
9656 \family sans
9657 Document\SpecialChar menuseparator
9658 Settings
9659 \family default
9660  dialog.
9661  There are some other special things you should know about this class:
9662 \end_layout
9663
9664 \begin_layout Itemize
9665 Don't bother changing the options 
9666 \family sans
9667 Sides and Columns
9668 \family default
9669 .
9670  They're not supported by the 
9671 \family sans
9672 slides
9673 \family default
9674  class, anyways.
9675 \end_layout
9676
9677 \begin_layout Itemize
9678 The option 
9679 \family sans
9680 Page
9681 \begin_inset space ~
9682 \end_inset
9683
9684 style
9685 \family default
9686  behaves a bit differently for this class.
9687  The possible choices and what they do are as follows:
9688 \end_layout
9689
9690 \begin_deeper
9691 \begin_layout Description
9692
9693 \family sans
9694 plain
9695 \family default
9696  The final output contains page numbers in the lower right corner.
9697 \end_layout
9698
9699 \begin_layout Description
9700
9701 \family sans
9702 headings
9703 \family default
9704  Like 
9705 \family sans
9706 plain
9707 \family default
9708 , but also prints out any time markers you've put in.
9709  This is the default.
9710 \end_layout
9711
9712 \begin_layout Description
9713
9714 \family sans
9715 empty
9716 \family default
9717  The final output contains no page numbers, time markers, or alignment markers.
9718 \end_layout
9719
9720 \end_deeper
9721 \begin_layout Itemize
9722 The 
9723 \family sans
9724 slides
9725 \family default
9726  class has an extra option: 
9727 \family typewriter
9728 clock
9729 \family default
9730 .
9731  To use it, put 
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735
9736 \family typewriter
9737 clock
9738 \family default
9739
9740 \begin_inset Quotes erd
9741 \end_inset
9742
9743  in the extra class options.
9744 \end_layout
9745
9746 \begin_deeper
9747 \begin_layout Standard
9748 Using this options allows you to add time markers to 
9749 \family sans
9750 Note
9751 \family default
9752 s.
9753  See section
9754 \begin_inset space ~
9755 \end_inset
9756
9757
9758 \begin_inset CommandInset ref
9759 LatexCommand ref
9760 reference "sec:slideNote"
9761
9762 \end_inset
9763
9764  for more details.
9765 \end_layout
9766
9767 \end_deeper
9768 \begin_layout Standard
9769 You can also use the template file 
9770 \begin_inset Quotes eld
9771 \end_inset
9772
9773
9774 \family typewriter
9775 slides.lyx
9776 \family default
9777
9778 \begin_inset Quotes erd
9779 \end_inset
9780
9781  to automatically set up a document to use the 
9782 \family sans
9783 slides
9784 \family default
9785  class [using 
9786 \family sans
9787 File\SpecialChar menuseparator
9788 New
9789 \begin_inset space ~
9790 \end_inset
9791
9792 from
9793 \begin_inset space ~
9794 \end_inset
9795
9796 Template
9797 \family default
9798  to open your new document].
9799  The template file also contains some examples of the special paragraph
9800  environments used by this class.
9801  I'll describe those next.
9802 \end_layout
9803
9804 \begin_layout Subsubsection
9805 Paragraph Environments
9806 \end_layout
9807
9808 \begin_layout Paragraph
9809 Supported Environments
9810 \end_layout
9811
9812 \begin_layout Standard
9813 The first thing you'll notice when you start up a new 
9814 \family sans
9815 slides
9816 \family default
9817  document is the font size and type: it's the equivalent of the size 
9818 \begin_inset Quotes eld
9819 \end_inset
9820
9821
9822 \family sans
9823 Largest
9824 \family default
9825
9826 \begin_inset Quotes erd
9827 \end_inset
9828
9829  in the 
9830 \family sans
9831 Sans
9832 \begin_inset space ~
9833 \end_inset
9834
9835 Serif
9836 \family default
9837  font.
9838  This is also what's used in the output.
9839  Think of this as a 
9840 \begin_inset Quotes eld
9841 \end_inset
9842
9843 visual cue
9844 \begin_inset Quotes erd
9845 \end_inset
9846
9847  to remind you that this is a slide.
9848  Your final slides will use a larger font; ergo, you'll have less space.
9849  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9850 \end_layout
9851
9852 \begin_layout Standard
9853 The next thing that becomes obvious is the changes to the paragraph environment
9854  pull-down box [at the far-left end of the toolbar].
9855  Most of the paragraph environments you're used to seeing are missing.
9856  There are also five new ones.
9857  That's because the 
9858 \family sans
9859 slides
9860 \family default
9861  class itself only supports certain paragraph environments:
9862 \end_layout
9863
9864 \begin_layout Itemize
9865
9866 \family sans
9867 Standard
9868 \end_layout
9869
9870 \begin_layout Itemize
9871
9872 \family sans
9873 Itemize
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family sans
9879 Enumerate
9880 \end_layout
9881
9882 \begin_layout Itemize
9883
9884 \family sans
9885 Description
9886 \end_layout
9887
9888 \begin_layout Itemize
9889
9890 \family sans
9891 List
9892 \end_layout
9893
9894 \begin_layout Itemize
9895
9896 \family sans
9897 Quotation
9898 \end_layout
9899
9900 \begin_layout Itemize
9901
9902 \family sans
9903 Quote
9904 \end_layout
9905
9906 \begin_layout Itemize
9907
9908 \family sans
9909 Verse
9910 \end_layout
9911
9912 \begin_layout Itemize
9913
9914 \family sans
9915 Caption
9916 \end_layout
9917
9918 \begin_layout Itemize
9919
9920 \family sans
9921 \SpecialChar LyX
9922 -Code
9923 \end_layout
9924
9925 \begin_layout Standard
9926 All of the other standard environments, including the section-heading environmen
9927 ts, aren't used in the 
9928 \family sans
9929 slides
9930 \family default
9931  class.
9932 \end_layout
9933
9934 \begin_layout Standard
9935 On the other hand, you'll notice the following new environments:
9936 \end_layout
9937
9938 \begin_layout Itemize
9939
9940 \family sans
9941 Slide
9942 \end_layout
9943
9944 \begin_layout Itemize
9945
9946 \family sans
9947 Overlay
9948 \end_layout
9949
9950 \begin_layout Itemize
9951
9952 \family sans
9953 Note
9954 \end_layout
9955
9956 \begin_layout Itemize
9957
9958 \family sans
9959 InvisibleText
9960 \end_layout
9961
9962 \begin_layout Itemize
9963
9964 \family sans
9965 VisibleText
9966 \end_layout
9967
9968 \begin_layout Standard
9969 These five are kind of quirky, due to a 
9970 \begin_inset Quotes eld
9971 \end_inset
9972
9973 feature
9974 \begin_inset Quotes erd
9975 \end_inset
9976
9977  in \SpecialChar LyX
9978 .
9979  You see, \SpecialChar LyX
9980  doesn't permit you to nest any other paragraph environment into
9981  an empty environment.
9982  Now, that's fine and dandy, but it means that you wouldn't be able to start
9983  a slide with anything except plain text.
9984  To deal with this, I've performed a little 
9985 \begin_inset Quotes eld
9986 \end_inset
9987
9988 \SpecialChar LaTeX
9989  magic.
9990 \begin_inset Quotes erd
9991 \end_inset
9992
9993  
9994 \end_layout
9995
9996 \begin_layout Paragraph
9997 Quirks of the New Environments
9998 \begin_inset CommandInset label
9999 LatexCommand label
10000 name "sec:slideQuirk"
10001
10002 \end_inset
10003
10004
10005 \end_layout
10006
10007 \begin_layout Standard
10008 All five of the new paragraph environments are somewhat quirky due to inherent
10009  limitiations in the current version of \SpecialChar LyX
10010 .
10011  As I just mentioned, \SpecialChar LyX
10012  forbids environments that begin with another environment.
10013  To get around this, the 
10014 \family sans
10015 Slide
10016 \family default
10017  environment isn't a paragraph environment as described in the 
10018 \emph on
10019 User's Guide
10020 \emph default
10021 .
10022  
10023 \end_layout
10024
10025 \begin_layout Standard
10026 You should consider 
10027 \family sans
10028 Slide
10029 \family default
10030
10031 \family sans
10032 Overlay
10033 \family default
10034 , and 
10035 \family sans
10036 Note
10037 \family default
10038  to be 
10039 \begin_inset Quotes eld
10040 \end_inset
10041
10042 pseudo-environments.
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046  They look like a section heading or a 
10047 \begin_inset Quotes eld
10048 \end_inset
10049
10050
10051 \family sans
10052 Caption
10053 \family default
10054 ,
10055 \begin_inset Quotes erd
10056 \end_inset
10057
10058  but really begin a [and, if necessary, end the previous] paragraph environment.
10059  Likewise, treat 
10060 \family sans
10061 InvisibleText
10062 \family default
10063  and 
10064 \family sans
10065 VisibleText
10066 \family default
10067  as 
10068 \begin_inset Quotes eld
10069 \end_inset
10070
10071 pseudo-commands.
10072 \begin_inset Quotes erd
10073 \end_inset
10074
10075  These two perform some action.
10076 \end_layout
10077
10078 \begin_layout Standard
10079 A common feature of all five environments, 
10080 \family sans
10081 Slide
10082 \family default
10083
10084 \family sans
10085 Overlay
10086 \family default
10087
10088 \family sans
10089 Note
10090 \family default
10091
10092 \family sans
10093 InvisibleText
10094 \family default
10095  and 
10096 \family sans
10097 VisibleText
10098 \family default
10099 , is a rather long-ish label.
10100  The text following this label — ordinarily the contents of the paragraph
10101  environment — is utterly irrelevant for 
10102 \family sans
10103 Slide
10104 \family default
10105
10106 \family sans
10107 Overlay
10108 \family default
10109
10110 \family sans
10111 Note
10112 \family default
10113
10114 \family sans
10115 InvisibleText
10116 \family default
10117  and 
10118 \family sans
10119 VisibleText
10120 \family default
10121 .
10122  \SpecialChar LyX
10123  completely ignores it.
10124  In fact, you can leave these five environments completely empty.
10125  
10126 \end_layout
10127
10128 \begin_layout Standard
10129 While you don't 
10130 \emph on
10131 have
10132 \emph default
10133  to put any text after the rather long-ish label, you might want to.
10134  This could be a short description of the contents of the 
10135 \family sans
10136 Slide
10137 \family default
10138 , for example.
10139  In that case, enter your descriptive comment and hit 
10140 \family sans
10141 Return
10142 \family default
10143  as you normally would.
10144 \end_layout
10145
10146 \begin_layout Standard
10147 If, on the other hand, you don't want to enter any descriptive text, you'll
10148  hit another \SpecialChar LyX
10149  quirk.
10150  \SpecialChar LyX
10151 , like nature, abhors a vacuum, and will not let you start a new paragraph
10152  environment until you put something in the old one.
10153  So, do this:
10154 \end_layout
10155
10156 \begin_layout Itemize
10157 Start entering the text that will 
10158 \emph on
10159 follow
10160 \emph default
10161  the new 
10162 \family sans
10163 Slide
10164 \family default
10165
10166 \family sans
10167 Overlay
10168 \family default
10169
10170 \family sans
10171 Note
10172 \family default
10173
10174 \family sans
10175 InvisibleText
10176 \family default
10177  or 
10178 \family sans
10179 VisibleText
10180 \family default
10181 .
10182  
10183 \end_layout
10184
10185 \begin_layout Itemize
10186 Now move to the beginning of that paragraph.
10187  
10188 \end_layout
10189
10190 \begin_layout Itemize
10191 Next, hit 
10192 \family sans
10193 Return
10194 \family default
10195 .
10196  
10197 \end_layout
10198
10199 \begin_layout Itemize
10200 Finally, change this new, empty paragraph to a 
10201 \family sans
10202 Slide
10203 \family default
10204
10205 \family sans
10206 Overlay
10207 \family default
10208
10209 \family sans
10210 Note
10211 \family default
10212
10213 \family sans
10214 InvisibleText
10215 \family default
10216  or 
10217 \family sans
10218 VisibleText
10219 \family default
10220 .
10221  
10222 \end_layout
10223
10224 \begin_layout Standard
10225 Some future version of \SpecialChar LyX
10226  will, hopefully, resolve this quirkiness\SpecialChar ldots
10227
10228 \end_layout
10229
10230 \begin_layout Subsubsection
10231 Making a Presentation with 
10232 \family sans
10233 Slide
10234 \family default
10235
10236 \family sans
10237 Overlay
10238 \family default
10239  and 
10240 \family sans
10241 Note
10242 \end_layout
10243
10244 \begin_layout Paragraph
10245 Using the 
10246 \family sans
10247 Slide
10248 \family default
10249  Environment
10250 \end_layout
10251
10252 \begin_layout Standard
10253 If you're expecting this section to teach you how to actually make a presentatio
10254 n, you'll be sorely disappointed.
10255  Naturally, I'll describe all of the ways the 
10256 \family sans
10257 slides
10258 \family default
10259  class can assist you in preparing the materials for a presentation.
10260  Filling in the contents, however, is up to you.
10261  [Then again, that 
10262 \emph on
10263 is
10264 \emph default
10265  the \SpecialChar LyX
10266  philosophy.]
10267 \end_layout
10268
10269 \begin_layout Standard
10270 Choosing the 
10271 \family sans
10272 Slide
10273 \family default
10274  environment [in the manner described in section
10275 \begin_inset space ~
10276 \end_inset
10277
10278
10279 \begin_inset CommandInset ref
10280 LatexCommand ref
10281 reference "sec:slideQuirk"
10282
10283 \end_inset
10284
10285 ] tells \SpecialChar LyX
10286  to begin a new slide [duh].
10287  The label for this environment/
10288 \begin_inset Quotes erd
10289 \end_inset
10290
10291 pseudo-command
10292 \begin_inset Quotes erd
10293 \end_inset
10294
10295  is an 
10296 \begin_inset Quotes eld
10297 \end_inset
10298
10299 ASCII line,
10300 \begin_inset Quotes erd
10301 \end_inset
10302
10303  in cool blue, followed by the label, 
10304 \begin_inset Quotes eld
10305 \end_inset
10306
10307 NewSlide:
10308 \begin_inset Quotes erd
10309 \end_inset
10310
10311 .
10312  Any text or paragraph environments that follow this one go on the new slide.
10313  It's that simple.
10314 \end_layout
10315
10316 \begin_layout Standard
10317 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10318
10319  (this can be specified in the 
10320 \family sans
10321 Paragraph Layout
10322 \family default
10323  dialog).
10324  In fact, you'll want to, once you finish entering the contents of one slide.
10325  If you've entered more text than can physically fit on a slide, the extra
10326  overflows onto a new slide.
10327  I don't recommend doing this, however, since the overflow slide won't have
10328  any page number on it.
10329  Furthermore, it may interfere with any 
10330 \family sans
10331 Overlay
10332 \family default
10333  you've made to accompany the oversized 
10334 \family sans
10335 Slide
10336 \family default
10337 .
10338 \end_layout
10339
10340 \begin_layout Standard
10341 The 
10342 \family sans
10343 Overlay
10344 \family default
10345  and 
10346 \family sans
10347 Note
10348 \family default
10349  environments work the same way as the 
10350 \family sans
10351 Slide
10352 \family default
10353  environment.
10354  They both create an 
10355 \begin_inset Quotes eld
10356 \end_inset
10357
10358 ASCII line
10359 \begin_inset Quotes erd
10360 \end_inset
10361
10362  followed by a label [
10363 \begin_inset Quotes eld
10364 \end_inset
10365
10366 NewOverlay:
10367 \begin_inset Quotes erd
10368 \end_inset
10369
10370  and 
10371 \begin_inset Quotes eld
10372 \end_inset
10373
10374 NewNote:
10375 \begin_inset Quotes erd
10376 \end_inset
10377
10378 , respectively].
10379  The color is a stunning magenta instead of blue, and the 
10380 \begin_inset Quotes eld
10381 \end_inset
10382
10383 ASCII line
10384 \begin_inset Quotes erd
10385 \end_inset
10386
10387  will look different, in style and in length.
10388  The label fonts of all three also differ from one another.
10389 \end_layout
10390
10391 \begin_layout Standard
10392 As with a 
10393 \family sans
10394 Slide
10395 \family default
10396 , if the contents of a 
10397 \family sans
10398 Note
10399 \family default
10400  or 
10401 \family sans
10402 Overlay
10403 \family default
10404  exceed the physical size of a slide or sheet of paper, the extra will overflow
10405  onto a new sheet.
10406  Again, you should avoid this.
10407  It defeats the whole purpose of 
10408 \family sans
10409 Note
10410 \family default
10411 s and 
10412 \family sans
10413 Overlay
10414 \family default
10415 s.
10416 \end_layout
10417
10418 \begin_layout Paragraph
10419 Using 
10420 \family sans
10421 Overlay
10422 \family default
10423  with 
10424 \family sans
10425 Slide
10426 \end_layout
10427
10428 \begin_layout Standard
10429 The idea behind an 
10430 \family sans
10431 Overlay
10432 \family default
10433  is a slide that sits atop another slide.
10434  Perhaps you wish to discuss a figure on the main 
10435 \family sans
10436 Slide
10437 \family default
10438  before displaying the text associated with it.
10439  One way to accomplish this is tape a flap of dark paper over the part of
10440  the 
10441 \family sans
10442 Slide
10443 \family default
10444  you want to display later.
10445  This method fails, however, if you wish to overlap one graph with another,
10446  for example.
10447  You would then have to fumble while speaking to align the two separate,
10448  overlapping 
10449 \family sans
10450 Slide
10451 \family default
10452 s to align the two graphs.
10453  The use of an 
10454 \family sans
10455 Overlay
10456 \family default
10457  environment in both cases makes life much easier.
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Each 
10462 \family sans
10463 Overlay
10464 \family default
10465  receives the page number of its 
10466 \begin_inset Quotes eld
10467 \end_inset
10468
10469 parent
10470 \begin_inset Quotes erd
10471 \end_inset
10472
10473  
10474 \family sans
10475 Slide
10476 \family default
10477 , appended by 
10478 \begin_inset Quotes eld
10479 \end_inset
10480
10481
10482 \family typewriter
10483 -a
10484 \family default
10485
10486 \begin_inset Quotes erd
10487 \end_inset
10488
10489 .
10490 \begin_inset Foot
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 Presumably, mutliple 
10495 \family sans
10496 Overlay
10497 \family default
10498 s would have 
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502
10503 \family typewriter
10504 -a
10505 \family default
10506
10507 \begin_inset Quotes erd
10508 \end_inset
10509
10510
10511 \begin_inset Quotes eld
10512 \end_inset
10513
10514
10515 \family typewriter
10516 -b
10517 \family default
10518
10519 \begin_inset Quotes erd
10520 \end_inset
10521
10522
10523 \begin_inset Quotes eld
10524 \end_inset
10525
10526
10527 \family typewriter
10528 -c
10529 \family default
10530
10531 \begin_inset Quotes erd
10532 \end_inset
10533
10534 , etc.
10535 \begin_inset space ~
10536 \end_inset
10537
10538 appended to the page number of the parent 
10539 \family sans
10540 Slide
10541 \family default
10542 .
10543  
10544 \end_layout
10545
10546 \end_inset
10547
10548  Clearly, you want the contents of both the 
10549 \family sans
10550 Slide
10551 \family default
10552  and the 
10553 \family sans
10554 Overlay
10555 \family default
10556  to each fit on a single physical slide! You should probably consider an
10557  
10558 \family sans
10559 Overlay
10560 \family default
10561  as 
10562 \begin_inset Quotes eld
10563 \end_inset
10564
10565 part of
10566 \begin_inset Quotes erd
10567 \end_inset
10568
10569  a 
10570 \family sans
10571 Slide
10572 \family default
10573 .
10574  Indeed, the \SpecialChar LyX
10575  
10576 \family sans
10577 slides
10578 \family default
10579  class provides a visual cue for this: the label at the start of an 
10580 \family sans
10581 Overlay
10582 \family default
10583  is shorter than that at the start of a 
10584 \family sans
10585 Slide
10586 \family default
10587 .
10588  Lastly, when you generate printable output, you'll find alignment markers
10589  in all four corners of both the 
10590 \family sans
10591 Overlay
10592 \family default
10593  page and its parent 
10594 \family sans
10595 Slide
10596 \family default
10597 .
10598  These will assist you in lining up the two physical slides.
10599 \end_layout
10600
10601 \begin_layout Standard
10602 The major problem in overlaying two slides is aligning the contents of the
10603  two transparencies.
10604  How much space should you leave for that graph on the second slide? Worse
10605  still, what if you want a graph and a sentence on second slide, but there
10606  is text on the main transparency that goes in between them? You could try
10607  and insert vertical space of the right size.
10608  The better way is to use 
10609 \family sans
10610 InvisibleText
10611 \family default
10612  and 
10613 \family sans
10614 VisibleText
10615 \family default
10616 .
10617 \end_layout
10618
10619 \begin_layout Standard
10620 As their names imply, 
10621 \family sans
10622 InvisibleText
10623 \family default
10624  and 
10625 \family sans
10626 VisibleText
10627 \family default
10628  are two command-like paragraph environments that make all subsequent text
10629  invisible and visible, respectively.
10630  Note from section
10631 \begin_inset space ~
10632 \end_inset
10633
10634
10635 \begin_inset CommandInset ref
10636 LatexCommand ref
10637 reference "sec:slideQuirk"
10638
10639 \end_inset
10640
10641  that you don't place anything 
10642 \emph on
10643 into
10644 \emph default
10645  these two environments, however.
10646  When you create an 
10647 \family sans
10648 InvisibleText
10649 \family default
10650 , it inserts a centered, sky-blue label into the page reading 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654 <Invisible Text Follows>
10655 \begin_inset Quotes erd
10656 \end_inset
10657
10658 .
10659  For paragraphs following this label, the parts of the 
10660 \family sans
10661 Slide
10662 \family default
10663  [or 
10664 \family sans
10665 Overlay
10666 \family default
10667 ; it doesn't matter which] where they would be contain instead blank space.
10668  
10669 \end_layout
10670
10671 \begin_layout Standard
10672 For 
10673 \family sans
10674 VisibleText
10675 \family default
10676 , the corresponding centered label is 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680 <Visible Text Follows>
10681 \begin_inset Quotes erd
10682 \end_inset
10683
10684  in blazing green.
10685  Paragraphs following this label behave normally.
10686  Note that the beginning of a new 
10687 \family sans
10688 Slide
10689 \family default
10690
10691 \family sans
10692 Overlay
10693 \family default
10694 , or 
10695 \family sans
10696 Note
10697 \family default
10698  automatically shuts off an 
10699 \family sans
10700 InvisibleText
10701 \family default
10702 .
10703  It's therefore not necessary to use 
10704 \family sans
10705 VisibleText
10706 \family default
10707  at the end of a 
10708 \family sans
10709 Slide
10710 \family default
10711 .
10712 \end_layout
10713
10714 \begin_layout Standard
10715 By now, it should be obvious how to create overlay transparencies using
10716  the proper combination of 
10717 \family sans
10718 InvisibleText
10719 \family default
10720  and 
10721 \family sans
10722 VisibleText
10723 \family default
10724  on a 
10725 \family sans
10726 Slide
10727 \family default
10728  and 
10729 \family sans
10730 Overlay
10731 \family default
10732 :
10733 \end_layout
10734
10735 \begin_layout Enumerate
10736 Create a 
10737 \family sans
10738 Slide
10739 \family default
10740 , including everything that will appear on it, whether on the main slide
10741  or on the 
10742 \family sans
10743 Overlay
10744 \family default
10745 .
10746 \end_layout
10747
10748 \begin_layout Enumerate
10749 Before each figure or paragraph that will appear only on the 
10750 \family sans
10751 Overlay
10752 \family default
10753 , insert an 
10754 \family sans
10755 InvisibleText
10756 \family default
10757  environment.
10758  If necessary, insert a 
10759 \family sans
10760 VisibleText
10761 \family default
10762  environment after the 
10763 \family sans
10764 Overlay
10765 \family default
10766 -only text.
10767 \end_layout
10768
10769 \begin_layout Enumerate
10770 Start an 
10771 \family sans
10772 Overlay
10773 \family default
10774  immediately following the 
10775 \family sans
10776 Slide
10777 \family default
10778 .
10779 \end_layout
10780
10781 \begin_layout Enumerate
10782 Copy the contents of this 
10783 \family sans
10784 Slide
10785 \family default
10786  into the 
10787 \family sans
10788 Overlay
10789 \family default
10790 .
10791 \end_layout
10792
10793 \begin_layout Enumerate
10794 Within the 
10795 \family sans
10796 Overlay
10797 \family default
10798 , change all of the 
10799 \family sans
10800 InvisibleText
10801 \family default
10802  lines to 
10803 \family sans
10804 VisibleText
10805 \family default
10806  and vice-versa.
10807 \end_layout
10808
10809 \begin_layout Standard
10810 That's it.
10811  You've just made an 
10812 \family sans
10813 Overlay
10814 \family default
10815 .
10816 \end_layout
10817
10818 \begin_layout Standard
10819 There's one problem with the way I've designed the \SpecialChar LyX
10820  
10821 \family sans
10822 slides
10823 \family default
10824  class: you can't make text in the middle of a paragraph invisible, nor
10825  make text in the middle of an invisible paragraph visible again.
10826  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
10827  codes.
10828 \begin_inset Foot
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 The commands of interest are: 
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family typewriter
10838 {
10839 \backslash
10840 invisible \SpecialChar ldots
10841  }
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family typewriter
10847 {
10848 \backslash
10849 visible \SpecialChar ldots
10850  }
10851 \end_layout
10852
10853 \begin_layout Plain Layout
10854 \SpecialChar ldots
10855 and need to be marked as \SpecialChar TeX
10856 .
10857  The text whose 
10858 \begin_inset Quotes eld
10859 \end_inset
10860
10861 visibility
10862 \begin_inset Quotes erd
10863 \end_inset
10864
10865  you wish to change goes in between the brackets [and after the 
10866 \family typewriter
10867
10868 \backslash
10869 invisible
10870 \family default
10871  or 
10872 \family typewriter
10873
10874 \backslash
10875 visible
10876 \family default
10877  command].
10878  If you don't know how to mark text as \SpecialChar TeX
10879 , see the appropriate section of
10880  the 
10881 \emph on
10882 User's Guide
10883 \emph default
10884 .
10885 \end_layout
10886
10887 \end_inset
10888
10889
10890 \end_layout
10891
10892 \begin_layout Paragraph
10893 Using 
10894 \family sans
10895 Note
10896 \family default
10897  with 
10898 \family sans
10899 Slide
10900 \family default
10901
10902 \begin_inset CommandInset label
10903 LatexCommand label
10904 name "sec:slideNote"
10905
10906 \end_inset
10907
10908
10909 \end_layout
10910
10911 \begin_layout Standard
10912 Like an 
10913 \family sans
10914 Overlay
10915 \family default
10916 , a 
10917 \family sans
10918 Note
10919 \family default
10920  is associated with a 
10921 \begin_inset Quotes eld
10922 \end_inset
10923
10924 parent
10925 \begin_inset Quotes erd
10926 \end_inset
10927
10928  
10929 \family sans
10930 Slide
10931 \family default
10932 .
10933  Here, too, the \SpecialChar LyX
10934  
10935 \family sans
10936 slides
10937 \family default
10938  class provides visual cues.
10939  The label for a 
10940 \family sans
10941 Note
10942 \family default
10943  is shorter than that of a 
10944 \family sans
10945 Slide
10946 \family default
10947  [yet longer than that of an 
10948 \family sans
10949 Overlay
10950 \family default
10951 ] and, like the label of an 
10952 \family sans
10953 Overlay
10954 \family default
10955  is shockingly magenta.
10956  Additionally, the printed 
10957 \family sans
10958 Note
10959 \family default
10960  has the page number of its 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964 parent
10965 \begin_inset Quotes erd
10966 \end_inset
10967
10968  
10969 \family sans
10970 Slide
10971 \family default
10972 , appended by 
10973 \begin_inset Quotes eld
10974 \end_inset
10975
10976
10977 \family typewriter
10978 -
10979 \family default
10980 1
10981 \begin_inset Quotes erd
10982 \end_inset
10983
10984
10985 \begin_inset Quotes eld
10986 \end_inset
10987
10988
10989 \family typewriter
10990 -
10991 \family default
10992 2
10993 \begin_inset Quotes erd
10994 \end_inset
10995
10996
10997 \begin_inset Quotes eld
10998 \end_inset
10999
11000
11001 \family typewriter
11002 -
11003 \family default
11004 3
11005 \begin_inset Quotes erd
11006 \end_inset
11007
11008 , etc.
11009  You can have multiple 
11010 \family sans
11011 Note
11012 \family default
11013 s associated with a single 
11014 \family sans
11015 Slide
11016 \family default
11017 , and, as with 
11018 \family sans
11019 Slide
11020 \family default
11021  and 
11022 \family sans
11023 Overlay
11024 \family default
11025 , you'll probably want to break up long 
11026 \family sans
11027 Note
11028 \family default
11029 s so that they fit on a single sheet of paper.
11030 \end_layout
11031
11032 \begin_layout Standard
11033 The purpose of a 
11034 \family sans
11035 Note
11036 \family default
11037  is obvious: it contains anything additional you might want to say about
11038  a 
11039 \family sans
11040 Slide
11041 \family default
11042 .
11043  It could also be used as a sheet of reminders for a particular 
11044 \family sans
11045 Slide
11046 \family default
11047 .
11048  In the case of the latter, you might want to make use of time markers.
11049  Currently, the \SpecialChar LyX
11050  
11051 \family sans
11052 slides
11053 \family default
11054  class has no 
11055 \begin_inset Quotes eld
11056 \end_inset
11057
11058 native
11059 \begin_inset Quotes erd
11060 \end_inset
11061
11062  support for time markers, a 
11063 \noun on
11064 Sli\SpecialChar TeX
11065
11066 \noun default
11067  feature.
11068  So, you'll have to resort to using the \SpecialChar LaTeX
11069  codes.
11070 \end_layout
11071
11072 \begin_layout Standard
11073 To use time markers, you'll need to specify the extra class option 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077
11078 \family typewriter
11079 clock
11080 \family default
11081
11082 \begin_inset Quotes erd
11083 \end_inset
11084
11085  [see section
11086 \begin_inset space ~
11087 \end_inset
11088
11089
11090 \begin_inset CommandInset ref
11091 LatexCommand ref
11092 reference "sec:slidesetup"
11093
11094 \end_inset
11095
11096 ].
11097  This option turns on timing marks, which will appear in the lower-left-hand
11098  corner of every 
11099 \family sans
11100 Note
11101 \family default
11102  you generate.
11103  To set what appears in the time marker, you use the \SpecialChar LaTeX
11104  commands 
11105 \begin_inset Quotes eld
11106 \end_inset
11107
11108
11109 \family typewriter
11110
11111 \backslash
11112 settime{}
11113 \family default
11114
11115 \begin_inset Quotes erd
11116 \end_inset
11117
11118  and 
11119 \begin_inset Quotes eld
11120 \end_inset
11121
11122
11123 \family typewriter
11124
11125 \backslash
11126 addtime{}
11127 \family default
11128
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132 .
11133  The arguments of both commands are time measured in seconds.
11134  
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138
11139 \family typewriter
11140
11141 \backslash
11142 settime{}
11143 \family default
11144
11145 \begin_inset Quotes erd
11146 \end_inset
11147
11148  sets the time marker to a given time.
11149  
11150 \begin_inset Quotes eld
11151 \end_inset
11152
11153
11154 \family typewriter
11155
11156 \backslash
11157 addtime{}
11158 \family default
11159
11160 \begin_inset Quotes erd
11161 \end_inset
11162
11163  increments the time marker by the specified amount.
11164  Using time markers and 
11165 \family sans
11166 Note
11167 \family default
11168 s in this fashion, you can remind yourself how much time to spend on a particula
11169
11170 \family sans
11171 Slide
11172 \family default
11173 .
11174 \end_layout
11175
11176 \begin_layout Standard
11177 There's one last feature to describe.
11178  Clearly, you'd like to print out all of your 
11179 \family sans
11180 Slide
11181 \family default
11182 s and 
11183 \family sans
11184 Overlay
11185 \family default
11186 s on transparencies while printing all of your 
11187 \family sans
11188 Note
11189 \family default
11190 s on plain paper.
11191  However, a 
11192 \family sans
11193 Note
11194 \family default
11195  
11196 \emph on
11197 must
11198 \emph default
11199  follow the 
11200 \family sans
11201 Slide
11202 \family default
11203  with which it is associated.
11204  What's a person to do?
11205 \end_layout
11206
11207 \begin_layout Standard
11208 Luckily, there are two \SpecialChar LaTeX
11209  commands that allow you to select what to print
11210  out.
11211  Both must be placed into the preamble of your document.
11212  The command 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216
11217 \family typewriter
11218
11219 \backslash
11220 onlyslides{
11221 \backslash
11222 slides}
11223 \family default
11224
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228  will cause the output to contain only the 
11229 \family sans
11230 Slide
11231 \family default
11232 s and 
11233 \family sans
11234 Overlay
11235 \family default
11236 s.
11237  Correspondingly, the command 
11238 \begin_inset Quotes eld
11239 \end_inset
11240
11241
11242 \family typewriter
11243
11244 \backslash
11245 onlynotes{
11246 \backslash
11247 notes}
11248 \family default
11249
11250 \begin_inset Quotes erd
11251 \end_inset
11252
11253  prevents the output of anything but 
11254 \family sans
11255 Note
11256 \family default
11257 s.
11258  I'd advise placing both commands in the preamble and initially comment
11259  both out.
11260  You can then preview your entire presentation as you write.
11261  When you're done writing, you can then uncomment one of the two to select
11262  what you want to print.
11263  I like to uncomment 
11264 \begin_inset Quotes eld
11265 \end_inset
11266
11267
11268 \family typewriter
11269
11270 \backslash
11271 onlyslides{
11272 \backslash
11273 slides}
11274 \family default
11275
11276 \begin_inset Quotes erd
11277 \end_inset
11278
11279  , print to a file with 
11280 \begin_inset Quotes eld
11281 \end_inset
11282
11283
11284 \family typewriter
11285 -slides
11286 \family default
11287
11288 \begin_inset Quotes erd
11289 \end_inset
11290
11291  in its name, comment it back out, then uncomment 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295
11296 \family typewriter
11297
11298 \backslash
11299 onlynotes{
11300 \backslash
11301 notes}
11302 \family default
11303
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and print to a 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311
11312 \family typewriter
11313 *-notes.ps
11314 \family default
11315
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319  file.
11320  I can then send either file to a printer, loading transparencies or plain
11321  paper as appropriate.
11322 \end_layout
11323
11324 \begin_layout Standard
11325 You can also provide other arguments to the 
11326 \begin_inset Quotes eld
11327 \end_inset
11328
11329
11330 \family typewriter
11331
11332 \backslash
11333 onlyslides{}
11334 \family default
11335
11336 \begin_inset Quotes erd
11337 \end_inset
11338
11339  and 
11340 \begin_inset Quotes eld
11341 \end_inset
11342
11343
11344 \family typewriter
11345
11346 \backslash
11347 onlynotes{}
11348 \family default
11349
11350 \begin_inset Quotes erd
11351 \end_inset
11352
11353  commands.
11354  See a good \SpecialChar LaTeX
11355  book for details.
11356 \end_layout
11357
11358 \begin_layout Subsubsection
11359 The 
11360 \family sans
11361 slides
11362 \family default
11363  Class Template File
11364 \end_layout
11365
11366 \begin_layout Standard
11367 I have also provided a template file, 
11368 \begin_inset Quotes eld
11369 \end_inset
11370
11371
11372 \family typewriter
11373 slides.lyx
11374 \family default
11375
11376 \begin_inset Quotes erd
11377 \end_inset
11378
11379 , with the 
11380 \family sans
11381 slides
11382 \family default
11383  class.
11384  To use it, begin your new presentation with 
11385 \family sans
11386 File\SpecialChar menuseparator
11387 New
11388 \begin_inset space ~
11389 \end_inset
11390
11391 from
11392 \begin_inset space ~
11393 \end_inset
11394
11395 Template
11396 \family default
11397 .
11398  Your new \SpecialChar LyX
11399  presentation file will contain an example 
11400 \family sans
11401 Slide
11402 \family default
11403  – 
11404 \family sans
11405 Overlay
11406 \family default
11407  – 
11408 \family sans
11409 Note
11410 \family default
11411  triplet.
11412  The 
11413 \family sans
11414 Slide
11415 \family default
11416  and 
11417 \family sans
11418 Overlay
11419 \family default
11420  additionally contain an example of the use of 
11421 \family sans
11422 InvisibleText
11423 \family default
11424  and 
11425 \family sans
11426 VisibleText
11427 \family default
11428 .
11429  Lastly, the preamble will contain:
11430 \end_layout
11431
11432 \begin_layout LyX-Code
11433 % Uncomment to print out only slides and overlays
11434 \end_layout
11435
11436 \begin_layout LyX-Code
11437 %
11438 \end_layout
11439
11440 \begin_layout LyX-Code
11441 %
11442 \backslash
11443 onlyslides{
11444 \backslash
11445 slides}
11446 \begin_inset Newline newline
11447 \end_inset
11448
11449  
11450 \end_layout
11451
11452 \begin_layout LyX-Code
11453 % Uncomment to print out only notes
11454 \end_layout
11455
11456 \begin_layout LyX-Code
11457 %
11458 \end_layout
11459
11460 \begin_layout LyX-Code
11461 %
11462 \backslash
11463 onlynotes{
11464 \backslash
11465 notes}
11466 \end_layout
11467
11468 \begin_layout Standard
11469 One final thing: I created this class to support the \SpecialChar LaTeX2e
11470  
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474
11475 \noun on
11476 Sli\SpecialChar TeX
11477
11478 \noun default
11479  emulation
11480 \begin_inset Quotes erd
11481 \end_inset
11482
11483  class, one of the built-in \SpecialChar LaTeX2e
11484  classes.
11485  Neither I nor the rest of the \SpecialChar LyX
11486  Team endorse or oppose the use of this built-in
11487  slide class.
11488  It's here if you want it or need it.
11489  There exist other \SpecialChar LaTeX2e
11490  classes for creating presentations, such as the 
11491 \family sans
11492 Foils
11493 \family default
11494  class [see section
11495 \begin_inset space ~
11496 \end_inset
11497
11498
11499 \begin_inset CommandInset ref
11500 LatexCommand ref
11501 reference "sec:foiltex"
11502
11503 \end_inset
11504
11505 ] or the 
11506 \begin_inset Quotes eld
11507 \end_inset
11508
11509
11510 \family typewriter
11511 seminar
11512 \family default
11513
11514 \begin_inset Quotes erd
11515 \end_inset
11516
11517  package [present on some \SpecialChar TeX
11518  distributions].
11519  The latter is not yet supported under \SpecialChar LyX
11520 .
11521 \begin_inset Foot
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 Perhaps you can take on the task\SpecialChar ldots
11526
11527 \end_layout
11528
11529 \end_inset
11530
11531  I know nothing about these other classes.
11532  Try them out to see what sort of alternative they provide.
11533 \end_layout
11534
11535 \begin_layout Section
11536
11537 \change_inserted 564990737 1670439661
11538 Reports
11539 \end_layout
11540
11541 \begin_layout Subsection
11542
11543 \change_inserted 564990737 1670439661
11544 report
11545 \end_layout
11546
11547 \begin_layout Standard
11548
11549 \change_inserted 564990737 1670439661
11550 The document class 
11551 \family sans
11552 report
11553 \family default
11554  provides the 
11555 \family sans
11556 report.cls
11557 \family default
11558  document class for preparing reports.
11559  Like the 
11560 \family sans
11561 book
11562 \family default
11563  document class, this provides parts, chapters and sections but does not
11564  provide the paragraph styles needed for a book; like the 
11565 \family sans
11566 article
11567 \family default
11568  document class, it provides the abstract paragraph style.
11569  In two-sided mode, it does not start a new chapter on the right hand page.
11570 \end_layout
11571
11572 \begin_layout Standard
11573
11574 \change_inserted 564990737 1670439674
11575 The remaining 
11576 \family sans
11577 report
11578 \family default
11579  document classes are described in the Collections (section
11580 \begin_inset space ~
11581 \end_inset
11582
11583
11584 \begin_inset CommandInset ref
11585 LatexCommand ref
11586 reference "sec:Collections"
11587
11588 \end_inset
11589
11590 ).
11591 \end_layout
11592
11593 \begin_layout Section
11594
11595 \change_inserted 564990737 1670439674
11596 Scripts (drama)
11597 \end_layout
11598
11599 \begin_layout Subsection
11600 Broadway
11601 \end_layout
11602
11603 \begin_layout Standard
11604 by 
11605 \shape smallcaps
11606 Garst Reese
11607 \end_layout
11608
11609 \begin_layout Subsubsection
11610 Introduction
11611 \end_layout
11612
11613 \begin_layout Standard
11614 Broadway is for writing plays.
11615  The format is more decorative than Hollywood, and much less standardized.
11616  This format should be suitable for workshops.
11617 \end_layout
11618
11619 \begin_layout Subsubsection
11620 Special problems
11621 \end_layout
11622
11623 \begin_layout Standard
11624 The same as in Hollywood.
11625 \end_layout
11626
11627 \begin_layout Subsubsection
11628 Special features
11629 \end_layout
11630
11631 \begin_layout Standard
11632 Insert the 
11633 \family sans
11634 Speaker
11635 \family default
11636  names as labels then cross-reference the label to insert the name.
11637  The cross-reference dialog will show the current cast of characters.
11638 \end_layout
11639
11640 \begin_layout Subsubsection
11641 Paper size and Margins
11642 \end_layout
11643
11644 \begin_layout Standard
11645 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11646 \end_layout
11647
11648 \begin_layout Subsubsection
11649 Environments
11650 \end_layout
11651
11652 \begin_layout Standard
11653 The following environments are available.
11654  You can use broadway.bind to get the bind keys shown at the right.
11655 \end_layout
11656
11657 \begin_layout Itemize
11658
11659 \family sans
11660 Standard
11661 \begin_inset Newline newline
11662 \end_inset
11663
11664
11665 \family default
11666 You should not have to use this, but it is here for anything that does not
11667  fit otherwise.
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 Narrative
11674 \begin_inset space \hfill{}
11675 \end_inset
11676
11677 M-z n
11678 \begin_inset Newline newline
11679 \end_inset
11680
11681
11682 \family default
11683 Used to describe stage setting and the action.
11684  First use of speaker names in all CAPs.
11685 \end_layout
11686
11687 \begin_layout Itemize
11688
11689 \family sans
11690 ACT
11691 \begin_inset space \hfill{}
11692 \end_inset
11693
11694 M-z a
11695 \begin_inset Newline newline
11696 \end_inset
11697
11698
11699 \family default
11700 Automatically numbered.
11701  On screen it will be arabic, but will print as Roman.
11702 \end_layout
11703
11704 \begin_layout Itemize
11705
11706 \family sans
11707 ACT*
11708 \begin_inset space \hfill{}
11709 \end_inset
11710
11711 M-z S at
11712 \begin_inset Newline newline
11713 \end_inset
11714
11715
11716 \family default
11717 Subtitle for 
11718 \family sans
11719 ACT.
11720
11721 \family default
11722  It is just centered text.
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 SCENE
11729 \begin_inset space \hfill{}
11730 \end_inset
11731
11732 M-z S-S
11733 \begin_inset Newline newline
11734 \end_inset
11735
11736
11737 \family default
11738 Not automatically numbered.
11739  You supply the number.
11740  This is because I couldn't figure out how.
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 AT_RISE:
11747 \begin_inset space \hfill{}
11748 \end_inset
11749
11750 M-z S-R
11751 \begin_inset Newline newline
11752 \end_inset
11753
11754
11755 \family default
11756 A special case of Narrative to describe the setting and action as the curtain
11757  rises.
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 Speaker
11764 \begin_inset space \hfill{}
11765 \end_inset
11766
11767 M-z s
11768 \begin_inset Newline newline
11769 \end_inset
11770
11771
11772 \family default
11773 The speaker's (actor's) title, centered in all CAPS.
11774 \end_layout
11775
11776 \begin_layout Itemize
11777
11778 \family sans
11779 Parenthetical
11780 \begin_inset space \hfill{}
11781 \end_inset
11782
11783 M-z p
11784 \begin_inset Newline newline
11785 \end_inset
11786
11787
11788 \family default
11789 Instructions to the speaker.
11790  The parentheses are automatically inserted.
11791  The ( will appear on screen, but both will be in the printed play.
11792  This environment is only used within 
11793 \family sans
11794 Dialogue
11795 \family default
11796 .
11797 \end_layout
11798
11799 \begin_layout Itemize
11800
11801 \family sans
11802 Dialogue
11803 \begin_inset space \hfill{}
11804 \end_inset
11805
11806 M-z d
11807 \begin_inset Newline newline
11808 \end_inset
11809
11810
11811 \family default
11812 What the Speaker says.
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \family sans
11818 CURTAIN
11819 \begin_inset space \hfill{}
11820 \end_inset
11821
11822 M-z S-C
11823 \begin_inset Newline newline
11824 \end_inset
11825
11826
11827 \family default
11828 The curtain comes down.
11829 \end_layout
11830
11831 \begin_layout Itemize
11832
11833 \family sans
11834 Title
11835 \begin_inset space \hfill{}
11836 \end_inset
11837
11838 M-z S-T
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Author
11845 \begin_inset space \hfill{}
11846 \end_inset
11847
11848 M-z S-A
11849 \end_layout
11850
11851 \begin_layout Itemize
11852
11853 \family sans
11854 Right_Address
11855 \begin_inset space \hfill{}
11856 \end_inset
11857
11858 M-z r
11859 \end_layout
11860
11861 \begin_layout Standard
11862 Hello there.
11863 \end_layout
11864
11865 \begin_layout Subsection
11866 Hollywood (Hollywood spec scripts)
11867 \end_layout
11868
11869 \begin_layout Standard
11870 by 
11871 \shape smallcaps
11872 Garst Reese
11873 \end_layout
11874
11875 \begin_layout Subsubsection
11876 Introduction
11877 \end_layout
11878
11879 \begin_layout Standard
11880 Getting the format of a Hollywood script right is a 
11881 \begin_inset Quotes eld
11882 \end_inset
11883
11884 rite of passage.
11885 \begin_inset Quotes erd
11886 \end_inset
11887
11888  It is designed to make the readers focus on content and to be easy and
11889  familiar for the actors to read.
11890  Each page of a script should be one minute of film.
11891  Nothing goes in a script that you cannot see or hear on screen.
11892  The courier 12 pt font should be used throughout.
11893  No italics.
11894 \end_layout
11895
11896 \begin_layout Subsubsection
11897 Special problems
11898 \end_layout
11899
11900 \begin_layout Standard
11901 Speakers' lines should NEVER break in mid-sentence.
11902  If a speaker's lines continue over a page break, repeat the 
11903 \family sans
11904 Speaker
11905 \family default
11906  title followed by (Cont'd).
11907 \end_layout
11908
11909 \begin_layout Subsubsection
11910 Special features
11911 \end_layout
11912
11913 \begin_layout Standard
11914 Insert the 
11915 \family sans
11916 Speaker
11917 \family default
11918  names as labels then cross-reference the label to insert the name.
11919  The cross-reference dialog will show the current cast of characters.
11920  You can use this to insert the speaker name in narratives also.
11921 \end_layout
11922
11923 \begin_layout Subsubsection
11924 Paper size and Margins
11925 \end_layout
11926
11927 \begin_layout Standard
11928 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11929 \end_layout
11930
11931 \begin_layout Subsubsection
11932 Environments
11933 \end_layout
11934
11935 \begin_layout Standard
11936 The following environments are available.
11937  You can use hollywood.bind to get the bind keys shown at the right.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941
11942 \family sans
11943 Standard
11944 \begin_inset Newline newline
11945 \end_inset
11946
11947
11948 \family default
11949 Used where nothing else works.
11950  Try to avoid it.
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 FADE_IN
11957 \family default
11958 :
11959 \begin_inset space \hfill{}
11960 \end_inset
11961
11962
11963 \family sans
11964 M-z S-I
11965 \family default
11966
11967 \begin_inset Newline newline
11968 \end_inset
11969
11970 Usually followed by something like 
11971 \begin_inset Quotes eld
11972 \end_inset
11973
11974 on Sally waking up.
11975 \begin_inset Quotes erd
11976 \end_inset
11977
11978
11979 \end_layout
11980
11981 \begin_layout Itemize
11982
11983 \family sans
11984 INT:
11985 \begin_inset space \hfill{}
11986 \end_inset
11987
11988 M-z i
11989 \begin_inset Newline newline
11990 \end_inset
11991
11992
11993 \family default
11994 Introduces a new INTERIOR camera set-up.
11995  Always followed by DAY or NIGHT, or something similar to define the lighting
11996  required.
11997  Everthing on this line in CAPS.
11998 \end_layout
11999
12000 \begin_layout Itemize
12001
12002 \family sans
12003 EXT:
12004 \begin_inset space \hfill{}
12005 \end_inset
12006
12007 M-z e
12008 \begin_inset Newline newline
12009 \end_inset
12010
12011
12012 \family default
12013 Introduces a new EXTERIOR camera set-up.
12014  Everthing on this line in CAPS.
12015 \end_layout
12016
12017 \begin_layout Itemize
12018
12019 \family sans
12020 Speaker
12021 \begin_inset space \hfill{}
12022 \end_inset
12023
12024 M-z s
12025 \begin_inset Newline newline
12026 \end_inset
12027
12028
12029 \family default
12030 The character speaking.
12031 \end_layout
12032
12033 \begin_layout Itemize
12034
12035 \family sans
12036 Parenthetical
12037 \begin_inset space \hfill{}
12038 \end_inset
12039
12040 M-z p
12041 \begin_inset Newline newline
12042 \end_inset
12043
12044
12045 \family default
12046 Instructions to the speaker.
12047  The () are automatically inserted.
12048 \end_layout
12049
12050 \begin_layout Itemize
12051
12052 \family sans
12053 Dialogue
12054 \begin_inset space \hfill{}
12055 \end_inset
12056
12057 M-z d
12058 \begin_inset Newline newline
12059 \end_inset
12060
12061
12062 \family default
12063 What the 
12064 \family sans
12065 Speaker
12066 \family default
12067  says.
12068 \end_layout
12069
12070 \begin_layout Itemize
12071
12072 \family sans
12073 Transition
12074 \begin_inset space \hfill{}
12075 \end_inset
12076
12077 M-z t
12078 \begin_inset Newline newline
12079 \end_inset
12080
12081
12082 \family default
12083 Camera movement instruction.
12084  e.
12085 \begin_inset space \thinspace{}
12086 \end_inset
12087
12088 g.
12089 \begin_inset space \space{}
12090 \end_inset
12091
12092 CUT TO:
12093 \end_layout
12094
12095 \begin_layout Itemize
12096
12097 \family sans
12098 FADE OUT:
12099 \begin_inset space \hfill{}
12100 \end_inset
12101
12102 M-z S-I
12103 \end_layout
12104
12105 \begin_layout Itemize
12106
12107 \family sans
12108 Author
12109 \begin_inset space \hfill{}
12110 \end_inset
12111
12112 M-z S-A
12113 \end_layout
12114
12115 \begin_layout Itemize
12116
12117 \family sans
12118 Title
12119 \begin_inset space \hfill{}
12120 \end_inset
12121
12122 M-z S-T
12123 \end_layout
12124
12125 \begin_layout Itemize
12126
12127 \family sans
12128 Right_Address
12129 \begin_inset space \hfill{}
12130 \end_inset
12131
12132 M-z r
12133 \end_layout
12134
12135 \begin_layout Subsubsection
12136 Script jargon
12137 \end_layout
12138
12139 \begin_layout Itemize
12140 (O.S) — off screen
12141 \end_layout
12142
12143 \begin_layout Itemize
12144 (V.0) — voice over
12145 \end_layout
12146
12147 \begin_layout Itemize
12148 b.
12149 \begin_inset space \thinspace{}
12150 \end_inset
12151
12152 g.
12153  — background
12154 \end_layout
12155
12156 \begin_layout Itemize
12157 C.U.
12158  — close-up
12159 \end_layout
12160
12161 \begin_layout Itemize
12162 PAN — camera movement
12163 \end_layout
12164
12165 \begin_layout Itemize
12166 INSERT — cut to close-up of
12167 \end_layout
12168
12169 \begin_layout Chapter
12170
12171 \change_inserted 564990737 1671185876
12172 Modules
12173 \end_layout
12174
12175 \begin_layout Section
12176 Multiple Text Columns
12177 \end_layout
12178
12179 \begin_layout Standard
12180 This feature is independent of the option 
12181 \family sans
12182 Two-column document
12183 \family default
12184  in the document settings under 
12185 \family sans
12186 Text Layout
12187 \family default
12188 .
12189  If you want to have 2
12190 \begin_inset space ~
12191 \end_inset
12192
12193 columns for the whole document, it is recommended to use the 
12194 \family sans
12195 Two-column document
12196 \family default
12197  option.
12198  For all other cases use this feature.
12199 \end_layout
12200
12201 \begin_layout Standard
12202 To use multiple text columns in your document, you have to load the module
12203  
12204 \family sans
12205 Multiple Columns
12206 \family default
12207  (menu 
12208 \family sans
12209 Document\SpecialChar menuseparator
12210 Settings\SpecialChar menuseparator
12211 Modules
12212 \family default
12213 ) and must have the \SpecialChar LaTeX
12214 -package 
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 multicol
12220 \end_layout
12221
12222 \end_inset
12223
12224  installed.
12225 \end_layout
12226
12227 \begin_layout Standard
12228 Footnotes within multiple columns will be placed at the bottom of the page
12229  and not under each column.
12230  Within the different columns you can use everything, with the limitation
12231  that for floats you need to use the float option 
12232 \family sans
12233 Span columns
12234 \family default
12235 .
12236 \end_layout
12237
12238 \begin_layout Subsection
12239 Basics
12240 \end_layout
12241
12242 \begin_layout Standard
12243 If you want to have 2
12244 \begin_inset space ~
12245 \end_inset
12246
12247 columns in your text, insert a multicolumn inset via the menu 
12248 \family sans
12249 Insert\SpecialChar menuseparator
12250 Custom
12251 \begin_inset space ~
12252 \end_inset
12253
12254 Insets\SpecialChar menuseparator
12255 Multiple
12256 \begin_inset space ~
12257 \end_inset
12258
12259 Columns
12260 \family default
12261  where the columns should start.
12262  Write all text that should be printed in 2
12263 \begin_inset space ~
12264 \end_inset
12265
12266 columns into this inset.
12267 \end_layout
12268
12269 \begin_layout Standard
12270 Here is an example:
12271 \end_layout
12272
12273 \begin_layout Standard
12274 \noindent
12275 \begin_inset Flex Multiple Columns
12276 status open
12277
12278 \begin_layout Plain Layout
12279 \noindent
12280
12281 \series bold
12282 \size small
12283 The Adventure of the Empty House
12284 \series default
12285
12286 \begin_inset Newline newline
12287 \end_inset
12288
12289 by Sir Arthur Conan Doyle
12290 \end_layout
12291
12292 \begin_layout Plain Layout
12293
12294 \size small
12295 It was in the spring of the year 1894 that all London was interested, and
12296  the fashionable world dismayed, by the murder of the Honourable Ronald
12297  Adair under most unusual and inexplicable circumstances.
12298  The public has already learned those particulars of the crime which came
12299  out in the police investigation, but a good deal was suppressed upon that
12300  occasion, since the case for the prosecution was so overwhelmingly strong
12301  that it was not necessary to bring forward all the facts.
12302  Only now, at the end of nearly ten years, am I allowed to supply those
12303  missing links which make up the whole of that remarkable chain.
12304  The crime was of interest in itself, but that interest was as nothing to
12305  me compared to the inconceivable sequel, which afforded me the greatest
12306  shock and surprise of any event in my adventurous life.
12307  Even now, after this long interval, I find myself thrilling as I think
12308  of it, and feeling once more that sudden flood of joy, amazement, and increduli
12309 ty which utterly submerged my mind.
12310  Let me say to that public, which has shown some interest in those glimpses
12311  which I have occasionally given them of the thoughts and actions of a very
12312  remarkable man, that they are not to blame me if I have not shared my knowledge
12313  with them, for I should have considered it my first duty to do so, had
12314  I not been barred by a positive prohibition from his own lips, which was
12315  only withdrawn upon the third of last month.
12316 \end_layout
12317
12318 \end_inset
12319
12320
12321 \end_layout
12322
12323 \begin_layout Standard
12324 To get 3 or more columns, set the cursor into the multicolumn inset and
12325  use the menu 
12326 \family sans
12327 Insert\SpecialChar menuseparator
12328 Number
12329 \begin_inset space ~
12330 \end_inset
12331
12332 of
12333 \begin_inset space ~
12334 \end_inset
12335
12336 Columns
12337 \family default
12338 .
12339  The number of the desired columns is written into that inset (for 3
12340 \begin_inset space ~
12341 \end_inset
12342
12343 columns write 
12344 \begin_inset Quotes eld
12345 \end_inset
12346
12347 3
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351 ).
12352 \begin_inset Newline newline
12353 \end_inset
12354
12355 Here is an example with 3
12356 \begin_inset space ~
12357 \end_inset
12358
12359 columns:
12360 \end_layout
12361
12362 \begin_layout Standard
12363 \begin_inset Flex Multiple Columns
12364 status open
12365
12366 \begin_layout Plain Layout
12367
12368 \size footnotesize
12369 \begin_inset Argument 1
12370 status open
12371
12372 \begin_layout Plain Layout
12373
12374 3
12375 \end_layout
12376
12377 \end_inset
12378
12379 It can be imagined that my close intimacy with Sherlock Holmes had interested
12380  me deeply in crime, and that after his disappearance I never failed to
12381  read with care the various problems which came before the public.
12382  And I even attempted, more than once, for my own private satisfaction,
12383  to employ his methods in their solution, though with indifferent success.
12384  There was none, however, which appealed to me like this tragedy of Ronald
12385  Adair.
12386  As I read the evidence at the inquest, which led up to a verdict of willful
12387  murder against some person or persons unknown, I realized more clearly
12388  than I had ever done the loss which the community had sustained by the
12389  death of Sherlock Holmes.
12390  There were points about this strange business which would, I was sure,
12391  have specially appealed to him, and the efforts of the police would have
12392  been supplemented, or more probably anticipated, by the trained observation
12393  and the alert mind of the first criminal agent in Europe.
12394  All day, as I drove upon my round, I turned over the case in my mind and
12395  found no explanation which appeared to me to be adequate.
12396  At the risk of telling a twice-told tale, I will recapitulate the facts
12397  as they were known to the public at the conclusion of the inquest.
12398 \end_layout
12399
12400 \end_inset
12401
12402
12403 \end_layout
12404
12405 \begin_layout Standard
12406 You can have up to 10
12407 \begin_inset space ~
12408 \end_inset
12409
12410 columns if you want to, but that might not be very pleasant for the readers
12411  of your document.
12412 \end_layout
12413
12414 \begin_layout Standard
12415 \begin_inset Newpage newpage
12416 \end_inset
12417
12418
12419 \end_layout
12420
12421 \begin_layout Subsection
12422 Columns inside Columns
12423 \end_layout
12424
12425 \begin_layout Standard
12426 You can also have columns inside columns:
12427 \end_layout
12428
12429 \begin_layout Standard
12430 \begin_inset Flex Multiple Columns
12431 status open
12432
12433 \begin_layout Plain Layout
12434
12435 \size footnotesize
12436 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
12437  at that time governor of one of the Australian colonies.
12438  Adair's mother had returned from Australia to undergo the operation for
12439  cataract, and she, her son Ronald, and her daughter Hilda were living together
12440  at 427 Park Lane.
12441 \end_layout
12442
12443 \begin_layout Plain Layout
12444 \begin_inset Flex Multiple Columns
12445 status open
12446
12447 \begin_layout Plain Layout
12448
12449 \size footnotesize
12450 The youth moved in the best society
12451 \begin_inset space ~
12452 \end_inset
12453
12454 – had, so far as was known, no enemies and no particular vices.
12455  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
12456  had been broken off by mutual consent some months before, and there was
12457  no sign that it had left any very profound feeling behind it.
12458  For the rest {sic} the man's life moved in a narrow and conventional circle,
12459  for his habits were quiet and his nature unemotional.
12460  Yet it was upon this easy-going young aristocrat that death came, in most
12461  strange and unexpected form, between the hours of ten and eleven-twenty
12462  on the night of March 30, 1894.
12463 \end_layout
12464
12465 \end_inset
12466
12467
12468 \end_layout
12469
12470 \begin_layout Plain Layout
12471
12472 \size footnotesize
12473 Ronald Adair was fond of cards
12474 \begin_inset space ~
12475 \end_inset
12476
12477 – playing continually, but never for such stakes as would hurt him.
12478  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
12479  It was shown that, after dinner on the day of his death, he had played
12480  a rubber of whist at the latter club.
12481  He had also played there in the afternoon.
12482
12483 \size default
12484  
12485 \size footnotesize
12486 The evidence of those who had played with him
12487 \begin_inset space ~
12488 \end_inset
12489
12490 – Mr.
12491  Murray, Sir John Hardy, and Colonel Moran
12492 \begin_inset space ~
12493 \end_inset
12494
12495 – showed that the game was whist, and that there was a fairly equal fall
12496  of the cards.
12497  Adair might have lost five pounds, but not more.
12498  His fortune was a considerable one, and such a loss could not in any way
12499  affect him.
12500  He had played nearly every day at one club or other, but he was a cautious
12501  player, and usually rose a winner.
12502  It came out in evidence that, in partnership with Colonel Moran, he had
12503  actually won as much as four hundred and twenty pounds in a sitting, some
12504  weeks before, from Godfrey Milner and Lord Balmoral.
12505  So much for his recent history as it came out at the inquest.
12506 \end_layout
12507
12508 \end_inset
12509
12510
12511 \end_layout
12512
12513 \begin_layout Subsection
12514 Advanced Examples
12515 \end_layout
12516
12517 \begin_layout Standard
12518 The examples in this section show some more special features of multiple
12519  columns.
12520 \end_layout
12521
12522 \begin_layout Standard
12523 For more features of multiple columns, have a look at the 
12524 \begin_inset CommandInset href
12525 LatexCommand href
12526 name "documentation"
12527 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
12528 literal "false"
12529
12530 \end_inset
12531
12532  of the \SpecialChar LaTeX
12533 -package 
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 multicol
12539 \end_layout
12540
12541 \end_inset
12542
12543 .
12544 \end_layout
12545
12546 \begin_layout Subsubsection
12547 Preface
12548 \end_layout
12549
12550 \begin_layout Standard
12551 To add a preface text for multiple columns, set the cursor into the multicolumn
12552  inset and use the menu 
12553 \family sans
12554 Insert\SpecialChar menuseparator
12555 Preface
12556 \family default
12557 .
12558  Write your preface text into that inset.
12559 \begin_inset Newline newline
12560 \end_inset
12561
12562 This is an example with some preface text:
12563 \end_layout
12564
12565 \begin_layout Standard
12566 \begin_inset VSpace bigskip
12567 \end_inset
12568
12569
12570 \end_layout
12571
12572 \begin_layout Standard
12573 \begin_inset Flex Multiple Columns
12574 status open
12575
12576 \begin_layout Plain Layout
12577 \begin_inset Argument 2
12578 status open
12579
12580 \begin_layout Plain Layout
12581 And the story continues and continues and continues and continues\SpecialChar ldots
12582
12583 \end_layout
12584
12585 \end_inset
12586
12587
12588 \size small
12589 On the evening of the crime, he returned from the club exactly at ten.
12590  His mother and sister were out spending the evening with a relation.
12591  The servant deposed that she heard him enter the front room on the second
12592  floor, generally used as his sitting-room.
12593  She had lit a fire there, and as it smoked she had opened the window.
12594  No sound was heard from the room until eleven-twenty, the hour of the return
12595  of Lady Maynooth and her daughter.
12596  Desiring to say good-night, she attempted to enter her son's room.
12597  The door was locked on the inside, and no answer could be got to their
12598  cries and knocking.
12599  Help was obtained, and the door forced.
12600  The unfortunate young man was found lying near the table.
12601  His head had been horribly mutilated by an expanding revolver bullet, but
12602  no weapon of any sort was to be found in the room.
12603 \end_layout
12604
12605 \end_inset
12606
12607
12608 \end_layout
12609
12610 \begin_layout Standard
12611 You can also use a section heading as the preface if you use a section command
12612  as \SpecialChar TeX
12613  Code.
12614  For example the command
12615 \end_layout
12616
12617 \begin_layout LyX-Code
12618
12619 \backslash
12620 subsection{subsection title}
12621 \end_layout
12622
12623 \begin_layout Standard
12624 creates a subsection.
12625  In this example the preface is a subsubsection:
12626 \end_layout
12627
12628 \begin_layout Standard
12629 \begin_inset Flex Multiple Columns
12630 status open
12631
12632 \begin_layout Plain Layout
12633 \begin_inset Argument 2
12634 status open
12635
12636 \begin_layout Plain Layout
12637 \begin_inset ERT
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641
12642
12643 \backslash
12644 subsubsection{
12645 \end_layout
12646
12647 \end_inset
12648
12649 This is a subsubsection heading as a preface
12650 \begin_inset ERT
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654
12655 }
12656 \end_layout
12657
12658 \end_inset
12659
12660
12661 \end_layout
12662
12663 \end_inset
12664
12665
12666 \size small
12667 A minute examination of the circumstances served only to make the case more
12668  complex.
12669  In the first place, no reason could be given why the young man should have
12670  fastened the door upon the inside.
12671  There was the possibility that the murderer had done this, and had afterwards
12672  escaped by the window.
12673  The drop was at least twenty feet, however, and a bed of crocuses in full
12674  bloom lay beneath.
12675  Neither the flowers nor the earth showed any sign of having been disturbed,
12676  nor were there any marks upon the narrow strip of grass which separated
12677  the house from the road.
12678  Apparently, therefore, it was the young man himself who had fastened the
12679  door.
12680  But how did he come by his death? No one could have climbed up to the window
12681  without leaving traces.
12682  Suppose a man had fired through the window, he would indeed be a remarkable
12683  shot who could with a revolver inflict so deadly a wound.
12684  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
12685  a hundred yards of the house.
12686  No one had heard a shot.
12687 \end_layout
12688
12689 \end_inset
12690
12691
12692 \end_layout
12693
12694 \begin_layout Standard
12695 If there is less vertical space than 6
12696 \begin_inset space ~
12697 \end_inset
12698
12699 text lines is left on the page at the beginning of the multiple columns,
12700  a page break will be inserted before the multiple columns.
12701  Depending on the number of lines of the preface text, you might want to
12702  change this space.
12703  This is done by setting the cursor into the mulitcolumn inset behind the
12704  preface (if there is any) and using the menu 
12705 \family sans
12706 Insert\SpecialChar menuseparator
12707 Space
12708 \begin_inset space ~
12709 \end_inset
12710
12711 Before
12712 \begin_inset space ~
12713 \end_inset
12714
12715 Page
12716 \begin_inset space ~
12717 \end_inset
12718
12719 Break
12720 \family default
12721 .
12722  Insert into that inset the amount of space like e.
12723 \begin_inset space \thinspace{}
12724 \end_inset
12725
12726 g.
12727 \begin_inset space \space{}
12728 \end_inset
12729
12730
12731 \begin_inset Quotes eld
12732 \end_inset
12733
12734 5cm
12735 \begin_inset Quotes erd
12736 \end_inset
12737
12738 .
12739 \begin_inset Newline newline
12740 \end_inset
12741
12742 In this example the space is set to 7
12743 \begin_inset space ~
12744 \end_inset
12745
12746 text lines by using 
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751 7
12752 \backslash
12753 baselineskip
12754 \end_layout
12755
12756 \end_inset
12757
12758  (where the command 
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763
12764 \backslash
12765 baselineskip
12766 \end_layout
12767
12768 \end_inset
12769
12770  needs to be inserted as \SpecialChar TeX
12771  code):
12772 \end_layout
12773
12774 \begin_layout Standard
12775 \begin_inset Flex Multiple Columns
12776 status open
12777
12778 \begin_layout Plain Layout
12779 \begin_inset Argument 3
12780 status open
12781
12782 \begin_layout Plain Layout
12783 7
12784 \begin_inset ERT
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788
12789
12790 \backslash
12791 baselineskip
12792 \end_layout
12793
12794 \end_inset
12795
12796
12797 \end_layout
12798
12799 \end_inset
12800
12801
12802 \size small
12803 On the evening of the crime, he returned from the club exactly at ten.
12804  His mother and sister were out spending the evening with a relation.
12805  The servant deposed that she heard him enter the front room on the second
12806  floor, generally used as his sitting-room.
12807  She had lit a fire there, and as it smoked she had opened the window.
12808  No sound was heard from the room until eleven-twenty, the hour of the return
12809  of Lady Maynooth and her daughter.
12810  Desiring to say good-night, she attempted to enter her son's room.
12811  The door was locked on the inside, and no answer could be got to their
12812  cries and knocking.
12813  Help was obtained, and the door forced.
12814  The unfortunate young man was found lying near the table.
12815  His head had been horribly mutilated by an expanding revolver bullet, but
12816  no weapon of any sort was to be found in the room.
12817 \end_layout
12818
12819 \end_inset
12820
12821
12822 \end_layout
12823
12824 \begin_layout Subsubsection
12825 Surrounding Space
12826 \end_layout
12827
12828 \begin_layout Standard
12829 The amount of space before and after multiple columns can be changed by
12830  changing the length 
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835
12836 \backslash
12837 multicolsep
12838 \end_layout
12839
12840 \end_inset
12841
12842 .
12843  For example the command
12844 \end_layout
12845
12846 \begin_layout LyX-Code
12847
12848 \backslash
12849 setlength{
12850 \backslash
12851 multicolsep}{3cm}
12852 \end_layout
12853
12854 \begin_layout Standard
12855 in \SpecialChar TeX
12856  Code changes its value to 3
12857 \begin_inset space \thinspace{}
12858 \end_inset
12859
12860 cm.
12861  The change must be made before the multiple columns' start.
12862  The predefined value is 13
12863 \begin_inset space \thinspace{}
12864 \end_inset
12865
12866 pt.
12867 \end_layout
12868
12869 \begin_layout Standard
12870 For this example 
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875
12876 \backslash
12877 multicolsep
12878 \end_layout
12879
12880 \end_inset
12881
12882  was set to 2.5
12883 \begin_inset space \thinspace{}
12884 \end_inset
12885
12886 cm:
12887 \end_layout
12888
12889 \begin_layout Standard
12890 \begin_inset ERT
12891 status open
12892
12893 \begin_layout Plain Layout
12894
12895
12896 \backslash
12897 setlength{
12898 \backslash
12899 multicolsep}{2.5cm}
12900 \end_layout
12901
12902 \end_inset
12903
12904
12905 \end_layout
12906
12907 \begin_layout Standard
12908 \begin_inset Flex Multiple Columns
12909 status open
12910
12911 \begin_layout Plain Layout
12912
12913 \size small
12914 All day I turned these facts over in my mind, endeavouring to hit upon some
12915  theory which could reconcile them all, and to find that line of least resistanc
12916 e which my poor friend had declared to be the starting-point of every investigat
12917 ion.
12918  I confess that I made little progress.
12919  In the evening I strolled across the Park, and found myself about six o'clock
12920  at the Oxford Street end of Park Lane.
12921  A group of loafers upon the pavements, all staring up at a particular window,
12922  directed me to the house which I had come to see.
12923  A tall, thin man with coloured glasses, whom I strongly suspected of being
12924  a plain-clothes detective, was pointing out some theory of his own, while
12925  the others crowded round to listen to what he said.
12926  I got as near him as I could, but his observations seemed to me to be absurd,
12927  so I withdrew again in some disgust.
12928  As I did so I struck against an elderly, deformed man, who had been behind
12929  me, and I knocked down several books which he was carrying.
12930 \end_layout
12931
12932 \end_inset
12933
12934
12935 \end_layout
12936
12937 \begin_layout Standard
12938 \begin_inset Note Greyedout
12939 status open
12940
12941 \begin_layout Plain Layout
12942
12943 \series bold
12944 Note:
12945 \series default
12946  The values you set with 
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951
12952 \backslash
12953 setlength
12954 \end_layout
12955
12956 \end_inset
12957
12958  will be used for all following multiple columns until you change them again.
12959 \end_layout
12960
12961 \end_inset
12962
12963
12964 \end_layout
12965
12966 \begin_layout Standard
12967 \begin_inset ERT
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971
12972
12973 \backslash
12974 setlength{
12975 \backslash
12976 multicolsep}{13pt}
12977 \end_layout
12978
12979 \end_inset
12980
12981
12982 \begin_inset Note Note
12983 status collapsed
12984
12985 \begin_layout Plain Layout
12986 go back to the default
12987 \end_layout
12988
12989 \end_inset
12990
12991
12992 \end_layout
12993
12994 \begin_layout Standard
12995 \begin_inset Newpage newpage
12996 \end_inset
12997
12998
12999 \end_layout
13000
13001 \begin_layout Subsubsection
13002 Column Breaks
13003 \end_layout
13004
13005 \begin_layout Standard
13006 A column break can be forced by inserting the command 
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011
13012 \backslash
13013 columnbreak{}
13014 \end_layout
13015
13016 \end_inset
13017
13018  as \SpecialChar TeX
13019  Code to that position in the text where the column should be broken.
13020  Note that this leads in most cases to whitespace in the text.
13021 \begin_inset Newline newline
13022 \end_inset
13023
13024 Here is an example:
13025 \end_layout
13026
13027 \begin_layout Standard
13028 \begin_inset Flex Multiple Columns
13029 status open
13030
13031 \begin_layout Plain Layout
13032
13033 \size small
13034 \begin_inset Quotes eld
13035 \end_inset
13036
13037 You're surprised to see me, sir,
13038 \begin_inset Quotes erd
13039 \end_inset
13040
13041  said he, in a strange, croaking voice.
13042 \end_layout
13043
13044 \begin_layout Plain Layout
13045
13046 \size small
13047 I acknowledged that I was.
13048 \end_layout
13049
13050 \begin_layout Plain Layout
13051
13052 \size small
13053 \begin_inset Quotes eld
13054 \end_inset
13055
13056 Well, I've a conscience, sir, and when I chanced to see you go into this
13057  house, as I came hobbling after you, I thought to myself, I'll just step
13058  in and see that kind gentleman, and tell him that if I was a bit gruff
13059  in my manner there was not any harm meant, and that I am much obliged to
13060  him for picking up my books.
13061 \begin_inset Quotes erd
13062 \end_inset
13063
13064
13065 \end_layout
13066
13067 \begin_layout Plain Layout
13068
13069 \size small
13070 \begin_inset Quotes eld
13071 \end_inset
13072
13073 You make too much of a trifle,
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077  said I.
13078  
13079 \begin_inset Quotes eld
13080 \end_inset
13081
13082 May I ask how you knew who I was?
13083 \begin_inset Quotes erd
13084 \end_inset
13085
13086  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
13087 \begin_inset ERT
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091
13092
13093 \backslash
13094 columnbreak{}
13095 \end_layout
13096
13097 \end_inset
13098
13099
13100 \end_layout
13101
13102 \begin_layout Plain Layout
13103
13104 \size small
13105 \begin_inset Quotes eld
13106 \end_inset
13107
13108 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13109  you'll find my little bookshop at the corner of Church Street, and very
13110  happy to see you, I am sure.
13111  Maybe you collect yourself, sir.
13112  Here's 
13113 \noun on
13114 British
13115 \begin_inset space ~
13116 \end_inset
13117
13118 Birds
13119 \noun default
13120 , and 
13121 \noun on
13122 Catullus
13123 \noun default
13124 , and 
13125 \noun on
13126 The Holy War
13127 \noun default
13128
13129 \begin_inset space ~
13130 \end_inset
13131
13132 – a bargain, every one of them.
13133  With five volumes you could just fill that gap on that second shelf.
13134  It looks untidy, does it not, sir?
13135 \begin_inset Quotes erd
13136 \end_inset
13137
13138
13139 \end_layout
13140
13141 \end_inset
13142
13143
13144 \end_layout
13145
13146 \begin_layout Subsubsection
13147 Column Separation
13148 \end_layout
13149
13150 \begin_layout Standard
13151 The width of the columns is automatically calculated, but you can modify
13152  the space between the columns.
13153  This is done by changing the length 
13154 \begin_inset Flex Code
13155 status collapsed
13156
13157 \begin_layout Plain Layout
13158
13159 \backslash
13160 columnsep
13161 \end_layout
13162
13163 \end_inset
13164
13165 .
13166  Its predefined value is 10
13167 \begin_inset space \thinspace{}
13168 \end_inset
13169
13170 pt.
13171  Here is an example where 
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176
13177 \backslash
13178 columnsep
13179 \end_layout
13180
13181 \end_inset
13182
13183  is set to 3
13184 \begin_inset space \thinspace{}
13185 \end_inset
13186
13187 cm:
13188 \end_layout
13189
13190 \begin_layout Standard
13191 \begin_inset ERT
13192 status open
13193
13194 \begin_layout Plain Layout
13195
13196
13197 \backslash
13198 setlength{
13199 \backslash
13200 columnsep}{3cm}
13201 \end_layout
13202
13203 \end_inset
13204
13205
13206 \end_layout
13207
13208 \begin_layout Standard
13209 \begin_inset Flex Multiple Columns
13210 status open
13211
13212 \begin_layout Plain Layout
13213
13214 \size small
13215 My observations of No.
13216 \begin_inset space \space{}
13217 \end_inset
13218
13219 427 Park Lane did little to clear up the problem in which I was interested.
13220  The house was separated from the street by a low wall and railing, the
13221  whole not more than five feet high.
13222  It was perfectly easy, therefore, for anyone to get into the garden, but
13223  the window was entirely inaccessible, since there was no water pipe or
13224  anything which could help the most active man to climb it.
13225  More puzzled than ever, I retraced my steps to Kensington.
13226  I had not been in my study five minutes when the maid entered to say that
13227  a person desired to see me.
13228  To my astonishment it was none other than my strange old book collector,
13229  his sharp, wizened face peering out from a frame of white hair, and his
13230  precious volumes, a dozen of them at least, wedged under his right arm.
13231 \end_layout
13232
13233 \end_inset
13234
13235
13236 \end_layout
13237
13238 \begin_layout Standard
13239 \begin_inset ERT
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243
13244
13245 \backslash
13246 setlength{
13247 \backslash
13248 columnsep}{10pt}
13249 \end_layout
13250
13251 \end_inset
13252
13253
13254 \begin_inset Note Note
13255 status collapsed
13256
13257 \begin_layout Plain Layout
13258 go back to the default
13259 \end_layout
13260
13261 \end_inset
13262
13263
13264 \end_layout
13265
13266 \begin_layout Subsubsection
13267 Vertical Lines
13268 \end_layout
13269
13270 \begin_layout Standard
13271 Between the columns a rule with a width of the length 
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276
13277 \backslash
13278 columnseprule
13279 \end_layout
13280
13281 \end_inset
13282
13283  is placed.
13284  If this rule width is set to 0
13285 \begin_inset space \thinspace{}
13286 \end_inset
13287
13288 pt (this is the default), the rule is suppressed.
13289  In the following example the rule is 2
13290 \begin_inset space \thinspace{}
13291 \end_inset
13292
13293 pt wide:
13294 \end_layout
13295
13296 \begin_layout Standard
13297 \begin_inset ERT
13298 status open
13299
13300 \begin_layout Plain Layout
13301
13302
13303 \backslash
13304 setlength{
13305 \backslash
13306 columnseprule}{2pt}
13307 \end_layout
13308
13309 \end_inset
13310
13311
13312 \end_layout
13313
13314 \begin_layout Standard
13315 \begin_inset Flex Multiple Columns
13316 status open
13317
13318 \begin_layout Plain Layout
13319
13320 \size small
13321 \begin_inset Quotes eld
13322 \end_inset
13323
13324 You're surprised to see me, sir,
13325 \begin_inset Quotes erd
13326 \end_inset
13327
13328  said he, in a strange, croaking voice.
13329 \end_layout
13330
13331 \begin_layout Plain Layout
13332
13333 \size small
13334 I acknowledged that I was.
13335 \end_layout
13336
13337 \begin_layout Plain Layout
13338
13339 \size small
13340 \begin_inset Quotes eld
13341 \end_inset
13342
13343 Well, I've a conscience, sir, and when I chanced to see you go into this
13344  house, as I came hobbling after you, I thought to myself, I'll just step
13345  in and see that kind gentleman, and tell him that if I was a bit gruff
13346  in my manner there was not any harm meant, and that I am much obliged to
13347  him for picking up my books.
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351
13352 \end_layout
13353
13354 \begin_layout Plain Layout
13355
13356 \size small
13357 \begin_inset Quotes eld
13358 \end_inset
13359
13360 You make too much of a trifle,
13361 \begin_inset Quotes erd
13362 \end_inset
13363
13364  said I.
13365  
13366 \begin_inset Quotes eld
13367 \end_inset
13368
13369 May I ask how you knew who I was?
13370 \begin_inset Quotes erd
13371 \end_inset
13372
13373
13374 \end_layout
13375
13376 \begin_layout Plain Layout
13377
13378 \size small
13379 \begin_inset Quotes eld
13380 \end_inset
13381
13382 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13383  you'll find my little bookshop at the corner of Church Street, and very
13384  happy to see you, I am sure.
13385  Maybe you collect yourself, sir.
13386  Here's 
13387 \noun on
13388 British
13389 \begin_inset space ~
13390 \end_inset
13391
13392 Birds
13393 \noun default
13394 , and 
13395 \noun on
13396 Catullus
13397 \noun default
13398 , and 
13399 \noun on
13400 The Holy War
13401 \noun default
13402
13403 \begin_inset space ~
13404 \end_inset
13405
13406 – a bargain, every one of them.
13407  With five volumes you could just fill that gap on that second shelf.
13408  It looks untidy, does it not, sir?
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412
13413 \end_layout
13414
13415 \end_inset
13416
13417
13418 \end_layout
13419
13420 \begin_layout Standard
13421 \begin_inset VSpace defskip
13422 \end_inset
13423
13424
13425 \end_layout
13426
13427 \begin_layout Standard
13428 The rule can be colored by redefining the command 
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433
13434 \backslash
13435 columnseprulecolor
13436 \end_layout
13437
13438 \end_inset
13439
13440 .
13441  This is done by inserting the command
13442 \end_layout
13443
13444 \begin_layout LyX-Code
13445
13446 \backslash
13447 renewcommand{
13448 \backslash
13449 columnseprulecolor}{
13450 \backslash
13451 color{red}}
13452 \end_layout
13453
13454 \begin_layout Standard
13455 as \SpecialChar TeX
13456  Code before the multicolumn inset.
13457  Replace 
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 red
13463 \end_layout
13464
13465 \end_inset
13466
13467  in this command by a color of your choice.
13468  You can use all pre- and self-defined colors.
13469  See the 
13470 \emph on
13471 EmbeddedObjects
13472 \emph default
13473  manual, section 
13474 \emph on
13475 Colored
13476 \begin_inset space ~
13477 \end_inset
13478
13479 Tables
13480 \emph default
13481  for more information about pre- and self-defined colors.
13482  To go back to the default color insert the command
13483 \end_layout
13484
13485 \begin_layout LyX-Code
13486
13487 \backslash
13488 renewcommand{
13489 \backslash
13490 columnseprulecolor}{
13491 \backslash
13492 normalcolor}
13493 \end_layout
13494
13495 \begin_layout Standard
13496 Here is the example with a cyan rule and 1
13497 \begin_inset space \thinspace{}
13498 \end_inset
13499
13500 cm column separation:
13501 \end_layout
13502
13503 \begin_layout Standard
13504 \begin_inset ERT
13505 status open
13506
13507 \begin_layout Plain Layout
13508
13509
13510 \backslash
13511 setlength{
13512 \backslash
13513 columnsep}{1cm}
13514 \end_layout
13515
13516 \begin_layout Plain Layout
13517
13518
13519 \backslash
13520 renewcommand{
13521 \backslash
13522 columnseprulecolor}{
13523 \backslash
13524 color{cyan}}
13525 \end_layout
13526
13527 \end_inset
13528
13529
13530 \end_layout
13531
13532 \begin_layout Standard
13533 \begin_inset Flex Multiple Columns
13534 status open
13535
13536 \begin_layout Plain Layout
13537
13538 \size small
13539 \begin_inset Quotes eld
13540 \end_inset
13541
13542 You're surprised to see me, sir,
13543 \begin_inset Quotes erd
13544 \end_inset
13545
13546  said he, in a strange, croaking voice.
13547 \end_layout
13548
13549 \begin_layout Plain Layout
13550
13551 \size small
13552 I acknowledged that I was.
13553 \end_layout
13554
13555 \begin_layout Plain Layout
13556
13557 \size small
13558 \begin_inset Quotes eld
13559 \end_inset
13560
13561 Well, I've a conscience, sir, and when I chanced to see you go into this
13562  house, as I came hobbling after you, I thought to myself, I'll just step
13563  in and see that kind gentleman, and tell him that if I was a bit gruff
13564  in my manner there was not any harm meant, and that I am much obliged to
13565  him for picking up my books.
13566 \begin_inset Quotes erd
13567 \end_inset
13568
13569
13570 \end_layout
13571
13572 \begin_layout Plain Layout
13573
13574 \size small
13575 \begin_inset Quotes eld
13576 \end_inset
13577
13578 You make too much of a trifle,
13579 \begin_inset Quotes erd
13580 \end_inset
13581
13582  said I.
13583  
13584 \begin_inset Quotes eld
13585 \end_inset
13586
13587 May I ask how you knew who I was?
13588 \begin_inset Quotes erd
13589 \end_inset
13590
13591
13592 \end_layout
13593
13594 \begin_layout Plain Layout
13595
13596 \size small
13597 \begin_inset Quotes eld
13598 \end_inset
13599
13600 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13601  you'll find my little bookshop at the corner of Church Street, and very
13602  happy to see you, I am sure.
13603  Maybe you collect yourself, sir.
13604  Here's 
13605 \noun on
13606 British
13607 \begin_inset space ~
13608 \end_inset
13609
13610 Birds
13611 \noun default
13612 , and 
13613 \noun on
13614 Catullus
13615 \noun default
13616 , and 
13617 \noun on
13618 The Holy War
13619 \noun default
13620
13621 \begin_inset space ~
13622 \end_inset
13623
13624 – a bargain, every one of them.
13625  With five volumes you could just fill that gap on that second shelf.
13626  It looks untidy, does it not, sir?
13627 \begin_inset Quotes erd
13628 \end_inset
13629
13630
13631 \end_layout
13632
13633 \end_inset
13634
13635
13636 \end_layout
13637
13638 \begin_layout Standard
13639 \begin_inset ERT
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643
13644
13645 \backslash
13646 setlength{
13647 \backslash
13648 columnseprule}{0pt}
13649 \end_layout
13650
13651 \begin_layout Plain Layout
13652
13653
13654 \backslash
13655 renewcommand{
13656 \backslash
13657 columnseprulecolor}{
13658 \backslash
13659 normalcolor}
13660 \end_layout
13661
13662 \end_inset
13663
13664
13665 \begin_inset Note Note
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 go back to the default
13670 \end_layout
13671
13672 \end_inset
13673
13674
13675 \end_layout
13676
13677 \begin_layout Section
13678
13679 \change_inserted 564990737 1671270380
13680 Paragraph Styles
13681 \end_layout
13682
13683 \begin_layout Subsection
13684
13685 \change_inserted 564990737 1671270398
13686 Custom
13687 \change_deleted 564990737 1671270396
13688 Non-standard
13689 \change_unchanged
13690  Paragraph Shapes
13691 \end_layout
13692
13693 \begin_layout Standard
13694 \noindent
13695 \SpecialChar LaTeX
13696  as well as any other text processor uses by default rectangular paragraphs.
13697  For special cases like for example posters, invitation cards or poems you
13698  can modify the paragraph shape to one of your choice.
13699  This can be done by using the \SpecialChar LaTeX
13700 -package 
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 shapepar
13706 \end_layout
13707
13708 \end_inset
13709
13710  which is loaded by using in the document settings the module 
13711 \family sans
13712 Custom paragraph shapes
13713 \family default
13714 .
13715 \end_layout
13716
13717 \begin_layout Subsubsection
13718 Predefined shapes
13719 \end_layout
13720
13721 \begin_layout Standard
13722
13723 \series bold
13724 shapepar
13725 \series default
13726  provides the following shapes:
13727 \end_layout
13728
13729 \begin_layout Standard
13730 \begin_inset Tabular
13731 <lyxtabular version="3" rows="13" columns="3">
13732 <features booktabs="true" islongtable="true" longtabularalignment="center">
13733 <column alignment="left" valignment="middle" width="16col%">
13734 <column alignment="left" valignment="middle" width="40col%">
13735 <column alignment="left" valignment="middle" width="35col%">
13736 <row endhead="true">
13737 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13738 \begin_inset Text
13739
13740 \begin_layout Plain Layout
13741
13742 \series bold
13743 \size small
13744 Name
13745 \end_layout
13746
13747 \end_inset
13748 </cell>
13749 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13750 \begin_inset Text
13751
13752 \begin_layout Plain Layout
13753
13754 \series bold
13755 \size small
13756 Description
13757 \end_layout
13758
13759 \end_inset
13760 </cell>
13761 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13762 \begin_inset Text
13763
13764 \begin_layout Plain Layout
13765
13766 \series bold
13767 \size small
13768 Annotation
13769 \end_layout
13770
13771 \end_inset
13772 </cell>
13773 </row>
13774 <row interlinespace="default">
13775 <cell alignment="left" valignment="top" usebox="none">
13776 \begin_inset Text
13777
13778 \begin_layout Plain Layout
13779
13780 \size small
13781 CDlabel
13782 \end_layout
13783
13784 \end_inset
13785 </cell>
13786 <cell alignment="left" valignment="top" usebox="none">
13787 \begin_inset Text
13788
13789 \begin_layout Plain Layout
13790
13791 \size small
13792 Circle with circular hole (in the size of a CD/DVD)
13793 \end_layout
13794
13795 \end_inset
13796 </cell>
13797 <cell alignment="left" valignment="top" usebox="none">
13798 \begin_inset Text
13799
13800 \begin_layout Plain Layout
13801
13802 \size small
13803 Cannot be scaled, take care there is not too much text
13804 \end_layout
13805
13806 \end_inset
13807 </cell>
13808 </row>
13809 <row interlinespace="default">
13810 <cell alignment="left" valignment="top" usebox="none">
13811 \begin_inset Text
13812
13813 \begin_layout Plain Layout
13814
13815 \size small
13816 Circle
13817 \end_layout
13818
13819 \end_inset
13820 </cell>
13821 <cell alignment="left" valignment="top" usebox="none">
13822 \begin_inset Text
13823
13824 \begin_layout Plain Layout
13825
13826 \size small
13827 Circle
13828 \end_layout
13829
13830 \end_inset
13831 </cell>
13832 <cell alignment="left" valignment="top" usebox="none">
13833 \begin_inset Text
13834
13835 \begin_layout Plain Layout
13836
13837 \size small
13838 Fragile, calculation might fail
13839 \end_layout
13840
13841 \end_inset
13842 </cell>
13843 </row>
13844 <row interlinespace="default">
13845 <cell alignment="left" valignment="top" usebox="none">
13846 \begin_inset Text
13847
13848 \begin_layout Plain Layout
13849
13850 \size small
13851 Diamond
13852 \end_layout
13853
13854 \end_inset
13855 </cell>
13856 <cell alignment="left" valignment="top" usebox="none">
13857 \begin_inset Text
13858
13859 \begin_layout Plain Layout
13860
13861 \size small
13862 Rhomboid (symbolizing a 
13863 \begin_inset Quotes eld
13864 \end_inset
13865
13866 diamond
13867 \begin_inset Quotes erd
13868 \end_inset
13869
13870 )
13871 \end_layout
13872
13873 \end_inset
13874 </cell>
13875 <cell alignment="left" valignment="top" usebox="none">
13876 \begin_inset Text
13877
13878 \begin_layout Plain Layout
13879
13880 \size small
13881 -
13882 \end_layout
13883
13884 \end_inset
13885 </cell>
13886 </row>
13887 <row interlinespace="default">
13888 <cell alignment="left" valignment="top" usebox="none">
13889 \begin_inset Text
13890
13891 \begin_layout Plain Layout
13892
13893 \size small
13894 Heart
13895 \end_layout
13896
13897 \end_inset
13898 </cell>
13899 <cell alignment="left" valignment="top" usebox="none">
13900 \begin_inset Text
13901
13902 \begin_layout Plain Layout
13903
13904 \size small
13905 Heart-like shape
13906 \end_layout
13907
13908 \end_inset
13909 </cell>
13910 <cell alignment="left" valignment="top" usebox="none">
13911 \begin_inset Text
13912
13913 \begin_layout Plain Layout
13914
13915 \size small
13916 -
13917 \end_layout
13918
13919 \end_inset
13920 </cell>
13921 </row>
13922 <row interlinespace="default">
13923 <cell alignment="left" valignment="top" usebox="none">
13924 \begin_inset Text
13925
13926 \begin_layout Plain Layout
13927
13928 \size small
13929 Hexagon
13930 \end_layout
13931
13932 \end_inset
13933 </cell>
13934 <cell alignment="left" valignment="top" usebox="none">
13935 \begin_inset Text
13936
13937 \begin_layout Plain Layout
13938
13939 \size small
13940 Hexagon
13941 \end_layout
13942
13943 \end_inset
13944 </cell>
13945 <cell alignment="left" valignment="top" usebox="none">
13946 \begin_inset Text
13947
13948 \begin_layout Plain Layout
13949
13950 \size small
13951 -
13952 \end_layout
13953
13954 \end_inset
13955 </cell>
13956 </row>
13957 <row interlinespace="default">
13958 <cell alignment="left" valignment="top" usebox="none">
13959 \begin_inset Text
13960
13961 \begin_layout Plain Layout
13962
13963 \size small
13964 Nut
13965 \end_layout
13966
13967 \end_inset
13968 </cell>
13969 <cell alignment="left" valignment="top" usebox="none">
13970 \begin_inset Text
13971
13972 \begin_layout Plain Layout
13973
13974 \size small
13975 Nut for bolt (hexagon with circular hole)
13976 \end_layout
13977
13978 \end_inset
13979 </cell>
13980 <cell alignment="left" valignment="top" usebox="none">
13981 \begin_inset Text
13982
13983 \begin_layout Plain Layout
13984
13985 \size small
13986 -
13987 \end_layout
13988
13989 \end_inset
13990 </cell>
13991 </row>
13992 <row interlinespace="default">
13993 <cell alignment="left" valignment="top" usebox="none">
13994 \begin_inset Text
13995
13996 \begin_layout Plain Layout
13997
13998 \size small
13999 Square
14000 \end_layout
14001
14002 \end_inset
14003 </cell>
14004 <cell alignment="left" valignment="top" usebox="none">
14005 \begin_inset Text
14006
14007 \begin_layout Plain Layout
14008
14009 \size small
14010 Square
14011 \end_layout
14012
14013 \end_inset
14014 </cell>
14015 <cell alignment="left" valignment="top" usebox="none">
14016 \begin_inset Text
14017
14018 \begin_layout Plain Layout
14019
14020 \size small
14021 -
14022 \end_layout
14023
14024 \end_inset
14025 </cell>
14026 </row>
14027 <row interlinespace="default">
14028 <cell alignment="left" valignment="top" usebox="none">
14029 \begin_inset Text
14030
14031 \begin_layout Plain Layout
14032
14033 \size small
14034 Star
14035 \end_layout
14036
14037 \end_inset
14038 </cell>
14039 <cell alignment="left" valignment="top" usebox="none">
14040 \begin_inset Text
14041
14042 \begin_layout Plain Layout
14043
14044 \size small
14045 Five-point star
14046 \end_layout
14047
14048 \end_inset
14049 </cell>
14050 <cell alignment="left" valignment="top" usebox="none">
14051 \begin_inset Text
14052
14053 \begin_layout Plain Layout
14054
14055 \size small
14056 -
14057 \end_layout
14058
14059 \end_inset
14060 </cell>
14061 </row>
14062 <row interlinespace="default">
14063 <cell alignment="left" valignment="top" usebox="none">
14064 \begin_inset Text
14065
14066 \begin_layout Plain Layout
14067
14068 \size small
14069 Candle
14070 \end_layout
14071
14072 \end_inset
14073 </cell>
14074 <cell alignment="left" valignment="top" usebox="none">
14075 \begin_inset Text
14076
14077 \begin_layout Plain Layout
14078
14079 \size small
14080 Burning candle
14081 \end_layout
14082
14083 \end_inset
14084 </cell>
14085 <cell alignment="left" valignment="top" usebox="none">
14086 \begin_inset Text
14087
14088 \begin_layout Plain Layout
14089
14090 \size small
14091 -
14092 \end_layout
14093
14094 \end_inset
14095 </cell>
14096 </row>
14097 <row interlinespace="default">
14098 <cell alignment="left" valignment="top" usebox="none">
14099 \begin_inset Text
14100
14101 \begin_layout Plain Layout
14102
14103 \size small
14104 Drop down/up
14105 \end_layout
14106
14107 \end_inset
14108 </cell>
14109 <cell alignment="left" valignment="top" usebox="none">
14110 \begin_inset Text
14111
14112 \begin_layout Plain Layout
14113
14114 \size small
14115 Normal/reversed rain drop
14116 \end_layout
14117
14118 \end_inset
14119 </cell>
14120 <cell alignment="left" valignment="top" usebox="none">
14121 \begin_inset Text
14122
14123 \begin_layout Plain Layout
14124
14125 \size small
14126 Fragile, calculation might fail
14127 \end_layout
14128
14129 \end_inset
14130 </cell>
14131 </row>
14132 <row interlinespace="default">
14133 <cell alignment="left" valignment="top" usebox="none">
14134 \begin_inset Text
14135
14136 \begin_layout Plain Layout
14137
14138 \size small
14139 \SpecialChar TeX
14140
14141 \end_layout
14142
14143 \end_inset
14144 </cell>
14145 <cell alignment="left" valignment="top" usebox="none">
14146 \begin_inset Text
14147
14148 \begin_layout Plain Layout
14149
14150 \size small
14151 The \SpecialChar TeX
14152  logo
14153 \end_layout
14154
14155 \end_inset
14156 </cell>
14157 <cell alignment="left" valignment="top" usebox="none">
14158 \begin_inset Text
14159
14160 \begin_layout Plain Layout
14161
14162 \size small
14163 -
14164 \end_layout
14165
14166 \end_inset
14167 </cell>
14168 </row>
14169 <row interlinespace="default">
14170 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14171 \begin_inset Text
14172
14173 \begin_layout Plain Layout
14174
14175 \size small
14176 Triangle up/down/
14177 \begin_inset Newline newline
14178 \end_inset
14179
14180 left/right
14181 \end_layout
14182
14183 \end_inset
14184 </cell>
14185 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14186 \begin_inset Text
14187
14188 \begin_layout Plain Layout
14189
14190 \size small
14191 Triangles in different orientations
14192 \end_layout
14193
14194 \end_inset
14195 </cell>
14196 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14197 \begin_inset Text
14198
14199 \begin_layout Plain Layout
14200
14201 \size small
14202 -
14203 \end_layout
14204
14205 \end_inset
14206 </cell>
14207 </row>
14208 </lyxtabular>
14209
14210 \end_inset
14211
14212
14213 \end_layout
14214
14215 \begin_layout Standard
14216 To use a shape for your paragraph, simply select it in \SpecialChar LyX
14217 's pull-down box
14218  for environments in the toolbar.
14219 \end_layout
14220
14221 \begin_layout Standard
14222 \begin_inset Newpage newpage
14223 \end_inset
14224
14225
14226 \end_layout
14227
14228 \begin_layout Standard
14229 Here is an example paragraph in the shape of a nut:
14230 \end_layout
14231
14232 \begin_layout Standard
14233 \begin_inset VSpace bigskip
14234 \end_inset
14235
14236
14237 \end_layout
14238
14239 \begin_layout Nut
14240
14241 \lang latin
14242 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14243  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14244  voluptua.
14245  At vero eos et accusam et justo duo dolores et ea rebum.
14246  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14247  sit amet.
14248  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14249  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14250  voluptua.
14251 \end_layout
14252
14253 \begin_layout Standard
14254 \begin_inset VSpace bigskip
14255 \end_inset
14256
14257
14258 \end_layout
14259
14260 \begin_layout Standard
14261 \begin_inset Note Greyedout
14262 status open
14263
14264 \begin_layout Plain Layout
14265
14266 \series bold
14267 Note
14268 \series default
14269
14270 \family sans
14271 shapepar
14272 \family default
14273  paragraphs cannot run over a page break.
14274 \end_layout
14275
14276 \end_inset
14277
14278
14279 \end_layout
14280
14281 \begin_layout Standard
14282 \begin_inset VSpace bigskip
14283 \end_inset
14284
14285
14286 \end_layout
14287
14288 \begin_layout Standard
14289 The package 
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 shapepar
14295 \end_layout
14296
14297 \end_inset
14298
14299  takes care that the shape will always be preserved, no matter how much
14300  text is in the paragraph.
14301  Therefore the paragraph size changes with the amount of contained text.
14302  This can lead to paragraph sizes exceeding the page margins.
14303  To demonstrate the size scaling, here is the same example paragraph but
14304  with twice as much text:
14305 \end_layout
14306
14307 \begin_layout Standard
14308 \begin_inset Newpage newpage
14309 \end_inset
14310
14311
14312 \end_layout
14313
14314 \begin_layout Nut
14315
14316 \lang latin
14317 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14318  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14319  voluptua.
14320  At vero eos et accusam et justo duo dolores et ea rebum.
14321  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14322  sit amet.
14323  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14324  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14325  voluptua.
14326  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14327  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14328  voluptua.
14329  At vero eos et accusam et justo duo dolores et ea rebum.
14330  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14331  sit amet.
14332  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14333  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14334  voluptua.
14335 \end_layout
14336
14337 \begin_layout Standard
14338 \begin_inset VSpace bigskip
14339 \end_inset
14340
14341
14342 \end_layout
14343
14344 \begin_layout Standard
14345 An exception is the shape 
14346 \family sans
14347 CDlabel
14348 \family default
14349 .
14350  It cannot be scaled because it must fit the size of a CD/DVD.
14351  Therefore the amount of text that fits into the shape is limited.
14352 \begin_inset Newline newline
14353 \end_inset
14354
14355 The 
14356 \family sans
14357 drop
14358 \family default
14359  shapes and the 
14360 \family sans
14361 circle
14362 \family default
14363  shape are fragile, meaning that the calculation of their size can fail,
14364  depending on the amount of text.
14365  You will then get the \SpecialChar LaTeX
14366  error 
14367 \begin_inset Quotes eld
14368 \end_inset
14369
14370 Arithmetic overflow
14371 \begin_inset Quotes erd
14372 \end_inset
14373
14374 .
14375  In this case one can try to remove or add some text; if nothing works one
14376  has to use another shape.
14377 \end_layout
14378
14379 \begin_layout Standard
14380 \begin_inset VSpace bigskip
14381 \end_inset
14382
14383
14384 \end_layout
14385
14386 \begin_layout Standard
14387 For shapes with tips you will maybe see that \SpecialChar LaTeX
14388 's hyphenation routine fails
14389  for text in the tips.
14390  Therefore it is often necessary to add hyphenation points 
14391 \family sans
14392 (
14393 \begin_inset Info
14394 type  "shortcut"
14395 arg   "specialchar-insert hyphenation"
14396 \end_inset
14397
14398
14399 \family default
14400 ) to the corresponding text parts.
14401 \end_layout
14402
14403 \begin_layout Standard
14404 \begin_inset VSpace bigskip
14405 \end_inset
14406
14407
14408 \end_layout
14409
14410 \begin_layout Standard
14411 Shapepar paragraphs are either always centered or placed on the page so
14412  that their left border touches the left page margin.
14413  You can therefore not use the paragraph dialog to align such paragraphs.
14414  A solution is to put the paragraph into a minipage or parbox and align
14415  the box.
14416  The problem is hereby to find the right width for the box.
14417  Because if it is too wide and you center the box, the paragraph is not
14418  centered too because it sticks at the left side of the box.
14419  So you might have to play a bit with the width until it fits.
14420  Here are two heart-shaped paragraphs, the first one is not aligned, the
14421  second one is right-aligned:
14422 \end_layout
14423
14424 \begin_layout Standard
14425 \begin_inset Newpage newpage
14426 \end_inset
14427
14428
14429 \end_layout
14430
14431 \begin_layout Heart
14432 \noindent
14433
14434 \lang latin
14435 Lo\SpecialChar softhyphen
14436 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14437  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14438  voluptua.
14439  At vero eos et accusam et justo duo dolores et ea rebum.
14440  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14441  sit amet.
14442 \end_layout
14443
14444 \begin_layout Standard
14445 \begin_inset VSpace bigskip
14446 \end_inset
14447
14448
14449 \end_layout
14450
14451 \begin_layout Standard
14452 \noindent
14453 \align right
14454 \begin_inset Box Frameless
14455 position "t"
14456 hor_pos "c"
14457 has_inner_box 1
14458 inner_pos "t"
14459 use_parbox 1
14460 use_makebox 0
14461 width "42col%"
14462 special "none"
14463 height "1in"
14464 height_special "totalheight"
14465 thickness "0.4pt"
14466 separation "3pt"
14467 shadowsize "4pt"
14468 framecolor "black"
14469 backgroundcolor "none"
14470 status open
14471
14472 \begin_layout Heart
14473 \noindent
14474
14475 \lang latin
14476 Lo\SpecialChar softhyphen
14477 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14478  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14479  voluptua.
14480  At vero eos et accusam et justo duo dolores et ea rebum.
14481  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14482  sit amet.
14483 \end_layout
14484
14485 \end_inset
14486
14487
14488 \end_layout
14489
14490 \begin_layout Subsubsection
14491 Custom shapes
14492 \end_layout
14493
14494 \begin_layout Standard
14495 You can define any shape you want.
14496  Doing this manually is a lot of work because every coordinate must be specified.
14497  But there is a way to let the computer calculate the coordinates:
14498 \end_layout
14499
14500 \begin_layout Enumerate
14501 Install the program 
14502 \begin_inset CommandInset href
14503 LatexCommand href
14504 name "Jpgfdraw"
14505 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
14506 literal "false"
14507
14508 \end_inset
14509
14510 .
14511 \end_layout
14512
14513 \begin_layout Enumerate
14514 In 
14515 \family sans
14516 Jpgfdraw
14517 \family default
14518  go to the menu 
14519 \family sans
14520 TeX/LaTeX\SpecialChar menuseparator
14521 Settings\SpecialChar menuseparator
14522 Set Normal Size
14523 \family default
14524  and select the font size you are using in your document.
14525  For example this document uses the size 12
14526 \begin_inset space \thinspace{}
14527 \end_inset
14528
14529 pt.
14530 \end_layout
14531
14532 \begin_layout Enumerate
14533 Draw a shape.
14534 \end_layout
14535
14536 \begin_layout Enumerate
14537 Use the menu 
14538 \family sans
14539 TeX/LaTeX\SpecialChar menuseparator
14540 Shapepar
14541 \family default
14542  to export the shape to coordinates.
14543  In the appearing dialog use either the outline of your shape for the coordinate
14544 s or the path itself.
14545 \begin_inset Foot
14546 status collapsed
14547
14548 \begin_layout Plain Layout
14549 For more information see 
14550 \begin_inset CommandInset href
14551 LatexCommand href
14552 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
14553 literal "false"
14554
14555 \end_inset
14556
14557
14558 \end_layout
14559
14560 \end_inset
14561
14562
14563 \end_layout
14564
14565 \begin_layout Standard
14566 The coordinates are written into a \SpecialChar TeX
14567  file.
14568  To use it for your \SpecialChar LyX
14569  document
14570 \end_layout
14571
14572 \begin_layout Enumerate
14573 Place the cursor before the first character of your paragraph (or into a
14574  new empty one).
14575 \end_layout
14576
14577 \begin_layout Enumerate
14578 Open in \SpecialChar LyX
14579  the menu 
14580 \family sans
14581 Insert\SpecialChar menuseparator
14582 File\SpecialChar menuseparator
14583 Child
14584 \begin_inset space ~
14585 \end_inset
14586
14587 Document
14588 \family default
14589 , select the file and use 
14590 \family sans
14591 Input
14592 \family default
14593  as 
14594 \family sans
14595 Include Type.
14596 \end_layout
14597
14598 \begin_layout Standard
14599 \begin_inset VSpace defskip
14600 \end_inset
14601
14602
14603 \end_layout
14604
14605 \begin_layout Standard
14606 \begin_inset Note Greyedout
14607 status open
14608
14609 \begin_layout Plain Layout
14610
14611 \series bold
14612 Note
14613 \series default
14614 : The changed shape only applies to the current paragraph; everything is
14615  reset to normal for the next paragraph.
14616  Therefore the shape definition file must be input into every paragraph
14617  with the desired shape.
14618 \end_layout
14619
14620 \end_inset
14621
14622
14623 \end_layout
14624
14625 \begin_layout Standard
14626 \begin_inset VSpace bigskip
14627 \end_inset
14628
14629
14630 \end_layout
14631
14632 \begin_layout Standard
14633 Here is an example:
14634 \end_layout
14635
14636 \begin_layout Standard
14637 \begin_inset VSpace bigskip
14638 \end_inset
14639
14640
14641 \end_layout
14642
14643 \begin_layout Standard
14644 \begin_inset CommandInset include
14645 LatexCommand input
14646 filename "SpecialParagraphShape.tex"
14647 literal "true"
14648
14649 \end_inset
14650
14651
14652 \lang latin
14653 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14654  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14655  voluptua.
14656  At vero eos et accusam et justo duo dolores et ea rebum.
14657  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14658  sit amet.
14659  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14660  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14661  voluptua.
14662 \end_layout
14663
14664 \begin_layout Standard
14665 \begin_inset VSpace bigskip
14666 \end_inset
14667
14668
14669 \end_layout
14670
14671 \begin_layout Standard
14672
14673 \series bold
14674 A tip:
14675 \series default
14676  to draw complexer shapes in 
14677 \family sans
14678 Jpgfdraw
14679 \family default
14680  you can draw the shape in a program of your choice and import the resulting
14681  image to 
14682 \family sans
14683 Jpgfdraw
14684 \family default
14685 .
14686  Then you only need to draw a line or spline along the outline of the image.
14687 \end_layout
14688
14689 \begin_layout Standard
14690 \begin_inset VSpace bigskip
14691 \end_inset
14692
14693
14694 \end_layout
14695
14696 \begin_layout Standard
14697 The module 
14698 \family sans
14699 Custom paragraph shapes
14700 \family default
14701  also provides the two commands 
14702 \family sans
14703 shapepar
14704 \family default
14705  and 
14706 \family sans
14707 Shapepar
14708 \family default
14709  which can be used to define custom shapes coordinate by coordinate.
14710 \begin_inset Foot
14711 status collapsed
14712
14713 \begin_layout Plain Layout
14714 These commands are internally used for all shapes described here.
14715 \end_layout
14716
14717 \end_inset
14718
14719  For information how these styles are used and about further customization
14720  possibilities, have a look at the 
14721 \begin_inset CommandInset href
14722 LatexCommand href
14723 name "documentation"
14724 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
14725 literal "false"
14726
14727 \end_inset
14728
14729  of the package 
14730 \begin_inset Flex Code
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734 shapepar
14735 \end_layout
14736
14737 \end_inset
14738
14739 .
14740 \end_layout
14741
14742 \begin_layout Chapter
14743
14744 \change_deleted 564990737 1671304317
14745 Customizing 
14746 \change_unchanged
14747 Bibliograph
14748 \change_inserted 564990737 1671304322
14749 y
14750 \change_deleted 564990737 1671304331
14751 ies with Bib\SpecialChar TeX
14752  or Biblatex
14753 \change_unchanged
14754
14755 \end_layout
14756
14757 \begin_layout Standard
14758 The most basic information about how to use Bib\SpecialChar TeX
14759  or 
14760 \family sans
14761 Biblatex
14762 \family default
14763  with \SpecialChar LyX
14764  is contained in the section 
14765 \emph on
14766 Bibliography databases
14767 \emph default
14768  of the 
14769 \emph on
14770 User's Guide
14771 \emph default
14772 .
14773  The following subsections explain special bibliography features supported
14774  by \SpecialChar LyX
14775 .
14776 \end_layout
14777
14778 \begin_layout Section
14779 Alternative Citation Styles
14780 \end_layout
14781
14782 \begin_layout Standard
14783 Standard Bib\SpecialChar TeX
14784  uses numbers (e.
14785 \begin_inset space \thinspace{}
14786 \end_inset
14787
14788 g.
14789 \begin_inset space \space{}
14790 \end_inset
14791
14792
14793 \begin_inset Quotes eld
14794 \end_inset
14795
14796 [12]
14797 \begin_inset Quotes erd
14798 \end_inset
14799
14800 ) to refer to a cited work.
14801  However, in many scientific disciplines, other citation styles are in use.
14802  The most common one is the author-year style (e.
14803 \begin_inset space \thinspace{}
14804 \end_inset
14805
14806 g.
14807 \begin_inset space \space{}
14808 \end_inset
14809
14810
14811 \begin_inset Quotes eld
14812 \end_inset
14813
14814 Knuth 1984a
14815 \begin_inset Quotes erd
14816 \end_inset
14817
14818 ).
14819  \SpecialChar LyX
14820  supports three packages that provide this style, 
14821 \begin_inset Flex Code
14822 status collapsed
14823
14824 \begin_layout Plain Layout
14825 biblatex
14826 \end_layout
14827
14828 \end_inset
14829
14830
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 natbib
14836 \end_layout
14837
14838 \end_inset
14839
14840 , and 
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 jurabib
14846 \end_layout
14847
14848 \end_inset
14849
14850 .
14851  Each of these packages has their pros and cons, which cannot be listed
14852  in detail.
14853  If you only want to have simple author-year (or author-numerical) style,
14854  or if you want to use one of the countless style files for 
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 natbib
14860 \end_layout
14861
14862 \end_inset
14863
14864 , then the established 
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 natbib
14870 \end_layout
14871
14872 \end_inset
14873
14874  package is probably your choice.
14875  If you look for specific citation styles common in law studies, you might
14876  consider the 
14877 \begin_inset Flex Code
14878 status collapsed
14879
14880 \begin_layout Plain Layout
14881 jurabib
14882 \end_layout
14883
14884 \end_inset
14885
14886  package.
14887  If you want to have full control over the formatting or look for advanced
14888  features such as ibidem, footnote citations, full title citations, advanced
14889  date formats (such as 400 BC) or full localization to other languages than
14890  English, you should definitely consider 
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 biblatex
14896 \end_layout
14897
14898 \end_inset
14899
14900 , which exceeds all other packages in terms of features, but is also quite
14901  heavy and more resource-hungry.
14902 \end_layout
14903
14904 \begin_layout Standard
14905 The handling of these packages in \SpecialChar LyX
14906  is basically the same.
14907  Go to 
14908 \begin_inset Flex Noun
14909 status collapsed
14910
14911 \begin_layout Plain Layout
14912 Document\SpecialChar menuseparator
14913 Settings
14914 \end_layout
14915
14916 \end_inset
14917
14918  and select under 
14919 \begin_inset Flex Noun
14920 status collapsed
14921
14922 \begin_layout Plain Layout
14923 Bibliography
14924 \end_layout
14925
14926 \end_inset
14927
14928  the 
14929 \begin_inset Flex Noun
14930 status collapsed
14931
14932 \begin_layout Plain Layout
14933 Style Format
14934 \end_layout
14935
14936 \end_inset
14937
14938  
14939 \begin_inset Flex Noun
14940 status collapsed
14941
14942 \begin_layout Plain Layout
14943 Basic (BibTeX)
14944 \end_layout
14945
14946 \end_inset
14947
14948
14949 \begin_inset Flex Noun
14950 status collapsed
14951
14952 \begin_layout Plain Layout
14953 Biblatex
14954 \end_layout
14955
14956 \end_inset
14957
14958
14959 \begin_inset Flex Noun
14960 status collapsed
14961
14962 \begin_layout Plain Layout
14963 Biblatex (Natbib mode)
14964 \end_layout
14965
14966 \end_inset
14967
14968
14969 \begin_inset Flex Noun
14970 status collapsed
14971
14972 \begin_layout Plain Layout
14973 Natbib (BibTeX)
14974 \end_layout
14975
14976 \end_inset
14977
14978  or 
14979 \begin_inset Flex Noun
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983 Jurabib (BibTeX)
14984 \end_layout
14985
14986 \end_inset
14987
14988  (see sec.
14989 \begin_inset space ~
14990 \end_inset
14991
14992 6.5.3 in the User's Guide for more information on these choices).
14993  With all these packages, you will get some extra features in the citation
14994  dialog and you can select the style of the reference (
14995 \begin_inset Quotes eld
14996 \end_inset
14997
14998 Knuth 1984
14999 \begin_inset Quotes erd
15000 \end_inset
15001
15002
15003 \begin_inset Quotes eld
15004 \end_inset
15005
15006 Knuth (1984)
15007 \begin_inset Quotes erd
15008 \end_inset
15009
15010
15011 \begin_inset Quotes eld
15012 \end_inset
15013
15014 Knuth, 1984
15015 \begin_inset Quotes erd
15016 \end_inset
15017
15018
15019 \begin_inset Quotes eld
15020 \end_inset
15021
15022 1984
15023 \begin_inset Quotes erd
15024 \end_inset
15025
15026  etc.).
15027  Note that either package needs specifically designed style files.
15028  They all ship their own, but there are lots of additional style files,
15029  and there is even an interactive style file builder
15030 \begin_inset Foot
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 See 
15035 \begin_inset Flex URL
15036 status open
15037
15038 \begin_layout Plain Layout
15039
15040 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
15041 \end_layout
15042
15043 \end_inset
15044
15045
15046 \end_layout
15047
15048 \end_inset
15049
15050  for 
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 natbib
15056 \end_layout
15057
15058 \end_inset
15059
15060 .
15061 \end_layout
15062
15063 \begin_layout Section
15064 Subdivided Bibliographies
15065 \end_layout
15066
15067 \begin_layout Standard
15068 Sometimes you might need to divide your bibliography into several sections.
15069  If you are for instance a historian, the possibility to separate sources
15070  and scientific works is most likely a 
15071 \begin_inset Quotes eld
15072 \end_inset
15073
15074 must have
15075 \begin_inset Quotes erd
15076 \end_inset
15077
15078 .
15079  Unfortunately, Bib\SpecialChar TeX
15080  itself does not allow you to do this.
15081  But with the help of some \SpecialChar LaTeX
15082  packages, Bib\SpecialChar TeX
15083  can be extended to fit your needs.
15084 \end_layout
15085
15086 \begin_layout Standard
15087 \SpecialChar LyX
15088  provides native support for one of these packages, 
15089 \family typewriter
15090 bibtopic
15091 \family default
15092 .
15093 \begin_inset Foot
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097 Available from 
15098 \begin_inset Flex URL
15099 status open
15100
15101 \begin_layout Plain Layout
15102
15103 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
15104 \end_layout
15105
15106 \end_inset
15107
15108
15109 \end_layout
15110
15111 \end_inset
15112
15113  The advantage of this package (compared to other packages such as 
15114 \family typewriter
15115 multibib
15116 \family default
15117 ) is that you don't need to define new citation commands.
15118  Instead, you need to prepare different bibliographic databases which include
15119  the entries for the different sections of the bibliography.
15120  For example: If you want to divide your bibliography into the sections
15121  
15122 \begin_inset Quotes eld
15123 \end_inset
15124
15125 Sources
15126 \begin_inset Quotes erd
15127 \end_inset
15128
15129  and 
15130 \begin_inset Quotes eld
15131 \end_inset
15132
15133 Scientific works
15134 \begin_inset Quotes erd
15135 \end_inset
15136
15137 , you first need to create two bibliographic databases, e.
15138 \begin_inset space \thinspace{}
15139 \end_inset
15140
15141 g.
15142 \begin_inset space \space{}
15143 \end_inset
15144
15145
15146 \begin_inset Flex Code
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150 sources.bib
15151 \end_layout
15152
15153 \end_inset
15154
15155  and 
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 scientific.bib
15161 \end_layout
15162
15163 \end_inset
15164
15165 .
15166  
15167 \end_layout
15168
15169 \begin_layout Standard
15170 Go to 
15171 \begin_inset Flex Noun
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 Document\SpecialChar menuseparator
15176 Settings
15177 \end_layout
15178
15179 \end_inset
15180
15181  and check under 
15182 \begin_inset Flex Noun
15183 status collapsed
15184
15185 \begin_layout Plain Layout
15186 Bibliography
15187 \end_layout
15188
15189 \end_inset
15190
15191  the option 
15192 \begin_inset Flex Noun
15193 status collapsed
15194
15195 \begin_layout Plain Layout
15196 Subdivided bibliography
15197 \end_layout
15198
15199 \end_inset
15200
15201 .
15202  Now you can insert multiple Bib\SpecialChar TeX
15203  bibliographies, one for each section of
15204  your bibliography.
15205  Returning to our example: Insert the Bib\SpecialChar TeX
15206  bibliography 
15207 \begin_inset Flex Code
15208 status collapsed
15209
15210 \begin_layout Plain Layout
15211 sources.bib
15212 \end_layout
15213
15214 \end_inset
15215
15216  and a second one for the database 
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 scientific.bib
15222 \end_layout
15223
15224 \end_inset
15225
15226 .
15227  You are free to use the same or different styles for each section.
15228  Additionally, you can choose if the bibliography section should contain
15229  
15230 \begin_inset Quotes eld
15231 \end_inset
15232
15233 all cited references
15234 \begin_inset Quotes erd
15235 \end_inset
15236
15237  of the specified database(s) (which is the default), 
15238 \begin_inset Quotes eld
15239 \end_inset
15240
15241 all uncited references
15242 \begin_inset Quotes erd
15243 \end_inset
15244
15245  or even 
15246 \begin_inset Quotes eld
15247 \end_inset
15248
15249 all references
15250 \begin_inset Quotes erd
15251 \end_inset
15252
15253 .
15254  This might be useful if you would like to separate your bibliography into
15255  three sections: 
15256 \begin_inset Quotes eld
15257 \end_inset
15258
15259 Cited sources
15260 \begin_inset Quotes erd
15261 \end_inset
15262
15263
15264 \begin_inset Quotes eld
15265 \end_inset
15266
15267 Uncited sources
15268 \begin_inset Quotes erd
15269 \end_inset
15270
15271 , and 
15272 \begin_inset Quotes eld
15273 \end_inset
15274
15275 Scientific works
15276 \begin_inset Quotes erd
15277 \end_inset
15278
15279 .
15280  The titles for the sections can be added as ordinary sections or subsections.
15281  Since 
15282 \begin_inset Flex Code
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286 bibtopic
15287 \end_layout
15288
15289 \end_inset
15290
15291  removes the bibliography title, you have to manually re-add that, too (as
15292  a chapter* or section*, for instance).
15293 \end_layout
15294
15295 \begin_layout Standard
15296 With 
15297 \family sans
15298 Biblatex
15299 \family default
15300 , the procedure is a bit different.
15301  Since 
15302 \family typewriter
15303 bibtopic
15304 \family default
15305  does not work with 
15306 \family sans
15307 Biblatex
15308 \family default
15309 , the aforementioned 
15310 \begin_inset Flex Noun
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 Subdivided bibliography
15315 \end_layout
15316
15317 \end_inset
15318
15319  option is disabled if you use 
15320 \family sans
15321 Biblatex
15322 \family default
15323 .
15324  However, 
15325 \family sans
15326 Biblatex
15327 \family default
15328  provides its own means to generate subdivided bibliographies.
15329  You can either add keywords to bibliography entries via the 
15330 \begin_inset Flex Code
15331 status collapsed
15332
15333 \begin_layout Plain Layout
15334 keywords
15335 \end_layout
15336
15337 \end_inset
15338
15339  entry option and then filter bibliography sections by keyword (by adding
15340  
15341 \begin_inset Flex Code
15342 status collapsed
15343
15344 \begin_layout Plain Layout
15345 keyword=mykeyword
15346 \end_layout
15347
15348 \end_inset
15349
15350  to the 
15351 \begin_inset Flex Noun
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355 Options
15356 \end_layout
15357
15358 \end_inset
15359
15360  field of the dialog that opens if you left-click on the 
15361 \begin_inset Flex Noun
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 Biblatex Generated Bibliography
15366 \end_layout
15367
15368 \end_inset
15369
15370  button), or you can filter by entry types (such as 
15371 \emph on
15372 book
15373 \emph default
15374  or 
15375 \emph on
15376 article
15377 \emph default
15378 ) by entering e.
15379 \begin_inset space \thinspace{}
15380 \end_inset
15381
15382 g.
15383  
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388 type=book
15389 \end_layout
15390
15391 \end_inset
15392
15393  or 
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 nottype=collection
15399 \end_layout
15400
15401 \end_inset
15402
15403  to the mentioned 
15404 \begin_inset Flex Noun
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 Options
15409 \end_layout
15410
15411 \end_inset
15412
15413  field, or you can create so-called 
15414 \begin_inset Quotes eld
15415 \end_inset
15416
15417 Bibliography Categories
15418 \begin_inset Quotes erd
15419 \end_inset
15420
15421  to which you can assign individual entries.
15422  Please refer to the Biblatex manual, section 
15423 \emph on
15424 Subdivided Bibliographies
15425 \emph default
15426 , for details.
15427 \end_layout
15428
15429 \begin_layout Section
15430 Multiple Bibliographies
15431 \begin_inset CommandInset label
15432 LatexCommand label
15433 name "subsec:Multiple-Bibliographies"
15434
15435 \end_inset
15436
15437
15438 \end_layout
15439
15440 \begin_layout Standard
15441 Multiple bibliographies, e.
15442 \begin_inset space \thinspace{}
15443 \end_inset
15444
15445 g.
15446 \begin_inset space \space{}
15447 \end_inset
15448
15449 a bibliography for each part, chapter, section, subsection or child (sub-documen
15450 t) of the document, are also supported by \SpecialChar LyX
15451 .
15452  In order to enable it, go to 
15453 \begin_inset Flex Noun
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 Document\SpecialChar menuseparator
15458 Settings\SpecialChar menuseparator
15459 Bibliography
15460 \end_layout
15461
15462 \end_inset
15463
15464  and select the relevant unit (e.
15465 \begin_inset space \thinspace{}
15466 \end_inset
15467
15468 g., 
15469 \begin_inset Quotes eld
15470 \end_inset
15471
15472 per section
15473 \begin_inset Quotes erd
15474 \end_inset
15475
15476 ) in the 
15477 \begin_inset Flex Noun
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 Multiple Bibliographies
15482 \end_layout
15483
15484 \end_inset
15485
15486  combo box.
15487  Then add a Bib(la)\SpecialChar TeX
15488  bibliography to each unit (e.
15489 \begin_inset space \thinspace{}
15490 \end_inset
15491
15492 g., section) of your document.
15493  In the output, a separate bibliography, containing only the references
15494  done in the current unit is generated.
15495 \end_layout
15496
15497 \begin_layout Standard
15498 If you use Bib\SpecialChar TeX
15499 , either the 
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504 chapterbib
15505 \end_layout
15506
15507 \end_inset
15508
15509  or the 
15510 \begin_inset Flex Code
15511 status collapsed
15512
15513 \begin_layout Plain Layout
15514 bibtopic
15515 \end_layout
15516
15517 \end_inset
15518
15519  package is used to create multiple bibliographies.
15520  The former package is used if you select 
15521 \begin_inset Quotes eld
15522 \end_inset
15523
15524 per child document
15525 \begin_inset Quotes erd
15526 \end_inset
15527
15528  and do 
15529 \emph on
15530 not
15531 \emph default
15532  check 
15533 \begin_inset Flex Noun
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537 Sectioned Bibliography
15538 \end_layout
15539
15540 \end_inset
15541
15542 .
15543  In all other cases, 
15544 \begin_inset Flex Code
15545 status collapsed
15546
15547 \begin_layout Plain Layout
15548 bibtopic
15549 \end_layout
15550
15551 \end_inset
15552
15553  is used.
15554 \begin_inset Foot
15555 status collapsed
15556
15557 \begin_layout Plain Layout
15558 An alternative approach, if you are willing to use some 
15559 \begin_inset Flex Noun
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 \SpecialChar TeX
15564  Code
15565 \end_layout
15566
15567 \end_inset
15568
15569  (see section
15570 \begin_inset space ~
15571 \end_inset
15572
15573
15574 \begin_inset CommandInset ref
15575 LatexCommand ref
15576 reference "sec:Inserting-TeX-Code"
15577
15578 \end_inset
15579
15580 ), is to use the 
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 bibunits
15586 \end_layout
15587
15588 \end_inset
15589
15590  package.
15591 \end_layout
15592
15593 \end_inset
15594
15595  If 
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 bibtopic
15601 \end_layout
15602
15603 \end_inset
15604
15605  is used, \SpecialChar LyX
15606  encloses the specified units in 
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611 bibtopic
15612 \end_layout
15613
15614 \end_inset
15615
15616 's 
15617 \begin_inset Flex Code
15618 status collapsed
15619
15620 \begin_layout Plain Layout
15621
15622 \backslash
15623 begin{btUnit}
15624 \end_layout
15625
15626 \end_inset
15627
15628  and 
15629 \begin_inset Flex Code
15630 status collapsed
15631
15632 \begin_layout Plain Layout
15633
15634 \backslash
15635 end{btUnit}
15636 \end_layout
15637
15638 \end_inset
15639
15640  in order to create the units.
15641  Note that this approach has some limitations.
15642  First, every citation reference has to be inside some 
15643 \begin_inset Flex Code
15644 status collapsed
15645
15646 \begin_layout Plain Layout
15647 btUnit
15648 \end_layout
15649
15650 \end_inset
15651
15652 .
15653  So citations outside a defined unit (e.
15654 \begin_inset space \thinspace{}
15655 \end_inset
15656
15657 g., before the first section if you use 
15658 \begin_inset Quotes eld
15659 \end_inset
15660
15661 by section
15662 \begin_inset Quotes erd
15663 \end_inset
15664
15665 ) will appear as 
15666 \begin_inset Quotes eld
15667 \end_inset
15668
15669 ???
15670 \begin_inset Quotes erd
15671 \end_inset
15672
15673 .
15674  You can also create your own units by entering 
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679
15680 \backslash
15681 begin{btUnit}
15682 \end_layout
15683
15684 \end_inset
15685
15686  and 
15687 \begin_inset Flex Code
15688 status collapsed
15689
15690 \begin_layout Plain Layout
15691
15692 \backslash
15693 end{btUnit}
15694 \end_layout
15695
15696 \end_inset
15697
15698  as \SpecialChar TeX
15699  code (for instance to work around the mentioned limitation).
15700  Note, though, that 
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 btUnit
15706 \end_layout
15707
15708 \end_inset
15709
15710 s cannot be nested.
15711  A second limitation is that 
15712 \begin_inset Flex Code
15713 status collapsed
15714
15715 \begin_layout Plain Layout
15716 bibtopic
15717 \end_layout
15718
15719 \end_inset
15720
15721  always processes all references of a bibliography database, even if they
15722  are not cited.
15723  This can result in odd labels (e.
15724 \begin_inset space \thinspace{}
15725 \end_inset
15726
15727 g.
15728  
15729 \begin_inset Quotes eld
15730 \end_inset
15731
15732 Miller 2014b
15733 \begin_inset Quotes erd
15734 \end_inset
15735
15736  if two works of this author from 2014 are in the database, even if only
15737  one is cited).
15738 \end_layout
15739
15740 \begin_layout Standard
15741 If you use 
15742 \family sans
15743 Biblatex
15744 \family default
15745 , the 
15746 \begin_inset Flex Code
15747 status collapsed
15748
15749 \begin_layout Plain Layout
15750 refsection
15751 \end_layout
15752
15753 \end_inset
15754
15755  option is used instead.
15756  If you need specific units, you can start them with the \SpecialChar TeX
15757  code 
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762
15763 \backslash
15764 newrefsection
15765 \end_layout
15766
15767 \end_inset
15768
15769  or 
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774
15775 \backslash
15776 newrefsegment
15777 \end_layout
15778
15779 \end_inset
15780
15781 , respectively.
15782  If you also want to control the end of the unit, use the environment 
15783 \begin_inset Flex Code
15784 status collapsed
15785
15786 \begin_layout Plain Layout
15787
15788 \backslash
15789 begin{refsection}
15790 \end_layout
15791
15792 \end_inset
15793
15794  \SpecialChar ldots
15795  
15796 \begin_inset Flex Code
15797 status collapsed
15798
15799 \begin_layout Plain Layout
15800
15801 \backslash
15802 end{refsection}
15803 \end_layout
15804
15805 \end_inset
15806
15807  instead.
15808  Note, though, that 
15809 \begin_inset Flex Code
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813 refsection
15814 \end_layout
15815
15816 \end_inset
15817
15818 s cannot be nested.
15819  In addition to the individual bibliography of the current unit, 
15820 \family sans
15821 Biblatex
15822 \family default
15823  also provides an easy way to output all bibliographies, subsequently, at
15824  one place (e.
15825 \begin_inset space \thinspace{}
15826 \end_inset
15827
15828 g., at the end of the document).
15829  Select 
15830 \begin_inset Quotes eld
15831 \end_inset
15832
15833 all reference units
15834 \begin_inset Quotes erd
15835 \end_inset
15836
15837  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
15838  this.
15839  Please refer to the 
15840 \family sans
15841 Biblatex
15842 \family default
15843  manual for more information on this topic.
15844 \end_layout
15845
15846 \begin_layout Chapter
15847 Supplemental Tools
15848 \end_layout
15849
15850 \begin_layout Section
15851 Multipart Documents
15852 \end_layout
15853
15854 \begin_layout Subsection
15855 General Operation
15856 \end_layout
15857
15858 \begin_layout Standard
15859 When you are working on a large file with many sections, it is often convenient
15860  to break up the document into several files, or perhaps you have something
15861  where a table may change from time to time, but the preceding text does
15862  not.
15863  In these cases, you should seriously consider using multipart documents.
15864  For example, scientific papers often have five major sections: the introduction
15865 , observations, results, discussion, and conclusion.
15866  Each of these could be its own separate \SpecialChar LyX
15867  file, with one 
15868 \begin_inset Quotes eld
15869 \end_inset
15870
15871 master
15872 \begin_inset Quotes erd
15873 \end_inset
15874
15875  file which contains the title, authors, abstract, references, etc., plus
15876  the five included files.
15877  It is important to note that each of these files is a full \SpecialChar LyX
15878  file which
15879  can be formatted and printed on its own, as well as included in a master
15880  file.
15881  Each of these files must have the same document class, however—don't attempt
15882  to mix book classes with article classes.
15883  You may also include \SpecialChar LaTeX
15884  files; however, these files must not have their own
15885  preamble (i.
15886 \begin_inset space \thinspace{}
15887 \end_inset
15888
15889 e.
15890 \begin_inset space \space{}
15891 \end_inset
15892
15893 everything up to and including the 
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898
15899 \backslash
15900 begin{document}
15901 \end_layout
15902
15903 \end_inset
15904
15905  line as well as the 
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910
15911 \backslash
15912 end{document}
15913 \end_layout
15914
15915 \end_inset
15916
15917  line must be deleted) or else errors will be generated when you try to
15918  make a DVI file.
15919 \end_layout
15920
15921 \begin_layout Standard
15922 \SpecialChar LyX
15923  allows you to include files quite easily with 
15924 \begin_inset Flex Noun
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928 Insert\SpecialChar menuseparator
15929 Child
15930 \begin_inset space ~
15931 \end_inset
15932
15933 Document
15934 \end_layout
15935
15936 \end_inset
15937
15938 .
15939  When you click on this selection a small box is inserted into the file
15940  at the current cursor location.
15941  Clicking on the box raises a dialog which allows you to select the file
15942  to be included, and the method of its inclusion.
15943  
15944 \end_layout
15945
15946 \begin_layout Standard
15947 The file selection box should by now be obvious.
15948  The three inclusion methods are 
15949 \begin_inset Quotes eld
15950 \end_inset
15951
15952 include
15953 \begin_inset Quotes erd
15954 \end_inset
15955
15956
15957 \begin_inset Quotes eld
15958 \end_inset
15959
15960 input
15961 \begin_inset Quotes erd
15962 \end_inset
15963
15964 , and 
15965 \begin_inset Quotes eld
15966 \end_inset
15967
15968 verbatim
15969 \begin_inset Quotes erd
15970 \end_inset
15971
15972 .
15973  The methods 
15974 \begin_inset Quotes eld
15975 \end_inset
15976
15977 include
15978 \begin_inset Quotes erd
15979 \end_inset
15980
15981  and 
15982 \begin_inset Quotes eld
15983 \end_inset
15984
15985 input
15986 \begin_inset Quotes erd
15987 \end_inset
15988
15989  are similar in many ways, but there are also some notable differences:
15990 \end_layout
15991
15992 \begin_layout Enumerate
15993 Files that are 
15994 \begin_inset Quotes eld
15995 \end_inset
15996
15997 included
15998 \begin_inset Quotes erd
15999 \end_inset
16000
16001  are typeset beginning on a new page, while files that are 
16002 \begin_inset Quotes eld
16003 \end_inset
16004
16005 inputted
16006 \begin_inset Quotes erd
16007 \end_inset
16008
16009  are typeset starting on the current page.
16010 \end_layout
16011
16012 \begin_layout Enumerate
16013 \begin_inset Quotes eld
16014 \end_inset
16015
16016 Included
16017 \begin_inset Quotes erd
16018 \end_inset
16019
16020  files cannot themselves 
16021 \begin_inset Quotes eld
16022 \end_inset
16023
16024 include
16025 \begin_inset Quotes erd
16026 \end_inset
16027
16028  further files (
16029 \begin_inset Quotes eld
16030 \end_inset
16031
16032 grandchilds
16033 \begin_inset Quotes erd
16034 \end_inset
16035
16036 ).
16037  With 
16038 \begin_inset Quotes eld
16039 \end_inset
16040
16041 input
16042 \begin_inset Quotes erd
16043 \end_inset
16044
16045 , on the other hand, infinite sub-inputting is possible.
16046 \end_layout
16047
16048 \begin_layout Enumerate
16049 \begin_inset Quotes eld
16050 \end_inset
16051
16052 Include
16053 \begin_inset Quotes erd
16054 \end_inset
16055
16056  allow for the output of only selected 
16057 \begin_inset Quotes eld
16058 \end_inset
16059
16060 included
16061 \begin_inset Quotes erd
16062 \end_inset
16063
16064  files, while maintaining the actual counters (pagination etc.) and references
16065  (please refer to the section 
16066 \emph on
16067 Child
16068 \begin_inset space ~
16069 \end_inset
16070
16071 Documents
16072 \emph default
16073  of the 
16074 \emph on
16075 Embedded
16076 \begin_inset space ~
16077 \end_inset
16078
16079 Objects
16080 \emph default
16081  manual for details).
16082 \end_layout
16083
16084 \begin_layout Standard
16085 Hence, 
16086 \begin_inset Quotes eld
16087 \end_inset
16088
16089 include
16090 \begin_inset Quotes erd
16091 \end_inset
16092
16093  is the preferred method for chapters that are outsourced to child documents,
16094  while 
16095 \begin_inset Quotes eld
16096 \end_inset
16097
16098 input
16099 \begin_inset Quotes erd
16100 \end_inset
16101
16102  is more suitable for arbitrary file inheritance.
16103 \end_layout
16104
16105 \begin_layout Standard
16106
16107 \begin_inset Quotes eld
16108 \end_inset
16109
16110 verbatim
16111 \begin_inset Quotes erd
16112 \end_inset
16113
16114  included file allows you to include a file typeset exactly as it appears
16115  in the file, i.
16116 \begin_inset space \thinspace{}
16117 \end_inset
16118
16119 e.
16120 \begin_inset space \space{}
16121 \end_inset
16122
16123 in 
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 verbatim
16129 \end_layout
16130
16131 \end_inset
16132
16133  mode, with the characters set in a fixed-width typewriter font.
16134  Normally, spaces in this file are invisible, though two consecutive spaces
16135  are conserved, unlike \SpecialChar LyX
16136 's normal treatment of spaces.
16137  However, setting the 
16138 \begin_inset Flex Noun
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142 Mark
16143 \begin_inset space ~
16144 \end_inset
16145
16146 spaces
16147 \begin_inset space ~
16148 \end_inset
16149
16150 in
16151 \begin_inset space ~
16152 \end_inset
16153
16154 output
16155 \end_layout
16156
16157 \end_inset
16158
16159  checkbox typesets a mark to unambiguously define the presence of a space.
16160  
16161 \end_layout
16162
16163 \begin_layout Standard
16164 Generally, the master file is converted into a full \SpecialChar LaTeX
16165  file before typesetting,
16166  while the included files are converted to \SpecialChar LaTeX
16167  files that do not have all the
16168  preamble information.
16169 \end_layout
16170
16171 \begin_layout Subsection
16172 Cross-References Between Files
16173 \end_layout
16174
16175 \begin_layout Standard
16176 \begin_inset Box Shadowbox
16177 position "t"
16178 hor_pos "c"
16179 has_inner_box 1
16180 inner_pos "t"
16181 use_parbox 0
16182 use_makebox 0
16183 width "100col%"
16184 special "none"
16185 height "1in"
16186 height_special "totalheight"
16187 thickness "0.4pt"
16188 separation "3pt"
16189 shadowsize "4pt"
16190 framecolor "black"
16191 backgroundcolor "none"
16192 status open
16193
16194 \begin_layout Plain Layout
16195 This section is somewhat out of date.
16196  Need to describe default master documents and how children are opened when
16197  the master is.
16198  [[FIXME]]
16199 \end_layout
16200
16201 \end_inset
16202
16203
16204 \end_layout
16205
16206 \begin_layout Standard
16207 It is possible to set up cross-references between the different files.
16208  First, open all the files in question: let's call them A and B in a two
16209  file example, where B is included in A.
16210  Let's say you insert a label in A, then want to reference it in B.
16211  Open the cross-reference dialog whilst in document B, and you can select
16212  the 
16213 \begin_inset Quotes eld
16214 \end_inset
16215
16216 buffer
16217 \begin_inset Quotes erd
16218 \end_inset
16219
16220  to use.
16221 \end_layout
16222
16223 \begin_layout Subsection
16224 Bibliography Lists in all Subdocuments
16225 \end_layout
16226
16227 \begin_layout Standard
16228 If you work with child documents, you might want to have only one main bibliogra
16229 phy at the end, but still be able to have a selected bibliography for the
16230  child if you output it on its own.
16231  Here is how to achieve this.
16232 \end_layout
16233
16234 \begin_layout Standard
16235 For the main document, you just insert a bibliography inset at the place
16236  where the main bibliography has to appear (within the master file or within
16237  a child).
16238  If the bibliography inset is in the master file, the references will be
16239  inherited by all children, so they are available in the citation dialog
16240  within each child.
16241 \end_layout
16242
16243 \begin_layout Standard
16244 For child-specific bibliographies, insert bibliography insets within the
16245  child documents, at the place where the bibliography should appear when
16246  the child is compiled separately.
16247  However, the trick is to insert them into a branch (
16248 \family sans
16249 Insert\SpecialChar menuseparator
16250 Branch\SpecialChar menuseparator
16251 Insert New Branch...
16252 \family default
16253 ), e.
16254 \begin_inset space \thinspace{}
16255 \end_inset
16256
16257 g.
16258  called 
16259 \begin_inset Quotes eld
16260 \end_inset
16261
16262 Childonly
16263 \begin_inset Quotes erd
16264 \end_inset
16265
16266 .
16267  Within the children, activate the branch (
16268 \family sans
16269 Document\SpecialChar menuseparator
16270 Settings...\SpecialChar menuseparator
16271 Branches
16272 \family default
16273 ).
16274  Within the master, deactivate the branch (
16275 \family sans
16276 Document\SpecialChar menuseparator
16277 Settings...\SpecialChar menuseparator
16278 Branches
16279 \family default
16280 ).
16281  Now the child's bibliography will be ignored by the master, but considered
16282  by the child.
16283 \end_layout
16284
16285 \begin_layout Standard
16286 If you need multiple bibliographies (e.
16287 \begin_inset space \thinspace{}
16288 \end_inset
16289
16290 g., one per child in the 
16291 \emph on
16292 main document
16293 \emph default
16294 ), please refer to sec.
16295 \begin_inset space ~
16296 \end_inset
16297
16298
16299 \begin_inset CommandInset ref
16300 LatexCommand ref
16301 reference "subsec:Multiple-Bibliographies"
16302
16303 \end_inset
16304
16305 .
16306 \end_layout
16307
16308 \begin_layout Section
16309 \SpecialChar LyX
16310  Archives
16311 \end_layout
16312
16313 \begin_layout Standard
16314 Users sometimes need to be able to 
16315 \begin_inset Quotes eld
16316 \end_inset
16317
16318 bundle
16319 \begin_inset Quotes erd
16320 \end_inset
16321
16322  a \SpecialChar LyX
16323  file together with all the images (and other files) on which it depends,
16324  either for sending to a publisher or for sharing with a co-author.
16325  \SpecialChar LyX
16326  includes a Python script (
16327 \begin_inset Flex Code
16328 status collapsed
16329
16330 \begin_layout Plain Layout
16331 lyxpak.py
16332 \end_layout
16333
16334 \end_inset
16335
16336 ) that automates this process.
16337  To use it, you must have either the 
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 zipfile
16343 \end_layout
16344
16345 \end_inset
16346
16347  or 
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 tarfile
16353 \end_layout
16354
16355 \end_inset
16356
16357  python modules installed on your system.
16358  By default, the script prefers the 
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 gzip
16364 \end_layout
16365
16366 \end_inset
16367
16368 -compressed 
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 tar
16374 \end_layout
16375
16376 \end_inset
16377
16378  format on Unix-like systems and the 
16379 \begin_inset Flex Code
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383 zip
16384 \end_layout
16385
16386 \end_inset
16387
16388  format on Windows.
16389 \end_layout
16390
16391 \begin_layout Standard
16392 \SpecialChar LyX
16393 's configuration process will set the script up to export a `\SpecialChar LyX
16394  Archive',
16395  and this format will then be available under 
16396 \begin_inset Flex Code
16397 status collapsed
16398
16399 \begin_layout Plain Layout
16400 File\SpecialChar menuseparator
16401 Export
16402 \end_layout
16403
16404 \end_inset
16405
16406 .
16407 \end_layout
16408
16409 \begin_layout Standard
16410 Independently of the platform, the generation of a particular archive format
16411  can be forced by adding either the 
16412 \begin_inset Flex Code
16413 status collapsed
16414
16415 \begin_layout Plain Layout
16416 -t
16417 \end_layout
16418
16419 \end_inset
16420
16421  (for the 
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426 tar
16427 \end_layout
16428
16429 \end_inset
16430
16431  format) or 
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 -z
16437 \end_layout
16438
16439 \end_inset
16440
16441  (for the 
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446 zip
16447 \end_layout
16448
16449 \end_inset
16450
16451  format) switch to the 
16452 \begin_inset Flex Code
16453 status collapsed
16454
16455 \begin_layout Plain Layout
16456 \SpecialChar LyX
16457 \SpecialChar menuseparator
16458 \SpecialChar LyX
16459  Archive
16460 \end_layout
16461
16462 \end_inset
16463
16464  converter in 
16465 \begin_inset Flex Code
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469 Tools\SpecialChar menuseparator
16470 Preferences\SpecialChar menuseparator
16471 File Handling\SpecialChar menuseparator
16472 Converters
16473 \end_layout
16474
16475 \end_inset
16476
16477 .
16478  (Make sure you add the switch after the script name, not before it.)
16479 \end_layout
16480
16481 \begin_layout Section
16482 Fancy Headers and Footers
16483 \end_layout
16484
16485 \begin_layout Standard
16486 The default page layout is rather plain; for an 
16487 \begin_inset Flex Code
16488 status collapsed
16489
16490 \begin_layout Plain Layout
16491 article
16492 \end_layout
16493
16494 \end_inset
16495
16496  document class, all you get is a centered page number at the bottom of
16497  the page.
16498  This document uses KOMA-script's book class, so it appears to be a bit
16499  fancier.
16500  But to really put on a show, you need to set the document page style to
16501  
16502 \begin_inset Quotes eld
16503 \end_inset
16504
16505 fancy
16506 \begin_inset Quotes erd
16507 \end_inset
16508
16509 , as mentioned in the 
16510 \emph on
16511 User Guide
16512 \emph default
16513 .
16514  This section describes the \SpecialChar LaTeX
16515  code you need to insert in your \SpecialChar LaTeX
16516  preamble in
16517  order to get the desired effects.
16518 \end_layout
16519
16520 \begin_layout Standard
16521 For more information on fancy headers, see the 
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526 fancyhdr
16527 \end_layout
16528
16529 \end_inset
16530
16531  package documentation.
16532  (
16533 \begin_inset Flex URL
16534 status collapsed
16535
16536 \begin_layout Plain Layout
16537
16538 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
16539 \end_layout
16540
16541 \end_inset
16542
16543 )
16544 \end_layout
16545
16546 \begin_layout Standard
16547 The page header is divided into three fields, not surprisingly labeled 
16548 \begin_inset Quotes eld
16549 \end_inset
16550
16551 left
16552 \begin_inset Quotes erd
16553 \end_inset
16554
16555
16556 \begin_inset Quotes eld
16557 \end_inset
16558
16559 center
16560 \begin_inset Quotes erd
16561 \end_inset
16562
16563 , and 
16564 \begin_inset Quotes eld
16565 \end_inset
16566
16567 right
16568 \begin_inset Quotes erd
16569 \end_inset
16570
16571 .
16572  The footer is also divided into these three fields.
16573  The \SpecialChar LaTeX
16574  commands to set these fields in the simplest manner are 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579
16580 \backslash
16581 lhead
16582 \end_layout
16583
16584 \end_inset
16585
16586
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591
16592 \backslash
16593 chead
16594 \end_layout
16595
16596 \end_inset
16597
16598
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603
16604 \backslash
16605 rhead
16606 \end_layout
16607
16608 \end_inset
16609
16610
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615
16616 \backslash
16617 lfoot
16618 \end_layout
16619
16620 \end_inset
16621
16622 , etc.
16623  Suppose you wish to put your name in the upper left hand corner of each
16624  page.
16625  Simply insert the following command in the preamble: 
16626 \end_layout
16627
16628 \begin_layout Standard
16629
16630 \family typewriter
16631
16632 \backslash
16633 lhead{John Q.
16634  DocWriter}
16635 \end_layout
16636
16637 \begin_layout Standard
16638 You will now see your name in the upper left.
16639  If a field has a default entry that you would like to get rid of (often
16640  the page number appears in the central footer) simply include a command
16641  with a blank argument, e.
16642 \begin_inset space \thinspace{}
16643 \end_inset
16644
16645 g.:
16646 \end_layout
16647
16648 \begin_layout Standard
16649
16650 \family typewriter
16651
16652 \backslash
16653 cfoot{}
16654 \end_layout
16655
16656 \begin_layout Standard
16657 Let's get really fancy: lets put the section number with the word 
16658 \begin_inset Quotes eld
16659 \end_inset
16660
16661 Section
16662 \begin_inset Quotes erd
16663 \end_inset
16664
16665  (e.
16666 \begin_inset space \thinspace{}
16667 \end_inset
16668
16669 g.
16670 \begin_inset space \space{}
16671 \end_inset
16672
16673 Section 3) in the upper left, the page number (e.
16674 \begin_inset space \thinspace{}
16675 \end_inset
16676
16677 g.
16678 \begin_inset space \space{}
16679 \end_inset
16680
16681 Page 4) in the upper right, your name in the lower left, and the date in
16682  the lower right.
16683  The following commands should now appear in the preamble:
16684 \end_layout
16685
16686 \begin_layout Standard
16687
16688 \family typewriter
16689
16690 \backslash
16691 lhead{Section 
16692 \backslash
16693 thesection}
16694 \end_layout
16695
16696 \begin_layout Standard
16697
16698 \family typewriter
16699
16700 \backslash
16701 chead{}
16702 \end_layout
16703
16704 \begin_layout Standard
16705
16706 \family typewriter
16707
16708 \backslash
16709 rhead{Page 
16710 \backslash
16711 thepage}
16712 \end_layout
16713
16714 \begin_layout Standard
16715
16716 \family typewriter
16717
16718 \backslash
16719 lfoot{John Q.
16720  DocWriter}
16721 \end_layout
16722
16723 \begin_layout Standard
16724
16725 \family typewriter
16726
16727 \backslash
16728 cfoot{}
16729 \end_layout
16730
16731 \begin_layout Standard
16732
16733 \family typewriter
16734
16735 \backslash
16736 rfoot{
16737 \backslash
16738 today}
16739 \end_layout
16740
16741 \begin_layout Standard
16742 The commands 
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747
16748 \backslash
16749 thesection
16750 \end_layout
16751
16752 \end_inset
16753
16754  and 
16755 \begin_inset Flex Code
16756 status collapsed
16757
16758 \begin_layout Plain Layout
16759
16760 \backslash
16761 thepage
16762 \end_layout
16763
16764 \end_inset
16765
16766  access \SpecialChar LaTeX
16767 's section and page counters, and so print out the current section
16768  and page number.
16769  
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774
16775 \backslash
16776 today
16777 \end_layout
16778
16779 \end_inset
16780
16781  simply prints out today's date.
16782 \end_layout
16783
16784 \begin_layout Standard
16785 The thicknesses of the horizontal rules drawn beneath the header and above
16786  the footer can also be modified.
16787  If you don't want one of the rules, set its thickness to 0.
16788  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
16789  Use commands
16790 \family typewriter
16791  
16792 \family default
16793 like 
16794 \begin_inset Flex Code
16795 status collapsed
16796
16797 \begin_layout Plain Layout
16798
16799 \backslash
16800 renewcommand{
16801 \backslash
16802 headrulewidth}{0.4pt}
16803 \end_layout
16804
16805 \end_inset
16806
16807  and 
16808 \begin_inset Flex Code
16809 status collapsed
16810
16811 \begin_layout Plain Layout
16812
16813 \backslash
16814 renewcommand{
16815 \backslash
16816 footrulewidth}{0.4pt}
16817 \end_layout
16818
16819 \end_inset
16820
16821  to set the thicknesses.
16822 \end_layout
16823
16824 \begin_layout Standard
16825 You can switch the header/footer settings on and off for individual pages
16826  using commands like 
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831
16832 \backslash
16833 thispagestyle{empty}
16834 \end_layout
16835
16836 \end_inset
16837
16838
16839 \begin_inset Flex Code
16840 status collapsed
16841
16842 \begin_layout Plain Layout
16843
16844 \backslash
16845 thispagestyle{plain}
16846 \end_layout
16847
16848 \end_inset
16849
16850 , and 
16851 \begin_inset Flex Code
16852 status collapsed
16853
16854 \begin_layout Plain Layout
16855
16856 \backslash
16857 thispagestyle{fancy}
16858 \end_layout
16859
16860 \end_inset
16861
16862 .
16863  Simply insert them in the text on the page you want changed and mark them
16864  as \SpecialChar TeX
16865  code.
16866  In fact, title pages are marked as plain by default, while following pages
16867  are marked fancy when using the global fancy setting.
16868 \end_layout
16869
16870 \begin_layout Standard
16871 As a final example, it is possible to include an image in the header or
16872  footer.
16873  Suppose you want to put a company logo in the upper lefthand corner.
16874  You might try something like
16875 \end_layout
16876
16877 \begin_layout Standard
16878
16879 \family typewriter
16880
16881 \backslash
16882 lhead{
16883 \backslash
16884 resizebox{1in}{!}{
16885 \backslash
16886 includegraphics{logo.eps}}}
16887 \end_layout
16888
16889 \begin_layout Standard
16890 \noindent
16891 (you may need to preface this with 
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896
16897 \backslash
16898 usepackage{graphics}
16899 \end_layout
16900
16901 \end_inset
16902
16903  if you don't include graphics elsewhere in your document).
16904 \end_layout
16905
16906 \begin_layout Section
16907 Itemize Bullet Selection
16908 \begin_inset CommandInset label
16909 LatexCommand label
16910 name "sec:bullet"
16911
16912 \end_inset
16913
16914
16915 \end_layout
16916
16917 \begin_layout Standard
16918 by
16919 \noun on
16920  Allan Rae
16921 \end_layout
16922
16923 \begin_layout Subsection
16924 Introduction
16925 \end_layout
16926
16927 \begin_layout Standard
16928 \SpecialChar LyX
16929  provides 216 bullet shapes that can be accessed from a simple dialog.
16930  Using this dialog you can easily specify what bullet shape to use at each
16931  level of an itemized list.
16932  These settings are document-wide so you won't be able to specify different
16933  sets of bullets for different paragraphs.
16934 \begin_inset Foot
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938 Well, actually you can but you'll have to do it by hand.
16939 \end_layout
16940
16941 \end_inset
16942
16943
16944 \end_layout
16945
16946 \begin_layout Subsection
16947 How it looks
16948 \end_layout
16949
16950 \begin_layout Standard
16951 Open the dialog by selecting the 
16952 \begin_inset Flex Noun
16953 status collapsed
16954
16955 \begin_layout Plain Layout
16956 Document\SpecialChar menuseparator
16957 Settings
16958 \end_layout
16959
16960 \end_inset
16961
16962  menu item and then select the 
16963 \begin_inset Flex Noun
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 Bullets
16968 \end_layout
16969
16970 \end_inset
16971
16972  tab.
16973 \end_layout
16974
16975 \begin_layout Standard
16976 The dialog provides you with a table of bullet shapes.
16977  A column of buttons on the left of the table provides access to the six
16978  different panels of bullet shapes.
16979  The row of buttons across the top is used to select which bullet depth
16980  you are changing.
16981
16982 \change_deleted 244031559 1603875981
16983  A text entry under the table shows the currently selected bullet shape's
16984  \SpecialChar LaTeX
16985  equivalent and this can be edited if desired.
16986  If you do modify the text you will also need to specify any needed packages
16987  in the \SpecialChar LaTeX
16988  preamble.
16989 \change_unchanged
16990
16991 \end_layout
16992
16993 \begin_layout Standard
16994 The six panels are divided up by the packages they require.
16995  The following table shows the mappings from button name to \SpecialChar LaTeX
16996  package.
16997 \end_layout
16998
16999 \begin_layout Standard
17000 \align center
17001 \begin_inset Tabular
17002 <lyxtabular version="3" rows="7" columns="2">
17003 <features tabularvalignment="middle">
17004 <column alignment="center" valignment="top" width="0pt">
17005 <column alignment="center" valignment="top" width="0pt">
17006 <row>
17007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17008 \begin_inset Text
17009
17010 \begin_layout Plain Layout
17011
17012 \family roman
17013 \series medium
17014 \shape up
17015 \size normal
17016 \emph off
17017 \bar no
17018 \noun off
17019 \color none
17020 Button
17021 \end_layout
17022
17023 \end_inset
17024 </cell>
17025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17026 \begin_inset Text
17027
17028 \begin_layout Plain Layout
17029
17030 \family roman
17031 \series medium
17032 \shape up
17033 \size normal
17034 \emph off
17035 \bar no
17036 \noun off
17037 \color none
17038 Packages Required
17039 \end_layout
17040
17041 \end_inset
17042 </cell>
17043 </row>
17044 <row>
17045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17046 \begin_inset Text
17047
17048 \begin_layout Plain Layout
17049
17050 \family sans
17051 \series medium
17052 \shape up
17053 \size normal
17054 \emph off
17055 \bar no
17056 \noun off
17057 \color none
17058 Standard
17059 \end_layout
17060
17061 \end_inset
17062 </cell>
17063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17064 \begin_inset Text
17065
17066 \begin_layout Plain Layout
17067
17068 \series medium
17069 \shape up
17070 \size normal
17071 \emph off
17072 \bar no
17073 \noun off
17074 \color none
17075 base \SpecialChar LaTeX
17076
17077 \end_layout
17078
17079 \end_inset
17080 </cell>
17081 </row>
17082 <row>
17083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17084 \begin_inset Text
17085
17086 \begin_layout Plain Layout
17087
17088 \family sans
17089 \series medium
17090 \shape up
17091 \size normal
17092 \emph off
17093 \bar no
17094 \noun off
17095 \color none
17096 Maths
17097 \end_layout
17098
17099 \end_inset
17100 </cell>
17101 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17102 \begin_inset Text
17103
17104 \begin_layout Plain Layout
17105
17106 \family typewriter
17107 \series medium
17108 \shape up
17109 \size normal
17110 \emph off
17111 \bar no
17112 \noun off
17113 \color none
17114 amssymb.sty
17115 \end_layout
17116
17117 \end_inset
17118 </cell>
17119 </row>
17120 <row>
17121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17122 \begin_inset Text
17123
17124 \begin_layout Plain Layout
17125
17126 \family sans
17127 \series medium
17128 \shape up
17129 \size normal
17130 \emph off
17131 \bar no
17132 \noun off
17133 \color none
17134 Ding1
17135 \end_layout
17136
17137 \end_inset
17138 </cell>
17139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17140 \begin_inset Text
17141
17142 \begin_layout Plain Layout
17143
17144 \family typewriter
17145 \series medium
17146 \shape up
17147 \size normal
17148 \emph off
17149 \bar no
17150 \noun off
17151 \color none
17152 pifont.sty
17153 \end_layout
17154
17155 \end_inset
17156 </cell>
17157 </row>
17158 <row>
17159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17160 \begin_inset Text
17161
17162 \begin_layout Plain Layout
17163
17164 \family sans
17165 \series medium
17166 \shape up
17167 \size normal
17168 \emph off
17169 \bar no
17170 \noun off
17171 \color none
17172 Ding2
17173 \end_layout
17174
17175 \end_inset
17176 </cell>
17177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17178 \begin_inset Text
17179
17180 \begin_layout Plain Layout
17181
17182 \family typewriter
17183 \series medium
17184 \shape up
17185 \size normal
17186 \emph off
17187 \bar no
17188 \noun off
17189 \color none
17190 pifont.sty
17191 \end_layout
17192
17193 \end_inset
17194 </cell>
17195 </row>
17196 <row>
17197 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17198 \begin_inset Text
17199
17200 \begin_layout Plain Layout
17201
17202 \family sans
17203 \series medium
17204 \shape up
17205 \size normal
17206 \emph off
17207 \bar no
17208 \noun off
17209 \color none
17210 Ding3
17211 \end_layout
17212
17213 \end_inset
17214 </cell>
17215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17216 \begin_inset Text
17217
17218 \begin_layout Plain Layout
17219
17220 \family typewriter
17221 \series medium
17222 \shape up
17223 \size normal
17224 \emph off
17225 \bar no
17226 \noun off
17227 \color none
17228 pifont.sty
17229 \end_layout
17230
17231 \end_inset
17232 </cell>
17233 </row>
17234 <row>
17235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17236 \begin_inset Text
17237
17238 \begin_layout Plain Layout
17239
17240 \family sans
17241 \series medium
17242 \shape up
17243 \size normal
17244 \emph off
17245 \bar no
17246 \noun off
17247 \color none
17248 Ding4
17249 \end_layout
17250
17251 \end_inset
17252 </cell>
17253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17254 \begin_inset Text
17255
17256 \begin_layout Plain Layout
17257
17258 \family typewriter
17259 \series medium
17260 \shape up
17261 \size normal
17262 \emph off
17263 \bar no
17264 \noun off
17265 \color none
17266 pifont.sty
17267 \end_layout
17268
17269 \end_inset
17270 </cell>
17271 </row>
17272 </lyxtabular>
17273
17274 \end_inset
17275
17276
17277 \end_layout
17278
17279 \begin_layout Standard
17280 \SpecialChar LyX
17281  doesn't stop you using bullets from packages you don't have.
17282  If you get errors from \SpecialChar LaTeX
17283  when you try to view or print the file, then it
17284  is likely you are missing a package.
17285 \begin_inset Foot
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 \SpecialChar LyX
17290  doesn't restrict your use since you may be editing locally and exporting
17291  elsewhere.
17292 \end_layout
17293
17294 \end_inset
17295
17296
17297 \end_layout
17298
17299 \begin_layout Subsection
17300 How to use it
17301 \end_layout
17302
17303 \begin_layout Standard
17304 Select which bullet depth you want to change then select the bullet shape
17305  and size.
17306  Any changes will not be visible in \SpecialChar LyX
17307 , but are visible when viewing the document.
17308 \end_layout
17309
17310 \begin_layout Standard
17311 You can reset a bullet shape to the default simply by clicking your right
17312  mouse button on the appropriate bullet depth button.
17313 \begin_inset Foot
17314 status open
17315
17316 \begin_layout Plain Layout
17317 If you 
17318 \emph on
17319 really
17320 \emph default
17321  want to have multiple sets of paragraphs with different sets of bullets
17322  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17323  code.
17324  The bullet selection dialog can help though because it provides you with
17325  the \SpecialChar LaTeX
17326  code for a wide range of bullet shapes.
17327  To make your own custom paragraphs you have the following options:
17328 \end_layout
17329
17330 \begin_layout Plain Layout
17331 \begin_inset ERT
17332 status open
17333
17334 \begin_layout Plain Layout
17335
17336
17337 \backslash
17338 let
17339 \backslash
17340 savelabelitemi=
17341 \backslash
17342 labelitemi
17343 \end_layout
17344
17345 \end_inset
17346
17347
17348 \end_layout
17349
17350 \begin_layout Plain Layout
17351 \begin_inset ERT
17352 status open
17353
17354 \begin_layout Plain Layout
17355
17356
17357 \backslash
17358 renewcommand
17359 \backslash
17360 labelitemi[0]{
17361 \backslash
17362 small
17363 \backslash
17364 (
17365 \backslash
17366 sharp
17367 \backslash
17368 )}
17369 \end_layout
17370
17371 \end_inset
17372
17373
17374 \end_layout
17375
17376 \begin_layout Itemize
17377 Use the \SpecialChar LaTeX
17378  command 
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383
17384 \backslash
17385 renewcommand{}{}
17386 \end_layout
17387
17388 \end_inset
17389
17390  to specify a new bullet shape for a given depth.
17391  You'll also need to save the current bullet shape so you can restore it
17392  again afterwards.
17393  In this itemized list the following \SpecialChar LaTeX
17394  code was used to change the bullet
17395  used for the first depth.
17396 \end_layout
17397
17398 \begin_deeper
17399 \begin_layout LyX-Code
17400
17401 \backslash
17402 let
17403 \backslash
17404 savelabelitemi=
17405 \backslash
17406 labelitemi 
17407 \end_layout
17408
17409 \begin_layout LyX-Code
17410
17411 \backslash
17412 renewcommand
17413 \backslash
17414 labelitemi[0]{
17415 \backslash
17416 small
17417 \backslash
17418 (
17419 \backslash
17420 sharp
17421 \backslash
17422 )}
17423 \end_layout
17424
17425 \end_deeper
17426 \begin_layout Itemize
17427 Note that the itemize depth is specified in Roman numerals as part of the
17428  
17429 \family typewriter
17430
17431 \backslash
17432 labelitem
17433 \family default
17434  command.
17435 \end_layout
17436
17437 \begin_layout Itemize
17438 \begin_inset Argument item:1
17439 status open
17440
17441 \begin_layout Plain Layout
17442 \begin_inset ERT
17443 status open
17444
17445 \begin_layout Plain Layout
17446
17447
17448 \backslash
17449 (
17450 \backslash
17451 star
17452 \backslash
17453 )
17454 \end_layout
17455
17456 \end_inset
17457
17458
17459 \end_layout
17460
17461 \end_inset
17462
17463  Specify each individual entry by starting each item with the bullet shape
17464  enclosed in a 
17465 \begin_inset Quotes eld
17466 \end_inset
17467
17468 Custom Item
17469 \begin_inset Quotes erd
17470 \end_inset
17471
17472  inset (available at 
17473 \family sans
17474 Insert\SpecialChar menuseparator
17475 Custom Item
17476 \family default
17477 ) and set as 
17478 \begin_inset Flex Noun
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 \SpecialChar TeX
17483  Code
17484 \end_layout
17485
17486 \end_inset
17487
17488 .
17489  For example, this item was started with 
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494
17495 \backslash
17496 (
17497 \backslash
17498 star
17499 \backslash
17500 )
17501 \end_layout
17502
17503 \end_inset
17504
17505 .
17506 \end_layout
17507
17508 \begin_layout Plain Layout
17509 \begin_inset ERT
17510 status open
17511
17512 \begin_layout Plain Layout
17513
17514
17515 \backslash
17516 renewcommand
17517 \backslash
17518 labelitemi[0]{
17519 \backslash
17520 savelabelitemi}
17521 \end_layout
17522
17523 \end_inset
17524
17525
17526 \end_layout
17527
17528 \begin_layout Plain Layout
17529 You'll also need to revert the labelitem back to its previous setting for
17530  the global bullet shape settings to remain in effect.
17531  The way used here was:
17532 \end_layout
17533
17534 \begin_layout LyX-Code
17535
17536 \backslash
17537 renewcommand
17538 \backslash
17539 labelitemi[0]{
17540 \backslash
17541 savelabelitemi}
17542 \end_layout
17543
17544 \end_inset
17545
17546
17547 \end_layout
17548
17549 \begin_layout Chapter
17550 \SpecialChar LyX
17551  and the World Wide Web
17552 \end_layout
17553
17554 \begin_layout Standard
17555 \SpecialChar LyX
17556  has long supported the export of documents to various web-friendly formats,
17557  such as HTML.
17558  Before version 2.0, however, HTML export was always accomplished by the
17559  use of external converters.
17560 \begin_inset Foot
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 For details on the use of external converters with \SpecialChar LyX
17565 , see the 
17566 \emph on
17567 Converters
17568 \emph default
17569  section of the Customization manual.
17570 \end_layout
17571
17572 \end_inset
17573
17574  These fall into two large groups: there are converters that use \SpecialChar LaTeX
17575  as an
17576  intermediate format, such as 
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 htlatex
17582 \end_layout
17583
17584 \end_inset
17585
17586
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 html2latex
17592 \end_layout
17593
17594 \end_inset
17595
17596 , and 
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601 plastex
17602 \end_layout
17603
17604 \end_inset
17605
17606 , relying upon \SpecialChar LyX
17607  to produce the \SpecialChar LaTeX
17608 ; and there is a converter that works directly
17609  on \SpecialChar LyX
17610  files, 
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 e\SpecialChar LyX
17616 er
17617 \end_layout
17618
17619 \end_inset
17620
17621 .
17622  All of these have different advantages and disadvantages.
17623  
17624 \end_layout
17625
17626 \begin_layout Standard
17627 The \SpecialChar LaTeX
17628 -based converters have the advantage that, in principle, they know everythin
17629 g about the exported document that \SpecialChar LaTeX
17630  does.
17631  Such converters do not care, for example, if a certain block of code was
17632  produced by \SpecialChar LyX
17633  or was Evil Red Text.
17634  These converters know about 
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 aux
17640 \end_layout
17641
17642 \end_inset
17643
17644  files, counters, and references, and can often make use of the 
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 bbl
17650 \end_layout
17651
17652 \end_inset
17653
17654  files generated by Bib\SpecialChar TeX
17655 .
17656  On the other hand, \SpecialChar LaTeX
17657  is a very hard language to parse—it is sometimes said
17658  that only \SpecialChar TeX
17659  itself understands \SpecialChar TeX
17660 —and \SpecialChar LaTeX
17661 -based converters will often choke on
17662  what seem to be quite simple constructs; complex ones can throw them completely
17663 , and as of this writing, for example, the 
17664 \emph on
17665 Embedded Objects
17666 \emph default
17667  manual will not export with 
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 htlatex
17673 \end_layout
17674
17675 \end_inset
17676
17677 , though the others will.
17678  The other issue concerns how math is handled.
17679  These converters typically convert the formulae into little pictures that
17680  are then linked from the HTML document.
17681  Since these are actually generated by \SpecialChar LaTeX
17682 , they are accurate.
17683  But they do not scale well, and just getting them to look as if they are
17684  actually meant to be in your document—so that the font sizes seem to be
17685  roughly the same—can be a challenge.
17686 \end_layout
17687
17688 \begin_layout Standard
17689 Alex Fernandez's 
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694 e\SpecialChar LyX
17695 er
17696 \end_layout
17697
17698 \end_inset
17699
17700  (
17701 \begin_inset CommandInset href
17702 LatexCommand href
17703 name "http://pinchito.es/elyxer/"
17704 target "http://pinchito.es/elyxer/"
17705 literal "false"
17706
17707 \end_inset
17708
17709 ) solves some of these problems.
17710  In particular, the formulae it produces scale perfectly, since it renders
17711  math using a combination of HTML and CSS rather than converting the formulae
17712  to images.
17713  But even moderately complex formula are rendered less well than with 
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 htlatex
17719 \end_layout
17720
17721 \end_inset
17722
17723 ; this reflects the limitations of HTML.
17724 \begin_inset Foot
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 That said, 
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733 e\SpecialChar LyX
17734 er
17735 \end_layout
17736
17737 \end_inset
17738
17739  can also use jsMath and MathJax for equations, but this setting is only
17740  available globally and requires one to have access to a server that runs
17741  the backend.
17742 \end_layout
17743
17744 \end_inset
17745
17746  More importantly (as of version 1.1.1, at least), 
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 e\SpecialChar LyX
17752 er
17753 \end_layout
17754
17755 \end_inset
17756
17757  has limited support for math macros and no support for user-defined paragraph
17758  or character styles.
17759  These limitations make 
17760 \begin_inset Flex Code
17761 status collapsed
17762
17763 \begin_layout Plain Layout
17764 e\SpecialChar LyX
17765 er
17766 \end_layout
17767
17768 \end_inset
17769
17770  unsuitable for many of the documents \SpecialChar LyX
17771  users produce.
17772  In principle, of course, these problems could be solved, but the \SpecialChar LyX
17773  developers
17774  have decided to follow a different path and have made \SpecialChar LyX
17775  itself capable of
17776  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
17777 , DocBook, and plaintext.
17778 \end_layout
17779
17780 \begin_layout Standard
17781 As of this writing, XHTML output remains under development and should probably
17782  be regarded as 
17783 \begin_inset Quotes eld
17784 \end_inset
17785
17786 experimental
17787 \begin_inset Quotes erd
17788 \end_inset
17789
17790 .
17791 \begin_inset Foot
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795 The file 
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 development/HTML/HTML.notes
17801 \end_layout
17802
17803 \end_inset
17804
17805 , which can be found in the \SpecialChar LyX
17806  source tree or 
17807 \begin_inset CommandInset href
17808 LatexCommand href
17809 name "accessed online"
17810 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
17811 literal "false"
17812
17813 \end_inset
17814
17815 , usually contains up-to-date information about the state of XHTML output.
17816  See also the list of XHTML bugs on 
17817 \begin_inset CommandInset href
17818 LatexCommand href
17819 name "the bug tracker"
17820 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"
17821 literal "false"
17822
17823 \end_inset
17824
17825 .
17826 \end_layout
17827
17828 \end_inset
17829
17830  Still, the developers have chosen this approach because it has several
17831  potential advantages over the other two.
17832 \end_layout
17833
17834 \begin_layout Standard
17835 These advantages are primarily due to the fact that the XHTML output routines,
17836  since they are part of \SpecialChar LyX
17837 , know everything \SpecialChar LyX
17838  knows about the document being
17839  exported.
17840 \begin_inset Foot
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 Another advantage is that, since these routines are internal to \SpecialChar LyX
17845 , they are
17846  immune to changes in \SpecialChar LyX
17847 's file format, or to changes in the semantics of
17848  existing insets.
17849 \end_layout
17850
17851 \end_inset
17852
17853  So they know about the table of contents (as displayed in the outline),
17854  about the counters associated with different paragraph styles, and about
17855  user-defined styles.
17856  The XHTML output routines know what \SpecialChar LyX
17857  knows about internationalization,
17858  too, so they will output 
17859 \begin_inset Quotes eld
17860 \end_inset
17861
17862 Chapter 1
17863 \begin_inset Quotes erd
17864 \end_inset
17865
17866  or 
17867 \begin_inset Quotes eld
17868 \end_inset
17869
17870
17871 \lang ngerman
17872 Kapitel
17873 \lang english
17874  1
17875 \begin_inset Quotes erd
17876 \end_inset
17877
17878 , depending upon the language in effect at the time.
17879  
17880 \end_layout
17881
17882 \begin_layout Standard
17883 Quite generally, the output routines know what \SpecialChar LyX
17884  knows about document layout,
17885  that is, about how the document is to be rendered on screen.
17886  We use this information when we output the document as XHTML.
17887  In particular, \SpecialChar LyX
17888  
17889 \emph on
17890 automatically
17891 \emph default
17892  generates CSS style information corresponding to the layout information
17893  it uses to render the document on screen: if section headings are supposed
17894  to be sans-serif and bold as seen in \SpecialChar LyX
17895 , then (by default) they will be sans-seri
17896 f and bold when viewed in a web browser, too.
17897  And this is true not just for pre-defined styles, like Section, but for
17898  any style, including user-defined styles.
17899  Indeed, the XHTML output routines make no distinction between user-defined
17900  paragraph and 
17901 \change_deleted 244031559 1603876931
17902 character
17903 \change_inserted 244031559 1603876940
17904 text
17905 \change_unchanged
17906  styles and \SpecialChar LyX
17907 's own pre-defined styles: in each case, everything \SpecialChar LyX
17908  knows about
17909  the styles is contained in the layout files.
17910  And much the same is true as regards pre-defined textual insets, such as
17911  footnotes, and various custom insets.
17912  
17913 \end_layout
17914
17915 \begin_layout Standard
17916 The result is that XHTML output can be customized and extended in exactly
17917  the same way \SpecialChar LaTeX
17918  output can be customized and extended: through layout files
17919  and modules.
17920  See chapter five of the 
17921 \emph on
17922 Customization 
17923 \emph default
17924 manual for the details.
17925 \end_layout
17926
17927 \begin_layout Standard
17928 The remainder of this chapter contains more detailed information on XHTML
17929  output, its limitations, and ways to work around those limitations.
17930 \end_layout
17931
17932 \begin_layout Section
17933 Math Output in XHTML
17934 \end_layout
17935
17936 \begin_layout Standard
17937 \SpecialChar LyX
17938  offers four choices for how math is rendered.
17939  These have various advantages and disadvantages:
17940 \end_layout
17941
17942 \begin_layout Itemize
17943 MathML
17944 \begin_inset Newline newline
17945 \end_inset
17946
17947 MathML is a dialect of XML designed specifically for mathematics on the
17948  web, and it typically renders very well in browsers that support it.
17949  The disadvantage is that not all browsers support MathML, and support is
17950  not complete even in the Gecko-based browsers, such as Firefox.
17951 \begin_inset Newline newline
17952 \end_inset
17953
17954 If \SpecialChar LyX
17955  is unable to render a formula as MathML—for example, if the formula
17956  uses the 
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 xymatrix
17962 \end_layout
17963
17964 \end_inset
17965
17966  package or ERT—then it will instead output the formula as an image.
17967  
17968 \end_layout
17969
17970 \begin_layout Itemize
17971 HTML
17972 \begin_inset Newline newline
17973 \end_inset
17974
17975 As mentioned above, 
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 elyxer
17981 \end_layout
17982
17983 \end_inset
17984
17985  outputs math as HTML, styled by CSS.
17986 \begin_inset Foot
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 \SpecialChar LyX
17991  has borrowed some of the CSS for its HTML output from 
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 elyxer
17997 \end_layout
17998
17999 \end_inset
18000
18001 .
18002 \end_layout
18003
18004 \end_inset
18005
18006  For simple formulae, this can work quite well, though with more complicated
18007  formulae it tends to break down.
18008  Still, this method has the advantage that it is very widely supported and
18009  so it may be appropriate for documents that contain only a little, fairly
18010  simple math.
18011 \begin_inset Newline newline
18012 \end_inset
18013
18014 If Lyx is unable to render a formula as HTML—for example, if the formula
18015  uses the 
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020 xymatrix
18021 \end_layout
18022
18023 \end_inset
18024
18025  package or ERT—then it will instead output the formula as an image.
18026  
18027 \end_layout
18028
18029 \begin_layout Itemize
18030 Images
18031 \begin_inset Newline newline
18032 \end_inset
18033
18034 Like 
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 htlatex
18040 \end_layout
18041
18042 \end_inset
18043
18044 , \SpecialChar LyX
18045  will output formulae as images, the very same images, in fact, that are
18046  used for instant preview.
18047 \begin_inset Foot
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 Instant preview does 
18052 \emph on
18053 not 
18054 \emph default
18055 have to be on for images to be output, however.
18056 \end_layout
18057
18058 \end_inset
18059
18060  The advantage to this method is that the images are simply generated by
18061  \SpecialChar LaTeX
18062 , so they are very accurate.
18063  The disadvantage, as mentioned earlier, is that these are bitmapped images,
18064  so they do not scale terribly well, and one cannot copy them, etc.
18065 \begin_inset Newline newline
18066 \end_inset
18067
18068 The size of the images can be controlled by setting the 
18069 \begin_inset Quotes eld
18070 \end_inset
18071
18072 Math Images Scaling
18073 \begin_inset Quotes erd
18074 \end_inset
18075
18076  parameter under 
18077 \begin_inset Flex Noun
18078 status collapsed
18079
18080 \begin_layout Plain Layout
18081 Document\SpecialChar menuseparator
18082 Settings\SpecialChar menuseparator
18083 Formats
18084 \end_layout
18085
18086 \end_inset
18087
18088 .
18089 \begin_inset Foot
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 For those who want to know, this controls the resolution of the image in
18094  dots per inch and is based upon a default of 75 dpi.
18095 \end_layout
18096
18097 \end_inset
18098
18099
18100 \begin_inset Newline newline
18101 \end_inset
18102
18103 If \SpecialChar LyX
18104  for some reason fails to create an image for a formula (e.g., if a required
18105  \SpecialChar LaTeX
18106  package is not installed), then it will fall back to outputing the raw
18107  \SpecialChar LaTeX
18108 .
18109 \end_layout
18110
18111 \begin_layout Itemize
18112 \SpecialChar LaTeX
18113
18114 \begin_inset Newline newline
18115 \end_inset
18116
18117 Finally, \SpecialChar LyX
18118  will happily output math as \SpecialChar LaTeX
18119 .
18120  As well as being the output of last resort, this method can be used with
18121  such tools as 
18122 \begin_inset CommandInset href
18123 LatexCommand href
18124 name "jsMath"
18125 target "http://www.math.union.edu/~dpvc/jsMath/"
18126 literal "false"
18127
18128 \end_inset
18129
18130 , which uses JavaScript to render \SpecialChar LaTeX
18131  embedded in HTML documents.
18132  \SpecialChar LyX
18133  wraps the \SpecialChar LaTeX
18134  in either a 
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 span
18140 \end_layout
18141
18142 \end_inset
18143
18144  (for inline formulas) or 
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 div
18150 \end_layout
18151
18152 \end_inset
18153
18154  (for displayed formulas) with 
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 class='math'
18160 \end_layout
18161
18162 \end_inset
18163
18164 , as is required for jsMath.
18165 \end_layout
18166
18167 \begin_layout Standard
18168 One of these output methods must be selected under 
18169 \begin_inset Flex Noun
18170 status collapsed
18171
18172 \begin_layout Plain Layout
18173 Document\SpecialChar menuseparator
18174 Settings\SpecialChar menuseparator
18175 Formats
18176 \end_layout
18177
18178 \end_inset
18179
18180 .
18181  By default, \SpecialChar LyX
18182  outputs MathML.
18183  This is a document-wide setting, therefore.
18184 \end_layout
18185
18186 \begin_layout Standard
18187 Eventually, \SpecialChar LyX
18188  will offer the user the option to select an alternate output
18189  method for a particular inset, say, one that isn't being rendered very
18190  well by MathML.
18191 \begin_inset Foot
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 That said, since \SpecialChar LyX
18196  falls back to images if the inset contains ERT, then one
18197  can force output as an image by putting some harmless ERT into the math,
18198  for example: 
18199 \begin_inset Formula $a=b\relax$
18200 \end_inset
18201
18202 .
18203 \end_layout
18204
18205 \end_inset
18206
18207
18208 \end_layout
18209
18210 \begin_layout Section
18211 Bibliography and Citations
18212 \end_layout
18213
18214 \begin_layout Standard
18215 XHTML output fully supports bibliographies and citations.
18216  
18217 \end_layout
18218
18219 \begin_layout Standard
18220 Citation labels are generated by the same machinery that generates \SpecialChar LyX
18221 's on-screen
18222  labels, so the labels will look in the output much as they do in \SpecialChar LyX
18223 , though
18224  better.
18225  If you are using numerical citations, then \SpecialChar LyX
18226  will output numerical labels,
18227  such as [1] or [17], rather than simply showing the citation key in square
18228  brackets, as it does on-screen.
18229  If you are using author-year citations, then \SpecialChar LyX
18230  will add lowercase letters
18231  to the years, just as Bib\SpecialChar TeX
18232  does, if it finds more than one citation for
18233  a given author-year combination.
18234  The labels will be printed with the bibliography entries.
18235  Note that there is, at present, no way to customize the appearance of the
18236  labels, for example, to choose between square brackets and parentheses.
18237 \end_layout
18238
18239 \begin_layout Standard
18240 Bibliography output is handled by the same machinery that handles the presentati
18241 on of reference information in the citation dialog, so you will see in the
18242  XHTML output pretty much what you would see if you were to look at a given
18243  entry in the citation dialog.
18244  The formatting can be customized in your layout file or, preferably, in
18245  a module.
18246  See the 
18247 \emph on
18248 Customization
18249 \emph default
18250  manual for the details.
18251 \end_layout
18252
18253 \begin_layout Standard
18254 The main defect at present is that cross-referenced information is printed
18255  with every entry with which it is associated.
18256  So you can see things like this:
18257 \end_layout
18258
18259 \begin_layout Quote
18260 Jason Stanley, 
18261 \begin_inset Quotes eld
18262 \end_inset
18263
18264 Context and Logical Form
18265 \begin_inset Quotes erd
18266 \end_inset
18267
18268 , in 
18269 \emph on
18270 Language in Context: Selected Essays
18271 \emph default
18272  (Oxford: Oxford University Press, 2007), pp.
18273  30–68.
18274 \end_layout
18275
18276 \begin_layout Quote
18277 Jason Stanley, 
18278 \begin_inset Quotes eld
18279 \end_inset
18280
18281 Semantics in Context
18282 \begin_inset Quotes erd
18283 \end_inset
18284
18285 , in 
18286 \emph on
18287 Language in Context: Selected Essays
18288 \emph default
18289  (Oxford: Oxford University Press, 2007), pp.
18290  201–30.
18291 \end_layout
18292
18293 \begin_layout Standard
18294 This should be fixed before long.
18295 \end_layout
18296
18297 \begin_layout Standard
18298 There is no support at present for sectioned bibliographies.
18299  If you have multiple bibliographies, then \SpecialChar LyX
18300  will print the same bibliography
18301  over and over.
18302 \end_layout
18303
18304 \begin_layout Section
18305 Indexes
18306 \end_layout
18307
18308 \begin_layout Standard
18309 \SpecialChar LyX
18310  will happily export indexes as XHTML, but with certain limitations at the
18311  moment.
18312 \end_layout
18313
18314 \begin_layout Standard
18315 Index export will be most reliable when you do not attempt to use the fancy
18316  constructs that are described in the section on indexes in the 
18317 \emph on
18318 User's Guide
18319 \emph default
18320 .
18321 \begin_inset Foot
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 The main issue here is that \SpecialChar LyX
18326  itself does not really handle these.
18327  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
18328 .
18329 \end_layout
18330
18331 \end_inset
18332
18333  We'll describe how they are handled using the subsection headings from
18334  that section.
18335 \end_layout
18336
18337 \begin_layout Itemize
18338 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
18339  makes an effort to support these,
18340  but the entries must be separated by 
18341 \begin_inset Quotes eld
18342 \end_inset
18343
18344  ! 
18345 \begin_inset Quotes erd
18346 \end_inset
18347
18348 , that is, there must be spaces around the exclamation point.
18349  This is because it is otherwise too difficult to check for escaped exclamation
18350  points, ones in math, and so forth.
18351 \end_layout
18352
18353 \begin_layout Itemize
18354 Page Ranges: There is no support at all for page ranges, since these make
18355  no sense with XHMTL.
18356  Instead, you will just get two index entries, one at either end.
18357 \end_layout
18358
18359 \begin_layout Itemize
18360 Cross-referencing: There is no support for cross-referencing.
18361  If \SpecialChar LyX
18362  finds an entry containing the 
18363 \begin_inset Quotes eld
18364 \end_inset
18365
18366 |see\SpecialChar ldots
18367
18368 \begin_inset Quotes erd
18369 \end_inset
18370
18371  construct, it is just dropped, and the rest is treated as an ordinary index
18372  entry.
18373 \end_layout
18374
18375 \begin_layout Itemize
18376 Index Entry Order: \SpecialChar LyX
18377  does support attempts to fix the sorting order.
18378  It will take what is before the first `@' it finds and use that for sorting,
18379  taking what follows the first `@' to be the actual entry.
18380  At present, \SpecialChar LyX
18381  does not check for escaped `@', so do not try to index email
18382  addresses.
18383 \end_layout
18384
18385 \begin_layout Itemize
18386 Index Entry Layout: You can format entries by using the text style dialog,
18387  or by using any other method available within \SpecialChar LyX
18388  itself.
18389  There is no support for constructs like: 
18390 \begin_inset Quotes eld
18391 \end_inset
18392
18393 entry|textbf
18394 \begin_inset Quotes erd
18395 \end_inset
18396
18397 .
18398  Indeed, if \SpecialChar LyX
18399  finds a pipe symbol, `|', in an entry, it will delete it and
18400  everything that follows it.
18401 \end_layout
18402
18403 \begin_layout Itemize
18404 Multiple Indexes: There is no support for multiple indexes.
18405  Rather, all index entries will be printed as one large index.
18406  To avoid our printing several versions of the index, we print only the
18407  main index, so make sure you have one.
18408 \end_layout
18409
18410 \begin_layout Section
18411 Nomenclature and Glossary
18412 \end_layout
18413
18414 \begin_layout Standard
18415 There is at present no support for glossaries.
18416  Adding it would be fairly trivial, and welcome.
18417 \end_layout
18418
18419 \begin_layout Chapter
18420
18421 \change_inserted 1075283030 1616534180
18422 DocBook Output
18423 \end_layout
18424
18425 \begin_layout Standard
18426
18427 \change_inserted 1075283030 1616534386
18428 Apart from HTML, \SpecialChar LyX
18429  can generate documents in the DocBook XML vocabulary.
18430  With versions 2.3 and before, only select templates could be used to generate
18431  DocBook documents (only version 4).
18432  Starting with \SpecialChar LyX
18433  2.4, most \SpecialChar LyX
18434  layouts can generate valid DocBook documents (only
18435  version 5).
18436  This feature is built into \SpecialChar LyX
18437  and does not require the use of external tools.
18438 \end_layout
18439
18440 \begin_layout Standard
18441
18442 \change_inserted 1075283030 1616534437
18443 The result is that the DocBook output can be customized and extended in
18444  exactly the same way \SpecialChar LaTeX
18445  output can be customized and extended: through layout
18446  files and modules.
18447  See chapter five of the 
18448 \emph on
18449 Customization 
18450 \emph default
18451 manual for the details.
18452 \end_layout
18453
18454 \begin_layout Standard
18455
18456 \change_inserted 1075283030 1616534475
18457 Most \SpecialChar LyX
18458  features are supported with DocBook, like math output.
18459 \end_layout
18460
18461 \begin_layout Itemize
18462
18463 \change_inserted 1075283030 1616534741
18464 Math output is performed mostly in MathML (the major exception being constructio
18465 ns not supported by \SpecialChar LyX
18466 , i.e.
18467  ERTs).
18468  All formulae are also available in raw \SpecialChar TeX
18469  in the DocBook output for further
18470  processing.
18471 \end_layout
18472
18473 \begin_layout Itemize
18474
18475 \change_inserted 1075283030 1616534852
18476 Bibliographies and citations are implemented, including with an external
18477  BibTeX file.
18478  Bibliography entries are not prerendered when the detailed information
18479  are available, but rather output with the standard DocBook constructs.
18480  The external DocBook processor is expected to handle the rendering of entries.
18481 \end_layout
18482
18483 \begin_layout Itemize
18484
18485 \change_inserted 1075283030 1616534863
18486 Indexes are supported, including multiple indices.
18487  Grouping (with 
18488 \family typewriter
18489 !
18490 \family default
18491 ), page ranges, and cross-references (
18492 \family typewriter
18493 |see
18494 \family default
18495 ) are supported, with the exception of the same symbols escaped.
18496  Entry order (
18497 \family typewriter
18498 @
18499 \family default
18500 ) and layout (
18501 \family typewriter
18502 |mathbf
18503 \family default
18504 ) are not supported.
18505  There is no support for escaping of index entries.
18506 \end_layout
18507
18508 \begin_layout Itemize
18509
18510 \change_inserted 1075283030 1616534884
18511 Glossaries are implemented.
18512 \end_layout
18513
18514 \begin_layout Standard
18515
18516 \change_inserted 1075283030 1616534894
18517 Two major parameters can be set at the document level.
18518 \end_layout
18519
18520 \begin_layout Itemize
18521
18522 \change_inserted 1075283030 1616534948
18523 Format for tables: \SpecialChar LyX
18524  can generate tables either as HTML (default value) or
18525  CALS, depending on the user's requirements.
18526  Most DocBook processors accept both formats.
18527 \end_layout
18528
18529 \begin_layout Itemize
18530
18531 \change_inserted 1075283030 1616535006
18532 MathML prefix: in DocBook, MathML is included within its own name space,
18533  unlike HTML.
18534  The implication is that there must be an indication of the tags belonging
18535  to the MathML standard.
18536  Three choices are offered: 
18537 \end_layout
18538
18539 \begin_deeper
18540 \begin_layout Itemize
18541
18542 \change_inserted 1075283030 1616535044
18543 Inline: the MathML name space is defined for each formula (using the 
18544 \family typewriter
18545 xmlns
18546 \family default
18547  attribute on each formula)
18548 \end_layout
18549
18550 \begin_layout Itemize
18551
18552 \change_inserted 1075283030 1616535090
18553 With the 
18554 \family typewriter
18555 m
18556 \family default
18557  prefix (default): the MathML name space is defined at the document level
18558  (using the 
18559 \family typewriter
18560 xmlns:m
18561 \family default
18562  attribute on the root element).
18563  Each MathML is prefixed with 
18564 \family typewriter
18565 m
18566 \family default
18567 : for instance, 
18568 \family typewriter
18569 m:math
18570 \end_layout
18571
18572 \begin_layout Itemize
18573
18574 \change_inserted 1075283030 1616620405
18575 With the 
18576 \family typewriter
18577 mml
18578 \family default
18579  prefix: similar to the 
18580 \family typewriter
18581 m
18582 \family default
18583  option, but with 
18584 \family typewriter
18585 mml
18586 \end_layout
18587
18588 \begin_layout Standard
18589
18590 \change_inserted 1075283030 1616620470
18591 This option is especially useful if you want \SpecialChar LyX
18592  to match your personal style
18593  or to work with buggy software that only accepts one prefix for MathML.
18594 \change_unchanged
18595
18596 \end_layout
18597
18598 \end_deeper
18599 \begin_layout Chapter
18600 The \SpecialChar LyX
18601  Server
18602 \end_layout
18603
18604 \begin_layout Section
18605 Introduction
18606 \end_layout
18607
18608 \begin_layout Standard
18609 The `\SpecialChar LyX
18610  server' allows other programs to talk to \SpecialChar LyX
18611 , invoke \SpecialChar LyX
18612  commands, and retrieve
18613  information about the \SpecialChar LyX
18614  internal state.
18615  This is only intended for advanced users, but they should find it useful.
18616  It is by writing to the \SpecialChar LyX
18617  server, for example, that bibliography managers,
18618  such as JabRef, are able to 
18619 \begin_inset Quotes eld
18620 \end_inset
18621
18622 push
18623 \begin_inset Quotes erd
18624 \end_inset
18625
18626  citations to \SpecialChar LyX
18627 .
18628 \end_layout
18629
18630 \begin_layout Section
18631 Starting the \SpecialChar LyX
18632  Server
18633 \begin_inset CommandInset label
18634 LatexCommand label
18635 name "sec:Starting-the-Server"
18636
18637 \end_inset
18638
18639
18640 \end_layout
18641
18642 \begin_layout Standard
18643 The \SpecialChar LyX
18644  server works through the use of a pair of named pipes.
18645  These are usually located in 
18646 \begin_inset Flex Code
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650 UserDir
18651 \end_layout
18652
18653 \end_inset
18654
18655 , (except on Windows, where 
18656 \emph on
18657 local
18658 \emph default
18659  named pipes are special objects located in 
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664
18665 \backslash
18666
18667 \backslash
18668 .
18669 \backslash
18670 pipe
18671 \end_layout
18672
18673 \end_inset
18674
18675 ) and have the names 
18676 \begin_inset Quotes eld
18677 \end_inset
18678
18679
18680 \begin_inset Flex Code
18681 status collapsed
18682
18683 \begin_layout Plain Layout
18684 lyxpipe.in
18685 \end_layout
18686
18687 \end_inset
18688
18689
18690 \begin_inset Quotes erd
18691 \end_inset
18692
18693  and 
18694 \begin_inset Quotes eld
18695 \end_inset
18696
18697
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 lyxpipe.out
18703 \end_layout
18704
18705 \end_inset
18706
18707
18708 \begin_inset Quotes erd
18709 \end_inset
18710
18711 .
18712  External programs write into 
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717 lyxpipe.in
18718 \end_layout
18719
18720 \end_inset
18721
18722  and read back data from 
18723 \begin_inset Flex Code
18724 status collapsed
18725
18726 \begin_layout Plain Layout
18727 lyxpipe.out
18728 \end_layout
18729
18730 \end_inset
18731
18732 .
18733  The stem of the pipe names can be defined in the 
18734 \begin_inset Flex Noun
18735 status collapsed
18736
18737 \begin_layout Plain Layout
18738 Tools\SpecialChar menuseparator
18739 Preferences
18740 \end_layout
18741
18742 \end_inset
18743
18744  dialog, for example 
18745 \begin_inset Flex Code
18746 status collapsed
18747
18748 \begin_layout Plain Layout
18749 "/home/myhome/lyxpipe"
18750 \end_layout
18751
18752 \end_inset
18753
18754 , or 
18755 \begin_inset Flex Code
18756 status collapsed
18757
18758 \begin_layout Plain Layout
18759 "
18760 \backslash
18761
18762 \backslash
18763 .
18764 \backslash
18765 pipe
18766 \backslash
18767 lyxpipe"
18768 \end_layout
18769
18770 \end_inset
18771
18772  on Windows (where any working path instead of lyxpipe can be used, for
18773  example 
18774 \begin_inset Flex Code
18775 status collapsed
18776
18777 \begin_layout Plain Layout
18778 "
18779 \backslash
18780
18781 \backslash
18782 .
18783 \backslash
18784 pipe
18785 \backslash
18786 my
18787 \backslash
18788 lyx
18789 \backslash
18790 pipe"
18791 \end_layout
18792
18793 \end_inset
18794
18795  would also work).
18796  You 
18797 \emph on
18798 must
18799 \emph default
18800  configure this manually in order for the server to start.
18801 \end_layout
18802
18803 \begin_layout Standard
18804 \SpecialChar LyX
18805  will add the '
18806 \begin_inset Flex Code
18807 status collapsed
18808
18809 \begin_layout Plain Layout
18810 .in
18811 \end_layout
18812
18813 \end_inset
18814
18815 ' and '
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 .out
18821 \end_layout
18822
18823 \end_inset
18824
18825 ' to create the pipes.
18826  If one of the pipes already exists, \SpecialChar LyX
18827  will assume that another \SpecialChar LyX
18828  process
18829  is already running and will not start the server.
18830  On POSIX (Unix like) systems, if for some other reason, an unused 
18831 \begin_inset Quotes eld
18832 \end_inset
18833
18834 stale
18835 \begin_inset Quotes erd
18836 \end_inset
18837
18838  pipe is left in existence when \SpecialChar LyX
18839  closes, then \SpecialChar LyX
18840  will try to delete it.
18841  If this fails for some reason, you will need to delete the pipes manually
18842  and then restart \SpecialChar LyX
18843 .
18844  On Windows, pipes are deleted by the OS on program termination or crash,
18845  so 
18846 \begin_inset Quotes eld
18847 \end_inset
18848
18849 stale
18850 \begin_inset Quotes erd
18851 \end_inset
18852
18853  pipes should not be possible.
18854 \end_layout
18855
18856 \begin_layout Standard
18857 To have several \SpecialChar LyX
18858  processes with servers at the same time, you have to use
18859  different configurations, perhaps by using separate user directories, each
18860  with its own 
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 preferences
18866 \end_layout
18867
18868 \end_inset
18869
18870  file, for each process.
18871 \end_layout
18872
18873 \begin_layout Standard
18874 If you are developing a client program, you might find it useful to enable
18875  debugging information from the \SpecialChar LyX
18876  server.
18877  Do this by starting \SpecialChar LyX
18878  as 
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 lyx -dbg lyxserver
18884 \end_layout
18885
18886 \end_inset
18887
18888 .
18889 \end_layout
18890
18891 \begin_layout Standard
18892 You can find a complete example client written in C++ in the source distribution
18893  as 
18894 \begin_inset Flex Code
18895 status collapsed
18896
18897 \begin_layout Plain Layout
18898 development/lyxserver/server_monitor.cpp
18899 \end_layout
18900
18901 \end_inset
18902
18903 .
18904 \end_layout
18905
18906 \begin_layout Standard
18907 Another useful tool is the command-line based client found in 
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912 src/client/lyxclient
18913 \end_layout
18914
18915 \end_inset
18916
18917 .
18918 \end_layout
18919
18920 \begin_layout Section
18921 Normal communication
18922 \end_layout
18923
18924 \begin_layout Standard
18925 To issue a \SpecialChar LyX
18926  call, the client writes a line of ASCII text into the input
18927  pipe.
18928  This line has the following format:
18929 \end_layout
18930
18931 \begin_layout Quote
18932 LYXCMD:
18933 \emph on
18934 clientname
18935 \emph default
18936 :
18937 \emph on
18938 function
18939 \emph default
18940 :
18941 \emph on
18942 argument
18943 \end_layout
18944
18945 \begin_layout Description
18946 clientname is a name that the client can choose arbitrarily.
18947  Its only use is that \SpecialChar LyX
18948  will echo it if it sends an answer—so a client can
18949  dispatch results from different requesters.
18950 \end_layout
18951
18952 \begin_layout Description
18953 function is the function you want \SpecialChar LyX
18954  to perform.
18955  It is the same as the commands you'd use in the minibuffer.
18956 \end_layout
18957
18958 \begin_layout Description
18959 argument is an optional argument which is meaningful only to some functions
18960  (for instance, the 
18961 \begin_inset Quotes eld
18962 \end_inset
18963
18964 self-insert
18965 \begin_inset Quotes erd
18966 \end_inset
18967
18968  LFUN will insert the argument as text at the cursor position).
18969 \end_layout
18970
18971 \begin_layout Standard
18972 The answer from \SpecialChar LyX
18973  will arrive in the output pipe and be of the form
18974 \end_layout
18975
18976 \begin_layout Quote
18977 INFO:
18978 \emph on
18979 clientname
18980 \emph default
18981 :
18982 \emph on
18983 function
18984 \emph default
18985 :
18986 \emph on
18987 data
18988 \end_layout
18989
18990 \begin_layout Standard
18991 where 
18992 \emph on
18993 clientname
18994 \emph default
18995  and 
18996 \emph on
18997 function
18998 \emph default
18999  are just echoed from the command request, while 
19000 \emph on
19001 data
19002 \emph default
19003  is more or less useful information filled according to how the command
19004  execution worked out.
19005  Some commands, such as 
19006 \begin_inset Quotes eld
19007 \end_inset
19008
19009 font-state
19010 \begin_inset Quotes erd
19011 \end_inset
19012
19013 , will return information about the internal state of \SpecialChar LyX
19014 , while other will
19015  return an empty data-response.
19016  This means that the command execution went fine.
19017 \end_layout
19018
19019 \begin_layout Standard
19020 In case of errors, the response from \SpecialChar LyX
19021  will have this form
19022 \end_layout
19023
19024 \begin_layout Quote
19025 ERROR:
19026 \emph on
19027 clientname
19028 \emph default
19029 :
19030 \emph on
19031 function
19032 \emph default
19033 :
19034 \emph on
19035 error message
19036 \end_layout
19037
19038 \begin_layout Standard
19039 where the 
19040 \emph on
19041 error message
19042 \emph default
19043  should contain an explanation of why the command failed.
19044 \end_layout
19045
19046 \begin_layout Standard
19047 Examples:
19048 \end_layout
19049
19050 \begin_layout LyX-Code
19051 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
19052 \begin_inset Newline newline
19053 \end_inset
19054
19055 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
19056 \begin_inset Newline newline
19057 \end_inset
19058
19059 read a <~/.lyxpipe.out
19060 \begin_inset Newline newline
19061 \end_inset
19062
19063 echo $a
19064 \end_layout
19065
19066 \begin_layout Subsection
19067 AppleScript (Mac OS X)
19068 \end_layout
19069
19070 \begin_layout Standard
19071 Since \SpecialChar LyX
19072  2.1, \SpecialChar LyX
19073  supports basic interactions with AppleScript for normal communicatio
19074 n through the command run.
19075  This command takes a direct argument (the 
19076 \series bold
19077 function
19078 \series default
19079  to perform) and an optional argument.
19080  It either returns the output of the function or triggers an error with
19081  the error message and code.
19082 \end_layout
19083
19084 \begin_layout Standard
19085 Example:
19086 \end_layout
19087
19088 \begin_layout LyX-Code
19089 tell application "\SpecialChar LyX
19090 "
19091 \end_layout
19092
19093 \begin_layout LyX-Code
19094   try
19095 \end_layout
19096
19097 \begin_layout LyX-Code
19098     -- Stores the current file name into f
19099 \end_layout
19100
19101 \begin_layout LyX-Code
19102     set f to (run "server-get-filename" with argument "")
19103 \end_layout
19104
19105 \begin_layout LyX-Code
19106     on error the error_message number the error_number
19107 \end_layout
19108
19109 \begin_layout LyX-Code
19110       display dialog "Error: " & the error_number & ".
19111  " ¬
19112 \end_layout
19113
19114 \begin_layout LyX-Code
19115               & the error_message buttons {"OK"} default button 1
19116 \end_layout
19117
19118 \begin_layout LyX-Code
19119   end try
19120 \end_layout
19121
19122 \begin_layout LyX-Code
19123 end tell
19124 \end_layout
19125
19126 \begin_layout Section
19127 Notification
19128 \end_layout
19129
19130 \begin_layout Standard
19131 \SpecialChar LyX
19132  can notify clients of events going on asynchronously.
19133  Currently it will only do this if the user binds a key sequence with the
19134  function 
19135 \begin_inset Quotes eld
19136 \end_inset
19137
19138 notify
19139 \begin_inset Quotes erd
19140 \end_inset
19141
19142 .
19143  The format of the string \SpecialChar LyX
19144  sends is as follows:
19145 \end_layout
19146
19147 \begin_layout Quote
19148 \begin_inset Flex Code
19149 status collapsed
19150
19151 \begin_layout Plain Layout
19152 NOTIFY:
19153 \end_layout
19154
19155 \end_inset
19156
19157
19158 \emph on
19159 key-sequence
19160 \end_layout
19161
19162 \begin_layout Standard
19163 where 
19164 \emph on
19165 key-sequence
19166 \emph default
19167  is the printed representation of the key sequence that was actually typed
19168  by the user.
19169 \end_layout
19170
19171 \begin_layout Standard
19172 This mechanism can be used to extend \SpecialChar LyX
19173 's command set and implement macros.
19174  Bind some key sequence to 
19175 \begin_inset Quotes eld
19176 \end_inset
19177
19178 notify
19179 \begin_inset Quotes erd
19180 \end_inset
19181
19182 .
19183  Then start a client that listens on the output pipe, dispatches the command
19184  according to the sequence, and starts a function that may use \SpecialChar LyX
19185  calls and
19186  \SpecialChar LyX
19187  requests to issue a command or a series of commands to \SpecialChar LyX
19188 .
19189 \end_layout
19190
19191 \begin_layout Section
19192 The simple \SpecialChar LyX
19193  Server Protocol
19194 \end_layout
19195
19196 \begin_layout Standard
19197 \SpecialChar LyX
19198  implements a simple protocol that can be used for session management.
19199  All messages are of the form
19200 \end_layout
19201
19202 \begin_layout Quote
19203 LYXSRV:
19204 \emph on
19205 clientname
19206 \emph default
19207 :
19208 \emph on
19209 protocol message
19210 \end_layout
19211
19212 \begin_layout Standard
19213 where 
19214 \emph on
19215 protocol message
19216 \emph default
19217  can be 
19218 \begin_inset Quotes eld
19219 \end_inset
19220
19221 hello
19222 \begin_inset Quotes erd
19223 \end_inset
19224
19225  or 
19226 \begin_inset Quotes eld
19227 \end_inset
19228
19229 bye
19230 \begin_inset Quotes erd
19231 \end_inset
19232
19233 .
19234  If 
19235 \begin_inset Quotes eld
19236 \end_inset
19237
19238 hello
19239 \begin_inset Quotes erd
19240 \end_inset
19241
19242  is received from a client, \SpecialChar LyX
19243  will report back to inform the client that
19244  it's listening to it's messages, while 
19245 \begin_inset Quotes eld
19246 \end_inset
19247
19248 bye
19249 \begin_inset Quotes erd
19250 \end_inset
19251
19252  sent from \SpecialChar LyX
19253  will inform clients that \SpecialChar LyX
19254  is closing.
19255 \end_layout
19256
19257 \begin_layout Section
19258 Reverse DVI/PDF search
19259 \end_layout
19260
19261 \begin_layout Standard
19262 Some DVI/PDF viewers
19263 \begin_inset Foot
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
19268  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
19269 \end_layout
19270
19271 \end_inset
19272
19273  provide 
19274 \emph on
19275 reverse search
19276 \emph default
19277  facility (also called 
19278 \emph on
19279 inverse search
19280 \emph default
19281 ).
19282  This means that you can tell \SpecialChar LyX
19283  to put the cursor to a specific line in the
19284  document by clicking at the respective position in the DVI/PDF output.
19285  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
19286 .
19287  This is done via the \SpecialChar LyX
19288  server either by using the named pipe (
19289 \emph on
19290 lyxpipe
19291 \emph default
19292 ), or the UNIX domain socket (
19293 \emph on
19294 lyxsocket
19295 \emph default
19296 ) that \SpecialChar LyX
19297  creates in its temporary directory (this is the way the 
19298 \begin_inset Flex Code
19299 status collapsed
19300
19301 \begin_layout Plain Layout
19302 lyxclient
19303 \end_layout
19304
19305 \end_inset
19306
19307  program communicates with \SpecialChar LyX
19308 ).
19309  In some cases, you need a helper script that mediates between the viewer
19310  and \SpecialChar LyX
19311 , in others, the viewer can communicate with \SpecialChar LyX
19312  directly.
19313  This depends on the selected viewer and on your operating system.
19314  The same applies to the way viewers need to be configured and the way the
19315  reverse search is actually performed.
19316  In what follows, we will thus describe how to setup reverse search for
19317  specific viewers.
19318  Before we turn to this, though, we will explain what needs to be done generally
19319  to enable reverse search in the DVI/PDF output.
19320 \end_layout
19321
19322 \begin_layout Subsection
19323 Automatic setup
19324 \begin_inset CommandInset label
19325 LatexCommand label
19326 name "subsec:rev-search"
19327
19328 \end_inset
19329
19330
19331 \end_layout
19332
19333 \begin_layout Standard
19334 In most cases \SpecialChar LyX
19335  will do the work for you by pressing the following button
19336  in the toolbar: 
19337 \begin_inset Info
19338 type  "icon"
19339 arg   "buffer-toggle-output-sync"
19340 \end_inset
19341
19342 .
19343  Alternatively, you can also enable the feature by checking 
19344 \family sans
19345 Synchronize with Output
19346 \family default
19347  in 
19348 \begin_inset Flex Noun
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352 Document\SpecialChar menuseparator
19353 Settings\SpecialChar menuseparator
19354 Formats
19355 \end_layout
19356
19357 \end_inset
19358
19359 .
19360  In such a case \SpecialChar LyX
19361  will automatically insert the necessary Sync\SpecialChar TeX
19362  macro (for
19363  PDF) or load the srcltx package (for DVI) respectively.
19364  This option can be easily reached also on 
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 View/Update
19370 \end_layout
19371
19372 \end_inset
19373
19374  Toolbar.
19375 \end_layout
19376
19377 \begin_layout Standard
19378 If you need a different setting, you can select or input a custom macro
19379  from the drop down box just below 
19380 \begin_inset Flex Noun
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 Document\SpecialChar menuseparator
19385 Settings\SpecialChar menuseparator
19386 Output\SpecialChar menuseparator
19387 Synchronize with Output
19388 \end_layout
19389
19390 \end_inset
19391
19392 .
19393 \end_layout
19394
19395 \begin_layout Standard
19396 Note that the method 
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401
19402 \backslash
19403 synctex=1
19404 \end_layout
19405
19406 \end_inset
19407
19408  enables gzip compression.
19409  If your viewer does not support it, you should instead use 
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414
19415 \backslash
19416 synctex=-1
19417 \end_layout
19418
19419 \end_inset
19420
19421 .
19422 \end_layout
19423
19424 \begin_layout Standard
19425 Please also note that including the 
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 srcltx
19431 \end_layout
19432
19433 \end_inset
19434
19435  package or 
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440 src-specials
19441 \end_layout
19442
19443 \end_inset
19444
19445  sometimes has an undesired impact on the typesetting.
19446  Thus, you should switch output synchronization off for the final typesetting
19447  if you use the 
19448 \begin_inset Flex Code
19449 status collapsed
19450
19451 \begin_layout Plain Layout
19452 srcltx
19453 \end_layout
19454
19455 \end_inset
19456
19457  package or 
19458 \begin_inset Flex Code
19459 status collapsed
19460
19461 \begin_layout Plain Layout
19462 src-specials
19463 \end_layout
19464
19465 \end_inset
19466
19467 .
19468  
19469 \end_layout
19470
19471 \begin_layout Standard
19472 In case you need some more special settings that are not covered by the
19473  automatic settings, read the next section about how to set up output synchroniz
19474 ation manually.
19475  If the automatic setup suits your needs, you can readily jump to section
19476 \begin_inset space ~
19477 \end_inset
19478
19479
19480 \begin_inset CommandInset ref
19481 LatexCommand ref
19482 reference "subsec:configuring-viewers"
19483
19484 \end_inset
19485
19486 , where the necessary configuration steps in your viewer – needed both with
19487  the automatic and the manual setup – are described.
19488 \end_layout
19489
19490 \begin_layout Subsection
19491 Manual setup
19492 \end_layout
19493
19494 \begin_layout Standard
19495 \SpecialChar LaTeX
19496  provides several different methods for reverse search.
19497  Some are built-in in the 
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 latex/pdflatex
19503 \end_layout
19504
19505 \end_inset
19506
19507  program, some are provided by external packages.
19508  Your choice depends on whether your \SpecialChar LaTeX
19509  distribution already provides a given
19510  method (the built-in methods are rather new) and whether your viewer can
19511  cope with it.
19512  The available methods are described in the following.
19513 \end_layout
19514
19515 \begin_layout Subsubsection*
19516 Built-in DVI-search via src-specials (DVI only) 
19517 \end_layout
19518
19519 \begin_layout Standard
19520 This method provides the DVI file with the necessary information for reverse
19521  search.
19522  It is available in \SpecialChar LaTeX
19523  since quite some time (any somewhat recent \SpecialChar LaTeX
19524  distribution
19525  should include it), and it works reliably.
19526  To enable it, change the 
19527 \begin_inset Flex Noun
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 La
19532 \family sans
19533 TeX
19534 \family default
19535  (plain)->DVI
19536 \end_layout
19537
19538 \end_inset
19539
19540  or 
19541 \begin_inset Flex Noun
19542 status collapsed
19543
19544 \begin_layout Plain Layout
19545 La
19546 \family sans
19547 TeX
19548 \family default
19549  (plain)->DraftDVI
19550 \end_layout
19551
19552 \end_inset
19553
19554  converter in 
19555 \begin_inset Flex Noun
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 Preferences\SpecialChar menuseparator
19560 File Handling\SpecialChar menuseparator
19561 Converters
19562 \end_layout
19563
19564 \end_inset
19565
19566  to 
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 latex -src-specials $$i
19572 \end_layout
19573
19574 \end_inset
19575
19576 .
19577  If this doesn't work, check if your \SpecialChar TeX
19578  engine needs different options (the
19579  syntax might differ in some distributions).
19580 \end_layout
19581
19582 \begin_layout Subsubsection*
19583 External Packages (PDFSync and scrltx) 
19584 \end_layout
19585
19586 \begin_layout Standard
19587 The packages 
19588 \emph on
19589 pdfsync
19590 \emph default
19591  and 
19592 \emph on
19593 scrltx
19594 \emph default
19595  provide reverse search facility for PDF output (via pdflatex) and DVI output,
19596  respectively.
19597  In order to enable it, load the packages in the \SpecialChar LyX
19598  preamble: 
19599 \end_layout
19600
19601 \begin_layout Itemize
19602 \begin_inset Flex Code
19603 status collapsed
19604
19605 \begin_layout Plain Layout
19606
19607 \backslash
19608 usepackage{pdfsync}
19609 \end_layout
19610
19611 \end_inset
19612
19613  for reverse PDF search,
19614 \end_layout
19615
19616 \begin_layout Itemize
19617 \begin_inset Flex Code
19618 status collapsed
19619
19620 \begin_layout Plain Layout
19621
19622 \backslash
19623 usepackage[active]{srcltx}
19624 \end_layout
19625
19626 \end_inset
19627
19628  for reverse DVI search.
19629 \end_layout
19630
19631 \begin_layout Standard
19632 If you want to be able to perform both DVI and PDF reverse searches, you
19633  can also insert in the preamble the following lines
19634 \end_layout
19635
19636 \begin_layout LyX-Code
19637
19638 \backslash
19639 usepackage{ifpdf}
19640 \begin_inset Newline newline
19641 \end_inset
19642
19643
19644 \backslash
19645 ifpdf
19646 \begin_inset Newline newline
19647 \end_inset
19648
19649   
19650 \backslash
19651 usepackage{pdfsync}
19652 \begin_inset Newline newline
19653 \end_inset
19654
19655
19656 \backslash
19657 else
19658 \begin_inset Newline newline
19659 \end_inset
19660
19661   
19662 \backslash
19663 usepackage[active]{srcltx}
19664 \begin_inset Newline newline
19665 \end_inset
19666
19667
19668 \backslash
19669 fi
19670 \end_layout
19671
19672 \begin_layout Standard
19673 This way, you can preview the file as either DVI or PDF (pdflatex) and the
19674  right package will be used.
19675 \end_layout
19676
19677 \begin_layout Standard
19678 Note that PDFSync might affect the output layout of your document.
19679  It is therefore advised to disable PDFsync for final documents.
19680 \end_layout
19681
19682 \begin_layout Subsubsection*
19683 Built-in reverse search via Sync\SpecialChar TeX
19684  (DVI and PDF) 
19685 \end_layout
19686
19687 \begin_layout Standard
19688 Recent versions of 
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 (pdf)latex
19694 \end_layout
19695
19696 \end_inset
19697
19698  have built-in support for both PDF and DVI reverse search.
19699  This so-called 
19700 \emph on
19701 Sync\SpecialChar TeX
19702
19703 \emph default
19704  facility is basically the result of the integration of the PDFSync package
19705  to the pdftex program and its merge with the 
19706 \emph on
19707 scr-specials
19708 \emph default
19709  approach.
19710  You need at least \SpecialChar TeX
19711 Live 2008 or a recent Mik\SpecialChar TeX
19712  distribution in order to use
19713  it.
19714 \begin_inset Foot
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 For some reason, Mik\SpecialChar TeX
19719  does not understand/obey the command \SpecialChar LyX
19720  inserts into
19721  the preamble when you check the "Enable Forward/Reverse Search" button
19722  in the toolbar and does not generate the necessary info.
19723 \end_layout
19724
19725 \begin_layout Plain Layout
19726 The generation of the required info can be forced by changing the converter
19727  "\SpecialChar LaTeX
19728  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
19729  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
19730  the -synctex=1 switch).
19731 \end_layout
19732
19733 \end_inset
19734
19735  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
19736  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
19737  already provide Sync\SpecialChar TeX
19738  support.
19739 \end_layout
19740
19741 \begin_layout Standard
19742 To enable Sync\SpecialChar TeX
19743  for DVI output, change the 
19744 \begin_inset Flex Noun
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 La
19749 \family sans
19750 TeX
19751 \family default
19752  (plain) -> DVI
19753 \end_layout
19754
19755 \end_inset
19756
19757  or 
19758 \begin_inset Flex Noun
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 La
19763 \family sans
19764 TeX
19765 \family default
19766  (plain) -> DraftDVI
19767 \end_layout
19768
19769 \end_inset
19770
19771  converter in 
19772 \begin_inset Flex Noun
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 Preferences\SpecialChar menuseparator
19777 File Handling\SpecialChar menuseparator
19778 Converters
19779 \end_layout
19780
19781 \end_inset
19782
19783  to 
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 latex -synctex=1 $$i
19789 \end_layout
19790
19791 \end_inset
19792
19793 , and for PDF output, change the 
19794 \begin_inset Flex Noun
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 La
19799 \family sans
19800 TeX
19801 \family default
19802  (pdflatex) -> PDF (pdflatex)
19803 \end_layout
19804
19805 \end_inset
19806
19807  converter to 
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 pdflatex -synctex=1 $$i
19813 \end_layout
19814
19815 \end_inset
19816
19817 .
19818  Should your viewer not be considered in the following description, or in
19819  case of missing success, please check the documentation of your viewer
19820  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
19821 .
19822 \begin_inset Foot
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826 Note that the option 
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 -synctex=1
19832 \end_layout
19833
19834 \end_inset
19835
19836  option enables gzip compression.
19837  If your viewer does not support it, you should instead use 
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 -synctex=-1
19843 \end_layout
19844
19845 \end_inset
19846
19847 .
19848 \end_layout
19849
19850 \end_inset
19851
19852
19853 \end_layout
19854
19855 \begin_layout Subsection
19856 Configuring and using specific viewers
19857 \begin_inset CommandInset label
19858 LatexCommand label
19859 name "subsec:configuring-viewers"
19860
19861 \end_inset
19862
19863
19864 \end_layout
19865
19866 \begin_layout Subsubsection*
19867 Xdvi (all platforms)
19868 \end_layout
19869
19870 \begin_layout Standard
19871 If you use 
19872 \begin_inset Flex Code
19873 status collapsed
19874
19875 \begin_layout Plain Layout
19876 xdvi
19877 \end_layout
19878
19879 \end_inset
19880
19881 , you don't need to do anything else for performing a reverse DVI search,
19882  as \SpecialChar LyX
19883  already provides the necessary hooks for automatically using the 
19884 \begin_inset Flex Code
19885 status collapsed
19886
19887 \begin_layout Plain Layout
19888 lyxclient
19889 \end_layout
19890
19891 \end_inset
19892
19893  program.
19894  Just setup your document as described above (reverse search is triggered
19895  by Ctrl-click or Alt-click on Mac OSX, respectively).
19896 \end_layout
19897
19898 \begin_layout Standard
19899 However, if for whatever reason you want to use the named pipe instead of
19900  the socket for communicating with \SpecialChar LyX
19901 , simply change the DVI viewer in 
19902 \begin_inset Flex Noun
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 Preferences\SpecialChar menuseparator
19907 File Handling\SpecialChar menuseparator
19908 File formats
19909 \end_layout
19910
19911 \end_inset
19912
19913  to
19914 \begin_inset Foot
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 On Mac OSX you have to use 
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
19924 \end_layout
19925
19926 \end_inset
19927
19928
19929 \end_layout
19930
19931 \end_inset
19932
19933  
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 xdvi -editor "lyxeditor.sh %f %l"
19939 \end_layout
19940
19941 \end_inset
19942
19943 , where 
19944 \begin_inset Flex Code
19945 status collapsed
19946
19947 \begin_layout Plain Layout
19948 lyxeditor.sh
19949 \end_layout
19950
19951 \end_inset
19952
19953  is a suitable script.
19954  For example, a minimal shell script is the following one:
19955 \end_layout
19956
19957 \begin_layout LyX-Code
19958 #!/bin/sh
19959 \begin_inset Newline newline
19960 \end_inset
19961
19962 LYXPIPE="/path/to/lyxpipe"
19963 \begin_inset Newline newline
19964 \end_inset
19965
19966 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
19967 \begin_inset Newline newline
19968 \end_inset
19969
19970 echo "$COMMAND" > "${LYXPIPE}".in || exit
19971 \begin_inset Newline newline
19972 \end_inset
19973
19974 read TMP < "${LYXPIPE}".out || exit
19975 \end_layout
19976
19977 \begin_layout Standard
19978 where 
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 /path/to/lyxpipe
19984 \end_layout
19985
19986 \end_inset
19987
19988  is the LyXServer pipe path specified in 
19989 \begin_inset Flex Noun
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 Preferences\SpecialChar menuseparator
19994 Paths
19995 \end_layout
19996
19997 \end_inset
19998
19999 .
20000 \begin_inset Foot
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 In the 
20005 \begin_inset Flex Code
20006 status collapsed
20007
20008 \begin_layout Plain Layout
20009 development/tools
20010 \end_layout
20011
20012 \end_inset
20013
20014  folder of a source distribution you can find a 
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 lyxeditor
20020 \end_layout
20021
20022 \end_inset
20023
20024  script which is able to locate the 
20025 \emph on
20026 lyxpipe
20027 \emph default
20028  based on your preferences.
20029 \end_layout
20030
20031 \end_inset
20032
20033
20034 \end_layout
20035
20036 \begin_layout Subsubsection*
20037 MacDviX (Mac OSX)
20038 \end_layout
20039
20040 \begin_layout Standard
20041 At the end of 
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046 /Applications/MacDviX_Folder/calleditor.script
20047 \end_layout
20048
20049 \end_inset
20050
20051 , add the following lines:
20052 \end_layout
20053
20054 \begin_layout LyX-Code
20055 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
20056 \begin_inset Newline newline
20057 \end_inset
20058
20059 exit 1
20060 \end_layout
20061
20062 \begin_layout Standard
20063 Modify the lines accordingly if you install \SpecialChar LyX
20064  somewhere else than in the
20065  Applications folder.
20066 \end_layout
20067
20068 \begin_layout Standard
20069 Reverse search is triggered by Alt-click (OPTION-click).
20070 \end_layout
20071
20072 \begin_layout Subsubsection*
20073 Skim (Mac OSX)
20074 \end_layout
20075
20076 \begin_layout Standard
20077 Enter 
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 open -a Skim.app $$i
20083 \end_layout
20084
20085 \end_inset
20086
20087  to the viewer setting in 
20088 \begin_inset Flex Noun
20089 status collapsed
20090
20091 \begin_layout Plain Layout
20092 Preferences\SpecialChar menuseparator
20093 File Handling\SpecialChar menuseparator
20094 File formats\SpecialChar menuseparator
20095 PDF (pdflatex)
20096 \end_layout
20097
20098 \end_inset
20099
20100 , and then in 
20101 \begin_inset Flex Noun
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105 Skim\SpecialChar menuseparator
20106 Preferences\SpecialChar menuseparator
20107 Sync
20108 \end_layout
20109
20110 \end_inset
20111
20112  choose 
20113 \begin_inset Flex Noun
20114 status collapsed
20115
20116 \begin_layout Plain Layout
20117 custom
20118 \end_layout
20119
20120 \end_inset
20121
20122  preset and enter command 
20123 \begin_inset Flex Noun
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127 /Applications/\SpecialChar LyX
20128 .app/Contents/MacOS/lyxeditor
20129 \end_layout
20130
20131 \end_inset
20132
20133 .
20134 \end_layout
20135
20136 \begin_layout Standard
20137 Reverse search is triggered by COMMAND-SHIFT-click
20138 \end_layout
20139
20140 \begin_layout Subsubsection*
20141 Evince (GNOME)
20142 \end_layout
20143
20144 \begin_layout Standard
20145 Reverse search with evince does not work out of the box, but it can be achieved
20146  by means of some third party helper scripts.
20147  Please refer to 
20148 \begin_inset CommandInset href
20149 LatexCommand href
20150 target "https://wiki.lyx.org/LyX/SyncTeX"
20151 literal "false"
20152
20153 \end_inset
20154
20155  for details.
20156 \end_layout
20157
20158 \begin_layout Subsubsection*
20159 Okular (KDE)
20160 \end_layout
20161
20162 \begin_layout Standard
20163 Go to 
20164 \begin_inset Flex Noun
20165 status collapsed
20166
20167 \begin_layout Plain Layout
20168 Settings\SpecialChar menuseparator
20169 Configure Okular\SpecialChar menuseparator
20170 Editor
20171 \end_layout
20172
20173 \end_inset
20174
20175  and select LyX
20176 \begin_inset Quotes erd
20177 \end_inset
20178
20179  as editor.
20180  This inserts the appropriate command (
20181 \begin_inset Flex Code
20182 status collapsed
20183
20184 \begin_layout Plain Layout
20185 lyxclient -g %f %l
20186 \end_layout
20187
20188 \end_inset
20189
20190 ).
20191 \end_layout
20192
20193 \begin_layout Standard
20194 Reverse search is triggered by SHIFT-click.
20195
20196 \change_inserted -712698321 1578211026
20197  Note that this only works if Okular is in 
20198 \begin_inset Quotes eld
20199 \end_inset
20200
20201 Browse
20202 \begin_inset Quotes erd
20203 \end_inset
20204
20205  mode (i.
20206 \begin_inset space \thinspace{}
20207 \end_inset
20208
20209 e., the hand symbol is clicked).
20210 \change_unchanged
20211
20212 \end_layout
20213
20214 \begin_layout Subsubsection*
20215 Qpdfview (Unix)
20216 \end_layout
20217
20218 \begin_layout Standard
20219 Qpdfview supports Sync\SpecialChar TeX
20220  since version 0.3.5.
20221  Go to 
20222 \begin_inset Flex Noun
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 Edit\SpecialChar menuseparator
20227 Settings\SpecialChar menuseparator
20228 Behavior
20229 \end_layout
20230
20231 \end_inset
20232
20233 , click on the input field of the 
20234 \begin_inset Quotes eld
20235 \end_inset
20236
20237 Source editor
20238 \begin_inset Quotes erd
20239 \end_inset
20240
20241  item and add the command 
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 lyxclient -g %1 %2
20247 \end_layout
20248
20249 \end_inset
20250
20251 .
20252 \end_layout
20253
20254 \begin_layout Standard
20255 Reverse search is triggered by double-click or, in more recent versions,
20256  by context menu.
20257 \end_layout
20258
20259 \begin_layout Subsubsection*
20260 YAP (Windows)
20261 \end_layout
20262
20263 \begin_layout Standard
20264 Launch yap, choose its 
20265 \begin_inset Flex Noun
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 View\SpecialChar menuseparator
20270 Options
20271 \end_layout
20272
20273 \end_inset
20274
20275  menu and select the 
20276 \begin_inset Quotes eld
20277 \end_inset
20278
20279 Inverse DVI Search
20280 \begin_inset Quotes erd
20281 \end_inset
20282
20283  tab.
20284  Click on the 
20285 \begin_inset Quotes eld
20286 \end_inset
20287
20288 New\SpecialChar ldots
20289
20290 \begin_inset Quotes erd
20291 \end_inset
20292
20293  button and, in the window that opens, enter 
20294 \begin_inset Quotes eld
20295 \end_inset
20296
20297 \SpecialChar LyX
20298  Editor
20299 \begin_inset Quotes erd
20300 \end_inset
20301
20302  (or any other name you like) in the 
20303 \begin_inset Quotes eld
20304 \end_inset
20305
20306 Name:
20307 \begin_inset Quotes erd
20308 \end_inset
20309
20310  field.
20311  Now click on the button labeled 
20312 \begin_inset Quotes eld
20313 \end_inset
20314
20315 \SpecialChar ldots
20316
20317 \begin_inset Quotes erd
20318 \end_inset
20319
20320  to open a file dialog and navigate to the directory containing the batch
20321  file 
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 lyxeditor.bat
20327 \end_layout
20328
20329 \end_inset
20330
20331  (see below).
20332  Select 
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 lyxeditor.bat
20338 \end_layout
20339
20340 \end_inset
20341
20342  and then specify the program arguments as 
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 %f %l
20348 \end_layout
20349
20350 \end_inset
20351
20352 .
20353  The 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 lyxeditor.bat
20359 \end_layout
20360
20361 \end_inset
20362
20363  wrapper is used for communicating with \SpecialChar LyX
20364  through the 
20365 \emph on
20366 lyxpipe
20367 \emph default
20368  and is as follows:
20369 \end_layout
20370
20371 \begin_layout LyX-Code
20372 @echo off
20373 \begin_inset Newline newline
20374 \end_inset
20375
20376 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
20377 \backslash
20378
20379 \backslash
20380 .
20381 \backslash
20382 pipe
20383 \backslash
20384 lyxpipe.in
20385 \begin_inset Newline newline
20386 \end_inset
20387
20388 type 
20389 \backslash
20390
20391 \backslash
20392 .
20393 \backslash
20394 pipe
20395 \backslash
20396 lyxpipe.out
20397 \end_layout
20398
20399 \begin_layout Standard
20400 Make sure that the \SpecialChar LyX
20401 Server pipe path you specified in \SpecialChar LyX
20402  is 
20403 \begin_inset Flex Code
20404 status collapsed
20405
20406 \begin_layout Plain Layout
20407
20408 \backslash
20409
20410 \backslash
20411 .
20412 \backslash
20413 pipe
20414 \backslash
20415 lyxpipe
20416 \end_layout
20417
20418 \end_inset
20419
20420 , otherwise change the 
20421 \begin_inset Flex Code
20422 status collapsed
20423
20424 \begin_layout Plain Layout
20425 lyxeditor.bat
20426 \end_layout
20427
20428 \end_inset
20429
20430  wrapper accordingly.
20431 \end_layout
20432
20433 \begin_layout Standard
20434 In yap, reverse search is triggered by double-click.
20435 \end_layout
20436
20437 \begin_layout Subsubsection*
20438 SumatraPDF (Windows)
20439 \end_layout
20440
20441 \begin_layout Standard
20442 In order to use SumatraPDF for inverse search, enter 
20443 \begin_inset Flex Code
20444 status collapsed
20445
20446 \begin_layout Plain Layout
20447 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
20448 \end_layout
20449
20450 \end_inset
20451
20452  in the viewer setting in 
20453 \begin_inset Flex Noun
20454 status collapsed
20455
20456 \begin_layout Plain Layout
20457 Preferences\SpecialChar menuseparator
20458 File Handling\SpecialChar menuseparator
20459 File formats\SpecialChar menuseparator
20460 PDF (pdflatex)
20461 \end_layout
20462
20463 \end_inset
20464
20465 , where 
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 lyxeditor.bat
20471 \end_layout
20472
20473 \end_inset
20474
20475  is the previous wrapper.
20476  If SumatraPDF.exe is not in your command PATH, use its full file name.
20477 \end_layout
20478
20479 \begin_layout Standard
20480 Reverse search is triggered by double-click.
20481 \end_layout
20482
20483 \begin_layout Subsubsection*
20484 YAP (Cygwin)
20485 \end_layout
20486
20487 \begin_layout Standard
20488 First of all, make sure that yap is your default DVI viewer in the Windows
20489  environment, then launch it, choose its 
20490 \begin_inset Flex Noun
20491 status collapsed
20492
20493 \begin_layout Plain Layout
20494 View\SpecialChar menuseparator
20495 Options
20496 \end_layout
20497
20498 \end_inset
20499
20500  menu and select the 
20501 \begin_inset Quotes eld
20502 \end_inset
20503
20504 Inverse DVI Search
20505 \begin_inset Quotes erd
20506 \end_inset
20507
20508  tab.
20509  Click on the 
20510 \begin_inset Quotes eld
20511 \end_inset
20512
20513 New\SpecialChar ldots
20514
20515 \begin_inset Quotes erd
20516 \end_inset
20517
20518  button and, in the window that opens, enter 
20519 \begin_inset Quotes eld
20520 \end_inset
20521
20522 \SpecialChar LyX
20523  Editor
20524 \begin_inset Quotes erd
20525 \end_inset
20526
20527  (or any other name you like) in the 
20528 \begin_inset Quotes eld
20529 \end_inset
20530
20531 Name:
20532 \begin_inset Quotes erd
20533 \end_inset
20534
20535  field.
20536  Now click on the button labeled 
20537 \begin_inset Quotes eld
20538 \end_inset
20539
20540 \SpecialChar ldots
20541
20542 \begin_inset Quotes erd
20543 \end_inset
20544
20545  to open a file dialog and navigate to the directory containing the 
20546 \begin_inset Flex Code
20547 status collapsed
20548
20549 \begin_layout Plain Layout
20550 lyxeditor.exe
20551 \end_layout
20552
20553 \end_inset
20554
20555  program (which is installed by default on Cygwin along with the \SpecialChar LyX
20556  executable).
20557  Select 
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562 lyxeditor.exe
20563 \end_layout
20564
20565 \end_inset
20566
20567  and then specify the program arguments as 
20568 \begin_inset Flex Code
20569 status collapsed
20570
20571 \begin_layout Plain Layout
20572 -g %f %l
20573 \end_layout
20574
20575 \end_inset
20576
20577 .
20578  In this way, you will be using the 
20579 \emph on
20580 lyxsocket
20581 \emph default
20582  for communicating with \SpecialChar LyX
20583 .
20584  If, for whatever reason, you want to use the 
20585 \emph on
20586 lyxpipe
20587 \emph default
20588 , omit the 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 -g
20594 \end_layout
20595
20596 \end_inset
20597
20598  option and be sure to specify the \SpecialChar LyX
20599 Server pipe path in the \SpecialChar LyX
20600  preferences.
20601 \end_layout
20602
20603 \begin_layout Standard
20604 In yap, reverse search is triggered by double-click.
20605 \end_layout
20606
20607 \begin_layout Subsubsection*
20608 SumatraPDF (Cygwin)
20609 \end_layout
20610
20611 \begin_layout Standard
20612 In order to use SumatraPDF for inverse search, enter 
20613 \begin_inset Flex Code
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 SumatraPDF -inverse-search "lyxeditor -g %f %l"
20618 \end_layout
20619
20620 \end_inset
20621
20622  in the viewer setting in 
20623 \begin_inset Flex Noun
20624 status collapsed
20625
20626 \begin_layout Plain Layout
20627 Preferences\SpecialChar menuseparator
20628 File Handling\SpecialChar menuseparator
20629 File formats\SpecialChar menuseparator
20630 PDF (pdflatex)
20631 \end_layout
20632
20633 \end_inset
20634
20635 .
20636  If SumatraPDF.exe is not in your command PATH, use its full posix path.
20637  The 
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 -g
20643 \end_layout
20644
20645 \end_inset
20646
20647  enables communication via the 
20648 \emph on
20649 lyxsocket
20650 \emph default
20651 .
20652  Again, omit the 
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 -g
20658 \end_layout
20659
20660 \end_inset
20661
20662  option if you want to use the 
20663 \emph on
20664 lyxpipe
20665 \emph default
20666 , and be sure to specify the \SpecialChar LyX
20667 Server pipe path in the \SpecialChar LyX
20668  preferences.
20669 \end_layout
20670
20671 \begin_layout Standard
20672 Reverse search is triggered by double-click.
20673 \end_layout
20674
20675 \begin_layout Section
20676 Forward search
20677 \end_layout
20678
20679 \begin_layout Standard
20680 Forward search is, as the name implies, in a sense the 
20681 \begin_inset Quotes eld
20682 \end_inset
20683
20684 opposite
20685 \begin_inset Quotes erd
20686 \end_inset
20687
20688  of reverse search.
20689  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
20690 .
20691  If forward search is set up (as described in what follows), you can put
20692  the cursor anywhere in your \SpecialChar LyX
20693  document, and hit 
20694 \begin_inset Flex Noun
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 Navigate\SpecialChar menuseparator
20699 Forward search
20700 \end_layout
20701
20702 \end_inset
20703
20704  (or select 
20705 \begin_inset Flex Noun
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Forward search
20710 \end_layout
20711
20712 \end_inset
20713
20714  in the context menu via right mouse click), and then the viewer will jump
20715  to that position as well.
20716  This implies, of course, that your viewer supports this function.
20717 \end_layout
20718
20719 \begin_layout Standard
20720 To make forward search possible, you first need to provide the generated
20721  output PDF/DVI file with additional information about the \SpecialChar TeX
20722  sources.
20723  This can be done via the methods described in the section 
20724 \begin_inset CommandInset ref
20725 LatexCommand ref
20726 reference "subsec:rev-search"
20727
20728 \end_inset
20729
20730 .
20731 \end_layout
20732
20733 \begin_layout Standard
20734 Additionally, you need to configure \SpecialChar LyX
20735  for using your viewers in 
20736 \begin_inset Flex Noun
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 Tools\SpecialChar menuseparator
20741 Preferences\SpecialChar menuseparator
20742 Output\SpecialChar menuseparator
20743 General
20744 \end_layout
20745
20746 \end_inset
20747
20748 .
20749  We provide a range of tested configurations for some viewers, which you
20750  can select from the drop down list.
20751  If none of these configurations suits you, you have to find out and enter
20752  a suitable configuration yourself.
20753  The definition syntax uses the following placeholders:
20754 \end_layout
20755
20756 \begin_layout Itemize
20757 \noindent
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 $$n
20763 \end_layout
20764
20765 \end_inset
20766
20767 : row number
20768 \end_layout
20769
20770 \begin_layout Itemize
20771 \noindent
20772 \begin_inset Flex Code
20773 status collapsed
20774
20775 \begin_layout Plain Layout
20776 $$t
20777 \end_layout
20778
20779 \end_inset
20780
20781 : name of the (temporary) exported .tex file (without path)
20782 \end_layout
20783
20784 \begin_layout Itemize
20785 \noindent
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 $$f
20791 \end_layout
20792
20793 \end_inset
20794
20795 : name of the (temporary) exported .tex file (including path)
20796 \end_layout
20797
20798 \begin_layout Itemize
20799 \noindent
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 $$o
20805 \end_layout
20806
20807 \end_inset
20808
20809 : name of the exported output file (either dvi or pdf, depending on which
20810  one exists in the temporary directory)
20811 \end_layout
20812
20813 \begin_layout Standard
20814 Note that only some of the viewers provide full and usable forward search
20815  functionality out of the box, among them yap, xdvi, okular
20816 \begin_inset Foot
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 You might want to set 
20821 \begin_inset Flex Code
20822 status collapsed
20823
20824 \begin_layout Plain Layout
20825 okular --unique
20826 \end_layout
20827
20828 \end_inset
20829
20830  in 
20831 \begin_inset Flex Noun
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835 Tools\SpecialChar menuseparator
20836 Preferences\SpecialChar menuseparator
20837 File Handling\SpecialChar menuseparator
20838 File
20839 \begin_inset space ~
20840 \end_inset
20841
20842 Formats
20843 \end_layout
20844
20845 \end_inset
20846
20847
20848 \end_layout
20849
20850 \end_inset
20851
20852 , qpdfview, and SumatraPDF
20853 \begin_inset Foot
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 SumatraPDF can also use DDE commands through the external program CMCDDE
20858  — downloadable from 
20859 \begin_inset CommandInset href
20860 LatexCommand href
20861 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
20862 literal "false"
20863
20864 \end_inset
20865
20866
20867 \end_layout
20868
20869 \end_inset
20870
20871 .
20872  Others, such as evince
20873 \begin_inset Foot
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877 Forward search with evince can be achieved by means of third party helper
20878  scripts.
20879  Please refer to 
20880 \begin_inset CommandInset href
20881 LatexCommand href
20882 target "https://wiki.lyx.org/LyX/SyncTeX"
20883 literal "false"
20884
20885 \end_inset
20886
20887  for details.
20888 \end_layout
20889
20890 \end_inset
20891
20892 , require some extra tools in order to use forward search.
20893  While many of the widespread PDF viewers (most notably Adobe Reader) do
20894  not support forward search at all, some other viewers – e.
20895 \begin_inset space \thinspace{}
20896 \end_inset
20897
20898 g.
20899  xpdf – allow at least to reload the document and jump to a specific page
20900  of the file, so you can at least navigate 
20901 \begin_inset Quotes eld
20902 \end_inset
20903
20904 near
20905 \begin_inset Quotes erd
20906 \end_inset
20907
20908 .
20909  This latter functionality is provided by an external call of synctex (see
20910  the predefined example configurations).
20911  
20912 \end_layout
20913
20914 \begin_layout Standard
20915 Forward search works both with DVI and PDF output.
20916  \SpecialChar LyX
20917  simply checks which preview format you have used before (i.
20918 \begin_inset space \thinspace{}
20919 \end_inset
20920
20921 e., which format is already there in the temporary directory) and chooses
20922  the appropriate configuration for the respective format.
20923 \end_layout
20924
20925 \begin_layout Chapter
20926
20927 \change_deleted 564990737 1671097409
20928 Special Document Classes
20929 \change_unchanged
20930
20931 \end_layout
20932
20933 \begin_layout Section
20934
20935 \change_deleted 564990737 1669742044
20936 A&A Paper
20937 \end_layout
20938
20939 \begin_layout Standard
20940
20941 \change_deleted 564990737 1669742044
20942 by 
20943 \noun on
20944 Peter Sütterlin
20945 \end_layout
20946
20947 \begin_layout Subsection
20948
20949 \change_deleted 564990737 1669742044
20950 Introduction
20951 \end_layout
20952
20953 \begin_layout Standard
20954
20955 \change_deleted 564990737 1669742044
20956 This section describes how \SpecialChar LyX
20957  can be used to write articles for submission
20958  to the scientific journal 
20959 \emph on
20960 Astronomy and Astrophysics
20961 \emph default
20962  (
20963 \begin_inset Flex URL
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968 https://www.aanda.org/
20969 \end_layout
20970
20971 \end_inset
20972
20973 ) using Version 5.01 of the document class 
20974 \family typewriter
20975 aa.cls
20976 \family default
20977 .
20978  This package can be downloaded from the ftp site
20979 \end_layout
20980
20981 \begin_layout Standard
20982
20983 \change_deleted 564990737 1669742044
20984 \begin_inset VSpace medskip
20985 \end_inset
20986
20987
20988 \end_layout
20989
20990 \begin_layout Standard
20991 \align center
20992
20993 \change_deleted 564990737 1669742044
20994 \begin_inset Flex URL
20995 status collapsed
20996
20997 \begin_layout Plain Layout
20998
20999 ftp://ftp.edpsciences.org/pub/aa/readme.html
21000 \end_layout
21001
21002 \end_inset
21003
21004
21005 \end_layout
21006
21007 \begin_layout Standard
21008
21009 \change_deleted 564990737 1669742044
21010 \begin_inset VSpace medskip
21011 \end_inset
21012
21013
21014 \end_layout
21015
21016 \begin_layout Standard
21017
21018 \change_deleted 564990737 1669742044
21019 A manual comes together with that package, and this text is not meant to
21020  replace the original manual but is merely a short guide in how to realize
21021  the correct form of your paper.
21022  
21023 \end_layout
21024
21025 \begin_layout Standard
21026
21027 \change_deleted 564990737 1669742044
21028 Please note that the publisher of the journal was changed from Springer
21029  to EDP Sciences starting January 1, 2001.
21030  That change involved also some slight changes to the style files, namely
21031  the removal of the thesaurus command.
21032  The \SpecialChar LyX
21033  class aa supports the newest version of these style files, V 5.01.
21034  If you have an older version installed, please upgrade.
21035  For compatibility, the old (version 4) layout has been kept as 
21036 \family sans
21037 article (A&A V4)
21038 \family default
21039 .
21040  Please refer to the comments in 
21041 \family typewriter
21042 \SpecialChar LyX
21043 Dir/layouts/aapaper.layout
21044 \family default
21045 .
21046 \end_layout
21047
21048 \begin_layout Subsection
21049
21050 \change_deleted 564990737 1669742044
21051 Getting started
21052 \end_layout
21053
21054 \begin_layout Standard
21055
21056 \change_deleted 564990737 1669742044
21057 It is recommended you start from the example template distributed with \SpecialChar LyX
21058 .
21059  If you are not using a template, note the following settings:
21060 \end_layout
21061
21062 \begin_layout Itemize
21063
21064 \change_deleted 564990737 1669742044
21065 Select 
21066 \family sans
21067 article (A&A)
21068 \family default
21069  in the 
21070 \family sans
21071 Document\SpecialChar menuseparator
21072 Settings
21073 \family default
21074  dialog (OK, that one was obvious).
21075 \end_layout
21076
21077 \begin_layout Itemize
21078
21079 \change_deleted 564990737 1669742044
21080 Don't change the option 
21081 \family sans
21082 Page
21083 \begin_inset space ~
21084 \end_inset
21085
21086 style
21087 \family default
21088 : Leave it set to 
21089 \family sans
21090 default
21091 \family default
21092 .
21093  The whole layout is done by the macros, you shouldn't change anything.
21094 \end_layout
21095
21096 \begin_layout Subsection
21097
21098 \change_deleted 564990737 1669742044
21099 The header block
21100 \end_layout
21101
21102 \begin_layout Standard
21103
21104 \change_deleted 564990737 1669742044
21105 First thing to enter is the header information.
21106  It consists of seven entries, of which some are optional.
21107  They are
21108 \end_layout
21109
21110 \begin_layout Itemize
21111
21112 \change_deleted 564990737 1669742044
21113
21114 \family sans
21115 Title
21116 \family default
21117 : [required] 
21118 \end_layout
21119
21120 \begin_layout Itemize
21121
21122 \change_deleted 564990737 1669742044
21123
21124 \family sans
21125 Subtitle
21126 \family default
21127 : [optional] 
21128 \end_layout
21129
21130 \begin_layout Itemize
21131
21132 \change_deleted 564990737 1669742044
21133
21134 \family sans
21135 Author
21136 \family default
21137 : [required]
21138 \end_layout
21139
21140 \begin_layout Itemize
21141
21142 \change_deleted 564990737 1669742044
21143
21144 \family sans
21145 Address
21146 \family default
21147 : [required]
21148 \end_layout
21149
21150 \begin_layout Itemize
21151
21152 \change_deleted 564990737 1669742044
21153
21154 \family sans
21155 Offprints
21156 \family default
21157 : [optional] if more than one author: whom to contact for offprint requests.
21158 \end_layout
21159
21160 \begin_layout Itemize
21161
21162 \change_deleted 564990737 1669742044
21163
21164 \family sans
21165 Mail
21166 \family default
21167 : [optional] mail address for contacts.
21168 \end_layout
21169
21170 \begin_layout Itemize
21171
21172 \change_deleted 564990737 1669742044
21173
21174 \family sans
21175 Date
21176 \family default
21177 : [required].
21178  Suggested format is 
21179 \family typewriter
21180 Received: <date>; Accepted <date> 
21181 \end_layout
21182
21183 \begin_layout Standard
21184
21185 \change_deleted 564990737 1669742044
21186 There is no need to issue the 
21187 \family typewriter
21188
21189 \backslash
21190 maketitle
21191 \family default
21192  command, this is done automatically by \SpecialChar LyX
21193  when the header is finished.
21194  Although the order of the single header entries doesn't matter it is advised
21195  to keep the above sequence, just to get the best optics and meets the layout
21196  of the real document.
21197 \end_layout
21198
21199 \begin_layout Standard
21200
21201 \change_deleted 564990737 1669742044
21202 If you want to place footnotes in the header block, e.
21203 \begin_inset space \thinspace{}
21204 \end_inset
21205
21206 g.
21207 \begin_inset space \space{}
21208 \end_inset
21209
21210 to state your present address, just use the standard footnote via the menu
21211  
21212 \family sans
21213 Insert\SpecialChar menuseparator
21214 Footnote.
21215
21216 \family default
21217  \SpecialChar LyX
21218  will automagically use the term 
21219 \family typewriter
21220
21221 \backslash
21222 thanks{}
21223 \family default
21224  in that case.
21225 \end_layout
21226
21227 \begin_layout Standard
21228
21229 \change_deleted 564990737 1669742044
21230 Under 
21231 \family sans
21232 Edit\SpecialChar menuseparator
21233 Text Style
21234 \family default
21235 , you'll find two insets which are relevant for the titling:
21236 \end_layout
21237
21238 \begin_layout Itemize
21239
21240 \change_deleted 564990737 1669742044
21241
21242 \family sans
21243 Institute
21244 \family typewriter
21245  
21246 \family default
21247 to mark corresponding author\SpecialChar breakableslash
21248 institute pairs.
21249  The institutes are numbered sequentially as they appear in the 
21250 \family sans
21251 Address
21252 \family default
21253  field, so you have to put a marker to each author.
21254 \end_layout
21255
21256 \begin_layout Itemize
21257
21258 \change_deleted 564990737 1669742044
21259
21260 \family sans
21261 Email
21262 \family default
21263  to supply an email address for fast contact.
21264 \end_layout
21265
21266 \begin_layout Standard
21267
21268 \change_deleted 564990737 1669742044
21269 In addition to these topics, the macros use one additional \SpecialChar LaTeX
21270  command that
21271  has no counterpart in \SpecialChar LyX
21272 :
21273 \end_layout
21274
21275 \begin_layout Itemize
21276
21277 \change_deleted 564990737 1669742044
21278
21279 \family typewriter
21280
21281 \backslash
21282 and
21283 \family default
21284  to separate different names for more than one author and institute, respectivel
21285 y.
21286 \end_layout
21287
21288 \begin_layout Standard
21289
21290 \change_deleted 564990737 1669742044
21291 The appropriate command has to be entered in \SpecialChar LyX
21292  and marked as \SpecialChar LaTeX
21293  code.
21294  See the examples.
21295  
21296 \end_layout
21297
21298 \begin_layout Subsection
21299
21300 \change_deleted 564990737 1669742044
21301 The abstract
21302 \end_layout
21303
21304 \begin_layout Standard
21305
21306 \change_deleted 564990737 1669742044
21307 The abstract should immediately follow the header block.
21308  With version 5 the abstract environment was changed to a command, and there
21309  is now a restriction to only one paragraph.
21310  In addition, it should contain an entry with the keywords.
21311  This is done via the paragraph style 
21312 \family sans
21313 Keywords
21314 \family default
21315 .
21316  Refer to the example paper.
21317 \end_layout
21318
21319 \begin_layout Subsection
21320
21321 \change_deleted 564990737 1669742044
21322 Supported environments
21323 \end_layout
21324
21325 \begin_layout Standard
21326
21327 \change_deleted 564990737 1669742044
21328 The A&A paper layout supports the following environments for structuring
21329  your text:
21330 \end_layout
21331
21332 \begin_layout Itemize
21333
21334 \change_deleted 564990737 1669742044
21335
21336 \family sans
21337 Standard
21338 \end_layout
21339
21340 \begin_layout Itemize
21341
21342 \change_deleted 564990737 1669742044
21343
21344 \family sans
21345 Section
21346 \end_layout
21347
21348 \begin_layout Itemize
21349
21350 \change_deleted 564990737 1669742044
21351
21352 \family sans
21353 Subsection
21354 \end_layout
21355
21356 \begin_layout Itemize
21357
21358 \change_deleted 564990737 1669742044
21359
21360 \family sans
21361 Subsubsection
21362 \end_layout
21363
21364 \begin_layout Itemize
21365
21366 \change_deleted 564990737 1669742044
21367
21368 \family sans
21369 Itemize
21370 \end_layout
21371
21372 \begin_layout Itemize
21373
21374 \change_deleted 564990737 1669742044
21375
21376 \family sans
21377 Enumerate
21378 \end_layout
21379
21380 \begin_layout Itemize
21381
21382 \change_deleted 564990737 1669742044
21383
21384 \family sans
21385 Description
21386 \end_layout
21387
21388 \begin_layout Itemize
21389
21390 \change_deleted 564990737 1669742044
21391
21392 \family sans
21393 Caption
21394 \end_layout
21395
21396 \begin_layout Itemize
21397
21398 \change_deleted 564990737 1669742044
21399
21400 \family sans
21401 Abstract
21402 \end_layout
21403
21404 \begin_layout Itemize
21405
21406 \change_deleted 564990737 1669742044
21407
21408 \family sans
21409 Acknowledgment
21410 \end_layout
21411
21412 \begin_layout Itemize
21413
21414 \change_deleted 564990737 1669742044
21415
21416 \family sans
21417 Bibliography
21418 \end_layout
21419
21420 \begin_layout Itemize
21421
21422 \change_deleted 564990737 1669742044
21423
21424 \family sans
21425 \SpecialChar LaTeX
21426
21427 \end_layout
21428
21429 \begin_layout Subsection
21430
21431 \change_deleted 564990737 1669742044
21432 Commands not supported by \SpecialChar LyX
21433
21434 \end_layout
21435
21436 \begin_layout Standard
21437
21438 \change_deleted 564990737 1669742044
21439 Some commands are not yet supported by the 
21440 \family sans
21441 paper (A&A)
21442 \family default
21443  layout for \SpecialChar LyX
21444 .
21445  Some have already been mentioned.
21446  For the sake of completeness, they are listed all together here:
21447 \end_layout
21448
21449 \begin_layout Itemize
21450
21451 \change_deleted 564990737 1669742044
21452
21453 \family typewriter
21454
21455 \backslash
21456 and
21457 \end_layout
21458
21459 \begin_layout Itemize
21460
21461 \change_deleted 564990737 1669742044
21462
21463 \family typewriter
21464
21465 \backslash
21466 authorrunning
21467 \end_layout
21468
21469 \begin_layout Itemize
21470
21471 \change_deleted 564990737 1669742044
21472
21473 \family typewriter
21474
21475 \backslash
21476 object{}
21477 \end_layout
21478
21479 \begin_layout Itemize
21480
21481 \change_deleted 564990737 1669742044
21482
21483 \family typewriter
21484
21485 \backslash
21486 titlerunning{}
21487 \end_layout
21488
21489 \begin_layout Standard
21490
21491 \change_deleted 564990737 1669742044
21492 If you want to use any of these commands, you have to enter them yourself.
21493  
21494 \series bold
21495 Do not forget to mark them as \SpecialChar LaTeX
21496  code!
21497 \end_layout
21498
21499 \begin_layout Subsection
21500
21501 \change_deleted 564990737 1669742044
21502 Figure and Table Floats
21503 \end_layout
21504
21505 \begin_layout Standard
21506
21507 \change_deleted 564990737 1669742044
21508 \SpecialChar LyX
21509  provides support for the necessary float environments 
21510 \family sans
21511 figure, figure*, table
21512 \family default
21513  and 
21514 \family sans
21515 table*
21516 \family default
21517 , therefore we won't tell much about it here.
21518  Refer to the 
21519 \emph on
21520 User's
21521 \begin_inset space ~
21522 \end_inset
21523
21524 Guide
21525 \emph default
21526 .
21527  Just remember that tables should be left-aligned.
21528  For that, select the table and change the alignment in 
21529 \family sans
21530 Edit\SpecialChar menuseparator
21531 Paragraph
21532 \begin_inset space ~
21533 \end_inset
21534
21535 Settings.
21536 \end_layout
21537
21538 \begin_layout Standard
21539
21540 \change_deleted 564990737 1669742044
21541 There is only one special thing: the figures with caption besides the figure.
21542  To create such a figure, you have to do the following:
21543 \end_layout
21544
21545 \begin_layout Enumerate
21546
21547 \change_deleted 564990737 1669742044
21548 Create a wide figure float: 
21549 \family sans
21550 Insert\SpecialChar menuseparator
21551 Float\SpecialChar menuseparator
21552 Figure
21553 \family default
21554 , then right click in the figure and select 
21555 \family sans
21556 Span
21557 \begin_inset space ~
21558 \end_inset
21559
21560 columns
21561 \family default
21562 .
21563 \end_layout
21564
21565 \begin_layout Enumerate
21566
21567 \change_deleted 564990737 1669742044
21568 Enter your caption text.
21569 \end_layout
21570
21571 \begin_layout Enumerate
21572
21573 \change_deleted 564990737 1669742044
21574 Press 
21575 \family sans
21576 Return
21577 \family default
21578  to move the cursor above the caption.
21579 \end_layout
21580
21581 \begin_layout Enumerate
21582
21583 \change_deleted 564990737 1669742044
21584 Insert your figure
21585 \end_layout
21586
21587 \begin_layout Enumerate
21588
21589 \change_deleted 564990737 1669742044
21590 Position the cursor behind the figure and insert a horizontal fill: 
21591 \family sans
21592 Insert\SpecialChar menuseparator
21593 Special
21594 \begin_inset space ~
21595 \end_inset
21596
21597 Character\SpecialChar menuseparator
21598 Horizontal
21599 \begin_inset space ~
21600 \end_inset
21601
21602 Fill
21603 \family default
21604 .
21605 \end_layout
21606
21607 \begin_layout Enumerate
21608
21609 \change_deleted 564990737 1669742044
21610 Switch to \SpecialChar LaTeX
21611  mode: 
21612 \family sans
21613 M-c
21614 \begin_inset space ~
21615 \end_inset
21616
21617 t
21618 \family default
21619 .
21620 \end_layout
21621
21622 \begin_layout Enumerate
21623
21624 \change_deleted 564990737 1669742044
21625 Enter 
21626 \family typewriter
21627
21628 \backslash
21629 parbox[b]{55mm}{
21630 \family default
21631 .
21632  
21633 \series bold
21634 Do not close the brace!
21635 \end_layout
21636
21637 \begin_layout Enumerate
21638
21639 \change_deleted 564990737 1669742044
21640 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
21641  mode and insert
21642  the closing brace: 
21643 \family sans
21644 M-c
21645 \begin_inset space ~
21646 \end_inset
21647
21648 t
21649 \family default
21650  
21651 \family typewriter
21652 }
21653 \family default
21654 .
21655 \end_layout
21656
21657 \begin_layout Standard
21658
21659 \change_deleted 564990737 1669742044
21660 Also, refer to the figures in the example paper.
21661 \end_layout
21662
21663 \begin_layout Subsection
21664
21665 \change_deleted 564990737 1669742044
21666 Referee layout
21667 \end_layout
21668
21669 \begin_layout Standard
21670
21671 \change_deleted 564990737 1669742044
21672 For submission, the paper has to be formated in a special double-spacing
21673  layout.
21674  For this purpose, you have to give the option 
21675 \family typewriter
21676 referee
21677 \family default
21678  to the document class.
21679  This must be done using the custom class options field in the 
21680 \family sans
21681 Document\SpecialChar menuseparator
21682 Settings
21683 \family default
21684  dialog.
21685  Just enter the string 
21686 \family typewriter
21687 referee
21688 \family default
21689  there.
21690 \end_layout
21691
21692 \begin_layout Subsection
21693
21694 \change_deleted 564990737 1669742044
21695 The example paper
21696 \end_layout
21697
21698 \begin_layout Standard
21699
21700 \change_deleted 564990737 1669742044
21701 The 
21702 \family sans
21703 Examples
21704 \family default
21705  directory contains an example paper written with \SpecialChar LyX
21706 .
21707  It is the example paper from the original macro package, translated to
21708  \SpecialChar LyX
21709 .
21710  Use it for inspiration, and compare the original \SpecialChar LaTeX
21711  code with \SpecialChar LyX
21712  way of writing.
21713 \end_layout
21714
21715 \begin_layout Section
21716
21717 \change_deleted 564990737 1671097429
21718 Dinbrief
21719 \end_layout
21720
21721 \begin_layout Standard
21722
21723 \change_deleted 564990737 1671097429
21724 The document class 
21725 \family sans
21726 dinbrief
21727 \family default
21728  can be used to type letters according to German conventions.
21729  A template file is included in 
21730 \family typewriter
21731 .../lyx/share/templates
21732 \family default
21733  for you to use as a starting point.
21734 \end_layout
21735
21736 \begin_layout Section
21737
21738 \change_deleted 564990737 1671097429
21739 Elsevier Journals
21740 \end_layout
21741
21742 \begin_layout Standard
21743
21744 \change_deleted 564990737 1671097429
21745 See the \SpecialChar LyX
21746  template file 
21747 \family typewriter
21748 elsarticle.lyx
21749 \family default
21750 .
21751  It contains all infos you need.
21752 \end_layout
21753
21754 \begin_layout Section
21755
21756 \change_deleted 564990737 1669755802
21757 ijmpc and ijmpd
21758 \end_layout
21759
21760 \begin_layout Standard
21761
21762 \change_deleted 564990737 1669755802
21763 by 
21764 \noun on
21765 Panayotis Papasotiriou
21766 \end_layout
21767
21768 \begin_layout Subsection
21769
21770 \change_deleted 564990737 1669755802
21771 Overview
21772 \end_layout
21773
21774 \begin_layout Standard
21775
21776 \change_deleted 564990737 1669755802
21777 The ijmpc package is a set of macros that facilitates electronic manuscript
21778  submission to the 
21779 \emph on
21780 International Journal of Modern Physics C
21781 \emph default
21782 .
21783  Similarly, the ijmpd package is for creating manuscripts to be submitted
21784  to the 
21785 \emph on
21786 International Journal of Modern Physics D
21787 \emph default
21788 .
21789  Both journals are published by World Scientific.
21790  The corresponding document classes are named 
21791 \family typewriter
21792 ws-ijmpc.cls
21793 \family default
21794  and 
21795 \family typewriter
21796 ws-ijmpd.cls
21797 \family default
21798 , respectively.
21799  These files, together with instructions for the authors, can be downloaded
21800  from the sites 
21801 \begin_inset Flex URL
21802 status collapsed
21803
21804 \begin_layout Plain Layout
21805
21806 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
21807 \end_layout
21808
21809 \end_inset
21810
21811  and 
21812 \begin_inset Flex URL
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816
21817 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
21818 \end_layout
21819
21820 \end_inset
21821
21822 .
21823  Both packages are modified versions of the standard 
21824 \begin_inset Quotes eld
21825 \end_inset
21826
21827 article
21828 \begin_inset Quotes erd
21829 \end_inset
21830
21831  package, and they are almost (but not exactly) identical.
21832  Most of their features are supported by \SpecialChar LyX
21833 .
21834  I have used \SpecialChar LyX
21835  successfully to write articles submitted to both journals
21836  without any problem.
21837 \end_layout
21838
21839 \begin_layout Subsection
21840
21841 \change_deleted 564990737 1669755802
21842 Writing a paper
21843 \end_layout
21844
21845 \begin_layout Standard
21846
21847 \change_deleted 564990737 1669755802
21848 As usual, the easiest way to write a paper is to start with a template.
21849  Click on 
21850 \family sans
21851 File\SpecialChar menuseparator
21852 New from
21853 \family default
21854  
21855 \family sans
21856 Template
21857 \family default
21858 , then choose the 
21859 \family typewriter
21860 ijmpc.lyx
21861 \family default
21862  or 
21863 \family typewriter
21864 ijmpd.lyx
21865 \family default
21866  template.
21867  This will give an (almost) empty document that includes the most common
21868  fields found in a manuscript.
21869  Simply overwrite the existing text (including the brackets, 
21870 \family typewriter
21871 <>
21872 \family default
21873 ) with your text.
21874  You should keep in mind the following remarks.
21875 \end_layout
21876
21877 \begin_layout Enumerate
21878
21879 \change_deleted 564990737 1669755802
21880 \SpecialChar LyX
21881  won't let you change the font size and the page style of the document,
21882  because such modifications are not allowed by both packages.
21883 \end_layout
21884
21885 \begin_layout Enumerate
21886
21887 \change_deleted 564990737 1669755802
21888 The language of the document should not be changed.
21889  Before previewing your paper, be sure that the babel package is not used.
21890  To do this, click on 
21891 \begin_inset Info
21892 type  "menu"
21893 arg   "dialog-show document"
21894 \end_inset
21895
21896  
21897 \family sans
21898 \SpecialChar menuseparator
21899 Language
21900 \family default
21901 , and select 
21902 \begin_inset Quotes eld
21903 \end_inset
21904
21905 None
21906 \begin_inset Quotes erd
21907 \end_inset
21908
21909  as 
21910 \family sans
21911 Language Package
21912 \family default
21913 .
21914 \end_layout
21915
21916 \begin_layout Enumerate
21917
21918 \change_deleted 564990737 1669755802
21919 The 
21920 \begin_inset Quotes eld
21921 \end_inset
21922
21923 Keywords
21924 \begin_inset Quotes erd
21925 \end_inset
21926
21927  style must be used to define keywords.
21928 \end_layout
21929
21930 \begin_layout Enumerate
21931
21932 \change_deleted 564990737 1669755802
21933 The ijmpc package provides a style named 
21934 \begin_inset Quotes eld
21935 \end_inset
21936
21937 Classification Codes
21938 \begin_inset Quotes erd
21939 \end_inset
21940
21941 , which can be used to define classification codes, such as PACS numbers.
21942  Note that this facility is not supported by the ijmpd package.
21943 \end_layout
21944
21945 \begin_layout Enumerate
21946
21947 \change_deleted 564990737 1669755802
21948 Several new environments are available: 
21949 \begin_inset Quotes eld
21950 \end_inset
21951
21952 Definition
21953 \begin_inset Quotes erd
21954 \end_inset
21955
21956
21957 \begin_inset Quotes eld
21958 \end_inset
21959
21960 Step
21961 \begin_inset Quotes erd
21962 \end_inset
21963
21964
21965 \begin_inset Quotes eld
21966 \end_inset
21967
21968 Example
21969 \begin_inset Quotes erd
21970 \end_inset
21971
21972
21973 \begin_inset Quotes eld
21974 \end_inset
21975
21976 Remark
21977 \begin_inset Quotes erd
21978 \end_inset
21979
21980
21981 \begin_inset Quotes eld
21982 \end_inset
21983
21984 Notation
21985 \begin_inset Quotes erd
21986 \end_inset
21987
21988
21989 \begin_inset Quotes eld
21990 \end_inset
21991
21992 Theorem
21993 \begin_inset Quotes erd
21994 \end_inset
21995
21996
21997 \begin_inset Quotes eld
21998 \end_inset
21999
22000 Proof
22001 \begin_inset Quotes erd
22002 \end_inset
22003
22004
22005 \begin_inset Quotes eld
22006 \end_inset
22007
22008 Corollary
22009 \begin_inset Quotes erd
22010 \end_inset
22011
22012
22013 \begin_inset Quotes eld
22014 \end_inset
22015
22016 Lemma
22017 \begin_inset Quotes erd
22018 \end_inset
22019
22020
22021 \begin_inset Quotes eld
22022 \end_inset
22023
22024 Proposition
22025 \begin_inset Quotes erd
22026 \end_inset
22027
22028
22029 \begin_inset Quotes eld
22030 \end_inset
22031
22032 Prop
22033 \begin_inset Quotes erd
22034 \end_inset
22035
22036
22037 \begin_inset Quotes eld
22038 \end_inset
22039
22040 Question
22041 \begin_inset Quotes erd
22042 \end_inset
22043
22044
22045 \begin_inset Quotes eld
22046 \end_inset
22047
22048 Claim
22049 \begin_inset Quotes erd
22050 \end_inset
22051
22052 , and 
22053 \begin_inset Quotes eld
22054 \end_inset
22055
22056 Conjecture
22057 \begin_inset Quotes erd
22058 \end_inset
22059
22060 .
22061  Their use is more or less obvious.
22062  \SpecialChar LyX
22063  supports all these environments; it will use the proper label, text style,
22064  and numbering scheme for each of them.
22065 \end_layout
22066
22067 \begin_layout Enumerate
22068
22069 \change_deleted 564990737 1669755802
22070 Both packages use basic citations; the natbib package should not be used.
22071  In \SpecialChar LyX
22072 , citation references are shown as usual; in the output, citations are
22073  shown as superscripts.
22074  If you want to use a citation as normal text, you should use the 
22075 \family typewriter
22076 refcite
22077 \family default
22078  command, e.
22079 \begin_inset space \thinspace{}
22080 \end_inset
22081
22082 g.
22083 \begin_inset space \space{}
22084 \end_inset
22085
22086
22087 \begin_inset Quotes eld
22088 \end_inset
22089
22090 See Ref.
22091 \begin_inset space \space{}
22092 \end_inset
22093
22094
22095 \family typewriter
22096
22097 \backslash
22098 refcite{key}
22099 \family default
22100
22101 \begin_inset Quotes erd
22102 \end_inset
22103
22104 .
22105 \end_layout
22106
22107 \begin_layout Enumerate
22108
22109 \change_deleted 564990737 1669755802
22110 There is no 
22111 \begin_inset Quotes eld
22112 \end_inset
22113
22114 Acknowledgments
22115 \begin_inset Quotes erd
22116 \end_inset
22117
22118  section in both packages.
22119  To put acknowledgments, just use the 
22120 \begin_inset Quotes eld
22121 \end_inset
22122
22123 Section*
22124 \begin_inset Quotes erd
22125 \end_inset
22126
22127  environment.
22128 \end_layout
22129
22130 \begin_layout Enumerate
22131
22132 \change_deleted 564990737 1669755802
22133 Appendices may be added to the paper, 
22134 \emph on
22135 after
22136 \emph default
22137  the Acknowledgments and 
22138 \shape italic
22139 before
22140 \shape default
22141  the References.
22142  \SpecialChar LyX
22143  provides a special environment, called 
22144 \begin_inset Quotes eld
22145 \end_inset
22146
22147 Appendices Section
22148 \begin_inset Quotes erd
22149 \end_inset
22150
22151  which marks the beginning of the appendices.
22152  This environment should be left blank; it just sends a \SpecialChar LaTeX
22153  command, but nothing
22154  is really printed.
22155  In \SpecialChar LyX
22156 , the word 
22157 \begin_inset Quotes eld
22158 \end_inset
22159
22160 Appendix
22161 \begin_inset Quotes erd
22162 \end_inset
22163
22164  is printed with blue letters, as a signal that all sections after that
22165  point are appendices.
22166  To write an appendix, use the 
22167 \begin_inset Quotes eld
22168 \end_inset
22169
22170 Appendix
22171 \begin_inset Quotes erd
22172 \end_inset
22173
22174  environment.
22175  \SpecialChar LyX
22176  will number each appendix with capital letters, as required by both journals.
22177  Note that 
22178 \begin_inset Quotes eld
22179 \end_inset
22180
22181 Appendices Section
22182 \begin_inset Quotes erd
22183 \end_inset
22184
22185  
22186 \emph on
22187 must
22188 \emph default
22189  be present before the first appendix; if not, all appendices will be numbered
22190  as normal sections in the output.
22191 \end_layout
22192
22193 \begin_layout Enumerate
22194
22195 \change_deleted 564990737 1669755802
22196 The ijmpc and the ijmpd packages use the 
22197 \family typewriter
22198 tbl
22199 \family default
22200  command to implement table captions.
22201  As a result, a table created by \SpecialChar LyX
22202  is printed correctly, but its caption
22203  is ignored.
22204  However, you can use some \SpecialChar TeX
22205  code to overcome this problem, so that captions
22206  are printed as expected.
22207  To do so, create a float table as usual, remove the caption, and replace
22208  it with the \SpecialChar TeX
22209  code 
22210 \family typewriter
22211
22212 \backslash
22213 tbl{
22214 \emph on
22215 your table caption
22216 \emph default
22217 }{
22218 \family default
22219  (sic); you must also the \SpecialChar TeX
22220  code 
22221 \family typewriter
22222 }
22223 \family default
22224  immediately after the tabular material.
22225  Study the example table included in the template files to see how this
22226  trick is implemented.
22227  Alternatively, If you need table captions, you should implement the whole
22228  table float in a 
22229 \family typewriter
22230 .tex
22231 \family default
22232  file, then include this file to the \SpecialChar LyX
22233  document (
22234 \family sans
22235 Insert\SpecialChar menuseparator
22236 File\SpecialChar menuseparator
22237 Child
22238 \begin_inset space ~
22239 \end_inset
22240
22241 Document
22242 \family default
22243 ).
22244  Details on how to create a table float can be found in the files 
22245 \family typewriter
22246 ws-ijmpc.tex
22247 \family default
22248  and 
22249 \family typewriter
22250 ws-ijmpd.tex
22251 \family default
22252 , included in the corresponding packages.
22253 \end_layout
22254
22255 \begin_layout Subsection
22256
22257 \change_deleted 564990737 1669755802
22258 Preparing a paper for submission
22259 \end_layout
22260
22261 \begin_layout Standard
22262
22263 \change_deleted 564990737 1669755802
22264 Before you submit your paper you must export the \SpecialChar LyX
22265  document as a \SpecialChar LaTeX
22266  file (
22267 \family sans
22268 File\SpecialChar menuseparator
22269 Export\SpecialChar menuseparator
22270 \SpecialChar LaTeX
22271
22272 \family default
22273 )
22274 \begin_inset Foot
22275 status open
22276
22277 \begin_layout Plain Layout
22278 Actually you have the choice between \SpecialChar LaTeX
22279  (plain) and pdflatex.
22280  If you intend to use pdflatex to prepare the paper, you should use the
22281  pdflatex option so that included graphics are converted to PDF format,
22282  ready for use by pdflatex.
22283 \end_layout
22284
22285 \end_inset
22286
22287 , then make the following changes to the resulting 
22288 \family typewriter
22289 .tex
22290 \family default
22291  file.
22292 \end_layout
22293
22294 \begin_layout Enumerate
22295
22296 \change_deleted 564990737 1669755802
22297 Remove the comment lines before the 
22298 \family typewriter
22299
22300 \backslash
22301 documentclass
22302 \family default
22303  command.
22304 \end_layout
22305
22306 \begin_layout Enumerate
22307
22308 \change_deleted 564990737 1669755802
22309 Remove everything between (and including) the 
22310 \family typewriter
22311
22312 \backslash
22313 makeatletter
22314 \family default
22315  and 
22316 \family typewriter
22317
22318 \backslash
22319 makeatother
22320 \family default
22321  commands, except for any commands you specifically put into the \SpecialChar LaTeX
22322  preamble.
22323 \end_layout
22324
22325 \begin_layout Standard
22326
22327 \change_deleted 564990737 1669755802
22328 The modified 
22329 \family typewriter
22330 .tex
22331 \family default
22332  file should be saved and processed through \SpecialChar LaTeX
22333  as many times as necessary.
22334  You may also want to check the resulting 
22335 \family typewriter
22336 .dvi
22337 \family default
22338  document.
22339 \change_unchanged
22340
22341 \end_layout
22342
22343 \begin_layout Section
22344
22345 \change_deleted 564990737 1669801478
22346 iopart
22347 \end_layout
22348
22349 \begin_layout Standard
22350
22351 \change_deleted 564990737 1669801478
22352 by 
22353 \noun on
22354 Uwe Stöhr
22355 \end_layout
22356
22357 \begin_layout Subsection
22358
22359 \change_deleted 564990737 1669801478
22360 Overview
22361 \end_layout
22362
22363 \begin_layout Standard
22364
22365 \change_deleted 564990737 1669801478
22366 The iopart package provides a document class to create electronic manuscript
22367  submission to the journals published by the Institute of Physics.
22368  Instructions for the authors how to create a paper using the iopart class
22369  can be downloaded together with the iopart package from the site 
22370 \begin_inset Flex URL
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374
22375 ftp://ftp.iop.org/pub/journals/latex2e
22376 \end_layout
22377
22378 \end_inset
22379
22380 .
22381 \end_layout
22382
22383 \begin_layout Subsection
22384
22385 \change_deleted 564990737 1669801478
22386 Writing a paper
22387 \end_layout
22388
22389 \begin_layout Standard
22390
22391 \change_deleted 564990737 1669801478
22392 The easiest way to write a paper is to start with the template 
22393 \emph on
22394 IOP-article.lyx
22395 \emph default
22396  that is available via 
22397 \family sans
22398 File\SpecialChar menuseparator
22399 New From Template
22400 \family default
22401  The template explains how to use the special text environments.
22402  Here are the most important advices:
22403 \end_layout
22404
22405 \begin_layout Itemize
22406
22407 \change_deleted 564990737 1669801478
22408 To be able to compile your document to a PDF, PS, or DVI, ensure that the
22409  no AMS packages are loaded in 
22410 \family sans
22411 Document\SpecialChar menuseparator
22412 Settings\SpecialChar menuseparator
22413 Math Options
22414 \family default
22415 !
22416 \end_layout
22417
22418 \begin_layout Itemize
22419
22420 \change_deleted 564990737 1669801478
22421
22422 \size normal
22423 The title environment defines the kind of your paper.
22424  So use one of the following environments for the title:
22425 \end_layout
22426
22427 \begin_deeper
22428 \begin_layout Itemize
22429
22430 \change_deleted 564990737 1669801478
22431
22432 \family sans
22433 \size normal
22434 Title
22435 \family default
22436  for a Paper
22437 \end_layout
22438
22439 \begin_layout Itemize
22440
22441 \change_deleted 564990737 1669801478
22442
22443 \family sans
22444 \size normal
22445 Review
22446 \family default
22447  for a Review
22448 \end_layout
22449
22450 \begin_layout Itemize
22451
22452 \change_deleted 564990737 1669801478
22453
22454 \family sans
22455 \size normal
22456 Topical
22457 \family default
22458  for a Topical review
22459 \end_layout
22460
22461 \begin_layout Itemize
22462
22463 \change_deleted 564990737 1669801478
22464
22465 \family sans
22466 \size normal
22467 Comment
22468 \family default
22469  for a Comment
22470 \end_layout
22471
22472 \begin_layout Itemize
22473
22474 \change_deleted 564990737 1669801478
22475
22476 \family sans
22477 \size normal
22478 Note
22479 \family default
22480  for a Note
22481 \end_layout
22482
22483 \begin_layout Itemize
22484
22485 \change_deleted 564990737 1669801478
22486
22487 \family sans
22488 \size normal
22489 Paper
22490 \family default
22491  for a Paper (same as Title)
22492 \end_layout
22493
22494 \begin_layout Itemize
22495
22496 \change_deleted 564990737 1669801478
22497
22498 \family sans
22499 \size normal
22500 Prelim
22501 \family default
22502  for a Preliminary communication
22503 \end_layout
22504
22505 \begin_layout Itemize
22506
22507 \change_deleted 564990737 1669801478
22508
22509 \family sans
22510 \size normal
22511 Rapid
22512 \family default
22513  for a Rapid communication
22514 \end_layout
22515
22516 \begin_layout Itemize
22517
22518 \change_deleted 564990737 1669801478
22519
22520 \family sans
22521 \size normal
22522 Letter
22523 \family default
22524  for a Letter to the editor
22525 \end_layout
22526
22527 \end_deeper
22528 \begin_layout Itemize
22529
22530 \change_deleted 564990737 1669801478
22531
22532 \size normal
22533 All title environments except of 
22534 \family sans
22535 Letter
22536 \family default
22537  can have an optional short title.
22538 \end_layout
22539
22540 \begin_layout Itemize
22541
22542 \change_deleted 564990737 1669801478
22543 There is a general title environment 
22544 \family sans
22545 Article
22546 \family default
22547  which is not directly supported by \SpecialChar LyX
22548 .
22549  This can be used as \SpecialChar TeX
22550  code when your document doesn't fit into one of the
22551  other title types.
22552 \end_layout
22553
22554 \begin_layout Standard
22555
22556 \change_deleted 564990737 1669801478
22557 For more informations like hints for special table and formula formatting,
22558  look at the IOP author guidelines.
22559 \change_unchanged
22560
22561 \end_layout
22562
22563 \begin_layout Section
22564
22565 \change_deleted 564990737 1670317155
22566 Kluwer
22567 \end_layout
22568
22569 \begin_layout Standard
22570
22571 \change_deleted 564990737 1670317155
22572 by 
22573 \noun on
22574 Panayotis Papasotiriou
22575 \end_layout
22576
22577 \begin_layout Subsection
22578
22579 \change_deleted 564990737 1670317155
22580 Overview
22581 \end_layout
22582
22583 \begin_layout Standard
22584
22585 \change_deleted 564990737 1670317155
22586 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
22587  that facilitates electronic manuscript submission to the journals they
22588  publish.
22589  Most known of them (at least in my domain of interest) are 
22590 \emph on
22591 Astrophysics and Space Science
22592 \emph default
22593  and 
22594 \emph on
22595 Solar Physics
22596 \emph default
22597 , but there are many others (see a complete list at 
22598 \begin_inset Flex URL
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602
22603 http://www.wkap.nl/jrnllist.htm/JRNLHOME
22604 \end_layout
22605
22606 \end_inset
22607
22608 ).
22609  The Kluwer package may be downloaded from the site 
22610 \begin_inset Flex URL
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614
22615 http://www.wkap.nl/kaphtml.htm/STYLEFILES
22616 \end_layout
22617
22618 \end_inset
22619
22620 .
22621  A complete user guide is contained in that package (but it can also be
22622  downloaded separately).
22623 \end_layout
22624
22625 \begin_layout Standard
22626
22627 \change_deleted 564990737 1670317155
22628 \SpecialChar LyX
22629  supports many features of the package but not everything.
22630  However, the \SpecialChar TeX
22631  code needed is reduced to some 
22632 \begin_inset Quotes eld
22633 \end_inset
22634
22635 peculiar
22636 \begin_inset Quotes erd
22637 \end_inset
22638
22639  commands of the package (see
22640 \begin_inset space ~
22641 \end_inset
22642
22643
22644 \begin_inset CommandInset ref
22645 LatexCommand ref
22646 reference "subsec:kluwer_peculiarities"
22647
22648 \end_inset
22649
22650 ).
22651  I have recently used \SpecialChar LyX
22652  to write an article submitted to the 
22653 \emph on
22654 Astrophysics and Space Science
22655 \emph default
22656  without any problem.
22657 \end_layout
22658
22659 \begin_layout Subsection
22660
22661 \change_deleted 564990737 1670317155
22662 Writing a paper
22663 \end_layout
22664
22665 \begin_layout Standard
22666
22667 \change_deleted 564990737 1670317155
22668 The easiest way to write a paper is to start with the Kluwer template file.
22669  Click on 
22670 \family sans
22671 File\SpecialChar menuseparator
22672 New from
22673 \family default
22674  
22675 \family sans
22676 Template
22677 \family default
22678 , then choose the 
22679 \family typewriter
22680 kluwer.lyx
22681 \family default
22682  template.
22683  This will give an (almost) empty document that includes the most common
22684  fields found in a manuscript and a short description of their use.
22685  As in most templates, simply overwrite the existing text (including the
22686  brackets, 
22687 \family typewriter
22688 <>
22689 \family default
22690 ) with the correct information.
22691 \end_layout
22692
22693 \begin_layout Subsection
22694
22695 \change_deleted 564990737 1670317155
22696 Preparing a paper for submission
22697 \end_layout
22698
22699 \begin_layout Standard
22700
22701 \change_deleted 564990737 1670317155
22702 As in the AAS\SpecialChar TeX
22703  package, before you submit your paper to a journal you must
22704  
22705 \begin_inset Quotes eld
22706 \end_inset
22707
22708 postprocess
22709 \begin_inset Quotes erd
22710 \end_inset
22711
22712  it as follows.
22713 \end_layout
22714
22715 \begin_layout Enumerate
22716
22717 \change_deleted 564990737 1670317155
22718 Export your paper as a \SpecialChar LaTeX
22719  file.
22720  To do this, click on 
22721 \family sans
22722 File\SpecialChar menuseparator
22723 Export\SpecialChar menuseparator
22724 \SpecialChar LaTeX
22725
22726 \family default
22727 .
22728  
22729 \end_layout
22730
22731 \begin_layout Enumerate
22732
22733 \change_deleted 564990737 1670317155
22734 Edit the resulting 
22735 \family typewriter
22736 .tex
22737 \family default
22738  file with a text editor and make the following changes
22739 \end_layout
22740
22741 \begin_deeper
22742 \begin_layout Enumerate
22743
22744 \change_deleted 564990737 1670317155
22745 remove the comment lines before the 
22746 \family typewriter
22747
22748 \backslash
22749 documentclass
22750 \family default
22751  command,
22752 \end_layout
22753
22754 \begin_layout Enumerate
22755
22756 \change_deleted 564990737 1670317155
22757 remove everything between (and including) the 
22758 \family typewriter
22759
22760 \backslash
22761 makeatletter
22762 \family default
22763  and 
22764 \family typewriter
22765
22766 \backslash
22767 makeatother
22768 \family default
22769  commands, except for any commands you specifically put into the \SpecialChar LaTeX
22770  preamble.
22771 \end_layout
22772
22773 \begin_layout Standard
22774
22775 \change_deleted 564990737 1670317155
22776 Save the resulting 
22777 \family typewriter
22778 .tex
22779 \family default
22780  file.
22781 \end_layout
22782
22783 \end_deeper
22784 \begin_layout Enumerate
22785
22786 \change_deleted 564990737 1670317155
22787 Run the 
22788 \family typewriter
22789 .tex
22790 \family default
22791  file through \SpecialChar LaTeX
22792  as many times as necessary (usually up to three).
22793 \end_layout
22794
22795 \begin_layout Enumerate
22796
22797 \change_deleted 564990737 1670317155
22798 View the resulting 
22799 \family typewriter
22800 .dvi
22801 \family default
22802  document using, e.
22803 \begin_inset space \thinspace{}
22804 \end_inset
22805
22806 g.
22807 \begin_inset space \space{}
22808 \end_inset
22809
22810
22811 \family sans
22812 xdvi
22813 \family default
22814 , and check if everything is OK (it should, if you didn't make any mistake).
22815 \end_layout
22816
22817 \begin_layout Subsection
22818
22819 \change_deleted 564990737 1670317155
22820 \begin_inset Quotes eld
22821 \end_inset
22822
22823 Peculiarities
22824 \begin_inset Quotes erd
22825 \end_inset
22826
22827  of the Kluwer package
22828 \begin_inset CommandInset label
22829 LatexCommand label
22830 name "subsec:kluwer_peculiarities"
22831
22832 \end_inset
22833
22834
22835 \end_layout
22836
22837 \begin_layout Standard
22838
22839 \change_deleted 564990737 1670317155
22840 The Kluwer package has the following 
22841 \begin_inset Quotes eld
22842 \end_inset
22843
22844 peculiarities
22845 \begin_inset Quotes erd
22846 \end_inset
22847
22848 .
22849 \end_layout
22850
22851 \begin_layout Enumerate
22852
22853 \change_deleted 564990737 1670317155
22854 It is possible to write multiple articles in the same \SpecialChar LaTeX
22855  file
22856 \begin_inset Foot
22857 status collapsed
22858
22859 \begin_layout Plain Layout
22860 I can't imagine any good reason to do this.
22861 \end_layout
22862
22863 \end_inset
22864
22865 .
22866  Each article must be included in the environment 
22867 \begin_inset Quotes eld
22868 \end_inset
22869
22870 article
22871 \begin_inset Quotes erd
22872 \end_inset
22873
22874 .
22875  Unfortunately, this environment cannot be omitted, even if you write just
22876  one article.
22877  Therefore, each article starts with the command 
22878 \family typewriter
22879
22880 \backslash
22881 begin{article}
22882 \family default
22883  and, obviously, ends with the command 
22884 \family typewriter
22885
22886 \backslash
22887 end{article}
22888 \family default
22889 .
22890  Although this can be implemented in \SpecialChar LyX
22891 , I didn't included it, since it looks
22892  ugly and can confuse the novice user.
22893  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
22894  code (the
22895  well-known 
22896 \begin_inset Quotes eld
22897 \end_inset
22898
22899 \SpecialChar TeX
22900  code
22901 \begin_inset Quotes erd
22902 \end_inset
22903
22904 ).
22905 \end_layout
22906
22907 \begin_layout Enumerate
22908
22909 \change_deleted 564990737 1670317155
22910 Information given at the beginning of the article (i.
22911 \begin_inset space \thinspace{}
22912 \end_inset
22913
22914 e.
22915 \begin_inset space \space{}
22916 \end_inset
22917
22918 title, subtitle, author, institution, running title, running author, abstract
22919  and keywords) must be included in an environment called 
22920 \begin_inset Quotes eld
22921 \end_inset
22922
22923 opening
22924 \begin_inset Quotes erd
22925 \end_inset
22926
22927 .
22928  This is not implemented in \SpecialChar LyX
22929 , so you must enter title, subtitle etc.
22930 \begin_inset space ~
22931 \end_inset
22932
22933 between two \SpecialChar TeX
22934  code lines (
22935 \family typewriter
22936
22937 \backslash
22938 begin{opening}
22939 \family default
22940  and 
22941 \family typewriter
22942
22943 \backslash
22944 end{opening}
22945 \family default
22946 ).
22947 \end_layout
22948
22949 \begin_layout Enumerate
22950
22951 \change_deleted 564990737 1670317155
22952 According to the user manual, the label of each bibliography item must be
22953  written as 
22954 \family typewriter
22955
22956 \backslash
22957 protect
22958 \backslash
22959 citeauthoryear{
22960 \family default
22961 \emph on
22962 author(s)
22963 \family typewriter
22964 \emph default
22965 }{
22966 \family default
22967 \emph on
22968 year
22969 \family typewriter
22970 \emph default
22971 }
22972 \family default
22973 .
22974 \end_layout
22975
22976 \begin_layout Standard
22977
22978 \change_deleted 564990737 1670317155
22979 The 
22980 \family typewriter
22981 kluwer.lyx
22982 \family default
22983  template takes care of all these 
22984 \begin_inset Quotes eld
22985 \end_inset
22986
22987 peculiarities
22988 \begin_inset Quotes erd
22989 \end_inset
22990
22991 .
22992  If you start a new paper using this template you don't need to do anything
22993  special.
22994  Just 
22995 \end_layout
22996
22997 \begin_layout Enumerate
22998
22999 \change_deleted 564990737 1670317155
23000 don't delete the \SpecialChar TeX
23001  code included in the template, and
23002 \end_layout
23003
23004 \begin_layout Enumerate
23005
23006 \change_deleted 564990737 1670317155
23007 copy the example bibliography item included in the template and modify it
23008  as necessary to enter new bibliography items.
23009 \end_layout
23010
23011 \begin_layout Section
23012
23013 \change_deleted 564990737 1671097446
23014 Paper
23015 \end_layout
23016
23017 \begin_layout Standard
23018
23019 \change_deleted 564990737 1671097446
23020 The document class 
23021 \family sans
23022 paper
23023 \family default
23024  provides an alternative to the standard 
23025 \family sans
23026 article
23027 \family default
23028  class.
23029  It provides similar functionality, but you might prefer this layout with
23030  sans serif sections, headings, and more.
23031 \end_layout
23032
23033 \begin_layout Section
23034
23035 \change_deleted 564990737 1671097446
23036 Springer Journals (
23037 \family sans
23038 svjour
23039 \family default
23040 )
23041 \end_layout
23042
23043 \begin_layout Standard
23044
23045 \change_deleted 564990737 1671097446
23046 by 
23047 \noun on
23048 Martin Vermeer
23049 \end_layout
23050
23051 \begin_layout Subsection
23052
23053 \change_deleted 564990737 1671097446
23054 Description
23055 \end_layout
23056
23057 \begin_layout Standard
23058
23059 \change_deleted 564990737 1671097446
23060 These are the layout files for some of the journal formats used by Springer
23061  Verlag and listed on 
23062 \begin_inset Flex URL
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066
23067 http://www.springer.de/author/tex/help-journals.html
23068 \end_layout
23069
23070 \end_inset
23071
23072 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
23073  now!).
23074  It is a modular system: the things common to all journals are implemented
23075  in 
23076 \family typewriter
23077 svjour.inc
23078 \family default
23079 , which journal-specific layout files (such as, e.
23080 \begin_inset space \thinspace{}
23081 \end_inset
23082
23083 g.
23084 \begin_inset space \space{}
23085 \end_inset
23086
23087
23088 \family typewriter
23089 svjog.layout
23090 \family default
23091  for Journal of Geodesy) can include.
23092 \end_layout
23093
23094 \begin_layout Standard
23095
23096 \change_deleted 564990737 1671097446
23097 This means that implementing support for any other Springer journal on this
23098  list is as simple as writing your own 
23099 \family typewriter
23100 sv
23101 \family default
23102 <myjournal>
23103 \family typewriter
23104 .layout
23105 \family default
23106  file following the outline given in 
23107 \family typewriter
23108 svjog.layout
23109 \family default
23110 .
23111  
23112 \end_layout
23113
23114 \begin_layout Standard
23115
23116 \change_deleted 564990737 1671097446
23117 It is reasonably well tested only for the Journal of Geodesy.
23118  
23119 \family typewriter
23120 svjour
23121 \family default
23122  and 
23123 \family typewriter
23124 svjog
23125 \family default
23126  come with the standard \SpecialChar LyX
23127  distribution.
23128  Install the relevant class file (downloaded from Springer) in a proper
23129  directory, reconfigure \SpecialChar LaTeX
23130  (in the te\SpecialChar TeX
23131  case by running 
23132 \family typewriter
23133 texhash
23134 \family default
23135 , as root if necessary — doesn't \SpecialChar LyX
23136  take care of this?), reconfigure \SpecialChar LyX
23137  and
23138  it should work.
23139 \end_layout
23140
23141 \begin_layout Subsection
23142
23143 \change_deleted 564990737 1671097446
23144 New styles
23145 \end_layout
23146
23147 \begin_layout Standard
23148
23149 \change_deleted 564990737 1671097446
23150 A large number of theorem-like styles — 
23151 \family sans
23152 Claim, Conjecture,
23153 \family default
23154  
23155 \family sans
23156 \SpecialChar ldots
23157 Theorem
23158 \family default
23159 .
23160 \end_layout
23161
23162 \begin_layout Standard
23163
23164 \change_deleted 564990737 1671097446
23165
23166 \family sans
23167 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
23168 _Title, Author_Running, Institute,
23169  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
23170 \family default
23171 .
23172  See the Springer class file documentation for details.
23173 \end_layout
23174
23175 \begin_layout Subsection
23176
23177 \change_deleted 564990737 1671097446
23178 Supported journals
23179 \end_layout
23180
23181 \begin_layout Itemize
23182
23183 \change_deleted 564990737 1671097446
23184
23185 \emph on
23186 Journal of Geodesy
23187 \emph default
23188
23189 \family typewriter
23190 svjog.layout
23191 \family default
23192  — Martin Vermeer
23193 \end_layout
23194
23195 \begin_layout Itemize
23196
23197 \change_deleted 564990737 1671097446
23198
23199 \emph on
23200 Probability Theory and Related Fields
23201 \emph default
23202
23203 \family typewriter
23204 svprobth.layout
23205 \family default
23206  — Jean-Marc Lasgouttes
23207 \end_layout
23208
23209 \begin_layout Standard
23210
23211 \change_deleted 564990737 1671097446
23212 Add your own, it isn't so hard!
23213 \end_layout
23214
23215 \begin_layout Subsection
23216
23217 \change_deleted 564990737 1671097446
23218 Credits
23219 \end_layout
23220
23221 \begin_layout Standard
23222
23223 \change_deleted 564990737 1671097446
23224 These files are partly based on the older 
23225 \family typewriter
23226 ejour2.layout
23227 \family default
23228 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
23229  2.09 style
23230  file from Springer.
23231  All this, and the 
23232 \family typewriter
23233 ejour2
23234 \family default
23235  layout, are now defunct.
23236  Jean-Marc Lasgouttes helped out big in making me find my way around the
23237  \SpecialChar LyX
23238  layout file mechanism.
23239 \end_layout
23240
23241 \begin_layout Subsection
23242
23243 \change_deleted 564990737 1671097446
23244 Bugs
23245 \end_layout
23246
23247 \begin_layout Standard
23248
23249 \change_deleted 564990737 1671097446
23250 Probably.
23251  But probably less than in the old hacked-\SpecialChar LaTeX
23252  
23253 \family typewriter
23254 ejour2
23255 \family default
23256 .
23257 \end_layout
23258
23259 \begin_layout Chapter
23260 \SpecialChar LyX
23261  Features needing Extra Software
23262 \end_layout
23263
23264 \begin_layout Section
23265 Checking \SpecialChar TeX
23266
23267 \end_layout
23268
23269 \begin_layout Standard
23270 by 
23271 \noun on
23272 Asger Alstrup
23273 \end_layout
23274
23275 \begin_layout Subsection
23276 Introduction
23277 \end_layout
23278
23279 \begin_layout Standard
23280 If you have the 
23281 \family typewriter
23282 chktex
23283 \family default
23284  program installed
23285 \begin_inset Foot
23286 status collapsed
23287
23288 \begin_layout Plain Layout
23289
23290 \family typewriter
23291 chktex
23292 \family default
23293  is not yet available when you are using the \SpecialChar LaTeX
23294  distribution MiK\SpecialChar TeX
23295 .
23296 \end_layout
23297
23298 \end_inset
23299
23300 , you'll find in the 
23301 \family sans
23302 Tools
23303 \family default
23304  menu the entry: 
23305 \family sans
23306 Check
23307 \begin_inset space ~
23308 \end_inset
23309
23310 TeX
23311 \family default
23312 .
23313  You can get 
23314 \family typewriter
23315 chktex
23316 \family default
23317  from CTAN,
23318 \begin_inset Newline newline
23319 \end_inset
23320
23321
23322 \begin_inset CommandInset href
23323 LatexCommand href
23324 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
23325 literal "false"
23326
23327 \end_inset
23328
23329 .
23330 \end_layout
23331
23332 \begin_layout Standard
23333 The 
23334 \family sans
23335 Chk\SpecialChar TeX
23336
23337 \family default
23338  package is a program that was written by 
23339 \begin_inset Flex Noun
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343 Jens T.
23344 \begin_inset space ~
23345 \end_inset
23346
23347 Berger Thielemann
23348 \end_layout
23349
23350 \end_inset
23351
23352  in frustration because some constructs in \SpecialChar LaTeX
23353  are sometimes non-intuitive,
23354  and easy to forget.
23355  The program runs over your \SpecialChar LaTeX
23356  file, checks the integrity of the file, and
23357  flags some common errors.
23358  In other technical words, it is 
23359 \family typewriter
23360 lint
23361 \family default
23362  for \SpecialChar LaTeX
23363 .
23364 \end_layout
23365
23366 \begin_layout Standard
23367 Well, what is a syntax checker doing in \SpecialChar LyX
23368  which is supposed to produce correct
23369  \SpecialChar LaTeX
23370  anyways? The answer is simple: Just as 
23371 \family typewriter
23372 Lint
23373 \family default
23374  not only checks the 
23375 \emph on
23376 syntax
23377 \emph default
23378  of C programs, but also does 
23379 \emph on
23380 semantic
23381 \emph default
23382  checks for type-errors, 
23383 \family sans
23384 Chk\SpecialChar TeX
23385
23386 \family default
23387  catches some common 
23388 \emph on
23389 typographic
23390 \emph default
23391  errors, in addition to the syntactical ones.
23392  Specifically, 
23393 \family sans
23394 Chk\SpecialChar TeX
23395
23396 \family default
23397  is capable of detecting several common errors, such as
23398 \end_layout
23399
23400 \begin_layout Itemize
23401 Ellipsis detection:
23402 \begin_inset Newline newline
23403 \end_inset
23404
23405 Use \SpecialChar ldots
23406  instead of ...
23407 \end_layout
23408
23409 \begin_layout Itemize
23410 No space in front of/after parenthesis:
23411 \begin_inset Newline newline
23412 \end_inset
23413
23414 ( wrong spacing )
23415 \end_layout
23416
23417 \begin_layout Itemize
23418 Enforcement of normal space after common abbreviations:
23419 \begin_inset Newline newline
23420 \end_inset
23421
23422 e.
23423 \begin_inset space \thinspace{}
23424 \end_inset
23425
23426 g.
23427 \begin_inset space \space{}
23428 \end_inset
23429
23430 is too wide spacing.
23431 \end_layout
23432
23433 \begin_layout Itemize
23434 Enforcement of end-of-sentence space when the last sentence ends with a
23435  capital letter:
23436 \begin_inset Newline newline
23437 \end_inset
23438
23439 This is a TEST.
23440  And this is wrong spacing.
23441 \end_layout
23442
23443 \begin_layout Itemize
23444 Space in front of labels and similar commands:
23445 \begin_inset Newline newline
23446 \end_inset
23447
23448 The label should stick right up to the text to avoid falling to a wrong
23449  page.
23450  
23451 \begin_inset CommandInset label
23452 LatexCommand label
23453 name "sec:chktex"
23454
23455 \end_inset
23456
23457  
23458 \begin_inset Foot
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 This footnote is in danger of falling off to a wrong page
23463 \end_layout
23464
23465 \end_inset
23466
23467  The label is separated too much.
23468 \end_layout
23469
23470 \begin_layout Itemize
23471 Space in front of references, instead of hard spaces:
23472 \begin_inset Newline newline
23473 \end_inset
23474
23475 If you have bad luck, the text will break right between the referenced text
23476  and reference number, and that's a pity.
23477  See section 
23478 \begin_inset CommandInset ref
23479 LatexCommand ref
23480 reference "sec:chktex"
23481
23482 \end_inset
23483
23484 .
23485 \end_layout
23486
23487 \begin_layout Itemize
23488 Use of 
23489 \begin_inset Quotes eld
23490 \end_inset
23491
23492 x
23493 \begin_inset Quotes erd
23494 \end_inset
23495
23496  instead of 
23497 \begin_inset Formula $\times$
23498 \end_inset
23499
23500  between numbers:
23501 \begin_inset Newline newline
23502 \end_inset
23503
23504 2x2 looks cheap compared to 
23505 \begin_inset Formula $2\times2$
23506 \end_inset
23507
23508 .
23509 \end_layout
23510
23511 \begin_layout Standard
23512 and more \SpecialChar ldots
23513  It is an invaluable tool when you are 
23514 \begin_inset Quotes eld
23515 \end_inset
23516
23517 finishing up
23518 \begin_inset Quotes erd
23519 \end_inset
23520
23521  your document before printing, and you should run it right after the obligatory
23522  spelling check, and before you go fine tuning the typesetting.
23523 \end_layout
23524
23525 \begin_layout Subsection
23526 How to use it
23527 \end_layout
23528
23529 \begin_layout Standard
23530 If you have the program installed, usage is as simple as choosing 
23531 \family sans
23532 Tools\SpecialChar menuseparator
23533 Check
23534 \begin_inset space ~
23535 \end_inset
23536
23537 TeX
23538 \family default
23539 .
23540  This will make \SpecialChar LyX
23541  generate a \SpecialChar LaTeX
23542  file of your document, start 
23543 \family sans
23544 Chk\SpecialChar TeX
23545
23546 \family default
23547  to check it, and then make \SpecialChar LyX
23548  insert 
23549 \begin_inset Quotes eld
23550 \end_inset
23551
23552 error boxes
23553 \begin_inset Quotes erd
23554 \end_inset
23555
23556  with the warnings from 
23557 \family sans
23558 Chk\SpecialChar TeX
23559
23560 \family default
23561 , if there were any.
23562  The warnings will be placed close to the point of the mistake, and you
23563  can quickly find them by using the 
23564 \family sans
23565 Navigate\SpecialChar menuseparator
23566 Error
23567 \family default
23568  menu item, or the shortcut key 
23569 \family sans
23570 C-g
23571 \family default
23572  from the default 
23573 \family typewriter
23574 cua
23575 \family default
23576  bind file.
23577  Open the error boxes by clicking on them with the mouse, or use the shortcut
23578  key 
23579 \family sans
23580 C-i
23581 \family default
23582  from 
23583 \family typewriter
23584 cua
23585 \family default
23586  bindings, or the corresponding 
23587 \family sans
23588 C-o
23589 \family default
23590  for the alternate 
23591 \family typewriter
23592 emacs
23593 \family default
23594  bind file.
23595  Read the warning and correct the mistake, if it is a mistake.
23596  If you have trouble understanding what the warning is about, you can safely
23597  ignore it.
23598  Remember that there is a hidden layer between the document on screen and
23599  the technical details in invoking 
23600 \family sans
23601 Chk\SpecialChar TeX
23602
23603 \family default
23604 , and this gap can make some warnings seem arcane or just plain silly.
23605 \end_layout
23606
23607 \begin_layout Standard
23608 This document is an excellent testing bed for the feature, and it should
23609  provide quite a few warnings for you to fiddle with.
23610  Since computers are only so smart, expect most of the warnings to be false
23611  alarms, though.
23612 \end_layout
23613
23614 \begin_layout Subsection
23615 How to fine tune it
23616 \end_layout
23617
23618 \begin_layout Standard
23619 Sometimes, you'll find that 
23620 \family sans
23621 Chk\SpecialChar TeX
23622
23623 \family default
23624  makes more noise than suits your mood.
23625  Then you can choose not to use it, wait until your mood changes, or try
23626  to customize 
23627 \family sans
23628 Chk\SpecialChar TeX
23629
23630 \family default
23631  to get better along with you.
23632 \end_layout
23633
23634 \begin_layout Standard
23635 Although 
23636 \family sans
23637 Chk\SpecialChar TeX
23638
23639 \family default
23640  
23641 \emph on
23642 is
23643 \emph default
23644  very configurable and extensible, you should not expect to solve all problems
23645  with 
23646 \family sans
23647 Chk\SpecialChar TeX
23648
23649 \family default
23650  in \SpecialChar LyX
23651  this way.
23652  Since \SpecialChar LyX
23653  has to generate a somewhat special \SpecialChar LaTeX
23654  file to be able to match the
23655  line numbers from the 
23656 \family sans
23657 Chk\SpecialChar TeX
23658
23659 \family default
23660  output
23661 \begin_inset Foot
23662 status collapsed
23663
23664 \begin_layout Plain Layout
23665 You can inspect the specific output from 
23666 \family sans
23667 chktex
23668 \family default
23669  by using 
23670 \family sans
23671 Document\SpecialChar menuseparator
23672 \SpecialChar LaTeX
23673
23674 \begin_inset space ~
23675 \end_inset
23676
23677 Log
23678 \family default
23679  right after a 
23680 \family sans
23681 chktex
23682 \family default
23683  run.
23684 \end_layout
23685
23686 \end_inset
23687
23688  to the internal document structure, some of the warnings will not appear
23689  correctly.
23690  There are two things you can do about this:
23691 \end_layout
23692
23693 \begin_layout Itemize
23694 Fine tune the 
23695 \family sans
23696 Chk\SpecialChar TeX
23697
23698 \family default
23699  invocation command line in 
23700 \begin_inset Flex Noun
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704 Tools\SpecialChar menuseparator
23705 Preferences\SpecialChar menuseparator
23706 Output\SpecialChar menuseparator
23707 LaTeX\SpecialChar menuseparator
23708 CheckTeX command
23709 \end_layout
23710
23711 \end_inset
23712
23713 , or the global 
23714 \family sans
23715 Chk\SpecialChar TeX
23716
23717 \family default
23718  installation configuration file (usually with the file 
23719 \family typewriter
23720 chktexrc
23721 \family default
23722 ).
23723  See below to learn what warnings can be enabled and disabled on the command
23724  line.
23725 \end_layout
23726
23727 \begin_layout Itemize
23728 Export your document as a raw \SpecialChar LaTeX
23729  file using 
23730 \family sans
23731 File\SpecialChar menuseparator
23732 Export\SpecialChar menuseparator
23733 \SpecialChar LaTeX
23734
23735 \family default
23736  and run 
23737 \family typewriter
23738 chktex
23739 \family default
23740  manually on that.
23741  Invoked in this way, it can be a hassle to find the corresponding place
23742  in the document inside \SpecialChar LyX
23743 , but with a little patience, you should be able
23744  to do it.
23745 \end_layout
23746
23747 \begin_layout Standard
23748 Here follows the warning messages that can be enabled and disabled in 
23749 \family sans
23750 Preferences
23751 \family default
23752 .
23753  Use 
23754 \family typewriter
23755 -n#
23756 \family default
23757  to disable a warning, and 
23758 \family typewriter
23759 -w#
23760 \family default
23761  to enable a warning.
23762  The emphasized entries are disabled by default, because the default is
23763  "
23764 \family typewriter
23765 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
23766 \family default
23767 ".
23768 \end_layout
23769
23770 \begin_layout Standard
23771 Notice that you should only use the options that enable and disable warnings,
23772  because \SpecialChar LyX
23773  relies on some of the other command line parameters to be set
23774  in a specific way to have a chance to communicate with 
23775 \family typewriter
23776 chktex
23777 \family default
23778 .
23779 \end_layout
23780
23781 \begin_layout Enumerate
23782
23783 \size small
23784 \emph on
23785 Command terminated with space.
23786 \end_layout
23787
23788 \begin_layout Enumerate
23789
23790 \size small
23791 Non-breaking space (
23792 \begin_inset Quotes eld
23793 \end_inset
23794
23795
23796 \family typewriter
23797 ~
23798 \family default
23799
23800 \begin_inset Quotes erd
23801 \end_inset
23802
23803 ) should have been used.
23804 \end_layout
23805
23806 \begin_layout Enumerate
23807
23808 \size small
23809 \emph on
23810 You should enclose the previous parenthesis with 
23811 \begin_inset Quotes eld
23812 \end_inset
23813
23814
23815 \family typewriter
23816 {}
23817 \family default
23818
23819 \begin_inset Quotes erd
23820 \end_inset
23821
23822 .
23823 \end_layout
23824
23825 \begin_layout Enumerate
23826
23827 \size small
23828 Italic correction (
23829 \begin_inset Quotes eld
23830 \end_inset
23831
23832
23833 \family typewriter
23834
23835 \backslash
23836 /
23837 \family default
23838
23839 \begin_inset Quotes erd
23840 \end_inset
23841
23842 ) found in non-italic buffer.
23843 \end_layout
23844
23845 \begin_layout Enumerate
23846
23847 \size small
23848 Italic correction (
23849 \begin_inset Quotes eld
23850 \end_inset
23851
23852
23853 \family typewriter
23854
23855 \backslash
23856 /
23857 \family default
23858
23859 \begin_inset Quotes erd
23860 \end_inset
23861
23862 ) found more than once.
23863 \end_layout
23864
23865 \begin_layout Enumerate
23866
23867 \size small
23868 \emph on
23869 No italic correction (
23870 \begin_inset Quotes eld
23871 \end_inset
23872
23873
23874 \family typewriter
23875
23876 \backslash
23877 /
23878 \family default
23879
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883 ) found.
23884 \end_layout
23885
23886 \begin_layout Enumerate
23887
23888 \size small
23889 Accent command 
23890 \begin_inset Quotes eld
23891 \end_inset
23892
23893
23894 \family typewriter
23895 cmd
23896 \family default
23897
23898 \begin_inset Quotes erd
23899 \end_inset
23900
23901  needs use of 
23902 \begin_inset Quotes eld
23903 \end_inset
23904
23905
23906 \family typewriter
23907 cmd
23908 \family default
23909
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913 .
23914 \end_layout
23915
23916 \begin_layout Enumerate
23917
23918 \size small
23919 Wrong length of dash may have been used.
23920 \end_layout
23921
23922 \begin_layout Enumerate
23923
23924 \size small
23925 \emph on
23926 \begin_inset Quotes eld
23927 \end_inset
23928
23929
23930 \family typewriter
23931 %s
23932 \family default
23933
23934 \begin_inset Quotes erd
23935 \end_inset
23936
23937  expected, found 
23938 \begin_inset Quotes eld
23939 \end_inset
23940
23941
23942 \family typewriter
23943 %s
23944 \family default
23945
23946 \begin_inset Quotes erd
23947 \end_inset
23948
23949 .
23950 \end_layout
23951
23952 \begin_layout Enumerate
23953
23954 \size small
23955 Solo 
23956 \begin_inset Quotes eld
23957 \end_inset
23958
23959
23960 \family typewriter
23961 %s
23962 \family default
23963
23964 \begin_inset Quotes erd
23965 \end_inset
23966
23967  found.
23968 \end_layout
23969
23970 \begin_layout Enumerate
23971
23972 \size small
23973 You should use 
23974 \begin_inset Quotes eld
23975 \end_inset
23976
23977
23978 \family typewriter
23979 %s
23980 \family default
23981
23982 \begin_inset Quotes erd
23983 \end_inset
23984
23985  to achieve an ellipsis.
23986 \end_layout
23987
23988 \begin_layout Enumerate
23989
23990 \size small
23991 Inter-word spacing (
23992 \begin_inset Quotes eld
23993 \end_inset
23994
23995
23996 \family typewriter
23997
23998 \backslash
23999
24000 \family default
24001  
24002 \begin_inset Quotes eld
24003 \end_inset
24004
24005 ) should perhaps be used.
24006 \end_layout
24007
24008 \begin_layout Enumerate
24009
24010 \size small
24011 Inter-sentence spacing (
24012 \begin_inset Quotes eld
24013 \end_inset
24014
24015
24016 \family typewriter
24017
24018 \backslash
24019 @
24020 \family default
24021
24022 \begin_inset Quotes erd
24023 \end_inset
24024
24025 ) should perhaps be used.
24026 \end_layout
24027
24028 \begin_layout Enumerate
24029
24030 \size small
24031 Could not find argument for command.
24032 \end_layout
24033
24034 \begin_layout Enumerate
24035
24036 \size small
24037 No match found for 
24038 \begin_inset Quotes eld
24039 \end_inset
24040
24041
24042 \family typewriter
24043 %s
24044 \family default
24045
24046 \begin_inset Quotes erd
24047 \end_inset
24048
24049 .
24050 \end_layout
24051
24052 \begin_layout Enumerate
24053
24054 \size small
24055 Math mode still on at end of \SpecialChar LaTeX
24056  file.
24057 \end_layout
24058
24059 \begin_layout Enumerate
24060
24061 \size small
24062 Number of 
24063 \begin_inset Quotes eld
24064 \end_inset
24065
24066
24067 \family typewriter
24068 char
24069 \family default
24070
24071 \begin_inset Quotes erd
24072 \end_inset
24073
24074  doesn't match the number of 
24075 \begin_inset Quotes eld
24076 \end_inset
24077
24078
24079 \family typewriter
24080 char
24081 \family default
24082
24083 \begin_inset Quotes erd
24084 \end_inset
24085
24086 .
24087 \end_layout
24088
24089 \begin_layout Enumerate
24090
24091 \size small
24092 You should use either 
24093 \family typewriter
24094
24095 \begin_inset Quotes eld
24096 \end_inset
24097
24098
24099 \family default
24100  or 
24101 \family typewriter
24102
24103 \begin_inset Quotes erd
24104 \end_inset
24105
24106
24107 \family default
24108  as an alternative to 
24109 \begin_inset Quotes eld
24110 \end_inset
24111
24112
24113 \family typewriter
24114 "
24115 \family default
24116
24117 \begin_inset Quotes erd
24118 \end_inset
24119
24120 .
24121 \end_layout
24122
24123 \begin_layout Enumerate
24124
24125 \size small
24126 You should use "
24127 \family typewriter
24128 '
24129 \family default
24130 " (ASCII 39) instead of "
24131 \family typewriter
24132 ´
24133 \family default
24134 " (ASCII 180).
24135 \end_layout
24136
24137 \begin_layout Enumerate
24138
24139 \size small
24140 User-specified pattern found.
24141 \end_layout
24142
24143 \begin_layout Enumerate
24144
24145 \size small
24146 This command might not be intended.
24147 \end_layout
24148
24149 \begin_layout Enumerate
24150
24151 \size small
24152 \emph on
24153 Comment displayed.
24154 \end_layout
24155
24156 \begin_layout Enumerate
24157
24158 \size small
24159 Either 
24160 \family typewriter
24161 ''
24162 \backslash
24163 ,'
24164 \family default
24165  or 
24166 \family typewriter
24167 '
24168 \backslash
24169 ,''
24170 \family default
24171  will look better.
24172 \end_layout
24173
24174 \begin_layout Enumerate
24175
24176 \size small
24177 Delete this space to maintain correct page references.
24178 \end_layout
24179
24180 \begin_layout Enumerate
24181
24182 \size small
24183 \emph on
24184 You might wish to put this between a pair of 
24185 \begin_inset Quotes eld
24186 \end_inset
24187
24188
24189 \family typewriter
24190 {}
24191 \family default
24192
24193 \begin_inset Quotes erd
24194 \end_inset
24195
24196 .
24197 \end_layout
24198
24199 \begin_layout Enumerate
24200
24201 \size small
24202 You ought to remove spaces in front of punctuation.
24203 \end_layout
24204
24205 \begin_layout Enumerate
24206
24207 \size small
24208 Could not execute \SpecialChar LaTeX
24209  command.
24210 \end_layout
24211
24212 \begin_layout Enumerate
24213
24214 \size small
24215 Don't use 
24216 \family typewriter
24217
24218 \backslash
24219 /
24220 \family default
24221  in front of small punctuation.
24222 \end_layout
24223
24224 \begin_layout Enumerate
24225
24226 \family typewriter
24227 \size small
24228 $
24229 \backslash
24230 times$
24231 \family default
24232  may look prettier here.
24233 \end_layout
24234
24235 \begin_layout Enumerate
24236
24237 \size small
24238 \emph on
24239 Multiple spaces detected in output.
24240 \end_layout
24241
24242 \begin_layout Enumerate
24243
24244 \size small
24245 This text may be ignored.
24246 \end_layout
24247
24248 \begin_layout Enumerate
24249
24250 \size small
24251 Use 
24252 \family typewriter
24253
24254 \begin_inset Quotes eld
24255 \end_inset
24256
24257
24258 \family default
24259  to begin quotation, not 
24260 \family typewriter
24261 '
24262 \family default
24263 .
24264 \end_layout
24265
24266 \begin_layout Enumerate
24267
24268 \size small
24269 Use 
24270 \family typewriter
24271 '
24272 \family default
24273  to end quotation, not 
24274 \family typewriter
24275
24276 \begin_inset Quotes eld
24277 \end_inset
24278
24279
24280 \family default
24281 .
24282 \end_layout
24283
24284 \begin_layout Enumerate
24285
24286 \size small
24287 Don't mix quotes.
24288 \end_layout
24289
24290 \begin_layout Enumerate
24291
24292 \size small
24293 You should perhaps use 
24294 \begin_inset Quotes eld
24295 \end_inset
24296
24297
24298 \family typewriter
24299 cmd
24300 \family default
24301
24302 \begin_inset Quotes erd
24303 \end_inset
24304
24305  instead.
24306 \end_layout
24307
24308 \begin_layout Enumerate
24309
24310 \size small
24311 You should put a space in front of/after parenthesis.
24312 \end_layout
24313
24314 \begin_layout Enumerate
24315
24316 \size small
24317 You should avoid spaces in front of/after parenthesis.
24318 \end_layout
24319
24320 \begin_layout Enumerate
24321
24322 \size small
24323 \emph on
24324 You should not use punctuation in front of/after quotes.
24325 \end_layout
24326
24327 \begin_layout Enumerate
24328
24329 \size small
24330 Double space found.
24331 \end_layout
24332
24333 \begin_layout Enumerate
24334
24335 \size small
24336 You should put punctuation outside inner/inside display math mode.
24337 \end_layout
24338
24339 \begin_layout Enumerate
24340
24341 \size small
24342 You ought to not use primitive \SpecialChar TeX
24343  in \SpecialChar LaTeX
24344  code.
24345 \end_layout
24346
24347 \begin_layout Enumerate
24348
24349 \size small
24350 You should remove spaces in front of 
24351 \begin_inset Quotes eld
24352 \end_inset
24353
24354
24355 \family typewriter
24356 %s
24357 \family default
24358
24359 \begin_inset Quotes erd
24360 \end_inset
24361
24362
24363 \end_layout
24364
24365 \begin_layout Enumerate
24366
24367 \size small
24368 \begin_inset Quotes eld
24369 \end_inset
24370
24371
24372 \family typewriter
24373 %s
24374 \family default
24375
24376 \begin_inset Quotes erd
24377 \end_inset
24378
24379  is normally not followed by 
24380 \begin_inset Quotes eld
24381 \end_inset
24382
24383
24384 \family typewriter
24385 %c
24386 \family default
24387
24388 \begin_inset Quotes erd
24389 \end_inset
24390
24391 .
24392 \end_layout
24393
24394 \begin_layout Standard
24395 In later versions of \SpecialChar LyX
24396 , we hope to provide a more complete interface to this
24397  tool (and it's smaller cousin 
24398 \family typewriter
24399 lacheck
24400 \family default
24401 ) to exploit the full power of it.
24402  But it's not exactly useless as it is now: go try it on one of your existing
24403  documents of a certain length and be surprised.
24404 \end_layout
24405
24406 \begin_layout Section
24407 Version Control in \SpecialChar LyX
24408
24409 \end_layout
24410
24411 \begin_layout Standard
24412 by
24413 \noun on
24414  Lars Gullik Bjønnes 
24415 \noun default
24416 and 
24417 \noun on
24418 Pavel Sanda
24419 \end_layout
24420
24421 \begin_layout Subsection
24422 Introduction
24423 \end_layout
24424
24425 \begin_layout Standard
24426 \SpecialChar LyX
24427  supports some of the most basic RCS/CVS/SVN/GIT commands.
24428  If you need something a bit more sophisticated you will have to do that
24429  manually in a terminal.
24430 \end_layout
24431
24432 \begin_layout Standard
24433 Also note that CVS support is not as good as subversion support, so we advise
24434  using SVN instead.
24435  A good place to start learning Subversion is the SVN Book
24436 \begin_inset Foot
24437 status collapsed
24438
24439 \begin_layout Plain Layout
24440 \begin_inset CommandInset href
24441 LatexCommand href
24442 target "http://svnbook.red-bean.com/"
24443 literal "false"
24444
24445 \end_inset
24446
24447
24448 \end_layout
24449
24450 \end_inset
24451
24452 .
24453  In the case of RCS you should read 
24454 \begin_inset Quotes eld
24455 \end_inset
24456
24457 rcsintro
24458 \begin_inset Quotes erd
24459 \end_inset
24460
24461  (a man file, read it with 
24462 \family typewriter
24463 man rcsintro
24464 \family default
24465 ).
24466  This file describes all the basic features of RCS.
24467  You should especially notice the comment about a RCS directory, and the
24468  notion of a master RCS file (the file ending in 
24469 \family typewriter
24470 ,v
24471 \family default
24472 ).
24473 \end_layout
24474
24475 \begin_layout Standard
24476 Before you begin to use the version control features in \SpecialChar LyX
24477 , you should be
24478  familiar with RCS/CVS/SVN/GIT usage.
24479  The implementation in \SpecialChar LyX
24480  assumes a recent version of the GNU RCS or CVS/SVN
24481  package — no guarantees are made for older versions.
24482  Most of the log messages are not currently displayed after operations —
24483  you can check them in the Messages pane if you are unsure.
24484  Regular users of version control will appreciate the VC toolbar, which
24485  can be enabled via 
24486 \family sans
24487 View\SpecialChar menuseparator
24488 Toolbars\SpecialChar menuseparator
24489 Version
24490 \begin_inset space ~
24491 \end_inset
24492
24493 Control
24494 \family default
24495 .
24496 \end_layout
24497
24498 \begin_layout Standard
24499 For introducing your own external commands consult 
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 vc-command
24505 \end_layout
24506
24507 \end_inset
24508
24509  in the manual 
24510 \emph on
24511 \SpecialChar LyX
24512  Functions
24513 \emph default
24514 .
24515 \end_layout
24516
24517 \begin_layout Standard
24518 It is strongly recommended to store documents in uncompressed format if
24519  using version control (uncheck 
24520 \family sans
24521 Document\SpecialChar menuseparator
24522 Compressed
24523 \family default
24524  if it is checked): Uncompressed LyX documents are text files and therefore
24525  for merging two different versions by version control systems.
24526  Compressed LyX documents are binary files, which cannot be merged by version
24527  control systems.
24528 \end_layout
24529
24530 \begin_layout Subsection
24531 RCS commands in \SpecialChar LyX
24532
24533 \end_layout
24534
24535 \begin_layout Standard
24536 The following sections describe the RCS commands supported by \SpecialChar LyX
24537 .
24538  You can find them in the 
24539 \family sans
24540 File\SpecialChar menuseparator
24541 Version
24542 \begin_inset space ~
24543 \end_inset
24544
24545 Control
24546 \family default
24547  submenu.
24548  \SpecialChar LyX
24549  was tested against RCS 5.7/5.8.
24550 \end_layout
24551
24552 \begin_layout Subsubsection
24553
24554 \family sans
24555 Register
24556 \end_layout
24557
24558 \begin_layout Standard
24559 If your document is not under revision control, this is the only item shown
24560  in the menu.
24561  And if it is under revision control, the 
24562 \family sans
24563 Register
24564 \family default
24565  item is not visible.
24566  
24567 \end_layout
24568
24569 \begin_layout Standard
24570 This command registers your document with RCS (unless you are under the
24571  directory managed by CVS)\SpecialChar endofsentence
24572  You are asked interactively to supply an initial
24573  description of the document.
24574  The document is now set in Read-Only mode and you have to 
24575 \family sans
24576 Check
24577 \begin_inset space ~
24578 \end_inset
24579
24580 Out
24581 \begin_inset space ~
24582 \end_inset
24583
24584 For
24585 \begin_inset space ~
24586 \end_inset
24587
24588 Edit
24589 \family default
24590 , before making any changes to it.
24591  A document under revision control has a 
24592 \begin_inset Quotes eld
24593 \end_inset
24594
24595 [RCS:<version> <locker>]
24596 \begin_inset Quotes erd
24597 \end_inset
24598
24599  item tagged to the filename in the minibuffer.
24600 \end_layout
24601
24602 \begin_layout Standard
24603 RCS command that is run:
24604 \end_layout
24605
24606 \begin_layout LyX-Code
24607
24608 \family typewriter
24609 ci -q -u -i -t-"<initial description>" <file-name>
24610 \end_layout
24611
24612 \begin_layout Standard
24613 Read 
24614 \family typewriter
24615 man ci
24616 \family default
24617  to understand the switches.
24618  
24619 \end_layout
24620
24621 \begin_layout Subsubsection
24622
24623 \family sans
24624 Check In Changes
24625 \end_layout
24626
24627 \begin_layout Standard
24628 When you are finished editing a file, you check in your changes.
24629  When you do this, you are asked for a description of the changes.
24630  This is stored in the history log.
24631  The version number is bumped, your changes are applied to the master RCS
24632  file, the document is unlocked and set to Read-Only mode.
24633 \end_layout
24634
24635 \begin_layout Itemize
24636 RCS command: 
24637 \family typewriter
24638 ci -q -u -m"<description>" <file-name>
24639 \end_layout
24640
24641 \begin_layout Subsubsection
24642
24643 \family sans
24644 Check Out For Edit
24645 \end_layout
24646
24647 \begin_layout Standard
24648 By doing this you lock the document so that only you can edit it.
24649  This will also make the document Read-Write only for you.
24650  You will usually continue editing for a while and when you are finished
24651  you check in your changes.
24652  The status line is changed to reflect that you have locked the file.
24653 \end_layout
24654
24655 \begin_layout Itemize
24656 RCS command: 
24657 \family typewriter
24658 co -q -l <file-name>
24659 \end_layout
24660
24661 \begin_layout Subsubsection
24662
24663 \family sans
24664 Revert To Repository Version
24665 \end_layout
24666
24667 \begin_layout Standard
24668 This will discard all changes made to the document since the last check
24669  in.
24670  You get a warning before changes are discarded.
24671 \end_layout
24672
24673 \begin_layout Itemize
24674 RCS command: 
24675 \family typewriter
24676 co -f -u<version> <file-name>
24677 \end_layout
24678
24679 \begin_layout Subsubsection
24680
24681 \family sans
24682 Copy
24683 \end_layout
24684
24685 \begin_layout Standard
24686 This will create a copy of the current document.
24687  Since RCS does not support copy operations natively, the version history
24688  is not preserved, and the copy is added as a new file.
24689  It requires a clean document without any changes since the last checkin.
24690  You are asked for a file name and a description of the copy operation.
24691  After that the copy is created, both locally and in the repository.
24692  If the parent directories of the copied and original document differ, all
24693  relative paths of included files of the copy are adjusted (like in 
24694 \family sans
24695 File\SpecialChar menuseparator
24696 Save As
24697 \family default
24698 \SpecialChar ldots
24699 ).
24700  Finally, the copy is loaded instead of the original document.
24701 \end_layout
24702
24703 \begin_layout Labeling
24704 \labelwidthstring 00.00.0000
24705 RCS
24706 \begin_inset space ~
24707 \end_inset
24708
24709 commands: 
24710 \begin_inset space ~
24711 \end_inset
24712
24713
24714 \begin_inset Newline newline
24715 \end_inset
24716
24717 Copy 
24718 \begin_inset Flex Code
24719 status collapsed
24720
24721 \begin_layout Plain Layout
24722
24723 \family typewriter
24724 \begin_inset Quotes qld
24725 \end_inset
24726
24727 <file-name>
24728 \begin_inset Quotes qld
24729 \end_inset
24730
24731
24732 \end_layout
24733
24734 \end_inset
24735
24736  to 
24737 \begin_inset Flex Code
24738 status collapsed
24739
24740 \begin_layout Plain Layout
24741
24742 \family typewriter
24743 \begin_inset Quotes qld
24744 \end_inset
24745
24746 <new-file-name>
24747 \begin_inset Quotes qld
24748 \end_inset
24749
24750
24751 \end_layout
24752
24753 \end_inset
24754
24755
24756 \begin_inset Newline newline
24757 \end_inset
24758
24759
24760 \begin_inset Flex Code
24761 status collapsed
24762
24763 \begin_layout Plain Layout
24764 ci -q -u 
24765 \family typewriter
24766 -i 
24767 \begin_inset Quotes qld
24768 \end_inset
24769
24770 <new-file-name>
24771 \begin_inset Quotes qld
24772 \end_inset
24773
24774
24775 \end_layout
24776
24777 \end_inset
24778
24779
24780 \end_layout
24781
24782 \begin_layout Subsubsection
24783
24784 \family sans
24785 Undo Last Checkin
24786 \end_layout
24787
24788 \begin_layout Standard
24789 This makes as if the last check in never happened.
24790  No changes are made to the document loaded into \SpecialChar LyX
24791 , but the last version
24792  is removed from the master RCS file.
24793 \end_layout
24794
24795 \begin_layout Itemize
24796 RCS command: 
24797 \family typewriter
24798 rcs -o<version> <file-name>
24799 \end_layout
24800
24801 \begin_layout Subsubsection
24802
24803 \family sans
24804 Show History
24805 \end_layout
24806
24807 \begin_layout Standard
24808 This shows the complete history of the RCS document.
24809  The output of 
24810 \family typewriter
24811 rlog <file-name>
24812 \family default
24813  is shown in a browser.
24814  See 
24815 \family typewriter
24816 man rlog
24817 \family default
24818  for more info.
24819 \end_layout
24820
24821 \begin_layout Subsubsection
24822 Revision info
24823 \end_layout
24824
24825 \begin_layout Standard
24826 \SpecialChar LyX
24827  supports RCS version number, author name, date and time of last commit.
24828  All those are extracted from 
24829 \family typewriter
24830 rlog -r <file-name>
24831 \family default
24832 .
24833  See 
24834 \begin_inset CommandInset ref
24835 LatexCommand ref
24836 reference "subsec:VCS-Revision-Information"
24837
24838 \end_inset
24839
24840  for details.
24841 \end_layout
24842
24843 \begin_layout Subsection
24844 CVS commands in \SpecialChar LyX
24845
24846 \end_layout
24847
24848 \begin_layout Standard
24849 A subset of CVS operations is supported by \SpecialChar LyX
24850 .
24851  You can find the commands in the 
24852 \family sans
24853 File\SpecialChar menuseparator
24854 Version
24855 \begin_inset space ~
24856 \end_inset
24857
24858 Control
24859 \family default
24860  submenu.
24861  The version control system SVN is more powerful, so please use it instead
24862  of CVS if possible.
24863 \end_layout
24864
24865 \begin_layout Subsubsection
24866
24867 \family sans
24868 General CVS usage
24869 \end_layout
24870
24871 \begin_layout Standard
24872 If you start from scratch with CVS you have to create your repository and
24873  checkout the working copy with external tools.
24874  If you're using a client-server setup you may need to login before doing
24875  the first repository checkout.
24876 \end_layout
24877
24878 \begin_layout Standard
24879 If your documents are under revision control and others are using the same
24880  repository problems arise when different changes to the same document at
24881  the same location happen.
24882  Standard CVS repositories don't operate with a file locking mechanism.
24883  This may be surprising, but conflicts only occur if people disagree on
24884  the proper content of the same part of a document.
24885  So, if co-workers are used to communicate regularly, these conflicts occur
24886  rarely.
24887  If they don't communicate they have a fundamental problem anyway.
24888  Nevertheless some people like to work with so called 
24889 \begin_inset Quotes eld
24890 \end_inset
24891
24892 reserved checkouts
24893 \begin_inset Quotes erd
24894 \end_inset
24895
24896 .
24897  If they do so the working copy of all files is readonly when checked out
24898  first and the user starts editing after using a special command to make
24899  the working copy writable.
24900  When the changes are checked in the working copy returns to readonly state.
24901  With \SpecialChar LyX
24902  one has to edit the 
24903 \begin_inset Flex Code
24904 status collapsed
24905
24906 \begin_layout Plain Layout
24907 .cvsrc
24908 \end_layout
24909
24910 \end_inset
24911
24912  file and add the line 
24913 \begin_inset Flex Code
24914 status collapsed
24915
24916 \begin_layout Plain Layout
24917 cvs -r
24918 \end_layout
24919
24920 \end_inset
24921
24922  to work with reserved checkouts.
24923  The benefit is the possibility to see who is using a writable copy of some
24924  document.
24925  It's not guaranteed only one user makes a copy writable.
24926 \end_layout
24927
24928 \begin_layout Standard
24929 \SpecialChar LyX
24930  tries to guess if you're using reserved or non-reserved checkouts.
24931  If your working copy is readonly or it is writable and an additional copy
24932  of your document exists in the CVS/Base sub-directory a reserved otherwise
24933  a non-reserved checkout is assumed.
24934  When a reserved checkout is detected you have to use 
24935 \begin_inset Flex Noun
24936 status collapsed
24937
24938 \begin_layout Plain Layout
24939 Check Out
24940 \end_layout
24941
24942 \end_inset
24943
24944  to make your working copy writable if it's readonly.
24945  After doing so the 
24946 \begin_inset Flex Noun
24947 status collapsed
24948
24949 \begin_layout Plain Layout
24950 Check In
24951 \end_layout
24952
24953 \end_inset
24954
24955  operation is possible and that makes your working copy readonly again after
24956  transferring your changes to the repository.
24957 \end_layout
24958
24959 \begin_layout Standard
24960 More information about CVS can be found here 
24961 \begin_inset Flex URL
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965
24966 http://www.nongnu.org/cvs
24967 \end_layout
24968
24969 \end_inset
24970
24971  and here 
24972 \begin_inset Flex URL
24973 status collapsed
24974
24975 \begin_layout Plain Layout
24976
24977 http://ximbiot.com/cvs
24978 \end_layout
24979
24980 \end_inset
24981
24982 .
24983 \end_layout
24984
24985 \begin_layout Standard
24986 Read 
24987 \family typewriter
24988 man cvs
24989 \family default
24990  to understand the sub-commands and the switches mentioned below.
24991 \end_layout
24992
24993 \begin_layout Subsubsection
24994
24995 \family sans
24996 Register
24997 \end_layout
24998
24999 \begin_layout Standard
25000 If your document is not under revision control, this is the only item shown
25001  in the menu.
25002  And if it is under revision control, the 
25003 \family sans
25004 Register
25005 \family default
25006  item is not visible.
25007  
25008 \end_layout
25009
25010 \begin_layout Standard
25011 This command registers in CVS your document 
25012 \begin_inset Flex Strong
25013 status collapsed
25014
25015 \begin_layout Plain Layout
25016
25017 \emph on
25018 only
25019 \end_layout
25020
25021 \end_inset
25022
25023  in the case you have already the documents directory under CVS control
25024  (in particular 
25025 \family typewriter
25026 CVS/Entries
25027 \family default
25028  file exists).
25029  This means you have to create or checkout the archive by yourself using
25030  external tools.
25031  (In case you forget that step \SpecialChar LyX
25032  registers the document with RCS.)
25033 \end_layout
25034
25035 \begin_layout Standard
25036 Then you are asked interactively to supply an initial description of the
25037  document.
25038  Don't forget that registered file is not yet checked in.
25039 \end_layout
25040
25041 \begin_layout Standard
25042 CVS command that is run: 
25043 \family typewriter
25044 cvs -q add -m"<entered message>" "<file-name>"
25045 \end_layout
25046
25047 \begin_layout Standard
25048 The term 
25049 \family typewriter
25050 "<file-name>"
25051 \family default
25052  above and for all other CVS commands is an abbreviation for 
25053 \begin_inset Quotes eld
25054 \end_inset
25055
25056 change the current working directory to file location and use the file name
25057  without path component as argument
25058 \begin_inset Quotes erd
25059 \end_inset
25060
25061 .
25062 \end_layout
25063
25064 \begin_layout Subsubsection
25065
25066 \family sans
25067 Check In Changes
25068 \end_layout
25069
25070 \begin_layout Standard
25071 When you are finished editing a file, you commit your changes.
25072  When you do this and you had changed the document, you are asked for a
25073  description of the changes.
25074  After that changes are written to the repository.
25075  In case you didn't change the document and a reserved checkout is detected
25076  the reservation made on 
25077 \begin_inset Flex Noun
25078 status collapsed
25079
25080 \begin_layout Plain Layout
25081 Check Out
25082 \end_layout
25083
25084 \end_inset
25085
25086  is undone.
25087 \end_layout
25088
25089 \begin_layout Labeling
25090 \labelwidthstring 00.00.0000
25091 CVS
25092 \begin_inset space ~
25093 \end_inset
25094
25095 command: 
25096 \begin_inset space ~
25097 \end_inset
25098
25099
25100 \begin_inset Newline newline
25101 \end_inset
25102
25103
25104 \begin_inset Flex Code
25105 status collapsed
25106
25107 \begin_layout Plain Layout
25108 cvs 
25109 \family typewriter
25110 -q commit -m"<description>" "<file-name>"
25111 \end_layout
25112
25113 \end_inset
25114
25115  or
25116 \begin_inset Newline newline
25117 \end_inset
25118
25119
25120 \begin_inset Flex Code
25121 status collapsed
25122
25123 \begin_layout Plain Layout
25124 cvs -q unedit 
25125 \family typewriter
25126 "<file-name>"
25127 \end_layout
25128
25129 \end_inset
25130
25131
25132 \end_layout
25133
25134 \begin_layout Subsubsection
25135
25136 \family sans
25137 Check Out Changes
25138 \end_layout
25139
25140 \begin_layout Standard
25141 When you are sharing a repository with others, you may have to incorporate
25142  their changes into your working copy.
25143 \end_layout
25144
25145 \begin_layout Standard
25146 CVS command: 
25147 \family typewriter
25148 cvs -q update "<file-name>"
25149 \end_layout
25150
25151 \begin_layout Standard
25152 If a readonly checkout is detected the working copy is made writable and
25153  reserved.
25154 \end_layout
25155
25156 \begin_layout Standard
25157 CVS command: 
25158 \family typewriter
25159 cvs -q edit "<file-name>"
25160 \end_layout
25161
25162 \begin_layout Subsubsection
25163
25164 \family sans
25165 Revert To Repository Version
25166 \end_layout
25167
25168 \begin_layout Standard
25169 This will discard all changes made to the document since the last check
25170  in.
25171  You get a warning before changes are discarded.
25172  Firstly the file is deleted, secondly CVS update command is run.
25173 \end_layout
25174
25175 \begin_layout Standard
25176 CVS command: 
25177 \family typewriter
25178 cvs -q update "<file-name>"
25179 \end_layout
25180
25181 \begin_layout Standard
25182 If a reserved checkout is detected and the working copy has no changes only
25183  the reservation is undone.
25184 \end_layout
25185
25186 \begin_layout Standard
25187 CVS command: 
25188 \family typewriter
25189 cvs -q unedit "<file-name>"
25190 \end_layout
25191
25192 \begin_layout Subsubsection
25193
25194 \family sans
25195 Copy
25196 \end_layout
25197
25198 \begin_layout Standard
25199 This will create a copy of the current document.
25200  Since CVS does not support copy operations natively, the version history
25201  is not preserved, and the copy is added as a new file.
25202  It requires a clean document without any changes since the last checkin.
25203  You are asked for a file name and a description of the copy operation.
25204  After that the copy is created, both locally and in the repository.
25205  If the parent directories of the copied and original document differ, all
25206  relative paths of included files of the copy are adjusted (like in 
25207 \family sans
25208 File\SpecialChar menuseparator
25209 Save As
25210 \family default
25211 \SpecialChar ldots
25212 ).
25213  Finally, the copy is loaded instead of the original document.
25214 \end_layout
25215
25216 \begin_layout Labeling
25217 \labelwidthstring 00.00.0000
25218 CVS
25219 \begin_inset space ~
25220 \end_inset
25221
25222 commands: 
25223 \begin_inset space ~
25224 \end_inset
25225
25226
25227 \begin_inset Newline newline
25228 \end_inset
25229
25230 Copy 
25231 \begin_inset Flex Code
25232 status collapsed
25233
25234 \begin_layout Plain Layout
25235 "<file-name>"
25236 \end_layout
25237
25238 \end_inset
25239
25240  to 
25241 \begin_inset Flex Code
25242 status collapsed
25243
25244 \begin_layout Plain Layout
25245 "<new-file-name>"
25246 \end_layout
25247
25248 \end_inset
25249
25250
25251 \begin_inset Newline newline
25252 \end_inset
25253
25254
25255 \begin_inset Flex Code
25256 status collapsed
25257
25258 \begin_layout Plain Layout
25259 cvs -q add "<new-file-name>"
25260 \end_layout
25261
25262 \end_inset
25263
25264
25265 \end_layout
25266
25267 \begin_layout Subsubsection
25268
25269 \family sans
25270 Rename
25271 \end_layout
25272
25273 \begin_layout Standard
25274 This will rename the current document.
25275  Since CVS does not support rename operations natively, the version history
25276  is not preserved, the renamed document is added as a new file, and the
25277  original document is deleted.
25278  It requires a clean document without any changes since the last checkin.
25279  You are asked for a file name and a description of the rename operation.
25280  After that the document is renamed, both locally and in the repository.
25281  If the parent directories of the new and old file names differ, all relative
25282  paths of included files are adjusted (like in 
25283 \family sans
25284 File\SpecialChar menuseparator
25285 Save As
25286 \family default
25287 \SpecialChar ldots
25288 ).
25289  Finally, the document is reloaded using the new name.
25290 \end_layout
25291
25292 \begin_layout Labeling
25293 \labelwidthstring 00.00.0000
25294 CVS
25295 \begin_inset space ~
25296 \end_inset
25297
25298 commands: 
25299 \begin_inset space ~
25300 \end_inset
25301
25302
25303 \begin_inset Newline newline
25304 \end_inset
25305
25306 Rename 
25307 \begin_inset Flex Code
25308 status collapsed
25309
25310 \begin_layout Plain Layout
25311 "<file-name>"
25312 \end_layout
25313
25314 \end_inset
25315
25316  to 
25317 \begin_inset Flex Code
25318 status collapsed
25319
25320 \begin_layout Plain Layout
25321 "<new-file-name>"
25322 \end_layout
25323
25324 \end_inset
25325
25326
25327 \begin_inset Newline newline
25328 \end_inset
25329
25330
25331 \begin_inset Flex Code
25332 status collapsed
25333
25334 \begin_layout Plain Layout
25335 cvs -q add "<new-file-name>"
25336 \end_layout
25337
25338 \end_inset
25339
25340
25341 \begin_inset Newline newline
25342 \end_inset
25343
25344
25345 \begin_inset Flex Code
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349 cvs -q remove "<file-name>"
25350 \end_layout
25351
25352 \end_inset
25353
25354
25355 \end_layout
25356
25357 \begin_layout Subsubsection
25358 Update of the local directory checkout from repository
25359 \end_layout
25360
25361 \begin_layout Standard
25362 Once your documents gets more complex, containing sub-documents and pictures,
25363  including external 
25364 \begin_inset Flex Code
25365 status collapsed
25366
25367 \begin_layout Plain Layout
25368 .tex
25369 \end_layout
25370
25371 \end_inset
25372
25373  files and so on using version control becomes more complicated.
25374  \SpecialChar LyX
25375  supports updating the whole tree in which resides the document.
25376  This become especially useful once you cooperate with people which neither
25377  have detailed knowledge about CVS usage nor they have ambition to commit
25378  additional material to the repository.
25379  You have to organize the files structure so that all external files are
25380  in the same directory or subdirectories of the document.
25381  It's good practice anyway to store multipart documents in an extra directory.
25382 \end_layout
25383
25384 \begin_layout Standard
25385 The 
25386 \begin_inset Flex Code
25387 status collapsed
25388
25389 \begin_layout Plain Layout
25390 Update local directory from repository
25391 \end_layout
25392
25393 \end_inset
25394
25395  command updates the whole directory.
25396  If local changes are detected user is warned before update starts.
25397  In case of merge conflicts both versions of the conflicting document parts
25398  are placed in the final document.
25399  You have to review and correct the result of the merge.
25400  You'll find the conflicts enclosed in pairs of 
25401 \begin_inset Flex Code
25402 status collapsed
25403
25404 \begin_layout Plain Layout
25405 <<<<<<<
25406 \end_layout
25407
25408 \end_inset
25409
25410  and 
25411 \begin_inset Flex Code
25412 status collapsed
25413
25414 \begin_layout Plain Layout
25415 >>>>>>>
25416 \end_layout
25417
25418 \end_inset
25419
25420  separated by 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425 =======
25426 \end_layout
25427
25428 \end_inset
25429
25430 .
25431  The first part is your version as before the update operation with the
25432  document name prepended.
25433  The second one is the repository version with the version number after
25434  the sequence of 
25435 \begin_inset Flex Code
25436 status collapsed
25437
25438 \begin_layout Plain Layout
25439 >
25440 \end_layout
25441
25442 \end_inset
25443
25444  signs.
25445 \end_layout
25446
25447 \begin_layout Labeling
25448 \labelwidthstring 00.00.0000
25449 CVS
25450 \begin_inset space ~
25451 \end_inset
25452
25453 commands: 
25454 \begin_inset space ~
25455 \end_inset
25456
25457
25458 \begin_inset Newline newline
25459 \end_inset
25460
25461
25462 \begin_inset Flex Code
25463 status collapsed
25464
25465 \begin_layout Plain Layout
25466 cd $path; cvs diff 
25467 \family typewriter
25468 "."
25469 \end_layout
25470
25471 \end_inset
25472
25473  (Ask if changes are detected.)
25474 \begin_inset Newline newline
25475 \end_inset
25476
25477
25478 \begin_inset Flex Code
25479 status collapsed
25480
25481 \begin_layout Plain Layout
25482 cd $path; cvs -q update 
25483 \family typewriter
25484 "."
25485 \end_layout
25486
25487 \end_inset
25488
25489
25490 \end_layout
25491
25492 \begin_layout Standard
25493 where 
25494 \begin_inset Flex Code
25495 status collapsed
25496
25497 \begin_layout Plain Layout
25498 $path
25499 \end_layout
25500
25501 \end_inset
25502
25503  stands for the path to the document.
25504 \end_layout
25505
25506 \begin_layout Subsubsection
25507
25508 \family sans
25509 Show History
25510 \end_layout
25511
25512 \begin_layout Standard
25513 This shows the complete history of the CVS document.
25514  The output of 
25515 \family typewriter
25516 cvs log "<file-name>"
25517 \family default
25518  is shown in a browser.
25519 \end_layout
25520
25521 \begin_layout Subsubsection
25522 Revision info
25523 \end_layout
25524
25525 \begin_layout Standard
25526 \SpecialChar LyX
25527  supports CVS version number, author name, date and time of last commit.
25528  All those are extracted from 
25529 \family typewriter
25530 cvs log -r <file-name>
25531 \family default
25532 .
25533  See 
25534 \begin_inset CommandInset ref
25535 LatexCommand ref
25536 reference "subsec:VCS-Revision-Information"
25537
25538 \end_inset
25539
25540  for details.
25541 \end_layout
25542
25543 \begin_layout Subsection
25544 SVN commands in \SpecialChar LyX
25545
25546 \end_layout
25547
25548 \begin_layout Standard
25549 SVN is now partially supported by \SpecialChar LyX
25550 .
25551  You can find the commands in the 
25552 \family sans
25553 File\SpecialChar menuseparator
25554 Version
25555 \begin_inset space ~
25556 \end_inset
25557
25558 Control
25559 \family default
25560  submenu.
25561  Please note that if you use password protected access to repository via
25562  ssh, you will be asked in terminal window.
25563  \SpecialChar LyX
25564  was tested against SVN 1.5, 1.6, 1.7 and 1.8
25565 \begin_inset Foot
25566 status collapsed
25567
25568 \begin_layout Plain Layout
25569 Most of the commands will work with 1.4 too, see 
25570 \begin_inset CommandInset ref
25571 LatexCommand ref
25572 reference "subsec:SVN-Repo-Update"
25573
25574 \end_inset
25575
25576 .
25577  There seems to be currently unresolved permissions problem under SVN 1.8
25578  with reverting changes when file is locked.
25579 \end_layout
25580
25581 \end_inset
25582
25583
25584 \end_layout
25585
25586 \begin_layout Subsubsection
25587
25588 \family sans
25589 Register
25590 \end_layout
25591
25592 \begin_layout Standard
25593 If your document is not under revision control, this is the only item shown
25594  in the menu.
25595  And if it is under revision control, the 
25596 \family sans
25597 Register
25598 \family default
25599  item is not visible.
25600 \end_layout
25601
25602 \begin_layout Standard
25603 This command registers in SVN your document ONLY in case you have already
25604  the documents directory under SVN control (in particular 
25605 \family typewriter
25606 .svn/entries
25607 \family default
25608  file exists).
25609  This means you have to checkout the archive by yourself.
25610 \end_layout
25611
25612 \begin_layout Standard
25613 Then you are asked interactively to supply an initial description of the
25614  document.
25615  Don't forget that registered file is not yet commited.
25616 \end_layout
25617
25618 \begin_layout Standard
25619 SVN command that is run: 
25620 \family typewriter
25621 svn add -q 
25622 \begin_inset Quotes qld
25623 \end_inset
25624
25625 <file-name>
25626 \begin_inset Quotes qld
25627 \end_inset
25628
25629
25630 \end_layout
25631
25632 \begin_layout Standard
25633 Read 
25634 \family typewriter
25635 man svn
25636 \family default
25637  to understand the switches.
25638 \end_layout
25639
25640 \begin_layout Subsubsection
25641
25642 \family sans
25643 Check In Changes
25644 \end_layout
25645
25646 \begin_layout Standard
25647 When you are finished editing a file, you commit your changes.
25648  When you do this, you are asked for a description of the changes.
25649  After that changes are commited.
25650 \end_layout
25651
25652 \begin_layout Standard
25653 SVN command:
25654 \begin_inset Foot
25655 status collapsed
25656
25657 \begin_layout Plain Layout
25658 In case locking is not enabled.
25659  See Section 
25660 \begin_inset CommandInset ref
25661 LatexCommand ref
25662 reference "subsec:SVN-File-Locking"
25663
25664 \end_inset
25665
25666 .
25667 \end_layout
25668
25669 \end_inset
25670
25671  
25672 \family typewriter
25673 svn commit -q -m"<description>" <file-name>
25674 \end_layout
25675
25676 \begin_layout Subsubsection
25677
25678 \family sans
25679 Check Out For Edit
25680 \end_layout
25681
25682 \begin_layout Standard
25683 Updates the changes of this file from the repository.
25684  Be sure you understand SVN merging and conflicts resolving before using
25685  this function, because all conflicts has to be resolved manually by you!
25686 \end_layout
25687
25688 \begin_layout Standard
25689 SVN command:
25690 \begin_inset Foot
25691 status collapsed
25692
25693 \begin_layout Plain Layout
25694 Ditto.
25695 \end_layout
25696
25697 \end_inset
25698
25699  
25700 \family typewriter
25701 svn update --non-interactive 
25702 \begin_inset Quotes qld
25703 \end_inset
25704
25705 <file-name>
25706 \begin_inset Quotes qld
25707 \end_inset
25708
25709
25710 \end_layout
25711
25712 \begin_layout Subsubsection
25713
25714 \family sans
25715 Revert To Repository Version
25716 \end_layout
25717
25718 \begin_layout Standard
25719 This will discard all changes made to the document since the last check
25720  in.
25721  You get a warning before changes are discarded.
25722 \end_layout
25723
25724 \begin_layout Standard
25725 SVN command: 
25726 \family typewriter
25727 svn revert -q 
25728 \begin_inset Quotes qld
25729 \end_inset
25730
25731 <file-name>
25732 \begin_inset Quotes qld
25733 \end_inset
25734
25735
25736 \end_layout
25737
25738 \begin_layout Subsubsection
25739
25740 \family sans
25741 Copy
25742 \end_layout
25743
25744 \begin_layout Standard
25745 This will create a copy of the current document including the version history.
25746  It requires a clean document without any changes since the last checkin.
25747  You are asked for a file name and a description of the copy operation.
25748  After that the copy is created, both locally and in the repository.
25749  If the parent directories of the copied and original document differ, all
25750  relative paths of included files of the copy are adjusted (like in 
25751 \family sans
25752 File\SpecialChar menuseparator
25753 Save As
25754 \family default
25755 \SpecialChar ldots
25756 ).
25757  Finally, the copy is loaded instead of the original document.
25758 \end_layout
25759
25760 \begin_layout Labeling
25761 \labelwidthstring 00.00.0000
25762 SVN
25763 \begin_inset space ~
25764 \end_inset
25765
25766 commands: 
25767 \begin_inset space ~
25768 \end_inset
25769
25770
25771 \begin_inset Newline newline
25772 \end_inset
25773
25774
25775 \begin_inset Flex Code
25776 status collapsed
25777
25778 \begin_layout Plain Layout
25779 svn copy -q 
25780 \family typewriter
25781
25782 \begin_inset Quotes qld
25783 \end_inset
25784
25785 <file-name>
25786 \begin_inset Quotes qld
25787 \end_inset
25788
25789  
25790 \begin_inset Quotes qld
25791 \end_inset
25792
25793 <new-file-name>
25794 \begin_inset Quotes qld
25795 \end_inset
25796
25797
25798 \end_layout
25799
25800 \end_inset
25801
25802
25803 \begin_inset Newline newline
25804 \end_inset
25805
25806
25807 \begin_inset Flex Code
25808 status collapsed
25809
25810 \begin_layout Plain Layout
25811 svn commit
25812 \end_layout
25813
25814 \end_inset
25815
25816
25817 \end_layout
25818
25819 \begin_layout Subsubsection
25820
25821 \family sans
25822 Rename
25823 \end_layout
25824
25825 \begin_layout Standard
25826 This will rename the current document including the version history.
25827  It requires a clean document without any changes since the last checkin.
25828  You are asked for a file name and a description of the rename operation.
25829  After that the document is renamed, both locally and in the repository.
25830  If the parent directories of the new and old file names differ, all relative
25831  paths of included files are adjusted (like in 
25832 \family sans
25833 File\SpecialChar menuseparator
25834 Save As
25835 \family default
25836 \SpecialChar ldots
25837 ).
25838  Finally, the document is reloaded using the new name.
25839 \end_layout
25840
25841 \begin_layout Labeling
25842 \labelwidthstring 00.00.0000
25843 SVN
25844 \begin_inset space ~
25845 \end_inset
25846
25847 commands: 
25848 \begin_inset space ~
25849 \end_inset
25850
25851
25852 \begin_inset Newline newline
25853 \end_inset
25854
25855
25856 \begin_inset Flex Code
25857 status collapsed
25858
25859 \begin_layout Plain Layout
25860 svn move -q 
25861 \family typewriter
25862
25863 \begin_inset Quotes qld
25864 \end_inset
25865
25866 <file-name>
25867 \begin_inset Quotes qld
25868 \end_inset
25869
25870  
25871 \begin_inset Quotes qld
25872 \end_inset
25873
25874 <new-file-name>
25875 \begin_inset Quotes qld
25876 \end_inset
25877
25878
25879 \end_layout
25880
25881 \end_inset
25882
25883
25884 \begin_inset Newline newline
25885 \end_inset
25886
25887
25888 \begin_inset Flex Code
25889 status collapsed
25890
25891 \begin_layout Plain Layout
25892 svn commit
25893 \end_layout
25894
25895 \end_inset
25896
25897
25898 \end_layout
25899
25900 \begin_layout Subsubsection
25901 \begin_inset CommandInset label
25902 LatexCommand label
25903 name "subsec:SVN-Repo-Update"
25904
25905 \end_inset
25906
25907 Update of the local directory checkout from repository
25908 \begin_inset Foot
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 Note that this command will work only with subversion 
25913 \begin_inset Formula $\geqq1.5$
25914 \end_inset
25915
25916
25917 \end_layout
25918
25919 \end_inset
25920
25921
25922 \end_layout
25923
25924 \begin_layout Standard
25925 All the commands above have one shortcoming – they deal with the current
25926  document only.
25927  Once your document contains pictures, includes external 
25928 \begin_inset Flex Code
25929 status collapsed
25930
25931 \begin_layout Plain Layout
25932 .tex
25933 \end_layout
25934
25935 \end_inset
25936
25937  files and so on administration becomes more complicated.
25938  \SpecialChar LyX
25939  now supports updating the whole tree in which resides the document
25940 \begin_inset Foot
25941 status collapsed
25942
25943 \begin_layout Plain Layout
25944 One need to organize the files structure so that all external files are
25945  in the same directory or subdirectories of the document.
25946  
25947 \end_layout
25948
25949 \end_inset
25950
25951 .
25952  This become especially useful once you cooperate with people which neither
25953  know about subversion management nor they have ambition to commit additional
25954  material to the repository.
25955  
25956 \end_layout
25957
25958 \begin_layout Standard
25959 \begin_inset Flex Code
25960 status collapsed
25961
25962 \begin_layout Plain Layout
25963 Update local directory from repository
25964 \end_layout
25965
25966 \end_inset
25967
25968  command updates the whole directory and in case of merge conflicts local
25969  version of the files are left, so no unintended data loss occurs.
25970  If local changes are detected user is warned before update starts.
25971 \end_layout
25972
25973 \begin_layout Labeling
25974 \labelwidthstring 00.00.0000
25975 SVN
25976 \begin_inset space ~
25977 \end_inset
25978
25979 commands: 
25980 \begin_inset space ~
25981 \end_inset
25982
25983
25984 \begin_inset Newline newline
25985 \end_inset
25986
25987
25988 \begin_inset Flex Code
25989 status collapsed
25990
25991 \begin_layout Plain Layout
25992 svn diff $path
25993 \end_layout
25994
25995 \end_inset
25996
25997  (Ask if changes are detected.)
25998 \begin_inset Newline newline
25999 \end_inset
26000
26001
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 svn update --accept mine-full $path
26007 \end_layout
26008
26009 \end_inset
26010
26011
26012 \end_layout
26013
26014 \begin_layout Standard
26015 where 
26016 \begin_inset Flex Code
26017 status collapsed
26018
26019 \begin_layout Plain Layout
26020 $path
26021 \end_layout
26022
26023 \end_inset
26024
26025  stands for the path to the document.
26026 \end_layout
26027
26028 \begin_layout Subsubsection
26029
26030 \family sans
26031 Show History
26032 \end_layout
26033
26034 \begin_layout Standard
26035 This shows the complete history of the SVN document.
26036  The output of 
26037 \family typewriter
26038 svn log 
26039 \begin_inset Quotes qld
26040 \end_inset
26041
26042 <file-name>
26043 \begin_inset Quotes qld
26044 \end_inset
26045
26046
26047 \family default
26048  is shown in a browser.
26049 \end_layout
26050
26051 \begin_layout Subsubsection
26052 File Locking
26053 \begin_inset CommandInset label
26054 LatexCommand label
26055 name "subsec:SVN-File-Locking"
26056
26057 \end_inset
26058
26059
26060 \end_layout
26061
26062 \begin_layout Standard
26063 The file exchange through various revision control systems brings the problem
26064  of merge conflicts in case two different users try to edit the same (parts
26065  of) document.
26066  When such a conflict happens it needs manual resolving and one reasonable
26067  alternative is to provide some kind of locking mechanism, which guarantees
26068  that only one user is allowed to edit file at the given time.
26069 \end_layout
26070
26071 \begin_layout Standard
26072 SVN has two such mechanisms to provide mutual exclusivity for file access
26073  – locks and automatic setting of write permissions (see sec.
26074  
26075 \begin_inset CommandInset ref
26076 LatexCommand ref
26077 reference "subsec:Automatical-Locking-Property"
26078
26079 \end_inset
26080
26081 ) based on 
26082 \begin_inset Flex Code
26083 status collapsed
26084
26085 \begin_layout Plain Layout
26086 svn:needs-lock
26087 \end_layout
26088
26089 \end_inset
26090
26091  file svn property
26092 \begin_inset Foot
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 \begin_inset Flex URL
26097 status open
26098
26099 \begin_layout Plain Layout
26100
26101 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
26102 \end_layout
26103
26104 \end_inset
26105
26106
26107 \end_layout
26108
26109 \end_inset
26110
26111 .
26112  If this property is detected for a given document \SpecialChar LyX
26113  starts to use SVN locks
26114  for document editing automatically and the whole check-in/out mechanism
26115  switches to the same regimen as for RCS.
26116  This in particular means there are two different modes of file use in \SpecialChar LyX
26117 :
26118 \end_layout
26119
26120 \begin_layout Itemize
26121 Unlocked state.
26122  The loaded file is in the read-only mode.
26123  For editing on needs to check-out.
26124  
26125 \emph on
26126 Check-out
26127 \emph default
26128  consists of updating from the repository and gaining write lock.
26129  If the lock is not possible to obtain, we remain in unlocked state.
26130 \end_layout
26131
26132 \begin_layout Itemize
26133 Locked state.
26134  The loaded file is in the 
26135 \begin_inset Quotes els
26136 \end_inset
26137
26138 normal
26139 \begin_inset Quotes ers
26140 \end_inset
26141
26142  edit mode.
26143  No other user is allowed to edit the file.
26144  
26145 \emph on
26146 Check-in
26147 \emph default
26148  consists of commiting changes and releasing write-lock.
26149  If no changes have been made to the document, no commit will be produced
26150 \begin_inset Foot
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 Don't be puzzled by the fact that you will be asked for commit message anyway.
26155 \end_layout
26156
26157 \end_inset
26158
26159  and only the write-lock will be released.
26160 \end_layout
26161
26162 \begin_layout Standard
26163 SVN commands:
26164 \end_layout
26165
26166 \begin_layout Labeling
26167 \labelwidthstring 00.00.0000
26168 Check-in:
26169 \family typewriter
26170  svn commit -q -m"<description>" "<file-name>"
26171 \begin_inset Newline newline
26172 \end_inset
26173
26174 svn unlock "<file-name>"
26175 \end_layout
26176
26177 \begin_layout Labeling
26178 \labelwidthstring 00.00.0000
26179 Check-out: 
26180 \family typewriter
26181 svn update "<file-name>"
26182 \begin_inset Newline newline
26183 \end_inset
26184
26185 svn lock "<file-name>"
26186 \end_layout
26187
26188 \begin_layout Subsubsection
26189
26190 \family typewriter
26191 \begin_inset CommandInset label
26192 LatexCommand label
26193 name "subsec:Automatical-Locking-Property"
26194
26195 \end_inset
26196
26197
26198 \family default
26199 Automatic Locking Property
26200 \end_layout
26201
26202 \begin_layout Standard
26203 The above mentioned automatic setting of write permissions of the .lyx file
26204  can be set through
26205 \family sans
26206  File\SpecialChar menuseparator
26207 Version
26208 \begin_inset space ~
26209 \end_inset
26210
26211 Control\SpecialChar menuseparator
26212 Use Locking Property
26213 \family default
26214 .
26215  This command is active only when the file is not locked on the svn server
26216  (i.e.
26217  you need to check-out before proceeding).
26218 \end_layout
26219
26220 \begin_layout Labeling
26221 \labelwidthstring 00.00.0000
26222 SVN
26223 \begin_inset space ~
26224 \end_inset
26225
26226 commands:
26227 \end_layout
26228
26229 \begin_layout Labeling
26230 \labelwidthstring 00.00.0000
26231 Set:
26232 \family typewriter
26233  svn propset svn:needs-lock ON "<file-name>"
26234 \end_layout
26235
26236 \begin_layout Labeling
26237 \labelwidthstring 00.00.0000
26238 Unset: 
26239 \family typewriter
26240 svn propdel svn:needs-lock "<file-name>"
26241 \end_layout
26242
26243 \begin_layout Subsubsection
26244 \begin_inset CommandInset label
26245 LatexCommand label
26246 name "subsec:VCS-Revision-Information"
26247
26248 \end_inset
26249
26250 Revision Information in Documents
26251 \end_layout
26252
26253 \begin_layout Standard
26254 There are more possibilities how to activate revision information in our
26255  document.
26256 \end_layout
26257
26258 \begin_layout Itemize
26259 \SpecialChar LyX
26260  supports directly:
26261 \end_layout
26262
26263 \begin_deeper
26264 \begin_layout Itemize
26265 tree revision information (
26266 \begin_inset Flex Code
26267 status collapsed
26268
26269 \begin_layout Plain Layout
26270 vcs-tree-revision
26271 \end_layout
26272
26273 \end_inset
26274
26275 ).
26276  The result is the output of the 
26277 \begin_inset Flex Code
26278 status collapsed
26279
26280 \begin_layout Plain Layout
26281 svnversion
26282 \end_layout
26283
26284 \end_inset
26285
26286  command, the following table gives you an idea, how to read the results.
26287 \end_layout
26288
26289 \begin_layout Standard
26290 \align center
26291 \begin_inset Tabular
26292 <lyxtabular version="3" rows="6" columns="2">
26293 <features tabularvalignment="middle">
26294 <column alignment="left" valignment="top">
26295 <column alignment="left" valignment="top">
26296 <row>
26297 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26298 \begin_inset Text
26299
26300 \begin_layout Plain Layout
26301
26302 \series bold
26303 Output
26304 \end_layout
26305
26306 \end_inset
26307 </cell>
26308 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26309 \begin_inset Text
26310
26311 \begin_layout Plain Layout
26312
26313 \series bold
26314 Meaning
26315 \end_layout
26316
26317 \end_inset
26318 </cell>
26319 </row>
26320 <row>
26321 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26322 \begin_inset Text
26323
26324 \begin_layout Plain Layout
26325 4123:4168
26326 \end_layout
26327
26328 \end_inset
26329 </cell>
26330 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26331 \begin_inset Text
26332
26333 \begin_layout Plain Layout
26334 mixed revision working copy
26335 \end_layout
26336
26337 \end_inset
26338 </cell>
26339 </row>
26340 <row>
26341 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26342 \begin_inset Text
26343
26344 \begin_layout Plain Layout
26345 4168M
26346 \end_layout
26347
26348 \end_inset
26349 </cell>
26350 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26351 \begin_inset Text
26352
26353 \begin_layout Plain Layout
26354 modified working copy
26355 \end_layout
26356
26357 \end_inset
26358 </cell>
26359 </row>
26360 <row>
26361 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26362 \begin_inset Text
26363
26364 \begin_layout Plain Layout
26365 4123S
26366 \end_layout
26367
26368 \end_inset
26369 </cell>
26370 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26371 \begin_inset Text
26372
26373 \begin_layout Plain Layout
26374 switched working copy
26375 \end_layout
26376
26377 \end_inset
26378 </cell>
26379 </row>
26380 <row>
26381 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26382 \begin_inset Text
26383
26384 \begin_layout Plain Layout
26385 4123P
26386 \end_layout
26387
26388 \end_inset
26389 </cell>
26390 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26391 \begin_inset Text
26392
26393 \begin_layout Plain Layout
26394 partial working copy, from a sparse checkout
26395 \end_layout
26396
26397 \end_inset
26398 </cell>
26399 </row>
26400 <row>
26401 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26402 \begin_inset Text
26403
26404 \begin_layout Plain Layout
26405 4123:4168MS
26406 \end_layout
26407
26408 \end_inset
26409 </cell>
26410 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26411 \begin_inset Text
26412
26413 \begin_layout Plain Layout
26414 mixed revision, modified, switched working copy
26415 \end_layout
26416
26417 \end_inset
26418 </cell>
26419 </row>
26420 </lyxtabular>
26421
26422 \end_inset
26423
26424
26425 \end_layout
26426
26427 \begin_layout Itemize
26428 file revision information.
26429  The result comes from parsing the output of 
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 svn
26435 \begin_inset space ~
26436 \end_inset
26437
26438 info
26439 \begin_inset space ~
26440 \end_inset
26441
26442 --xml
26443 \begin_inset space ~
26444 \end_inset
26445
26446 file.lyx
26447 \end_layout
26448
26449 \end_inset
26450
26451 .
26452  Supported flags are:
26453 \end_layout
26454
26455 \begin_deeper
26456 \begin_layout Itemize
26457 version number of the last commit (
26458 \begin_inset Flex Code
26459 status collapsed
26460
26461 \begin_layout Plain Layout
26462 vcs-revision
26463 \end_layout
26464
26465 \end_inset
26466
26467 )
26468 \end_layout
26469
26470 \begin_layout Itemize
26471 author of the last commit (
26472 \begin_inset Flex Code
26473 status collapsed
26474
26475 \begin_layout Plain Layout
26476 vcs-author
26477 \end_layout
26478
26479 \end_inset
26480
26481 )
26482 \end_layout
26483
26484 \begin_layout Itemize
26485 date of the last commit (
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 vcs-date
26491 \end_layout
26492
26493 \end_inset
26494
26495 )
26496 \end_layout
26497
26498 \begin_layout Itemize
26499 time of the last commit (
26500 \begin_inset Flex Code
26501 status collapsed
26502
26503 \begin_layout Plain Layout
26504 vcs-time
26505 \end_layout
26506
26507 \end_inset
26508
26509 )
26510 \end_layout
26511
26512 \end_deeper
26513 \begin_layout Standard
26514 You can obtain this info via InsetInfo (
26515 \change_inserted 5863208 1564400022
26516
26517 \lang american
26518 Insert\SpecialChar menuseparator
26519 Field\SpecialChar menuseparator
26520 Version Control Revision
26521 \change_deleted 5863208 1564399852
26522
26523 \lang english
26524 e.g.
26525  
26526 \begin_inset Flex Code
26527 status collapsed
26528
26529 \begin_layout Plain Layout
26530 info-insert buffer vcs-date
26531 \end_layout
26532
26533 \end_inset
26534
26535
26536 \change_unchanged
26537 ).
26538  The information will be available only when you have the file stored under
26539  svn managment (i.e.
26540  the 
26541 \begin_inset Flex Code
26542 status collapsed
26543
26544 \begin_layout Plain Layout
26545 .svn
26546 \end_layout
26547
26548 \end_inset
26549
26550  directory is available with your document).
26551 \end_layout
26552
26553 \end_deeper
26554 \begin_layout Itemize
26555 Another—a hacking one—possibility is to use svn keywords
26556 \begin_inset Foot
26557 status collapsed
26558
26559 \begin_layout Plain Layout
26560 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
26561 \end_layout
26562
26563 \end_inset
26564
26565 .
26566  In short – you set file keywords property (e.g.
26567  
26568 \family sans
26569 svn propset svn:keywords 'Rev' file.lyx
26570 \family default
26571 ) and then paste keyword \SpecialChar TeX
26572  code
26573 \begin_inset Foot
26574 status collapsed
26575
26576 \begin_layout Plain Layout
26577 This is an easy way how to ensure that \SpecialChar LyX
26578  won't break the line in the middle
26579  of keyword tag.
26580 \end_layout
26581
26582 \end_inset
26583
26584  tag in your document (e.g.
26585  
26586 \begin_inset Flex Code
26587 status collapsed
26588
26589 \begin_layout Plain Layout
26590 $Rev$
26591 \end_layout
26592
26593 \end_inset
26594
26595 ).
26596  This way svn client will automatically substitute revision number (e.g.
26597  
26598 \begin_inset Flex Code
26599 status collapsed
26600
26601 \begin_layout Plain Layout
26602 $Rev: 59 $
26603 \end_layout
26604
26605 \end_inset
26606
26607 ) after each update and commit.
26608  There are more problems with this approach.
26609  Firstly, the '$' character is used in \SpecialChar TeX
26610  world for math equations, so any
26611  occurence of math formula 
26612 \begin_inset Formula $Rev$
26613 \end_inset
26614
26615  become 
26616 \begin_inset Formula $Rev:59$
26617 \end_inset
26618
26619  in your \SpecialChar LyX
26620  document.
26621  Similarly for other keywords like Id, Date, Author, etc.
26622  Secondly svn output is dependent on your locales, so its very easy that
26623  svn would produce some problematic strings once Date is used.
26624  Thirdly you get the whole 'Rev: 59' string in your document instead of
26625  the plain number.
26626  Until subversion implements user's custom keywords it will be hard to use
26627  this approach reliably or let \SpecialChar LyX
26628  to support it directly.
26629 \end_layout
26630
26631 \begin_layout Subsection
26632 SVN and Windows Environment
26633 \end_layout
26634
26635 \begin_layout Quote
26636 My inclination is to say that if the user cannot figure out the command
26637  line operations on their own fairly quickly, they would be well advised
26638  to use TortoiseSVN.
26639  —P.
26640  A.
26641  Rubin
26642 \end_layout
26643
26644 \begin_layout Subsubsection
26645 Preparation
26646 \end_layout
26647
26648 \begin_layout Standard
26649 In addition to installing \SpecialChar LyX
26650 , and having access to a Subversion repository,
26651  the user will need to install the Subversion client program.
26652  A Windows installer for the client program is available from 
26653 \begin_inset CommandInset href
26654 LatexCommand href
26655 name "CollabNet"
26656 target "http://www.collab.net/nonav/downloads/subversion/"
26657 literal "false"
26658
26659 \end_inset
26660
26661 .
26662  The user may also want to install 
26663 \begin_inset CommandInset href
26664 LatexCommand href
26665 name "TortoiseSVN"
26666 target "http://tortoisesvn.tigris.org/"
26667 literal "false"
26668
26669 \end_inset
26670
26671 , which integrates Subversion operations into the context (rightclick) menu
26672  of Windows Explorer.
26673  Operations done outside \SpecialChar LyX
26674  will typically be more convenient using the Explorer
26675  context menu.
26676  Note that TortoiseSVN is not a replacement for the client program, which
26677  is what \SpecialChar LyX
26678  itself will use.
26679 \end_layout
26680
26681 \begin_layout Subsubsection
26682 Bringing a document under Subversion control
26683 \end_layout
26684
26685 \begin_layout Standard
26686 Before a \SpecialChar LyX
26687  document can be brought under version control in Subversion, its
26688  parent directory needs to be under version control.
26689  If the document is being added to a project already in the repository,
26690  this is accomplished by checking the project out to the directory where
26691  the new document will be placed.
26692  If the project itself is not yet under version control (for instance, if
26693  this document starts a new project), the directory must be imported into
26694  the repository.
26695  This is done outside \SpecialChar LyX
26696 .
26697  Both import and checkout are easily accomplished from the Explorer context
26698  menu using TortoiseSVN, or alternatively can be done using the command
26699  line client at a DOS prompt.
26700  The procedure for importing the project using TortoiseSVN is described
26701  below, assuming an existing repository and a new project being started
26702  in 
26703 \family typewriter
26704 C:
26705 \backslash
26706 new project
26707 \family default
26708 .
26709  For information on using the Subversion client program, run 
26710 \family typewriter
26711 svn --help 
26712 \family default
26713 in a DOS shell.
26714 \end_layout
26715
26716 \begin_layout Enumerate
26717 Locate 
26718 \family typewriter
26719 C:
26720 \backslash
26721 new project 
26722 \family default
26723 in Windows Explorer, right click it, and select 
26724 \family sans
26725 TortoiseSVN\SpecialChar menuseparator
26726 Repo-browser
26727 \family default
26728 .
26729  If necessary, adjust the URL for the repository, then click OK.
26730 \end_layout
26731
26732 \begin_layout Enumerate
26733 Right click the level of the repository under which you want to place the
26734  new project folder (typically the top level) and click 
26735 \family sans
26736 Create folder
26737 \family default
26738  Supply a name for the project folder and click OK.
26739  Add a message for the log file if desired, then click OK again.
26740  The new project folder should appear in the repository.
26741  Finally, click OK again to exit the repository browser.
26742 \end_layout
26743
26744 \begin_layout Enumerate
26745 Once again right click 
26746 \family typewriter
26747 C:
26748 \backslash
26749 new project
26750 \family default
26751 , this time selecting SVN Checkout\SpecialChar ldots
26752  Select the URL of the project folder
26753  you just created in the repository, and set the checkout directory to 
26754 \family typewriter
26755 C:
26756 \backslash
26757 new project.
26758
26759 \family default
26760  Click OK.
26761  You will be warned about a non-empty folder; click OK to proceed.
26762  You should now have a 
26763 \family typewriter
26764 .svn
26765 \family default
26766  directory under 
26767 \family typewriter
26768 C:
26769 \backslash
26770 new project.
26771 \end_layout
26772
26773 \begin_layout Enumerate
26774 Create or open your document in \SpecialChar LyX
26775  and click 
26776 \family sans
26777 File\SpecialChar menuseparator
26778 Version
26779 \begin_inset space ~
26780 \end_inset
26781
26782 Control\SpecialChar menuseparator
26783 Register.
26784  
26785 \family default
26786 Add a log message and click OK to commit the document to version control.
26787 \end_layout
26788
26789 \begin_layout Standard
26790 From this point onward, you should have full functionality in the 
26791 \family sans
26792 File\SpecialChar menuseparator
26793 Version
26794 \begin_inset space ~
26795 \end_inset
26796
26797 Control
26798 \family default
26799  menu.
26800  You also have the option of checking the document in and out, viewing its
26801  history, etc.
26802  using the TortoiseSVN context menu in Windows Explorer or the Subversion
26803  client program from a command prompt.
26804 \end_layout
26805
26806 \begin_layout Subsubsection
26807 SSH tunnel used with SVN under Windows
26808 \end_layout
26809
26810 \begin_layout Standard
26811 Compared with Linux setting up an svn client to communicate over ssh under
26812  Windows is a rather troublesome task.
26813  We will at least offer some hints how to setup the client side but prior
26814  knowledge about ssh and the Windows command line is needed, also be prepared
26815  for a great deal of frustration\SpecialChar ldots
26816
26817 \end_layout
26818
26819 \begin_layout Enumerate
26820 Get an svn client for windows, as described in the previous sections.
26821  When it is a fresh install run some svn command (e.g.
26822  
26823 \begin_inset Flex Code
26824 status collapsed
26825
26826 \begin_layout Plain Layout
26827 svn --version
26828 \end_layout
26829
26830 \end_inset
26831
26832 ) to create config files, which you will need to change later on.
26833 \end_layout
26834
26835 \begin_layout Enumerate
26836 Choose an ssh client for Windows.
26837  There are several possibilities, we will use the one from Putty tools
26838 \begin_inset Foot
26839 status collapsed
26840
26841 \begin_layout Plain Layout
26842 \begin_inset Flex URL
26843 status collapsed
26844
26845 \begin_layout Plain Layout
26846
26847 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
26848 \end_layout
26849
26850 \end_inset
26851
26852
26853 \end_layout
26854
26855 \end_inset
26856
26857 .
26858  You will need to set the connection up so that the client doesn't ask for
26859  any password from you.
26860  To keep things easy we will use only keys without any additional password
26861  protection etc.
26862 \end_layout
26863
26864 \begin_deeper
26865 \begin_layout Enumerate
26866 Generate keys by 
26867 \begin_inset Flex Code
26868 status collapsed
26869
26870 \begin_layout Plain Layout
26871 puttygen
26872 \end_layout
26873
26874 \end_inset
26875
26876 .
26877  Save your private .ppk key file and put the public one on the server side.
26878  If the SVN server runs on Linux, note that the format of the public key
26879  is not compatible with Linux openssh and you will need to direcly copy-paste
26880  the key from the 
26881 \begin_inset Quotes eld
26882 \end_inset
26883
26884
26885 \emph on
26886 Public key for pasting into OpenSSH authorized_keys file
26887 \emph default
26888 :
26889 \begin_inset Quotes erd
26890 \end_inset
26891
26892  edit field into the server's 
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 ~/.ssh/authorized_keys
26898 \end_layout
26899
26900 \end_inset
26901
26902  / 
26903 \begin_inset Flex Code
26904 status collapsed
26905
26906 \begin_layout Plain Layout
26907 authorized_keys2
26908 \end_layout
26909
26910 \end_inset
26911
26912  file.
26913 \end_layout
26914
26915 \begin_layout Enumerate
26916 Get the Putty's 
26917 \begin_inset Flex Code
26918 status collapsed
26919
26920 \begin_layout Plain Layout
26921 plink
26922 \end_layout
26923
26924 \end_inset
26925
26926 .
26927  In the SVN config file
26928 \begin_inset Foot
26929 status collapsed
26930
26931 \begin_layout Plain Layout
26932 Exact path depends on Windows version, usually somewhere around 
26933 \begin_inset Flex Code
26934 status collapsed
26935
26936 \begin_layout Plain Layout
26937 c:
26938 \backslash
26939 Documents and Settings
26940 \backslash
26941 user
26942 \backslash
26943 Application Data
26944 \backslash
26945 Subversion
26946 \backslash
26947 config
26948 \end_layout
26949
26950 \end_inset
26951
26952  / 
26953 \begin_inset Flex Code
26954 status collapsed
26955
26956 \begin_layout Plain Layout
26957 AppData
26958 \backslash
26959 Roaming
26960 \backslash
26961 Subversion
26962 \end_layout
26963
26964 \end_inset
26965
26966 .
26967 \end_layout
26968
26969 \end_inset
26970
26971 , section [tunnels], setup ssh command, e.g.
26972  
26973 \begin_inset Flex Code
26974 status collapsed
26975
26976 \begin_layout Plain Layout
26977 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
26978 \end_layout
26979
26980 \end_inset
26981
26982 .
26983 \begin_inset Foot
26984 status collapsed
26985
26986 \begin_layout Plain Layout
26987 It will usually take a lot of time to get exact command right and it depends
26988  on many things.
26989  For example do not have some remote server saved as a default session in
26990  Putty etc.
26991  If things fail, try to connect via plink without SVN first.
26992 \end_layout
26993
26994 \end_inset
26995
26996
26997 \end_layout
26998
26999 \end_deeper
27000 \begin_layout Enumerate
27001 Checkout the SVN archive, e.
27002 \begin_inset space \thinspace{}
27003 \end_inset
27004
27005 g.
27006 \begin_inset Newline newline
27007 \end_inset
27008
27009
27010 \begin_inset Flex Code
27011 status collapsed
27012
27013 \begin_layout Plain Layout
27014 svn co svn+ssh://user@server/repository_path
27015 \end_layout
27016
27017 \end_inset
27018
27019 .
27020 \end_layout
27021
27022 \begin_layout Subsubsection
27023 End-of-Line Conversions
27024 \end_layout
27025
27026 \begin_layout Standard
27027 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
27028  will
27029  use different line endings inside the .lyx files.
27030  This is not a problem as far as \SpecialChar LyX
27031  functionality is concerned, but the commit
27032  diffs will be huge and merge-conflicts prone.
27033  Fortunately SVN itself knows
27034 \begin_inset Foot
27035 status collapsed
27036
27037 \begin_layout Plain Layout
27038 \begin_inset Flex URL
27039 status collapsed
27040
27041 \begin_layout Plain Layout
27042
27043 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
27044 \end_layout
27045
27046 \end_inset
27047
27048
27049 \end_layout
27050
27051 \end_inset
27052
27053  how to deal with CR/LF problems when switching .lyx files to the 
27054 \begin_inset Flex Code
27055 status collapsed
27056
27057 \begin_layout Plain Layout
27058 native
27059 \end_layout
27060
27061 \end_inset
27062
27063  mode.
27064 \begin_inset Foot
27065 status collapsed
27066
27067 \begin_layout Plain Layout
27068 For the lazy guys: 
27069 \begin_inset Flex Code
27070 status collapsed
27071
27072 \begin_layout Plain Layout
27073 svn propset svn:eol-style native FILE_NAME
27074 \end_layout
27075
27076 \end_inset
27077
27078
27079 \end_layout
27080
27081 \end_inset
27082
27083
27084 \end_layout
27085
27086 \begin_layout Subsection
27087 GIT commands in \SpecialChar LyX
27088
27089 \end_layout
27090
27091 \begin_layout Standard
27092 A minimal subset of GIT commands is now supported by \SpecialChar LyX
27093 .
27094  You can find the commands in the 
27095 \family sans
27096 File\SpecialChar menuseparator
27097 Version
27098 \begin_inset space ~
27099 \end_inset
27100
27101 Control
27102 \family default
27103  submenu.
27104  Please note that if you use password protected access to repository via
27105  ssh, you will be asked in terminal window.
27106  \SpecialChar LyX
27107  was tested against GIT 1.7.
27108 \begin_inset Foot
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 Windows users please note that you need to ensure that git is on the path.
27113  This can be set from within \SpecialChar LyX
27114  at 
27115 \family sans
27116 Tools\SpecialChar menuseparator
27117 Preferences\SpecialChar menuseparator
27118 Paths\SpecialChar menuseparator
27119 PATH prefix
27120 \family default
27121 .
27122 \end_layout
27123
27124 \end_inset
27125
27126
27127 \end_layout
27128
27129 \begin_layout Standard
27130 One big difference of GIT and the other supported version control systems
27131  is the distributed nature of GIT: With traditional version control systems
27132  there is one central server which hosts the repository.
27133  Users commit their changes to the server, and get updates made by other
27134  users from it.
27135  With GIT, users commit to a local repository.
27136  The local repository can be synchronized with one or more remote repositories
27137  using the 
27138 \begin_inset Flex Code
27139 status collapsed
27140
27141 \begin_layout Plain Layout
27142 pull
27143 \end_layout
27144
27145 \end_inset
27146
27147  and 
27148 \begin_inset Flex Code
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 push
27153 \end_layout
27154
27155 \end_inset
27156
27157  GIT commands.
27158  \SpecialChar LyX
27159  does not interact in any way with remote GIT repositories.
27160  It works exclusively with the local repository in a very similar way as
27161  with a central CVS or SVN repository.
27162  If you use remote GIT repositories you need to do the 
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 pull
27168 \end_layout
27169
27170 \end_inset
27171
27172  and 
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 push
27178 \end_layout
27179
27180 \end_inset
27181
27182  operations with your favourite GIT client.
27183 \end_layout
27184
27185 \begin_layout Subsubsection
27186
27187 \family sans
27188 Register
27189 \end_layout
27190
27191 \begin_layout Standard
27192 If your document is not under revision control, this is the only item shown
27193  in the menu.
27194  And if it is under revision control, the 
27195 \family sans
27196 Register
27197 \family default
27198  item is not visible.
27199 \end_layout
27200
27201 \begin_layout Standard
27202 This command registers in GIT your document ONLY in case you have already
27203  the documents directory under GIT control (in particular 
27204 \family typewriter
27205 .git/index
27206 \family default
27207  file exists).
27208  This means you have to checkout the archive by yourself.
27209 \end_layout
27210
27211 \begin_layout Standard
27212 Then you are asked interactively to supply an initial description of the
27213  document.
27214  Don't forget that registered file is not yet committed.
27215 \end_layout
27216
27217 \begin_layout Standard
27218 GIT command that is run: 
27219 \family typewriter
27220 git add 
27221 \begin_inset Quotes qld
27222 \end_inset
27223
27224 <file-name>
27225 \begin_inset Quotes qld
27226 \end_inset
27227
27228
27229 \end_layout
27230
27231 \begin_layout Standard
27232 Read 
27233 \family typewriter
27234 man git
27235 \family default
27236  to understand the switches.
27237 \end_layout
27238
27239 \begin_layout Subsubsection
27240
27241 \family sans
27242 Check In Changes
27243 \end_layout
27244
27245 \begin_layout Standard
27246 When you are finished editing a file, you commit your changes.
27247  When you do this, you are asked for a description of the changes.
27248  After that changes are committed.
27249 \end_layout
27250
27251 \begin_layout Standard
27252 GIT command: 
27253 \family typewriter
27254 git commit -q -m"<description>" <file-name>
27255 \end_layout
27256
27257 \begin_layout Subsubsection
27258
27259 \family sans
27260 Revert To Repository Version
27261 \end_layout
27262
27263 \begin_layout Standard
27264 This will discard all changes made to the document since the last check
27265  in.
27266  You get a warning before changes are discarded.
27267 \end_layout
27268
27269 \begin_layout Standard
27270 GIT command: 
27271 \family typewriter
27272 git checkout -q 
27273 \begin_inset Quotes qld
27274 \end_inset
27275
27276 <file-name>
27277 \begin_inset Quotes qld
27278 \end_inset
27279
27280
27281 \end_layout
27282
27283 \begin_layout Subsubsection
27284
27285 \family sans
27286 Rename
27287 \end_layout
27288
27289 \begin_layout Standard
27290 This will rename the current document including the version history.
27291  It requires a clean document without any changes since the last checkin.
27292  You are asked for a file name and a description of the rename operation.
27293  After that the document is renamed, both locally and in the repository.
27294  If the parent directories of the new and old file names differ, all relative
27295  paths of included files are adjusted (like in 
27296 \family sans
27297 File\SpecialChar menuseparator
27298 Save As
27299 \family default
27300 \SpecialChar ldots
27301 ).
27302  Finally, the document is reloaded using the new name.
27303 \end_layout
27304
27305 \begin_layout Labeling
27306 \labelwidthstring 00.00.0000
27307 GIT
27308 \begin_inset space ~
27309 \end_inset
27310
27311 commands: 
27312 \begin_inset space ~
27313 \end_inset
27314
27315
27316 \begin_inset Newline newline
27317 \end_inset
27318
27319
27320 \begin_inset Flex Code
27321 status collapsed
27322
27323 \begin_layout Plain Layout
27324 git mv 
27325 \family typewriter
27326
27327 \begin_inset Quotes qld
27328 \end_inset
27329
27330 <file-name>
27331 \begin_inset Quotes qld
27332 \end_inset
27333
27334  
27335 \begin_inset Quotes qld
27336 \end_inset
27337
27338 <new-file-name>
27339 \begin_inset Quotes qld
27340 \end_inset
27341
27342
27343 \end_layout
27344
27345 \end_inset
27346
27347
27348 \begin_inset Newline newline
27349 \end_inset
27350
27351
27352 \begin_inset Flex Code
27353 status collapsed
27354
27355 \begin_layout Plain Layout
27356 git commit
27357 \end_layout
27358
27359 \end_inset
27360
27361
27362 \end_layout
27363
27364 \begin_layout Subsubsection
27365
27366 \family sans
27367 Show History
27368 \end_layout
27369
27370 \begin_layout Standard
27371 This shows the complete history of the GIT document.
27372  The output of 
27373 \family typewriter
27374 git log 
27375 \begin_inset Quotes qld
27376 \end_inset
27377
27378 <file-name>
27379 \begin_inset Quotes qld
27380 \end_inset
27381
27382
27383 \family default
27384  is shown in a browser.
27385 \end_layout
27386
27387 \begin_layout Subsubsection
27388 Version Info
27389 \end_layout
27390
27391 \begin_layout Standard
27392 \SpecialChar LyX
27393  supports GIT hash number of the last commit to the file, 
27394 \change_inserted 1119979965 1564297456
27395 its abbreviated form, 
27396 \change_unchanged
27397 author name, date and time of last commit.
27398  All those are extracted from 
27399 \family typewriter
27400 git log -n 1 --pretty=format:%H%n
27401 \change_inserted 1119979965 1564297427
27402 %h%n
27403 \change_unchanged
27404 %an%n%ai
27405 \family default
27406 .
27407  Tree version information is obtained via 
27408 \family typewriter
27409 git describe --abbrev --dirty --long
27410 \family default
27411 .
27412  See 
27413 \begin_inset CommandInset ref
27414 LatexCommand ref
27415 reference "subsec:VCS-Revision-Information"
27416
27417 \end_inset
27418
27419  for other details.
27420 \end_layout
27421
27422 \begin_layout Subsection
27423 Further tuning
27424 \end_layout
27425
27426 \begin_layout Standard
27427 With the recent addition of the 
27428 \begin_inset Flex Code
27429 status collapsed
27430
27431 \begin_layout Plain Layout
27432 vc-command
27433 \end_layout
27434
27435 \end_inset
27436
27437  function \SpecialChar LyX
27438  power users are allowed to create their own commands for revision
27439  control.
27440 \end_layout
27441
27442 \begin_layout Standard
27443 As an example you can see how two TortoiseSVN commands could be integrated
27444  directly:
27445 \end_layout
27446
27447 \begin_layout Description
27448 Commit: 
27449 \begin_inset Flex Code
27450 status collapsed
27451
27452 \begin_layout Plain Layout
27453 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
27454 \end_layout
27455
27456 \end_inset
27457
27458
27459 \end_layout
27460
27461 \begin_layout Description
27462 Revert: 
27463 \begin_inset Flex Code
27464 status collapsed
27465
27466 \begin_layout Plain Layout
27467 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
27468 \end_layout
27469
27470 \end_inset
27471
27472
27473 \end_layout
27474
27475 \begin_layout Subsection
27476 Version control and Document comparison
27477 \end_layout
27478
27479 \begin_layout Standard
27480 One of the typical uses of version control is to inspect the changes between
27481  revisions, usually by creating 
27482 \begin_inset Flex Code
27483 status collapsed
27484
27485 \begin_layout Plain Layout
27486 diff
27487 \end_layout
27488
27489 \end_inset
27490
27491  dumps.
27492  While this is useful for plain text files, it is much less useful in the
27493  case of \SpecialChar LyX
27494  files, which have more a complicated structure.
27495  Hence we provide binding to the Document comparison feature.
27496  There are two ways of calling this feature – either by direct call of 
27497 \begin_inset Flex Code
27498 status collapsed
27499
27500 \begin_layout Plain Layout
27501 vc-compare
27502 \end_layout
27503
27504 \end_inset
27505
27506  \SpecialChar LyX
27507  function (for details see \SpecialChar LyX
27508  functions manual) or by the toolbar icon 
27509 \begin_inset Info
27510 type  "icon"
27511 arg   "vc-compare"
27512 \end_inset
27513
27514  or the menu item 
27515 \begin_inset Info
27516 type  "menu"
27517 arg   "vc-compare"
27518 \end_inset
27519
27520 , respectively.
27521  One can either compare two chosen revisions of the document or he can simply
27522  compare the current version of edited text with older revisions (where
27523  '
27524 \begin_inset Flex Noun
27525 status collapsed
27526
27527 \begin_layout Plain Layout
27528 0
27529 \end_layout
27530
27531 \end_inset
27532
27533 ' revisions back means comparison of the edited file with last commited
27534  revision).
27535  
27536 \end_layout
27537
27538 \begin_layout Standard
27539 This feature is supported for SVN and RCS though due to the more complicated
27540  versioning scheme of RCS there is a constraint – when addressing the revisions
27541  in dialog, numbers always point to the last number in RCS revision number,
27542  i.e.
27543  '35' in '1.2.35'.
27544  We don't currently support GIT addressing of revisions, one can just compare
27545  edited document with its revision X steps backs, where X is addressed as
27546  
27547 \begin_inset Flex Code
27548 status collapsed
27549
27550 \begin_layout Plain Layout
27551 HEAD~X
27552 \end_layout
27553
27554 \end_inset
27555
27556 .
27557 \end_layout
27558
27559 \begin_layout Section
27560 Literate Programming
27561 \end_layout
27562
27563 \begin_layout Standard
27564 Updated by 
27565 \noun on
27566 Kayvan Sylvan 
27567 \noun default
27568 (kayvan@sylvan.com)
27569 \noun on
27570
27571 \noun default
27572 original documentation written by 
27573 \noun on
27574 Edmar Wienskoski Jr.
27575
27576 \noun default
27577  (edmar-w-jr@technologist.com)
27578 \end_layout
27579
27580 \begin_layout Subsection
27581 Introduction
27582 \end_layout
27583
27584 \begin_layout Standard
27585 The main purpose of this documentation is to show you how to use \SpecialChar LyX
27586  for literate
27587  programming, where it is assumed that you are familiar with this programming
27588  technique, and know what 
27589 \begin_inset Quotes eld
27590 \end_inset
27591
27592 tangling
27593 \begin_inset Quotes erd
27594 \end_inset
27595
27596  and 
27597 \begin_inset Quotes eld
27598 \end_inset
27599
27600 weaving
27601 \begin_inset Quotes erd
27602 \end_inset
27603
27604  means.
27605  If that is not the case, please follow the web links provided in the following
27606  sections.
27607  There is a lot of good documentation out there covering old development
27608  history to the latest tools tips.
27609 \end_layout
27610
27611 \begin_layout Standard
27612 It is also assumed that you are familiar with \SpecialChar LyX
27613  itself to a point that you
27614  are comfortable changing your \SpecialChar LyX
27615  preferences, and X resources file.
27616  If that is not the case please refer to other \SpecialChar LyX
27617  documentation to cover your
27618  specific needs.
27619 \end_layout
27620
27621 \begin_layout Subsection
27622 Literate Programming
27623 \end_layout
27624
27625 \begin_layout Standard
27626 From the Literate Programming FAQ: 
27627 \end_layout
27628
27629 \begin_layout Quotation
27630 Literate programming is the combination of documentation and source together
27631  in a fashion suited for reading by human beings.
27632  In fact, literate programs should be enjoyable reading, even inviting!
27633  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
27634  and documentation in a single file.
27635  Literate programming tools then parse the file to produce either readable
27636  documentation or compilable source.
27637  The WEB style of literate programming was created by D.
27638 \begin_inset space \thinspace{}
27639 \end_inset
27640
27641 E.
27642  Knuth during the development of his \SpecialChar TeX
27643  typesetting software.
27644  
27645 \end_layout
27646
27647 \begin_layout Standard
27648 Another excerpt says:
27649 \end_layout
27650
27651 \begin_layout Quotation
27652
27653 \emph on
27654 How is literate programming different from verbose commenting?
27655 \end_layout
27656
27657 \begin_layout Quotation
27658 There are three distinguishing characteristics.
27659  In order of importance, they are: 
27660 \end_layout
27661
27662 \begin_deeper
27663 \begin_layout Itemize
27664 flexible order of elaboration 
27665 \end_layout
27666
27667 \begin_layout Itemize
27668 automatic support for browsing 
27669 \end_layout
27670
27671 \begin_layout Itemize
27672 typeset documentation, especially diagrams and mathematics 
27673 \end_layout
27674
27675 \end_deeper
27676 \begin_layout Standard
27677 Now that I sparked your curiosity, take a look in the references.
27678 \end_layout
27679
27680 \begin_layout Subsubsection
27681 References
27682 \end_layout
27683
27684 \begin_layout Standard
27685 The complete Literate Programming FAQ can be found at:
27686 \end_layout
27687
27688 \begin_layout Quote
27689 Literate Programming FAQ 
27690 \begin_inset Flex URL
27691 status open
27692
27693 \begin_layout Plain Layout
27694
27695 http://www.literateprogramming.com/lpfaq.pdf
27696 \end_layout
27697
27698 \end_inset
27699
27700
27701 \end_layout
27702
27703 \begin_layout Standard
27704 The FAQ lists 23 (twenty three!) different literate programming tools.
27705  Where some are specialized or 
27706 \begin_inset Quotes eld
27707 \end_inset
27708
27709 tailored
27710 \begin_inset Quotes erd
27711 \end_inset
27712
27713  for particular programming languages, while other have general scope.
27714  I selected 
27715 \noun on
27716 Noweb
27717 \noun default
27718  for my own use for several reasons:
27719 \end_layout
27720
27721 \begin_layout Itemize
27722 It can generate the documentation either in \SpecialChar LaTeX
27723  or HTML.
27724 \end_layout
27725
27726 \begin_layout Itemize
27727 It has a open architecture, i.
27728 \begin_inset space \thinspace{}
27729 \end_inset
27730
27731 e.
27732 \begin_inset space \space{}
27733 \end_inset
27734
27735 it is easy to plug in new filters
27736 \begin_inset Foot
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740
27741 \emph on
27742 Filters 
27743 \emph default
27744 are programs that read a given data stream and output a manipulated data
27745  stream.
27746  That way, a WEB file (consisting of literate code) can be turned into a
27747  file consisting only of C program code or \SpecialChar LaTeX
27748  code.
27749 \end_layout
27750
27751 \end_inset
27752
27753  and to perform special processing that you may need.
27754  
27755 \end_layout
27756
27757 \begin_layout Itemize
27758 There is a good selection of filters available already (the HTML is one
27759  of them).
27760 \end_layout
27761
27762 \begin_layout Itemize
27763 It is free.
27764 \end_layout
27765
27766 \begin_layout Standard
27767 The Noweb web page can be found at: 
27768 \end_layout
27769
27770 \begin_layout Quote
27771 Noweb home page 
27772 \begin_inset Flex URL
27773 status collapsed
27774
27775 \begin_layout Plain Layout
27776
27777 https://www.cs.tufts.edu/~nr/noweb/
27778 \end_layout
27779
27780 \end_inset
27781
27782
27783 \end_layout
27784
27785 \begin_layout Standard
27786 Starting from there you can reach many other interesting links and even
27787  some literate program examples.
27788 \end_layout
27789
27790 \begin_layout Subsection
27791 \SpecialChar LyX
27792  and Literate Programming with Noweb
27793 \end_layout
27794
27795 \begin_layout Standard
27796 The \SpecialChar LyX
27797  support for Literate Programming is provided by using the generic \SpecialChar LyX
27798
27799  converters mechanism.
27800  This support is provided in a 
27801 \begin_inset Quotes eld
27802 \end_inset
27803
27804 Noweb independent
27805 \begin_inset Quotes erd
27806 \end_inset
27807
27808  way, i.
27809 \begin_inset space \thinspace{}
27810 \end_inset
27811
27812 e.
27813 \begin_inset space \space{}
27814 \end_inset
27815
27816 you will be able to use this new \SpecialChar LyX
27817  feature with some other literate programming
27818  tool of your choice by just changing your \SpecialChar LyX
27819  preferences.
27820 \end_layout
27821
27822 \begin_layout Subsubsection
27823 Generating documents and code (weaving and tangling)
27824 \end_layout
27825
27826 \begin_layout Paragraph
27827 Using the noweb module
27828 \end_layout
27829
27830 \begin_layout Standard
27831 If you have installed Noweb and \SpecialChar LyX
27832  successfully, whenever you open a new document,
27833  after you have chosen its document class, use the 
27834 \family sans
27835 Document\SpecialChar menuseparator
27836 Settings
27837 \family default
27838  menu to add the 
27839 \begin_inset Quotes eld
27840 \end_inset
27841
27842 noweb
27843 \begin_inset Quotes erd
27844 \end_inset
27845
27846  module.
27847  If Noweb is correctly installed, when you click on the 
27848 \begin_inset Quotes eld
27849 \end_inset
27850
27851 Modules
27852 \begin_inset Quotes erd
27853 \end_inset
27854
27855  link, you will see the 
27856 \begin_inset Quotes eld
27857 \end_inset
27858
27859 noweb
27860 \begin_inset Quotes erd
27861 \end_inset
27862
27863  module in the available list and you can add it to your document.
27864 \end_layout
27865
27866 \begin_layout Paragraph
27867 Typing code in
27868 \end_layout
27869
27870 \begin_layout Standard
27871 \SpecialChar LyX
27872  enables you to write code with a custom inset named 
27873 \begin_inset Flex Noun
27874 status collapsed
27875
27876 \begin_layout Plain Layout
27877 Chunk
27878 \end_layout
27879
27880 \end_inset
27881
27882 .
27883  Noweb delimits chunks like this:
27884 \end_layout
27885
27886 \begin_layout LyX-Code
27887 <<My code>>=
27888 \end_layout
27889
27890 \begin_layout LyX-Code
27891   code
27892 \end_layout
27893
27894 \begin_layout LyX-Code
27895   more code
27896 \end_layout
27897
27898 \begin_layout LyX-Code
27899   even more code
27900 \end_layout
27901
27902 \begin_layout LyX-Code
27903   @
27904 \end_layout
27905
27906 \begin_layout Standard
27907 The problem is that whatever is written in between the << and the 
27908 \family typewriter
27909 @
27910 \family default
27911  must be taken literally, i.
27912 \begin_inset space \thinspace{}
27913 \end_inset
27914
27915 e.
27916 \begin_inset space \space{}
27917 \end_inset
27918
27919 \SpecialChar LyX
27920  should be prevented from making any special interpretation of what has
27921  been written.
27922  This is also handled by 
27923 \begin_inset Flex Noun
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927 Chunk
27928 \end_layout
27929
27930 \end_inset
27931
27932 , that works like a normal text inset but has a free spacing capability.
27933 \end_layout
27934
27935 \begin_layout Standard
27936 As a special note, you can also use the 
27937 \begin_inset Quotes eld
27938 \end_inset
27939
27940 %def
27941 \begin_inset Quotes erd
27942 \end_inset
27943
27944  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
27945 rence:
27946 \end_layout
27947
27948 \begin_layout LyX-Code
27949 <<My chunk>>=
27950 \end_layout
27951
27952 \begin_layout LyX-Code
27953 def some_function(args):
27954 \end_layout
27955
27956 \begin_layout LyX-Code
27957    "This is the doc string for this function."
27958 \end_layout
27959
27960 \begin_layout LyX-Code
27961    print "My args: ", args
27962 \end_layout
27963
27964 \begin_layout LyX-Code
27965 @ %def some_function
27966 \end_layout
27967
27968 \begin_layout Standard
27969 For an example of this usage and the resulting cross-reference output, look
27970  at the Literate python program in 
27971 \emph on
27972 LIBDIR/examples/listerrors.lyx
27973 \emph default
27974  which should make this all clear.
27975 \end_layout
27976
27977 \begin_layout Paragraph
27978 Generating the documentation
27979 \end_layout
27980
27981 \begin_layout Standard
27982 At this point you already have a new document file with a proper document
27983  class, and with some code and text on it.
27984  How do I print it? The answer is simple, you select 
27985 \family sans
27986 View\SpecialChar menuseparator
27987 DVI,
27988 \family default
27989  etc.
27990  Just like you would do for a plain document.
27991  No special procedure is required.
27992 \end_layout
27993
27994 \begin_layout Standard
27995 To help orientate you, I will now explain what happens inside \SpecialChar LyX
27996 :
27997 \end_layout
27998
27999 \begin_layout Enumerate
28000 When the 
28001 \family sans
28002 Update\SpecialChar menuseparator
28003 DVI
28004 \family default
28005  menu option is chosen, a \SpecialChar LaTeX
28006  file is generated.
28007  
28008 \end_layout
28009
28010 \begin_deeper
28011 \begin_layout Standard
28012 If the document is of any literate class the generated file will be named
28013  with an extension name defined by the 
28014 \begin_inset Quotes eld
28015 \end_inset
28016
28017 literate
28018 \begin_inset Quotes erd
28019 \end_inset
28020
28021  format (defined in the Preferences panel), otherwise the file will have
28022  the usual 
28023 \family typewriter
28024 .tex
28025 \family default
28026  extension.
28027 \end_layout
28028
28029 \end_deeper
28030 \begin_layout Enumerate
28031 Note that the only difference so far is in the name of the file, no special
28032  processing is required by \SpecialChar LyX
28033 .
28034  Given that you formatted the code using the 
28035 \begin_inset Flex Noun
28036 status collapsed
28037
28038 \begin_layout Plain Layout
28039 Chunk
28040 \end_layout
28041
28042 \end_inset
28043
28044  inset that, by itself, takes care of the business.
28045 \end_layout
28046
28047 \begin_layout Enumerate
28048 If the document is of any literate class \SpecialChar LyX
28049  will then use the internal \SpecialChar LyX
28050  to
28051  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
28052  converter
28053 \begin_inset Foot
28054 status collapsed
28055
28056 \begin_layout Plain Layout
28057 The converters are defined in the 
28058 \family sans
28059 Tools\SpecialChar menuseparator
28060 Preferences
28061 \family default
28062  panel, under the 
28063 \begin_inset Quotes eld
28064 \end_inset
28065
28066 Conversion
28067 \begin_inset Quotes erd
28068 \end_inset
28069
28070  tab.
28071  See section 
28072 \emph on
28073 Converters
28074 \emph default
28075  of the 
28076 \emph on
28077 Customization
28078 \emph default
28079  manual for general information about converters.
28080 \end_layout
28081
28082 \end_inset
28083
28084  to generate the \SpecialChar LaTeX
28085  file.
28086 \end_layout
28087
28088 \begin_deeper
28089 \begin_layout Standard
28090 Otherwise it will just skip this step.
28091 \end_layout
28092
28093 \end_deeper
28094 \begin_layout Enumerate
28095 Finally, \SpecialChar LaTeX
28096  is invoked and the regular post processing continues as in a plain
28097  document.
28098 \end_layout
28099
28100 \begin_layout Standard
28101 Independence from a particular 
28102 \begin_inset Quotes eld
28103 \end_inset
28104
28105 literate tool
28106 \begin_inset Quotes erd
28107 \end_inset
28108
28109  is easily achieved by changing the commands that are run by the various
28110  converters.
28111 \end_layout
28112
28113 \begin_layout Paragraph
28114 Generating the code
28115 \end_layout
28116
28117 \begin_layout Standard
28118 When the build menu option is chosen or the corresponding button in the
28119  toolbar is pressed, a \SpecialChar LaTeX
28120  file is generated just like step 1 above.
28121  Next, \SpecialChar LyX
28122  invokes the 
28123 \family typewriter
28124 Noweb->Program
28125 \family default
28126  converter.
28127  This converter needs to be defined by the user and is not installed by
28128  default, though the Program format is.
28129  This converter (like any other converter) will have two parts:
28130 \end_layout
28131
28132 \begin_layout Enumerate
28133 The converter program itself.
28134  This program performs the conversion from the one format to the other (in
28135  this case, from the Noweb format to the Program pseudo-format).
28136 \end_layout
28137
28138 \begin_layout Enumerate
28139 The error log parser.
28140  This is a program whose sole purpose is to rewrite error messages in a
28141  format that \SpecialChar LyX
28142  understands.
28143  This makes it possible for \SpecialChar LyX
28144  to place error boxes in the right places in
28145  the file buffer.
28146 \end_layout
28147
28148 \begin_layout Standard
28149 The first part, the 
28150 \begin_inset Quotes eld
28151 \end_inset
28152
28153 Converter
28154 \begin_inset Quotes erd
28155 \end_inset
28156
28157  setting, should be set to
28158 \end_layout
28159
28160 \begin_layout LyX-Code
28161
28162 \family typewriter
28163 build-script $$i
28164 \family default
28165  $$r
28166 \end_layout
28167
28168 \begin_layout Standard
28169 This basically means that \SpecialChar LyX
28170  will call 
28171 \begin_inset Quotes eld
28172 \end_inset
28173
28174 build-script
28175 \begin_inset Quotes erd
28176 \end_inset
28177
28178  (a program or script) with the name of the Noweb file (normally a file
28179  in the \SpecialChar LyX
28180  temp directory) and the directory path of the original \SpecialChar LyX
28181  file.
28182  
28183 \end_layout
28184
28185 \begin_layout Standard
28186 This is an implementation of 
28187 \begin_inset Quotes eld
28188 \end_inset
28189
28190 build-script
28191 \begin_inset Quotes erd
28192 \end_inset
28193
28194  that you can place in a directory on your path:
28195 \end_layout
28196
28197 \begin_layout LyX-Code
28198
28199 \family sans
28200 #!/bin/sh
28201 \end_layout
28202
28203 \begin_layout LyX-Code
28204
28205 \family sans
28206 #
28207 \end_layout
28208
28209 \begin_layout LyX-Code
28210
28211 \family sans
28212 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
28213 \end_layout
28214
28215 \begin_layout Standard
28216 The next part of the converter setting is the 
28217 \begin_inset Quotes eld
28218 \end_inset
28219
28220 Flags
28221 \begin_inset Quotes erd
28222 \end_inset
28223
28224  which is to be set to
28225 \end_layout
28226
28227 \begin_layout LyX-Code
28228
28229 \family typewriter
28230 parselog=$$s/scripts/listerrors
28231 \end_layout
28232
28233 \begin_layout Standard
28234 This will run any errors that are generated by the 
28235 \begin_inset Quotes eld
28236 \end_inset
28237
28238 build-script
28239 \begin_inset Quotes erd
28240 \end_inset
28241
28242  process through the 
28243 \begin_inset Quotes eld
28244 \end_inset
28245
28246 listerrors
28247 \begin_inset Quotes erd
28248 \end_inset
28249
28250  program.
28251 \end_layout
28252
28253 \begin_layout Standard
28254 The build will normally take place in \SpecialChar LyX
28255 's temporary directory, so the files
28256  produced by the conversion will be in that directory.
28257  \SpecialChar LyX
28258  will copy out what it regards as the `main' file, but the 
28259 \family typewriter
28260 Noweb->Program
28261 \family default
28262  conversion may produce several files, and so most of these would then be
28263  deleted when \SpecialChar LyX
28264  was closed.
28265  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
28266  the build-script chunk can place the generated files in that location.
28267 \end_layout
28268
28269 \begin_layout Paragraph
28270 Build instructions in the document
28271 \end_layout
28272
28273 \begin_layout Standard
28274 The last piece of the integration between \SpecialChar LyX
28275  and noweb is the 
28276 \begin_inset Quotes eld
28277 \end_inset
28278
28279 build-script
28280 \begin_inset Quotes erd
28281 \end_inset
28282
28283  chunk.
28284  Generally, the instructions for building your program should be embedded
28285  in a chunk of its own.
28286  The noweb-specific 
28287 \begin_inset Quotes eld
28288 \end_inset
28289
28290 build-script
28291 \begin_inset Quotes erd
28292 \end_inset
28293
28294  above uses the notangle command to look for this chunk (called 
28295 \begin_inset Quotes eld
28296 \end_inset
28297
28298 build-script
28299 \begin_inset Quotes erd
28300 \end_inset
28301
28302 ) and runs its contents through 
28303 \begin_inset Quotes eld
28304 \end_inset
28305
28306 sh
28307 \begin_inset Quotes erd
28308 \end_inset
28309
28310 .
28311 \end_layout
28312
28313 \begin_layout Standard
28314 Typically, such a chunk would look something like this:
28315 \end_layout
28316
28317 \begin_layout LyX-Code
28318 <<build-script>>=
28319 \end_layout
28320
28321 \begin_layout LyX-Code
28322 #!/bin/sh
28323 \begin_inset Newline newline
28324 \end_inset
28325
28326 if [ -z "${NOWEB_SOURCE}" ]
28327 \begin_inset Newline newline
28328 \end_inset
28329
28330 then
28331 \end_layout
28332
28333 \begin_layout LyX-Code
28334 NOWEB_SOURCE=myfile.nw
28335 \begin_inset Newline newline
28336 \end_inset
28337
28338 fi
28339 \begin_inset Newline newline
28340 \end_inset
28341
28342 [...
28343  code to extract files ...
28344  use NOWEB_OUTPUT_DIR here ...]
28345 \begin_inset Newline newline
28346 \end_inset
28347
28348 [...
28349  code to compile files ...]
28350 \begin_inset Newline newline
28351 \end_inset
28352
28353 @
28354 \end_layout
28355
28356 \begin_layout Standard
28357 Look in 
28358 \emph on
28359 LIBDIR/examples/listerrors.lyx
28360 \emph default
28361  or in 
28362 \emph on
28363 LIBDIR/examples/Literate.lyx
28364 \emph default
28365  which implement two versions of the 
28366 \begin_inset Quotes eld
28367 \end_inset
28368
28369 listerrors
28370 \begin_inset Quotes erd
28371 \end_inset
28372
28373  program for some illustrations of how all of these pieces go together or
28374  in 
28375 \emph on
28376 LIBDIR/examples/noweb2lyx.lyx.
28377
28378 \emph default
28379  Interestingly, these three files show off the language-indepence of the
28380  \SpecialChar LyX
28381  literate programming support since they are written in Python, C and Perl
28382  respectively.
28383 \end_layout
28384
28385 \begin_layout Subsubsection
28386 Configuring \SpecialChar LyX
28387
28388 \end_layout
28389
28390 \begin_layout Standard
28391 All the Literate Programming support is configured by the 
28392 \family sans
28393 Tools\SpecialChar menuseparator
28394 Preferences
28395 \family default
28396  panel in the 
28397 \begin_inset Quotes eld
28398 \end_inset
28399
28400 File Handling
28401 \begin_inset Quotes erd
28402 \end_inset
28403
28404  tab.
28405  The important parts are:
28406 \end_layout
28407
28408 \begin_layout Description
28409 the
28410 \begin_inset space ~
28411 \end_inset
28412
28413
28414 \begin_inset Quotes eld
28415 \end_inset
28416
28417 NoWeb
28418 \begin_inset Quotes erd
28419 \end_inset
28420
28421
28422 \begin_inset space ~
28423 \end_inset
28424
28425 format Set up via the File Formats tab, this is where the Noweb-specific
28426  pieces are set up.
28427  The 
28428 \family sans
28429 GUI Name
28430 \family default
28431  is set to 
28432 \family typewriter
28433 NoWeb
28434 \family default
28435 , the file extension is set to 
28436 \family typewriter
28437 .nw
28438 \family default
28439 .
28440  This tells \SpecialChar LyX
28441  to create a file with a 
28442 \family typewriter
28443 .nw
28444 \family default
28445  extension in the first step of the conversion process.
28446 \end_layout
28447
28448 \begin_layout Description
28449 the
28450 \begin_inset space ~
28451 \end_inset
28452
28453
28454 \family sans
28455 Program
28456 \family default
28457
28458 \begin_inset space ~
28459 \end_inset
28460
28461 format This is an empty format whose sole purpose is to be the endpoint
28462  of a conversion (which then allows us to set up a converter for it).
28463 \end_layout
28464
28465 \begin_layout Description
28466
28467 \family sans
28468 NoWeb
28469 \family default
28470 ->
28471 \family sans
28472 \SpecialChar LaTeX
28473
28474 \family default
28475  This converter performs the 
28476 \begin_inset Quotes eld
28477 \end_inset
28478
28479 weaving
28480 \begin_inset Quotes erd
28481 \end_inset
28482
28483  of the literate document.
28484  For Noweb, it is set to 
28485 \begin_inset Quotes eld
28486 \end_inset
28487
28488
28489 \family typewriter
28490 noweave -delay -index $$i > $$o
28491 \family default
28492
28493 \begin_inset Quotes erd
28494 \end_inset
28495
28496
28497 \end_layout
28498
28499 \begin_layout Description
28500
28501 \family sans
28502 NoWeb
28503 \family default
28504 ->
28505 \family sans
28506 Program
28507 \family default
28508  This performs the 
28509 \begin_inset Quotes eld
28510 \end_inset
28511
28512 tangling step
28513 \begin_inset Quotes erd
28514 \end_inset
28515
28516 .
28517  As stated above, the Converter is set to 
28518 \begin_inset Quotes eld
28519 \end_inset
28520
28521
28522 \family typewriter
28523 build-script $$i
28524 \family default
28525  $$r
28526 \begin_inset Quotes erd
28527 \end_inset
28528
28529 , with Flags set to
28530 \begin_inset Newline newline
28531 \end_inset
28532
28533
28534 \begin_inset Quotes eld
28535 \end_inset
28536
28537
28538 \family typewriter
28539 parselog=$$s/scripts/listerrors
28540 \family default
28541
28542 \begin_inset Quotes erd
28543 \end_inset
28544
28545 .
28546 \end_layout
28547
28548 \begin_layout Subsubsection
28549 Debug extensions
28550 \end_layout
28551
28552 \begin_layout Standard
28553 There is also a new function implemented in the \SpecialChar LyX
28554  server, the 
28555 \begin_inset Quotes eld
28556 \end_inset
28557
28558 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
28559  
28560 \end_layout
28561
28562 \begin_layout Standard
28563 When debugging code with ddd/gdb, it is possible to invoke a text editor
28564  at the current execution position with a single key stroke.
28565  The default ddd configuration for that is shift-ctrl-V.
28566  It happens that you can define the editor command line invocation in ddd
28567  by accessing the 
28568 \family sans
28569 Edit\SpecialChar menuseparator
28570 Preferences\SpecialChar menuseparator
28571 Helpers
28572 \family default
28573  dialog and changing the "Edit Sources" entry.
28574 \end_layout
28575
28576 \begin_layout Standard
28577 I take advantage of the newly created \SpecialChar LyX
28578  server function and this ddd feature,
28579  and set 
28580 \begin_inset Quotes eld
28581 \end_inset
28582
28583 Edit Sources
28584 \begin_inset Quotes erd
28585 \end_inset
28586
28587  to:
28588 \end_layout
28589
28590 \begin_layout LyX-Code
28591 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
28592 \end_layout
28593
28594 \begin_layout Standard
28595 With this, whenever you are using ddd and find a point in the program that
28596  you want to edit, you just press shift-ctrl-V (in the ddd window), and
28597  ddd will forward this information to \SpecialChar LyX
28598  through the \SpecialChar LyX
28599  server and then the
28600  \SpecialChar LyX
28601  window will show the same file with the cursor at the same position ddd
28602  was pointing to.
28603  No more guessing or long scrolling to locate a point in the program back
28604  from debugging !
28605 \end_layout
28606
28607 \begin_layout Standard
28608 Note however that you must enable the \SpecialChar LyX
28609  server to get this feature working
28610  (it is disabled by default).
28611  Sec.
28612 \begin_inset space ~
28613 \end_inset
28614
28615
28616 \begin_inset CommandInset ref
28617 LatexCommand ref
28618 reference "sec:Starting-the-Server"
28619
28620 \end_inset
28621
28622  explains how to do that.
28623 \end_layout
28624
28625 \begin_layout Subsubsection
28626 Toolbar extensions
28627 \end_layout
28628
28629 \begin_layout Standard
28630 There are six new buttons that can be added to your \SpecialChar LyX
28631  toolbar.
28632  Four of these buttons are short cuts to layout styles: 
28633 \family sans
28634 Standard
28635 \family default
28636
28637 \family sans
28638 Section
28639 \family default
28640
28641 \family sans
28642 \SpecialChar LaTeX
28643
28644 \family default
28645 , and 
28646 \family sans
28647 \SpecialChar LyX
28648 -Code
28649 \family default
28650 , one for the custom inset 
28651 \family sans
28652 Chunk
28653 \family default
28654 .
28655  The last one is a short cut to the 
28656 \begin_inset Quotes eld
28657 \end_inset
28658
28659 Build Program
28660 \begin_inset Quotes erd
28661 \end_inset
28662
28663  File menu entry.
28664  
28665 \end_layout
28666
28667 \begin_layout Standard
28668 \SpecialChar LyX
28669  has a range of buttons that are available for tool bar customization.
28670  In my toolbar I like to combine the six short cuts above with two more:
28671  One for 
28672 \family sans
28673 Document
28674 \family default
28675 \SpecialChar menuseparator
28676
28677 \family sans
28678 Update
28679 \family default
28680 \SpecialChar menuseparator
28681
28682 \family sans
28683 DVI
28684 \family default
28685  and the other for 
28686 \family sans
28687 Document\SpecialChar menuseparator
28688 View\SpecialChar menuseparator
28689 DVI
28690 \family default
28691  File menu entries.
28692  Here is how it looks like:
28693 \end_layout
28694
28695 \begin_layout LyX-Code
28696 Toolbar
28697 \end_layout
28698
28699 \begin_layout LyX-Code
28700   Layouts
28701 \end_layout
28702
28703 \begin_layout LyX-Code
28704   Icon "layout Standard"
28705 \end_layout
28706
28707 \begin_layout LyX-Code
28708   Icon "layout Section"
28709 \end_layout
28710
28711 \begin_layout LyX-Code
28712   Icon "layout \SpecialChar LaTeX
28713 "
28714 \end_layout
28715
28716 \begin_layout LyX-Code
28717   Icon "layout \SpecialChar LyX
28718 -Code"
28719 \end_layout
28720
28721 \begin_layout LyX-Code
28722   Icon "flex.insert Chunk"
28723 \end_layout
28724
28725 \begin_layout LyX-Code
28726   Separator
28727 \end_layout
28728
28729 \begin_layout LyX-Code
28730   Icon "buffer-view"
28731 \end_layout
28732
28733 \begin_layout LyX-Code
28734   Icon "buffer-typeset"
28735 \end_layout
28736
28737 \begin_layout LyX-Code
28738   Icon "build-program"
28739 \end_layout
28740
28741 \begin_layout LyX-Code
28742   Separator
28743 \end_layout
28744
28745 \begin_layout LyX-Code
28746 .
28747 \end_layout
28748
28749 \begin_layout LyX-Code
28750 .
28751 \end_layout
28752
28753 \begin_layout LyX-Code
28754 .
28755 \end_layout
28756
28757 \begin_layout LyX-Code
28758 End
28759 \end_layout
28760
28761 \begin_layout Subsubsection
28762 Colors customization
28763 \end_layout
28764
28765 \begin_layout Standard
28766 There are a number of colors in \SpecialChar LyX
28767  that can be customized in 
28768 \family sans
28769 Preferences
28770 \family default
28771 .
28772  One of the things that bothers people is the \SpecialChar LaTeX
28773  font color.
28774  The default color is red, since the chunks uses \SpecialChar LaTeX
28775  font, and there is a lot
28776  of chunks in literate documents, you may get tired of seeing everything
28777  in red.
28778  You can change it by going to the tabs 
28779 \family sans
28780 Look&Feel
28781 \family default
28782
28783 \family sans
28784 Colors.
28785 \end_layout
28786
28787 \begin_layout Standard
28788 The next thing is the visible presence of the newline character in the screen.
28789  You can choose the color of this particular character and make it blend
28790  in the background.
28791  I recommend you choosing a color that is close to the background but not
28792  equal, that way you still can see it is there, but it is not bothering
28793  you anymore.
28794 \end_layout
28795
28796 \begin_layout Subsection
28797 \SpecialChar LyX
28798  and knitr/Sweave
28799 \end_layout
28800
28801 \begin_layout Standard
28802 Support for 
28803 \family sans
28804 knitr
28805 \family default
28806  and 
28807 \family sans
28808 Sweave
28809 \family default
28810  is documented in the 
28811 \emph on
28812 knitr.lyx
28813 \emph default
28814  example file and in the Sweave manual (menu 
28815 \family sans
28816 Help\SpecialChar menuseparator
28817 Specific Manuals
28818 \family default
28819 ).
28820 \end_layout
28821
28822 \begin_layout Chapter
28823 Special features
28824 \end_layout
28825
28826 \begin_layout Standard
28827 You can do everything with \SpecialChar LyX
28828  that you can do with \SpecialChar LaTeX
28829 .
28830  However, \SpecialChar LyX
28831  cannot support every \SpecialChar LaTeX
28832  feature directly.
28833  But you can always use \SpecialChar TeX
28834  Code.
28835  This chapter shows you some more special things you might want to use.
28836  For other special things you can do with figures, tables, floats, boxes
28837  and notes, have a look at the 
28838 \emph on
28839 Embedded
28840 \begin_inset space ~
28841 \end_inset
28842
28843 Objects
28844 \emph default
28845  manual.
28846 \end_layout
28847
28848 \end_body
28849 \end_document