]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move AasteX section in Additional.lyx into Chapter 3 Document classes
[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 Section
4525
4526 \change_inserted 564990737 1670439534
4527 Articles
4528 \end_layout
4529
4530 \begin_layout Standard
4531
4532 \change_inserted 564990737 1670794710
4533 See also the document classes in the Collections (section
4534 \begin_inset space ~
4535 \end_inset
4536
4537
4538 \begin_inset CommandInset ref
4539 LatexCommand ref
4540 reference "sec:Collections"
4541
4542 \end_inset
4543
4544 ).
4545 \end_layout
4546
4547 \begin_layout Subsection
4548
4549 \change_inserted 564990737 1670794716
4550
4551 \lang american
4552 A&A Paper
4553 \end_layout
4554
4555 \begin_layout Standard
4556
4557 \change_inserted 564990737 1670794716
4558
4559 \lang american
4560 Original by 
4561 \noun on
4562 Peter Sütterlin
4563 \noun default
4564 ; updated by the \SpecialChar LyX
4565  Team
4566 \end_layout
4567
4568 \begin_layout Subsubsection
4569
4570 \change_inserted 564990737 1670794716
4571
4572 \lang american
4573 Introduction
4574 \end_layout
4575
4576 \begin_layout Standard
4577
4578 \change_inserted 564990737 1670794716
4579
4580 \lang american
4581 This section describes how \SpecialChar LyX
4582  can be used to write articles for submission
4583  to the scientific journal 
4584 \emph on
4585 Astronomy and Astrophysics
4586 \emph default
4587  (
4588 \begin_inset CommandInset href
4589 LatexCommand href
4590 name "aa-package"
4591 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4592 literal "false"
4593
4594 \end_inset
4595
4596 ) using Version 9.1 of the document class 
4597 \family typewriter
4598 aa.cls
4599 \family default
4600 ; information about it is available at 
4601 \begin_inset Flex URL
4602 status collapsed
4603
4604 \begin_layout Plain Layout
4605
4606 \change_inserted 564990737 1670794716
4607
4608 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4609 \change_unchanged
4610
4611 \end_layout
4612
4613 \end_inset
4614
4615 .
4616 \end_layout
4617
4618 \begin_layout Standard
4619
4620 \change_inserted 564990737 1670794716
4621
4622 \lang american
4623 A manual comes together with the package and should be consulted before
4624  installing this document class as described in the 
4625 \emph on
4626 Installing New Document Classe
4627 \emph default
4628 s section of the 
4629 \emph on
4630 Customization
4631 \emph default
4632  manual.
4633  
4634 \end_layout
4635
4636 \begin_layout Standard
4637
4638 \change_inserted 564990737 1670794716
4639
4640 \lang american
4641 \begin_inset Note Greyedout
4642 status open
4643
4644 \begin_layout Plain Layout
4645
4646 \change_inserted 564990737 1670794716
4647
4648 \lang american
4649 Please note that the publisher of the journal was changed from Springer
4650  to EDP Sciences starting January 1, 2001.
4651  That change also involved some slight changes to the style files, namely
4652  the removal of the thesaurus command.
4653  If you have an older version installed, please upgrade.
4654  For information about compatibility with the old (version 4) layout, please
4655  refer to the comments in 
4656 \family typewriter
4657 \SpecialChar LyX
4658 Dir/layouts/aapaper.layout
4659 \family default
4660 .
4661 \end_layout
4662
4663 \end_inset
4664
4665
4666 \end_layout
4667
4668 \begin_layout Subsubsection
4669
4670 \change_inserted 564990737 1670794716
4671
4672 \lang american
4673 Getting started
4674 \end_layout
4675
4676 \begin_layout Standard
4677
4678 \change_inserted 564990737 1670794716
4679
4680 \lang american
4681 It is recommended you start from the template 
4682 \emph on
4683 aa.lyx
4684 \emph default
4685  in the menu 
4686 \family sans
4687 \bar under
4688 F
4689 \bar default
4690 ile\SpecialChar menuseparator
4691 New
4692 \begin_inset space ~
4693 \end_inset
4694
4695 fro
4696 \bar under
4697 m
4698 \bar default
4699
4700 \begin_inset space ~
4701 \end_inset
4702
4703 Template
4704 \family default
4705 .
4706  If you are not using the template, note the following settings:
4707 \end_layout
4708
4709 \begin_layout Itemize
4710
4711 \change_inserted 564990737 1670794716
4712
4713 \lang american
4714 Select 
4715 \family sans
4716 article (A&A)
4717 \family default
4718  in the 
4719 \family sans
4720 \bar under
4721 D
4722 \bar default
4723 ocument\SpecialChar menuseparator
4724
4725 \bar under
4726 S
4727 \bar default
4728 ettings\SpecialChar menuseparator
4729 Document
4730 \begin_inset space ~
4731 \end_inset
4732
4733 Class
4734 \family default
4735  dialog (OK, that one was obvious).
4736 \end_layout
4737
4738 \begin_layout Itemize
4739
4740 \change_inserted 564990737 1670794716
4741
4742 \lang american
4743 Don't change the 
4744 \family sans
4745 Headings
4746 \begin_inset space ~
4747 \end_inset
4748
4749
4750 \bar under
4751 s
4752 \bar default
4753 tyle
4754 \family default
4755  in the 
4756 \family sans
4757 Page
4758 \begin_inset space ~
4759 \end_inset
4760
4761 Layout
4762 \family default
4763  dialog: leave it set to 
4764 \family sans
4765 Default
4766 \family default
4767 .
4768  The whole layout is done by the macros, you shouldn't change anything.
4769 \end_layout
4770
4771 \begin_layout Subsubsection
4772
4773 \change_inserted 564990737 1670794716
4774
4775 \lang american
4776 The header block
4777 \end_layout
4778
4779 \begin_layout Standard
4780
4781 \change_inserted 564990737 1670794716
4782
4783 \lang american
4784 First thing to enter is the header information.
4785  It consists of five entries, of which one is optional.
4786  They are
4787 \end_layout
4788
4789 \begin_layout Itemize
4790
4791 \change_inserted 564990737 1670794716
4792
4793 \family sans
4794 \lang american
4795 Title
4796 \family default
4797 : [required] 
4798 \end_layout
4799
4800 \begin_layout Itemize
4801
4802 \change_inserted 564990737 1670794716
4803
4804 \family sans
4805 \lang american
4806 Subtitle
4807 \family default
4808 : [optional] 
4809 \end_layout
4810
4811 \begin_layout Itemize
4812
4813 \change_inserted 564990737 1670794716
4814
4815 \family sans
4816 \lang american
4817 Author
4818 \family default
4819 : [required]
4820 \end_layout
4821
4822 \begin_layout Itemize
4823
4824 \change_inserted 564990737 1670794716
4825
4826 \family typewriter
4827 \lang american
4828 Institute
4829 \family default
4830 : [required]
4831 \end_layout
4832
4833 \begin_layout Itemize
4834
4835 \change_inserted 564990737 1670794716
4836
4837 \family sans
4838 \lang american
4839 Date
4840 \family default
4841 : [required].
4842  Suggested format is 
4843 \family typewriter
4844 Received: <date>; Accepted <date> 
4845 \end_layout
4846
4847 \begin_layout Standard
4848
4849 \change_inserted 564990737 1670794716
4850
4851 \lang american
4852 Although the order of the single header entries doesn't matter it is advised
4853  to keep the above sequence, just to get the best optics and meets the layout
4854  of the real document.
4855 \end_layout
4856
4857 \begin_layout Standard
4858
4859 \change_inserted 564990737 1670794716
4860
4861 \lang american
4862 If you want to place footnotes in the header block, e.
4863 \begin_inset space \thinspace{}
4864 \end_inset
4865
4866 g.
4867 \begin_inset space \space{}
4868 \end_inset
4869
4870 to state your present address, just use the standard footnote via the menu
4871  
4872 \family sans
4873 \bar under
4874 I
4875 \bar default
4876 nsert\SpecialChar menuseparator
4877
4878 \bar under
4879 F
4880 \bar default
4881 ootnote.
4882
4883 \family default
4884  \SpecialChar LyX
4885  will automagically use the term 
4886 \family typewriter
4887
4888 \backslash
4889 thanks{}
4890 \family default
4891  in that case.
4892 \end_layout
4893
4894 \begin_layout Standard
4895
4896 \change_inserted 564990737 1670794716
4897
4898 \lang american
4899 In addition to these topics, the macros use three additional \SpecialChar LaTeX
4900  commands that
4901  have no counterpart in \SpecialChar LyX
4902 :
4903 \end_layout
4904
4905 \begin_layout Itemize
4906
4907 \change_inserted 564990737 1670794716
4908
4909 \family typewriter
4910 \lang american
4911
4912 \backslash
4913 and
4914 \family default
4915  to separate different names for more than one author and institute, respectivel
4916 y.
4917 \end_layout
4918
4919 \begin_layout Itemize
4920
4921 \change_inserted 564990737 1670794716
4922
4923 \family typewriter
4924 \lang american
4925
4926 \backslash
4927 inst{<nr>}
4928 \family default
4929  to mark corresponding author/institute pairs.
4930  The institutes are numbered sequentially as they appear in the 
4931 \family sans
4932 Institute
4933 \family default
4934  field, so you have to put a marker to each author.
4935 \end_layout
4936
4937 \begin_layout Itemize
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \family typewriter
4942 \lang american
4943
4944 \backslash
4945 email{address}
4946 \family default
4947  to supply an email address for fast contact.
4948 \end_layout
4949
4950 \begin_layout Standard
4951
4952 \change_inserted 564990737 1670794716
4953
4954 \lang american
4955 In all cases, the appropriate command has to be entered as \SpecialChar TeX
4956  code in \SpecialChar LyX
4957 .
4958  See the examples in the template and in the file 
4959 \emph on
4960 aa_sample.lyx
4961 \emph default
4962  in the 
4963 \family sans
4964 Examples
4965 \family default
4966  directory.
4967  
4968 \end_layout
4969
4970 \begin_layout Subsubsection
4971
4972 \change_inserted 564990737 1670794716
4973
4974 \lang american
4975 The abstract
4976 \end_layout
4977
4978 \begin_layout Standard
4979
4980 \change_inserted 564990737 1670794716
4981
4982 \lang american
4983 The abstract should immediately follow the header block and must contain
4984  five tokens: 
4985 \family typewriter
4986
4987 \backslash
4988 abstract{}{}{}{}{}
4989 \family default
4990  
4991 \end_layout
4992
4993 \begin_layout Enumerate
4994
4995 \change_inserted 564990737 1670794716
4996
4997 \family typewriter
4998 \lang american
4999 context heading
5000 \family default
5001  (optional) {} leave it empty if necessary 
5002 \end_layout
5003
5004 \begin_layout Enumerate
5005
5006 \change_inserted 564990737 1670794716
5007
5008 \family typewriter
5009 \lang american
5010 aims heading
5011 \family default
5012  (mandatory) {} 
5013 \end_layout
5014
5015 \begin_layout Enumerate
5016
5017 \change_inserted 564990737 1670794716
5018
5019 \family typewriter
5020 \lang american
5021 methods heading
5022 \family default
5023  (mandatory) {} 
5024 \end_layout
5025
5026 \begin_layout Enumerate
5027
5028 \change_inserted 564990737 1670794716
5029
5030 \family typewriter
5031 \lang american
5032 results heading
5033 \family default
5034  (mandatory) {} 
5035 \end_layout
5036
5037 \begin_layout Enumerate
5038
5039 \change_inserted 564990737 1670794716
5040
5041 \family typewriter
5042 \lang american
5043 conclusions heading
5044 \family default
5045  (optional) {} leave it empty if necessary 
5046 \end_layout
5047
5048 \begin_layout Standard
5049
5050 \change_inserted 564990737 1670794716
5051
5052 \lang american
5053 (NB.
5054  This structure not shown in 
5055 \emph on
5056 aa_sample.lyx.
5057 \emph default
5058 )
5059 \end_layout
5060
5061 \begin_layout Subsubsection
5062
5063 \change_inserted 564990737 1670794716
5064
5065 \lang american
5066 Supported environments
5067 \end_layout
5068
5069 \begin_layout Standard
5070
5071 \change_inserted 564990737 1670794716
5072
5073 \lang american
5074 The A&A paper layout supports the following environments for structuring
5075  your text:
5076 \end_layout
5077
5078 \begin_layout Itemize
5079
5080 \change_inserted 564990737 1670794716
5081
5082 \family sans
5083 \lang american
5084 Standard
5085 \end_layout
5086
5087 \begin_layout Itemize
5088
5089 \change_inserted 564990737 1670794716
5090
5091 \family sans
5092 \lang american
5093 Section
5094 \end_layout
5095
5096 \begin_layout Itemize
5097
5098 \change_inserted 564990737 1670794716
5099
5100 \family sans
5101 \lang american
5102 Subsection
5103 \end_layout
5104
5105 \begin_layout Itemize
5106
5107 \change_inserted 564990737 1670794716
5108
5109 \family sans
5110 \lang american
5111 Subsubsection
5112 \end_layout
5113
5114 \begin_layout Itemize
5115
5116 \change_inserted 564990737 1670794716
5117
5118 \family sans
5119 \lang american
5120 Itemize
5121 \end_layout
5122
5123 \begin_layout Itemize
5124
5125 \change_inserted 564990737 1670794716
5126
5127 \family sans
5128 \lang american
5129 Enumerate
5130 \end_layout
5131
5132 \begin_layout Itemize
5133
5134 \change_inserted 564990737 1670794716
5135
5136 \family sans
5137 \lang american
5138 Description
5139 \end_layout
5140
5141 \begin_layout Itemize
5142
5143 \change_inserted 564990737 1670794716
5144
5145 \family sans
5146 \lang american
5147 Caption
5148 \end_layout
5149
5150 \begin_layout Itemize
5151
5152 \change_inserted 564990737 1670794716
5153
5154 \family sans
5155 \lang american
5156 Abstract
5157 \end_layout
5158
5159 \begin_layout Itemize
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family sans
5164 \lang american
5165 Acknowledgment
5166 \end_layout
5167
5168 \begin_layout Itemize
5169
5170 \change_inserted 564990737 1670794716
5171
5172 \family sans
5173 \lang american
5174 Bibliography
5175 \end_layout
5176
5177 \begin_layout Itemize
5178
5179 \change_inserted 564990737 1670794716
5180
5181 \family sans
5182 \lang american
5183 \SpecialChar LaTeX
5184
5185 \end_layout
5186
5187 \begin_layout Subsubsection
5188
5189 \change_inserted 564990737 1670794716
5190
5191 \lang american
5192 Commands not supported by \SpecialChar LyX
5193
5194 \end_layout
5195
5196 \begin_layout Standard
5197
5198 \change_inserted 564990737 1670794716
5199
5200 \lang american
5201 Some commands are not yet supported by the 
5202 \family sans
5203 paper (A&A)
5204 \family default
5205  layout for \SpecialChar LyX
5206 .
5207  Some have already been mentioned.
5208  For the sake of completeness, they are listed all together here:
5209 \end_layout
5210
5211 \begin_layout Itemize
5212
5213 \change_inserted 564990737 1670794716
5214
5215 \family typewriter
5216 \lang american
5217
5218 \backslash
5219 and
5220 \end_layout
5221
5222 \begin_layout Itemize
5223
5224 \change_inserted 564990737 1670794716
5225
5226 \family typewriter
5227 \lang american
5228
5229 \backslash
5230 email
5231 \end_layout
5232
5233 \begin_layout Itemize
5234
5235 \change_inserted 564990737 1670794716
5236
5237 \family typewriter
5238 \lang american
5239
5240 \backslash
5241 inst{}
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family typewriter
5249 \lang american
5250
5251 \backslash
5252 keywords{}
5253 \end_layout
5254
5255 \begin_layout Itemize
5256
5257 \change_inserted 564990737 1670794716
5258
5259 \family typewriter
5260 \lang american
5261
5262 \backslash
5263 object{}
5264 \end_layout
5265
5266 \begin_layout Standard
5267
5268 \change_inserted 564990737 1670794716
5269
5270 \lang american
5271 If you want to use any of these commands, you have to enter them yourself.
5272  
5273 \family typewriter
5274 Do not forget to use
5275 \family sans
5276  
5277 \bar under
5278 I
5279 \bar default
5280 nsert\SpecialChar menuseparator
5281 \SpecialChar TeX
5282
5283 \begin_inset space ~
5284 \end_inset
5285
5286 Code
5287 \family default
5288 \series bold
5289 !
5290 \end_layout
5291
5292 \begin_layout Subsubsection
5293
5294 \change_inserted 564990737 1670794716
5295
5296 \lang american
5297 Figure and Table Floats
5298 \end_layout
5299
5300 \begin_layout Standard
5301
5302 \change_inserted 564990737 1670794716
5303
5304 \lang american
5305 \SpecialChar LyX
5306  provides support for the necessary float environments 
5307 \family sans
5308 figure, figure*, table
5309 \family default
5310  and 
5311 \family sans
5312 table*
5313 \family default
5314 , therefore we won't tell much about it here.
5315  Refer to the 
5316 \emph on
5317 User's
5318 \begin_inset space ~
5319 \end_inset
5320
5321 Guide
5322 \emph default
5323 .
5324  Just remember that tables should be left-aligned.
5325  For that, select the table and change the alignment in 
5326 \family sans
5327 \bar under
5328 E
5329 \bar default
5330 dit\SpecialChar menuseparator
5331
5332 \bar under
5333 P
5334 \bar default
5335 aragraph
5336 \begin_inset space ~
5337 \end_inset
5338
5339 Settings.
5340 \end_layout
5341
5342 \begin_layout Standard
5343
5344 \change_inserted 564990737 1670794716
5345
5346 \lang american
5347 There is only one special thing: the figures with a caption beside the figure.
5348  To create such a figure, you have to do the following:
5349 \end_layout
5350
5351 \begin_layout Enumerate
5352
5353 \change_inserted 564990737 1670794716
5354
5355 \lang american
5356 Create a wide figure float: 
5357 \family sans
5358 \bar under
5359 I
5360 \bar default
5361 nsert\SpecialChar menuseparator
5362 Flo
5363 \bar under
5364 a
5365 \bar default
5366 t\SpecialChar menuseparator
5367 Figure
5368 \family default
5369 , then, from within the float, use the menu 
5370 \family sans
5371 \bar under
5372 E
5373 \bar default
5374 dit\SpecialChar menuseparator
5375 Flo
5376 \bar under
5377 a
5378 \bar default
5379 t
5380 \begin_inset space ~
5381 \end_inset
5382
5383 Settings
5384 \family default
5385  and check 
5386 \family sans
5387 \bar under
5388 S
5389 \bar default
5390 pan
5391 \begin_inset space ~
5392 \end_inset
5393
5394 columns
5395 \family default
5396  in the 
5397 \family sans
5398 float
5399 \family default
5400  dialog.
5401 \end_layout
5402
5403 \begin_layout Enumerate
5404
5405 \change_inserted 564990737 1670794716
5406
5407 \lang american
5408 Enter your caption text.
5409 \end_layout
5410
5411 \begin_layout Enumerate
5412
5413 \change_inserted 564990737 1670794716
5414
5415 \lang american
5416 Press 
5417 \family sans
5418 Return
5419 \family default
5420  to move the cursor above the caption.
5421 \end_layout
5422
5423 \begin_layout Enumerate
5424
5425 \change_inserted 564990737 1670794716
5426
5427 \lang american
5428 Insert your figure
5429 \end_layout
5430
5431 \begin_layout Enumerate
5432
5433 \change_inserted 564990737 1670794716
5434
5435 \lang american
5436 Position the cursor after the figure and insert a horizontal fill by using
5437  the menu: 
5438 \family sans
5439 \bar under
5440 I
5441 \bar default
5442 nsert\SpecialChar menuseparator
5443 F
5444 \bar under
5445 o
5446 \bar default
5447 rmatting\SpecialChar menuseparator
5448 H
5449 \bar under
5450 o
5451 \bar default
5452 rizontal
5453 \begin_inset space ~
5454 \end_inset
5455
5456 Space
5457 \family default
5458  to open the 
5459 \family sans
5460 space
5461 \family default
5462  dialog and select the 
5463 \family sans
5464 Horizontal fill
5465 \family default
5466  option from the 
5467 \family sans
5468 \bar under
5469 S
5470 \bar default
5471 pacing
5472 \family default
5473  pull-down menu.
5474 \end_layout
5475
5476 \begin_layout Enumerate
5477
5478 \change_inserted 564990737 1670794716
5479
5480 \lang american
5481 Switch to \SpecialChar LaTeX
5482  mode: 
5483 \family sans
5484 M-c
5485 \begin_inset space ~
5486 \end_inset
5487
5488 t
5489 \family default
5490 .
5491 \end_layout
5492
5493 \begin_layout Enumerate
5494
5495 \change_inserted 564990737 1670794716
5496
5497 \lang american
5498 Enter 
5499 \family typewriter
5500
5501 \backslash
5502 parbox[b]{55mm}{
5503 \family default
5504  
5505 \emph on
5506 Do not close the brace!
5507 \end_layout
5508
5509 \begin_layout Enumerate
5510
5511 \change_inserted 564990737 1670794716
5512
5513 \lang american
5514 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5515  mode and insert
5516  the closing brace: 
5517 \family sans
5518 M-c
5519 \begin_inset space ~
5520 \end_inset
5521
5522 t
5523 \family default
5524  
5525 \family typewriter
5526 }
5527 \family default
5528 .
5529 \end_layout
5530
5531 \begin_layout Standard
5532
5533 \change_inserted 564990737 1670794716
5534
5535 \lang american
5536 Also, refer to the figures in the file 
5537 \emph on
5538 aa_sample.lyx
5539 \emph default
5540  in the 
5541 \family sans
5542 Examples
5543 \family default
5544  directory.
5545 \end_layout
5546
5547 \begin_layout Subsubsection
5548
5549 \change_inserted 564990737 1670794716
5550
5551 \lang american
5552 Referee layout
5553 \end_layout
5554
5555 \begin_layout Standard
5556
5557 \change_inserted 564990737 1670794716
5558
5559 \lang american
5560 For submission, the paper has to be formatted in a special double-spacing
5561  layout.
5562  For this purpose, you have to add the option 
5563 \family typewriter
5564 referee
5565 \family default
5566  to the 
5567 \family sans
5568 Cus
5569 \bar under
5570 t
5571 \bar default
5572 om Class
5573 \begin_inset space ~
5574 \end_inset
5575
5576 options
5577 \family default
5578  in the 
5579 \family sans
5580 \bar under
5581 D
5582 \bar default
5583 ocument\SpecialChar menuseparator
5584
5585 \bar under
5586 S
5587 \bar default
5588 ettings\SpecialChar menuseparator
5589 Document
5590 \begin_inset space ~
5591 \end_inset
5592
5593 Class
5594 \family default
5595  dialog.
5596  
5597 \end_layout
5598
5599 \begin_layout Subsubsection
5600
5601 \change_inserted 564990737 1670794716
5602
5603 \lang american
5604 The example paper
5605 \end_layout
5606
5607 \begin_layout Standard
5608
5609 \change_inserted 564990737 1670794716
5610
5611 \lang american
5612 The example paper 
5613 \emph on
5614 aa_sample.lyx
5615 \emph default
5616  was written with \SpecialChar LyX
5617 .
5618  It is the example paper from the original macro package, 
5619 \family typewriter
5620 aa.dem
5621 \family default
5622  in the 
5623 \begin_inset CommandInset href
5624 LatexCommand href
5625 name "aa-package"
5626 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5627 literal "false"
5628
5629 \end_inset
5630
5631 , but translated to \SpecialChar LyX
5632  using the older unstructured abstract type.
5633  Use it for inspiration, and compare the \SpecialChar LaTeX
5634  code in 
5635 \family typewriter
5636 aa.dem
5637 \family default
5638  with the \SpecialChar LyX
5639  way of writing.
5640 \end_layout
5641
5642 \begin_layout Subsection
5643 AAS\SpecialChar TeX
5644
5645 \end_layout
5646
5647 \begin_layout Standard
5648 by 
5649 \noun on
5650 Mike Ressler
5651 \end_layout
5652
5653 \begin_layout Subsubsection
5654 Introduction
5655 \end_layout
5656
5657 \begin_layout Standard
5658 AAS\SpecialChar TeX
5659  is a set of macros produced by the American Astronomical Society to
5660  facilitate electronic manuscript submission to the three journals they
5661  publish: the Astrophysical Journal (including the Letters and Supplement),
5662  the Astronomical Journal, and the Publications of the Astronomical Society
5663  of the Pacific.
5664  \SpecialChar LyX
5665  has proven to be an excellent tool for generating these documents, especially
5666  given its equation, citation, and figure handling capabilities.
5667  \SpecialChar LyX
5668  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5669  is the version described here, or higher.
5670  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5671 2.09 and are fundamentally
5672  incompatible with \SpecialChar LyX
5673 .
5674  The AAS\SpecialChar TeX
5675  package may be downloaded from the AAS\SpecialChar TeX
5676  Web site
5677 \end_layout
5678
5679 \begin_layout Standard
5680 \begin_inset VSpace medskip
5681 \end_inset
5682
5683
5684 \end_layout
5685
5686 \begin_layout Standard
5687 \align center
5688 \begin_inset Flex URL
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692
5693 https://aas.org/aastex/aastex-downloads
5694 \end_layout
5695
5696 \end_inset
5697
5698
5699 \end_layout
5700
5701 \begin_layout Standard
5702 \begin_inset VSpace medskip
5703 \end_inset
5704
5705
5706 \end_layout
5707
5708 \begin_layout Standard
5709 A complete user guide is contained in that package and you should familiarize
5710  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5711 .
5712  \SpecialChar LyX
5713  will not reduce the need to figure out all the AAS\SpecialChar TeX
5714  commands, it will only
5715  reduce the drudgery of typing everything in.
5716  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5717  document conforms
5718  completely to the requirements of the journal to which you are submitting
5719  your paper.
5720 \end_layout
5721
5722 \begin_layout Subsubsection
5723 Starting a New Paper
5724 \end_layout
5725
5726 \begin_layout Standard
5727 I strongly suggest that you start with the AAS\SpecialChar TeX
5728  template file.
5729  Click on 
5730 \family sans
5731 File\SpecialChar menuseparator
5732 New from
5733 \family default
5734  
5735 \family sans
5736 Template
5737 \family default
5738 , enter the new file name, then choose the 
5739 \family typewriter
5740 aastex6.lyx
5741 \family default
5742  template.
5743  This will show the most common fields found in a manuscript.
5744  Simply overwrite the existing text (including the brackets, 
5745 \family typewriter
5746 <>
5747 \family default
5748 ) with the correct information.
5749  Many of the AAS\SpecialChar TeX
5750  commands and environments can be implemented directly in
5751  \SpecialChar LyX
5752 , but some cannot.
5753  For commands such as these, the \SpecialChar LaTeX
5754  code must be entered directly and marked
5755  as such.
5756  Such commands are referred to as \SpecialChar TeX
5757  code, or Evil Red Text.
5758  I tried to minimize the amount of \SpecialChar TeX
5759  code needed in an AAS\SpecialChar TeX
5760  document.
5761 \end_layout
5762
5763 \begin_layout Subsubsection
5764 Finishing Your Paper
5765 \end_layout
5766
5767 \begin_layout Standard
5768 When the paper is finished to your satisfaction and previews/prints correctly,
5769  there are a few 
5770 \begin_inset Quotes eld
5771 \end_inset
5772
5773 postprocessing
5774 \begin_inset Quotes erd
5775 \end_inset
5776
5777  actions which need to be done before you submit it to the journals.
5778  
5779 \end_layout
5780
5781 \begin_layout Enumerate
5782 Export your paper as a \SpecialChar LaTeX
5783  file (
5784 \family sans
5785 File\SpecialChar menuseparator
5786 Export\SpecialChar menuseparator
5787 \SpecialChar LaTeX
5788
5789 \family default
5790 ).
5791  
5792 \end_layout
5793
5794 \begin_layout Enumerate
5795 Edit the resulting 
5796 \family typewriter
5797 .tex
5798 \family default
5799  file with your favorite text editor
5800 \end_layout
5801
5802 \begin_deeper
5803 \begin_layout Enumerate
5804 remove the comment lines before the 
5805 \family typewriter
5806
5807 \backslash
5808 documentclass
5809 \family default
5810  command
5811 \end_layout
5812
5813 \begin_layout Enumerate
5814 remove the 
5815 \family typewriter
5816
5817 \backslash
5818 usepackage...{fontenc}
5819 \family default
5820  line if it appears (usually just after 
5821 \family typewriter
5822
5823 \backslash
5824 documentclass
5825 \family default
5826 }; also remove the 
5827 \family typewriter
5828
5829 \backslash
5830 secnumdepth
5831 \family default
5832  line if it appears.
5833 \end_layout
5834
5835 \begin_layout Enumerate
5836 remove everything between (and including) the 
5837 \family typewriter
5838
5839 \backslash
5840 makeatletter
5841 \family default
5842  and 
5843 \family typewriter
5844
5845 \backslash
5846 makeatother
5847 \family default
5848  commands, except for any commands you specifically put into the \SpecialChar LaTeX
5849  preamble
5850  (which should appear immediately after the 
5851 \begin_inset Quotes eld
5852 \end_inset
5853
5854 User specified \SpecialChar LaTeX
5855  commands
5856 \begin_inset Quotes erd
5857 \end_inset
5858
5859  comment in the 
5860 \family typewriter
5861 .tex
5862 \family default
5863  file).
5864 \end_layout
5865
5866 \end_deeper
5867 \begin_layout Enumerate
5868 Run the resulting file through \SpecialChar LaTeX
5869  to make sure it still processes correctly.
5870 \end_layout
5871
5872 \begin_layout Enumerate
5873 Reread the journal requirements to make sure your filenames and formats
5874  are correct.
5875 \end_layout
5876
5877 \begin_layout Enumerate
5878 Submit it.
5879 \end_layout
5880
5881 \begin_layout Subsubsection
5882 Comments On Specific Commands
5883 \end_layout
5884
5885 \begin_layout Standard
5886 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
5887  commands: the
5888  AAS\SpecialChar TeX
5889  User Guide (
5890 \family typewriter
5891 aasguide.tex
5892 \family default
5893 ) gives a good description of each.
5894  Thus it's probably easiest for me to go down the list as found in the guide
5895  and offer comments where necessary.
5896  So let's begin \SpecialChar ldots
5897
5898 \end_layout
5899
5900 \begin_layout Paragraph
5901 Things that work as expected
5902 \end_layout
5903
5904 \begin_layout Standard
5905 Because they work as you might expect, I simply list them and the section
5906  they are found in: 
5907 \family typewriter
5908
5909 \backslash
5910 documentclass
5911 \family default
5912  (2.1.1), 
5913 \family typewriter
5914
5915 \backslash
5916 begin{document}
5917 \family default
5918  (2.2), 
5919 \family typewriter
5920
5921 \backslash
5922 title
5923 \family default
5924  (2.3), 
5925 \family typewriter
5926
5927 \backslash
5928 author
5929 \family default
5930  (2.3), 
5931 \family typewriter
5932
5933 \backslash
5934 affil
5935 \family default
5936  (2.3), 
5937 \family typewriter
5938
5939 \backslash
5940 abstract
5941 \family default
5942  (2.4), 
5943 \family typewriter
5944
5945 \backslash
5946 keywords
5947 \family default
5948  (2.5), 
5949 \family typewriter
5950
5951 \backslash
5952 section
5953 \family default
5954  (2.7), 
5955 \family typewriter
5956
5957 \backslash
5958 subsection
5959 \family default
5960  (2.7), 
5961 \family typewriter
5962
5963 \backslash
5964 subsubsection
5965 \family default
5966  (2.7), 
5967 \family typewriter
5968
5969 \backslash
5970 paragraph
5971 \family default
5972  (2.7), 
5973 \family typewriter
5974
5975 \backslash
5976 facility
5977 \family default
5978  (2.10), 
5979 \family typewriter
5980
5981 \backslash
5982 begin{displaymath}
5983 \family default
5984  (2.12), 
5985 \family typewriter
5986
5987 \backslash
5988 begin{equation}
5989 \family default
5990  (2.12), 
5991 \family typewriter
5992
5993 \backslash
5994 begin{eqnarray}
5995 \family default
5996  (2.12), 
5997 \family typewriter
5998
5999 \backslash
6000 begin{mathletters}
6001 \family default
6002  (2.12), 
6003 \family typewriter
6004
6005 \backslash
6006 begin{thebibliography}
6007 \family default
6008  (2.13.1), 
6009 \family typewriter
6010
6011 \backslash
6012 bibitem
6013 \family default
6014  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6015  graphicx figure commands (2.14.1), 
6016 \family typewriter
6017
6018 \backslash
6019 begin{table}
6020 \family default
6021  (2.15.4), 
6022 \family typewriter
6023
6024 \backslash
6025 begin{tabular}
6026 \family default
6027  (2.15.4), 
6028 \family typewriter
6029
6030 \backslash
6031 caption
6032 \family default
6033  (2.15.4), 
6034 \family typewriter
6035
6036 \backslash
6037 label
6038 \family default
6039  (2.15.4, amongst other places), 
6040 \family typewriter
6041
6042 \backslash
6043 tablerefs
6044 \family default
6045  (2.15.5), 
6046 \family typewriter
6047
6048 \backslash
6049 tablecomments
6050 \family default
6051  (2.15.5), 
6052 \family typewriter
6053
6054 \backslash
6055 url
6056 \family default
6057  (2.17.4), 
6058 \family typewriter
6059
6060 \backslash
6061 end{document}
6062 \family default
6063  (2.18).
6064 \end_layout
6065
6066 \begin_layout Standard
6067 The following style options also work correctly: 
6068 \family typewriter
6069 longabstract
6070 \family default
6071  (2.4), 
6072 \family typewriter
6073 preprint
6074 \family default
6075  (3.2.1), 
6076 \family typewriter
6077 preprint2
6078 \family default
6079  (3.2.2), 
6080 \family typewriter
6081 eqsecnum
6082 \family default
6083  (3.3), 
6084 \family typewriter
6085 flushrt
6086 \family default
6087  (3.4).
6088  Simply put them in the 
6089 \family sans
6090 Options
6091 \family default
6092  box in 
6093 \family sans
6094 Layout\SpecialChar menuseparator
6095 Document
6096 \family default
6097 .
6098 \end_layout
6099
6100 \begin_layout Paragraph
6101 Things that work, but require more comment
6102 \end_layout
6103
6104 \begin_layout Standard
6105 The following items work, but require a little more discussion:
6106 \end_layout
6107
6108 \begin_layout Itemize
6109 These items are reserved for use by the journal editors, but you can put
6110  them into the \SpecialChar LaTeX
6111  preamble if you feel compelled to do so: 
6112 \family typewriter
6113
6114 \backslash
6115 received
6116 \family default
6117
6118 \family typewriter
6119
6120 \backslash
6121 revised
6122 \family default
6123
6124 \family typewriter
6125
6126 \backslash
6127 accepted
6128 \family default
6129
6130 \family typewriter
6131
6132 \backslash
6133 ccc
6134 \family default
6135
6136 \family typewriter
6137
6138 \backslash
6139 cpright
6140 \family default
6141  (all from 2.1.3)
6142 \end_layout
6143
6144 \begin_layout Itemize
6145 These items may be placed in the \SpecialChar LaTeX
6146  preamble, and are included as blanks in
6147  the template file: 
6148 \family typewriter
6149
6150 \backslash
6151 slugcomment
6152 \family default
6153  (2.1.4), 
6154 \family typewriter
6155
6156 \backslash
6157 shorttitle
6158 \family default
6159  (2.1.5), 
6160 \family typewriter
6161
6162 \backslash
6163 shortauthors
6164 \family default
6165  (2.1.5)
6166 \end_layout
6167
6168 \begin_layout Itemize
6169
6170 \family typewriter
6171
6172 \backslash
6173 email
6174 \family default
6175  (2.3) – can only be used 
6176 \begin_inset Quotes eld
6177 \end_inset
6178
6179 standalone
6180 \begin_inset Quotes erd
6181 \end_inset
6182
6183 , not in the middle of a paragraph.
6184  Use \SpecialChar TeX
6185  code if you need to embed it.
6186 \end_layout
6187
6188 \begin_layout Itemize
6189
6190 \family typewriter
6191
6192 \backslash
6193 and
6194 \family default
6195  (2.3) – will have extra {} after it.
6196  This should not cause an error.
6197 \end_layout
6198
6199 \begin_layout Itemize
6200
6201 \family typewriter
6202
6203 \backslash
6204 notetoeditor
6205 \family default
6206  (2.6) – can only be used 
6207 \begin_inset Quotes eld
6208 \end_inset
6209
6210 standalone
6211 \begin_inset Quotes erd
6212 \end_inset
6213
6214 , not in the middle of a paragraph.
6215  Use \SpecialChar TeX
6216  code if you need to embed it.
6217 \end_layout
6218
6219 \begin_layout Itemize
6220
6221 \family typewriter
6222
6223 \backslash
6224 placetable
6225 \family default
6226  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6227  hand
6228 \end_layout
6229
6230 \begin_layout Itemize
6231
6232 \family typewriter
6233
6234 \backslash
6235 placefigure
6236 \family default
6237  (2.8) – same as for 
6238 \family typewriter
6239
6240 \backslash
6241 placetable
6242 \end_layout
6243
6244 \begin_layout Itemize
6245
6246 \family typewriter
6247
6248 \backslash
6249 acknowledgements
6250 \family default
6251  (2.9) – will have extra {} after it.
6252  This should not cause an error.
6253 \end_layout
6254
6255 \begin_layout Itemize
6256
6257 \family typewriter
6258
6259 \backslash
6260 appendix
6261 \family default
6262  (2.11) – will have extra {} after it.
6263  This should not cause an error.
6264 \end_layout
6265
6266 \begin_layout Itemize
6267
6268 \family typewriter
6269
6270 \backslash
6271 figcaption
6272 \family default
6273  (2.14.2) – you can insert an optional filename argument by placing the cursor
6274  at the beginning of the text and selecting 
6275 \family sans
6276 Insert\SpecialChar menuseparator
6277 Short Title
6278 \family default
6279 .
6280  
6281 \begin_inset Quotes eld
6282 \end_inset
6283
6284 Short Title
6285 \begin_inset Quotes erd
6286 \end_inset
6287
6288  inserts an optional argument of the type needed by 
6289 \family typewriter
6290
6291 \backslash
6292 figcaption
6293 \family default
6294 .
6295  Hopefully it will be renamed someday.
6296 \end_layout
6297
6298 \begin_layout Itemize
6299
6300 \family typewriter
6301
6302 \backslash
6303 objectname
6304 \family default
6305  (2.17.1) – same as 
6306 \family typewriter
6307
6308 \backslash
6309 figcaption
6310 \family default
6311  for the catalog ID optional parameter
6312 \end_layout
6313
6314 \begin_layout Itemize
6315
6316 \family typewriter
6317
6318 \backslash
6319 dataset
6320 \family default
6321  (2.17.1) – same as 
6322 \family typewriter
6323
6324 \backslash
6325 figcaption
6326 \family default
6327  for the catalog ID optional parameter
6328 \end_layout
6329
6330 \begin_layout Paragraph
6331 Things not implemented, use \SpecialChar TeX
6332  code
6333 \end_layout
6334
6335 \begin_layout Standard
6336
6337 \family typewriter
6338
6339 \backslash
6340 eqnum
6341 \family default
6342  (2.12), 
6343 \family typewriter
6344
6345 \backslash
6346 setcounter{equation}
6347 \family default
6348  (2.12), Journal name abbreviations (2.13.4), 
6349 \family typewriter
6350
6351 \backslash
6352 figurenum
6353 \family default
6354  (2.14.1), 
6355 \family typewriter
6356
6357 \backslash
6358 epsscale
6359 \family default
6360  (2.14.1), 
6361 \family typewriter
6362
6363 \backslash
6364 plotone
6365 \family default
6366  (2.14.1), 
6367 \family typewriter
6368
6369 \backslash
6370 plottwo
6371 \family default
6372  (2.14.1), 
6373 \family typewriter
6374
6375 \backslash
6376 tablenum
6377 \family default
6378  (2.15.4), 
6379 \family typewriter
6380
6381 \backslash
6382 tableline
6383 \family default
6384  (2.15.4, insert it as the first element in the lefthand cell after where
6385  you want it.
6386  Don't use any of \SpecialChar LyX
6387 's rules in the table), 
6388 \family typewriter
6389
6390 \backslash
6391 tablenotemark
6392 \family default
6393  (2.15.5), 
6394 \family typewriter
6395
6396 \backslash
6397 tablenotetext
6398 \family default
6399  (2.15.5), much of Misc (2.17, except 
6400 \family typewriter
6401
6402 \backslash
6403 objectname
6404 \family default
6405
6406 \family typewriter
6407
6408 \backslash
6409 dataset
6410 \family default
6411
6412 \family typewriter
6413
6414 \backslash
6415 url
6416 \family default
6417 , and 
6418 \family typewriter
6419
6420 \backslash
6421 email
6422 \family default
6423 ; see above), 
6424 \family typewriter
6425
6426 \backslash
6427 singlespace
6428 \family default
6429  (3.1), 
6430 \family typewriter
6431
6432 \backslash
6433 doublespace
6434 \family default
6435  (3.1), 
6436 \family typewriter
6437
6438 \backslash
6439 onecolumn
6440 \family default
6441  (3.2), 
6442 \family typewriter
6443
6444 \backslash
6445 twocolumn
6446 \family default
6447  (3.2)
6448 \end_layout
6449
6450 \begin_layout Paragraph
6451 Things that cannot be implemented
6452 \end_layout
6453
6454 \begin_layout Standard
6455 \SpecialChar ldots
6456  at least in any meaningful sort of way, so I suggest ignoring them.
6457  They are the references environment (2.13.3), and the deluxetable environment
6458  (2.15).
6459  If you really, really need to use deluxetable, I suggest editing it in
6460  a separate file with a text editor, then using 
6461 \family sans
6462 Insert\SpecialChar menuseparator
6463 Child
6464 \begin_inset space ~
6465 \end_inset
6466
6467 Document
6468 \family default
6469  to include it in your \SpecialChar LyX
6470  document.
6471  See the 
6472 \family typewriter
6473 aas_sample.lyx
6474 \family default
6475  file to see an example of this.
6476 \end_layout
6477
6478 \begin_layout Subsubsection
6479 FAQs, Tips, Tricks, and Other Ruminations
6480 \end_layout
6481
6482 \begin_layout Paragraph
6483 Getting \SpecialChar LyX
6484  and AAS\SpecialChar TeX
6485  to cooperate
6486 \end_layout
6487
6488 \begin_layout Standard
6489 It can be a bit tricky to get \SpecialChar LyX
6490  to recognize a new layout and document class.
6491  When all else fails, do this:
6492 \end_layout
6493
6494 \begin_layout Enumerate
6495 Make certain that \SpecialChar LaTeX
6496  can find AAS\SpecialChar TeX
6497 .
6498  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6499  distribution into a
6500  directory completely unrelated to \SpecialChar LaTeX
6501  or AAS\SpecialChar TeX
6502  and run \SpecialChar LaTeX
6503  on 
6504 \family typewriter
6505 sample.tex
6506 \family default
6507 .
6508 \end_layout
6509
6510 \begin_layout Enumerate
6511 Make certain that 
6512 \family typewriter
6513 aastex.layout
6514 \family default
6515  appears in \SpecialChar LyX
6516 's 
6517 \family typewriter
6518 layouts
6519 \family default
6520  folder
6521 \end_layout
6522
6523 \begin_layout Enumerate
6524 Rerun 
6525 \family sans
6526 Tools\SpecialChar menuseparator
6527 Reconfigure
6528 \family default
6529  in \SpecialChar LyX
6530 , then restart \SpecialChar LyX
6531 .
6532 \end_layout
6533
6534 \begin_layout Enumerate
6535 Open a regular new file, not from a template.
6536  Does AAS\SpecialChar TeX
6537  appear in the class list in 
6538 \family sans
6539 Document\SpecialChar menuseparator
6540 Settings
6541 \family default
6542 ?
6543 \end_layout
6544
6545 \begin_layout Standard
6546 If you get a warning from an existing AAS\SpecialChar TeX
6547  document about not being able
6548  to find the AAS\SpecialChar TeX
6549  layout or a message about 
6550 \begin_inset Quotes eld
6551 \end_inset
6552
6553 You should not mix title layouts with normal ones
6554 \begin_inset Quotes erd
6555 \end_inset
6556
6557 , things haven't been installed correctly.
6558 \end_layout
6559
6560 \begin_layout Paragraph
6561 \SpecialChar LaTeX
6562  error processing a table 
6563 \end_layout
6564
6565 \begin_layout Standard
6566 \SpecialChar LyX
6567 , by default, attempts to center the table caption/title.
6568  This seems to produce a bad interaction in AAS\SpecialChar TeX
6569  so you should click somewhere
6570  in the caption/title, then select 
6571 \family sans
6572 Edit\SpecialChar menuseparator
6573 Paragraph
6574 \begin_inset space ~
6575 \end_inset
6576
6577 Settings
6578 \family default
6579 , then set the 
6580 \family sans
6581 Alignment
6582 \family default
6583  to 
6584 \family sans
6585 Block
6586 \family default
6587 .
6588  This took care of it for me.
6589 \end_layout
6590
6591 \begin_layout Paragraph
6592 References
6593 \end_layout
6594
6595 \begin_layout Standard
6596 A couple of things: 1) I have noticed some funny spacing in the reference
6597  entries in the text.
6598  When you enter the bibliography item data, make sure their is 
6599 \emph on
6600 no
6601 \emph default
6602  space between the last author and the parenthesis setting off the year;
6603  
6604 \emph on
6605 e.
6606 \begin_inset space \thinspace{}
6607 \end_inset
6608
6609 g.
6610 \begin_inset space \space{}
6611 \end_inset
6612
6613
6614 \emph default
6615 type 
6616 \family typewriter
6617 Ressler(1992)
6618 \family default
6619 , not 
6620 \family typewriter
6621 Ressler (1992)
6622 \family default
6623 .
6624  2) Entering the references at all is not obvious.
6625  The easiest thing is to start typing your first reference at the end of
6626  the document, then mark it as type 
6627 \family sans
6628 References
6629 \family default
6630 .
6631  That will put a small gray box in front of what you just typed.
6632  Click on the box to fill in the rest of the information.
6633  For new references, go to the end of an existing reference and press return.
6634  That will create a new line with its own box, etc.
6635 \end_layout
6636
6637 \begin_layout Paragraph
6638 Including EPS files
6639 \end_layout
6640
6641 \begin_layout Standard
6642 Even though AAS\SpecialChar TeX
6643  provides its own figure commands (
6644 \family typewriter
6645
6646 \backslash
6647 plotone
6648 \family default
6649 , for example), I much prefer \SpecialChar LaTeX
6650 's standard figure commands (with the default
6651  graphicx).
6652  You can insert the 
6653 \family typewriter
6654
6655 \backslash
6656 plotone
6657 \family default
6658 , etc.
6659 \begin_inset space ~
6660 \end_inset
6661
6662 commands as \SpecialChar TeX
6663  code into a Figure Float box if you desire, but I never have
6664  much luck getting the layout right.
6665  With the standard graphics, \SpecialChar LyX
6666  will insert a 
6667 \family typewriter
6668
6669 \backslash
6670 usepackage{graphicx}
6671 \family default
6672  command into the \SpecialChar LaTeX
6673  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6674  way,
6675  interspersing the figures in the text.
6676  I believe ApJ accepts figures exactly this way now; AJ might still use
6677  the 
6678 \begin_inset Quotes eld
6679 \end_inset
6680
6681 stack everything at the end
6682 \begin_inset Quotes erd
6683 \end_inset
6684
6685  technique.
6686 \end_layout
6687
6688 \begin_layout Paragraph
6689 Things I could have done, but didn't
6690 \end_layout
6691
6692 \begin_layout Standard
6693 There are a few 
6694 \begin_inset Quotes eld
6695 \end_inset
6696
6697 pretty
6698 \begin_inset Quotes erd
6699 \end_inset
6700
6701  things I could have implemented, but chose not to.
6702  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6703  window,
6704  even though it is double-spaced in the paper manuscript.
6705  Also, I chose not to make separate layouts for the preprint and preprint2
6706  styles.
6707  Since I assume you will spend most of your time in the plain manuscript
6708  mode anyway, I decided not to chew up more disk space with this.
6709  
6710 \end_layout
6711
6712 \begin_layout Subsubsection
6713 Final Caveat
6714 \end_layout
6715
6716 \begin_layout Standard
6717 Your mileage may vary.
6718  I've now had papers published by both ApJ and AJ that have had 98% of the
6719  effort done in \SpecialChar LyX
6720 ; the last 2% was the \SpecialChar LaTeX
6721  post-processing and a few cleanups.
6722  I have had no trouble with the submission process, and I'm sure the journals
6723  were never aware that there might be a difference.
6724  So, go forth and publish!
6725 \end_layout
6726
6727 \begin_layout Section
6728
6729 \change_inserted 564990737 1670439560
6730 Books
6731 \end_layout
6732
6733 \begin_layout Standard
6734
6735 \change_inserted 564990737 1670439581
6736 See also the document classes in the Collections (section
6737 \begin_inset space ~
6738 \end_inset
6739
6740
6741 \begin_inset CommandInset ref
6742 LatexCommand ref
6743 reference "sec:Collections"
6744
6745 \end_inset
6746
6747 ).
6748 \end_layout
6749
6750 \begin_layout Subsection
6751 Memoir
6752 \end_layout
6753
6754 \begin_layout Standard
6755 By 
6756 \noun on
6757 Jürgen Spitzmüller
6758 \end_layout
6759
6760 \begin_layout Subsubsection
6761 Overview
6762 \end_layout
6763
6764 \begin_layout Standard
6765 Memoir is a very powerful and constantly evolving class.
6766  It has been designed with regard to fictional and non-fictional literature.
6767  Its aim is to let the user have maximum control over the typesetting of
6768  his document.
6769  Memoir is based on the standard book class, but it can also emulate the
6770  article class (see below).
6771 \end_layout
6772
6773 \begin_layout Standard
6774 Peter Wilson, the developer of Memoir, is known as the author of lots of
6775  useful packages in the \SpecialChar LaTeX
6776  world.
6777  Most of them have been merged with Memoir.
6778  Therefore, it is much easier to layout the table of contents, appendices,
6779  chapter designs and such.
6780  \SpecialChar LyX
6781 , though, does not support all of these goodies natively.
6782  Some of them might be added to forthcoming releases
6783 \begin_inset Foot
6784 status collapsed
6785
6786 \begin_layout Plain Layout
6787 You are invited to send suggestions to 
6788 \begin_inset Flex URL
6789 status collapsed
6790
6791 \begin_layout Plain Layout
6792
6793 lyx-devel@lists.lyx.org
6794 \end_layout
6795
6796 \end_inset
6797
6798 .
6799 \end_layout
6800
6801 \end_inset
6802
6803 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
6804 's framework.
6805  Of course you can still use all features with the help of some native \SpecialChar LaTeX
6806
6807  commands (\SpecialChar TeX
6808  code
6809 \begin_inset Foot
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 Cf.
6814 \begin_inset ERT
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818
6819
6820 \backslash
6821  
6822 \end_layout
6823
6824 \end_inset
6825
6826 section
6827 \begin_inset space ~
6828 \end_inset
6829
6830
6831 \begin_inset CommandInset ref
6832 LatexCommand ref
6833 reference "sec:Inserting-TeX-Code"
6834
6835 \end_inset
6836
6837  for details.
6838 \end_layout
6839
6840 \end_inset
6841
6842 ).
6843  In this section, we can only list those features that are natively supported
6844  by \SpecialChar LyX
6845 .
6846  For detailed descriptions (and for the rest of features) we recommend you
6847  have a look at the detailed manual of the Memoir class
6848 \begin_inset Foot
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 Cf.
6853 \begin_inset ERT
6854 status collapsed
6855
6856 \begin_layout Plain Layout
6857
6858
6859 \backslash
6860  
6861 \end_layout
6862
6863 \end_inset
6864
6865
6866 \begin_inset Flex URL
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870
6871 CTAN:/macros/latex/memoir/memman.pdf
6872 \end_layout
6873
6874 \end_inset
6875
6876 .
6877 \end_layout
6878
6879 \end_inset
6880
6881 , which is not only a user guide for the class, but also both a comprehensive
6882  description on good typesetting and a superb example for good typesetting
6883  itself.
6884 \end_layout
6885
6886 \begin_layout Subsubsection
6887 Basic features and restrictions
6888 \end_layout
6889
6890 \begin_layout Standard
6891 Memoir supports basically all features of the standard book classes.
6892  There are, however, some differences, as follows:
6893 \end_layout
6894
6895 \begin_layout Description
6896 Font
6897 \begin_inset space ~
6898 \end_inset
6899
6900 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
6901 \end_layout
6902
6903 \begin_layout Description
6904 Page
6905 \begin_inset space ~
6906 \end_inset
6907
6908 style: The fancy page style is not supported, due to a command clash between
6909  Memoir and the fancyhdr package (they both define a command with the same
6910  name, which confuses \SpecialChar LaTeX
6911 ).
6912  Instead, Memoir comes with a number of its own page styles (see 
6913 \family sans
6914 Document\SpecialChar menuseparator
6915 Settings\SpecialChar menuseparator
6916 Page
6917 \begin_inset space ~
6918 \end_inset
6919
6920 Style
6921 \family default
6922 ).
6923  If you want to use these for the chapter pages, you have to use the command
6924  
6925 \family typewriter
6926
6927 \backslash
6928 chapterstyle
6929 \family default
6930  in the main text or in preamble (e.
6931 \begin_inset space \thinspace{}
6932 \end_inset
6933
6934 g.
6935 \begin_inset space \space{}
6936 \end_inset
6937
6938
6939 \family typewriter
6940
6941 \backslash
6942 chapterstyle{companion}
6943 \family default
6944 ).
6945 \end_layout
6946
6947 \begin_layout Description
6948 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
6949  optional argument in the standard classes.
6950  With this, you can specify an alternative version of the title for the
6951  table of contents and the headers (for instance, if the title is too long).
6952  In \SpecialChar LyX
6953 , you can do this via 
6954 \family sans
6955 Insert\SpecialChar menuseparator
6956 Short
6957 \begin_inset space ~
6958 \end_inset
6959
6960 Title
6961 \family default
6962  at the beginning of a chapter/section.
6963  Memoir features a second optional argument and thus separates the table
6964  of contents from the header.
6965  You can define three variants of a title with this: one for the main text,
6966  one for the table of contents, and one for the headers.
6967  \SpecialChar LyX
6968  makes these available in form of specific 
6969 \family sans
6970 Short Title
6971 \family default
6972  variants in the 
6973 \family sans
6974 Insert
6975 \family default
6976  menu.
6977 \end_layout
6978
6979 \begin_layout Description
6980 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
6981  of contents, the list of figures and the list of table start a new page
6982  automatically.
6983  Memoir does not follow this route.
6984  You have to insert a page break yourself, if you want to have one.
6985 \end_layout
6986
6987 \begin_layout Description
6988 Titlepage: For some unknown reason, Memoir uses pagination on the title
6989  page (in the standard classes, title pages are 
6990 \begin_inset Quotes eld
6991 \end_inset
6992
6993 empty
6994 \begin_inset Quotes erd
6995 \end_inset
6996
6997 ).
6998  If you want an empty title page, type 
6999 \family typewriter
7000
7001 \backslash
7002 aliaspagestyle{title}{empty}
7003 \family default
7004  in the preamble.
7005 \end_layout
7006
7007 \begin_layout Description
7008 Article: With the class option 
7009 \emph on
7010 article
7011 \emph default
7012  (to be inserted in 
7013 \family sans
7014 Document\SpecialChar menuseparator
7015 Settings\SpecialChar menuseparator
7016 Class Settings\SpecialChar menuseparator
7017 Custom
7018 \begin_inset space ~
7019 \end_inset
7020
7021 Options
7022 \family default
7023 ), you can emulate article style.
7024  That is, counters (footnotes, figures, tables etc.) will not be reset on
7025  new chapters, chapters don't start a new page (but are—in contrary to 
7026 \begin_inset Quotes eld
7027 \end_inset
7028
7029 real
7030 \begin_inset Quotes erd
7031 \end_inset
7032
7033  article classes—still allowed), parts, though, use their own page, as in
7034  book.
7035 \end_layout
7036
7037 \begin_layout Description
7038 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7039  font commands, which have been used in the old \SpecialChar LaTeX
7040  version 2.09 (e.
7041 \begin_inset space \thinspace{}
7042 \end_inset
7043
7044 g.
7045 \begin_inset space \space{}
7046 \end_inset
7047
7048
7049 \family typewriter
7050
7051 \backslash
7052 rm
7053 \family default
7054
7055 \family typewriter
7056
7057 \backslash
7058 it
7059 \family default
7060 ).
7061  It produces an error and stops \SpecialChar LaTeX
7062  whenever such a command appears.
7063  The class option 
7064 \emph on
7065 oldfontcommands
7066 \emph default
7067  reallows the commands and spits out warnings instead (which does at least
7068  not stop \SpecialChar LaTeX
7069 ).
7070  Since a lot of packages and particularly Bib\SpecialChar TeX
7071  style files are still using
7072  those commands, we have decided to use this option by default.
7073 \end_layout
7074
7075 \begin_layout Subsubsection
7076 Extra features
7077 \end_layout
7078
7079 \begin_layout Standard
7080 We will only describe the features supported by \SpecialChar LyX
7081  (which is not much currently).
7082  Please consult the Memoir manual
7083 \begin_inset Foot
7084 status collapsed
7085
7086 \begin_layout Plain Layout
7087 Cf.
7088 \begin_inset ERT
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092
7093
7094 \backslash
7095  
7096 \end_layout
7097
7098 \end_inset
7099
7100
7101 \begin_inset Flex URL
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105
7106 CTAN:/macros/latex/memoir/memman.pdf
7107 \end_layout
7108
7109 \end_inset
7110
7111 .
7112 \end_layout
7113
7114 \end_inset
7115
7116  for details.
7117 \end_layout
7118
7119 \begin_layout Description
7120 Abstract: You may wonder why an abstract is an extra feature.
7121  Well, it is in book class.
7122  Usually books don't have abstracts.
7123  Memoir, however, has.
7124  You can use it wherever and how often you like.
7125 \end_layout
7126
7127 \begin_layout Description
7128 Chapterprecis: You may know this older typesetting style: The contents of
7129  a chapter are summarized below the title and also in the table of contents
7130  (e.
7131 \begin_inset space \thinspace{}
7132 \end_inset
7133
7134 g.
7135 \begin_inset space \space{}
7136 \end_inset
7137
7138
7139 \emph on
7140 Our hero arrives in Troia; he loses some friends; he finds others
7141 \emph default
7142 ).
7143  Chapterprecis does exactly this.
7144  It is therefore only sensible below a chapter.
7145 \end_layout
7146
7147 \begin_layout Description
7148 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7149  The epigraph environment provides an elegant way of typesetting such a
7150  motto.
7151  The motto itself (text) and its (optional) author (source) are divided
7152  by a short line.
7153  The author (source) can be inserted via 
7154 \family sans
7155 Insert\SpecialChar menuseparator
7156 Epigraph Source
7157 \family default
7158 \emph on
7159 .
7160 \end_layout
7161
7162 \begin_layout Description
7163 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7164  complex figurative poems).
7165  \SpecialChar LyX
7166  can only support a few of them.
7167  One is poemtitle, which is a centered title for poems, which will also
7168  be added to the table of contents (verse is the standard environment for
7169  poems.
7170  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7171  code,
7172  because they have to be nested inside regular verse environments, which
7173  is not possible with \SpecialChar LyX
7174 ).
7175 \end_layout
7176
7177 \begin_layout Description
7178 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7179 \end_layout
7180
7181 \begin_layout Section
7182
7183 \change_inserted 564990737 1670439605
7184 Curricula vitarum
7185 \end_layout
7186
7187 \begin_layout Section
7188
7189 \change_inserted 564990737 1670439627
7190 Letters
7191 \end_layout
7192
7193 \begin_layout Section
7194
7195 \change_inserted 564990737 1670439660
7196 Presentations
7197 \end_layout
7198
7199 \begin_layout Section
7200
7201 \change_inserted 564990737 1670439661
7202 Reports
7203 \end_layout
7204
7205 \begin_layout Subsection
7206
7207 \change_inserted 564990737 1670439661
7208 report
7209 \end_layout
7210
7211 \begin_layout Standard
7212
7213 \change_inserted 564990737 1670439661
7214 The document class 
7215 \family sans
7216 report
7217 \family default
7218  provides the 
7219 \family sans
7220 report.cls
7221 \family default
7222  document class for preparing reports.
7223  Like the 
7224 \family sans
7225 book
7226 \family default
7227  document class, this provides parts, chapters and sections but does not
7228  provide the paragraph styles needed for a book; like the 
7229 \family sans
7230 article
7231 \family default
7232  document class, it provides the abstract paragraph style.
7233  In two-sided mode, it does not start a new chapter on the right hand page.
7234 \end_layout
7235
7236 \begin_layout Standard
7237
7238 \change_inserted 564990737 1670439674
7239 The remaining 
7240 \family sans
7241 report
7242 \family default
7243  document classes are described in the Collections (section
7244 \begin_inset space ~
7245 \end_inset
7246
7247
7248 \begin_inset CommandInset ref
7249 LatexCommand ref
7250 reference "sec:Collections"
7251
7252 \end_inset
7253
7254 ).
7255 \end_layout
7256
7257 \begin_layout Section
7258
7259 \change_inserted 564990737 1670439674
7260 Scripts (drama)
7261 \end_layout
7262
7263 \begin_layout Subsection
7264 Broadway
7265 \end_layout
7266
7267 \begin_layout Standard
7268 by 
7269 \shape smallcaps
7270 Garst Reese
7271 \end_layout
7272
7273 \begin_layout Subsubsection
7274 Introduction
7275 \end_layout
7276
7277 \begin_layout Standard
7278 Broadway is for writing plays.
7279  The format is more decorative than Hollywood, and much less standardized.
7280  This format should be suitable for workshops.
7281 \end_layout
7282
7283 \begin_layout Subsubsection
7284 Special problems
7285 \end_layout
7286
7287 \begin_layout Standard
7288 The same as in Hollywood.
7289 \end_layout
7290
7291 \begin_layout Subsubsection
7292 Special features
7293 \end_layout
7294
7295 \begin_layout Standard
7296 Insert the 
7297 \family sans
7298 Speaker
7299 \family default
7300  names as labels then cross-reference the label to insert the name.
7301  The cross-reference dialog will show the current cast of characters.
7302 \end_layout
7303
7304 \begin_layout Subsubsection
7305 Paper size and Margins
7306 \end_layout
7307
7308 \begin_layout Standard
7309 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
7310 \end_layout
7311
7312 \begin_layout Subsubsection
7313 Environments
7314 \end_layout
7315
7316 \begin_layout Standard
7317 The following environments are available.
7318  You can use broadway.bind to get the bind keys shown at the right.
7319 \end_layout
7320
7321 \begin_layout Itemize
7322
7323 \family sans
7324 Standard
7325 \begin_inset Newline newline
7326 \end_inset
7327
7328
7329 \family default
7330 You should not have to use this, but it is here for anything that does not
7331  fit otherwise.
7332 \end_layout
7333
7334 \begin_layout Itemize
7335
7336 \family sans
7337 Narrative
7338 \begin_inset space \hfill{}
7339 \end_inset
7340
7341 M-z n
7342 \begin_inset Newline newline
7343 \end_inset
7344
7345
7346 \family default
7347 Used to describe stage setting and the action.
7348  First use of speaker names in all CAPs.
7349 \end_layout
7350
7351 \begin_layout Itemize
7352
7353 \family sans
7354 ACT
7355 \begin_inset space \hfill{}
7356 \end_inset
7357
7358 M-z a
7359 \begin_inset Newline newline
7360 \end_inset
7361
7362
7363 \family default
7364 Automatically numbered.
7365  On screen it will be arabic, but will print as Roman.
7366 \end_layout
7367
7368 \begin_layout Itemize
7369
7370 \family sans
7371 ACT*
7372 \begin_inset space \hfill{}
7373 \end_inset
7374
7375 M-z S at
7376 \begin_inset Newline newline
7377 \end_inset
7378
7379
7380 \family default
7381 Subtitle for 
7382 \family sans
7383 ACT.
7384
7385 \family default
7386  It is just centered text.
7387 \end_layout
7388
7389 \begin_layout Itemize
7390
7391 \family sans
7392 SCENE
7393 \begin_inset space \hfill{}
7394 \end_inset
7395
7396 M-z S-S
7397 \begin_inset Newline newline
7398 \end_inset
7399
7400
7401 \family default
7402 Not automatically numbered.
7403  You supply the number.
7404  This is because I couldn't figure out how.
7405 \end_layout
7406
7407 \begin_layout Itemize
7408
7409 \family sans
7410 AT_RISE:
7411 \begin_inset space \hfill{}
7412 \end_inset
7413
7414 M-z S-R
7415 \begin_inset Newline newline
7416 \end_inset
7417
7418
7419 \family default
7420 A special case of Narrative to describe the setting and action as the curtain
7421  rises.
7422 \end_layout
7423
7424 \begin_layout Itemize
7425
7426 \family sans
7427 Speaker
7428 \begin_inset space \hfill{}
7429 \end_inset
7430
7431 M-z s
7432 \begin_inset Newline newline
7433 \end_inset
7434
7435
7436 \family default
7437 The speaker's (actor's) title, centered in all CAPS.
7438 \end_layout
7439
7440 \begin_layout Itemize
7441
7442 \family sans
7443 Parenthetical
7444 \begin_inset space \hfill{}
7445 \end_inset
7446
7447 M-z p
7448 \begin_inset Newline newline
7449 \end_inset
7450
7451
7452 \family default
7453 Instructions to the speaker.
7454  The parentheses are automatically inserted.
7455  The ( will appear on screen, but both will be in the printed play.
7456  This environment is only used within 
7457 \family sans
7458 Dialogue
7459 \family default
7460 .
7461 \end_layout
7462
7463 \begin_layout Itemize
7464
7465 \family sans
7466 Dialogue
7467 \begin_inset space \hfill{}
7468 \end_inset
7469
7470 M-z d
7471 \begin_inset Newline newline
7472 \end_inset
7473
7474
7475 \family default
7476 What the Speaker says.
7477 \end_layout
7478
7479 \begin_layout Itemize
7480
7481 \family sans
7482 CURTAIN
7483 \begin_inset space \hfill{}
7484 \end_inset
7485
7486 M-z S-C
7487 \begin_inset Newline newline
7488 \end_inset
7489
7490
7491 \family default
7492 The curtain comes down.
7493 \end_layout
7494
7495 \begin_layout Itemize
7496
7497 \family sans
7498 Title
7499 \begin_inset space \hfill{}
7500 \end_inset
7501
7502 M-z S-T
7503 \end_layout
7504
7505 \begin_layout Itemize
7506
7507 \family sans
7508 Author
7509 \begin_inset space \hfill{}
7510 \end_inset
7511
7512 M-z S-A
7513 \end_layout
7514
7515 \begin_layout Itemize
7516
7517 \family sans
7518 Right_Address
7519 \begin_inset space \hfill{}
7520 \end_inset
7521
7522 M-z r
7523 \end_layout
7524
7525 \begin_layout Standard
7526 Hello there.
7527 \end_layout
7528
7529 \begin_layout Subsection
7530 Hollywood (Hollywood spec scripts)
7531 \end_layout
7532
7533 \begin_layout Standard
7534 by 
7535 \shape smallcaps
7536 Garst Reese
7537 \end_layout
7538
7539 \begin_layout Subsubsection
7540 Introduction
7541 \end_layout
7542
7543 \begin_layout Standard
7544 Getting the format of a Hollywood script right is a 
7545 \begin_inset Quotes eld
7546 \end_inset
7547
7548 rite of passage.
7549 \begin_inset Quotes erd
7550 \end_inset
7551
7552  It is designed to make the readers focus on content and to be easy and
7553  familiar for the actors to read.
7554  Each page of a script should be one minute of film.
7555  Nothing goes in a script that you cannot see or hear on screen.
7556  The courier 12 pt font should be used throughout.
7557  No italics.
7558 \end_layout
7559
7560 \begin_layout Subsubsection
7561 Special problems
7562 \end_layout
7563
7564 \begin_layout Standard
7565 Speakers' lines should NEVER break in mid-sentence.
7566  If a speaker's lines continue over a page break, repeat the 
7567 \family sans
7568 Speaker
7569 \family default
7570  title followed by (Cont'd).
7571 \end_layout
7572
7573 \begin_layout Subsubsection
7574 Special features
7575 \end_layout
7576
7577 \begin_layout Standard
7578 Insert the 
7579 \family sans
7580 Speaker
7581 \family default
7582  names as labels then cross-reference the label to insert the name.
7583  The cross-reference dialog will show the current cast of characters.
7584  You can use this to insert the speaker name in narratives also.
7585 \end_layout
7586
7587 \begin_layout Subsubsection
7588 Paper size and Margins
7589 \end_layout
7590
7591 \begin_layout Standard
7592 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
7593 \end_layout
7594
7595 \begin_layout Subsubsection
7596 Environments
7597 \end_layout
7598
7599 \begin_layout Standard
7600 The following environments are available.
7601  You can use hollywood.bind to get the bind keys shown at the right.
7602 \end_layout
7603
7604 \begin_layout Itemize
7605
7606 \family sans
7607 Standard
7608 \begin_inset Newline newline
7609 \end_inset
7610
7611
7612 \family default
7613 Used where nothing else works.
7614  Try to avoid it.
7615 \end_layout
7616
7617 \begin_layout Itemize
7618
7619 \family sans
7620 FADE_IN
7621 \family default
7622 :
7623 \begin_inset space \hfill{}
7624 \end_inset
7625
7626
7627 \family sans
7628 M-z S-I
7629 \family default
7630
7631 \begin_inset Newline newline
7632 \end_inset
7633
7634 Usually followed by something like 
7635 \begin_inset Quotes eld
7636 \end_inset
7637
7638 on Sally waking up.
7639 \begin_inset Quotes erd
7640 \end_inset
7641
7642
7643 \end_layout
7644
7645 \begin_layout Itemize
7646
7647 \family sans
7648 INT:
7649 \begin_inset space \hfill{}
7650 \end_inset
7651
7652 M-z i
7653 \begin_inset Newline newline
7654 \end_inset
7655
7656
7657 \family default
7658 Introduces a new INTERIOR camera set-up.
7659  Always followed by DAY or NIGHT, or something similar to define the lighting
7660  required.
7661  Everthing on this line in CAPS.
7662 \end_layout
7663
7664 \begin_layout Itemize
7665
7666 \family sans
7667 EXT:
7668 \begin_inset space \hfill{}
7669 \end_inset
7670
7671 M-z e
7672 \begin_inset Newline newline
7673 \end_inset
7674
7675
7676 \family default
7677 Introduces a new EXTERIOR camera set-up.
7678  Everthing on this line in CAPS.
7679 \end_layout
7680
7681 \begin_layout Itemize
7682
7683 \family sans
7684 Speaker
7685 \begin_inset space \hfill{}
7686 \end_inset
7687
7688 M-z s
7689 \begin_inset Newline newline
7690 \end_inset
7691
7692
7693 \family default
7694 The character speaking.
7695 \end_layout
7696
7697 \begin_layout Itemize
7698
7699 \family sans
7700 Parenthetical
7701 \begin_inset space \hfill{}
7702 \end_inset
7703
7704 M-z p
7705 \begin_inset Newline newline
7706 \end_inset
7707
7708
7709 \family default
7710 Instructions to the speaker.
7711  The () are automatically inserted.
7712 \end_layout
7713
7714 \begin_layout Itemize
7715
7716 \family sans
7717 Dialogue
7718 \begin_inset space \hfill{}
7719 \end_inset
7720
7721 M-z d
7722 \begin_inset Newline newline
7723 \end_inset
7724
7725
7726 \family default
7727 What the 
7728 \family sans
7729 Speaker
7730 \family default
7731  says.
7732 \end_layout
7733
7734 \begin_layout Itemize
7735
7736 \family sans
7737 Transition
7738 \begin_inset space \hfill{}
7739 \end_inset
7740
7741 M-z t
7742 \begin_inset Newline newline
7743 \end_inset
7744
7745
7746 \family default
7747 Camera movement instruction.
7748  e.
7749 \begin_inset space \thinspace{}
7750 \end_inset
7751
7752 g.
7753 \begin_inset space \space{}
7754 \end_inset
7755
7756 CUT TO:
7757 \end_layout
7758
7759 \begin_layout Itemize
7760
7761 \family sans
7762 FADE OUT:
7763 \begin_inset space \hfill{}
7764 \end_inset
7765
7766 M-z S-I
7767 \end_layout
7768
7769 \begin_layout Itemize
7770
7771 \family sans
7772 Author
7773 \begin_inset space \hfill{}
7774 \end_inset
7775
7776 M-z S-A
7777 \end_layout
7778
7779 \begin_layout Itemize
7780
7781 \family sans
7782 Title
7783 \begin_inset space \hfill{}
7784 \end_inset
7785
7786 M-z S-T
7787 \end_layout
7788
7789 \begin_layout Itemize
7790
7791 \family sans
7792 Right_Address
7793 \begin_inset space \hfill{}
7794 \end_inset
7795
7796 M-z r
7797 \end_layout
7798
7799 \begin_layout Subsubsection
7800 Script jargon
7801 \end_layout
7802
7803 \begin_layout Itemize
7804 (O.S) — off screen
7805 \end_layout
7806
7807 \begin_layout Itemize
7808 (V.0) — voice over
7809 \end_layout
7810
7811 \begin_layout Itemize
7812 b.
7813 \begin_inset space \thinspace{}
7814 \end_inset
7815
7816 g.
7817  — background
7818 \end_layout
7819
7820 \begin_layout Itemize
7821 C.U.
7822  — close-up
7823 \end_layout
7824
7825 \begin_layout Itemize
7826 PAN — camera movement
7827 \end_layout
7828
7829 \begin_layout Itemize
7830 INSERT — cut to close-up of
7831 \end_layout
7832
7833 \begin_layout Chapter
7834 Supplemental Tools
7835 \end_layout
7836
7837 \begin_layout Section
7838 Customizing Bibliographies with Bib\SpecialChar TeX
7839  or Biblatex
7840 \end_layout
7841
7842 \begin_layout Standard
7843 The most basic information about how to use Bib\SpecialChar TeX
7844  or 
7845 \family sans
7846 Biblatex
7847 \family default
7848  with \SpecialChar LyX
7849  is contained in the section 
7850 \emph on
7851 Bibliography databases
7852 \emph default
7853  of the 
7854 \emph on
7855 User's Guide
7856 \emph default
7857 .
7858  The following subsections explain special bibliography features supported
7859  by \SpecialChar LyX
7860 .
7861 \end_layout
7862
7863 \begin_layout Subsection
7864 Alternative Citation Styles
7865 \end_layout
7866
7867 \begin_layout Standard
7868 Standard Bib\SpecialChar TeX
7869  uses numbers (e.
7870 \begin_inset space \thinspace{}
7871 \end_inset
7872
7873 g.
7874 \begin_inset space \space{}
7875 \end_inset
7876
7877
7878 \begin_inset Quotes eld
7879 \end_inset
7880
7881 [12]
7882 \begin_inset Quotes erd
7883 \end_inset
7884
7885 ) to refer to a cited work.
7886  However, in many scientific disciplines, other citation styles are in use.
7887  The most common one is the author-year style (e.
7888 \begin_inset space \thinspace{}
7889 \end_inset
7890
7891 g.
7892 \begin_inset space \space{}
7893 \end_inset
7894
7895
7896 \begin_inset Quotes eld
7897 \end_inset
7898
7899 Knuth 1984a
7900 \begin_inset Quotes erd
7901 \end_inset
7902
7903 ).
7904  \SpecialChar LyX
7905  supports three packages that provide this style, 
7906 \begin_inset Flex Code
7907 status collapsed
7908
7909 \begin_layout Plain Layout
7910 biblatex
7911 \end_layout
7912
7913 \end_inset
7914
7915
7916 \begin_inset Flex Code
7917 status collapsed
7918
7919 \begin_layout Plain Layout
7920 natbib
7921 \end_layout
7922
7923 \end_inset
7924
7925 , and 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 jurabib
7931 \end_layout
7932
7933 \end_inset
7934
7935 .
7936  Each of these packages has their pros and cons, which cannot be listed
7937  in detail.
7938  If you only want to have simple author-year (or author-numerical) style,
7939  or if you want to use one of the countless style files for 
7940 \begin_inset Flex Code
7941 status collapsed
7942
7943 \begin_layout Plain Layout
7944 natbib
7945 \end_layout
7946
7947 \end_inset
7948
7949 , then the established 
7950 \begin_inset Flex Code
7951 status collapsed
7952
7953 \begin_layout Plain Layout
7954 natbib
7955 \end_layout
7956
7957 \end_inset
7958
7959  package is probably your choice.
7960  If you look for specific citation styles common in law studies, you might
7961  consider the 
7962 \begin_inset Flex Code
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 jurabib
7967 \end_layout
7968
7969 \end_inset
7970
7971  package.
7972  If you want to have full control over the formatting or look for advanced
7973  features such as ibidem, footnote citations, full title citations, advanced
7974  date formats (such as 400 BC) or full localization to other languages than
7975  English, you should definitely consider 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 biblatex
7981 \end_layout
7982
7983 \end_inset
7984
7985 , which exceeds all other packages in terms of features, but is also quite
7986  heavy and more resource-hungry.
7987 \end_layout
7988
7989 \begin_layout Standard
7990 The handling of these packages in \SpecialChar LyX
7991  is basically the same.
7992  Go to 
7993 \begin_inset Flex Noun
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 Document\SpecialChar menuseparator
7998 Settings
7999 \end_layout
8000
8001 \end_inset
8002
8003  and select under 
8004 \begin_inset Flex Noun
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 Bibliography
8009 \end_layout
8010
8011 \end_inset
8012
8013  the 
8014 \begin_inset Flex Noun
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 Style Format
8019 \end_layout
8020
8021 \end_inset
8022
8023  
8024 \begin_inset Flex Noun
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028 Basic (BibTeX)
8029 \end_layout
8030
8031 \end_inset
8032
8033
8034 \begin_inset Flex Noun
8035 status collapsed
8036
8037 \begin_layout Plain Layout
8038 Biblatex
8039 \end_layout
8040
8041 \end_inset
8042
8043
8044 \begin_inset Flex Noun
8045 status collapsed
8046
8047 \begin_layout Plain Layout
8048 Biblatex (Natbib mode)
8049 \end_layout
8050
8051 \end_inset
8052
8053
8054 \begin_inset Flex Noun
8055 status collapsed
8056
8057 \begin_layout Plain Layout
8058 Natbib (BibTeX)
8059 \end_layout
8060
8061 \end_inset
8062
8063  or 
8064 \begin_inset Flex Noun
8065 status collapsed
8066
8067 \begin_layout Plain Layout
8068 Jurabib (BibTeX)
8069 \end_layout
8070
8071 \end_inset
8072
8073  (see sec.
8074 \begin_inset space ~
8075 \end_inset
8076
8077 6.5.3 in the User's Guide for more information on these choices).
8078  With all these packages, you will get some extra features in the citation
8079  dialog and you can select the style of the reference (
8080 \begin_inset Quotes eld
8081 \end_inset
8082
8083 Knuth 1984
8084 \begin_inset Quotes erd
8085 \end_inset
8086
8087
8088 \begin_inset Quotes eld
8089 \end_inset
8090
8091 Knuth (1984)
8092 \begin_inset Quotes erd
8093 \end_inset
8094
8095
8096 \begin_inset Quotes eld
8097 \end_inset
8098
8099 Knuth, 1984
8100 \begin_inset Quotes erd
8101 \end_inset
8102
8103
8104 \begin_inset Quotes eld
8105 \end_inset
8106
8107 1984
8108 \begin_inset Quotes erd
8109 \end_inset
8110
8111  etc.).
8112  Note that either package needs specifically designed style files.
8113  They all ship their own, but there are lots of additional style files,
8114  and there is even an interactive style file builder
8115 \begin_inset Foot
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 See 
8120 \begin_inset Flex URL
8121 status open
8122
8123 \begin_layout Plain Layout
8124
8125 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
8126 \end_layout
8127
8128 \end_inset
8129
8130
8131 \end_layout
8132
8133 \end_inset
8134
8135  for 
8136 \begin_inset Flex Code
8137 status collapsed
8138
8139 \begin_layout Plain Layout
8140 natbib
8141 \end_layout
8142
8143 \end_inset
8144
8145 .
8146 \end_layout
8147
8148 \begin_layout Subsection
8149 Subdivided Bibliographies
8150 \end_layout
8151
8152 \begin_layout Standard
8153 Sometimes you might need to divide your bibliography into several sections.
8154  If you are for instance a historian, the possibility to separate sources
8155  and scientific works is most likely a 
8156 \begin_inset Quotes eld
8157 \end_inset
8158
8159 must have
8160 \begin_inset Quotes erd
8161 \end_inset
8162
8163 .
8164  Unfortunately, Bib\SpecialChar TeX
8165  itself does not allow you to do this.
8166  But with the help of some \SpecialChar LaTeX
8167  packages, Bib\SpecialChar TeX
8168  can be extended to fit your needs.
8169 \end_layout
8170
8171 \begin_layout Standard
8172 \SpecialChar LyX
8173  provides native support for one of these packages, 
8174 \family typewriter
8175 bibtopic
8176 \family default
8177 .
8178 \begin_inset Foot
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 Available from 
8183 \begin_inset Flex URL
8184 status open
8185
8186 \begin_layout Plain Layout
8187
8188 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
8189 \end_layout
8190
8191 \end_inset
8192
8193
8194 \end_layout
8195
8196 \end_inset
8197
8198  The advantage of this package (compared to other packages such as 
8199 \family typewriter
8200 multibib
8201 \family default
8202 ) is that you don't need to define new citation commands.
8203  Instead, you need to prepare different bibliographic databases which include
8204  the entries for the different sections of the bibliography.
8205  For example: If you want to divide your bibliography into the sections
8206  
8207 \begin_inset Quotes eld
8208 \end_inset
8209
8210 Sources
8211 \begin_inset Quotes erd
8212 \end_inset
8213
8214  and 
8215 \begin_inset Quotes eld
8216 \end_inset
8217
8218 Scientific works
8219 \begin_inset Quotes erd
8220 \end_inset
8221
8222 , you first need to create two bibliographic databases, e.
8223 \begin_inset space \thinspace{}
8224 \end_inset
8225
8226 g.
8227 \begin_inset space \space{}
8228 \end_inset
8229
8230
8231 \begin_inset Flex Code
8232 status collapsed
8233
8234 \begin_layout Plain Layout
8235 sources.bib
8236 \end_layout
8237
8238 \end_inset
8239
8240  and 
8241 \begin_inset Flex Code
8242 status collapsed
8243
8244 \begin_layout Plain Layout
8245 scientific.bib
8246 \end_layout
8247
8248 \end_inset
8249
8250 .
8251  
8252 \end_layout
8253
8254 \begin_layout Standard
8255 Go to 
8256 \begin_inset Flex Noun
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260 Document\SpecialChar menuseparator
8261 Settings
8262 \end_layout
8263
8264 \end_inset
8265
8266  and check under 
8267 \begin_inset Flex Noun
8268 status collapsed
8269
8270 \begin_layout Plain Layout
8271 Bibliography
8272 \end_layout
8273
8274 \end_inset
8275
8276  the option 
8277 \begin_inset Flex Noun
8278 status collapsed
8279
8280 \begin_layout Plain Layout
8281 Subdivided bibliography
8282 \end_layout
8283
8284 \end_inset
8285
8286 .
8287  Now you can insert multiple Bib\SpecialChar TeX
8288  bibliographies, one for each section of
8289  your bibliography.
8290  Returning to our example: Insert the Bib\SpecialChar TeX
8291  bibliography 
8292 \begin_inset Flex Code
8293 status collapsed
8294
8295 \begin_layout Plain Layout
8296 sources.bib
8297 \end_layout
8298
8299 \end_inset
8300
8301  and a second one for the database 
8302 \begin_inset Flex Code
8303 status collapsed
8304
8305 \begin_layout Plain Layout
8306 scientific.bib
8307 \end_layout
8308
8309 \end_inset
8310
8311 .
8312  You are free to use the same or different styles for each section.
8313  Additionally, you can choose if the bibliography section should contain
8314  
8315 \begin_inset Quotes eld
8316 \end_inset
8317
8318 all cited references
8319 \begin_inset Quotes erd
8320 \end_inset
8321
8322  of the specified database(s) (which is the default), 
8323 \begin_inset Quotes eld
8324 \end_inset
8325
8326 all uncited references
8327 \begin_inset Quotes erd
8328 \end_inset
8329
8330  or even 
8331 \begin_inset Quotes eld
8332 \end_inset
8333
8334 all references
8335 \begin_inset Quotes erd
8336 \end_inset
8337
8338 .
8339  This might be useful if you would like to separate your bibliography into
8340  three sections: 
8341 \begin_inset Quotes eld
8342 \end_inset
8343
8344 Cited sources
8345 \begin_inset Quotes erd
8346 \end_inset
8347
8348
8349 \begin_inset Quotes eld
8350 \end_inset
8351
8352 Uncited sources
8353 \begin_inset Quotes erd
8354 \end_inset
8355
8356 , and 
8357 \begin_inset Quotes eld
8358 \end_inset
8359
8360 Scientific works
8361 \begin_inset Quotes erd
8362 \end_inset
8363
8364 .
8365  The titles for the sections can be added as ordinary sections or subsections.
8366  Since 
8367 \begin_inset Flex Code
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 bibtopic
8372 \end_layout
8373
8374 \end_inset
8375
8376  removes the bibliography title, you have to manually re-add that, too (as
8377  a chapter* or section*, for instance).
8378 \end_layout
8379
8380 \begin_layout Standard
8381 With 
8382 \family sans
8383 Biblatex
8384 \family default
8385 , the procedure is a bit different.
8386  Since 
8387 \family typewriter
8388 bibtopic
8389 \family default
8390  does not work with 
8391 \family sans
8392 Biblatex
8393 \family default
8394 , the aforementioned 
8395 \begin_inset Flex Noun
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 Subdivided bibliography
8400 \end_layout
8401
8402 \end_inset
8403
8404  option is disabled if you use 
8405 \family sans
8406 Biblatex
8407 \family default
8408 .
8409  However, 
8410 \family sans
8411 Biblatex
8412 \family default
8413  provides its own means to generate subdivided bibliographies.
8414  You can either add keywords to bibliography entries via the 
8415 \begin_inset Flex Code
8416 status collapsed
8417
8418 \begin_layout Plain Layout
8419 keywords
8420 \end_layout
8421
8422 \end_inset
8423
8424  entry option and then filter bibliography sections by keyword (by adding
8425  
8426 \begin_inset Flex Code
8427 status collapsed
8428
8429 \begin_layout Plain Layout
8430 keyword=mykeyword
8431 \end_layout
8432
8433 \end_inset
8434
8435  to the 
8436 \begin_inset Flex Noun
8437 status collapsed
8438
8439 \begin_layout Plain Layout
8440 Options
8441 \end_layout
8442
8443 \end_inset
8444
8445  field of the dialog that opens if you left-click on the 
8446 \begin_inset Flex Noun
8447 status collapsed
8448
8449 \begin_layout Plain Layout
8450 Biblatex Generated Bibliography
8451 \end_layout
8452
8453 \end_inset
8454
8455  button), or you can filter by entry types (such as 
8456 \emph on
8457 book
8458 \emph default
8459  or 
8460 \emph on
8461 article
8462 \emph default
8463 ) by entering e.
8464 \begin_inset space \thinspace{}
8465 \end_inset
8466
8467 g.
8468  
8469 \begin_inset Flex Code
8470 status collapsed
8471
8472 \begin_layout Plain Layout
8473 type=book
8474 \end_layout
8475
8476 \end_inset
8477
8478  or 
8479 \begin_inset Flex Code
8480 status collapsed
8481
8482 \begin_layout Plain Layout
8483 nottype=collection
8484 \end_layout
8485
8486 \end_inset
8487
8488  to the mentioned 
8489 \begin_inset Flex Noun
8490 status collapsed
8491
8492 \begin_layout Plain Layout
8493 Options
8494 \end_layout
8495
8496 \end_inset
8497
8498  field, or you can create so-called 
8499 \begin_inset Quotes eld
8500 \end_inset
8501
8502 Bibliography Categories
8503 \begin_inset Quotes erd
8504 \end_inset
8505
8506  to which you can assign individual entries.
8507  Please refer to the Biblatex manual, section 
8508 \emph on
8509 Subdivided Bibliographies
8510 \emph default
8511 , for details.
8512 \end_layout
8513
8514 \begin_layout Subsection
8515 Multiple Bibliographies
8516 \begin_inset CommandInset label
8517 LatexCommand label
8518 name "subsec:Multiple-Bibliographies"
8519
8520 \end_inset
8521
8522
8523 \end_layout
8524
8525 \begin_layout Standard
8526 Multiple bibliographies, e.
8527 \begin_inset space \thinspace{}
8528 \end_inset
8529
8530 g.
8531 \begin_inset space \space{}
8532 \end_inset
8533
8534 a bibliography for each part, chapter, section, subsection or child (sub-documen
8535 t) of the document, are also supported by \SpecialChar LyX
8536 .
8537  In order to enable it, go to 
8538 \begin_inset Flex Noun
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 Document\SpecialChar menuseparator
8543 Settings\SpecialChar menuseparator
8544 Bibliography
8545 \end_layout
8546
8547 \end_inset
8548
8549  and select the relevant unit (e.
8550 \begin_inset space \thinspace{}
8551 \end_inset
8552
8553 g., 
8554 \begin_inset Quotes eld
8555 \end_inset
8556
8557 per section
8558 \begin_inset Quotes erd
8559 \end_inset
8560
8561 ) in the 
8562 \begin_inset Flex Noun
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 Multiple Bibliographies
8567 \end_layout
8568
8569 \end_inset
8570
8571  combo box.
8572  Then add a Bib(la)\SpecialChar TeX
8573  bibliography to each unit (e.
8574 \begin_inset space \thinspace{}
8575 \end_inset
8576
8577 g., section) of your document.
8578  In the output, a separate bibliography, containing only the references
8579  done in the current unit is generated.
8580 \end_layout
8581
8582 \begin_layout Standard
8583 If you use Bib\SpecialChar TeX
8584 , either the 
8585 \begin_inset Flex Code
8586 status collapsed
8587
8588 \begin_layout Plain Layout
8589 chapterbib
8590 \end_layout
8591
8592 \end_inset
8593
8594  or the 
8595 \begin_inset Flex Code
8596 status collapsed
8597
8598 \begin_layout Plain Layout
8599 bibtopic
8600 \end_layout
8601
8602 \end_inset
8603
8604  package is used to create multiple bibliographies.
8605  The former package is used if you select 
8606 \begin_inset Quotes eld
8607 \end_inset
8608
8609 per child document
8610 \begin_inset Quotes erd
8611 \end_inset
8612
8613  and do 
8614 \emph on
8615 not
8616 \emph default
8617  check 
8618 \begin_inset Flex Noun
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 Sectioned Bibliography
8623 \end_layout
8624
8625 \end_inset
8626
8627 .
8628  In all other cases, 
8629 \begin_inset Flex Code
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 bibtopic
8634 \end_layout
8635
8636 \end_inset
8637
8638  is used.
8639 \begin_inset Foot
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 An alternative approach, if you are willing to use some 
8644 \begin_inset Flex Noun
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 \SpecialChar TeX
8649  Code
8650 \end_layout
8651
8652 \end_inset
8653
8654  (see section
8655 \begin_inset space ~
8656 \end_inset
8657
8658
8659 \begin_inset CommandInset ref
8660 LatexCommand ref
8661 reference "sec:Inserting-TeX-Code"
8662
8663 \end_inset
8664
8665 ), is to use the 
8666 \begin_inset Flex Code
8667 status collapsed
8668
8669 \begin_layout Plain Layout
8670 bibunits
8671 \end_layout
8672
8673 \end_inset
8674
8675  package.
8676 \end_layout
8677
8678 \end_inset
8679
8680  If 
8681 \begin_inset Flex Code
8682 status collapsed
8683
8684 \begin_layout Plain Layout
8685 bibtopic
8686 \end_layout
8687
8688 \end_inset
8689
8690  is used, \SpecialChar LyX
8691  encloses the specified units in 
8692 \begin_inset Flex Code
8693 status collapsed
8694
8695 \begin_layout Plain Layout
8696 bibtopic
8697 \end_layout
8698
8699 \end_inset
8700
8701 's 
8702 \begin_inset Flex Code
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706
8707 \backslash
8708 begin{btUnit}
8709 \end_layout
8710
8711 \end_inset
8712
8713  and 
8714 \begin_inset Flex Code
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718
8719 \backslash
8720 end{btUnit}
8721 \end_layout
8722
8723 \end_inset
8724
8725  in order to create the units.
8726  Note that this approach has some limitations.
8727  First, every citation reference has to be inside some 
8728 \begin_inset Flex Code
8729 status collapsed
8730
8731 \begin_layout Plain Layout
8732 btUnit
8733 \end_layout
8734
8735 \end_inset
8736
8737 .
8738  So citations outside a defined unit (e.
8739 \begin_inset space \thinspace{}
8740 \end_inset
8741
8742 g., before the first section if you use 
8743 \begin_inset Quotes eld
8744 \end_inset
8745
8746 by section
8747 \begin_inset Quotes erd
8748 \end_inset
8749
8750 ) will appear as 
8751 \begin_inset Quotes eld
8752 \end_inset
8753
8754 ???
8755 \begin_inset Quotes erd
8756 \end_inset
8757
8758 .
8759  You can also create your own units by entering 
8760 \begin_inset Flex Code
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764
8765 \backslash
8766 begin{btUnit}
8767 \end_layout
8768
8769 \end_inset
8770
8771  and 
8772 \begin_inset Flex Code
8773 status collapsed
8774
8775 \begin_layout Plain Layout
8776
8777 \backslash
8778 end{btUnit}
8779 \end_layout
8780
8781 \end_inset
8782
8783  as \SpecialChar TeX
8784  code (for instance to work around the mentioned limitation).
8785  Note, though, that 
8786 \begin_inset Flex Code
8787 status collapsed
8788
8789 \begin_layout Plain Layout
8790 btUnit
8791 \end_layout
8792
8793 \end_inset
8794
8795 s cannot be nested.
8796  A second limitation is that 
8797 \begin_inset Flex Code
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 bibtopic
8802 \end_layout
8803
8804 \end_inset
8805
8806  always processes all references of a bibliography database, even if they
8807  are not cited.
8808  This can result in odd labels (e.
8809 \begin_inset space \thinspace{}
8810 \end_inset
8811
8812 g.
8813  
8814 \begin_inset Quotes eld
8815 \end_inset
8816
8817 Miller 2014b
8818 \begin_inset Quotes erd
8819 \end_inset
8820
8821  if two works of this author from 2014 are in the database, even if only
8822  one is cited).
8823 \end_layout
8824
8825 \begin_layout Standard
8826 If you use 
8827 \family sans
8828 Biblatex
8829 \family default
8830 , the 
8831 \begin_inset Flex Code
8832 status collapsed
8833
8834 \begin_layout Plain Layout
8835 refsection
8836 \end_layout
8837
8838 \end_inset
8839
8840  option is used instead.
8841  If you need specific units, you can start them with the \SpecialChar TeX
8842  code 
8843 \begin_inset Flex Code
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847
8848 \backslash
8849 newrefsection
8850 \end_layout
8851
8852 \end_inset
8853
8854  or 
8855 \begin_inset Flex Code
8856 status collapsed
8857
8858 \begin_layout Plain Layout
8859
8860 \backslash
8861 newrefsegment
8862 \end_layout
8863
8864 \end_inset
8865
8866 , respectively.
8867  If you also want to control the end of the unit, use the environment 
8868 \begin_inset Flex Code
8869 status collapsed
8870
8871 \begin_layout Plain Layout
8872
8873 \backslash
8874 begin{refsection}
8875 \end_layout
8876
8877 \end_inset
8878
8879  \SpecialChar ldots
8880  
8881 \begin_inset Flex Code
8882 status collapsed
8883
8884 \begin_layout Plain Layout
8885
8886 \backslash
8887 end{refsection}
8888 \end_layout
8889
8890 \end_inset
8891
8892  instead.
8893  Note, though, that 
8894 \begin_inset Flex Code
8895 status collapsed
8896
8897 \begin_layout Plain Layout
8898 refsection
8899 \end_layout
8900
8901 \end_inset
8902
8903 s cannot be nested.
8904  In addition to the individual bibliography of the current unit, 
8905 \family sans
8906 Biblatex
8907 \family default
8908  also provides an easy way to output all bibliographies, subsequently, at
8909  one place (e.
8910 \begin_inset space \thinspace{}
8911 \end_inset
8912
8913 g., at the end of the document).
8914  Select 
8915 \begin_inset Quotes eld
8916 \end_inset
8917
8918 all reference units
8919 \begin_inset Quotes erd
8920 \end_inset
8921
8922  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
8923  this.
8924  Please refer to the 
8925 \family sans
8926 Biblatex
8927 \family default
8928  manual for more information on this topic.
8929 \end_layout
8930
8931 \begin_layout Section
8932 Multipart Documents
8933 \end_layout
8934
8935 \begin_layout Subsection
8936 General Operation
8937 \end_layout
8938
8939 \begin_layout Standard
8940 When you are working on a large file with many sections, it is often convenient
8941  to break up the document into several files, or perhaps you have something
8942  where a table may change from time to time, but the preceding text does
8943  not.
8944  In these cases, you should seriously consider using multipart documents.
8945  For example, scientific papers often have five major sections: the introduction
8946 , observations, results, discussion, and conclusion.
8947  Each of these could be its own separate \SpecialChar LyX
8948  file, with one 
8949 \begin_inset Quotes eld
8950 \end_inset
8951
8952 master
8953 \begin_inset Quotes erd
8954 \end_inset
8955
8956  file which contains the title, authors, abstract, references, etc., plus
8957  the five included files.
8958  It is important to note that each of these files is a full \SpecialChar LyX
8959  file which
8960  can be formatted and printed on its own, as well as included in a master
8961  file.
8962  Each of these files must have the same document class, however—don't attempt
8963  to mix book classes with article classes.
8964  You may also include \SpecialChar LaTeX
8965  files; however, these files must not have their own
8966  preamble (i.
8967 \begin_inset space \thinspace{}
8968 \end_inset
8969
8970 e.
8971 \begin_inset space \space{}
8972 \end_inset
8973
8974 everything up to and including the 
8975 \begin_inset Flex Code
8976 status collapsed
8977
8978 \begin_layout Plain Layout
8979
8980 \backslash
8981 begin{document}
8982 \end_layout
8983
8984 \end_inset
8985
8986  line as well as the 
8987 \begin_inset Flex Code
8988 status collapsed
8989
8990 \begin_layout Plain Layout
8991
8992 \backslash
8993 end{document}
8994 \end_layout
8995
8996 \end_inset
8997
8998  line must be deleted) or else errors will be generated when you try to
8999  make a DVI file.
9000 \end_layout
9001
9002 \begin_layout Standard
9003 \SpecialChar LyX
9004  allows you to include files quite easily with 
9005 \begin_inset Flex Noun
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009 Insert\SpecialChar menuseparator
9010 Child
9011 \begin_inset space ~
9012 \end_inset
9013
9014 Document
9015 \end_layout
9016
9017 \end_inset
9018
9019 .
9020  When you click on this selection a small box is inserted into the file
9021  at the current cursor location.
9022  Clicking on the box raises a dialog which allows you to select the file
9023  to be included, and the method of its inclusion.
9024  
9025 \end_layout
9026
9027 \begin_layout Standard
9028 The file selection box should by now be obvious.
9029  The three inclusion methods are 
9030 \begin_inset Quotes eld
9031 \end_inset
9032
9033 include
9034 \begin_inset Quotes erd
9035 \end_inset
9036
9037
9038 \begin_inset Quotes eld
9039 \end_inset
9040
9041 input
9042 \begin_inset Quotes erd
9043 \end_inset
9044
9045 , and 
9046 \begin_inset Quotes eld
9047 \end_inset
9048
9049 verbatim
9050 \begin_inset Quotes erd
9051 \end_inset
9052
9053 .
9054  The methods 
9055 \begin_inset Quotes eld
9056 \end_inset
9057
9058 include
9059 \begin_inset Quotes erd
9060 \end_inset
9061
9062  and 
9063 \begin_inset Quotes eld
9064 \end_inset
9065
9066 input
9067 \begin_inset Quotes erd
9068 \end_inset
9069
9070  are similar in many ways, but there are also some notable differences:
9071 \end_layout
9072
9073 \begin_layout Enumerate
9074 Files that are 
9075 \begin_inset Quotes eld
9076 \end_inset
9077
9078 included
9079 \begin_inset Quotes erd
9080 \end_inset
9081
9082  are typeset beginning on a new page, while files that are 
9083 \begin_inset Quotes eld
9084 \end_inset
9085
9086 inputted
9087 \begin_inset Quotes erd
9088 \end_inset
9089
9090  are typeset starting on the current page.
9091 \end_layout
9092
9093 \begin_layout Enumerate
9094 \begin_inset Quotes eld
9095 \end_inset
9096
9097 Included
9098 \begin_inset Quotes erd
9099 \end_inset
9100
9101  files cannot themselves 
9102 \begin_inset Quotes eld
9103 \end_inset
9104
9105 include
9106 \begin_inset Quotes erd
9107 \end_inset
9108
9109  further files (
9110 \begin_inset Quotes eld
9111 \end_inset
9112
9113 grandchilds
9114 \begin_inset Quotes erd
9115 \end_inset
9116
9117 ).
9118  With 
9119 \begin_inset Quotes eld
9120 \end_inset
9121
9122 input
9123 \begin_inset Quotes erd
9124 \end_inset
9125
9126 , on the other hand, infinite sub-inputting is possible.
9127 \end_layout
9128
9129 \begin_layout Enumerate
9130 \begin_inset Quotes eld
9131 \end_inset
9132
9133 Include
9134 \begin_inset Quotes erd
9135 \end_inset
9136
9137  allow for the output of only selected 
9138 \begin_inset Quotes eld
9139 \end_inset
9140
9141 included
9142 \begin_inset Quotes erd
9143 \end_inset
9144
9145  files, while maintaining the actual counters (pagination etc.) and references
9146  (please refer to the section 
9147 \emph on
9148 Child
9149 \begin_inset space ~
9150 \end_inset
9151
9152 Documents
9153 \emph default
9154  of the 
9155 \emph on
9156 Embedded
9157 \begin_inset space ~
9158 \end_inset
9159
9160 Objects
9161 \emph default
9162  manual for details).
9163 \end_layout
9164
9165 \begin_layout Standard
9166 Hence, 
9167 \begin_inset Quotes eld
9168 \end_inset
9169
9170 include
9171 \begin_inset Quotes erd
9172 \end_inset
9173
9174  is the preferred method for chapters that are outsourced to child documents,
9175  while 
9176 \begin_inset Quotes eld
9177 \end_inset
9178
9179 input
9180 \begin_inset Quotes erd
9181 \end_inset
9182
9183  is more suitable for arbitrary file inheritance.
9184 \end_layout
9185
9186 \begin_layout Standard
9187
9188 \begin_inset Quotes eld
9189 \end_inset
9190
9191 verbatim
9192 \begin_inset Quotes erd
9193 \end_inset
9194
9195  included file allows you to include a file typeset exactly as it appears
9196  in the file, i.
9197 \begin_inset space \thinspace{}
9198 \end_inset
9199
9200 e.
9201 \begin_inset space \space{}
9202 \end_inset
9203
9204 in 
9205 \begin_inset Flex Code
9206 status collapsed
9207
9208 \begin_layout Plain Layout
9209 verbatim
9210 \end_layout
9211
9212 \end_inset
9213
9214  mode, with the characters set in a fixed-width typewriter font.
9215  Normally, spaces in this file are invisible, though two consecutive spaces
9216  are conserved, unlike \SpecialChar LyX
9217 's normal treatment of spaces.
9218  However, setting the 
9219 \begin_inset Flex Noun
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 Mark
9224 \begin_inset space ~
9225 \end_inset
9226
9227 spaces
9228 \begin_inset space ~
9229 \end_inset
9230
9231 in
9232 \begin_inset space ~
9233 \end_inset
9234
9235 output
9236 \end_layout
9237
9238 \end_inset
9239
9240  checkbox typesets a mark to unambiguously define the presence of a space.
9241  
9242 \end_layout
9243
9244 \begin_layout Standard
9245 Generally, the master file is converted into a full \SpecialChar LaTeX
9246  file before typesetting,
9247  while the included files are converted to \SpecialChar LaTeX
9248  files that do not have all the
9249  preamble information.
9250 \end_layout
9251
9252 \begin_layout Subsection
9253 Cross-References Between Files
9254 \end_layout
9255
9256 \begin_layout Standard
9257 \begin_inset Box Shadowbox
9258 position "t"
9259 hor_pos "c"
9260 has_inner_box 1
9261 inner_pos "t"
9262 use_parbox 0
9263 use_makebox 0
9264 width "100col%"
9265 special "none"
9266 height "1in"
9267 height_special "totalheight"
9268 thickness "0.4pt"
9269 separation "3pt"
9270 shadowsize "4pt"
9271 framecolor "black"
9272 backgroundcolor "none"
9273 status open
9274
9275 \begin_layout Plain Layout
9276 This section is somewhat out of date.
9277  Need to describe default master documents and how children are opened when
9278  the master is.
9279  [[FIXME]]
9280 \end_layout
9281
9282 \end_inset
9283
9284
9285 \end_layout
9286
9287 \begin_layout Standard
9288 It is possible to set up cross-references between the different files.
9289  First, open all the files in question: let's call them A and B in a two
9290  file example, where B is included in A.
9291  Let's say you insert a label in A, then want to reference it in B.
9292  Open the cross-reference dialog whilst in document B, and you can select
9293  the 
9294 \begin_inset Quotes eld
9295 \end_inset
9296
9297 buffer
9298 \begin_inset Quotes erd
9299 \end_inset
9300
9301  to use.
9302 \end_layout
9303
9304 \begin_layout Subsection
9305 Bibliography Lists in all Subdocuments
9306 \end_layout
9307
9308 \begin_layout Standard
9309 If you work with child documents, you might want to have only one main bibliogra
9310 phy at the end, but still be able to have a selected bibliography for the
9311  child if you output it on its own.
9312  Here is how to achieve this.
9313 \end_layout
9314
9315 \begin_layout Standard
9316 For the main document, you just insert a bibliography inset at the place
9317  where the main bibliography has to appear (within the master file or within
9318  a child).
9319  If the bibliography inset is in the master file, the references will be
9320  inherited by all children, so they are available in the citation dialog
9321  within each child.
9322 \end_layout
9323
9324 \begin_layout Standard
9325 For child-specific bibliographies, insert bibliography insets within the
9326  child documents, at the place where the bibliography should appear when
9327  the child is compiled separately.
9328  However, the trick is to insert them into a branch (
9329 \family sans
9330 Insert\SpecialChar menuseparator
9331 Branch\SpecialChar menuseparator
9332 Insert New Branch...
9333 \family default
9334 ), e.
9335 \begin_inset space \thinspace{}
9336 \end_inset
9337
9338 g.
9339  called 
9340 \begin_inset Quotes eld
9341 \end_inset
9342
9343 Childonly
9344 \begin_inset Quotes erd
9345 \end_inset
9346
9347 .
9348  Within the children, activate the branch (
9349 \family sans
9350 Document\SpecialChar menuseparator
9351 Settings...\SpecialChar menuseparator
9352 Branches
9353 \family default
9354 ).
9355  Within the master, deactivate the branch (
9356 \family sans
9357 Document\SpecialChar menuseparator
9358 Settings...\SpecialChar menuseparator
9359 Branches
9360 \family default
9361 ).
9362  Now the child's bibliography will be ignored by the master, but considered
9363  by the child.
9364 \end_layout
9365
9366 \begin_layout Standard
9367 If you need multiple bibliographies (e.
9368 \begin_inset space \thinspace{}
9369 \end_inset
9370
9371 g., one per child in the 
9372 \emph on
9373 main document
9374 \emph default
9375 ), please refer to sec.
9376 \begin_inset space ~
9377 \end_inset
9378
9379
9380 \begin_inset CommandInset ref
9381 LatexCommand ref
9382 reference "subsec:Multiple-Bibliographies"
9383
9384 \end_inset
9385
9386 .
9387 \end_layout
9388
9389 \begin_layout Section
9390 \SpecialChar LyX
9391  Archives
9392 \end_layout
9393
9394 \begin_layout Standard
9395 Users sometimes need to be able to 
9396 \begin_inset Quotes eld
9397 \end_inset
9398
9399 bundle
9400 \begin_inset Quotes erd
9401 \end_inset
9402
9403  a \SpecialChar LyX
9404  file together with all the images (and other files) on which it depends,
9405  either for sending to a publisher or for sharing with a co-author.
9406  \SpecialChar LyX
9407  includes a Python script (
9408 \begin_inset Flex Code
9409 status collapsed
9410
9411 \begin_layout Plain Layout
9412 lyxpak.py
9413 \end_layout
9414
9415 \end_inset
9416
9417 ) that automates this process.
9418  To use it, you must have either the 
9419 \begin_inset Flex Code
9420 status collapsed
9421
9422 \begin_layout Plain Layout
9423 zipfile
9424 \end_layout
9425
9426 \end_inset
9427
9428  or 
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433 tarfile
9434 \end_layout
9435
9436 \end_inset
9437
9438  python modules installed on your system.
9439  By default, the script prefers the 
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 gzip
9445 \end_layout
9446
9447 \end_inset
9448
9449 -compressed 
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 tar
9455 \end_layout
9456
9457 \end_inset
9458
9459  format on Unix-like systems and the 
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 zip
9465 \end_layout
9466
9467 \end_inset
9468
9469  format on Windows.
9470 \end_layout
9471
9472 \begin_layout Standard
9473 \SpecialChar LyX
9474 's configuration process will set the script up to export a `\SpecialChar LyX
9475  Archive',
9476  and this format will then be available under 
9477 \begin_inset Flex Code
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481 File\SpecialChar menuseparator
9482 Export
9483 \end_layout
9484
9485 \end_inset
9486
9487 .
9488 \end_layout
9489
9490 \begin_layout Standard
9491 Independently of the platform, the generation of a particular archive format
9492  can be forced by adding either the 
9493 \begin_inset Flex Code
9494 status collapsed
9495
9496 \begin_layout Plain Layout
9497 -t
9498 \end_layout
9499
9500 \end_inset
9501
9502  (for the 
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 tar
9508 \end_layout
9509
9510 \end_inset
9511
9512  format) or 
9513 \begin_inset Flex Code
9514 status collapsed
9515
9516 \begin_layout Plain Layout
9517 -z
9518 \end_layout
9519
9520 \end_inset
9521
9522  (for the 
9523 \begin_inset Flex Code
9524 status collapsed
9525
9526 \begin_layout Plain Layout
9527 zip
9528 \end_layout
9529
9530 \end_inset
9531
9532  format) switch to the 
9533 \begin_inset Flex Code
9534 status collapsed
9535
9536 \begin_layout Plain Layout
9537 \SpecialChar LyX
9538 \SpecialChar menuseparator
9539 \SpecialChar LyX
9540  Archive
9541 \end_layout
9542
9543 \end_inset
9544
9545  converter in 
9546 \begin_inset Flex Code
9547 status collapsed
9548
9549 \begin_layout Plain Layout
9550 Tools\SpecialChar menuseparator
9551 Preferences\SpecialChar menuseparator
9552 File Handling\SpecialChar menuseparator
9553 Converters
9554 \end_layout
9555
9556 \end_inset
9557
9558 .
9559  (Make sure you add the switch after the script name, not before it.)
9560 \end_layout
9561
9562 \begin_layout Section
9563 Fancy Headers and Footers
9564 \end_layout
9565
9566 \begin_layout Standard
9567 The default page layout is rather plain; for an 
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 article
9573 \end_layout
9574
9575 \end_inset
9576
9577  document class, all you get is a centered page number at the bottom of
9578  the page.
9579  This document uses KOMA-script's book class, so it appears to be a bit
9580  fancier.
9581  But to really put on a show, you need to set the document page style to
9582  
9583 \begin_inset Quotes eld
9584 \end_inset
9585
9586 fancy
9587 \begin_inset Quotes erd
9588 \end_inset
9589
9590 , as mentioned in the 
9591 \emph on
9592 User Guide
9593 \emph default
9594 .
9595  This section describes the \SpecialChar LaTeX
9596  code you need to insert in your \SpecialChar LaTeX
9597  preamble in
9598  order to get the desired effects.
9599 \end_layout
9600
9601 \begin_layout Standard
9602 For more information on fancy headers, see the 
9603 \begin_inset Flex Code
9604 status collapsed
9605
9606 \begin_layout Plain Layout
9607 fancyhdr
9608 \end_layout
9609
9610 \end_inset
9611
9612  package documentation.
9613  (
9614 \begin_inset Flex URL
9615 status collapsed
9616
9617 \begin_layout Plain Layout
9618
9619 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
9620 \end_layout
9621
9622 \end_inset
9623
9624 )
9625 \end_layout
9626
9627 \begin_layout Standard
9628 The page header is divided into three fields, not surprisingly labeled 
9629 \begin_inset Quotes eld
9630 \end_inset
9631
9632 left
9633 \begin_inset Quotes erd
9634 \end_inset
9635
9636
9637 \begin_inset Quotes eld
9638 \end_inset
9639
9640 center
9641 \begin_inset Quotes erd
9642 \end_inset
9643
9644 , and 
9645 \begin_inset Quotes eld
9646 \end_inset
9647
9648 right
9649 \begin_inset Quotes erd
9650 \end_inset
9651
9652 .
9653  The footer is also divided into these three fields.
9654  The \SpecialChar LaTeX
9655  commands to set these fields in the simplest manner are 
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660
9661 \backslash
9662 lhead
9663 \end_layout
9664
9665 \end_inset
9666
9667
9668 \begin_inset Flex Code
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672
9673 \backslash
9674 chead
9675 \end_layout
9676
9677 \end_inset
9678
9679
9680 \begin_inset Flex Code
9681 status collapsed
9682
9683 \begin_layout Plain Layout
9684
9685 \backslash
9686 rhead
9687 \end_layout
9688
9689 \end_inset
9690
9691
9692 \begin_inset Flex Code
9693 status collapsed
9694
9695 \begin_layout Plain Layout
9696
9697 \backslash
9698 lfoot
9699 \end_layout
9700
9701 \end_inset
9702
9703 , etc.
9704  Suppose you wish to put your name in the upper left hand corner of each
9705  page.
9706  Simply insert the following command in the preamble: 
9707 \end_layout
9708
9709 \begin_layout Standard
9710
9711 \family typewriter
9712
9713 \backslash
9714 lhead{John Q.
9715  DocWriter}
9716 \end_layout
9717
9718 \begin_layout Standard
9719 You will now see your name in the upper left.
9720  If a field has a default entry that you would like to get rid of (often
9721  the page number appears in the central footer) simply include a command
9722  with a blank argument, e.
9723 \begin_inset space \thinspace{}
9724 \end_inset
9725
9726 g.:
9727 \end_layout
9728
9729 \begin_layout Standard
9730
9731 \family typewriter
9732
9733 \backslash
9734 cfoot{}
9735 \end_layout
9736
9737 \begin_layout Standard
9738 Let's get really fancy: lets put the section number with the word 
9739 \begin_inset Quotes eld
9740 \end_inset
9741
9742 Section
9743 \begin_inset Quotes erd
9744 \end_inset
9745
9746  (e.
9747 \begin_inset space \thinspace{}
9748 \end_inset
9749
9750 g.
9751 \begin_inset space \space{}
9752 \end_inset
9753
9754 Section 3) in the upper left, the page number (e.
9755 \begin_inset space \thinspace{}
9756 \end_inset
9757
9758 g.
9759 \begin_inset space \space{}
9760 \end_inset
9761
9762 Page 4) in the upper right, your name in the lower left, and the date in
9763  the lower right.
9764  The following commands should now appear in the preamble:
9765 \end_layout
9766
9767 \begin_layout Standard
9768
9769 \family typewriter
9770
9771 \backslash
9772 lhead{Section 
9773 \backslash
9774 thesection}
9775 \end_layout
9776
9777 \begin_layout Standard
9778
9779 \family typewriter
9780
9781 \backslash
9782 chead{}
9783 \end_layout
9784
9785 \begin_layout Standard
9786
9787 \family typewriter
9788
9789 \backslash
9790 rhead{Page 
9791 \backslash
9792 thepage}
9793 \end_layout
9794
9795 \begin_layout Standard
9796
9797 \family typewriter
9798
9799 \backslash
9800 lfoot{John Q.
9801  DocWriter}
9802 \end_layout
9803
9804 \begin_layout Standard
9805
9806 \family typewriter
9807
9808 \backslash
9809 cfoot{}
9810 \end_layout
9811
9812 \begin_layout Standard
9813
9814 \family typewriter
9815
9816 \backslash
9817 rfoot{
9818 \backslash
9819 today}
9820 \end_layout
9821
9822 \begin_layout Standard
9823 The commands 
9824 \begin_inset Flex Code
9825 status collapsed
9826
9827 \begin_layout Plain Layout
9828
9829 \backslash
9830 thesection
9831 \end_layout
9832
9833 \end_inset
9834
9835  and 
9836 \begin_inset Flex Code
9837 status collapsed
9838
9839 \begin_layout Plain Layout
9840
9841 \backslash
9842 thepage
9843 \end_layout
9844
9845 \end_inset
9846
9847  access \SpecialChar LaTeX
9848 's section and page counters, and so print out the current section
9849  and page number.
9850  
9851 \begin_inset Flex Code
9852 status collapsed
9853
9854 \begin_layout Plain Layout
9855
9856 \backslash
9857 today
9858 \end_layout
9859
9860 \end_inset
9861
9862  simply prints out today's date.
9863 \end_layout
9864
9865 \begin_layout Standard
9866 The thicknesses of the horizontal rules drawn beneath the header and above
9867  the footer can also be modified.
9868  If you don't want one of the rules, set its thickness to 0.
9869  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
9870  Use commands
9871 \family typewriter
9872  
9873 \family default
9874 like 
9875 \begin_inset Flex Code
9876 status collapsed
9877
9878 \begin_layout Plain Layout
9879
9880 \backslash
9881 renewcommand{
9882 \backslash
9883 headrulewidth}{0.4pt}
9884 \end_layout
9885
9886 \end_inset
9887
9888  and 
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893
9894 \backslash
9895 renewcommand{
9896 \backslash
9897 footrulewidth}{0.4pt}
9898 \end_layout
9899
9900 \end_inset
9901
9902  to set the thicknesses.
9903 \end_layout
9904
9905 \begin_layout Standard
9906 You can switch the header/footer settings on and off for individual pages
9907  using commands like 
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912
9913 \backslash
9914 thispagestyle{empty}
9915 \end_layout
9916
9917 \end_inset
9918
9919
9920 \begin_inset Flex Code
9921 status collapsed
9922
9923 \begin_layout Plain Layout
9924
9925 \backslash
9926 thispagestyle{plain}
9927 \end_layout
9928
9929 \end_inset
9930
9931 , and 
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936
9937 \backslash
9938 thispagestyle{fancy}
9939 \end_layout
9940
9941 \end_inset
9942
9943 .
9944  Simply insert them in the text on the page you want changed and mark them
9945  as \SpecialChar TeX
9946  code.
9947  In fact, title pages are marked as plain by default, while following pages
9948  are marked fancy when using the global fancy setting.
9949 \end_layout
9950
9951 \begin_layout Standard
9952 As a final example, it is possible to include an image in the header or
9953  footer.
9954  Suppose you want to put a company logo in the upper lefthand corner.
9955  You might try something like
9956 \end_layout
9957
9958 \begin_layout Standard
9959
9960 \family typewriter
9961
9962 \backslash
9963 lhead{
9964 \backslash
9965 resizebox{1in}{!}{
9966 \backslash
9967 includegraphics{logo.eps}}}
9968 \end_layout
9969
9970 \begin_layout Standard
9971 \noindent
9972 (you may need to preface this with 
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977
9978 \backslash
9979 usepackage{graphics}
9980 \end_layout
9981
9982 \end_inset
9983
9984  if you don't include graphics elsewhere in your document).
9985 \end_layout
9986
9987 \begin_layout Section
9988 Itemize Bullet Selection
9989 \begin_inset CommandInset label
9990 LatexCommand label
9991 name "sec:bullet"
9992
9993 \end_inset
9994
9995
9996 \end_layout
9997
9998 \begin_layout Standard
9999 by
10000 \noun on
10001  Allan Rae
10002 \end_layout
10003
10004 \begin_layout Subsection
10005 Introduction
10006 \end_layout
10007
10008 \begin_layout Standard
10009 \SpecialChar LyX
10010  provides 216 bullet shapes that can be accessed from a simple dialog.
10011  Using this dialog you can easily specify what bullet shape to use at each
10012  level of an itemized list.
10013  These settings are document-wide so you won't be able to specify different
10014  sets of bullets for different paragraphs.
10015 \begin_inset Foot
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 Well, actually you can but you'll have to do it by hand.
10020 \end_layout
10021
10022 \end_inset
10023
10024
10025 \end_layout
10026
10027 \begin_layout Subsection
10028 How it looks
10029 \end_layout
10030
10031 \begin_layout Standard
10032 Open the dialog by selecting the 
10033 \begin_inset Flex Noun
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 Document\SpecialChar menuseparator
10038 Settings
10039 \end_layout
10040
10041 \end_inset
10042
10043  menu item and then select the 
10044 \begin_inset Flex Noun
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 Bullets
10049 \end_layout
10050
10051 \end_inset
10052
10053  tab.
10054 \end_layout
10055
10056 \begin_layout Standard
10057 The dialog provides you with a table of bullet shapes.
10058  A column of buttons on the left of the table provides access to the six
10059  different panels of bullet shapes.
10060  The row of buttons across the top is used to select which bullet depth
10061  you are changing.
10062
10063 \change_deleted 244031559 1603875981
10064  A text entry under the table shows the currently selected bullet shape's
10065  \SpecialChar LaTeX
10066  equivalent and this can be edited if desired.
10067  If you do modify the text you will also need to specify any needed packages
10068  in the \SpecialChar LaTeX
10069  preamble.
10070 \change_unchanged
10071
10072 \end_layout
10073
10074 \begin_layout Standard
10075 The six panels are divided up by the packages they require.
10076  The following table shows the mappings from button name to \SpecialChar LaTeX
10077  package.
10078 \end_layout
10079
10080 \begin_layout Standard
10081 \align center
10082 \begin_inset Tabular
10083 <lyxtabular version="3" rows="7" columns="2">
10084 <features tabularvalignment="middle">
10085 <column alignment="center" valignment="top" width="0pt">
10086 <column alignment="center" valignment="top" width="0pt">
10087 <row>
10088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10089 \begin_inset Text
10090
10091 \begin_layout Plain Layout
10092
10093 \family roman
10094 \series medium
10095 \shape up
10096 \size normal
10097 \emph off
10098 \bar no
10099 \noun off
10100 \color none
10101 Button
10102 \end_layout
10103
10104 \end_inset
10105 </cell>
10106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10107 \begin_inset Text
10108
10109 \begin_layout Plain Layout
10110
10111 \family roman
10112 \series medium
10113 \shape up
10114 \size normal
10115 \emph off
10116 \bar no
10117 \noun off
10118 \color none
10119 Packages Required
10120 \end_layout
10121
10122 \end_inset
10123 </cell>
10124 </row>
10125 <row>
10126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10127 \begin_inset Text
10128
10129 \begin_layout Plain Layout
10130
10131 \family sans
10132 \series medium
10133 \shape up
10134 \size normal
10135 \emph off
10136 \bar no
10137 \noun off
10138 \color none
10139 Standard
10140 \end_layout
10141
10142 \end_inset
10143 </cell>
10144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10145 \begin_inset Text
10146
10147 \begin_layout Plain Layout
10148
10149 \series medium
10150 \shape up
10151 \size normal
10152 \emph off
10153 \bar no
10154 \noun off
10155 \color none
10156 base \SpecialChar LaTeX
10157
10158 \end_layout
10159
10160 \end_inset
10161 </cell>
10162 </row>
10163 <row>
10164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10165 \begin_inset Text
10166
10167 \begin_layout Plain Layout
10168
10169 \family sans
10170 \series medium
10171 \shape up
10172 \size normal
10173 \emph off
10174 \bar no
10175 \noun off
10176 \color none
10177 Maths
10178 \end_layout
10179
10180 \end_inset
10181 </cell>
10182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10183 \begin_inset Text
10184
10185 \begin_layout Plain Layout
10186
10187 \family typewriter
10188 \series medium
10189 \shape up
10190 \size normal
10191 \emph off
10192 \bar no
10193 \noun off
10194 \color none
10195 amssymb.sty
10196 \end_layout
10197
10198 \end_inset
10199 </cell>
10200 </row>
10201 <row>
10202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10203 \begin_inset Text
10204
10205 \begin_layout Plain Layout
10206
10207 \family sans
10208 \series medium
10209 \shape up
10210 \size normal
10211 \emph off
10212 \bar no
10213 \noun off
10214 \color none
10215 Ding1
10216 \end_layout
10217
10218 \end_inset
10219 </cell>
10220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10221 \begin_inset Text
10222
10223 \begin_layout Plain Layout
10224
10225 \family typewriter
10226 \series medium
10227 \shape up
10228 \size normal
10229 \emph off
10230 \bar no
10231 \noun off
10232 \color none
10233 pifont.sty
10234 \end_layout
10235
10236 \end_inset
10237 </cell>
10238 </row>
10239 <row>
10240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10241 \begin_inset Text
10242
10243 \begin_layout Plain Layout
10244
10245 \family sans
10246 \series medium
10247 \shape up
10248 \size normal
10249 \emph off
10250 \bar no
10251 \noun off
10252 \color none
10253 Ding2
10254 \end_layout
10255
10256 \end_inset
10257 </cell>
10258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10259 \begin_inset Text
10260
10261 \begin_layout Plain Layout
10262
10263 \family typewriter
10264 \series medium
10265 \shape up
10266 \size normal
10267 \emph off
10268 \bar no
10269 \noun off
10270 \color none
10271 pifont.sty
10272 \end_layout
10273
10274 \end_inset
10275 </cell>
10276 </row>
10277 <row>
10278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10279 \begin_inset Text
10280
10281 \begin_layout Plain Layout
10282
10283 \family sans
10284 \series medium
10285 \shape up
10286 \size normal
10287 \emph off
10288 \bar no
10289 \noun off
10290 \color none
10291 Ding3
10292 \end_layout
10293
10294 \end_inset
10295 </cell>
10296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10297 \begin_inset Text
10298
10299 \begin_layout Plain Layout
10300
10301 \family typewriter
10302 \series medium
10303 \shape up
10304 \size normal
10305 \emph off
10306 \bar no
10307 \noun off
10308 \color none
10309 pifont.sty
10310 \end_layout
10311
10312 \end_inset
10313 </cell>
10314 </row>
10315 <row>
10316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10317 \begin_inset Text
10318
10319 \begin_layout Plain Layout
10320
10321 \family sans
10322 \series medium
10323 \shape up
10324 \size normal
10325 \emph off
10326 \bar no
10327 \noun off
10328 \color none
10329 Ding4
10330 \end_layout
10331
10332 \end_inset
10333 </cell>
10334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10335 \begin_inset Text
10336
10337 \begin_layout Plain Layout
10338
10339 \family typewriter
10340 \series medium
10341 \shape up
10342 \size normal
10343 \emph off
10344 \bar no
10345 \noun off
10346 \color none
10347 pifont.sty
10348 \end_layout
10349
10350 \end_inset
10351 </cell>
10352 </row>
10353 </lyxtabular>
10354
10355 \end_inset
10356
10357
10358 \end_layout
10359
10360 \begin_layout Standard
10361 \SpecialChar LyX
10362  doesn't stop you using bullets from packages you don't have.
10363  If you get errors from \SpecialChar LaTeX
10364  when you try to view or print the file, then it
10365  is likely you are missing a package.
10366 \begin_inset Foot
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 \SpecialChar LyX
10371  doesn't restrict your use since you may be editing locally and exporting
10372  elsewhere.
10373 \end_layout
10374
10375 \end_inset
10376
10377
10378 \end_layout
10379
10380 \begin_layout Subsection
10381 How to use it
10382 \end_layout
10383
10384 \begin_layout Standard
10385 Select which bullet depth you want to change then select the bullet shape
10386  and size.
10387  Any changes will not be visible in \SpecialChar LyX
10388 , but are visible when viewing the document.
10389 \end_layout
10390
10391 \begin_layout Standard
10392 You can reset a bullet shape to the default simply by clicking your right
10393  mouse button on the appropriate bullet depth button.
10394 \begin_inset Foot
10395 status open
10396
10397 \begin_layout Plain Layout
10398 If you 
10399 \emph on
10400 really
10401 \emph default
10402  want to have multiple sets of paragraphs with different sets of bullets
10403  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
10404  code.
10405  The bullet selection dialog can help though because it provides you with
10406  the \SpecialChar LaTeX
10407  code for a wide range of bullet shapes.
10408  To make your own custom paragraphs you have the following options:
10409 \end_layout
10410
10411 \begin_layout Plain Layout
10412 \begin_inset ERT
10413 status open
10414
10415 \begin_layout Plain Layout
10416
10417
10418 \backslash
10419 let
10420 \backslash
10421 savelabelitemi=
10422 \backslash
10423 labelitemi
10424 \end_layout
10425
10426 \end_inset
10427
10428
10429 \end_layout
10430
10431 \begin_layout Plain Layout
10432 \begin_inset ERT
10433 status open
10434
10435 \begin_layout Plain Layout
10436
10437
10438 \backslash
10439 renewcommand
10440 \backslash
10441 labelitemi[0]{
10442 \backslash
10443 small
10444 \backslash
10445 (
10446 \backslash
10447 sharp
10448 \backslash
10449 )}
10450 \end_layout
10451
10452 \end_inset
10453
10454
10455 \end_layout
10456
10457 \begin_layout Itemize
10458 Use the \SpecialChar LaTeX
10459  command 
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464
10465 \backslash
10466 renewcommand{}{}
10467 \end_layout
10468
10469 \end_inset
10470
10471  to specify a new bullet shape for a given depth.
10472  You'll also need to save the current bullet shape so you can restore it
10473  again afterwards.
10474  In this itemized list the following \SpecialChar LaTeX
10475  code was used to change the bullet
10476  used for the first depth.
10477 \end_layout
10478
10479 \begin_deeper
10480 \begin_layout LyX-Code
10481
10482 \backslash
10483 let
10484 \backslash
10485 savelabelitemi=
10486 \backslash
10487 labelitemi 
10488 \end_layout
10489
10490 \begin_layout LyX-Code
10491
10492 \backslash
10493 renewcommand
10494 \backslash
10495 labelitemi[0]{
10496 \backslash
10497 small
10498 \backslash
10499 (
10500 \backslash
10501 sharp
10502 \backslash
10503 )}
10504 \end_layout
10505
10506 \end_deeper
10507 \begin_layout Itemize
10508 Note that the itemize depth is specified in Roman numerals as part of the
10509  
10510 \family typewriter
10511
10512 \backslash
10513 labelitem
10514 \family default
10515  command.
10516 \end_layout
10517
10518 \begin_layout Itemize
10519 \begin_inset Argument item:1
10520 status open
10521
10522 \begin_layout Plain Layout
10523 \begin_inset ERT
10524 status open
10525
10526 \begin_layout Plain Layout
10527
10528
10529 \backslash
10530 (
10531 \backslash
10532 star
10533 \backslash
10534 )
10535 \end_layout
10536
10537 \end_inset
10538
10539
10540 \end_layout
10541
10542 \end_inset
10543
10544  Specify each individual entry by starting each item with the bullet shape
10545  enclosed in a 
10546 \begin_inset Quotes eld
10547 \end_inset
10548
10549 Custom Item
10550 \begin_inset Quotes erd
10551 \end_inset
10552
10553  inset (available at 
10554 \family sans
10555 Insert\SpecialChar menuseparator
10556 Custom Item
10557 \family default
10558 ) and set as 
10559 \begin_inset Flex Noun
10560 status collapsed
10561
10562 \begin_layout Plain Layout
10563 \SpecialChar TeX
10564  Code
10565 \end_layout
10566
10567 \end_inset
10568
10569 .
10570  For example, this item was started with 
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575
10576 \backslash
10577 (
10578 \backslash
10579 star
10580 \backslash
10581 )
10582 \end_layout
10583
10584 \end_inset
10585
10586 .
10587 \end_layout
10588
10589 \begin_layout Plain Layout
10590 \begin_inset ERT
10591 status open
10592
10593 \begin_layout Plain Layout
10594
10595
10596 \backslash
10597 renewcommand
10598 \backslash
10599 labelitemi[0]{
10600 \backslash
10601 savelabelitemi}
10602 \end_layout
10603
10604 \end_inset
10605
10606
10607 \end_layout
10608
10609 \begin_layout Plain Layout
10610 You'll also need to revert the labelitem back to its previous setting for
10611  the global bullet shape settings to remain in effect.
10612  The way used here was:
10613 \end_layout
10614
10615 \begin_layout LyX-Code
10616
10617 \backslash
10618 renewcommand
10619 \backslash
10620 labelitemi[0]{
10621 \backslash
10622 savelabelitemi}
10623 \end_layout
10624
10625 \end_inset
10626
10627
10628 \end_layout
10629
10630 \begin_layout Chapter
10631 \SpecialChar LyX
10632  and the World Wide Web
10633 \end_layout
10634
10635 \begin_layout Standard
10636 \SpecialChar LyX
10637  has long supported the export of documents to various web-friendly formats,
10638  such as HTML.
10639  Before version 2.0, however, HTML export was always accomplished by the
10640  use of external converters.
10641 \begin_inset Foot
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 For details on the use of external converters with \SpecialChar LyX
10646 , see the 
10647 \emph on
10648 Converters
10649 \emph default
10650  section of the Customization manual.
10651 \end_layout
10652
10653 \end_inset
10654
10655  These fall into two large groups: there are converters that use \SpecialChar LaTeX
10656  as an
10657  intermediate format, such as 
10658 \begin_inset Flex Code
10659 status collapsed
10660
10661 \begin_layout Plain Layout
10662 htlatex
10663 \end_layout
10664
10665 \end_inset
10666
10667
10668 \begin_inset Flex Code
10669 status collapsed
10670
10671 \begin_layout Plain Layout
10672 html2latex
10673 \end_layout
10674
10675 \end_inset
10676
10677 , and 
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 plastex
10683 \end_layout
10684
10685 \end_inset
10686
10687 , relying upon \SpecialChar LyX
10688  to produce the \SpecialChar LaTeX
10689 ; and there is a converter that works directly
10690  on \SpecialChar LyX
10691  files, 
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 e\SpecialChar LyX
10697 er
10698 \end_layout
10699
10700 \end_inset
10701
10702 .
10703  All of these have different advantages and disadvantages.
10704  
10705 \end_layout
10706
10707 \begin_layout Standard
10708 The \SpecialChar LaTeX
10709 -based converters have the advantage that, in principle, they know everythin
10710 g about the exported document that \SpecialChar LaTeX
10711  does.
10712  Such converters do not care, for example, if a certain block of code was
10713  produced by \SpecialChar LyX
10714  or was Evil Red Text.
10715  These converters know about 
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 aux
10721 \end_layout
10722
10723 \end_inset
10724
10725  files, counters, and references, and can often make use of the 
10726 \begin_inset Flex Code
10727 status collapsed
10728
10729 \begin_layout Plain Layout
10730 bbl
10731 \end_layout
10732
10733 \end_inset
10734
10735  files generated by Bib\SpecialChar TeX
10736 .
10737  On the other hand, \SpecialChar LaTeX
10738  is a very hard language to parse—it is sometimes said
10739  that only \SpecialChar TeX
10740  itself understands \SpecialChar TeX
10741 —and \SpecialChar LaTeX
10742 -based converters will often choke on
10743  what seem to be quite simple constructs; complex ones can throw them completely
10744 , and as of this writing, for example, the 
10745 \emph on
10746 Embedded Objects
10747 \emph default
10748  manual will not export with 
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753 htlatex
10754 \end_layout
10755
10756 \end_inset
10757
10758 , though the others will.
10759  The other issue concerns how math is handled.
10760  These converters typically convert the formulae into little pictures that
10761  are then linked from the HTML document.
10762  Since these are actually generated by \SpecialChar LaTeX
10763 , they are accurate.
10764  But they do not scale well, and just getting them to look as if they are
10765  actually meant to be in your document—so that the font sizes seem to be
10766  roughly the same—can be a challenge.
10767 \end_layout
10768
10769 \begin_layout Standard
10770 Alex Fernandez's 
10771 \begin_inset Flex Code
10772 status collapsed
10773
10774 \begin_layout Plain Layout
10775 e\SpecialChar LyX
10776 er
10777 \end_layout
10778
10779 \end_inset
10780
10781  (
10782 \begin_inset CommandInset href
10783 LatexCommand href
10784 name "http://pinchito.es/elyxer/"
10785 target "http://pinchito.es/elyxer/"
10786 literal "false"
10787
10788 \end_inset
10789
10790 ) solves some of these problems.
10791  In particular, the formulae it produces scale perfectly, since it renders
10792  math using a combination of HTML and CSS rather than converting the formulae
10793  to images.
10794  But even moderately complex formula are rendered less well than with 
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 htlatex
10800 \end_layout
10801
10802 \end_inset
10803
10804 ; this reflects the limitations of HTML.
10805 \begin_inset Foot
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 That said, 
10810 \begin_inset Flex Code
10811 status collapsed
10812
10813 \begin_layout Plain Layout
10814 e\SpecialChar LyX
10815 er
10816 \end_layout
10817
10818 \end_inset
10819
10820  can also use jsMath and MathJax for equations, but this setting is only
10821  available globally and requires one to have access to a server that runs
10822  the backend.
10823 \end_layout
10824
10825 \end_inset
10826
10827  More importantly (as of version 1.1.1, at least), 
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 e\SpecialChar LyX
10833 er
10834 \end_layout
10835
10836 \end_inset
10837
10838  has limited support for math macros and no support for user-defined paragraph
10839  or character styles.
10840  These limitations make 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 e\SpecialChar LyX
10846 er
10847 \end_layout
10848
10849 \end_inset
10850
10851  unsuitable for many of the documents \SpecialChar LyX
10852  users produce.
10853  In principle, of course, these problems could be solved, but the \SpecialChar LyX
10854  developers
10855  have decided to follow a different path and have made \SpecialChar LyX
10856  itself capable of
10857  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
10858 , DocBook, and plaintext.
10859 \end_layout
10860
10861 \begin_layout Standard
10862 As of this writing, XHTML output remains under development and should probably
10863  be regarded as 
10864 \begin_inset Quotes eld
10865 \end_inset
10866
10867 experimental
10868 \begin_inset Quotes erd
10869 \end_inset
10870
10871 .
10872 \begin_inset Foot
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 The file 
10877 \begin_inset Flex Code
10878 status collapsed
10879
10880 \begin_layout Plain Layout
10881 development/HTML/HTML.notes
10882 \end_layout
10883
10884 \end_inset
10885
10886 , which can be found in the \SpecialChar LyX
10887  source tree or 
10888 \begin_inset CommandInset href
10889 LatexCommand href
10890 name "accessed online"
10891 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
10892 literal "false"
10893
10894 \end_inset
10895
10896 , usually contains up-to-date information about the state of XHTML output.
10897  See also the list of XHTML bugs on 
10898 \begin_inset CommandInset href
10899 LatexCommand href
10900 name "the bug tracker"
10901 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"
10902 literal "false"
10903
10904 \end_inset
10905
10906 .
10907 \end_layout
10908
10909 \end_inset
10910
10911  Still, the developers have chosen this approach because it has several
10912  potential advantages over the other two.
10913 \end_layout
10914
10915 \begin_layout Standard
10916 These advantages are primarily due to the fact that the XHTML output routines,
10917  since they are part of \SpecialChar LyX
10918 , know everything \SpecialChar LyX
10919  knows about the document being
10920  exported.
10921 \begin_inset Foot
10922 status collapsed
10923
10924 \begin_layout Plain Layout
10925 Another advantage is that, since these routines are internal to \SpecialChar LyX
10926 , they are
10927  immune to changes in \SpecialChar LyX
10928 's file format, or to changes in the semantics of
10929  existing insets.
10930 \end_layout
10931
10932 \end_inset
10933
10934  So they know about the table of contents (as displayed in the outline),
10935  about the counters associated with different paragraph styles, and about
10936  user-defined styles.
10937  The XHTML output routines know what \SpecialChar LyX
10938  knows about internationalization,
10939  too, so they will output 
10940 \begin_inset Quotes eld
10941 \end_inset
10942
10943 Chapter 1
10944 \begin_inset Quotes erd
10945 \end_inset
10946
10947  or 
10948 \begin_inset Quotes eld
10949 \end_inset
10950
10951
10952 \lang ngerman
10953 Kapitel
10954 \lang english
10955  1
10956 \begin_inset Quotes erd
10957 \end_inset
10958
10959 , depending upon the language in effect at the time.
10960  
10961 \end_layout
10962
10963 \begin_layout Standard
10964 Quite generally, the output routines know what \SpecialChar LyX
10965  knows about document layout,
10966  that is, about how the document is to be rendered on screen.
10967  We use this information when we output the document as XHTML.
10968  In particular, \SpecialChar LyX
10969  
10970 \emph on
10971 automatically
10972 \emph default
10973  generates CSS style information corresponding to the layout information
10974  it uses to render the document on screen: if section headings are supposed
10975  to be sans-serif and bold as seen in \SpecialChar LyX
10976 , then (by default) they will be sans-seri
10977 f and bold when viewed in a web browser, too.
10978  And this is true not just for pre-defined styles, like Section, but for
10979  any style, including user-defined styles.
10980  Indeed, the XHTML output routines make no distinction between user-defined
10981  paragraph and 
10982 \change_deleted 244031559 1603876931
10983 character
10984 \change_inserted 244031559 1603876940
10985 text
10986 \change_unchanged
10987  styles and \SpecialChar LyX
10988 's own pre-defined styles: in each case, everything \SpecialChar LyX
10989  knows about
10990  the styles is contained in the layout files.
10991  And much the same is true as regards pre-defined textual insets, such as
10992  footnotes, and various custom insets.
10993  
10994 \end_layout
10995
10996 \begin_layout Standard
10997 The result is that XHTML output can be customized and extended in exactly
10998  the same way \SpecialChar LaTeX
10999  output can be customized and extended: through layout files
11000  and modules.
11001  See chapter five of the 
11002 \emph on
11003 Customization 
11004 \emph default
11005 manual for the details.
11006 \end_layout
11007
11008 \begin_layout Standard
11009 The remainder of this chapter contains more detailed information on XHTML
11010  output, its limitations, and ways to work around those limitations.
11011 \end_layout
11012
11013 \begin_layout Section
11014 Math Output in XHTML
11015 \end_layout
11016
11017 \begin_layout Standard
11018 \SpecialChar LyX
11019  offers four choices for how math is rendered.
11020  These have various advantages and disadvantages:
11021 \end_layout
11022
11023 \begin_layout Itemize
11024 MathML
11025 \begin_inset Newline newline
11026 \end_inset
11027
11028 MathML is a dialect of XML designed specifically for mathematics on the
11029  web, and it typically renders very well in browsers that support it.
11030  The disadvantage is that not all browsers support MathML, and support is
11031  not complete even in the Gecko-based browsers, such as Firefox.
11032 \begin_inset Newline newline
11033 \end_inset
11034
11035 If \SpecialChar LyX
11036  is unable to render a formula as MathML—for example, if the formula
11037  uses the 
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 xymatrix
11043 \end_layout
11044
11045 \end_inset
11046
11047  package or ERT—then it will instead output the formula as an image.
11048  
11049 \end_layout
11050
11051 \begin_layout Itemize
11052 HTML
11053 \begin_inset Newline newline
11054 \end_inset
11055
11056 As mentioned above, 
11057 \begin_inset Flex Code
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 elyxer
11062 \end_layout
11063
11064 \end_inset
11065
11066  outputs math as HTML, styled by CSS.
11067 \begin_inset Foot
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071 \SpecialChar LyX
11072  has borrowed some of the CSS for its HTML output from 
11073 \begin_inset Flex Code
11074 status collapsed
11075
11076 \begin_layout Plain Layout
11077 elyxer
11078 \end_layout
11079
11080 \end_inset
11081
11082 .
11083 \end_layout
11084
11085 \end_inset
11086
11087  For simple formulae, this can work quite well, though with more complicated
11088  formulae it tends to break down.
11089  Still, this method has the advantage that it is very widely supported and
11090  so it may be appropriate for documents that contain only a little, fairly
11091  simple math.
11092 \begin_inset Newline newline
11093 \end_inset
11094
11095 If Lyx is unable to render a formula as HTML—for example, if the formula
11096  uses the 
11097 \begin_inset Flex Code
11098 status collapsed
11099
11100 \begin_layout Plain Layout
11101 xymatrix
11102 \end_layout
11103
11104 \end_inset
11105
11106  package or ERT—then it will instead output the formula as an image.
11107  
11108 \end_layout
11109
11110 \begin_layout Itemize
11111 Images
11112 \begin_inset Newline newline
11113 \end_inset
11114
11115 Like 
11116 \begin_inset Flex Code
11117 status collapsed
11118
11119 \begin_layout Plain Layout
11120 htlatex
11121 \end_layout
11122
11123 \end_inset
11124
11125 , \SpecialChar LyX
11126  will output formulae as images, the very same images, in fact, that are
11127  used for instant preview.
11128 \begin_inset Foot
11129 status collapsed
11130
11131 \begin_layout Plain Layout
11132 Instant preview does 
11133 \emph on
11134 not 
11135 \emph default
11136 have to be on for images to be output, however.
11137 \end_layout
11138
11139 \end_inset
11140
11141  The advantage to this method is that the images are simply generated by
11142  \SpecialChar LaTeX
11143 , so they are very accurate.
11144  The disadvantage, as mentioned earlier, is that these are bitmapped images,
11145  so they do not scale terribly well, and one cannot copy them, etc.
11146 \begin_inset Newline newline
11147 \end_inset
11148
11149 The size of the images can be controlled by setting the 
11150 \begin_inset Quotes eld
11151 \end_inset
11152
11153 Math Images Scaling
11154 \begin_inset Quotes erd
11155 \end_inset
11156
11157  parameter under 
11158 \begin_inset Flex Noun
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 Document\SpecialChar menuseparator
11163 Settings\SpecialChar menuseparator
11164 Formats
11165 \end_layout
11166
11167 \end_inset
11168
11169 .
11170 \begin_inset Foot
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 For those who want to know, this controls the resolution of the image in
11175  dots per inch and is based upon a default of 75 dpi.
11176 \end_layout
11177
11178 \end_inset
11179
11180
11181 \begin_inset Newline newline
11182 \end_inset
11183
11184 If \SpecialChar LyX
11185  for some reason fails to create an image for a formula (e.g., if a required
11186  \SpecialChar LaTeX
11187  package is not installed), then it will fall back to outputing the raw
11188  \SpecialChar LaTeX
11189 .
11190 \end_layout
11191
11192 \begin_layout Itemize
11193 \SpecialChar LaTeX
11194
11195 \begin_inset Newline newline
11196 \end_inset
11197
11198 Finally, \SpecialChar LyX
11199  will happily output math as \SpecialChar LaTeX
11200 .
11201  As well as being the output of last resort, this method can be used with
11202  such tools as 
11203 \begin_inset CommandInset href
11204 LatexCommand href
11205 name "jsMath"
11206 target "http://www.math.union.edu/~dpvc/jsMath/"
11207 literal "false"
11208
11209 \end_inset
11210
11211 , which uses JavaScript to render \SpecialChar LaTeX
11212  embedded in HTML documents.
11213  \SpecialChar LyX
11214  wraps the \SpecialChar LaTeX
11215  in either a 
11216 \begin_inset Flex Code
11217 status collapsed
11218
11219 \begin_layout Plain Layout
11220 span
11221 \end_layout
11222
11223 \end_inset
11224
11225  (for inline formulas) or 
11226 \begin_inset Flex Code
11227 status collapsed
11228
11229 \begin_layout Plain Layout
11230 div
11231 \end_layout
11232
11233 \end_inset
11234
11235  (for displayed formulas) with 
11236 \begin_inset Flex Code
11237 status collapsed
11238
11239 \begin_layout Plain Layout
11240 class='math'
11241 \end_layout
11242
11243 \end_inset
11244
11245 , as is required for jsMath.
11246 \end_layout
11247
11248 \begin_layout Standard
11249 One of these output methods must be selected under 
11250 \begin_inset Flex Noun
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 Document\SpecialChar menuseparator
11255 Settings\SpecialChar menuseparator
11256 Formats
11257 \end_layout
11258
11259 \end_inset
11260
11261 .
11262  By default, \SpecialChar LyX
11263  outputs MathML.
11264  This is a document-wide setting, therefore.
11265 \end_layout
11266
11267 \begin_layout Standard
11268 Eventually, \SpecialChar LyX
11269  will offer the user the option to select an alternate output
11270  method for a particular inset, say, one that isn't being rendered very
11271  well by MathML.
11272 \begin_inset Foot
11273 status collapsed
11274
11275 \begin_layout Plain Layout
11276 That said, since \SpecialChar LyX
11277  falls back to images if the inset contains ERT, then one
11278  can force output as an image by putting some harmless ERT into the math,
11279  for example: 
11280 \begin_inset Formula $a=b\relax$
11281 \end_inset
11282
11283 .
11284 \end_layout
11285
11286 \end_inset
11287
11288
11289 \end_layout
11290
11291 \begin_layout Section
11292 Bibliography and Citations
11293 \end_layout
11294
11295 \begin_layout Standard
11296 XHTML output fully supports bibliographies and citations.
11297  
11298 \end_layout
11299
11300 \begin_layout Standard
11301 Citation labels are generated by the same machinery that generates \SpecialChar LyX
11302 's on-screen
11303  labels, so the labels will look in the output much as they do in \SpecialChar LyX
11304 , though
11305  better.
11306  If you are using numerical citations, then \SpecialChar LyX
11307  will output numerical labels,
11308  such as [1] or [17], rather than simply showing the citation key in square
11309  brackets, as it does on-screen.
11310  If you are using author-year citations, then \SpecialChar LyX
11311  will add lowercase letters
11312  to the years, just as Bib\SpecialChar TeX
11313  does, if it finds more than one citation for
11314  a given author-year combination.
11315  The labels will be printed with the bibliography entries.
11316  Note that there is, at present, no way to customize the appearance of the
11317  labels, for example, to choose between square brackets and parentheses.
11318 \end_layout
11319
11320 \begin_layout Standard
11321 Bibliography output is handled by the same machinery that handles the presentati
11322 on of reference information in the citation dialog, so you will see in the
11323  XHTML output pretty much what you would see if you were to look at a given
11324  entry in the citation dialog.
11325  The formatting can be customized in your layout file or, preferably, in
11326  a module.
11327  See the 
11328 \emph on
11329 Customization
11330 \emph default
11331  manual for the details.
11332 \end_layout
11333
11334 \begin_layout Standard
11335 The main defect at present is that cross-referenced information is printed
11336  with every entry with which it is associated.
11337  So you can see things like this:
11338 \end_layout
11339
11340 \begin_layout Quote
11341 Jason Stanley, 
11342 \begin_inset Quotes eld
11343 \end_inset
11344
11345 Context and Logical Form
11346 \begin_inset Quotes erd
11347 \end_inset
11348
11349 , in 
11350 \emph on
11351 Language in Context: Selected Essays
11352 \emph default
11353  (Oxford: Oxford University Press, 2007), pp.
11354  30–68.
11355 \end_layout
11356
11357 \begin_layout Quote
11358 Jason Stanley, 
11359 \begin_inset Quotes eld
11360 \end_inset
11361
11362 Semantics in Context
11363 \begin_inset Quotes erd
11364 \end_inset
11365
11366 , in 
11367 \emph on
11368 Language in Context: Selected Essays
11369 \emph default
11370  (Oxford: Oxford University Press, 2007), pp.
11371  201–30.
11372 \end_layout
11373
11374 \begin_layout Standard
11375 This should be fixed before long.
11376 \end_layout
11377
11378 \begin_layout Standard
11379 There is no support at present for sectioned bibliographies.
11380  If you have multiple bibliographies, then \SpecialChar LyX
11381  will print the same bibliography
11382  over and over.
11383 \end_layout
11384
11385 \begin_layout Section
11386 Indexes
11387 \end_layout
11388
11389 \begin_layout Standard
11390 \SpecialChar LyX
11391  will happily export indexes as XHTML, but with certain limitations at the
11392  moment.
11393 \end_layout
11394
11395 \begin_layout Standard
11396 Index export will be most reliable when you do not attempt to use the fancy
11397  constructs that are described in the section on indexes in the 
11398 \emph on
11399 User's Guide
11400 \emph default
11401 .
11402 \begin_inset Foot
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 The main issue here is that \SpecialChar LyX
11407  itself does not really handle these.
11408  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
11409 .
11410 \end_layout
11411
11412 \end_inset
11413
11414  We'll describe how they are handled using the subsection headings from
11415  that section.
11416 \end_layout
11417
11418 \begin_layout Itemize
11419 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
11420  makes an effort to support these,
11421  but the entries must be separated by 
11422 \begin_inset Quotes eld
11423 \end_inset
11424
11425  ! 
11426 \begin_inset Quotes erd
11427 \end_inset
11428
11429 , that is, there must be spaces around the exclamation point.
11430  This is because it is otherwise too difficult to check for escaped exclamation
11431  points, ones in math, and so forth.
11432 \end_layout
11433
11434 \begin_layout Itemize
11435 Page Ranges: There is no support at all for page ranges, since these make
11436  no sense with XHMTL.
11437  Instead, you will just get two index entries, one at either end.
11438 \end_layout
11439
11440 \begin_layout Itemize
11441 Cross-referencing: There is no support for cross-referencing.
11442  If \SpecialChar LyX
11443  finds an entry containing the 
11444 \begin_inset Quotes eld
11445 \end_inset
11446
11447 |see\SpecialChar ldots
11448
11449 \begin_inset Quotes erd
11450 \end_inset
11451
11452  construct, it is just dropped, and the rest is treated as an ordinary index
11453  entry.
11454 \end_layout
11455
11456 \begin_layout Itemize
11457 Index Entry Order: \SpecialChar LyX
11458  does support attempts to fix the sorting order.
11459  It will take what is before the first `@' it finds and use that for sorting,
11460  taking what follows the first `@' to be the actual entry.
11461  At present, \SpecialChar LyX
11462  does not check for escaped `@', so do not try to index email
11463  addresses.
11464 \end_layout
11465
11466 \begin_layout Itemize
11467 Index Entry Layout: You can format entries by using the text style dialog,
11468  or by using any other method available within \SpecialChar LyX
11469  itself.
11470  There is no support for constructs like: 
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474 entry|textbf
11475 \begin_inset Quotes erd
11476 \end_inset
11477
11478 .
11479  Indeed, if \SpecialChar LyX
11480  finds a pipe symbol, `|', in an entry, it will delete it and
11481  everything that follows it.
11482 \end_layout
11483
11484 \begin_layout Itemize
11485 Multiple Indexes: There is no support for multiple indexes.
11486  Rather, all index entries will be printed as one large index.
11487  To avoid our printing several versions of the index, we print only the
11488  main index, so make sure you have one.
11489 \end_layout
11490
11491 \begin_layout Section
11492 Nomenclature and Glossary
11493 \end_layout
11494
11495 \begin_layout Standard
11496 There is at present no support for glossaries.
11497  Adding it would be fairly trivial, and welcome.
11498 \end_layout
11499
11500 \begin_layout Chapter
11501
11502 \change_inserted 1075283030 1616534180
11503 DocBook Output
11504 \end_layout
11505
11506 \begin_layout Standard
11507
11508 \change_inserted 1075283030 1616534386
11509 Apart from HTML, \SpecialChar LyX
11510  can generate documents in the DocBook XML vocabulary.
11511  With versions 2.3 and before, only select templates could be used to generate
11512  DocBook documents (only version 4).
11513  Starting with \SpecialChar LyX
11514  2.4, most \SpecialChar LyX
11515  layouts can generate valid DocBook documents (only
11516  version 5).
11517  This feature is built into \SpecialChar LyX
11518  and does not require the use of external tools.
11519 \end_layout
11520
11521 \begin_layout Standard
11522
11523 \change_inserted 1075283030 1616534437
11524 The result is that the DocBook output can be customized and extended in
11525  exactly the same way \SpecialChar LaTeX
11526  output can be customized and extended: through layout
11527  files and modules.
11528  See chapter five of the 
11529 \emph on
11530 Customization 
11531 \emph default
11532 manual for the details.
11533 \end_layout
11534
11535 \begin_layout Standard
11536
11537 \change_inserted 1075283030 1616534475
11538 Most \SpecialChar LyX
11539  features are supported with DocBook, like math output.
11540 \end_layout
11541
11542 \begin_layout Itemize
11543
11544 \change_inserted 1075283030 1616534741
11545 Math output is performed mostly in MathML (the major exception being constructio
11546 ns not supported by \SpecialChar LyX
11547 , i.e.
11548  ERTs).
11549  All formulae are also available in raw \SpecialChar TeX
11550  in the DocBook output for further
11551  processing.
11552 \end_layout
11553
11554 \begin_layout Itemize
11555
11556 \change_inserted 1075283030 1616534852
11557 Bibliographies and citations are implemented, including with an external
11558  BibTeX file.
11559  Bibliography entries are not prerendered when the detailed information
11560  are available, but rather output with the standard DocBook constructs.
11561  The external DocBook processor is expected to handle the rendering of entries.
11562 \end_layout
11563
11564 \begin_layout Itemize
11565
11566 \change_inserted 1075283030 1616534863
11567 Indexes are supported, including multiple indices.
11568  Grouping (with 
11569 \family typewriter
11570 !
11571 \family default
11572 ), page ranges, and cross-references (
11573 \family typewriter
11574 |see
11575 \family default
11576 ) are supported, with the exception of the same symbols escaped.
11577  Entry order (
11578 \family typewriter
11579 @
11580 \family default
11581 ) and layout (
11582 \family typewriter
11583 |mathbf
11584 \family default
11585 ) are not supported.
11586  There is no support for escaping of index entries.
11587 \end_layout
11588
11589 \begin_layout Itemize
11590
11591 \change_inserted 1075283030 1616534884
11592 Glossaries are implemented.
11593 \end_layout
11594
11595 \begin_layout Standard
11596
11597 \change_inserted 1075283030 1616534894
11598 Two major parameters can be set at the document level.
11599 \end_layout
11600
11601 \begin_layout Itemize
11602
11603 \change_inserted 1075283030 1616534948
11604 Format for tables: \SpecialChar LyX
11605  can generate tables either as HTML (default value) or
11606  CALS, depending on the user's requirements.
11607  Most DocBook processors accept both formats.
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \change_inserted 1075283030 1616535006
11613 MathML prefix: in DocBook, MathML is included within its own name space,
11614  unlike HTML.
11615  The implication is that there must be an indication of the tags belonging
11616  to the MathML standard.
11617  Three choices are offered: 
11618 \end_layout
11619
11620 \begin_deeper
11621 \begin_layout Itemize
11622
11623 \change_inserted 1075283030 1616535044
11624 Inline: the MathML name space is defined for each formula (using the 
11625 \family typewriter
11626 xmlns
11627 \family default
11628  attribute on each formula)
11629 \end_layout
11630
11631 \begin_layout Itemize
11632
11633 \change_inserted 1075283030 1616535090
11634 With the 
11635 \family typewriter
11636 m
11637 \family default
11638  prefix (default): the MathML name space is defined at the document level
11639  (using the 
11640 \family typewriter
11641 xmlns:m
11642 \family default
11643  attribute on the root element).
11644  Each MathML is prefixed with 
11645 \family typewriter
11646 m
11647 \family default
11648 : for instance, 
11649 \family typewriter
11650 m:math
11651 \end_layout
11652
11653 \begin_layout Itemize
11654
11655 \change_inserted 1075283030 1616620405
11656 With the 
11657 \family typewriter
11658 mml
11659 \family default
11660  prefix: similar to the 
11661 \family typewriter
11662 m
11663 \family default
11664  option, but with 
11665 \family typewriter
11666 mml
11667 \end_layout
11668
11669 \begin_layout Standard
11670
11671 \change_inserted 1075283030 1616620470
11672 This option is especially useful if you want \SpecialChar LyX
11673  to match your personal style
11674  or to work with buggy software that only accepts one prefix for MathML.
11675 \change_unchanged
11676
11677 \end_layout
11678
11679 \end_deeper
11680 \begin_layout Chapter
11681 The \SpecialChar LyX
11682  Server
11683 \end_layout
11684
11685 \begin_layout Section
11686 Introduction
11687 \end_layout
11688
11689 \begin_layout Standard
11690 The `\SpecialChar LyX
11691  server' allows other programs to talk to \SpecialChar LyX
11692 , invoke \SpecialChar LyX
11693  commands, and retrieve
11694  information about the \SpecialChar LyX
11695  internal state.
11696  This is only intended for advanced users, but they should find it useful.
11697  It is by writing to the \SpecialChar LyX
11698  server, for example, that bibliography managers,
11699  such as JabRef, are able to 
11700 \begin_inset Quotes eld
11701 \end_inset
11702
11703 push
11704 \begin_inset Quotes erd
11705 \end_inset
11706
11707  citations to \SpecialChar LyX
11708 .
11709 \end_layout
11710
11711 \begin_layout Section
11712 Starting the \SpecialChar LyX
11713  Server
11714 \begin_inset CommandInset label
11715 LatexCommand label
11716 name "sec:Starting-the-Server"
11717
11718 \end_inset
11719
11720
11721 \end_layout
11722
11723 \begin_layout Standard
11724 The \SpecialChar LyX
11725  server works through the use of a pair of named pipes.
11726  These are usually located in 
11727 \begin_inset Flex Code
11728 status collapsed
11729
11730 \begin_layout Plain Layout
11731 UserDir
11732 \end_layout
11733
11734 \end_inset
11735
11736 , (except on Windows, where 
11737 \emph on
11738 local
11739 \emph default
11740  named pipes are special objects located in 
11741 \begin_inset Flex Code
11742 status collapsed
11743
11744 \begin_layout Plain Layout
11745
11746 \backslash
11747
11748 \backslash
11749 .
11750 \backslash
11751 pipe
11752 \end_layout
11753
11754 \end_inset
11755
11756 ) and have the names 
11757 \begin_inset Quotes eld
11758 \end_inset
11759
11760
11761 \begin_inset Flex Code
11762 status collapsed
11763
11764 \begin_layout Plain Layout
11765 lyxpipe.in
11766 \end_layout
11767
11768 \end_inset
11769
11770
11771 \begin_inset Quotes erd
11772 \end_inset
11773
11774  and 
11775 \begin_inset Quotes eld
11776 \end_inset
11777
11778
11779 \begin_inset Flex Code
11780 status collapsed
11781
11782 \begin_layout Plain Layout
11783 lyxpipe.out
11784 \end_layout
11785
11786 \end_inset
11787
11788
11789 \begin_inset Quotes erd
11790 \end_inset
11791
11792 .
11793  External programs write into 
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 lyxpipe.in
11799 \end_layout
11800
11801 \end_inset
11802
11803  and read back data from 
11804 \begin_inset Flex Code
11805 status collapsed
11806
11807 \begin_layout Plain Layout
11808 lyxpipe.out
11809 \end_layout
11810
11811 \end_inset
11812
11813 .
11814  The stem of the pipe names can be defined in the 
11815 \begin_inset Flex Noun
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819 Tools\SpecialChar menuseparator
11820 Preferences
11821 \end_layout
11822
11823 \end_inset
11824
11825  dialog, for example 
11826 \begin_inset Flex Code
11827 status collapsed
11828
11829 \begin_layout Plain Layout
11830 "/home/myhome/lyxpipe"
11831 \end_layout
11832
11833 \end_inset
11834
11835 , or 
11836 \begin_inset Flex Code
11837 status collapsed
11838
11839 \begin_layout Plain Layout
11840 "
11841 \backslash
11842
11843 \backslash
11844 .
11845 \backslash
11846 pipe
11847 \backslash
11848 lyxpipe"
11849 \end_layout
11850
11851 \end_inset
11852
11853  on Windows (where any working path instead of lyxpipe can be used, for
11854  example 
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 "
11860 \backslash
11861
11862 \backslash
11863 .
11864 \backslash
11865 pipe
11866 \backslash
11867 my
11868 \backslash
11869 lyx
11870 \backslash
11871 pipe"
11872 \end_layout
11873
11874 \end_inset
11875
11876  would also work).
11877  You 
11878 \emph on
11879 must
11880 \emph default
11881  configure this manually in order for the server to start.
11882 \end_layout
11883
11884 \begin_layout Standard
11885 \SpecialChar LyX
11886  will add the '
11887 \begin_inset Flex Code
11888 status collapsed
11889
11890 \begin_layout Plain Layout
11891 .in
11892 \end_layout
11893
11894 \end_inset
11895
11896 ' and '
11897 \begin_inset Flex Code
11898 status collapsed
11899
11900 \begin_layout Plain Layout
11901 .out
11902 \end_layout
11903
11904 \end_inset
11905
11906 ' to create the pipes.
11907  If one of the pipes already exists, \SpecialChar LyX
11908  will assume that another \SpecialChar LyX
11909  process
11910  is already running and will not start the server.
11911  On POSIX (Unix like) systems, if for some other reason, an unused 
11912 \begin_inset Quotes eld
11913 \end_inset
11914
11915 stale
11916 \begin_inset Quotes erd
11917 \end_inset
11918
11919  pipe is left in existence when \SpecialChar LyX
11920  closes, then \SpecialChar LyX
11921  will try to delete it.
11922  If this fails for some reason, you will need to delete the pipes manually
11923  and then restart \SpecialChar LyX
11924 .
11925  On Windows, pipes are deleted by the OS on program termination or crash,
11926  so 
11927 \begin_inset Quotes eld
11928 \end_inset
11929
11930 stale
11931 \begin_inset Quotes erd
11932 \end_inset
11933
11934  pipes should not be possible.
11935 \end_layout
11936
11937 \begin_layout Standard
11938 To have several \SpecialChar LyX
11939  processes with servers at the same time, you have to use
11940  different configurations, perhaps by using separate user directories, each
11941  with its own 
11942 \begin_inset Flex Code
11943 status collapsed
11944
11945 \begin_layout Plain Layout
11946 preferences
11947 \end_layout
11948
11949 \end_inset
11950
11951  file, for each process.
11952 \end_layout
11953
11954 \begin_layout Standard
11955 If you are developing a client program, you might find it useful to enable
11956  debugging information from the \SpecialChar LyX
11957  server.
11958  Do this by starting \SpecialChar LyX
11959  as 
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 lyx -dbg lyxserver
11965 \end_layout
11966
11967 \end_inset
11968
11969 .
11970 \end_layout
11971
11972 \begin_layout Standard
11973 You can find a complete example client written in C++ in the source distribution
11974  as 
11975 \begin_inset Flex Code
11976 status collapsed
11977
11978 \begin_layout Plain Layout
11979 development/lyxserver/server_monitor.cpp
11980 \end_layout
11981
11982 \end_inset
11983
11984 .
11985 \end_layout
11986
11987 \begin_layout Standard
11988 Another useful tool is the command-line based client found in 
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993 src/client/lyxclient
11994 \end_layout
11995
11996 \end_inset
11997
11998 .
11999 \end_layout
12000
12001 \begin_layout Section
12002 Normal communication
12003 \end_layout
12004
12005 \begin_layout Standard
12006 To issue a \SpecialChar LyX
12007  call, the client writes a line of ASCII text into the input
12008  pipe.
12009  This line has the following format:
12010 \end_layout
12011
12012 \begin_layout Quote
12013 LYXCMD:
12014 \emph on
12015 clientname
12016 \emph default
12017 :
12018 \emph on
12019 function
12020 \emph default
12021 :
12022 \emph on
12023 argument
12024 \end_layout
12025
12026 \begin_layout Description
12027 clientname is a name that the client can choose arbitrarily.
12028  Its only use is that \SpecialChar LyX
12029  will echo it if it sends an answer—so a client can
12030  dispatch results from different requesters.
12031 \end_layout
12032
12033 \begin_layout Description
12034 function is the function you want \SpecialChar LyX
12035  to perform.
12036  It is the same as the commands you'd use in the minibuffer.
12037 \end_layout
12038
12039 \begin_layout Description
12040 argument is an optional argument which is meaningful only to some functions
12041  (for instance, the 
12042 \begin_inset Quotes eld
12043 \end_inset
12044
12045 self-insert
12046 \begin_inset Quotes erd
12047 \end_inset
12048
12049  LFUN will insert the argument as text at the cursor position).
12050 \end_layout
12051
12052 \begin_layout Standard
12053 The answer from \SpecialChar LyX
12054  will arrive in the output pipe and be of the form
12055 \end_layout
12056
12057 \begin_layout Quote
12058 INFO:
12059 \emph on
12060 clientname
12061 \emph default
12062 :
12063 \emph on
12064 function
12065 \emph default
12066 :
12067 \emph on
12068 data
12069 \end_layout
12070
12071 \begin_layout Standard
12072 where 
12073 \emph on
12074 clientname
12075 \emph default
12076  and 
12077 \emph on
12078 function
12079 \emph default
12080  are just echoed from the command request, while 
12081 \emph on
12082 data
12083 \emph default
12084  is more or less useful information filled according to how the command
12085  execution worked out.
12086  Some commands, such as 
12087 \begin_inset Quotes eld
12088 \end_inset
12089
12090 font-state
12091 \begin_inset Quotes erd
12092 \end_inset
12093
12094 , will return information about the internal state of \SpecialChar LyX
12095 , while other will
12096  return an empty data-response.
12097  This means that the command execution went fine.
12098 \end_layout
12099
12100 \begin_layout Standard
12101 In case of errors, the response from \SpecialChar LyX
12102  will have this form
12103 \end_layout
12104
12105 \begin_layout Quote
12106 ERROR:
12107 \emph on
12108 clientname
12109 \emph default
12110 :
12111 \emph on
12112 function
12113 \emph default
12114 :
12115 \emph on
12116 error message
12117 \end_layout
12118
12119 \begin_layout Standard
12120 where the 
12121 \emph on
12122 error message
12123 \emph default
12124  should contain an explanation of why the command failed.
12125 \end_layout
12126
12127 \begin_layout Standard
12128 Examples:
12129 \end_layout
12130
12131 \begin_layout LyX-Code
12132 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
12133 \begin_inset Newline newline
12134 \end_inset
12135
12136 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
12137 \begin_inset Newline newline
12138 \end_inset
12139
12140 read a <~/.lyxpipe.out
12141 \begin_inset Newline newline
12142 \end_inset
12143
12144 echo $a
12145 \end_layout
12146
12147 \begin_layout Subsection
12148 AppleScript (Mac OS X)
12149 \end_layout
12150
12151 \begin_layout Standard
12152 Since \SpecialChar LyX
12153  2.1, \SpecialChar LyX
12154  supports basic interactions with AppleScript for normal communicatio
12155 n through the command run.
12156  This command takes a direct argument (the 
12157 \series bold
12158 function
12159 \series default
12160  to perform) and an optional argument.
12161  It either returns the output of the function or triggers an error with
12162  the error message and code.
12163 \end_layout
12164
12165 \begin_layout Standard
12166 Example:
12167 \end_layout
12168
12169 \begin_layout LyX-Code
12170 tell application "\SpecialChar LyX
12171 "
12172 \end_layout
12173
12174 \begin_layout LyX-Code
12175   try
12176 \end_layout
12177
12178 \begin_layout LyX-Code
12179     -- Stores the current file name into f
12180 \end_layout
12181
12182 \begin_layout LyX-Code
12183     set f to (run "server-get-filename" with argument "")
12184 \end_layout
12185
12186 \begin_layout LyX-Code
12187     on error the error_message number the error_number
12188 \end_layout
12189
12190 \begin_layout LyX-Code
12191       display dialog "Error: " & the error_number & ".
12192  " ¬
12193 \end_layout
12194
12195 \begin_layout LyX-Code
12196               & the error_message buttons {"OK"} default button 1
12197 \end_layout
12198
12199 \begin_layout LyX-Code
12200   end try
12201 \end_layout
12202
12203 \begin_layout LyX-Code
12204 end tell
12205 \end_layout
12206
12207 \begin_layout Section
12208 Notification
12209 \end_layout
12210
12211 \begin_layout Standard
12212 \SpecialChar LyX
12213  can notify clients of events going on asynchronously.
12214  Currently it will only do this if the user binds a key sequence with the
12215  function 
12216 \begin_inset Quotes eld
12217 \end_inset
12218
12219 notify
12220 \begin_inset Quotes erd
12221 \end_inset
12222
12223 .
12224  The format of the string \SpecialChar LyX
12225  sends is as follows:
12226 \end_layout
12227
12228 \begin_layout Quote
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 NOTIFY:
12234 \end_layout
12235
12236 \end_inset
12237
12238
12239 \emph on
12240 key-sequence
12241 \end_layout
12242
12243 \begin_layout Standard
12244 where 
12245 \emph on
12246 key-sequence
12247 \emph default
12248  is the printed representation of the key sequence that was actually typed
12249  by the user.
12250 \end_layout
12251
12252 \begin_layout Standard
12253 This mechanism can be used to extend \SpecialChar LyX
12254 's command set and implement macros.
12255  Bind some key sequence to 
12256 \begin_inset Quotes eld
12257 \end_inset
12258
12259 notify
12260 \begin_inset Quotes erd
12261 \end_inset
12262
12263 .
12264  Then start a client that listens on the output pipe, dispatches the command
12265  according to the sequence, and starts a function that may use \SpecialChar LyX
12266  calls and
12267  \SpecialChar LyX
12268  requests to issue a command or a series of commands to \SpecialChar LyX
12269 .
12270 \end_layout
12271
12272 \begin_layout Section
12273 The simple \SpecialChar LyX
12274  Server Protocol
12275 \end_layout
12276
12277 \begin_layout Standard
12278 \SpecialChar LyX
12279  implements a simple protocol that can be used for session management.
12280  All messages are of the form
12281 \end_layout
12282
12283 \begin_layout Quote
12284 LYXSRV:
12285 \emph on
12286 clientname
12287 \emph default
12288 :
12289 \emph on
12290 protocol message
12291 \end_layout
12292
12293 \begin_layout Standard
12294 where 
12295 \emph on
12296 protocol message
12297 \emph default
12298  can be 
12299 \begin_inset Quotes eld
12300 \end_inset
12301
12302 hello
12303 \begin_inset Quotes erd
12304 \end_inset
12305
12306  or 
12307 \begin_inset Quotes eld
12308 \end_inset
12309
12310 bye
12311 \begin_inset Quotes erd
12312 \end_inset
12313
12314 .
12315  If 
12316 \begin_inset Quotes eld
12317 \end_inset
12318
12319 hello
12320 \begin_inset Quotes erd
12321 \end_inset
12322
12323  is received from a client, \SpecialChar LyX
12324  will report back to inform the client that
12325  it's listening to it's messages, while 
12326 \begin_inset Quotes eld
12327 \end_inset
12328
12329 bye
12330 \begin_inset Quotes erd
12331 \end_inset
12332
12333  sent from \SpecialChar LyX
12334  will inform clients that \SpecialChar LyX
12335  is closing.
12336 \end_layout
12337
12338 \begin_layout Section
12339 Reverse DVI/PDF search
12340 \end_layout
12341
12342 \begin_layout Standard
12343 Some DVI/PDF viewers
12344 \begin_inset Foot
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
12349  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
12350 \end_layout
12351
12352 \end_inset
12353
12354  provide 
12355 \emph on
12356 reverse search
12357 \emph default
12358  facility (also called 
12359 \emph on
12360 inverse search
12361 \emph default
12362 ).
12363  This means that you can tell \SpecialChar LyX
12364  to put the cursor to a specific line in the
12365  document by clicking at the respective position in the DVI/PDF output.
12366  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
12367 .
12368  This is done via the \SpecialChar LyX
12369  server either by using the named pipe (
12370 \emph on
12371 lyxpipe
12372 \emph default
12373 ), or the UNIX domain socket (
12374 \emph on
12375 lyxsocket
12376 \emph default
12377 ) that \SpecialChar LyX
12378  creates in its temporary directory (this is the way the 
12379 \begin_inset Flex Code
12380 status collapsed
12381
12382 \begin_layout Plain Layout
12383 lyxclient
12384 \end_layout
12385
12386 \end_inset
12387
12388  program communicates with \SpecialChar LyX
12389 ).
12390  In some cases, you need a helper script that mediates between the viewer
12391  and \SpecialChar LyX
12392 , in others, the viewer can communicate with \SpecialChar LyX
12393  directly.
12394  This depends on the selected viewer and on your operating system.
12395  The same applies to the way viewers need to be configured and the way the
12396  reverse search is actually performed.
12397  In what follows, we will thus describe how to setup reverse search for
12398  specific viewers.
12399  Before we turn to this, though, we will explain what needs to be done generally
12400  to enable reverse search in the DVI/PDF output.
12401 \end_layout
12402
12403 \begin_layout Subsection
12404 Automatic setup
12405 \begin_inset CommandInset label
12406 LatexCommand label
12407 name "subsec:rev-search"
12408
12409 \end_inset
12410
12411
12412 \end_layout
12413
12414 \begin_layout Standard
12415 In most cases \SpecialChar LyX
12416  will do the work for you by pressing the following button
12417  in the toolbar: 
12418 \begin_inset Info
12419 type  "icon"
12420 arg   "buffer-toggle-output-sync"
12421 \end_inset
12422
12423 .
12424  Alternatively, you can also enable the feature by checking 
12425 \family sans
12426 Synchronize with Output
12427 \family default
12428  in 
12429 \begin_inset Flex Noun
12430 status collapsed
12431
12432 \begin_layout Plain Layout
12433 Document\SpecialChar menuseparator
12434 Settings\SpecialChar menuseparator
12435 Formats
12436 \end_layout
12437
12438 \end_inset
12439
12440 .
12441  In such a case \SpecialChar LyX
12442  will automatically insert the necessary Sync\SpecialChar TeX
12443  macro (for
12444  PDF) or load the srcltx package (for DVI) respectively.
12445  This option can be easily reached also on 
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 View/Update
12451 \end_layout
12452
12453 \end_inset
12454
12455  Toolbar.
12456 \end_layout
12457
12458 \begin_layout Standard
12459 If you need a different setting, you can select or input a custom macro
12460  from the drop down box just below 
12461 \begin_inset Flex Noun
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 Document\SpecialChar menuseparator
12466 Settings\SpecialChar menuseparator
12467 Output\SpecialChar menuseparator
12468 Synchronize with Output
12469 \end_layout
12470
12471 \end_inset
12472
12473 .
12474 \end_layout
12475
12476 \begin_layout Standard
12477 Note that the method 
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482
12483 \backslash
12484 synctex=1
12485 \end_layout
12486
12487 \end_inset
12488
12489  enables gzip compression.
12490  If your viewer does not support it, you should instead use 
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495
12496 \backslash
12497 synctex=-1
12498 \end_layout
12499
12500 \end_inset
12501
12502 .
12503 \end_layout
12504
12505 \begin_layout Standard
12506 Please also note that including the 
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 srcltx
12512 \end_layout
12513
12514 \end_inset
12515
12516  package or 
12517 \begin_inset Flex Code
12518 status collapsed
12519
12520 \begin_layout Plain Layout
12521 src-specials
12522 \end_layout
12523
12524 \end_inset
12525
12526  sometimes has an undesired impact on the typesetting.
12527  Thus, you should switch output synchronization off for the final typesetting
12528  if you use the 
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 srcltx
12534 \end_layout
12535
12536 \end_inset
12537
12538  package or 
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 src-specials
12544 \end_layout
12545
12546 \end_inset
12547
12548 .
12549  
12550 \end_layout
12551
12552 \begin_layout Standard
12553 In case you need some more special settings that are not covered by the
12554  automatic settings, read the next section about how to set up output synchroniz
12555 ation manually.
12556  If the automatic setup suits your needs, you can readily jump to section
12557 \begin_inset space ~
12558 \end_inset
12559
12560
12561 \begin_inset CommandInset ref
12562 LatexCommand ref
12563 reference "subsec:configuring-viewers"
12564
12565 \end_inset
12566
12567 , where the necessary configuration steps in your viewer – needed both with
12568  the automatic and the manual setup – are described.
12569 \end_layout
12570
12571 \begin_layout Subsection
12572 Manual setup
12573 \end_layout
12574
12575 \begin_layout Standard
12576 \SpecialChar LaTeX
12577  provides several different methods for reverse search.
12578  Some are built-in in the 
12579 \begin_inset Flex Code
12580 status collapsed
12581
12582 \begin_layout Plain Layout
12583 latex/pdflatex
12584 \end_layout
12585
12586 \end_inset
12587
12588  program, some are provided by external packages.
12589  Your choice depends on whether your \SpecialChar LaTeX
12590  distribution already provides a given
12591  method (the built-in methods are rather new) and whether your viewer can
12592  cope with it.
12593  The available methods are described in the following.
12594 \end_layout
12595
12596 \begin_layout Subsubsection*
12597 Built-in DVI-search via src-specials (DVI only) 
12598 \end_layout
12599
12600 \begin_layout Standard
12601 This method provides the DVI file with the necessary information for reverse
12602  search.
12603  It is available in \SpecialChar LaTeX
12604  since quite some time (any somewhat recent \SpecialChar LaTeX
12605  distribution
12606  should include it), and it works reliably.
12607  To enable it, change the 
12608 \begin_inset Flex Noun
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 La
12613 \family sans
12614 TeX
12615 \family default
12616  (plain)->DVI
12617 \end_layout
12618
12619 \end_inset
12620
12621  or 
12622 \begin_inset Flex Noun
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626 La
12627 \family sans
12628 TeX
12629 \family default
12630  (plain)->DraftDVI
12631 \end_layout
12632
12633 \end_inset
12634
12635  converter in 
12636 \begin_inset Flex Noun
12637 status collapsed
12638
12639 \begin_layout Plain Layout
12640 Preferences\SpecialChar menuseparator
12641 File Handling\SpecialChar menuseparator
12642 Converters
12643 \end_layout
12644
12645 \end_inset
12646
12647  to 
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 latex -src-specials $$i
12653 \end_layout
12654
12655 \end_inset
12656
12657 .
12658  If this doesn't work, check if your \SpecialChar TeX
12659  engine needs different options (the
12660  syntax might differ in some distributions).
12661 \end_layout
12662
12663 \begin_layout Subsubsection*
12664 External Packages (PDFSync and scrltx) 
12665 \end_layout
12666
12667 \begin_layout Standard
12668 The packages 
12669 \emph on
12670 pdfsync
12671 \emph default
12672  and 
12673 \emph on
12674 scrltx
12675 \emph default
12676  provide reverse search facility for PDF output (via pdflatex) and DVI output,
12677  respectively.
12678  In order to enable it, load the packages in the \SpecialChar LyX
12679  preamble: 
12680 \end_layout
12681
12682 \begin_layout Itemize
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687
12688 \backslash
12689 usepackage{pdfsync}
12690 \end_layout
12691
12692 \end_inset
12693
12694  for reverse PDF search,
12695 \end_layout
12696
12697 \begin_layout Itemize
12698 \begin_inset Flex Code
12699 status collapsed
12700
12701 \begin_layout Plain Layout
12702
12703 \backslash
12704 usepackage[active]{srcltx}
12705 \end_layout
12706
12707 \end_inset
12708
12709  for reverse DVI search.
12710 \end_layout
12711
12712 \begin_layout Standard
12713 If you want to be able to perform both DVI and PDF reverse searches, you
12714  can also insert in the preamble the following lines
12715 \end_layout
12716
12717 \begin_layout LyX-Code
12718
12719 \backslash
12720 usepackage{ifpdf}
12721 \begin_inset Newline newline
12722 \end_inset
12723
12724
12725 \backslash
12726 ifpdf
12727 \begin_inset Newline newline
12728 \end_inset
12729
12730   
12731 \backslash
12732 usepackage{pdfsync}
12733 \begin_inset Newline newline
12734 \end_inset
12735
12736
12737 \backslash
12738 else
12739 \begin_inset Newline newline
12740 \end_inset
12741
12742   
12743 \backslash
12744 usepackage[active]{srcltx}
12745 \begin_inset Newline newline
12746 \end_inset
12747
12748
12749 \backslash
12750 fi
12751 \end_layout
12752
12753 \begin_layout Standard
12754 This way, you can preview the file as either DVI or PDF (pdflatex) and the
12755  right package will be used.
12756 \end_layout
12757
12758 \begin_layout Standard
12759 Note that PDFSync might affect the output layout of your document.
12760  It is therefore advised to disable PDFsync for final documents.
12761 \end_layout
12762
12763 \begin_layout Subsubsection*
12764 Built-in reverse search via Sync\SpecialChar TeX
12765  (DVI and PDF) 
12766 \end_layout
12767
12768 \begin_layout Standard
12769 Recent versions of 
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 (pdf)latex
12775 \end_layout
12776
12777 \end_inset
12778
12779  have built-in support for both PDF and DVI reverse search.
12780  This so-called 
12781 \emph on
12782 Sync\SpecialChar TeX
12783
12784 \emph default
12785  facility is basically the result of the integration of the PDFSync package
12786  to the pdftex program and its merge with the 
12787 \emph on
12788 scr-specials
12789 \emph default
12790  approach.
12791  You need at least \SpecialChar TeX
12792 Live 2008 or a recent Mik\SpecialChar TeX
12793  distribution in order to use
12794  it.
12795 \begin_inset Foot
12796 status collapsed
12797
12798 \begin_layout Plain Layout
12799 For some reason, Mik\SpecialChar TeX
12800  does not understand/obey the command \SpecialChar LyX
12801  inserts into
12802  the preamble when you check the "Enable Forward/Reverse Search" button
12803  in the toolbar and does not generate the necessary info.
12804 \end_layout
12805
12806 \begin_layout Plain Layout
12807 The generation of the required info can be forced by changing the converter
12808  "\SpecialChar LaTeX
12809  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
12810  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
12811  the -synctex=1 switch).
12812 \end_layout
12813
12814 \end_inset
12815
12816  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
12817  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
12818  already provide Sync\SpecialChar TeX
12819  support.
12820 \end_layout
12821
12822 \begin_layout Standard
12823 To enable Sync\SpecialChar TeX
12824  for DVI output, change the 
12825 \begin_inset Flex Noun
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 La
12830 \family sans
12831 TeX
12832 \family default
12833  (plain) -> DVI
12834 \end_layout
12835
12836 \end_inset
12837
12838  or 
12839 \begin_inset Flex Noun
12840 status collapsed
12841
12842 \begin_layout Plain Layout
12843 La
12844 \family sans
12845 TeX
12846 \family default
12847  (plain) -> DraftDVI
12848 \end_layout
12849
12850 \end_inset
12851
12852  converter in 
12853 \begin_inset Flex Noun
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 Preferences\SpecialChar menuseparator
12858 File Handling\SpecialChar menuseparator
12859 Converters
12860 \end_layout
12861
12862 \end_inset
12863
12864  to 
12865 \begin_inset Flex Code
12866 status collapsed
12867
12868 \begin_layout Plain Layout
12869 latex -synctex=1 $$i
12870 \end_layout
12871
12872 \end_inset
12873
12874 , and for PDF output, change the 
12875 \begin_inset Flex Noun
12876 status collapsed
12877
12878 \begin_layout Plain Layout
12879 La
12880 \family sans
12881 TeX
12882 \family default
12883  (pdflatex) -> PDF (pdflatex)
12884 \end_layout
12885
12886 \end_inset
12887
12888  converter to 
12889 \begin_inset Flex Code
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893 pdflatex -synctex=1 $$i
12894 \end_layout
12895
12896 \end_inset
12897
12898 .
12899  Should your viewer not be considered in the following description, or in
12900  case of missing success, please check the documentation of your viewer
12901  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
12902 .
12903 \begin_inset Foot
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 Note that the option 
12908 \begin_inset Flex Code
12909 status collapsed
12910
12911 \begin_layout Plain Layout
12912 -synctex=1
12913 \end_layout
12914
12915 \end_inset
12916
12917  option enables gzip compression.
12918  If your viewer does not support it, you should instead use 
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923 -synctex=-1
12924 \end_layout
12925
12926 \end_inset
12927
12928 .
12929 \end_layout
12930
12931 \end_inset
12932
12933
12934 \end_layout
12935
12936 \begin_layout Subsection
12937 Configuring and using specific viewers
12938 \begin_inset CommandInset label
12939 LatexCommand label
12940 name "subsec:configuring-viewers"
12941
12942 \end_inset
12943
12944
12945 \end_layout
12946
12947 \begin_layout Subsubsection*
12948 Xdvi (all platforms)
12949 \end_layout
12950
12951 \begin_layout Standard
12952 If you use 
12953 \begin_inset Flex Code
12954 status collapsed
12955
12956 \begin_layout Plain Layout
12957 xdvi
12958 \end_layout
12959
12960 \end_inset
12961
12962 , you don't need to do anything else for performing a reverse DVI search,
12963  as \SpecialChar LyX
12964  already provides the necessary hooks for automatically using the 
12965 \begin_inset Flex Code
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969 lyxclient
12970 \end_layout
12971
12972 \end_inset
12973
12974  program.
12975  Just setup your document as described above (reverse search is triggered
12976  by Ctrl-click or Alt-click on Mac OSX, respectively).
12977 \end_layout
12978
12979 \begin_layout Standard
12980 However, if for whatever reason you want to use the named pipe instead of
12981  the socket for communicating with \SpecialChar LyX
12982 , simply change the DVI viewer in 
12983 \begin_inset Flex Noun
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 Preferences\SpecialChar menuseparator
12988 File Handling\SpecialChar menuseparator
12989 File formats
12990 \end_layout
12991
12992 \end_inset
12993
12994  to
12995 \begin_inset Foot
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999 On Mac OSX you have to use 
13000 \begin_inset Flex Code
13001 status collapsed
13002
13003 \begin_layout Plain Layout
13004 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
13005 \end_layout
13006
13007 \end_inset
13008
13009
13010 \end_layout
13011
13012 \end_inset
13013
13014  
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 xdvi -editor "lyxeditor.sh %f %l"
13020 \end_layout
13021
13022 \end_inset
13023
13024 , where 
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 lyxeditor.sh
13030 \end_layout
13031
13032 \end_inset
13033
13034  is a suitable script.
13035  For example, a minimal shell script is the following one:
13036 \end_layout
13037
13038 \begin_layout LyX-Code
13039 #!/bin/sh
13040 \begin_inset Newline newline
13041 \end_inset
13042
13043 LYXPIPE="/path/to/lyxpipe"
13044 \begin_inset Newline newline
13045 \end_inset
13046
13047 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
13048 \begin_inset Newline newline
13049 \end_inset
13050
13051 echo "$COMMAND" > "${LYXPIPE}".in || exit
13052 \begin_inset Newline newline
13053 \end_inset
13054
13055 read TMP < "${LYXPIPE}".out || exit
13056 \end_layout
13057
13058 \begin_layout Standard
13059 where 
13060 \begin_inset Flex Code
13061 status collapsed
13062
13063 \begin_layout Plain Layout
13064 /path/to/lyxpipe
13065 \end_layout
13066
13067 \end_inset
13068
13069  is the LyXServer pipe path specified in 
13070 \begin_inset Flex Noun
13071 status collapsed
13072
13073 \begin_layout Plain Layout
13074 Preferences\SpecialChar menuseparator
13075 Paths
13076 \end_layout
13077
13078 \end_inset
13079
13080 .
13081 \begin_inset Foot
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 In the 
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 development/tools
13091 \end_layout
13092
13093 \end_inset
13094
13095  folder of a source distribution you can find a 
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100 lyxeditor
13101 \end_layout
13102
13103 \end_inset
13104
13105  script which is able to locate the 
13106 \emph on
13107 lyxpipe
13108 \emph default
13109  based on your preferences.
13110 \end_layout
13111
13112 \end_inset
13113
13114
13115 \end_layout
13116
13117 \begin_layout Subsubsection*
13118 MacDviX (Mac OSX)
13119 \end_layout
13120
13121 \begin_layout Standard
13122 At the end of 
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 /Applications/MacDviX_Folder/calleditor.script
13128 \end_layout
13129
13130 \end_inset
13131
13132 , add the following lines:
13133 \end_layout
13134
13135 \begin_layout LyX-Code
13136 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
13137 \begin_inset Newline newline
13138 \end_inset
13139
13140 exit 1
13141 \end_layout
13142
13143 \begin_layout Standard
13144 Modify the lines accordingly if you install \SpecialChar LyX
13145  somewhere else than in the
13146  Applications folder.
13147 \end_layout
13148
13149 \begin_layout Standard
13150 Reverse search is triggered by Alt-click (OPTION-click).
13151 \end_layout
13152
13153 \begin_layout Subsubsection*
13154 Skim (Mac OSX)
13155 \end_layout
13156
13157 \begin_layout Standard
13158 Enter 
13159 \begin_inset Flex Code
13160 status collapsed
13161
13162 \begin_layout Plain Layout
13163 open -a Skim.app $$i
13164 \end_layout
13165
13166 \end_inset
13167
13168  to the viewer setting in 
13169 \begin_inset Flex Noun
13170 status collapsed
13171
13172 \begin_layout Plain Layout
13173 Preferences\SpecialChar menuseparator
13174 File Handling\SpecialChar menuseparator
13175 File formats\SpecialChar menuseparator
13176 PDF (pdflatex)
13177 \end_layout
13178
13179 \end_inset
13180
13181 , and then in 
13182 \begin_inset Flex Noun
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186 Skim\SpecialChar menuseparator
13187 Preferences\SpecialChar menuseparator
13188 Sync
13189 \end_layout
13190
13191 \end_inset
13192
13193  choose 
13194 \begin_inset Flex Noun
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198 custom
13199 \end_layout
13200
13201 \end_inset
13202
13203  preset and enter command 
13204 \begin_inset Flex Noun
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 /Applications/\SpecialChar LyX
13209 .app/Contents/MacOS/lyxeditor
13210 \end_layout
13211
13212 \end_inset
13213
13214 .
13215 \end_layout
13216
13217 \begin_layout Standard
13218 Reverse search is triggered by COMMAND-SHIFT-click
13219 \end_layout
13220
13221 \begin_layout Subsubsection*
13222 Evince (GNOME)
13223 \end_layout
13224
13225 \begin_layout Standard
13226 Reverse search with evince does not work out of the box, but it can be achieved
13227  by means of some third party helper scripts.
13228  Please refer to 
13229 \begin_inset CommandInset href
13230 LatexCommand href
13231 target "https://wiki.lyx.org/LyX/SyncTeX"
13232 literal "false"
13233
13234 \end_inset
13235
13236  for details.
13237 \end_layout
13238
13239 \begin_layout Subsubsection*
13240 Okular (KDE)
13241 \end_layout
13242
13243 \begin_layout Standard
13244 Go to 
13245 \begin_inset Flex Noun
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 Settings\SpecialChar menuseparator
13250 Configure Okular\SpecialChar menuseparator
13251 Editor
13252 \end_layout
13253
13254 \end_inset
13255
13256  and select LyX
13257 \begin_inset Quotes erd
13258 \end_inset
13259
13260  as editor.
13261  This inserts the appropriate command (
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 lyxclient -g %f %l
13267 \end_layout
13268
13269 \end_inset
13270
13271 ).
13272 \end_layout
13273
13274 \begin_layout Standard
13275 Reverse search is triggered by SHIFT-click.
13276
13277 \change_inserted -712698321 1578211026
13278  Note that this only works if Okular is in 
13279 \begin_inset Quotes eld
13280 \end_inset
13281
13282 Browse
13283 \begin_inset Quotes erd
13284 \end_inset
13285
13286  mode (i.
13287 \begin_inset space \thinspace{}
13288 \end_inset
13289
13290 e., the hand symbol is clicked).
13291 \change_unchanged
13292
13293 \end_layout
13294
13295 \begin_layout Subsubsection*
13296 Qpdfview (Unix)
13297 \end_layout
13298
13299 \begin_layout Standard
13300 Qpdfview supports Sync\SpecialChar TeX
13301  since version 0.3.5.
13302  Go to 
13303 \begin_inset Flex Noun
13304 status collapsed
13305
13306 \begin_layout Plain Layout
13307 Edit\SpecialChar menuseparator
13308 Settings\SpecialChar menuseparator
13309 Behavior
13310 \end_layout
13311
13312 \end_inset
13313
13314 , click on the input field of the 
13315 \begin_inset Quotes eld
13316 \end_inset
13317
13318 Source editor
13319 \begin_inset Quotes erd
13320 \end_inset
13321
13322  item and add the command 
13323 \begin_inset Flex Code
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327 lyxclient -g %1 %2
13328 \end_layout
13329
13330 \end_inset
13331
13332 .
13333 \end_layout
13334
13335 \begin_layout Standard
13336 Reverse search is triggered by double-click or, in more recent versions,
13337  by context menu.
13338 \end_layout
13339
13340 \begin_layout Subsubsection*
13341 YAP (Windows)
13342 \end_layout
13343
13344 \begin_layout Standard
13345 Launch yap, choose its 
13346 \begin_inset Flex Noun
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 View\SpecialChar menuseparator
13351 Options
13352 \end_layout
13353
13354 \end_inset
13355
13356  menu and select the 
13357 \begin_inset Quotes eld
13358 \end_inset
13359
13360 Inverse DVI Search
13361 \begin_inset Quotes erd
13362 \end_inset
13363
13364  tab.
13365  Click on the 
13366 \begin_inset Quotes eld
13367 \end_inset
13368
13369 New\SpecialChar ldots
13370
13371 \begin_inset Quotes erd
13372 \end_inset
13373
13374  button and, in the window that opens, enter 
13375 \begin_inset Quotes eld
13376 \end_inset
13377
13378 \SpecialChar LyX
13379  Editor
13380 \begin_inset Quotes erd
13381 \end_inset
13382
13383  (or any other name you like) in the 
13384 \begin_inset Quotes eld
13385 \end_inset
13386
13387 Name:
13388 \begin_inset Quotes erd
13389 \end_inset
13390
13391  field.
13392  Now click on the button labeled 
13393 \begin_inset Quotes eld
13394 \end_inset
13395
13396 \SpecialChar ldots
13397
13398 \begin_inset Quotes erd
13399 \end_inset
13400
13401  to open a file dialog and navigate to the directory containing the batch
13402  file 
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 lyxeditor.bat
13408 \end_layout
13409
13410 \end_inset
13411
13412  (see below).
13413  Select 
13414 \begin_inset Flex Code
13415 status collapsed
13416
13417 \begin_layout Plain Layout
13418 lyxeditor.bat
13419 \end_layout
13420
13421 \end_inset
13422
13423  and then specify the program arguments as 
13424 \begin_inset Flex Code
13425 status collapsed
13426
13427 \begin_layout Plain Layout
13428 %f %l
13429 \end_layout
13430
13431 \end_inset
13432
13433 .
13434  The 
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 lyxeditor.bat
13440 \end_layout
13441
13442 \end_inset
13443
13444  wrapper is used for communicating with \SpecialChar LyX
13445  through the 
13446 \emph on
13447 lyxpipe
13448 \emph default
13449  and is as follows:
13450 \end_layout
13451
13452 \begin_layout LyX-Code
13453 @echo off
13454 \begin_inset Newline newline
13455 \end_inset
13456
13457 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
13458 \backslash
13459
13460 \backslash
13461 .
13462 \backslash
13463 pipe
13464 \backslash
13465 lyxpipe.in
13466 \begin_inset Newline newline
13467 \end_inset
13468
13469 type 
13470 \backslash
13471
13472 \backslash
13473 .
13474 \backslash
13475 pipe
13476 \backslash
13477 lyxpipe.out
13478 \end_layout
13479
13480 \begin_layout Standard
13481 Make sure that the \SpecialChar LyX
13482 Server pipe path you specified in \SpecialChar LyX
13483  is 
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488
13489 \backslash
13490
13491 \backslash
13492 .
13493 \backslash
13494 pipe
13495 \backslash
13496 lyxpipe
13497 \end_layout
13498
13499 \end_inset
13500
13501 , otherwise change the 
13502 \begin_inset Flex Code
13503 status collapsed
13504
13505 \begin_layout Plain Layout
13506 lyxeditor.bat
13507 \end_layout
13508
13509 \end_inset
13510
13511  wrapper accordingly.
13512 \end_layout
13513
13514 \begin_layout Standard
13515 In yap, reverse search is triggered by double-click.
13516 \end_layout
13517
13518 \begin_layout Subsubsection*
13519 SumatraPDF (Windows)
13520 \end_layout
13521
13522 \begin_layout Standard
13523 In order to use SumatraPDF for inverse search, enter 
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
13529 \end_layout
13530
13531 \end_inset
13532
13533  in the viewer setting in 
13534 \begin_inset Flex Noun
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 Preferences\SpecialChar menuseparator
13539 File Handling\SpecialChar menuseparator
13540 File formats\SpecialChar menuseparator
13541 PDF (pdflatex)
13542 \end_layout
13543
13544 \end_inset
13545
13546 , where 
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 lyxeditor.bat
13552 \end_layout
13553
13554 \end_inset
13555
13556  is the previous wrapper.
13557  If SumatraPDF.exe is not in your command PATH, use its full file name.
13558 \end_layout
13559
13560 \begin_layout Standard
13561 Reverse search is triggered by double-click.
13562 \end_layout
13563
13564 \begin_layout Subsubsection*
13565 YAP (Cygwin)
13566 \end_layout
13567
13568 \begin_layout Standard
13569 First of all, make sure that yap is your default DVI viewer in the Windows
13570  environment, then launch it, choose its 
13571 \begin_inset Flex Noun
13572 status collapsed
13573
13574 \begin_layout Plain Layout
13575 View\SpecialChar menuseparator
13576 Options
13577 \end_layout
13578
13579 \end_inset
13580
13581  menu and select the 
13582 \begin_inset Quotes eld
13583 \end_inset
13584
13585 Inverse DVI Search
13586 \begin_inset Quotes erd
13587 \end_inset
13588
13589  tab.
13590  Click on the 
13591 \begin_inset Quotes eld
13592 \end_inset
13593
13594 New\SpecialChar ldots
13595
13596 \begin_inset Quotes erd
13597 \end_inset
13598
13599  button and, in the window that opens, enter 
13600 \begin_inset Quotes eld
13601 \end_inset
13602
13603 \SpecialChar LyX
13604  Editor
13605 \begin_inset Quotes erd
13606 \end_inset
13607
13608  (or any other name you like) in the 
13609 \begin_inset Quotes eld
13610 \end_inset
13611
13612 Name:
13613 \begin_inset Quotes erd
13614 \end_inset
13615
13616  field.
13617  Now click on the button labeled 
13618 \begin_inset Quotes eld
13619 \end_inset
13620
13621 \SpecialChar ldots
13622
13623 \begin_inset Quotes erd
13624 \end_inset
13625
13626  to open a file dialog and navigate to the directory containing the 
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631 lyxeditor.exe
13632 \end_layout
13633
13634 \end_inset
13635
13636  program (which is installed by default on Cygwin along with the \SpecialChar LyX
13637  executable).
13638  Select 
13639 \begin_inset Flex Code
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643 lyxeditor.exe
13644 \end_layout
13645
13646 \end_inset
13647
13648  and then specify the program arguments as 
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 -g %f %l
13654 \end_layout
13655
13656 \end_inset
13657
13658 .
13659  In this way, you will be using the 
13660 \emph on
13661 lyxsocket
13662 \emph default
13663  for communicating with \SpecialChar LyX
13664 .
13665  If, for whatever reason, you want to use the 
13666 \emph on
13667 lyxpipe
13668 \emph default
13669 , omit the 
13670 \begin_inset Flex Code
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 -g
13675 \end_layout
13676
13677 \end_inset
13678
13679  option and be sure to specify the \SpecialChar LyX
13680 Server pipe path in the \SpecialChar LyX
13681  preferences.
13682 \end_layout
13683
13684 \begin_layout Standard
13685 In yap, reverse search is triggered by double-click.
13686 \end_layout
13687
13688 \begin_layout Subsubsection*
13689 SumatraPDF (Cygwin)
13690 \end_layout
13691
13692 \begin_layout Standard
13693 In order to use SumatraPDF for inverse search, enter 
13694 \begin_inset Flex Code
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698 SumatraPDF -inverse-search "lyxeditor -g %f %l"
13699 \end_layout
13700
13701 \end_inset
13702
13703  in the viewer setting in 
13704 \begin_inset Flex Noun
13705 status collapsed
13706
13707 \begin_layout Plain Layout
13708 Preferences\SpecialChar menuseparator
13709 File Handling\SpecialChar menuseparator
13710 File formats\SpecialChar menuseparator
13711 PDF (pdflatex)
13712 \end_layout
13713
13714 \end_inset
13715
13716 .
13717  If SumatraPDF.exe is not in your command PATH, use its full posix path.
13718  The 
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723 -g
13724 \end_layout
13725
13726 \end_inset
13727
13728  enables communication via the 
13729 \emph on
13730 lyxsocket
13731 \emph default
13732 .
13733  Again, omit the 
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 -g
13739 \end_layout
13740
13741 \end_inset
13742
13743  option if you want to use the 
13744 \emph on
13745 lyxpipe
13746 \emph default
13747 , and be sure to specify the \SpecialChar LyX
13748 Server pipe path in the \SpecialChar LyX
13749  preferences.
13750 \end_layout
13751
13752 \begin_layout Standard
13753 Reverse search is triggered by double-click.
13754 \end_layout
13755
13756 \begin_layout Section
13757 Forward search
13758 \end_layout
13759
13760 \begin_layout Standard
13761 Forward search is, as the name implies, in a sense the 
13762 \begin_inset Quotes eld
13763 \end_inset
13764
13765 opposite
13766 \begin_inset Quotes erd
13767 \end_inset
13768
13769  of reverse search.
13770  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
13771 .
13772  If forward search is set up (as described in what follows), you can put
13773  the cursor anywhere in your \SpecialChar LyX
13774  document, and hit 
13775 \begin_inset Flex Noun
13776 status collapsed
13777
13778 \begin_layout Plain Layout
13779 Navigate\SpecialChar menuseparator
13780 Forward search
13781 \end_layout
13782
13783 \end_inset
13784
13785  (or select 
13786 \begin_inset Flex Noun
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 Forward search
13791 \end_layout
13792
13793 \end_inset
13794
13795  in the context menu via right mouse click), and then the viewer will jump
13796  to that position as well.
13797  This implies, of course, that your viewer supports this function.
13798 \end_layout
13799
13800 \begin_layout Standard
13801 To make forward search possible, you first need to provide the generated
13802  output PDF/DVI file with additional information about the \SpecialChar TeX
13803  sources.
13804  This can be done via the methods described in the section 
13805 \begin_inset CommandInset ref
13806 LatexCommand ref
13807 reference "subsec:rev-search"
13808
13809 \end_inset
13810
13811 .
13812 \end_layout
13813
13814 \begin_layout Standard
13815 Additionally, you need to configure \SpecialChar LyX
13816  for using your viewers in 
13817 \begin_inset Flex Noun
13818 status collapsed
13819
13820 \begin_layout Plain Layout
13821 Tools\SpecialChar menuseparator
13822 Preferences\SpecialChar menuseparator
13823 Output\SpecialChar menuseparator
13824 General
13825 \end_layout
13826
13827 \end_inset
13828
13829 .
13830  We provide a range of tested configurations for some viewers, which you
13831  can select from the drop down list.
13832  If none of these configurations suits you, you have to find out and enter
13833  a suitable configuration yourself.
13834  The definition syntax uses the following placeholders:
13835 \end_layout
13836
13837 \begin_layout Itemize
13838 \noindent
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 $$n
13844 \end_layout
13845
13846 \end_inset
13847
13848 : row number
13849 \end_layout
13850
13851 \begin_layout Itemize
13852 \noindent
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 $$t
13858 \end_layout
13859
13860 \end_inset
13861
13862 : name of the (temporary) exported .tex file (without path)
13863 \end_layout
13864
13865 \begin_layout Itemize
13866 \noindent
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 $$f
13872 \end_layout
13873
13874 \end_inset
13875
13876 : name of the (temporary) exported .tex file (including path)
13877 \end_layout
13878
13879 \begin_layout Itemize
13880 \noindent
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885 $$o
13886 \end_layout
13887
13888 \end_inset
13889
13890 : name of the exported output file (either dvi or pdf, depending on which
13891  one exists in the temporary directory)
13892 \end_layout
13893
13894 \begin_layout Standard
13895 Note that only some of the viewers provide full and usable forward search
13896  functionality out of the box, among them yap, xdvi, okular
13897 \begin_inset Foot
13898 status collapsed
13899
13900 \begin_layout Plain Layout
13901 You might want to set 
13902 \begin_inset Flex Code
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 okular --unique
13907 \end_layout
13908
13909 \end_inset
13910
13911  in 
13912 \begin_inset Flex Noun
13913 status collapsed
13914
13915 \begin_layout Plain Layout
13916 Tools\SpecialChar menuseparator
13917 Preferences\SpecialChar menuseparator
13918 File Handling\SpecialChar menuseparator
13919 File
13920 \begin_inset space ~
13921 \end_inset
13922
13923 Formats
13924 \end_layout
13925
13926 \end_inset
13927
13928
13929 \end_layout
13930
13931 \end_inset
13932
13933 , qpdfview, and SumatraPDF
13934 \begin_inset Foot
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938 SumatraPDF can also use DDE commands through the external program CMCDDE
13939  — downloadable from 
13940 \begin_inset CommandInset href
13941 LatexCommand href
13942 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
13943 literal "false"
13944
13945 \end_inset
13946
13947
13948 \end_layout
13949
13950 \end_inset
13951
13952 .
13953  Others, such as evince
13954 \begin_inset Foot
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 Forward search with evince can be achieved by means of third party helper
13959  scripts.
13960  Please refer to 
13961 \begin_inset CommandInset href
13962 LatexCommand href
13963 target "https://wiki.lyx.org/LyX/SyncTeX"
13964 literal "false"
13965
13966 \end_inset
13967
13968  for details.
13969 \end_layout
13970
13971 \end_inset
13972
13973 , require some extra tools in order to use forward search.
13974  While many of the widespread PDF viewers (most notably Adobe Reader) do
13975  not support forward search at all, some other viewers – e.
13976 \begin_inset space \thinspace{}
13977 \end_inset
13978
13979 g.
13980  xpdf – allow at least to reload the document and jump to a specific page
13981  of the file, so you can at least navigate 
13982 \begin_inset Quotes eld
13983 \end_inset
13984
13985 near
13986 \begin_inset Quotes erd
13987 \end_inset
13988
13989 .
13990  This latter functionality is provided by an external call of synctex (see
13991  the predefined example configurations).
13992  
13993 \end_layout
13994
13995 \begin_layout Standard
13996 Forward search works both with DVI and PDF output.
13997  \SpecialChar LyX
13998  simply checks which preview format you have used before (i.
13999 \begin_inset space \thinspace{}
14000 \end_inset
14001
14002 e., which format is already there in the temporary directory) and chooses
14003  the appropriate configuration for the respective format.
14004 \end_layout
14005
14006 \begin_layout Chapter
14007 Special Document Classes
14008 \end_layout
14009
14010 \begin_layout Section
14011
14012 \change_deleted 564990737 1669742044
14013 A&A Paper
14014 \end_layout
14015
14016 \begin_layout Standard
14017
14018 \change_deleted 564990737 1669742044
14019 by 
14020 \noun on
14021 Peter Sütterlin
14022 \end_layout
14023
14024 \begin_layout Subsection
14025
14026 \change_deleted 564990737 1669742044
14027 Introduction
14028 \end_layout
14029
14030 \begin_layout Standard
14031
14032 \change_deleted 564990737 1669742044
14033 This section describes how \SpecialChar LyX
14034  can be used to write articles for submission
14035  to the scientific journal 
14036 \emph on
14037 Astronomy and Astrophysics
14038 \emph default
14039  (
14040 \begin_inset Flex URL
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044
14045 https://www.aanda.org/
14046 \end_layout
14047
14048 \end_inset
14049
14050 ) using Version 5.01 of the document class 
14051 \family typewriter
14052 aa.cls
14053 \family default
14054 .
14055  This package can be downloaded from the ftp site
14056 \end_layout
14057
14058 \begin_layout Standard
14059
14060 \change_deleted 564990737 1669742044
14061 \begin_inset VSpace medskip
14062 \end_inset
14063
14064
14065 \end_layout
14066
14067 \begin_layout Standard
14068 \align center
14069
14070 \change_deleted 564990737 1669742044
14071 \begin_inset Flex URL
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075
14076 ftp://ftp.edpsciences.org/pub/aa/readme.html
14077 \end_layout
14078
14079 \end_inset
14080
14081
14082 \end_layout
14083
14084 \begin_layout Standard
14085
14086 \change_deleted 564990737 1669742044
14087 \begin_inset VSpace medskip
14088 \end_inset
14089
14090
14091 \end_layout
14092
14093 \begin_layout Standard
14094
14095 \change_deleted 564990737 1669742044
14096 A manual comes together with that package, and this text is not meant to
14097  replace the original manual but is merely a short guide in how to realize
14098  the correct form of your paper.
14099  
14100 \end_layout
14101
14102 \begin_layout Standard
14103
14104 \change_deleted 564990737 1669742044
14105 Please note that the publisher of the journal was changed from Springer
14106  to EDP Sciences starting January 1, 2001.
14107  That change involved also some slight changes to the style files, namely
14108  the removal of the thesaurus command.
14109  The \SpecialChar LyX
14110  class aa supports the newest version of these style files, V 5.01.
14111  If you have an older version installed, please upgrade.
14112  For compatibility, the old (version 4) layout has been kept as 
14113 \family sans
14114 article (A&A V4)
14115 \family default
14116 .
14117  Please refer to the comments in 
14118 \family typewriter
14119 \SpecialChar LyX
14120 Dir/layouts/aapaper.layout
14121 \family default
14122 .
14123 \end_layout
14124
14125 \begin_layout Subsection
14126
14127 \change_deleted 564990737 1669742044
14128 Getting started
14129 \end_layout
14130
14131 \begin_layout Standard
14132
14133 \change_deleted 564990737 1669742044
14134 It is recommended you start from the example template distributed with \SpecialChar LyX
14135 .
14136  If you are not using a template, note the following settings:
14137 \end_layout
14138
14139 \begin_layout Itemize
14140
14141 \change_deleted 564990737 1669742044
14142 Select 
14143 \family sans
14144 article (A&A)
14145 \family default
14146  in the 
14147 \family sans
14148 Document\SpecialChar menuseparator
14149 Settings
14150 \family default
14151  dialog (OK, that one was obvious).
14152 \end_layout
14153
14154 \begin_layout Itemize
14155
14156 \change_deleted 564990737 1669742044
14157 Don't change the option 
14158 \family sans
14159 Page
14160 \begin_inset space ~
14161 \end_inset
14162
14163 style
14164 \family default
14165 : Leave it set to 
14166 \family sans
14167 default
14168 \family default
14169 .
14170  The whole layout is done by the macros, you shouldn't change anything.
14171 \end_layout
14172
14173 \begin_layout Subsection
14174
14175 \change_deleted 564990737 1669742044
14176 The header block
14177 \end_layout
14178
14179 \begin_layout Standard
14180
14181 \change_deleted 564990737 1669742044
14182 First thing to enter is the header information.
14183  It consists of seven entries, of which some are optional.
14184  They are
14185 \end_layout
14186
14187 \begin_layout Itemize
14188
14189 \change_deleted 564990737 1669742044
14190
14191 \family sans
14192 Title
14193 \family default
14194 : [required] 
14195 \end_layout
14196
14197 \begin_layout Itemize
14198
14199 \change_deleted 564990737 1669742044
14200
14201 \family sans
14202 Subtitle
14203 \family default
14204 : [optional] 
14205 \end_layout
14206
14207 \begin_layout Itemize
14208
14209 \change_deleted 564990737 1669742044
14210
14211 \family sans
14212 Author
14213 \family default
14214 : [required]
14215 \end_layout
14216
14217 \begin_layout Itemize
14218
14219 \change_deleted 564990737 1669742044
14220
14221 \family sans
14222 Address
14223 \family default
14224 : [required]
14225 \end_layout
14226
14227 \begin_layout Itemize
14228
14229 \change_deleted 564990737 1669742044
14230
14231 \family sans
14232 Offprints
14233 \family default
14234 : [optional] if more than one author: whom to contact for offprint requests.
14235 \end_layout
14236
14237 \begin_layout Itemize
14238
14239 \change_deleted 564990737 1669742044
14240
14241 \family sans
14242 Mail
14243 \family default
14244 : [optional] mail address for contacts.
14245 \end_layout
14246
14247 \begin_layout Itemize
14248
14249 \change_deleted 564990737 1669742044
14250
14251 \family sans
14252 Date
14253 \family default
14254 : [required].
14255  Suggested format is 
14256 \family typewriter
14257 Received: <date>; Accepted <date> 
14258 \end_layout
14259
14260 \begin_layout Standard
14261
14262 \change_deleted 564990737 1669742044
14263 There is no need to issue the 
14264 \family typewriter
14265
14266 \backslash
14267 maketitle
14268 \family default
14269  command, this is done automatically by \SpecialChar LyX
14270  when the header is finished.
14271  Although the order of the single header entries doesn't matter it is advised
14272  to keep the above sequence, just to get the best optics and meets the layout
14273  of the real document.
14274 \end_layout
14275
14276 \begin_layout Standard
14277
14278 \change_deleted 564990737 1669742044
14279 If you want to place footnotes in the header block, e.
14280 \begin_inset space \thinspace{}
14281 \end_inset
14282
14283 g.
14284 \begin_inset space \space{}
14285 \end_inset
14286
14287 to state your present address, just use the standard footnote via the menu
14288  
14289 \family sans
14290 Insert\SpecialChar menuseparator
14291 Footnote.
14292
14293 \family default
14294  \SpecialChar LyX
14295  will automagically use the term 
14296 \family typewriter
14297
14298 \backslash
14299 thanks{}
14300 \family default
14301  in that case.
14302 \end_layout
14303
14304 \begin_layout Standard
14305
14306 \change_deleted 564990737 1669742044
14307 Under 
14308 \family sans
14309 Edit\SpecialChar menuseparator
14310 Text Style
14311 \family default
14312 , you'll find two insets which are relevant for the titling:
14313 \end_layout
14314
14315 \begin_layout Itemize
14316
14317 \change_deleted 564990737 1669742044
14318
14319 \family sans
14320 Institute
14321 \family typewriter
14322  
14323 \family default
14324 to mark corresponding author\SpecialChar breakableslash
14325 institute pairs.
14326  The institutes are numbered sequentially as they appear in the 
14327 \family sans
14328 Address
14329 \family default
14330  field, so you have to put a marker to each author.
14331 \end_layout
14332
14333 \begin_layout Itemize
14334
14335 \change_deleted 564990737 1669742044
14336
14337 \family sans
14338 Email
14339 \family default
14340  to supply an email address for fast contact.
14341 \end_layout
14342
14343 \begin_layout Standard
14344
14345 \change_deleted 564990737 1669742044
14346 In addition to these topics, the macros use one additional \SpecialChar LaTeX
14347  command that
14348  has no counterpart in \SpecialChar LyX
14349 :
14350 \end_layout
14351
14352 \begin_layout Itemize
14353
14354 \change_deleted 564990737 1669742044
14355
14356 \family typewriter
14357
14358 \backslash
14359 and
14360 \family default
14361  to separate different names for more than one author and institute, respectivel
14362 y.
14363 \end_layout
14364
14365 \begin_layout Standard
14366
14367 \change_deleted 564990737 1669742044
14368 The appropriate command has to be entered in \SpecialChar LyX
14369  and marked as \SpecialChar LaTeX
14370  code.
14371  See the examples.
14372  
14373 \end_layout
14374
14375 \begin_layout Subsection
14376
14377 \change_deleted 564990737 1669742044
14378 The abstract
14379 \end_layout
14380
14381 \begin_layout Standard
14382
14383 \change_deleted 564990737 1669742044
14384 The abstract should immediately follow the header block.
14385  With version 5 the abstract environment was changed to a command, and there
14386  is now a restriction to only one paragraph.
14387  In addition, it should contain an entry with the keywords.
14388  This is done via the paragraph style 
14389 \family sans
14390 Keywords
14391 \family default
14392 .
14393  Refer to the example paper.
14394 \end_layout
14395
14396 \begin_layout Subsection
14397
14398 \change_deleted 564990737 1669742044
14399 Supported environments
14400 \end_layout
14401
14402 \begin_layout Standard
14403
14404 \change_deleted 564990737 1669742044
14405 The A&A paper layout supports the following environments for structuring
14406  your text:
14407 \end_layout
14408
14409 \begin_layout Itemize
14410
14411 \change_deleted 564990737 1669742044
14412
14413 \family sans
14414 Standard
14415 \end_layout
14416
14417 \begin_layout Itemize
14418
14419 \change_deleted 564990737 1669742044
14420
14421 \family sans
14422 Section
14423 \end_layout
14424
14425 \begin_layout Itemize
14426
14427 \change_deleted 564990737 1669742044
14428
14429 \family sans
14430 Subsection
14431 \end_layout
14432
14433 \begin_layout Itemize
14434
14435 \change_deleted 564990737 1669742044
14436
14437 \family sans
14438 Subsubsection
14439 \end_layout
14440
14441 \begin_layout Itemize
14442
14443 \change_deleted 564990737 1669742044
14444
14445 \family sans
14446 Itemize
14447 \end_layout
14448
14449 \begin_layout Itemize
14450
14451 \change_deleted 564990737 1669742044
14452
14453 \family sans
14454 Enumerate
14455 \end_layout
14456
14457 \begin_layout Itemize
14458
14459 \change_deleted 564990737 1669742044
14460
14461 \family sans
14462 Description
14463 \end_layout
14464
14465 \begin_layout Itemize
14466
14467 \change_deleted 564990737 1669742044
14468
14469 \family sans
14470 Caption
14471 \end_layout
14472
14473 \begin_layout Itemize
14474
14475 \change_deleted 564990737 1669742044
14476
14477 \family sans
14478 Abstract
14479 \end_layout
14480
14481 \begin_layout Itemize
14482
14483 \change_deleted 564990737 1669742044
14484
14485 \family sans
14486 Acknowledgment
14487 \end_layout
14488
14489 \begin_layout Itemize
14490
14491 \change_deleted 564990737 1669742044
14492
14493 \family sans
14494 Bibliography
14495 \end_layout
14496
14497 \begin_layout Itemize
14498
14499 \change_deleted 564990737 1669742044
14500
14501 \family sans
14502 \SpecialChar LaTeX
14503
14504 \end_layout
14505
14506 \begin_layout Subsection
14507
14508 \change_deleted 564990737 1669742044
14509 Commands not supported by \SpecialChar LyX
14510
14511 \end_layout
14512
14513 \begin_layout Standard
14514
14515 \change_deleted 564990737 1669742044
14516 Some commands are not yet supported by the 
14517 \family sans
14518 paper (A&A)
14519 \family default
14520  layout for \SpecialChar LyX
14521 .
14522  Some have already been mentioned.
14523  For the sake of completeness, they are listed all together here:
14524 \end_layout
14525
14526 \begin_layout Itemize
14527
14528 \change_deleted 564990737 1669742044
14529
14530 \family typewriter
14531
14532 \backslash
14533 and
14534 \end_layout
14535
14536 \begin_layout Itemize
14537
14538 \change_deleted 564990737 1669742044
14539
14540 \family typewriter
14541
14542 \backslash
14543 authorrunning
14544 \end_layout
14545
14546 \begin_layout Itemize
14547
14548 \change_deleted 564990737 1669742044
14549
14550 \family typewriter
14551
14552 \backslash
14553 object{}
14554 \end_layout
14555
14556 \begin_layout Itemize
14557
14558 \change_deleted 564990737 1669742044
14559
14560 \family typewriter
14561
14562 \backslash
14563 titlerunning{}
14564 \end_layout
14565
14566 \begin_layout Standard
14567
14568 \change_deleted 564990737 1669742044
14569 If you want to use any of these commands, you have to enter them yourself.
14570  
14571 \series bold
14572 Do not forget to mark them as \SpecialChar LaTeX
14573  code!
14574 \end_layout
14575
14576 \begin_layout Subsection
14577
14578 \change_deleted 564990737 1669742044
14579 Figure and Table Floats
14580 \end_layout
14581
14582 \begin_layout Standard
14583
14584 \change_deleted 564990737 1669742044
14585 \SpecialChar LyX
14586  provides support for the necessary float environments 
14587 \family sans
14588 figure, figure*, table
14589 \family default
14590  and 
14591 \family sans
14592 table*
14593 \family default
14594 , therefore we won't tell much about it here.
14595  Refer to the 
14596 \emph on
14597 User's
14598 \begin_inset space ~
14599 \end_inset
14600
14601 Guide
14602 \emph default
14603 .
14604  Just remember that tables should be left-aligned.
14605  For that, select the table and change the alignment in 
14606 \family sans
14607 Edit\SpecialChar menuseparator
14608 Paragraph
14609 \begin_inset space ~
14610 \end_inset
14611
14612 Settings.
14613 \end_layout
14614
14615 \begin_layout Standard
14616
14617 \change_deleted 564990737 1669742044
14618 There is only one special thing: the figures with caption besides the figure.
14619  To create such a figure, you have to do the following:
14620 \end_layout
14621
14622 \begin_layout Enumerate
14623
14624 \change_deleted 564990737 1669742044
14625 Create a wide figure float: 
14626 \family sans
14627 Insert\SpecialChar menuseparator
14628 Float\SpecialChar menuseparator
14629 Figure
14630 \family default
14631 , then right click in the figure and select 
14632 \family sans
14633 Span
14634 \begin_inset space ~
14635 \end_inset
14636
14637 columns
14638 \family default
14639 .
14640 \end_layout
14641
14642 \begin_layout Enumerate
14643
14644 \change_deleted 564990737 1669742044
14645 Enter your caption text.
14646 \end_layout
14647
14648 \begin_layout Enumerate
14649
14650 \change_deleted 564990737 1669742044
14651 Press 
14652 \family sans
14653 Return
14654 \family default
14655  to move the cursor above the caption.
14656 \end_layout
14657
14658 \begin_layout Enumerate
14659
14660 \change_deleted 564990737 1669742044
14661 Insert your figure
14662 \end_layout
14663
14664 \begin_layout Enumerate
14665
14666 \change_deleted 564990737 1669742044
14667 Position the cursor behind the figure and insert a horizontal fill: 
14668 \family sans
14669 Insert\SpecialChar menuseparator
14670 Special
14671 \begin_inset space ~
14672 \end_inset
14673
14674 Character\SpecialChar menuseparator
14675 Horizontal
14676 \begin_inset space ~
14677 \end_inset
14678
14679 Fill
14680 \family default
14681 .
14682 \end_layout
14683
14684 \begin_layout Enumerate
14685
14686 \change_deleted 564990737 1669742044
14687 Switch to \SpecialChar LaTeX
14688  mode: 
14689 \family sans
14690 M-c
14691 \begin_inset space ~
14692 \end_inset
14693
14694 t
14695 \family default
14696 .
14697 \end_layout
14698
14699 \begin_layout Enumerate
14700
14701 \change_deleted 564990737 1669742044
14702 Enter 
14703 \family typewriter
14704
14705 \backslash
14706 parbox[b]{55mm}{
14707 \family default
14708 .
14709  
14710 \series bold
14711 Do not close the brace!
14712 \end_layout
14713
14714 \begin_layout Enumerate
14715
14716 \change_deleted 564990737 1669742044
14717 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
14718  mode and insert
14719  the closing brace: 
14720 \family sans
14721 M-c
14722 \begin_inset space ~
14723 \end_inset
14724
14725 t
14726 \family default
14727  
14728 \family typewriter
14729 }
14730 \family default
14731 .
14732 \end_layout
14733
14734 \begin_layout Standard
14735
14736 \change_deleted 564990737 1669742044
14737 Also, refer to the figures in the example paper.
14738 \end_layout
14739
14740 \begin_layout Subsection
14741
14742 \change_deleted 564990737 1669742044
14743 Referee layout
14744 \end_layout
14745
14746 \begin_layout Standard
14747
14748 \change_deleted 564990737 1669742044
14749 For submission, the paper has to be formated in a special double-spacing
14750  layout.
14751  For this purpose, you have to give the option 
14752 \family typewriter
14753 referee
14754 \family default
14755  to the document class.
14756  This must be done using the custom class options field in the 
14757 \family sans
14758 Document\SpecialChar menuseparator
14759 Settings
14760 \family default
14761  dialog.
14762  Just enter the string 
14763 \family typewriter
14764 referee
14765 \family default
14766  there.
14767 \end_layout
14768
14769 \begin_layout Subsection
14770
14771 \change_deleted 564990737 1669742044
14772 The example paper
14773 \end_layout
14774
14775 \begin_layout Standard
14776
14777 \change_deleted 564990737 1669742044
14778 The 
14779 \family sans
14780 Examples
14781 \family default
14782  directory contains an example paper written with \SpecialChar LyX
14783 .
14784  It is the example paper from the original macro package, translated to
14785  \SpecialChar LyX
14786 .
14787  Use it for inspiration, and compare the original \SpecialChar LaTeX
14788  code with \SpecialChar LyX
14789  way of writing.
14790 \end_layout
14791
14792 \begin_layout Section
14793 Dinbrief
14794 \end_layout
14795
14796 \begin_layout Standard
14797 The document class 
14798 \family sans
14799 dinbrief
14800 \family default
14801  can be used to type letters according to German conventions.
14802  A template file is included in 
14803 \family typewriter
14804 .../lyx/share/templates
14805 \family default
14806  for you to use as a starting point.
14807 \end_layout
14808
14809 \begin_layout Section
14810 Elsevier Journals
14811 \end_layout
14812
14813 \begin_layout Standard
14814 See the \SpecialChar LyX
14815  template file 
14816 \family typewriter
14817 elsarticle.lyx
14818 \family default
14819 .
14820  It contains all infos you need.
14821 \end_layout
14822
14823 \begin_layout Section
14824 Foils [aka 
14825 \family sans
14826 Foil\SpecialChar TeX
14827
14828 \family default
14829 ]
14830 \begin_inset CommandInset label
14831 LatexCommand label
14832 name "sec:foiltex"
14833
14834 \end_inset
14835
14836
14837 \end_layout
14838
14839 \begin_layout Standard
14840 by 
14841 \noun on
14842 Allan Rae
14843 \end_layout
14844
14845 \begin_layout Subsection
14846 Introduction
14847 \end_layout
14848
14849 \begin_layout Standard
14850 This section describes how to use \SpecialChar LyX
14851  to make slides for overhead projectors.
14852  There are two document classes that can do this: the default slides class
14853  and the 
14854 \family sans
14855 Foil\SpecialChar TeX
14856
14857 \family default
14858  slides class.
14859  This section documents the latter.
14860 \end_layout
14861
14862 \begin_layout Standard
14863 I'm going to say this again, nice and clear, so that there's no misunderstanding
14864 :
14865 \end_layout
14866
14867 \begin_layout Standard
14868 \begin_inset VSpace bigskip
14869 \end_inset
14870
14871
14872 \end_layout
14873
14874 \begin_layout Standard
14875 \align center
14876
14877 \size large
14878 This section documents the class 
14879 \begin_inset Quotes eld
14880 \end_inset
14881
14882
14883 \family sans
14884 FoilTeX
14885 \family default
14886
14887 \begin_inset Quotes erd
14888 \end_inset
14889
14890  
14891 \emph on
14892 only.
14893 \end_layout
14894
14895 \begin_layout Standard
14896 \begin_inset VSpace bigskip
14897 \end_inset
14898
14899
14900 \end_layout
14901
14902 \begin_layout Standard
14903 If you're looking for the documentation for 
14904 \begin_inset Quotes eld
14905 \end_inset
14906
14907
14908 \family sans
14909 slides (default)
14910 \family default
14911
14912 \begin_inset Quotes erd
14913 \end_inset
14914
14915 , check out section
14916 \begin_inset space ~
14917 \end_inset
14918
14919
14920 \begin_inset CommandInset ref
14921 LatexCommand ref
14922 reference "sec:slitex"
14923
14924 \end_inset
14925
14926 .
14927  If your machine doesn't have the 
14928 \family sans
14929 foils
14930 \family default
14931  class 
14932 \family sans
14933 FoilTeX
14934 \family default
14935  installed, you'll probably have to use the default 
14936 \family sans
14937 slides
14938 \family default
14939  class, which isn't quite as good as 
14940 \family sans
14941 foils.
14942 \end_layout
14943
14944 \begin_layout Standard
14945 The 
14946 \family sans
14947 foils
14948 \family default
14949  class is designed for use with version
14950 \begin_inset space ~
14951 \end_inset
14952
14953 2.1 of the 
14954 \family sans
14955 foils.cls
14956 \family default
14957  \SpecialChar LaTeX
14958  class file which is now an integral part of \SpecialChar LaTeX2e
14959 .
14960 \end_layout
14961
14962 \begin_layout Subsection
14963 Getting Started
14964 \end_layout
14965
14966 \begin_layout Standard
14967 Obviously, to use this document class, you need to select 
14968 \family sans
14969 FoilTeX
14970 \family default
14971  from the 
14972 \family sans
14973 Class
14974 \family default
14975  entry in the 
14976 \family sans
14977 Document
14978 \begin_inset space ~
14979 \end_inset
14980
14981 Layout
14982 \family default
14983  dialog.
14984  There are some settings in the 
14985 \family sans
14986 Document
14987 \begin_inset space ~
14988 \end_inset
14989
14990 Layout
14991 \family default
14992  dialog that you should know about that are specific to this class:
14993 \end_layout
14994
14995 \begin_layout Itemize
14996 Don't change the options 
14997 \family sans
14998 Sides
14999 \family default
15000  and 
15001 \family sans
15002 Columns
15003 \family default
15004  on the 
15005 \family sans
15006 Document
15007 \begin_inset space ~
15008 \end_inset
15009
15010 Layout
15011 \family default
15012  dialog.
15013  They're ignored by the 
15014 \family sans
15015 foils
15016 \family default
15017  class.
15018 \end_layout
15019
15020 \begin_layout Itemize
15021 The default font size is 20
15022 \begin_inset space \thinspace{}
15023 \end_inset
15024
15025 pt with the other options being 17
15026 \begin_inset space \thinspace{}
15027 \end_inset
15028
15029 pt, 25
15030 \begin_inset space \thinspace{}
15031 \end_inset
15032
15033 pt and 30
15034 \begin_inset space \thinspace{}
15035 \end_inset
15036
15037 pt.
15038 \end_layout
15039
15040 \begin_layout Itemize
15041 The default font is 
15042 \family sans
15043 sans
15044 \family default
15045  
15046 \family sans
15047 serif
15048 \family default
15049  but all math equations are still typeset in the usual roman font.
15050 \end_layout
15051
15052 \begin_layout Itemize
15053
15054 \family sans
15055 Foil\SpecialChar TeX
15056
15057 \family default
15058  supports A4 and Letter paper sizes as well as a special size for working
15059  with 35
15060 \begin_inset space \thinspace{}
15061 \end_inset
15062
15063 mm slides.
15064  It doesn't support A5, B5, legal or executive paper sizes.
15065 \end_layout
15066
15067 \begin_layout Itemize
15068 Don't bother changing the 
15069 \family sans
15070 Float Placement
15071 \family default
15072  settings because they are ignored anyway.
15073  All floats appear where they are defined in the text.
15074 \end_layout
15075
15076 \begin_layout Itemize
15077 The 
15078 \family sans
15079 Pagestyle
15080 \family default
15081  setting behaves a bit differently for this class.
15082  
15083 \family sans
15084 Foil\SpecialChar TeX
15085
15086 \family default
15087  provides extensive footer and header capabilities including a user-defined
15088  logo.
15089  See section
15090 \begin_inset space ~
15091 \end_inset
15092
15093
15094 \begin_inset CommandInset ref
15095 LatexCommand ref
15096 reference "sec:foilfoot"
15097
15098 \end_inset
15099
15100  for more details.
15101  The title page is treated differently to all other pages in the document
15102  and is 
15103 \emph on
15104 always
15105 \emph default
15106  unnumbered and 
15107 \emph on
15108 always
15109 \emph default
15110  has the logo centered at the bottom of the page (if one is defined).
15111  The possible page style choices and what they do are as follows:
15112 \end_layout
15113
15114 \begin_deeper
15115 \begin_layout Labeling
15116 \labelwidthstring MMMMMMM
15117
15118 \family sans
15119 \series bold
15120 empty
15121 \family default
15122 \series default
15123  The final output contains no page numbers, or other headers or footers
15124  (except footnotes of course).
15125  
15126 \end_layout
15127
15128 \begin_layout Labeling
15129 \labelwidthstring MMMMMMM
15130
15131 \family sans
15132 \series bold
15133 plain
15134 \family default
15135 \series default
15136  The final output contains page numbers centered at the bottom of the page.
15137  No other headings or footers (other than footnotes).
15138 \end_layout
15139
15140 \begin_layout Labeling
15141 \labelwidthstring MMMMMMM
15142
15143 \series bold
15144 foilheadings
15145 \series default
15146  Page numbers in lower right corner.
15147  Additional headers and footers are also shown.
15148  This is also the default.
15149 \end_layout
15150
15151 \begin_layout Labeling
15152 \labelwidthstring MMMMMMM
15153
15154 \series bold
15155 fancy
15156 \series default
15157  Gives you access to the 
15158 \family sans
15159 fancyheadings
15160 \family default
15161  package although its use with 
15162 \family sans
15163 Foil\SpecialChar TeX
15164
15165 \family default
15166  is discouraged by the writer of the 
15167 \family sans
15168 Foil\SpecialChar TeX
15169
15170 \family default
15171  package because of some potential page layout clashes.
15172 \end_layout
15173
15174 \end_deeper
15175 \begin_layout Subsubsection
15176 Extra Options
15177 \end_layout
15178
15179 \begin_layout Standard
15180 The following options may be used in the extra class options in the 
15181 \family sans
15182 Document\SpecialChar menuseparator
15183 Settings
15184 \family default
15185  dialog.
15186 \end_layout
15187
15188 \begin_layout Labeling
15189 \labelwidthstring MMMMMMx
15190
15191 \series bold
15192 35mmSlide
15193 \series default
15194  This sets up the page layout for 7.33
15195 \begin_inset space \thinspace{}
15196 \end_inset
15197
15198 in by 11
15199 \begin_inset space \thinspace{}
15200 \end_inset
15201
15202 in paper, which is about the same aspect ratio as a 35
15203 \begin_inset space \thinspace{}
15204 \end_inset
15205
15206 mm slide, making it a bit easier to work with this medium.
15207 \end_layout
15208
15209 \begin_layout Labeling
15210 \labelwidthstring MMMMMMx
15211
15212 \series bold
15213 headrule
15214 \series default
15215  Places a rule across the page below the header on every page except the
15216  title page.
15217 \end_layout
15218
15219 \begin_layout Labeling
15220 \labelwidthstring MMMMMMx
15221
15222 \series bold
15223 footrule
15224 \series default
15225  Places a rule across the page above the footer on every page except the
15226  title page.
15227 \end_layout
15228
15229 \begin_layout Labeling
15230 \labelwidthstring MMMMMMx
15231
15232 \series bold
15233 dvips
15234 \series default
15235  This is automatically set each time you create a new 
15236 \family sans
15237 foils
15238 \family default
15239  document.
15240  This option tells 
15241 \family sans
15242 Foil\SpecialChar TeX
15243
15244 \family default
15245  to use the dvips driver to rotate those pages that are set as landscape
15246  foils.
15247 \end_layout
15248
15249 \begin_layout Labeling
15250 \labelwidthstring MMMMMMx
15251
15252 \series bold
15253 landscape
15254 \series default
15255  Simply changes the page dimensions to those of a landscape page but doesn't
15256  do any rotation.
15257  Thus if you use this option you need to use an external program to rotate
15258  each page or feed your paper through your printer as landscape.
15259  Note that this option effectively reverses the roles of the 
15260 \family sans
15261 Foilhead
15262 \family default
15263  and 
15264 \family sans
15265 Rotatefoilhead
15266 \family default
15267  environments (don't worry these are described in the next section).
15268 \end_layout
15269
15270 \begin_layout Labeling
15271 \labelwidthstring MMMMMMx
15272
15273 \series bold
15274 leqno
15275 \series default
15276  Equation numbers on the left.
15277 \end_layout
15278
15279 \begin_layout Labeling
15280 \labelwidthstring MMMMMMx
15281
15282 \series bold
15283 fleqn
15284 \series default
15285  Flush-left equations.
15286 \end_layout
15287
15288 \begin_layout Subsection
15289 Supported Environments
15290 \end_layout
15291
15292 \begin_layout Standard
15293 Most of the environments commonly supported in other classes are also supported
15294  by the 
15295 \family sans
15296 foils
15297 \family default
15298  class.
15299  There are several additional environments provided by 
15300 \family sans
15301 Foil\SpecialChar TeX
15302
15303 \family default
15304  as well as a couple added by \SpecialChar LyX
15305 .
15306  The following environments are shared with other classes:
15307 \end_layout
15308
15309 \begin_layout Standard
15310 \begin_inset Flex Multiple Columns
15311 status open
15312
15313 \begin_layout Itemize
15314
15315 \family sans
15316 Standard
15317 \end_layout
15318
15319 \begin_layout Itemize
15320
15321 \family sans
15322 Itemize
15323 \end_layout
15324
15325 \begin_layout Itemize
15326
15327 \family sans
15328 Enumerate
15329 \end_layout
15330
15331 \begin_layout Itemize
15332
15333 \family sans
15334 Description
15335 \end_layout
15336
15337 \begin_layout Itemize
15338
15339 \family sans
15340 List
15341 \end_layout
15342
15343 \begin_layout Itemize
15344
15345 \family sans
15346 \SpecialChar LyX
15347 -Code
15348 \end_layout
15349
15350 \begin_layout Itemize
15351
15352 \family sans
15353 Verse
15354 \end_layout
15355
15356 \begin_layout Itemize
15357
15358 \family sans
15359 Quote
15360 \end_layout
15361
15362 \begin_layout Itemize
15363
15364 \family sans
15365 Quotation
15366 \end_layout
15367
15368 \begin_layout Itemize
15369
15370 \family sans
15371 TitleAuthor
15372 \end_layout
15373
15374 \begin_layout Itemize
15375
15376 \family sans
15377 Date
15378 \end_layout
15379
15380 \begin_layout Itemize
15381
15382 \family sans
15383 Abstract
15384 \end_layout
15385
15386 \begin_layout Itemize
15387
15388 \family sans
15389 Bibliography
15390 \end_layout
15391
15392 \begin_layout Itemize
15393
15394 \family sans
15395 Address
15396 \end_layout
15397
15398 \begin_layout Itemize
15399
15400 \family sans
15401 RightAddress
15402 \end_layout
15403
15404 \end_inset
15405
15406
15407 \end_layout
15408
15409 \begin_layout Standard
15410 That is, all the major environments apart from the sectioning environments.
15411  Since foils are essentially self-contained sections, with a title and body,
15412  
15413 \family sans
15414 Foil\SpecialChar TeX
15415
15416 \family default
15417  provides specific commands for starting new foils and these are:
15418 \end_layout
15419
15420 \begin_layout Itemize
15421
15422 \family sans
15423 Foilhead
15424 \end_layout
15425
15426 \begin_layout Itemize
15427
15428 \family sans
15429 Rotatefoilhead
15430 \end_layout
15431
15432 \begin_layout Standard
15433 \SpecialChar LyX
15434  also provides slightly modified versions of these two environments called:
15435 \end_layout
15436
15437 \begin_layout Itemize
15438
15439 \family sans
15440 ShortFoilhead
15441 \end_layout
15442
15443 \begin_layout Itemize
15444
15445 \family sans
15446 ShortRotatefoilhead
15447 \end_layout
15448
15449 \begin_layout Standard
15450 and the differences will be explained in the next section.
15451 \end_layout
15452
15453 \begin_layout Standard
15454 Since foils are often used in presenting ideas or new theorems and such
15455  
15456 \family sans
15457 Foil\SpecialChar TeX
15458
15459 \family default
15460  also provides a comprehensive box of goodies for presenting them:
15461 \end_layout
15462
15463 \begin_layout Standard
15464 \begin_inset Flex Multiple Columns
15465 status open
15466
15467 \begin_layout Itemize
15468
15469 \family sans
15470 Theorem
15471 \end_layout
15472
15473 \begin_layout Itemize
15474
15475 \family sans
15476 Lemma
15477 \end_layout
15478
15479 \begin_layout Itemize
15480
15481 \family sans
15482 Corollary
15483 \end_layout
15484
15485 \begin_layout Itemize
15486
15487 \family sans
15488 Proposition
15489 \end_layout
15490
15491 \begin_layout Itemize
15492
15493 \family sans
15494 Definition
15495 \end_layout
15496
15497 \begin_layout Itemize
15498
15499 \family sans
15500 Proof
15501 \end_layout
15502
15503 \begin_layout Itemize
15504
15505 \family sans
15506 Theorem*
15507 \end_layout
15508
15509 \begin_layout Itemize
15510
15511 \family sans
15512 Lemma*
15513 \end_layout
15514
15515 \begin_layout Itemize
15516
15517 \family sans
15518 Corollary*
15519 \end_layout
15520
15521 \begin_layout Itemize
15522
15523 \family sans
15524 Proposition*
15525 \end_layout
15526
15527 \begin_layout Itemize
15528
15529 \family sans
15530 Definition*
15531 \end_layout
15532
15533 \end_inset
15534
15535
15536 \end_layout
15537
15538 \begin_layout Standard
15539 The starred versions are unnumbered while the unstarred versions are numbered.
15540  There are also two list environments added by \SpecialChar LyX
15541  and these are:
15542 \end_layout
15543
15544 \begin_layout Itemize
15545
15546 \family sans
15547 TickList
15548 \end_layout
15549
15550 \begin_layout Itemize
15551
15552 \family sans
15553 CrossList
15554 \end_layout
15555
15556 \begin_layout Standard
15557
15558 \family sans
15559 Foil\SpecialChar TeX
15560
15561 \family default
15562  provides some powerful header and footer capabilities that are best set
15563  in the preamble although they may be set at any point in a document.
15564  If you want to change these settings in your document the best place to
15565  do so is at the very top of a foil, i.
15566 \begin_inset space \thinspace{}
15567 \end_inset
15568
15569 e.
15570 \emph on
15571
15572 \begin_inset space \space{}
15573 \end_inset
15574
15575
15576 \emph default
15577 straight after the foilhead.
15578 \end_layout
15579
15580 \begin_layout Standard
15581 For this purpose, the following command styles are provided [
15582 \shape smallcaps
15583 Martin Vermeer
15584 \shape default
15585 ]:
15586 \end_layout
15587
15588 \begin_layout Standard
15589 \begin_inset Flex Multiple Columns
15590 status open
15591
15592 \begin_layout Itemize
15593
15594 \family sans
15595 My
15596 \begin_inset space ~
15597 \end_inset
15598
15599 Logo
15600 \end_layout
15601
15602 \begin_layout Itemize
15603
15604 \family sans
15605 Restriction
15606 \end_layout
15607
15608 \begin_layout Itemize
15609
15610 \family sans
15611 Right
15612 \begin_inset space ~
15613 \end_inset
15614
15615 Footer
15616 \end_layout
15617
15618 \begin_layout Itemize
15619
15620 \family sans
15621 Right
15622 \begin_inset space ~
15623 \end_inset
15624
15625 Header
15626 \end_layout
15627
15628 \begin_layout Itemize
15629
15630 \family sans
15631 Left
15632 \begin_inset space ~
15633 \end_inset
15634
15635 Header
15636 \end_layout
15637
15638 \begin_deeper
15639 \begin_layout Plain Layout
15640 \begin_inset space ~
15641 \end_inset
15642
15643
15644 \end_layout
15645
15646 \end_deeper
15647 \end_inset
15648
15649
15650 \end_layout
15651
15652 \begin_layout Standard
15653 There are also a few commands provided by 
15654 \family sans
15655 Foil\SpecialChar TeX
15656
15657 \family default
15658  that aren't directly supported by \SpecialChar LyX
15659  but I'll tell you what they do and how
15660  to use them in section
15661 \begin_inset space ~
15662 \end_inset
15663
15664
15665 \begin_inset CommandInset ref
15666 LatexCommand ref
15667 reference "sec:unsuppfoils"
15668
15669 \end_inset
15670
15671 .
15672 \end_layout
15673
15674 \begin_layout Subsection
15675 Building a Set of Foils
15676 \end_layout
15677
15678 \begin_layout Standard
15679 This section will give a simple introduction to using the different environments
15680  to build a set of foils.
15681  If you want to see an example set of foils, take a look at the 
15682 \family typewriter
15683 Foils.lyx
15684 \family default
15685  file you find in \SpecialChar LyX
15686 's 
15687 \family typewriter
15688 examples
15689 \family default
15690  folder.
15691 \end_layout
15692
15693 \begin_layout Subsubsection
15694 Give It a Title Page
15695 \end_layout
15696
15697 \begin_layout Standard
15698 Unlike other classes that provide 
15699 \family sans
15700 Title
15701 \family default
15702
15703 \family sans
15704 Author
15705 \family default
15706
15707 \family sans
15708 Date
15709 \family default
15710  and 
15711 \family sans
15712 Abstract
15713 \family default
15714  environments, 
15715 \family sans
15716 foils
15717 \family default
15718  creates the title on a page of its own.
15719  If you leave out the 
15720 \family sans
15721 Date
15722 \family default
15723  environment \SpecialChar LaTeX
15724  will substitute the current date (every time you regenerate
15725  the output).
15726 \end_layout
15727
15728 \begin_layout Subsubsection
15729 Start a New Foil
15730 \end_layout
15731
15732 \begin_layout Standard
15733 As I mentioned earlier, there are four ways of starting a new foil.
15734  For portrait foils you should use 
15735 \family sans
15736 Foilhead
15737 \family default
15738  or 
15739 \family sans
15740 ShortFoilhead.
15741
15742 \family default
15743  The difference between these two environments is the amount of space between
15744  the title of the foil (the foilhead) and the body of the foil.
15745 \end_layout
15746
15747 \begin_layout Standard
15748 Landscape foils are generated using the 
15749 \family sans
15750 Rotatefoilhead
15751 \family default
15752  and 
15753 \family sans
15754 ShortRotatefoilhead
15755 \family default
15756  environments.
15757  Again the only difference is the spacing between foilhead and body.
15758  Both of the short versions have 0.5
15759 \begin_inset space ~
15760 \end_inset
15761
15762 inches less separation between the foilhead and the body.
15763  
15764 \end_layout
15765
15766 \begin_layout Standard
15767 One problem with the support for landscape foils is the requirement that
15768  you have to use the 
15769 \family typewriter
15770 dvips
15771 \family default
15772  driver to generate the PostScript output otherwise the foils won't be rotated.
15773  It is possible to get landscape foils even if you haven't got the 
15774 \family typewriter
15775 dvips
15776 \family default
15777  driver provided you can feed your foils sideways through your printer ;-)
15778 \end_layout
15779
15780 \begin_layout Subsubsection
15781 Theorems, Lemmas, Proofs and more
15782 \end_layout
15783
15784 \begin_layout Standard
15785 You can't have two of the same type of these environments directly following
15786  each other.
15787  If you use a normal paragraph break, , you will just be extending the previous
15788  environment as if you had merged the two environments together.
15789  Rather than that, you need to insert a so-called separator.
15790  Please refer to the section entitled 
15791 \emph on
15792 Separate Nestings
15793 \emph default
15794  in the 
15795 \emph on
15796 User's Guide
15797 \emph default
15798 .
15799 \end_layout
15800
15801 \begin_layout Subsubsection
15802 Lists
15803 \end_layout
15804
15805 \begin_layout Standard
15806 You get all the commonly supported list styles found in other classes as
15807  well as two new ones.
15808  I'll only describe the new ones here.
15809  If you want to find out more about the other list environments check out
15810  the 
15811 \emph on
15812 User's Guide.
15813
15814 \emph default
15815  If you intend to use itemized lists you might also want to read about the
15816  
15817 \family sans
15818 Itemize
15819 \begin_inset space ~
15820 \end_inset
15821
15822 Bullet
15823 \begin_inset space ~
15824 \end_inset
15825
15826 Selection
15827 \family default
15828  dialog described above in section
15829 \begin_inset space ~
15830 \end_inset
15831
15832
15833 \begin_inset CommandInset ref
15834 LatexCommand ref
15835 reference "sec:bullet"
15836
15837 \end_inset
15838
15839 .
15840 \end_layout
15841
15842 \begin_layout Standard
15843 The two new list styles, 
15844 \family sans
15845 TickList
15846 \family default
15847  and 
15848 \family sans
15849 CrossList
15850 \family default
15851 , are designed to make it easier for you to create lists of do's and don'ts
15852  or right and wrong by providing dedicated environments that use a tick
15853  or a cross as the label of the list.
15854  These lists are in fact dedicated variants of the 
15855 \family sans
15856 Itemize
15857 \family default
15858  environment.
15859  They do however require that you have the 
15860 \family typewriter
15861 psnfss
15862 \family default
15863  packages installed.
15864 \end_layout
15865
15866 \begin_layout Subsubsection
15867 Figures and Tables
15868 \end_layout
15869
15870 \begin_layout Standard
15871
15872 \family sans
15873 Foil\SpecialChar TeX
15874
15875 \family default
15876  redefines the floating tables and figures so that they appear exactly where
15877  they are in the text rather than pushing them to the top of the page or
15878  to some user specified location.
15879  In fact if you change the float placement settings they are simply ignored.
15880 \end_layout
15881
15882 \begin_layout Subsubsection
15883 Page Headers and Footers
15884 \begin_inset CommandInset label
15885 LatexCommand label
15886 name "sec:foilfoot"
15887
15888 \end_inset
15889
15890
15891 \end_layout
15892
15893 \begin_layout Standard
15894
15895 \family sans
15896 My
15897 \begin_inset space ~
15898 \end_inset
15899
15900 Logo
15901 \family default
15902  and 
15903 \family sans
15904 Restriction
15905 \family default
15906  are two commands used to control the left-footer text string.
15907  The first is meant to allow you to include a graphic logo on your foils
15908  and defaults to 
15909 \begin_inset Quotes eld
15910 \end_inset
15911
15912 -Typeset by 
15913 \family sans
15914 Foil\SpecialChar TeX
15915
15916 \family default
15917 -
15918 \begin_inset Quotes erd
15919 \end_inset
15920
15921 .
15922  While the second is meant to provide a classification for the audience,
15923  
15924 \emph on
15925 e.
15926 \begin_inset space \thinspace{}
15927 \end_inset
15928
15929 g.
15930 \emph default
15931
15932 \begin_inset space \space{}
15933 \end_inset
15934
15935 Confidential.
15936  It is empty by default.
15937 \end_layout
15938
15939 \begin_layout Standard
15940 The remaining page corners can be filled by 
15941 \family sans
15942 Right
15943 \begin_inset space ~
15944 \end_inset
15945
15946 Footer
15947 \family default
15948  (which defaults to page numbers), 
15949 \family sans
15950 Right
15951 \begin_inset space ~
15952 \end_inset
15953
15954 Header
15955 \family default
15956  (top right) and 
15957 \family sans
15958 Left
15959 \begin_inset space ~
15960 \end_inset
15961
15962 Header
15963 \family default
15964  (top left).
15965 \end_layout
15966
15967 \begin_layout Subsection
15968 Unsupported 
15969 \family sans
15970 Foil\SpecialChar TeX
15971
15972 \family default
15973  Goodies
15974 \begin_inset CommandInset label
15975 LatexCommand label
15976 name "sec:unsuppfoils"
15977
15978 \end_inset
15979
15980
15981 \end_layout
15982
15983 \begin_layout Standard
15984 All the commands mentioned below need to be set in a 
15985 \family sans
15986 \SpecialChar LaTeX
15987
15988 \family default
15989  environment or as 
15990 \family sans
15991 \SpecialChar TeX
15992
15993 \family default
15994  within another environment.
15995 \end_layout
15996
15997 \begin_layout Subsubsection
15998 Lengths
15999 \end_layout
16000
16001 \begin_layout Standard
16002 All lengths are adjusted using the 
16003 \family typewriter
16004
16005 \backslash
16006 setlength{
16007 \family default
16008 \emph on
16009 lengthname
16010 \family typewriter
16011 \emph default
16012 }{
16013 \family default
16014 \emph on
16015 newlength
16016 \family typewriter
16017 \emph default
16018 }
16019 \family default
16020  command.
16021  Where 
16022 \emph on
16023 lengthname
16024 \emph default
16025  should be replaced by the name given to the length you want to change and
16026  
16027 \emph on
16028 newlength
16029 \emph default
16030  is the length value.
16031  All lengths should be specified in units of length such as inches (
16032 \family typewriter
16033 in
16034 \family default
16035 ), millimeters (
16036 \family typewriter
16037 mm
16038 \family default
16039 ) or points (
16040 \family typewriter
16041 pt
16042 \family default
16043 ) or relative to some document or font-based length such as 
16044 \family typewriter
16045
16046 \backslash
16047 textwidth
16048 \family default
16049 .
16050  
16051 \end_layout
16052
16053 \begin_layout Standard
16054 It's possible to change the spacing between a foilhead and the body of the
16055  foil by adjusting the length specified by 
16056 \family typewriter
16057
16058 \backslash
16059 foilheadskip
16060 \family default
16061 .
16062  For example, to make 
16063 \emph on
16064 all
16065 \emph default
16066  foilheads 0.5
16067 \begin_inset space \space{}
16068 \end_inset
16069
16070 in closer to their bodies put the following in the preamble: 
16071 \family typewriter
16072
16073 \backslash
16074 setlength{
16075 \backslash
16076 foilheadskip}{-0.5in}
16077 \end_layout
16078
16079 \begin_layout Standard
16080 The spacings around floats can be adjusted by setting these lengths:
16081 \end_layout
16082
16083 \begin_layout Labeling
16084 \labelwidthstring MMMMMMMMMMM
16085
16086 \family typewriter
16087
16088 \backslash
16089 abovefloatskip
16090 \family default
16091  Separation between the text and the top of the float
16092 \end_layout
16093
16094 \begin_layout Labeling
16095 \labelwidthstring MMMMMMMMMMM
16096
16097 \family typewriter
16098
16099 \backslash
16100 abovecaptionskip
16101 \family default
16102  Separation between the float and the caption
16103 \end_layout
16104
16105 \begin_layout Labeling
16106 \labelwidthstring MMMMMMMMMMM
16107
16108 \family typewriter
16109
16110 \backslash
16111 belowcaptionskip
16112 \family default
16113  Separation between the caption and the following text
16114 \end_layout
16115
16116 \begin_layout Labeling
16117 \labelwidthstring MMMMMMMMMMM
16118
16119 \family typewriter
16120
16121 \backslash
16122 captionwidth
16123 \family default
16124  You can make the captions narrower than the surrounding text by adjusting
16125  this length.
16126  Best done relative to 
16127 \family typewriter
16128
16129 \backslash
16130 textwidth
16131 \family default
16132 .
16133 \end_layout
16134
16135 \begin_layout Standard
16136 There are also several title page related lengths that you may find useful
16137  if you have a long title or several authors:
16138 \end_layout
16139
16140 \begin_layout Labeling
16141 \labelwidthstring MMMMMMMMMMM
16142
16143 \family typewriter
16144
16145 \backslash
16146 abovetitleskip
16147 \family default
16148  Separation from headers to 
16149 \family sans
16150 Title
16151 \end_layout
16152
16153 \begin_layout Labeling
16154 \labelwidthstring MMMMMMMMMMM
16155
16156 \family typewriter
16157
16158 \backslash
16159 titleauthorskip
16160 \family default
16161  between 
16162 \family sans
16163 Title
16164 \family default
16165  and 
16166 \family sans
16167 Author
16168 \family default
16169  environments
16170 \end_layout
16171
16172 \begin_layout Labeling
16173 \labelwidthstring MMMMMMMMMMM
16174
16175 \family typewriter
16176
16177 \backslash
16178 authorauthorskip
16179 \family default
16180  between multiple 
16181 \family sans
16182 Author
16183 \family default
16184  lines
16185 \end_layout
16186
16187 \begin_layout Labeling
16188 \labelwidthstring MMMMMMMMMMM
16189
16190 \family typewriter
16191
16192 \backslash
16193 authordateskip
16194 \family default
16195  between the 
16196 \family sans
16197 Author
16198 \family default
16199  and the 
16200 \family sans
16201 Date
16202 \end_layout
16203
16204 \begin_layout Labeling
16205 \labelwidthstring MMMMMMMMMMM
16206
16207 \family typewriter
16208
16209 \backslash
16210 dateabstractskip
16211 \family default
16212  between the 
16213 \family sans
16214 Date
16215 \family default
16216  and the 
16217 \family sans
16218 Abstract
16219 \end_layout
16220
16221 \begin_layout Standard
16222 The last length related command affects all the list environments.
16223  If you place 
16224 \family typewriter
16225
16226 \backslash
16227 zerolistvertdimens
16228 \family default
16229  
16230 \emph on
16231 inside
16232 \emph default
16233  a list environment then all the vertical spacing between the list items
16234  is removed.
16235  Note that this is a command not a length so it doesn't require 
16236 \family typewriter
16237
16238 \backslash
16239 setlength
16240 \family default
16241  like the stuff mentioned above.
16242 \end_layout
16243
16244 \begin_layout Subsubsection
16245 Headers and Footers
16246 \end_layout
16247
16248 \begin_layout Standard
16249 The 
16250 \family typewriter
16251
16252 \backslash
16253 LogoOn
16254 \family default
16255  and 
16256 \family typewriter
16257
16258 \backslash
16259 LogoOff
16260 \family default
16261  commands control whether the logo in the 
16262 \family sans
16263 MyLogo
16264 \family default
16265  definition appear on a given page.
16266  If you put 
16267 \family typewriter
16268
16269 \backslash
16270 LogoOff
16271 \family default
16272  in the preamble then none of the foils will have the logo on them.
16273  If you don't want the logo on a particular page place the 
16274 \family typewriter
16275
16276 \backslash
16277 LogoOff
16278 \family default
16279  directly after the foilhead of that page and the 
16280 \family typewriter
16281
16282 \backslash
16283 LogoOn
16284 \family default
16285  directly after the next foilhead.
16286 \end_layout
16287
16288 \begin_layout Standard
16289 If you decide to use the 
16290 \family sans
16291 fancy
16292 \family default
16293  page style setting in the 
16294 \family sans
16295 Document
16296 \begin_inset space ~
16297 \end_inset
16298
16299 Layout
16300 \family default
16301  dialog you should probably add 
16302 \family typewriter
16303
16304 \backslash
16305 let
16306 \backslash
16307 headwidth
16308 \backslash
16309 textwidth
16310 \family default
16311  to your preamble so headers and footers on landscape pages are correctly
16312  placed when rotated.
16313  This is due to some clashes between the page layouts provided by the 
16314 \family sans
16315 fancyheadings
16316 \family default
16317  package and the 
16318 \family sans
16319 foils
16320 \family default
16321  class.
16322 \end_layout
16323
16324 \begin_layout Section
16325
16326 \change_deleted 564990737 1669755802
16327 ijmpc and ijmpd
16328 \end_layout
16329
16330 \begin_layout Standard
16331
16332 \change_deleted 564990737 1669755802
16333 by 
16334 \noun on
16335 Panayotis Papasotiriou
16336 \end_layout
16337
16338 \begin_layout Subsection
16339
16340 \change_deleted 564990737 1669755802
16341 Overview
16342 \end_layout
16343
16344 \begin_layout Standard
16345
16346 \change_deleted 564990737 1669755802
16347 The ijmpc package is a set of macros that facilitates electronic manuscript
16348  submission to the 
16349 \emph on
16350 International Journal of Modern Physics C
16351 \emph default
16352 .
16353  Similarly, the ijmpd package is for creating manuscripts to be submitted
16354  to the 
16355 \emph on
16356 International Journal of Modern Physics D
16357 \emph default
16358 .
16359  Both journals are published by World Scientific.
16360  The corresponding document classes are named 
16361 \family typewriter
16362 ws-ijmpc.cls
16363 \family default
16364  and 
16365 \family typewriter
16366 ws-ijmpd.cls
16367 \family default
16368 , respectively.
16369  These files, together with instructions for the authors, can be downloaded
16370  from the sites 
16371 \begin_inset Flex URL
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375
16376 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
16377 \end_layout
16378
16379 \end_inset
16380
16381  and 
16382 \begin_inset Flex URL
16383 status collapsed
16384
16385 \begin_layout Plain Layout
16386
16387 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
16388 \end_layout
16389
16390 \end_inset
16391
16392 .
16393  Both packages are modified versions of the standard 
16394 \begin_inset Quotes eld
16395 \end_inset
16396
16397 article
16398 \begin_inset Quotes erd
16399 \end_inset
16400
16401  package, and they are almost (but not exactly) identical.
16402  Most of their features are supported by \SpecialChar LyX
16403 .
16404  I have used \SpecialChar LyX
16405  successfully to write articles submitted to both journals
16406  without any problem.
16407 \end_layout
16408
16409 \begin_layout Subsection
16410
16411 \change_deleted 564990737 1669755802
16412 Writing a paper
16413 \end_layout
16414
16415 \begin_layout Standard
16416
16417 \change_deleted 564990737 1669755802
16418 As usual, the easiest way to write a paper is to start with a template.
16419  Click on 
16420 \family sans
16421 File\SpecialChar menuseparator
16422 New from
16423 \family default
16424  
16425 \family sans
16426 Template
16427 \family default
16428 , then choose the 
16429 \family typewriter
16430 ijmpc.lyx
16431 \family default
16432  or 
16433 \family typewriter
16434 ijmpd.lyx
16435 \family default
16436  template.
16437  This will give an (almost) empty document that includes the most common
16438  fields found in a manuscript.
16439  Simply overwrite the existing text (including the brackets, 
16440 \family typewriter
16441 <>
16442 \family default
16443 ) with your text.
16444  You should keep in mind the following remarks.
16445 \end_layout
16446
16447 \begin_layout Enumerate
16448
16449 \change_deleted 564990737 1669755802
16450 \SpecialChar LyX
16451  won't let you change the font size and the page style of the document,
16452  because such modifications are not allowed by both packages.
16453 \end_layout
16454
16455 \begin_layout Enumerate
16456
16457 \change_deleted 564990737 1669755802
16458 The language of the document should not be changed.
16459  Before previewing your paper, be sure that the babel package is not used.
16460  To do this, click on 
16461 \begin_inset Info
16462 type  "menu"
16463 arg   "dialog-show document"
16464 \end_inset
16465
16466  
16467 \family sans
16468 \SpecialChar menuseparator
16469 Language
16470 \family default
16471 , and select 
16472 \begin_inset Quotes eld
16473 \end_inset
16474
16475 None
16476 \begin_inset Quotes erd
16477 \end_inset
16478
16479  as 
16480 \family sans
16481 Language Package
16482 \family default
16483 .
16484 \end_layout
16485
16486 \begin_layout Enumerate
16487
16488 \change_deleted 564990737 1669755802
16489 The 
16490 \begin_inset Quotes eld
16491 \end_inset
16492
16493 Keywords
16494 \begin_inset Quotes erd
16495 \end_inset
16496
16497  style must be used to define keywords.
16498 \end_layout
16499
16500 \begin_layout Enumerate
16501
16502 \change_deleted 564990737 1669755802
16503 The ijmpc package provides a style named 
16504 \begin_inset Quotes eld
16505 \end_inset
16506
16507 Classification Codes
16508 \begin_inset Quotes erd
16509 \end_inset
16510
16511 , which can be used to define classification codes, such as PACS numbers.
16512  Note that this facility is not supported by the ijmpd package.
16513 \end_layout
16514
16515 \begin_layout Enumerate
16516
16517 \change_deleted 564990737 1669755802
16518 Several new environments are available: 
16519 \begin_inset Quotes eld
16520 \end_inset
16521
16522 Definition
16523 \begin_inset Quotes erd
16524 \end_inset
16525
16526
16527 \begin_inset Quotes eld
16528 \end_inset
16529
16530 Step
16531 \begin_inset Quotes erd
16532 \end_inset
16533
16534
16535 \begin_inset Quotes eld
16536 \end_inset
16537
16538 Example
16539 \begin_inset Quotes erd
16540 \end_inset
16541
16542
16543 \begin_inset Quotes eld
16544 \end_inset
16545
16546 Remark
16547 \begin_inset Quotes erd
16548 \end_inset
16549
16550
16551 \begin_inset Quotes eld
16552 \end_inset
16553
16554 Notation
16555 \begin_inset Quotes erd
16556 \end_inset
16557
16558
16559 \begin_inset Quotes eld
16560 \end_inset
16561
16562 Theorem
16563 \begin_inset Quotes erd
16564 \end_inset
16565
16566
16567 \begin_inset Quotes eld
16568 \end_inset
16569
16570 Proof
16571 \begin_inset Quotes erd
16572 \end_inset
16573
16574
16575 \begin_inset Quotes eld
16576 \end_inset
16577
16578 Corollary
16579 \begin_inset Quotes erd
16580 \end_inset
16581
16582
16583 \begin_inset Quotes eld
16584 \end_inset
16585
16586 Lemma
16587 \begin_inset Quotes erd
16588 \end_inset
16589
16590
16591 \begin_inset Quotes eld
16592 \end_inset
16593
16594 Proposition
16595 \begin_inset Quotes erd
16596 \end_inset
16597
16598
16599 \begin_inset Quotes eld
16600 \end_inset
16601
16602 Prop
16603 \begin_inset Quotes erd
16604 \end_inset
16605
16606
16607 \begin_inset Quotes eld
16608 \end_inset
16609
16610 Question
16611 \begin_inset Quotes erd
16612 \end_inset
16613
16614
16615 \begin_inset Quotes eld
16616 \end_inset
16617
16618 Claim
16619 \begin_inset Quotes erd
16620 \end_inset
16621
16622 , and 
16623 \begin_inset Quotes eld
16624 \end_inset
16625
16626 Conjecture
16627 \begin_inset Quotes erd
16628 \end_inset
16629
16630 .
16631  Their use is more or less obvious.
16632  \SpecialChar LyX
16633  supports all these environments; it will use the proper label, text style,
16634  and numbering scheme for each of them.
16635 \end_layout
16636
16637 \begin_layout Enumerate
16638
16639 \change_deleted 564990737 1669755802
16640 Both packages use basic citations; the natbib package should not be used.
16641  In \SpecialChar LyX
16642 , citation references are shown as usual; in the output, citations are
16643  shown as superscripts.
16644  If you want to use a citation as normal text, you should use the 
16645 \family typewriter
16646 refcite
16647 \family default
16648  command, e.
16649 \begin_inset space \thinspace{}
16650 \end_inset
16651
16652 g.
16653 \begin_inset space \space{}
16654 \end_inset
16655
16656
16657 \begin_inset Quotes eld
16658 \end_inset
16659
16660 See Ref.
16661 \begin_inset space \space{}
16662 \end_inset
16663
16664
16665 \family typewriter
16666
16667 \backslash
16668 refcite{key}
16669 \family default
16670
16671 \begin_inset Quotes erd
16672 \end_inset
16673
16674 .
16675 \end_layout
16676
16677 \begin_layout Enumerate
16678
16679 \change_deleted 564990737 1669755802
16680 There is no 
16681 \begin_inset Quotes eld
16682 \end_inset
16683
16684 Acknowledgments
16685 \begin_inset Quotes erd
16686 \end_inset
16687
16688  section in both packages.
16689  To put acknowledgments, just use the 
16690 \begin_inset Quotes eld
16691 \end_inset
16692
16693 Section*
16694 \begin_inset Quotes erd
16695 \end_inset
16696
16697  environment.
16698 \end_layout
16699
16700 \begin_layout Enumerate
16701
16702 \change_deleted 564990737 1669755802
16703 Appendices may be added to the paper, 
16704 \emph on
16705 after
16706 \emph default
16707  the Acknowledgments and 
16708 \shape italic
16709 before
16710 \shape default
16711  the References.
16712  \SpecialChar LyX
16713  provides a special environment, called 
16714 \begin_inset Quotes eld
16715 \end_inset
16716
16717 Appendices Section
16718 \begin_inset Quotes erd
16719 \end_inset
16720
16721  which marks the beginning of the appendices.
16722  This environment should be left blank; it just sends a \SpecialChar LaTeX
16723  command, but nothing
16724  is really printed.
16725  In \SpecialChar LyX
16726 , the word 
16727 \begin_inset Quotes eld
16728 \end_inset
16729
16730 Appendix
16731 \begin_inset Quotes erd
16732 \end_inset
16733
16734  is printed with blue letters, as a signal that all sections after that
16735  point are appendices.
16736  To write an appendix, use the 
16737 \begin_inset Quotes eld
16738 \end_inset
16739
16740 Appendix
16741 \begin_inset Quotes erd
16742 \end_inset
16743
16744  environment.
16745  \SpecialChar LyX
16746  will number each appendix with capital letters, as required by both journals.
16747  Note that 
16748 \begin_inset Quotes eld
16749 \end_inset
16750
16751 Appendices Section
16752 \begin_inset Quotes erd
16753 \end_inset
16754
16755  
16756 \emph on
16757 must
16758 \emph default
16759  be present before the first appendix; if not, all appendices will be numbered
16760  as normal sections in the output.
16761 \end_layout
16762
16763 \begin_layout Enumerate
16764
16765 \change_deleted 564990737 1669755802
16766 The ijmpc and the ijmpd packages use the 
16767 \family typewriter
16768 tbl
16769 \family default
16770  command to implement table captions.
16771  As a result, a table created by \SpecialChar LyX
16772  is printed correctly, but its caption
16773  is ignored.
16774  However, you can use some \SpecialChar TeX
16775  code to overcome this problem, so that captions
16776  are printed as expected.
16777  To do so, create a float table as usual, remove the caption, and replace
16778  it with the \SpecialChar TeX
16779  code 
16780 \family typewriter
16781
16782 \backslash
16783 tbl{
16784 \emph on
16785 your table caption
16786 \emph default
16787 }{
16788 \family default
16789  (sic); you must also the \SpecialChar TeX
16790  code 
16791 \family typewriter
16792 }
16793 \family default
16794  immediately after the tabular material.
16795  Study the example table included in the template files to see how this
16796  trick is implemented.
16797  Alternatively, If you need table captions, you should implement the whole
16798  table float in a 
16799 \family typewriter
16800 .tex
16801 \family default
16802  file, then include this file to the \SpecialChar LyX
16803  document (
16804 \family sans
16805 Insert\SpecialChar menuseparator
16806 File\SpecialChar menuseparator
16807 Child
16808 \begin_inset space ~
16809 \end_inset
16810
16811 Document
16812 \family default
16813 ).
16814  Details on how to create a table float can be found in the files 
16815 \family typewriter
16816 ws-ijmpc.tex
16817 \family default
16818  and 
16819 \family typewriter
16820 ws-ijmpd.tex
16821 \family default
16822 , included in the corresponding packages.
16823 \end_layout
16824
16825 \begin_layout Subsection
16826
16827 \change_deleted 564990737 1669755802
16828 Preparing a paper for submission
16829 \end_layout
16830
16831 \begin_layout Standard
16832
16833 \change_deleted 564990737 1669755802
16834 Before you submit your paper you must export the \SpecialChar LyX
16835  document as a \SpecialChar LaTeX
16836  file (
16837 \family sans
16838 File\SpecialChar menuseparator
16839 Export\SpecialChar menuseparator
16840 \SpecialChar LaTeX
16841
16842 \family default
16843 )
16844 \begin_inset Foot
16845 status open
16846
16847 \begin_layout Plain Layout
16848 Actually you have the choice between \SpecialChar LaTeX
16849  (plain) and pdflatex.
16850  If you intend to use pdflatex to prepare the paper, you should use the
16851  pdflatex option so that included graphics are converted to PDF format,
16852  ready for use by pdflatex.
16853 \end_layout
16854
16855 \end_inset
16856
16857 , then make the following changes to the resulting 
16858 \family typewriter
16859 .tex
16860 \family default
16861  file.
16862 \end_layout
16863
16864 \begin_layout Enumerate
16865
16866 \change_deleted 564990737 1669755802
16867 Remove the comment lines before the 
16868 \family typewriter
16869
16870 \backslash
16871 documentclass
16872 \family default
16873  command.
16874 \end_layout
16875
16876 \begin_layout Enumerate
16877
16878 \change_deleted 564990737 1669755802
16879 Remove everything between (and including) the 
16880 \family typewriter
16881
16882 \backslash
16883 makeatletter
16884 \family default
16885  and 
16886 \family typewriter
16887
16888 \backslash
16889 makeatother
16890 \family default
16891  commands, except for any commands you specifically put into the \SpecialChar LaTeX
16892  preamble.
16893 \end_layout
16894
16895 \begin_layout Standard
16896
16897 \change_deleted 564990737 1669755802
16898 The modified 
16899 \family typewriter
16900 .tex
16901 \family default
16902  file should be saved and processed through \SpecialChar LaTeX
16903  as many times as necessary.
16904  You may also want to check the resulting 
16905 \family typewriter
16906 .dvi
16907 \family default
16908  document.
16909 \change_unchanged
16910
16911 \end_layout
16912
16913 \begin_layout Section
16914
16915 \change_deleted 564990737 1669801478
16916 iopart
16917 \end_layout
16918
16919 \begin_layout Standard
16920
16921 \change_deleted 564990737 1669801478
16922 by 
16923 \noun on
16924 Uwe Stöhr
16925 \end_layout
16926
16927 \begin_layout Subsection
16928
16929 \change_deleted 564990737 1669801478
16930 Overview
16931 \end_layout
16932
16933 \begin_layout Standard
16934
16935 \change_deleted 564990737 1669801478
16936 The iopart package provides a document class to create electronic manuscript
16937  submission to the journals published by the Institute of Physics.
16938  Instructions for the authors how to create a paper using the iopart class
16939  can be downloaded together with the iopart package from the site 
16940 \begin_inset Flex URL
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944
16945 ftp://ftp.iop.org/pub/journals/latex2e
16946 \end_layout
16947
16948 \end_inset
16949
16950 .
16951 \end_layout
16952
16953 \begin_layout Subsection
16954
16955 \change_deleted 564990737 1669801478
16956 Writing a paper
16957 \end_layout
16958
16959 \begin_layout Standard
16960
16961 \change_deleted 564990737 1669801478
16962 The easiest way to write a paper is to start with the template 
16963 \emph on
16964 IOP-article.lyx
16965 \emph default
16966  that is available via 
16967 \family sans
16968 File\SpecialChar menuseparator
16969 New From Template
16970 \family default
16971  The template explains how to use the special text environments.
16972  Here are the most important advices:
16973 \end_layout
16974
16975 \begin_layout Itemize
16976
16977 \change_deleted 564990737 1669801478
16978 To be able to compile your document to a PDF, PS, or DVI, ensure that the
16979  no AMS packages are loaded in 
16980 \family sans
16981 Document\SpecialChar menuseparator
16982 Settings\SpecialChar menuseparator
16983 Math Options
16984 \family default
16985 !
16986 \end_layout
16987
16988 \begin_layout Itemize
16989
16990 \change_deleted 564990737 1669801478
16991
16992 \size normal
16993 The title environment defines the kind of your paper.
16994  So use one of the following environments for the title:
16995 \end_layout
16996
16997 \begin_deeper
16998 \begin_layout Itemize
16999
17000 \change_deleted 564990737 1669801478
17001
17002 \family sans
17003 \size normal
17004 Title
17005 \family default
17006  for a Paper
17007 \end_layout
17008
17009 \begin_layout Itemize
17010
17011 \change_deleted 564990737 1669801478
17012
17013 \family sans
17014 \size normal
17015 Review
17016 \family default
17017  for a Review
17018 \end_layout
17019
17020 \begin_layout Itemize
17021
17022 \change_deleted 564990737 1669801478
17023
17024 \family sans
17025 \size normal
17026 Topical
17027 \family default
17028  for a Topical review
17029 \end_layout
17030
17031 \begin_layout Itemize
17032
17033 \change_deleted 564990737 1669801478
17034
17035 \family sans
17036 \size normal
17037 Comment
17038 \family default
17039  for a Comment
17040 \end_layout
17041
17042 \begin_layout Itemize
17043
17044 \change_deleted 564990737 1669801478
17045
17046 \family sans
17047 \size normal
17048 Note
17049 \family default
17050  for a Note
17051 \end_layout
17052
17053 \begin_layout Itemize
17054
17055 \change_deleted 564990737 1669801478
17056
17057 \family sans
17058 \size normal
17059 Paper
17060 \family default
17061  for a Paper (same as Title)
17062 \end_layout
17063
17064 \begin_layout Itemize
17065
17066 \change_deleted 564990737 1669801478
17067
17068 \family sans
17069 \size normal
17070 Prelim
17071 \family default
17072  for a Preliminary communication
17073 \end_layout
17074
17075 \begin_layout Itemize
17076
17077 \change_deleted 564990737 1669801478
17078
17079 \family sans
17080 \size normal
17081 Rapid
17082 \family default
17083  for a Rapid communication
17084 \end_layout
17085
17086 \begin_layout Itemize
17087
17088 \change_deleted 564990737 1669801478
17089
17090 \family sans
17091 \size normal
17092 Letter
17093 \family default
17094  for a Letter to the editor
17095 \end_layout
17096
17097 \end_deeper
17098 \begin_layout Itemize
17099
17100 \change_deleted 564990737 1669801478
17101
17102 \size normal
17103 All title environments except of 
17104 \family sans
17105 Letter
17106 \family default
17107  can have an optional short title.
17108 \end_layout
17109
17110 \begin_layout Itemize
17111
17112 \change_deleted 564990737 1669801478
17113 There is a general title environment 
17114 \family sans
17115 Article
17116 \family default
17117  which is not directly supported by \SpecialChar LyX
17118 .
17119  This can be used as \SpecialChar TeX
17120  code when your document doesn't fit into one of the
17121  other title types.
17122 \end_layout
17123
17124 \begin_layout Standard
17125
17126 \change_deleted 564990737 1669801478
17127 For more informations like hints for special table and formula formatting,
17128  look at the IOP author guidelines.
17129 \change_unchanged
17130
17131 \end_layout
17132
17133 \begin_layout Section
17134
17135 \change_deleted 564990737 1670317155
17136 Kluwer
17137 \end_layout
17138
17139 \begin_layout Standard
17140
17141 \change_deleted 564990737 1670317155
17142 by 
17143 \noun on
17144 Panayotis Papasotiriou
17145 \end_layout
17146
17147 \begin_layout Subsection
17148
17149 \change_deleted 564990737 1670317155
17150 Overview
17151 \end_layout
17152
17153 \begin_layout Standard
17154
17155 \change_deleted 564990737 1670317155
17156 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
17157  that facilitates electronic manuscript submission to the journals they
17158  publish.
17159  Most known of them (at least in my domain of interest) are 
17160 \emph on
17161 Astrophysics and Space Science
17162 \emph default
17163  and 
17164 \emph on
17165 Solar Physics
17166 \emph default
17167 , but there are many others (see a complete list at 
17168 \begin_inset Flex URL
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172
17173 http://www.wkap.nl/jrnllist.htm/JRNLHOME
17174 \end_layout
17175
17176 \end_inset
17177
17178 ).
17179  The Kluwer package may be downloaded from the site 
17180 \begin_inset Flex URL
17181 status collapsed
17182
17183 \begin_layout Plain Layout
17184
17185 http://www.wkap.nl/kaphtml.htm/STYLEFILES
17186 \end_layout
17187
17188 \end_inset
17189
17190 .
17191  A complete user guide is contained in that package (but it can also be
17192  downloaded separately).
17193 \end_layout
17194
17195 \begin_layout Standard
17196
17197 \change_deleted 564990737 1670317155
17198 \SpecialChar LyX
17199  supports many features of the package but not everything.
17200  However, the \SpecialChar TeX
17201  code needed is reduced to some 
17202 \begin_inset Quotes eld
17203 \end_inset
17204
17205 peculiar
17206 \begin_inset Quotes erd
17207 \end_inset
17208
17209  commands of the package (see
17210 \begin_inset space ~
17211 \end_inset
17212
17213
17214 \begin_inset CommandInset ref
17215 LatexCommand ref
17216 reference "subsec:kluwer_peculiarities"
17217
17218 \end_inset
17219
17220 ).
17221  I have recently used \SpecialChar LyX
17222  to write an article submitted to the 
17223 \emph on
17224 Astrophysics and Space Science
17225 \emph default
17226  without any problem.
17227 \end_layout
17228
17229 \begin_layout Subsection
17230
17231 \change_deleted 564990737 1670317155
17232 Writing a paper
17233 \end_layout
17234
17235 \begin_layout Standard
17236
17237 \change_deleted 564990737 1670317155
17238 The easiest way to write a paper is to start with the Kluwer template file.
17239  Click on 
17240 \family sans
17241 File\SpecialChar menuseparator
17242 New from
17243 \family default
17244  
17245 \family sans
17246 Template
17247 \family default
17248 , then choose the 
17249 \family typewriter
17250 kluwer.lyx
17251 \family default
17252  template.
17253  This will give an (almost) empty document that includes the most common
17254  fields found in a manuscript and a short description of their use.
17255  As in most templates, simply overwrite the existing text (including the
17256  brackets, 
17257 \family typewriter
17258 <>
17259 \family default
17260 ) with the correct information.
17261 \end_layout
17262
17263 \begin_layout Subsection
17264
17265 \change_deleted 564990737 1670317155
17266 Preparing a paper for submission
17267 \end_layout
17268
17269 \begin_layout Standard
17270
17271 \change_deleted 564990737 1670317155
17272 As in the AAS\SpecialChar TeX
17273  package, before you submit your paper to a journal you must
17274  
17275 \begin_inset Quotes eld
17276 \end_inset
17277
17278 postprocess
17279 \begin_inset Quotes erd
17280 \end_inset
17281
17282  it as follows.
17283 \end_layout
17284
17285 \begin_layout Enumerate
17286
17287 \change_deleted 564990737 1670317155
17288 Export your paper as a \SpecialChar LaTeX
17289  file.
17290  To do this, click on 
17291 \family sans
17292 File\SpecialChar menuseparator
17293 Export\SpecialChar menuseparator
17294 \SpecialChar LaTeX
17295
17296 \family default
17297 .
17298  
17299 \end_layout
17300
17301 \begin_layout Enumerate
17302
17303 \change_deleted 564990737 1670317155
17304 Edit the resulting 
17305 \family typewriter
17306 .tex
17307 \family default
17308  file with a text editor and make the following changes
17309 \end_layout
17310
17311 \begin_deeper
17312 \begin_layout Enumerate
17313
17314 \change_deleted 564990737 1670317155
17315 remove the comment lines before the 
17316 \family typewriter
17317
17318 \backslash
17319 documentclass
17320 \family default
17321  command,
17322 \end_layout
17323
17324 \begin_layout Enumerate
17325
17326 \change_deleted 564990737 1670317155
17327 remove everything between (and including) the 
17328 \family typewriter
17329
17330 \backslash
17331 makeatletter
17332 \family default
17333  and 
17334 \family typewriter
17335
17336 \backslash
17337 makeatother
17338 \family default
17339  commands, except for any commands you specifically put into the \SpecialChar LaTeX
17340  preamble.
17341 \end_layout
17342
17343 \begin_layout Standard
17344
17345 \change_deleted 564990737 1670317155
17346 Save the resulting 
17347 \family typewriter
17348 .tex
17349 \family default
17350  file.
17351 \end_layout
17352
17353 \end_deeper
17354 \begin_layout Enumerate
17355
17356 \change_deleted 564990737 1670317155
17357 Run the 
17358 \family typewriter
17359 .tex
17360 \family default
17361  file through \SpecialChar LaTeX
17362  as many times as necessary (usually up to three).
17363 \end_layout
17364
17365 \begin_layout Enumerate
17366
17367 \change_deleted 564990737 1670317155
17368 View the resulting 
17369 \family typewriter
17370 .dvi
17371 \family default
17372  document using, e.
17373 \begin_inset space \thinspace{}
17374 \end_inset
17375
17376 g.
17377 \begin_inset space \space{}
17378 \end_inset
17379
17380
17381 \family sans
17382 xdvi
17383 \family default
17384 , and check if everything is OK (it should, if you didn't make any mistake).
17385 \end_layout
17386
17387 \begin_layout Subsection
17388
17389 \change_deleted 564990737 1670317155
17390 \begin_inset Quotes eld
17391 \end_inset
17392
17393 Peculiarities
17394 \begin_inset Quotes erd
17395 \end_inset
17396
17397  of the Kluwer package
17398 \begin_inset CommandInset label
17399 LatexCommand label
17400 name "subsec:kluwer_peculiarities"
17401
17402 \end_inset
17403
17404
17405 \end_layout
17406
17407 \begin_layout Standard
17408
17409 \change_deleted 564990737 1670317155
17410 The Kluwer package has the following 
17411 \begin_inset Quotes eld
17412 \end_inset
17413
17414 peculiarities
17415 \begin_inset Quotes erd
17416 \end_inset
17417
17418 .
17419 \end_layout
17420
17421 \begin_layout Enumerate
17422
17423 \change_deleted 564990737 1670317155
17424 It is possible to write multiple articles in the same \SpecialChar LaTeX
17425  file
17426 \begin_inset Foot
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 I can't imagine any good reason to do this.
17431 \end_layout
17432
17433 \end_inset
17434
17435 .
17436  Each article must be included in the environment 
17437 \begin_inset Quotes eld
17438 \end_inset
17439
17440 article
17441 \begin_inset Quotes erd
17442 \end_inset
17443
17444 .
17445  Unfortunately, this environment cannot be omitted, even if you write just
17446  one article.
17447  Therefore, each article starts with the command 
17448 \family typewriter
17449
17450 \backslash
17451 begin{article}
17452 \family default
17453  and, obviously, ends with the command 
17454 \family typewriter
17455
17456 \backslash
17457 end{article}
17458 \family default
17459 .
17460  Although this can be implemented in \SpecialChar LyX
17461 , I didn't included it, since it looks
17462  ugly and can confuse the novice user.
17463  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
17464  code (the
17465  well-known 
17466 \begin_inset Quotes eld
17467 \end_inset
17468
17469 \SpecialChar TeX
17470  code
17471 \begin_inset Quotes erd
17472 \end_inset
17473
17474 ).
17475 \end_layout
17476
17477 \begin_layout Enumerate
17478
17479 \change_deleted 564990737 1670317155
17480 Information given at the beginning of the article (i.
17481 \begin_inset space \thinspace{}
17482 \end_inset
17483
17484 e.
17485 \begin_inset space \space{}
17486 \end_inset
17487
17488 title, subtitle, author, institution, running title, running author, abstract
17489  and keywords) must be included in an environment called 
17490 \begin_inset Quotes eld
17491 \end_inset
17492
17493 opening
17494 \begin_inset Quotes erd
17495 \end_inset
17496
17497 .
17498  This is not implemented in \SpecialChar LyX
17499 , so you must enter title, subtitle etc.
17500 \begin_inset space ~
17501 \end_inset
17502
17503 between two \SpecialChar TeX
17504  code lines (
17505 \family typewriter
17506
17507 \backslash
17508 begin{opening}
17509 \family default
17510  and 
17511 \family typewriter
17512
17513 \backslash
17514 end{opening}
17515 \family default
17516 ).
17517 \end_layout
17518
17519 \begin_layout Enumerate
17520
17521 \change_deleted 564990737 1670317155
17522 According to the user manual, the label of each bibliography item must be
17523  written as 
17524 \family typewriter
17525
17526 \backslash
17527 protect
17528 \backslash
17529 citeauthoryear{
17530 \family default
17531 \emph on
17532 author(s)
17533 \family typewriter
17534 \emph default
17535 }{
17536 \family default
17537 \emph on
17538 year
17539 \family typewriter
17540 \emph default
17541 }
17542 \family default
17543 .
17544 \end_layout
17545
17546 \begin_layout Standard
17547
17548 \change_deleted 564990737 1670317155
17549 The 
17550 \family typewriter
17551 kluwer.lyx
17552 \family default
17553  template takes care of all these 
17554 \begin_inset Quotes eld
17555 \end_inset
17556
17557 peculiarities
17558 \begin_inset Quotes erd
17559 \end_inset
17560
17561 .
17562  If you start a new paper using this template you don't need to do anything
17563  special.
17564  Just 
17565 \end_layout
17566
17567 \begin_layout Enumerate
17568
17569 \change_deleted 564990737 1670317155
17570 don't delete the \SpecialChar TeX
17571  code included in the template, and
17572 \end_layout
17573
17574 \begin_layout Enumerate
17575
17576 \change_deleted 564990737 1670317155
17577 copy the example bibliography item included in the template and modify it
17578  as necessary to enter new bibliography items.
17579 \end_layout
17580
17581 \begin_layout Section
17582 Article (mwart), book (mwbk) and report (mwrep)
17583 \begin_inset Argument status
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 The 
17588 \family typewriter
17589 mw
17590 \family default
17591  Classes
17592 \end_layout
17593
17594 \end_inset
17595
17596
17597 \end_layout
17598
17599 \begin_layout Standard
17600 by 
17601 \noun on
17602 Tomasz Luczak
17603 \end_layout
17604
17605 \begin_layout Standard
17606 The \SpecialChar LyX
17607  document classes 
17608 \emph on
17609 article (mwart)
17610 \emph default
17611
17612 \emph on
17613 report (mwrep)
17614 \emph default
17615  and 
17616 \emph on
17617 book
17618 \emph default
17619  
17620 \emph on
17621 (mwbk)
17622 \emph default
17623  correspond to the \SpecialChar LaTeX
17624  document classes 
17625 \family typewriter
17626 mwart.cls
17627 \family default
17628
17629 \family typewriter
17630 mwrep.cls
17631 \family default
17632  and 
17633 \family typewriter
17634 mwbk.cls
17635 \family default
17636 , resp.
17637  They are replacements for the standard document classes 
17638 \family typewriter
17639 article.cls
17640 \family default
17641
17642 \family typewriter
17643 report.cls
17644 \family default
17645  and 
17646 \family typewriter
17647 book.cls
17648 \family default
17649 , resp., and fit better to Polish typography conventions in a number of points.
17650  
17651 \end_layout
17652
17653 \begin_layout Standard
17654 Basic differences:
17655 \end_layout
17656
17657 \begin_layout Itemize
17658 Unnumbered titles (with star, e.
17659 \begin_inset space \thinspace{}
17660 \end_inset
17661
17662 g.
17663 \begin_inset space \space{}
17664 \end_inset
17665
17666
17667 \family sans
17668 Section*
17669 \family default
17670 ) are added into table of contents,
17671 \end_layout
17672
17673 \begin_layout Itemize
17674 Additional page styles:
17675 \end_layout
17676
17677 \begin_deeper
17678 \begin_layout Description
17679 uheadings header with separated lines,
17680 \end_layout
17681
17682 \begin_layout Description
17683 myheadings custom header, contents headers via commands: 
17684 \family typewriter
17685
17686 \backslash
17687 markright
17688 \family default
17689  and 
17690 \family typewriter
17691
17692 \backslash
17693 markboth
17694 \family default
17695 ,
17696 \end_layout
17697
17698 \begin_layout Description
17699 myuheadings custom header with separated lines,
17700 \end_layout
17701
17702 \begin_layout Description
17703 outer page number is placed on outer side of page
17704 \end_layout
17705
17706 \end_deeper
17707 \begin_layout Itemize
17708 Options 
17709 \end_layout
17710
17711 \begin_deeper
17712 \begin_layout Description
17713 rmheadings serif titles — default,
17714 \end_layout
17715
17716 \begin_layout Description
17717 sfheadings sansserif titles,
17718 \end_layout
17719
17720 \begin_layout Description
17721 authortitle on title page first placed is author next title — default,
17722 \end_layout
17723
17724 \begin_layout Description
17725 titleauthor on title page first placed is title next author,
17726 \end_layout
17727
17728 \begin_layout Description
17729 withmarginpar reserve place on page for margins.
17730 \end_layout
17731
17732 \end_deeper
17733 \begin_layout Section
17734 Paper
17735 \end_layout
17736
17737 \begin_layout Standard
17738 The document class 
17739 \family sans
17740 paper
17741 \family default
17742  provides an alternative to the standard 
17743 \family sans
17744 article
17745 \family default
17746  class.
17747  It provides similar functionality, but you might prefer this layout with
17748  sans serif sections, headings, and more.
17749 \end_layout
17750
17751 \begin_layout Section
17752 Rev\SpecialChar TeX
17753 4
17754 \end_layout
17755
17756 \begin_layout Standard
17757 by 
17758 \noun on
17759 Amir Karger
17760 \end_layout
17761
17762 \begin_layout Standard
17763 \begin_inset VSpace bigskip
17764 \end_inset
17765
17766
17767 \end_layout
17768
17769 \begin_layout Standard
17770 \noindent
17771 The 
17772 \family sans
17773 Revtex
17774 \begin_inset space ~
17775 \end_inset
17776
17777 4
17778 \family default
17779  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
17780  4.0 (the 
17781 \begin_inset Formula $\beta$
17782 \end_inset
17783
17784  release of May, 1999) class.
17785 \end_layout
17786
17787 \begin_layout Standard
17788 \SpecialChar LyX
17789  has a 
17790 \family sans
17791 Revtex
17792 \family default
17793  textclass, which works with Rev\SpecialChar TeX
17794  3.1.
17795  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
17796  2.09.
17797  That means that it doesn't interact very well with \SpecialChar LyX
17798 , which requires \SpecialChar LaTeX2e
17799 , although
17800  it has been kludged to work.
17801  Since Rev\SpecialChar TeX
17802  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
17803 , \SpecialChar LyX
17804  with the
17805  
17806 \family sans
17807 Rev\SpecialChar TeX
17808
17809 \begin_inset space ~
17810 \end_inset
17811
17812 4
17813 \family default
17814  textclass should also be pretty easy to use.
17815 \end_layout
17816
17817 \begin_layout Standard
17818 These documents are supposed to be used in 
17819 \emph on
17820 addition
17821 \emph default
17822  to the Rev\SpecialChar TeX
17823  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
17824  macros,
17825  and assume you'll know what to put in the preamble if necessary.
17826 \end_layout
17827
17828 \begin_layout Subsection
17829 Installation
17830 \end_layout
17831
17832 \begin_layout Standard
17833 All you need to do is install Rev\SpecialChar TeX
17834  4, as described in the package's README
17835  file.
17836  The package can be found at The Rev\SpecialChar TeX
17837  4 Web Site 
17838 \begin_inset Flex URL
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842
17843 http://publish.aps.org/revtex4/
17844 \end_layout
17845
17846 \end_inset
17847
17848 .
17849  Install it somewhere that \SpecialChar LaTeX
17850  can see it.
17851  Test it by trying to \SpecialChar LaTeX
17852  a short Rev\SpecialChar TeX
17853  4 document in some random directory (i.
17854 \begin_inset space \thinspace{}
17855 \end_inset
17856
17857 e.
17858 \begin_inset space \space{}
17859 \end_inset
17860
17861 not the directory where you installed the class file.) Then, if you reconfigure
17862  \SpecialChar LyX
17863 , it will find the class file and let you use the Rev\SpecialChar TeX
17864 4 textclass.
17865 \end_layout
17866
17867 \begin_layout Standard
17868 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
17869  4 document
17870  using 
17871 \family typewriter
17872 tex2lyx
17873 \family default
17874 , or to use the 
17875 \family sans
17876 Revtex
17877 \begin_inset space ~
17878 \end_inset
17879
17880 4
17881 \family default
17882  template, found in the templates directory.
17883 \end_layout
17884
17885 \begin_layout Subsection
17886 Preamble Matter
17887 \end_layout
17888
17889 \begin_layout Standard
17890 Optional arguments to 
17891 \family typewriter
17892
17893 \backslash
17894 documentclass
17895 \family default
17896 , like 
17897 \begin_inset Quotes eld
17898 \end_inset
17899
17900 preprint
17901 \begin_inset Quotes erd
17902 \end_inset
17903
17904  and 
17905 \begin_inset Quotes eld
17906 \end_inset
17907
17908 aps
17909 \begin_inset Quotes erd
17910 \end_inset
17911
17912 , go in the 
17913 \family sans
17914 Extra
17915 \begin_inset space ~
17916 \end_inset
17917
17918 Options
17919 \family default
17920  field in the 
17921 \family sans
17922 Document
17923 \begin_inset space ~
17924 \end_inset
17925
17926 Layout
17927 \family default
17928  dialog, as usual.
17929  Remember that in Rev\SpecialChar TeX
17930 , at least one optional argument is required! 
17931 \end_layout
17932
17933 \begin_layout Standard
17934 Other preamble matter, like 
17935 \family typewriter
17936
17937 \backslash
17938 draft
17939 \family default
17940  etc.
17941 \begin_inset space ~
17942 \end_inset
17943
17944 goes in the 
17945 \family sans
17946 \SpecialChar LaTeX
17947
17948 \begin_inset space ~
17949 \end_inset
17950
17951 Preamble
17952 \family default
17953  dialog, also as usual.
17954 \end_layout
17955
17956 \begin_layout Subsection
17957 Layouts
17958 \end_layout
17959
17960 \begin_layout Standard
17961 The layouts basically correspond to the commands in Rev\SpecialChar TeX
17962 4.0.
17963  For example, the Email layout corresponds to 
17964 \family typewriter
17965
17966 \backslash
17967 email{}
17968 \family default
17969 .
17970  Note that (at least as of Rev\SpecialChar TeX
17971  4.0 Beta), the 
17972 \family sans
17973 Address
17974 \family default
17975  and 
17976 \family sans
17977 Affiliation
17978 \family default
17979  layouts are exactly equivalent, so you shouldn't need to use both.
17980 \begin_inset Foot
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 In case you're curious, both were included so that 
17985 \family typewriter
17986 tex2lyx
17987 \family default
17988  would be able to translate both 
17989 \family typewriter
17990
17991 \backslash
17992 address
17993 \family default
17994  and 
17995 \family typewriter
17996
17997 \backslash
17998 affiliation
17999 \family default
18000 .
18001 \end_layout
18002
18003 \end_inset
18004
18005
18006 \end_layout
18007
18008 \begin_layout Subsection
18009 Important Notes
18010 \end_layout
18011
18012 \begin_layout Standard
18013 There are a couple of important unique aspects of Rev\SpecialChar TeX
18014  4 which might cause
18015  bugs that will be even more confusing in \SpecialChar LyX
18016 .
18017 \end_layout
18018
18019 \begin_layout Standard
18020 In Rev\SpecialChar TeX
18021 , the 
18022 \family typewriter
18023
18024 \backslash
18025 thanks
18026 \family default
18027  command goes 
18028 \emph on
18029 outside
18030 \emph default
18031  the 
18032 \family typewriter
18033
18034 \backslash
18035 author
18036 \family default
18037  command.
18038  The \SpecialChar LyX
18039  equivalent is that there is a separate Thanks layout.
18040  Do 
18041 \emph on
18042 not
18043 \emph default
18044  write footnotes in the 
18045 \family sans
18046 Author
18047 \family default
18048  layout, or weird things may happen.
18049  See the Rev\SpecialChar TeX
18050  4 documentation for more details.
18051 \end_layout
18052
18053 \begin_layout Standard
18054 Also, the 
18055 \family sans
18056 Author
18057 \begin_inset space ~
18058 \end_inset
18059
18060 Email
18061 \family default
18062
18063 \family sans
18064 Author
18065 \begin_inset space ~
18066 \end_inset
18067
18068 URL
18069 \family default
18070 , and 
18071 \family sans
18072 Thanks
18073 \family default
18074  layouts must be placed 
18075 \emph on
18076 in between
18077 \emph default
18078  the 
18079 \family sans
18080 Author
18081 \family default
18082  layout and the corresponding 
18083 \family sans
18084 Address
18085 \family default
18086  (or equivalent 
18087 \family sans
18088 Affiliation
18089 \family default
18090 ) layout.
18091  If you put the 
18092 \family sans
18093 Thanks
18094 \family default
18095  after the 
18096 \family sans
18097 Address
18098 \family default
18099 , the \SpecialChar LaTeX
18100  won't compile.
18101 \end_layout
18102
18103 \begin_layout Section
18104 Springer Journals (
18105 \family sans
18106 svjour
18107 \family default
18108 )
18109 \end_layout
18110
18111 \begin_layout Standard
18112 by 
18113 \noun on
18114 Martin Vermeer
18115 \end_layout
18116
18117 \begin_layout Subsection
18118 Description
18119 \end_layout
18120
18121 \begin_layout Standard
18122 These are the layout files for some of the journal formats used by Springer
18123  Verlag and listed on 
18124 \begin_inset Flex URL
18125 status collapsed
18126
18127 \begin_layout Plain Layout
18128
18129 http://www.springer.de/author/tex/help-journals.html
18130 \end_layout
18131
18132 \end_inset
18133
18134 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
18135  now!).
18136  It is a modular system: the things common to all journals are implemented
18137  in 
18138 \family typewriter
18139 svjour.inc
18140 \family default
18141 , which journal-specific layout files (such as, e.
18142 \begin_inset space \thinspace{}
18143 \end_inset
18144
18145 g.
18146 \begin_inset space \space{}
18147 \end_inset
18148
18149
18150 \family typewriter
18151 svjog.layout
18152 \family default
18153  for Journal of Geodesy) can include.
18154 \end_layout
18155
18156 \begin_layout Standard
18157 This means that implementing support for any other Springer journal on this
18158  list is as simple as writing your own 
18159 \family typewriter
18160 sv
18161 \family default
18162 <myjournal>
18163 \family typewriter
18164 .layout
18165 \family default
18166  file following the outline given in 
18167 \family typewriter
18168 svjog.layout
18169 \family default
18170 .
18171  
18172 \end_layout
18173
18174 \begin_layout Standard
18175 It is reasonably well tested only for the Journal of Geodesy.
18176  
18177 \family typewriter
18178 svjour
18179 \family default
18180  and 
18181 \family typewriter
18182 svjog
18183 \family default
18184  come with the standard \SpecialChar LyX
18185  distribution.
18186  Install the relevant class file (downloaded from Springer) in a proper
18187  directory, reconfigure \SpecialChar LaTeX
18188  (in the te\SpecialChar TeX
18189  case by running 
18190 \family typewriter
18191 texhash
18192 \family default
18193 , as root if necessary — doesn't \SpecialChar LyX
18194  take care of this?), reconfigure \SpecialChar LyX
18195  and
18196  it should work.
18197 \end_layout
18198
18199 \begin_layout Subsection
18200 New styles
18201 \end_layout
18202
18203 \begin_layout Standard
18204 A large number of theorem-like styles — 
18205 \family sans
18206 Claim, Conjecture,
18207 \family default
18208  
18209 \family sans
18210 \SpecialChar ldots
18211 Theorem
18212 \family default
18213 .
18214 \end_layout
18215
18216 \begin_layout Standard
18217
18218 \family sans
18219 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
18220 _Title, Author_Running, Institute,
18221  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
18222 \family default
18223 .
18224  See the Springer class file documentation for details.
18225 \end_layout
18226
18227 \begin_layout Subsection
18228 Supported journals
18229 \end_layout
18230
18231 \begin_layout Itemize
18232
18233 \emph on
18234 Journal of Geodesy
18235 \emph default
18236
18237 \family typewriter
18238 svjog.layout
18239 \family default
18240  — Martin Vermeer
18241 \end_layout
18242
18243 \begin_layout Itemize
18244
18245 \emph on
18246 Probability Theory and Related Fields
18247 \emph default
18248
18249 \family typewriter
18250 svprobth.layout
18251 \family default
18252  — Jean-Marc Lasgouttes
18253 \end_layout
18254
18255 \begin_layout Standard
18256 Add your own, it isn't so hard!
18257 \end_layout
18258
18259 \begin_layout Subsection
18260 Credits
18261 \end_layout
18262
18263 \begin_layout Standard
18264 These files are partly based on the older 
18265 \family typewriter
18266 ejour2.layout
18267 \family default
18268 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
18269  2.09 style
18270  file from Springer.
18271  All this, and the 
18272 \family typewriter
18273 ejour2
18274 \family default
18275  layout, are now defunct.
18276  Jean-Marc Lasgouttes helped out big in making me find my way around the
18277  \SpecialChar LyX
18278  layout file mechanism.
18279 \end_layout
18280
18281 \begin_layout Subsection
18282 Bugs
18283 \end_layout
18284
18285 \begin_layout Standard
18286 Probably.
18287  But probably less than in the old hacked-\SpecialChar LaTeX
18288  
18289 \family typewriter
18290 ejour2
18291 \family default
18292 .
18293 \end_layout
18294
18295 \begin_layout Section
18296 Slides [aka 
18297 \noun on
18298 Sli\SpecialChar TeX
18299
18300 \noun default
18301 ]
18302 \begin_inset CommandInset label
18303 LatexCommand label
18304 name "sec:slitex"
18305
18306 \end_inset
18307
18308
18309 \end_layout
18310
18311 \begin_layout Standard
18312 by 
18313 \noun on
18314 John Weiss
18315 \noun default
18316  
18317 \end_layout
18318
18319 \begin_layout Subsection
18320 Introduction
18321 \end_layout
18322
18323 \begin_layout Standard
18324 This section describes how to use \SpecialChar LyX
18325  to make slides for overhead projectors.
18326  There are two document classes that can do this: the default slides class
18327  and the 
18328 \family sans
18329 Foil\SpecialChar TeX
18330
18331 \family default
18332  slides class.
18333  This section documents the former.
18334 \end_layout
18335
18336 \begin_layout Standard
18337 I'm going to say this again, nice and clear, so that there's no misunderstanding
18338 :
18339 \end_layout
18340
18341 \begin_layout Standard
18342 \begin_inset VSpace bigskip
18343 \end_inset
18344
18345
18346 \end_layout
18347
18348 \begin_layout Standard
18349 \align center
18350
18351 \size large
18352 This section documents the class 
18353 \begin_inset Quotes eld
18354 \end_inset
18355
18356
18357 \family sans
18358 slides (default)
18359 \family default
18360
18361 \begin_inset Quotes erd
18362 \end_inset
18363
18364  
18365 \emph on
18366 only.
18367 \end_layout
18368
18369 \begin_layout Standard
18370 \begin_inset VSpace bigskip
18371 \end_inset
18372
18373
18374 \end_layout
18375
18376 \begin_layout Standard
18377 If you're looking for the documentation for 
18378 \begin_inset Quotes eld
18379 \end_inset
18380
18381
18382 \family sans
18383 slides (Foil\SpecialChar TeX
18384 )
18385 \family default
18386
18387 \begin_inset Quotes erd
18388 \end_inset
18389
18390 , check out section
18391 \begin_inset space ~
18392 \end_inset
18393
18394
18395 \begin_inset CommandInset ref
18396 LatexCommand ref
18397 reference "sec:foiltex"
18398
18399 \end_inset
18400
18401 .
18402  The 
18403 \family sans
18404 foils
18405 \family default
18406  class [
18407 \begin_inset Quotes eld
18408 \end_inset
18409
18410
18411 \family sans
18412 slides (Foil\SpecialChar TeX
18413 )
18414 \family default
18415
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419 ] is actually somewhat better than the default 
18420 \family sans
18421 slides
18422 \family default
18423  class,
18424 \begin_inset Foot
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 \SpecialChar ldots
18429 or so I've been told repeatedly by its advocates.
18430  Having never used it, I have no idea if this claim is true or not.
18431 \end_layout
18432
18433 \end_inset
18434
18435  which this section documents.
18436 \end_layout
18437
18438 \begin_layout Standard
18439 This class is the \SpecialChar LaTeX2e
18440  improvement of the old 
18441 \noun on
18442 Sli\SpecialChar TeX
18443
18444 \noun default
18445  package.
18446  Every \SpecialChar LaTeX2e
18447  distribution includes this class [which I'll just refer to as 
18448 \begin_inset Quotes eld
18449 \end_inset
18450
18451
18452 \family sans
18453 slides
18454 \family default
18455
18456 \begin_inset Quotes erd
18457 \end_inset
18458
18459  from now on], so you're bound to have it.
18460  As I noted earlier, there are other classes, such as 
18461 \family sans
18462 foils
18463 \family default
18464 , which also produce slides for overhead projectors and do a better job
18465  at it.
18466  However, there are some things which 
18467 \family sans
18468 slides
18469 \family default
18470  can do which the others can't, such as generate overlays.
18471  Read on to learn more!
18472 \end_layout
18473
18474 \begin_layout Subsection
18475 Getting Started
18476 \begin_inset CommandInset label
18477 LatexCommand label
18478 name "sec:slidesetup"
18479
18480 \end_inset
18481
18482
18483 \end_layout
18484
18485 \begin_layout Standard
18486 Obviously, to use this document class, you need to select 
18487 \begin_inset Quotes eld
18488 \end_inset
18489
18490
18491 \family sans
18492 slides (default)
18493 \family default
18494
18495 \begin_inset Quotes erd
18496 \end_inset
18497
18498  from the class list in the 
18499 \family sans
18500 Document\SpecialChar menuseparator
18501 Settings
18502 \family default
18503  dialog.
18504  There are some other special things you should know about this class:
18505 \end_layout
18506
18507 \begin_layout Itemize
18508 Don't bother changing the options 
18509 \family sans
18510 Sides and Columns
18511 \family default
18512 .
18513  They're not supported by the 
18514 \family sans
18515 slides
18516 \family default
18517  class, anyways.
18518 \end_layout
18519
18520 \begin_layout Itemize
18521 The option 
18522 \family sans
18523 Page
18524 \begin_inset space ~
18525 \end_inset
18526
18527 style
18528 \family default
18529  behaves a bit differently for this class.
18530  The possible choices and what they do are as follows:
18531 \end_layout
18532
18533 \begin_deeper
18534 \begin_layout Description
18535
18536 \family sans
18537 plain
18538 \family default
18539  The final output contains page numbers in the lower right corner.
18540 \end_layout
18541
18542 \begin_layout Description
18543
18544 \family sans
18545 headings
18546 \family default
18547  Like 
18548 \family sans
18549 plain
18550 \family default
18551 , but also prints out any time markers you've put in.
18552  This is the default.
18553 \end_layout
18554
18555 \begin_layout Description
18556
18557 \family sans
18558 empty
18559 \family default
18560  The final output contains no page numbers, time markers, or alignment markers.
18561 \end_layout
18562
18563 \end_deeper
18564 \begin_layout Itemize
18565 The 
18566 \family sans
18567 slides
18568 \family default
18569  class has an extra option: 
18570 \family typewriter
18571 clock
18572 \family default
18573 .
18574  To use it, put 
18575 \begin_inset Quotes eld
18576 \end_inset
18577
18578
18579 \family typewriter
18580 clock
18581 \family default
18582
18583 \begin_inset Quotes erd
18584 \end_inset
18585
18586  in the extra class options.
18587 \end_layout
18588
18589 \begin_deeper
18590 \begin_layout Standard
18591 Using this options allows you to add time markers to 
18592 \family sans
18593 Note
18594 \family default
18595 s.
18596  See section
18597 \begin_inset space ~
18598 \end_inset
18599
18600
18601 \begin_inset CommandInset ref
18602 LatexCommand ref
18603 reference "sec:slideNote"
18604
18605 \end_inset
18606
18607  for more details.
18608 \end_layout
18609
18610 \end_deeper
18611 \begin_layout Standard
18612 You can also use the template file 
18613 \begin_inset Quotes eld
18614 \end_inset
18615
18616
18617 \family typewriter
18618 slides.lyx
18619 \family default
18620
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624  to automatically set up a document to use the 
18625 \family sans
18626 slides
18627 \family default
18628  class [using 
18629 \family sans
18630 File\SpecialChar menuseparator
18631 New
18632 \begin_inset space ~
18633 \end_inset
18634
18635 from
18636 \begin_inset space ~
18637 \end_inset
18638
18639 Template
18640 \family default
18641  to open your new document].
18642  The template file also contains some examples of the special paragraph
18643  environments used by this class.
18644  I'll describe those next.
18645 \end_layout
18646
18647 \begin_layout Subsection
18648 Paragraph Environments
18649 \end_layout
18650
18651 \begin_layout Subsubsection
18652 Supported Environments
18653 \end_layout
18654
18655 \begin_layout Standard
18656 The first thing you'll notice when you start up a new 
18657 \family sans
18658 slides
18659 \family default
18660  document is the font size and type: it's the equivalent of the size 
18661 \begin_inset Quotes eld
18662 \end_inset
18663
18664
18665 \family sans
18666 Largest
18667 \family default
18668
18669 \begin_inset Quotes erd
18670 \end_inset
18671
18672  in the 
18673 \family sans
18674 Sans
18675 \begin_inset space ~
18676 \end_inset
18677
18678 Serif
18679 \family default
18680  font.
18681  This is also what's used in the output.
18682  Think of this as a 
18683 \begin_inset Quotes eld
18684 \end_inset
18685
18686 visual cue
18687 \begin_inset Quotes erd
18688 \end_inset
18689
18690  to remind you that this is a slide.
18691  Your final slides will use a larger font; ergo, you'll have less space.
18692  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18693 \end_layout
18694
18695 \begin_layout Standard
18696 The next thing that becomes obvious is the changes to the paragraph environment
18697  pull-down box [at the far-left end of the toolbar].
18698  Most of the paragraph environments you're used to seeing are missing.
18699  There are also five new ones.
18700  That's because the 
18701 \family sans
18702 slides
18703 \family default
18704  class itself only supports certain paragraph environments:
18705 \end_layout
18706
18707 \begin_layout Itemize
18708
18709 \family sans
18710 Standard
18711 \end_layout
18712
18713 \begin_layout Itemize
18714
18715 \family sans
18716 Itemize
18717 \end_layout
18718
18719 \begin_layout Itemize
18720
18721 \family sans
18722 Enumerate
18723 \end_layout
18724
18725 \begin_layout Itemize
18726
18727 \family sans
18728 Description
18729 \end_layout
18730
18731 \begin_layout Itemize
18732
18733 \family sans
18734 List
18735 \end_layout
18736
18737 \begin_layout Itemize
18738
18739 \family sans
18740 Quotation
18741 \end_layout
18742
18743 \begin_layout Itemize
18744
18745 \family sans
18746 Quote
18747 \end_layout
18748
18749 \begin_layout Itemize
18750
18751 \family sans
18752 Verse
18753 \end_layout
18754
18755 \begin_layout Itemize
18756
18757 \family sans
18758 Caption
18759 \end_layout
18760
18761 \begin_layout Itemize
18762
18763 \family sans
18764 \SpecialChar LyX
18765 -Code
18766 \end_layout
18767
18768 \begin_layout Standard
18769 All of the other standard environments, including the section-heading environmen
18770 ts, aren't used in the 
18771 \family sans
18772 slides
18773 \family default
18774  class.
18775 \end_layout
18776
18777 \begin_layout Standard
18778 On the other hand, you'll notice the following new environments:
18779 \end_layout
18780
18781 \begin_layout Itemize
18782
18783 \family sans
18784 Slide
18785 \end_layout
18786
18787 \begin_layout Itemize
18788
18789 \family sans
18790 Overlay
18791 \end_layout
18792
18793 \begin_layout Itemize
18794
18795 \family sans
18796 Note
18797 \end_layout
18798
18799 \begin_layout Itemize
18800
18801 \family sans
18802 InvisibleText
18803 \end_layout
18804
18805 \begin_layout Itemize
18806
18807 \family sans
18808 VisibleText
18809 \end_layout
18810
18811 \begin_layout Standard
18812 These five are kind of quirky, due to a 
18813 \begin_inset Quotes eld
18814 \end_inset
18815
18816 feature
18817 \begin_inset Quotes erd
18818 \end_inset
18819
18820  in \SpecialChar LyX
18821 .
18822  You see, \SpecialChar LyX
18823  doesn't permit you to nest any other paragraph environment into
18824  an empty environment.
18825  Now, that's fine and dandy, but it means that you wouldn't be able to start
18826  a slide with anything except plain text.
18827  To deal with this, I've performed a little 
18828 \begin_inset Quotes eld
18829 \end_inset
18830
18831 \SpecialChar LaTeX
18832  magic.
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836  
18837 \end_layout
18838
18839 \begin_layout Subsubsection
18840 Quirks of the New Environments
18841 \begin_inset CommandInset label
18842 LatexCommand label
18843 name "sec:slideQuirk"
18844
18845 \end_inset
18846
18847
18848 \end_layout
18849
18850 \begin_layout Standard
18851 All five of the new paragraph environments are somewhat quirky due to inherent
18852  limitiations in the current version of \SpecialChar LyX
18853 .
18854  As I just mentioned, \SpecialChar LyX
18855  forbids environments that begin with another environment.
18856  To get around this, the 
18857 \family sans
18858 Slide
18859 \family default
18860  environment isn't a paragraph environment as described in the 
18861 \emph on
18862 User's Guide
18863 \emph default
18864 .
18865  
18866 \end_layout
18867
18868 \begin_layout Standard
18869 You should consider 
18870 \family sans
18871 Slide
18872 \family default
18873
18874 \family sans
18875 Overlay
18876 \family default
18877 , and 
18878 \family sans
18879 Note
18880 \family default
18881  to be 
18882 \begin_inset Quotes eld
18883 \end_inset
18884
18885 pseudo-environments.
18886 \begin_inset Quotes erd
18887 \end_inset
18888
18889  They look like a section heading or a 
18890 \begin_inset Quotes eld
18891 \end_inset
18892
18893
18894 \family sans
18895 Caption
18896 \family default
18897 ,
18898 \begin_inset Quotes erd
18899 \end_inset
18900
18901  but really begin a [and, if necessary, end the previous] paragraph environment.
18902  Likewise, treat 
18903 \family sans
18904 InvisibleText
18905 \family default
18906  and 
18907 \family sans
18908 VisibleText
18909 \family default
18910  as 
18911 \begin_inset Quotes eld
18912 \end_inset
18913
18914 pseudo-commands.
18915 \begin_inset Quotes erd
18916 \end_inset
18917
18918  These two perform some action.
18919 \end_layout
18920
18921 \begin_layout Standard
18922 A common feature of all five environments, 
18923 \family sans
18924 Slide
18925 \family default
18926
18927 \family sans
18928 Overlay
18929 \family default
18930
18931 \family sans
18932 Note
18933 \family default
18934
18935 \family sans
18936 InvisibleText
18937 \family default
18938  and 
18939 \family sans
18940 VisibleText
18941 \family default
18942 , is a rather long-ish label.
18943  The text following this label — ordinarily the contents of the paragraph
18944  environment — is utterly irrelevant for 
18945 \family sans
18946 Slide
18947 \family default
18948
18949 \family sans
18950 Overlay
18951 \family default
18952
18953 \family sans
18954 Note
18955 \family default
18956
18957 \family sans
18958 InvisibleText
18959 \family default
18960  and 
18961 \family sans
18962 VisibleText
18963 \family default
18964 .
18965  \SpecialChar LyX
18966  completely ignores it.
18967  In fact, you can leave these five environments completely empty.
18968  
18969 \end_layout
18970
18971 \begin_layout Standard
18972 While you don't 
18973 \emph on
18974 have
18975 \emph default
18976  to put any text after the rather long-ish label, you might want to.
18977  This could be a short description of the contents of the 
18978 \family sans
18979 Slide
18980 \family default
18981 , for example.
18982  In that case, enter your descriptive comment and hit 
18983 \family sans
18984 Return
18985 \family default
18986  as you normally would.
18987 \end_layout
18988
18989 \begin_layout Standard
18990 If, on the other hand, you don't want to enter any descriptive text, you'll
18991  hit another \SpecialChar LyX
18992  quirk.
18993  \SpecialChar LyX
18994 , like nature, abhors a vacuum, and will not let you start a new paragraph
18995  environment until you put something in the old one.
18996  So, do this:
18997 \end_layout
18998
18999 \begin_layout Itemize
19000 Start entering the text that will 
19001 \emph on
19002 follow
19003 \emph default
19004  the new 
19005 \family sans
19006 Slide
19007 \family default
19008
19009 \family sans
19010 Overlay
19011 \family default
19012
19013 \family sans
19014 Note
19015 \family default
19016
19017 \family sans
19018 InvisibleText
19019 \family default
19020  or 
19021 \family sans
19022 VisibleText
19023 \family default
19024 .
19025  
19026 \end_layout
19027
19028 \begin_layout Itemize
19029 Now move to the beginning of that paragraph.
19030  
19031 \end_layout
19032
19033 \begin_layout Itemize
19034 Next, hit 
19035 \family sans
19036 Return
19037 \family default
19038 .
19039  
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 Finally, change this new, empty paragraph to a 
19044 \family sans
19045 Slide
19046 \family default
19047
19048 \family sans
19049 Overlay
19050 \family default
19051
19052 \family sans
19053 Note
19054 \family default
19055
19056 \family sans
19057 InvisibleText
19058 \family default
19059  or 
19060 \family sans
19061 VisibleText
19062 \family default
19063 .
19064  
19065 \end_layout
19066
19067 \begin_layout Standard
19068 Some future version of \SpecialChar LyX
19069  will, hopefully, resolve this quirkiness\SpecialChar ldots
19070
19071 \end_layout
19072
19073 \begin_layout Subsection
19074 Making a Presentation with 
19075 \family sans
19076 Slide
19077 \family default
19078
19079 \family sans
19080 Overlay
19081 \family default
19082  and 
19083 \family sans
19084 Note
19085 \end_layout
19086
19087 \begin_layout Subsubsection
19088 Using the 
19089 \family sans
19090 Slide
19091 \family default
19092  Environment
19093 \end_layout
19094
19095 \begin_layout Standard
19096 If you're expecting this section to teach you how to actually make a presentatio
19097 n, you'll be sorely disappointed.
19098  Naturally, I'll describe all of the ways the 
19099 \family sans
19100 slides
19101 \family default
19102  class can assist you in preparing the materials for a presentation.
19103  Filling in the contents, however, is up to you.
19104  [Then again, that 
19105 \emph on
19106 is
19107 \emph default
19108  the \SpecialChar LyX
19109  philosophy.]
19110 \end_layout
19111
19112 \begin_layout Standard
19113 Choosing the 
19114 \family sans
19115 Slide
19116 \family default
19117  environment [in the manner described in section
19118 \begin_inset space ~
19119 \end_inset
19120
19121
19122 \begin_inset CommandInset ref
19123 LatexCommand ref
19124 reference "sec:slideQuirk"
19125
19126 \end_inset
19127
19128 ] tells \SpecialChar LyX
19129  to begin a new slide [duh].
19130  The label for this environment/
19131 \begin_inset Quotes erd
19132 \end_inset
19133
19134 pseudo-command
19135 \begin_inset Quotes erd
19136 \end_inset
19137
19138  is an 
19139 \begin_inset Quotes eld
19140 \end_inset
19141
19142 ASCII line,
19143 \begin_inset Quotes erd
19144 \end_inset
19145
19146  in cool blue, followed by the label, 
19147 \begin_inset Quotes eld
19148 \end_inset
19149
19150 NewSlide:
19151 \begin_inset Quotes erd
19152 \end_inset
19153
19154 .
19155  Any text or paragraph environments that follow this one go on the new slide.
19156  It's that simple.
19157 \end_layout
19158
19159 \begin_layout Standard
19160 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
19161
19162  (this can be specified in the 
19163 \family sans
19164 Paragraph Layout
19165 \family default
19166  dialog).
19167  In fact, you'll want to, once you finish entering the contents of one slide.
19168  If you've entered more text than can physically fit on a slide, the extra
19169  overflows onto a new slide.
19170  I don't recommend doing this, however, since the overflow slide won't have
19171  any page number on it.
19172  Furthermore, it may interfere with any 
19173 \family sans
19174 Overlay
19175 \family default
19176  you've made to accompany the oversized 
19177 \family sans
19178 Slide
19179 \family default
19180 .
19181 \end_layout
19182
19183 \begin_layout Standard
19184 The 
19185 \family sans
19186 Overlay
19187 \family default
19188  and 
19189 \family sans
19190 Note
19191 \family default
19192  environments work the same way as the 
19193 \family sans
19194 Slide
19195 \family default
19196  environment.
19197  They both create an 
19198 \begin_inset Quotes eld
19199 \end_inset
19200
19201 ASCII line
19202 \begin_inset Quotes erd
19203 \end_inset
19204
19205  followed by a label [
19206 \begin_inset Quotes eld
19207 \end_inset
19208
19209 NewOverlay:
19210 \begin_inset Quotes erd
19211 \end_inset
19212
19213  and 
19214 \begin_inset Quotes eld
19215 \end_inset
19216
19217 NewNote:
19218 \begin_inset Quotes erd
19219 \end_inset
19220
19221 , respectively].
19222  The color is a stunning magenta instead of blue, and the 
19223 \begin_inset Quotes eld
19224 \end_inset
19225
19226 ASCII line
19227 \begin_inset Quotes erd
19228 \end_inset
19229
19230  will look different, in style and in length.
19231  The label fonts of all three also differ from one another.
19232 \end_layout
19233
19234 \begin_layout Standard
19235 As with a 
19236 \family sans
19237 Slide
19238 \family default
19239 , if the contents of a 
19240 \family sans
19241 Note
19242 \family default
19243  or 
19244 \family sans
19245 Overlay
19246 \family default
19247  exceed the physical size of a slide or sheet of paper, the extra will overflow
19248  onto a new sheet.
19249  Again, you should avoid this.
19250  It defeats the whole purpose of 
19251 \family sans
19252 Note
19253 \family default
19254 s and 
19255 \family sans
19256 Overlay
19257 \family default
19258 s.
19259 \end_layout
19260
19261 \begin_layout Subsubsection
19262 Using 
19263 \family sans
19264 Overlay
19265 \family default
19266  with 
19267 \family sans
19268 Slide
19269 \end_layout
19270
19271 \begin_layout Standard
19272 The idea behind an 
19273 \family sans
19274 Overlay
19275 \family default
19276  is a slide that sits atop another slide.
19277  Perhaps you wish to discuss a figure on the main 
19278 \family sans
19279 Slide
19280 \family default
19281  before displaying the text associated with it.
19282  One way to accomplish this is tape a flap of dark paper over the part of
19283  the 
19284 \family sans
19285 Slide
19286 \family default
19287  you want to display later.
19288  This method fails, however, if you wish to overlap one graph with another,
19289  for example.
19290  You would then have to fumble while speaking to align the two separate,
19291  overlapping 
19292 \family sans
19293 Slide
19294 \family default
19295 s to align the two graphs.
19296  The use of an 
19297 \family sans
19298 Overlay
19299 \family default
19300  environment in both cases makes life much easier.
19301 \end_layout
19302
19303 \begin_layout Standard
19304 Each 
19305 \family sans
19306 Overlay
19307 \family default
19308  receives the page number of its 
19309 \begin_inset Quotes eld
19310 \end_inset
19311
19312 parent
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316  
19317 \family sans
19318 Slide
19319 \family default
19320 , appended by 
19321 \begin_inset Quotes eld
19322 \end_inset
19323
19324
19325 \family typewriter
19326 -a
19327 \family default
19328
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332 .
19333 \begin_inset Foot
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 Presumably, mutliple 
19338 \family sans
19339 Overlay
19340 \family default
19341 s would have 
19342 \begin_inset Quotes eld
19343 \end_inset
19344
19345
19346 \family typewriter
19347 -a
19348 \family default
19349
19350 \begin_inset Quotes erd
19351 \end_inset
19352
19353
19354 \begin_inset Quotes eld
19355 \end_inset
19356
19357
19358 \family typewriter
19359 -b
19360 \family default
19361
19362 \begin_inset Quotes erd
19363 \end_inset
19364
19365
19366 \begin_inset Quotes eld
19367 \end_inset
19368
19369
19370 \family typewriter
19371 -c
19372 \family default
19373
19374 \begin_inset Quotes erd
19375 \end_inset
19376
19377 , etc.
19378 \begin_inset space ~
19379 \end_inset
19380
19381 appended to the page number of the parent 
19382 \family sans
19383 Slide
19384 \family default
19385 .
19386  
19387 \end_layout
19388
19389 \end_inset
19390
19391  Clearly, you want the contents of both the 
19392 \family sans
19393 Slide
19394 \family default
19395  and the 
19396 \family sans
19397 Overlay
19398 \family default
19399  to each fit on a single physical slide! You should probably consider an
19400  
19401 \family sans
19402 Overlay
19403 \family default
19404  as 
19405 \begin_inset Quotes eld
19406 \end_inset
19407
19408 part of
19409 \begin_inset Quotes erd
19410 \end_inset
19411
19412  a 
19413 \family sans
19414 Slide
19415 \family default
19416 .
19417  Indeed, the \SpecialChar LyX
19418  
19419 \family sans
19420 slides
19421 \family default
19422  class provides a visual cue for this: the label at the start of an 
19423 \family sans
19424 Overlay
19425 \family default
19426  is shorter than that at the start of a 
19427 \family sans
19428 Slide
19429 \family default
19430 .
19431  Lastly, when you generate printable output, you'll find alignment markers
19432  in all four corners of both the 
19433 \family sans
19434 Overlay
19435 \family default
19436  page and its parent 
19437 \family sans
19438 Slide
19439 \family default
19440 .
19441  These will assist you in lining up the two physical slides.
19442 \end_layout
19443
19444 \begin_layout Standard
19445 The major problem in overlaying two slides is aligning the contents of the
19446  two transparencies.
19447  How much space should you leave for that graph on the second slide? Worse
19448  still, what if you want a graph and a sentence on second slide, but there
19449  is text on the main transparency that goes in between them? You could try
19450  and insert vertical space of the right size.
19451  The better way is to use 
19452 \family sans
19453 InvisibleText
19454 \family default
19455  and 
19456 \family sans
19457 VisibleText
19458 \family default
19459 .
19460 \end_layout
19461
19462 \begin_layout Standard
19463 As their names imply, 
19464 \family sans
19465 InvisibleText
19466 \family default
19467  and 
19468 \family sans
19469 VisibleText
19470 \family default
19471  are two command-like paragraph environments that make all subsequent text
19472  invisible and visible, respectively.
19473  Note from section
19474 \begin_inset space ~
19475 \end_inset
19476
19477
19478 \begin_inset CommandInset ref
19479 LatexCommand ref
19480 reference "sec:slideQuirk"
19481
19482 \end_inset
19483
19484  that you don't place anything 
19485 \emph on
19486 into
19487 \emph default
19488  these two environments, however.
19489  When you create an 
19490 \family sans
19491 InvisibleText
19492 \family default
19493 , it inserts a centered, sky-blue label into the page reading 
19494 \begin_inset Quotes eld
19495 \end_inset
19496
19497 <Invisible Text Follows>
19498 \begin_inset Quotes erd
19499 \end_inset
19500
19501 .
19502  For paragraphs following this label, the parts of the 
19503 \family sans
19504 Slide
19505 \family default
19506  [or 
19507 \family sans
19508 Overlay
19509 \family default
19510 ; it doesn't matter which] where they would be contain instead blank space.
19511  
19512 \end_layout
19513
19514 \begin_layout Standard
19515 For 
19516 \family sans
19517 VisibleText
19518 \family default
19519 , the corresponding centered label is 
19520 \begin_inset Quotes eld
19521 \end_inset
19522
19523 <Visible Text Follows>
19524 \begin_inset Quotes erd
19525 \end_inset
19526
19527  in blazing green.
19528  Paragraphs following this label behave normally.
19529  Note that the beginning of a new 
19530 \family sans
19531 Slide
19532 \family default
19533
19534 \family sans
19535 Overlay
19536 \family default
19537 , or 
19538 \family sans
19539 Note
19540 \family default
19541  automatically shuts off an 
19542 \family sans
19543 InvisibleText
19544 \family default
19545 .
19546  It's therefore not necessary to use 
19547 \family sans
19548 VisibleText
19549 \family default
19550  at the end of a 
19551 \family sans
19552 Slide
19553 \family default
19554 .
19555 \end_layout
19556
19557 \begin_layout Standard
19558 By now, it should be obvious how to create overlay transparencies using
19559  the proper combination of 
19560 \family sans
19561 InvisibleText
19562 \family default
19563  and 
19564 \family sans
19565 VisibleText
19566 \family default
19567  on a 
19568 \family sans
19569 Slide
19570 \family default
19571  and 
19572 \family sans
19573 Overlay
19574 \family default
19575 :
19576 \end_layout
19577
19578 \begin_layout Enumerate
19579 Create a 
19580 \family sans
19581 Slide
19582 \family default
19583 , including everything that will appear on it, whether on the main slide
19584  or on the 
19585 \family sans
19586 Overlay
19587 \family default
19588 .
19589 \end_layout
19590
19591 \begin_layout Enumerate
19592 Before each figure or paragraph that will appear only on the 
19593 \family sans
19594 Overlay
19595 \family default
19596 , insert an 
19597 \family sans
19598 InvisibleText
19599 \family default
19600  environment.
19601  If necessary, insert a 
19602 \family sans
19603 VisibleText
19604 \family default
19605  environment after the 
19606 \family sans
19607 Overlay
19608 \family default
19609 -only text.
19610 \end_layout
19611
19612 \begin_layout Enumerate
19613 Start an 
19614 \family sans
19615 Overlay
19616 \family default
19617  immediately following the 
19618 \family sans
19619 Slide
19620 \family default
19621 .
19622 \end_layout
19623
19624 \begin_layout Enumerate
19625 Copy the contents of this 
19626 \family sans
19627 Slide
19628 \family default
19629  into the 
19630 \family sans
19631 Overlay
19632 \family default
19633 .
19634 \end_layout
19635
19636 \begin_layout Enumerate
19637 Within the 
19638 \family sans
19639 Overlay
19640 \family default
19641 , change all of the 
19642 \family sans
19643 InvisibleText
19644 \family default
19645  lines to 
19646 \family sans
19647 VisibleText
19648 \family default
19649  and vice-versa.
19650 \end_layout
19651
19652 \begin_layout Standard
19653 That's it.
19654  You've just made an 
19655 \family sans
19656 Overlay
19657 \family default
19658 .
19659 \end_layout
19660
19661 \begin_layout Standard
19662 There's one problem with the way I've designed the \SpecialChar LyX
19663  
19664 \family sans
19665 slides
19666 \family default
19667  class: you can't make text in the middle of a paragraph invisible, nor
19668  make text in the middle of an invisible paragraph visible again.
19669  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19670  codes.
19671 \begin_inset Foot
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 The commands of interest are: 
19676 \end_layout
19677
19678 \begin_layout Itemize
19679
19680 \family typewriter
19681 {
19682 \backslash
19683 invisible \SpecialChar ldots
19684  }
19685 \end_layout
19686
19687 \begin_layout Itemize
19688
19689 \family typewriter
19690 {
19691 \backslash
19692 visible \SpecialChar ldots
19693  }
19694 \end_layout
19695
19696 \begin_layout Plain Layout
19697 \SpecialChar ldots
19698 and need to be marked as \SpecialChar TeX
19699 .
19700  The text whose 
19701 \begin_inset Quotes eld
19702 \end_inset
19703
19704 visibility
19705 \begin_inset Quotes erd
19706 \end_inset
19707
19708  you wish to change goes in between the brackets [and after the 
19709 \family typewriter
19710
19711 \backslash
19712 invisible
19713 \family default
19714  or 
19715 \family typewriter
19716
19717 \backslash
19718 visible
19719 \family default
19720  command].
19721  If you don't know how to mark text as \SpecialChar TeX
19722 , see the appropriate section of
19723  the 
19724 \emph on
19725 User's Guide
19726 \emph default
19727 .
19728 \end_layout
19729
19730 \end_inset
19731
19732
19733 \end_layout
19734
19735 \begin_layout Subsubsection
19736 Using 
19737 \family sans
19738 Note
19739 \family default
19740  with 
19741 \family sans
19742 Slide
19743 \family default
19744
19745 \begin_inset CommandInset label
19746 LatexCommand label
19747 name "sec:slideNote"
19748
19749 \end_inset
19750
19751
19752 \end_layout
19753
19754 \begin_layout Standard
19755 Like an 
19756 \family sans
19757 Overlay
19758 \family default
19759 , a 
19760 \family sans
19761 Note
19762 \family default
19763  is associated with a 
19764 \begin_inset Quotes eld
19765 \end_inset
19766
19767 parent
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771  
19772 \family sans
19773 Slide
19774 \family default
19775 .
19776  Here, too, the \SpecialChar LyX
19777  
19778 \family sans
19779 slides
19780 \family default
19781  class provides visual cues.
19782  The label for a 
19783 \family sans
19784 Note
19785 \family default
19786  is shorter than that of a 
19787 \family sans
19788 Slide
19789 \family default
19790  [yet longer than that of an 
19791 \family sans
19792 Overlay
19793 \family default
19794 ] and, like the label of an 
19795 \family sans
19796 Overlay
19797 \family default
19798  is shockingly magenta.
19799  Additionally, the printed 
19800 \family sans
19801 Note
19802 \family default
19803  has the page number of its 
19804 \begin_inset Quotes eld
19805 \end_inset
19806
19807 parent
19808 \begin_inset Quotes erd
19809 \end_inset
19810
19811  
19812 \family sans
19813 Slide
19814 \family default
19815 , appended by 
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819
19820 \family typewriter
19821 -
19822 \family default
19823 1
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827
19828 \begin_inset Quotes eld
19829 \end_inset
19830
19831
19832 \family typewriter
19833 -
19834 \family default
19835 2
19836 \begin_inset Quotes erd
19837 \end_inset
19838
19839
19840 \begin_inset Quotes eld
19841 \end_inset
19842
19843
19844 \family typewriter
19845 -
19846 \family default
19847 3
19848 \begin_inset Quotes erd
19849 \end_inset
19850
19851 , etc.
19852  You can have multiple 
19853 \family sans
19854 Note
19855 \family default
19856 s associated with a single 
19857 \family sans
19858 Slide
19859 \family default
19860 , and, as with 
19861 \family sans
19862 Slide
19863 \family default
19864  and 
19865 \family sans
19866 Overlay
19867 \family default
19868 , you'll probably want to break up long 
19869 \family sans
19870 Note
19871 \family default
19872 s so that they fit on a single sheet of paper.
19873 \end_layout
19874
19875 \begin_layout Standard
19876 The purpose of a 
19877 \family sans
19878 Note
19879 \family default
19880  is obvious: it contains anything additional you might want to say about
19881  a 
19882 \family sans
19883 Slide
19884 \family default
19885 .
19886  It could also be used as a sheet of reminders for a particular 
19887 \family sans
19888 Slide
19889 \family default
19890 .
19891  In the case of the latter, you might want to make use of time markers.
19892  Currently, the \SpecialChar LyX
19893  
19894 \family sans
19895 slides
19896 \family default
19897  class has no 
19898 \begin_inset Quotes eld
19899 \end_inset
19900
19901 native
19902 \begin_inset Quotes erd
19903 \end_inset
19904
19905  support for time markers, a 
19906 \noun on
19907 Sli\SpecialChar TeX
19908
19909 \noun default
19910  feature.
19911  So, you'll have to resort to using the \SpecialChar LaTeX
19912  codes.
19913 \end_layout
19914
19915 \begin_layout Standard
19916 To use time markers, you'll need to specify the extra class option 
19917 \begin_inset Quotes eld
19918 \end_inset
19919
19920
19921 \family typewriter
19922 clock
19923 \family default
19924
19925 \begin_inset Quotes erd
19926 \end_inset
19927
19928  [see section
19929 \begin_inset space ~
19930 \end_inset
19931
19932
19933 \begin_inset CommandInset ref
19934 LatexCommand ref
19935 reference "sec:slidesetup"
19936
19937 \end_inset
19938
19939 ].
19940  This option turns on timing marks, which will appear in the lower-left-hand
19941  corner of every 
19942 \family sans
19943 Note
19944 \family default
19945  you generate.
19946  To set what appears in the time marker, you use the \SpecialChar LaTeX
19947  commands 
19948 \begin_inset Quotes eld
19949 \end_inset
19950
19951
19952 \family typewriter
19953
19954 \backslash
19955 settime{}
19956 \family default
19957
19958 \begin_inset Quotes erd
19959 \end_inset
19960
19961  and 
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967
19968 \backslash
19969 addtime{}
19970 \family default
19971
19972 \begin_inset Quotes erd
19973 \end_inset
19974
19975 .
19976  The arguments of both commands are time measured in seconds.
19977  
19978 \begin_inset Quotes eld
19979 \end_inset
19980
19981
19982 \family typewriter
19983
19984 \backslash
19985 settime{}
19986 \family default
19987
19988 \begin_inset Quotes erd
19989 \end_inset
19990
19991  sets the time marker to a given time.
19992  
19993 \begin_inset Quotes eld
19994 \end_inset
19995
19996
19997 \family typewriter
19998
19999 \backslash
20000 addtime{}
20001 \family default
20002
20003 \begin_inset Quotes erd
20004 \end_inset
20005
20006  increments the time marker by the specified amount.
20007  Using time markers and 
20008 \family sans
20009 Note
20010 \family default
20011 s in this fashion, you can remind yourself how much time to spend on a particula
20012
20013 \family sans
20014 Slide
20015 \family default
20016 .
20017 \end_layout
20018
20019 \begin_layout Standard
20020 There's one last feature to describe.
20021  Clearly, you'd like to print out all of your 
20022 \family sans
20023 Slide
20024 \family default
20025 s and 
20026 \family sans
20027 Overlay
20028 \family default
20029 s on transparencies while printing all of your 
20030 \family sans
20031 Note
20032 \family default
20033 s on plain paper.
20034  However, a 
20035 \family sans
20036 Note
20037 \family default
20038  
20039 \emph on
20040 must
20041 \emph default
20042  follow the 
20043 \family sans
20044 Slide
20045 \family default
20046  with which it is associated.
20047  What's a person to do?
20048 \end_layout
20049
20050 \begin_layout Standard
20051 Luckily, there are two \SpecialChar LaTeX
20052  commands that allow you to select what to print
20053  out.
20054  Both must be placed into the preamble of your document.
20055  The command 
20056 \begin_inset Quotes eld
20057 \end_inset
20058
20059
20060 \family typewriter
20061
20062 \backslash
20063 onlyslides{
20064 \backslash
20065 slides}
20066 \family default
20067
20068 \begin_inset Quotes erd
20069 \end_inset
20070
20071  will cause the output to contain only the 
20072 \family sans
20073 Slide
20074 \family default
20075 s and 
20076 \family sans
20077 Overlay
20078 \family default
20079 s.
20080  Correspondingly, the command 
20081 \begin_inset Quotes eld
20082 \end_inset
20083
20084
20085 \family typewriter
20086
20087 \backslash
20088 onlynotes{
20089 \backslash
20090 notes}
20091 \family default
20092
20093 \begin_inset Quotes erd
20094 \end_inset
20095
20096  prevents the output of anything but 
20097 \family sans
20098 Note
20099 \family default
20100 s.
20101  I'd advise placing both commands in the preamble and initially comment
20102  both out.
20103  You can then preview your entire presentation as you write.
20104  When you're done writing, you can then uncomment one of the two to select
20105  what you want to print.
20106  I like to uncomment 
20107 \begin_inset Quotes eld
20108 \end_inset
20109
20110
20111 \family typewriter
20112
20113 \backslash
20114 onlyslides{
20115 \backslash
20116 slides}
20117 \family default
20118
20119 \begin_inset Quotes erd
20120 \end_inset
20121
20122  , print to a file with 
20123 \begin_inset Quotes eld
20124 \end_inset
20125
20126
20127 \family typewriter
20128 -slides
20129 \family default
20130
20131 \begin_inset Quotes erd
20132 \end_inset
20133
20134  in its name, comment it back out, then uncomment 
20135 \begin_inset Quotes eld
20136 \end_inset
20137
20138
20139 \family typewriter
20140
20141 \backslash
20142 onlynotes{
20143 \backslash
20144 notes}
20145 \family default
20146
20147 \begin_inset Quotes erd
20148 \end_inset
20149
20150  and print to a 
20151 \begin_inset Quotes eld
20152 \end_inset
20153
20154
20155 \family typewriter
20156 *-notes.ps
20157 \family default
20158
20159 \begin_inset Quotes erd
20160 \end_inset
20161
20162  file.
20163  I can then send either file to a printer, loading transparencies or plain
20164  paper as appropriate.
20165 \end_layout
20166
20167 \begin_layout Standard
20168 You can also provide other arguments to the 
20169 \begin_inset Quotes eld
20170 \end_inset
20171
20172
20173 \family typewriter
20174
20175 \backslash
20176 onlyslides{}
20177 \family default
20178
20179 \begin_inset Quotes erd
20180 \end_inset
20181
20182  and 
20183 \begin_inset Quotes eld
20184 \end_inset
20185
20186
20187 \family typewriter
20188
20189 \backslash
20190 onlynotes{}
20191 \family default
20192
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196  commands.
20197  See a good \SpecialChar LaTeX
20198  book for details.
20199 \end_layout
20200
20201 \begin_layout Subsection
20202 The 
20203 \family sans
20204 slides
20205 \family default
20206  Class Template File
20207 \end_layout
20208
20209 \begin_layout Standard
20210 I have also provided a template file, 
20211 \begin_inset Quotes eld
20212 \end_inset
20213
20214
20215 \family typewriter
20216 slides.lyx
20217 \family default
20218
20219 \begin_inset Quotes erd
20220 \end_inset
20221
20222 , with the 
20223 \family sans
20224 slides
20225 \family default
20226  class.
20227  To use it, begin your new presentation with 
20228 \family sans
20229 File\SpecialChar menuseparator
20230 New
20231 \begin_inset space ~
20232 \end_inset
20233
20234 from
20235 \begin_inset space ~
20236 \end_inset
20237
20238 Template
20239 \family default
20240 .
20241  Your new \SpecialChar LyX
20242  presentation file will contain an example 
20243 \family sans
20244 Slide
20245 \family default
20246  – 
20247 \family sans
20248 Overlay
20249 \family default
20250  – 
20251 \family sans
20252 Note
20253 \family default
20254  triplet.
20255  The 
20256 \family sans
20257 Slide
20258 \family default
20259  and 
20260 \family sans
20261 Overlay
20262 \family default
20263  additionally contain an example of the use of 
20264 \family sans
20265 InvisibleText
20266 \family default
20267  and 
20268 \family sans
20269 VisibleText
20270 \family default
20271 .
20272  Lastly, the preamble will contain:
20273 \end_layout
20274
20275 \begin_layout LyX-Code
20276 % Uncomment to print out only slides and overlays
20277 \end_layout
20278
20279 \begin_layout LyX-Code
20280 %
20281 \end_layout
20282
20283 \begin_layout LyX-Code
20284 %
20285 \backslash
20286 onlyslides{
20287 \backslash
20288 slides}
20289 \begin_inset Newline newline
20290 \end_inset
20291
20292  
20293 \end_layout
20294
20295 \begin_layout LyX-Code
20296 % Uncomment to print out only notes
20297 \end_layout
20298
20299 \begin_layout LyX-Code
20300 %
20301 \end_layout
20302
20303 \begin_layout LyX-Code
20304 %
20305 \backslash
20306 onlynotes{
20307 \backslash
20308 notes}
20309 \end_layout
20310
20311 \begin_layout Standard
20312 One final thing: I created this class to support the \SpecialChar LaTeX2e
20313  
20314 \begin_inset Quotes eld
20315 \end_inset
20316
20317
20318 \noun on
20319 Sli\SpecialChar TeX
20320
20321 \noun default
20322  emulation
20323 \begin_inset Quotes erd
20324 \end_inset
20325
20326  class, one of the built-in \SpecialChar LaTeX2e
20327  classes.
20328  Neither I nor the rest of the \SpecialChar LyX
20329  Team endorse or oppose the use of this built-in
20330  slide class.
20331  It's here if you want it or need it.
20332  There exist other \SpecialChar LaTeX2e
20333  classes for creating presentations, such as the 
20334 \family sans
20335 Foils
20336 \family default
20337  class [see section
20338 \begin_inset space ~
20339 \end_inset
20340
20341
20342 \begin_inset CommandInset ref
20343 LatexCommand ref
20344 reference "sec:foiltex"
20345
20346 \end_inset
20347
20348 ] or the 
20349 \begin_inset Quotes eld
20350 \end_inset
20351
20352
20353 \family typewriter
20354 seminar
20355 \family default
20356
20357 \begin_inset Quotes erd
20358 \end_inset
20359
20360  package [present on some \SpecialChar TeX
20361  distributions].
20362  The latter is not yet supported under \SpecialChar LyX
20363 .
20364 \begin_inset Foot
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 Perhaps you can take on the task\SpecialChar ldots
20369
20370 \end_layout
20371
20372 \end_inset
20373
20374  I know nothing about these other classes.
20375  Try them out to see what sort of alternative they provide.
20376 \end_layout
20377
20378 \begin_layout Chapter
20379 \SpecialChar LyX
20380  Features needing Extra Software
20381 \end_layout
20382
20383 \begin_layout Section
20384 Checking \SpecialChar TeX
20385
20386 \end_layout
20387
20388 \begin_layout Standard
20389 by 
20390 \noun on
20391 Asger Alstrup
20392 \end_layout
20393
20394 \begin_layout Subsection
20395 Introduction
20396 \end_layout
20397
20398 \begin_layout Standard
20399 If you have the 
20400 \family typewriter
20401 chktex
20402 \family default
20403  program installed
20404 \begin_inset Foot
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408
20409 \family typewriter
20410 chktex
20411 \family default
20412  is not yet available when you are using the \SpecialChar LaTeX
20413  distribution MiK\SpecialChar TeX
20414 .
20415 \end_layout
20416
20417 \end_inset
20418
20419 , you'll find in the 
20420 \family sans
20421 Tools
20422 \family default
20423  menu the entry: 
20424 \family sans
20425 Check
20426 \begin_inset space ~
20427 \end_inset
20428
20429 TeX
20430 \family default
20431 .
20432  You can get 
20433 \family typewriter
20434 chktex
20435 \family default
20436  from CTAN,
20437 \begin_inset Newline newline
20438 \end_inset
20439
20440
20441 \begin_inset CommandInset href
20442 LatexCommand href
20443 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
20444 literal "false"
20445
20446 \end_inset
20447
20448 .
20449 \end_layout
20450
20451 \begin_layout Standard
20452 The 
20453 \family sans
20454 Chk\SpecialChar TeX
20455
20456 \family default
20457  package is a program that was written by 
20458 \begin_inset Flex Noun
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462 Jens T.
20463 \begin_inset space ~
20464 \end_inset
20465
20466 Berger Thielemann
20467 \end_layout
20468
20469 \end_inset
20470
20471  in frustration because some constructs in \SpecialChar LaTeX
20472  are sometimes non-intuitive,
20473  and easy to forget.
20474  The program runs over your \SpecialChar LaTeX
20475  file, checks the integrity of the file, and
20476  flags some common errors.
20477  In other technical words, it is 
20478 \family typewriter
20479 lint
20480 \family default
20481  for \SpecialChar LaTeX
20482 .
20483 \end_layout
20484
20485 \begin_layout Standard
20486 Well, what is a syntax checker doing in \SpecialChar LyX
20487  which is supposed to produce correct
20488  \SpecialChar LaTeX
20489  anyways? The answer is simple: Just as 
20490 \family typewriter
20491 Lint
20492 \family default
20493  not only checks the 
20494 \emph on
20495 syntax
20496 \emph default
20497  of C programs, but also does 
20498 \emph on
20499 semantic
20500 \emph default
20501  checks for type-errors, 
20502 \family sans
20503 Chk\SpecialChar TeX
20504
20505 \family default
20506  catches some common 
20507 \emph on
20508 typographic
20509 \emph default
20510  errors, in addition to the syntactical ones.
20511  Specifically, 
20512 \family sans
20513 Chk\SpecialChar TeX
20514
20515 \family default
20516  is capable of detecting several common errors, such as
20517 \end_layout
20518
20519 \begin_layout Itemize
20520 Ellipsis detection:
20521 \begin_inset Newline newline
20522 \end_inset
20523
20524 Use \SpecialChar ldots
20525  instead of ...
20526 \end_layout
20527
20528 \begin_layout Itemize
20529 No space in front of/after parenthesis:
20530 \begin_inset Newline newline
20531 \end_inset
20532
20533 ( wrong spacing )
20534 \end_layout
20535
20536 \begin_layout Itemize
20537 Enforcement of normal space after common abbreviations:
20538 \begin_inset Newline newline
20539 \end_inset
20540
20541 e.
20542 \begin_inset space \thinspace{}
20543 \end_inset
20544
20545 g.
20546 \begin_inset space \space{}
20547 \end_inset
20548
20549 is too wide spacing.
20550 \end_layout
20551
20552 \begin_layout Itemize
20553 Enforcement of end-of-sentence space when the last sentence ends with a
20554  capital letter:
20555 \begin_inset Newline newline
20556 \end_inset
20557
20558 This is a TEST.
20559  And this is wrong spacing.
20560 \end_layout
20561
20562 \begin_layout Itemize
20563 Space in front of labels and similar commands:
20564 \begin_inset Newline newline
20565 \end_inset
20566
20567 The label should stick right up to the text to avoid falling to a wrong
20568  page.
20569  
20570 \begin_inset CommandInset label
20571 LatexCommand label
20572 name "sec:chktex"
20573
20574 \end_inset
20575
20576  
20577 \begin_inset Foot
20578 status collapsed
20579
20580 \begin_layout Plain Layout
20581 This footnote is in danger of falling off to a wrong page
20582 \end_layout
20583
20584 \end_inset
20585
20586  The label is separated too much.
20587 \end_layout
20588
20589 \begin_layout Itemize
20590 Space in front of references, instead of hard spaces:
20591 \begin_inset Newline newline
20592 \end_inset
20593
20594 If you have bad luck, the text will break right between the referenced text
20595  and reference number, and that's a pity.
20596  See section 
20597 \begin_inset CommandInset ref
20598 LatexCommand ref
20599 reference "sec:chktex"
20600
20601 \end_inset
20602
20603 .
20604 \end_layout
20605
20606 \begin_layout Itemize
20607 Use of 
20608 \begin_inset Quotes eld
20609 \end_inset
20610
20611 x
20612 \begin_inset Quotes erd
20613 \end_inset
20614
20615  instead of 
20616 \begin_inset Formula $\times$
20617 \end_inset
20618
20619  between numbers:
20620 \begin_inset Newline newline
20621 \end_inset
20622
20623 2x2 looks cheap compared to 
20624 \begin_inset Formula $2\times2$
20625 \end_inset
20626
20627 .
20628 \end_layout
20629
20630 \begin_layout Standard
20631 and more \SpecialChar ldots
20632  It is an invaluable tool when you are 
20633 \begin_inset Quotes eld
20634 \end_inset
20635
20636 finishing up
20637 \begin_inset Quotes erd
20638 \end_inset
20639
20640  your document before printing, and you should run it right after the obligatory
20641  spelling check, and before you go fine tuning the typesetting.
20642 \end_layout
20643
20644 \begin_layout Subsection
20645 How to use it
20646 \end_layout
20647
20648 \begin_layout Standard
20649 If you have the program installed, usage is as simple as choosing 
20650 \family sans
20651 Tools\SpecialChar menuseparator
20652 Check
20653 \begin_inset space ~
20654 \end_inset
20655
20656 TeX
20657 \family default
20658 .
20659  This will make \SpecialChar LyX
20660  generate a \SpecialChar LaTeX
20661  file of your document, start 
20662 \family sans
20663 Chk\SpecialChar TeX
20664
20665 \family default
20666  to check it, and then make \SpecialChar LyX
20667  insert 
20668 \begin_inset Quotes eld
20669 \end_inset
20670
20671 error boxes
20672 \begin_inset Quotes erd
20673 \end_inset
20674
20675  with the warnings from 
20676 \family sans
20677 Chk\SpecialChar TeX
20678
20679 \family default
20680 , if there were any.
20681  The warnings will be placed close to the point of the mistake, and you
20682  can quickly find them by using the 
20683 \family sans
20684 Navigate\SpecialChar menuseparator
20685 Error
20686 \family default
20687  menu item, or the shortcut key 
20688 \family sans
20689 C-g
20690 \family default
20691  from the default 
20692 \family typewriter
20693 cua
20694 \family default
20695  bind file.
20696  Open the error boxes by clicking on them with the mouse, or use the shortcut
20697  key 
20698 \family sans
20699 C-i
20700 \family default
20701  from 
20702 \family typewriter
20703 cua
20704 \family default
20705  bindings, or the corresponding 
20706 \family sans
20707 C-o
20708 \family default
20709  for the alternate 
20710 \family typewriter
20711 emacs
20712 \family default
20713  bind file.
20714  Read the warning and correct the mistake, if it is a mistake.
20715  If you have trouble understanding what the warning is about, you can safely
20716  ignore it.
20717  Remember that there is a hidden layer between the document on screen and
20718  the technical details in invoking 
20719 \family sans
20720 Chk\SpecialChar TeX
20721
20722 \family default
20723 , and this gap can make some warnings seem arcane or just plain silly.
20724 \end_layout
20725
20726 \begin_layout Standard
20727 This document is an excellent testing bed for the feature, and it should
20728  provide quite a few warnings for you to fiddle with.
20729  Since computers are only so smart, expect most of the warnings to be false
20730  alarms, though.
20731 \end_layout
20732
20733 \begin_layout Subsection
20734 How to fine tune it
20735 \end_layout
20736
20737 \begin_layout Standard
20738 Sometimes, you'll find that 
20739 \family sans
20740 Chk\SpecialChar TeX
20741
20742 \family default
20743  makes more noise than suits your mood.
20744  Then you can choose not to use it, wait until your mood changes, or try
20745  to customize 
20746 \family sans
20747 Chk\SpecialChar TeX
20748
20749 \family default
20750  to get better along with you.
20751 \end_layout
20752
20753 \begin_layout Standard
20754 Although 
20755 \family sans
20756 Chk\SpecialChar TeX
20757
20758 \family default
20759  
20760 \emph on
20761 is
20762 \emph default
20763  very configurable and extensible, you should not expect to solve all problems
20764  with 
20765 \family sans
20766 Chk\SpecialChar TeX
20767
20768 \family default
20769  in \SpecialChar LyX
20770  this way.
20771  Since \SpecialChar LyX
20772  has to generate a somewhat special \SpecialChar LaTeX
20773  file to be able to match the
20774  line numbers from the 
20775 \family sans
20776 Chk\SpecialChar TeX
20777
20778 \family default
20779  output
20780 \begin_inset Foot
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 You can inspect the specific output from 
20785 \family sans
20786 chktex
20787 \family default
20788  by using 
20789 \family sans
20790 Document\SpecialChar menuseparator
20791 \SpecialChar LaTeX
20792
20793 \begin_inset space ~
20794 \end_inset
20795
20796 Log
20797 \family default
20798  right after a 
20799 \family sans
20800 chktex
20801 \family default
20802  run.
20803 \end_layout
20804
20805 \end_inset
20806
20807  to the internal document structure, some of the warnings will not appear
20808  correctly.
20809  There are two things you can do about this:
20810 \end_layout
20811
20812 \begin_layout Itemize
20813 Fine tune the 
20814 \family sans
20815 Chk\SpecialChar TeX
20816
20817 \family default
20818  invocation command line in 
20819 \begin_inset Flex Noun
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 Tools\SpecialChar menuseparator
20824 Preferences\SpecialChar menuseparator
20825 Output\SpecialChar menuseparator
20826 LaTeX\SpecialChar menuseparator
20827 CheckTeX command
20828 \end_layout
20829
20830 \end_inset
20831
20832 , or the global 
20833 \family sans
20834 Chk\SpecialChar TeX
20835
20836 \family default
20837  installation configuration file (usually with the file 
20838 \family typewriter
20839 chktexrc
20840 \family default
20841 ).
20842  See below to learn what warnings can be enabled and disabled on the command
20843  line.
20844 \end_layout
20845
20846 \begin_layout Itemize
20847 Export your document as a raw \SpecialChar LaTeX
20848  file using 
20849 \family sans
20850 File\SpecialChar menuseparator
20851 Export\SpecialChar menuseparator
20852 \SpecialChar LaTeX
20853
20854 \family default
20855  and run 
20856 \family typewriter
20857 chktex
20858 \family default
20859  manually on that.
20860  Invoked in this way, it can be a hassle to find the corresponding place
20861  in the document inside \SpecialChar LyX
20862 , but with a little patience, you should be able
20863  to do it.
20864 \end_layout
20865
20866 \begin_layout Standard
20867 Here follows the warning messages that can be enabled and disabled in 
20868 \family sans
20869 Preferences
20870 \family default
20871 .
20872  Use 
20873 \family typewriter
20874 -n#
20875 \family default
20876  to disable a warning, and 
20877 \family typewriter
20878 -w#
20879 \family default
20880  to enable a warning.
20881  The emphasized entries are disabled by default, because the default is
20882  "
20883 \family typewriter
20884 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20885 \family default
20886 ".
20887 \end_layout
20888
20889 \begin_layout Standard
20890 Notice that you should only use the options that enable and disable warnings,
20891  because \SpecialChar LyX
20892  relies on some of the other command line parameters to be set
20893  in a specific way to have a chance to communicate with 
20894 \family typewriter
20895 chktex
20896 \family default
20897 .
20898 \end_layout
20899
20900 \begin_layout Enumerate
20901
20902 \size small
20903 \emph on
20904 Command terminated with space.
20905 \end_layout
20906
20907 \begin_layout Enumerate
20908
20909 \size small
20910 Non-breaking space (
20911 \begin_inset Quotes eld
20912 \end_inset
20913
20914
20915 \family typewriter
20916 ~
20917 \family default
20918
20919 \begin_inset Quotes erd
20920 \end_inset
20921
20922 ) should have been used.
20923 \end_layout
20924
20925 \begin_layout Enumerate
20926
20927 \size small
20928 \emph on
20929 You should enclose the previous parenthesis with 
20930 \begin_inset Quotes eld
20931 \end_inset
20932
20933
20934 \family typewriter
20935 {}
20936 \family default
20937
20938 \begin_inset Quotes erd
20939 \end_inset
20940
20941 .
20942 \end_layout
20943
20944 \begin_layout Enumerate
20945
20946 \size small
20947 Italic correction (
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951
20952 \family typewriter
20953
20954 \backslash
20955 /
20956 \family default
20957
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961 ) found in non-italic buffer.
20962 \end_layout
20963
20964 \begin_layout Enumerate
20965
20966 \size small
20967 Italic correction (
20968 \begin_inset Quotes eld
20969 \end_inset
20970
20971
20972 \family typewriter
20973
20974 \backslash
20975 /
20976 \family default
20977
20978 \begin_inset Quotes erd
20979 \end_inset
20980
20981 ) found more than once.
20982 \end_layout
20983
20984 \begin_layout Enumerate
20985
20986 \size small
20987 \emph on
20988 No italic correction (
20989 \begin_inset Quotes eld
20990 \end_inset
20991
20992
20993 \family typewriter
20994
20995 \backslash
20996 /
20997 \family default
20998
20999 \begin_inset Quotes erd
21000 \end_inset
21001
21002 ) found.
21003 \end_layout
21004
21005 \begin_layout Enumerate
21006
21007 \size small
21008 Accent command 
21009 \begin_inset Quotes eld
21010 \end_inset
21011
21012
21013 \family typewriter
21014 cmd
21015 \family default
21016
21017 \begin_inset Quotes erd
21018 \end_inset
21019
21020  needs use of 
21021 \begin_inset Quotes eld
21022 \end_inset
21023
21024
21025 \family typewriter
21026 cmd
21027 \family default
21028
21029 \begin_inset Quotes erd
21030 \end_inset
21031
21032 .
21033 \end_layout
21034
21035 \begin_layout Enumerate
21036
21037 \size small
21038 Wrong length of dash may have been used.
21039 \end_layout
21040
21041 \begin_layout Enumerate
21042
21043 \size small
21044 \emph on
21045 \begin_inset Quotes eld
21046 \end_inset
21047
21048
21049 \family typewriter
21050 %s
21051 \family default
21052
21053 \begin_inset Quotes erd
21054 \end_inset
21055
21056  expected, found 
21057 \begin_inset Quotes eld
21058 \end_inset
21059
21060
21061 \family typewriter
21062 %s
21063 \family default
21064
21065 \begin_inset Quotes erd
21066 \end_inset
21067
21068 .
21069 \end_layout
21070
21071 \begin_layout Enumerate
21072
21073 \size small
21074 Solo 
21075 \begin_inset Quotes eld
21076 \end_inset
21077
21078
21079 \family typewriter
21080 %s
21081 \family default
21082
21083 \begin_inset Quotes erd
21084 \end_inset
21085
21086  found.
21087 \end_layout
21088
21089 \begin_layout Enumerate
21090
21091 \size small
21092 You should use 
21093 \begin_inset Quotes eld
21094 \end_inset
21095
21096
21097 \family typewriter
21098 %s
21099 \family default
21100
21101 \begin_inset Quotes erd
21102 \end_inset
21103
21104  to achieve an ellipsis.
21105 \end_layout
21106
21107 \begin_layout Enumerate
21108
21109 \size small
21110 Inter-word spacing (
21111 \begin_inset Quotes eld
21112 \end_inset
21113
21114
21115 \family typewriter
21116
21117 \backslash
21118
21119 \family default
21120  
21121 \begin_inset Quotes eld
21122 \end_inset
21123
21124 ) should perhaps be used.
21125 \end_layout
21126
21127 \begin_layout Enumerate
21128
21129 \size small
21130 Inter-sentence spacing (
21131 \begin_inset Quotes eld
21132 \end_inset
21133
21134
21135 \family typewriter
21136
21137 \backslash
21138 @
21139 \family default
21140
21141 \begin_inset Quotes erd
21142 \end_inset
21143
21144 ) should perhaps be used.
21145 \end_layout
21146
21147 \begin_layout Enumerate
21148
21149 \size small
21150 Could not find argument for command.
21151 \end_layout
21152
21153 \begin_layout Enumerate
21154
21155 \size small
21156 No match found for 
21157 \begin_inset Quotes eld
21158 \end_inset
21159
21160
21161 \family typewriter
21162 %s
21163 \family default
21164
21165 \begin_inset Quotes erd
21166 \end_inset
21167
21168 .
21169 \end_layout
21170
21171 \begin_layout Enumerate
21172
21173 \size small
21174 Math mode still on at end of \SpecialChar LaTeX
21175  file.
21176 \end_layout
21177
21178 \begin_layout Enumerate
21179
21180 \size small
21181 Number of 
21182 \begin_inset Quotes eld
21183 \end_inset
21184
21185
21186 \family typewriter
21187 char
21188 \family default
21189
21190 \begin_inset Quotes erd
21191 \end_inset
21192
21193  doesn't match the number of 
21194 \begin_inset Quotes eld
21195 \end_inset
21196
21197
21198 \family typewriter
21199 char
21200 \family default
21201
21202 \begin_inset Quotes erd
21203 \end_inset
21204
21205 .
21206 \end_layout
21207
21208 \begin_layout Enumerate
21209
21210 \size small
21211 You should use either 
21212 \family typewriter
21213
21214 \begin_inset Quotes eld
21215 \end_inset
21216
21217
21218 \family default
21219  or 
21220 \family typewriter
21221
21222 \begin_inset Quotes erd
21223 \end_inset
21224
21225
21226 \family default
21227  as an alternative to 
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231
21232 \family typewriter
21233 "
21234 \family default
21235
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239 .
21240 \end_layout
21241
21242 \begin_layout Enumerate
21243
21244 \size small
21245 You should use "
21246 \family typewriter
21247 '
21248 \family default
21249 " (ASCII 39) instead of "
21250 \family typewriter
21251 ´
21252 \family default
21253 " (ASCII 180).
21254 \end_layout
21255
21256 \begin_layout Enumerate
21257
21258 \size small
21259 User-specified pattern found.
21260 \end_layout
21261
21262 \begin_layout Enumerate
21263
21264 \size small
21265 This command might not be intended.
21266 \end_layout
21267
21268 \begin_layout Enumerate
21269
21270 \size small
21271 \emph on
21272 Comment displayed.
21273 \end_layout
21274
21275 \begin_layout Enumerate
21276
21277 \size small
21278 Either 
21279 \family typewriter
21280 ''
21281 \backslash
21282 ,'
21283 \family default
21284  or 
21285 \family typewriter
21286 '
21287 \backslash
21288 ,''
21289 \family default
21290  will look better.
21291 \end_layout
21292
21293 \begin_layout Enumerate
21294
21295 \size small
21296 Delete this space to maintain correct page references.
21297 \end_layout
21298
21299 \begin_layout Enumerate
21300
21301 \size small
21302 \emph on
21303 You might wish to put this between a pair of 
21304 \begin_inset Quotes eld
21305 \end_inset
21306
21307
21308 \family typewriter
21309 {}
21310 \family default
21311
21312 \begin_inset Quotes erd
21313 \end_inset
21314
21315 .
21316 \end_layout
21317
21318 \begin_layout Enumerate
21319
21320 \size small
21321 You ought to remove spaces in front of punctuation.
21322 \end_layout
21323
21324 \begin_layout Enumerate
21325
21326 \size small
21327 Could not execute \SpecialChar LaTeX
21328  command.
21329 \end_layout
21330
21331 \begin_layout Enumerate
21332
21333 \size small
21334 Don't use 
21335 \family typewriter
21336
21337 \backslash
21338 /
21339 \family default
21340  in front of small punctuation.
21341 \end_layout
21342
21343 \begin_layout Enumerate
21344
21345 \family typewriter
21346 \size small
21347 $
21348 \backslash
21349 times$
21350 \family default
21351  may look prettier here.
21352 \end_layout
21353
21354 \begin_layout Enumerate
21355
21356 \size small
21357 \emph on
21358 Multiple spaces detected in output.
21359 \end_layout
21360
21361 \begin_layout Enumerate
21362
21363 \size small
21364 This text may be ignored.
21365 \end_layout
21366
21367 \begin_layout Enumerate
21368
21369 \size small
21370 Use 
21371 \family typewriter
21372
21373 \begin_inset Quotes eld
21374 \end_inset
21375
21376
21377 \family default
21378  to begin quotation, not 
21379 \family typewriter
21380 '
21381 \family default
21382 .
21383 \end_layout
21384
21385 \begin_layout Enumerate
21386
21387 \size small
21388 Use 
21389 \family typewriter
21390 '
21391 \family default
21392  to end quotation, not 
21393 \family typewriter
21394
21395 \begin_inset Quotes eld
21396 \end_inset
21397
21398
21399 \family default
21400 .
21401 \end_layout
21402
21403 \begin_layout Enumerate
21404
21405 \size small
21406 Don't mix quotes.
21407 \end_layout
21408
21409 \begin_layout Enumerate
21410
21411 \size small
21412 You should perhaps use 
21413 \begin_inset Quotes eld
21414 \end_inset
21415
21416
21417 \family typewriter
21418 cmd
21419 \family default
21420
21421 \begin_inset Quotes erd
21422 \end_inset
21423
21424  instead.
21425 \end_layout
21426
21427 \begin_layout Enumerate
21428
21429 \size small
21430 You should put a space in front of/after parenthesis.
21431 \end_layout
21432
21433 \begin_layout Enumerate
21434
21435 \size small
21436 You should avoid spaces in front of/after parenthesis.
21437 \end_layout
21438
21439 \begin_layout Enumerate
21440
21441 \size small
21442 \emph on
21443 You should not use punctuation in front of/after quotes.
21444 \end_layout
21445
21446 \begin_layout Enumerate
21447
21448 \size small
21449 Double space found.
21450 \end_layout
21451
21452 \begin_layout Enumerate
21453
21454 \size small
21455 You should put punctuation outside inner/inside display math mode.
21456 \end_layout
21457
21458 \begin_layout Enumerate
21459
21460 \size small
21461 You ought to not use primitive \SpecialChar TeX
21462  in \SpecialChar LaTeX
21463  code.
21464 \end_layout
21465
21466 \begin_layout Enumerate
21467
21468 \size small
21469 You should remove spaces in front of 
21470 \begin_inset Quotes eld
21471 \end_inset
21472
21473
21474 \family typewriter
21475 %s
21476 \family default
21477
21478 \begin_inset Quotes erd
21479 \end_inset
21480
21481
21482 \end_layout
21483
21484 \begin_layout Enumerate
21485
21486 \size small
21487 \begin_inset Quotes eld
21488 \end_inset
21489
21490
21491 \family typewriter
21492 %s
21493 \family default
21494
21495 \begin_inset Quotes erd
21496 \end_inset
21497
21498  is normally not followed by 
21499 \begin_inset Quotes eld
21500 \end_inset
21501
21502
21503 \family typewriter
21504 %c
21505 \family default
21506
21507 \begin_inset Quotes erd
21508 \end_inset
21509
21510 .
21511 \end_layout
21512
21513 \begin_layout Standard
21514 In later versions of \SpecialChar LyX
21515 , we hope to provide a more complete interface to this
21516  tool (and it's smaller cousin 
21517 \family typewriter
21518 lacheck
21519 \family default
21520 ) to exploit the full power of it.
21521  But it's not exactly useless as it is now: go try it on one of your existing
21522  documents of a certain length and be surprised.
21523 \end_layout
21524
21525 \begin_layout Section
21526 Version Control in \SpecialChar LyX
21527
21528 \end_layout
21529
21530 \begin_layout Standard
21531 by
21532 \noun on
21533  Lars Gullik Bjønnes 
21534 \noun default
21535 and 
21536 \noun on
21537 Pavel Sanda
21538 \end_layout
21539
21540 \begin_layout Subsection
21541 Introduction
21542 \end_layout
21543
21544 \begin_layout Standard
21545 \SpecialChar LyX
21546  supports some of the most basic RCS/CVS/SVN/GIT commands.
21547  If you need something a bit more sophisticated you will have to do that
21548  manually in a terminal.
21549 \end_layout
21550
21551 \begin_layout Standard
21552 Also note that CVS support is not as good as subversion support, so we advise
21553  using SVN instead.
21554  A good place to start learning Subversion is the SVN Book
21555 \begin_inset Foot
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 \begin_inset CommandInset href
21560 LatexCommand href
21561 target "http://svnbook.red-bean.com/"
21562 literal "false"
21563
21564 \end_inset
21565
21566
21567 \end_layout
21568
21569 \end_inset
21570
21571 .
21572  In the case of RCS you should read 
21573 \begin_inset Quotes eld
21574 \end_inset
21575
21576 rcsintro
21577 \begin_inset Quotes erd
21578 \end_inset
21579
21580  (a man file, read it with 
21581 \family typewriter
21582 man rcsintro
21583 \family default
21584 ).
21585  This file describes all the basic features of RCS.
21586  You should especially notice the comment about a RCS directory, and the
21587  notion of a master RCS file (the file ending in 
21588 \family typewriter
21589 ,v
21590 \family default
21591 ).
21592 \end_layout
21593
21594 \begin_layout Standard
21595 Before you begin to use the version control features in \SpecialChar LyX
21596 , you should be
21597  familiar with RCS/CVS/SVN/GIT usage.
21598  The implementation in \SpecialChar LyX
21599  assumes a recent version of the GNU RCS or CVS/SVN
21600  package — no guarantees are made for older versions.
21601  Most of the log messages are not currently displayed after operations —
21602  you can check them in the Messages pane if you are unsure.
21603  Regular users of version control will appreciate the VC toolbar, which
21604  can be enabled via 
21605 \family sans
21606 View\SpecialChar menuseparator
21607 Toolbars\SpecialChar menuseparator
21608 Version
21609 \begin_inset space ~
21610 \end_inset
21611
21612 Control
21613 \family default
21614 .
21615 \end_layout
21616
21617 \begin_layout Standard
21618 For introducing your own external commands consult 
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623 vc-command
21624 \end_layout
21625
21626 \end_inset
21627
21628  in the manual 
21629 \emph on
21630 \SpecialChar LyX
21631  Functions
21632 \emph default
21633 .
21634 \end_layout
21635
21636 \begin_layout Standard
21637 It is strongly recommended to store documents in uncompressed format if
21638  using version control (uncheck 
21639 \family sans
21640 Document\SpecialChar menuseparator
21641 Compressed
21642 \family default
21643  if it is checked): Uncompressed LyX documents are text files and therefore
21644  for merging two different versions by version control systems.
21645  Compressed LyX documents are binary files, which cannot be merged by version
21646  control systems.
21647 \end_layout
21648
21649 \begin_layout Subsection
21650 RCS commands in \SpecialChar LyX
21651
21652 \end_layout
21653
21654 \begin_layout Standard
21655 The following sections describe the RCS commands supported by \SpecialChar LyX
21656 .
21657  You can find them in the 
21658 \family sans
21659 File\SpecialChar menuseparator
21660 Version
21661 \begin_inset space ~
21662 \end_inset
21663
21664 Control
21665 \family default
21666  submenu.
21667  \SpecialChar LyX
21668  was tested against RCS 5.7/5.8.
21669 \end_layout
21670
21671 \begin_layout Subsubsection
21672
21673 \family sans
21674 Register
21675 \end_layout
21676
21677 \begin_layout Standard
21678 If your document is not under revision control, this is the only item shown
21679  in the menu.
21680  And if it is under revision control, the 
21681 \family sans
21682 Register
21683 \family default
21684  item is not visible.
21685  
21686 \end_layout
21687
21688 \begin_layout Standard
21689 This command registers your document with RCS (unless you are under the
21690  directory managed by CVS)\SpecialChar endofsentence
21691  You are asked interactively to supply an initial
21692  description of the document.
21693  The document is now set in Read-Only mode and you have to 
21694 \family sans
21695 Check
21696 \begin_inset space ~
21697 \end_inset
21698
21699 Out
21700 \begin_inset space ~
21701 \end_inset
21702
21703 For
21704 \begin_inset space ~
21705 \end_inset
21706
21707 Edit
21708 \family default
21709 , before making any changes to it.
21710  A document under revision control has a 
21711 \begin_inset Quotes eld
21712 \end_inset
21713
21714 [RCS:<version> <locker>]
21715 \begin_inset Quotes erd
21716 \end_inset
21717
21718  item tagged to the filename in the minibuffer.
21719 \end_layout
21720
21721 \begin_layout Standard
21722 RCS command that is run:
21723 \end_layout
21724
21725 \begin_layout LyX-Code
21726
21727 \family typewriter
21728 ci -q -u -i -t-"<initial description>" <file-name>
21729 \end_layout
21730
21731 \begin_layout Standard
21732 Read 
21733 \family typewriter
21734 man ci
21735 \family default
21736  to understand the switches.
21737  
21738 \end_layout
21739
21740 \begin_layout Subsubsection
21741
21742 \family sans
21743 Check In Changes
21744 \end_layout
21745
21746 \begin_layout Standard
21747 When you are finished editing a file, you check in your changes.
21748  When you do this, you are asked for a description of the changes.
21749  This is stored in the history log.
21750  The version number is bumped, your changes are applied to the master RCS
21751  file, the document is unlocked and set to Read-Only mode.
21752 \end_layout
21753
21754 \begin_layout Itemize
21755 RCS command: 
21756 \family typewriter
21757 ci -q -u -m"<description>" <file-name>
21758 \end_layout
21759
21760 \begin_layout Subsubsection
21761
21762 \family sans
21763 Check Out For Edit
21764 \end_layout
21765
21766 \begin_layout Standard
21767 By doing this you lock the document so that only you can edit it.
21768  This will also make the document Read-Write only for you.
21769  You will usually continue editing for a while and when you are finished
21770  you check in your changes.
21771  The status line is changed to reflect that you have locked the file.
21772 \end_layout
21773
21774 \begin_layout Itemize
21775 RCS command: 
21776 \family typewriter
21777 co -q -l <file-name>
21778 \end_layout
21779
21780 \begin_layout Subsubsection
21781
21782 \family sans
21783 Revert To Repository Version
21784 \end_layout
21785
21786 \begin_layout Standard
21787 This will discard all changes made to the document since the last check
21788  in.
21789  You get a warning before changes are discarded.
21790 \end_layout
21791
21792 \begin_layout Itemize
21793 RCS command: 
21794 \family typewriter
21795 co -f -u<version> <file-name>
21796 \end_layout
21797
21798 \begin_layout Subsubsection
21799
21800 \family sans
21801 Copy
21802 \end_layout
21803
21804 \begin_layout Standard
21805 This will create a copy of the current document.
21806  Since RCS does not support copy operations natively, the version history
21807  is not preserved, and the copy is added as a new file.
21808  It requires a clean document without any changes since the last checkin.
21809  You are asked for a file name and a description of the copy operation.
21810  After that the copy is created, both locally and in the repository.
21811  If the parent directories of the copied and original document differ, all
21812  relative paths of included files of the copy are adjusted (like in 
21813 \family sans
21814 File\SpecialChar menuseparator
21815 Save As
21816 \family default
21817 \SpecialChar ldots
21818 ).
21819  Finally, the copy is loaded instead of the original document.
21820 \end_layout
21821
21822 \begin_layout Labeling
21823 \labelwidthstring 00.00.0000
21824 RCS
21825 \begin_inset space ~
21826 \end_inset
21827
21828 commands: 
21829 \begin_inset space ~
21830 \end_inset
21831
21832
21833 \begin_inset Newline newline
21834 \end_inset
21835
21836 Copy 
21837 \begin_inset Flex Code
21838 status collapsed
21839
21840 \begin_layout Plain Layout
21841
21842 \family typewriter
21843 \begin_inset Quotes qld
21844 \end_inset
21845
21846 <file-name>
21847 \begin_inset Quotes qld
21848 \end_inset
21849
21850
21851 \end_layout
21852
21853 \end_inset
21854
21855  to 
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860
21861 \family typewriter
21862 \begin_inset Quotes qld
21863 \end_inset
21864
21865 <new-file-name>
21866 \begin_inset Quotes qld
21867 \end_inset
21868
21869
21870 \end_layout
21871
21872 \end_inset
21873
21874
21875 \begin_inset Newline newline
21876 \end_inset
21877
21878
21879 \begin_inset Flex Code
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883 ci -q -u 
21884 \family typewriter
21885 -i 
21886 \begin_inset Quotes qld
21887 \end_inset
21888
21889 <new-file-name>
21890 \begin_inset Quotes qld
21891 \end_inset
21892
21893
21894 \end_layout
21895
21896 \end_inset
21897
21898
21899 \end_layout
21900
21901 \begin_layout Subsubsection
21902
21903 \family sans
21904 Undo Last Checkin
21905 \end_layout
21906
21907 \begin_layout Standard
21908 This makes as if the last check in never happened.
21909  No changes are made to the document loaded into \SpecialChar LyX
21910 , but the last version
21911  is removed from the master RCS file.
21912 \end_layout
21913
21914 \begin_layout Itemize
21915 RCS command: 
21916 \family typewriter
21917 rcs -o<version> <file-name>
21918 \end_layout
21919
21920 \begin_layout Subsubsection
21921
21922 \family sans
21923 Show History
21924 \end_layout
21925
21926 \begin_layout Standard
21927 This shows the complete history of the RCS document.
21928  The output of 
21929 \family typewriter
21930 rlog <file-name>
21931 \family default
21932  is shown in a browser.
21933  See 
21934 \family typewriter
21935 man rlog
21936 \family default
21937  for more info.
21938 \end_layout
21939
21940 \begin_layout Subsubsection
21941 Revision info
21942 \end_layout
21943
21944 \begin_layout Standard
21945 \SpecialChar LyX
21946  supports RCS version number, author name, date and time of last commit.
21947  All those are extracted from 
21948 \family typewriter
21949 rlog -r <file-name>
21950 \family default
21951 .
21952  See 
21953 \begin_inset CommandInset ref
21954 LatexCommand ref
21955 reference "subsec:VCS-Revision-Information"
21956
21957 \end_inset
21958
21959  for details.
21960 \end_layout
21961
21962 \begin_layout Subsection
21963 CVS commands in \SpecialChar LyX
21964
21965 \end_layout
21966
21967 \begin_layout Standard
21968 A subset of CVS operations is supported by \SpecialChar LyX
21969 .
21970  You can find the commands in the 
21971 \family sans
21972 File\SpecialChar menuseparator
21973 Version
21974 \begin_inset space ~
21975 \end_inset
21976
21977 Control
21978 \family default
21979  submenu.
21980  The version control system SVN is more powerful, so please use it instead
21981  of CVS if possible.
21982 \end_layout
21983
21984 \begin_layout Subsubsection
21985
21986 \family sans
21987 General CVS usage
21988 \end_layout
21989
21990 \begin_layout Standard
21991 If you start from scratch with CVS you have to create your repository and
21992  checkout the working copy with external tools.
21993  If you're using a client-server setup you may need to login before doing
21994  the first repository checkout.
21995 \end_layout
21996
21997 \begin_layout Standard
21998 If your documents are under revision control and others are using the same
21999  repository problems arise when different changes to the same document at
22000  the same location happen.
22001  Standard CVS repositories don't operate with a file locking mechanism.
22002  This may be surprising, but conflicts only occur if people disagree on
22003  the proper content of the same part of a document.
22004  So, if co-workers are used to communicate regularly, these conflicts occur
22005  rarely.
22006  If they don't communicate they have a fundamental problem anyway.
22007  Nevertheless some people like to work with so called 
22008 \begin_inset Quotes eld
22009 \end_inset
22010
22011 reserved checkouts
22012 \begin_inset Quotes erd
22013 \end_inset
22014
22015 .
22016  If they do so the working copy of all files is readonly when checked out
22017  first and the user starts editing after using a special command to make
22018  the working copy writable.
22019  When the changes are checked in the working copy returns to readonly state.
22020  With \SpecialChar LyX
22021  one has to edit the 
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 .cvsrc
22027 \end_layout
22028
22029 \end_inset
22030
22031  file and add the line 
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 cvs -r
22037 \end_layout
22038
22039 \end_inset
22040
22041  to work with reserved checkouts.
22042  The benefit is the possibility to see who is using a writable copy of some
22043  document.
22044  It's not guaranteed only one user makes a copy writable.
22045 \end_layout
22046
22047 \begin_layout Standard
22048 \SpecialChar LyX
22049  tries to guess if you're using reserved or non-reserved checkouts.
22050  If your working copy is readonly or it is writable and an additional copy
22051  of your document exists in the CVS/Base sub-directory a reserved otherwise
22052  a non-reserved checkout is assumed.
22053  When a reserved checkout is detected you have to use 
22054 \begin_inset Flex Noun
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058 Check Out
22059 \end_layout
22060
22061 \end_inset
22062
22063  to make your working copy writable if it's readonly.
22064  After doing so the 
22065 \begin_inset Flex Noun
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069 Check In
22070 \end_layout
22071
22072 \end_inset
22073
22074  operation is possible and that makes your working copy readonly again after
22075  transferring your changes to the repository.
22076 \end_layout
22077
22078 \begin_layout Standard
22079 More information about CVS can be found here 
22080 \begin_inset Flex URL
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084
22085 http://www.nongnu.org/cvs
22086 \end_layout
22087
22088 \end_inset
22089
22090  and here 
22091 \begin_inset Flex URL
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095
22096 http://ximbiot.com/cvs
22097 \end_layout
22098
22099 \end_inset
22100
22101 .
22102 \end_layout
22103
22104 \begin_layout Standard
22105 Read 
22106 \family typewriter
22107 man cvs
22108 \family default
22109  to understand the sub-commands and the switches mentioned below.
22110 \end_layout
22111
22112 \begin_layout Subsubsection
22113
22114 \family sans
22115 Register
22116 \end_layout
22117
22118 \begin_layout Standard
22119 If your document is not under revision control, this is the only item shown
22120  in the menu.
22121  And if it is under revision control, the 
22122 \family sans
22123 Register
22124 \family default
22125  item is not visible.
22126  
22127 \end_layout
22128
22129 \begin_layout Standard
22130 This command registers in CVS your document 
22131 \begin_inset Flex Strong
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135
22136 \emph on
22137 only
22138 \end_layout
22139
22140 \end_inset
22141
22142  in the case you have already the documents directory under CVS control
22143  (in particular 
22144 \family typewriter
22145 CVS/Entries
22146 \family default
22147  file exists).
22148  This means you have to create or checkout the archive by yourself using
22149  external tools.
22150  (In case you forget that step \SpecialChar LyX
22151  registers the document with RCS.)
22152 \end_layout
22153
22154 \begin_layout Standard
22155 Then you are asked interactively to supply an initial description of the
22156  document.
22157  Don't forget that registered file is not yet checked in.
22158 \end_layout
22159
22160 \begin_layout Standard
22161 CVS command that is run: 
22162 \family typewriter
22163 cvs -q add -m"<entered message>" "<file-name>"
22164 \end_layout
22165
22166 \begin_layout Standard
22167 The term 
22168 \family typewriter
22169 "<file-name>"
22170 \family default
22171  above and for all other CVS commands is an abbreviation for 
22172 \begin_inset Quotes eld
22173 \end_inset
22174
22175 change the current working directory to file location and use the file name
22176  without path component as argument
22177 \begin_inset Quotes erd
22178 \end_inset
22179
22180 .
22181 \end_layout
22182
22183 \begin_layout Subsubsection
22184
22185 \family sans
22186 Check In Changes
22187 \end_layout
22188
22189 \begin_layout Standard
22190 When you are finished editing a file, you commit your changes.
22191  When you do this and you had changed the document, you are asked for a
22192  description of the changes.
22193  After that changes are written to the repository.
22194  In case you didn't change the document and a reserved checkout is detected
22195  the reservation made on 
22196 \begin_inset Flex Noun
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200 Check Out
22201 \end_layout
22202
22203 \end_inset
22204
22205  is undone.
22206 \end_layout
22207
22208 \begin_layout Labeling
22209 \labelwidthstring 00.00.0000
22210 CVS
22211 \begin_inset space ~
22212 \end_inset
22213
22214 command: 
22215 \begin_inset space ~
22216 \end_inset
22217
22218
22219 \begin_inset Newline newline
22220 \end_inset
22221
22222
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 cvs 
22228 \family typewriter
22229 -q commit -m"<description>" "<file-name>"
22230 \end_layout
22231
22232 \end_inset
22233
22234  or
22235 \begin_inset Newline newline
22236 \end_inset
22237
22238
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243 cvs -q unedit 
22244 \family typewriter
22245 "<file-name>"
22246 \end_layout
22247
22248 \end_inset
22249
22250
22251 \end_layout
22252
22253 \begin_layout Subsubsection
22254
22255 \family sans
22256 Check Out Changes
22257 \end_layout
22258
22259 \begin_layout Standard
22260 When you are sharing a repository with others, you may have to incorporate
22261  their changes into your working copy.
22262 \end_layout
22263
22264 \begin_layout Standard
22265 CVS command: 
22266 \family typewriter
22267 cvs -q update "<file-name>"
22268 \end_layout
22269
22270 \begin_layout Standard
22271 If a readonly checkout is detected the working copy is made writable and
22272  reserved.
22273 \end_layout
22274
22275 \begin_layout Standard
22276 CVS command: 
22277 \family typewriter
22278 cvs -q edit "<file-name>"
22279 \end_layout
22280
22281 \begin_layout Subsubsection
22282
22283 \family sans
22284 Revert To Repository Version
22285 \end_layout
22286
22287 \begin_layout Standard
22288 This will discard all changes made to the document since the last check
22289  in.
22290  You get a warning before changes are discarded.
22291  Firstly the file is deleted, secondly CVS update command is run.
22292 \end_layout
22293
22294 \begin_layout Standard
22295 CVS command: 
22296 \family typewriter
22297 cvs -q update "<file-name>"
22298 \end_layout
22299
22300 \begin_layout Standard
22301 If a reserved checkout is detected and the working copy has no changes only
22302  the reservation is undone.
22303 \end_layout
22304
22305 \begin_layout Standard
22306 CVS command: 
22307 \family typewriter
22308 cvs -q unedit "<file-name>"
22309 \end_layout
22310
22311 \begin_layout Subsubsection
22312
22313 \family sans
22314 Copy
22315 \end_layout
22316
22317 \begin_layout Standard
22318 This will create a copy of the current document.
22319  Since CVS does not support copy operations natively, the version history
22320  is not preserved, and the copy is added as a new file.
22321  It requires a clean document without any changes since the last checkin.
22322  You are asked for a file name and a description of the copy operation.
22323  After that the copy is created, both locally and in the repository.
22324  If the parent directories of the copied and original document differ, all
22325  relative paths of included files of the copy are adjusted (like in 
22326 \family sans
22327 File\SpecialChar menuseparator
22328 Save As
22329 \family default
22330 \SpecialChar ldots
22331 ).
22332  Finally, the copy is loaded instead of the original document.
22333 \end_layout
22334
22335 \begin_layout Labeling
22336 \labelwidthstring 00.00.0000
22337 CVS
22338 \begin_inset space ~
22339 \end_inset
22340
22341 commands: 
22342 \begin_inset space ~
22343 \end_inset
22344
22345
22346 \begin_inset Newline newline
22347 \end_inset
22348
22349 Copy 
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 "<file-name>"
22355 \end_layout
22356
22357 \end_inset
22358
22359  to 
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 "<new-file-name>"
22365 \end_layout
22366
22367 \end_inset
22368
22369
22370 \begin_inset Newline newline
22371 \end_inset
22372
22373
22374 \begin_inset Flex Code
22375 status collapsed
22376
22377 \begin_layout Plain Layout
22378 cvs -q add "<new-file-name>"
22379 \end_layout
22380
22381 \end_inset
22382
22383
22384 \end_layout
22385
22386 \begin_layout Subsubsection
22387
22388 \family sans
22389 Rename
22390 \end_layout
22391
22392 \begin_layout Standard
22393 This will rename the current document.
22394  Since CVS does not support rename operations natively, the version history
22395  is not preserved, the renamed document is added as a new file, and the
22396  original document is deleted.
22397  It requires a clean document without any changes since the last checkin.
22398  You are asked for a file name and a description of the rename operation.
22399  After that the document is renamed, both locally and in the repository.
22400  If the parent directories of the new and old file names differ, all relative
22401  paths of included files are adjusted (like in 
22402 \family sans
22403 File\SpecialChar menuseparator
22404 Save As
22405 \family default
22406 \SpecialChar ldots
22407 ).
22408  Finally, the document is reloaded using the new name.
22409 \end_layout
22410
22411 \begin_layout Labeling
22412 \labelwidthstring 00.00.0000
22413 CVS
22414 \begin_inset space ~
22415 \end_inset
22416
22417 commands: 
22418 \begin_inset space ~
22419 \end_inset
22420
22421
22422 \begin_inset Newline newline
22423 \end_inset
22424
22425 Rename 
22426 \begin_inset Flex Code
22427 status collapsed
22428
22429 \begin_layout Plain Layout
22430 "<file-name>"
22431 \end_layout
22432
22433 \end_inset
22434
22435  to 
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 "<new-file-name>"
22441 \end_layout
22442
22443 \end_inset
22444
22445
22446 \begin_inset Newline newline
22447 \end_inset
22448
22449
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 cvs -q add "<new-file-name>"
22455 \end_layout
22456
22457 \end_inset
22458
22459
22460 \begin_inset Newline newline
22461 \end_inset
22462
22463
22464 \begin_inset Flex Code
22465 status collapsed
22466
22467 \begin_layout Plain Layout
22468 cvs -q remove "<file-name>"
22469 \end_layout
22470
22471 \end_inset
22472
22473
22474 \end_layout
22475
22476 \begin_layout Subsubsection
22477 Update of the local directory checkout from repository
22478 \end_layout
22479
22480 \begin_layout Standard
22481 Once your documents gets more complex, containing sub-documents and pictures,
22482  including external 
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 .tex
22488 \end_layout
22489
22490 \end_inset
22491
22492  files and so on using version control becomes more complicated.
22493  \SpecialChar LyX
22494  supports updating the whole tree in which resides the document.
22495  This become especially useful once you cooperate with people which neither
22496  have detailed knowledge about CVS usage nor they have ambition to commit
22497  additional material to the repository.
22498  You have to organize the files structure so that all external files are
22499  in the same directory or subdirectories of the document.
22500  It's good practice anyway to store multipart documents in an extra directory.
22501 \end_layout
22502
22503 \begin_layout Standard
22504 The 
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 Update local directory from repository
22510 \end_layout
22511
22512 \end_inset
22513
22514  command updates the whole directory.
22515  If local changes are detected user is warned before update starts.
22516  In case of merge conflicts both versions of the conflicting document parts
22517  are placed in the final document.
22518  You have to review and correct the result of the merge.
22519  You'll find the conflicts enclosed in pairs of 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524 <<<<<<<
22525 \end_layout
22526
22527 \end_inset
22528
22529  and 
22530 \begin_inset Flex Code
22531 status collapsed
22532
22533 \begin_layout Plain Layout
22534 >>>>>>>
22535 \end_layout
22536
22537 \end_inset
22538
22539  separated by 
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 =======
22545 \end_layout
22546
22547 \end_inset
22548
22549 .
22550  The first part is your version as before the update operation with the
22551  document name prepended.
22552  The second one is the repository version with the version number after
22553  the sequence of 
22554 \begin_inset Flex Code
22555 status collapsed
22556
22557 \begin_layout Plain Layout
22558 >
22559 \end_layout
22560
22561 \end_inset
22562
22563  signs.
22564 \end_layout
22565
22566 \begin_layout Labeling
22567 \labelwidthstring 00.00.0000
22568 CVS
22569 \begin_inset space ~
22570 \end_inset
22571
22572 commands: 
22573 \begin_inset space ~
22574 \end_inset
22575
22576
22577 \begin_inset Newline newline
22578 \end_inset
22579
22580
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 cd $path; cvs diff 
22586 \family typewriter
22587 "."
22588 \end_layout
22589
22590 \end_inset
22591
22592  (Ask if changes are detected.)
22593 \begin_inset Newline newline
22594 \end_inset
22595
22596
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 cd $path; cvs -q update 
22602 \family typewriter
22603 "."
22604 \end_layout
22605
22606 \end_inset
22607
22608
22609 \end_layout
22610
22611 \begin_layout Standard
22612 where 
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 $path
22618 \end_layout
22619
22620 \end_inset
22621
22622  stands for the path to the document.
22623 \end_layout
22624
22625 \begin_layout Subsubsection
22626
22627 \family sans
22628 Show History
22629 \end_layout
22630
22631 \begin_layout Standard
22632 This shows the complete history of the CVS document.
22633  The output of 
22634 \family typewriter
22635 cvs log "<file-name>"
22636 \family default
22637  is shown in a browser.
22638 \end_layout
22639
22640 \begin_layout Subsubsection
22641 Revision info
22642 \end_layout
22643
22644 \begin_layout Standard
22645 \SpecialChar LyX
22646  supports CVS version number, author name, date and time of last commit.
22647  All those are extracted from 
22648 \family typewriter
22649 cvs log -r <file-name>
22650 \family default
22651 .
22652  See 
22653 \begin_inset CommandInset ref
22654 LatexCommand ref
22655 reference "subsec:VCS-Revision-Information"
22656
22657 \end_inset
22658
22659  for details.
22660 \end_layout
22661
22662 \begin_layout Subsection
22663 SVN commands in \SpecialChar LyX
22664
22665 \end_layout
22666
22667 \begin_layout Standard
22668 SVN is now partially supported by \SpecialChar LyX
22669 .
22670  You can find the commands in the 
22671 \family sans
22672 File\SpecialChar menuseparator
22673 Version
22674 \begin_inset space ~
22675 \end_inset
22676
22677 Control
22678 \family default
22679  submenu.
22680  Please note that if you use password protected access to repository via
22681  ssh, you will be asked in terminal window.
22682  \SpecialChar LyX
22683  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22684 \begin_inset Foot
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688 Most of the commands will work with 1.4 too, see 
22689 \begin_inset CommandInset ref
22690 LatexCommand ref
22691 reference "subsec:SVN-Repo-Update"
22692
22693 \end_inset
22694
22695 .
22696  There seems to be currently unresolved permissions problem under SVN 1.8
22697  with reverting changes when file is locked.
22698 \end_layout
22699
22700 \end_inset
22701
22702
22703 \end_layout
22704
22705 \begin_layout Subsubsection
22706
22707 \family sans
22708 Register
22709 \end_layout
22710
22711 \begin_layout Standard
22712 If your document is not under revision control, this is the only item shown
22713  in the menu.
22714  And if it is under revision control, the 
22715 \family sans
22716 Register
22717 \family default
22718  item is not visible.
22719 \end_layout
22720
22721 \begin_layout Standard
22722 This command registers in SVN your document ONLY in case you have already
22723  the documents directory under SVN control (in particular 
22724 \family typewriter
22725 .svn/entries
22726 \family default
22727  file exists).
22728  This means you have to checkout the archive by yourself.
22729 \end_layout
22730
22731 \begin_layout Standard
22732 Then you are asked interactively to supply an initial description of the
22733  document.
22734  Don't forget that registered file is not yet commited.
22735 \end_layout
22736
22737 \begin_layout Standard
22738 SVN command that is run: 
22739 \family typewriter
22740 svn add -q 
22741 \begin_inset Quotes qld
22742 \end_inset
22743
22744 <file-name>
22745 \begin_inset Quotes qld
22746 \end_inset
22747
22748
22749 \end_layout
22750
22751 \begin_layout Standard
22752 Read 
22753 \family typewriter
22754 man svn
22755 \family default
22756  to understand the switches.
22757 \end_layout
22758
22759 \begin_layout Subsubsection
22760
22761 \family sans
22762 Check In Changes
22763 \end_layout
22764
22765 \begin_layout Standard
22766 When you are finished editing a file, you commit your changes.
22767  When you do this, you are asked for a description of the changes.
22768  After that changes are commited.
22769 \end_layout
22770
22771 \begin_layout Standard
22772 SVN command:
22773 \begin_inset Foot
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 In case locking is not enabled.
22778  See Section 
22779 \begin_inset CommandInset ref
22780 LatexCommand ref
22781 reference "subsec:SVN-File-Locking"
22782
22783 \end_inset
22784
22785 .
22786 \end_layout
22787
22788 \end_inset
22789
22790  
22791 \family typewriter
22792 svn commit -q -m"<description>" <file-name>
22793 \end_layout
22794
22795 \begin_layout Subsubsection
22796
22797 \family sans
22798 Check Out For Edit
22799 \end_layout
22800
22801 \begin_layout Standard
22802 Updates the changes of this file from the repository.
22803  Be sure you understand SVN merging and conflicts resolving before using
22804  this function, because all conflicts has to be resolved manually by you!
22805 \end_layout
22806
22807 \begin_layout Standard
22808 SVN command:
22809 \begin_inset Foot
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 Ditto.
22814 \end_layout
22815
22816 \end_inset
22817
22818  
22819 \family typewriter
22820 svn update --non-interactive 
22821 \begin_inset Quotes qld
22822 \end_inset
22823
22824 <file-name>
22825 \begin_inset Quotes qld
22826 \end_inset
22827
22828
22829 \end_layout
22830
22831 \begin_layout Subsubsection
22832
22833 \family sans
22834 Revert To Repository Version
22835 \end_layout
22836
22837 \begin_layout Standard
22838 This will discard all changes made to the document since the last check
22839  in.
22840  You get a warning before changes are discarded.
22841 \end_layout
22842
22843 \begin_layout Standard
22844 SVN command: 
22845 \family typewriter
22846 svn revert -q 
22847 \begin_inset Quotes qld
22848 \end_inset
22849
22850 <file-name>
22851 \begin_inset Quotes qld
22852 \end_inset
22853
22854
22855 \end_layout
22856
22857 \begin_layout Subsubsection
22858
22859 \family sans
22860 Copy
22861 \end_layout
22862
22863 \begin_layout Standard
22864 This will create a copy of the current document including the version history.
22865  It requires a clean document without any changes since the last checkin.
22866  You are asked for a file name and a description of the copy operation.
22867  After that the copy is created, both locally and in the repository.
22868  If the parent directories of the copied and original document differ, all
22869  relative paths of included files of the copy are adjusted (like in 
22870 \family sans
22871 File\SpecialChar menuseparator
22872 Save As
22873 \family default
22874 \SpecialChar ldots
22875 ).
22876  Finally, the copy is loaded instead of the original document.
22877 \end_layout
22878
22879 \begin_layout Labeling
22880 \labelwidthstring 00.00.0000
22881 SVN
22882 \begin_inset space ~
22883 \end_inset
22884
22885 commands: 
22886 \begin_inset space ~
22887 \end_inset
22888
22889
22890 \begin_inset Newline newline
22891 \end_inset
22892
22893
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 svn copy -q 
22899 \family typewriter
22900
22901 \begin_inset Quotes qld
22902 \end_inset
22903
22904 <file-name>
22905 \begin_inset Quotes qld
22906 \end_inset
22907
22908  
22909 \begin_inset Quotes qld
22910 \end_inset
22911
22912 <new-file-name>
22913 \begin_inset Quotes qld
22914 \end_inset
22915
22916
22917 \end_layout
22918
22919 \end_inset
22920
22921
22922 \begin_inset Newline newline
22923 \end_inset
22924
22925
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 svn commit
22931 \end_layout
22932
22933 \end_inset
22934
22935
22936 \end_layout
22937
22938 \begin_layout Subsubsection
22939
22940 \family sans
22941 Rename
22942 \end_layout
22943
22944 \begin_layout Standard
22945 This will rename the current document including the version history.
22946  It requires a clean document without any changes since the last checkin.
22947  You are asked for a file name and a description of the rename operation.
22948  After that the document is renamed, both locally and in the repository.
22949  If the parent directories of the new and old file names differ, all relative
22950  paths of included files are adjusted (like in 
22951 \family sans
22952 File\SpecialChar menuseparator
22953 Save As
22954 \family default
22955 \SpecialChar ldots
22956 ).
22957  Finally, the document is reloaded using the new name.
22958 \end_layout
22959
22960 \begin_layout Labeling
22961 \labelwidthstring 00.00.0000
22962 SVN
22963 \begin_inset space ~
22964 \end_inset
22965
22966 commands: 
22967 \begin_inset space ~
22968 \end_inset
22969
22970
22971 \begin_inset Newline newline
22972 \end_inset
22973
22974
22975 \begin_inset Flex Code
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 svn move -q 
22980 \family typewriter
22981
22982 \begin_inset Quotes qld
22983 \end_inset
22984
22985 <file-name>
22986 \begin_inset Quotes qld
22987 \end_inset
22988
22989  
22990 \begin_inset Quotes qld
22991 \end_inset
22992
22993 <new-file-name>
22994 \begin_inset Quotes qld
22995 \end_inset
22996
22997
22998 \end_layout
22999
23000 \end_inset
23001
23002
23003 \begin_inset Newline newline
23004 \end_inset
23005
23006
23007 \begin_inset Flex Code
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 svn commit
23012 \end_layout
23013
23014 \end_inset
23015
23016
23017 \end_layout
23018
23019 \begin_layout Subsubsection
23020 \begin_inset CommandInset label
23021 LatexCommand label
23022 name "subsec:SVN-Repo-Update"
23023
23024 \end_inset
23025
23026 Update of the local directory checkout from repository
23027 \begin_inset Foot
23028 status collapsed
23029
23030 \begin_layout Plain Layout
23031 Note that this command will work only with subversion 
23032 \begin_inset Formula $\geqq1.5$
23033 \end_inset
23034
23035
23036 \end_layout
23037
23038 \end_inset
23039
23040
23041 \end_layout
23042
23043 \begin_layout Standard
23044 All the commands above have one shortcoming – they deal with the current
23045  document only.
23046  Once your document contains pictures, includes external 
23047 \begin_inset Flex Code
23048 status collapsed
23049
23050 \begin_layout Plain Layout
23051 .tex
23052 \end_layout
23053
23054 \end_inset
23055
23056  files and so on administration becomes more complicated.
23057  \SpecialChar LyX
23058  now supports updating the whole tree in which resides the document
23059 \begin_inset Foot
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063 One need to organize the files structure so that all external files are
23064  in the same directory or subdirectories of the document.
23065  
23066 \end_layout
23067
23068 \end_inset
23069
23070 .
23071  This become especially useful once you cooperate with people which neither
23072  know about subversion management nor they have ambition to commit additional
23073  material to the repository.
23074  
23075 \end_layout
23076
23077 \begin_layout Standard
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 Update local directory from repository
23083 \end_layout
23084
23085 \end_inset
23086
23087  command updates the whole directory and in case of merge conflicts local
23088  version of the files are left, so no unintended data loss occurs.
23089  If local changes are detected user is warned before update starts.
23090 \end_layout
23091
23092 \begin_layout Labeling
23093 \labelwidthstring 00.00.0000
23094 SVN
23095 \begin_inset space ~
23096 \end_inset
23097
23098 commands: 
23099 \begin_inset space ~
23100 \end_inset
23101
23102
23103 \begin_inset Newline newline
23104 \end_inset
23105
23106
23107 \begin_inset Flex Code
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 svn diff $path
23112 \end_layout
23113
23114 \end_inset
23115
23116  (Ask if changes are detected.)
23117 \begin_inset Newline newline
23118 \end_inset
23119
23120
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 svn update --accept mine-full $path
23126 \end_layout
23127
23128 \end_inset
23129
23130
23131 \end_layout
23132
23133 \begin_layout Standard
23134 where 
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 $path
23140 \end_layout
23141
23142 \end_inset
23143
23144  stands for the path to the document.
23145 \end_layout
23146
23147 \begin_layout Subsubsection
23148
23149 \family sans
23150 Show History
23151 \end_layout
23152
23153 \begin_layout Standard
23154 This shows the complete history of the SVN document.
23155  The output of 
23156 \family typewriter
23157 svn log 
23158 \begin_inset Quotes qld
23159 \end_inset
23160
23161 <file-name>
23162 \begin_inset Quotes qld
23163 \end_inset
23164
23165
23166 \family default
23167  is shown in a browser.
23168 \end_layout
23169
23170 \begin_layout Subsubsection
23171 File Locking
23172 \begin_inset CommandInset label
23173 LatexCommand label
23174 name "subsec:SVN-File-Locking"
23175
23176 \end_inset
23177
23178
23179 \end_layout
23180
23181 \begin_layout Standard
23182 The file exchange through various revision control systems brings the problem
23183  of merge conflicts in case two different users try to edit the same (parts
23184  of) document.
23185  When such a conflict happens it needs manual resolving and one reasonable
23186  alternative is to provide some kind of locking mechanism, which guarantees
23187  that only one user is allowed to edit file at the given time.
23188 \end_layout
23189
23190 \begin_layout Standard
23191 SVN has two such mechanisms to provide mutual exclusivity for file access
23192  – locks and automatic setting of write permissions (see sec.
23193  
23194 \begin_inset CommandInset ref
23195 LatexCommand ref
23196 reference "subsec:Automatical-Locking-Property"
23197
23198 \end_inset
23199
23200 ) based on 
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205 svn:needs-lock
23206 \end_layout
23207
23208 \end_inset
23209
23210  file svn property
23211 \begin_inset Foot
23212 status collapsed
23213
23214 \begin_layout Plain Layout
23215 \begin_inset Flex URL
23216 status open
23217
23218 \begin_layout Plain Layout
23219
23220 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23221 \end_layout
23222
23223 \end_inset
23224
23225
23226 \end_layout
23227
23228 \end_inset
23229
23230 .
23231  If this property is detected for a given document \SpecialChar LyX
23232  starts to use SVN locks
23233  for document editing automatically and the whole check-in/out mechanism
23234  switches to the same regimen as for RCS.
23235  This in particular means there are two different modes of file use in \SpecialChar LyX
23236 :
23237 \end_layout
23238
23239 \begin_layout Itemize
23240 Unlocked state.
23241  The loaded file is in the read-only mode.
23242  For editing on needs to check-out.
23243  
23244 \emph on
23245 Check-out
23246 \emph default
23247  consists of updating from the repository and gaining write lock.
23248  If the lock is not possible to obtain, we remain in unlocked state.
23249 \end_layout
23250
23251 \begin_layout Itemize
23252 Locked state.
23253  The loaded file is in the 
23254 \begin_inset Quotes els
23255 \end_inset
23256
23257 normal
23258 \begin_inset Quotes ers
23259 \end_inset
23260
23261  edit mode.
23262  No other user is allowed to edit the file.
23263  
23264 \emph on
23265 Check-in
23266 \emph default
23267  consists of commiting changes and releasing write-lock.
23268  If no changes have been made to the document, no commit will be produced
23269 \begin_inset Foot
23270 status collapsed
23271
23272 \begin_layout Plain Layout
23273 Don't be puzzled by the fact that you will be asked for commit message anyway.
23274 \end_layout
23275
23276 \end_inset
23277
23278  and only the write-lock will be released.
23279 \end_layout
23280
23281 \begin_layout Standard
23282 SVN commands:
23283 \end_layout
23284
23285 \begin_layout Labeling
23286 \labelwidthstring 00.00.0000
23287 Check-in:
23288 \family typewriter
23289  svn commit -q -m"<description>" "<file-name>"
23290 \begin_inset Newline newline
23291 \end_inset
23292
23293 svn unlock "<file-name>"
23294 \end_layout
23295
23296 \begin_layout Labeling
23297 \labelwidthstring 00.00.0000
23298 Check-out: 
23299 \family typewriter
23300 svn update "<file-name>"
23301 \begin_inset Newline newline
23302 \end_inset
23303
23304 svn lock "<file-name>"
23305 \end_layout
23306
23307 \begin_layout Subsubsection
23308
23309 \family typewriter
23310 \begin_inset CommandInset label
23311 LatexCommand label
23312 name "subsec:Automatical-Locking-Property"
23313
23314 \end_inset
23315
23316
23317 \family default
23318 Automatic Locking Property
23319 \end_layout
23320
23321 \begin_layout Standard
23322 The above mentioned automatic setting of write permissions of the .lyx file
23323  can be set through
23324 \family sans
23325  File\SpecialChar menuseparator
23326 Version
23327 \begin_inset space ~
23328 \end_inset
23329
23330 Control\SpecialChar menuseparator
23331 Use Locking Property
23332 \family default
23333 .
23334  This command is active only when the file is not locked on the svn server
23335  (i.e.
23336  you need to check-out before proceeding).
23337 \end_layout
23338
23339 \begin_layout Labeling
23340 \labelwidthstring 00.00.0000
23341 SVN
23342 \begin_inset space ~
23343 \end_inset
23344
23345 commands:
23346 \end_layout
23347
23348 \begin_layout Labeling
23349 \labelwidthstring 00.00.0000
23350 Set:
23351 \family typewriter
23352  svn propset svn:needs-lock ON "<file-name>"
23353 \end_layout
23354
23355 \begin_layout Labeling
23356 \labelwidthstring 00.00.0000
23357 Unset: 
23358 \family typewriter
23359 svn propdel svn:needs-lock "<file-name>"
23360 \end_layout
23361
23362 \begin_layout Subsubsection
23363 \begin_inset CommandInset label
23364 LatexCommand label
23365 name "subsec:VCS-Revision-Information"
23366
23367 \end_inset
23368
23369 Revision Information in Documents
23370 \end_layout
23371
23372 \begin_layout Standard
23373 There are more possibilities how to activate revision information in our
23374  document.
23375 \end_layout
23376
23377 \begin_layout Itemize
23378 \SpecialChar LyX
23379  supports directly:
23380 \end_layout
23381
23382 \begin_deeper
23383 \begin_layout Itemize
23384 tree revision information (
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 vcs-tree-revision
23390 \end_layout
23391
23392 \end_inset
23393
23394 ).
23395  The result is the output of the 
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 svnversion
23401 \end_layout
23402
23403 \end_inset
23404
23405  command, the following table gives you an idea, how to read the results.
23406 \end_layout
23407
23408 \begin_layout Standard
23409 \align center
23410 \begin_inset Tabular
23411 <lyxtabular version="3" rows="6" columns="2">
23412 <features tabularvalignment="middle">
23413 <column alignment="left" valignment="top">
23414 <column alignment="left" valignment="top">
23415 <row>
23416 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23417 \begin_inset Text
23418
23419 \begin_layout Plain Layout
23420
23421 \series bold
23422 Output
23423 \end_layout
23424
23425 \end_inset
23426 </cell>
23427 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23428 \begin_inset Text
23429
23430 \begin_layout Plain Layout
23431
23432 \series bold
23433 Meaning
23434 \end_layout
23435
23436 \end_inset
23437 </cell>
23438 </row>
23439 <row>
23440 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23441 \begin_inset Text
23442
23443 \begin_layout Plain Layout
23444 4123:4168
23445 \end_layout
23446
23447 \end_inset
23448 </cell>
23449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23450 \begin_inset Text
23451
23452 \begin_layout Plain Layout
23453 mixed revision working copy
23454 \end_layout
23455
23456 \end_inset
23457 </cell>
23458 </row>
23459 <row>
23460 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23461 \begin_inset Text
23462
23463 \begin_layout Plain Layout
23464 4168M
23465 \end_layout
23466
23467 \end_inset
23468 </cell>
23469 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23470 \begin_inset Text
23471
23472 \begin_layout Plain Layout
23473 modified working copy
23474 \end_layout
23475
23476 \end_inset
23477 </cell>
23478 </row>
23479 <row>
23480 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23481 \begin_inset Text
23482
23483 \begin_layout Plain Layout
23484 4123S
23485 \end_layout
23486
23487 \end_inset
23488 </cell>
23489 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23490 \begin_inset Text
23491
23492 \begin_layout Plain Layout
23493 switched working copy
23494 \end_layout
23495
23496 \end_inset
23497 </cell>
23498 </row>
23499 <row>
23500 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23501 \begin_inset Text
23502
23503 \begin_layout Plain Layout
23504 4123P
23505 \end_layout
23506
23507 \end_inset
23508 </cell>
23509 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23510 \begin_inset Text
23511
23512 \begin_layout Plain Layout
23513 partial working copy, from a sparse checkout
23514 \end_layout
23515
23516 \end_inset
23517 </cell>
23518 </row>
23519 <row>
23520 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23521 \begin_inset Text
23522
23523 \begin_layout Plain Layout
23524 4123:4168MS
23525 \end_layout
23526
23527 \end_inset
23528 </cell>
23529 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23530 \begin_inset Text
23531
23532 \begin_layout Plain Layout
23533 mixed revision, modified, switched working copy
23534 \end_layout
23535
23536 \end_inset
23537 </cell>
23538 </row>
23539 </lyxtabular>
23540
23541 \end_inset
23542
23543
23544 \end_layout
23545
23546 \begin_layout Itemize
23547 file revision information.
23548  The result comes from parsing the output of 
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553 svn
23554 \begin_inset space ~
23555 \end_inset
23556
23557 info
23558 \begin_inset space ~
23559 \end_inset
23560
23561 --xml
23562 \begin_inset space ~
23563 \end_inset
23564
23565 file.lyx
23566 \end_layout
23567
23568 \end_inset
23569
23570 .
23571  Supported flags are:
23572 \end_layout
23573
23574 \begin_deeper
23575 \begin_layout Itemize
23576 version number of the last commit (
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 vcs-revision
23582 \end_layout
23583
23584 \end_inset
23585
23586 )
23587 \end_layout
23588
23589 \begin_layout Itemize
23590 author of the last commit (
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 vcs-author
23596 \end_layout
23597
23598 \end_inset
23599
23600 )
23601 \end_layout
23602
23603 \begin_layout Itemize
23604 date of the last commit (
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 vcs-date
23610 \end_layout
23611
23612 \end_inset
23613
23614 )
23615 \end_layout
23616
23617 \begin_layout Itemize
23618 time of the last commit (
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 vcs-time
23624 \end_layout
23625
23626 \end_inset
23627
23628 )
23629 \end_layout
23630
23631 \end_deeper
23632 \begin_layout Standard
23633 You can obtain this info via InsetInfo (
23634 \change_inserted 5863208 1564400022
23635
23636 \lang american
23637 Insert\SpecialChar menuseparator
23638 Field\SpecialChar menuseparator
23639 Version Control Revision
23640 \change_deleted 5863208 1564399852
23641
23642 \lang english
23643 e.g.
23644  
23645 \begin_inset Flex Code
23646 status collapsed
23647
23648 \begin_layout Plain Layout
23649 info-insert buffer vcs-date
23650 \end_layout
23651
23652 \end_inset
23653
23654
23655 \change_unchanged
23656 ).
23657  The information will be available only when you have the file stored under
23658  svn managment (i.e.
23659  the 
23660 \begin_inset Flex Code
23661 status collapsed
23662
23663 \begin_layout Plain Layout
23664 .svn
23665 \end_layout
23666
23667 \end_inset
23668
23669  directory is available with your document).
23670 \end_layout
23671
23672 \end_deeper
23673 \begin_layout Itemize
23674 Another—a hacking one—possibility is to use svn keywords
23675 \begin_inset Foot
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23680 \end_layout
23681
23682 \end_inset
23683
23684 .
23685  In short – you set file keywords property (e.g.
23686  
23687 \family sans
23688 svn propset svn:keywords 'Rev' file.lyx
23689 \family default
23690 ) and then paste keyword \SpecialChar TeX
23691  code
23692 \begin_inset Foot
23693 status collapsed
23694
23695 \begin_layout Plain Layout
23696 This is an easy way how to ensure that \SpecialChar LyX
23697  won't break the line in the middle
23698  of keyword tag.
23699 \end_layout
23700
23701 \end_inset
23702
23703  tag in your document (e.g.
23704  
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 $Rev$
23710 \end_layout
23711
23712 \end_inset
23713
23714 ).
23715  This way svn client will automatically substitute revision number (e.g.
23716  
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 $Rev: 59 $
23722 \end_layout
23723
23724 \end_inset
23725
23726 ) after each update and commit.
23727  There are more problems with this approach.
23728  Firstly, the '$' character is used in \SpecialChar TeX
23729  world for math equations, so any
23730  occurence of math formula 
23731 \begin_inset Formula $Rev$
23732 \end_inset
23733
23734  become 
23735 \begin_inset Formula $Rev:59$
23736 \end_inset
23737
23738  in your \SpecialChar LyX
23739  document.
23740  Similarly for other keywords like Id, Date, Author, etc.
23741  Secondly svn output is dependent on your locales, so its very easy that
23742  svn would produce some problematic strings once Date is used.
23743  Thirdly you get the whole 'Rev: 59' string in your document instead of
23744  the plain number.
23745  Until subversion implements user's custom keywords it will be hard to use
23746  this approach reliably or let \SpecialChar LyX
23747  to support it directly.
23748 \end_layout
23749
23750 \begin_layout Subsection
23751 SVN and Windows Environment
23752 \end_layout
23753
23754 \begin_layout Quote
23755 My inclination is to say that if the user cannot figure out the command
23756  line operations on their own fairly quickly, they would be well advised
23757  to use TortoiseSVN.
23758  —P.
23759  A.
23760  Rubin
23761 \end_layout
23762
23763 \begin_layout Subsubsection
23764 Preparation
23765 \end_layout
23766
23767 \begin_layout Standard
23768 In addition to installing \SpecialChar LyX
23769 , and having access to a Subversion repository,
23770  the user will need to install the Subversion client program.
23771  A Windows installer for the client program is available from 
23772 \begin_inset CommandInset href
23773 LatexCommand href
23774 name "CollabNet"
23775 target "http://www.collab.net/nonav/downloads/subversion/"
23776 literal "false"
23777
23778 \end_inset
23779
23780 .
23781  The user may also want to install 
23782 \begin_inset CommandInset href
23783 LatexCommand href
23784 name "TortoiseSVN"
23785 target "http://tortoisesvn.tigris.org/"
23786 literal "false"
23787
23788 \end_inset
23789
23790 , which integrates Subversion operations into the context (rightclick) menu
23791  of Windows Explorer.
23792  Operations done outside \SpecialChar LyX
23793  will typically be more convenient using the Explorer
23794  context menu.
23795  Note that TortoiseSVN is not a replacement for the client program, which
23796  is what \SpecialChar LyX
23797  itself will use.
23798 \end_layout
23799
23800 \begin_layout Subsubsection
23801 Bringing a document under Subversion control
23802 \end_layout
23803
23804 \begin_layout Standard
23805 Before a \SpecialChar LyX
23806  document can be brought under version control in Subversion, its
23807  parent directory needs to be under version control.
23808  If the document is being added to a project already in the repository,
23809  this is accomplished by checking the project out to the directory where
23810  the new document will be placed.
23811  If the project itself is not yet under version control (for instance, if
23812  this document starts a new project), the directory must be imported into
23813  the repository.
23814  This is done outside \SpecialChar LyX
23815 .
23816  Both import and checkout are easily accomplished from the Explorer context
23817  menu using TortoiseSVN, or alternatively can be done using the command
23818  line client at a DOS prompt.
23819  The procedure for importing the project using TortoiseSVN is described
23820  below, assuming an existing repository and a new project being started
23821  in 
23822 \family typewriter
23823 C:
23824 \backslash
23825 new project
23826 \family default
23827 .
23828  For information on using the Subversion client program, run 
23829 \family typewriter
23830 svn --help 
23831 \family default
23832 in a DOS shell.
23833 \end_layout
23834
23835 \begin_layout Enumerate
23836 Locate 
23837 \family typewriter
23838 C:
23839 \backslash
23840 new project 
23841 \family default
23842 in Windows Explorer, right click it, and select 
23843 \family sans
23844 TortoiseSVN\SpecialChar menuseparator
23845 Repo-browser
23846 \family default
23847 .
23848  If necessary, adjust the URL for the repository, then click OK.
23849 \end_layout
23850
23851 \begin_layout Enumerate
23852 Right click the level of the repository under which you want to place the
23853  new project folder (typically the top level) and click 
23854 \family sans
23855 Create folder
23856 \family default
23857  Supply a name for the project folder and click OK.
23858  Add a message for the log file if desired, then click OK again.
23859  The new project folder should appear in the repository.
23860  Finally, click OK again to exit the repository browser.
23861 \end_layout
23862
23863 \begin_layout Enumerate
23864 Once again right click 
23865 \family typewriter
23866 C:
23867 \backslash
23868 new project
23869 \family default
23870 , this time selecting SVN Checkout\SpecialChar ldots
23871  Select the URL of the project folder
23872  you just created in the repository, and set the checkout directory to 
23873 \family typewriter
23874 C:
23875 \backslash
23876 new project.
23877
23878 \family default
23879  Click OK.
23880  You will be warned about a non-empty folder; click OK to proceed.
23881  You should now have a 
23882 \family typewriter
23883 .svn
23884 \family default
23885  directory under 
23886 \family typewriter
23887 C:
23888 \backslash
23889 new project.
23890 \end_layout
23891
23892 \begin_layout Enumerate
23893 Create or open your document in \SpecialChar LyX
23894  and click 
23895 \family sans
23896 File\SpecialChar menuseparator
23897 Version
23898 \begin_inset space ~
23899 \end_inset
23900
23901 Control\SpecialChar menuseparator
23902 Register.
23903  
23904 \family default
23905 Add a log message and click OK to commit the document to version control.
23906 \end_layout
23907
23908 \begin_layout Standard
23909 From this point onward, you should have full functionality in the 
23910 \family sans
23911 File\SpecialChar menuseparator
23912 Version
23913 \begin_inset space ~
23914 \end_inset
23915
23916 Control
23917 \family default
23918  menu.
23919  You also have the option of checking the document in and out, viewing its
23920  history, etc.
23921  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23922  client program from a command prompt.
23923 \end_layout
23924
23925 \begin_layout Subsubsection
23926 SSH tunnel used with SVN under Windows
23927 \end_layout
23928
23929 \begin_layout Standard
23930 Compared with Linux setting up an svn client to communicate over ssh under
23931  Windows is a rather troublesome task.
23932  We will at least offer some hints how to setup the client side but prior
23933  knowledge about ssh and the Windows command line is needed, also be prepared
23934  for a great deal of frustration\SpecialChar ldots
23935
23936 \end_layout
23937
23938 \begin_layout Enumerate
23939 Get an svn client for windows, as described in the previous sections.
23940  When it is a fresh install run some svn command (e.g.
23941  
23942 \begin_inset Flex Code
23943 status collapsed
23944
23945 \begin_layout Plain Layout
23946 svn --version
23947 \end_layout
23948
23949 \end_inset
23950
23951 ) to create config files, which you will need to change later on.
23952 \end_layout
23953
23954 \begin_layout Enumerate
23955 Choose an ssh client for Windows.
23956  There are several possibilities, we will use the one from Putty tools
23957 \begin_inset Foot
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 \begin_inset Flex URL
23962 status collapsed
23963
23964 \begin_layout Plain Layout
23965
23966 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23967 \end_layout
23968
23969 \end_inset
23970
23971
23972 \end_layout
23973
23974 \end_inset
23975
23976 .
23977  You will need to set the connection up so that the client doesn't ask for
23978  any password from you.
23979  To keep things easy we will use only keys without any additional password
23980  protection etc.
23981 \end_layout
23982
23983 \begin_deeper
23984 \begin_layout Enumerate
23985 Generate keys by 
23986 \begin_inset Flex Code
23987 status collapsed
23988
23989 \begin_layout Plain Layout
23990 puttygen
23991 \end_layout
23992
23993 \end_inset
23994
23995 .
23996  Save your private .ppk key file and put the public one on the server side.
23997  If the SVN server runs on Linux, note that the format of the public key
23998  is not compatible with Linux openssh and you will need to direcly copy-paste
23999  the key from the 
24000 \begin_inset Quotes eld
24001 \end_inset
24002
24003
24004 \emph on
24005 Public key for pasting into OpenSSH authorized_keys file
24006 \emph default
24007 :
24008 \begin_inset Quotes erd
24009 \end_inset
24010
24011  edit field into the server's 
24012 \begin_inset Flex Code
24013 status collapsed
24014
24015 \begin_layout Plain Layout
24016 ~/.ssh/authorized_keys
24017 \end_layout
24018
24019 \end_inset
24020
24021  / 
24022 \begin_inset Flex Code
24023 status collapsed
24024
24025 \begin_layout Plain Layout
24026 authorized_keys2
24027 \end_layout
24028
24029 \end_inset
24030
24031  file.
24032 \end_layout
24033
24034 \begin_layout Enumerate
24035 Get the Putty's 
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 plink
24041 \end_layout
24042
24043 \end_inset
24044
24045 .
24046  In the SVN config file
24047 \begin_inset Foot
24048 status collapsed
24049
24050 \begin_layout Plain Layout
24051 Exact path depends on Windows version, usually somewhere around 
24052 \begin_inset Flex Code
24053 status collapsed
24054
24055 \begin_layout Plain Layout
24056 c:
24057 \backslash
24058 Documents and Settings
24059 \backslash
24060 user
24061 \backslash
24062 Application Data
24063 \backslash
24064 Subversion
24065 \backslash
24066 config
24067 \end_layout
24068
24069 \end_inset
24070
24071  / 
24072 \begin_inset Flex Code
24073 status collapsed
24074
24075 \begin_layout Plain Layout
24076 AppData
24077 \backslash
24078 Roaming
24079 \backslash
24080 Subversion
24081 \end_layout
24082
24083 \end_inset
24084
24085 .
24086 \end_layout
24087
24088 \end_inset
24089
24090 , section [tunnels], setup ssh command, e.g.
24091  
24092 \begin_inset Flex Code
24093 status collapsed
24094
24095 \begin_layout Plain Layout
24096 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24097 \end_layout
24098
24099 \end_inset
24100
24101 .
24102 \begin_inset Foot
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 It will usually take a lot of time to get exact command right and it depends
24107  on many things.
24108  For example do not have some remote server saved as a default session in
24109  Putty etc.
24110  If things fail, try to connect via plink without SVN first.
24111 \end_layout
24112
24113 \end_inset
24114
24115
24116 \end_layout
24117
24118 \end_deeper
24119 \begin_layout Enumerate
24120 Checkout the SVN archive, e.
24121 \begin_inset space \thinspace{}
24122 \end_inset
24123
24124 g.
24125 \begin_inset Newline newline
24126 \end_inset
24127
24128
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133 svn co svn+ssh://user@server/repository_path
24134 \end_layout
24135
24136 \end_inset
24137
24138 .
24139 \end_layout
24140
24141 \begin_layout Subsubsection
24142 End-of-Line Conversions
24143 \end_layout
24144
24145 \begin_layout Standard
24146 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24147  will
24148  use different line endings inside the .lyx files.
24149  This is not a problem as far as \SpecialChar LyX
24150  functionality is concerned, but the commit
24151  diffs will be huge and merge-conflicts prone.
24152  Fortunately SVN itself knows
24153 \begin_inset Foot
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157 \begin_inset Flex URL
24158 status collapsed
24159
24160 \begin_layout Plain Layout
24161
24162 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24163 \end_layout
24164
24165 \end_inset
24166
24167
24168 \end_layout
24169
24170 \end_inset
24171
24172  how to deal with CR/LF problems when switching .lyx files to the 
24173 \begin_inset Flex Code
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 native
24178 \end_layout
24179
24180 \end_inset
24181
24182  mode.
24183 \begin_inset Foot
24184 status collapsed
24185
24186 \begin_layout Plain Layout
24187 For the lazy guys: 
24188 \begin_inset Flex Code
24189 status collapsed
24190
24191 \begin_layout Plain Layout
24192 svn propset svn:eol-style native FILE_NAME
24193 \end_layout
24194
24195 \end_inset
24196
24197
24198 \end_layout
24199
24200 \end_inset
24201
24202
24203 \end_layout
24204
24205 \begin_layout Subsection
24206 GIT commands in \SpecialChar LyX
24207
24208 \end_layout
24209
24210 \begin_layout Standard
24211 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24212 .
24213  You can find the commands in the 
24214 \family sans
24215 File\SpecialChar menuseparator
24216 Version
24217 \begin_inset space ~
24218 \end_inset
24219
24220 Control
24221 \family default
24222  submenu.
24223  Please note that if you use password protected access to repository via
24224  ssh, you will be asked in terminal window.
24225  \SpecialChar LyX
24226  was tested against GIT 1.7.
24227 \begin_inset Foot
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231 Windows users please note that you need to ensure that git is on the path.
24232  This can be set from within \SpecialChar LyX
24233  at 
24234 \family sans
24235 Tools\SpecialChar menuseparator
24236 Preferences\SpecialChar menuseparator
24237 Paths\SpecialChar menuseparator
24238 PATH prefix
24239 \family default
24240 .
24241 \end_layout
24242
24243 \end_inset
24244
24245
24246 \end_layout
24247
24248 \begin_layout Standard
24249 One big difference of GIT and the other supported version control systems
24250  is the distributed nature of GIT: With traditional version control systems
24251  there is one central server which hosts the repository.
24252  Users commit their changes to the server, and get updates made by other
24253  users from it.
24254  With GIT, users commit to a local repository.
24255  The local repository can be synchronized with one or more remote repositories
24256  using the 
24257 \begin_inset Flex Code
24258 status collapsed
24259
24260 \begin_layout Plain Layout
24261 pull
24262 \end_layout
24263
24264 \end_inset
24265
24266  and 
24267 \begin_inset Flex Code
24268 status collapsed
24269
24270 \begin_layout Plain Layout
24271 push
24272 \end_layout
24273
24274 \end_inset
24275
24276  GIT commands.
24277  \SpecialChar LyX
24278  does not interact in any way with remote GIT repositories.
24279  It works exclusively with the local repository in a very similar way as
24280  with a central CVS or SVN repository.
24281  If you use remote GIT repositories you need to do the 
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 pull
24287 \end_layout
24288
24289 \end_inset
24290
24291  and 
24292 \begin_inset Flex Code
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 push
24297 \end_layout
24298
24299 \end_inset
24300
24301  operations with your favourite GIT client.
24302 \end_layout
24303
24304 \begin_layout Subsubsection
24305
24306 \family sans
24307 Register
24308 \end_layout
24309
24310 \begin_layout Standard
24311 If your document is not under revision control, this is the only item shown
24312  in the menu.
24313  And if it is under revision control, the 
24314 \family sans
24315 Register
24316 \family default
24317  item is not visible.
24318 \end_layout
24319
24320 \begin_layout Standard
24321 This command registers in GIT your document ONLY in case you have already
24322  the documents directory under GIT control (in particular 
24323 \family typewriter
24324 .git/index
24325 \family default
24326  file exists).
24327  This means you have to checkout the archive by yourself.
24328 \end_layout
24329
24330 \begin_layout Standard
24331 Then you are asked interactively to supply an initial description of the
24332  document.
24333  Don't forget that registered file is not yet committed.
24334 \end_layout
24335
24336 \begin_layout Standard
24337 GIT command that is run: 
24338 \family typewriter
24339 git add 
24340 \begin_inset Quotes qld
24341 \end_inset
24342
24343 <file-name>
24344 \begin_inset Quotes qld
24345 \end_inset
24346
24347
24348 \end_layout
24349
24350 \begin_layout Standard
24351 Read 
24352 \family typewriter
24353 man git
24354 \family default
24355  to understand the switches.
24356 \end_layout
24357
24358 \begin_layout Subsubsection
24359
24360 \family sans
24361 Check In Changes
24362 \end_layout
24363
24364 \begin_layout Standard
24365 When you are finished editing a file, you commit your changes.
24366  When you do this, you are asked for a description of the changes.
24367  After that changes are committed.
24368 \end_layout
24369
24370 \begin_layout Standard
24371 GIT command: 
24372 \family typewriter
24373 git commit -q -m"<description>" <file-name>
24374 \end_layout
24375
24376 \begin_layout Subsubsection
24377
24378 \family sans
24379 Revert To Repository Version
24380 \end_layout
24381
24382 \begin_layout Standard
24383 This will discard all changes made to the document since the last check
24384  in.
24385  You get a warning before changes are discarded.
24386 \end_layout
24387
24388 \begin_layout Standard
24389 GIT command: 
24390 \family typewriter
24391 git checkout -q 
24392 \begin_inset Quotes qld
24393 \end_inset
24394
24395 <file-name>
24396 \begin_inset Quotes qld
24397 \end_inset
24398
24399
24400 \end_layout
24401
24402 \begin_layout Subsubsection
24403
24404 \family sans
24405 Rename
24406 \end_layout
24407
24408 \begin_layout Standard
24409 This will rename the current document including the version history.
24410  It requires a clean document without any changes since the last checkin.
24411  You are asked for a file name and a description of the rename operation.
24412  After that the document is renamed, both locally and in the repository.
24413  If the parent directories of the new and old file names differ, all relative
24414  paths of included files are adjusted (like in 
24415 \family sans
24416 File\SpecialChar menuseparator
24417 Save As
24418 \family default
24419 \SpecialChar ldots
24420 ).
24421  Finally, the document is reloaded using the new name.
24422 \end_layout
24423
24424 \begin_layout Labeling
24425 \labelwidthstring 00.00.0000
24426 GIT
24427 \begin_inset space ~
24428 \end_inset
24429
24430 commands: 
24431 \begin_inset space ~
24432 \end_inset
24433
24434
24435 \begin_inset Newline newline
24436 \end_inset
24437
24438
24439 \begin_inset Flex Code
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 git mv 
24444 \family typewriter
24445
24446 \begin_inset Quotes qld
24447 \end_inset
24448
24449 <file-name>
24450 \begin_inset Quotes qld
24451 \end_inset
24452
24453  
24454 \begin_inset Quotes qld
24455 \end_inset
24456
24457 <new-file-name>
24458 \begin_inset Quotes qld
24459 \end_inset
24460
24461
24462 \end_layout
24463
24464 \end_inset
24465
24466
24467 \begin_inset Newline newline
24468 \end_inset
24469
24470
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 git commit
24476 \end_layout
24477
24478 \end_inset
24479
24480
24481 \end_layout
24482
24483 \begin_layout Subsubsection
24484
24485 \family sans
24486 Show History
24487 \end_layout
24488
24489 \begin_layout Standard
24490 This shows the complete history of the GIT document.
24491  The output of 
24492 \family typewriter
24493 git log 
24494 \begin_inset Quotes qld
24495 \end_inset
24496
24497 <file-name>
24498 \begin_inset Quotes qld
24499 \end_inset
24500
24501
24502 \family default
24503  is shown in a browser.
24504 \end_layout
24505
24506 \begin_layout Subsubsection
24507 Version Info
24508 \end_layout
24509
24510 \begin_layout Standard
24511 \SpecialChar LyX
24512  supports GIT hash number of the last commit to the file, 
24513 \change_inserted 1119979965 1564297456
24514 its abbreviated form, 
24515 \change_unchanged
24516 author name, date and time of last commit.
24517  All those are extracted from 
24518 \family typewriter
24519 git log -n 1 --pretty=format:%H%n
24520 \change_inserted 1119979965 1564297427
24521 %h%n
24522 \change_unchanged
24523 %an%n%ai
24524 \family default
24525 .
24526  Tree version information is obtained via 
24527 \family typewriter
24528 git describe --abbrev --dirty --long
24529 \family default
24530 .
24531  See 
24532 \begin_inset CommandInset ref
24533 LatexCommand ref
24534 reference "subsec:VCS-Revision-Information"
24535
24536 \end_inset
24537
24538  for other details.
24539 \end_layout
24540
24541 \begin_layout Subsection
24542 Further tuning
24543 \end_layout
24544
24545 \begin_layout Standard
24546 With the recent addition of the 
24547 \begin_inset Flex Code
24548 status collapsed
24549
24550 \begin_layout Plain Layout
24551 vc-command
24552 \end_layout
24553
24554 \end_inset
24555
24556  function \SpecialChar LyX
24557  power users are allowed to create their own commands for revision
24558  control.
24559 \end_layout
24560
24561 \begin_layout Standard
24562 As an example you can see how two TortoiseSVN commands could be integrated
24563  directly:
24564 \end_layout
24565
24566 \begin_layout Description
24567 Commit: 
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24573 \end_layout
24574
24575 \end_inset
24576
24577
24578 \end_layout
24579
24580 \begin_layout Description
24581 Revert: 
24582 \begin_inset Flex Code
24583 status collapsed
24584
24585 \begin_layout Plain Layout
24586 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24587 \end_layout
24588
24589 \end_inset
24590
24591
24592 \end_layout
24593
24594 \begin_layout Subsection
24595 Version control and Document comparison
24596 \end_layout
24597
24598 \begin_layout Standard
24599 One of the typical uses of version control is to inspect the changes between
24600  revisions, usually by creating 
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 diff
24606 \end_layout
24607
24608 \end_inset
24609
24610  dumps.
24611  While this is useful for plain text files, it is much less useful in the
24612  case of \SpecialChar LyX
24613  files, which have more a complicated structure.
24614  Hence we provide binding to the Document comparison feature.
24615  There are two ways of calling this feature – either by direct call of 
24616 \begin_inset Flex Code
24617 status collapsed
24618
24619 \begin_layout Plain Layout
24620 vc-compare
24621 \end_layout
24622
24623 \end_inset
24624
24625  \SpecialChar LyX
24626  function (for details see \SpecialChar LyX
24627  functions manual) or by the toolbar icon 
24628 \begin_inset Info
24629 type  "icon"
24630 arg   "vc-compare"
24631 \end_inset
24632
24633  or the menu item 
24634 \begin_inset Info
24635 type  "menu"
24636 arg   "vc-compare"
24637 \end_inset
24638
24639 , respectively.
24640  One can either compare two chosen revisions of the document or he can simply
24641  compare the current version of edited text with older revisions (where
24642  '
24643 \begin_inset Flex Noun
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647 0
24648 \end_layout
24649
24650 \end_inset
24651
24652 ' revisions back means comparison of the edited file with last commited
24653  revision).
24654  
24655 \end_layout
24656
24657 \begin_layout Standard
24658 This feature is supported for SVN and RCS though due to the more complicated
24659  versioning scheme of RCS there is a constraint – when addressing the revisions
24660  in dialog, numbers always point to the last number in RCS revision number,
24661  i.e.
24662  '35' in '1.2.35'.
24663  We don't currently support GIT addressing of revisions, one can just compare
24664  edited document with its revision X steps backs, where X is addressed as
24665  
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670 HEAD~X
24671 \end_layout
24672
24673 \end_inset
24674
24675 .
24676 \end_layout
24677
24678 \begin_layout Section
24679 Literate Programming
24680 \end_layout
24681
24682 \begin_layout Standard
24683 Updated by 
24684 \noun on
24685 Kayvan Sylvan 
24686 \noun default
24687 (kayvan@sylvan.com)
24688 \noun on
24689
24690 \noun default
24691 original documentation written by 
24692 \noun on
24693 Edmar Wienskoski Jr.
24694
24695 \noun default
24696  (edmar-w-jr@technologist.com)
24697 \end_layout
24698
24699 \begin_layout Subsection
24700 Introduction
24701 \end_layout
24702
24703 \begin_layout Standard
24704 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24705  for literate
24706  programming, where it is assumed that you are familiar with this programming
24707  technique, and know what 
24708 \begin_inset Quotes eld
24709 \end_inset
24710
24711 tangling
24712 \begin_inset Quotes erd
24713 \end_inset
24714
24715  and 
24716 \begin_inset Quotes eld
24717 \end_inset
24718
24719 weaving
24720 \begin_inset Quotes erd
24721 \end_inset
24722
24723  means.
24724  If that is not the case, please follow the web links provided in the following
24725  sections.
24726  There is a lot of good documentation out there covering old development
24727  history to the latest tools tips.
24728 \end_layout
24729
24730 \begin_layout Standard
24731 It is also assumed that you are familiar with \SpecialChar LyX
24732  itself to a point that you
24733  are comfortable changing your \SpecialChar LyX
24734  preferences, and X resources file.
24735  If that is not the case please refer to other \SpecialChar LyX
24736  documentation to cover your
24737  specific needs.
24738 \end_layout
24739
24740 \begin_layout Subsection
24741 Literate Programming
24742 \end_layout
24743
24744 \begin_layout Standard
24745 From the Literate Programming FAQ: 
24746 \end_layout
24747
24748 \begin_layout Quotation
24749 Literate programming is the combination of documentation and source together
24750  in a fashion suited for reading by human beings.
24751  In fact, literate programs should be enjoyable reading, even inviting!
24752  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24753  and documentation in a single file.
24754  Literate programming tools then parse the file to produce either readable
24755  documentation or compilable source.
24756  The WEB style of literate programming was created by D.
24757 \begin_inset space \thinspace{}
24758 \end_inset
24759
24760 E.
24761  Knuth during the development of his \SpecialChar TeX
24762  typesetting software.
24763  
24764 \end_layout
24765
24766 \begin_layout Standard
24767 Another excerpt says:
24768 \end_layout
24769
24770 \begin_layout Quotation
24771
24772 \emph on
24773 How is literate programming different from verbose commenting?
24774 \end_layout
24775
24776 \begin_layout Quotation
24777 There are three distinguishing characteristics.
24778  In order of importance, they are: 
24779 \end_layout
24780
24781 \begin_deeper
24782 \begin_layout Itemize
24783 flexible order of elaboration 
24784 \end_layout
24785
24786 \begin_layout Itemize
24787 automatic support for browsing 
24788 \end_layout
24789
24790 \begin_layout Itemize
24791 typeset documentation, especially diagrams and mathematics 
24792 \end_layout
24793
24794 \end_deeper
24795 \begin_layout Standard
24796 Now that I sparked your curiosity, take a look in the references.
24797 \end_layout
24798
24799 \begin_layout Subsubsection
24800 References
24801 \end_layout
24802
24803 \begin_layout Standard
24804 The complete Literate Programming FAQ can be found at:
24805 \end_layout
24806
24807 \begin_layout Quote
24808 Literate Programming FAQ 
24809 \begin_inset Flex URL
24810 status open
24811
24812 \begin_layout Plain Layout
24813
24814 http://www.literateprogramming.com/lpfaq.pdf
24815 \end_layout
24816
24817 \end_inset
24818
24819
24820 \end_layout
24821
24822 \begin_layout Standard
24823 The FAQ lists 23 (twenty three!) different literate programming tools.
24824  Where some are specialized or 
24825 \begin_inset Quotes eld
24826 \end_inset
24827
24828 tailored
24829 \begin_inset Quotes erd
24830 \end_inset
24831
24832  for particular programming languages, while other have general scope.
24833  I selected 
24834 \noun on
24835 Noweb
24836 \noun default
24837  for my own use for several reasons:
24838 \end_layout
24839
24840 \begin_layout Itemize
24841 It can generate the documentation either in \SpecialChar LaTeX
24842  or HTML.
24843 \end_layout
24844
24845 \begin_layout Itemize
24846 It has a open architecture, i.
24847 \begin_inset space \thinspace{}
24848 \end_inset
24849
24850 e.
24851 \begin_inset space \space{}
24852 \end_inset
24853
24854 it is easy to plug in new filters
24855 \begin_inset Foot
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859
24860 \emph on
24861 Filters 
24862 \emph default
24863 are programs that read a given data stream and output a manipulated data
24864  stream.
24865  That way, a WEB file (consisting of literate code) can be turned into a
24866  file consisting only of C program code or \SpecialChar LaTeX
24867  code.
24868 \end_layout
24869
24870 \end_inset
24871
24872  and to perform special processing that you may need.
24873  
24874 \end_layout
24875
24876 \begin_layout Itemize
24877 There is a good selection of filters available already (the HTML is one
24878  of them).
24879 \end_layout
24880
24881 \begin_layout Itemize
24882 It is free.
24883 \end_layout
24884
24885 \begin_layout Standard
24886 The Noweb web page can be found at: 
24887 \end_layout
24888
24889 \begin_layout Quote
24890 Noweb home page 
24891 \begin_inset Flex URL
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895
24896 https://www.cs.tufts.edu/~nr/noweb/
24897 \end_layout
24898
24899 \end_inset
24900
24901
24902 \end_layout
24903
24904 \begin_layout Standard
24905 Starting from there you can reach many other interesting links and even
24906  some literate program examples.
24907 \end_layout
24908
24909 \begin_layout Subsection
24910 \SpecialChar LyX
24911  and Literate Programming with Noweb
24912 \end_layout
24913
24914 \begin_layout Standard
24915 The \SpecialChar LyX
24916  support for Literate Programming is provided by using the generic \SpecialChar LyX
24917
24918  converters mechanism.
24919  This support is provided in a 
24920 \begin_inset Quotes eld
24921 \end_inset
24922
24923 Noweb independent
24924 \begin_inset Quotes erd
24925 \end_inset
24926
24927  way, i.
24928 \begin_inset space \thinspace{}
24929 \end_inset
24930
24931 e.
24932 \begin_inset space \space{}
24933 \end_inset
24934
24935 you will be able to use this new \SpecialChar LyX
24936  feature with some other literate programming
24937  tool of your choice by just changing your \SpecialChar LyX
24938  preferences.
24939 \end_layout
24940
24941 \begin_layout Subsubsection
24942 Generating documents and code (weaving and tangling)
24943 \end_layout
24944
24945 \begin_layout Paragraph
24946 Using the noweb module
24947 \end_layout
24948
24949 \begin_layout Standard
24950 If you have installed Noweb and \SpecialChar LyX
24951  successfully, whenever you open a new document,
24952  after you have chosen its document class, use the 
24953 \family sans
24954 Document\SpecialChar menuseparator
24955 Settings
24956 \family default
24957  menu to add the 
24958 \begin_inset Quotes eld
24959 \end_inset
24960
24961 noweb
24962 \begin_inset Quotes erd
24963 \end_inset
24964
24965  module.
24966  If Noweb is correctly installed, when you click on the 
24967 \begin_inset Quotes eld
24968 \end_inset
24969
24970 Modules
24971 \begin_inset Quotes erd
24972 \end_inset
24973
24974  link, you will see the 
24975 \begin_inset Quotes eld
24976 \end_inset
24977
24978 noweb
24979 \begin_inset Quotes erd
24980 \end_inset
24981
24982  module in the available list and you can add it to your document.
24983 \end_layout
24984
24985 \begin_layout Paragraph
24986 Typing code in
24987 \end_layout
24988
24989 \begin_layout Standard
24990 \SpecialChar LyX
24991  enables you to write code with a custom inset named 
24992 \begin_inset Flex Noun
24993 status collapsed
24994
24995 \begin_layout Plain Layout
24996 Chunk
24997 \end_layout
24998
24999 \end_inset
25000
25001 .
25002  Noweb delimits chunks like this:
25003 \end_layout
25004
25005 \begin_layout LyX-Code
25006 <<My code>>=
25007 \end_layout
25008
25009 \begin_layout LyX-Code
25010   code
25011 \end_layout
25012
25013 \begin_layout LyX-Code
25014   more code
25015 \end_layout
25016
25017 \begin_layout LyX-Code
25018   even more code
25019 \end_layout
25020
25021 \begin_layout LyX-Code
25022   @
25023 \end_layout
25024
25025 \begin_layout Standard
25026 The problem is that whatever is written in between the << and the 
25027 \family typewriter
25028 @
25029 \family default
25030  must be taken literally, i.
25031 \begin_inset space \thinspace{}
25032 \end_inset
25033
25034 e.
25035 \begin_inset space \space{}
25036 \end_inset
25037
25038 \SpecialChar LyX
25039  should be prevented from making any special interpretation of what has
25040  been written.
25041  This is also handled by 
25042 \begin_inset Flex Noun
25043 status collapsed
25044
25045 \begin_layout Plain Layout
25046 Chunk
25047 \end_layout
25048
25049 \end_inset
25050
25051 , that works like a normal text inset but has a free spacing capability.
25052 \end_layout
25053
25054 \begin_layout Standard
25055 As a special note, you can also use the 
25056 \begin_inset Quotes eld
25057 \end_inset
25058
25059 %def
25060 \begin_inset Quotes erd
25061 \end_inset
25062
25063  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25064 rence:
25065 \end_layout
25066
25067 \begin_layout LyX-Code
25068 <<My chunk>>=
25069 \end_layout
25070
25071 \begin_layout LyX-Code
25072 def some_function(args):
25073 \end_layout
25074
25075 \begin_layout LyX-Code
25076    "This is the doc string for this function."
25077 \end_layout
25078
25079 \begin_layout LyX-Code
25080    print "My args: ", args
25081 \end_layout
25082
25083 \begin_layout LyX-Code
25084 @ %def some_function
25085 \end_layout
25086
25087 \begin_layout Standard
25088 For an example of this usage and the resulting cross-reference output, look
25089  at the Literate python program in 
25090 \emph on
25091 LIBDIR/examples/listerrors.lyx
25092 \emph default
25093  which should make this all clear.
25094 \end_layout
25095
25096 \begin_layout Paragraph
25097 Generating the documentation
25098 \end_layout
25099
25100 \begin_layout Standard
25101 At this point you already have a new document file with a proper document
25102  class, and with some code and text on it.
25103  How do I print it? The answer is simple, you select 
25104 \family sans
25105 View\SpecialChar menuseparator
25106 DVI,
25107 \family default
25108  etc.
25109  Just like you would do for a plain document.
25110  No special procedure is required.
25111 \end_layout
25112
25113 \begin_layout Standard
25114 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25115 :
25116 \end_layout
25117
25118 \begin_layout Enumerate
25119 When the 
25120 \family sans
25121 Update\SpecialChar menuseparator
25122 DVI
25123 \family default
25124  menu option is chosen, a \SpecialChar LaTeX
25125  file is generated.
25126  
25127 \end_layout
25128
25129 \begin_deeper
25130 \begin_layout Standard
25131 If the document is of any literate class the generated file will be named
25132  with an extension name defined by the 
25133 \begin_inset Quotes eld
25134 \end_inset
25135
25136 literate
25137 \begin_inset Quotes erd
25138 \end_inset
25139
25140  format (defined in the Preferences panel), otherwise the file will have
25141  the usual 
25142 \family typewriter
25143 .tex
25144 \family default
25145  extension.
25146 \end_layout
25147
25148 \end_deeper
25149 \begin_layout Enumerate
25150 Note that the only difference so far is in the name of the file, no special
25151  processing is required by \SpecialChar LyX
25152 .
25153  Given that you formatted the code using the 
25154 \begin_inset Flex Noun
25155 status collapsed
25156
25157 \begin_layout Plain Layout
25158 Chunk
25159 \end_layout
25160
25161 \end_inset
25162
25163  inset that, by itself, takes care of the business.
25164 \end_layout
25165
25166 \begin_layout Enumerate
25167 If the document is of any literate class \SpecialChar LyX
25168  will then use the internal \SpecialChar LyX
25169  to
25170  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25171  converter
25172 \begin_inset Foot
25173 status collapsed
25174
25175 \begin_layout Plain Layout
25176 The converters are defined in the 
25177 \family sans
25178 Tools\SpecialChar menuseparator
25179 Preferences
25180 \family default
25181  panel, under the 
25182 \begin_inset Quotes eld
25183 \end_inset
25184
25185 Conversion
25186 \begin_inset Quotes erd
25187 \end_inset
25188
25189  tab.
25190  See section 
25191 \emph on
25192 Converters
25193 \emph default
25194  of the 
25195 \emph on
25196 Customization
25197 \emph default
25198  manual for general information about converters.
25199 \end_layout
25200
25201 \end_inset
25202
25203  to generate the \SpecialChar LaTeX
25204  file.
25205 \end_layout
25206
25207 \begin_deeper
25208 \begin_layout Standard
25209 Otherwise it will just skip this step.
25210 \end_layout
25211
25212 \end_deeper
25213 \begin_layout Enumerate
25214 Finally, \SpecialChar LaTeX
25215  is invoked and the regular post processing continues as in a plain
25216  document.
25217 \end_layout
25218
25219 \begin_layout Standard
25220 Independence from a particular 
25221 \begin_inset Quotes eld
25222 \end_inset
25223
25224 literate tool
25225 \begin_inset Quotes erd
25226 \end_inset
25227
25228  is easily achieved by changing the commands that are run by the various
25229  converters.
25230 \end_layout
25231
25232 \begin_layout Paragraph
25233 Generating the code
25234 \end_layout
25235
25236 \begin_layout Standard
25237 When the build menu option is chosen or the corresponding button in the
25238  toolbar is pressed, a \SpecialChar LaTeX
25239  file is generated just like step 1 above.
25240  Next, \SpecialChar LyX
25241  invokes the 
25242 \family typewriter
25243 Noweb->Program
25244 \family default
25245  converter.
25246  This converter needs to be defined by the user and is not installed by
25247  default, though the Program format is.
25248  This converter (like any other converter) will have two parts:
25249 \end_layout
25250
25251 \begin_layout Enumerate
25252 The converter program itself.
25253  This program performs the conversion from the one format to the other (in
25254  this case, from the Noweb format to the Program pseudo-format).
25255 \end_layout
25256
25257 \begin_layout Enumerate
25258 The error log parser.
25259  This is a program whose sole purpose is to rewrite error messages in a
25260  format that \SpecialChar LyX
25261  understands.
25262  This makes it possible for \SpecialChar LyX
25263  to place error boxes in the right places in
25264  the file buffer.
25265 \end_layout
25266
25267 \begin_layout Standard
25268 The first part, the 
25269 \begin_inset Quotes eld
25270 \end_inset
25271
25272 Converter
25273 \begin_inset Quotes erd
25274 \end_inset
25275
25276  setting, should be set to
25277 \end_layout
25278
25279 \begin_layout LyX-Code
25280
25281 \family typewriter
25282 build-script $$i
25283 \family default
25284  $$r
25285 \end_layout
25286
25287 \begin_layout Standard
25288 This basically means that \SpecialChar LyX
25289  will call 
25290 \begin_inset Quotes eld
25291 \end_inset
25292
25293 build-script
25294 \begin_inset Quotes erd
25295 \end_inset
25296
25297  (a program or script) with the name of the Noweb file (normally a file
25298  in the \SpecialChar LyX
25299  temp directory) and the directory path of the original \SpecialChar LyX
25300  file.
25301  
25302 \end_layout
25303
25304 \begin_layout Standard
25305 This is an implementation of 
25306 \begin_inset Quotes eld
25307 \end_inset
25308
25309 build-script
25310 \begin_inset Quotes erd
25311 \end_inset
25312
25313  that you can place in a directory on your path:
25314 \end_layout
25315
25316 \begin_layout LyX-Code
25317
25318 \family sans
25319 #!/bin/sh
25320 \end_layout
25321
25322 \begin_layout LyX-Code
25323
25324 \family sans
25325 #
25326 \end_layout
25327
25328 \begin_layout LyX-Code
25329
25330 \family sans
25331 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25332 \end_layout
25333
25334 \begin_layout Standard
25335 The next part of the converter setting is the 
25336 \begin_inset Quotes eld
25337 \end_inset
25338
25339 Flags
25340 \begin_inset Quotes erd
25341 \end_inset
25342
25343  which is to be set to
25344 \end_layout
25345
25346 \begin_layout LyX-Code
25347
25348 \family typewriter
25349 parselog=$$s/scripts/listerrors
25350 \end_layout
25351
25352 \begin_layout Standard
25353 This will run any errors that are generated by the 
25354 \begin_inset Quotes eld
25355 \end_inset
25356
25357 build-script
25358 \begin_inset Quotes erd
25359 \end_inset
25360
25361  process through the 
25362 \begin_inset Quotes eld
25363 \end_inset
25364
25365 listerrors
25366 \begin_inset Quotes erd
25367 \end_inset
25368
25369  program.
25370 \end_layout
25371
25372 \begin_layout Standard
25373 The build will normally take place in \SpecialChar LyX
25374 's temporary directory, so the files
25375  produced by the conversion will be in that directory.
25376  \SpecialChar LyX
25377  will copy out what it regards as the `main' file, but the 
25378 \family typewriter
25379 Noweb->Program
25380 \family default
25381  conversion may produce several files, and so most of these would then be
25382  deleted when \SpecialChar LyX
25383  was closed.
25384  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25385  the build-script chunk can place the generated files in that location.
25386 \end_layout
25387
25388 \begin_layout Paragraph
25389 Build instructions in the document
25390 \end_layout
25391
25392 \begin_layout Standard
25393 The last piece of the integration between \SpecialChar LyX
25394  and noweb is the 
25395 \begin_inset Quotes eld
25396 \end_inset
25397
25398 build-script
25399 \begin_inset Quotes erd
25400 \end_inset
25401
25402  chunk.
25403  Generally, the instructions for building your program should be embedded
25404  in a chunk of its own.
25405  The noweb-specific 
25406 \begin_inset Quotes eld
25407 \end_inset
25408
25409 build-script
25410 \begin_inset Quotes erd
25411 \end_inset
25412
25413  above uses the notangle command to look for this chunk (called 
25414 \begin_inset Quotes eld
25415 \end_inset
25416
25417 build-script
25418 \begin_inset Quotes erd
25419 \end_inset
25420
25421 ) and runs its contents through 
25422 \begin_inset Quotes eld
25423 \end_inset
25424
25425 sh
25426 \begin_inset Quotes erd
25427 \end_inset
25428
25429 .
25430 \end_layout
25431
25432 \begin_layout Standard
25433 Typically, such a chunk would look something like this:
25434 \end_layout
25435
25436 \begin_layout LyX-Code
25437 <<build-script>>=
25438 \end_layout
25439
25440 \begin_layout LyX-Code
25441 #!/bin/sh
25442 \begin_inset Newline newline
25443 \end_inset
25444
25445 if [ -z "${NOWEB_SOURCE}" ]
25446 \begin_inset Newline newline
25447 \end_inset
25448
25449 then
25450 \end_layout
25451
25452 \begin_layout LyX-Code
25453 NOWEB_SOURCE=myfile.nw
25454 \begin_inset Newline newline
25455 \end_inset
25456
25457 fi
25458 \begin_inset Newline newline
25459 \end_inset
25460
25461 [...
25462  code to extract files ...
25463  use NOWEB_OUTPUT_DIR here ...]
25464 \begin_inset Newline newline
25465 \end_inset
25466
25467 [...
25468  code to compile files ...]
25469 \begin_inset Newline newline
25470 \end_inset
25471
25472 @
25473 \end_layout
25474
25475 \begin_layout Standard
25476 Look in 
25477 \emph on
25478 LIBDIR/examples/listerrors.lyx
25479 \emph default
25480  or in 
25481 \emph on
25482 LIBDIR/examples/Literate.lyx
25483 \emph default
25484  which implement two versions of the 
25485 \begin_inset Quotes eld
25486 \end_inset
25487
25488 listerrors
25489 \begin_inset Quotes erd
25490 \end_inset
25491
25492  program for some illustrations of how all of these pieces go together or
25493  in 
25494 \emph on
25495 LIBDIR/examples/noweb2lyx.lyx.
25496
25497 \emph default
25498  Interestingly, these three files show off the language-indepence of the
25499  \SpecialChar LyX
25500  literate programming support since they are written in Python, C and Perl
25501  respectively.
25502 \end_layout
25503
25504 \begin_layout Subsubsection
25505 Configuring \SpecialChar LyX
25506
25507 \end_layout
25508
25509 \begin_layout Standard
25510 All the Literate Programming support is configured by the 
25511 \family sans
25512 Tools\SpecialChar menuseparator
25513 Preferences
25514 \family default
25515  panel in the 
25516 \begin_inset Quotes eld
25517 \end_inset
25518
25519 File Handling
25520 \begin_inset Quotes erd
25521 \end_inset
25522
25523  tab.
25524  The important parts are:
25525 \end_layout
25526
25527 \begin_layout Description
25528 the
25529 \begin_inset space ~
25530 \end_inset
25531
25532
25533 \begin_inset Quotes eld
25534 \end_inset
25535
25536 NoWeb
25537 \begin_inset Quotes erd
25538 \end_inset
25539
25540
25541 \begin_inset space ~
25542 \end_inset
25543
25544 format Set up via the File Formats tab, this is where the Noweb-specific
25545  pieces are set up.
25546  The 
25547 \family sans
25548 GUI Name
25549 \family default
25550  is set to 
25551 \family typewriter
25552 NoWeb
25553 \family default
25554 , the file extension is set to 
25555 \family typewriter
25556 .nw
25557 \family default
25558 .
25559  This tells \SpecialChar LyX
25560  to create a file with a 
25561 \family typewriter
25562 .nw
25563 \family default
25564  extension in the first step of the conversion process.
25565 \end_layout
25566
25567 \begin_layout Description
25568 the
25569 \begin_inset space ~
25570 \end_inset
25571
25572
25573 \family sans
25574 Program
25575 \family default
25576
25577 \begin_inset space ~
25578 \end_inset
25579
25580 format This is an empty format whose sole purpose is to be the endpoint
25581  of a conversion (which then allows us to set up a converter for it).
25582 \end_layout
25583
25584 \begin_layout Description
25585
25586 \family sans
25587 NoWeb
25588 \family default
25589 ->
25590 \family sans
25591 \SpecialChar LaTeX
25592
25593 \family default
25594  This converter performs the 
25595 \begin_inset Quotes eld
25596 \end_inset
25597
25598 weaving
25599 \begin_inset Quotes erd
25600 \end_inset
25601
25602  of the literate document.
25603  For Noweb, it is set to 
25604 \begin_inset Quotes eld
25605 \end_inset
25606
25607
25608 \family typewriter
25609 noweave -delay -index $$i > $$o
25610 \family default
25611
25612 \begin_inset Quotes erd
25613 \end_inset
25614
25615
25616 \end_layout
25617
25618 \begin_layout Description
25619
25620 \family sans
25621 NoWeb
25622 \family default
25623 ->
25624 \family sans
25625 Program
25626 \family default
25627  This performs the 
25628 \begin_inset Quotes eld
25629 \end_inset
25630
25631 tangling step
25632 \begin_inset Quotes erd
25633 \end_inset
25634
25635 .
25636  As stated above, the Converter is set to 
25637 \begin_inset Quotes eld
25638 \end_inset
25639
25640
25641 \family typewriter
25642 build-script $$i
25643 \family default
25644  $$r
25645 \begin_inset Quotes erd
25646 \end_inset
25647
25648 , with Flags set to
25649 \begin_inset Newline newline
25650 \end_inset
25651
25652
25653 \begin_inset Quotes eld
25654 \end_inset
25655
25656
25657 \family typewriter
25658 parselog=$$s/scripts/listerrors
25659 \family default
25660
25661 \begin_inset Quotes erd
25662 \end_inset
25663
25664 .
25665 \end_layout
25666
25667 \begin_layout Subsubsection
25668 Debug extensions
25669 \end_layout
25670
25671 \begin_layout Standard
25672 There is also a new function implemented in the \SpecialChar LyX
25673  server, the 
25674 \begin_inset Quotes eld
25675 \end_inset
25676
25677 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25678  
25679 \end_layout
25680
25681 \begin_layout Standard
25682 When debugging code with ddd/gdb, it is possible to invoke a text editor
25683  at the current execution position with a single key stroke.
25684  The default ddd configuration for that is shift-ctrl-V.
25685  It happens that you can define the editor command line invocation in ddd
25686  by accessing the 
25687 \family sans
25688 Edit\SpecialChar menuseparator
25689 Preferences\SpecialChar menuseparator
25690 Helpers
25691 \family default
25692  dialog and changing the "Edit Sources" entry.
25693 \end_layout
25694
25695 \begin_layout Standard
25696 I take advantage of the newly created \SpecialChar LyX
25697  server function and this ddd feature,
25698  and set 
25699 \begin_inset Quotes eld
25700 \end_inset
25701
25702 Edit Sources
25703 \begin_inset Quotes erd
25704 \end_inset
25705
25706  to:
25707 \end_layout
25708
25709 \begin_layout LyX-Code
25710 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25711 \end_layout
25712
25713 \begin_layout Standard
25714 With this, whenever you are using ddd and find a point in the program that
25715  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25716  ddd will forward this information to \SpecialChar LyX
25717  through the \SpecialChar LyX
25718  server and then the
25719  \SpecialChar LyX
25720  window will show the same file with the cursor at the same position ddd
25721  was pointing to.
25722  No more guessing or long scrolling to locate a point in the program back
25723  from debugging !
25724 \end_layout
25725
25726 \begin_layout Standard
25727 Note however that you must enable the \SpecialChar LyX
25728  server to get this feature working
25729  (it is disabled by default).
25730  Sec.
25731 \begin_inset space ~
25732 \end_inset
25733
25734
25735 \begin_inset CommandInset ref
25736 LatexCommand ref
25737 reference "sec:Starting-the-Server"
25738
25739 \end_inset
25740
25741  explains how to do that.
25742 \end_layout
25743
25744 \begin_layout Subsubsection
25745 Toolbar extensions
25746 \end_layout
25747
25748 \begin_layout Standard
25749 There are six new buttons that can be added to your \SpecialChar LyX
25750  toolbar.
25751  Four of these buttons are short cuts to layout styles: 
25752 \family sans
25753 Standard
25754 \family default
25755
25756 \family sans
25757 Section
25758 \family default
25759
25760 \family sans
25761 \SpecialChar LaTeX
25762
25763 \family default
25764 , and 
25765 \family sans
25766 \SpecialChar LyX
25767 -Code
25768 \family default
25769 , one for the custom inset 
25770 \family sans
25771 Chunk
25772 \family default
25773 .
25774  The last one is a short cut to the 
25775 \begin_inset Quotes eld
25776 \end_inset
25777
25778 Build Program
25779 \begin_inset Quotes erd
25780 \end_inset
25781
25782  File menu entry.
25783  
25784 \end_layout
25785
25786 \begin_layout Standard
25787 \SpecialChar LyX
25788  has a range of buttons that are available for tool bar customization.
25789  In my toolbar I like to combine the six short cuts above with two more:
25790  One for 
25791 \family sans
25792 Document
25793 \family default
25794 \SpecialChar menuseparator
25795
25796 \family sans
25797 Update
25798 \family default
25799 \SpecialChar menuseparator
25800
25801 \family sans
25802 DVI
25803 \family default
25804  and the other for 
25805 \family sans
25806 Document\SpecialChar menuseparator
25807 View\SpecialChar menuseparator
25808 DVI
25809 \family default
25810  File menu entries.
25811  Here is how it looks like:
25812 \end_layout
25813
25814 \begin_layout LyX-Code
25815 Toolbar
25816 \end_layout
25817
25818 \begin_layout LyX-Code
25819   Layouts
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823   Icon "layout Standard"
25824 \end_layout
25825
25826 \begin_layout LyX-Code
25827   Icon "layout Section"
25828 \end_layout
25829
25830 \begin_layout LyX-Code
25831   Icon "layout \SpecialChar LaTeX
25832 "
25833 \end_layout
25834
25835 \begin_layout LyX-Code
25836   Icon "layout \SpecialChar LyX
25837 -Code"
25838 \end_layout
25839
25840 \begin_layout LyX-Code
25841   Icon "flex.insert Chunk"
25842 \end_layout
25843
25844 \begin_layout LyX-Code
25845   Separator
25846 \end_layout
25847
25848 \begin_layout LyX-Code
25849   Icon "buffer-view"
25850 \end_layout
25851
25852 \begin_layout LyX-Code
25853   Icon "buffer-typeset"
25854 \end_layout
25855
25856 \begin_layout LyX-Code
25857   Icon "build-program"
25858 \end_layout
25859
25860 \begin_layout LyX-Code
25861   Separator
25862 \end_layout
25863
25864 \begin_layout LyX-Code
25865 .
25866 \end_layout
25867
25868 \begin_layout LyX-Code
25869 .
25870 \end_layout
25871
25872 \begin_layout LyX-Code
25873 .
25874 \end_layout
25875
25876 \begin_layout LyX-Code
25877 End
25878 \end_layout
25879
25880 \begin_layout Subsubsection
25881 Colors customization
25882 \end_layout
25883
25884 \begin_layout Standard
25885 There are a number of colors in \SpecialChar LyX
25886  that can be customized in 
25887 \family sans
25888 Preferences
25889 \family default
25890 .
25891  One of the things that bothers people is the \SpecialChar LaTeX
25892  font color.
25893  The default color is red, since the chunks uses \SpecialChar LaTeX
25894  font, and there is a lot
25895  of chunks in literate documents, you may get tired of seeing everything
25896  in red.
25897  You can change it by going to the tabs 
25898 \family sans
25899 Look&Feel
25900 \family default
25901
25902 \family sans
25903 Colors.
25904 \end_layout
25905
25906 \begin_layout Standard
25907 The next thing is the visible presence of the newline character in the screen.
25908  You can choose the color of this particular character and make it blend
25909  in the background.
25910  I recommend you choosing a color that is close to the background but not
25911  equal, that way you still can see it is there, but it is not bothering
25912  you anymore.
25913 \end_layout
25914
25915 \begin_layout Subsection
25916 \SpecialChar LyX
25917  and knitr/Sweave
25918 \end_layout
25919
25920 \begin_layout Standard
25921 Support for 
25922 \family sans
25923 knitr
25924 \family default
25925  and 
25926 \family sans
25927 Sweave
25928 \family default
25929  is documented in the 
25930 \emph on
25931 knitr.lyx
25932 \emph default
25933  example file and in the Sweave manual (menu 
25934 \family sans
25935 Help\SpecialChar menuseparator
25936 Specific Manuals
25937 \family default
25938 ).
25939 \end_layout
25940
25941 \begin_layout Chapter
25942 Special features
25943 \end_layout
25944
25945 \begin_layout Standard
25946 You can do everything with \SpecialChar LyX
25947  that you can do with \SpecialChar LaTeX
25948 .
25949  However, \SpecialChar LyX
25950  cannot support every \SpecialChar LaTeX
25951  feature directly.
25952  But you can always use \SpecialChar TeX
25953  Code.
25954  This chapter shows you some more special things you might want to use.
25955  For other special things you can do with figures, tables, floats, boxes
25956  and notes, have a look at the 
25957 \emph on
25958 Embedded
25959 \begin_inset space ~
25960 \end_inset
25961
25962 Objects
25963 \emph default
25964  manual.
25965 \end_layout
25966
25967 \begin_layout Section
25968 Multiple Text Columns
25969 \end_layout
25970
25971 \begin_layout Standard
25972 This feature is independent of the option 
25973 \family sans
25974 Two-column document
25975 \family default
25976  in the document settings under 
25977 \family sans
25978 Text Layout
25979 \family default
25980 .
25981  If you want to have 2
25982 \begin_inset space ~
25983 \end_inset
25984
25985 columns for the whole document, it is recommended to use the 
25986 \family sans
25987 Two-column document
25988 \family default
25989  option.
25990  For all other cases use this feature.
25991 \end_layout
25992
25993 \begin_layout Standard
25994 To use multiple text columns in your document, you have to load the module
25995  
25996 \family sans
25997 Multiple Columns
25998 \family default
25999  (menu 
26000 \family sans
26001 Document\SpecialChar menuseparator
26002 Settings\SpecialChar menuseparator
26003 Modules
26004 \family default
26005 ) and must have the \SpecialChar LaTeX
26006 -package 
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 multicol
26012 \end_layout
26013
26014 \end_inset
26015
26016  installed.
26017 \end_layout
26018
26019 \begin_layout Standard
26020 Footnotes within multiple columns will be placed at the bottom of the page
26021  and not under each column.
26022  Within the different columns you can use everything, with the limitation
26023  that for floats you need to use the float option 
26024 \family sans
26025 Span columns
26026 \family default
26027 .
26028 \end_layout
26029
26030 \begin_layout Subsection
26031 Basics
26032 \end_layout
26033
26034 \begin_layout Standard
26035 If you want to have 2
26036 \begin_inset space ~
26037 \end_inset
26038
26039 columns in your text, insert a multicolumn inset via the menu 
26040 \family sans
26041 Insert\SpecialChar menuseparator
26042 Custom
26043 \begin_inset space ~
26044 \end_inset
26045
26046 Insets\SpecialChar menuseparator
26047 Multiple
26048 \begin_inset space ~
26049 \end_inset
26050
26051 Columns
26052 \family default
26053  where the columns should start.
26054  Write all text that should be printed in 2
26055 \begin_inset space ~
26056 \end_inset
26057
26058 columns into this inset.
26059 \end_layout
26060
26061 \begin_layout Standard
26062 Here is an example:
26063 \end_layout
26064
26065 \begin_layout Standard
26066 \noindent
26067 \begin_inset Flex Multiple Columns
26068 status open
26069
26070 \begin_layout Plain Layout
26071 \noindent
26072
26073 \series bold
26074 \size small
26075 The Adventure of the Empty House
26076 \series default
26077
26078 \begin_inset Newline newline
26079 \end_inset
26080
26081 by Sir Arthur Conan Doyle
26082 \end_layout
26083
26084 \begin_layout Plain Layout
26085
26086 \size small
26087 It was in the spring of the year 1894 that all London was interested, and
26088  the fashionable world dismayed, by the murder of the Honourable Ronald
26089  Adair under most unusual and inexplicable circumstances.
26090  The public has already learned those particulars of the crime which came
26091  out in the police investigation, but a good deal was suppressed upon that
26092  occasion, since the case for the prosecution was so overwhelmingly strong
26093  that it was not necessary to bring forward all the facts.
26094  Only now, at the end of nearly ten years, am I allowed to supply those
26095  missing links which make up the whole of that remarkable chain.
26096  The crime was of interest in itself, but that interest was as nothing to
26097  me compared to the inconceivable sequel, which afforded me the greatest
26098  shock and surprise of any event in my adventurous life.
26099  Even now, after this long interval, I find myself thrilling as I think
26100  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26101 ty which utterly submerged my mind.
26102  Let me say to that public, which has shown some interest in those glimpses
26103  which I have occasionally given them of the thoughts and actions of a very
26104  remarkable man, that they are not to blame me if I have not shared my knowledge
26105  with them, for I should have considered it my first duty to do so, had
26106  I not been barred by a positive prohibition from his own lips, which was
26107  only withdrawn upon the third of last month.
26108 \end_layout
26109
26110 \end_inset
26111
26112
26113 \end_layout
26114
26115 \begin_layout Standard
26116 To get 3 or more columns, set the cursor into the multicolumn inset and
26117  use the menu 
26118 \family sans
26119 Insert\SpecialChar menuseparator
26120 Number
26121 \begin_inset space ~
26122 \end_inset
26123
26124 of
26125 \begin_inset space ~
26126 \end_inset
26127
26128 Columns
26129 \family default
26130 .
26131  The number of the desired columns is written into that inset (for 3
26132 \begin_inset space ~
26133 \end_inset
26134
26135 columns write 
26136 \begin_inset Quotes eld
26137 \end_inset
26138
26139 3
26140 \begin_inset Quotes erd
26141 \end_inset
26142
26143 ).
26144 \begin_inset Newline newline
26145 \end_inset
26146
26147 Here is an example with 3
26148 \begin_inset space ~
26149 \end_inset
26150
26151 columns:
26152 \end_layout
26153
26154 \begin_layout Standard
26155 \begin_inset Flex Multiple Columns
26156 status open
26157
26158 \begin_layout Plain Layout
26159
26160 \size footnotesize
26161 \begin_inset Argument 1
26162 status open
26163
26164 \begin_layout Plain Layout
26165
26166 3
26167 \end_layout
26168
26169 \end_inset
26170
26171 It can be imagined that my close intimacy with Sherlock Holmes had interested
26172  me deeply in crime, and that after his disappearance I never failed to
26173  read with care the various problems which came before the public.
26174  And I even attempted, more than once, for my own private satisfaction,
26175  to employ his methods in their solution, though with indifferent success.
26176  There was none, however, which appealed to me like this tragedy of Ronald
26177  Adair.
26178  As I read the evidence at the inquest, which led up to a verdict of willful
26179  murder against some person or persons unknown, I realized more clearly
26180  than I had ever done the loss which the community had sustained by the
26181  death of Sherlock Holmes.
26182  There were points about this strange business which would, I was sure,
26183  have specially appealed to him, and the efforts of the police would have
26184  been supplemented, or more probably anticipated, by the trained observation
26185  and the alert mind of the first criminal agent in Europe.
26186  All day, as I drove upon my round, I turned over the case in my mind and
26187  found no explanation which appeared to me to be adequate.
26188  At the risk of telling a twice-told tale, I will recapitulate the facts
26189  as they were known to the public at the conclusion of the inquest.
26190 \end_layout
26191
26192 \end_inset
26193
26194
26195 \end_layout
26196
26197 \begin_layout Standard
26198 You can have up to 10
26199 \begin_inset space ~
26200 \end_inset
26201
26202 columns if you want to, but that might not be very pleasant for the readers
26203  of your document.
26204 \end_layout
26205
26206 \begin_layout Standard
26207 \begin_inset Newpage newpage
26208 \end_inset
26209
26210
26211 \end_layout
26212
26213 \begin_layout Subsection
26214 Columns inside Columns
26215 \end_layout
26216
26217 \begin_layout Standard
26218 You can also have columns inside columns:
26219 \end_layout
26220
26221 \begin_layout Standard
26222 \begin_inset Flex Multiple Columns
26223 status open
26224
26225 \begin_layout Plain Layout
26226
26227 \size footnotesize
26228 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26229  at that time governor of one of the Australian colonies.
26230  Adair's mother had returned from Australia to undergo the operation for
26231  cataract, and she, her son Ronald, and her daughter Hilda were living together
26232  at 427 Park Lane.
26233 \end_layout
26234
26235 \begin_layout Plain Layout
26236 \begin_inset Flex Multiple Columns
26237 status open
26238
26239 \begin_layout Plain Layout
26240
26241 \size footnotesize
26242 The youth moved in the best society
26243 \begin_inset space ~
26244 \end_inset
26245
26246 – had, so far as was known, no enemies and no particular vices.
26247  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26248  had been broken off by mutual consent some months before, and there was
26249  no sign that it had left any very profound feeling behind it.
26250  For the rest {sic} the man's life moved in a narrow and conventional circle,
26251  for his habits were quiet and his nature unemotional.
26252  Yet it was upon this easy-going young aristocrat that death came, in most
26253  strange and unexpected form, between the hours of ten and eleven-twenty
26254  on the night of March 30, 1894.
26255 \end_layout
26256
26257 \end_inset
26258
26259
26260 \end_layout
26261
26262 \begin_layout Plain Layout
26263
26264 \size footnotesize
26265 Ronald Adair was fond of cards
26266 \begin_inset space ~
26267 \end_inset
26268
26269 – playing continually, but never for such stakes as would hurt him.
26270  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26271  It was shown that, after dinner on the day of his death, he had played
26272  a rubber of whist at the latter club.
26273  He had also played there in the afternoon.
26274
26275 \size default
26276  
26277 \size footnotesize
26278 The evidence of those who had played with him
26279 \begin_inset space ~
26280 \end_inset
26281
26282 – Mr.
26283  Murray, Sir John Hardy, and Colonel Moran
26284 \begin_inset space ~
26285 \end_inset
26286
26287 – showed that the game was whist, and that there was a fairly equal fall
26288  of the cards.
26289  Adair might have lost five pounds, but not more.
26290  His fortune was a considerable one, and such a loss could not in any way
26291  affect him.
26292  He had played nearly every day at one club or other, but he was a cautious
26293  player, and usually rose a winner.
26294  It came out in evidence that, in partnership with Colonel Moran, he had
26295  actually won as much as four hundred and twenty pounds in a sitting, some
26296  weeks before, from Godfrey Milner and Lord Balmoral.
26297  So much for his recent history as it came out at the inquest.
26298 \end_layout
26299
26300 \end_inset
26301
26302
26303 \end_layout
26304
26305 \begin_layout Subsection
26306 Advanced Examples
26307 \end_layout
26308
26309 \begin_layout Standard
26310 The examples in this section show some more special features of multiple
26311  columns.
26312 \end_layout
26313
26314 \begin_layout Standard
26315 For more features of multiple columns, have a look at the 
26316 \begin_inset CommandInset href
26317 LatexCommand href
26318 name "documentation"
26319 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26320 literal "false"
26321
26322 \end_inset
26323
26324  of the \SpecialChar LaTeX
26325 -package 
26326 \begin_inset Flex Code
26327 status collapsed
26328
26329 \begin_layout Plain Layout
26330 multicol
26331 \end_layout
26332
26333 \end_inset
26334
26335 .
26336 \end_layout
26337
26338 \begin_layout Subsubsection
26339 Preface
26340 \end_layout
26341
26342 \begin_layout Standard
26343 To add a preface text for multiple columns, set the cursor into the multicolumn
26344  inset and use the menu 
26345 \family sans
26346 Insert\SpecialChar menuseparator
26347 Preface
26348 \family default
26349 .
26350  Write your preface text into that inset.
26351 \begin_inset Newline newline
26352 \end_inset
26353
26354 This is an example with some preface text:
26355 \end_layout
26356
26357 \begin_layout Standard
26358 \begin_inset VSpace bigskip
26359 \end_inset
26360
26361
26362 \end_layout
26363
26364 \begin_layout Standard
26365 \begin_inset Flex Multiple Columns
26366 status open
26367
26368 \begin_layout Plain Layout
26369 \begin_inset Argument 2
26370 status open
26371
26372 \begin_layout Plain Layout
26373 And the story continues and continues and continues and continues\SpecialChar ldots
26374
26375 \end_layout
26376
26377 \end_inset
26378
26379
26380 \size small
26381 On the evening of the crime, he returned from the club exactly at ten.
26382  His mother and sister were out spending the evening with a relation.
26383  The servant deposed that she heard him enter the front room on the second
26384  floor, generally used as his sitting-room.
26385  She had lit a fire there, and as it smoked she had opened the window.
26386  No sound was heard from the room until eleven-twenty, the hour of the return
26387  of Lady Maynooth and her daughter.
26388  Desiring to say good-night, she attempted to enter her son's room.
26389  The door was locked on the inside, and no answer could be got to their
26390  cries and knocking.
26391  Help was obtained, and the door forced.
26392  The unfortunate young man was found lying near the table.
26393  His head had been horribly mutilated by an expanding revolver bullet, but
26394  no weapon of any sort was to be found in the room.
26395 \end_layout
26396
26397 \end_inset
26398
26399
26400 \end_layout
26401
26402 \begin_layout Standard
26403 You can also use a section heading as the preface if you use a section command
26404  as \SpecialChar TeX
26405  Code.
26406  For example the command
26407 \end_layout
26408
26409 \begin_layout LyX-Code
26410
26411 \backslash
26412 subsection{subsection title}
26413 \end_layout
26414
26415 \begin_layout Standard
26416 creates a subsection.
26417  In this example the preface is a subsubsection:
26418 \end_layout
26419
26420 \begin_layout Standard
26421 \begin_inset Flex Multiple Columns
26422 status open
26423
26424 \begin_layout Plain Layout
26425 \begin_inset Argument 2
26426 status open
26427
26428 \begin_layout Plain Layout
26429 \begin_inset ERT
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433
26434
26435 \backslash
26436 subsubsection{
26437 \end_layout
26438
26439 \end_inset
26440
26441 This is a subsubsection heading as a preface
26442 \begin_inset ERT
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446
26447 }
26448 \end_layout
26449
26450 \end_inset
26451
26452
26453 \end_layout
26454
26455 \end_inset
26456
26457
26458 \size small
26459 A minute examination of the circumstances served only to make the case more
26460  complex.
26461  In the first place, no reason could be given why the young man should have
26462  fastened the door upon the inside.
26463  There was the possibility that the murderer had done this, and had afterwards
26464  escaped by the window.
26465  The drop was at least twenty feet, however, and a bed of crocuses in full
26466  bloom lay beneath.
26467  Neither the flowers nor the earth showed any sign of having been disturbed,
26468  nor were there any marks upon the narrow strip of grass which separated
26469  the house from the road.
26470  Apparently, therefore, it was the young man himself who had fastened the
26471  door.
26472  But how did he come by his death? No one could have climbed up to the window
26473  without leaving traces.
26474  Suppose a man had fired through the window, he would indeed be a remarkable
26475  shot who could with a revolver inflict so deadly a wound.
26476  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26477  a hundred yards of the house.
26478  No one had heard a shot.
26479 \end_layout
26480
26481 \end_inset
26482
26483
26484 \end_layout
26485
26486 \begin_layout Standard
26487 If there is less vertical space than 6
26488 \begin_inset space ~
26489 \end_inset
26490
26491 text lines is left on the page at the beginning of the multiple columns,
26492  a page break will be inserted before the multiple columns.
26493  Depending on the number of lines of the preface text, you might want to
26494  change this space.
26495  This is done by setting the cursor into the mulitcolumn inset behind the
26496  preface (if there is any) and using the menu 
26497 \family sans
26498 Insert\SpecialChar menuseparator
26499 Space
26500 \begin_inset space ~
26501 \end_inset
26502
26503 Before
26504 \begin_inset space ~
26505 \end_inset
26506
26507 Page
26508 \begin_inset space ~
26509 \end_inset
26510
26511 Break
26512 \family default
26513 .
26514  Insert into that inset the amount of space like e.
26515 \begin_inset space \thinspace{}
26516 \end_inset
26517
26518 g.
26519 \begin_inset space \space{}
26520 \end_inset
26521
26522
26523 \begin_inset Quotes eld
26524 \end_inset
26525
26526 5cm
26527 \begin_inset Quotes erd
26528 \end_inset
26529
26530 .
26531 \begin_inset Newline newline
26532 \end_inset
26533
26534 In this example the space is set to 7
26535 \begin_inset space ~
26536 \end_inset
26537
26538 text lines by using 
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543 7
26544 \backslash
26545 baselineskip
26546 \end_layout
26547
26548 \end_inset
26549
26550  (where the command 
26551 \begin_inset Flex Code
26552 status collapsed
26553
26554 \begin_layout Plain Layout
26555
26556 \backslash
26557 baselineskip
26558 \end_layout
26559
26560 \end_inset
26561
26562  needs to be inserted as \SpecialChar TeX
26563  code):
26564 \end_layout
26565
26566 \begin_layout Standard
26567 \begin_inset Flex Multiple Columns
26568 status open
26569
26570 \begin_layout Plain Layout
26571 \begin_inset Argument 3
26572 status open
26573
26574 \begin_layout Plain Layout
26575 7
26576 \begin_inset ERT
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580
26581
26582 \backslash
26583 baselineskip
26584 \end_layout
26585
26586 \end_inset
26587
26588
26589 \end_layout
26590
26591 \end_inset
26592
26593
26594 \size small
26595 On the evening of the crime, he returned from the club exactly at ten.
26596  His mother and sister were out spending the evening with a relation.
26597  The servant deposed that she heard him enter the front room on the second
26598  floor, generally used as his sitting-room.
26599  She had lit a fire there, and as it smoked she had opened the window.
26600  No sound was heard from the room until eleven-twenty, the hour of the return
26601  of Lady Maynooth and her daughter.
26602  Desiring to say good-night, she attempted to enter her son's room.
26603  The door was locked on the inside, and no answer could be got to their
26604  cries and knocking.
26605  Help was obtained, and the door forced.
26606  The unfortunate young man was found lying near the table.
26607  His head had been horribly mutilated by an expanding revolver bullet, but
26608  no weapon of any sort was to be found in the room.
26609 \end_layout
26610
26611 \end_inset
26612
26613
26614 \end_layout
26615
26616 \begin_layout Subsubsection
26617 Surrounding Space
26618 \end_layout
26619
26620 \begin_layout Standard
26621 The amount of space before and after multiple columns can be changed by
26622  changing the length 
26623 \begin_inset Flex Code
26624 status collapsed
26625
26626 \begin_layout Plain Layout
26627
26628 \backslash
26629 multicolsep
26630 \end_layout
26631
26632 \end_inset
26633
26634 .
26635  For example the command
26636 \end_layout
26637
26638 \begin_layout LyX-Code
26639
26640 \backslash
26641 setlength{
26642 \backslash
26643 multicolsep}{3cm}
26644 \end_layout
26645
26646 \begin_layout Standard
26647 in \SpecialChar TeX
26648  Code changes its value to 3
26649 \begin_inset space \thinspace{}
26650 \end_inset
26651
26652 cm.
26653  The change must be made before the multiple columns' start.
26654  The predefined value is 13
26655 \begin_inset space \thinspace{}
26656 \end_inset
26657
26658 pt.
26659 \end_layout
26660
26661 \begin_layout Standard
26662 For this example 
26663 \begin_inset Flex Code
26664 status collapsed
26665
26666 \begin_layout Plain Layout
26667
26668 \backslash
26669 multicolsep
26670 \end_layout
26671
26672 \end_inset
26673
26674  was set to 2.5
26675 \begin_inset space \thinspace{}
26676 \end_inset
26677
26678 cm:
26679 \end_layout
26680
26681 \begin_layout Standard
26682 \begin_inset ERT
26683 status open
26684
26685 \begin_layout Plain Layout
26686
26687
26688 \backslash
26689 setlength{
26690 \backslash
26691 multicolsep}{2.5cm}
26692 \end_layout
26693
26694 \end_inset
26695
26696
26697 \end_layout
26698
26699 \begin_layout Standard
26700 \begin_inset Flex Multiple Columns
26701 status open
26702
26703 \begin_layout Plain Layout
26704
26705 \size small
26706 All day I turned these facts over in my mind, endeavouring to hit upon some
26707  theory which could reconcile them all, and to find that line of least resistanc
26708 e which my poor friend had declared to be the starting-point of every investigat
26709 ion.
26710  I confess that I made little progress.
26711  In the evening I strolled across the Park, and found myself about six o'clock
26712  at the Oxford Street end of Park Lane.
26713  A group of loafers upon the pavements, all staring up at a particular window,
26714  directed me to the house which I had come to see.
26715  A tall, thin man with coloured glasses, whom I strongly suspected of being
26716  a plain-clothes detective, was pointing out some theory of his own, while
26717  the others crowded round to listen to what he said.
26718  I got as near him as I could, but his observations seemed to me to be absurd,
26719  so I withdrew again in some disgust.
26720  As I did so I struck against an elderly, deformed man, who had been behind
26721  me, and I knocked down several books which he was carrying.
26722 \end_layout
26723
26724 \end_inset
26725
26726
26727 \end_layout
26728
26729 \begin_layout Standard
26730 \begin_inset Note Greyedout
26731 status open
26732
26733 \begin_layout Plain Layout
26734
26735 \series bold
26736 Note:
26737 \series default
26738  The values you set with 
26739 \begin_inset Flex Code
26740 status collapsed
26741
26742 \begin_layout Plain Layout
26743
26744 \backslash
26745 setlength
26746 \end_layout
26747
26748 \end_inset
26749
26750  will be used for all following multiple columns until you change them again.
26751 \end_layout
26752
26753 \end_inset
26754
26755
26756 \end_layout
26757
26758 \begin_layout Standard
26759 \begin_inset ERT
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763
26764
26765 \backslash
26766 setlength{
26767 \backslash
26768 multicolsep}{13pt}
26769 \end_layout
26770
26771 \end_inset
26772
26773
26774 \begin_inset Note Note
26775 status collapsed
26776
26777 \begin_layout Plain Layout
26778 go back to the default
26779 \end_layout
26780
26781 \end_inset
26782
26783
26784 \end_layout
26785
26786 \begin_layout Standard
26787 \begin_inset Newpage newpage
26788 \end_inset
26789
26790
26791 \end_layout
26792
26793 \begin_layout Subsubsection
26794 Column Breaks
26795 \end_layout
26796
26797 \begin_layout Standard
26798 A column break can be forced by inserting the command 
26799 \begin_inset Flex Code
26800 status collapsed
26801
26802 \begin_layout Plain Layout
26803
26804 \backslash
26805 columnbreak{}
26806 \end_layout
26807
26808 \end_inset
26809
26810  as \SpecialChar TeX
26811  Code to that position in the text where the column should be broken.
26812  Note that this leads in most cases to whitespace in the text.
26813 \begin_inset Newline newline
26814 \end_inset
26815
26816 Here is an example:
26817 \end_layout
26818
26819 \begin_layout Standard
26820 \begin_inset Flex Multiple Columns
26821 status open
26822
26823 \begin_layout Plain Layout
26824
26825 \size small
26826 \begin_inset Quotes eld
26827 \end_inset
26828
26829 You're surprised to see me, sir,
26830 \begin_inset Quotes erd
26831 \end_inset
26832
26833  said he, in a strange, croaking voice.
26834 \end_layout
26835
26836 \begin_layout Plain Layout
26837
26838 \size small
26839 I acknowledged that I was.
26840 \end_layout
26841
26842 \begin_layout Plain Layout
26843
26844 \size small
26845 \begin_inset Quotes eld
26846 \end_inset
26847
26848 Well, I've a conscience, sir, and when I chanced to see you go into this
26849  house, as I came hobbling after you, I thought to myself, I'll just step
26850  in and see that kind gentleman, and tell him that if I was a bit gruff
26851  in my manner there was not any harm meant, and that I am much obliged to
26852  him for picking up my books.
26853 \begin_inset Quotes erd
26854 \end_inset
26855
26856
26857 \end_layout
26858
26859 \begin_layout Plain Layout
26860
26861 \size small
26862 \begin_inset Quotes eld
26863 \end_inset
26864
26865 You make too much of a trifle,
26866 \begin_inset Quotes erd
26867 \end_inset
26868
26869  said I.
26870  
26871 \begin_inset Quotes eld
26872 \end_inset
26873
26874 May I ask how you knew who I was?
26875 \begin_inset Quotes erd
26876 \end_inset
26877
26878  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
26879 \begin_inset ERT
26880 status collapsed
26881
26882 \begin_layout Plain Layout
26883
26884
26885 \backslash
26886 columnbreak{}
26887 \end_layout
26888
26889 \end_inset
26890
26891
26892 \end_layout
26893
26894 \begin_layout Plain Layout
26895
26896 \size small
26897 \begin_inset Quotes eld
26898 \end_inset
26899
26900 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26901  you'll find my little bookshop at the corner of Church Street, and very
26902  happy to see you, I am sure.
26903  Maybe you collect yourself, sir.
26904  Here's 
26905 \noun on
26906 British
26907 \begin_inset space ~
26908 \end_inset
26909
26910 Birds
26911 \noun default
26912 , and 
26913 \noun on
26914 Catullus
26915 \noun default
26916 , and 
26917 \noun on
26918 The Holy War
26919 \noun default
26920
26921 \begin_inset space ~
26922 \end_inset
26923
26924 – a bargain, every one of them.
26925  With five volumes you could just fill that gap on that second shelf.
26926  It looks untidy, does it not, sir?
26927 \begin_inset Quotes erd
26928 \end_inset
26929
26930
26931 \end_layout
26932
26933 \end_inset
26934
26935
26936 \end_layout
26937
26938 \begin_layout Subsubsection
26939 Column Separation
26940 \end_layout
26941
26942 \begin_layout Standard
26943 The width of the columns is automatically calculated, but you can modify
26944  the space between the columns.
26945  This is done by changing the length 
26946 \begin_inset Flex Code
26947 status collapsed
26948
26949 \begin_layout Plain Layout
26950
26951 \backslash
26952 columnsep
26953 \end_layout
26954
26955 \end_inset
26956
26957 .
26958  Its predefined value is 10
26959 \begin_inset space \thinspace{}
26960 \end_inset
26961
26962 pt.
26963  Here is an example where 
26964 \begin_inset Flex Code
26965 status collapsed
26966
26967 \begin_layout Plain Layout
26968
26969 \backslash
26970 columnsep
26971 \end_layout
26972
26973 \end_inset
26974
26975  is set to 3
26976 \begin_inset space \thinspace{}
26977 \end_inset
26978
26979 cm:
26980 \end_layout
26981
26982 \begin_layout Standard
26983 \begin_inset ERT
26984 status open
26985
26986 \begin_layout Plain Layout
26987
26988
26989 \backslash
26990 setlength{
26991 \backslash
26992 columnsep}{3cm}
26993 \end_layout
26994
26995 \end_inset
26996
26997
26998 \end_layout
26999
27000 \begin_layout Standard
27001 \begin_inset Flex Multiple Columns
27002 status open
27003
27004 \begin_layout Plain Layout
27005
27006 \size small
27007 My observations of No.
27008 \begin_inset space \space{}
27009 \end_inset
27010
27011 427 Park Lane did little to clear up the problem in which I was interested.
27012  The house was separated from the street by a low wall and railing, the
27013  whole not more than five feet high.
27014  It was perfectly easy, therefore, for anyone to get into the garden, but
27015  the window was entirely inaccessible, since there was no water pipe or
27016  anything which could help the most active man to climb it.
27017  More puzzled than ever, I retraced my steps to Kensington.
27018  I had not been in my study five minutes when the maid entered to say that
27019  a person desired to see me.
27020  To my astonishment it was none other than my strange old book collector,
27021  his sharp, wizened face peering out from a frame of white hair, and his
27022  precious volumes, a dozen of them at least, wedged under his right arm.
27023 \end_layout
27024
27025 \end_inset
27026
27027
27028 \end_layout
27029
27030 \begin_layout Standard
27031 \begin_inset ERT
27032 status collapsed
27033
27034 \begin_layout Plain Layout
27035
27036
27037 \backslash
27038 setlength{
27039 \backslash
27040 columnsep}{10pt}
27041 \end_layout
27042
27043 \end_inset
27044
27045
27046 \begin_inset Note Note
27047 status collapsed
27048
27049 \begin_layout Plain Layout
27050 go back to the default
27051 \end_layout
27052
27053 \end_inset
27054
27055
27056 \end_layout
27057
27058 \begin_layout Subsubsection
27059 Vertical Lines
27060 \end_layout
27061
27062 \begin_layout Standard
27063 Between the columns a rule with a width of the length 
27064 \begin_inset Flex Code
27065 status collapsed
27066
27067 \begin_layout Plain Layout
27068
27069 \backslash
27070 columnseprule
27071 \end_layout
27072
27073 \end_inset
27074
27075  is placed.
27076  If this rule width is set to 0
27077 \begin_inset space \thinspace{}
27078 \end_inset
27079
27080 pt (this is the default), the rule is suppressed.
27081  In the following example the rule is 2
27082 \begin_inset space \thinspace{}
27083 \end_inset
27084
27085 pt wide:
27086 \end_layout
27087
27088 \begin_layout Standard
27089 \begin_inset ERT
27090 status open
27091
27092 \begin_layout Plain Layout
27093
27094
27095 \backslash
27096 setlength{
27097 \backslash
27098 columnseprule}{2pt}
27099 \end_layout
27100
27101 \end_inset
27102
27103
27104 \end_layout
27105
27106 \begin_layout Standard
27107 \begin_inset Flex Multiple Columns
27108 status open
27109
27110 \begin_layout Plain Layout
27111
27112 \size small
27113 \begin_inset Quotes eld
27114 \end_inset
27115
27116 You're surprised to see me, sir,
27117 \begin_inset Quotes erd
27118 \end_inset
27119
27120  said he, in a strange, croaking voice.
27121 \end_layout
27122
27123 \begin_layout Plain Layout
27124
27125 \size small
27126 I acknowledged that I was.
27127 \end_layout
27128
27129 \begin_layout Plain Layout
27130
27131 \size small
27132 \begin_inset Quotes eld
27133 \end_inset
27134
27135 Well, I've a conscience, sir, and when I chanced to see you go into this
27136  house, as I came hobbling after you, I thought to myself, I'll just step
27137  in and see that kind gentleman, and tell him that if I was a bit gruff
27138  in my manner there was not any harm meant, and that I am much obliged to
27139  him for picking up my books.
27140 \begin_inset Quotes erd
27141 \end_inset
27142
27143
27144 \end_layout
27145
27146 \begin_layout Plain Layout
27147
27148 \size small
27149 \begin_inset Quotes eld
27150 \end_inset
27151
27152 You make too much of a trifle,
27153 \begin_inset Quotes erd
27154 \end_inset
27155
27156  said I.
27157  
27158 \begin_inset Quotes eld
27159 \end_inset
27160
27161 May I ask how you knew who I was?
27162 \begin_inset Quotes erd
27163 \end_inset
27164
27165
27166 \end_layout
27167
27168 \begin_layout Plain Layout
27169
27170 \size small
27171 \begin_inset Quotes eld
27172 \end_inset
27173
27174 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27175  you'll find my little bookshop at the corner of Church Street, and very
27176  happy to see you, I am sure.
27177  Maybe you collect yourself, sir.
27178  Here's 
27179 \noun on
27180 British
27181 \begin_inset space ~
27182 \end_inset
27183
27184 Birds
27185 \noun default
27186 , and 
27187 \noun on
27188 Catullus
27189 \noun default
27190 , and 
27191 \noun on
27192 The Holy War
27193 \noun default
27194
27195 \begin_inset space ~
27196 \end_inset
27197
27198 – a bargain, every one of them.
27199  With five volumes you could just fill that gap on that second shelf.
27200  It looks untidy, does it not, sir?
27201 \begin_inset Quotes erd
27202 \end_inset
27203
27204
27205 \end_layout
27206
27207 \end_inset
27208
27209
27210 \end_layout
27211
27212 \begin_layout Standard
27213 \begin_inset VSpace defskip
27214 \end_inset
27215
27216
27217 \end_layout
27218
27219 \begin_layout Standard
27220 The rule can be colored by redefining the command 
27221 \begin_inset Flex Code
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225
27226 \backslash
27227 columnseprulecolor
27228 \end_layout
27229
27230 \end_inset
27231
27232 .
27233  This is done by inserting the command
27234 \end_layout
27235
27236 \begin_layout LyX-Code
27237
27238 \backslash
27239 renewcommand{
27240 \backslash
27241 columnseprulecolor}{
27242 \backslash
27243 color{red}}
27244 \end_layout
27245
27246 \begin_layout Standard
27247 as \SpecialChar TeX
27248  Code before the multicolumn inset.
27249  Replace 
27250 \begin_inset Flex Code
27251 status collapsed
27252
27253 \begin_layout Plain Layout
27254 red
27255 \end_layout
27256
27257 \end_inset
27258
27259  in this command by a color of your choice.
27260  You can use all pre- and self-defined colors.
27261  See the 
27262 \emph on
27263 EmbeddedObjects
27264 \emph default
27265  manual, section 
27266 \emph on
27267 Colored
27268 \begin_inset space ~
27269 \end_inset
27270
27271 Tables
27272 \emph default
27273  for more information about pre- and self-defined colors.
27274  To go back to the default color insert the command
27275 \end_layout
27276
27277 \begin_layout LyX-Code
27278
27279 \backslash
27280 renewcommand{
27281 \backslash
27282 columnseprulecolor}{
27283 \backslash
27284 normalcolor}
27285 \end_layout
27286
27287 \begin_layout Standard
27288 Here is the example with a cyan rule and 1
27289 \begin_inset space \thinspace{}
27290 \end_inset
27291
27292 cm column separation:
27293 \end_layout
27294
27295 \begin_layout Standard
27296 \begin_inset ERT
27297 status open
27298
27299 \begin_layout Plain Layout
27300
27301
27302 \backslash
27303 setlength{
27304 \backslash
27305 columnsep}{1cm}
27306 \end_layout
27307
27308 \begin_layout Plain Layout
27309
27310
27311 \backslash
27312 renewcommand{
27313 \backslash
27314 columnseprulecolor}{
27315 \backslash
27316 color{cyan}}
27317 \end_layout
27318
27319 \end_inset
27320
27321
27322 \end_layout
27323
27324 \begin_layout Standard
27325 \begin_inset Flex Multiple Columns
27326 status open
27327
27328 \begin_layout Plain Layout
27329
27330 \size small
27331 \begin_inset Quotes eld
27332 \end_inset
27333
27334 You're surprised to see me, sir,
27335 \begin_inset Quotes erd
27336 \end_inset
27337
27338  said he, in a strange, croaking voice.
27339 \end_layout
27340
27341 \begin_layout Plain Layout
27342
27343 \size small
27344 I acknowledged that I was.
27345 \end_layout
27346
27347 \begin_layout Plain Layout
27348
27349 \size small
27350 \begin_inset Quotes eld
27351 \end_inset
27352
27353 Well, I've a conscience, sir, and when I chanced to see you go into this
27354  house, as I came hobbling after you, I thought to myself, I'll just step
27355  in and see that kind gentleman, and tell him that if I was a bit gruff
27356  in my manner there was not any harm meant, and that I am much obliged to
27357  him for picking up my books.
27358 \begin_inset Quotes erd
27359 \end_inset
27360
27361
27362 \end_layout
27363
27364 \begin_layout Plain Layout
27365
27366 \size small
27367 \begin_inset Quotes eld
27368 \end_inset
27369
27370 You make too much of a trifle,
27371 \begin_inset Quotes erd
27372 \end_inset
27373
27374  said I.
27375  
27376 \begin_inset Quotes eld
27377 \end_inset
27378
27379 May I ask how you knew who I was?
27380 \begin_inset Quotes erd
27381 \end_inset
27382
27383
27384 \end_layout
27385
27386 \begin_layout Plain Layout
27387
27388 \size small
27389 \begin_inset Quotes eld
27390 \end_inset
27391
27392 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27393  you'll find my little bookshop at the corner of Church Street, and very
27394  happy to see you, I am sure.
27395  Maybe you collect yourself, sir.
27396  Here's 
27397 \noun on
27398 British
27399 \begin_inset space ~
27400 \end_inset
27401
27402 Birds
27403 \noun default
27404 , and 
27405 \noun on
27406 Catullus
27407 \noun default
27408 , and 
27409 \noun on
27410 The Holy War
27411 \noun default
27412
27413 \begin_inset space ~
27414 \end_inset
27415
27416 – a bargain, every one of them.
27417  With five volumes you could just fill that gap on that second shelf.
27418  It looks untidy, does it not, sir?
27419 \begin_inset Quotes erd
27420 \end_inset
27421
27422
27423 \end_layout
27424
27425 \end_inset
27426
27427
27428 \end_layout
27429
27430 \begin_layout Standard
27431 \begin_inset ERT
27432 status collapsed
27433
27434 \begin_layout Plain Layout
27435
27436
27437 \backslash
27438 setlength{
27439 \backslash
27440 columnseprule}{0pt}
27441 \end_layout
27442
27443 \begin_layout Plain Layout
27444
27445
27446 \backslash
27447 renewcommand{
27448 \backslash
27449 columnseprulecolor}{
27450 \backslash
27451 normalcolor}
27452 \end_layout
27453
27454 \end_inset
27455
27456
27457 \begin_inset Note Note
27458 status collapsed
27459
27460 \begin_layout Plain Layout
27461 go back to the default
27462 \end_layout
27463
27464 \end_inset
27465
27466
27467 \end_layout
27468
27469 \begin_layout Section
27470 Non-standard Paragraph Shapes
27471 \end_layout
27472
27473 \begin_layout Standard
27474 \noindent
27475 \SpecialChar LaTeX
27476  as well as any other text processor uses by default rectangular paragraphs.
27477  For special cases like for example posters, invitation cards or poems you
27478  can modify the paragraph shape to one of your choice.
27479  This can be done by using the \SpecialChar LaTeX
27480 -package 
27481 \begin_inset Flex Code
27482 status collapsed
27483
27484 \begin_layout Plain Layout
27485 shapepar
27486 \end_layout
27487
27488 \end_inset
27489
27490  which is loaded by using in the document settings the module 
27491 \family sans
27492 Custom paragraph shapes
27493 \family default
27494 .
27495 \end_layout
27496
27497 \begin_layout Subsection
27498 Predefined shapes
27499 \end_layout
27500
27501 \begin_layout Standard
27502
27503 \series bold
27504 shapepar
27505 \series default
27506  provides the following shapes:
27507 \end_layout
27508
27509 \begin_layout Standard
27510 \begin_inset Tabular
27511 <lyxtabular version="3" rows="13" columns="3">
27512 <features booktabs="true" islongtable="true" longtabularalignment="center">
27513 <column alignment="left" valignment="middle" width="16col%">
27514 <column alignment="left" valignment="middle" width="40col%">
27515 <column alignment="left" valignment="middle" width="35col%">
27516 <row endhead="true">
27517 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27518 \begin_inset Text
27519
27520 \begin_layout Plain Layout
27521
27522 \series bold
27523 \size small
27524 Name
27525 \end_layout
27526
27527 \end_inset
27528 </cell>
27529 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27530 \begin_inset Text
27531
27532 \begin_layout Plain Layout
27533
27534 \series bold
27535 \size small
27536 Description
27537 \end_layout
27538
27539 \end_inset
27540 </cell>
27541 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27542 \begin_inset Text
27543
27544 \begin_layout Plain Layout
27545
27546 \series bold
27547 \size small
27548 Annotation
27549 \end_layout
27550
27551 \end_inset
27552 </cell>
27553 </row>
27554 <row interlinespace="default">
27555 <cell alignment="left" valignment="top" usebox="none">
27556 \begin_inset Text
27557
27558 \begin_layout Plain Layout
27559
27560 \size small
27561 CDlabel
27562 \end_layout
27563
27564 \end_inset
27565 </cell>
27566 <cell alignment="left" valignment="top" usebox="none">
27567 \begin_inset Text
27568
27569 \begin_layout Plain Layout
27570
27571 \size small
27572 Circle with circular hole (in the size of a CD/DVD)
27573 \end_layout
27574
27575 \end_inset
27576 </cell>
27577 <cell alignment="left" valignment="top" usebox="none">
27578 \begin_inset Text
27579
27580 \begin_layout Plain Layout
27581
27582 \size small
27583 Cannot be scaled, take care there is not too much text
27584 \end_layout
27585
27586 \end_inset
27587 </cell>
27588 </row>
27589 <row interlinespace="default">
27590 <cell alignment="left" valignment="top" usebox="none">
27591 \begin_inset Text
27592
27593 \begin_layout Plain Layout
27594
27595 \size small
27596 Circle
27597 \end_layout
27598
27599 \end_inset
27600 </cell>
27601 <cell alignment="left" valignment="top" usebox="none">
27602 \begin_inset Text
27603
27604 \begin_layout Plain Layout
27605
27606 \size small
27607 Circle
27608 \end_layout
27609
27610 \end_inset
27611 </cell>
27612 <cell alignment="left" valignment="top" usebox="none">
27613 \begin_inset Text
27614
27615 \begin_layout Plain Layout
27616
27617 \size small
27618 Fragile, calculation might fail
27619 \end_layout
27620
27621 \end_inset
27622 </cell>
27623 </row>
27624 <row interlinespace="default">
27625 <cell alignment="left" valignment="top" usebox="none">
27626 \begin_inset Text
27627
27628 \begin_layout Plain Layout
27629
27630 \size small
27631 Diamond
27632 \end_layout
27633
27634 \end_inset
27635 </cell>
27636 <cell alignment="left" valignment="top" usebox="none">
27637 \begin_inset Text
27638
27639 \begin_layout Plain Layout
27640
27641 \size small
27642 Rhomboid (symbolizing a 
27643 \begin_inset Quotes eld
27644 \end_inset
27645
27646 diamond
27647 \begin_inset Quotes erd
27648 \end_inset
27649
27650 )
27651 \end_layout
27652
27653 \end_inset
27654 </cell>
27655 <cell alignment="left" valignment="top" usebox="none">
27656 \begin_inset Text
27657
27658 \begin_layout Plain Layout
27659
27660 \size small
27661 -
27662 \end_layout
27663
27664 \end_inset
27665 </cell>
27666 </row>
27667 <row interlinespace="default">
27668 <cell alignment="left" valignment="top" usebox="none">
27669 \begin_inset Text
27670
27671 \begin_layout Plain Layout
27672
27673 \size small
27674 Heart
27675 \end_layout
27676
27677 \end_inset
27678 </cell>
27679 <cell alignment="left" valignment="top" usebox="none">
27680 \begin_inset Text
27681
27682 \begin_layout Plain Layout
27683
27684 \size small
27685 Heart-like shape
27686 \end_layout
27687
27688 \end_inset
27689 </cell>
27690 <cell alignment="left" valignment="top" usebox="none">
27691 \begin_inset Text
27692
27693 \begin_layout Plain Layout
27694
27695 \size small
27696 -
27697 \end_layout
27698
27699 \end_inset
27700 </cell>
27701 </row>
27702 <row interlinespace="default">
27703 <cell alignment="left" valignment="top" usebox="none">
27704 \begin_inset Text
27705
27706 \begin_layout Plain Layout
27707
27708 \size small
27709 Hexagon
27710 \end_layout
27711
27712 \end_inset
27713 </cell>
27714 <cell alignment="left" valignment="top" usebox="none">
27715 \begin_inset Text
27716
27717 \begin_layout Plain Layout
27718
27719 \size small
27720 Hexagon
27721 \end_layout
27722
27723 \end_inset
27724 </cell>
27725 <cell alignment="left" valignment="top" usebox="none">
27726 \begin_inset Text
27727
27728 \begin_layout Plain Layout
27729
27730 \size small
27731 -
27732 \end_layout
27733
27734 \end_inset
27735 </cell>
27736 </row>
27737 <row interlinespace="default">
27738 <cell alignment="left" valignment="top" usebox="none">
27739 \begin_inset Text
27740
27741 \begin_layout Plain Layout
27742
27743 \size small
27744 Nut
27745 \end_layout
27746
27747 \end_inset
27748 </cell>
27749 <cell alignment="left" valignment="top" usebox="none">
27750 \begin_inset Text
27751
27752 \begin_layout Plain Layout
27753
27754 \size small
27755 Nut for bolt (hexagon with circular hole)
27756 \end_layout
27757
27758 \end_inset
27759 </cell>
27760 <cell alignment="left" valignment="top" usebox="none">
27761 \begin_inset Text
27762
27763 \begin_layout Plain Layout
27764
27765 \size small
27766 -
27767 \end_layout
27768
27769 \end_inset
27770 </cell>
27771 </row>
27772 <row interlinespace="default">
27773 <cell alignment="left" valignment="top" usebox="none">
27774 \begin_inset Text
27775
27776 \begin_layout Plain Layout
27777
27778 \size small
27779 Square
27780 \end_layout
27781
27782 \end_inset
27783 </cell>
27784 <cell alignment="left" valignment="top" usebox="none">
27785 \begin_inset Text
27786
27787 \begin_layout Plain Layout
27788
27789 \size small
27790 Square
27791 \end_layout
27792
27793 \end_inset
27794 </cell>
27795 <cell alignment="left" valignment="top" usebox="none">
27796 \begin_inset Text
27797
27798 \begin_layout Plain Layout
27799
27800 \size small
27801 -
27802 \end_layout
27803
27804 \end_inset
27805 </cell>
27806 </row>
27807 <row interlinespace="default">
27808 <cell alignment="left" valignment="top" usebox="none">
27809 \begin_inset Text
27810
27811 \begin_layout Plain Layout
27812
27813 \size small
27814 Star
27815 \end_layout
27816
27817 \end_inset
27818 </cell>
27819 <cell alignment="left" valignment="top" usebox="none">
27820 \begin_inset Text
27821
27822 \begin_layout Plain Layout
27823
27824 \size small
27825 Five-point star
27826 \end_layout
27827
27828 \end_inset
27829 </cell>
27830 <cell alignment="left" valignment="top" usebox="none">
27831 \begin_inset Text
27832
27833 \begin_layout Plain Layout
27834
27835 \size small
27836 -
27837 \end_layout
27838
27839 \end_inset
27840 </cell>
27841 </row>
27842 <row interlinespace="default">
27843 <cell alignment="left" valignment="top" usebox="none">
27844 \begin_inset Text
27845
27846 \begin_layout Plain Layout
27847
27848 \size small
27849 Candle
27850 \end_layout
27851
27852 \end_inset
27853 </cell>
27854 <cell alignment="left" valignment="top" usebox="none">
27855 \begin_inset Text
27856
27857 \begin_layout Plain Layout
27858
27859 \size small
27860 Burning candle
27861 \end_layout
27862
27863 \end_inset
27864 </cell>
27865 <cell alignment="left" valignment="top" usebox="none">
27866 \begin_inset Text
27867
27868 \begin_layout Plain Layout
27869
27870 \size small
27871 -
27872 \end_layout
27873
27874 \end_inset
27875 </cell>
27876 </row>
27877 <row interlinespace="default">
27878 <cell alignment="left" valignment="top" usebox="none">
27879 \begin_inset Text
27880
27881 \begin_layout Plain Layout
27882
27883 \size small
27884 Drop down/up
27885 \end_layout
27886
27887 \end_inset
27888 </cell>
27889 <cell alignment="left" valignment="top" usebox="none">
27890 \begin_inset Text
27891
27892 \begin_layout Plain Layout
27893
27894 \size small
27895 Normal/reversed rain drop
27896 \end_layout
27897
27898 \end_inset
27899 </cell>
27900 <cell alignment="left" valignment="top" usebox="none">
27901 \begin_inset Text
27902
27903 \begin_layout Plain Layout
27904
27905 \size small
27906 Fragile, calculation might fail
27907 \end_layout
27908
27909 \end_inset
27910 </cell>
27911 </row>
27912 <row interlinespace="default">
27913 <cell alignment="left" valignment="top" usebox="none">
27914 \begin_inset Text
27915
27916 \begin_layout Plain Layout
27917
27918 \size small
27919 \SpecialChar TeX
27920
27921 \end_layout
27922
27923 \end_inset
27924 </cell>
27925 <cell alignment="left" valignment="top" usebox="none">
27926 \begin_inset Text
27927
27928 \begin_layout Plain Layout
27929
27930 \size small
27931 The \SpecialChar TeX
27932  logo
27933 \end_layout
27934
27935 \end_inset
27936 </cell>
27937 <cell alignment="left" valignment="top" usebox="none">
27938 \begin_inset Text
27939
27940 \begin_layout Plain Layout
27941
27942 \size small
27943 -
27944 \end_layout
27945
27946 \end_inset
27947 </cell>
27948 </row>
27949 <row interlinespace="default">
27950 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27951 \begin_inset Text
27952
27953 \begin_layout Plain Layout
27954
27955 \size small
27956 Triangle up/down/
27957 \begin_inset Newline newline
27958 \end_inset
27959
27960 left/right
27961 \end_layout
27962
27963 \end_inset
27964 </cell>
27965 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27966 \begin_inset Text
27967
27968 \begin_layout Plain Layout
27969
27970 \size small
27971 Triangles in different orientations
27972 \end_layout
27973
27974 \end_inset
27975 </cell>
27976 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27977 \begin_inset Text
27978
27979 \begin_layout Plain Layout
27980
27981 \size small
27982 -
27983 \end_layout
27984
27985 \end_inset
27986 </cell>
27987 </row>
27988 </lyxtabular>
27989
27990 \end_inset
27991
27992
27993 \end_layout
27994
27995 \begin_layout Standard
27996 To use a shape for your paragraph, simply select it in \SpecialChar LyX
27997 's pull-down box
27998  for environments in the toolbar.
27999 \end_layout
28000
28001 \begin_layout Standard
28002 \begin_inset Newpage newpage
28003 \end_inset
28004
28005
28006 \end_layout
28007
28008 \begin_layout Standard
28009 Here is an example paragraph in the shape of a nut:
28010 \end_layout
28011
28012 \begin_layout Standard
28013 \begin_inset VSpace bigskip
28014 \end_inset
28015
28016
28017 \end_layout
28018
28019 \begin_layout Nut
28020
28021 \lang latin
28022 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28023  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28024  voluptua.
28025  At vero eos et accusam et justo duo dolores et ea rebum.
28026  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28027  sit amet.
28028  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28029  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28030  voluptua.
28031 \end_layout
28032
28033 \begin_layout Standard
28034 \begin_inset VSpace bigskip
28035 \end_inset
28036
28037
28038 \end_layout
28039
28040 \begin_layout Standard
28041 \begin_inset Note Greyedout
28042 status open
28043
28044 \begin_layout Plain Layout
28045
28046 \series bold
28047 Note
28048 \series default
28049
28050 \family sans
28051 shapepar
28052 \family default
28053  paragraphs cannot run over a page break.
28054 \end_layout
28055
28056 \end_inset
28057
28058
28059 \end_layout
28060
28061 \begin_layout Standard
28062 \begin_inset VSpace bigskip
28063 \end_inset
28064
28065
28066 \end_layout
28067
28068 \begin_layout Standard
28069 The package 
28070 \begin_inset Flex Code
28071 status collapsed
28072
28073 \begin_layout Plain Layout
28074 shapepar
28075 \end_layout
28076
28077 \end_inset
28078
28079  takes care that the shape will always be preserved, no matter how much
28080  text is in the paragraph.
28081  Therefore the paragraph size changes with the amount of contained text.
28082  This can lead to paragraph sizes exceeding the page margins.
28083  To demonstrate the size scaling, here is the same example paragraph but
28084  with twice as much text:
28085 \end_layout
28086
28087 \begin_layout Standard
28088 \begin_inset Newpage newpage
28089 \end_inset
28090
28091
28092 \end_layout
28093
28094 \begin_layout Nut
28095
28096 \lang latin
28097 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28098  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28099  voluptua.
28100  At vero eos et accusam et justo duo dolores et ea rebum.
28101  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28102  sit amet.
28103  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28104  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28105  voluptua.
28106  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28107  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28108  voluptua.
28109  At vero eos et accusam et justo duo dolores et ea rebum.
28110  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28111  sit amet.
28112  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28113  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28114  voluptua.
28115 \end_layout
28116
28117 \begin_layout Standard
28118 \begin_inset VSpace bigskip
28119 \end_inset
28120
28121
28122 \end_layout
28123
28124 \begin_layout Standard
28125 An exception is the shape 
28126 \family sans
28127 CDlabel
28128 \family default
28129 .
28130  It cannot be scaled because it must fit the size of a CD/DVD.
28131  Therefore the amount of text that fits into the shape is limited.
28132 \begin_inset Newline newline
28133 \end_inset
28134
28135 The 
28136 \family sans
28137 drop
28138 \family default
28139  shapes and the 
28140 \family sans
28141 circle
28142 \family default
28143  shape are fragile, meaning that the calculation of their size can fail,
28144  depending on the amount of text.
28145  You will then get the \SpecialChar LaTeX
28146  error 
28147 \begin_inset Quotes eld
28148 \end_inset
28149
28150 Arithmetic overflow
28151 \begin_inset Quotes erd
28152 \end_inset
28153
28154 .
28155  In this case one can try to remove or add some text; if nothing works one
28156  has to use another shape.
28157 \end_layout
28158
28159 \begin_layout Standard
28160 \begin_inset VSpace bigskip
28161 \end_inset
28162
28163
28164 \end_layout
28165
28166 \begin_layout Standard
28167 For shapes with tips you will maybe see that \SpecialChar LaTeX
28168 's hyphenation routine fails
28169  for text in the tips.
28170  Therefore it is often necessary to add hyphenation points 
28171 \family sans
28172 (
28173 \begin_inset Info
28174 type  "shortcut"
28175 arg   "specialchar-insert hyphenation"
28176 \end_inset
28177
28178
28179 \family default
28180 ) to the corresponding text parts.
28181 \end_layout
28182
28183 \begin_layout Standard
28184 \begin_inset VSpace bigskip
28185 \end_inset
28186
28187
28188 \end_layout
28189
28190 \begin_layout Standard
28191 Shapepar paragraphs are either always centered or placed on the page so
28192  that their left border touches the left page margin.
28193  You can therefore not use the paragraph dialog to align such paragraphs.
28194  A solution is to put the paragraph into a minipage or parbox and align
28195  the box.
28196  The problem is hereby to find the right width for the box.
28197  Because if it is too wide and you center the box, the paragraph is not
28198  centered too because it sticks at the left side of the box.
28199  So you might have to play a bit with the width until it fits.
28200  Here are two heart-shaped paragraphs, the first one is not aligned, the
28201  second one is right-aligned:
28202 \end_layout
28203
28204 \begin_layout Standard
28205 \begin_inset Newpage newpage
28206 \end_inset
28207
28208
28209 \end_layout
28210
28211 \begin_layout Heart
28212 \noindent
28213
28214 \lang latin
28215 Lo\SpecialChar softhyphen
28216 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28217  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28218  voluptua.
28219  At vero eos et accusam et justo duo dolores et ea rebum.
28220  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28221  sit amet.
28222 \end_layout
28223
28224 \begin_layout Standard
28225 \begin_inset VSpace bigskip
28226 \end_inset
28227
28228
28229 \end_layout
28230
28231 \begin_layout Standard
28232 \noindent
28233 \align right
28234 \begin_inset Box Frameless
28235 position "t"
28236 hor_pos "c"
28237 has_inner_box 1
28238 inner_pos "t"
28239 use_parbox 1
28240 use_makebox 0
28241 width "42col%"
28242 special "none"
28243 height "1in"
28244 height_special "totalheight"
28245 thickness "0.4pt"
28246 separation "3pt"
28247 shadowsize "4pt"
28248 framecolor "black"
28249 backgroundcolor "none"
28250 status open
28251
28252 \begin_layout Heart
28253 \noindent
28254
28255 \lang latin
28256 Lo\SpecialChar softhyphen
28257 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28258  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28259  voluptua.
28260  At vero eos et accusam et justo duo dolores et ea rebum.
28261  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28262  sit amet.
28263 \end_layout
28264
28265 \end_inset
28266
28267
28268 \end_layout
28269
28270 \begin_layout Subsection
28271 Custom shapes
28272 \end_layout
28273
28274 \begin_layout Standard
28275 You can define any shape you want.
28276  Doing this manually is a lot of work because every coordinate must be specified.
28277  But there is a way to let the computer calculate the coordinates:
28278 \end_layout
28279
28280 \begin_layout Enumerate
28281 Install the program 
28282 \begin_inset CommandInset href
28283 LatexCommand href
28284 name "Jpgfdraw"
28285 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28286 literal "false"
28287
28288 \end_inset
28289
28290 .
28291 \end_layout
28292
28293 \begin_layout Enumerate
28294 In 
28295 \family sans
28296 Jpgfdraw
28297 \family default
28298  go to the menu 
28299 \family sans
28300 TeX/LaTeX\SpecialChar menuseparator
28301 Settings\SpecialChar menuseparator
28302 Set Normal Size
28303 \family default
28304  and select the font size you are using in your document.
28305  For example this document uses the size 12
28306 \begin_inset space \thinspace{}
28307 \end_inset
28308
28309 pt.
28310 \end_layout
28311
28312 \begin_layout Enumerate
28313 Draw a shape.
28314 \end_layout
28315
28316 \begin_layout Enumerate
28317 Use the menu 
28318 \family sans
28319 TeX/LaTeX\SpecialChar menuseparator
28320 Shapepar
28321 \family default
28322  to export the shape to coordinates.
28323  In the appearing dialog use either the outline of your shape for the coordinate
28324 s or the path itself.
28325 \begin_inset Foot
28326 status collapsed
28327
28328 \begin_layout Plain Layout
28329 For more information see 
28330 \begin_inset CommandInset href
28331 LatexCommand href
28332 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28333 literal "false"
28334
28335 \end_inset
28336
28337
28338 \end_layout
28339
28340 \end_inset
28341
28342
28343 \end_layout
28344
28345 \begin_layout Standard
28346 The coordinates are written into a \SpecialChar TeX
28347  file.
28348  To use it for your \SpecialChar LyX
28349  document
28350 \end_layout
28351
28352 \begin_layout Enumerate
28353 Place the cursor before the first character of your paragraph (or into a
28354  new empty one).
28355 \end_layout
28356
28357 \begin_layout Enumerate
28358 Open in \SpecialChar LyX
28359  the menu 
28360 \family sans
28361 Insert\SpecialChar menuseparator
28362 File\SpecialChar menuseparator
28363 Child
28364 \begin_inset space ~
28365 \end_inset
28366
28367 Document
28368 \family default
28369 , select the file and use 
28370 \family sans
28371 Input
28372 \family default
28373  as 
28374 \family sans
28375 Include Type.
28376 \end_layout
28377
28378 \begin_layout Standard
28379 \begin_inset VSpace defskip
28380 \end_inset
28381
28382
28383 \end_layout
28384
28385 \begin_layout Standard
28386 \begin_inset Note Greyedout
28387 status open
28388
28389 \begin_layout Plain Layout
28390
28391 \series bold
28392 Note
28393 \series default
28394 : The changed shape only applies to the current paragraph; everything is
28395  reset to normal for the next paragraph.
28396  Therefore the shape definition file must be input into every paragraph
28397  with the desired shape.
28398 \end_layout
28399
28400 \end_inset
28401
28402
28403 \end_layout
28404
28405 \begin_layout Standard
28406 \begin_inset VSpace bigskip
28407 \end_inset
28408
28409
28410 \end_layout
28411
28412 \begin_layout Standard
28413 Here is an example:
28414 \end_layout
28415
28416 \begin_layout Standard
28417 \begin_inset VSpace bigskip
28418 \end_inset
28419
28420
28421 \end_layout
28422
28423 \begin_layout Standard
28424 \begin_inset CommandInset include
28425 LatexCommand input
28426 filename "SpecialParagraphShape.tex"
28427 literal "true"
28428
28429 \end_inset
28430
28431
28432 \lang latin
28433 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28434  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28435  voluptua.
28436  At vero eos et accusam et justo duo dolores et ea rebum.
28437  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28438  sit amet.
28439  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28440  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28441  voluptua.
28442 \end_layout
28443
28444 \begin_layout Standard
28445 \begin_inset VSpace bigskip
28446 \end_inset
28447
28448
28449 \end_layout
28450
28451 \begin_layout Standard
28452
28453 \series bold
28454 A tip:
28455 \series default
28456  to draw complexer shapes in 
28457 \family sans
28458 Jpgfdraw
28459 \family default
28460  you can draw the shape in a program of your choice and import the resulting
28461  image to 
28462 \family sans
28463 Jpgfdraw
28464 \family default
28465 .
28466  Then you only need to draw a line or spline along the outline of the image.
28467 \end_layout
28468
28469 \begin_layout Standard
28470 \begin_inset VSpace bigskip
28471 \end_inset
28472
28473
28474 \end_layout
28475
28476 \begin_layout Standard
28477 The module 
28478 \family sans
28479 Custom paragraph shapes
28480 \family default
28481  also provides the two commands 
28482 \family sans
28483 shapepar
28484 \family default
28485  and 
28486 \family sans
28487 Shapepar
28488 \family default
28489  which can be used to define custom shapes coordinate by coordinate.
28490 \begin_inset Foot
28491 status collapsed
28492
28493 \begin_layout Plain Layout
28494 These commands are internally used for all shapes described here.
28495 \end_layout
28496
28497 \end_inset
28498
28499  For information how these styles are used and about further customization
28500  possibilities, have a look at the 
28501 \begin_inset CommandInset href
28502 LatexCommand href
28503 name "documentation"
28504 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28505 literal "false"
28506
28507 \end_inset
28508
28509  of the package 
28510 \begin_inset Flex Code
28511 status collapsed
28512
28513 \begin_layout Plain Layout
28514 shapepar
28515 \end_layout
28516
28517 \end_inset
28518
28519 .
28520 \end_layout
28521
28522 \end_body
28523 \end_document