]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move RevTeX 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 Subsection
4525
4526 \change_inserted 564990737 1670924924
4527 Polish M.
4528 \begin_inset space \thinspace{}
4529 \end_inset
4530
4531 W.
4532 \begin_inset space \space{}
4533 \end_inset
4534
4535 collection
4536 \change_deleted 564990737 1670924933
4537 Article (mwart), book (mwbk) and report (mwrep)
4538 \begin_inset Argument status
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542 The 
4543 \family typewriter
4544 mw
4545 \family default
4546  Classes
4547 \end_layout
4548
4549 \end_inset
4550
4551
4552 \change_unchanged
4553
4554 \end_layout
4555
4556 \begin_layout Standard
4557 by 
4558 \noun on
4559 Tomasz Luczak
4560 \end_layout
4561
4562 \begin_layout Standard
4563 The \SpecialChar LyX
4564  document classes 
4565 \emph on
4566 article (mwart)
4567 \emph default
4568
4569 \emph on
4570 report (mwrep)
4571 \emph default
4572  and 
4573 \emph on
4574 book
4575 \emph default
4576  
4577 \emph on
4578 (mwbk)
4579 \emph default
4580  correspond to the \SpecialChar LaTeX
4581  document classes 
4582 \family typewriter
4583 mwart.cls
4584 \family default
4585
4586 \family typewriter
4587 mwrep.cls
4588 \family default
4589  and 
4590 \family typewriter
4591 mwbk.cls
4592 \family default
4593 , resp.
4594  They are replacements for the standard document classes 
4595 \family typewriter
4596 article.cls
4597 \family default
4598
4599 \family typewriter
4600 report.cls
4601 \family default
4602  and 
4603 \family typewriter
4604 book.cls
4605 \family default
4606 , resp., and fit better to Polish typography conventions in a number of points.
4607  
4608 \end_layout
4609
4610 \begin_layout Standard
4611 Basic differences:
4612 \end_layout
4613
4614 \begin_layout Itemize
4615 Unnumbered titles (with star, e.
4616 \begin_inset space \thinspace{}
4617 \end_inset
4618
4619 g.
4620 \begin_inset space \space{}
4621 \end_inset
4622
4623
4624 \family sans
4625 Section*
4626 \family default
4627 ) are added into table of contents,
4628 \end_layout
4629
4630 \begin_layout Itemize
4631 Additional page styles:
4632 \end_layout
4633
4634 \begin_deeper
4635 \begin_layout Description
4636 uheadings header with separated lines,
4637 \end_layout
4638
4639 \begin_layout Description
4640 myheadings custom header, contents headers via commands: 
4641 \family typewriter
4642
4643 \backslash
4644 markright
4645 \family default
4646  and 
4647 \family typewriter
4648
4649 \backslash
4650 markboth
4651 \family default
4652 ,
4653 \end_layout
4654
4655 \begin_layout Description
4656 myuheadings custom header with separated lines,
4657 \end_layout
4658
4659 \begin_layout Description
4660 outer page number is placed on outer side of page
4661 \end_layout
4662
4663 \end_deeper
4664 \begin_layout Itemize
4665 Options 
4666 \end_layout
4667
4668 \begin_deeper
4669 \begin_layout Description
4670 rmheadings serif titles — default,
4671 \end_layout
4672
4673 \begin_layout Description
4674 sfheadings sansserif titles,
4675 \end_layout
4676
4677 \begin_layout Description
4678 authortitle on title page first placed is author next title — default,
4679 \end_layout
4680
4681 \begin_layout Description
4682 titleauthor on title page first placed is title next author,
4683 \end_layout
4684
4685 \begin_layout Description
4686 withmarginpar reserve place on page for margins.
4687 \end_layout
4688
4689 \end_deeper
4690 \begin_layout Section
4691
4692 \change_inserted 564990737 1670439534
4693 Articles
4694 \end_layout
4695
4696 \begin_layout Standard
4697
4698 \change_inserted 564990737 1670794710
4699 See also the document classes in the Collections (section
4700 \begin_inset space ~
4701 \end_inset
4702
4703
4704 \begin_inset CommandInset ref
4705 LatexCommand ref
4706 reference "sec:Collections"
4707
4708 \end_inset
4709
4710 ).
4711 \end_layout
4712
4713 \begin_layout Subsection
4714
4715 \change_inserted 564990737 1670794716
4716
4717 \lang american
4718 A&A Paper
4719 \end_layout
4720
4721 \begin_layout Standard
4722
4723 \change_inserted 564990737 1670794716
4724
4725 \lang american
4726 Original by 
4727 \noun on
4728 Peter Sütterlin
4729 \noun default
4730 ; updated by the \SpecialChar LyX
4731  Team
4732 \end_layout
4733
4734 \begin_layout Subsubsection
4735
4736 \change_inserted 564990737 1670794716
4737
4738 \lang american
4739 Introduction
4740 \end_layout
4741
4742 \begin_layout Standard
4743
4744 \change_inserted 564990737 1670794716
4745
4746 \lang american
4747 This section describes how \SpecialChar LyX
4748  can be used to write articles for submission
4749  to the scientific journal 
4750 \emph on
4751 Astronomy and Astrophysics
4752 \emph default
4753  (
4754 \begin_inset CommandInset href
4755 LatexCommand href
4756 name "aa-package"
4757 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4758 literal "false"
4759
4760 \end_inset
4761
4762 ) using Version 9.1 of the document class 
4763 \family typewriter
4764 aa.cls
4765 \family default
4766 ; information about it is available at 
4767 \begin_inset Flex URL
4768 status collapsed
4769
4770 \begin_layout Plain Layout
4771
4772 \change_inserted 564990737 1670794716
4773
4774 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4775 \change_unchanged
4776
4777 \end_layout
4778
4779 \end_inset
4780
4781 .
4782 \end_layout
4783
4784 \begin_layout Standard
4785
4786 \change_inserted 564990737 1670794716
4787
4788 \lang american
4789 A manual comes together with the package and should be consulted before
4790  installing this document class as described in the 
4791 \emph on
4792 Installing New Document Classe
4793 \emph default
4794 s section of the 
4795 \emph on
4796 Customization
4797 \emph default
4798  manual.
4799  
4800 \end_layout
4801
4802 \begin_layout Standard
4803
4804 \change_inserted 564990737 1670794716
4805
4806 \lang american
4807 \begin_inset Note Greyedout
4808 status open
4809
4810 \begin_layout Plain Layout
4811
4812 \change_inserted 564990737 1670794716
4813
4814 \lang american
4815 Please note that the publisher of the journal was changed from Springer
4816  to EDP Sciences starting January 1, 2001.
4817  That change also involved some slight changes to the style files, namely
4818  the removal of the thesaurus command.
4819  If you have an older version installed, please upgrade.
4820  For information about compatibility with the old (version 4) layout, please
4821  refer to the comments in 
4822 \family typewriter
4823 \SpecialChar LyX
4824 Dir/layouts/aapaper.layout
4825 \family default
4826 .
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \end_layout
4833
4834 \begin_layout Subsubsection
4835
4836 \change_inserted 564990737 1670794716
4837
4838 \lang american
4839 Getting started
4840 \end_layout
4841
4842 \begin_layout Standard
4843
4844 \change_inserted 564990737 1670794716
4845
4846 \lang american
4847 It is recommended you start from the template 
4848 \emph on
4849 aa.lyx
4850 \emph default
4851  in the menu 
4852 \family sans
4853 \bar under
4854 F
4855 \bar default
4856 ile\SpecialChar menuseparator
4857 New
4858 \begin_inset space ~
4859 \end_inset
4860
4861 fro
4862 \bar under
4863 m
4864 \bar default
4865
4866 \begin_inset space ~
4867 \end_inset
4868
4869 Template
4870 \family default
4871 .
4872  If you are not using the template, note the following settings:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876
4877 \change_inserted 564990737 1670794716
4878
4879 \lang american
4880 Select 
4881 \family sans
4882 article (A&A)
4883 \family default
4884  in the 
4885 \family sans
4886 \bar under
4887 D
4888 \bar default
4889 ocument\SpecialChar menuseparator
4890
4891 \bar under
4892 S
4893 \bar default
4894 ettings\SpecialChar menuseparator
4895 Document
4896 \begin_inset space ~
4897 \end_inset
4898
4899 Class
4900 \family default
4901  dialog (OK, that one was obvious).
4902 \end_layout
4903
4904 \begin_layout Itemize
4905
4906 \change_inserted 564990737 1670794716
4907
4908 \lang american
4909 Don't change the 
4910 \family sans
4911 Headings
4912 \begin_inset space ~
4913 \end_inset
4914
4915
4916 \bar under
4917 s
4918 \bar default
4919 tyle
4920 \family default
4921  in the 
4922 \family sans
4923 Page
4924 \begin_inset space ~
4925 \end_inset
4926
4927 Layout
4928 \family default
4929  dialog: leave it set to 
4930 \family sans
4931 Default
4932 \family default
4933 .
4934  The whole layout is done by the macros, you shouldn't change anything.
4935 \end_layout
4936
4937 \begin_layout Subsubsection
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \lang american
4942 The header block
4943 \end_layout
4944
4945 \begin_layout Standard
4946
4947 \change_inserted 564990737 1670794716
4948
4949 \lang american
4950 First thing to enter is the header information.
4951  It consists of five entries, of which one is optional.
4952  They are
4953 \end_layout
4954
4955 \begin_layout Itemize
4956
4957 \change_inserted 564990737 1670794716
4958
4959 \family sans
4960 \lang american
4961 Title
4962 \family default
4963 : [required] 
4964 \end_layout
4965
4966 \begin_layout Itemize
4967
4968 \change_inserted 564990737 1670794716
4969
4970 \family sans
4971 \lang american
4972 Subtitle
4973 \family default
4974 : [optional] 
4975 \end_layout
4976
4977 \begin_layout Itemize
4978
4979 \change_inserted 564990737 1670794716
4980
4981 \family sans
4982 \lang american
4983 Author
4984 \family default
4985 : [required]
4986 \end_layout
4987
4988 \begin_layout Itemize
4989
4990 \change_inserted 564990737 1670794716
4991
4992 \family typewriter
4993 \lang american
4994 Institute
4995 \family default
4996 : [required]
4997 \end_layout
4998
4999 \begin_layout Itemize
5000
5001 \change_inserted 564990737 1670794716
5002
5003 \family sans
5004 \lang american
5005 Date
5006 \family default
5007 : [required].
5008  Suggested format is 
5009 \family typewriter
5010 Received: <date>; Accepted <date> 
5011 \end_layout
5012
5013 \begin_layout Standard
5014
5015 \change_inserted 564990737 1670794716
5016
5017 \lang american
5018 Although the order of the single header entries doesn't matter it is advised
5019  to keep the above sequence, just to get the best optics and meets the layout
5020  of the real document.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_inserted 564990737 1670794716
5026
5027 \lang american
5028 If you want to place footnotes in the header block, e.
5029 \begin_inset space \thinspace{}
5030 \end_inset
5031
5032 g.
5033 \begin_inset space \space{}
5034 \end_inset
5035
5036 to state your present address, just use the standard footnote via the menu
5037  
5038 \family sans
5039 \bar under
5040 I
5041 \bar default
5042 nsert\SpecialChar menuseparator
5043
5044 \bar under
5045 F
5046 \bar default
5047 ootnote.
5048
5049 \family default
5050  \SpecialChar LyX
5051  will automagically use the term 
5052 \family typewriter
5053
5054 \backslash
5055 thanks{}
5056 \family default
5057  in that case.
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5066  commands that
5067  have no counterpart in \SpecialChar LyX
5068 :
5069 \end_layout
5070
5071 \begin_layout Itemize
5072
5073 \change_inserted 564990737 1670794716
5074
5075 \family typewriter
5076 \lang american
5077
5078 \backslash
5079 and
5080 \family default
5081  to separate different names for more than one author and institute, respectivel
5082 y.
5083 \end_layout
5084
5085 \begin_layout Itemize
5086
5087 \change_inserted 564990737 1670794716
5088
5089 \family typewriter
5090 \lang american
5091
5092 \backslash
5093 inst{<nr>}
5094 \family default
5095  to mark corresponding author/institute pairs.
5096  The institutes are numbered sequentially as they appear in the 
5097 \family sans
5098 Institute
5099 \family default
5100  field, so you have to put a marker to each author.
5101 \end_layout
5102
5103 \begin_layout Itemize
5104
5105 \change_inserted 564990737 1670794716
5106
5107 \family typewriter
5108 \lang american
5109
5110 \backslash
5111 email{address}
5112 \family default
5113  to supply an email address for fast contact.
5114 \end_layout
5115
5116 \begin_layout Standard
5117
5118 \change_inserted 564990737 1670794716
5119
5120 \lang american
5121 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5122  code in \SpecialChar LyX
5123 .
5124  See the examples in the template and in the file 
5125 \emph on
5126 aa_sample.lyx
5127 \emph default
5128  in the 
5129 \family sans
5130 Examples
5131 \family default
5132  directory.
5133  
5134 \end_layout
5135
5136 \begin_layout Subsubsection
5137
5138 \change_inserted 564990737 1670794716
5139
5140 \lang american
5141 The abstract
5142 \end_layout
5143
5144 \begin_layout Standard
5145
5146 \change_inserted 564990737 1670794716
5147
5148 \lang american
5149 The abstract should immediately follow the header block and must contain
5150  five tokens: 
5151 \family typewriter
5152
5153 \backslash
5154 abstract{}{}{}{}{}
5155 \family default
5156  
5157 \end_layout
5158
5159 \begin_layout Enumerate
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family typewriter
5164 \lang american
5165 context heading
5166 \family default
5167  (optional) {} leave it empty if necessary 
5168 \end_layout
5169
5170 \begin_layout Enumerate
5171
5172 \change_inserted 564990737 1670794716
5173
5174 \family typewriter
5175 \lang american
5176 aims heading
5177 \family default
5178  (mandatory) {} 
5179 \end_layout
5180
5181 \begin_layout Enumerate
5182
5183 \change_inserted 564990737 1670794716
5184
5185 \family typewriter
5186 \lang american
5187 methods heading
5188 \family default
5189  (mandatory) {} 
5190 \end_layout
5191
5192 \begin_layout Enumerate
5193
5194 \change_inserted 564990737 1670794716
5195
5196 \family typewriter
5197 \lang american
5198 results heading
5199 \family default
5200  (mandatory) {} 
5201 \end_layout
5202
5203 \begin_layout Enumerate
5204
5205 \change_inserted 564990737 1670794716
5206
5207 \family typewriter
5208 \lang american
5209 conclusions heading
5210 \family default
5211  (optional) {} leave it empty if necessary 
5212 \end_layout
5213
5214 \begin_layout Standard
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \lang american
5219 (NB.
5220  This structure not shown in 
5221 \emph on
5222 aa_sample.lyx.
5223 \emph default
5224 )
5225 \end_layout
5226
5227 \begin_layout Subsubsection
5228
5229 \change_inserted 564990737 1670794716
5230
5231 \lang american
5232 Supported environments
5233 \end_layout
5234
5235 \begin_layout Standard
5236
5237 \change_inserted 564990737 1670794716
5238
5239 \lang american
5240 The A&A paper layout supports the following environments for structuring
5241  your text:
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family sans
5249 \lang american
5250 Standard
5251 \end_layout
5252
5253 \begin_layout Itemize
5254
5255 \change_inserted 564990737 1670794716
5256
5257 \family sans
5258 \lang american
5259 Section
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Subsection
5269 \end_layout
5270
5271 \begin_layout Itemize
5272
5273 \change_inserted 564990737 1670794716
5274
5275 \family sans
5276 \lang american
5277 Subsubsection
5278 \end_layout
5279
5280 \begin_layout Itemize
5281
5282 \change_inserted 564990737 1670794716
5283
5284 \family sans
5285 \lang american
5286 Itemize
5287 \end_layout
5288
5289 \begin_layout Itemize
5290
5291 \change_inserted 564990737 1670794716
5292
5293 \family sans
5294 \lang american
5295 Enumerate
5296 \end_layout
5297
5298 \begin_layout Itemize
5299
5300 \change_inserted 564990737 1670794716
5301
5302 \family sans
5303 \lang american
5304 Description
5305 \end_layout
5306
5307 \begin_layout Itemize
5308
5309 \change_inserted 564990737 1670794716
5310
5311 \family sans
5312 \lang american
5313 Caption
5314 \end_layout
5315
5316 \begin_layout Itemize
5317
5318 \change_inserted 564990737 1670794716
5319
5320 \family sans
5321 \lang american
5322 Abstract
5323 \end_layout
5324
5325 \begin_layout Itemize
5326
5327 \change_inserted 564990737 1670794716
5328
5329 \family sans
5330 \lang american
5331 Acknowledgment
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family sans
5339 \lang american
5340 Bibliography
5341 \end_layout
5342
5343 \begin_layout Itemize
5344
5345 \change_inserted 564990737 1670794716
5346
5347 \family sans
5348 \lang american
5349 \SpecialChar LaTeX
5350
5351 \end_layout
5352
5353 \begin_layout Subsubsection
5354
5355 \change_inserted 564990737 1670794716
5356
5357 \lang american
5358 Commands not supported by \SpecialChar LyX
5359
5360 \end_layout
5361
5362 \begin_layout Standard
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \lang american
5367 Some commands are not yet supported by the 
5368 \family sans
5369 paper (A&A)
5370 \family default
5371  layout for \SpecialChar LyX
5372 .
5373  Some have already been mentioned.
5374  For the sake of completeness, they are listed all together here:
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \change_inserted 564990737 1670794716
5380
5381 \family typewriter
5382 \lang american
5383
5384 \backslash
5385 and
5386 \end_layout
5387
5388 \begin_layout Itemize
5389
5390 \change_inserted 564990737 1670794716
5391
5392 \family typewriter
5393 \lang american
5394
5395 \backslash
5396 email
5397 \end_layout
5398
5399 \begin_layout Itemize
5400
5401 \change_inserted 564990737 1670794716
5402
5403 \family typewriter
5404 \lang american
5405
5406 \backslash
5407 inst{}
5408 \end_layout
5409
5410 \begin_layout Itemize
5411
5412 \change_inserted 564990737 1670794716
5413
5414 \family typewriter
5415 \lang american
5416
5417 \backslash
5418 keywords{}
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \change_inserted 564990737 1670794716
5424
5425 \family typewriter
5426 \lang american
5427
5428 \backslash
5429 object{}
5430 \end_layout
5431
5432 \begin_layout Standard
5433
5434 \change_inserted 564990737 1670794716
5435
5436 \lang american
5437 If you want to use any of these commands, you have to enter them yourself.
5438  
5439 \family typewriter
5440 Do not forget to use
5441 \family sans
5442  
5443 \bar under
5444 I
5445 \bar default
5446 nsert\SpecialChar menuseparator
5447 \SpecialChar TeX
5448
5449 \begin_inset space ~
5450 \end_inset
5451
5452 Code
5453 \family default
5454 \series bold
5455 !
5456 \end_layout
5457
5458 \begin_layout Subsubsection
5459
5460 \change_inserted 564990737 1670794716
5461
5462 \lang american
5463 Figure and Table Floats
5464 \end_layout
5465
5466 \begin_layout Standard
5467
5468 \change_inserted 564990737 1670794716
5469
5470 \lang american
5471 \SpecialChar LyX
5472  provides support for the necessary float environments 
5473 \family sans
5474 figure, figure*, table
5475 \family default
5476  and 
5477 \family sans
5478 table*
5479 \family default
5480 , therefore we won't tell much about it here.
5481  Refer to the 
5482 \emph on
5483 User's
5484 \begin_inset space ~
5485 \end_inset
5486
5487 Guide
5488 \emph default
5489 .
5490  Just remember that tables should be left-aligned.
5491  For that, select the table and change the alignment in 
5492 \family sans
5493 \bar under
5494 E
5495 \bar default
5496 dit\SpecialChar menuseparator
5497
5498 \bar under
5499 P
5500 \bar default
5501 aragraph
5502 \begin_inset space ~
5503 \end_inset
5504
5505 Settings.
5506 \end_layout
5507
5508 \begin_layout Standard
5509
5510 \change_inserted 564990737 1670794716
5511
5512 \lang american
5513 There is only one special thing: the figures with a caption beside the figure.
5514  To create such a figure, you have to do the following:
5515 \end_layout
5516
5517 \begin_layout Enumerate
5518
5519 \change_inserted 564990737 1670794716
5520
5521 \lang american
5522 Create a wide figure float: 
5523 \family sans
5524 \bar under
5525 I
5526 \bar default
5527 nsert\SpecialChar menuseparator
5528 Flo
5529 \bar under
5530 a
5531 \bar default
5532 t\SpecialChar menuseparator
5533 Figure
5534 \family default
5535 , then, from within the float, use the menu 
5536 \family sans
5537 \bar under
5538 E
5539 \bar default
5540 dit\SpecialChar menuseparator
5541 Flo
5542 \bar under
5543 a
5544 \bar default
5545 t
5546 \begin_inset space ~
5547 \end_inset
5548
5549 Settings
5550 \family default
5551  and check 
5552 \family sans
5553 \bar under
5554 S
5555 \bar default
5556 pan
5557 \begin_inset space ~
5558 \end_inset
5559
5560 columns
5561 \family default
5562  in the 
5563 \family sans
5564 float
5565 \family default
5566  dialog.
5567 \end_layout
5568
5569 \begin_layout Enumerate
5570
5571 \change_inserted 564990737 1670794716
5572
5573 \lang american
5574 Enter your caption text.
5575 \end_layout
5576
5577 \begin_layout Enumerate
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \lang american
5582 Press 
5583 \family sans
5584 Return
5585 \family default
5586  to move the cursor above the caption.
5587 \end_layout
5588
5589 \begin_layout Enumerate
5590
5591 \change_inserted 564990737 1670794716
5592
5593 \lang american
5594 Insert your figure
5595 \end_layout
5596
5597 \begin_layout Enumerate
5598
5599 \change_inserted 564990737 1670794716
5600
5601 \lang american
5602 Position the cursor after the figure and insert a horizontal fill by using
5603  the menu: 
5604 \family sans
5605 \bar under
5606 I
5607 \bar default
5608 nsert\SpecialChar menuseparator
5609 F
5610 \bar under
5611 o
5612 \bar default
5613 rmatting\SpecialChar menuseparator
5614 H
5615 \bar under
5616 o
5617 \bar default
5618 rizontal
5619 \begin_inset space ~
5620 \end_inset
5621
5622 Space
5623 \family default
5624  to open the 
5625 \family sans
5626 space
5627 \family default
5628  dialog and select the 
5629 \family sans
5630 Horizontal fill
5631 \family default
5632  option from the 
5633 \family sans
5634 \bar under
5635 S
5636 \bar default
5637 pacing
5638 \family default
5639  pull-down menu.
5640 \end_layout
5641
5642 \begin_layout Enumerate
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \lang american
5647 Switch to \SpecialChar LaTeX
5648  mode: 
5649 \family sans
5650 M-c
5651 \begin_inset space ~
5652 \end_inset
5653
5654 t
5655 \family default
5656 .
5657 \end_layout
5658
5659 \begin_layout Enumerate
5660
5661 \change_inserted 564990737 1670794716
5662
5663 \lang american
5664 Enter 
5665 \family typewriter
5666
5667 \backslash
5668 parbox[b]{55mm}{
5669 \family default
5670  
5671 \emph on
5672 Do not close the brace!
5673 \end_layout
5674
5675 \begin_layout Enumerate
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \lang american
5680 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5681  mode and insert
5682  the closing brace: 
5683 \family sans
5684 M-c
5685 \begin_inset space ~
5686 \end_inset
5687
5688 t
5689 \family default
5690  
5691 \family typewriter
5692 }
5693 \family default
5694 .
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 Also, refer to the figures in the file 
5703 \emph on
5704 aa_sample.lyx
5705 \emph default
5706  in the 
5707 \family sans
5708 Examples
5709 \family default
5710  directory.
5711 \end_layout
5712
5713 \begin_layout Subsubsection
5714
5715 \change_inserted 564990737 1670794716
5716
5717 \lang american
5718 Referee layout
5719 \end_layout
5720
5721 \begin_layout Standard
5722
5723 \change_inserted 564990737 1670794716
5724
5725 \lang american
5726 For submission, the paper has to be formatted in a special double-spacing
5727  layout.
5728  For this purpose, you have to add the option 
5729 \family typewriter
5730 referee
5731 \family default
5732  to the 
5733 \family sans
5734 Cus
5735 \bar under
5736 t
5737 \bar default
5738 om Class
5739 \begin_inset space ~
5740 \end_inset
5741
5742 options
5743 \family default
5744  in the 
5745 \family sans
5746 \bar under
5747 D
5748 \bar default
5749 ocument\SpecialChar menuseparator
5750
5751 \bar under
5752 S
5753 \bar default
5754 ettings\SpecialChar menuseparator
5755 Document
5756 \begin_inset space ~
5757 \end_inset
5758
5759 Class
5760 \family default
5761  dialog.
5762  
5763 \end_layout
5764
5765 \begin_layout Subsubsection
5766
5767 \change_inserted 564990737 1670794716
5768
5769 \lang american
5770 The example paper
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 The example paper 
5779 \emph on
5780 aa_sample.lyx
5781 \emph default
5782  was written with \SpecialChar LyX
5783 .
5784  It is the example paper from the original macro package, 
5785 \family typewriter
5786 aa.dem
5787 \family default
5788  in the 
5789 \begin_inset CommandInset href
5790 LatexCommand href
5791 name "aa-package"
5792 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5793 literal "false"
5794
5795 \end_inset
5796
5797 , but translated to \SpecialChar LyX
5798  using the older unstructured abstract type.
5799  Use it for inspiration, and compare the \SpecialChar LaTeX
5800  code in 
5801 \family typewriter
5802 aa.dem
5803 \family default
5804  with the \SpecialChar LyX
5805  way of writing.
5806 \end_layout
5807
5808 \begin_layout Subsection
5809 AAS\SpecialChar TeX
5810
5811 \end_layout
5812
5813 \begin_layout Standard
5814 by 
5815 \noun on
5816 Mike Ressler
5817 \end_layout
5818
5819 \begin_layout Subsubsection
5820 Introduction
5821 \end_layout
5822
5823 \begin_layout Standard
5824 AAS\SpecialChar TeX
5825  is a set of macros produced by the American Astronomical Society to
5826  facilitate electronic manuscript submission to the three journals they
5827  publish: the Astrophysical Journal (including the Letters and Supplement),
5828  the Astronomical Journal, and the Publications of the Astronomical Society
5829  of the Pacific.
5830  \SpecialChar LyX
5831  has proven to be an excellent tool for generating these documents, especially
5832  given its equation, citation, and figure handling capabilities.
5833  \SpecialChar LyX
5834  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5835  is the version described here, or higher.
5836  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5837 2.09 and are fundamentally
5838  incompatible with \SpecialChar LyX
5839 .
5840  The AAS\SpecialChar TeX
5841  package may be downloaded from the AAS\SpecialChar TeX
5842  Web site
5843 \end_layout
5844
5845 \begin_layout Standard
5846 \begin_inset VSpace medskip
5847 \end_inset
5848
5849
5850 \end_layout
5851
5852 \begin_layout Standard
5853 \align center
5854 \begin_inset Flex URL
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858
5859 https://aas.org/aastex/aastex-downloads
5860 \end_layout
5861
5862 \end_inset
5863
5864
5865 \end_layout
5866
5867 \begin_layout Standard
5868 \begin_inset VSpace medskip
5869 \end_inset
5870
5871
5872 \end_layout
5873
5874 \begin_layout Standard
5875 A complete user guide is contained in that package and you should familiarize
5876  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5877 .
5878  \SpecialChar LyX
5879  will not reduce the need to figure out all the AAS\SpecialChar TeX
5880  commands, it will only
5881  reduce the drudgery of typing everything in.
5882  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5883  document conforms
5884  completely to the requirements of the journal to which you are submitting
5885  your paper.
5886 \end_layout
5887
5888 \begin_layout Subsubsection
5889 Starting a New Paper
5890 \end_layout
5891
5892 \begin_layout Standard
5893 I strongly suggest that you start with the AAS\SpecialChar TeX
5894  template file.
5895  Click on 
5896 \family sans
5897 File\SpecialChar menuseparator
5898 New from
5899 \family default
5900  
5901 \family sans
5902 Template
5903 \family default
5904 , enter the new file name, then choose the 
5905 \family typewriter
5906 aastex6.lyx
5907 \family default
5908  template.
5909  This will show the most common fields found in a manuscript.
5910  Simply overwrite the existing text (including the brackets, 
5911 \family typewriter
5912 <>
5913 \family default
5914 ) with the correct information.
5915  Many of the AAS\SpecialChar TeX
5916  commands and environments can be implemented directly in
5917  \SpecialChar LyX
5918 , but some cannot.
5919  For commands such as these, the \SpecialChar LaTeX
5920  code must be entered directly and marked
5921  as such.
5922  Such commands are referred to as \SpecialChar TeX
5923  code, or Evil Red Text.
5924  I tried to minimize the amount of \SpecialChar TeX
5925  code needed in an AAS\SpecialChar TeX
5926  document.
5927 \end_layout
5928
5929 \begin_layout Subsubsection
5930 Finishing Your Paper
5931 \end_layout
5932
5933 \begin_layout Standard
5934 When the paper is finished to your satisfaction and previews/prints correctly,
5935  there are a few 
5936 \begin_inset Quotes eld
5937 \end_inset
5938
5939 postprocessing
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  actions which need to be done before you submit it to the journals.
5944  
5945 \end_layout
5946
5947 \begin_layout Enumerate
5948 Export your paper as a \SpecialChar LaTeX
5949  file (
5950 \family sans
5951 File\SpecialChar menuseparator
5952 Export\SpecialChar menuseparator
5953 \SpecialChar LaTeX
5954
5955 \family default
5956 ).
5957  
5958 \end_layout
5959
5960 \begin_layout Enumerate
5961 Edit the resulting 
5962 \family typewriter
5963 .tex
5964 \family default
5965  file with your favorite text editor
5966 \end_layout
5967
5968 \begin_deeper
5969 \begin_layout Enumerate
5970 remove the comment lines before the 
5971 \family typewriter
5972
5973 \backslash
5974 documentclass
5975 \family default
5976  command
5977 \end_layout
5978
5979 \begin_layout Enumerate
5980 remove the 
5981 \family typewriter
5982
5983 \backslash
5984 usepackage...{fontenc}
5985 \family default
5986  line if it appears (usually just after 
5987 \family typewriter
5988
5989 \backslash
5990 documentclass
5991 \family default
5992 }; also remove the 
5993 \family typewriter
5994
5995 \backslash
5996 secnumdepth
5997 \family default
5998  line if it appears.
5999 \end_layout
6000
6001 \begin_layout Enumerate
6002 remove everything between (and including) the 
6003 \family typewriter
6004
6005 \backslash
6006 makeatletter
6007 \family default
6008  and 
6009 \family typewriter
6010
6011 \backslash
6012 makeatother
6013 \family default
6014  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6015  preamble
6016  (which should appear immediately after the 
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 User specified \SpecialChar LaTeX
6021  commands
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025  comment in the 
6026 \family typewriter
6027 .tex
6028 \family default
6029  file).
6030 \end_layout
6031
6032 \end_deeper
6033 \begin_layout Enumerate
6034 Run the resulting file through \SpecialChar LaTeX
6035  to make sure it still processes correctly.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 Reread the journal requirements to make sure your filenames and formats
6040  are correct.
6041 \end_layout
6042
6043 \begin_layout Enumerate
6044 Submit it.
6045 \end_layout
6046
6047 \begin_layout Subsubsection
6048 Comments On Specific Commands
6049 \end_layout
6050
6051 \begin_layout Standard
6052 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6053  commands: the
6054  AAS\SpecialChar TeX
6055  User Guide (
6056 \family typewriter
6057 aasguide.tex
6058 \family default
6059 ) gives a good description of each.
6060  Thus it's probably easiest for me to go down the list as found in the guide
6061  and offer comments where necessary.
6062  So let's begin \SpecialChar ldots
6063
6064 \end_layout
6065
6066 \begin_layout Paragraph
6067 Things that work as expected
6068 \end_layout
6069
6070 \begin_layout Standard
6071 Because they work as you might expect, I simply list them and the section
6072  they are found in: 
6073 \family typewriter
6074
6075 \backslash
6076 documentclass
6077 \family default
6078  (2.1.1), 
6079 \family typewriter
6080
6081 \backslash
6082 begin{document}
6083 \family default
6084  (2.2), 
6085 \family typewriter
6086
6087 \backslash
6088 title
6089 \family default
6090  (2.3), 
6091 \family typewriter
6092
6093 \backslash
6094 author
6095 \family default
6096  (2.3), 
6097 \family typewriter
6098
6099 \backslash
6100 affil
6101 \family default
6102  (2.3), 
6103 \family typewriter
6104
6105 \backslash
6106 abstract
6107 \family default
6108  (2.4), 
6109 \family typewriter
6110
6111 \backslash
6112 keywords
6113 \family default
6114  (2.5), 
6115 \family typewriter
6116
6117 \backslash
6118 section
6119 \family default
6120  (2.7), 
6121 \family typewriter
6122
6123 \backslash
6124 subsection
6125 \family default
6126  (2.7), 
6127 \family typewriter
6128
6129 \backslash
6130 subsubsection
6131 \family default
6132  (2.7), 
6133 \family typewriter
6134
6135 \backslash
6136 paragraph
6137 \family default
6138  (2.7), 
6139 \family typewriter
6140
6141 \backslash
6142 facility
6143 \family default
6144  (2.10), 
6145 \family typewriter
6146
6147 \backslash
6148 begin{displaymath}
6149 \family default
6150  (2.12), 
6151 \family typewriter
6152
6153 \backslash
6154 begin{equation}
6155 \family default
6156  (2.12), 
6157 \family typewriter
6158
6159 \backslash
6160 begin{eqnarray}
6161 \family default
6162  (2.12), 
6163 \family typewriter
6164
6165 \backslash
6166 begin{mathletters}
6167 \family default
6168  (2.12), 
6169 \family typewriter
6170
6171 \backslash
6172 begin{thebibliography}
6173 \family default
6174  (2.13.1), 
6175 \family typewriter
6176
6177 \backslash
6178 bibitem
6179 \family default
6180  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6181  graphicx figure commands (2.14.1), 
6182 \family typewriter
6183
6184 \backslash
6185 begin{table}
6186 \family default
6187  (2.15.4), 
6188 \family typewriter
6189
6190 \backslash
6191 begin{tabular}
6192 \family default
6193  (2.15.4), 
6194 \family typewriter
6195
6196 \backslash
6197 caption
6198 \family default
6199  (2.15.4), 
6200 \family typewriter
6201
6202 \backslash
6203 label
6204 \family default
6205  (2.15.4, amongst other places), 
6206 \family typewriter
6207
6208 \backslash
6209 tablerefs
6210 \family default
6211  (2.15.5), 
6212 \family typewriter
6213
6214 \backslash
6215 tablecomments
6216 \family default
6217  (2.15.5), 
6218 \family typewriter
6219
6220 \backslash
6221 url
6222 \family default
6223  (2.17.4), 
6224 \family typewriter
6225
6226 \backslash
6227 end{document}
6228 \family default
6229  (2.18).
6230 \end_layout
6231
6232 \begin_layout Standard
6233 The following style options also work correctly: 
6234 \family typewriter
6235 longabstract
6236 \family default
6237  (2.4), 
6238 \family typewriter
6239 preprint
6240 \family default
6241  (3.2.1), 
6242 \family typewriter
6243 preprint2
6244 \family default
6245  (3.2.2), 
6246 \family typewriter
6247 eqsecnum
6248 \family default
6249  (3.3), 
6250 \family typewriter
6251 flushrt
6252 \family default
6253  (3.4).
6254  Simply put them in the 
6255 \family sans
6256 Options
6257 \family default
6258  box in 
6259 \family sans
6260 Layout\SpecialChar menuseparator
6261 Document
6262 \family default
6263 .
6264 \end_layout
6265
6266 \begin_layout Paragraph
6267 Things that work, but require more comment
6268 \end_layout
6269
6270 \begin_layout Standard
6271 The following items work, but require a little more discussion:
6272 \end_layout
6273
6274 \begin_layout Itemize
6275 These items are reserved for use by the journal editors, but you can put
6276  them into the \SpecialChar LaTeX
6277  preamble if you feel compelled to do so: 
6278 \family typewriter
6279
6280 \backslash
6281 received
6282 \family default
6283
6284 \family typewriter
6285
6286 \backslash
6287 revised
6288 \family default
6289
6290 \family typewriter
6291
6292 \backslash
6293 accepted
6294 \family default
6295
6296 \family typewriter
6297
6298 \backslash
6299 ccc
6300 \family default
6301
6302 \family typewriter
6303
6304 \backslash
6305 cpright
6306 \family default
6307  (all from 2.1.3)
6308 \end_layout
6309
6310 \begin_layout Itemize
6311 These items may be placed in the \SpecialChar LaTeX
6312  preamble, and are included as blanks in
6313  the template file: 
6314 \family typewriter
6315
6316 \backslash
6317 slugcomment
6318 \family default
6319  (2.1.4), 
6320 \family typewriter
6321
6322 \backslash
6323 shorttitle
6324 \family default
6325  (2.1.5), 
6326 \family typewriter
6327
6328 \backslash
6329 shortauthors
6330 \family default
6331  (2.1.5)
6332 \end_layout
6333
6334 \begin_layout Itemize
6335
6336 \family typewriter
6337
6338 \backslash
6339 email
6340 \family default
6341  (2.3) – can only be used 
6342 \begin_inset Quotes eld
6343 \end_inset
6344
6345 standalone
6346 \begin_inset Quotes erd
6347 \end_inset
6348
6349 , not in the middle of a paragraph.
6350  Use \SpecialChar TeX
6351  code if you need to embed it.
6352 \end_layout
6353
6354 \begin_layout Itemize
6355
6356 \family typewriter
6357
6358 \backslash
6359 and
6360 \family default
6361  (2.3) – will have extra {} after it.
6362  This should not cause an error.
6363 \end_layout
6364
6365 \begin_layout Itemize
6366
6367 \family typewriter
6368
6369 \backslash
6370 notetoeditor
6371 \family default
6372  (2.6) – can only be used 
6373 \begin_inset Quotes eld
6374 \end_inset
6375
6376 standalone
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380 , not in the middle of a paragraph.
6381  Use \SpecialChar TeX
6382  code if you need to embed it.
6383 \end_layout
6384
6385 \begin_layout Itemize
6386
6387 \family typewriter
6388
6389 \backslash
6390 placetable
6391 \family default
6392  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6393  hand
6394 \end_layout
6395
6396 \begin_layout Itemize
6397
6398 \family typewriter
6399
6400 \backslash
6401 placefigure
6402 \family default
6403  (2.8) – same as for 
6404 \family typewriter
6405
6406 \backslash
6407 placetable
6408 \end_layout
6409
6410 \begin_layout Itemize
6411
6412 \family typewriter
6413
6414 \backslash
6415 acknowledgements
6416 \family default
6417  (2.9) – will have extra {} after it.
6418  This should not cause an error.
6419 \end_layout
6420
6421 \begin_layout Itemize
6422
6423 \family typewriter
6424
6425 \backslash
6426 appendix
6427 \family default
6428  (2.11) – will have extra {} after it.
6429  This should not cause an error.
6430 \end_layout
6431
6432 \begin_layout Itemize
6433
6434 \family typewriter
6435
6436 \backslash
6437 figcaption
6438 \family default
6439  (2.14.2) – you can insert an optional filename argument by placing the cursor
6440  at the beginning of the text and selecting 
6441 \family sans
6442 Insert\SpecialChar menuseparator
6443 Short Title
6444 \family default
6445 .
6446  
6447 \begin_inset Quotes eld
6448 \end_inset
6449
6450 Short Title
6451 \begin_inset Quotes erd
6452 \end_inset
6453
6454  inserts an optional argument of the type needed by 
6455 \family typewriter
6456
6457 \backslash
6458 figcaption
6459 \family default
6460 .
6461  Hopefully it will be renamed someday.
6462 \end_layout
6463
6464 \begin_layout Itemize
6465
6466 \family typewriter
6467
6468 \backslash
6469 objectname
6470 \family default
6471  (2.17.1) – same as 
6472 \family typewriter
6473
6474 \backslash
6475 figcaption
6476 \family default
6477  for the catalog ID optional parameter
6478 \end_layout
6479
6480 \begin_layout Itemize
6481
6482 \family typewriter
6483
6484 \backslash
6485 dataset
6486 \family default
6487  (2.17.1) – same as 
6488 \family typewriter
6489
6490 \backslash
6491 figcaption
6492 \family default
6493  for the catalog ID optional parameter
6494 \end_layout
6495
6496 \begin_layout Paragraph
6497 Things not implemented, use \SpecialChar TeX
6498  code
6499 \end_layout
6500
6501 \begin_layout Standard
6502
6503 \family typewriter
6504
6505 \backslash
6506 eqnum
6507 \family default
6508  (2.12), 
6509 \family typewriter
6510
6511 \backslash
6512 setcounter{equation}
6513 \family default
6514  (2.12), Journal name abbreviations (2.13.4), 
6515 \family typewriter
6516
6517 \backslash
6518 figurenum
6519 \family default
6520  (2.14.1), 
6521 \family typewriter
6522
6523 \backslash
6524 epsscale
6525 \family default
6526  (2.14.1), 
6527 \family typewriter
6528
6529 \backslash
6530 plotone
6531 \family default
6532  (2.14.1), 
6533 \family typewriter
6534
6535 \backslash
6536 plottwo
6537 \family default
6538  (2.14.1), 
6539 \family typewriter
6540
6541 \backslash
6542 tablenum
6543 \family default
6544  (2.15.4), 
6545 \family typewriter
6546
6547 \backslash
6548 tableline
6549 \family default
6550  (2.15.4, insert it as the first element in the lefthand cell after where
6551  you want it.
6552  Don't use any of \SpecialChar LyX
6553 's rules in the table), 
6554 \family typewriter
6555
6556 \backslash
6557 tablenotemark
6558 \family default
6559  (2.15.5), 
6560 \family typewriter
6561
6562 \backslash
6563 tablenotetext
6564 \family default
6565  (2.15.5), much of Misc (2.17, except 
6566 \family typewriter
6567
6568 \backslash
6569 objectname
6570 \family default
6571
6572 \family typewriter
6573
6574 \backslash
6575 dataset
6576 \family default
6577
6578 \family typewriter
6579
6580 \backslash
6581 url
6582 \family default
6583 , and 
6584 \family typewriter
6585
6586 \backslash
6587 email
6588 \family default
6589 ; see above), 
6590 \family typewriter
6591
6592 \backslash
6593 singlespace
6594 \family default
6595  (3.1), 
6596 \family typewriter
6597
6598 \backslash
6599 doublespace
6600 \family default
6601  (3.1), 
6602 \family typewriter
6603
6604 \backslash
6605 onecolumn
6606 \family default
6607  (3.2), 
6608 \family typewriter
6609
6610 \backslash
6611 twocolumn
6612 \family default
6613  (3.2)
6614 \end_layout
6615
6616 \begin_layout Paragraph
6617 Things that cannot be implemented
6618 \end_layout
6619
6620 \begin_layout Standard
6621 \SpecialChar ldots
6622  at least in any meaningful sort of way, so I suggest ignoring them.
6623  They are the references environment (2.13.3), and the deluxetable environment
6624  (2.15).
6625  If you really, really need to use deluxetable, I suggest editing it in
6626  a separate file with a text editor, then using 
6627 \family sans
6628 Insert\SpecialChar menuseparator
6629 Child
6630 \begin_inset space ~
6631 \end_inset
6632
6633 Document
6634 \family default
6635  to include it in your \SpecialChar LyX
6636  document.
6637  See the 
6638 \family typewriter
6639 aas_sample.lyx
6640 \family default
6641  file to see an example of this.
6642 \end_layout
6643
6644 \begin_layout Subsubsection
6645 FAQs, Tips, Tricks, and Other Ruminations
6646 \end_layout
6647
6648 \begin_layout Paragraph
6649 Getting \SpecialChar LyX
6650  and AAS\SpecialChar TeX
6651  to cooperate
6652 \end_layout
6653
6654 \begin_layout Standard
6655 It can be a bit tricky to get \SpecialChar LyX
6656  to recognize a new layout and document class.
6657  When all else fails, do this:
6658 \end_layout
6659
6660 \begin_layout Enumerate
6661 Make certain that \SpecialChar LaTeX
6662  can find AAS\SpecialChar TeX
6663 .
6664  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6665  distribution into a
6666  directory completely unrelated to \SpecialChar LaTeX
6667  or AAS\SpecialChar TeX
6668  and run \SpecialChar LaTeX
6669  on 
6670 \family typewriter
6671 sample.tex
6672 \family default
6673 .
6674 \end_layout
6675
6676 \begin_layout Enumerate
6677 Make certain that 
6678 \family typewriter
6679 aastex.layout
6680 \family default
6681  appears in \SpecialChar LyX
6682 's 
6683 \family typewriter
6684 layouts
6685 \family default
6686  folder
6687 \end_layout
6688
6689 \begin_layout Enumerate
6690 Rerun 
6691 \family sans
6692 Tools\SpecialChar menuseparator
6693 Reconfigure
6694 \family default
6695  in \SpecialChar LyX
6696 , then restart \SpecialChar LyX
6697 .
6698 \end_layout
6699
6700 \begin_layout Enumerate
6701 Open a regular new file, not from a template.
6702  Does AAS\SpecialChar TeX
6703  appear in the class list in 
6704 \family sans
6705 Document\SpecialChar menuseparator
6706 Settings
6707 \family default
6708 ?
6709 \end_layout
6710
6711 \begin_layout Standard
6712 If you get a warning from an existing AAS\SpecialChar TeX
6713  document about not being able
6714  to find the AAS\SpecialChar TeX
6715  layout or a message about 
6716 \begin_inset Quotes eld
6717 \end_inset
6718
6719 You should not mix title layouts with normal ones
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723 , things haven't been installed correctly.
6724 \end_layout
6725
6726 \begin_layout Paragraph
6727 \SpecialChar LaTeX
6728  error processing a table 
6729 \end_layout
6730
6731 \begin_layout Standard
6732 \SpecialChar LyX
6733 , by default, attempts to center the table caption/title.
6734  This seems to produce a bad interaction in AAS\SpecialChar TeX
6735  so you should click somewhere
6736  in the caption/title, then select 
6737 \family sans
6738 Edit\SpecialChar menuseparator
6739 Paragraph
6740 \begin_inset space ~
6741 \end_inset
6742
6743 Settings
6744 \family default
6745 , then set the 
6746 \family sans
6747 Alignment
6748 \family default
6749  to 
6750 \family sans
6751 Block
6752 \family default
6753 .
6754  This took care of it for me.
6755 \end_layout
6756
6757 \begin_layout Paragraph
6758 References
6759 \end_layout
6760
6761 \begin_layout Standard
6762 A couple of things: 1) I have noticed some funny spacing in the reference
6763  entries in the text.
6764  When you enter the bibliography item data, make sure their is 
6765 \emph on
6766 no
6767 \emph default
6768  space between the last author and the parenthesis setting off the year;
6769  
6770 \emph on
6771 e.
6772 \begin_inset space \thinspace{}
6773 \end_inset
6774
6775 g.
6776 \begin_inset space \space{}
6777 \end_inset
6778
6779
6780 \emph default
6781 type 
6782 \family typewriter
6783 Ressler(1992)
6784 \family default
6785 , not 
6786 \family typewriter
6787 Ressler (1992)
6788 \family default
6789 .
6790  2) Entering the references at all is not obvious.
6791  The easiest thing is to start typing your first reference at the end of
6792  the document, then mark it as type 
6793 \family sans
6794 References
6795 \family default
6796 .
6797  That will put a small gray box in front of what you just typed.
6798  Click on the box to fill in the rest of the information.
6799  For new references, go to the end of an existing reference and press return.
6800  That will create a new line with its own box, etc.
6801 \end_layout
6802
6803 \begin_layout Paragraph
6804 Including EPS files
6805 \end_layout
6806
6807 \begin_layout Standard
6808 Even though AAS\SpecialChar TeX
6809  provides its own figure commands (
6810 \family typewriter
6811
6812 \backslash
6813 plotone
6814 \family default
6815 , for example), I much prefer \SpecialChar LaTeX
6816 's standard figure commands (with the default
6817  graphicx).
6818  You can insert the 
6819 \family typewriter
6820
6821 \backslash
6822 plotone
6823 \family default
6824 , etc.
6825 \begin_inset space ~
6826 \end_inset
6827
6828 commands as \SpecialChar TeX
6829  code into a Figure Float box if you desire, but I never have
6830  much luck getting the layout right.
6831  With the standard graphics, \SpecialChar LyX
6832  will insert a 
6833 \family typewriter
6834
6835 \backslash
6836 usepackage{graphicx}
6837 \family default
6838  command into the \SpecialChar LaTeX
6839  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6840  way,
6841  interspersing the figures in the text.
6842  I believe ApJ accepts figures exactly this way now; AJ might still use
6843  the 
6844 \begin_inset Quotes eld
6845 \end_inset
6846
6847 stack everything at the end
6848 \begin_inset Quotes erd
6849 \end_inset
6850
6851  technique.
6852 \end_layout
6853
6854 \begin_layout Paragraph
6855 Things I could have done, but didn't
6856 \end_layout
6857
6858 \begin_layout Standard
6859 There are a few 
6860 \begin_inset Quotes eld
6861 \end_inset
6862
6863 pretty
6864 \begin_inset Quotes erd
6865 \end_inset
6866
6867  things I could have implemented, but chose not to.
6868  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6869  window,
6870  even though it is double-spaced in the paper manuscript.
6871  Also, I chose not to make separate layouts for the preprint and preprint2
6872  styles.
6873  Since I assume you will spend most of your time in the plain manuscript
6874  mode anyway, I decided not to chew up more disk space with this.
6875  
6876 \end_layout
6877
6878 \begin_layout Subsubsection
6879 Final Caveat
6880 \end_layout
6881
6882 \begin_layout Standard
6883 Your mileage may vary.
6884  I've now had papers published by both ApJ and AJ that have had 98% of the
6885  effort done in \SpecialChar LyX
6886 ; the last 2% was the \SpecialChar LaTeX
6887  post-processing and a few cleanups.
6888  I have had no trouble with the submission process, and I'm sure the journals
6889  were never aware that there might be a difference.
6890  So, go forth and publish!
6891 \end_layout
6892
6893 \begin_layout Subsection
6894 Rev\SpecialChar TeX
6895 4
6896 \end_layout
6897
6898 \begin_layout Standard
6899 by 
6900 \noun on
6901 Amir Karger
6902 \end_layout
6903
6904 \begin_layout Standard
6905 \begin_inset VSpace bigskip
6906 \end_inset
6907
6908
6909 \end_layout
6910
6911 \begin_layout Standard
6912 \noindent
6913 The 
6914 \family sans
6915 Revtex
6916 \begin_inset space ~
6917 \end_inset
6918
6919 4
6920 \family default
6921  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
6922  4.0 (the 
6923 \begin_inset Formula $\beta$
6924 \end_inset
6925
6926  release of May, 1999) class.
6927 \end_layout
6928
6929 \begin_layout Standard
6930 \SpecialChar LyX
6931  has a 
6932 \family sans
6933 Revtex
6934 \family default
6935  textclass, which works with Rev\SpecialChar TeX
6936  3.1.
6937  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
6938  2.09.
6939  That means that it doesn't interact very well with \SpecialChar LyX
6940 , which requires \SpecialChar LaTeX2e
6941 , although
6942  it has been kludged to work.
6943  Since Rev\SpecialChar TeX
6944  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
6945 , \SpecialChar LyX
6946  with the
6947  
6948 \family sans
6949 Rev\SpecialChar TeX
6950
6951 \begin_inset space ~
6952 \end_inset
6953
6954 4
6955 \family default
6956  textclass should also be pretty easy to use.
6957 \end_layout
6958
6959 \begin_layout Standard
6960 These documents are supposed to be used in 
6961 \emph on
6962 addition
6963 \emph default
6964  to the Rev\SpecialChar TeX
6965  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
6966  macros,
6967  and assume you'll know what to put in the preamble if necessary.
6968 \end_layout
6969
6970 \begin_layout Section
6971
6972 \change_inserted 564990737 1670439560
6973 Books
6974 \end_layout
6975
6976 \begin_layout Standard
6977
6978 \change_inserted 564990737 1670439581
6979 See also the document classes in the Collections (section
6980 \begin_inset space ~
6981 \end_inset
6982
6983
6984 \begin_inset CommandInset ref
6985 LatexCommand ref
6986 reference "sec:Collections"
6987
6988 \end_inset
6989
6990 ).
6991 \end_layout
6992
6993 \begin_layout Subsection
6994 Memoir
6995 \end_layout
6996
6997 \begin_layout Standard
6998 By 
6999 \noun on
7000 Jürgen Spitzmüller
7001 \end_layout
7002
7003 \begin_layout Subsubsection
7004 Overview
7005 \end_layout
7006
7007 \begin_layout Standard
7008 Memoir is a very powerful and constantly evolving class.
7009  It has been designed with regard to fictional and non-fictional literature.
7010  Its aim is to let the user have maximum control over the typesetting of
7011  his document.
7012  Memoir is based on the standard book class, but it can also emulate the
7013  article class (see below).
7014 \end_layout
7015
7016 \begin_layout Standard
7017 Peter Wilson, the developer of Memoir, is known as the author of lots of
7018  useful packages in the \SpecialChar LaTeX
7019  world.
7020  Most of them have been merged with Memoir.
7021  Therefore, it is much easier to layout the table of contents, appendices,
7022  chapter designs and such.
7023  \SpecialChar LyX
7024 , though, does not support all of these goodies natively.
7025  Some of them might be added to forthcoming releases
7026 \begin_inset Foot
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 You are invited to send suggestions to 
7031 \begin_inset Flex URL
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035
7036 lyx-devel@lists.lyx.org
7037 \end_layout
7038
7039 \end_inset
7040
7041 .
7042 \end_layout
7043
7044 \end_inset
7045
7046 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7047 's framework.
7048  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7049
7050  commands (\SpecialChar TeX
7051  code
7052 \begin_inset Foot
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 Cf.
7057 \begin_inset ERT
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061
7062
7063 \backslash
7064  
7065 \end_layout
7066
7067 \end_inset
7068
7069 section
7070 \begin_inset space ~
7071 \end_inset
7072
7073
7074 \begin_inset CommandInset ref
7075 LatexCommand ref
7076 reference "sec:Inserting-TeX-Code"
7077
7078 \end_inset
7079
7080  for details.
7081 \end_layout
7082
7083 \end_inset
7084
7085 ).
7086  In this section, we can only list those features that are natively supported
7087  by \SpecialChar LyX
7088 .
7089  For detailed descriptions (and for the rest of features) we recommend you
7090  have a look at the detailed manual of the Memoir class
7091 \begin_inset Foot
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 Cf.
7096 \begin_inset ERT
7097 status collapsed
7098
7099 \begin_layout Plain Layout
7100
7101
7102 \backslash
7103  
7104 \end_layout
7105
7106 \end_inset
7107
7108
7109 \begin_inset Flex URL
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113
7114 CTAN:/macros/latex/memoir/memman.pdf
7115 \end_layout
7116
7117 \end_inset
7118
7119 .
7120 \end_layout
7121
7122 \end_inset
7123
7124 , which is not only a user guide for the class, but also both a comprehensive
7125  description on good typesetting and a superb example for good typesetting
7126  itself.
7127 \end_layout
7128
7129 \begin_layout Subsubsection
7130 Basic features and restrictions
7131 \end_layout
7132
7133 \begin_layout Standard
7134 Memoir supports basically all features of the standard book classes.
7135  There are, however, some differences, as follows:
7136 \end_layout
7137
7138 \begin_layout Description
7139 Font
7140 \begin_inset space ~
7141 \end_inset
7142
7143 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7144 \end_layout
7145
7146 \begin_layout Description
7147 Page
7148 \begin_inset space ~
7149 \end_inset
7150
7151 style: The fancy page style is not supported, due to a command clash between
7152  Memoir and the fancyhdr package (they both define a command with the same
7153  name, which confuses \SpecialChar LaTeX
7154 ).
7155  Instead, Memoir comes with a number of its own page styles (see 
7156 \family sans
7157 Document\SpecialChar menuseparator
7158 Settings\SpecialChar menuseparator
7159 Page
7160 \begin_inset space ~
7161 \end_inset
7162
7163 Style
7164 \family default
7165 ).
7166  If you want to use these for the chapter pages, you have to use the command
7167  
7168 \family typewriter
7169
7170 \backslash
7171 chapterstyle
7172 \family default
7173  in the main text or in preamble (e.
7174 \begin_inset space \thinspace{}
7175 \end_inset
7176
7177 g.
7178 \begin_inset space \space{}
7179 \end_inset
7180
7181
7182 \family typewriter
7183
7184 \backslash
7185 chapterstyle{companion}
7186 \family default
7187 ).
7188 \end_layout
7189
7190 \begin_layout Description
7191 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7192  optional argument in the standard classes.
7193  With this, you can specify an alternative version of the title for the
7194  table of contents and the headers (for instance, if the title is too long).
7195  In \SpecialChar LyX
7196 , you can do this via 
7197 \family sans
7198 Insert\SpecialChar menuseparator
7199 Short
7200 \begin_inset space ~
7201 \end_inset
7202
7203 Title
7204 \family default
7205  at the beginning of a chapter/section.
7206  Memoir features a second optional argument and thus separates the table
7207  of contents from the header.
7208  You can define three variants of a title with this: one for the main text,
7209  one for the table of contents, and one for the headers.
7210  \SpecialChar LyX
7211  makes these available in form of specific 
7212 \family sans
7213 Short Title
7214 \family default
7215  variants in the 
7216 \family sans
7217 Insert
7218 \family default
7219  menu.
7220 \end_layout
7221
7222 \begin_layout Description
7223 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7224  of contents, the list of figures and the list of table start a new page
7225  automatically.
7226  Memoir does not follow this route.
7227  You have to insert a page break yourself, if you want to have one.
7228 \end_layout
7229
7230 \begin_layout Description
7231 Titlepage: For some unknown reason, Memoir uses pagination on the title
7232  page (in the standard classes, title pages are 
7233 \begin_inset Quotes eld
7234 \end_inset
7235
7236 empty
7237 \begin_inset Quotes erd
7238 \end_inset
7239
7240 ).
7241  If you want an empty title page, type 
7242 \family typewriter
7243
7244 \backslash
7245 aliaspagestyle{title}{empty}
7246 \family default
7247  in the preamble.
7248 \end_layout
7249
7250 \begin_layout Description
7251 Article: With the class option 
7252 \emph on
7253 article
7254 \emph default
7255  (to be inserted in 
7256 \family sans
7257 Document\SpecialChar menuseparator
7258 Settings\SpecialChar menuseparator
7259 Class Settings\SpecialChar menuseparator
7260 Custom
7261 \begin_inset space ~
7262 \end_inset
7263
7264 Options
7265 \family default
7266 ), you can emulate article style.
7267  That is, counters (footnotes, figures, tables etc.) will not be reset on
7268  new chapters, chapters don't start a new page (but are—in contrary to 
7269 \begin_inset Quotes eld
7270 \end_inset
7271
7272 real
7273 \begin_inset Quotes erd
7274 \end_inset
7275
7276  article classes—still allowed), parts, though, use their own page, as in
7277  book.
7278 \end_layout
7279
7280 \begin_layout Description
7281 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7282  font commands, which have been used in the old \SpecialChar LaTeX
7283  version 2.09 (e.
7284 \begin_inset space \thinspace{}
7285 \end_inset
7286
7287 g.
7288 \begin_inset space \space{}
7289 \end_inset
7290
7291
7292 \family typewriter
7293
7294 \backslash
7295 rm
7296 \family default
7297
7298 \family typewriter
7299
7300 \backslash
7301 it
7302 \family default
7303 ).
7304  It produces an error and stops \SpecialChar LaTeX
7305  whenever such a command appears.
7306  The class option 
7307 \emph on
7308 oldfontcommands
7309 \emph default
7310  reallows the commands and spits out warnings instead (which does at least
7311  not stop \SpecialChar LaTeX
7312 ).
7313  Since a lot of packages and particularly Bib\SpecialChar TeX
7314  style files are still using
7315  those commands, we have decided to use this option by default.
7316 \end_layout
7317
7318 \begin_layout Subsubsection
7319 Extra features
7320 \end_layout
7321
7322 \begin_layout Standard
7323 We will only describe the features supported by \SpecialChar LyX
7324  (which is not much currently).
7325  Please consult the Memoir manual
7326 \begin_inset Foot
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 Cf.
7331 \begin_inset ERT
7332 status collapsed
7333
7334 \begin_layout Plain Layout
7335
7336
7337 \backslash
7338  
7339 \end_layout
7340
7341 \end_inset
7342
7343
7344 \begin_inset Flex URL
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348
7349 CTAN:/macros/latex/memoir/memman.pdf
7350 \end_layout
7351
7352 \end_inset
7353
7354 .
7355 \end_layout
7356
7357 \end_inset
7358
7359  for details.
7360 \end_layout
7361
7362 \begin_layout Description
7363 Abstract: You may wonder why an abstract is an extra feature.
7364  Well, it is in book class.
7365  Usually books don't have abstracts.
7366  Memoir, however, has.
7367  You can use it wherever and how often you like.
7368 \end_layout
7369
7370 \begin_layout Description
7371 Chapterprecis: You may know this older typesetting style: The contents of
7372  a chapter are summarized below the title and also in the table of contents
7373  (e.
7374 \begin_inset space \thinspace{}
7375 \end_inset
7376
7377 g.
7378 \begin_inset space \space{}
7379 \end_inset
7380
7381
7382 \emph on
7383 Our hero arrives in Troia; he loses some friends; he finds others
7384 \emph default
7385 ).
7386  Chapterprecis does exactly this.
7387  It is therefore only sensible below a chapter.
7388 \end_layout
7389
7390 \begin_layout Description
7391 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7392  The epigraph environment provides an elegant way of typesetting such a
7393  motto.
7394  The motto itself (text) and its (optional) author (source) are divided
7395  by a short line.
7396  The author (source) can be inserted via 
7397 \family sans
7398 Insert\SpecialChar menuseparator
7399 Epigraph Source
7400 \family default
7401 \emph on
7402 .
7403 \end_layout
7404
7405 \begin_layout Description
7406 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7407  complex figurative poems).
7408  \SpecialChar LyX
7409  can only support a few of them.
7410  One is poemtitle, which is a centered title for poems, which will also
7411  be added to the table of contents (verse is the standard environment for
7412  poems.
7413  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7414  code,
7415  because they have to be nested inside regular verse environments, which
7416  is not possible with \SpecialChar LyX
7417 ).
7418 \end_layout
7419
7420 \begin_layout Description
7421 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7422 \end_layout
7423
7424 \begin_layout Section
7425
7426 \change_inserted 564990737 1670439605
7427 Curricula vitarum
7428 \end_layout
7429
7430 \begin_layout Section
7431
7432 \change_inserted 564990737 1670439627
7433 Letters
7434 \end_layout
7435
7436 \begin_layout Section
7437
7438 \change_inserted 564990737 1670439660
7439 Presentations
7440 \end_layout
7441
7442 \begin_layout Subsection
7443 Foils [aka 
7444 \family sans
7445 Foil\SpecialChar TeX
7446
7447 \family default
7448 ]
7449 \begin_inset CommandInset label
7450 LatexCommand label
7451 name "sec:foiltex"
7452
7453 \end_inset
7454
7455
7456 \end_layout
7457
7458 \begin_layout Standard
7459 by 
7460 \noun on
7461 Allan Rae
7462 \end_layout
7463
7464 \begin_layout Subsubsection
7465 Introduction
7466 \end_layout
7467
7468 \begin_layout Standard
7469 This section describes how to use \SpecialChar LyX
7470  to make slides for overhead projectors.
7471  There are two document classes that can do this: the default slides class
7472  and the 
7473 \family sans
7474 Foil\SpecialChar TeX
7475
7476 \family default
7477  slides class.
7478  This section documents the latter.
7479 \end_layout
7480
7481 \begin_layout Standard
7482 I'm going to say this again, nice and clear, so that there's no misunderstanding
7483 :
7484 \end_layout
7485
7486 \begin_layout Standard
7487 \begin_inset VSpace bigskip
7488 \end_inset
7489
7490
7491 \end_layout
7492
7493 \begin_layout Standard
7494 \align center
7495
7496 \size large
7497 This section documents the class 
7498 \begin_inset Quotes eld
7499 \end_inset
7500
7501
7502 \family sans
7503 FoilTeX
7504 \family default
7505
7506 \begin_inset Quotes erd
7507 \end_inset
7508
7509  
7510 \emph on
7511 only.
7512 \end_layout
7513
7514 \begin_layout Standard
7515 \begin_inset VSpace bigskip
7516 \end_inset
7517
7518
7519 \end_layout
7520
7521 \begin_layout Standard
7522 If you're looking for the documentation for 
7523 \begin_inset Quotes eld
7524 \end_inset
7525
7526
7527 \family sans
7528 slides (default)
7529 \family default
7530
7531 \begin_inset Quotes erd
7532 \end_inset
7533
7534 , check out section
7535 \begin_inset space ~
7536 \end_inset
7537
7538
7539 \begin_inset CommandInset ref
7540 LatexCommand ref
7541 reference "sec:slitex"
7542
7543 \end_inset
7544
7545 .
7546  If your machine doesn't have the 
7547 \family sans
7548 foils
7549 \family default
7550  class 
7551 \family sans
7552 FoilTeX
7553 \family default
7554  installed, you'll probably have to use the default 
7555 \family sans
7556 slides
7557 \family default
7558  class, which isn't quite as good as 
7559 \family sans
7560 foils.
7561 \end_layout
7562
7563 \begin_layout Standard
7564 The 
7565 \family sans
7566 foils
7567 \family default
7568  class is designed for use with version
7569 \begin_inset space ~
7570 \end_inset
7571
7572 2.1 of the 
7573 \family sans
7574 foils.cls
7575 \family default
7576  \SpecialChar LaTeX
7577  class file which is now an integral part of \SpecialChar LaTeX2e
7578 .
7579 \end_layout
7580
7581 \begin_layout Subsubsection
7582 Getting Started
7583 \end_layout
7584
7585 \begin_layout Standard
7586 Obviously, to use this document class, you need to select 
7587 \family sans
7588 FoilTeX
7589 \family default
7590  from the 
7591 \family sans
7592 Class
7593 \family default
7594  entry in the 
7595 \family sans
7596 Document
7597 \begin_inset space ~
7598 \end_inset
7599
7600 Layout
7601 \family default
7602  dialog.
7603  There are some settings in the 
7604 \family sans
7605 Document
7606 \begin_inset space ~
7607 \end_inset
7608
7609 Layout
7610 \family default
7611  dialog that you should know about that are specific to this class:
7612 \end_layout
7613
7614 \begin_layout Itemize
7615 Don't change the options 
7616 \family sans
7617 Sides
7618 \family default
7619  and 
7620 \family sans
7621 Columns
7622 \family default
7623  on the 
7624 \family sans
7625 Document
7626 \begin_inset space ~
7627 \end_inset
7628
7629 Layout
7630 \family default
7631  dialog.
7632  They're ignored by the 
7633 \family sans
7634 foils
7635 \family default
7636  class.
7637 \end_layout
7638
7639 \begin_layout Itemize
7640 The default font size is 20
7641 \begin_inset space \thinspace{}
7642 \end_inset
7643
7644 pt with the other options being 17
7645 \begin_inset space \thinspace{}
7646 \end_inset
7647
7648 pt, 25
7649 \begin_inset space \thinspace{}
7650 \end_inset
7651
7652 pt and 30
7653 \begin_inset space \thinspace{}
7654 \end_inset
7655
7656 pt.
7657 \end_layout
7658
7659 \begin_layout Itemize
7660 The default font is 
7661 \family sans
7662 sans
7663 \family default
7664  
7665 \family sans
7666 serif
7667 \family default
7668  but all math equations are still typeset in the usual roman font.
7669 \end_layout
7670
7671 \begin_layout Itemize
7672
7673 \family sans
7674 Foil\SpecialChar TeX
7675
7676 \family default
7677  supports A4 and Letter paper sizes as well as a special size for working
7678  with 35
7679 \begin_inset space \thinspace{}
7680 \end_inset
7681
7682 mm slides.
7683  It doesn't support A5, B5, legal or executive paper sizes.
7684 \end_layout
7685
7686 \begin_layout Itemize
7687 Don't bother changing the 
7688 \family sans
7689 Float Placement
7690 \family default
7691  settings because they are ignored anyway.
7692  All floats appear where they are defined in the text.
7693 \end_layout
7694
7695 \begin_layout Itemize
7696 The 
7697 \family sans
7698 Pagestyle
7699 \family default
7700  setting behaves a bit differently for this class.
7701  
7702 \family sans
7703 Foil\SpecialChar TeX
7704
7705 \family default
7706  provides extensive footer and header capabilities including a user-defined
7707  logo.
7708  See section
7709 \begin_inset space ~
7710 \end_inset
7711
7712
7713 \begin_inset CommandInset ref
7714 LatexCommand ref
7715 reference "sec:foilfoot"
7716
7717 \end_inset
7718
7719  for more details.
7720  The title page is treated differently to all other pages in the document
7721  and is 
7722 \emph on
7723 always
7724 \emph default
7725  unnumbered and 
7726 \emph on
7727 always
7728 \emph default
7729  has the logo centered at the bottom of the page (if one is defined).
7730  The possible page style choices and what they do are as follows:
7731 \end_layout
7732
7733 \begin_deeper
7734 \begin_layout Labeling
7735 \labelwidthstring MMMMMMM
7736
7737 \family sans
7738 \series bold
7739 empty
7740 \family default
7741 \series default
7742  The final output contains no page numbers, or other headers or footers
7743  (except footnotes of course).
7744  
7745 \end_layout
7746
7747 \begin_layout Labeling
7748 \labelwidthstring MMMMMMM
7749
7750 \family sans
7751 \series bold
7752 plain
7753 \family default
7754 \series default
7755  The final output contains page numbers centered at the bottom of the page.
7756  No other headings or footers (other than footnotes).
7757 \end_layout
7758
7759 \begin_layout Labeling
7760 \labelwidthstring MMMMMMM
7761
7762 \series bold
7763 foilheadings
7764 \series default
7765  Page numbers in lower right corner.
7766  Additional headers and footers are also shown.
7767  This is also the default.
7768 \end_layout
7769
7770 \begin_layout Labeling
7771 \labelwidthstring MMMMMMM
7772
7773 \series bold
7774 fancy
7775 \series default
7776  Gives you access to the 
7777 \family sans
7778 fancyheadings
7779 \family default
7780  package although its use with 
7781 \family sans
7782 Foil\SpecialChar TeX
7783
7784 \family default
7785  is discouraged by the writer of the 
7786 \family sans
7787 Foil\SpecialChar TeX
7788
7789 \family default
7790  package because of some potential page layout clashes.
7791 \end_layout
7792
7793 \end_deeper
7794 \begin_layout Paragraph
7795 Extra Options
7796 \end_layout
7797
7798 \begin_layout Standard
7799 The following options may be used in the extra class options in the 
7800 \family sans
7801 Document\SpecialChar menuseparator
7802 Settings
7803 \family default
7804  dialog.
7805 \end_layout
7806
7807 \begin_layout Labeling
7808 \labelwidthstring MMMMMMx
7809
7810 \series bold
7811 35mmSlide
7812 \series default
7813  This sets up the page layout for 7.33
7814 \begin_inset space \thinspace{}
7815 \end_inset
7816
7817 in by 11
7818 \begin_inset space \thinspace{}
7819 \end_inset
7820
7821 in paper, which is about the same aspect ratio as a 35
7822 \begin_inset space \thinspace{}
7823 \end_inset
7824
7825 mm slide, making it a bit easier to work with this medium.
7826 \end_layout
7827
7828 \begin_layout Labeling
7829 \labelwidthstring MMMMMMx
7830
7831 \series bold
7832 headrule
7833 \series default
7834  Places a rule across the page below the header on every page except the
7835  title page.
7836 \end_layout
7837
7838 \begin_layout Labeling
7839 \labelwidthstring MMMMMMx
7840
7841 \series bold
7842 footrule
7843 \series default
7844  Places a rule across the page above the footer on every page except the
7845  title page.
7846 \end_layout
7847
7848 \begin_layout Labeling
7849 \labelwidthstring MMMMMMx
7850
7851 \series bold
7852 dvips
7853 \series default
7854  This is automatically set each time you create a new 
7855 \family sans
7856 foils
7857 \family default
7858  document.
7859  This option tells 
7860 \family sans
7861 Foil\SpecialChar TeX
7862
7863 \family default
7864  to use the dvips driver to rotate those pages that are set as landscape
7865  foils.
7866 \end_layout
7867
7868 \begin_layout Labeling
7869 \labelwidthstring MMMMMMx
7870
7871 \series bold
7872 landscape
7873 \series default
7874  Simply changes the page dimensions to those of a landscape page but doesn't
7875  do any rotation.
7876  Thus if you use this option you need to use an external program to rotate
7877  each page or feed your paper through your printer as landscape.
7878  Note that this option effectively reverses the roles of the 
7879 \family sans
7880 Foilhead
7881 \family default
7882  and 
7883 \family sans
7884 Rotatefoilhead
7885 \family default
7886  environments (don't worry these are described in the next section).
7887 \end_layout
7888
7889 \begin_layout Labeling
7890 \labelwidthstring MMMMMMx
7891
7892 \series bold
7893 leqno
7894 \series default
7895  Equation numbers on the left.
7896 \end_layout
7897
7898 \begin_layout Labeling
7899 \labelwidthstring MMMMMMx
7900
7901 \series bold
7902 fleqn
7903 \series default
7904  Flush-left equations.
7905 \end_layout
7906
7907 \begin_layout Subsubsection
7908 Supported Environments
7909 \end_layout
7910
7911 \begin_layout Standard
7912 Most of the environments commonly supported in other classes are also supported
7913  by the 
7914 \family sans
7915 foils
7916 \family default
7917  class.
7918  There are several additional environments provided by 
7919 \family sans
7920 Foil\SpecialChar TeX
7921
7922 \family default
7923  as well as a couple added by \SpecialChar LyX
7924 .
7925  The following environments are shared with other classes:
7926 \end_layout
7927
7928 \begin_layout Standard
7929 \begin_inset Flex Multiple Columns
7930 status open
7931
7932 \begin_layout Itemize
7933
7934 \family sans
7935 Standard
7936 \end_layout
7937
7938 \begin_layout Itemize
7939
7940 \family sans
7941 Itemize
7942 \end_layout
7943
7944 \begin_layout Itemize
7945
7946 \family sans
7947 Enumerate
7948 \end_layout
7949
7950 \begin_layout Itemize
7951
7952 \family sans
7953 Description
7954 \end_layout
7955
7956 \begin_layout Itemize
7957
7958 \family sans
7959 List
7960 \end_layout
7961
7962 \begin_layout Itemize
7963
7964 \family sans
7965 \SpecialChar LyX
7966 -Code
7967 \end_layout
7968
7969 \begin_layout Itemize
7970
7971 \family sans
7972 Verse
7973 \end_layout
7974
7975 \begin_layout Itemize
7976
7977 \family sans
7978 Quote
7979 \end_layout
7980
7981 \begin_layout Itemize
7982
7983 \family sans
7984 Quotation
7985 \end_layout
7986
7987 \begin_layout Itemize
7988
7989 \family sans
7990 TitleAuthor
7991 \end_layout
7992
7993 \begin_layout Itemize
7994
7995 \family sans
7996 Date
7997 \end_layout
7998
7999 \begin_layout Itemize
8000
8001 \family sans
8002 Abstract
8003 \end_layout
8004
8005 \begin_layout Itemize
8006
8007 \family sans
8008 Bibliography
8009 \end_layout
8010
8011 \begin_layout Itemize
8012
8013 \family sans
8014 Address
8015 \end_layout
8016
8017 \begin_layout Itemize
8018
8019 \family sans
8020 RightAddress
8021 \end_layout
8022
8023 \end_inset
8024
8025
8026 \end_layout
8027
8028 \begin_layout Standard
8029 That is, all the major environments apart from the sectioning environments.
8030  Since foils are essentially self-contained sections, with a title and body,
8031  
8032 \family sans
8033 Foil\SpecialChar TeX
8034
8035 \family default
8036  provides specific commands for starting new foils and these are:
8037 \end_layout
8038
8039 \begin_layout Itemize
8040
8041 \family sans
8042 Foilhead
8043 \end_layout
8044
8045 \begin_layout Itemize
8046
8047 \family sans
8048 Rotatefoilhead
8049 \end_layout
8050
8051 \begin_layout Standard
8052 \SpecialChar LyX
8053  also provides slightly modified versions of these two environments called:
8054 \end_layout
8055
8056 \begin_layout Itemize
8057
8058 \family sans
8059 ShortFoilhead
8060 \end_layout
8061
8062 \begin_layout Itemize
8063
8064 \family sans
8065 ShortRotatefoilhead
8066 \end_layout
8067
8068 \begin_layout Standard
8069 and the differences will be explained in the next section.
8070 \end_layout
8071
8072 \begin_layout Standard
8073 Since foils are often used in presenting ideas or new theorems and such
8074  
8075 \family sans
8076 Foil\SpecialChar TeX
8077
8078 \family default
8079  also provides a comprehensive box of goodies for presenting them:
8080 \end_layout
8081
8082 \begin_layout Standard
8083 \begin_inset Flex Multiple Columns
8084 status open
8085
8086 \begin_layout Itemize
8087
8088 \family sans
8089 Theorem
8090 \end_layout
8091
8092 \begin_layout Itemize
8093
8094 \family sans
8095 Lemma
8096 \end_layout
8097
8098 \begin_layout Itemize
8099
8100 \family sans
8101 Corollary
8102 \end_layout
8103
8104 \begin_layout Itemize
8105
8106 \family sans
8107 Proposition
8108 \end_layout
8109
8110 \begin_layout Itemize
8111
8112 \family sans
8113 Definition
8114 \end_layout
8115
8116 \begin_layout Itemize
8117
8118 \family sans
8119 Proof
8120 \end_layout
8121
8122 \begin_layout Itemize
8123
8124 \family sans
8125 Theorem*
8126 \end_layout
8127
8128 \begin_layout Itemize
8129
8130 \family sans
8131 Lemma*
8132 \end_layout
8133
8134 \begin_layout Itemize
8135
8136 \family sans
8137 Corollary*
8138 \end_layout
8139
8140 \begin_layout Itemize
8141
8142 \family sans
8143 Proposition*
8144 \end_layout
8145
8146 \begin_layout Itemize
8147
8148 \family sans
8149 Definition*
8150 \end_layout
8151
8152 \end_inset
8153
8154
8155 \end_layout
8156
8157 \begin_layout Standard
8158 The starred versions are unnumbered while the unstarred versions are numbered.
8159  There are also two list environments added by \SpecialChar LyX
8160  and these are:
8161 \end_layout
8162
8163 \begin_layout Itemize
8164
8165 \family sans
8166 TickList
8167 \end_layout
8168
8169 \begin_layout Itemize
8170
8171 \family sans
8172 CrossList
8173 \end_layout
8174
8175 \begin_layout Standard
8176
8177 \family sans
8178 Foil\SpecialChar TeX
8179
8180 \family default
8181  provides some powerful header and footer capabilities that are best set
8182  in the preamble although they may be set at any point in a document.
8183  If you want to change these settings in your document the best place to
8184  do so is at the very top of a foil, i.
8185 \begin_inset space \thinspace{}
8186 \end_inset
8187
8188 e.
8189 \emph on
8190
8191 \begin_inset space \space{}
8192 \end_inset
8193
8194
8195 \emph default
8196 straight after the foilhead.
8197 \end_layout
8198
8199 \begin_layout Standard
8200 For this purpose, the following command styles are provided [
8201 \shape smallcaps
8202 Martin Vermeer
8203 \shape default
8204 ]:
8205 \end_layout
8206
8207 \begin_layout Standard
8208 \begin_inset Flex Multiple Columns
8209 status open
8210
8211 \begin_layout Itemize
8212
8213 \family sans
8214 My
8215 \begin_inset space ~
8216 \end_inset
8217
8218 Logo
8219 \end_layout
8220
8221 \begin_layout Itemize
8222
8223 \family sans
8224 Restriction
8225 \end_layout
8226
8227 \begin_layout Itemize
8228
8229 \family sans
8230 Right
8231 \begin_inset space ~
8232 \end_inset
8233
8234 Footer
8235 \end_layout
8236
8237 \begin_layout Itemize
8238
8239 \family sans
8240 Right
8241 \begin_inset space ~
8242 \end_inset
8243
8244 Header
8245 \end_layout
8246
8247 \begin_layout Itemize
8248
8249 \family sans
8250 Left
8251 \begin_inset space ~
8252 \end_inset
8253
8254 Header
8255 \end_layout
8256
8257 \begin_deeper
8258 \begin_layout Plain Layout
8259 \begin_inset space ~
8260 \end_inset
8261
8262
8263 \end_layout
8264
8265 \end_deeper
8266 \end_inset
8267
8268
8269 \end_layout
8270
8271 \begin_layout Standard
8272 There are also a few commands provided by 
8273 \family sans
8274 Foil\SpecialChar TeX
8275
8276 \family default
8277  that aren't directly supported by \SpecialChar LyX
8278  but I'll tell you what they do and how
8279  to use them in section
8280 \begin_inset space ~
8281 \end_inset
8282
8283
8284 \begin_inset CommandInset ref
8285 LatexCommand ref
8286 reference "sec:unsuppfoils"
8287
8288 \end_inset
8289
8290 .
8291 \end_layout
8292
8293 \begin_layout Subsubsection
8294 Building a Set of Foils
8295 \end_layout
8296
8297 \begin_layout Standard
8298 This section will give a simple introduction to using the different environments
8299  to build a set of foils.
8300  If you want to see an example set of foils, take a look at the 
8301 \family typewriter
8302 Foils.lyx
8303 \family default
8304  file you find in \SpecialChar LyX
8305 's 
8306 \family typewriter
8307 examples
8308 \family default
8309  folder.
8310 \end_layout
8311
8312 \begin_layout Paragraph
8313 Give It a Title Page
8314 \end_layout
8315
8316 \begin_layout Standard
8317 Unlike other classes that provide 
8318 \family sans
8319 Title
8320 \family default
8321
8322 \family sans
8323 Author
8324 \family default
8325
8326 \family sans
8327 Date
8328 \family default
8329  and 
8330 \family sans
8331 Abstract
8332 \family default
8333  environments, 
8334 \family sans
8335 foils
8336 \family default
8337  creates the title on a page of its own.
8338  If you leave out the 
8339 \family sans
8340 Date
8341 \family default
8342  environment \SpecialChar LaTeX
8343  will substitute the current date (every time you regenerate
8344  the output).
8345 \end_layout
8346
8347 \begin_layout Paragraph
8348 Start a New Foil
8349 \end_layout
8350
8351 \begin_layout Standard
8352 As I mentioned earlier, there are four ways of starting a new foil.
8353  For portrait foils you should use 
8354 \family sans
8355 Foilhead
8356 \family default
8357  or 
8358 \family sans
8359 ShortFoilhead.
8360
8361 \family default
8362  The difference between these two environments is the amount of space between
8363  the title of the foil (the foilhead) and the body of the foil.
8364 \end_layout
8365
8366 \begin_layout Standard
8367 Landscape foils are generated using the 
8368 \family sans
8369 Rotatefoilhead
8370 \family default
8371  and 
8372 \family sans
8373 ShortRotatefoilhead
8374 \family default
8375  environments.
8376  Again the only difference is the spacing between foilhead and body.
8377  Both of the short versions have 0.5
8378 \begin_inset space ~
8379 \end_inset
8380
8381 inches less separation between the foilhead and the body.
8382  
8383 \end_layout
8384
8385 \begin_layout Standard
8386 One problem with the support for landscape foils is the requirement that
8387  you have to use the 
8388 \family typewriter
8389 dvips
8390 \family default
8391  driver to generate the PostScript output otherwise the foils won't be rotated.
8392  It is possible to get landscape foils even if you haven't got the 
8393 \family typewriter
8394 dvips
8395 \family default
8396  driver provided you can feed your foils sideways through your printer ;-)
8397 \end_layout
8398
8399 \begin_layout Paragraph
8400 Theorems, Lemmas, Proofs and more
8401 \end_layout
8402
8403 \begin_layout Standard
8404 You can't have two of the same type of these environments directly following
8405  each other.
8406  If you use a normal paragraph break, , you will just be extending the previous
8407  environment as if you had merged the two environments together.
8408  Rather than that, you need to insert a so-called separator.
8409  Please refer to the section entitled 
8410 \emph on
8411 Separate Nestings
8412 \emph default
8413  in the 
8414 \emph on
8415 User's Guide
8416 \emph default
8417 .
8418 \end_layout
8419
8420 \begin_layout Paragraph
8421 Lists
8422 \end_layout
8423
8424 \begin_layout Standard
8425 You get all the commonly supported list styles found in other classes as
8426  well as two new ones.
8427  I'll only describe the new ones here.
8428  If you want to find out more about the other list environments check out
8429  the 
8430 \emph on
8431 User's Guide.
8432
8433 \emph default
8434  If you intend to use itemized lists you might also want to read about the
8435  
8436 \family sans
8437 Itemize
8438 \begin_inset space ~
8439 \end_inset
8440
8441 Bullet
8442 \begin_inset space ~
8443 \end_inset
8444
8445 Selection
8446 \family default
8447  dialog described above in section
8448 \begin_inset space ~
8449 \end_inset
8450
8451
8452 \begin_inset CommandInset ref
8453 LatexCommand ref
8454 reference "sec:bullet"
8455
8456 \end_inset
8457
8458 .
8459 \end_layout
8460
8461 \begin_layout Standard
8462 The two new list styles, 
8463 \family sans
8464 TickList
8465 \family default
8466  and 
8467 \family sans
8468 CrossList
8469 \family default
8470 , are designed to make it easier for you to create lists of do's and don'ts
8471  or right and wrong by providing dedicated environments that use a tick
8472  or a cross as the label of the list.
8473  These lists are in fact dedicated variants of the 
8474 \family sans
8475 Itemize
8476 \family default
8477  environment.
8478  They do however require that you have the 
8479 \family typewriter
8480 psnfss
8481 \family default
8482  packages installed.
8483 \end_layout
8484
8485 \begin_layout Paragraph
8486 Figures and Tables
8487 \end_layout
8488
8489 \begin_layout Standard
8490
8491 \family sans
8492 Foil\SpecialChar TeX
8493
8494 \family default
8495  redefines the floating tables and figures so that they appear exactly where
8496  they are in the text rather than pushing them to the top of the page or
8497  to some user specified location.
8498  In fact if you change the float placement settings they are simply ignored.
8499 \end_layout
8500
8501 \begin_layout Paragraph
8502 Page Headers and Footers
8503 \begin_inset CommandInset label
8504 LatexCommand label
8505 name "sec:foilfoot"
8506
8507 \end_inset
8508
8509
8510 \end_layout
8511
8512 \begin_layout Standard
8513
8514 \family sans
8515 My
8516 \begin_inset space ~
8517 \end_inset
8518
8519 Logo
8520 \family default
8521  and 
8522 \family sans
8523 Restriction
8524 \family default
8525  are two commands used to control the left-footer text string.
8526  The first is meant to allow you to include a graphic logo on your foils
8527  and defaults to 
8528 \begin_inset Quotes eld
8529 \end_inset
8530
8531 -Typeset by 
8532 \family sans
8533 Foil\SpecialChar TeX
8534
8535 \family default
8536 -
8537 \begin_inset Quotes erd
8538 \end_inset
8539
8540 .
8541  While the second is meant to provide a classification for the audience,
8542  
8543 \emph on
8544 e.
8545 \begin_inset space \thinspace{}
8546 \end_inset
8547
8548 g.
8549 \emph default
8550
8551 \begin_inset space \space{}
8552 \end_inset
8553
8554 Confidential.
8555  It is empty by default.
8556 \end_layout
8557
8558 \begin_layout Standard
8559 The remaining page corners can be filled by 
8560 \family sans
8561 Right
8562 \begin_inset space ~
8563 \end_inset
8564
8565 Footer
8566 \family default
8567  (which defaults to page numbers), 
8568 \family sans
8569 Right
8570 \begin_inset space ~
8571 \end_inset
8572
8573 Header
8574 \family default
8575  (top right) and 
8576 \family sans
8577 Left
8578 \begin_inset space ~
8579 \end_inset
8580
8581 Header
8582 \family default
8583  (top left).
8584 \end_layout
8585
8586 \begin_layout Subsubsection
8587 Unsupported 
8588 \family sans
8589 Foil\SpecialChar TeX
8590
8591 \family default
8592  Goodies
8593 \begin_inset CommandInset label
8594 LatexCommand label
8595 name "sec:unsuppfoils"
8596
8597 \end_inset
8598
8599
8600 \end_layout
8601
8602 \begin_layout Standard
8603 All the commands mentioned below need to be set in a 
8604 \family sans
8605 \SpecialChar LaTeX
8606
8607 \family default
8608  environment or as 
8609 \family sans
8610 \SpecialChar TeX
8611
8612 \family default
8613  within another environment.
8614 \end_layout
8615
8616 \begin_layout Paragraph
8617 Lengths
8618 \end_layout
8619
8620 \begin_layout Standard
8621 All lengths are adjusted using the 
8622 \family typewriter
8623
8624 \backslash
8625 setlength{
8626 \family default
8627 \emph on
8628 lengthname
8629 \family typewriter
8630 \emph default
8631 }{
8632 \family default
8633 \emph on
8634 newlength
8635 \family typewriter
8636 \emph default
8637 }
8638 \family default
8639  command.
8640  Where 
8641 \emph on
8642 lengthname
8643 \emph default
8644  should be replaced by the name given to the length you want to change and
8645  
8646 \emph on
8647 newlength
8648 \emph default
8649  is the length value.
8650  All lengths should be specified in units of length such as inches (
8651 \family typewriter
8652 in
8653 \family default
8654 ), millimeters (
8655 \family typewriter
8656 mm
8657 \family default
8658 ) or points (
8659 \family typewriter
8660 pt
8661 \family default
8662 ) or relative to some document or font-based length such as 
8663 \family typewriter
8664
8665 \backslash
8666 textwidth
8667 \family default
8668 .
8669  
8670 \end_layout
8671
8672 \begin_layout Standard
8673 It's possible to change the spacing between a foilhead and the body of the
8674  foil by adjusting the length specified by 
8675 \family typewriter
8676
8677 \backslash
8678 foilheadskip
8679 \family default
8680 .
8681  For example, to make 
8682 \emph on
8683 all
8684 \emph default
8685  foilheads 0.5
8686 \begin_inset space \space{}
8687 \end_inset
8688
8689 in closer to their bodies put the following in the preamble: 
8690 \family typewriter
8691
8692 \backslash
8693 setlength{
8694 \backslash
8695 foilheadskip}{-0.5in}
8696 \end_layout
8697
8698 \begin_layout Standard
8699 The spacings around floats can be adjusted by setting these lengths:
8700 \end_layout
8701
8702 \begin_layout Labeling
8703 \labelwidthstring MMMMMMMMMMM
8704
8705 \family typewriter
8706
8707 \backslash
8708 abovefloatskip
8709 \family default
8710  Separation between the text and the top of the float
8711 \end_layout
8712
8713 \begin_layout Labeling
8714 \labelwidthstring MMMMMMMMMMM
8715
8716 \family typewriter
8717
8718 \backslash
8719 abovecaptionskip
8720 \family default
8721  Separation between the float and the caption
8722 \end_layout
8723
8724 \begin_layout Labeling
8725 \labelwidthstring MMMMMMMMMMM
8726
8727 \family typewriter
8728
8729 \backslash
8730 belowcaptionskip
8731 \family default
8732  Separation between the caption and the following text
8733 \end_layout
8734
8735 \begin_layout Labeling
8736 \labelwidthstring MMMMMMMMMMM
8737
8738 \family typewriter
8739
8740 \backslash
8741 captionwidth
8742 \family default
8743  You can make the captions narrower than the surrounding text by adjusting
8744  this length.
8745  Best done relative to 
8746 \family typewriter
8747
8748 \backslash
8749 textwidth
8750 \family default
8751 .
8752 \end_layout
8753
8754 \begin_layout Standard
8755 There are also several title page related lengths that you may find useful
8756  if you have a long title or several authors:
8757 \end_layout
8758
8759 \begin_layout Labeling
8760 \labelwidthstring MMMMMMMMMMM
8761
8762 \family typewriter
8763
8764 \backslash
8765 abovetitleskip
8766 \family default
8767  Separation from headers to 
8768 \family sans
8769 Title
8770 \end_layout
8771
8772 \begin_layout Labeling
8773 \labelwidthstring MMMMMMMMMMM
8774
8775 \family typewriter
8776
8777 \backslash
8778 titleauthorskip
8779 \family default
8780  between 
8781 \family sans
8782 Title
8783 \family default
8784  and 
8785 \family sans
8786 Author
8787 \family default
8788  environments
8789 \end_layout
8790
8791 \begin_layout Labeling
8792 \labelwidthstring MMMMMMMMMMM
8793
8794 \family typewriter
8795
8796 \backslash
8797 authorauthorskip
8798 \family default
8799  between multiple 
8800 \family sans
8801 Author
8802 \family default
8803  lines
8804 \end_layout
8805
8806 \begin_layout Labeling
8807 \labelwidthstring MMMMMMMMMMM
8808
8809 \family typewriter
8810
8811 \backslash
8812 authordateskip
8813 \family default
8814  between the 
8815 \family sans
8816 Author
8817 \family default
8818  and the 
8819 \family sans
8820 Date
8821 \end_layout
8822
8823 \begin_layout Labeling
8824 \labelwidthstring MMMMMMMMMMM
8825
8826 \family typewriter
8827
8828 \backslash
8829 dateabstractskip
8830 \family default
8831  between the 
8832 \family sans
8833 Date
8834 \family default
8835  and the 
8836 \family sans
8837 Abstract
8838 \end_layout
8839
8840 \begin_layout Standard
8841 The last length related command affects all the list environments.
8842  If you place 
8843 \family typewriter
8844
8845 \backslash
8846 zerolistvertdimens
8847 \family default
8848  
8849 \emph on
8850 inside
8851 \emph default
8852  a list environment then all the vertical spacing between the list items
8853  is removed.
8854  Note that this is a command not a length so it doesn't require 
8855 \family typewriter
8856
8857 \backslash
8858 setlength
8859 \family default
8860  like the stuff mentioned above.
8861 \end_layout
8862
8863 \begin_layout Paragraph
8864 Headers and Footers
8865 \end_layout
8866
8867 \begin_layout Standard
8868 The 
8869 \family typewriter
8870
8871 \backslash
8872 LogoOn
8873 \family default
8874  and 
8875 \family typewriter
8876
8877 \backslash
8878 LogoOff
8879 \family default
8880  commands control whether the logo in the 
8881 \family sans
8882 MyLogo
8883 \family default
8884  definition appear on a given page.
8885  If you put 
8886 \family typewriter
8887
8888 \backslash
8889 LogoOff
8890 \family default
8891  in the preamble then none of the foils will have the logo on them.
8892  If you don't want the logo on a particular page place the 
8893 \family typewriter
8894
8895 \backslash
8896 LogoOff
8897 \family default
8898  directly after the foilhead of that page and the 
8899 \family typewriter
8900
8901 \backslash
8902 LogoOn
8903 \family default
8904  directly after the next foilhead.
8905 \end_layout
8906
8907 \begin_layout Standard
8908 If you decide to use the 
8909 \family sans
8910 fancy
8911 \family default
8912  page style setting in the 
8913 \family sans
8914 Document
8915 \begin_inset space ~
8916 \end_inset
8917
8918 Layout
8919 \family default
8920  dialog you should probably add 
8921 \family typewriter
8922
8923 \backslash
8924 let
8925 \backslash
8926 headwidth
8927 \backslash
8928 textwidth
8929 \family default
8930  to your preamble so headers and footers on landscape pages are correctly
8931  placed when rotated.
8932  This is due to some clashes between the page layouts provided by the 
8933 \family sans
8934 fancyheadings
8935 \family default
8936  package and the 
8937 \family sans
8938 foils
8939 \family default
8940  class.
8941 \end_layout
8942
8943 \begin_layout Section
8944
8945 \change_inserted 564990737 1670439661
8946 Reports
8947 \end_layout
8948
8949 \begin_layout Subsection
8950
8951 \change_inserted 564990737 1670439661
8952 report
8953 \end_layout
8954
8955 \begin_layout Standard
8956
8957 \change_inserted 564990737 1670439661
8958 The document class 
8959 \family sans
8960 report
8961 \family default
8962  provides the 
8963 \family sans
8964 report.cls
8965 \family default
8966  document class for preparing reports.
8967  Like the 
8968 \family sans
8969 book
8970 \family default
8971  document class, this provides parts, chapters and sections but does not
8972  provide the paragraph styles needed for a book; like the 
8973 \family sans
8974 article
8975 \family default
8976  document class, it provides the abstract paragraph style.
8977  In two-sided mode, it does not start a new chapter on the right hand page.
8978 \end_layout
8979
8980 \begin_layout Standard
8981
8982 \change_inserted 564990737 1670439674
8983 The remaining 
8984 \family sans
8985 report
8986 \family default
8987  document classes are described in the Collections (section
8988 \begin_inset space ~
8989 \end_inset
8990
8991
8992 \begin_inset CommandInset ref
8993 LatexCommand ref
8994 reference "sec:Collections"
8995
8996 \end_inset
8997
8998 ).
8999 \end_layout
9000
9001 \begin_layout Section
9002
9003 \change_inserted 564990737 1670439674
9004 Scripts (drama)
9005 \end_layout
9006
9007 \begin_layout Subsection
9008 Broadway
9009 \end_layout
9010
9011 \begin_layout Standard
9012 by 
9013 \shape smallcaps
9014 Garst Reese
9015 \end_layout
9016
9017 \begin_layout Subsubsection
9018 Introduction
9019 \end_layout
9020
9021 \begin_layout Standard
9022 Broadway is for writing plays.
9023  The format is more decorative than Hollywood, and much less standardized.
9024  This format should be suitable for workshops.
9025 \end_layout
9026
9027 \begin_layout Subsubsection
9028 Special problems
9029 \end_layout
9030
9031 \begin_layout Standard
9032 The same as in Hollywood.
9033 \end_layout
9034
9035 \begin_layout Subsubsection
9036 Special features
9037 \end_layout
9038
9039 \begin_layout Standard
9040 Insert the 
9041 \family sans
9042 Speaker
9043 \family default
9044  names as labels then cross-reference the label to insert the name.
9045  The cross-reference dialog will show the current cast of characters.
9046 \end_layout
9047
9048 \begin_layout Subsubsection
9049 Paper size and Margins
9050 \end_layout
9051
9052 \begin_layout Standard
9053 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
9054 \end_layout
9055
9056 \begin_layout Subsubsection
9057 Environments
9058 \end_layout
9059
9060 \begin_layout Standard
9061 The following environments are available.
9062  You can use broadway.bind to get the bind keys shown at the right.
9063 \end_layout
9064
9065 \begin_layout Itemize
9066
9067 \family sans
9068 Standard
9069 \begin_inset Newline newline
9070 \end_inset
9071
9072
9073 \family default
9074 You should not have to use this, but it is here for anything that does not
9075  fit otherwise.
9076 \end_layout
9077
9078 \begin_layout Itemize
9079
9080 \family sans
9081 Narrative
9082 \begin_inset space \hfill{}
9083 \end_inset
9084
9085 M-z n
9086 \begin_inset Newline newline
9087 \end_inset
9088
9089
9090 \family default
9091 Used to describe stage setting and the action.
9092  First use of speaker names in all CAPs.
9093 \end_layout
9094
9095 \begin_layout Itemize
9096
9097 \family sans
9098 ACT
9099 \begin_inset space \hfill{}
9100 \end_inset
9101
9102 M-z a
9103 \begin_inset Newline newline
9104 \end_inset
9105
9106
9107 \family default
9108 Automatically numbered.
9109  On screen it will be arabic, but will print as Roman.
9110 \end_layout
9111
9112 \begin_layout Itemize
9113
9114 \family sans
9115 ACT*
9116 \begin_inset space \hfill{}
9117 \end_inset
9118
9119 M-z S at
9120 \begin_inset Newline newline
9121 \end_inset
9122
9123
9124 \family default
9125 Subtitle for 
9126 \family sans
9127 ACT.
9128
9129 \family default
9130  It is just centered text.
9131 \end_layout
9132
9133 \begin_layout Itemize
9134
9135 \family sans
9136 SCENE
9137 \begin_inset space \hfill{}
9138 \end_inset
9139
9140 M-z S-S
9141 \begin_inset Newline newline
9142 \end_inset
9143
9144
9145 \family default
9146 Not automatically numbered.
9147  You supply the number.
9148  This is because I couldn't figure out how.
9149 \end_layout
9150
9151 \begin_layout Itemize
9152
9153 \family sans
9154 AT_RISE:
9155 \begin_inset space \hfill{}
9156 \end_inset
9157
9158 M-z S-R
9159 \begin_inset Newline newline
9160 \end_inset
9161
9162
9163 \family default
9164 A special case of Narrative to describe the setting and action as the curtain
9165  rises.
9166 \end_layout
9167
9168 \begin_layout Itemize
9169
9170 \family sans
9171 Speaker
9172 \begin_inset space \hfill{}
9173 \end_inset
9174
9175 M-z s
9176 \begin_inset Newline newline
9177 \end_inset
9178
9179
9180 \family default
9181 The speaker's (actor's) title, centered in all CAPS.
9182 \end_layout
9183
9184 \begin_layout Itemize
9185
9186 \family sans
9187 Parenthetical
9188 \begin_inset space \hfill{}
9189 \end_inset
9190
9191 M-z p
9192 \begin_inset Newline newline
9193 \end_inset
9194
9195
9196 \family default
9197 Instructions to the speaker.
9198  The parentheses are automatically inserted.
9199  The ( will appear on screen, but both will be in the printed play.
9200  This environment is only used within 
9201 \family sans
9202 Dialogue
9203 \family default
9204 .
9205 \end_layout
9206
9207 \begin_layout Itemize
9208
9209 \family sans
9210 Dialogue
9211 \begin_inset space \hfill{}
9212 \end_inset
9213
9214 M-z d
9215 \begin_inset Newline newline
9216 \end_inset
9217
9218
9219 \family default
9220 What the Speaker says.
9221 \end_layout
9222
9223 \begin_layout Itemize
9224
9225 \family sans
9226 CURTAIN
9227 \begin_inset space \hfill{}
9228 \end_inset
9229
9230 M-z S-C
9231 \begin_inset Newline newline
9232 \end_inset
9233
9234
9235 \family default
9236 The curtain comes down.
9237 \end_layout
9238
9239 \begin_layout Itemize
9240
9241 \family sans
9242 Title
9243 \begin_inset space \hfill{}
9244 \end_inset
9245
9246 M-z S-T
9247 \end_layout
9248
9249 \begin_layout Itemize
9250
9251 \family sans
9252 Author
9253 \begin_inset space \hfill{}
9254 \end_inset
9255
9256 M-z S-A
9257 \end_layout
9258
9259 \begin_layout Itemize
9260
9261 \family sans
9262 Right_Address
9263 \begin_inset space \hfill{}
9264 \end_inset
9265
9266 M-z r
9267 \end_layout
9268
9269 \begin_layout Standard
9270 Hello there.
9271 \end_layout
9272
9273 \begin_layout Subsection
9274 Hollywood (Hollywood spec scripts)
9275 \end_layout
9276
9277 \begin_layout Standard
9278 by 
9279 \shape smallcaps
9280 Garst Reese
9281 \end_layout
9282
9283 \begin_layout Subsubsection
9284 Introduction
9285 \end_layout
9286
9287 \begin_layout Standard
9288 Getting the format of a Hollywood script right is a 
9289 \begin_inset Quotes eld
9290 \end_inset
9291
9292 rite of passage.
9293 \begin_inset Quotes erd
9294 \end_inset
9295
9296  It is designed to make the readers focus on content and to be easy and
9297  familiar for the actors to read.
9298  Each page of a script should be one minute of film.
9299  Nothing goes in a script that you cannot see or hear on screen.
9300  The courier 12 pt font should be used throughout.
9301  No italics.
9302 \end_layout
9303
9304 \begin_layout Subsubsection
9305 Special problems
9306 \end_layout
9307
9308 \begin_layout Standard
9309 Speakers' lines should NEVER break in mid-sentence.
9310  If a speaker's lines continue over a page break, repeat the 
9311 \family sans
9312 Speaker
9313 \family default
9314  title followed by (Cont'd).
9315 \end_layout
9316
9317 \begin_layout Subsubsection
9318 Special features
9319 \end_layout
9320
9321 \begin_layout Standard
9322 Insert the 
9323 \family sans
9324 Speaker
9325 \family default
9326  names as labels then cross-reference the label to insert the name.
9327  The cross-reference dialog will show the current cast of characters.
9328  You can use this to insert the speaker name in narratives also.
9329 \end_layout
9330
9331 \begin_layout Subsubsection
9332 Paper size and Margins
9333 \end_layout
9334
9335 \begin_layout Standard
9336 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
9337 \end_layout
9338
9339 \begin_layout Subsubsection
9340 Environments
9341 \end_layout
9342
9343 \begin_layout Standard
9344 The following environments are available.
9345  You can use hollywood.bind to get the bind keys shown at the right.
9346 \end_layout
9347
9348 \begin_layout Itemize
9349
9350 \family sans
9351 Standard
9352 \begin_inset Newline newline
9353 \end_inset
9354
9355
9356 \family default
9357 Used where nothing else works.
9358  Try to avoid it.
9359 \end_layout
9360
9361 \begin_layout Itemize
9362
9363 \family sans
9364 FADE_IN
9365 \family default
9366 :
9367 \begin_inset space \hfill{}
9368 \end_inset
9369
9370
9371 \family sans
9372 M-z S-I
9373 \family default
9374
9375 \begin_inset Newline newline
9376 \end_inset
9377
9378 Usually followed by something like 
9379 \begin_inset Quotes eld
9380 \end_inset
9381
9382 on Sally waking up.
9383 \begin_inset Quotes erd
9384 \end_inset
9385
9386
9387 \end_layout
9388
9389 \begin_layout Itemize
9390
9391 \family sans
9392 INT:
9393 \begin_inset space \hfill{}
9394 \end_inset
9395
9396 M-z i
9397 \begin_inset Newline newline
9398 \end_inset
9399
9400
9401 \family default
9402 Introduces a new INTERIOR camera set-up.
9403  Always followed by DAY or NIGHT, or something similar to define the lighting
9404  required.
9405  Everthing on this line in CAPS.
9406 \end_layout
9407
9408 \begin_layout Itemize
9409
9410 \family sans
9411 EXT:
9412 \begin_inset space \hfill{}
9413 \end_inset
9414
9415 M-z e
9416 \begin_inset Newline newline
9417 \end_inset
9418
9419
9420 \family default
9421 Introduces a new EXTERIOR camera set-up.
9422  Everthing on this line in CAPS.
9423 \end_layout
9424
9425 \begin_layout Itemize
9426
9427 \family sans
9428 Speaker
9429 \begin_inset space \hfill{}
9430 \end_inset
9431
9432 M-z s
9433 \begin_inset Newline newline
9434 \end_inset
9435
9436
9437 \family default
9438 The character speaking.
9439 \end_layout
9440
9441 \begin_layout Itemize
9442
9443 \family sans
9444 Parenthetical
9445 \begin_inset space \hfill{}
9446 \end_inset
9447
9448 M-z p
9449 \begin_inset Newline newline
9450 \end_inset
9451
9452
9453 \family default
9454 Instructions to the speaker.
9455  The () are automatically inserted.
9456 \end_layout
9457
9458 \begin_layout Itemize
9459
9460 \family sans
9461 Dialogue
9462 \begin_inset space \hfill{}
9463 \end_inset
9464
9465 M-z d
9466 \begin_inset Newline newline
9467 \end_inset
9468
9469
9470 \family default
9471 What the 
9472 \family sans
9473 Speaker
9474 \family default
9475  says.
9476 \end_layout
9477
9478 \begin_layout Itemize
9479
9480 \family sans
9481 Transition
9482 \begin_inset space \hfill{}
9483 \end_inset
9484
9485 M-z t
9486 \begin_inset Newline newline
9487 \end_inset
9488
9489
9490 \family default
9491 Camera movement instruction.
9492  e.
9493 \begin_inset space \thinspace{}
9494 \end_inset
9495
9496 g.
9497 \begin_inset space \space{}
9498 \end_inset
9499
9500 CUT TO:
9501 \end_layout
9502
9503 \begin_layout Itemize
9504
9505 \family sans
9506 FADE OUT:
9507 \begin_inset space \hfill{}
9508 \end_inset
9509
9510 M-z S-I
9511 \end_layout
9512
9513 \begin_layout Itemize
9514
9515 \family sans
9516 Author
9517 \begin_inset space \hfill{}
9518 \end_inset
9519
9520 M-z S-A
9521 \end_layout
9522
9523 \begin_layout Itemize
9524
9525 \family sans
9526 Title
9527 \begin_inset space \hfill{}
9528 \end_inset
9529
9530 M-z S-T
9531 \end_layout
9532
9533 \begin_layout Itemize
9534
9535 \family sans
9536 Right_Address
9537 \begin_inset space \hfill{}
9538 \end_inset
9539
9540 M-z r
9541 \end_layout
9542
9543 \begin_layout Subsubsection
9544 Script jargon
9545 \end_layout
9546
9547 \begin_layout Itemize
9548 (O.S) — off screen
9549 \end_layout
9550
9551 \begin_layout Itemize
9552 (V.0) — voice over
9553 \end_layout
9554
9555 \begin_layout Itemize
9556 b.
9557 \begin_inset space \thinspace{}
9558 \end_inset
9559
9560 g.
9561  — background
9562 \end_layout
9563
9564 \begin_layout Itemize
9565 C.U.
9566  — close-up
9567 \end_layout
9568
9569 \begin_layout Itemize
9570 PAN — camera movement
9571 \end_layout
9572
9573 \begin_layout Itemize
9574 INSERT — cut to close-up of
9575 \end_layout
9576
9577 \begin_layout Chapter
9578 Installation
9579 \end_layout
9580
9581 \begin_layout Standard
9582 All you need to do is install Rev\SpecialChar TeX
9583  4, as described in the package's README
9584  file.
9585  The package can be found at The Rev\SpecialChar TeX
9586  4 Web Site 
9587 \begin_inset Flex URL
9588 status collapsed
9589
9590 \begin_layout Plain Layout
9591
9592 http://publish.aps.org/revtex4/
9593 \end_layout
9594
9595 \end_inset
9596
9597 .
9598  Install it somewhere that \SpecialChar LaTeX
9599  can see it.
9600  Test it by trying to \SpecialChar LaTeX
9601  a short Rev\SpecialChar TeX
9602  4 document in some random directory (i.
9603 \begin_inset space \thinspace{}
9604 \end_inset
9605
9606 e.
9607 \begin_inset space \space{}
9608 \end_inset
9609
9610 not the directory where you installed the class file.) Then, if you reconfigure
9611  \SpecialChar LyX
9612 , it will find the class file and let you use the Rev\SpecialChar TeX
9613 4 textclass.
9614 \end_layout
9615
9616 \begin_layout Standard
9617 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
9618  4 document
9619  using 
9620 \family typewriter
9621 tex2lyx
9622 \family default
9623 , or to use the 
9624 \family sans
9625 Revtex
9626 \begin_inset space ~
9627 \end_inset
9628
9629 4
9630 \family default
9631  template, found in the templates directory.
9632 \end_layout
9633
9634 \begin_layout Chapter
9635 Preamble Matter
9636 \end_layout
9637
9638 \begin_layout Standard
9639 Optional arguments to 
9640 \family typewriter
9641
9642 \backslash
9643 documentclass
9644 \family default
9645 , like 
9646 \begin_inset Quotes eld
9647 \end_inset
9648
9649 preprint
9650 \begin_inset Quotes erd
9651 \end_inset
9652
9653  and 
9654 \begin_inset Quotes eld
9655 \end_inset
9656
9657 aps
9658 \begin_inset Quotes erd
9659 \end_inset
9660
9661 , go in the 
9662 \family sans
9663 Extra
9664 \begin_inset space ~
9665 \end_inset
9666
9667 Options
9668 \family default
9669  field in the 
9670 \family sans
9671 Document
9672 \begin_inset space ~
9673 \end_inset
9674
9675 Layout
9676 \family default
9677  dialog, as usual.
9678  Remember that in Rev\SpecialChar TeX
9679 , at least one optional argument is required! 
9680 \end_layout
9681
9682 \begin_layout Standard
9683 Other preamble matter, like 
9684 \family typewriter
9685
9686 \backslash
9687 draft
9688 \family default
9689  etc.
9690 \begin_inset space ~
9691 \end_inset
9692
9693 goes in the 
9694 \family sans
9695 \SpecialChar LaTeX
9696
9697 \begin_inset space ~
9698 \end_inset
9699
9700 Preamble
9701 \family default
9702  dialog, also as usual.
9703 \end_layout
9704
9705 \begin_layout Chapter
9706 Layouts
9707 \end_layout
9708
9709 \begin_layout Standard
9710 The layouts basically correspond to the commands in Rev\SpecialChar TeX
9711 4.0.
9712  For example, the Email layout corresponds to 
9713 \family typewriter
9714
9715 \backslash
9716 email{}
9717 \family default
9718 .
9719  Note that (at least as of Rev\SpecialChar TeX
9720  4.0 Beta), the 
9721 \family sans
9722 Address
9723 \family default
9724  and 
9725 \family sans
9726 Affiliation
9727 \family default
9728  layouts are exactly equivalent, so you shouldn't need to use both.
9729 \begin_inset Foot
9730 status collapsed
9731
9732 \begin_layout Plain Layout
9733 In case you're curious, both were included so that 
9734 \family typewriter
9735 tex2lyx
9736 \family default
9737  would be able to translate both 
9738 \family typewriter
9739
9740 \backslash
9741 address
9742 \family default
9743  and 
9744 \family typewriter
9745
9746 \backslash
9747 affiliation
9748 \family default
9749 .
9750 \end_layout
9751
9752 \end_inset
9753
9754
9755 \end_layout
9756
9757 \begin_layout Chapter
9758 Important Notes
9759 \end_layout
9760
9761 \begin_layout Standard
9762 There are a couple of important unique aspects of Rev\SpecialChar TeX
9763  4 which might cause
9764  bugs that will be even more confusing in \SpecialChar LyX
9765 .
9766 \end_layout
9767
9768 \begin_layout Standard
9769 In Rev\SpecialChar TeX
9770 , the 
9771 \family typewriter
9772
9773 \backslash
9774 thanks
9775 \family default
9776  command goes 
9777 \emph on
9778 outside
9779 \emph default
9780  the 
9781 \family typewriter
9782
9783 \backslash
9784 author
9785 \family default
9786  command.
9787  The \SpecialChar LyX
9788  equivalent is that there is a separate Thanks layout.
9789  Do 
9790 \emph on
9791 not
9792 \emph default
9793  write footnotes in the 
9794 \family sans
9795 Author
9796 \family default
9797  layout, or weird things may happen.
9798  See the Rev\SpecialChar TeX
9799  4 documentation for more details.
9800 \end_layout
9801
9802 \begin_layout Standard
9803 Also, the 
9804 \family sans
9805 Author
9806 \begin_inset space ~
9807 \end_inset
9808
9809 Email
9810 \family default
9811
9812 \family sans
9813 Author
9814 \begin_inset space ~
9815 \end_inset
9816
9817 URL
9818 \family default
9819 , and 
9820 \family sans
9821 Thanks
9822 \family default
9823  layouts must be placed 
9824 \emph on
9825 in between
9826 \emph default
9827  the 
9828 \family sans
9829 Author
9830 \family default
9831  layout and the corresponding 
9832 \family sans
9833 Address
9834 \family default
9835  (or equivalent 
9836 \family sans
9837 Affiliation
9838 \family default
9839 ) layout.
9840  If you put the 
9841 \family sans
9842 Thanks
9843 \family default
9844  after the 
9845 \family sans
9846 Address
9847 \family default
9848 , the \SpecialChar LaTeX
9849  won't compile.
9850 \end_layout
9851
9852 \begin_layout Chapter
9853 Supplemental Tools
9854 \end_layout
9855
9856 \begin_layout Section
9857 Customizing Bibliographies with Bib\SpecialChar TeX
9858  or Biblatex
9859 \end_layout
9860
9861 \begin_layout Standard
9862 The most basic information about how to use Bib\SpecialChar TeX
9863  or 
9864 \family sans
9865 Biblatex
9866 \family default
9867  with \SpecialChar LyX
9868  is contained in the section 
9869 \emph on
9870 Bibliography databases
9871 \emph default
9872  of the 
9873 \emph on
9874 User's Guide
9875 \emph default
9876 .
9877  The following subsections explain special bibliography features supported
9878  by \SpecialChar LyX
9879 .
9880 \end_layout
9881
9882 \begin_layout Subsection
9883 Alternative Citation Styles
9884 \end_layout
9885
9886 \begin_layout Standard
9887 Standard Bib\SpecialChar TeX
9888  uses numbers (e.
9889 \begin_inset space \thinspace{}
9890 \end_inset
9891
9892 g.
9893 \begin_inset space \space{}
9894 \end_inset
9895
9896
9897 \begin_inset Quotes eld
9898 \end_inset
9899
9900 [12]
9901 \begin_inset Quotes erd
9902 \end_inset
9903
9904 ) to refer to a cited work.
9905  However, in many scientific disciplines, other citation styles are in use.
9906  The most common one is the author-year style (e.
9907 \begin_inset space \thinspace{}
9908 \end_inset
9909
9910 g.
9911 \begin_inset space \space{}
9912 \end_inset
9913
9914
9915 \begin_inset Quotes eld
9916 \end_inset
9917
9918 Knuth 1984a
9919 \begin_inset Quotes erd
9920 \end_inset
9921
9922 ).
9923  \SpecialChar LyX
9924  supports three packages that provide this style, 
9925 \begin_inset Flex Code
9926 status collapsed
9927
9928 \begin_layout Plain Layout
9929 biblatex
9930 \end_layout
9931
9932 \end_inset
9933
9934
9935 \begin_inset Flex Code
9936 status collapsed
9937
9938 \begin_layout Plain Layout
9939 natbib
9940 \end_layout
9941
9942 \end_inset
9943
9944 , and 
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949 jurabib
9950 \end_layout
9951
9952 \end_inset
9953
9954 .
9955  Each of these packages has their pros and cons, which cannot be listed
9956  in detail.
9957  If you only want to have simple author-year (or author-numerical) style,
9958  or if you want to use one of the countless style files for 
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963 natbib
9964 \end_layout
9965
9966 \end_inset
9967
9968 , then the established 
9969 \begin_inset Flex Code
9970 status collapsed
9971
9972 \begin_layout Plain Layout
9973 natbib
9974 \end_layout
9975
9976 \end_inset
9977
9978  package is probably your choice.
9979  If you look for specific citation styles common in law studies, you might
9980  consider the 
9981 \begin_inset Flex Code
9982 status collapsed
9983
9984 \begin_layout Plain Layout
9985 jurabib
9986 \end_layout
9987
9988 \end_inset
9989
9990  package.
9991  If you want to have full control over the formatting or look for advanced
9992  features such as ibidem, footnote citations, full title citations, advanced
9993  date formats (such as 400 BC) or full localization to other languages than
9994  English, you should definitely consider 
9995 \begin_inset Flex Code
9996 status collapsed
9997
9998 \begin_layout Plain Layout
9999 biblatex
10000 \end_layout
10001
10002 \end_inset
10003
10004 , which exceeds all other packages in terms of features, but is also quite
10005  heavy and more resource-hungry.
10006 \end_layout
10007
10008 \begin_layout Standard
10009 The handling of these packages in \SpecialChar LyX
10010  is basically the same.
10011  Go to 
10012 \begin_inset Flex Noun
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 Document\SpecialChar menuseparator
10017 Settings
10018 \end_layout
10019
10020 \end_inset
10021
10022  and select under 
10023 \begin_inset Flex Noun
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 Bibliography
10028 \end_layout
10029
10030 \end_inset
10031
10032  the 
10033 \begin_inset Flex Noun
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 Style Format
10038 \end_layout
10039
10040 \end_inset
10041
10042  
10043 \begin_inset Flex Noun
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 Basic (BibTeX)
10048 \end_layout
10049
10050 \end_inset
10051
10052
10053 \begin_inset Flex Noun
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 Biblatex
10058 \end_layout
10059
10060 \end_inset
10061
10062
10063 \begin_inset Flex Noun
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 Biblatex (Natbib mode)
10068 \end_layout
10069
10070 \end_inset
10071
10072
10073 \begin_inset Flex Noun
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 Natbib (BibTeX)
10078 \end_layout
10079
10080 \end_inset
10081
10082  or 
10083 \begin_inset Flex Noun
10084 status collapsed
10085
10086 \begin_layout Plain Layout
10087 Jurabib (BibTeX)
10088 \end_layout
10089
10090 \end_inset
10091
10092  (see sec.
10093 \begin_inset space ~
10094 \end_inset
10095
10096 6.5.3 in the User's Guide for more information on these choices).
10097  With all these packages, you will get some extra features in the citation
10098  dialog and you can select the style of the reference (
10099 \begin_inset Quotes eld
10100 \end_inset
10101
10102 Knuth 1984
10103 \begin_inset Quotes erd
10104 \end_inset
10105
10106
10107 \begin_inset Quotes eld
10108 \end_inset
10109
10110 Knuth (1984)
10111 \begin_inset Quotes erd
10112 \end_inset
10113
10114
10115 \begin_inset Quotes eld
10116 \end_inset
10117
10118 Knuth, 1984
10119 \begin_inset Quotes erd
10120 \end_inset
10121
10122
10123 \begin_inset Quotes eld
10124 \end_inset
10125
10126 1984
10127 \begin_inset Quotes erd
10128 \end_inset
10129
10130  etc.).
10131  Note that either package needs specifically designed style files.
10132  They all ship their own, but there are lots of additional style files,
10133  and there is even an interactive style file builder
10134 \begin_inset Foot
10135 status collapsed
10136
10137 \begin_layout Plain Layout
10138 See 
10139 \begin_inset Flex URL
10140 status open
10141
10142 \begin_layout Plain Layout
10143
10144 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
10145 \end_layout
10146
10147 \end_inset
10148
10149
10150 \end_layout
10151
10152 \end_inset
10153
10154  for 
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 natbib
10160 \end_layout
10161
10162 \end_inset
10163
10164 .
10165 \end_layout
10166
10167 \begin_layout Subsection
10168 Subdivided Bibliographies
10169 \end_layout
10170
10171 \begin_layout Standard
10172 Sometimes you might need to divide your bibliography into several sections.
10173  If you are for instance a historian, the possibility to separate sources
10174  and scientific works is most likely a 
10175 \begin_inset Quotes eld
10176 \end_inset
10177
10178 must have
10179 \begin_inset Quotes erd
10180 \end_inset
10181
10182 .
10183  Unfortunately, Bib\SpecialChar TeX
10184  itself does not allow you to do this.
10185  But with the help of some \SpecialChar LaTeX
10186  packages, Bib\SpecialChar TeX
10187  can be extended to fit your needs.
10188 \end_layout
10189
10190 \begin_layout Standard
10191 \SpecialChar LyX
10192  provides native support for one of these packages, 
10193 \family typewriter
10194 bibtopic
10195 \family default
10196 .
10197 \begin_inset Foot
10198 status collapsed
10199
10200 \begin_layout Plain Layout
10201 Available from 
10202 \begin_inset Flex URL
10203 status open
10204
10205 \begin_layout Plain Layout
10206
10207 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
10208 \end_layout
10209
10210 \end_inset
10211
10212
10213 \end_layout
10214
10215 \end_inset
10216
10217  The advantage of this package (compared to other packages such as 
10218 \family typewriter
10219 multibib
10220 \family default
10221 ) is that you don't need to define new citation commands.
10222  Instead, you need to prepare different bibliographic databases which include
10223  the entries for the different sections of the bibliography.
10224  For example: If you want to divide your bibliography into the sections
10225  
10226 \begin_inset Quotes eld
10227 \end_inset
10228
10229 Sources
10230 \begin_inset Quotes erd
10231 \end_inset
10232
10233  and 
10234 \begin_inset Quotes eld
10235 \end_inset
10236
10237 Scientific works
10238 \begin_inset Quotes erd
10239 \end_inset
10240
10241 , you first need to create two bibliographic databases, e.
10242 \begin_inset space \thinspace{}
10243 \end_inset
10244
10245 g.
10246 \begin_inset space \space{}
10247 \end_inset
10248
10249
10250 \begin_inset Flex Code
10251 status collapsed
10252
10253 \begin_layout Plain Layout
10254 sources.bib
10255 \end_layout
10256
10257 \end_inset
10258
10259  and 
10260 \begin_inset Flex Code
10261 status collapsed
10262
10263 \begin_layout Plain Layout
10264 scientific.bib
10265 \end_layout
10266
10267 \end_inset
10268
10269 .
10270  
10271 \end_layout
10272
10273 \begin_layout Standard
10274 Go to 
10275 \begin_inset Flex Noun
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 Document\SpecialChar menuseparator
10280 Settings
10281 \end_layout
10282
10283 \end_inset
10284
10285  and check under 
10286 \begin_inset Flex Noun
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 Bibliography
10291 \end_layout
10292
10293 \end_inset
10294
10295  the option 
10296 \begin_inset Flex Noun
10297 status collapsed
10298
10299 \begin_layout Plain Layout
10300 Subdivided bibliography
10301 \end_layout
10302
10303 \end_inset
10304
10305 .
10306  Now you can insert multiple Bib\SpecialChar TeX
10307  bibliographies, one for each section of
10308  your bibliography.
10309  Returning to our example: Insert the Bib\SpecialChar TeX
10310  bibliography 
10311 \begin_inset Flex Code
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315 sources.bib
10316 \end_layout
10317
10318 \end_inset
10319
10320  and a second one for the database 
10321 \begin_inset Flex Code
10322 status collapsed
10323
10324 \begin_layout Plain Layout
10325 scientific.bib
10326 \end_layout
10327
10328 \end_inset
10329
10330 .
10331  You are free to use the same or different styles for each section.
10332  Additionally, you can choose if the bibliography section should contain
10333  
10334 \begin_inset Quotes eld
10335 \end_inset
10336
10337 all cited references
10338 \begin_inset Quotes erd
10339 \end_inset
10340
10341  of the specified database(s) (which is the default), 
10342 \begin_inset Quotes eld
10343 \end_inset
10344
10345 all uncited references
10346 \begin_inset Quotes erd
10347 \end_inset
10348
10349  or even 
10350 \begin_inset Quotes eld
10351 \end_inset
10352
10353 all references
10354 \begin_inset Quotes erd
10355 \end_inset
10356
10357 .
10358  This might be useful if you would like to separate your bibliography into
10359  three sections: 
10360 \begin_inset Quotes eld
10361 \end_inset
10362
10363 Cited sources
10364 \begin_inset Quotes erd
10365 \end_inset
10366
10367
10368 \begin_inset Quotes eld
10369 \end_inset
10370
10371 Uncited sources
10372 \begin_inset Quotes erd
10373 \end_inset
10374
10375 , and 
10376 \begin_inset Quotes eld
10377 \end_inset
10378
10379 Scientific works
10380 \begin_inset Quotes erd
10381 \end_inset
10382
10383 .
10384  The titles for the sections can be added as ordinary sections or subsections.
10385  Since 
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390 bibtopic
10391 \end_layout
10392
10393 \end_inset
10394
10395  removes the bibliography title, you have to manually re-add that, too (as
10396  a chapter* or section*, for instance).
10397 \end_layout
10398
10399 \begin_layout Standard
10400 With 
10401 \family sans
10402 Biblatex
10403 \family default
10404 , the procedure is a bit different.
10405  Since 
10406 \family typewriter
10407 bibtopic
10408 \family default
10409  does not work with 
10410 \family sans
10411 Biblatex
10412 \family default
10413 , the aforementioned 
10414 \begin_inset Flex Noun
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 Subdivided bibliography
10419 \end_layout
10420
10421 \end_inset
10422
10423  option is disabled if you use 
10424 \family sans
10425 Biblatex
10426 \family default
10427 .
10428  However, 
10429 \family sans
10430 Biblatex
10431 \family default
10432  provides its own means to generate subdivided bibliographies.
10433  You can either add keywords to bibliography entries via the 
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 keywords
10439 \end_layout
10440
10441 \end_inset
10442
10443  entry option and then filter bibliography sections by keyword (by adding
10444  
10445 \begin_inset Flex Code
10446 status collapsed
10447
10448 \begin_layout Plain Layout
10449 keyword=mykeyword
10450 \end_layout
10451
10452 \end_inset
10453
10454  to the 
10455 \begin_inset Flex Noun
10456 status collapsed
10457
10458 \begin_layout Plain Layout
10459 Options
10460 \end_layout
10461
10462 \end_inset
10463
10464  field of the dialog that opens if you left-click on the 
10465 \begin_inset Flex Noun
10466 status collapsed
10467
10468 \begin_layout Plain Layout
10469 Biblatex Generated Bibliography
10470 \end_layout
10471
10472 \end_inset
10473
10474  button), or you can filter by entry types (such as 
10475 \emph on
10476 book
10477 \emph default
10478  or 
10479 \emph on
10480 article
10481 \emph default
10482 ) by entering e.
10483 \begin_inset space \thinspace{}
10484 \end_inset
10485
10486 g.
10487  
10488 \begin_inset Flex Code
10489 status collapsed
10490
10491 \begin_layout Plain Layout
10492 type=book
10493 \end_layout
10494
10495 \end_inset
10496
10497  or 
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 nottype=collection
10503 \end_layout
10504
10505 \end_inset
10506
10507  to the mentioned 
10508 \begin_inset Flex Noun
10509 status collapsed
10510
10511 \begin_layout Plain Layout
10512 Options
10513 \end_layout
10514
10515 \end_inset
10516
10517  field, or you can create so-called 
10518 \begin_inset Quotes eld
10519 \end_inset
10520
10521 Bibliography Categories
10522 \begin_inset Quotes erd
10523 \end_inset
10524
10525  to which you can assign individual entries.
10526  Please refer to the Biblatex manual, section 
10527 \emph on
10528 Subdivided Bibliographies
10529 \emph default
10530 , for details.
10531 \end_layout
10532
10533 \begin_layout Subsection
10534 Multiple Bibliographies
10535 \begin_inset CommandInset label
10536 LatexCommand label
10537 name "subsec:Multiple-Bibliographies"
10538
10539 \end_inset
10540
10541
10542 \end_layout
10543
10544 \begin_layout Standard
10545 Multiple bibliographies, e.
10546 \begin_inset space \thinspace{}
10547 \end_inset
10548
10549 g.
10550 \begin_inset space \space{}
10551 \end_inset
10552
10553 a bibliography for each part, chapter, section, subsection or child (sub-documen
10554 t) of the document, are also supported by \SpecialChar LyX
10555 .
10556  In order to enable it, go to 
10557 \begin_inset Flex Noun
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561 Document\SpecialChar menuseparator
10562 Settings\SpecialChar menuseparator
10563 Bibliography
10564 \end_layout
10565
10566 \end_inset
10567
10568  and select the relevant unit (e.
10569 \begin_inset space \thinspace{}
10570 \end_inset
10571
10572 g., 
10573 \begin_inset Quotes eld
10574 \end_inset
10575
10576 per section
10577 \begin_inset Quotes erd
10578 \end_inset
10579
10580 ) in the 
10581 \begin_inset Flex Noun
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 Multiple Bibliographies
10586 \end_layout
10587
10588 \end_inset
10589
10590  combo box.
10591  Then add a Bib(la)\SpecialChar TeX
10592  bibliography to each unit (e.
10593 \begin_inset space \thinspace{}
10594 \end_inset
10595
10596 g., section) of your document.
10597  In the output, a separate bibliography, containing only the references
10598  done in the current unit is generated.
10599 \end_layout
10600
10601 \begin_layout Standard
10602 If you use Bib\SpecialChar TeX
10603 , either the 
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608 chapterbib
10609 \end_layout
10610
10611 \end_inset
10612
10613  or the 
10614 \begin_inset Flex Code
10615 status collapsed
10616
10617 \begin_layout Plain Layout
10618 bibtopic
10619 \end_layout
10620
10621 \end_inset
10622
10623  package is used to create multiple bibliographies.
10624  The former package is used if you select 
10625 \begin_inset Quotes eld
10626 \end_inset
10627
10628 per child document
10629 \begin_inset Quotes erd
10630 \end_inset
10631
10632  and do 
10633 \emph on
10634 not
10635 \emph default
10636  check 
10637 \begin_inset Flex Noun
10638 status collapsed
10639
10640 \begin_layout Plain Layout
10641 Sectioned Bibliography
10642 \end_layout
10643
10644 \end_inset
10645
10646 .
10647  In all other cases, 
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 bibtopic
10653 \end_layout
10654
10655 \end_inset
10656
10657  is used.
10658 \begin_inset Foot
10659 status collapsed
10660
10661 \begin_layout Plain Layout
10662 An alternative approach, if you are willing to use some 
10663 \begin_inset Flex Noun
10664 status collapsed
10665
10666 \begin_layout Plain Layout
10667 \SpecialChar TeX
10668  Code
10669 \end_layout
10670
10671 \end_inset
10672
10673  (see section
10674 \begin_inset space ~
10675 \end_inset
10676
10677
10678 \begin_inset CommandInset ref
10679 LatexCommand ref
10680 reference "sec:Inserting-TeX-Code"
10681
10682 \end_inset
10683
10684 ), is to use the 
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 bibunits
10690 \end_layout
10691
10692 \end_inset
10693
10694  package.
10695 \end_layout
10696
10697 \end_inset
10698
10699  If 
10700 \begin_inset Flex Code
10701 status collapsed
10702
10703 \begin_layout Plain Layout
10704 bibtopic
10705 \end_layout
10706
10707 \end_inset
10708
10709  is used, \SpecialChar LyX
10710  encloses the specified units in 
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 bibtopic
10716 \end_layout
10717
10718 \end_inset
10719
10720 's 
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725
10726 \backslash
10727 begin{btUnit}
10728 \end_layout
10729
10730 \end_inset
10731
10732  and 
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737
10738 \backslash
10739 end{btUnit}
10740 \end_layout
10741
10742 \end_inset
10743
10744  in order to create the units.
10745  Note that this approach has some limitations.
10746  First, every citation reference has to be inside some 
10747 \begin_inset Flex Code
10748 status collapsed
10749
10750 \begin_layout Plain Layout
10751 btUnit
10752 \end_layout
10753
10754 \end_inset
10755
10756 .
10757  So citations outside a defined unit (e.
10758 \begin_inset space \thinspace{}
10759 \end_inset
10760
10761 g., before the first section if you use 
10762 \begin_inset Quotes eld
10763 \end_inset
10764
10765 by section
10766 \begin_inset Quotes erd
10767 \end_inset
10768
10769 ) will appear as 
10770 \begin_inset Quotes eld
10771 \end_inset
10772
10773 ???
10774 \begin_inset Quotes erd
10775 \end_inset
10776
10777 .
10778  You can also create your own units by entering 
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783
10784 \backslash
10785 begin{btUnit}
10786 \end_layout
10787
10788 \end_inset
10789
10790  and 
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795
10796 \backslash
10797 end{btUnit}
10798 \end_layout
10799
10800 \end_inset
10801
10802  as \SpecialChar TeX
10803  code (for instance to work around the mentioned limitation).
10804  Note, though, that 
10805 \begin_inset Flex Code
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 btUnit
10810 \end_layout
10811
10812 \end_inset
10813
10814 s cannot be nested.
10815  A second limitation is that 
10816 \begin_inset Flex Code
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 bibtopic
10821 \end_layout
10822
10823 \end_inset
10824
10825  always processes all references of a bibliography database, even if they
10826  are not cited.
10827  This can result in odd labels (e.
10828 \begin_inset space \thinspace{}
10829 \end_inset
10830
10831 g.
10832  
10833 \begin_inset Quotes eld
10834 \end_inset
10835
10836 Miller 2014b
10837 \begin_inset Quotes erd
10838 \end_inset
10839
10840  if two works of this author from 2014 are in the database, even if only
10841  one is cited).
10842 \end_layout
10843
10844 \begin_layout Standard
10845 If you use 
10846 \family sans
10847 Biblatex
10848 \family default
10849 , the 
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 refsection
10855 \end_layout
10856
10857 \end_inset
10858
10859  option is used instead.
10860  If you need specific units, you can start them with the \SpecialChar TeX
10861  code 
10862 \begin_inset Flex Code
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866
10867 \backslash
10868 newrefsection
10869 \end_layout
10870
10871 \end_inset
10872
10873  or 
10874 \begin_inset Flex Code
10875 status collapsed
10876
10877 \begin_layout Plain Layout
10878
10879 \backslash
10880 newrefsegment
10881 \end_layout
10882
10883 \end_inset
10884
10885 , respectively.
10886  If you also want to control the end of the unit, use the environment 
10887 \begin_inset Flex Code
10888 status collapsed
10889
10890 \begin_layout Plain Layout
10891
10892 \backslash
10893 begin{refsection}
10894 \end_layout
10895
10896 \end_inset
10897
10898  \SpecialChar ldots
10899  
10900 \begin_inset Flex Code
10901 status collapsed
10902
10903 \begin_layout Plain Layout
10904
10905 \backslash
10906 end{refsection}
10907 \end_layout
10908
10909 \end_inset
10910
10911  instead.
10912  Note, though, that 
10913 \begin_inset Flex Code
10914 status collapsed
10915
10916 \begin_layout Plain Layout
10917 refsection
10918 \end_layout
10919
10920 \end_inset
10921
10922 s cannot be nested.
10923  In addition to the individual bibliography of the current unit, 
10924 \family sans
10925 Biblatex
10926 \family default
10927  also provides an easy way to output all bibliographies, subsequently, at
10928  one place (e.
10929 \begin_inset space \thinspace{}
10930 \end_inset
10931
10932 g., at the end of the document).
10933  Select 
10934 \begin_inset Quotes eld
10935 \end_inset
10936
10937 all reference units
10938 \begin_inset Quotes erd
10939 \end_inset
10940
10941  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
10942  this.
10943  Please refer to the 
10944 \family sans
10945 Biblatex
10946 \family default
10947  manual for more information on this topic.
10948 \end_layout
10949
10950 \begin_layout Section
10951 Multipart Documents
10952 \end_layout
10953
10954 \begin_layout Subsection
10955 General Operation
10956 \end_layout
10957
10958 \begin_layout Standard
10959 When you are working on a large file with many sections, it is often convenient
10960  to break up the document into several files, or perhaps you have something
10961  where a table may change from time to time, but the preceding text does
10962  not.
10963  In these cases, you should seriously consider using multipart documents.
10964  For example, scientific papers often have five major sections: the introduction
10965 , observations, results, discussion, and conclusion.
10966  Each of these could be its own separate \SpecialChar LyX
10967  file, with one 
10968 \begin_inset Quotes eld
10969 \end_inset
10970
10971 master
10972 \begin_inset Quotes erd
10973 \end_inset
10974
10975  file which contains the title, authors, abstract, references, etc., plus
10976  the five included files.
10977  It is important to note that each of these files is a full \SpecialChar LyX
10978  file which
10979  can be formatted and printed on its own, as well as included in a master
10980  file.
10981  Each of these files must have the same document class, however—don't attempt
10982  to mix book classes with article classes.
10983  You may also include \SpecialChar LaTeX
10984  files; however, these files must not have their own
10985  preamble (i.
10986 \begin_inset space \thinspace{}
10987 \end_inset
10988
10989 e.
10990 \begin_inset space \space{}
10991 \end_inset
10992
10993 everything up to and including the 
10994 \begin_inset Flex Code
10995 status collapsed
10996
10997 \begin_layout Plain Layout
10998
10999 \backslash
11000 begin{document}
11001 \end_layout
11002
11003 \end_inset
11004
11005  line as well as the 
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010
11011 \backslash
11012 end{document}
11013 \end_layout
11014
11015 \end_inset
11016
11017  line must be deleted) or else errors will be generated when you try to
11018  make a DVI file.
11019 \end_layout
11020
11021 \begin_layout Standard
11022 \SpecialChar LyX
11023  allows you to include files quite easily with 
11024 \begin_inset Flex Noun
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 Insert\SpecialChar menuseparator
11029 Child
11030 \begin_inset space ~
11031 \end_inset
11032
11033 Document
11034 \end_layout
11035
11036 \end_inset
11037
11038 .
11039  When you click on this selection a small box is inserted into the file
11040  at the current cursor location.
11041  Clicking on the box raises a dialog which allows you to select the file
11042  to be included, and the method of its inclusion.
11043  
11044 \end_layout
11045
11046 \begin_layout Standard
11047 The file selection box should by now be obvious.
11048  The three inclusion methods are 
11049 \begin_inset Quotes eld
11050 \end_inset
11051
11052 include
11053 \begin_inset Quotes erd
11054 \end_inset
11055
11056
11057 \begin_inset Quotes eld
11058 \end_inset
11059
11060 input
11061 \begin_inset Quotes erd
11062 \end_inset
11063
11064 , and 
11065 \begin_inset Quotes eld
11066 \end_inset
11067
11068 verbatim
11069 \begin_inset Quotes erd
11070 \end_inset
11071
11072 .
11073  The methods 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077 include
11078 \begin_inset Quotes erd
11079 \end_inset
11080
11081  and 
11082 \begin_inset Quotes eld
11083 \end_inset
11084
11085 input
11086 \begin_inset Quotes erd
11087 \end_inset
11088
11089  are similar in many ways, but there are also some notable differences:
11090 \end_layout
11091
11092 \begin_layout Enumerate
11093 Files that are 
11094 \begin_inset Quotes eld
11095 \end_inset
11096
11097 included
11098 \begin_inset Quotes erd
11099 \end_inset
11100
11101  are typeset beginning on a new page, while files that are 
11102 \begin_inset Quotes eld
11103 \end_inset
11104
11105 inputted
11106 \begin_inset Quotes erd
11107 \end_inset
11108
11109  are typeset starting on the current page.
11110 \end_layout
11111
11112 \begin_layout Enumerate
11113 \begin_inset Quotes eld
11114 \end_inset
11115
11116 Included
11117 \begin_inset Quotes erd
11118 \end_inset
11119
11120  files cannot themselves 
11121 \begin_inset Quotes eld
11122 \end_inset
11123
11124 include
11125 \begin_inset Quotes erd
11126 \end_inset
11127
11128  further files (
11129 \begin_inset Quotes eld
11130 \end_inset
11131
11132 grandchilds
11133 \begin_inset Quotes erd
11134 \end_inset
11135
11136 ).
11137  With 
11138 \begin_inset Quotes eld
11139 \end_inset
11140
11141 input
11142 \begin_inset Quotes erd
11143 \end_inset
11144
11145 , on the other hand, infinite sub-inputting is possible.
11146 \end_layout
11147
11148 \begin_layout Enumerate
11149 \begin_inset Quotes eld
11150 \end_inset
11151
11152 Include
11153 \begin_inset Quotes erd
11154 \end_inset
11155
11156  allow for the output of only selected 
11157 \begin_inset Quotes eld
11158 \end_inset
11159
11160 included
11161 \begin_inset Quotes erd
11162 \end_inset
11163
11164  files, while maintaining the actual counters (pagination etc.) and references
11165  (please refer to the section 
11166 \emph on
11167 Child
11168 \begin_inset space ~
11169 \end_inset
11170
11171 Documents
11172 \emph default
11173  of the 
11174 \emph on
11175 Embedded
11176 \begin_inset space ~
11177 \end_inset
11178
11179 Objects
11180 \emph default
11181  manual for details).
11182 \end_layout
11183
11184 \begin_layout Standard
11185 Hence, 
11186 \begin_inset Quotes eld
11187 \end_inset
11188
11189 include
11190 \begin_inset Quotes erd
11191 \end_inset
11192
11193  is the preferred method for chapters that are outsourced to child documents,
11194  while 
11195 \begin_inset Quotes eld
11196 \end_inset
11197
11198 input
11199 \begin_inset Quotes erd
11200 \end_inset
11201
11202  is more suitable for arbitrary file inheritance.
11203 \end_layout
11204
11205 \begin_layout Standard
11206
11207 \begin_inset Quotes eld
11208 \end_inset
11209
11210 verbatim
11211 \begin_inset Quotes erd
11212 \end_inset
11213
11214  included file allows you to include a file typeset exactly as it appears
11215  in the file, i.
11216 \begin_inset space \thinspace{}
11217 \end_inset
11218
11219 e.
11220 \begin_inset space \space{}
11221 \end_inset
11222
11223 in 
11224 \begin_inset Flex Code
11225 status collapsed
11226
11227 \begin_layout Plain Layout
11228 verbatim
11229 \end_layout
11230
11231 \end_inset
11232
11233  mode, with the characters set in a fixed-width typewriter font.
11234  Normally, spaces in this file are invisible, though two consecutive spaces
11235  are conserved, unlike \SpecialChar LyX
11236 's normal treatment of spaces.
11237  However, setting the 
11238 \begin_inset Flex Noun
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242 Mark
11243 \begin_inset space ~
11244 \end_inset
11245
11246 spaces
11247 \begin_inset space ~
11248 \end_inset
11249
11250 in
11251 \begin_inset space ~
11252 \end_inset
11253
11254 output
11255 \end_layout
11256
11257 \end_inset
11258
11259  checkbox typesets a mark to unambiguously define the presence of a space.
11260  
11261 \end_layout
11262
11263 \begin_layout Standard
11264 Generally, the master file is converted into a full \SpecialChar LaTeX
11265  file before typesetting,
11266  while the included files are converted to \SpecialChar LaTeX
11267  files that do not have all the
11268  preamble information.
11269 \end_layout
11270
11271 \begin_layout Subsection
11272 Cross-References Between Files
11273 \end_layout
11274
11275 \begin_layout Standard
11276 \begin_inset Box Shadowbox
11277 position "t"
11278 hor_pos "c"
11279 has_inner_box 1
11280 inner_pos "t"
11281 use_parbox 0
11282 use_makebox 0
11283 width "100col%"
11284 special "none"
11285 height "1in"
11286 height_special "totalheight"
11287 thickness "0.4pt"
11288 separation "3pt"
11289 shadowsize "4pt"
11290 framecolor "black"
11291 backgroundcolor "none"
11292 status open
11293
11294 \begin_layout Plain Layout
11295 This section is somewhat out of date.
11296  Need to describe default master documents and how children are opened when
11297  the master is.
11298  [[FIXME]]
11299 \end_layout
11300
11301 \end_inset
11302
11303
11304 \end_layout
11305
11306 \begin_layout Standard
11307 It is possible to set up cross-references between the different files.
11308  First, open all the files in question: let's call them A and B in a two
11309  file example, where B is included in A.
11310  Let's say you insert a label in A, then want to reference it in B.
11311  Open the cross-reference dialog whilst in document B, and you can select
11312  the 
11313 \begin_inset Quotes eld
11314 \end_inset
11315
11316 buffer
11317 \begin_inset Quotes erd
11318 \end_inset
11319
11320  to use.
11321 \end_layout
11322
11323 \begin_layout Subsection
11324 Bibliography Lists in all Subdocuments
11325 \end_layout
11326
11327 \begin_layout Standard
11328 If you work with child documents, you might want to have only one main bibliogra
11329 phy at the end, but still be able to have a selected bibliography for the
11330  child if you output it on its own.
11331  Here is how to achieve this.
11332 \end_layout
11333
11334 \begin_layout Standard
11335 For the main document, you just insert a bibliography inset at the place
11336  where the main bibliography has to appear (within the master file or within
11337  a child).
11338  If the bibliography inset is in the master file, the references will be
11339  inherited by all children, so they are available in the citation dialog
11340  within each child.
11341 \end_layout
11342
11343 \begin_layout Standard
11344 For child-specific bibliographies, insert bibliography insets within the
11345  child documents, at the place where the bibliography should appear when
11346  the child is compiled separately.
11347  However, the trick is to insert them into a branch (
11348 \family sans
11349 Insert\SpecialChar menuseparator
11350 Branch\SpecialChar menuseparator
11351 Insert New Branch...
11352 \family default
11353 ), e.
11354 \begin_inset space \thinspace{}
11355 \end_inset
11356
11357 g.
11358  called 
11359 \begin_inset Quotes eld
11360 \end_inset
11361
11362 Childonly
11363 \begin_inset Quotes erd
11364 \end_inset
11365
11366 .
11367  Within the children, activate the branch (
11368 \family sans
11369 Document\SpecialChar menuseparator
11370 Settings...\SpecialChar menuseparator
11371 Branches
11372 \family default
11373 ).
11374  Within the master, deactivate the branch (
11375 \family sans
11376 Document\SpecialChar menuseparator
11377 Settings...\SpecialChar menuseparator
11378 Branches
11379 \family default
11380 ).
11381  Now the child's bibliography will be ignored by the master, but considered
11382  by the child.
11383 \end_layout
11384
11385 \begin_layout Standard
11386 If you need multiple bibliographies (e.
11387 \begin_inset space \thinspace{}
11388 \end_inset
11389
11390 g., one per child in the 
11391 \emph on
11392 main document
11393 \emph default
11394 ), please refer to sec.
11395 \begin_inset space ~
11396 \end_inset
11397
11398
11399 \begin_inset CommandInset ref
11400 LatexCommand ref
11401 reference "subsec:Multiple-Bibliographies"
11402
11403 \end_inset
11404
11405 .
11406 \end_layout
11407
11408 \begin_layout Section
11409 \SpecialChar LyX
11410  Archives
11411 \end_layout
11412
11413 \begin_layout Standard
11414 Users sometimes need to be able to 
11415 \begin_inset Quotes eld
11416 \end_inset
11417
11418 bundle
11419 \begin_inset Quotes erd
11420 \end_inset
11421
11422  a \SpecialChar LyX
11423  file together with all the images (and other files) on which it depends,
11424  either for sending to a publisher or for sharing with a co-author.
11425  \SpecialChar LyX
11426  includes a Python script (
11427 \begin_inset Flex Code
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 lyxpak.py
11432 \end_layout
11433
11434 \end_inset
11435
11436 ) that automates this process.
11437  To use it, you must have either the 
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442 zipfile
11443 \end_layout
11444
11445 \end_inset
11446
11447  or 
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 tarfile
11453 \end_layout
11454
11455 \end_inset
11456
11457  python modules installed on your system.
11458  By default, the script prefers the 
11459 \begin_inset Flex Code
11460 status collapsed
11461
11462 \begin_layout Plain Layout
11463 gzip
11464 \end_layout
11465
11466 \end_inset
11467
11468 -compressed 
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 tar
11474 \end_layout
11475
11476 \end_inset
11477
11478  format on Unix-like systems and the 
11479 \begin_inset Flex Code
11480 status collapsed
11481
11482 \begin_layout Plain Layout
11483 zip
11484 \end_layout
11485
11486 \end_inset
11487
11488  format on Windows.
11489 \end_layout
11490
11491 \begin_layout Standard
11492 \SpecialChar LyX
11493 's configuration process will set the script up to export a `\SpecialChar LyX
11494  Archive',
11495  and this format will then be available under 
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 File\SpecialChar menuseparator
11501 Export
11502 \end_layout
11503
11504 \end_inset
11505
11506 .
11507 \end_layout
11508
11509 \begin_layout Standard
11510 Independently of the platform, the generation of a particular archive format
11511  can be forced by adding either the 
11512 \begin_inset Flex Code
11513 status collapsed
11514
11515 \begin_layout Plain Layout
11516 -t
11517 \end_layout
11518
11519 \end_inset
11520
11521  (for the 
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 tar
11527 \end_layout
11528
11529 \end_inset
11530
11531  format) or 
11532 \begin_inset Flex Code
11533 status collapsed
11534
11535 \begin_layout Plain Layout
11536 -z
11537 \end_layout
11538
11539 \end_inset
11540
11541  (for the 
11542 \begin_inset Flex Code
11543 status collapsed
11544
11545 \begin_layout Plain Layout
11546 zip
11547 \end_layout
11548
11549 \end_inset
11550
11551  format) switch to the 
11552 \begin_inset Flex Code
11553 status collapsed
11554
11555 \begin_layout Plain Layout
11556 \SpecialChar LyX
11557 \SpecialChar menuseparator
11558 \SpecialChar LyX
11559  Archive
11560 \end_layout
11561
11562 \end_inset
11563
11564  converter in 
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569 Tools\SpecialChar menuseparator
11570 Preferences\SpecialChar menuseparator
11571 File Handling\SpecialChar menuseparator
11572 Converters
11573 \end_layout
11574
11575 \end_inset
11576
11577 .
11578  (Make sure you add the switch after the script name, not before it.)
11579 \end_layout
11580
11581 \begin_layout Section
11582 Fancy Headers and Footers
11583 \end_layout
11584
11585 \begin_layout Standard
11586 The default page layout is rather plain; for an 
11587 \begin_inset Flex Code
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591 article
11592 \end_layout
11593
11594 \end_inset
11595
11596  document class, all you get is a centered page number at the bottom of
11597  the page.
11598  This document uses KOMA-script's book class, so it appears to be a bit
11599  fancier.
11600  But to really put on a show, you need to set the document page style to
11601  
11602 \begin_inset Quotes eld
11603 \end_inset
11604
11605 fancy
11606 \begin_inset Quotes erd
11607 \end_inset
11608
11609 , as mentioned in the 
11610 \emph on
11611 User Guide
11612 \emph default
11613 .
11614  This section describes the \SpecialChar LaTeX
11615  code you need to insert in your \SpecialChar LaTeX
11616  preamble in
11617  order to get the desired effects.
11618 \end_layout
11619
11620 \begin_layout Standard
11621 For more information on fancy headers, see the 
11622 \begin_inset Flex Code
11623 status collapsed
11624
11625 \begin_layout Plain Layout
11626 fancyhdr
11627 \end_layout
11628
11629 \end_inset
11630
11631  package documentation.
11632  (
11633 \begin_inset Flex URL
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637
11638 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
11639 \end_layout
11640
11641 \end_inset
11642
11643 )
11644 \end_layout
11645
11646 \begin_layout Standard
11647 The page header is divided into three fields, not surprisingly labeled 
11648 \begin_inset Quotes eld
11649 \end_inset
11650
11651 left
11652 \begin_inset Quotes erd
11653 \end_inset
11654
11655
11656 \begin_inset Quotes eld
11657 \end_inset
11658
11659 center
11660 \begin_inset Quotes erd
11661 \end_inset
11662
11663 , and 
11664 \begin_inset Quotes eld
11665 \end_inset
11666
11667 right
11668 \begin_inset Quotes erd
11669 \end_inset
11670
11671 .
11672  The footer is also divided into these three fields.
11673  The \SpecialChar LaTeX
11674  commands to set these fields in the simplest manner are 
11675 \begin_inset Flex Code
11676 status collapsed
11677
11678 \begin_layout Plain Layout
11679
11680 \backslash
11681 lhead
11682 \end_layout
11683
11684 \end_inset
11685
11686
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691
11692 \backslash
11693 chead
11694 \end_layout
11695
11696 \end_inset
11697
11698
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703
11704 \backslash
11705 rhead
11706 \end_layout
11707
11708 \end_inset
11709
11710
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715
11716 \backslash
11717 lfoot
11718 \end_layout
11719
11720 \end_inset
11721
11722 , etc.
11723  Suppose you wish to put your name in the upper left hand corner of each
11724  page.
11725  Simply insert the following command in the preamble: 
11726 \end_layout
11727
11728 \begin_layout Standard
11729
11730 \family typewriter
11731
11732 \backslash
11733 lhead{John Q.
11734  DocWriter}
11735 \end_layout
11736
11737 \begin_layout Standard
11738 You will now see your name in the upper left.
11739  If a field has a default entry that you would like to get rid of (often
11740  the page number appears in the central footer) simply include a command
11741  with a blank argument, e.
11742 \begin_inset space \thinspace{}
11743 \end_inset
11744
11745 g.:
11746 \end_layout
11747
11748 \begin_layout Standard
11749
11750 \family typewriter
11751
11752 \backslash
11753 cfoot{}
11754 \end_layout
11755
11756 \begin_layout Standard
11757 Let's get really fancy: lets put the section number with the word 
11758 \begin_inset Quotes eld
11759 \end_inset
11760
11761 Section
11762 \begin_inset Quotes erd
11763 \end_inset
11764
11765  (e.
11766 \begin_inset space \thinspace{}
11767 \end_inset
11768
11769 g.
11770 \begin_inset space \space{}
11771 \end_inset
11772
11773 Section 3) in the upper left, the page number (e.
11774 \begin_inset space \thinspace{}
11775 \end_inset
11776
11777 g.
11778 \begin_inset space \space{}
11779 \end_inset
11780
11781 Page 4) in the upper right, your name in the lower left, and the date in
11782  the lower right.
11783  The following commands should now appear in the preamble:
11784 \end_layout
11785
11786 \begin_layout Standard
11787
11788 \family typewriter
11789
11790 \backslash
11791 lhead{Section 
11792 \backslash
11793 thesection}
11794 \end_layout
11795
11796 \begin_layout Standard
11797
11798 \family typewriter
11799
11800 \backslash
11801 chead{}
11802 \end_layout
11803
11804 \begin_layout Standard
11805
11806 \family typewriter
11807
11808 \backslash
11809 rhead{Page 
11810 \backslash
11811 thepage}
11812 \end_layout
11813
11814 \begin_layout Standard
11815
11816 \family typewriter
11817
11818 \backslash
11819 lfoot{John Q.
11820  DocWriter}
11821 \end_layout
11822
11823 \begin_layout Standard
11824
11825 \family typewriter
11826
11827 \backslash
11828 cfoot{}
11829 \end_layout
11830
11831 \begin_layout Standard
11832
11833 \family typewriter
11834
11835 \backslash
11836 rfoot{
11837 \backslash
11838 today}
11839 \end_layout
11840
11841 \begin_layout Standard
11842 The commands 
11843 \begin_inset Flex Code
11844 status collapsed
11845
11846 \begin_layout Plain Layout
11847
11848 \backslash
11849 thesection
11850 \end_layout
11851
11852 \end_inset
11853
11854  and 
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859
11860 \backslash
11861 thepage
11862 \end_layout
11863
11864 \end_inset
11865
11866  access \SpecialChar LaTeX
11867 's section and page counters, and so print out the current section
11868  and page number.
11869  
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874
11875 \backslash
11876 today
11877 \end_layout
11878
11879 \end_inset
11880
11881  simply prints out today's date.
11882 \end_layout
11883
11884 \begin_layout Standard
11885 The thicknesses of the horizontal rules drawn beneath the header and above
11886  the footer can also be modified.
11887  If you don't want one of the rules, set its thickness to 0.
11888  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
11889  Use commands
11890 \family typewriter
11891  
11892 \family default
11893 like 
11894 \begin_inset Flex Code
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898
11899 \backslash
11900 renewcommand{
11901 \backslash
11902 headrulewidth}{0.4pt}
11903 \end_layout
11904
11905 \end_inset
11906
11907  and 
11908 \begin_inset Flex Code
11909 status collapsed
11910
11911 \begin_layout Plain Layout
11912
11913 \backslash
11914 renewcommand{
11915 \backslash
11916 footrulewidth}{0.4pt}
11917 \end_layout
11918
11919 \end_inset
11920
11921  to set the thicknesses.
11922 \end_layout
11923
11924 \begin_layout Standard
11925 You can switch the header/footer settings on and off for individual pages
11926  using commands like 
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931
11932 \backslash
11933 thispagestyle{empty}
11934 \end_layout
11935
11936 \end_inset
11937
11938
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943
11944 \backslash
11945 thispagestyle{plain}
11946 \end_layout
11947
11948 \end_inset
11949
11950 , and 
11951 \begin_inset Flex Code
11952 status collapsed
11953
11954 \begin_layout Plain Layout
11955
11956 \backslash
11957 thispagestyle{fancy}
11958 \end_layout
11959
11960 \end_inset
11961
11962 .
11963  Simply insert them in the text on the page you want changed and mark them
11964  as \SpecialChar TeX
11965  code.
11966  In fact, title pages are marked as plain by default, while following pages
11967  are marked fancy when using the global fancy setting.
11968 \end_layout
11969
11970 \begin_layout Standard
11971 As a final example, it is possible to include an image in the header or
11972  footer.
11973  Suppose you want to put a company logo in the upper lefthand corner.
11974  You might try something like
11975 \end_layout
11976
11977 \begin_layout Standard
11978
11979 \family typewriter
11980
11981 \backslash
11982 lhead{
11983 \backslash
11984 resizebox{1in}{!}{
11985 \backslash
11986 includegraphics{logo.eps}}}
11987 \end_layout
11988
11989 \begin_layout Standard
11990 \noindent
11991 (you may need to preface this with 
11992 \begin_inset Flex Code
11993 status collapsed
11994
11995 \begin_layout Plain Layout
11996
11997 \backslash
11998 usepackage{graphics}
11999 \end_layout
12000
12001 \end_inset
12002
12003  if you don't include graphics elsewhere in your document).
12004 \end_layout
12005
12006 \begin_layout Section
12007 Itemize Bullet Selection
12008 \begin_inset CommandInset label
12009 LatexCommand label
12010 name "sec:bullet"
12011
12012 \end_inset
12013
12014
12015 \end_layout
12016
12017 \begin_layout Standard
12018 by
12019 \noun on
12020  Allan Rae
12021 \end_layout
12022
12023 \begin_layout Subsection
12024 Introduction
12025 \end_layout
12026
12027 \begin_layout Standard
12028 \SpecialChar LyX
12029  provides 216 bullet shapes that can be accessed from a simple dialog.
12030  Using this dialog you can easily specify what bullet shape to use at each
12031  level of an itemized list.
12032  These settings are document-wide so you won't be able to specify different
12033  sets of bullets for different paragraphs.
12034 \begin_inset Foot
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038 Well, actually you can but you'll have to do it by hand.
12039 \end_layout
12040
12041 \end_inset
12042
12043
12044 \end_layout
12045
12046 \begin_layout Subsection
12047 How it looks
12048 \end_layout
12049
12050 \begin_layout Standard
12051 Open the dialog by selecting the 
12052 \begin_inset Flex Noun
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 Document\SpecialChar menuseparator
12057 Settings
12058 \end_layout
12059
12060 \end_inset
12061
12062  menu item and then select the 
12063 \begin_inset Flex Noun
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 Bullets
12068 \end_layout
12069
12070 \end_inset
12071
12072  tab.
12073 \end_layout
12074
12075 \begin_layout Standard
12076 The dialog provides you with a table of bullet shapes.
12077  A column of buttons on the left of the table provides access to the six
12078  different panels of bullet shapes.
12079  The row of buttons across the top is used to select which bullet depth
12080  you are changing.
12081
12082 \change_deleted 244031559 1603875981
12083  A text entry under the table shows the currently selected bullet shape's
12084  \SpecialChar LaTeX
12085  equivalent and this can be edited if desired.
12086  If you do modify the text you will also need to specify any needed packages
12087  in the \SpecialChar LaTeX
12088  preamble.
12089 \change_unchanged
12090
12091 \end_layout
12092
12093 \begin_layout Standard
12094 The six panels are divided up by the packages they require.
12095  The following table shows the mappings from button name to \SpecialChar LaTeX
12096  package.
12097 \end_layout
12098
12099 \begin_layout Standard
12100 \align center
12101 \begin_inset Tabular
12102 <lyxtabular version="3" rows="7" columns="2">
12103 <features tabularvalignment="middle">
12104 <column alignment="center" valignment="top" width="0pt">
12105 <column alignment="center" valignment="top" width="0pt">
12106 <row>
12107 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12108 \begin_inset Text
12109
12110 \begin_layout Plain Layout
12111
12112 \family roman
12113 \series medium
12114 \shape up
12115 \size normal
12116 \emph off
12117 \bar no
12118 \noun off
12119 \color none
12120 Button
12121 \end_layout
12122
12123 \end_inset
12124 </cell>
12125 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12126 \begin_inset Text
12127
12128 \begin_layout Plain Layout
12129
12130 \family roman
12131 \series medium
12132 \shape up
12133 \size normal
12134 \emph off
12135 \bar no
12136 \noun off
12137 \color none
12138 Packages Required
12139 \end_layout
12140
12141 \end_inset
12142 </cell>
12143 </row>
12144 <row>
12145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12146 \begin_inset Text
12147
12148 \begin_layout Plain Layout
12149
12150 \family sans
12151 \series medium
12152 \shape up
12153 \size normal
12154 \emph off
12155 \bar no
12156 \noun off
12157 \color none
12158 Standard
12159 \end_layout
12160
12161 \end_inset
12162 </cell>
12163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12164 \begin_inset Text
12165
12166 \begin_layout Plain Layout
12167
12168 \series medium
12169 \shape up
12170 \size normal
12171 \emph off
12172 \bar no
12173 \noun off
12174 \color none
12175 base \SpecialChar LaTeX
12176
12177 \end_layout
12178
12179 \end_inset
12180 </cell>
12181 </row>
12182 <row>
12183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12184 \begin_inset Text
12185
12186 \begin_layout Plain Layout
12187
12188 \family sans
12189 \series medium
12190 \shape up
12191 \size normal
12192 \emph off
12193 \bar no
12194 \noun off
12195 \color none
12196 Maths
12197 \end_layout
12198
12199 \end_inset
12200 </cell>
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12202 \begin_inset Text
12203
12204 \begin_layout Plain Layout
12205
12206 \family typewriter
12207 \series medium
12208 \shape up
12209 \size normal
12210 \emph off
12211 \bar no
12212 \noun off
12213 \color none
12214 amssymb.sty
12215 \end_layout
12216
12217 \end_inset
12218 </cell>
12219 </row>
12220 <row>
12221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12222 \begin_inset Text
12223
12224 \begin_layout Plain Layout
12225
12226 \family sans
12227 \series medium
12228 \shape up
12229 \size normal
12230 \emph off
12231 \bar no
12232 \noun off
12233 \color none
12234 Ding1
12235 \end_layout
12236
12237 \end_inset
12238 </cell>
12239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12240 \begin_inset Text
12241
12242 \begin_layout Plain Layout
12243
12244 \family typewriter
12245 \series medium
12246 \shape up
12247 \size normal
12248 \emph off
12249 \bar no
12250 \noun off
12251 \color none
12252 pifont.sty
12253 \end_layout
12254
12255 \end_inset
12256 </cell>
12257 </row>
12258 <row>
12259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12260 \begin_inset Text
12261
12262 \begin_layout Plain Layout
12263
12264 \family sans
12265 \series medium
12266 \shape up
12267 \size normal
12268 \emph off
12269 \bar no
12270 \noun off
12271 \color none
12272 Ding2
12273 \end_layout
12274
12275 \end_inset
12276 </cell>
12277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12278 \begin_inset Text
12279
12280 \begin_layout Plain Layout
12281
12282 \family typewriter
12283 \series medium
12284 \shape up
12285 \size normal
12286 \emph off
12287 \bar no
12288 \noun off
12289 \color none
12290 pifont.sty
12291 \end_layout
12292
12293 \end_inset
12294 </cell>
12295 </row>
12296 <row>
12297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12298 \begin_inset Text
12299
12300 \begin_layout Plain Layout
12301
12302 \family sans
12303 \series medium
12304 \shape up
12305 \size normal
12306 \emph off
12307 \bar no
12308 \noun off
12309 \color none
12310 Ding3
12311 \end_layout
12312
12313 \end_inset
12314 </cell>
12315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12316 \begin_inset Text
12317
12318 \begin_layout Plain Layout
12319
12320 \family typewriter
12321 \series medium
12322 \shape up
12323 \size normal
12324 \emph off
12325 \bar no
12326 \noun off
12327 \color none
12328 pifont.sty
12329 \end_layout
12330
12331 \end_inset
12332 </cell>
12333 </row>
12334 <row>
12335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12336 \begin_inset Text
12337
12338 \begin_layout Plain Layout
12339
12340 \family sans
12341 \series medium
12342 \shape up
12343 \size normal
12344 \emph off
12345 \bar no
12346 \noun off
12347 \color none
12348 Ding4
12349 \end_layout
12350
12351 \end_inset
12352 </cell>
12353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12354 \begin_inset Text
12355
12356 \begin_layout Plain Layout
12357
12358 \family typewriter
12359 \series medium
12360 \shape up
12361 \size normal
12362 \emph off
12363 \bar no
12364 \noun off
12365 \color none
12366 pifont.sty
12367 \end_layout
12368
12369 \end_inset
12370 </cell>
12371 </row>
12372 </lyxtabular>
12373
12374 \end_inset
12375
12376
12377 \end_layout
12378
12379 \begin_layout Standard
12380 \SpecialChar LyX
12381  doesn't stop you using bullets from packages you don't have.
12382  If you get errors from \SpecialChar LaTeX
12383  when you try to view or print the file, then it
12384  is likely you are missing a package.
12385 \begin_inset Foot
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 \SpecialChar LyX
12390  doesn't restrict your use since you may be editing locally and exporting
12391  elsewhere.
12392 \end_layout
12393
12394 \end_inset
12395
12396
12397 \end_layout
12398
12399 \begin_layout Subsection
12400 How to use it
12401 \end_layout
12402
12403 \begin_layout Standard
12404 Select which bullet depth you want to change then select the bullet shape
12405  and size.
12406  Any changes will not be visible in \SpecialChar LyX
12407 , but are visible when viewing the document.
12408 \end_layout
12409
12410 \begin_layout Standard
12411 You can reset a bullet shape to the default simply by clicking your right
12412  mouse button on the appropriate bullet depth button.
12413 \begin_inset Foot
12414 status open
12415
12416 \begin_layout Plain Layout
12417 If you 
12418 \emph on
12419 really
12420 \emph default
12421  want to have multiple sets of paragraphs with different sets of bullets
12422  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
12423  code.
12424  The bullet selection dialog can help though because it provides you with
12425  the \SpecialChar LaTeX
12426  code for a wide range of bullet shapes.
12427  To make your own custom paragraphs you have the following options:
12428 \end_layout
12429
12430 \begin_layout Plain Layout
12431 \begin_inset ERT
12432 status open
12433
12434 \begin_layout Plain Layout
12435
12436
12437 \backslash
12438 let
12439 \backslash
12440 savelabelitemi=
12441 \backslash
12442 labelitemi
12443 \end_layout
12444
12445 \end_inset
12446
12447
12448 \end_layout
12449
12450 \begin_layout Plain Layout
12451 \begin_inset ERT
12452 status open
12453
12454 \begin_layout Plain Layout
12455
12456
12457 \backslash
12458 renewcommand
12459 \backslash
12460 labelitemi[0]{
12461 \backslash
12462 small
12463 \backslash
12464 (
12465 \backslash
12466 sharp
12467 \backslash
12468 )}
12469 \end_layout
12470
12471 \end_inset
12472
12473
12474 \end_layout
12475
12476 \begin_layout Itemize
12477 Use the \SpecialChar LaTeX
12478  command 
12479 \begin_inset Flex Code
12480 status collapsed
12481
12482 \begin_layout Plain Layout
12483
12484 \backslash
12485 renewcommand{}{}
12486 \end_layout
12487
12488 \end_inset
12489
12490  to specify a new bullet shape for a given depth.
12491  You'll also need to save the current bullet shape so you can restore it
12492  again afterwards.
12493  In this itemized list the following \SpecialChar LaTeX
12494  code was used to change the bullet
12495  used for the first depth.
12496 \end_layout
12497
12498 \begin_deeper
12499 \begin_layout LyX-Code
12500
12501 \backslash
12502 let
12503 \backslash
12504 savelabelitemi=
12505 \backslash
12506 labelitemi 
12507 \end_layout
12508
12509 \begin_layout LyX-Code
12510
12511 \backslash
12512 renewcommand
12513 \backslash
12514 labelitemi[0]{
12515 \backslash
12516 small
12517 \backslash
12518 (
12519 \backslash
12520 sharp
12521 \backslash
12522 )}
12523 \end_layout
12524
12525 \end_deeper
12526 \begin_layout Itemize
12527 Note that the itemize depth is specified in Roman numerals as part of the
12528  
12529 \family typewriter
12530
12531 \backslash
12532 labelitem
12533 \family default
12534  command.
12535 \end_layout
12536
12537 \begin_layout Itemize
12538 \begin_inset Argument item:1
12539 status open
12540
12541 \begin_layout Plain Layout
12542 \begin_inset ERT
12543 status open
12544
12545 \begin_layout Plain Layout
12546
12547
12548 \backslash
12549 (
12550 \backslash
12551 star
12552 \backslash
12553 )
12554 \end_layout
12555
12556 \end_inset
12557
12558
12559 \end_layout
12560
12561 \end_inset
12562
12563  Specify each individual entry by starting each item with the bullet shape
12564  enclosed in a 
12565 \begin_inset Quotes eld
12566 \end_inset
12567
12568 Custom Item
12569 \begin_inset Quotes erd
12570 \end_inset
12571
12572  inset (available at 
12573 \family sans
12574 Insert\SpecialChar menuseparator
12575 Custom Item
12576 \family default
12577 ) and set as 
12578 \begin_inset Flex Noun
12579 status collapsed
12580
12581 \begin_layout Plain Layout
12582 \SpecialChar TeX
12583  Code
12584 \end_layout
12585
12586 \end_inset
12587
12588 .
12589  For example, this item was started with 
12590 \begin_inset Flex Code
12591 status collapsed
12592
12593 \begin_layout Plain Layout
12594
12595 \backslash
12596 (
12597 \backslash
12598 star
12599 \backslash
12600 )
12601 \end_layout
12602
12603 \end_inset
12604
12605 .
12606 \end_layout
12607
12608 \begin_layout Plain Layout
12609 \begin_inset ERT
12610 status open
12611
12612 \begin_layout Plain Layout
12613
12614
12615 \backslash
12616 renewcommand
12617 \backslash
12618 labelitemi[0]{
12619 \backslash
12620 savelabelitemi}
12621 \end_layout
12622
12623 \end_inset
12624
12625
12626 \end_layout
12627
12628 \begin_layout Plain Layout
12629 You'll also need to revert the labelitem back to its previous setting for
12630  the global bullet shape settings to remain in effect.
12631  The way used here was:
12632 \end_layout
12633
12634 \begin_layout LyX-Code
12635
12636 \backslash
12637 renewcommand
12638 \backslash
12639 labelitemi[0]{
12640 \backslash
12641 savelabelitemi}
12642 \end_layout
12643
12644 \end_inset
12645
12646
12647 \end_layout
12648
12649 \begin_layout Chapter
12650 \SpecialChar LyX
12651  and the World Wide Web
12652 \end_layout
12653
12654 \begin_layout Standard
12655 \SpecialChar LyX
12656  has long supported the export of documents to various web-friendly formats,
12657  such as HTML.
12658  Before version 2.0, however, HTML export was always accomplished by the
12659  use of external converters.
12660 \begin_inset Foot
12661 status collapsed
12662
12663 \begin_layout Plain Layout
12664 For details on the use of external converters with \SpecialChar LyX
12665 , see the 
12666 \emph on
12667 Converters
12668 \emph default
12669  section of the Customization manual.
12670 \end_layout
12671
12672 \end_inset
12673
12674  These fall into two large groups: there are converters that use \SpecialChar LaTeX
12675  as an
12676  intermediate format, such as 
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 htlatex
12682 \end_layout
12683
12684 \end_inset
12685
12686
12687 \begin_inset Flex Code
12688 status collapsed
12689
12690 \begin_layout Plain Layout
12691 html2latex
12692 \end_layout
12693
12694 \end_inset
12695
12696 , and 
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 plastex
12702 \end_layout
12703
12704 \end_inset
12705
12706 , relying upon \SpecialChar LyX
12707  to produce the \SpecialChar LaTeX
12708 ; and there is a converter that works directly
12709  on \SpecialChar LyX
12710  files, 
12711 \begin_inset Flex Code
12712 status collapsed
12713
12714 \begin_layout Plain Layout
12715 e\SpecialChar LyX
12716 er
12717 \end_layout
12718
12719 \end_inset
12720
12721 .
12722  All of these have different advantages and disadvantages.
12723  
12724 \end_layout
12725
12726 \begin_layout Standard
12727 The \SpecialChar LaTeX
12728 -based converters have the advantage that, in principle, they know everythin
12729 g about the exported document that \SpecialChar LaTeX
12730  does.
12731  Such converters do not care, for example, if a certain block of code was
12732  produced by \SpecialChar LyX
12733  or was Evil Red Text.
12734  These converters know about 
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 aux
12740 \end_layout
12741
12742 \end_inset
12743
12744  files, counters, and references, and can often make use of the 
12745 \begin_inset Flex Code
12746 status collapsed
12747
12748 \begin_layout Plain Layout
12749 bbl
12750 \end_layout
12751
12752 \end_inset
12753
12754  files generated by Bib\SpecialChar TeX
12755 .
12756  On the other hand, \SpecialChar LaTeX
12757  is a very hard language to parse—it is sometimes said
12758  that only \SpecialChar TeX
12759  itself understands \SpecialChar TeX
12760 —and \SpecialChar LaTeX
12761 -based converters will often choke on
12762  what seem to be quite simple constructs; complex ones can throw them completely
12763 , and as of this writing, for example, the 
12764 \emph on
12765 Embedded Objects
12766 \emph default
12767  manual will not export with 
12768 \begin_inset Flex Code
12769 status collapsed
12770
12771 \begin_layout Plain Layout
12772 htlatex
12773 \end_layout
12774
12775 \end_inset
12776
12777 , though the others will.
12778  The other issue concerns how math is handled.
12779  These converters typically convert the formulae into little pictures that
12780  are then linked from the HTML document.
12781  Since these are actually generated by \SpecialChar LaTeX
12782 , they are accurate.
12783  But they do not scale well, and just getting them to look as if they are
12784  actually meant to be in your document—so that the font sizes seem to be
12785  roughly the same—can be a challenge.
12786 \end_layout
12787
12788 \begin_layout Standard
12789 Alex Fernandez's 
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 e\SpecialChar LyX
12795 er
12796 \end_layout
12797
12798 \end_inset
12799
12800  (
12801 \begin_inset CommandInset href
12802 LatexCommand href
12803 name "http://pinchito.es/elyxer/"
12804 target "http://pinchito.es/elyxer/"
12805 literal "false"
12806
12807 \end_inset
12808
12809 ) solves some of these problems.
12810  In particular, the formulae it produces scale perfectly, since it renders
12811  math using a combination of HTML and CSS rather than converting the formulae
12812  to images.
12813  But even moderately complex formula are rendered less well than with 
12814 \begin_inset Flex Code
12815 status collapsed
12816
12817 \begin_layout Plain Layout
12818 htlatex
12819 \end_layout
12820
12821 \end_inset
12822
12823 ; this reflects the limitations of HTML.
12824 \begin_inset Foot
12825 status collapsed
12826
12827 \begin_layout Plain Layout
12828 That said, 
12829 \begin_inset Flex Code
12830 status collapsed
12831
12832 \begin_layout Plain Layout
12833 e\SpecialChar LyX
12834 er
12835 \end_layout
12836
12837 \end_inset
12838
12839  can also use jsMath and MathJax for equations, but this setting is only
12840  available globally and requires one to have access to a server that runs
12841  the backend.
12842 \end_layout
12843
12844 \end_inset
12845
12846  More importantly (as of version 1.1.1, at least), 
12847 \begin_inset Flex Code
12848 status collapsed
12849
12850 \begin_layout Plain Layout
12851 e\SpecialChar LyX
12852 er
12853 \end_layout
12854
12855 \end_inset
12856
12857  has limited support for math macros and no support for user-defined paragraph
12858  or character styles.
12859  These limitations make 
12860 \begin_inset Flex Code
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864 e\SpecialChar LyX
12865 er
12866 \end_layout
12867
12868 \end_inset
12869
12870  unsuitable for many of the documents \SpecialChar LyX
12871  users produce.
12872  In principle, of course, these problems could be solved, but the \SpecialChar LyX
12873  developers
12874  have decided to follow a different path and have made \SpecialChar LyX
12875  itself capable of
12876  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
12877 , DocBook, and plaintext.
12878 \end_layout
12879
12880 \begin_layout Standard
12881 As of this writing, XHTML output remains under development and should probably
12882  be regarded as 
12883 \begin_inset Quotes eld
12884 \end_inset
12885
12886 experimental
12887 \begin_inset Quotes erd
12888 \end_inset
12889
12890 .
12891 \begin_inset Foot
12892 status collapsed
12893
12894 \begin_layout Plain Layout
12895 The file 
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 development/HTML/HTML.notes
12901 \end_layout
12902
12903 \end_inset
12904
12905 , which can be found in the \SpecialChar LyX
12906  source tree or 
12907 \begin_inset CommandInset href
12908 LatexCommand href
12909 name "accessed online"
12910 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
12911 literal "false"
12912
12913 \end_inset
12914
12915 , usually contains up-to-date information about the state of XHTML output.
12916  See also the list of XHTML bugs on 
12917 \begin_inset CommandInset href
12918 LatexCommand href
12919 name "the bug tracker"
12920 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"
12921 literal "false"
12922
12923 \end_inset
12924
12925 .
12926 \end_layout
12927
12928 \end_inset
12929
12930  Still, the developers have chosen this approach because it has several
12931  potential advantages over the other two.
12932 \end_layout
12933
12934 \begin_layout Standard
12935 These advantages are primarily due to the fact that the XHTML output routines,
12936  since they are part of \SpecialChar LyX
12937 , know everything \SpecialChar LyX
12938  knows about the document being
12939  exported.
12940 \begin_inset Foot
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 Another advantage is that, since these routines are internal to \SpecialChar LyX
12945 , they are
12946  immune to changes in \SpecialChar LyX
12947 's file format, or to changes in the semantics of
12948  existing insets.
12949 \end_layout
12950
12951 \end_inset
12952
12953  So they know about the table of contents (as displayed in the outline),
12954  about the counters associated with different paragraph styles, and about
12955  user-defined styles.
12956  The XHTML output routines know what \SpecialChar LyX
12957  knows about internationalization,
12958  too, so they will output 
12959 \begin_inset Quotes eld
12960 \end_inset
12961
12962 Chapter 1
12963 \begin_inset Quotes erd
12964 \end_inset
12965
12966  or 
12967 \begin_inset Quotes eld
12968 \end_inset
12969
12970
12971 \lang ngerman
12972 Kapitel
12973 \lang english
12974  1
12975 \begin_inset Quotes erd
12976 \end_inset
12977
12978 , depending upon the language in effect at the time.
12979  
12980 \end_layout
12981
12982 \begin_layout Standard
12983 Quite generally, the output routines know what \SpecialChar LyX
12984  knows about document layout,
12985  that is, about how the document is to be rendered on screen.
12986  We use this information when we output the document as XHTML.
12987  In particular, \SpecialChar LyX
12988  
12989 \emph on
12990 automatically
12991 \emph default
12992  generates CSS style information corresponding to the layout information
12993  it uses to render the document on screen: if section headings are supposed
12994  to be sans-serif and bold as seen in \SpecialChar LyX
12995 , then (by default) they will be sans-seri
12996 f and bold when viewed in a web browser, too.
12997  And this is true not just for pre-defined styles, like Section, but for
12998  any style, including user-defined styles.
12999  Indeed, the XHTML output routines make no distinction between user-defined
13000  paragraph and 
13001 \change_deleted 244031559 1603876931
13002 character
13003 \change_inserted 244031559 1603876940
13004 text
13005 \change_unchanged
13006  styles and \SpecialChar LyX
13007 's own pre-defined styles: in each case, everything \SpecialChar LyX
13008  knows about
13009  the styles is contained in the layout files.
13010  And much the same is true as regards pre-defined textual insets, such as
13011  footnotes, and various custom insets.
13012  
13013 \end_layout
13014
13015 \begin_layout Standard
13016 The result is that XHTML output can be customized and extended in exactly
13017  the same way \SpecialChar LaTeX
13018  output can be customized and extended: through layout files
13019  and modules.
13020  See chapter five of the 
13021 \emph on
13022 Customization 
13023 \emph default
13024 manual for the details.
13025 \end_layout
13026
13027 \begin_layout Standard
13028 The remainder of this chapter contains more detailed information on XHTML
13029  output, its limitations, and ways to work around those limitations.
13030 \end_layout
13031
13032 \begin_layout Section
13033 Math Output in XHTML
13034 \end_layout
13035
13036 \begin_layout Standard
13037 \SpecialChar LyX
13038  offers four choices for how math is rendered.
13039  These have various advantages and disadvantages:
13040 \end_layout
13041
13042 \begin_layout Itemize
13043 MathML
13044 \begin_inset Newline newline
13045 \end_inset
13046
13047 MathML is a dialect of XML designed specifically for mathematics on the
13048  web, and it typically renders very well in browsers that support it.
13049  The disadvantage is that not all browsers support MathML, and support is
13050  not complete even in the Gecko-based browsers, such as Firefox.
13051 \begin_inset Newline newline
13052 \end_inset
13053
13054 If \SpecialChar LyX
13055  is unable to render a formula as MathML—for example, if the formula
13056  uses the 
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 xymatrix
13062 \end_layout
13063
13064 \end_inset
13065
13066  package or ERT—then it will instead output the formula as an image.
13067  
13068 \end_layout
13069
13070 \begin_layout Itemize
13071 HTML
13072 \begin_inset Newline newline
13073 \end_inset
13074
13075 As mentioned above, 
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 elyxer
13081 \end_layout
13082
13083 \end_inset
13084
13085  outputs math as HTML, styled by CSS.
13086 \begin_inset Foot
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 \SpecialChar LyX
13091  has borrowed some of the CSS for its HTML output from 
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096 elyxer
13097 \end_layout
13098
13099 \end_inset
13100
13101 .
13102 \end_layout
13103
13104 \end_inset
13105
13106  For simple formulae, this can work quite well, though with more complicated
13107  formulae it tends to break down.
13108  Still, this method has the advantage that it is very widely supported and
13109  so it may be appropriate for documents that contain only a little, fairly
13110  simple math.
13111 \begin_inset Newline newline
13112 \end_inset
13113
13114 If Lyx is unable to render a formula as HTML—for example, if the formula
13115  uses the 
13116 \begin_inset Flex Code
13117 status collapsed
13118
13119 \begin_layout Plain Layout
13120 xymatrix
13121 \end_layout
13122
13123 \end_inset
13124
13125  package or ERT—then it will instead output the formula as an image.
13126  
13127 \end_layout
13128
13129 \begin_layout Itemize
13130 Images
13131 \begin_inset Newline newline
13132 \end_inset
13133
13134 Like 
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 htlatex
13140 \end_layout
13141
13142 \end_inset
13143
13144 , \SpecialChar LyX
13145  will output formulae as images, the very same images, in fact, that are
13146  used for instant preview.
13147 \begin_inset Foot
13148 status collapsed
13149
13150 \begin_layout Plain Layout
13151 Instant preview does 
13152 \emph on
13153 not 
13154 \emph default
13155 have to be on for images to be output, however.
13156 \end_layout
13157
13158 \end_inset
13159
13160  The advantage to this method is that the images are simply generated by
13161  \SpecialChar LaTeX
13162 , so they are very accurate.
13163  The disadvantage, as mentioned earlier, is that these are bitmapped images,
13164  so they do not scale terribly well, and one cannot copy them, etc.
13165 \begin_inset Newline newline
13166 \end_inset
13167
13168 The size of the images can be controlled by setting the 
13169 \begin_inset Quotes eld
13170 \end_inset
13171
13172 Math Images Scaling
13173 \begin_inset Quotes erd
13174 \end_inset
13175
13176  parameter under 
13177 \begin_inset Flex Noun
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 Document\SpecialChar menuseparator
13182 Settings\SpecialChar menuseparator
13183 Formats
13184 \end_layout
13185
13186 \end_inset
13187
13188 .
13189 \begin_inset Foot
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193 For those who want to know, this controls the resolution of the image in
13194  dots per inch and is based upon a default of 75 dpi.
13195 \end_layout
13196
13197 \end_inset
13198
13199
13200 \begin_inset Newline newline
13201 \end_inset
13202
13203 If \SpecialChar LyX
13204  for some reason fails to create an image for a formula (e.g., if a required
13205  \SpecialChar LaTeX
13206  package is not installed), then it will fall back to outputing the raw
13207  \SpecialChar LaTeX
13208 .
13209 \end_layout
13210
13211 \begin_layout Itemize
13212 \SpecialChar LaTeX
13213
13214 \begin_inset Newline newline
13215 \end_inset
13216
13217 Finally, \SpecialChar LyX
13218  will happily output math as \SpecialChar LaTeX
13219 .
13220  As well as being the output of last resort, this method can be used with
13221  such tools as 
13222 \begin_inset CommandInset href
13223 LatexCommand href
13224 name "jsMath"
13225 target "http://www.math.union.edu/~dpvc/jsMath/"
13226 literal "false"
13227
13228 \end_inset
13229
13230 , which uses JavaScript to render \SpecialChar LaTeX
13231  embedded in HTML documents.
13232  \SpecialChar LyX
13233  wraps the \SpecialChar LaTeX
13234  in either a 
13235 \begin_inset Flex Code
13236 status collapsed
13237
13238 \begin_layout Plain Layout
13239 span
13240 \end_layout
13241
13242 \end_inset
13243
13244  (for inline formulas) or 
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 div
13250 \end_layout
13251
13252 \end_inset
13253
13254  (for displayed formulas) with 
13255 \begin_inset Flex Code
13256 status collapsed
13257
13258 \begin_layout Plain Layout
13259 class='math'
13260 \end_layout
13261
13262 \end_inset
13263
13264 , as is required for jsMath.
13265 \end_layout
13266
13267 \begin_layout Standard
13268 One of these output methods must be selected under 
13269 \begin_inset Flex Noun
13270 status collapsed
13271
13272 \begin_layout Plain Layout
13273 Document\SpecialChar menuseparator
13274 Settings\SpecialChar menuseparator
13275 Formats
13276 \end_layout
13277
13278 \end_inset
13279
13280 .
13281  By default, \SpecialChar LyX
13282  outputs MathML.
13283  This is a document-wide setting, therefore.
13284 \end_layout
13285
13286 \begin_layout Standard
13287 Eventually, \SpecialChar LyX
13288  will offer the user the option to select an alternate output
13289  method for a particular inset, say, one that isn't being rendered very
13290  well by MathML.
13291 \begin_inset Foot
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 That said, since \SpecialChar LyX
13296  falls back to images if the inset contains ERT, then one
13297  can force output as an image by putting some harmless ERT into the math,
13298  for example: 
13299 \begin_inset Formula $a=b\relax$
13300 \end_inset
13301
13302 .
13303 \end_layout
13304
13305 \end_inset
13306
13307
13308 \end_layout
13309
13310 \begin_layout Section
13311 Bibliography and Citations
13312 \end_layout
13313
13314 \begin_layout Standard
13315 XHTML output fully supports bibliographies and citations.
13316  
13317 \end_layout
13318
13319 \begin_layout Standard
13320 Citation labels are generated by the same machinery that generates \SpecialChar LyX
13321 's on-screen
13322  labels, so the labels will look in the output much as they do in \SpecialChar LyX
13323 , though
13324  better.
13325  If you are using numerical citations, then \SpecialChar LyX
13326  will output numerical labels,
13327  such as [1] or [17], rather than simply showing the citation key in square
13328  brackets, as it does on-screen.
13329  If you are using author-year citations, then \SpecialChar LyX
13330  will add lowercase letters
13331  to the years, just as Bib\SpecialChar TeX
13332  does, if it finds more than one citation for
13333  a given author-year combination.
13334  The labels will be printed with the bibliography entries.
13335  Note that there is, at present, no way to customize the appearance of the
13336  labels, for example, to choose between square brackets and parentheses.
13337 \end_layout
13338
13339 \begin_layout Standard
13340 Bibliography output is handled by the same machinery that handles the presentati
13341 on of reference information in the citation dialog, so you will see in the
13342  XHTML output pretty much what you would see if you were to look at a given
13343  entry in the citation dialog.
13344  The formatting can be customized in your layout file or, preferably, in
13345  a module.
13346  See the 
13347 \emph on
13348 Customization
13349 \emph default
13350  manual for the details.
13351 \end_layout
13352
13353 \begin_layout Standard
13354 The main defect at present is that cross-referenced information is printed
13355  with every entry with which it is associated.
13356  So you can see things like this:
13357 \end_layout
13358
13359 \begin_layout Quote
13360 Jason Stanley, 
13361 \begin_inset Quotes eld
13362 \end_inset
13363
13364 Context and Logical Form
13365 \begin_inset Quotes erd
13366 \end_inset
13367
13368 , in 
13369 \emph on
13370 Language in Context: Selected Essays
13371 \emph default
13372  (Oxford: Oxford University Press, 2007), pp.
13373  30–68.
13374 \end_layout
13375
13376 \begin_layout Quote
13377 Jason Stanley, 
13378 \begin_inset Quotes eld
13379 \end_inset
13380
13381 Semantics in Context
13382 \begin_inset Quotes erd
13383 \end_inset
13384
13385 , in 
13386 \emph on
13387 Language in Context: Selected Essays
13388 \emph default
13389  (Oxford: Oxford University Press, 2007), pp.
13390  201–30.
13391 \end_layout
13392
13393 \begin_layout Standard
13394 This should be fixed before long.
13395 \end_layout
13396
13397 \begin_layout Standard
13398 There is no support at present for sectioned bibliographies.
13399  If you have multiple bibliographies, then \SpecialChar LyX
13400  will print the same bibliography
13401  over and over.
13402 \end_layout
13403
13404 \begin_layout Section
13405 Indexes
13406 \end_layout
13407
13408 \begin_layout Standard
13409 \SpecialChar LyX
13410  will happily export indexes as XHTML, but with certain limitations at the
13411  moment.
13412 \end_layout
13413
13414 \begin_layout Standard
13415 Index export will be most reliable when you do not attempt to use the fancy
13416  constructs that are described in the section on indexes in the 
13417 \emph on
13418 User's Guide
13419 \emph default
13420 .
13421 \begin_inset Foot
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425 The main issue here is that \SpecialChar LyX
13426  itself does not really handle these.
13427  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
13428 .
13429 \end_layout
13430
13431 \end_inset
13432
13433  We'll describe how they are handled using the subsection headings from
13434  that section.
13435 \end_layout
13436
13437 \begin_layout Itemize
13438 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
13439  makes an effort to support these,
13440  but the entries must be separated by 
13441 \begin_inset Quotes eld
13442 \end_inset
13443
13444  ! 
13445 \begin_inset Quotes erd
13446 \end_inset
13447
13448 , that is, there must be spaces around the exclamation point.
13449  This is because it is otherwise too difficult to check for escaped exclamation
13450  points, ones in math, and so forth.
13451 \end_layout
13452
13453 \begin_layout Itemize
13454 Page Ranges: There is no support at all for page ranges, since these make
13455  no sense with XHMTL.
13456  Instead, you will just get two index entries, one at either end.
13457 \end_layout
13458
13459 \begin_layout Itemize
13460 Cross-referencing: There is no support for cross-referencing.
13461  If \SpecialChar LyX
13462  finds an entry containing the 
13463 \begin_inset Quotes eld
13464 \end_inset
13465
13466 |see\SpecialChar ldots
13467
13468 \begin_inset Quotes erd
13469 \end_inset
13470
13471  construct, it is just dropped, and the rest is treated as an ordinary index
13472  entry.
13473 \end_layout
13474
13475 \begin_layout Itemize
13476 Index Entry Order: \SpecialChar LyX
13477  does support attempts to fix the sorting order.
13478  It will take what is before the first `@' it finds and use that for sorting,
13479  taking what follows the first `@' to be the actual entry.
13480  At present, \SpecialChar LyX
13481  does not check for escaped `@', so do not try to index email
13482  addresses.
13483 \end_layout
13484
13485 \begin_layout Itemize
13486 Index Entry Layout: You can format entries by using the text style dialog,
13487  or by using any other method available within \SpecialChar LyX
13488  itself.
13489  There is no support for constructs like: 
13490 \begin_inset Quotes eld
13491 \end_inset
13492
13493 entry|textbf
13494 \begin_inset Quotes erd
13495 \end_inset
13496
13497 .
13498  Indeed, if \SpecialChar LyX
13499  finds a pipe symbol, `|', in an entry, it will delete it and
13500  everything that follows it.
13501 \end_layout
13502
13503 \begin_layout Itemize
13504 Multiple Indexes: There is no support for multiple indexes.
13505  Rather, all index entries will be printed as one large index.
13506  To avoid our printing several versions of the index, we print only the
13507  main index, so make sure you have one.
13508 \end_layout
13509
13510 \begin_layout Section
13511 Nomenclature and Glossary
13512 \end_layout
13513
13514 \begin_layout Standard
13515 There is at present no support for glossaries.
13516  Adding it would be fairly trivial, and welcome.
13517 \end_layout
13518
13519 \begin_layout Chapter
13520
13521 \change_inserted 1075283030 1616534180
13522 DocBook Output
13523 \end_layout
13524
13525 \begin_layout Standard
13526
13527 \change_inserted 1075283030 1616534386
13528 Apart from HTML, \SpecialChar LyX
13529  can generate documents in the DocBook XML vocabulary.
13530  With versions 2.3 and before, only select templates could be used to generate
13531  DocBook documents (only version 4).
13532  Starting with \SpecialChar LyX
13533  2.4, most \SpecialChar LyX
13534  layouts can generate valid DocBook documents (only
13535  version 5).
13536  This feature is built into \SpecialChar LyX
13537  and does not require the use of external tools.
13538 \end_layout
13539
13540 \begin_layout Standard
13541
13542 \change_inserted 1075283030 1616534437
13543 The result is that the DocBook output can be customized and extended in
13544  exactly the same way \SpecialChar LaTeX
13545  output can be customized and extended: through layout
13546  files and modules.
13547  See chapter five of the 
13548 \emph on
13549 Customization 
13550 \emph default
13551 manual for the details.
13552 \end_layout
13553
13554 \begin_layout Standard
13555
13556 \change_inserted 1075283030 1616534475
13557 Most \SpecialChar LyX
13558  features are supported with DocBook, like math output.
13559 \end_layout
13560
13561 \begin_layout Itemize
13562
13563 \change_inserted 1075283030 1616534741
13564 Math output is performed mostly in MathML (the major exception being constructio
13565 ns not supported by \SpecialChar LyX
13566 , i.e.
13567  ERTs).
13568  All formulae are also available in raw \SpecialChar TeX
13569  in the DocBook output for further
13570  processing.
13571 \end_layout
13572
13573 \begin_layout Itemize
13574
13575 \change_inserted 1075283030 1616534852
13576 Bibliographies and citations are implemented, including with an external
13577  BibTeX file.
13578  Bibliography entries are not prerendered when the detailed information
13579  are available, but rather output with the standard DocBook constructs.
13580  The external DocBook processor is expected to handle the rendering of entries.
13581 \end_layout
13582
13583 \begin_layout Itemize
13584
13585 \change_inserted 1075283030 1616534863
13586 Indexes are supported, including multiple indices.
13587  Grouping (with 
13588 \family typewriter
13589 !
13590 \family default
13591 ), page ranges, and cross-references (
13592 \family typewriter
13593 |see
13594 \family default
13595 ) are supported, with the exception of the same symbols escaped.
13596  Entry order (
13597 \family typewriter
13598 @
13599 \family default
13600 ) and layout (
13601 \family typewriter
13602 |mathbf
13603 \family default
13604 ) are not supported.
13605  There is no support for escaping of index entries.
13606 \end_layout
13607
13608 \begin_layout Itemize
13609
13610 \change_inserted 1075283030 1616534884
13611 Glossaries are implemented.
13612 \end_layout
13613
13614 \begin_layout Standard
13615
13616 \change_inserted 1075283030 1616534894
13617 Two major parameters can be set at the document level.
13618 \end_layout
13619
13620 \begin_layout Itemize
13621
13622 \change_inserted 1075283030 1616534948
13623 Format for tables: \SpecialChar LyX
13624  can generate tables either as HTML (default value) or
13625  CALS, depending on the user's requirements.
13626  Most DocBook processors accept both formats.
13627 \end_layout
13628
13629 \begin_layout Itemize
13630
13631 \change_inserted 1075283030 1616535006
13632 MathML prefix: in DocBook, MathML is included within its own name space,
13633  unlike HTML.
13634  The implication is that there must be an indication of the tags belonging
13635  to the MathML standard.
13636  Three choices are offered: 
13637 \end_layout
13638
13639 \begin_deeper
13640 \begin_layout Itemize
13641
13642 \change_inserted 1075283030 1616535044
13643 Inline: the MathML name space is defined for each formula (using the 
13644 \family typewriter
13645 xmlns
13646 \family default
13647  attribute on each formula)
13648 \end_layout
13649
13650 \begin_layout Itemize
13651
13652 \change_inserted 1075283030 1616535090
13653 With the 
13654 \family typewriter
13655 m
13656 \family default
13657  prefix (default): the MathML name space is defined at the document level
13658  (using the 
13659 \family typewriter
13660 xmlns:m
13661 \family default
13662  attribute on the root element).
13663  Each MathML is prefixed with 
13664 \family typewriter
13665 m
13666 \family default
13667 : for instance, 
13668 \family typewriter
13669 m:math
13670 \end_layout
13671
13672 \begin_layout Itemize
13673
13674 \change_inserted 1075283030 1616620405
13675 With the 
13676 \family typewriter
13677 mml
13678 \family default
13679  prefix: similar to the 
13680 \family typewriter
13681 m
13682 \family default
13683  option, but with 
13684 \family typewriter
13685 mml
13686 \end_layout
13687
13688 \begin_layout Standard
13689
13690 \change_inserted 1075283030 1616620470
13691 This option is especially useful if you want \SpecialChar LyX
13692  to match your personal style
13693  or to work with buggy software that only accepts one prefix for MathML.
13694 \change_unchanged
13695
13696 \end_layout
13697
13698 \end_deeper
13699 \begin_layout Chapter
13700 The \SpecialChar LyX
13701  Server
13702 \end_layout
13703
13704 \begin_layout Section
13705 Introduction
13706 \end_layout
13707
13708 \begin_layout Standard
13709 The `\SpecialChar LyX
13710  server' allows other programs to talk to \SpecialChar LyX
13711 , invoke \SpecialChar LyX
13712  commands, and retrieve
13713  information about the \SpecialChar LyX
13714  internal state.
13715  This is only intended for advanced users, but they should find it useful.
13716  It is by writing to the \SpecialChar LyX
13717  server, for example, that bibliography managers,
13718  such as JabRef, are able to 
13719 \begin_inset Quotes eld
13720 \end_inset
13721
13722 push
13723 \begin_inset Quotes erd
13724 \end_inset
13725
13726  citations to \SpecialChar LyX
13727 .
13728 \end_layout
13729
13730 \begin_layout Section
13731 Starting the \SpecialChar LyX
13732  Server
13733 \begin_inset CommandInset label
13734 LatexCommand label
13735 name "sec:Starting-the-Server"
13736
13737 \end_inset
13738
13739
13740 \end_layout
13741
13742 \begin_layout Standard
13743 The \SpecialChar LyX
13744  server works through the use of a pair of named pipes.
13745  These are usually located in 
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 UserDir
13751 \end_layout
13752
13753 \end_inset
13754
13755 , (except on Windows, where 
13756 \emph on
13757 local
13758 \emph default
13759  named pipes are special objects located in 
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764
13765 \backslash
13766
13767 \backslash
13768 .
13769 \backslash
13770 pipe
13771 \end_layout
13772
13773 \end_inset
13774
13775 ) and have the names 
13776 \begin_inset Quotes eld
13777 \end_inset
13778
13779
13780 \begin_inset Flex Code
13781 status collapsed
13782
13783 \begin_layout Plain Layout
13784 lyxpipe.in
13785 \end_layout
13786
13787 \end_inset
13788
13789
13790 \begin_inset Quotes erd
13791 \end_inset
13792
13793  and 
13794 \begin_inset Quotes eld
13795 \end_inset
13796
13797
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 lyxpipe.out
13803 \end_layout
13804
13805 \end_inset
13806
13807
13808 \begin_inset Quotes erd
13809 \end_inset
13810
13811 .
13812  External programs write into 
13813 \begin_inset Flex Code
13814 status collapsed
13815
13816 \begin_layout Plain Layout
13817 lyxpipe.in
13818 \end_layout
13819
13820 \end_inset
13821
13822  and read back data from 
13823 \begin_inset Flex Code
13824 status collapsed
13825
13826 \begin_layout Plain Layout
13827 lyxpipe.out
13828 \end_layout
13829
13830 \end_inset
13831
13832 .
13833  The stem of the pipe names can be defined in the 
13834 \begin_inset Flex Noun
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838 Tools\SpecialChar menuseparator
13839 Preferences
13840 \end_layout
13841
13842 \end_inset
13843
13844  dialog, for example 
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 "/home/myhome/lyxpipe"
13850 \end_layout
13851
13852 \end_inset
13853
13854 , or 
13855 \begin_inset Flex Code
13856 status collapsed
13857
13858 \begin_layout Plain Layout
13859 "
13860 \backslash
13861
13862 \backslash
13863 .
13864 \backslash
13865 pipe
13866 \backslash
13867 lyxpipe"
13868 \end_layout
13869
13870 \end_inset
13871
13872  on Windows (where any working path instead of lyxpipe can be used, for
13873  example 
13874 \begin_inset Flex Code
13875 status collapsed
13876
13877 \begin_layout Plain Layout
13878 "
13879 \backslash
13880
13881 \backslash
13882 .
13883 \backslash
13884 pipe
13885 \backslash
13886 my
13887 \backslash
13888 lyx
13889 \backslash
13890 pipe"
13891 \end_layout
13892
13893 \end_inset
13894
13895  would also work).
13896  You 
13897 \emph on
13898 must
13899 \emph default
13900  configure this manually in order for the server to start.
13901 \end_layout
13902
13903 \begin_layout Standard
13904 \SpecialChar LyX
13905  will add the '
13906 \begin_inset Flex Code
13907 status collapsed
13908
13909 \begin_layout Plain Layout
13910 .in
13911 \end_layout
13912
13913 \end_inset
13914
13915 ' and '
13916 \begin_inset Flex Code
13917 status collapsed
13918
13919 \begin_layout Plain Layout
13920 .out
13921 \end_layout
13922
13923 \end_inset
13924
13925 ' to create the pipes.
13926  If one of the pipes already exists, \SpecialChar LyX
13927  will assume that another \SpecialChar LyX
13928  process
13929  is already running and will not start the server.
13930  On POSIX (Unix like) systems, if for some other reason, an unused 
13931 \begin_inset Quotes eld
13932 \end_inset
13933
13934 stale
13935 \begin_inset Quotes erd
13936 \end_inset
13937
13938  pipe is left in existence when \SpecialChar LyX
13939  closes, then \SpecialChar LyX
13940  will try to delete it.
13941  If this fails for some reason, you will need to delete the pipes manually
13942  and then restart \SpecialChar LyX
13943 .
13944  On Windows, pipes are deleted by the OS on program termination or crash,
13945  so 
13946 \begin_inset Quotes eld
13947 \end_inset
13948
13949 stale
13950 \begin_inset Quotes erd
13951 \end_inset
13952
13953  pipes should not be possible.
13954 \end_layout
13955
13956 \begin_layout Standard
13957 To have several \SpecialChar LyX
13958  processes with servers at the same time, you have to use
13959  different configurations, perhaps by using separate user directories, each
13960  with its own 
13961 \begin_inset Flex Code
13962 status collapsed
13963
13964 \begin_layout Plain Layout
13965 preferences
13966 \end_layout
13967
13968 \end_inset
13969
13970  file, for each process.
13971 \end_layout
13972
13973 \begin_layout Standard
13974 If you are developing a client program, you might find it useful to enable
13975  debugging information from the \SpecialChar LyX
13976  server.
13977  Do this by starting \SpecialChar LyX
13978  as 
13979 \begin_inset Flex Code
13980 status collapsed
13981
13982 \begin_layout Plain Layout
13983 lyx -dbg lyxserver
13984 \end_layout
13985
13986 \end_inset
13987
13988 .
13989 \end_layout
13990
13991 \begin_layout Standard
13992 You can find a complete example client written in C++ in the source distribution
13993  as 
13994 \begin_inset Flex Code
13995 status collapsed
13996
13997 \begin_layout Plain Layout
13998 development/lyxserver/server_monitor.cpp
13999 \end_layout
14000
14001 \end_inset
14002
14003 .
14004 \end_layout
14005
14006 \begin_layout Standard
14007 Another useful tool is the command-line based client found in 
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 src/client/lyxclient
14013 \end_layout
14014
14015 \end_inset
14016
14017 .
14018 \end_layout
14019
14020 \begin_layout Section
14021 Normal communication
14022 \end_layout
14023
14024 \begin_layout Standard
14025 To issue a \SpecialChar LyX
14026  call, the client writes a line of ASCII text into the input
14027  pipe.
14028  This line has the following format:
14029 \end_layout
14030
14031 \begin_layout Quote
14032 LYXCMD:
14033 \emph on
14034 clientname
14035 \emph default
14036 :
14037 \emph on
14038 function
14039 \emph default
14040 :
14041 \emph on
14042 argument
14043 \end_layout
14044
14045 \begin_layout Description
14046 clientname is a name that the client can choose arbitrarily.
14047  Its only use is that \SpecialChar LyX
14048  will echo it if it sends an answer—so a client can
14049  dispatch results from different requesters.
14050 \end_layout
14051
14052 \begin_layout Description
14053 function is the function you want \SpecialChar LyX
14054  to perform.
14055  It is the same as the commands you'd use in the minibuffer.
14056 \end_layout
14057
14058 \begin_layout Description
14059 argument is an optional argument which is meaningful only to some functions
14060  (for instance, the 
14061 \begin_inset Quotes eld
14062 \end_inset
14063
14064 self-insert
14065 \begin_inset Quotes erd
14066 \end_inset
14067
14068  LFUN will insert the argument as text at the cursor position).
14069 \end_layout
14070
14071 \begin_layout Standard
14072 The answer from \SpecialChar LyX
14073  will arrive in the output pipe and be of the form
14074 \end_layout
14075
14076 \begin_layout Quote
14077 INFO:
14078 \emph on
14079 clientname
14080 \emph default
14081 :
14082 \emph on
14083 function
14084 \emph default
14085 :
14086 \emph on
14087 data
14088 \end_layout
14089
14090 \begin_layout Standard
14091 where 
14092 \emph on
14093 clientname
14094 \emph default
14095  and 
14096 \emph on
14097 function
14098 \emph default
14099  are just echoed from the command request, while 
14100 \emph on
14101 data
14102 \emph default
14103  is more or less useful information filled according to how the command
14104  execution worked out.
14105  Some commands, such as 
14106 \begin_inset Quotes eld
14107 \end_inset
14108
14109 font-state
14110 \begin_inset Quotes erd
14111 \end_inset
14112
14113 , will return information about the internal state of \SpecialChar LyX
14114 , while other will
14115  return an empty data-response.
14116  This means that the command execution went fine.
14117 \end_layout
14118
14119 \begin_layout Standard
14120 In case of errors, the response from \SpecialChar LyX
14121  will have this form
14122 \end_layout
14123
14124 \begin_layout Quote
14125 ERROR:
14126 \emph on
14127 clientname
14128 \emph default
14129 :
14130 \emph on
14131 function
14132 \emph default
14133 :
14134 \emph on
14135 error message
14136 \end_layout
14137
14138 \begin_layout Standard
14139 where the 
14140 \emph on
14141 error message
14142 \emph default
14143  should contain an explanation of why the command failed.
14144 \end_layout
14145
14146 \begin_layout Standard
14147 Examples:
14148 \end_layout
14149
14150 \begin_layout LyX-Code
14151 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
14152 \begin_inset Newline newline
14153 \end_inset
14154
14155 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
14156 \begin_inset Newline newline
14157 \end_inset
14158
14159 read a <~/.lyxpipe.out
14160 \begin_inset Newline newline
14161 \end_inset
14162
14163 echo $a
14164 \end_layout
14165
14166 \begin_layout Subsection
14167 AppleScript (Mac OS X)
14168 \end_layout
14169
14170 \begin_layout Standard
14171 Since \SpecialChar LyX
14172  2.1, \SpecialChar LyX
14173  supports basic interactions with AppleScript for normal communicatio
14174 n through the command run.
14175  This command takes a direct argument (the 
14176 \series bold
14177 function
14178 \series default
14179  to perform) and an optional argument.
14180  It either returns the output of the function or triggers an error with
14181  the error message and code.
14182 \end_layout
14183
14184 \begin_layout Standard
14185 Example:
14186 \end_layout
14187
14188 \begin_layout LyX-Code
14189 tell application "\SpecialChar LyX
14190 "
14191 \end_layout
14192
14193 \begin_layout LyX-Code
14194   try
14195 \end_layout
14196
14197 \begin_layout LyX-Code
14198     -- Stores the current file name into f
14199 \end_layout
14200
14201 \begin_layout LyX-Code
14202     set f to (run "server-get-filename" with argument "")
14203 \end_layout
14204
14205 \begin_layout LyX-Code
14206     on error the error_message number the error_number
14207 \end_layout
14208
14209 \begin_layout LyX-Code
14210       display dialog "Error: " & the error_number & ".
14211  " ¬
14212 \end_layout
14213
14214 \begin_layout LyX-Code
14215               & the error_message buttons {"OK"} default button 1
14216 \end_layout
14217
14218 \begin_layout LyX-Code
14219   end try
14220 \end_layout
14221
14222 \begin_layout LyX-Code
14223 end tell
14224 \end_layout
14225
14226 \begin_layout Section
14227 Notification
14228 \end_layout
14229
14230 \begin_layout Standard
14231 \SpecialChar LyX
14232  can notify clients of events going on asynchronously.
14233  Currently it will only do this if the user binds a key sequence with the
14234  function 
14235 \begin_inset Quotes eld
14236 \end_inset
14237
14238 notify
14239 \begin_inset Quotes erd
14240 \end_inset
14241
14242 .
14243  The format of the string \SpecialChar LyX
14244  sends is as follows:
14245 \end_layout
14246
14247 \begin_layout Quote
14248 \begin_inset Flex Code
14249 status collapsed
14250
14251 \begin_layout Plain Layout
14252 NOTIFY:
14253 \end_layout
14254
14255 \end_inset
14256
14257
14258 \emph on
14259 key-sequence
14260 \end_layout
14261
14262 \begin_layout Standard
14263 where 
14264 \emph on
14265 key-sequence
14266 \emph default
14267  is the printed representation of the key sequence that was actually typed
14268  by the user.
14269 \end_layout
14270
14271 \begin_layout Standard
14272 This mechanism can be used to extend \SpecialChar LyX
14273 's command set and implement macros.
14274  Bind some key sequence to 
14275 \begin_inset Quotes eld
14276 \end_inset
14277
14278 notify
14279 \begin_inset Quotes erd
14280 \end_inset
14281
14282 .
14283  Then start a client that listens on the output pipe, dispatches the command
14284  according to the sequence, and starts a function that may use \SpecialChar LyX
14285  calls and
14286  \SpecialChar LyX
14287  requests to issue a command or a series of commands to \SpecialChar LyX
14288 .
14289 \end_layout
14290
14291 \begin_layout Section
14292 The simple \SpecialChar LyX
14293  Server Protocol
14294 \end_layout
14295
14296 \begin_layout Standard
14297 \SpecialChar LyX
14298  implements a simple protocol that can be used for session management.
14299  All messages are of the form
14300 \end_layout
14301
14302 \begin_layout Quote
14303 LYXSRV:
14304 \emph on
14305 clientname
14306 \emph default
14307 :
14308 \emph on
14309 protocol message
14310 \end_layout
14311
14312 \begin_layout Standard
14313 where 
14314 \emph on
14315 protocol message
14316 \emph default
14317  can be 
14318 \begin_inset Quotes eld
14319 \end_inset
14320
14321 hello
14322 \begin_inset Quotes erd
14323 \end_inset
14324
14325  or 
14326 \begin_inset Quotes eld
14327 \end_inset
14328
14329 bye
14330 \begin_inset Quotes erd
14331 \end_inset
14332
14333 .
14334  If 
14335 \begin_inset Quotes eld
14336 \end_inset
14337
14338 hello
14339 \begin_inset Quotes erd
14340 \end_inset
14341
14342  is received from a client, \SpecialChar LyX
14343  will report back to inform the client that
14344  it's listening to it's messages, while 
14345 \begin_inset Quotes eld
14346 \end_inset
14347
14348 bye
14349 \begin_inset Quotes erd
14350 \end_inset
14351
14352  sent from \SpecialChar LyX
14353  will inform clients that \SpecialChar LyX
14354  is closing.
14355 \end_layout
14356
14357 \begin_layout Section
14358 Reverse DVI/PDF search
14359 \end_layout
14360
14361 \begin_layout Standard
14362 Some DVI/PDF viewers
14363 \begin_inset Foot
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
14368  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
14369 \end_layout
14370
14371 \end_inset
14372
14373  provide 
14374 \emph on
14375 reverse search
14376 \emph default
14377  facility (also called 
14378 \emph on
14379 inverse search
14380 \emph default
14381 ).
14382  This means that you can tell \SpecialChar LyX
14383  to put the cursor to a specific line in the
14384  document by clicking at the respective position in the DVI/PDF output.
14385  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
14386 .
14387  This is done via the \SpecialChar LyX
14388  server either by using the named pipe (
14389 \emph on
14390 lyxpipe
14391 \emph default
14392 ), or the UNIX domain socket (
14393 \emph on
14394 lyxsocket
14395 \emph default
14396 ) that \SpecialChar LyX
14397  creates in its temporary directory (this is the way the 
14398 \begin_inset Flex Code
14399 status collapsed
14400
14401 \begin_layout Plain Layout
14402 lyxclient
14403 \end_layout
14404
14405 \end_inset
14406
14407  program communicates with \SpecialChar LyX
14408 ).
14409  In some cases, you need a helper script that mediates between the viewer
14410  and \SpecialChar LyX
14411 , in others, the viewer can communicate with \SpecialChar LyX
14412  directly.
14413  This depends on the selected viewer and on your operating system.
14414  The same applies to the way viewers need to be configured and the way the
14415  reverse search is actually performed.
14416  In what follows, we will thus describe how to setup reverse search for
14417  specific viewers.
14418  Before we turn to this, though, we will explain what needs to be done generally
14419  to enable reverse search in the DVI/PDF output.
14420 \end_layout
14421
14422 \begin_layout Subsection
14423 Automatic setup
14424 \begin_inset CommandInset label
14425 LatexCommand label
14426 name "subsec:rev-search"
14427
14428 \end_inset
14429
14430
14431 \end_layout
14432
14433 \begin_layout Standard
14434 In most cases \SpecialChar LyX
14435  will do the work for you by pressing the following button
14436  in the toolbar: 
14437 \begin_inset Info
14438 type  "icon"
14439 arg   "buffer-toggle-output-sync"
14440 \end_inset
14441
14442 .
14443  Alternatively, you can also enable the feature by checking 
14444 \family sans
14445 Synchronize with Output
14446 \family default
14447  in 
14448 \begin_inset Flex Noun
14449 status collapsed
14450
14451 \begin_layout Plain Layout
14452 Document\SpecialChar menuseparator
14453 Settings\SpecialChar menuseparator
14454 Formats
14455 \end_layout
14456
14457 \end_inset
14458
14459 .
14460  In such a case \SpecialChar LyX
14461  will automatically insert the necessary Sync\SpecialChar TeX
14462  macro (for
14463  PDF) or load the srcltx package (for DVI) respectively.
14464  This option can be easily reached also on 
14465 \begin_inset Flex Code
14466 status collapsed
14467
14468 \begin_layout Plain Layout
14469 View/Update
14470 \end_layout
14471
14472 \end_inset
14473
14474  Toolbar.
14475 \end_layout
14476
14477 \begin_layout Standard
14478 If you need a different setting, you can select or input a custom macro
14479  from the drop down box just below 
14480 \begin_inset Flex Noun
14481 status collapsed
14482
14483 \begin_layout Plain Layout
14484 Document\SpecialChar menuseparator
14485 Settings\SpecialChar menuseparator
14486 Output\SpecialChar menuseparator
14487 Synchronize with Output
14488 \end_layout
14489
14490 \end_inset
14491
14492 .
14493 \end_layout
14494
14495 \begin_layout Standard
14496 Note that the method 
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501
14502 \backslash
14503 synctex=1
14504 \end_layout
14505
14506 \end_inset
14507
14508  enables gzip compression.
14509  If your viewer does not support it, you should instead use 
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514
14515 \backslash
14516 synctex=-1
14517 \end_layout
14518
14519 \end_inset
14520
14521 .
14522 \end_layout
14523
14524 \begin_layout Standard
14525 Please also note that including the 
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 srcltx
14531 \end_layout
14532
14533 \end_inset
14534
14535  package or 
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 src-specials
14541 \end_layout
14542
14543 \end_inset
14544
14545  sometimes has an undesired impact on the typesetting.
14546  Thus, you should switch output synchronization off for the final typesetting
14547  if you use the 
14548 \begin_inset Flex Code
14549 status collapsed
14550
14551 \begin_layout Plain Layout
14552 srcltx
14553 \end_layout
14554
14555 \end_inset
14556
14557  package or 
14558 \begin_inset Flex Code
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562 src-specials
14563 \end_layout
14564
14565 \end_inset
14566
14567 .
14568  
14569 \end_layout
14570
14571 \begin_layout Standard
14572 In case you need some more special settings that are not covered by the
14573  automatic settings, read the next section about how to set up output synchroniz
14574 ation manually.
14575  If the automatic setup suits your needs, you can readily jump to section
14576 \begin_inset space ~
14577 \end_inset
14578
14579
14580 \begin_inset CommandInset ref
14581 LatexCommand ref
14582 reference "subsec:configuring-viewers"
14583
14584 \end_inset
14585
14586 , where the necessary configuration steps in your viewer – needed both with
14587  the automatic and the manual setup – are described.
14588 \end_layout
14589
14590 \begin_layout Subsection
14591 Manual setup
14592 \end_layout
14593
14594 \begin_layout Standard
14595 \SpecialChar LaTeX
14596  provides several different methods for reverse search.
14597  Some are built-in in the 
14598 \begin_inset Flex Code
14599 status collapsed
14600
14601 \begin_layout Plain Layout
14602 latex/pdflatex
14603 \end_layout
14604
14605 \end_inset
14606
14607  program, some are provided by external packages.
14608  Your choice depends on whether your \SpecialChar LaTeX
14609  distribution already provides a given
14610  method (the built-in methods are rather new) and whether your viewer can
14611  cope with it.
14612  The available methods are described in the following.
14613 \end_layout
14614
14615 \begin_layout Subsubsection*
14616 Built-in DVI-search via src-specials (DVI only) 
14617 \end_layout
14618
14619 \begin_layout Standard
14620 This method provides the DVI file with the necessary information for reverse
14621  search.
14622  It is available in \SpecialChar LaTeX
14623  since quite some time (any somewhat recent \SpecialChar LaTeX
14624  distribution
14625  should include it), and it works reliably.
14626  To enable it, change the 
14627 \begin_inset Flex Noun
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631 La
14632 \family sans
14633 TeX
14634 \family default
14635  (plain)->DVI
14636 \end_layout
14637
14638 \end_inset
14639
14640  or 
14641 \begin_inset Flex Noun
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 La
14646 \family sans
14647 TeX
14648 \family default
14649  (plain)->DraftDVI
14650 \end_layout
14651
14652 \end_inset
14653
14654  converter in 
14655 \begin_inset Flex Noun
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 Preferences\SpecialChar menuseparator
14660 File Handling\SpecialChar menuseparator
14661 Converters
14662 \end_layout
14663
14664 \end_inset
14665
14666  to 
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 latex -src-specials $$i
14672 \end_layout
14673
14674 \end_inset
14675
14676 .
14677  If this doesn't work, check if your \SpecialChar TeX
14678  engine needs different options (the
14679  syntax might differ in some distributions).
14680 \end_layout
14681
14682 \begin_layout Subsubsection*
14683 External Packages (PDFSync and scrltx) 
14684 \end_layout
14685
14686 \begin_layout Standard
14687 The packages 
14688 \emph on
14689 pdfsync
14690 \emph default
14691  and 
14692 \emph on
14693 scrltx
14694 \emph default
14695  provide reverse search facility for PDF output (via pdflatex) and DVI output,
14696  respectively.
14697  In order to enable it, load the packages in the \SpecialChar LyX
14698  preamble: 
14699 \end_layout
14700
14701 \begin_layout Itemize
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706
14707 \backslash
14708 usepackage{pdfsync}
14709 \end_layout
14710
14711 \end_inset
14712
14713  for reverse PDF search,
14714 \end_layout
14715
14716 \begin_layout Itemize
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721
14722 \backslash
14723 usepackage[active]{srcltx}
14724 \end_layout
14725
14726 \end_inset
14727
14728  for reverse DVI search.
14729 \end_layout
14730
14731 \begin_layout Standard
14732 If you want to be able to perform both DVI and PDF reverse searches, you
14733  can also insert in the preamble the following lines
14734 \end_layout
14735
14736 \begin_layout LyX-Code
14737
14738 \backslash
14739 usepackage{ifpdf}
14740 \begin_inset Newline newline
14741 \end_inset
14742
14743
14744 \backslash
14745 ifpdf
14746 \begin_inset Newline newline
14747 \end_inset
14748
14749   
14750 \backslash
14751 usepackage{pdfsync}
14752 \begin_inset Newline newline
14753 \end_inset
14754
14755
14756 \backslash
14757 else
14758 \begin_inset Newline newline
14759 \end_inset
14760
14761   
14762 \backslash
14763 usepackage[active]{srcltx}
14764 \begin_inset Newline newline
14765 \end_inset
14766
14767
14768 \backslash
14769 fi
14770 \end_layout
14771
14772 \begin_layout Standard
14773 This way, you can preview the file as either DVI or PDF (pdflatex) and the
14774  right package will be used.
14775 \end_layout
14776
14777 \begin_layout Standard
14778 Note that PDFSync might affect the output layout of your document.
14779  It is therefore advised to disable PDFsync for final documents.
14780 \end_layout
14781
14782 \begin_layout Subsubsection*
14783 Built-in reverse search via Sync\SpecialChar TeX
14784  (DVI and PDF) 
14785 \end_layout
14786
14787 \begin_layout Standard
14788 Recent versions of 
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 (pdf)latex
14794 \end_layout
14795
14796 \end_inset
14797
14798  have built-in support for both PDF and DVI reverse search.
14799  This so-called 
14800 \emph on
14801 Sync\SpecialChar TeX
14802
14803 \emph default
14804  facility is basically the result of the integration of the PDFSync package
14805  to the pdftex program and its merge with the 
14806 \emph on
14807 scr-specials
14808 \emph default
14809  approach.
14810  You need at least \SpecialChar TeX
14811 Live 2008 or a recent Mik\SpecialChar TeX
14812  distribution in order to use
14813  it.
14814 \begin_inset Foot
14815 status collapsed
14816
14817 \begin_layout Plain Layout
14818 For some reason, Mik\SpecialChar TeX
14819  does not understand/obey the command \SpecialChar LyX
14820  inserts into
14821  the preamble when you check the "Enable Forward/Reverse Search" button
14822  in the toolbar and does not generate the necessary info.
14823 \end_layout
14824
14825 \begin_layout Plain Layout
14826 The generation of the required info can be forced by changing the converter
14827  "\SpecialChar LaTeX
14828  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
14829  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
14830  the -synctex=1 switch).
14831 \end_layout
14832
14833 \end_inset
14834
14835  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
14836  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
14837  already provide Sync\SpecialChar TeX
14838  support.
14839 \end_layout
14840
14841 \begin_layout Standard
14842 To enable Sync\SpecialChar TeX
14843  for DVI output, change the 
14844 \begin_inset Flex Noun
14845 status collapsed
14846
14847 \begin_layout Plain Layout
14848 La
14849 \family sans
14850 TeX
14851 \family default
14852  (plain) -> DVI
14853 \end_layout
14854
14855 \end_inset
14856
14857  or 
14858 \begin_inset Flex Noun
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862 La
14863 \family sans
14864 TeX
14865 \family default
14866  (plain) -> DraftDVI
14867 \end_layout
14868
14869 \end_inset
14870
14871  converter in 
14872 \begin_inset Flex Noun
14873 status collapsed
14874
14875 \begin_layout Plain Layout
14876 Preferences\SpecialChar menuseparator
14877 File Handling\SpecialChar menuseparator
14878 Converters
14879 \end_layout
14880
14881 \end_inset
14882
14883  to 
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 latex -synctex=1 $$i
14889 \end_layout
14890
14891 \end_inset
14892
14893 , and for PDF output, change the 
14894 \begin_inset Flex Noun
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898 La
14899 \family sans
14900 TeX
14901 \family default
14902  (pdflatex) -> PDF (pdflatex)
14903 \end_layout
14904
14905 \end_inset
14906
14907  converter to 
14908 \begin_inset Flex Code
14909 status collapsed
14910
14911 \begin_layout Plain Layout
14912 pdflatex -synctex=1 $$i
14913 \end_layout
14914
14915 \end_inset
14916
14917 .
14918  Should your viewer not be considered in the following description, or in
14919  case of missing success, please check the documentation of your viewer
14920  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
14921 .
14922 \begin_inset Foot
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926 Note that the option 
14927 \begin_inset Flex Code
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931 -synctex=1
14932 \end_layout
14933
14934 \end_inset
14935
14936  option enables gzip compression.
14937  If your viewer does not support it, you should instead use 
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 -synctex=-1
14943 \end_layout
14944
14945 \end_inset
14946
14947 .
14948 \end_layout
14949
14950 \end_inset
14951
14952
14953 \end_layout
14954
14955 \begin_layout Subsection
14956 Configuring and using specific viewers
14957 \begin_inset CommandInset label
14958 LatexCommand label
14959 name "subsec:configuring-viewers"
14960
14961 \end_inset
14962
14963
14964 \end_layout
14965
14966 \begin_layout Subsubsection*
14967 Xdvi (all platforms)
14968 \end_layout
14969
14970 \begin_layout Standard
14971 If you use 
14972 \begin_inset Flex Code
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976 xdvi
14977 \end_layout
14978
14979 \end_inset
14980
14981 , you don't need to do anything else for performing a reverse DVI search,
14982  as \SpecialChar LyX
14983  already provides the necessary hooks for automatically using the 
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988 lyxclient
14989 \end_layout
14990
14991 \end_inset
14992
14993  program.
14994  Just setup your document as described above (reverse search is triggered
14995  by Ctrl-click or Alt-click on Mac OSX, respectively).
14996 \end_layout
14997
14998 \begin_layout Standard
14999 However, if for whatever reason you want to use the named pipe instead of
15000  the socket for communicating with \SpecialChar LyX
15001 , simply change the DVI viewer in 
15002 \begin_inset Flex Noun
15003 status collapsed
15004
15005 \begin_layout Plain Layout
15006 Preferences\SpecialChar menuseparator
15007 File Handling\SpecialChar menuseparator
15008 File formats
15009 \end_layout
15010
15011 \end_inset
15012
15013  to
15014 \begin_inset Foot
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 On Mac OSX you have to use 
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
15024 \end_layout
15025
15026 \end_inset
15027
15028
15029 \end_layout
15030
15031 \end_inset
15032
15033  
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 xdvi -editor "lyxeditor.sh %f %l"
15039 \end_layout
15040
15041 \end_inset
15042
15043 , where 
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 lyxeditor.sh
15049 \end_layout
15050
15051 \end_inset
15052
15053  is a suitable script.
15054  For example, a minimal shell script is the following one:
15055 \end_layout
15056
15057 \begin_layout LyX-Code
15058 #!/bin/sh
15059 \begin_inset Newline newline
15060 \end_inset
15061
15062 LYXPIPE="/path/to/lyxpipe"
15063 \begin_inset Newline newline
15064 \end_inset
15065
15066 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
15067 \begin_inset Newline newline
15068 \end_inset
15069
15070 echo "$COMMAND" > "${LYXPIPE}".in || exit
15071 \begin_inset Newline newline
15072 \end_inset
15073
15074 read TMP < "${LYXPIPE}".out || exit
15075 \end_layout
15076
15077 \begin_layout Standard
15078 where 
15079 \begin_inset Flex Code
15080 status collapsed
15081
15082 \begin_layout Plain Layout
15083 /path/to/lyxpipe
15084 \end_layout
15085
15086 \end_inset
15087
15088  is the LyXServer pipe path specified in 
15089 \begin_inset Flex Noun
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 Preferences\SpecialChar menuseparator
15094 Paths
15095 \end_layout
15096
15097 \end_inset
15098
15099 .
15100 \begin_inset Foot
15101 status collapsed
15102
15103 \begin_layout Plain Layout
15104 In the 
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 development/tools
15110 \end_layout
15111
15112 \end_inset
15113
15114  folder of a source distribution you can find a 
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 lyxeditor
15120 \end_layout
15121
15122 \end_inset
15123
15124  script which is able to locate the 
15125 \emph on
15126 lyxpipe
15127 \emph default
15128  based on your preferences.
15129 \end_layout
15130
15131 \end_inset
15132
15133
15134 \end_layout
15135
15136 \begin_layout Subsubsection*
15137 MacDviX (Mac OSX)
15138 \end_layout
15139
15140 \begin_layout Standard
15141 At the end of 
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146 /Applications/MacDviX_Folder/calleditor.script
15147 \end_layout
15148
15149 \end_inset
15150
15151 , add the following lines:
15152 \end_layout
15153
15154 \begin_layout LyX-Code
15155 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
15156 \begin_inset Newline newline
15157 \end_inset
15158
15159 exit 1
15160 \end_layout
15161
15162 \begin_layout Standard
15163 Modify the lines accordingly if you install \SpecialChar LyX
15164  somewhere else than in the
15165  Applications folder.
15166 \end_layout
15167
15168 \begin_layout Standard
15169 Reverse search is triggered by Alt-click (OPTION-click).
15170 \end_layout
15171
15172 \begin_layout Subsubsection*
15173 Skim (Mac OSX)
15174 \end_layout
15175
15176 \begin_layout Standard
15177 Enter 
15178 \begin_inset Flex Code
15179 status collapsed
15180
15181 \begin_layout Plain Layout
15182 open -a Skim.app $$i
15183 \end_layout
15184
15185 \end_inset
15186
15187  to the viewer setting in 
15188 \begin_inset Flex Noun
15189 status collapsed
15190
15191 \begin_layout Plain Layout
15192 Preferences\SpecialChar menuseparator
15193 File Handling\SpecialChar menuseparator
15194 File formats\SpecialChar menuseparator
15195 PDF (pdflatex)
15196 \end_layout
15197
15198 \end_inset
15199
15200 , and then in 
15201 \begin_inset Flex Noun
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 Skim\SpecialChar menuseparator
15206 Preferences\SpecialChar menuseparator
15207 Sync
15208 \end_layout
15209
15210 \end_inset
15211
15212  choose 
15213 \begin_inset Flex Noun
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 custom
15218 \end_layout
15219
15220 \end_inset
15221
15222  preset and enter command 
15223 \begin_inset Flex Noun
15224 status collapsed
15225
15226 \begin_layout Plain Layout
15227 /Applications/\SpecialChar LyX
15228 .app/Contents/MacOS/lyxeditor
15229 \end_layout
15230
15231 \end_inset
15232
15233 .
15234 \end_layout
15235
15236 \begin_layout Standard
15237 Reverse search is triggered by COMMAND-SHIFT-click
15238 \end_layout
15239
15240 \begin_layout Subsubsection*
15241 Evince (GNOME)
15242 \end_layout
15243
15244 \begin_layout Standard
15245 Reverse search with evince does not work out of the box, but it can be achieved
15246  by means of some third party helper scripts.
15247  Please refer to 
15248 \begin_inset CommandInset href
15249 LatexCommand href
15250 target "https://wiki.lyx.org/LyX/SyncTeX"
15251 literal "false"
15252
15253 \end_inset
15254
15255  for details.
15256 \end_layout
15257
15258 \begin_layout Subsubsection*
15259 Okular (KDE)
15260 \end_layout
15261
15262 \begin_layout Standard
15263 Go to 
15264 \begin_inset Flex Noun
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268 Settings\SpecialChar menuseparator
15269 Configure Okular\SpecialChar menuseparator
15270 Editor
15271 \end_layout
15272
15273 \end_inset
15274
15275  and select LyX
15276 \begin_inset Quotes erd
15277 \end_inset
15278
15279  as editor.
15280  This inserts the appropriate command (
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285 lyxclient -g %f %l
15286 \end_layout
15287
15288 \end_inset
15289
15290 ).
15291 \end_layout
15292
15293 \begin_layout Standard
15294 Reverse search is triggered by SHIFT-click.
15295
15296 \change_inserted -712698321 1578211026
15297  Note that this only works if Okular is in 
15298 \begin_inset Quotes eld
15299 \end_inset
15300
15301 Browse
15302 \begin_inset Quotes erd
15303 \end_inset
15304
15305  mode (i.
15306 \begin_inset space \thinspace{}
15307 \end_inset
15308
15309 e., the hand symbol is clicked).
15310 \change_unchanged
15311
15312 \end_layout
15313
15314 \begin_layout Subsubsection*
15315 Qpdfview (Unix)
15316 \end_layout
15317
15318 \begin_layout Standard
15319 Qpdfview supports Sync\SpecialChar TeX
15320  since version 0.3.5.
15321  Go to 
15322 \begin_inset Flex Noun
15323 status collapsed
15324
15325 \begin_layout Plain Layout
15326 Edit\SpecialChar menuseparator
15327 Settings\SpecialChar menuseparator
15328 Behavior
15329 \end_layout
15330
15331 \end_inset
15332
15333 , click on the input field of the 
15334 \begin_inset Quotes eld
15335 \end_inset
15336
15337 Source editor
15338 \begin_inset Quotes erd
15339 \end_inset
15340
15341  item and add the command 
15342 \begin_inset Flex Code
15343 status collapsed
15344
15345 \begin_layout Plain Layout
15346 lyxclient -g %1 %2
15347 \end_layout
15348
15349 \end_inset
15350
15351 .
15352 \end_layout
15353
15354 \begin_layout Standard
15355 Reverse search is triggered by double-click or, in more recent versions,
15356  by context menu.
15357 \end_layout
15358
15359 \begin_layout Subsubsection*
15360 YAP (Windows)
15361 \end_layout
15362
15363 \begin_layout Standard
15364 Launch yap, choose its 
15365 \begin_inset Flex Noun
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 View\SpecialChar menuseparator
15370 Options
15371 \end_layout
15372
15373 \end_inset
15374
15375  menu and select the 
15376 \begin_inset Quotes eld
15377 \end_inset
15378
15379 Inverse DVI Search
15380 \begin_inset Quotes erd
15381 \end_inset
15382
15383  tab.
15384  Click on the 
15385 \begin_inset Quotes eld
15386 \end_inset
15387
15388 New\SpecialChar ldots
15389
15390 \begin_inset Quotes erd
15391 \end_inset
15392
15393  button and, in the window that opens, enter 
15394 \begin_inset Quotes eld
15395 \end_inset
15396
15397 \SpecialChar LyX
15398  Editor
15399 \begin_inset Quotes erd
15400 \end_inset
15401
15402  (or any other name you like) in the 
15403 \begin_inset Quotes eld
15404 \end_inset
15405
15406 Name:
15407 \begin_inset Quotes erd
15408 \end_inset
15409
15410  field.
15411  Now click on the button labeled 
15412 \begin_inset Quotes eld
15413 \end_inset
15414
15415 \SpecialChar ldots
15416
15417 \begin_inset Quotes erd
15418 \end_inset
15419
15420  to open a file dialog and navigate to the directory containing the batch
15421  file 
15422 \begin_inset Flex Code
15423 status collapsed
15424
15425 \begin_layout Plain Layout
15426 lyxeditor.bat
15427 \end_layout
15428
15429 \end_inset
15430
15431  (see below).
15432  Select 
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 lyxeditor.bat
15438 \end_layout
15439
15440 \end_inset
15441
15442  and then specify the program arguments as 
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 %f %l
15448 \end_layout
15449
15450 \end_inset
15451
15452 .
15453  The 
15454 \begin_inset Flex Code
15455 status collapsed
15456
15457 \begin_layout Plain Layout
15458 lyxeditor.bat
15459 \end_layout
15460
15461 \end_inset
15462
15463  wrapper is used for communicating with \SpecialChar LyX
15464  through the 
15465 \emph on
15466 lyxpipe
15467 \emph default
15468  and is as follows:
15469 \end_layout
15470
15471 \begin_layout LyX-Code
15472 @echo off
15473 \begin_inset Newline newline
15474 \end_inset
15475
15476 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
15477 \backslash
15478
15479 \backslash
15480 .
15481 \backslash
15482 pipe
15483 \backslash
15484 lyxpipe.in
15485 \begin_inset Newline newline
15486 \end_inset
15487
15488 type 
15489 \backslash
15490
15491 \backslash
15492 .
15493 \backslash
15494 pipe
15495 \backslash
15496 lyxpipe.out
15497 \end_layout
15498
15499 \begin_layout Standard
15500 Make sure that the \SpecialChar LyX
15501 Server pipe path you specified in \SpecialChar LyX
15502  is 
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507
15508 \backslash
15509
15510 \backslash
15511 .
15512 \backslash
15513 pipe
15514 \backslash
15515 lyxpipe
15516 \end_layout
15517
15518 \end_inset
15519
15520 , otherwise change the 
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525 lyxeditor.bat
15526 \end_layout
15527
15528 \end_inset
15529
15530  wrapper accordingly.
15531 \end_layout
15532
15533 \begin_layout Standard
15534 In yap, reverse search is triggered by double-click.
15535 \end_layout
15536
15537 \begin_layout Subsubsection*
15538 SumatraPDF (Windows)
15539 \end_layout
15540
15541 \begin_layout Standard
15542 In order to use SumatraPDF for inverse search, enter 
15543 \begin_inset Flex Code
15544 status collapsed
15545
15546 \begin_layout Plain Layout
15547 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
15548 \end_layout
15549
15550 \end_inset
15551
15552  in the viewer setting in 
15553 \begin_inset Flex Noun
15554 status collapsed
15555
15556 \begin_layout Plain Layout
15557 Preferences\SpecialChar menuseparator
15558 File Handling\SpecialChar menuseparator
15559 File formats\SpecialChar menuseparator
15560 PDF (pdflatex)
15561 \end_layout
15562
15563 \end_inset
15564
15565 , where 
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 lyxeditor.bat
15571 \end_layout
15572
15573 \end_inset
15574
15575  is the previous wrapper.
15576  If SumatraPDF.exe is not in your command PATH, use its full file name.
15577 \end_layout
15578
15579 \begin_layout Standard
15580 Reverse search is triggered by double-click.
15581 \end_layout
15582
15583 \begin_layout Subsubsection*
15584 YAP (Cygwin)
15585 \end_layout
15586
15587 \begin_layout Standard
15588 First of all, make sure that yap is your default DVI viewer in the Windows
15589  environment, then launch it, choose its 
15590 \begin_inset Flex Noun
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 View\SpecialChar menuseparator
15595 Options
15596 \end_layout
15597
15598 \end_inset
15599
15600  menu and select the 
15601 \begin_inset Quotes eld
15602 \end_inset
15603
15604 Inverse DVI Search
15605 \begin_inset Quotes erd
15606 \end_inset
15607
15608  tab.
15609  Click on the 
15610 \begin_inset Quotes eld
15611 \end_inset
15612
15613 New\SpecialChar ldots
15614
15615 \begin_inset Quotes erd
15616 \end_inset
15617
15618  button and, in the window that opens, enter 
15619 \begin_inset Quotes eld
15620 \end_inset
15621
15622 \SpecialChar LyX
15623  Editor
15624 \begin_inset Quotes erd
15625 \end_inset
15626
15627  (or any other name you like) in the 
15628 \begin_inset Quotes eld
15629 \end_inset
15630
15631 Name:
15632 \begin_inset Quotes erd
15633 \end_inset
15634
15635  field.
15636  Now click on the button labeled 
15637 \begin_inset Quotes eld
15638 \end_inset
15639
15640 \SpecialChar ldots
15641
15642 \begin_inset Quotes erd
15643 \end_inset
15644
15645  to open a file dialog and navigate to the directory containing the 
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 lyxeditor.exe
15651 \end_layout
15652
15653 \end_inset
15654
15655  program (which is installed by default on Cygwin along with the \SpecialChar LyX
15656  executable).
15657  Select 
15658 \begin_inset Flex Code
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 lyxeditor.exe
15663 \end_layout
15664
15665 \end_inset
15666
15667  and then specify the program arguments as 
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672 -g %f %l
15673 \end_layout
15674
15675 \end_inset
15676
15677 .
15678  In this way, you will be using the 
15679 \emph on
15680 lyxsocket
15681 \emph default
15682  for communicating with \SpecialChar LyX
15683 .
15684  If, for whatever reason, you want to use the 
15685 \emph on
15686 lyxpipe
15687 \emph default
15688 , omit the 
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 -g
15694 \end_layout
15695
15696 \end_inset
15697
15698  option and be sure to specify the \SpecialChar LyX
15699 Server pipe path in the \SpecialChar LyX
15700  preferences.
15701 \end_layout
15702
15703 \begin_layout Standard
15704 In yap, reverse search is triggered by double-click.
15705 \end_layout
15706
15707 \begin_layout Subsubsection*
15708 SumatraPDF (Cygwin)
15709 \end_layout
15710
15711 \begin_layout Standard
15712 In order to use SumatraPDF for inverse search, enter 
15713 \begin_inset Flex Code
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 SumatraPDF -inverse-search "lyxeditor -g %f %l"
15718 \end_layout
15719
15720 \end_inset
15721
15722  in the viewer setting in 
15723 \begin_inset Flex Noun
15724 status collapsed
15725
15726 \begin_layout Plain Layout
15727 Preferences\SpecialChar menuseparator
15728 File Handling\SpecialChar menuseparator
15729 File formats\SpecialChar menuseparator
15730 PDF (pdflatex)
15731 \end_layout
15732
15733 \end_inset
15734
15735 .
15736  If SumatraPDF.exe is not in your command PATH, use its full posix path.
15737  The 
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 -g
15743 \end_layout
15744
15745 \end_inset
15746
15747  enables communication via the 
15748 \emph on
15749 lyxsocket
15750 \emph default
15751 .
15752  Again, omit the 
15753 \begin_inset Flex Code
15754 status collapsed
15755
15756 \begin_layout Plain Layout
15757 -g
15758 \end_layout
15759
15760 \end_inset
15761
15762  option if you want to use the 
15763 \emph on
15764 lyxpipe
15765 \emph default
15766 , and be sure to specify the \SpecialChar LyX
15767 Server pipe path in the \SpecialChar LyX
15768  preferences.
15769 \end_layout
15770
15771 \begin_layout Standard
15772 Reverse search is triggered by double-click.
15773 \end_layout
15774
15775 \begin_layout Section
15776 Forward search
15777 \end_layout
15778
15779 \begin_layout Standard
15780 Forward search is, as the name implies, in a sense the 
15781 \begin_inset Quotes eld
15782 \end_inset
15783
15784 opposite
15785 \begin_inset Quotes erd
15786 \end_inset
15787
15788  of reverse search.
15789  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
15790 .
15791  If forward search is set up (as described in what follows), you can put
15792  the cursor anywhere in your \SpecialChar LyX
15793  document, and hit 
15794 \begin_inset Flex Noun
15795 status collapsed
15796
15797 \begin_layout Plain Layout
15798 Navigate\SpecialChar menuseparator
15799 Forward search
15800 \end_layout
15801
15802 \end_inset
15803
15804  (or select 
15805 \begin_inset Flex Noun
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 Forward search
15810 \end_layout
15811
15812 \end_inset
15813
15814  in the context menu via right mouse click), and then the viewer will jump
15815  to that position as well.
15816  This implies, of course, that your viewer supports this function.
15817 \end_layout
15818
15819 \begin_layout Standard
15820 To make forward search possible, you first need to provide the generated
15821  output PDF/DVI file with additional information about the \SpecialChar TeX
15822  sources.
15823  This can be done via the methods described in the section 
15824 \begin_inset CommandInset ref
15825 LatexCommand ref
15826 reference "subsec:rev-search"
15827
15828 \end_inset
15829
15830 .
15831 \end_layout
15832
15833 \begin_layout Standard
15834 Additionally, you need to configure \SpecialChar LyX
15835  for using your viewers in 
15836 \begin_inset Flex Noun
15837 status collapsed
15838
15839 \begin_layout Plain Layout
15840 Tools\SpecialChar menuseparator
15841 Preferences\SpecialChar menuseparator
15842 Output\SpecialChar menuseparator
15843 General
15844 \end_layout
15845
15846 \end_inset
15847
15848 .
15849  We provide a range of tested configurations for some viewers, which you
15850  can select from the drop down list.
15851  If none of these configurations suits you, you have to find out and enter
15852  a suitable configuration yourself.
15853  The definition syntax uses the following placeholders:
15854 \end_layout
15855
15856 \begin_layout Itemize
15857 \noindent
15858 \begin_inset Flex Code
15859 status collapsed
15860
15861 \begin_layout Plain Layout
15862 $$n
15863 \end_layout
15864
15865 \end_inset
15866
15867 : row number
15868 \end_layout
15869
15870 \begin_layout Itemize
15871 \noindent
15872 \begin_inset Flex Code
15873 status collapsed
15874
15875 \begin_layout Plain Layout
15876 $$t
15877 \end_layout
15878
15879 \end_inset
15880
15881 : name of the (temporary) exported .tex file (without path)
15882 \end_layout
15883
15884 \begin_layout Itemize
15885 \noindent
15886 \begin_inset Flex Code
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 $$f
15891 \end_layout
15892
15893 \end_inset
15894
15895 : name of the (temporary) exported .tex file (including path)
15896 \end_layout
15897
15898 \begin_layout Itemize
15899 \noindent
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 $$o
15905 \end_layout
15906
15907 \end_inset
15908
15909 : name of the exported output file (either dvi or pdf, depending on which
15910  one exists in the temporary directory)
15911 \end_layout
15912
15913 \begin_layout Standard
15914 Note that only some of the viewers provide full and usable forward search
15915  functionality out of the box, among them yap, xdvi, okular
15916 \begin_inset Foot
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 You might want to set 
15921 \begin_inset Flex Code
15922 status collapsed
15923
15924 \begin_layout Plain Layout
15925 okular --unique
15926 \end_layout
15927
15928 \end_inset
15929
15930  in 
15931 \begin_inset Flex Noun
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 Tools\SpecialChar menuseparator
15936 Preferences\SpecialChar menuseparator
15937 File Handling\SpecialChar menuseparator
15938 File
15939 \begin_inset space ~
15940 \end_inset
15941
15942 Formats
15943 \end_layout
15944
15945 \end_inset
15946
15947
15948 \end_layout
15949
15950 \end_inset
15951
15952 , qpdfview, and SumatraPDF
15953 \begin_inset Foot
15954 status collapsed
15955
15956 \begin_layout Plain Layout
15957 SumatraPDF can also use DDE commands through the external program CMCDDE
15958  — downloadable from 
15959 \begin_inset CommandInset href
15960 LatexCommand href
15961 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
15962 literal "false"
15963
15964 \end_inset
15965
15966
15967 \end_layout
15968
15969 \end_inset
15970
15971 .
15972  Others, such as evince
15973 \begin_inset Foot
15974 status collapsed
15975
15976 \begin_layout Plain Layout
15977 Forward search with evince can be achieved by means of third party helper
15978  scripts.
15979  Please refer to 
15980 \begin_inset CommandInset href
15981 LatexCommand href
15982 target "https://wiki.lyx.org/LyX/SyncTeX"
15983 literal "false"
15984
15985 \end_inset
15986
15987  for details.
15988 \end_layout
15989
15990 \end_inset
15991
15992 , require some extra tools in order to use forward search.
15993  While many of the widespread PDF viewers (most notably Adobe Reader) do
15994  not support forward search at all, some other viewers – e.
15995 \begin_inset space \thinspace{}
15996 \end_inset
15997
15998 g.
15999  xpdf – allow at least to reload the document and jump to a specific page
16000  of the file, so you can at least navigate 
16001 \begin_inset Quotes eld
16002 \end_inset
16003
16004 near
16005 \begin_inset Quotes erd
16006 \end_inset
16007
16008 .
16009  This latter functionality is provided by an external call of synctex (see
16010  the predefined example configurations).
16011  
16012 \end_layout
16013
16014 \begin_layout Standard
16015 Forward search works both with DVI and PDF output.
16016  \SpecialChar LyX
16017  simply checks which preview format you have used before (i.
16018 \begin_inset space \thinspace{}
16019 \end_inset
16020
16021 e., which format is already there in the temporary directory) and chooses
16022  the appropriate configuration for the respective format.
16023 \end_layout
16024
16025 \begin_layout Chapter
16026 Special Document Classes
16027 \end_layout
16028
16029 \begin_layout Section
16030
16031 \change_deleted 564990737 1669742044
16032 A&A Paper
16033 \end_layout
16034
16035 \begin_layout Standard
16036
16037 \change_deleted 564990737 1669742044
16038 by 
16039 \noun on
16040 Peter Sütterlin
16041 \end_layout
16042
16043 \begin_layout Subsection
16044
16045 \change_deleted 564990737 1669742044
16046 Introduction
16047 \end_layout
16048
16049 \begin_layout Standard
16050
16051 \change_deleted 564990737 1669742044
16052 This section describes how \SpecialChar LyX
16053  can be used to write articles for submission
16054  to the scientific journal 
16055 \emph on
16056 Astronomy and Astrophysics
16057 \emph default
16058  (
16059 \begin_inset Flex URL
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063
16064 https://www.aanda.org/
16065 \end_layout
16066
16067 \end_inset
16068
16069 ) using Version 5.01 of the document class 
16070 \family typewriter
16071 aa.cls
16072 \family default
16073 .
16074  This package can be downloaded from the ftp site
16075 \end_layout
16076
16077 \begin_layout Standard
16078
16079 \change_deleted 564990737 1669742044
16080 \begin_inset VSpace medskip
16081 \end_inset
16082
16083
16084 \end_layout
16085
16086 \begin_layout Standard
16087 \align center
16088
16089 \change_deleted 564990737 1669742044
16090 \begin_inset Flex URL
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094
16095 ftp://ftp.edpsciences.org/pub/aa/readme.html
16096 \end_layout
16097
16098 \end_inset
16099
16100
16101 \end_layout
16102
16103 \begin_layout Standard
16104
16105 \change_deleted 564990737 1669742044
16106 \begin_inset VSpace medskip
16107 \end_inset
16108
16109
16110 \end_layout
16111
16112 \begin_layout Standard
16113
16114 \change_deleted 564990737 1669742044
16115 A manual comes together with that package, and this text is not meant to
16116  replace the original manual but is merely a short guide in how to realize
16117  the correct form of your paper.
16118  
16119 \end_layout
16120
16121 \begin_layout Standard
16122
16123 \change_deleted 564990737 1669742044
16124 Please note that the publisher of the journal was changed from Springer
16125  to EDP Sciences starting January 1, 2001.
16126  That change involved also some slight changes to the style files, namely
16127  the removal of the thesaurus command.
16128  The \SpecialChar LyX
16129  class aa supports the newest version of these style files, V 5.01.
16130  If you have an older version installed, please upgrade.
16131  For compatibility, the old (version 4) layout has been kept as 
16132 \family sans
16133 article (A&A V4)
16134 \family default
16135 .
16136  Please refer to the comments in 
16137 \family typewriter
16138 \SpecialChar LyX
16139 Dir/layouts/aapaper.layout
16140 \family default
16141 .
16142 \end_layout
16143
16144 \begin_layout Subsection
16145
16146 \change_deleted 564990737 1669742044
16147 Getting started
16148 \end_layout
16149
16150 \begin_layout Standard
16151
16152 \change_deleted 564990737 1669742044
16153 It is recommended you start from the example template distributed with \SpecialChar LyX
16154 .
16155  If you are not using a template, note the following settings:
16156 \end_layout
16157
16158 \begin_layout Itemize
16159
16160 \change_deleted 564990737 1669742044
16161 Select 
16162 \family sans
16163 article (A&A)
16164 \family default
16165  in the 
16166 \family sans
16167 Document\SpecialChar menuseparator
16168 Settings
16169 \family default
16170  dialog (OK, that one was obvious).
16171 \end_layout
16172
16173 \begin_layout Itemize
16174
16175 \change_deleted 564990737 1669742044
16176 Don't change the option 
16177 \family sans
16178 Page
16179 \begin_inset space ~
16180 \end_inset
16181
16182 style
16183 \family default
16184 : Leave it set to 
16185 \family sans
16186 default
16187 \family default
16188 .
16189  The whole layout is done by the macros, you shouldn't change anything.
16190 \end_layout
16191
16192 \begin_layout Subsection
16193
16194 \change_deleted 564990737 1669742044
16195 The header block
16196 \end_layout
16197
16198 \begin_layout Standard
16199
16200 \change_deleted 564990737 1669742044
16201 First thing to enter is the header information.
16202  It consists of seven entries, of which some are optional.
16203  They are
16204 \end_layout
16205
16206 \begin_layout Itemize
16207
16208 \change_deleted 564990737 1669742044
16209
16210 \family sans
16211 Title
16212 \family default
16213 : [required] 
16214 \end_layout
16215
16216 \begin_layout Itemize
16217
16218 \change_deleted 564990737 1669742044
16219
16220 \family sans
16221 Subtitle
16222 \family default
16223 : [optional] 
16224 \end_layout
16225
16226 \begin_layout Itemize
16227
16228 \change_deleted 564990737 1669742044
16229
16230 \family sans
16231 Author
16232 \family default
16233 : [required]
16234 \end_layout
16235
16236 \begin_layout Itemize
16237
16238 \change_deleted 564990737 1669742044
16239
16240 \family sans
16241 Address
16242 \family default
16243 : [required]
16244 \end_layout
16245
16246 \begin_layout Itemize
16247
16248 \change_deleted 564990737 1669742044
16249
16250 \family sans
16251 Offprints
16252 \family default
16253 : [optional] if more than one author: whom to contact for offprint requests.
16254 \end_layout
16255
16256 \begin_layout Itemize
16257
16258 \change_deleted 564990737 1669742044
16259
16260 \family sans
16261 Mail
16262 \family default
16263 : [optional] mail address for contacts.
16264 \end_layout
16265
16266 \begin_layout Itemize
16267
16268 \change_deleted 564990737 1669742044
16269
16270 \family sans
16271 Date
16272 \family default
16273 : [required].
16274  Suggested format is 
16275 \family typewriter
16276 Received: <date>; Accepted <date> 
16277 \end_layout
16278
16279 \begin_layout Standard
16280
16281 \change_deleted 564990737 1669742044
16282 There is no need to issue the 
16283 \family typewriter
16284
16285 \backslash
16286 maketitle
16287 \family default
16288  command, this is done automatically by \SpecialChar LyX
16289  when the header is finished.
16290  Although the order of the single header entries doesn't matter it is advised
16291  to keep the above sequence, just to get the best optics and meets the layout
16292  of the real document.
16293 \end_layout
16294
16295 \begin_layout Standard
16296
16297 \change_deleted 564990737 1669742044
16298 If you want to place footnotes in the header block, e.
16299 \begin_inset space \thinspace{}
16300 \end_inset
16301
16302 g.
16303 \begin_inset space \space{}
16304 \end_inset
16305
16306 to state your present address, just use the standard footnote via the menu
16307  
16308 \family sans
16309 Insert\SpecialChar menuseparator
16310 Footnote.
16311
16312 \family default
16313  \SpecialChar LyX
16314  will automagically use the term 
16315 \family typewriter
16316
16317 \backslash
16318 thanks{}
16319 \family default
16320  in that case.
16321 \end_layout
16322
16323 \begin_layout Standard
16324
16325 \change_deleted 564990737 1669742044
16326 Under 
16327 \family sans
16328 Edit\SpecialChar menuseparator
16329 Text Style
16330 \family default
16331 , you'll find two insets which are relevant for the titling:
16332 \end_layout
16333
16334 \begin_layout Itemize
16335
16336 \change_deleted 564990737 1669742044
16337
16338 \family sans
16339 Institute
16340 \family typewriter
16341  
16342 \family default
16343 to mark corresponding author\SpecialChar breakableslash
16344 institute pairs.
16345  The institutes are numbered sequentially as they appear in the 
16346 \family sans
16347 Address
16348 \family default
16349  field, so you have to put a marker to each author.
16350 \end_layout
16351
16352 \begin_layout Itemize
16353
16354 \change_deleted 564990737 1669742044
16355
16356 \family sans
16357 Email
16358 \family default
16359  to supply an email address for fast contact.
16360 \end_layout
16361
16362 \begin_layout Standard
16363
16364 \change_deleted 564990737 1669742044
16365 In addition to these topics, the macros use one additional \SpecialChar LaTeX
16366  command that
16367  has no counterpart in \SpecialChar LyX
16368 :
16369 \end_layout
16370
16371 \begin_layout Itemize
16372
16373 \change_deleted 564990737 1669742044
16374
16375 \family typewriter
16376
16377 \backslash
16378 and
16379 \family default
16380  to separate different names for more than one author and institute, respectivel
16381 y.
16382 \end_layout
16383
16384 \begin_layout Standard
16385
16386 \change_deleted 564990737 1669742044
16387 The appropriate command has to be entered in \SpecialChar LyX
16388  and marked as \SpecialChar LaTeX
16389  code.
16390  See the examples.
16391  
16392 \end_layout
16393
16394 \begin_layout Subsection
16395
16396 \change_deleted 564990737 1669742044
16397 The abstract
16398 \end_layout
16399
16400 \begin_layout Standard
16401
16402 \change_deleted 564990737 1669742044
16403 The abstract should immediately follow the header block.
16404  With version 5 the abstract environment was changed to a command, and there
16405  is now a restriction to only one paragraph.
16406  In addition, it should contain an entry with the keywords.
16407  This is done via the paragraph style 
16408 \family sans
16409 Keywords
16410 \family default
16411 .
16412  Refer to the example paper.
16413 \end_layout
16414
16415 \begin_layout Subsection
16416
16417 \change_deleted 564990737 1669742044
16418 Supported environments
16419 \end_layout
16420
16421 \begin_layout Standard
16422
16423 \change_deleted 564990737 1669742044
16424 The A&A paper layout supports the following environments for structuring
16425  your text:
16426 \end_layout
16427
16428 \begin_layout Itemize
16429
16430 \change_deleted 564990737 1669742044
16431
16432 \family sans
16433 Standard
16434 \end_layout
16435
16436 \begin_layout Itemize
16437
16438 \change_deleted 564990737 1669742044
16439
16440 \family sans
16441 Section
16442 \end_layout
16443
16444 \begin_layout Itemize
16445
16446 \change_deleted 564990737 1669742044
16447
16448 \family sans
16449 Subsection
16450 \end_layout
16451
16452 \begin_layout Itemize
16453
16454 \change_deleted 564990737 1669742044
16455
16456 \family sans
16457 Subsubsection
16458 \end_layout
16459
16460 \begin_layout Itemize
16461
16462 \change_deleted 564990737 1669742044
16463
16464 \family sans
16465 Itemize
16466 \end_layout
16467
16468 \begin_layout Itemize
16469
16470 \change_deleted 564990737 1669742044
16471
16472 \family sans
16473 Enumerate
16474 \end_layout
16475
16476 \begin_layout Itemize
16477
16478 \change_deleted 564990737 1669742044
16479
16480 \family sans
16481 Description
16482 \end_layout
16483
16484 \begin_layout Itemize
16485
16486 \change_deleted 564990737 1669742044
16487
16488 \family sans
16489 Caption
16490 \end_layout
16491
16492 \begin_layout Itemize
16493
16494 \change_deleted 564990737 1669742044
16495
16496 \family sans
16497 Abstract
16498 \end_layout
16499
16500 \begin_layout Itemize
16501
16502 \change_deleted 564990737 1669742044
16503
16504 \family sans
16505 Acknowledgment
16506 \end_layout
16507
16508 \begin_layout Itemize
16509
16510 \change_deleted 564990737 1669742044
16511
16512 \family sans
16513 Bibliography
16514 \end_layout
16515
16516 \begin_layout Itemize
16517
16518 \change_deleted 564990737 1669742044
16519
16520 \family sans
16521 \SpecialChar LaTeX
16522
16523 \end_layout
16524
16525 \begin_layout Subsection
16526
16527 \change_deleted 564990737 1669742044
16528 Commands not supported by \SpecialChar LyX
16529
16530 \end_layout
16531
16532 \begin_layout Standard
16533
16534 \change_deleted 564990737 1669742044
16535 Some commands are not yet supported by the 
16536 \family sans
16537 paper (A&A)
16538 \family default
16539  layout for \SpecialChar LyX
16540 .
16541  Some have already been mentioned.
16542  For the sake of completeness, they are listed all together here:
16543 \end_layout
16544
16545 \begin_layout Itemize
16546
16547 \change_deleted 564990737 1669742044
16548
16549 \family typewriter
16550
16551 \backslash
16552 and
16553 \end_layout
16554
16555 \begin_layout Itemize
16556
16557 \change_deleted 564990737 1669742044
16558
16559 \family typewriter
16560
16561 \backslash
16562 authorrunning
16563 \end_layout
16564
16565 \begin_layout Itemize
16566
16567 \change_deleted 564990737 1669742044
16568
16569 \family typewriter
16570
16571 \backslash
16572 object{}
16573 \end_layout
16574
16575 \begin_layout Itemize
16576
16577 \change_deleted 564990737 1669742044
16578
16579 \family typewriter
16580
16581 \backslash
16582 titlerunning{}
16583 \end_layout
16584
16585 \begin_layout Standard
16586
16587 \change_deleted 564990737 1669742044
16588 If you want to use any of these commands, you have to enter them yourself.
16589  
16590 \series bold
16591 Do not forget to mark them as \SpecialChar LaTeX
16592  code!
16593 \end_layout
16594
16595 \begin_layout Subsection
16596
16597 \change_deleted 564990737 1669742044
16598 Figure and Table Floats
16599 \end_layout
16600
16601 \begin_layout Standard
16602
16603 \change_deleted 564990737 1669742044
16604 \SpecialChar LyX
16605  provides support for the necessary float environments 
16606 \family sans
16607 figure, figure*, table
16608 \family default
16609  and 
16610 \family sans
16611 table*
16612 \family default
16613 , therefore we won't tell much about it here.
16614  Refer to the 
16615 \emph on
16616 User's
16617 \begin_inset space ~
16618 \end_inset
16619
16620 Guide
16621 \emph default
16622 .
16623  Just remember that tables should be left-aligned.
16624  For that, select the table and change the alignment in 
16625 \family sans
16626 Edit\SpecialChar menuseparator
16627 Paragraph
16628 \begin_inset space ~
16629 \end_inset
16630
16631 Settings.
16632 \end_layout
16633
16634 \begin_layout Standard
16635
16636 \change_deleted 564990737 1669742044
16637 There is only one special thing: the figures with caption besides the figure.
16638  To create such a figure, you have to do the following:
16639 \end_layout
16640
16641 \begin_layout Enumerate
16642
16643 \change_deleted 564990737 1669742044
16644 Create a wide figure float: 
16645 \family sans
16646 Insert\SpecialChar menuseparator
16647 Float\SpecialChar menuseparator
16648 Figure
16649 \family default
16650 , then right click in the figure and select 
16651 \family sans
16652 Span
16653 \begin_inset space ~
16654 \end_inset
16655
16656 columns
16657 \family default
16658 .
16659 \end_layout
16660
16661 \begin_layout Enumerate
16662
16663 \change_deleted 564990737 1669742044
16664 Enter your caption text.
16665 \end_layout
16666
16667 \begin_layout Enumerate
16668
16669 \change_deleted 564990737 1669742044
16670 Press 
16671 \family sans
16672 Return
16673 \family default
16674  to move the cursor above the caption.
16675 \end_layout
16676
16677 \begin_layout Enumerate
16678
16679 \change_deleted 564990737 1669742044
16680 Insert your figure
16681 \end_layout
16682
16683 \begin_layout Enumerate
16684
16685 \change_deleted 564990737 1669742044
16686 Position the cursor behind the figure and insert a horizontal fill: 
16687 \family sans
16688 Insert\SpecialChar menuseparator
16689 Special
16690 \begin_inset space ~
16691 \end_inset
16692
16693 Character\SpecialChar menuseparator
16694 Horizontal
16695 \begin_inset space ~
16696 \end_inset
16697
16698 Fill
16699 \family default
16700 .
16701 \end_layout
16702
16703 \begin_layout Enumerate
16704
16705 \change_deleted 564990737 1669742044
16706 Switch to \SpecialChar LaTeX
16707  mode: 
16708 \family sans
16709 M-c
16710 \begin_inset space ~
16711 \end_inset
16712
16713 t
16714 \family default
16715 .
16716 \end_layout
16717
16718 \begin_layout Enumerate
16719
16720 \change_deleted 564990737 1669742044
16721 Enter 
16722 \family typewriter
16723
16724 \backslash
16725 parbox[b]{55mm}{
16726 \family default
16727 .
16728  
16729 \series bold
16730 Do not close the brace!
16731 \end_layout
16732
16733 \begin_layout Enumerate
16734
16735 \change_deleted 564990737 1669742044
16736 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
16737  mode and insert
16738  the closing brace: 
16739 \family sans
16740 M-c
16741 \begin_inset space ~
16742 \end_inset
16743
16744 t
16745 \family default
16746  
16747 \family typewriter
16748 }
16749 \family default
16750 .
16751 \end_layout
16752
16753 \begin_layout Standard
16754
16755 \change_deleted 564990737 1669742044
16756 Also, refer to the figures in the example paper.
16757 \end_layout
16758
16759 \begin_layout Subsection
16760
16761 \change_deleted 564990737 1669742044
16762 Referee layout
16763 \end_layout
16764
16765 \begin_layout Standard
16766
16767 \change_deleted 564990737 1669742044
16768 For submission, the paper has to be formated in a special double-spacing
16769  layout.
16770  For this purpose, you have to give the option 
16771 \family typewriter
16772 referee
16773 \family default
16774  to the document class.
16775  This must be done using the custom class options field in the 
16776 \family sans
16777 Document\SpecialChar menuseparator
16778 Settings
16779 \family default
16780  dialog.
16781  Just enter the string 
16782 \family typewriter
16783 referee
16784 \family default
16785  there.
16786 \end_layout
16787
16788 \begin_layout Subsection
16789
16790 \change_deleted 564990737 1669742044
16791 The example paper
16792 \end_layout
16793
16794 \begin_layout Standard
16795
16796 \change_deleted 564990737 1669742044
16797 The 
16798 \family sans
16799 Examples
16800 \family default
16801  directory contains an example paper written with \SpecialChar LyX
16802 .
16803  It is the example paper from the original macro package, translated to
16804  \SpecialChar LyX
16805 .
16806  Use it for inspiration, and compare the original \SpecialChar LaTeX
16807  code with \SpecialChar LyX
16808  way of writing.
16809 \end_layout
16810
16811 \begin_layout Section
16812 Dinbrief
16813 \end_layout
16814
16815 \begin_layout Standard
16816 The document class 
16817 \family sans
16818 dinbrief
16819 \family default
16820  can be used to type letters according to German conventions.
16821  A template file is included in 
16822 \family typewriter
16823 .../lyx/share/templates
16824 \family default
16825  for you to use as a starting point.
16826 \end_layout
16827
16828 \begin_layout Section
16829 Elsevier Journals
16830 \end_layout
16831
16832 \begin_layout Standard
16833 See the \SpecialChar LyX
16834  template file 
16835 \family typewriter
16836 elsarticle.lyx
16837 \family default
16838 .
16839  It contains all infos you need.
16840 \end_layout
16841
16842 \begin_layout Section
16843
16844 \change_deleted 564990737 1669755802
16845 ijmpc and ijmpd
16846 \end_layout
16847
16848 \begin_layout Standard
16849
16850 \change_deleted 564990737 1669755802
16851 by 
16852 \noun on
16853 Panayotis Papasotiriou
16854 \end_layout
16855
16856 \begin_layout Subsection
16857
16858 \change_deleted 564990737 1669755802
16859 Overview
16860 \end_layout
16861
16862 \begin_layout Standard
16863
16864 \change_deleted 564990737 1669755802
16865 The ijmpc package is a set of macros that facilitates electronic manuscript
16866  submission to the 
16867 \emph on
16868 International Journal of Modern Physics C
16869 \emph default
16870 .
16871  Similarly, the ijmpd package is for creating manuscripts to be submitted
16872  to the 
16873 \emph on
16874 International Journal of Modern Physics D
16875 \emph default
16876 .
16877  Both journals are published by World Scientific.
16878  The corresponding document classes are named 
16879 \family typewriter
16880 ws-ijmpc.cls
16881 \family default
16882  and 
16883 \family typewriter
16884 ws-ijmpd.cls
16885 \family default
16886 , respectively.
16887  These files, together with instructions for the authors, can be downloaded
16888  from the sites 
16889 \begin_inset Flex URL
16890 status collapsed
16891
16892 \begin_layout Plain Layout
16893
16894 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
16895 \end_layout
16896
16897 \end_inset
16898
16899  and 
16900 \begin_inset Flex URL
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904
16905 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
16906 \end_layout
16907
16908 \end_inset
16909
16910 .
16911  Both packages are modified versions of the standard 
16912 \begin_inset Quotes eld
16913 \end_inset
16914
16915 article
16916 \begin_inset Quotes erd
16917 \end_inset
16918
16919  package, and they are almost (but not exactly) identical.
16920  Most of their features are supported by \SpecialChar LyX
16921 .
16922  I have used \SpecialChar LyX
16923  successfully to write articles submitted to both journals
16924  without any problem.
16925 \end_layout
16926
16927 \begin_layout Subsection
16928
16929 \change_deleted 564990737 1669755802
16930 Writing a paper
16931 \end_layout
16932
16933 \begin_layout Standard
16934
16935 \change_deleted 564990737 1669755802
16936 As usual, the easiest way to write a paper is to start with a template.
16937  Click on 
16938 \family sans
16939 File\SpecialChar menuseparator
16940 New from
16941 \family default
16942  
16943 \family sans
16944 Template
16945 \family default
16946 , then choose the 
16947 \family typewriter
16948 ijmpc.lyx
16949 \family default
16950  or 
16951 \family typewriter
16952 ijmpd.lyx
16953 \family default
16954  template.
16955  This will give an (almost) empty document that includes the most common
16956  fields found in a manuscript.
16957  Simply overwrite the existing text (including the brackets, 
16958 \family typewriter
16959 <>
16960 \family default
16961 ) with your text.
16962  You should keep in mind the following remarks.
16963 \end_layout
16964
16965 \begin_layout Enumerate
16966
16967 \change_deleted 564990737 1669755802
16968 \SpecialChar LyX
16969  won't let you change the font size and the page style of the document,
16970  because such modifications are not allowed by both packages.
16971 \end_layout
16972
16973 \begin_layout Enumerate
16974
16975 \change_deleted 564990737 1669755802
16976 The language of the document should not be changed.
16977  Before previewing your paper, be sure that the babel package is not used.
16978  To do this, click on 
16979 \begin_inset Info
16980 type  "menu"
16981 arg   "dialog-show document"
16982 \end_inset
16983
16984  
16985 \family sans
16986 \SpecialChar menuseparator
16987 Language
16988 \family default
16989 , and select 
16990 \begin_inset Quotes eld
16991 \end_inset
16992
16993 None
16994 \begin_inset Quotes erd
16995 \end_inset
16996
16997  as 
16998 \family sans
16999 Language Package
17000 \family default
17001 .
17002 \end_layout
17003
17004 \begin_layout Enumerate
17005
17006 \change_deleted 564990737 1669755802
17007 The 
17008 \begin_inset Quotes eld
17009 \end_inset
17010
17011 Keywords
17012 \begin_inset Quotes erd
17013 \end_inset
17014
17015  style must be used to define keywords.
17016 \end_layout
17017
17018 \begin_layout Enumerate
17019
17020 \change_deleted 564990737 1669755802
17021 The ijmpc package provides a style named 
17022 \begin_inset Quotes eld
17023 \end_inset
17024
17025 Classification Codes
17026 \begin_inset Quotes erd
17027 \end_inset
17028
17029 , which can be used to define classification codes, such as PACS numbers.
17030  Note that this facility is not supported by the ijmpd package.
17031 \end_layout
17032
17033 \begin_layout Enumerate
17034
17035 \change_deleted 564990737 1669755802
17036 Several new environments are available: 
17037 \begin_inset Quotes eld
17038 \end_inset
17039
17040 Definition
17041 \begin_inset Quotes erd
17042 \end_inset
17043
17044
17045 \begin_inset Quotes eld
17046 \end_inset
17047
17048 Step
17049 \begin_inset Quotes erd
17050 \end_inset
17051
17052
17053 \begin_inset Quotes eld
17054 \end_inset
17055
17056 Example
17057 \begin_inset Quotes erd
17058 \end_inset
17059
17060
17061 \begin_inset Quotes eld
17062 \end_inset
17063
17064 Remark
17065 \begin_inset Quotes erd
17066 \end_inset
17067
17068
17069 \begin_inset Quotes eld
17070 \end_inset
17071
17072 Notation
17073 \begin_inset Quotes erd
17074 \end_inset
17075
17076
17077 \begin_inset Quotes eld
17078 \end_inset
17079
17080 Theorem
17081 \begin_inset Quotes erd
17082 \end_inset
17083
17084
17085 \begin_inset Quotes eld
17086 \end_inset
17087
17088 Proof
17089 \begin_inset Quotes erd
17090 \end_inset
17091
17092
17093 \begin_inset Quotes eld
17094 \end_inset
17095
17096 Corollary
17097 \begin_inset Quotes erd
17098 \end_inset
17099
17100
17101 \begin_inset Quotes eld
17102 \end_inset
17103
17104 Lemma
17105 \begin_inset Quotes erd
17106 \end_inset
17107
17108
17109 \begin_inset Quotes eld
17110 \end_inset
17111
17112 Proposition
17113 \begin_inset Quotes erd
17114 \end_inset
17115
17116
17117 \begin_inset Quotes eld
17118 \end_inset
17119
17120 Prop
17121 \begin_inset Quotes erd
17122 \end_inset
17123
17124
17125 \begin_inset Quotes eld
17126 \end_inset
17127
17128 Question
17129 \begin_inset Quotes erd
17130 \end_inset
17131
17132
17133 \begin_inset Quotes eld
17134 \end_inset
17135
17136 Claim
17137 \begin_inset Quotes erd
17138 \end_inset
17139
17140 , and 
17141 \begin_inset Quotes eld
17142 \end_inset
17143
17144 Conjecture
17145 \begin_inset Quotes erd
17146 \end_inset
17147
17148 .
17149  Their use is more or less obvious.
17150  \SpecialChar LyX
17151  supports all these environments; it will use the proper label, text style,
17152  and numbering scheme for each of them.
17153 \end_layout
17154
17155 \begin_layout Enumerate
17156
17157 \change_deleted 564990737 1669755802
17158 Both packages use basic citations; the natbib package should not be used.
17159  In \SpecialChar LyX
17160 , citation references are shown as usual; in the output, citations are
17161  shown as superscripts.
17162  If you want to use a citation as normal text, you should use the 
17163 \family typewriter
17164 refcite
17165 \family default
17166  command, e.
17167 \begin_inset space \thinspace{}
17168 \end_inset
17169
17170 g.
17171 \begin_inset space \space{}
17172 \end_inset
17173
17174
17175 \begin_inset Quotes eld
17176 \end_inset
17177
17178 See Ref.
17179 \begin_inset space \space{}
17180 \end_inset
17181
17182
17183 \family typewriter
17184
17185 \backslash
17186 refcite{key}
17187 \family default
17188
17189 \begin_inset Quotes erd
17190 \end_inset
17191
17192 .
17193 \end_layout
17194
17195 \begin_layout Enumerate
17196
17197 \change_deleted 564990737 1669755802
17198 There is no 
17199 \begin_inset Quotes eld
17200 \end_inset
17201
17202 Acknowledgments
17203 \begin_inset Quotes erd
17204 \end_inset
17205
17206  section in both packages.
17207  To put acknowledgments, just use the 
17208 \begin_inset Quotes eld
17209 \end_inset
17210
17211 Section*
17212 \begin_inset Quotes erd
17213 \end_inset
17214
17215  environment.
17216 \end_layout
17217
17218 \begin_layout Enumerate
17219
17220 \change_deleted 564990737 1669755802
17221 Appendices may be added to the paper, 
17222 \emph on
17223 after
17224 \emph default
17225  the Acknowledgments and 
17226 \shape italic
17227 before
17228 \shape default
17229  the References.
17230  \SpecialChar LyX
17231  provides a special environment, called 
17232 \begin_inset Quotes eld
17233 \end_inset
17234
17235 Appendices Section
17236 \begin_inset Quotes erd
17237 \end_inset
17238
17239  which marks the beginning of the appendices.
17240  This environment should be left blank; it just sends a \SpecialChar LaTeX
17241  command, but nothing
17242  is really printed.
17243  In \SpecialChar LyX
17244 , the word 
17245 \begin_inset Quotes eld
17246 \end_inset
17247
17248 Appendix
17249 \begin_inset Quotes erd
17250 \end_inset
17251
17252  is printed with blue letters, as a signal that all sections after that
17253  point are appendices.
17254  To write an appendix, use the 
17255 \begin_inset Quotes eld
17256 \end_inset
17257
17258 Appendix
17259 \begin_inset Quotes erd
17260 \end_inset
17261
17262  environment.
17263  \SpecialChar LyX
17264  will number each appendix with capital letters, as required by both journals.
17265  Note that 
17266 \begin_inset Quotes eld
17267 \end_inset
17268
17269 Appendices Section
17270 \begin_inset Quotes erd
17271 \end_inset
17272
17273  
17274 \emph on
17275 must
17276 \emph default
17277  be present before the first appendix; if not, all appendices will be numbered
17278  as normal sections in the output.
17279 \end_layout
17280
17281 \begin_layout Enumerate
17282
17283 \change_deleted 564990737 1669755802
17284 The ijmpc and the ijmpd packages use the 
17285 \family typewriter
17286 tbl
17287 \family default
17288  command to implement table captions.
17289  As a result, a table created by \SpecialChar LyX
17290  is printed correctly, but its caption
17291  is ignored.
17292  However, you can use some \SpecialChar TeX
17293  code to overcome this problem, so that captions
17294  are printed as expected.
17295  To do so, create a float table as usual, remove the caption, and replace
17296  it with the \SpecialChar TeX
17297  code 
17298 \family typewriter
17299
17300 \backslash
17301 tbl{
17302 \emph on
17303 your table caption
17304 \emph default
17305 }{
17306 \family default
17307  (sic); you must also the \SpecialChar TeX
17308  code 
17309 \family typewriter
17310 }
17311 \family default
17312  immediately after the tabular material.
17313  Study the example table included in the template files to see how this
17314  trick is implemented.
17315  Alternatively, If you need table captions, you should implement the whole
17316  table float in a 
17317 \family typewriter
17318 .tex
17319 \family default
17320  file, then include this file to the \SpecialChar LyX
17321  document (
17322 \family sans
17323 Insert\SpecialChar menuseparator
17324 File\SpecialChar menuseparator
17325 Child
17326 \begin_inset space ~
17327 \end_inset
17328
17329 Document
17330 \family default
17331 ).
17332  Details on how to create a table float can be found in the files 
17333 \family typewriter
17334 ws-ijmpc.tex
17335 \family default
17336  and 
17337 \family typewriter
17338 ws-ijmpd.tex
17339 \family default
17340 , included in the corresponding packages.
17341 \end_layout
17342
17343 \begin_layout Subsection
17344
17345 \change_deleted 564990737 1669755802
17346 Preparing a paper for submission
17347 \end_layout
17348
17349 \begin_layout Standard
17350
17351 \change_deleted 564990737 1669755802
17352 Before you submit your paper you must export the \SpecialChar LyX
17353  document as a \SpecialChar LaTeX
17354  file (
17355 \family sans
17356 File\SpecialChar menuseparator
17357 Export\SpecialChar menuseparator
17358 \SpecialChar LaTeX
17359
17360 \family default
17361 )
17362 \begin_inset Foot
17363 status open
17364
17365 \begin_layout Plain Layout
17366 Actually you have the choice between \SpecialChar LaTeX
17367  (plain) and pdflatex.
17368  If you intend to use pdflatex to prepare the paper, you should use the
17369  pdflatex option so that included graphics are converted to PDF format,
17370  ready for use by pdflatex.
17371 \end_layout
17372
17373 \end_inset
17374
17375 , then make the following changes to the resulting 
17376 \family typewriter
17377 .tex
17378 \family default
17379  file.
17380 \end_layout
17381
17382 \begin_layout Enumerate
17383
17384 \change_deleted 564990737 1669755802
17385 Remove the comment lines before the 
17386 \family typewriter
17387
17388 \backslash
17389 documentclass
17390 \family default
17391  command.
17392 \end_layout
17393
17394 \begin_layout Enumerate
17395
17396 \change_deleted 564990737 1669755802
17397 Remove everything between (and including) the 
17398 \family typewriter
17399
17400 \backslash
17401 makeatletter
17402 \family default
17403  and 
17404 \family typewriter
17405
17406 \backslash
17407 makeatother
17408 \family default
17409  commands, except for any commands you specifically put into the \SpecialChar LaTeX
17410  preamble.
17411 \end_layout
17412
17413 \begin_layout Standard
17414
17415 \change_deleted 564990737 1669755802
17416 The modified 
17417 \family typewriter
17418 .tex
17419 \family default
17420  file should be saved and processed through \SpecialChar LaTeX
17421  as many times as necessary.
17422  You may also want to check the resulting 
17423 \family typewriter
17424 .dvi
17425 \family default
17426  document.
17427 \change_unchanged
17428
17429 \end_layout
17430
17431 \begin_layout Section
17432
17433 \change_deleted 564990737 1669801478
17434 iopart
17435 \end_layout
17436
17437 \begin_layout Standard
17438
17439 \change_deleted 564990737 1669801478
17440 by 
17441 \noun on
17442 Uwe Stöhr
17443 \end_layout
17444
17445 \begin_layout Subsection
17446
17447 \change_deleted 564990737 1669801478
17448 Overview
17449 \end_layout
17450
17451 \begin_layout Standard
17452
17453 \change_deleted 564990737 1669801478
17454 The iopart package provides a document class to create electronic manuscript
17455  submission to the journals published by the Institute of Physics.
17456  Instructions for the authors how to create a paper using the iopart class
17457  can be downloaded together with the iopart package from the site 
17458 \begin_inset Flex URL
17459 status collapsed
17460
17461 \begin_layout Plain Layout
17462
17463 ftp://ftp.iop.org/pub/journals/latex2e
17464 \end_layout
17465
17466 \end_inset
17467
17468 .
17469 \end_layout
17470
17471 \begin_layout Subsection
17472
17473 \change_deleted 564990737 1669801478
17474 Writing a paper
17475 \end_layout
17476
17477 \begin_layout Standard
17478
17479 \change_deleted 564990737 1669801478
17480 The easiest way to write a paper is to start with the template 
17481 \emph on
17482 IOP-article.lyx
17483 \emph default
17484  that is available via 
17485 \family sans
17486 File\SpecialChar menuseparator
17487 New From Template
17488 \family default
17489  The template explains how to use the special text environments.
17490  Here are the most important advices:
17491 \end_layout
17492
17493 \begin_layout Itemize
17494
17495 \change_deleted 564990737 1669801478
17496 To be able to compile your document to a PDF, PS, or DVI, ensure that the
17497  no AMS packages are loaded in 
17498 \family sans
17499 Document\SpecialChar menuseparator
17500 Settings\SpecialChar menuseparator
17501 Math Options
17502 \family default
17503 !
17504 \end_layout
17505
17506 \begin_layout Itemize
17507
17508 \change_deleted 564990737 1669801478
17509
17510 \size normal
17511 The title environment defines the kind of your paper.
17512  So use one of the following environments for the title:
17513 \end_layout
17514
17515 \begin_deeper
17516 \begin_layout Itemize
17517
17518 \change_deleted 564990737 1669801478
17519
17520 \family sans
17521 \size normal
17522 Title
17523 \family default
17524  for a Paper
17525 \end_layout
17526
17527 \begin_layout Itemize
17528
17529 \change_deleted 564990737 1669801478
17530
17531 \family sans
17532 \size normal
17533 Review
17534 \family default
17535  for a Review
17536 \end_layout
17537
17538 \begin_layout Itemize
17539
17540 \change_deleted 564990737 1669801478
17541
17542 \family sans
17543 \size normal
17544 Topical
17545 \family default
17546  for a Topical review
17547 \end_layout
17548
17549 \begin_layout Itemize
17550
17551 \change_deleted 564990737 1669801478
17552
17553 \family sans
17554 \size normal
17555 Comment
17556 \family default
17557  for a Comment
17558 \end_layout
17559
17560 \begin_layout Itemize
17561
17562 \change_deleted 564990737 1669801478
17563
17564 \family sans
17565 \size normal
17566 Note
17567 \family default
17568  for a Note
17569 \end_layout
17570
17571 \begin_layout Itemize
17572
17573 \change_deleted 564990737 1669801478
17574
17575 \family sans
17576 \size normal
17577 Paper
17578 \family default
17579  for a Paper (same as Title)
17580 \end_layout
17581
17582 \begin_layout Itemize
17583
17584 \change_deleted 564990737 1669801478
17585
17586 \family sans
17587 \size normal
17588 Prelim
17589 \family default
17590  for a Preliminary communication
17591 \end_layout
17592
17593 \begin_layout Itemize
17594
17595 \change_deleted 564990737 1669801478
17596
17597 \family sans
17598 \size normal
17599 Rapid
17600 \family default
17601  for a Rapid communication
17602 \end_layout
17603
17604 \begin_layout Itemize
17605
17606 \change_deleted 564990737 1669801478
17607
17608 \family sans
17609 \size normal
17610 Letter
17611 \family default
17612  for a Letter to the editor
17613 \end_layout
17614
17615 \end_deeper
17616 \begin_layout Itemize
17617
17618 \change_deleted 564990737 1669801478
17619
17620 \size normal
17621 All title environments except of 
17622 \family sans
17623 Letter
17624 \family default
17625  can have an optional short title.
17626 \end_layout
17627
17628 \begin_layout Itemize
17629
17630 \change_deleted 564990737 1669801478
17631 There is a general title environment 
17632 \family sans
17633 Article
17634 \family default
17635  which is not directly supported by \SpecialChar LyX
17636 .
17637  This can be used as \SpecialChar TeX
17638  code when your document doesn't fit into one of the
17639  other title types.
17640 \end_layout
17641
17642 \begin_layout Standard
17643
17644 \change_deleted 564990737 1669801478
17645 For more informations like hints for special table and formula formatting,
17646  look at the IOP author guidelines.
17647 \change_unchanged
17648
17649 \end_layout
17650
17651 \begin_layout Section
17652
17653 \change_deleted 564990737 1670317155
17654 Kluwer
17655 \end_layout
17656
17657 \begin_layout Standard
17658
17659 \change_deleted 564990737 1670317155
17660 by 
17661 \noun on
17662 Panayotis Papasotiriou
17663 \end_layout
17664
17665 \begin_layout Subsection
17666
17667 \change_deleted 564990737 1670317155
17668 Overview
17669 \end_layout
17670
17671 \begin_layout Standard
17672
17673 \change_deleted 564990737 1670317155
17674 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
17675  that facilitates electronic manuscript submission to the journals they
17676  publish.
17677  Most known of them (at least in my domain of interest) are 
17678 \emph on
17679 Astrophysics and Space Science
17680 \emph default
17681  and 
17682 \emph on
17683 Solar Physics
17684 \emph default
17685 , but there are many others (see a complete list at 
17686 \begin_inset Flex URL
17687 status collapsed
17688
17689 \begin_layout Plain Layout
17690
17691 http://www.wkap.nl/jrnllist.htm/JRNLHOME
17692 \end_layout
17693
17694 \end_inset
17695
17696 ).
17697  The Kluwer package may be downloaded from the site 
17698 \begin_inset Flex URL
17699 status collapsed
17700
17701 \begin_layout Plain Layout
17702
17703 http://www.wkap.nl/kaphtml.htm/STYLEFILES
17704 \end_layout
17705
17706 \end_inset
17707
17708 .
17709  A complete user guide is contained in that package (but it can also be
17710  downloaded separately).
17711 \end_layout
17712
17713 \begin_layout Standard
17714
17715 \change_deleted 564990737 1670317155
17716 \SpecialChar LyX
17717  supports many features of the package but not everything.
17718  However, the \SpecialChar TeX
17719  code needed is reduced to some 
17720 \begin_inset Quotes eld
17721 \end_inset
17722
17723 peculiar
17724 \begin_inset Quotes erd
17725 \end_inset
17726
17727  commands of the package (see
17728 \begin_inset space ~
17729 \end_inset
17730
17731
17732 \begin_inset CommandInset ref
17733 LatexCommand ref
17734 reference "subsec:kluwer_peculiarities"
17735
17736 \end_inset
17737
17738 ).
17739  I have recently used \SpecialChar LyX
17740  to write an article submitted to the 
17741 \emph on
17742 Astrophysics and Space Science
17743 \emph default
17744  without any problem.
17745 \end_layout
17746
17747 \begin_layout Subsection
17748
17749 \change_deleted 564990737 1670317155
17750 Writing a paper
17751 \end_layout
17752
17753 \begin_layout Standard
17754
17755 \change_deleted 564990737 1670317155
17756 The easiest way to write a paper is to start with the Kluwer template file.
17757  Click on 
17758 \family sans
17759 File\SpecialChar menuseparator
17760 New from
17761 \family default
17762  
17763 \family sans
17764 Template
17765 \family default
17766 , then choose the 
17767 \family typewriter
17768 kluwer.lyx
17769 \family default
17770  template.
17771  This will give an (almost) empty document that includes the most common
17772  fields found in a manuscript and a short description of their use.
17773  As in most templates, simply overwrite the existing text (including the
17774  brackets, 
17775 \family typewriter
17776 <>
17777 \family default
17778 ) with the correct information.
17779 \end_layout
17780
17781 \begin_layout Subsection
17782
17783 \change_deleted 564990737 1670317155
17784 Preparing a paper for submission
17785 \end_layout
17786
17787 \begin_layout Standard
17788
17789 \change_deleted 564990737 1670317155
17790 As in the AAS\SpecialChar TeX
17791  package, before you submit your paper to a journal you must
17792  
17793 \begin_inset Quotes eld
17794 \end_inset
17795
17796 postprocess
17797 \begin_inset Quotes erd
17798 \end_inset
17799
17800  it as follows.
17801 \end_layout
17802
17803 \begin_layout Enumerate
17804
17805 \change_deleted 564990737 1670317155
17806 Export your paper as a \SpecialChar LaTeX
17807  file.
17808  To do this, click on 
17809 \family sans
17810 File\SpecialChar menuseparator
17811 Export\SpecialChar menuseparator
17812 \SpecialChar LaTeX
17813
17814 \family default
17815 .
17816  
17817 \end_layout
17818
17819 \begin_layout Enumerate
17820
17821 \change_deleted 564990737 1670317155
17822 Edit the resulting 
17823 \family typewriter
17824 .tex
17825 \family default
17826  file with a text editor and make the following changes
17827 \end_layout
17828
17829 \begin_deeper
17830 \begin_layout Enumerate
17831
17832 \change_deleted 564990737 1670317155
17833 remove the comment lines before the 
17834 \family typewriter
17835
17836 \backslash
17837 documentclass
17838 \family default
17839  command,
17840 \end_layout
17841
17842 \begin_layout Enumerate
17843
17844 \change_deleted 564990737 1670317155
17845 remove everything between (and including) the 
17846 \family typewriter
17847
17848 \backslash
17849 makeatletter
17850 \family default
17851  and 
17852 \family typewriter
17853
17854 \backslash
17855 makeatother
17856 \family default
17857  commands, except for any commands you specifically put into the \SpecialChar LaTeX
17858  preamble.
17859 \end_layout
17860
17861 \begin_layout Standard
17862
17863 \change_deleted 564990737 1670317155
17864 Save the resulting 
17865 \family typewriter
17866 .tex
17867 \family default
17868  file.
17869 \end_layout
17870
17871 \end_deeper
17872 \begin_layout Enumerate
17873
17874 \change_deleted 564990737 1670317155
17875 Run the 
17876 \family typewriter
17877 .tex
17878 \family default
17879  file through \SpecialChar LaTeX
17880  as many times as necessary (usually up to three).
17881 \end_layout
17882
17883 \begin_layout Enumerate
17884
17885 \change_deleted 564990737 1670317155
17886 View the resulting 
17887 \family typewriter
17888 .dvi
17889 \family default
17890  document using, e.
17891 \begin_inset space \thinspace{}
17892 \end_inset
17893
17894 g.
17895 \begin_inset space \space{}
17896 \end_inset
17897
17898
17899 \family sans
17900 xdvi
17901 \family default
17902 , and check if everything is OK (it should, if you didn't make any mistake).
17903 \end_layout
17904
17905 \begin_layout Subsection
17906
17907 \change_deleted 564990737 1670317155
17908 \begin_inset Quotes eld
17909 \end_inset
17910
17911 Peculiarities
17912 \begin_inset Quotes erd
17913 \end_inset
17914
17915  of the Kluwer package
17916 \begin_inset CommandInset label
17917 LatexCommand label
17918 name "subsec:kluwer_peculiarities"
17919
17920 \end_inset
17921
17922
17923 \end_layout
17924
17925 \begin_layout Standard
17926
17927 \change_deleted 564990737 1670317155
17928 The Kluwer package has the following 
17929 \begin_inset Quotes eld
17930 \end_inset
17931
17932 peculiarities
17933 \begin_inset Quotes erd
17934 \end_inset
17935
17936 .
17937 \end_layout
17938
17939 \begin_layout Enumerate
17940
17941 \change_deleted 564990737 1670317155
17942 It is possible to write multiple articles in the same \SpecialChar LaTeX
17943  file
17944 \begin_inset Foot
17945 status collapsed
17946
17947 \begin_layout Plain Layout
17948 I can't imagine any good reason to do this.
17949 \end_layout
17950
17951 \end_inset
17952
17953 .
17954  Each article must be included in the environment 
17955 \begin_inset Quotes eld
17956 \end_inset
17957
17958 article
17959 \begin_inset Quotes erd
17960 \end_inset
17961
17962 .
17963  Unfortunately, this environment cannot be omitted, even if you write just
17964  one article.
17965  Therefore, each article starts with the command 
17966 \family typewriter
17967
17968 \backslash
17969 begin{article}
17970 \family default
17971  and, obviously, ends with the command 
17972 \family typewriter
17973
17974 \backslash
17975 end{article}
17976 \family default
17977 .
17978  Although this can be implemented in \SpecialChar LyX
17979 , I didn't included it, since it looks
17980  ugly and can confuse the novice user.
17981  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
17982  code (the
17983  well-known 
17984 \begin_inset Quotes eld
17985 \end_inset
17986
17987 \SpecialChar TeX
17988  code
17989 \begin_inset Quotes erd
17990 \end_inset
17991
17992 ).
17993 \end_layout
17994
17995 \begin_layout Enumerate
17996
17997 \change_deleted 564990737 1670317155
17998 Information given at the beginning of the article (i.
17999 \begin_inset space \thinspace{}
18000 \end_inset
18001
18002 e.
18003 \begin_inset space \space{}
18004 \end_inset
18005
18006 title, subtitle, author, institution, running title, running author, abstract
18007  and keywords) must be included in an environment called 
18008 \begin_inset Quotes eld
18009 \end_inset
18010
18011 opening
18012 \begin_inset Quotes erd
18013 \end_inset
18014
18015 .
18016  This is not implemented in \SpecialChar LyX
18017 , so you must enter title, subtitle etc.
18018 \begin_inset space ~
18019 \end_inset
18020
18021 between two \SpecialChar TeX
18022  code lines (
18023 \family typewriter
18024
18025 \backslash
18026 begin{opening}
18027 \family default
18028  and 
18029 \family typewriter
18030
18031 \backslash
18032 end{opening}
18033 \family default
18034 ).
18035 \end_layout
18036
18037 \begin_layout Enumerate
18038
18039 \change_deleted 564990737 1670317155
18040 According to the user manual, the label of each bibliography item must be
18041  written as 
18042 \family typewriter
18043
18044 \backslash
18045 protect
18046 \backslash
18047 citeauthoryear{
18048 \family default
18049 \emph on
18050 author(s)
18051 \family typewriter
18052 \emph default
18053 }{
18054 \family default
18055 \emph on
18056 year
18057 \family typewriter
18058 \emph default
18059 }
18060 \family default
18061 .
18062 \end_layout
18063
18064 \begin_layout Standard
18065
18066 \change_deleted 564990737 1670317155
18067 The 
18068 \family typewriter
18069 kluwer.lyx
18070 \family default
18071  template takes care of all these 
18072 \begin_inset Quotes eld
18073 \end_inset
18074
18075 peculiarities
18076 \begin_inset Quotes erd
18077 \end_inset
18078
18079 .
18080  If you start a new paper using this template you don't need to do anything
18081  special.
18082  Just 
18083 \end_layout
18084
18085 \begin_layout Enumerate
18086
18087 \change_deleted 564990737 1670317155
18088 don't delete the \SpecialChar TeX
18089  code included in the template, and
18090 \end_layout
18091
18092 \begin_layout Enumerate
18093
18094 \change_deleted 564990737 1670317155
18095 copy the example bibliography item included in the template and modify it
18096  as necessary to enter new bibliography items.
18097 \end_layout
18098
18099 \begin_layout Section
18100 Paper
18101 \end_layout
18102
18103 \begin_layout Standard
18104 The document class 
18105 \family sans
18106 paper
18107 \family default
18108  provides an alternative to the standard 
18109 \family sans
18110 article
18111 \family default
18112  class.
18113  It provides similar functionality, but you might prefer this layout with
18114  sans serif sections, headings, and more.
18115 \end_layout
18116
18117 \begin_layout Section
18118 Springer Journals (
18119 \family sans
18120 svjour
18121 \family default
18122 )
18123 \end_layout
18124
18125 \begin_layout Standard
18126 by 
18127 \noun on
18128 Martin Vermeer
18129 \end_layout
18130
18131 \begin_layout Subsection
18132 Description
18133 \end_layout
18134
18135 \begin_layout Standard
18136 These are the layout files for some of the journal formats used by Springer
18137  Verlag and listed on 
18138 \begin_inset Flex URL
18139 status collapsed
18140
18141 \begin_layout Plain Layout
18142
18143 http://www.springer.de/author/tex/help-journals.html
18144 \end_layout
18145
18146 \end_inset
18147
18148 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
18149  now!).
18150  It is a modular system: the things common to all journals are implemented
18151  in 
18152 \family typewriter
18153 svjour.inc
18154 \family default
18155 , which journal-specific layout files (such as, e.
18156 \begin_inset space \thinspace{}
18157 \end_inset
18158
18159 g.
18160 \begin_inset space \space{}
18161 \end_inset
18162
18163
18164 \family typewriter
18165 svjog.layout
18166 \family default
18167  for Journal of Geodesy) can include.
18168 \end_layout
18169
18170 \begin_layout Standard
18171 This means that implementing support for any other Springer journal on this
18172  list is as simple as writing your own 
18173 \family typewriter
18174 sv
18175 \family default
18176 <myjournal>
18177 \family typewriter
18178 .layout
18179 \family default
18180  file following the outline given in 
18181 \family typewriter
18182 svjog.layout
18183 \family default
18184 .
18185  
18186 \end_layout
18187
18188 \begin_layout Standard
18189 It is reasonably well tested only for the Journal of Geodesy.
18190  
18191 \family typewriter
18192 svjour
18193 \family default
18194  and 
18195 \family typewriter
18196 svjog
18197 \family default
18198  come with the standard \SpecialChar LyX
18199  distribution.
18200  Install the relevant class file (downloaded from Springer) in a proper
18201  directory, reconfigure \SpecialChar LaTeX
18202  (in the te\SpecialChar TeX
18203  case by running 
18204 \family typewriter
18205 texhash
18206 \family default
18207 , as root if necessary — doesn't \SpecialChar LyX
18208  take care of this?), reconfigure \SpecialChar LyX
18209  and
18210  it should work.
18211 \end_layout
18212
18213 \begin_layout Subsection
18214 New styles
18215 \end_layout
18216
18217 \begin_layout Standard
18218 A large number of theorem-like styles — 
18219 \family sans
18220 Claim, Conjecture,
18221 \family default
18222  
18223 \family sans
18224 \SpecialChar ldots
18225 Theorem
18226 \family default
18227 .
18228 \end_layout
18229
18230 \begin_layout Standard
18231
18232 \family sans
18233 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
18234 _Title, Author_Running, Institute,
18235  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
18236 \family default
18237 .
18238  See the Springer class file documentation for details.
18239 \end_layout
18240
18241 \begin_layout Subsection
18242 Supported journals
18243 \end_layout
18244
18245 \begin_layout Itemize
18246
18247 \emph on
18248 Journal of Geodesy
18249 \emph default
18250
18251 \family typewriter
18252 svjog.layout
18253 \family default
18254  — Martin Vermeer
18255 \end_layout
18256
18257 \begin_layout Itemize
18258
18259 \emph on
18260 Probability Theory and Related Fields
18261 \emph default
18262
18263 \family typewriter
18264 svprobth.layout
18265 \family default
18266  — Jean-Marc Lasgouttes
18267 \end_layout
18268
18269 \begin_layout Standard
18270 Add your own, it isn't so hard!
18271 \end_layout
18272
18273 \begin_layout Subsection
18274 Credits
18275 \end_layout
18276
18277 \begin_layout Standard
18278 These files are partly based on the older 
18279 \family typewriter
18280 ejour2.layout
18281 \family default
18282 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
18283  2.09 style
18284  file from Springer.
18285  All this, and the 
18286 \family typewriter
18287 ejour2
18288 \family default
18289  layout, are now defunct.
18290  Jean-Marc Lasgouttes helped out big in making me find my way around the
18291  \SpecialChar LyX
18292  layout file mechanism.
18293 \end_layout
18294
18295 \begin_layout Subsection
18296 Bugs
18297 \end_layout
18298
18299 \begin_layout Standard
18300 Probably.
18301  But probably less than in the old hacked-\SpecialChar LaTeX
18302  
18303 \family typewriter
18304 ejour2
18305 \family default
18306 .
18307 \end_layout
18308
18309 \begin_layout Section
18310 Slides [aka 
18311 \noun on
18312 Sli\SpecialChar TeX
18313
18314 \noun default
18315 ]
18316 \begin_inset CommandInset label
18317 LatexCommand label
18318 name "sec:slitex"
18319
18320 \end_inset
18321
18322
18323 \end_layout
18324
18325 \begin_layout Standard
18326 by 
18327 \noun on
18328 John Weiss
18329 \noun default
18330  
18331 \end_layout
18332
18333 \begin_layout Subsection
18334 Introduction
18335 \end_layout
18336
18337 \begin_layout Standard
18338 This section describes how to use \SpecialChar LyX
18339  to make slides for overhead projectors.
18340  There are two document classes that can do this: the default slides class
18341  and the 
18342 \family sans
18343 Foil\SpecialChar TeX
18344
18345 \family default
18346  slides class.
18347  This section documents the former.
18348 \end_layout
18349
18350 \begin_layout Standard
18351 I'm going to say this again, nice and clear, so that there's no misunderstanding
18352 :
18353 \end_layout
18354
18355 \begin_layout Standard
18356 \begin_inset VSpace bigskip
18357 \end_inset
18358
18359
18360 \end_layout
18361
18362 \begin_layout Standard
18363 \align center
18364
18365 \size large
18366 This section documents the class 
18367 \begin_inset Quotes eld
18368 \end_inset
18369
18370
18371 \family sans
18372 slides (default)
18373 \family default
18374
18375 \begin_inset Quotes erd
18376 \end_inset
18377
18378  
18379 \emph on
18380 only.
18381 \end_layout
18382
18383 \begin_layout Standard
18384 \begin_inset VSpace bigskip
18385 \end_inset
18386
18387
18388 \end_layout
18389
18390 \begin_layout Standard
18391 If you're looking for the documentation for 
18392 \begin_inset Quotes eld
18393 \end_inset
18394
18395
18396 \family sans
18397 slides (Foil\SpecialChar TeX
18398 )
18399 \family default
18400
18401 \begin_inset Quotes erd
18402 \end_inset
18403
18404 , check out section
18405 \begin_inset space ~
18406 \end_inset
18407
18408
18409 \begin_inset CommandInset ref
18410 LatexCommand ref
18411 reference "sec:foiltex"
18412
18413 \end_inset
18414
18415 .
18416  The 
18417 \family sans
18418 foils
18419 \family default
18420  class [
18421 \begin_inset Quotes eld
18422 \end_inset
18423
18424
18425 \family sans
18426 slides (Foil\SpecialChar TeX
18427 )
18428 \family default
18429
18430 \begin_inset Quotes erd
18431 \end_inset
18432
18433 ] is actually somewhat better than the default 
18434 \family sans
18435 slides
18436 \family default
18437  class,
18438 \begin_inset Foot
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 \SpecialChar ldots
18443 or so I've been told repeatedly by its advocates.
18444  Having never used it, I have no idea if this claim is true or not.
18445 \end_layout
18446
18447 \end_inset
18448
18449  which this section documents.
18450 \end_layout
18451
18452 \begin_layout Standard
18453 This class is the \SpecialChar LaTeX2e
18454  improvement of the old 
18455 \noun on
18456 Sli\SpecialChar TeX
18457
18458 \noun default
18459  package.
18460  Every \SpecialChar LaTeX2e
18461  distribution includes this class [which I'll just refer to as 
18462 \begin_inset Quotes eld
18463 \end_inset
18464
18465
18466 \family sans
18467 slides
18468 \family default
18469
18470 \begin_inset Quotes erd
18471 \end_inset
18472
18473  from now on], so you're bound to have it.
18474  As I noted earlier, there are other classes, such as 
18475 \family sans
18476 foils
18477 \family default
18478 , which also produce slides for overhead projectors and do a better job
18479  at it.
18480  However, there are some things which 
18481 \family sans
18482 slides
18483 \family default
18484  can do which the others can't, such as generate overlays.
18485  Read on to learn more!
18486 \end_layout
18487
18488 \begin_layout Subsection
18489 Getting Started
18490 \begin_inset CommandInset label
18491 LatexCommand label
18492 name "sec:slidesetup"
18493
18494 \end_inset
18495
18496
18497 \end_layout
18498
18499 \begin_layout Standard
18500 Obviously, to use this document class, you need to select 
18501 \begin_inset Quotes eld
18502 \end_inset
18503
18504
18505 \family sans
18506 slides (default)
18507 \family default
18508
18509 \begin_inset Quotes erd
18510 \end_inset
18511
18512  from the class list in the 
18513 \family sans
18514 Document\SpecialChar menuseparator
18515 Settings
18516 \family default
18517  dialog.
18518  There are some other special things you should know about this class:
18519 \end_layout
18520
18521 \begin_layout Itemize
18522 Don't bother changing the options 
18523 \family sans
18524 Sides and Columns
18525 \family default
18526 .
18527  They're not supported by the 
18528 \family sans
18529 slides
18530 \family default
18531  class, anyways.
18532 \end_layout
18533
18534 \begin_layout Itemize
18535 The option 
18536 \family sans
18537 Page
18538 \begin_inset space ~
18539 \end_inset
18540
18541 style
18542 \family default
18543  behaves a bit differently for this class.
18544  The possible choices and what they do are as follows:
18545 \end_layout
18546
18547 \begin_deeper
18548 \begin_layout Description
18549
18550 \family sans
18551 plain
18552 \family default
18553  The final output contains page numbers in the lower right corner.
18554 \end_layout
18555
18556 \begin_layout Description
18557
18558 \family sans
18559 headings
18560 \family default
18561  Like 
18562 \family sans
18563 plain
18564 \family default
18565 , but also prints out any time markers you've put in.
18566  This is the default.
18567 \end_layout
18568
18569 \begin_layout Description
18570
18571 \family sans
18572 empty
18573 \family default
18574  The final output contains no page numbers, time markers, or alignment markers.
18575 \end_layout
18576
18577 \end_deeper
18578 \begin_layout Itemize
18579 The 
18580 \family sans
18581 slides
18582 \family default
18583  class has an extra option: 
18584 \family typewriter
18585 clock
18586 \family default
18587 .
18588  To use it, put 
18589 \begin_inset Quotes eld
18590 \end_inset
18591
18592
18593 \family typewriter
18594 clock
18595 \family default
18596
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600  in the extra class options.
18601 \end_layout
18602
18603 \begin_deeper
18604 \begin_layout Standard
18605 Using this options allows you to add time markers to 
18606 \family sans
18607 Note
18608 \family default
18609 s.
18610  See section
18611 \begin_inset space ~
18612 \end_inset
18613
18614
18615 \begin_inset CommandInset ref
18616 LatexCommand ref
18617 reference "sec:slideNote"
18618
18619 \end_inset
18620
18621  for more details.
18622 \end_layout
18623
18624 \end_deeper
18625 \begin_layout Standard
18626 You can also use the template file 
18627 \begin_inset Quotes eld
18628 \end_inset
18629
18630
18631 \family typewriter
18632 slides.lyx
18633 \family default
18634
18635 \begin_inset Quotes erd
18636 \end_inset
18637
18638  to automatically set up a document to use the 
18639 \family sans
18640 slides
18641 \family default
18642  class [using 
18643 \family sans
18644 File\SpecialChar menuseparator
18645 New
18646 \begin_inset space ~
18647 \end_inset
18648
18649 from
18650 \begin_inset space ~
18651 \end_inset
18652
18653 Template
18654 \family default
18655  to open your new document].
18656  The template file also contains some examples of the special paragraph
18657  environments used by this class.
18658  I'll describe those next.
18659 \end_layout
18660
18661 \begin_layout Subsection
18662 Paragraph Environments
18663 \end_layout
18664
18665 \begin_layout Subsubsection
18666 Supported Environments
18667 \end_layout
18668
18669 \begin_layout Standard
18670 The first thing you'll notice when you start up a new 
18671 \family sans
18672 slides
18673 \family default
18674  document is the font size and type: it's the equivalent of the size 
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678
18679 \family sans
18680 Largest
18681 \family default
18682
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686  in the 
18687 \family sans
18688 Sans
18689 \begin_inset space ~
18690 \end_inset
18691
18692 Serif
18693 \family default
18694  font.
18695  This is also what's used in the output.
18696  Think of this as a 
18697 \begin_inset Quotes eld
18698 \end_inset
18699
18700 visual cue
18701 \begin_inset Quotes erd
18702 \end_inset
18703
18704  to remind you that this is a slide.
18705  Your final slides will use a larger font; ergo, you'll have less space.
18706  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18707 \end_layout
18708
18709 \begin_layout Standard
18710 The next thing that becomes obvious is the changes to the paragraph environment
18711  pull-down box [at the far-left end of the toolbar].
18712  Most of the paragraph environments you're used to seeing are missing.
18713  There are also five new ones.
18714  That's because the 
18715 \family sans
18716 slides
18717 \family default
18718  class itself only supports certain paragraph environments:
18719 \end_layout
18720
18721 \begin_layout Itemize
18722
18723 \family sans
18724 Standard
18725 \end_layout
18726
18727 \begin_layout Itemize
18728
18729 \family sans
18730 Itemize
18731 \end_layout
18732
18733 \begin_layout Itemize
18734
18735 \family sans
18736 Enumerate
18737 \end_layout
18738
18739 \begin_layout Itemize
18740
18741 \family sans
18742 Description
18743 \end_layout
18744
18745 \begin_layout Itemize
18746
18747 \family sans
18748 List
18749 \end_layout
18750
18751 \begin_layout Itemize
18752
18753 \family sans
18754 Quotation
18755 \end_layout
18756
18757 \begin_layout Itemize
18758
18759 \family sans
18760 Quote
18761 \end_layout
18762
18763 \begin_layout Itemize
18764
18765 \family sans
18766 Verse
18767 \end_layout
18768
18769 \begin_layout Itemize
18770
18771 \family sans
18772 Caption
18773 \end_layout
18774
18775 \begin_layout Itemize
18776
18777 \family sans
18778 \SpecialChar LyX
18779 -Code
18780 \end_layout
18781
18782 \begin_layout Standard
18783 All of the other standard environments, including the section-heading environmen
18784 ts, aren't used in the 
18785 \family sans
18786 slides
18787 \family default
18788  class.
18789 \end_layout
18790
18791 \begin_layout Standard
18792 On the other hand, you'll notice the following new environments:
18793 \end_layout
18794
18795 \begin_layout Itemize
18796
18797 \family sans
18798 Slide
18799 \end_layout
18800
18801 \begin_layout Itemize
18802
18803 \family sans
18804 Overlay
18805 \end_layout
18806
18807 \begin_layout Itemize
18808
18809 \family sans
18810 Note
18811 \end_layout
18812
18813 \begin_layout Itemize
18814
18815 \family sans
18816 InvisibleText
18817 \end_layout
18818
18819 \begin_layout Itemize
18820
18821 \family sans
18822 VisibleText
18823 \end_layout
18824
18825 \begin_layout Standard
18826 These five are kind of quirky, due to a 
18827 \begin_inset Quotes eld
18828 \end_inset
18829
18830 feature
18831 \begin_inset Quotes erd
18832 \end_inset
18833
18834  in \SpecialChar LyX
18835 .
18836  You see, \SpecialChar LyX
18837  doesn't permit you to nest any other paragraph environment into
18838  an empty environment.
18839  Now, that's fine and dandy, but it means that you wouldn't be able to start
18840  a slide with anything except plain text.
18841  To deal with this, I've performed a little 
18842 \begin_inset Quotes eld
18843 \end_inset
18844
18845 \SpecialChar LaTeX
18846  magic.
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850  
18851 \end_layout
18852
18853 \begin_layout Subsubsection
18854 Quirks of the New Environments
18855 \begin_inset CommandInset label
18856 LatexCommand label
18857 name "sec:slideQuirk"
18858
18859 \end_inset
18860
18861
18862 \end_layout
18863
18864 \begin_layout Standard
18865 All five of the new paragraph environments are somewhat quirky due to inherent
18866  limitiations in the current version of \SpecialChar LyX
18867 .
18868  As I just mentioned, \SpecialChar LyX
18869  forbids environments that begin with another environment.
18870  To get around this, the 
18871 \family sans
18872 Slide
18873 \family default
18874  environment isn't a paragraph environment as described in the 
18875 \emph on
18876 User's Guide
18877 \emph default
18878 .
18879  
18880 \end_layout
18881
18882 \begin_layout Standard
18883 You should consider 
18884 \family sans
18885 Slide
18886 \family default
18887
18888 \family sans
18889 Overlay
18890 \family default
18891 , and 
18892 \family sans
18893 Note
18894 \family default
18895  to be 
18896 \begin_inset Quotes eld
18897 \end_inset
18898
18899 pseudo-environments.
18900 \begin_inset Quotes erd
18901 \end_inset
18902
18903  They look like a section heading or a 
18904 \begin_inset Quotes eld
18905 \end_inset
18906
18907
18908 \family sans
18909 Caption
18910 \family default
18911 ,
18912 \begin_inset Quotes erd
18913 \end_inset
18914
18915  but really begin a [and, if necessary, end the previous] paragraph environment.
18916  Likewise, treat 
18917 \family sans
18918 InvisibleText
18919 \family default
18920  and 
18921 \family sans
18922 VisibleText
18923 \family default
18924  as 
18925 \begin_inset Quotes eld
18926 \end_inset
18927
18928 pseudo-commands.
18929 \begin_inset Quotes erd
18930 \end_inset
18931
18932  These two perform some action.
18933 \end_layout
18934
18935 \begin_layout Standard
18936 A common feature of all five environments, 
18937 \family sans
18938 Slide
18939 \family default
18940
18941 \family sans
18942 Overlay
18943 \family default
18944
18945 \family sans
18946 Note
18947 \family default
18948
18949 \family sans
18950 InvisibleText
18951 \family default
18952  and 
18953 \family sans
18954 VisibleText
18955 \family default
18956 , is a rather long-ish label.
18957  The text following this label — ordinarily the contents of the paragraph
18958  environment — is utterly irrelevant for 
18959 \family sans
18960 Slide
18961 \family default
18962
18963 \family sans
18964 Overlay
18965 \family default
18966
18967 \family sans
18968 Note
18969 \family default
18970
18971 \family sans
18972 InvisibleText
18973 \family default
18974  and 
18975 \family sans
18976 VisibleText
18977 \family default
18978 .
18979  \SpecialChar LyX
18980  completely ignores it.
18981  In fact, you can leave these five environments completely empty.
18982  
18983 \end_layout
18984
18985 \begin_layout Standard
18986 While you don't 
18987 \emph on
18988 have
18989 \emph default
18990  to put any text after the rather long-ish label, you might want to.
18991  This could be a short description of the contents of the 
18992 \family sans
18993 Slide
18994 \family default
18995 , for example.
18996  In that case, enter your descriptive comment and hit 
18997 \family sans
18998 Return
18999 \family default
19000  as you normally would.
19001 \end_layout
19002
19003 \begin_layout Standard
19004 If, on the other hand, you don't want to enter any descriptive text, you'll
19005  hit another \SpecialChar LyX
19006  quirk.
19007  \SpecialChar LyX
19008 , like nature, abhors a vacuum, and will not let you start a new paragraph
19009  environment until you put something in the old one.
19010  So, do this:
19011 \end_layout
19012
19013 \begin_layout Itemize
19014 Start entering the text that will 
19015 \emph on
19016 follow
19017 \emph default
19018  the new 
19019 \family sans
19020 Slide
19021 \family default
19022
19023 \family sans
19024 Overlay
19025 \family default
19026
19027 \family sans
19028 Note
19029 \family default
19030
19031 \family sans
19032 InvisibleText
19033 \family default
19034  or 
19035 \family sans
19036 VisibleText
19037 \family default
19038 .
19039  
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 Now move to the beginning of that paragraph.
19044  
19045 \end_layout
19046
19047 \begin_layout Itemize
19048 Next, hit 
19049 \family sans
19050 Return
19051 \family default
19052 .
19053  
19054 \end_layout
19055
19056 \begin_layout Itemize
19057 Finally, change this new, empty paragraph to a 
19058 \family sans
19059 Slide
19060 \family default
19061
19062 \family sans
19063 Overlay
19064 \family default
19065
19066 \family sans
19067 Note
19068 \family default
19069
19070 \family sans
19071 InvisibleText
19072 \family default
19073  or 
19074 \family sans
19075 VisibleText
19076 \family default
19077 .
19078  
19079 \end_layout
19080
19081 \begin_layout Standard
19082 Some future version of \SpecialChar LyX
19083  will, hopefully, resolve this quirkiness\SpecialChar ldots
19084
19085 \end_layout
19086
19087 \begin_layout Subsection
19088 Making a Presentation with 
19089 \family sans
19090 Slide
19091 \family default
19092
19093 \family sans
19094 Overlay
19095 \family default
19096  and 
19097 \family sans
19098 Note
19099 \end_layout
19100
19101 \begin_layout Subsubsection
19102 Using the 
19103 \family sans
19104 Slide
19105 \family default
19106  Environment
19107 \end_layout
19108
19109 \begin_layout Standard
19110 If you're expecting this section to teach you how to actually make a presentatio
19111 n, you'll be sorely disappointed.
19112  Naturally, I'll describe all of the ways the 
19113 \family sans
19114 slides
19115 \family default
19116  class can assist you in preparing the materials for a presentation.
19117  Filling in the contents, however, is up to you.
19118  [Then again, that 
19119 \emph on
19120 is
19121 \emph default
19122  the \SpecialChar LyX
19123  philosophy.]
19124 \end_layout
19125
19126 \begin_layout Standard
19127 Choosing the 
19128 \family sans
19129 Slide
19130 \family default
19131  environment [in the manner described in section
19132 \begin_inset space ~
19133 \end_inset
19134
19135
19136 \begin_inset CommandInset ref
19137 LatexCommand ref
19138 reference "sec:slideQuirk"
19139
19140 \end_inset
19141
19142 ] tells \SpecialChar LyX
19143  to begin a new slide [duh].
19144  The label for this environment/
19145 \begin_inset Quotes erd
19146 \end_inset
19147
19148 pseudo-command
19149 \begin_inset Quotes erd
19150 \end_inset
19151
19152  is an 
19153 \begin_inset Quotes eld
19154 \end_inset
19155
19156 ASCII line,
19157 \begin_inset Quotes erd
19158 \end_inset
19159
19160  in cool blue, followed by the label, 
19161 \begin_inset Quotes eld
19162 \end_inset
19163
19164 NewSlide:
19165 \begin_inset Quotes erd
19166 \end_inset
19167
19168 .
19169  Any text or paragraph environments that follow this one go on the new slide.
19170  It's that simple.
19171 \end_layout
19172
19173 \begin_layout Standard
19174 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
19175
19176  (this can be specified in the 
19177 \family sans
19178 Paragraph Layout
19179 \family default
19180  dialog).
19181  In fact, you'll want to, once you finish entering the contents of one slide.
19182  If you've entered more text than can physically fit on a slide, the extra
19183  overflows onto a new slide.
19184  I don't recommend doing this, however, since the overflow slide won't have
19185  any page number on it.
19186  Furthermore, it may interfere with any 
19187 \family sans
19188 Overlay
19189 \family default
19190  you've made to accompany the oversized 
19191 \family sans
19192 Slide
19193 \family default
19194 .
19195 \end_layout
19196
19197 \begin_layout Standard
19198 The 
19199 \family sans
19200 Overlay
19201 \family default
19202  and 
19203 \family sans
19204 Note
19205 \family default
19206  environments work the same way as the 
19207 \family sans
19208 Slide
19209 \family default
19210  environment.
19211  They both create an 
19212 \begin_inset Quotes eld
19213 \end_inset
19214
19215 ASCII line
19216 \begin_inset Quotes erd
19217 \end_inset
19218
19219  followed by a label [
19220 \begin_inset Quotes eld
19221 \end_inset
19222
19223 NewOverlay:
19224 \begin_inset Quotes erd
19225 \end_inset
19226
19227  and 
19228 \begin_inset Quotes eld
19229 \end_inset
19230
19231 NewNote:
19232 \begin_inset Quotes erd
19233 \end_inset
19234
19235 , respectively].
19236  The color is a stunning magenta instead of blue, and the 
19237 \begin_inset Quotes eld
19238 \end_inset
19239
19240 ASCII line
19241 \begin_inset Quotes erd
19242 \end_inset
19243
19244  will look different, in style and in length.
19245  The label fonts of all three also differ from one another.
19246 \end_layout
19247
19248 \begin_layout Standard
19249 As with a 
19250 \family sans
19251 Slide
19252 \family default
19253 , if the contents of a 
19254 \family sans
19255 Note
19256 \family default
19257  or 
19258 \family sans
19259 Overlay
19260 \family default
19261  exceed the physical size of a slide or sheet of paper, the extra will overflow
19262  onto a new sheet.
19263  Again, you should avoid this.
19264  It defeats the whole purpose of 
19265 \family sans
19266 Note
19267 \family default
19268 s and 
19269 \family sans
19270 Overlay
19271 \family default
19272 s.
19273 \end_layout
19274
19275 \begin_layout Subsubsection
19276 Using 
19277 \family sans
19278 Overlay
19279 \family default
19280  with 
19281 \family sans
19282 Slide
19283 \end_layout
19284
19285 \begin_layout Standard
19286 The idea behind an 
19287 \family sans
19288 Overlay
19289 \family default
19290  is a slide that sits atop another slide.
19291  Perhaps you wish to discuss a figure on the main 
19292 \family sans
19293 Slide
19294 \family default
19295  before displaying the text associated with it.
19296  One way to accomplish this is tape a flap of dark paper over the part of
19297  the 
19298 \family sans
19299 Slide
19300 \family default
19301  you want to display later.
19302  This method fails, however, if you wish to overlap one graph with another,
19303  for example.
19304  You would then have to fumble while speaking to align the two separate,
19305  overlapping 
19306 \family sans
19307 Slide
19308 \family default
19309 s to align the two graphs.
19310  The use of an 
19311 \family sans
19312 Overlay
19313 \family default
19314  environment in both cases makes life much easier.
19315 \end_layout
19316
19317 \begin_layout Standard
19318 Each 
19319 \family sans
19320 Overlay
19321 \family default
19322  receives the page number of its 
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326 parent
19327 \begin_inset Quotes erd
19328 \end_inset
19329
19330  
19331 \family sans
19332 Slide
19333 \family default
19334 , appended by 
19335 \begin_inset Quotes eld
19336 \end_inset
19337
19338
19339 \family typewriter
19340 -a
19341 \family default
19342
19343 \begin_inset Quotes erd
19344 \end_inset
19345
19346 .
19347 \begin_inset Foot
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 Presumably, mutliple 
19352 \family sans
19353 Overlay
19354 \family default
19355 s would have 
19356 \begin_inset Quotes eld
19357 \end_inset
19358
19359
19360 \family typewriter
19361 -a
19362 \family default
19363
19364 \begin_inset Quotes erd
19365 \end_inset
19366
19367
19368 \begin_inset Quotes eld
19369 \end_inset
19370
19371
19372 \family typewriter
19373 -b
19374 \family default
19375
19376 \begin_inset Quotes erd
19377 \end_inset
19378
19379
19380 \begin_inset Quotes eld
19381 \end_inset
19382
19383
19384 \family typewriter
19385 -c
19386 \family default
19387
19388 \begin_inset Quotes erd
19389 \end_inset
19390
19391 , etc.
19392 \begin_inset space ~
19393 \end_inset
19394
19395 appended to the page number of the parent 
19396 \family sans
19397 Slide
19398 \family default
19399 .
19400  
19401 \end_layout
19402
19403 \end_inset
19404
19405  Clearly, you want the contents of both the 
19406 \family sans
19407 Slide
19408 \family default
19409  and the 
19410 \family sans
19411 Overlay
19412 \family default
19413  to each fit on a single physical slide! You should probably consider an
19414  
19415 \family sans
19416 Overlay
19417 \family default
19418  as 
19419 \begin_inset Quotes eld
19420 \end_inset
19421
19422 part of
19423 \begin_inset Quotes erd
19424 \end_inset
19425
19426  a 
19427 \family sans
19428 Slide
19429 \family default
19430 .
19431  Indeed, the \SpecialChar LyX
19432  
19433 \family sans
19434 slides
19435 \family default
19436  class provides a visual cue for this: the label at the start of an 
19437 \family sans
19438 Overlay
19439 \family default
19440  is shorter than that at the start of a 
19441 \family sans
19442 Slide
19443 \family default
19444 .
19445  Lastly, when you generate printable output, you'll find alignment markers
19446  in all four corners of both the 
19447 \family sans
19448 Overlay
19449 \family default
19450  page and its parent 
19451 \family sans
19452 Slide
19453 \family default
19454 .
19455  These will assist you in lining up the two physical slides.
19456 \end_layout
19457
19458 \begin_layout Standard
19459 The major problem in overlaying two slides is aligning the contents of the
19460  two transparencies.
19461  How much space should you leave for that graph on the second slide? Worse
19462  still, what if you want a graph and a sentence on second slide, but there
19463  is text on the main transparency that goes in between them? You could try
19464  and insert vertical space of the right size.
19465  The better way is to use 
19466 \family sans
19467 InvisibleText
19468 \family default
19469  and 
19470 \family sans
19471 VisibleText
19472 \family default
19473 .
19474 \end_layout
19475
19476 \begin_layout Standard
19477 As their names imply, 
19478 \family sans
19479 InvisibleText
19480 \family default
19481  and 
19482 \family sans
19483 VisibleText
19484 \family default
19485  are two command-like paragraph environments that make all subsequent text
19486  invisible and visible, respectively.
19487  Note from section
19488 \begin_inset space ~
19489 \end_inset
19490
19491
19492 \begin_inset CommandInset ref
19493 LatexCommand ref
19494 reference "sec:slideQuirk"
19495
19496 \end_inset
19497
19498  that you don't place anything 
19499 \emph on
19500 into
19501 \emph default
19502  these two environments, however.
19503  When you create an 
19504 \family sans
19505 InvisibleText
19506 \family default
19507 , it inserts a centered, sky-blue label into the page reading 
19508 \begin_inset Quotes eld
19509 \end_inset
19510
19511 <Invisible Text Follows>
19512 \begin_inset Quotes erd
19513 \end_inset
19514
19515 .
19516  For paragraphs following this label, the parts of the 
19517 \family sans
19518 Slide
19519 \family default
19520  [or 
19521 \family sans
19522 Overlay
19523 \family default
19524 ; it doesn't matter which] where they would be contain instead blank space.
19525  
19526 \end_layout
19527
19528 \begin_layout Standard
19529 For 
19530 \family sans
19531 VisibleText
19532 \family default
19533 , the corresponding centered label is 
19534 \begin_inset Quotes eld
19535 \end_inset
19536
19537 <Visible Text Follows>
19538 \begin_inset Quotes erd
19539 \end_inset
19540
19541  in blazing green.
19542  Paragraphs following this label behave normally.
19543  Note that the beginning of a new 
19544 \family sans
19545 Slide
19546 \family default
19547
19548 \family sans
19549 Overlay
19550 \family default
19551 , or 
19552 \family sans
19553 Note
19554 \family default
19555  automatically shuts off an 
19556 \family sans
19557 InvisibleText
19558 \family default
19559 .
19560  It's therefore not necessary to use 
19561 \family sans
19562 VisibleText
19563 \family default
19564  at the end of a 
19565 \family sans
19566 Slide
19567 \family default
19568 .
19569 \end_layout
19570
19571 \begin_layout Standard
19572 By now, it should be obvious how to create overlay transparencies using
19573  the proper combination of 
19574 \family sans
19575 InvisibleText
19576 \family default
19577  and 
19578 \family sans
19579 VisibleText
19580 \family default
19581  on a 
19582 \family sans
19583 Slide
19584 \family default
19585  and 
19586 \family sans
19587 Overlay
19588 \family default
19589 :
19590 \end_layout
19591
19592 \begin_layout Enumerate
19593 Create a 
19594 \family sans
19595 Slide
19596 \family default
19597 , including everything that will appear on it, whether on the main slide
19598  or on the 
19599 \family sans
19600 Overlay
19601 \family default
19602 .
19603 \end_layout
19604
19605 \begin_layout Enumerate
19606 Before each figure or paragraph that will appear only on the 
19607 \family sans
19608 Overlay
19609 \family default
19610 , insert an 
19611 \family sans
19612 InvisibleText
19613 \family default
19614  environment.
19615  If necessary, insert a 
19616 \family sans
19617 VisibleText
19618 \family default
19619  environment after the 
19620 \family sans
19621 Overlay
19622 \family default
19623 -only text.
19624 \end_layout
19625
19626 \begin_layout Enumerate
19627 Start an 
19628 \family sans
19629 Overlay
19630 \family default
19631  immediately following the 
19632 \family sans
19633 Slide
19634 \family default
19635 .
19636 \end_layout
19637
19638 \begin_layout Enumerate
19639 Copy the contents of this 
19640 \family sans
19641 Slide
19642 \family default
19643  into the 
19644 \family sans
19645 Overlay
19646 \family default
19647 .
19648 \end_layout
19649
19650 \begin_layout Enumerate
19651 Within the 
19652 \family sans
19653 Overlay
19654 \family default
19655 , change all of the 
19656 \family sans
19657 InvisibleText
19658 \family default
19659  lines to 
19660 \family sans
19661 VisibleText
19662 \family default
19663  and vice-versa.
19664 \end_layout
19665
19666 \begin_layout Standard
19667 That's it.
19668  You've just made an 
19669 \family sans
19670 Overlay
19671 \family default
19672 .
19673 \end_layout
19674
19675 \begin_layout Standard
19676 There's one problem with the way I've designed the \SpecialChar LyX
19677  
19678 \family sans
19679 slides
19680 \family default
19681  class: you can't make text in the middle of a paragraph invisible, nor
19682  make text in the middle of an invisible paragraph visible again.
19683  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19684  codes.
19685 \begin_inset Foot
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 The commands of interest are: 
19690 \end_layout
19691
19692 \begin_layout Itemize
19693
19694 \family typewriter
19695 {
19696 \backslash
19697 invisible \SpecialChar ldots
19698  }
19699 \end_layout
19700
19701 \begin_layout Itemize
19702
19703 \family typewriter
19704 {
19705 \backslash
19706 visible \SpecialChar ldots
19707  }
19708 \end_layout
19709
19710 \begin_layout Plain Layout
19711 \SpecialChar ldots
19712 and need to be marked as \SpecialChar TeX
19713 .
19714  The text whose 
19715 \begin_inset Quotes eld
19716 \end_inset
19717
19718 visibility
19719 \begin_inset Quotes erd
19720 \end_inset
19721
19722  you wish to change goes in between the brackets [and after the 
19723 \family typewriter
19724
19725 \backslash
19726 invisible
19727 \family default
19728  or 
19729 \family typewriter
19730
19731 \backslash
19732 visible
19733 \family default
19734  command].
19735  If you don't know how to mark text as \SpecialChar TeX
19736 , see the appropriate section of
19737  the 
19738 \emph on
19739 User's Guide
19740 \emph default
19741 .
19742 \end_layout
19743
19744 \end_inset
19745
19746
19747 \end_layout
19748
19749 \begin_layout Subsubsection
19750 Using 
19751 \family sans
19752 Note
19753 \family default
19754  with 
19755 \family sans
19756 Slide
19757 \family default
19758
19759 \begin_inset CommandInset label
19760 LatexCommand label
19761 name "sec:slideNote"
19762
19763 \end_inset
19764
19765
19766 \end_layout
19767
19768 \begin_layout Standard
19769 Like an 
19770 \family sans
19771 Overlay
19772 \family default
19773 , a 
19774 \family sans
19775 Note
19776 \family default
19777  is associated with a 
19778 \begin_inset Quotes eld
19779 \end_inset
19780
19781 parent
19782 \begin_inset Quotes erd
19783 \end_inset
19784
19785  
19786 \family sans
19787 Slide
19788 \family default
19789 .
19790  Here, too, the \SpecialChar LyX
19791  
19792 \family sans
19793 slides
19794 \family default
19795  class provides visual cues.
19796  The label for a 
19797 \family sans
19798 Note
19799 \family default
19800  is shorter than that of a 
19801 \family sans
19802 Slide
19803 \family default
19804  [yet longer than that of an 
19805 \family sans
19806 Overlay
19807 \family default
19808 ] and, like the label of an 
19809 \family sans
19810 Overlay
19811 \family default
19812  is shockingly magenta.
19813  Additionally, the printed 
19814 \family sans
19815 Note
19816 \family default
19817  has the page number of its 
19818 \begin_inset Quotes eld
19819 \end_inset
19820
19821 parent
19822 \begin_inset Quotes erd
19823 \end_inset
19824
19825  
19826 \family sans
19827 Slide
19828 \family default
19829 , appended by 
19830 \begin_inset Quotes eld
19831 \end_inset
19832
19833
19834 \family typewriter
19835 -
19836 \family default
19837 1
19838 \begin_inset Quotes erd
19839 \end_inset
19840
19841
19842 \begin_inset Quotes eld
19843 \end_inset
19844
19845
19846 \family typewriter
19847 -
19848 \family default
19849 2
19850 \begin_inset Quotes erd
19851 \end_inset
19852
19853
19854 \begin_inset Quotes eld
19855 \end_inset
19856
19857
19858 \family typewriter
19859 -
19860 \family default
19861 3
19862 \begin_inset Quotes erd
19863 \end_inset
19864
19865 , etc.
19866  You can have multiple 
19867 \family sans
19868 Note
19869 \family default
19870 s associated with a single 
19871 \family sans
19872 Slide
19873 \family default
19874 , and, as with 
19875 \family sans
19876 Slide
19877 \family default
19878  and 
19879 \family sans
19880 Overlay
19881 \family default
19882 , you'll probably want to break up long 
19883 \family sans
19884 Note
19885 \family default
19886 s so that they fit on a single sheet of paper.
19887 \end_layout
19888
19889 \begin_layout Standard
19890 The purpose of a 
19891 \family sans
19892 Note
19893 \family default
19894  is obvious: it contains anything additional you might want to say about
19895  a 
19896 \family sans
19897 Slide
19898 \family default
19899 .
19900  It could also be used as a sheet of reminders for a particular 
19901 \family sans
19902 Slide
19903 \family default
19904 .
19905  In the case of the latter, you might want to make use of time markers.
19906  Currently, the \SpecialChar LyX
19907  
19908 \family sans
19909 slides
19910 \family default
19911  class has no 
19912 \begin_inset Quotes eld
19913 \end_inset
19914
19915 native
19916 \begin_inset Quotes erd
19917 \end_inset
19918
19919  support for time markers, a 
19920 \noun on
19921 Sli\SpecialChar TeX
19922
19923 \noun default
19924  feature.
19925  So, you'll have to resort to using the \SpecialChar LaTeX
19926  codes.
19927 \end_layout
19928
19929 \begin_layout Standard
19930 To use time markers, you'll need to specify the extra class option 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934
19935 \family typewriter
19936 clock
19937 \family default
19938
19939 \begin_inset Quotes erd
19940 \end_inset
19941
19942  [see section
19943 \begin_inset space ~
19944 \end_inset
19945
19946
19947 \begin_inset CommandInset ref
19948 LatexCommand ref
19949 reference "sec:slidesetup"
19950
19951 \end_inset
19952
19953 ].
19954  This option turns on timing marks, which will appear in the lower-left-hand
19955  corner of every 
19956 \family sans
19957 Note
19958 \family default
19959  you generate.
19960  To set what appears in the time marker, you use the \SpecialChar LaTeX
19961  commands 
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967
19968 \backslash
19969 settime{}
19970 \family default
19971
19972 \begin_inset Quotes erd
19973 \end_inset
19974
19975  and 
19976 \begin_inset Quotes eld
19977 \end_inset
19978
19979
19980 \family typewriter
19981
19982 \backslash
19983 addtime{}
19984 \family default
19985
19986 \begin_inset Quotes erd
19987 \end_inset
19988
19989 .
19990  The arguments of both commands are time measured in seconds.
19991  
19992 \begin_inset Quotes eld
19993 \end_inset
19994
19995
19996 \family typewriter
19997
19998 \backslash
19999 settime{}
20000 \family default
20001
20002 \begin_inset Quotes erd
20003 \end_inset
20004
20005  sets the time marker to a given time.
20006  
20007 \begin_inset Quotes eld
20008 \end_inset
20009
20010
20011 \family typewriter
20012
20013 \backslash
20014 addtime{}
20015 \family default
20016
20017 \begin_inset Quotes erd
20018 \end_inset
20019
20020  increments the time marker by the specified amount.
20021  Using time markers and 
20022 \family sans
20023 Note
20024 \family default
20025 s in this fashion, you can remind yourself how much time to spend on a particula
20026
20027 \family sans
20028 Slide
20029 \family default
20030 .
20031 \end_layout
20032
20033 \begin_layout Standard
20034 There's one last feature to describe.
20035  Clearly, you'd like to print out all of your 
20036 \family sans
20037 Slide
20038 \family default
20039 s and 
20040 \family sans
20041 Overlay
20042 \family default
20043 s on transparencies while printing all of your 
20044 \family sans
20045 Note
20046 \family default
20047 s on plain paper.
20048  However, a 
20049 \family sans
20050 Note
20051 \family default
20052  
20053 \emph on
20054 must
20055 \emph default
20056  follow the 
20057 \family sans
20058 Slide
20059 \family default
20060  with which it is associated.
20061  What's a person to do?
20062 \end_layout
20063
20064 \begin_layout Standard
20065 Luckily, there are two \SpecialChar LaTeX
20066  commands that allow you to select what to print
20067  out.
20068  Both must be placed into the preamble of your document.
20069  The command 
20070 \begin_inset Quotes eld
20071 \end_inset
20072
20073
20074 \family typewriter
20075
20076 \backslash
20077 onlyslides{
20078 \backslash
20079 slides}
20080 \family default
20081
20082 \begin_inset Quotes erd
20083 \end_inset
20084
20085  will cause the output to contain only the 
20086 \family sans
20087 Slide
20088 \family default
20089 s and 
20090 \family sans
20091 Overlay
20092 \family default
20093 s.
20094  Correspondingly, the command 
20095 \begin_inset Quotes eld
20096 \end_inset
20097
20098
20099 \family typewriter
20100
20101 \backslash
20102 onlynotes{
20103 \backslash
20104 notes}
20105 \family default
20106
20107 \begin_inset Quotes erd
20108 \end_inset
20109
20110  prevents the output of anything but 
20111 \family sans
20112 Note
20113 \family default
20114 s.
20115  I'd advise placing both commands in the preamble and initially comment
20116  both out.
20117  You can then preview your entire presentation as you write.
20118  When you're done writing, you can then uncomment one of the two to select
20119  what you want to print.
20120  I like to uncomment 
20121 \begin_inset Quotes eld
20122 \end_inset
20123
20124
20125 \family typewriter
20126
20127 \backslash
20128 onlyslides{
20129 \backslash
20130 slides}
20131 \family default
20132
20133 \begin_inset Quotes erd
20134 \end_inset
20135
20136  , print to a file with 
20137 \begin_inset Quotes eld
20138 \end_inset
20139
20140
20141 \family typewriter
20142 -slides
20143 \family default
20144
20145 \begin_inset Quotes erd
20146 \end_inset
20147
20148  in its name, comment it back out, then uncomment 
20149 \begin_inset Quotes eld
20150 \end_inset
20151
20152
20153 \family typewriter
20154
20155 \backslash
20156 onlynotes{
20157 \backslash
20158 notes}
20159 \family default
20160
20161 \begin_inset Quotes erd
20162 \end_inset
20163
20164  and print to a 
20165 \begin_inset Quotes eld
20166 \end_inset
20167
20168
20169 \family typewriter
20170 *-notes.ps
20171 \family default
20172
20173 \begin_inset Quotes erd
20174 \end_inset
20175
20176  file.
20177  I can then send either file to a printer, loading transparencies or plain
20178  paper as appropriate.
20179 \end_layout
20180
20181 \begin_layout Standard
20182 You can also provide other arguments to the 
20183 \begin_inset Quotes eld
20184 \end_inset
20185
20186
20187 \family typewriter
20188
20189 \backslash
20190 onlyslides{}
20191 \family default
20192
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196  and 
20197 \begin_inset Quotes eld
20198 \end_inset
20199
20200
20201 \family typewriter
20202
20203 \backslash
20204 onlynotes{}
20205 \family default
20206
20207 \begin_inset Quotes erd
20208 \end_inset
20209
20210  commands.
20211  See a good \SpecialChar LaTeX
20212  book for details.
20213 \end_layout
20214
20215 \begin_layout Subsection
20216 The 
20217 \family sans
20218 slides
20219 \family default
20220  Class Template File
20221 \end_layout
20222
20223 \begin_layout Standard
20224 I have also provided a template file, 
20225 \begin_inset Quotes eld
20226 \end_inset
20227
20228
20229 \family typewriter
20230 slides.lyx
20231 \family default
20232
20233 \begin_inset Quotes erd
20234 \end_inset
20235
20236 , with the 
20237 \family sans
20238 slides
20239 \family default
20240  class.
20241  To use it, begin your new presentation with 
20242 \family sans
20243 File\SpecialChar menuseparator
20244 New
20245 \begin_inset space ~
20246 \end_inset
20247
20248 from
20249 \begin_inset space ~
20250 \end_inset
20251
20252 Template
20253 \family default
20254 .
20255  Your new \SpecialChar LyX
20256  presentation file will contain an example 
20257 \family sans
20258 Slide
20259 \family default
20260  – 
20261 \family sans
20262 Overlay
20263 \family default
20264  – 
20265 \family sans
20266 Note
20267 \family default
20268  triplet.
20269  The 
20270 \family sans
20271 Slide
20272 \family default
20273  and 
20274 \family sans
20275 Overlay
20276 \family default
20277  additionally contain an example of the use of 
20278 \family sans
20279 InvisibleText
20280 \family default
20281  and 
20282 \family sans
20283 VisibleText
20284 \family default
20285 .
20286  Lastly, the preamble will contain:
20287 \end_layout
20288
20289 \begin_layout LyX-Code
20290 % Uncomment to print out only slides and overlays
20291 \end_layout
20292
20293 \begin_layout LyX-Code
20294 %
20295 \end_layout
20296
20297 \begin_layout LyX-Code
20298 %
20299 \backslash
20300 onlyslides{
20301 \backslash
20302 slides}
20303 \begin_inset Newline newline
20304 \end_inset
20305
20306  
20307 \end_layout
20308
20309 \begin_layout LyX-Code
20310 % Uncomment to print out only notes
20311 \end_layout
20312
20313 \begin_layout LyX-Code
20314 %
20315 \end_layout
20316
20317 \begin_layout LyX-Code
20318 %
20319 \backslash
20320 onlynotes{
20321 \backslash
20322 notes}
20323 \end_layout
20324
20325 \begin_layout Standard
20326 One final thing: I created this class to support the \SpecialChar LaTeX2e
20327  
20328 \begin_inset Quotes eld
20329 \end_inset
20330
20331
20332 \noun on
20333 Sli\SpecialChar TeX
20334
20335 \noun default
20336  emulation
20337 \begin_inset Quotes erd
20338 \end_inset
20339
20340  class, one of the built-in \SpecialChar LaTeX2e
20341  classes.
20342  Neither I nor the rest of the \SpecialChar LyX
20343  Team endorse or oppose the use of this built-in
20344  slide class.
20345  It's here if you want it or need it.
20346  There exist other \SpecialChar LaTeX2e
20347  classes for creating presentations, such as the 
20348 \family sans
20349 Foils
20350 \family default
20351  class [see section
20352 \begin_inset space ~
20353 \end_inset
20354
20355
20356 \begin_inset CommandInset ref
20357 LatexCommand ref
20358 reference "sec:foiltex"
20359
20360 \end_inset
20361
20362 ] or the 
20363 \begin_inset Quotes eld
20364 \end_inset
20365
20366
20367 \family typewriter
20368 seminar
20369 \family default
20370
20371 \begin_inset Quotes erd
20372 \end_inset
20373
20374  package [present on some \SpecialChar TeX
20375  distributions].
20376  The latter is not yet supported under \SpecialChar LyX
20377 .
20378 \begin_inset Foot
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 Perhaps you can take on the task\SpecialChar ldots
20383
20384 \end_layout
20385
20386 \end_inset
20387
20388  I know nothing about these other classes.
20389  Try them out to see what sort of alternative they provide.
20390 \end_layout
20391
20392 \begin_layout Chapter
20393 \SpecialChar LyX
20394  Features needing Extra Software
20395 \end_layout
20396
20397 \begin_layout Section
20398 Checking \SpecialChar TeX
20399
20400 \end_layout
20401
20402 \begin_layout Standard
20403 by 
20404 \noun on
20405 Asger Alstrup
20406 \end_layout
20407
20408 \begin_layout Subsection
20409 Introduction
20410 \end_layout
20411
20412 \begin_layout Standard
20413 If you have the 
20414 \family typewriter
20415 chktex
20416 \family default
20417  program installed
20418 \begin_inset Foot
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422
20423 \family typewriter
20424 chktex
20425 \family default
20426  is not yet available when you are using the \SpecialChar LaTeX
20427  distribution MiK\SpecialChar TeX
20428 .
20429 \end_layout
20430
20431 \end_inset
20432
20433 , you'll find in the 
20434 \family sans
20435 Tools
20436 \family default
20437  menu the entry: 
20438 \family sans
20439 Check
20440 \begin_inset space ~
20441 \end_inset
20442
20443 TeX
20444 \family default
20445 .
20446  You can get 
20447 \family typewriter
20448 chktex
20449 \family default
20450  from CTAN,
20451 \begin_inset Newline newline
20452 \end_inset
20453
20454
20455 \begin_inset CommandInset href
20456 LatexCommand href
20457 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
20458 literal "false"
20459
20460 \end_inset
20461
20462 .
20463 \end_layout
20464
20465 \begin_layout Standard
20466 The 
20467 \family sans
20468 Chk\SpecialChar TeX
20469
20470 \family default
20471  package is a program that was written by 
20472 \begin_inset Flex Noun
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 Jens T.
20477 \begin_inset space ~
20478 \end_inset
20479
20480 Berger Thielemann
20481 \end_layout
20482
20483 \end_inset
20484
20485  in frustration because some constructs in \SpecialChar LaTeX
20486  are sometimes non-intuitive,
20487  and easy to forget.
20488  The program runs over your \SpecialChar LaTeX
20489  file, checks the integrity of the file, and
20490  flags some common errors.
20491  In other technical words, it is 
20492 \family typewriter
20493 lint
20494 \family default
20495  for \SpecialChar LaTeX
20496 .
20497 \end_layout
20498
20499 \begin_layout Standard
20500 Well, what is a syntax checker doing in \SpecialChar LyX
20501  which is supposed to produce correct
20502  \SpecialChar LaTeX
20503  anyways? The answer is simple: Just as 
20504 \family typewriter
20505 Lint
20506 \family default
20507  not only checks the 
20508 \emph on
20509 syntax
20510 \emph default
20511  of C programs, but also does 
20512 \emph on
20513 semantic
20514 \emph default
20515  checks for type-errors, 
20516 \family sans
20517 Chk\SpecialChar TeX
20518
20519 \family default
20520  catches some common 
20521 \emph on
20522 typographic
20523 \emph default
20524  errors, in addition to the syntactical ones.
20525  Specifically, 
20526 \family sans
20527 Chk\SpecialChar TeX
20528
20529 \family default
20530  is capable of detecting several common errors, such as
20531 \end_layout
20532
20533 \begin_layout Itemize
20534 Ellipsis detection:
20535 \begin_inset Newline newline
20536 \end_inset
20537
20538 Use \SpecialChar ldots
20539  instead of ...
20540 \end_layout
20541
20542 \begin_layout Itemize
20543 No space in front of/after parenthesis:
20544 \begin_inset Newline newline
20545 \end_inset
20546
20547 ( wrong spacing )
20548 \end_layout
20549
20550 \begin_layout Itemize
20551 Enforcement of normal space after common abbreviations:
20552 \begin_inset Newline newline
20553 \end_inset
20554
20555 e.
20556 \begin_inset space \thinspace{}
20557 \end_inset
20558
20559 g.
20560 \begin_inset space \space{}
20561 \end_inset
20562
20563 is too wide spacing.
20564 \end_layout
20565
20566 \begin_layout Itemize
20567 Enforcement of end-of-sentence space when the last sentence ends with a
20568  capital letter:
20569 \begin_inset Newline newline
20570 \end_inset
20571
20572 This is a TEST.
20573  And this is wrong spacing.
20574 \end_layout
20575
20576 \begin_layout Itemize
20577 Space in front of labels and similar commands:
20578 \begin_inset Newline newline
20579 \end_inset
20580
20581 The label should stick right up to the text to avoid falling to a wrong
20582  page.
20583  
20584 \begin_inset CommandInset label
20585 LatexCommand label
20586 name "sec:chktex"
20587
20588 \end_inset
20589
20590  
20591 \begin_inset Foot
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 This footnote is in danger of falling off to a wrong page
20596 \end_layout
20597
20598 \end_inset
20599
20600  The label is separated too much.
20601 \end_layout
20602
20603 \begin_layout Itemize
20604 Space in front of references, instead of hard spaces:
20605 \begin_inset Newline newline
20606 \end_inset
20607
20608 If you have bad luck, the text will break right between the referenced text
20609  and reference number, and that's a pity.
20610  See section 
20611 \begin_inset CommandInset ref
20612 LatexCommand ref
20613 reference "sec:chktex"
20614
20615 \end_inset
20616
20617 .
20618 \end_layout
20619
20620 \begin_layout Itemize
20621 Use of 
20622 \begin_inset Quotes eld
20623 \end_inset
20624
20625 x
20626 \begin_inset Quotes erd
20627 \end_inset
20628
20629  instead of 
20630 \begin_inset Formula $\times$
20631 \end_inset
20632
20633  between numbers:
20634 \begin_inset Newline newline
20635 \end_inset
20636
20637 2x2 looks cheap compared to 
20638 \begin_inset Formula $2\times2$
20639 \end_inset
20640
20641 .
20642 \end_layout
20643
20644 \begin_layout Standard
20645 and more \SpecialChar ldots
20646  It is an invaluable tool when you are 
20647 \begin_inset Quotes eld
20648 \end_inset
20649
20650 finishing up
20651 \begin_inset Quotes erd
20652 \end_inset
20653
20654  your document before printing, and you should run it right after the obligatory
20655  spelling check, and before you go fine tuning the typesetting.
20656 \end_layout
20657
20658 \begin_layout Subsection
20659 How to use it
20660 \end_layout
20661
20662 \begin_layout Standard
20663 If you have the program installed, usage is as simple as choosing 
20664 \family sans
20665 Tools\SpecialChar menuseparator
20666 Check
20667 \begin_inset space ~
20668 \end_inset
20669
20670 TeX
20671 \family default
20672 .
20673  This will make \SpecialChar LyX
20674  generate a \SpecialChar LaTeX
20675  file of your document, start 
20676 \family sans
20677 Chk\SpecialChar TeX
20678
20679 \family default
20680  to check it, and then make \SpecialChar LyX
20681  insert 
20682 \begin_inset Quotes eld
20683 \end_inset
20684
20685 error boxes
20686 \begin_inset Quotes erd
20687 \end_inset
20688
20689  with the warnings from 
20690 \family sans
20691 Chk\SpecialChar TeX
20692
20693 \family default
20694 , if there were any.
20695  The warnings will be placed close to the point of the mistake, and you
20696  can quickly find them by using the 
20697 \family sans
20698 Navigate\SpecialChar menuseparator
20699 Error
20700 \family default
20701  menu item, or the shortcut key 
20702 \family sans
20703 C-g
20704 \family default
20705  from the default 
20706 \family typewriter
20707 cua
20708 \family default
20709  bind file.
20710  Open the error boxes by clicking on them with the mouse, or use the shortcut
20711  key 
20712 \family sans
20713 C-i
20714 \family default
20715  from 
20716 \family typewriter
20717 cua
20718 \family default
20719  bindings, or the corresponding 
20720 \family sans
20721 C-o
20722 \family default
20723  for the alternate 
20724 \family typewriter
20725 emacs
20726 \family default
20727  bind file.
20728  Read the warning and correct the mistake, if it is a mistake.
20729  If you have trouble understanding what the warning is about, you can safely
20730  ignore it.
20731  Remember that there is a hidden layer between the document on screen and
20732  the technical details in invoking 
20733 \family sans
20734 Chk\SpecialChar TeX
20735
20736 \family default
20737 , and this gap can make some warnings seem arcane or just plain silly.
20738 \end_layout
20739
20740 \begin_layout Standard
20741 This document is an excellent testing bed for the feature, and it should
20742  provide quite a few warnings for you to fiddle with.
20743  Since computers are only so smart, expect most of the warnings to be false
20744  alarms, though.
20745 \end_layout
20746
20747 \begin_layout Subsection
20748 How to fine tune it
20749 \end_layout
20750
20751 \begin_layout Standard
20752 Sometimes, you'll find that 
20753 \family sans
20754 Chk\SpecialChar TeX
20755
20756 \family default
20757  makes more noise than suits your mood.
20758  Then you can choose not to use it, wait until your mood changes, or try
20759  to customize 
20760 \family sans
20761 Chk\SpecialChar TeX
20762
20763 \family default
20764  to get better along with you.
20765 \end_layout
20766
20767 \begin_layout Standard
20768 Although 
20769 \family sans
20770 Chk\SpecialChar TeX
20771
20772 \family default
20773  
20774 \emph on
20775 is
20776 \emph default
20777  very configurable and extensible, you should not expect to solve all problems
20778  with 
20779 \family sans
20780 Chk\SpecialChar TeX
20781
20782 \family default
20783  in \SpecialChar LyX
20784  this way.
20785  Since \SpecialChar LyX
20786  has to generate a somewhat special \SpecialChar LaTeX
20787  file to be able to match the
20788  line numbers from the 
20789 \family sans
20790 Chk\SpecialChar TeX
20791
20792 \family default
20793  output
20794 \begin_inset Foot
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 You can inspect the specific output from 
20799 \family sans
20800 chktex
20801 \family default
20802  by using 
20803 \family sans
20804 Document\SpecialChar menuseparator
20805 \SpecialChar LaTeX
20806
20807 \begin_inset space ~
20808 \end_inset
20809
20810 Log
20811 \family default
20812  right after a 
20813 \family sans
20814 chktex
20815 \family default
20816  run.
20817 \end_layout
20818
20819 \end_inset
20820
20821  to the internal document structure, some of the warnings will not appear
20822  correctly.
20823  There are two things you can do about this:
20824 \end_layout
20825
20826 \begin_layout Itemize
20827 Fine tune the 
20828 \family sans
20829 Chk\SpecialChar TeX
20830
20831 \family default
20832  invocation command line in 
20833 \begin_inset Flex Noun
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 Tools\SpecialChar menuseparator
20838 Preferences\SpecialChar menuseparator
20839 Output\SpecialChar menuseparator
20840 LaTeX\SpecialChar menuseparator
20841 CheckTeX command
20842 \end_layout
20843
20844 \end_inset
20845
20846 , or the global 
20847 \family sans
20848 Chk\SpecialChar TeX
20849
20850 \family default
20851  installation configuration file (usually with the file 
20852 \family typewriter
20853 chktexrc
20854 \family default
20855 ).
20856  See below to learn what warnings can be enabled and disabled on the command
20857  line.
20858 \end_layout
20859
20860 \begin_layout Itemize
20861 Export your document as a raw \SpecialChar LaTeX
20862  file using 
20863 \family sans
20864 File\SpecialChar menuseparator
20865 Export\SpecialChar menuseparator
20866 \SpecialChar LaTeX
20867
20868 \family default
20869  and run 
20870 \family typewriter
20871 chktex
20872 \family default
20873  manually on that.
20874  Invoked in this way, it can be a hassle to find the corresponding place
20875  in the document inside \SpecialChar LyX
20876 , but with a little patience, you should be able
20877  to do it.
20878 \end_layout
20879
20880 \begin_layout Standard
20881 Here follows the warning messages that can be enabled and disabled in 
20882 \family sans
20883 Preferences
20884 \family default
20885 .
20886  Use 
20887 \family typewriter
20888 -n#
20889 \family default
20890  to disable a warning, and 
20891 \family typewriter
20892 -w#
20893 \family default
20894  to enable a warning.
20895  The emphasized entries are disabled by default, because the default is
20896  "
20897 \family typewriter
20898 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20899 \family default
20900 ".
20901 \end_layout
20902
20903 \begin_layout Standard
20904 Notice that you should only use the options that enable and disable warnings,
20905  because \SpecialChar LyX
20906  relies on some of the other command line parameters to be set
20907  in a specific way to have a chance to communicate with 
20908 \family typewriter
20909 chktex
20910 \family default
20911 .
20912 \end_layout
20913
20914 \begin_layout Enumerate
20915
20916 \size small
20917 \emph on
20918 Command terminated with space.
20919 \end_layout
20920
20921 \begin_layout Enumerate
20922
20923 \size small
20924 Non-breaking space (
20925 \begin_inset Quotes eld
20926 \end_inset
20927
20928
20929 \family typewriter
20930 ~
20931 \family default
20932
20933 \begin_inset Quotes erd
20934 \end_inset
20935
20936 ) should have been used.
20937 \end_layout
20938
20939 \begin_layout Enumerate
20940
20941 \size small
20942 \emph on
20943 You should enclose the previous parenthesis with 
20944 \begin_inset Quotes eld
20945 \end_inset
20946
20947
20948 \family typewriter
20949 {}
20950 \family default
20951
20952 \begin_inset Quotes erd
20953 \end_inset
20954
20955 .
20956 \end_layout
20957
20958 \begin_layout Enumerate
20959
20960 \size small
20961 Italic correction (
20962 \begin_inset Quotes eld
20963 \end_inset
20964
20965
20966 \family typewriter
20967
20968 \backslash
20969 /
20970 \family default
20971
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975 ) found in non-italic buffer.
20976 \end_layout
20977
20978 \begin_layout Enumerate
20979
20980 \size small
20981 Italic correction (
20982 \begin_inset Quotes eld
20983 \end_inset
20984
20985
20986 \family typewriter
20987
20988 \backslash
20989 /
20990 \family default
20991
20992 \begin_inset Quotes erd
20993 \end_inset
20994
20995 ) found more than once.
20996 \end_layout
20997
20998 \begin_layout Enumerate
20999
21000 \size small
21001 \emph on
21002 No italic correction (
21003 \begin_inset Quotes eld
21004 \end_inset
21005
21006
21007 \family typewriter
21008
21009 \backslash
21010 /
21011 \family default
21012
21013 \begin_inset Quotes erd
21014 \end_inset
21015
21016 ) found.
21017 \end_layout
21018
21019 \begin_layout Enumerate
21020
21021 \size small
21022 Accent command 
21023 \begin_inset Quotes eld
21024 \end_inset
21025
21026
21027 \family typewriter
21028 cmd
21029 \family default
21030
21031 \begin_inset Quotes erd
21032 \end_inset
21033
21034  needs use of 
21035 \begin_inset Quotes eld
21036 \end_inset
21037
21038
21039 \family typewriter
21040 cmd
21041 \family default
21042
21043 \begin_inset Quotes erd
21044 \end_inset
21045
21046 .
21047 \end_layout
21048
21049 \begin_layout Enumerate
21050
21051 \size small
21052 Wrong length of dash may have been used.
21053 \end_layout
21054
21055 \begin_layout Enumerate
21056
21057 \size small
21058 \emph on
21059 \begin_inset Quotes eld
21060 \end_inset
21061
21062
21063 \family typewriter
21064 %s
21065 \family default
21066
21067 \begin_inset Quotes erd
21068 \end_inset
21069
21070  expected, found 
21071 \begin_inset Quotes eld
21072 \end_inset
21073
21074
21075 \family typewriter
21076 %s
21077 \family default
21078
21079 \begin_inset Quotes erd
21080 \end_inset
21081
21082 .
21083 \end_layout
21084
21085 \begin_layout Enumerate
21086
21087 \size small
21088 Solo 
21089 \begin_inset Quotes eld
21090 \end_inset
21091
21092
21093 \family typewriter
21094 %s
21095 \family default
21096
21097 \begin_inset Quotes erd
21098 \end_inset
21099
21100  found.
21101 \end_layout
21102
21103 \begin_layout Enumerate
21104
21105 \size small
21106 You should use 
21107 \begin_inset Quotes eld
21108 \end_inset
21109
21110
21111 \family typewriter
21112 %s
21113 \family default
21114
21115 \begin_inset Quotes erd
21116 \end_inset
21117
21118  to achieve an ellipsis.
21119 \end_layout
21120
21121 \begin_layout Enumerate
21122
21123 \size small
21124 Inter-word spacing (
21125 \begin_inset Quotes eld
21126 \end_inset
21127
21128
21129 \family typewriter
21130
21131 \backslash
21132
21133 \family default
21134  
21135 \begin_inset Quotes eld
21136 \end_inset
21137
21138 ) should perhaps be used.
21139 \end_layout
21140
21141 \begin_layout Enumerate
21142
21143 \size small
21144 Inter-sentence spacing (
21145 \begin_inset Quotes eld
21146 \end_inset
21147
21148
21149 \family typewriter
21150
21151 \backslash
21152 @
21153 \family default
21154
21155 \begin_inset Quotes erd
21156 \end_inset
21157
21158 ) should perhaps be used.
21159 \end_layout
21160
21161 \begin_layout Enumerate
21162
21163 \size small
21164 Could not find argument for command.
21165 \end_layout
21166
21167 \begin_layout Enumerate
21168
21169 \size small
21170 No match found for 
21171 \begin_inset Quotes eld
21172 \end_inset
21173
21174
21175 \family typewriter
21176 %s
21177 \family default
21178
21179 \begin_inset Quotes erd
21180 \end_inset
21181
21182 .
21183 \end_layout
21184
21185 \begin_layout Enumerate
21186
21187 \size small
21188 Math mode still on at end of \SpecialChar LaTeX
21189  file.
21190 \end_layout
21191
21192 \begin_layout Enumerate
21193
21194 \size small
21195 Number of 
21196 \begin_inset Quotes eld
21197 \end_inset
21198
21199
21200 \family typewriter
21201 char
21202 \family default
21203
21204 \begin_inset Quotes erd
21205 \end_inset
21206
21207  doesn't match the number of 
21208 \begin_inset Quotes eld
21209 \end_inset
21210
21211
21212 \family typewriter
21213 char
21214 \family default
21215
21216 \begin_inset Quotes erd
21217 \end_inset
21218
21219 .
21220 \end_layout
21221
21222 \begin_layout Enumerate
21223
21224 \size small
21225 You should use either 
21226 \family typewriter
21227
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231
21232 \family default
21233  or 
21234 \family typewriter
21235
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239
21240 \family default
21241  as an alternative to 
21242 \begin_inset Quotes eld
21243 \end_inset
21244
21245
21246 \family typewriter
21247 "
21248 \family default
21249
21250 \begin_inset Quotes erd
21251 \end_inset
21252
21253 .
21254 \end_layout
21255
21256 \begin_layout Enumerate
21257
21258 \size small
21259 You should use "
21260 \family typewriter
21261 '
21262 \family default
21263 " (ASCII 39) instead of "
21264 \family typewriter
21265 ´
21266 \family default
21267 " (ASCII 180).
21268 \end_layout
21269
21270 \begin_layout Enumerate
21271
21272 \size small
21273 User-specified pattern found.
21274 \end_layout
21275
21276 \begin_layout Enumerate
21277
21278 \size small
21279 This command might not be intended.
21280 \end_layout
21281
21282 \begin_layout Enumerate
21283
21284 \size small
21285 \emph on
21286 Comment displayed.
21287 \end_layout
21288
21289 \begin_layout Enumerate
21290
21291 \size small
21292 Either 
21293 \family typewriter
21294 ''
21295 \backslash
21296 ,'
21297 \family default
21298  or 
21299 \family typewriter
21300 '
21301 \backslash
21302 ,''
21303 \family default
21304  will look better.
21305 \end_layout
21306
21307 \begin_layout Enumerate
21308
21309 \size small
21310 Delete this space to maintain correct page references.
21311 \end_layout
21312
21313 \begin_layout Enumerate
21314
21315 \size small
21316 \emph on
21317 You might wish to put this between a pair of 
21318 \begin_inset Quotes eld
21319 \end_inset
21320
21321
21322 \family typewriter
21323 {}
21324 \family default
21325
21326 \begin_inset Quotes erd
21327 \end_inset
21328
21329 .
21330 \end_layout
21331
21332 \begin_layout Enumerate
21333
21334 \size small
21335 You ought to remove spaces in front of punctuation.
21336 \end_layout
21337
21338 \begin_layout Enumerate
21339
21340 \size small
21341 Could not execute \SpecialChar LaTeX
21342  command.
21343 \end_layout
21344
21345 \begin_layout Enumerate
21346
21347 \size small
21348 Don't use 
21349 \family typewriter
21350
21351 \backslash
21352 /
21353 \family default
21354  in front of small punctuation.
21355 \end_layout
21356
21357 \begin_layout Enumerate
21358
21359 \family typewriter
21360 \size small
21361 $
21362 \backslash
21363 times$
21364 \family default
21365  may look prettier here.
21366 \end_layout
21367
21368 \begin_layout Enumerate
21369
21370 \size small
21371 \emph on
21372 Multiple spaces detected in output.
21373 \end_layout
21374
21375 \begin_layout Enumerate
21376
21377 \size small
21378 This text may be ignored.
21379 \end_layout
21380
21381 \begin_layout Enumerate
21382
21383 \size small
21384 Use 
21385 \family typewriter
21386
21387 \begin_inset Quotes eld
21388 \end_inset
21389
21390
21391 \family default
21392  to begin quotation, not 
21393 \family typewriter
21394 '
21395 \family default
21396 .
21397 \end_layout
21398
21399 \begin_layout Enumerate
21400
21401 \size small
21402 Use 
21403 \family typewriter
21404 '
21405 \family default
21406  to end quotation, not 
21407 \family typewriter
21408
21409 \begin_inset Quotes eld
21410 \end_inset
21411
21412
21413 \family default
21414 .
21415 \end_layout
21416
21417 \begin_layout Enumerate
21418
21419 \size small
21420 Don't mix quotes.
21421 \end_layout
21422
21423 \begin_layout Enumerate
21424
21425 \size small
21426 You should perhaps use 
21427 \begin_inset Quotes eld
21428 \end_inset
21429
21430
21431 \family typewriter
21432 cmd
21433 \family default
21434
21435 \begin_inset Quotes erd
21436 \end_inset
21437
21438  instead.
21439 \end_layout
21440
21441 \begin_layout Enumerate
21442
21443 \size small
21444 You should put a space in front of/after parenthesis.
21445 \end_layout
21446
21447 \begin_layout Enumerate
21448
21449 \size small
21450 You should avoid spaces in front of/after parenthesis.
21451 \end_layout
21452
21453 \begin_layout Enumerate
21454
21455 \size small
21456 \emph on
21457 You should not use punctuation in front of/after quotes.
21458 \end_layout
21459
21460 \begin_layout Enumerate
21461
21462 \size small
21463 Double space found.
21464 \end_layout
21465
21466 \begin_layout Enumerate
21467
21468 \size small
21469 You should put punctuation outside inner/inside display math mode.
21470 \end_layout
21471
21472 \begin_layout Enumerate
21473
21474 \size small
21475 You ought to not use primitive \SpecialChar TeX
21476  in \SpecialChar LaTeX
21477  code.
21478 \end_layout
21479
21480 \begin_layout Enumerate
21481
21482 \size small
21483 You should remove spaces in front of 
21484 \begin_inset Quotes eld
21485 \end_inset
21486
21487
21488 \family typewriter
21489 %s
21490 \family default
21491
21492 \begin_inset Quotes erd
21493 \end_inset
21494
21495
21496 \end_layout
21497
21498 \begin_layout Enumerate
21499
21500 \size small
21501 \begin_inset Quotes eld
21502 \end_inset
21503
21504
21505 \family typewriter
21506 %s
21507 \family default
21508
21509 \begin_inset Quotes erd
21510 \end_inset
21511
21512  is normally not followed by 
21513 \begin_inset Quotes eld
21514 \end_inset
21515
21516
21517 \family typewriter
21518 %c
21519 \family default
21520
21521 \begin_inset Quotes erd
21522 \end_inset
21523
21524 .
21525 \end_layout
21526
21527 \begin_layout Standard
21528 In later versions of \SpecialChar LyX
21529 , we hope to provide a more complete interface to this
21530  tool (and it's smaller cousin 
21531 \family typewriter
21532 lacheck
21533 \family default
21534 ) to exploit the full power of it.
21535  But it's not exactly useless as it is now: go try it on one of your existing
21536  documents of a certain length and be surprised.
21537 \end_layout
21538
21539 \begin_layout Section
21540 Version Control in \SpecialChar LyX
21541
21542 \end_layout
21543
21544 \begin_layout Standard
21545 by
21546 \noun on
21547  Lars Gullik Bjønnes 
21548 \noun default
21549 and 
21550 \noun on
21551 Pavel Sanda
21552 \end_layout
21553
21554 \begin_layout Subsection
21555 Introduction
21556 \end_layout
21557
21558 \begin_layout Standard
21559 \SpecialChar LyX
21560  supports some of the most basic RCS/CVS/SVN/GIT commands.
21561  If you need something a bit more sophisticated you will have to do that
21562  manually in a terminal.
21563 \end_layout
21564
21565 \begin_layout Standard
21566 Also note that CVS support is not as good as subversion support, so we advise
21567  using SVN instead.
21568  A good place to start learning Subversion is the SVN Book
21569 \begin_inset Foot
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 \begin_inset CommandInset href
21574 LatexCommand href
21575 target "http://svnbook.red-bean.com/"
21576 literal "false"
21577
21578 \end_inset
21579
21580
21581 \end_layout
21582
21583 \end_inset
21584
21585 .
21586  In the case of RCS you should read 
21587 \begin_inset Quotes eld
21588 \end_inset
21589
21590 rcsintro
21591 \begin_inset Quotes erd
21592 \end_inset
21593
21594  (a man file, read it with 
21595 \family typewriter
21596 man rcsintro
21597 \family default
21598 ).
21599  This file describes all the basic features of RCS.
21600  You should especially notice the comment about a RCS directory, and the
21601  notion of a master RCS file (the file ending in 
21602 \family typewriter
21603 ,v
21604 \family default
21605 ).
21606 \end_layout
21607
21608 \begin_layout Standard
21609 Before you begin to use the version control features in \SpecialChar LyX
21610 , you should be
21611  familiar with RCS/CVS/SVN/GIT usage.
21612  The implementation in \SpecialChar LyX
21613  assumes a recent version of the GNU RCS or CVS/SVN
21614  package — no guarantees are made for older versions.
21615  Most of the log messages are not currently displayed after operations —
21616  you can check them in the Messages pane if you are unsure.
21617  Regular users of version control will appreciate the VC toolbar, which
21618  can be enabled via 
21619 \family sans
21620 View\SpecialChar menuseparator
21621 Toolbars\SpecialChar menuseparator
21622 Version
21623 \begin_inset space ~
21624 \end_inset
21625
21626 Control
21627 \family default
21628 .
21629 \end_layout
21630
21631 \begin_layout Standard
21632 For introducing your own external commands consult 
21633 \begin_inset Flex Code
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 vc-command
21638 \end_layout
21639
21640 \end_inset
21641
21642  in the manual 
21643 \emph on
21644 \SpecialChar LyX
21645  Functions
21646 \emph default
21647 .
21648 \end_layout
21649
21650 \begin_layout Standard
21651 It is strongly recommended to store documents in uncompressed format if
21652  using version control (uncheck 
21653 \family sans
21654 Document\SpecialChar menuseparator
21655 Compressed
21656 \family default
21657  if it is checked): Uncompressed LyX documents are text files and therefore
21658  for merging two different versions by version control systems.
21659  Compressed LyX documents are binary files, which cannot be merged by version
21660  control systems.
21661 \end_layout
21662
21663 \begin_layout Subsection
21664 RCS commands in \SpecialChar LyX
21665
21666 \end_layout
21667
21668 \begin_layout Standard
21669 The following sections describe the RCS commands supported by \SpecialChar LyX
21670 .
21671  You can find them in the 
21672 \family sans
21673 File\SpecialChar menuseparator
21674 Version
21675 \begin_inset space ~
21676 \end_inset
21677
21678 Control
21679 \family default
21680  submenu.
21681  \SpecialChar LyX
21682  was tested against RCS 5.7/5.8.
21683 \end_layout
21684
21685 \begin_layout Subsubsection
21686
21687 \family sans
21688 Register
21689 \end_layout
21690
21691 \begin_layout Standard
21692 If your document is not under revision control, this is the only item shown
21693  in the menu.
21694  And if it is under revision control, the 
21695 \family sans
21696 Register
21697 \family default
21698  item is not visible.
21699  
21700 \end_layout
21701
21702 \begin_layout Standard
21703 This command registers your document with RCS (unless you are under the
21704  directory managed by CVS)\SpecialChar endofsentence
21705  You are asked interactively to supply an initial
21706  description of the document.
21707  The document is now set in Read-Only mode and you have to 
21708 \family sans
21709 Check
21710 \begin_inset space ~
21711 \end_inset
21712
21713 Out
21714 \begin_inset space ~
21715 \end_inset
21716
21717 For
21718 \begin_inset space ~
21719 \end_inset
21720
21721 Edit
21722 \family default
21723 , before making any changes to it.
21724  A document under revision control has a 
21725 \begin_inset Quotes eld
21726 \end_inset
21727
21728 [RCS:<version> <locker>]
21729 \begin_inset Quotes erd
21730 \end_inset
21731
21732  item tagged to the filename in the minibuffer.
21733 \end_layout
21734
21735 \begin_layout Standard
21736 RCS command that is run:
21737 \end_layout
21738
21739 \begin_layout LyX-Code
21740
21741 \family typewriter
21742 ci -q -u -i -t-"<initial description>" <file-name>
21743 \end_layout
21744
21745 \begin_layout Standard
21746 Read 
21747 \family typewriter
21748 man ci
21749 \family default
21750  to understand the switches.
21751  
21752 \end_layout
21753
21754 \begin_layout Subsubsection
21755
21756 \family sans
21757 Check In Changes
21758 \end_layout
21759
21760 \begin_layout Standard
21761 When you are finished editing a file, you check in your changes.
21762  When you do this, you are asked for a description of the changes.
21763  This is stored in the history log.
21764  The version number is bumped, your changes are applied to the master RCS
21765  file, the document is unlocked and set to Read-Only mode.
21766 \end_layout
21767
21768 \begin_layout Itemize
21769 RCS command: 
21770 \family typewriter
21771 ci -q -u -m"<description>" <file-name>
21772 \end_layout
21773
21774 \begin_layout Subsubsection
21775
21776 \family sans
21777 Check Out For Edit
21778 \end_layout
21779
21780 \begin_layout Standard
21781 By doing this you lock the document so that only you can edit it.
21782  This will also make the document Read-Write only for you.
21783  You will usually continue editing for a while and when you are finished
21784  you check in your changes.
21785  The status line is changed to reflect that you have locked the file.
21786 \end_layout
21787
21788 \begin_layout Itemize
21789 RCS command: 
21790 \family typewriter
21791 co -q -l <file-name>
21792 \end_layout
21793
21794 \begin_layout Subsubsection
21795
21796 \family sans
21797 Revert To Repository Version
21798 \end_layout
21799
21800 \begin_layout Standard
21801 This will discard all changes made to the document since the last check
21802  in.
21803  You get a warning before changes are discarded.
21804 \end_layout
21805
21806 \begin_layout Itemize
21807 RCS command: 
21808 \family typewriter
21809 co -f -u<version> <file-name>
21810 \end_layout
21811
21812 \begin_layout Subsubsection
21813
21814 \family sans
21815 Copy
21816 \end_layout
21817
21818 \begin_layout Standard
21819 This will create a copy of the current document.
21820  Since RCS does not support copy operations natively, the version history
21821  is not preserved, and the copy is added as a new file.
21822  It requires a clean document without any changes since the last checkin.
21823  You are asked for a file name and a description of the copy operation.
21824  After that the copy is created, both locally and in the repository.
21825  If the parent directories of the copied and original document differ, all
21826  relative paths of included files of the copy are adjusted (like in 
21827 \family sans
21828 File\SpecialChar menuseparator
21829 Save As
21830 \family default
21831 \SpecialChar ldots
21832 ).
21833  Finally, the copy is loaded instead of the original document.
21834 \end_layout
21835
21836 \begin_layout Labeling
21837 \labelwidthstring 00.00.0000
21838 RCS
21839 \begin_inset space ~
21840 \end_inset
21841
21842 commands: 
21843 \begin_inset space ~
21844 \end_inset
21845
21846
21847 \begin_inset Newline newline
21848 \end_inset
21849
21850 Copy 
21851 \begin_inset Flex Code
21852 status collapsed
21853
21854 \begin_layout Plain Layout
21855
21856 \family typewriter
21857 \begin_inset Quotes qld
21858 \end_inset
21859
21860 <file-name>
21861 \begin_inset Quotes qld
21862 \end_inset
21863
21864
21865 \end_layout
21866
21867 \end_inset
21868
21869  to 
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874
21875 \family typewriter
21876 \begin_inset Quotes qld
21877 \end_inset
21878
21879 <new-file-name>
21880 \begin_inset Quotes qld
21881 \end_inset
21882
21883
21884 \end_layout
21885
21886 \end_inset
21887
21888
21889 \begin_inset Newline newline
21890 \end_inset
21891
21892
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897 ci -q -u 
21898 \family typewriter
21899 -i 
21900 \begin_inset Quotes qld
21901 \end_inset
21902
21903 <new-file-name>
21904 \begin_inset Quotes qld
21905 \end_inset
21906
21907
21908 \end_layout
21909
21910 \end_inset
21911
21912
21913 \end_layout
21914
21915 \begin_layout Subsubsection
21916
21917 \family sans
21918 Undo Last Checkin
21919 \end_layout
21920
21921 \begin_layout Standard
21922 This makes as if the last check in never happened.
21923  No changes are made to the document loaded into \SpecialChar LyX
21924 , but the last version
21925  is removed from the master RCS file.
21926 \end_layout
21927
21928 \begin_layout Itemize
21929 RCS command: 
21930 \family typewriter
21931 rcs -o<version> <file-name>
21932 \end_layout
21933
21934 \begin_layout Subsubsection
21935
21936 \family sans
21937 Show History
21938 \end_layout
21939
21940 \begin_layout Standard
21941 This shows the complete history of the RCS document.
21942  The output of 
21943 \family typewriter
21944 rlog <file-name>
21945 \family default
21946  is shown in a browser.
21947  See 
21948 \family typewriter
21949 man rlog
21950 \family default
21951  for more info.
21952 \end_layout
21953
21954 \begin_layout Subsubsection
21955 Revision info
21956 \end_layout
21957
21958 \begin_layout Standard
21959 \SpecialChar LyX
21960  supports RCS version number, author name, date and time of last commit.
21961  All those are extracted from 
21962 \family typewriter
21963 rlog -r <file-name>
21964 \family default
21965 .
21966  See 
21967 \begin_inset CommandInset ref
21968 LatexCommand ref
21969 reference "subsec:VCS-Revision-Information"
21970
21971 \end_inset
21972
21973  for details.
21974 \end_layout
21975
21976 \begin_layout Subsection
21977 CVS commands in \SpecialChar LyX
21978
21979 \end_layout
21980
21981 \begin_layout Standard
21982 A subset of CVS operations is supported by \SpecialChar LyX
21983 .
21984  You can find the commands in the 
21985 \family sans
21986 File\SpecialChar menuseparator
21987 Version
21988 \begin_inset space ~
21989 \end_inset
21990
21991 Control
21992 \family default
21993  submenu.
21994  The version control system SVN is more powerful, so please use it instead
21995  of CVS if possible.
21996 \end_layout
21997
21998 \begin_layout Subsubsection
21999
22000 \family sans
22001 General CVS usage
22002 \end_layout
22003
22004 \begin_layout Standard
22005 If you start from scratch with CVS you have to create your repository and
22006  checkout the working copy with external tools.
22007  If you're using a client-server setup you may need to login before doing
22008  the first repository checkout.
22009 \end_layout
22010
22011 \begin_layout Standard
22012 If your documents are under revision control and others are using the same
22013  repository problems arise when different changes to the same document at
22014  the same location happen.
22015  Standard CVS repositories don't operate with a file locking mechanism.
22016  This may be surprising, but conflicts only occur if people disagree on
22017  the proper content of the same part of a document.
22018  So, if co-workers are used to communicate regularly, these conflicts occur
22019  rarely.
22020  If they don't communicate they have a fundamental problem anyway.
22021  Nevertheless some people like to work with so called 
22022 \begin_inset Quotes eld
22023 \end_inset
22024
22025 reserved checkouts
22026 \begin_inset Quotes erd
22027 \end_inset
22028
22029 .
22030  If they do so the working copy of all files is readonly when checked out
22031  first and the user starts editing after using a special command to make
22032  the working copy writable.
22033  When the changes are checked in the working copy returns to readonly state.
22034  With \SpecialChar LyX
22035  one has to edit the 
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 .cvsrc
22041 \end_layout
22042
22043 \end_inset
22044
22045  file and add the line 
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 cvs -r
22051 \end_layout
22052
22053 \end_inset
22054
22055  to work with reserved checkouts.
22056  The benefit is the possibility to see who is using a writable copy of some
22057  document.
22058  It's not guaranteed only one user makes a copy writable.
22059 \end_layout
22060
22061 \begin_layout Standard
22062 \SpecialChar LyX
22063  tries to guess if you're using reserved or non-reserved checkouts.
22064  If your working copy is readonly or it is writable and an additional copy
22065  of your document exists in the CVS/Base sub-directory a reserved otherwise
22066  a non-reserved checkout is assumed.
22067  When a reserved checkout is detected you have to use 
22068 \begin_inset Flex Noun
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 Check Out
22073 \end_layout
22074
22075 \end_inset
22076
22077  to make your working copy writable if it's readonly.
22078  After doing so the 
22079 \begin_inset Flex Noun
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 Check In
22084 \end_layout
22085
22086 \end_inset
22087
22088  operation is possible and that makes your working copy readonly again after
22089  transferring your changes to the repository.
22090 \end_layout
22091
22092 \begin_layout Standard
22093 More information about CVS can be found here 
22094 \begin_inset Flex URL
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098
22099 http://www.nongnu.org/cvs
22100 \end_layout
22101
22102 \end_inset
22103
22104  and here 
22105 \begin_inset Flex URL
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109
22110 http://ximbiot.com/cvs
22111 \end_layout
22112
22113 \end_inset
22114
22115 .
22116 \end_layout
22117
22118 \begin_layout Standard
22119 Read 
22120 \family typewriter
22121 man cvs
22122 \family default
22123  to understand the sub-commands and the switches mentioned below.
22124 \end_layout
22125
22126 \begin_layout Subsubsection
22127
22128 \family sans
22129 Register
22130 \end_layout
22131
22132 \begin_layout Standard
22133 If your document is not under revision control, this is the only item shown
22134  in the menu.
22135  And if it is under revision control, the 
22136 \family sans
22137 Register
22138 \family default
22139  item is not visible.
22140  
22141 \end_layout
22142
22143 \begin_layout Standard
22144 This command registers in CVS your document 
22145 \begin_inset Flex Strong
22146 status collapsed
22147
22148 \begin_layout Plain Layout
22149
22150 \emph on
22151 only
22152 \end_layout
22153
22154 \end_inset
22155
22156  in the case you have already the documents directory under CVS control
22157  (in particular 
22158 \family typewriter
22159 CVS/Entries
22160 \family default
22161  file exists).
22162  This means you have to create or checkout the archive by yourself using
22163  external tools.
22164  (In case you forget that step \SpecialChar LyX
22165  registers the document with RCS.)
22166 \end_layout
22167
22168 \begin_layout Standard
22169 Then you are asked interactively to supply an initial description of the
22170  document.
22171  Don't forget that registered file is not yet checked in.
22172 \end_layout
22173
22174 \begin_layout Standard
22175 CVS command that is run: 
22176 \family typewriter
22177 cvs -q add -m"<entered message>" "<file-name>"
22178 \end_layout
22179
22180 \begin_layout Standard
22181 The term 
22182 \family typewriter
22183 "<file-name>"
22184 \family default
22185  above and for all other CVS commands is an abbreviation for 
22186 \begin_inset Quotes eld
22187 \end_inset
22188
22189 change the current working directory to file location and use the file name
22190  without path component as argument
22191 \begin_inset Quotes erd
22192 \end_inset
22193
22194 .
22195 \end_layout
22196
22197 \begin_layout Subsubsection
22198
22199 \family sans
22200 Check In Changes
22201 \end_layout
22202
22203 \begin_layout Standard
22204 When you are finished editing a file, you commit your changes.
22205  When you do this and you had changed the document, you are asked for a
22206  description of the changes.
22207  After that changes are written to the repository.
22208  In case you didn't change the document and a reserved checkout is detected
22209  the reservation made on 
22210 \begin_inset Flex Noun
22211 status collapsed
22212
22213 \begin_layout Plain Layout
22214 Check Out
22215 \end_layout
22216
22217 \end_inset
22218
22219  is undone.
22220 \end_layout
22221
22222 \begin_layout Labeling
22223 \labelwidthstring 00.00.0000
22224 CVS
22225 \begin_inset space ~
22226 \end_inset
22227
22228 command: 
22229 \begin_inset space ~
22230 \end_inset
22231
22232
22233 \begin_inset Newline newline
22234 \end_inset
22235
22236
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 cvs 
22242 \family typewriter
22243 -q commit -m"<description>" "<file-name>"
22244 \end_layout
22245
22246 \end_inset
22247
22248  or
22249 \begin_inset Newline newline
22250 \end_inset
22251
22252
22253 \begin_inset Flex Code
22254 status collapsed
22255
22256 \begin_layout Plain Layout
22257 cvs -q unedit 
22258 \family typewriter
22259 "<file-name>"
22260 \end_layout
22261
22262 \end_inset
22263
22264
22265 \end_layout
22266
22267 \begin_layout Subsubsection
22268
22269 \family sans
22270 Check Out Changes
22271 \end_layout
22272
22273 \begin_layout Standard
22274 When you are sharing a repository with others, you may have to incorporate
22275  their changes into your working copy.
22276 \end_layout
22277
22278 \begin_layout Standard
22279 CVS command: 
22280 \family typewriter
22281 cvs -q update "<file-name>"
22282 \end_layout
22283
22284 \begin_layout Standard
22285 If a readonly checkout is detected the working copy is made writable and
22286  reserved.
22287 \end_layout
22288
22289 \begin_layout Standard
22290 CVS command: 
22291 \family typewriter
22292 cvs -q edit "<file-name>"
22293 \end_layout
22294
22295 \begin_layout Subsubsection
22296
22297 \family sans
22298 Revert To Repository Version
22299 \end_layout
22300
22301 \begin_layout Standard
22302 This will discard all changes made to the document since the last check
22303  in.
22304  You get a warning before changes are discarded.
22305  Firstly the file is deleted, secondly CVS update command is run.
22306 \end_layout
22307
22308 \begin_layout Standard
22309 CVS command: 
22310 \family typewriter
22311 cvs -q update "<file-name>"
22312 \end_layout
22313
22314 \begin_layout Standard
22315 If a reserved checkout is detected and the working copy has no changes only
22316  the reservation is undone.
22317 \end_layout
22318
22319 \begin_layout Standard
22320 CVS command: 
22321 \family typewriter
22322 cvs -q unedit "<file-name>"
22323 \end_layout
22324
22325 \begin_layout Subsubsection
22326
22327 \family sans
22328 Copy
22329 \end_layout
22330
22331 \begin_layout Standard
22332 This will create a copy of the current document.
22333  Since CVS does not support copy operations natively, the version history
22334  is not preserved, and the copy is added as a new file.
22335  It requires a clean document without any changes since the last checkin.
22336  You are asked for a file name and a description of the copy operation.
22337  After that the copy is created, both locally and in the repository.
22338  If the parent directories of the copied and original document differ, all
22339  relative paths of included files of the copy are adjusted (like in 
22340 \family sans
22341 File\SpecialChar menuseparator
22342 Save As
22343 \family default
22344 \SpecialChar ldots
22345 ).
22346  Finally, the copy is loaded instead of the original document.
22347 \end_layout
22348
22349 \begin_layout Labeling
22350 \labelwidthstring 00.00.0000
22351 CVS
22352 \begin_inset space ~
22353 \end_inset
22354
22355 commands: 
22356 \begin_inset space ~
22357 \end_inset
22358
22359
22360 \begin_inset Newline newline
22361 \end_inset
22362
22363 Copy 
22364 \begin_inset Flex Code
22365 status collapsed
22366
22367 \begin_layout Plain Layout
22368 "<file-name>"
22369 \end_layout
22370
22371 \end_inset
22372
22373  to 
22374 \begin_inset Flex Code
22375 status collapsed
22376
22377 \begin_layout Plain Layout
22378 "<new-file-name>"
22379 \end_layout
22380
22381 \end_inset
22382
22383
22384 \begin_inset Newline newline
22385 \end_inset
22386
22387
22388 \begin_inset Flex Code
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 cvs -q add "<new-file-name>"
22393 \end_layout
22394
22395 \end_inset
22396
22397
22398 \end_layout
22399
22400 \begin_layout Subsubsection
22401
22402 \family sans
22403 Rename
22404 \end_layout
22405
22406 \begin_layout Standard
22407 This will rename the current document.
22408  Since CVS does not support rename operations natively, the version history
22409  is not preserved, the renamed document is added as a new file, and the
22410  original document is deleted.
22411  It requires a clean document without any changes since the last checkin.
22412  You are asked for a file name and a description of the rename operation.
22413  After that the document is renamed, both locally and in the repository.
22414  If the parent directories of the new and old file names differ, all relative
22415  paths of included files are adjusted (like in 
22416 \family sans
22417 File\SpecialChar menuseparator
22418 Save As
22419 \family default
22420 \SpecialChar ldots
22421 ).
22422  Finally, the document is reloaded using the new name.
22423 \end_layout
22424
22425 \begin_layout Labeling
22426 \labelwidthstring 00.00.0000
22427 CVS
22428 \begin_inset space ~
22429 \end_inset
22430
22431 commands: 
22432 \begin_inset space ~
22433 \end_inset
22434
22435
22436 \begin_inset Newline newline
22437 \end_inset
22438
22439 Rename 
22440 \begin_inset Flex Code
22441 status collapsed
22442
22443 \begin_layout Plain Layout
22444 "<file-name>"
22445 \end_layout
22446
22447 \end_inset
22448
22449  to 
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 "<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 add "<new-file-name>"
22469 \end_layout
22470
22471 \end_inset
22472
22473
22474 \begin_inset Newline newline
22475 \end_inset
22476
22477
22478 \begin_inset Flex Code
22479 status collapsed
22480
22481 \begin_layout Plain Layout
22482 cvs -q remove "<file-name>"
22483 \end_layout
22484
22485 \end_inset
22486
22487
22488 \end_layout
22489
22490 \begin_layout Subsubsection
22491 Update of the local directory checkout from repository
22492 \end_layout
22493
22494 \begin_layout Standard
22495 Once your documents gets more complex, containing sub-documents and pictures,
22496  including external 
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 .tex
22502 \end_layout
22503
22504 \end_inset
22505
22506  files and so on using version control becomes more complicated.
22507  \SpecialChar LyX
22508  supports updating the whole tree in which resides the document.
22509  This become especially useful once you cooperate with people which neither
22510  have detailed knowledge about CVS usage nor they have ambition to commit
22511  additional material to the repository.
22512  You have to organize the files structure so that all external files are
22513  in the same directory or subdirectories of the document.
22514  It's good practice anyway to store multipart documents in an extra directory.
22515 \end_layout
22516
22517 \begin_layout Standard
22518 The 
22519 \begin_inset Flex Code
22520 status collapsed
22521
22522 \begin_layout Plain Layout
22523 Update local directory from repository
22524 \end_layout
22525
22526 \end_inset
22527
22528  command updates the whole directory.
22529  If local changes are detected user is warned before update starts.
22530  In case of merge conflicts both versions of the conflicting document parts
22531  are placed in the final document.
22532  You have to review and correct the result of the merge.
22533  You'll find the conflicts enclosed in pairs of 
22534 \begin_inset Flex Code
22535 status collapsed
22536
22537 \begin_layout Plain Layout
22538 <<<<<<<
22539 \end_layout
22540
22541 \end_inset
22542
22543  and 
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548 >>>>>>>
22549 \end_layout
22550
22551 \end_inset
22552
22553  separated by 
22554 \begin_inset Flex Code
22555 status collapsed
22556
22557 \begin_layout Plain Layout
22558 =======
22559 \end_layout
22560
22561 \end_inset
22562
22563 .
22564  The first part is your version as before the update operation with the
22565  document name prepended.
22566  The second one is the repository version with the version number after
22567  the sequence of 
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 >
22573 \end_layout
22574
22575 \end_inset
22576
22577  signs.
22578 \end_layout
22579
22580 \begin_layout Labeling
22581 \labelwidthstring 00.00.0000
22582 CVS
22583 \begin_inset space ~
22584 \end_inset
22585
22586 commands: 
22587 \begin_inset space ~
22588 \end_inset
22589
22590
22591 \begin_inset Newline newline
22592 \end_inset
22593
22594
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599 cd $path; cvs diff 
22600 \family typewriter
22601 "."
22602 \end_layout
22603
22604 \end_inset
22605
22606  (Ask if changes are detected.)
22607 \begin_inset Newline newline
22608 \end_inset
22609
22610
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 cd $path; cvs -q update 
22616 \family typewriter
22617 "."
22618 \end_layout
22619
22620 \end_inset
22621
22622
22623 \end_layout
22624
22625 \begin_layout Standard
22626 where 
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 $path
22632 \end_layout
22633
22634 \end_inset
22635
22636  stands for the path to the document.
22637 \end_layout
22638
22639 \begin_layout Subsubsection
22640
22641 \family sans
22642 Show History
22643 \end_layout
22644
22645 \begin_layout Standard
22646 This shows the complete history of the CVS document.
22647  The output of 
22648 \family typewriter
22649 cvs log "<file-name>"
22650 \family default
22651  is shown in a browser.
22652 \end_layout
22653
22654 \begin_layout Subsubsection
22655 Revision info
22656 \end_layout
22657
22658 \begin_layout Standard
22659 \SpecialChar LyX
22660  supports CVS version number, author name, date and time of last commit.
22661  All those are extracted from 
22662 \family typewriter
22663 cvs log -r <file-name>
22664 \family default
22665 .
22666  See 
22667 \begin_inset CommandInset ref
22668 LatexCommand ref
22669 reference "subsec:VCS-Revision-Information"
22670
22671 \end_inset
22672
22673  for details.
22674 \end_layout
22675
22676 \begin_layout Subsection
22677 SVN commands in \SpecialChar LyX
22678
22679 \end_layout
22680
22681 \begin_layout Standard
22682 SVN is now partially supported by \SpecialChar LyX
22683 .
22684  You can find the commands in the 
22685 \family sans
22686 File\SpecialChar menuseparator
22687 Version
22688 \begin_inset space ~
22689 \end_inset
22690
22691 Control
22692 \family default
22693  submenu.
22694  Please note that if you use password protected access to repository via
22695  ssh, you will be asked in terminal window.
22696  \SpecialChar LyX
22697  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22698 \begin_inset Foot
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 Most of the commands will work with 1.4 too, see 
22703 \begin_inset CommandInset ref
22704 LatexCommand ref
22705 reference "subsec:SVN-Repo-Update"
22706
22707 \end_inset
22708
22709 .
22710  There seems to be currently unresolved permissions problem under SVN 1.8
22711  with reverting changes when file is locked.
22712 \end_layout
22713
22714 \end_inset
22715
22716
22717 \end_layout
22718
22719 \begin_layout Subsubsection
22720
22721 \family sans
22722 Register
22723 \end_layout
22724
22725 \begin_layout Standard
22726 If your document is not under revision control, this is the only item shown
22727  in the menu.
22728  And if it is under revision control, the 
22729 \family sans
22730 Register
22731 \family default
22732  item is not visible.
22733 \end_layout
22734
22735 \begin_layout Standard
22736 This command registers in SVN your document ONLY in case you have already
22737  the documents directory under SVN control (in particular 
22738 \family typewriter
22739 .svn/entries
22740 \family default
22741  file exists).
22742  This means you have to checkout the archive by yourself.
22743 \end_layout
22744
22745 \begin_layout Standard
22746 Then you are asked interactively to supply an initial description of the
22747  document.
22748  Don't forget that registered file is not yet commited.
22749 \end_layout
22750
22751 \begin_layout Standard
22752 SVN command that is run: 
22753 \family typewriter
22754 svn add -q 
22755 \begin_inset Quotes qld
22756 \end_inset
22757
22758 <file-name>
22759 \begin_inset Quotes qld
22760 \end_inset
22761
22762
22763 \end_layout
22764
22765 \begin_layout Standard
22766 Read 
22767 \family typewriter
22768 man svn
22769 \family default
22770  to understand the switches.
22771 \end_layout
22772
22773 \begin_layout Subsubsection
22774
22775 \family sans
22776 Check In Changes
22777 \end_layout
22778
22779 \begin_layout Standard
22780 When you are finished editing a file, you commit your changes.
22781  When you do this, you are asked for a description of the changes.
22782  After that changes are commited.
22783 \end_layout
22784
22785 \begin_layout Standard
22786 SVN command:
22787 \begin_inset Foot
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 In case locking is not enabled.
22792  See Section 
22793 \begin_inset CommandInset ref
22794 LatexCommand ref
22795 reference "subsec:SVN-File-Locking"
22796
22797 \end_inset
22798
22799 .
22800 \end_layout
22801
22802 \end_inset
22803
22804  
22805 \family typewriter
22806 svn commit -q -m"<description>" <file-name>
22807 \end_layout
22808
22809 \begin_layout Subsubsection
22810
22811 \family sans
22812 Check Out For Edit
22813 \end_layout
22814
22815 \begin_layout Standard
22816 Updates the changes of this file from the repository.
22817  Be sure you understand SVN merging and conflicts resolving before using
22818  this function, because all conflicts has to be resolved manually by you!
22819 \end_layout
22820
22821 \begin_layout Standard
22822 SVN command:
22823 \begin_inset Foot
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827 Ditto.
22828 \end_layout
22829
22830 \end_inset
22831
22832  
22833 \family typewriter
22834 svn update --non-interactive 
22835 \begin_inset Quotes qld
22836 \end_inset
22837
22838 <file-name>
22839 \begin_inset Quotes qld
22840 \end_inset
22841
22842
22843 \end_layout
22844
22845 \begin_layout Subsubsection
22846
22847 \family sans
22848 Revert To Repository Version
22849 \end_layout
22850
22851 \begin_layout Standard
22852 This will discard all changes made to the document since the last check
22853  in.
22854  You get a warning before changes are discarded.
22855 \end_layout
22856
22857 \begin_layout Standard
22858 SVN command: 
22859 \family typewriter
22860 svn revert -q 
22861 \begin_inset Quotes qld
22862 \end_inset
22863
22864 <file-name>
22865 \begin_inset Quotes qld
22866 \end_inset
22867
22868
22869 \end_layout
22870
22871 \begin_layout Subsubsection
22872
22873 \family sans
22874 Copy
22875 \end_layout
22876
22877 \begin_layout Standard
22878 This will create a copy of the current document including the version history.
22879  It requires a clean document without any changes since the last checkin.
22880  You are asked for a file name and a description of the copy operation.
22881  After that the copy is created, both locally and in the repository.
22882  If the parent directories of the copied and original document differ, all
22883  relative paths of included files of the copy are adjusted (like in 
22884 \family sans
22885 File\SpecialChar menuseparator
22886 Save As
22887 \family default
22888 \SpecialChar ldots
22889 ).
22890  Finally, the copy is loaded instead of the original document.
22891 \end_layout
22892
22893 \begin_layout Labeling
22894 \labelwidthstring 00.00.0000
22895 SVN
22896 \begin_inset space ~
22897 \end_inset
22898
22899 commands: 
22900 \begin_inset space ~
22901 \end_inset
22902
22903
22904 \begin_inset Newline newline
22905 \end_inset
22906
22907
22908 \begin_inset Flex Code
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 svn copy -q 
22913 \family typewriter
22914
22915 \begin_inset Quotes qld
22916 \end_inset
22917
22918 <file-name>
22919 \begin_inset Quotes qld
22920 \end_inset
22921
22922  
22923 \begin_inset Quotes qld
22924 \end_inset
22925
22926 <new-file-name>
22927 \begin_inset Quotes qld
22928 \end_inset
22929
22930
22931 \end_layout
22932
22933 \end_inset
22934
22935
22936 \begin_inset Newline newline
22937 \end_inset
22938
22939
22940 \begin_inset Flex Code
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944 svn commit
22945 \end_layout
22946
22947 \end_inset
22948
22949
22950 \end_layout
22951
22952 \begin_layout Subsubsection
22953
22954 \family sans
22955 Rename
22956 \end_layout
22957
22958 \begin_layout Standard
22959 This will rename the current document including the version history.
22960  It requires a clean document without any changes since the last checkin.
22961  You are asked for a file name and a description of the rename operation.
22962  After that the document is renamed, both locally and in the repository.
22963  If the parent directories of the new and old file names differ, all relative
22964  paths of included files are adjusted (like in 
22965 \family sans
22966 File\SpecialChar menuseparator
22967 Save As
22968 \family default
22969 \SpecialChar ldots
22970 ).
22971  Finally, the document is reloaded using the new name.
22972 \end_layout
22973
22974 \begin_layout Labeling
22975 \labelwidthstring 00.00.0000
22976 SVN
22977 \begin_inset space ~
22978 \end_inset
22979
22980 commands: 
22981 \begin_inset space ~
22982 \end_inset
22983
22984
22985 \begin_inset Newline newline
22986 \end_inset
22987
22988
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 svn move -q 
22994 \family typewriter
22995
22996 \begin_inset Quotes qld
22997 \end_inset
22998
22999 <file-name>
23000 \begin_inset Quotes qld
23001 \end_inset
23002
23003  
23004 \begin_inset Quotes qld
23005 \end_inset
23006
23007 <new-file-name>
23008 \begin_inset Quotes qld
23009 \end_inset
23010
23011
23012 \end_layout
23013
23014 \end_inset
23015
23016
23017 \begin_inset Newline newline
23018 \end_inset
23019
23020
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 svn commit
23026 \end_layout
23027
23028 \end_inset
23029
23030
23031 \end_layout
23032
23033 \begin_layout Subsubsection
23034 \begin_inset CommandInset label
23035 LatexCommand label
23036 name "subsec:SVN-Repo-Update"
23037
23038 \end_inset
23039
23040 Update of the local directory checkout from repository
23041 \begin_inset Foot
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 Note that this command will work only with subversion 
23046 \begin_inset Formula $\geqq1.5$
23047 \end_inset
23048
23049
23050 \end_layout
23051
23052 \end_inset
23053
23054
23055 \end_layout
23056
23057 \begin_layout Standard
23058 All the commands above have one shortcoming – they deal with the current
23059  document only.
23060  Once your document contains pictures, includes external 
23061 \begin_inset Flex Code
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065 .tex
23066 \end_layout
23067
23068 \end_inset
23069
23070  files and so on administration becomes more complicated.
23071  \SpecialChar LyX
23072  now supports updating the whole tree in which resides the document
23073 \begin_inset Foot
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077 One need to organize the files structure so that all external files are
23078  in the same directory or subdirectories of the document.
23079  
23080 \end_layout
23081
23082 \end_inset
23083
23084 .
23085  This become especially useful once you cooperate with people which neither
23086  know about subversion management nor they have ambition to commit additional
23087  material to the repository.
23088  
23089 \end_layout
23090
23091 \begin_layout Standard
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096 Update local directory from repository
23097 \end_layout
23098
23099 \end_inset
23100
23101  command updates the whole directory and in case of merge conflicts local
23102  version of the files are left, so no unintended data loss occurs.
23103  If local changes are detected user is warned before update starts.
23104 \end_layout
23105
23106 \begin_layout Labeling
23107 \labelwidthstring 00.00.0000
23108 SVN
23109 \begin_inset space ~
23110 \end_inset
23111
23112 commands: 
23113 \begin_inset space ~
23114 \end_inset
23115
23116
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 diff $path
23126 \end_layout
23127
23128 \end_inset
23129
23130  (Ask if changes are detected.)
23131 \begin_inset Newline newline
23132 \end_inset
23133
23134
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 svn update --accept mine-full $path
23140 \end_layout
23141
23142 \end_inset
23143
23144
23145 \end_layout
23146
23147 \begin_layout Standard
23148 where 
23149 \begin_inset Flex Code
23150 status collapsed
23151
23152 \begin_layout Plain Layout
23153 $path
23154 \end_layout
23155
23156 \end_inset
23157
23158  stands for the path to the document.
23159 \end_layout
23160
23161 \begin_layout Subsubsection
23162
23163 \family sans
23164 Show History
23165 \end_layout
23166
23167 \begin_layout Standard
23168 This shows the complete history of the SVN document.
23169  The output of 
23170 \family typewriter
23171 svn log 
23172 \begin_inset Quotes qld
23173 \end_inset
23174
23175 <file-name>
23176 \begin_inset Quotes qld
23177 \end_inset
23178
23179
23180 \family default
23181  is shown in a browser.
23182 \end_layout
23183
23184 \begin_layout Subsubsection
23185 File Locking
23186 \begin_inset CommandInset label
23187 LatexCommand label
23188 name "subsec:SVN-File-Locking"
23189
23190 \end_inset
23191
23192
23193 \end_layout
23194
23195 \begin_layout Standard
23196 The file exchange through various revision control systems brings the problem
23197  of merge conflicts in case two different users try to edit the same (parts
23198  of) document.
23199  When such a conflict happens it needs manual resolving and one reasonable
23200  alternative is to provide some kind of locking mechanism, which guarantees
23201  that only one user is allowed to edit file at the given time.
23202 \end_layout
23203
23204 \begin_layout Standard
23205 SVN has two such mechanisms to provide mutual exclusivity for file access
23206  – locks and automatic setting of write permissions (see sec.
23207  
23208 \begin_inset CommandInset ref
23209 LatexCommand ref
23210 reference "subsec:Automatical-Locking-Property"
23211
23212 \end_inset
23213
23214 ) based on 
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219 svn:needs-lock
23220 \end_layout
23221
23222 \end_inset
23223
23224  file svn property
23225 \begin_inset Foot
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 \begin_inset Flex URL
23230 status open
23231
23232 \begin_layout Plain Layout
23233
23234 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23235 \end_layout
23236
23237 \end_inset
23238
23239
23240 \end_layout
23241
23242 \end_inset
23243
23244 .
23245  If this property is detected for a given document \SpecialChar LyX
23246  starts to use SVN locks
23247  for document editing automatically and the whole check-in/out mechanism
23248  switches to the same regimen as for RCS.
23249  This in particular means there are two different modes of file use in \SpecialChar LyX
23250 :
23251 \end_layout
23252
23253 \begin_layout Itemize
23254 Unlocked state.
23255  The loaded file is in the read-only mode.
23256  For editing on needs to check-out.
23257  
23258 \emph on
23259 Check-out
23260 \emph default
23261  consists of updating from the repository and gaining write lock.
23262  If the lock is not possible to obtain, we remain in unlocked state.
23263 \end_layout
23264
23265 \begin_layout Itemize
23266 Locked state.
23267  The loaded file is in the 
23268 \begin_inset Quotes els
23269 \end_inset
23270
23271 normal
23272 \begin_inset Quotes ers
23273 \end_inset
23274
23275  edit mode.
23276  No other user is allowed to edit the file.
23277  
23278 \emph on
23279 Check-in
23280 \emph default
23281  consists of commiting changes and releasing write-lock.
23282  If no changes have been made to the document, no commit will be produced
23283 \begin_inset Foot
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287 Don't be puzzled by the fact that you will be asked for commit message anyway.
23288 \end_layout
23289
23290 \end_inset
23291
23292  and only the write-lock will be released.
23293 \end_layout
23294
23295 \begin_layout Standard
23296 SVN commands:
23297 \end_layout
23298
23299 \begin_layout Labeling
23300 \labelwidthstring 00.00.0000
23301 Check-in:
23302 \family typewriter
23303  svn commit -q -m"<description>" "<file-name>"
23304 \begin_inset Newline newline
23305 \end_inset
23306
23307 svn unlock "<file-name>"
23308 \end_layout
23309
23310 \begin_layout Labeling
23311 \labelwidthstring 00.00.0000
23312 Check-out: 
23313 \family typewriter
23314 svn update "<file-name>"
23315 \begin_inset Newline newline
23316 \end_inset
23317
23318 svn lock "<file-name>"
23319 \end_layout
23320
23321 \begin_layout Subsubsection
23322
23323 \family typewriter
23324 \begin_inset CommandInset label
23325 LatexCommand label
23326 name "subsec:Automatical-Locking-Property"
23327
23328 \end_inset
23329
23330
23331 \family default
23332 Automatic Locking Property
23333 \end_layout
23334
23335 \begin_layout Standard
23336 The above mentioned automatic setting of write permissions of the .lyx file
23337  can be set through
23338 \family sans
23339  File\SpecialChar menuseparator
23340 Version
23341 \begin_inset space ~
23342 \end_inset
23343
23344 Control\SpecialChar menuseparator
23345 Use Locking Property
23346 \family default
23347 .
23348  This command is active only when the file is not locked on the svn server
23349  (i.e.
23350  you need to check-out before proceeding).
23351 \end_layout
23352
23353 \begin_layout Labeling
23354 \labelwidthstring 00.00.0000
23355 SVN
23356 \begin_inset space ~
23357 \end_inset
23358
23359 commands:
23360 \end_layout
23361
23362 \begin_layout Labeling
23363 \labelwidthstring 00.00.0000
23364 Set:
23365 \family typewriter
23366  svn propset svn:needs-lock ON "<file-name>"
23367 \end_layout
23368
23369 \begin_layout Labeling
23370 \labelwidthstring 00.00.0000
23371 Unset: 
23372 \family typewriter
23373 svn propdel svn:needs-lock "<file-name>"
23374 \end_layout
23375
23376 \begin_layout Subsubsection
23377 \begin_inset CommandInset label
23378 LatexCommand label
23379 name "subsec:VCS-Revision-Information"
23380
23381 \end_inset
23382
23383 Revision Information in Documents
23384 \end_layout
23385
23386 \begin_layout Standard
23387 There are more possibilities how to activate revision information in our
23388  document.
23389 \end_layout
23390
23391 \begin_layout Itemize
23392 \SpecialChar LyX
23393  supports directly:
23394 \end_layout
23395
23396 \begin_deeper
23397 \begin_layout Itemize
23398 tree revision information (
23399 \begin_inset Flex Code
23400 status collapsed
23401
23402 \begin_layout Plain Layout
23403 vcs-tree-revision
23404 \end_layout
23405
23406 \end_inset
23407
23408 ).
23409  The result is the output of the 
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414 svnversion
23415 \end_layout
23416
23417 \end_inset
23418
23419  command, the following table gives you an idea, how to read the results.
23420 \end_layout
23421
23422 \begin_layout Standard
23423 \align center
23424 \begin_inset Tabular
23425 <lyxtabular version="3" rows="6" columns="2">
23426 <features tabularvalignment="middle">
23427 <column alignment="left" valignment="top">
23428 <column alignment="left" valignment="top">
23429 <row>
23430 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23431 \begin_inset Text
23432
23433 \begin_layout Plain Layout
23434
23435 \series bold
23436 Output
23437 \end_layout
23438
23439 \end_inset
23440 </cell>
23441 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23442 \begin_inset Text
23443
23444 \begin_layout Plain Layout
23445
23446 \series bold
23447 Meaning
23448 \end_layout
23449
23450 \end_inset
23451 </cell>
23452 </row>
23453 <row>
23454 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23455 \begin_inset Text
23456
23457 \begin_layout Plain Layout
23458 4123:4168
23459 \end_layout
23460
23461 \end_inset
23462 </cell>
23463 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23464 \begin_inset Text
23465
23466 \begin_layout Plain Layout
23467 mixed revision working copy
23468 \end_layout
23469
23470 \end_inset
23471 </cell>
23472 </row>
23473 <row>
23474 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23475 \begin_inset Text
23476
23477 \begin_layout Plain Layout
23478 4168M
23479 \end_layout
23480
23481 \end_inset
23482 </cell>
23483 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23484 \begin_inset Text
23485
23486 \begin_layout Plain Layout
23487 modified working copy
23488 \end_layout
23489
23490 \end_inset
23491 </cell>
23492 </row>
23493 <row>
23494 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23495 \begin_inset Text
23496
23497 \begin_layout Plain Layout
23498 4123S
23499 \end_layout
23500
23501 \end_inset
23502 </cell>
23503 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23504 \begin_inset Text
23505
23506 \begin_layout Plain Layout
23507 switched working copy
23508 \end_layout
23509
23510 \end_inset
23511 </cell>
23512 </row>
23513 <row>
23514 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23515 \begin_inset Text
23516
23517 \begin_layout Plain Layout
23518 4123P
23519 \end_layout
23520
23521 \end_inset
23522 </cell>
23523 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23524 \begin_inset Text
23525
23526 \begin_layout Plain Layout
23527 partial working copy, from a sparse checkout
23528 \end_layout
23529
23530 \end_inset
23531 </cell>
23532 </row>
23533 <row>
23534 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23535 \begin_inset Text
23536
23537 \begin_layout Plain Layout
23538 4123:4168MS
23539 \end_layout
23540
23541 \end_inset
23542 </cell>
23543 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23544 \begin_inset Text
23545
23546 \begin_layout Plain Layout
23547 mixed revision, modified, switched working copy
23548 \end_layout
23549
23550 \end_inset
23551 </cell>
23552 </row>
23553 </lyxtabular>
23554
23555 \end_inset
23556
23557
23558 \end_layout
23559
23560 \begin_layout Itemize
23561 file revision information.
23562  The result comes from parsing the output of 
23563 \begin_inset Flex Code
23564 status collapsed
23565
23566 \begin_layout Plain Layout
23567 svn
23568 \begin_inset space ~
23569 \end_inset
23570
23571 info
23572 \begin_inset space ~
23573 \end_inset
23574
23575 --xml
23576 \begin_inset space ~
23577 \end_inset
23578
23579 file.lyx
23580 \end_layout
23581
23582 \end_inset
23583
23584 .
23585  Supported flags are:
23586 \end_layout
23587
23588 \begin_deeper
23589 \begin_layout Itemize
23590 version number of the last commit (
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 vcs-revision
23596 \end_layout
23597
23598 \end_inset
23599
23600 )
23601 \end_layout
23602
23603 \begin_layout Itemize
23604 author of the last commit (
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 vcs-author
23610 \end_layout
23611
23612 \end_inset
23613
23614 )
23615 \end_layout
23616
23617 \begin_layout Itemize
23618 date of the last commit (
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 vcs-date
23624 \end_layout
23625
23626 \end_inset
23627
23628 )
23629 \end_layout
23630
23631 \begin_layout Itemize
23632 time of the last commit (
23633 \begin_inset Flex Code
23634 status collapsed
23635
23636 \begin_layout Plain Layout
23637 vcs-time
23638 \end_layout
23639
23640 \end_inset
23641
23642 )
23643 \end_layout
23644
23645 \end_deeper
23646 \begin_layout Standard
23647 You can obtain this info via InsetInfo (
23648 \change_inserted 5863208 1564400022
23649
23650 \lang american
23651 Insert\SpecialChar menuseparator
23652 Field\SpecialChar menuseparator
23653 Version Control Revision
23654 \change_deleted 5863208 1564399852
23655
23656 \lang english
23657 e.g.
23658  
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 info-insert buffer vcs-date
23664 \end_layout
23665
23666 \end_inset
23667
23668
23669 \change_unchanged
23670 ).
23671  The information will be available only when you have the file stored under
23672  svn managment (i.e.
23673  the 
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 .svn
23679 \end_layout
23680
23681 \end_inset
23682
23683  directory is available with your document).
23684 \end_layout
23685
23686 \end_deeper
23687 \begin_layout Itemize
23688 Another—a hacking one—possibility is to use svn keywords
23689 \begin_inset Foot
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23694 \end_layout
23695
23696 \end_inset
23697
23698 .
23699  In short – you set file keywords property (e.g.
23700  
23701 \family sans
23702 svn propset svn:keywords 'Rev' file.lyx
23703 \family default
23704 ) and then paste keyword \SpecialChar TeX
23705  code
23706 \begin_inset Foot
23707 status collapsed
23708
23709 \begin_layout Plain Layout
23710 This is an easy way how to ensure that \SpecialChar LyX
23711  won't break the line in the middle
23712  of keyword tag.
23713 \end_layout
23714
23715 \end_inset
23716
23717  tag in your document (e.g.
23718  
23719 \begin_inset Flex Code
23720 status collapsed
23721
23722 \begin_layout Plain Layout
23723 $Rev$
23724 \end_layout
23725
23726 \end_inset
23727
23728 ).
23729  This way svn client will automatically substitute revision number (e.g.
23730  
23731 \begin_inset Flex Code
23732 status collapsed
23733
23734 \begin_layout Plain Layout
23735 $Rev: 59 $
23736 \end_layout
23737
23738 \end_inset
23739
23740 ) after each update and commit.
23741  There are more problems with this approach.
23742  Firstly, the '$' character is used in \SpecialChar TeX
23743  world for math equations, so any
23744  occurence of math formula 
23745 \begin_inset Formula $Rev$
23746 \end_inset
23747
23748  become 
23749 \begin_inset Formula $Rev:59$
23750 \end_inset
23751
23752  in your \SpecialChar LyX
23753  document.
23754  Similarly for other keywords like Id, Date, Author, etc.
23755  Secondly svn output is dependent on your locales, so its very easy that
23756  svn would produce some problematic strings once Date is used.
23757  Thirdly you get the whole 'Rev: 59' string in your document instead of
23758  the plain number.
23759  Until subversion implements user's custom keywords it will be hard to use
23760  this approach reliably or let \SpecialChar LyX
23761  to support it directly.
23762 \end_layout
23763
23764 \begin_layout Subsection
23765 SVN and Windows Environment
23766 \end_layout
23767
23768 \begin_layout Quote
23769 My inclination is to say that if the user cannot figure out the command
23770  line operations on their own fairly quickly, they would be well advised
23771  to use TortoiseSVN.
23772  —P.
23773  A.
23774  Rubin
23775 \end_layout
23776
23777 \begin_layout Subsubsection
23778 Preparation
23779 \end_layout
23780
23781 \begin_layout Standard
23782 In addition to installing \SpecialChar LyX
23783 , and having access to a Subversion repository,
23784  the user will need to install the Subversion client program.
23785  A Windows installer for the client program is available from 
23786 \begin_inset CommandInset href
23787 LatexCommand href
23788 name "CollabNet"
23789 target "http://www.collab.net/nonav/downloads/subversion/"
23790 literal "false"
23791
23792 \end_inset
23793
23794 .
23795  The user may also want to install 
23796 \begin_inset CommandInset href
23797 LatexCommand href
23798 name "TortoiseSVN"
23799 target "http://tortoisesvn.tigris.org/"
23800 literal "false"
23801
23802 \end_inset
23803
23804 , which integrates Subversion operations into the context (rightclick) menu
23805  of Windows Explorer.
23806  Operations done outside \SpecialChar LyX
23807  will typically be more convenient using the Explorer
23808  context menu.
23809  Note that TortoiseSVN is not a replacement for the client program, which
23810  is what \SpecialChar LyX
23811  itself will use.
23812 \end_layout
23813
23814 \begin_layout Subsubsection
23815 Bringing a document under Subversion control
23816 \end_layout
23817
23818 \begin_layout Standard
23819 Before a \SpecialChar LyX
23820  document can be brought under version control in Subversion, its
23821  parent directory needs to be under version control.
23822  If the document is being added to a project already in the repository,
23823  this is accomplished by checking the project out to the directory where
23824  the new document will be placed.
23825  If the project itself is not yet under version control (for instance, if
23826  this document starts a new project), the directory must be imported into
23827  the repository.
23828  This is done outside \SpecialChar LyX
23829 .
23830  Both import and checkout are easily accomplished from the Explorer context
23831  menu using TortoiseSVN, or alternatively can be done using the command
23832  line client at a DOS prompt.
23833  The procedure for importing the project using TortoiseSVN is described
23834  below, assuming an existing repository and a new project being started
23835  in 
23836 \family typewriter
23837 C:
23838 \backslash
23839 new project
23840 \family default
23841 .
23842  For information on using the Subversion client program, run 
23843 \family typewriter
23844 svn --help 
23845 \family default
23846 in a DOS shell.
23847 \end_layout
23848
23849 \begin_layout Enumerate
23850 Locate 
23851 \family typewriter
23852 C:
23853 \backslash
23854 new project 
23855 \family default
23856 in Windows Explorer, right click it, and select 
23857 \family sans
23858 TortoiseSVN\SpecialChar menuseparator
23859 Repo-browser
23860 \family default
23861 .
23862  If necessary, adjust the URL for the repository, then click OK.
23863 \end_layout
23864
23865 \begin_layout Enumerate
23866 Right click the level of the repository under which you want to place the
23867  new project folder (typically the top level) and click 
23868 \family sans
23869 Create folder
23870 \family default
23871  Supply a name for the project folder and click OK.
23872  Add a message for the log file if desired, then click OK again.
23873  The new project folder should appear in the repository.
23874  Finally, click OK again to exit the repository browser.
23875 \end_layout
23876
23877 \begin_layout Enumerate
23878 Once again right click 
23879 \family typewriter
23880 C:
23881 \backslash
23882 new project
23883 \family default
23884 , this time selecting SVN Checkout\SpecialChar ldots
23885  Select the URL of the project folder
23886  you just created in the repository, and set the checkout directory to 
23887 \family typewriter
23888 C:
23889 \backslash
23890 new project.
23891
23892 \family default
23893  Click OK.
23894  You will be warned about a non-empty folder; click OK to proceed.
23895  You should now have a 
23896 \family typewriter
23897 .svn
23898 \family default
23899  directory under 
23900 \family typewriter
23901 C:
23902 \backslash
23903 new project.
23904 \end_layout
23905
23906 \begin_layout Enumerate
23907 Create or open your document in \SpecialChar LyX
23908  and click 
23909 \family sans
23910 File\SpecialChar menuseparator
23911 Version
23912 \begin_inset space ~
23913 \end_inset
23914
23915 Control\SpecialChar menuseparator
23916 Register.
23917  
23918 \family default
23919 Add a log message and click OK to commit the document to version control.
23920 \end_layout
23921
23922 \begin_layout Standard
23923 From this point onward, you should have full functionality in the 
23924 \family sans
23925 File\SpecialChar menuseparator
23926 Version
23927 \begin_inset space ~
23928 \end_inset
23929
23930 Control
23931 \family default
23932  menu.
23933  You also have the option of checking the document in and out, viewing its
23934  history, etc.
23935  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23936  client program from a command prompt.
23937 \end_layout
23938
23939 \begin_layout Subsubsection
23940 SSH tunnel used with SVN under Windows
23941 \end_layout
23942
23943 \begin_layout Standard
23944 Compared with Linux setting up an svn client to communicate over ssh under
23945  Windows is a rather troublesome task.
23946  We will at least offer some hints how to setup the client side but prior
23947  knowledge about ssh and the Windows command line is needed, also be prepared
23948  for a great deal of frustration\SpecialChar ldots
23949
23950 \end_layout
23951
23952 \begin_layout Enumerate
23953 Get an svn client for windows, as described in the previous sections.
23954  When it is a fresh install run some svn command (e.g.
23955  
23956 \begin_inset Flex Code
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 svn --version
23961 \end_layout
23962
23963 \end_inset
23964
23965 ) to create config files, which you will need to change later on.
23966 \end_layout
23967
23968 \begin_layout Enumerate
23969 Choose an ssh client for Windows.
23970  There are several possibilities, we will use the one from Putty tools
23971 \begin_inset Foot
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975 \begin_inset Flex URL
23976 status collapsed
23977
23978 \begin_layout Plain Layout
23979
23980 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23981 \end_layout
23982
23983 \end_inset
23984
23985
23986 \end_layout
23987
23988 \end_inset
23989
23990 .
23991  You will need to set the connection up so that the client doesn't ask for
23992  any password from you.
23993  To keep things easy we will use only keys without any additional password
23994  protection etc.
23995 \end_layout
23996
23997 \begin_deeper
23998 \begin_layout Enumerate
23999 Generate keys by 
24000 \begin_inset Flex Code
24001 status collapsed
24002
24003 \begin_layout Plain Layout
24004 puttygen
24005 \end_layout
24006
24007 \end_inset
24008
24009 .
24010  Save your private .ppk key file and put the public one on the server side.
24011  If the SVN server runs on Linux, note that the format of the public key
24012  is not compatible with Linux openssh and you will need to direcly copy-paste
24013  the key from the 
24014 \begin_inset Quotes eld
24015 \end_inset
24016
24017
24018 \emph on
24019 Public key for pasting into OpenSSH authorized_keys file
24020 \emph default
24021 :
24022 \begin_inset Quotes erd
24023 \end_inset
24024
24025  edit field into the server's 
24026 \begin_inset Flex Code
24027 status collapsed
24028
24029 \begin_layout Plain Layout
24030 ~/.ssh/authorized_keys
24031 \end_layout
24032
24033 \end_inset
24034
24035  / 
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 authorized_keys2
24041 \end_layout
24042
24043 \end_inset
24044
24045  file.
24046 \end_layout
24047
24048 \begin_layout Enumerate
24049 Get the Putty's 
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 plink
24055 \end_layout
24056
24057 \end_inset
24058
24059 .
24060  In the SVN config file
24061 \begin_inset Foot
24062 status collapsed
24063
24064 \begin_layout Plain Layout
24065 Exact path depends on Windows version, usually somewhere around 
24066 \begin_inset Flex Code
24067 status collapsed
24068
24069 \begin_layout Plain Layout
24070 c:
24071 \backslash
24072 Documents and Settings
24073 \backslash
24074 user
24075 \backslash
24076 Application Data
24077 \backslash
24078 Subversion
24079 \backslash
24080 config
24081 \end_layout
24082
24083 \end_inset
24084
24085  / 
24086 \begin_inset Flex Code
24087 status collapsed
24088
24089 \begin_layout Plain Layout
24090 AppData
24091 \backslash
24092 Roaming
24093 \backslash
24094 Subversion
24095 \end_layout
24096
24097 \end_inset
24098
24099 .
24100 \end_layout
24101
24102 \end_inset
24103
24104 , section [tunnels], setup ssh command, e.g.
24105  
24106 \begin_inset Flex Code
24107 status collapsed
24108
24109 \begin_layout Plain Layout
24110 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24111 \end_layout
24112
24113 \end_inset
24114
24115 .
24116 \begin_inset Foot
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120 It will usually take a lot of time to get exact command right and it depends
24121  on many things.
24122  For example do not have some remote server saved as a default session in
24123  Putty etc.
24124  If things fail, try to connect via plink without SVN first.
24125 \end_layout
24126
24127 \end_inset
24128
24129
24130 \end_layout
24131
24132 \end_deeper
24133 \begin_layout Enumerate
24134 Checkout the SVN archive, e.
24135 \begin_inset space \thinspace{}
24136 \end_inset
24137
24138 g.
24139 \begin_inset Newline newline
24140 \end_inset
24141
24142
24143 \begin_inset Flex Code
24144 status collapsed
24145
24146 \begin_layout Plain Layout
24147 svn co svn+ssh://user@server/repository_path
24148 \end_layout
24149
24150 \end_inset
24151
24152 .
24153 \end_layout
24154
24155 \begin_layout Subsubsection
24156 End-of-Line Conversions
24157 \end_layout
24158
24159 \begin_layout Standard
24160 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24161  will
24162  use different line endings inside the .lyx files.
24163  This is not a problem as far as \SpecialChar LyX
24164  functionality is concerned, but the commit
24165  diffs will be huge and merge-conflicts prone.
24166  Fortunately SVN itself knows
24167 \begin_inset Foot
24168 status collapsed
24169
24170 \begin_layout Plain Layout
24171 \begin_inset Flex URL
24172 status collapsed
24173
24174 \begin_layout Plain Layout
24175
24176 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24177 \end_layout
24178
24179 \end_inset
24180
24181
24182 \end_layout
24183
24184 \end_inset
24185
24186  how to deal with CR/LF problems when switching .lyx files to the 
24187 \begin_inset Flex Code
24188 status collapsed
24189
24190 \begin_layout Plain Layout
24191 native
24192 \end_layout
24193
24194 \end_inset
24195
24196  mode.
24197 \begin_inset Foot
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201 For the lazy guys: 
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 svn propset svn:eol-style native FILE_NAME
24207 \end_layout
24208
24209 \end_inset
24210
24211
24212 \end_layout
24213
24214 \end_inset
24215
24216
24217 \end_layout
24218
24219 \begin_layout Subsection
24220 GIT commands in \SpecialChar LyX
24221
24222 \end_layout
24223
24224 \begin_layout Standard
24225 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24226 .
24227  You can find the commands in the 
24228 \family sans
24229 File\SpecialChar menuseparator
24230 Version
24231 \begin_inset space ~
24232 \end_inset
24233
24234 Control
24235 \family default
24236  submenu.
24237  Please note that if you use password protected access to repository via
24238  ssh, you will be asked in terminal window.
24239  \SpecialChar LyX
24240  was tested against GIT 1.7.
24241 \begin_inset Foot
24242 status collapsed
24243
24244 \begin_layout Plain Layout
24245 Windows users please note that you need to ensure that git is on the path.
24246  This can be set from within \SpecialChar LyX
24247  at 
24248 \family sans
24249 Tools\SpecialChar menuseparator
24250 Preferences\SpecialChar menuseparator
24251 Paths\SpecialChar menuseparator
24252 PATH prefix
24253 \family default
24254 .
24255 \end_layout
24256
24257 \end_inset
24258
24259
24260 \end_layout
24261
24262 \begin_layout Standard
24263 One big difference of GIT and the other supported version control systems
24264  is the distributed nature of GIT: With traditional version control systems
24265  there is one central server which hosts the repository.
24266  Users commit their changes to the server, and get updates made by other
24267  users from it.
24268  With GIT, users commit to a local repository.
24269  The local repository can be synchronized with one or more remote repositories
24270  using the 
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 pull
24276 \end_layout
24277
24278 \end_inset
24279
24280  and 
24281 \begin_inset Flex Code
24282 status collapsed
24283
24284 \begin_layout Plain Layout
24285 push
24286 \end_layout
24287
24288 \end_inset
24289
24290  GIT commands.
24291  \SpecialChar LyX
24292  does not interact in any way with remote GIT repositories.
24293  It works exclusively with the local repository in a very similar way as
24294  with a central CVS or SVN repository.
24295  If you use remote GIT repositories you need to do the 
24296 \begin_inset Flex Code
24297 status collapsed
24298
24299 \begin_layout Plain Layout
24300 pull
24301 \end_layout
24302
24303 \end_inset
24304
24305  and 
24306 \begin_inset Flex Code
24307 status collapsed
24308
24309 \begin_layout Plain Layout
24310 push
24311 \end_layout
24312
24313 \end_inset
24314
24315  operations with your favourite GIT client.
24316 \end_layout
24317
24318 \begin_layout Subsubsection
24319
24320 \family sans
24321 Register
24322 \end_layout
24323
24324 \begin_layout Standard
24325 If your document is not under revision control, this is the only item shown
24326  in the menu.
24327  And if it is under revision control, the 
24328 \family sans
24329 Register
24330 \family default
24331  item is not visible.
24332 \end_layout
24333
24334 \begin_layout Standard
24335 This command registers in GIT your document ONLY in case you have already
24336  the documents directory under GIT control (in particular 
24337 \family typewriter
24338 .git/index
24339 \family default
24340  file exists).
24341  This means you have to checkout the archive by yourself.
24342 \end_layout
24343
24344 \begin_layout Standard
24345 Then you are asked interactively to supply an initial description of the
24346  document.
24347  Don't forget that registered file is not yet committed.
24348 \end_layout
24349
24350 \begin_layout Standard
24351 GIT command that is run: 
24352 \family typewriter
24353 git add 
24354 \begin_inset Quotes qld
24355 \end_inset
24356
24357 <file-name>
24358 \begin_inset Quotes qld
24359 \end_inset
24360
24361
24362 \end_layout
24363
24364 \begin_layout Standard
24365 Read 
24366 \family typewriter
24367 man git
24368 \family default
24369  to understand the switches.
24370 \end_layout
24371
24372 \begin_layout Subsubsection
24373
24374 \family sans
24375 Check In Changes
24376 \end_layout
24377
24378 \begin_layout Standard
24379 When you are finished editing a file, you commit your changes.
24380  When you do this, you are asked for a description of the changes.
24381  After that changes are committed.
24382 \end_layout
24383
24384 \begin_layout Standard
24385 GIT command: 
24386 \family typewriter
24387 git commit -q -m"<description>" <file-name>
24388 \end_layout
24389
24390 \begin_layout Subsubsection
24391
24392 \family sans
24393 Revert To Repository Version
24394 \end_layout
24395
24396 \begin_layout Standard
24397 This will discard all changes made to the document since the last check
24398  in.
24399  You get a warning before changes are discarded.
24400 \end_layout
24401
24402 \begin_layout Standard
24403 GIT command: 
24404 \family typewriter
24405 git checkout -q 
24406 \begin_inset Quotes qld
24407 \end_inset
24408
24409 <file-name>
24410 \begin_inset Quotes qld
24411 \end_inset
24412
24413
24414 \end_layout
24415
24416 \begin_layout Subsubsection
24417
24418 \family sans
24419 Rename
24420 \end_layout
24421
24422 \begin_layout Standard
24423 This will rename the current document including the version history.
24424  It requires a clean document without any changes since the last checkin.
24425  You are asked for a file name and a description of the rename operation.
24426  After that the document is renamed, both locally and in the repository.
24427  If the parent directories of the new and old file names differ, all relative
24428  paths of included files are adjusted (like in 
24429 \family sans
24430 File\SpecialChar menuseparator
24431 Save As
24432 \family default
24433 \SpecialChar ldots
24434 ).
24435  Finally, the document is reloaded using the new name.
24436 \end_layout
24437
24438 \begin_layout Labeling
24439 \labelwidthstring 00.00.0000
24440 GIT
24441 \begin_inset space ~
24442 \end_inset
24443
24444 commands: 
24445 \begin_inset space ~
24446 \end_inset
24447
24448
24449 \begin_inset Newline newline
24450 \end_inset
24451
24452
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 git mv 
24458 \family typewriter
24459
24460 \begin_inset Quotes qld
24461 \end_inset
24462
24463 <file-name>
24464 \begin_inset Quotes qld
24465 \end_inset
24466
24467  
24468 \begin_inset Quotes qld
24469 \end_inset
24470
24471 <new-file-name>
24472 \begin_inset Quotes qld
24473 \end_inset
24474
24475
24476 \end_layout
24477
24478 \end_inset
24479
24480
24481 \begin_inset Newline newline
24482 \end_inset
24483
24484
24485 \begin_inset Flex Code
24486 status collapsed
24487
24488 \begin_layout Plain Layout
24489 git commit
24490 \end_layout
24491
24492 \end_inset
24493
24494
24495 \end_layout
24496
24497 \begin_layout Subsubsection
24498
24499 \family sans
24500 Show History
24501 \end_layout
24502
24503 \begin_layout Standard
24504 This shows the complete history of the GIT document.
24505  The output of 
24506 \family typewriter
24507 git log 
24508 \begin_inset Quotes qld
24509 \end_inset
24510
24511 <file-name>
24512 \begin_inset Quotes qld
24513 \end_inset
24514
24515
24516 \family default
24517  is shown in a browser.
24518 \end_layout
24519
24520 \begin_layout Subsubsection
24521 Version Info
24522 \end_layout
24523
24524 \begin_layout Standard
24525 \SpecialChar LyX
24526  supports GIT hash number of the last commit to the file, 
24527 \change_inserted 1119979965 1564297456
24528 its abbreviated form, 
24529 \change_unchanged
24530 author name, date and time of last commit.
24531  All those are extracted from 
24532 \family typewriter
24533 git log -n 1 --pretty=format:%H%n
24534 \change_inserted 1119979965 1564297427
24535 %h%n
24536 \change_unchanged
24537 %an%n%ai
24538 \family default
24539 .
24540  Tree version information is obtained via 
24541 \family typewriter
24542 git describe --abbrev --dirty --long
24543 \family default
24544 .
24545  See 
24546 \begin_inset CommandInset ref
24547 LatexCommand ref
24548 reference "subsec:VCS-Revision-Information"
24549
24550 \end_inset
24551
24552  for other details.
24553 \end_layout
24554
24555 \begin_layout Subsection
24556 Further tuning
24557 \end_layout
24558
24559 \begin_layout Standard
24560 With the recent addition of the 
24561 \begin_inset Flex Code
24562 status collapsed
24563
24564 \begin_layout Plain Layout
24565 vc-command
24566 \end_layout
24567
24568 \end_inset
24569
24570  function \SpecialChar LyX
24571  power users are allowed to create their own commands for revision
24572  control.
24573 \end_layout
24574
24575 \begin_layout Standard
24576 As an example you can see how two TortoiseSVN commands could be integrated
24577  directly:
24578 \end_layout
24579
24580 \begin_layout Description
24581 Commit: 
24582 \begin_inset Flex Code
24583 status collapsed
24584
24585 \begin_layout Plain Layout
24586 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24587 \end_layout
24588
24589 \end_inset
24590
24591
24592 \end_layout
24593
24594 \begin_layout Description
24595 Revert: 
24596 \begin_inset Flex Code
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24601 \end_layout
24602
24603 \end_inset
24604
24605
24606 \end_layout
24607
24608 \begin_layout Subsection
24609 Version control and Document comparison
24610 \end_layout
24611
24612 \begin_layout Standard
24613 One of the typical uses of version control is to inspect the changes between
24614  revisions, usually by creating 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 diff
24620 \end_layout
24621
24622 \end_inset
24623
24624  dumps.
24625  While this is useful for plain text files, it is much less useful in the
24626  case of \SpecialChar LyX
24627  files, which have more a complicated structure.
24628  Hence we provide binding to the Document comparison feature.
24629  There are two ways of calling this feature – either by direct call of 
24630 \begin_inset Flex Code
24631 status collapsed
24632
24633 \begin_layout Plain Layout
24634 vc-compare
24635 \end_layout
24636
24637 \end_inset
24638
24639  \SpecialChar LyX
24640  function (for details see \SpecialChar LyX
24641  functions manual) or by the toolbar icon 
24642 \begin_inset Info
24643 type  "icon"
24644 arg   "vc-compare"
24645 \end_inset
24646
24647  or the menu item 
24648 \begin_inset Info
24649 type  "menu"
24650 arg   "vc-compare"
24651 \end_inset
24652
24653 , respectively.
24654  One can either compare two chosen revisions of the document or he can simply
24655  compare the current version of edited text with older revisions (where
24656  '
24657 \begin_inset Flex Noun
24658 status collapsed
24659
24660 \begin_layout Plain Layout
24661 0
24662 \end_layout
24663
24664 \end_inset
24665
24666 ' revisions back means comparison of the edited file with last commited
24667  revision).
24668  
24669 \end_layout
24670
24671 \begin_layout Standard
24672 This feature is supported for SVN and RCS though due to the more complicated
24673  versioning scheme of RCS there is a constraint – when addressing the revisions
24674  in dialog, numbers always point to the last number in RCS revision number,
24675  i.e.
24676  '35' in '1.2.35'.
24677  We don't currently support GIT addressing of revisions, one can just compare
24678  edited document with its revision X steps backs, where X is addressed as
24679  
24680 \begin_inset Flex Code
24681 status collapsed
24682
24683 \begin_layout Plain Layout
24684 HEAD~X
24685 \end_layout
24686
24687 \end_inset
24688
24689 .
24690 \end_layout
24691
24692 \begin_layout Section
24693 Literate Programming
24694 \end_layout
24695
24696 \begin_layout Standard
24697 Updated by 
24698 \noun on
24699 Kayvan Sylvan 
24700 \noun default
24701 (kayvan@sylvan.com)
24702 \noun on
24703
24704 \noun default
24705 original documentation written by 
24706 \noun on
24707 Edmar Wienskoski Jr.
24708
24709 \noun default
24710  (edmar-w-jr@technologist.com)
24711 \end_layout
24712
24713 \begin_layout Subsection
24714 Introduction
24715 \end_layout
24716
24717 \begin_layout Standard
24718 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24719  for literate
24720  programming, where it is assumed that you are familiar with this programming
24721  technique, and know what 
24722 \begin_inset Quotes eld
24723 \end_inset
24724
24725 tangling
24726 \begin_inset Quotes erd
24727 \end_inset
24728
24729  and 
24730 \begin_inset Quotes eld
24731 \end_inset
24732
24733 weaving
24734 \begin_inset Quotes erd
24735 \end_inset
24736
24737  means.
24738  If that is not the case, please follow the web links provided in the following
24739  sections.
24740  There is a lot of good documentation out there covering old development
24741  history to the latest tools tips.
24742 \end_layout
24743
24744 \begin_layout Standard
24745 It is also assumed that you are familiar with \SpecialChar LyX
24746  itself to a point that you
24747  are comfortable changing your \SpecialChar LyX
24748  preferences, and X resources file.
24749  If that is not the case please refer to other \SpecialChar LyX
24750  documentation to cover your
24751  specific needs.
24752 \end_layout
24753
24754 \begin_layout Subsection
24755 Literate Programming
24756 \end_layout
24757
24758 \begin_layout Standard
24759 From the Literate Programming FAQ: 
24760 \end_layout
24761
24762 \begin_layout Quotation
24763 Literate programming is the combination of documentation and source together
24764  in a fashion suited for reading by human beings.
24765  In fact, literate programs should be enjoyable reading, even inviting!
24766  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24767  and documentation in a single file.
24768  Literate programming tools then parse the file to produce either readable
24769  documentation or compilable source.
24770  The WEB style of literate programming was created by D.
24771 \begin_inset space \thinspace{}
24772 \end_inset
24773
24774 E.
24775  Knuth during the development of his \SpecialChar TeX
24776  typesetting software.
24777  
24778 \end_layout
24779
24780 \begin_layout Standard
24781 Another excerpt says:
24782 \end_layout
24783
24784 \begin_layout Quotation
24785
24786 \emph on
24787 How is literate programming different from verbose commenting?
24788 \end_layout
24789
24790 \begin_layout Quotation
24791 There are three distinguishing characteristics.
24792  In order of importance, they are: 
24793 \end_layout
24794
24795 \begin_deeper
24796 \begin_layout Itemize
24797 flexible order of elaboration 
24798 \end_layout
24799
24800 \begin_layout Itemize
24801 automatic support for browsing 
24802 \end_layout
24803
24804 \begin_layout Itemize
24805 typeset documentation, especially diagrams and mathematics 
24806 \end_layout
24807
24808 \end_deeper
24809 \begin_layout Standard
24810 Now that I sparked your curiosity, take a look in the references.
24811 \end_layout
24812
24813 \begin_layout Subsubsection
24814 References
24815 \end_layout
24816
24817 \begin_layout Standard
24818 The complete Literate Programming FAQ can be found at:
24819 \end_layout
24820
24821 \begin_layout Quote
24822 Literate Programming FAQ 
24823 \begin_inset Flex URL
24824 status open
24825
24826 \begin_layout Plain Layout
24827
24828 http://www.literateprogramming.com/lpfaq.pdf
24829 \end_layout
24830
24831 \end_inset
24832
24833
24834 \end_layout
24835
24836 \begin_layout Standard
24837 The FAQ lists 23 (twenty three!) different literate programming tools.
24838  Where some are specialized or 
24839 \begin_inset Quotes eld
24840 \end_inset
24841
24842 tailored
24843 \begin_inset Quotes erd
24844 \end_inset
24845
24846  for particular programming languages, while other have general scope.
24847  I selected 
24848 \noun on
24849 Noweb
24850 \noun default
24851  for my own use for several reasons:
24852 \end_layout
24853
24854 \begin_layout Itemize
24855 It can generate the documentation either in \SpecialChar LaTeX
24856  or HTML.
24857 \end_layout
24858
24859 \begin_layout Itemize
24860 It has a open architecture, i.
24861 \begin_inset space \thinspace{}
24862 \end_inset
24863
24864 e.
24865 \begin_inset space \space{}
24866 \end_inset
24867
24868 it is easy to plug in new filters
24869 \begin_inset Foot
24870 status collapsed
24871
24872 \begin_layout Plain Layout
24873
24874 \emph on
24875 Filters 
24876 \emph default
24877 are programs that read a given data stream and output a manipulated data
24878  stream.
24879  That way, a WEB file (consisting of literate code) can be turned into a
24880  file consisting only of C program code or \SpecialChar LaTeX
24881  code.
24882 \end_layout
24883
24884 \end_inset
24885
24886  and to perform special processing that you may need.
24887  
24888 \end_layout
24889
24890 \begin_layout Itemize
24891 There is a good selection of filters available already (the HTML is one
24892  of them).
24893 \end_layout
24894
24895 \begin_layout Itemize
24896 It is free.
24897 \end_layout
24898
24899 \begin_layout Standard
24900 The Noweb web page can be found at: 
24901 \end_layout
24902
24903 \begin_layout Quote
24904 Noweb home page 
24905 \begin_inset Flex URL
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909
24910 https://www.cs.tufts.edu/~nr/noweb/
24911 \end_layout
24912
24913 \end_inset
24914
24915
24916 \end_layout
24917
24918 \begin_layout Standard
24919 Starting from there you can reach many other interesting links and even
24920  some literate program examples.
24921 \end_layout
24922
24923 \begin_layout Subsection
24924 \SpecialChar LyX
24925  and Literate Programming with Noweb
24926 \end_layout
24927
24928 \begin_layout Standard
24929 The \SpecialChar LyX
24930  support for Literate Programming is provided by using the generic \SpecialChar LyX
24931
24932  converters mechanism.
24933  This support is provided in a 
24934 \begin_inset Quotes eld
24935 \end_inset
24936
24937 Noweb independent
24938 \begin_inset Quotes erd
24939 \end_inset
24940
24941  way, i.
24942 \begin_inset space \thinspace{}
24943 \end_inset
24944
24945 e.
24946 \begin_inset space \space{}
24947 \end_inset
24948
24949 you will be able to use this new \SpecialChar LyX
24950  feature with some other literate programming
24951  tool of your choice by just changing your \SpecialChar LyX
24952  preferences.
24953 \end_layout
24954
24955 \begin_layout Subsubsection
24956 Generating documents and code (weaving and tangling)
24957 \end_layout
24958
24959 \begin_layout Paragraph
24960 Using the noweb module
24961 \end_layout
24962
24963 \begin_layout Standard
24964 If you have installed Noweb and \SpecialChar LyX
24965  successfully, whenever you open a new document,
24966  after you have chosen its document class, use the 
24967 \family sans
24968 Document\SpecialChar menuseparator
24969 Settings
24970 \family default
24971  menu to add the 
24972 \begin_inset Quotes eld
24973 \end_inset
24974
24975 noweb
24976 \begin_inset Quotes erd
24977 \end_inset
24978
24979  module.
24980  If Noweb is correctly installed, when you click on the 
24981 \begin_inset Quotes eld
24982 \end_inset
24983
24984 Modules
24985 \begin_inset Quotes erd
24986 \end_inset
24987
24988  link, you will see the 
24989 \begin_inset Quotes eld
24990 \end_inset
24991
24992 noweb
24993 \begin_inset Quotes erd
24994 \end_inset
24995
24996  module in the available list and you can add it to your document.
24997 \end_layout
24998
24999 \begin_layout Paragraph
25000 Typing code in
25001 \end_layout
25002
25003 \begin_layout Standard
25004 \SpecialChar LyX
25005  enables you to write code with a custom inset named 
25006 \begin_inset Flex Noun
25007 status collapsed
25008
25009 \begin_layout Plain Layout
25010 Chunk
25011 \end_layout
25012
25013 \end_inset
25014
25015 .
25016  Noweb delimits chunks like this:
25017 \end_layout
25018
25019 \begin_layout LyX-Code
25020 <<My code>>=
25021 \end_layout
25022
25023 \begin_layout LyX-Code
25024   code
25025 \end_layout
25026
25027 \begin_layout LyX-Code
25028   more code
25029 \end_layout
25030
25031 \begin_layout LyX-Code
25032   even more code
25033 \end_layout
25034
25035 \begin_layout LyX-Code
25036   @
25037 \end_layout
25038
25039 \begin_layout Standard
25040 The problem is that whatever is written in between the << and the 
25041 \family typewriter
25042 @
25043 \family default
25044  must be taken literally, i.
25045 \begin_inset space \thinspace{}
25046 \end_inset
25047
25048 e.
25049 \begin_inset space \space{}
25050 \end_inset
25051
25052 \SpecialChar LyX
25053  should be prevented from making any special interpretation of what has
25054  been written.
25055  This is also handled by 
25056 \begin_inset Flex Noun
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 Chunk
25061 \end_layout
25062
25063 \end_inset
25064
25065 , that works like a normal text inset but has a free spacing capability.
25066 \end_layout
25067
25068 \begin_layout Standard
25069 As a special note, you can also use the 
25070 \begin_inset Quotes eld
25071 \end_inset
25072
25073 %def
25074 \begin_inset Quotes erd
25075 \end_inset
25076
25077  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25078 rence:
25079 \end_layout
25080
25081 \begin_layout LyX-Code
25082 <<My chunk>>=
25083 \end_layout
25084
25085 \begin_layout LyX-Code
25086 def some_function(args):
25087 \end_layout
25088
25089 \begin_layout LyX-Code
25090    "This is the doc string for this function."
25091 \end_layout
25092
25093 \begin_layout LyX-Code
25094    print "My args: ", args
25095 \end_layout
25096
25097 \begin_layout LyX-Code
25098 @ %def some_function
25099 \end_layout
25100
25101 \begin_layout Standard
25102 For an example of this usage and the resulting cross-reference output, look
25103  at the Literate python program in 
25104 \emph on
25105 LIBDIR/examples/listerrors.lyx
25106 \emph default
25107  which should make this all clear.
25108 \end_layout
25109
25110 \begin_layout Paragraph
25111 Generating the documentation
25112 \end_layout
25113
25114 \begin_layout Standard
25115 At this point you already have a new document file with a proper document
25116  class, and with some code and text on it.
25117  How do I print it? The answer is simple, you select 
25118 \family sans
25119 View\SpecialChar menuseparator
25120 DVI,
25121 \family default
25122  etc.
25123  Just like you would do for a plain document.
25124  No special procedure is required.
25125 \end_layout
25126
25127 \begin_layout Standard
25128 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25129 :
25130 \end_layout
25131
25132 \begin_layout Enumerate
25133 When the 
25134 \family sans
25135 Update\SpecialChar menuseparator
25136 DVI
25137 \family default
25138  menu option is chosen, a \SpecialChar LaTeX
25139  file is generated.
25140  
25141 \end_layout
25142
25143 \begin_deeper
25144 \begin_layout Standard
25145 If the document is of any literate class the generated file will be named
25146  with an extension name defined by the 
25147 \begin_inset Quotes eld
25148 \end_inset
25149
25150 literate
25151 \begin_inset Quotes erd
25152 \end_inset
25153
25154  format (defined in the Preferences panel), otherwise the file will have
25155  the usual 
25156 \family typewriter
25157 .tex
25158 \family default
25159  extension.
25160 \end_layout
25161
25162 \end_deeper
25163 \begin_layout Enumerate
25164 Note that the only difference so far is in the name of the file, no special
25165  processing is required by \SpecialChar LyX
25166 .
25167  Given that you formatted the code using the 
25168 \begin_inset Flex Noun
25169 status collapsed
25170
25171 \begin_layout Plain Layout
25172 Chunk
25173 \end_layout
25174
25175 \end_inset
25176
25177  inset that, by itself, takes care of the business.
25178 \end_layout
25179
25180 \begin_layout Enumerate
25181 If the document is of any literate class \SpecialChar LyX
25182  will then use the internal \SpecialChar LyX
25183  to
25184  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25185  converter
25186 \begin_inset Foot
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190 The converters are defined in the 
25191 \family sans
25192 Tools\SpecialChar menuseparator
25193 Preferences
25194 \family default
25195  panel, under the 
25196 \begin_inset Quotes eld
25197 \end_inset
25198
25199 Conversion
25200 \begin_inset Quotes erd
25201 \end_inset
25202
25203  tab.
25204  See section 
25205 \emph on
25206 Converters
25207 \emph default
25208  of the 
25209 \emph on
25210 Customization
25211 \emph default
25212  manual for general information about converters.
25213 \end_layout
25214
25215 \end_inset
25216
25217  to generate the \SpecialChar LaTeX
25218  file.
25219 \end_layout
25220
25221 \begin_deeper
25222 \begin_layout Standard
25223 Otherwise it will just skip this step.
25224 \end_layout
25225
25226 \end_deeper
25227 \begin_layout Enumerate
25228 Finally, \SpecialChar LaTeX
25229  is invoked and the regular post processing continues as in a plain
25230  document.
25231 \end_layout
25232
25233 \begin_layout Standard
25234 Independence from a particular 
25235 \begin_inset Quotes eld
25236 \end_inset
25237
25238 literate tool
25239 \begin_inset Quotes erd
25240 \end_inset
25241
25242  is easily achieved by changing the commands that are run by the various
25243  converters.
25244 \end_layout
25245
25246 \begin_layout Paragraph
25247 Generating the code
25248 \end_layout
25249
25250 \begin_layout Standard
25251 When the build menu option is chosen or the corresponding button in the
25252  toolbar is pressed, a \SpecialChar LaTeX
25253  file is generated just like step 1 above.
25254  Next, \SpecialChar LyX
25255  invokes the 
25256 \family typewriter
25257 Noweb->Program
25258 \family default
25259  converter.
25260  This converter needs to be defined by the user and is not installed by
25261  default, though the Program format is.
25262  This converter (like any other converter) will have two parts:
25263 \end_layout
25264
25265 \begin_layout Enumerate
25266 The converter program itself.
25267  This program performs the conversion from the one format to the other (in
25268  this case, from the Noweb format to the Program pseudo-format).
25269 \end_layout
25270
25271 \begin_layout Enumerate
25272 The error log parser.
25273  This is a program whose sole purpose is to rewrite error messages in a
25274  format that \SpecialChar LyX
25275  understands.
25276  This makes it possible for \SpecialChar LyX
25277  to place error boxes in the right places in
25278  the file buffer.
25279 \end_layout
25280
25281 \begin_layout Standard
25282 The first part, the 
25283 \begin_inset Quotes eld
25284 \end_inset
25285
25286 Converter
25287 \begin_inset Quotes erd
25288 \end_inset
25289
25290  setting, should be set to
25291 \end_layout
25292
25293 \begin_layout LyX-Code
25294
25295 \family typewriter
25296 build-script $$i
25297 \family default
25298  $$r
25299 \end_layout
25300
25301 \begin_layout Standard
25302 This basically means that \SpecialChar LyX
25303  will call 
25304 \begin_inset Quotes eld
25305 \end_inset
25306
25307 build-script
25308 \begin_inset Quotes erd
25309 \end_inset
25310
25311  (a program or script) with the name of the Noweb file (normally a file
25312  in the \SpecialChar LyX
25313  temp directory) and the directory path of the original \SpecialChar LyX
25314  file.
25315  
25316 \end_layout
25317
25318 \begin_layout Standard
25319 This is an implementation of 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 build-script
25324 \begin_inset Quotes erd
25325 \end_inset
25326
25327  that you can place in a directory on your path:
25328 \end_layout
25329
25330 \begin_layout LyX-Code
25331
25332 \family sans
25333 #!/bin/sh
25334 \end_layout
25335
25336 \begin_layout LyX-Code
25337
25338 \family sans
25339 #
25340 \end_layout
25341
25342 \begin_layout LyX-Code
25343
25344 \family sans
25345 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25346 \end_layout
25347
25348 \begin_layout Standard
25349 The next part of the converter setting is the 
25350 \begin_inset Quotes eld
25351 \end_inset
25352
25353 Flags
25354 \begin_inset Quotes erd
25355 \end_inset
25356
25357  which is to be set to
25358 \end_layout
25359
25360 \begin_layout LyX-Code
25361
25362 \family typewriter
25363 parselog=$$s/scripts/listerrors
25364 \end_layout
25365
25366 \begin_layout Standard
25367 This will run any errors that are generated by the 
25368 \begin_inset Quotes eld
25369 \end_inset
25370
25371 build-script
25372 \begin_inset Quotes erd
25373 \end_inset
25374
25375  process through the 
25376 \begin_inset Quotes eld
25377 \end_inset
25378
25379 listerrors
25380 \begin_inset Quotes erd
25381 \end_inset
25382
25383  program.
25384 \end_layout
25385
25386 \begin_layout Standard
25387 The build will normally take place in \SpecialChar LyX
25388 's temporary directory, so the files
25389  produced by the conversion will be in that directory.
25390  \SpecialChar LyX
25391  will copy out what it regards as the `main' file, but the 
25392 \family typewriter
25393 Noweb->Program
25394 \family default
25395  conversion may produce several files, and so most of these would then be
25396  deleted when \SpecialChar LyX
25397  was closed.
25398  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25399  the build-script chunk can place the generated files in that location.
25400 \end_layout
25401
25402 \begin_layout Paragraph
25403 Build instructions in the document
25404 \end_layout
25405
25406 \begin_layout Standard
25407 The last piece of the integration between \SpecialChar LyX
25408  and noweb is the 
25409 \begin_inset Quotes eld
25410 \end_inset
25411
25412 build-script
25413 \begin_inset Quotes erd
25414 \end_inset
25415
25416  chunk.
25417  Generally, the instructions for building your program should be embedded
25418  in a chunk of its own.
25419  The noweb-specific 
25420 \begin_inset Quotes eld
25421 \end_inset
25422
25423 build-script
25424 \begin_inset Quotes erd
25425 \end_inset
25426
25427  above uses the notangle command to look for this chunk (called 
25428 \begin_inset Quotes eld
25429 \end_inset
25430
25431 build-script
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435 ) and runs its contents through 
25436 \begin_inset Quotes eld
25437 \end_inset
25438
25439 sh
25440 \begin_inset Quotes erd
25441 \end_inset
25442
25443 .
25444 \end_layout
25445
25446 \begin_layout Standard
25447 Typically, such a chunk would look something like this:
25448 \end_layout
25449
25450 \begin_layout LyX-Code
25451 <<build-script>>=
25452 \end_layout
25453
25454 \begin_layout LyX-Code
25455 #!/bin/sh
25456 \begin_inset Newline newline
25457 \end_inset
25458
25459 if [ -z "${NOWEB_SOURCE}" ]
25460 \begin_inset Newline newline
25461 \end_inset
25462
25463 then
25464 \end_layout
25465
25466 \begin_layout LyX-Code
25467 NOWEB_SOURCE=myfile.nw
25468 \begin_inset Newline newline
25469 \end_inset
25470
25471 fi
25472 \begin_inset Newline newline
25473 \end_inset
25474
25475 [...
25476  code to extract files ...
25477  use NOWEB_OUTPUT_DIR here ...]
25478 \begin_inset Newline newline
25479 \end_inset
25480
25481 [...
25482  code to compile files ...]
25483 \begin_inset Newline newline
25484 \end_inset
25485
25486 @
25487 \end_layout
25488
25489 \begin_layout Standard
25490 Look in 
25491 \emph on
25492 LIBDIR/examples/listerrors.lyx
25493 \emph default
25494  or in 
25495 \emph on
25496 LIBDIR/examples/Literate.lyx
25497 \emph default
25498  which implement two versions of the 
25499 \begin_inset Quotes eld
25500 \end_inset
25501
25502 listerrors
25503 \begin_inset Quotes erd
25504 \end_inset
25505
25506  program for some illustrations of how all of these pieces go together or
25507  in 
25508 \emph on
25509 LIBDIR/examples/noweb2lyx.lyx.
25510
25511 \emph default
25512  Interestingly, these three files show off the language-indepence of the
25513  \SpecialChar LyX
25514  literate programming support since they are written in Python, C and Perl
25515  respectively.
25516 \end_layout
25517
25518 \begin_layout Subsubsection
25519 Configuring \SpecialChar LyX
25520
25521 \end_layout
25522
25523 \begin_layout Standard
25524 All the Literate Programming support is configured by the 
25525 \family sans
25526 Tools\SpecialChar menuseparator
25527 Preferences
25528 \family default
25529  panel in the 
25530 \begin_inset Quotes eld
25531 \end_inset
25532
25533 File Handling
25534 \begin_inset Quotes erd
25535 \end_inset
25536
25537  tab.
25538  The important parts are:
25539 \end_layout
25540
25541 \begin_layout Description
25542 the
25543 \begin_inset space ~
25544 \end_inset
25545
25546
25547 \begin_inset Quotes eld
25548 \end_inset
25549
25550 NoWeb
25551 \begin_inset Quotes erd
25552 \end_inset
25553
25554
25555 \begin_inset space ~
25556 \end_inset
25557
25558 format Set up via the File Formats tab, this is where the Noweb-specific
25559  pieces are set up.
25560  The 
25561 \family sans
25562 GUI Name
25563 \family default
25564  is set to 
25565 \family typewriter
25566 NoWeb
25567 \family default
25568 , the file extension is set to 
25569 \family typewriter
25570 .nw
25571 \family default
25572 .
25573  This tells \SpecialChar LyX
25574  to create a file with a 
25575 \family typewriter
25576 .nw
25577 \family default
25578  extension in the first step of the conversion process.
25579 \end_layout
25580
25581 \begin_layout Description
25582 the
25583 \begin_inset space ~
25584 \end_inset
25585
25586
25587 \family sans
25588 Program
25589 \family default
25590
25591 \begin_inset space ~
25592 \end_inset
25593
25594 format This is an empty format whose sole purpose is to be the endpoint
25595  of a conversion (which then allows us to set up a converter for it).
25596 \end_layout
25597
25598 \begin_layout Description
25599
25600 \family sans
25601 NoWeb
25602 \family default
25603 ->
25604 \family sans
25605 \SpecialChar LaTeX
25606
25607 \family default
25608  This converter performs the 
25609 \begin_inset Quotes eld
25610 \end_inset
25611
25612 weaving
25613 \begin_inset Quotes erd
25614 \end_inset
25615
25616  of the literate document.
25617  For Noweb, it is set to 
25618 \begin_inset Quotes eld
25619 \end_inset
25620
25621
25622 \family typewriter
25623 noweave -delay -index $$i > $$o
25624 \family default
25625
25626 \begin_inset Quotes erd
25627 \end_inset
25628
25629
25630 \end_layout
25631
25632 \begin_layout Description
25633
25634 \family sans
25635 NoWeb
25636 \family default
25637 ->
25638 \family sans
25639 Program
25640 \family default
25641  This performs the 
25642 \begin_inset Quotes eld
25643 \end_inset
25644
25645 tangling step
25646 \begin_inset Quotes erd
25647 \end_inset
25648
25649 .
25650  As stated above, the Converter is set to 
25651 \begin_inset Quotes eld
25652 \end_inset
25653
25654
25655 \family typewriter
25656 build-script $$i
25657 \family default
25658  $$r
25659 \begin_inset Quotes erd
25660 \end_inset
25661
25662 , with Flags set to
25663 \begin_inset Newline newline
25664 \end_inset
25665
25666
25667 \begin_inset Quotes eld
25668 \end_inset
25669
25670
25671 \family typewriter
25672 parselog=$$s/scripts/listerrors
25673 \family default
25674
25675 \begin_inset Quotes erd
25676 \end_inset
25677
25678 .
25679 \end_layout
25680
25681 \begin_layout Subsubsection
25682 Debug extensions
25683 \end_layout
25684
25685 \begin_layout Standard
25686 There is also a new function implemented in the \SpecialChar LyX
25687  server, the 
25688 \begin_inset Quotes eld
25689 \end_inset
25690
25691 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25692  
25693 \end_layout
25694
25695 \begin_layout Standard
25696 When debugging code with ddd/gdb, it is possible to invoke a text editor
25697  at the current execution position with a single key stroke.
25698  The default ddd configuration for that is shift-ctrl-V.
25699  It happens that you can define the editor command line invocation in ddd
25700  by accessing the 
25701 \family sans
25702 Edit\SpecialChar menuseparator
25703 Preferences\SpecialChar menuseparator
25704 Helpers
25705 \family default
25706  dialog and changing the "Edit Sources" entry.
25707 \end_layout
25708
25709 \begin_layout Standard
25710 I take advantage of the newly created \SpecialChar LyX
25711  server function and this ddd feature,
25712  and set 
25713 \begin_inset Quotes eld
25714 \end_inset
25715
25716 Edit Sources
25717 \begin_inset Quotes erd
25718 \end_inset
25719
25720  to:
25721 \end_layout
25722
25723 \begin_layout LyX-Code
25724 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25725 \end_layout
25726
25727 \begin_layout Standard
25728 With this, whenever you are using ddd and find a point in the program that
25729  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25730  ddd will forward this information to \SpecialChar LyX
25731  through the \SpecialChar LyX
25732  server and then the
25733  \SpecialChar LyX
25734  window will show the same file with the cursor at the same position ddd
25735  was pointing to.
25736  No more guessing or long scrolling to locate a point in the program back
25737  from debugging !
25738 \end_layout
25739
25740 \begin_layout Standard
25741 Note however that you must enable the \SpecialChar LyX
25742  server to get this feature working
25743  (it is disabled by default).
25744  Sec.
25745 \begin_inset space ~
25746 \end_inset
25747
25748
25749 \begin_inset CommandInset ref
25750 LatexCommand ref
25751 reference "sec:Starting-the-Server"
25752
25753 \end_inset
25754
25755  explains how to do that.
25756 \end_layout
25757
25758 \begin_layout Subsubsection
25759 Toolbar extensions
25760 \end_layout
25761
25762 \begin_layout Standard
25763 There are six new buttons that can be added to your \SpecialChar LyX
25764  toolbar.
25765  Four of these buttons are short cuts to layout styles: 
25766 \family sans
25767 Standard
25768 \family default
25769
25770 \family sans
25771 Section
25772 \family default
25773
25774 \family sans
25775 \SpecialChar LaTeX
25776
25777 \family default
25778 , and 
25779 \family sans
25780 \SpecialChar LyX
25781 -Code
25782 \family default
25783 , one for the custom inset 
25784 \family sans
25785 Chunk
25786 \family default
25787 .
25788  The last one is a short cut to the 
25789 \begin_inset Quotes eld
25790 \end_inset
25791
25792 Build Program
25793 \begin_inset Quotes erd
25794 \end_inset
25795
25796  File menu entry.
25797  
25798 \end_layout
25799
25800 \begin_layout Standard
25801 \SpecialChar LyX
25802  has a range of buttons that are available for tool bar customization.
25803  In my toolbar I like to combine the six short cuts above with two more:
25804  One for 
25805 \family sans
25806 Document
25807 \family default
25808 \SpecialChar menuseparator
25809
25810 \family sans
25811 Update
25812 \family default
25813 \SpecialChar menuseparator
25814
25815 \family sans
25816 DVI
25817 \family default
25818  and the other for 
25819 \family sans
25820 Document\SpecialChar menuseparator
25821 View\SpecialChar menuseparator
25822 DVI
25823 \family default
25824  File menu entries.
25825  Here is how it looks like:
25826 \end_layout
25827
25828 \begin_layout LyX-Code
25829 Toolbar
25830 \end_layout
25831
25832 \begin_layout LyX-Code
25833   Layouts
25834 \end_layout
25835
25836 \begin_layout LyX-Code
25837   Icon "layout Standard"
25838 \end_layout
25839
25840 \begin_layout LyX-Code
25841   Icon "layout Section"
25842 \end_layout
25843
25844 \begin_layout LyX-Code
25845   Icon "layout \SpecialChar LaTeX
25846 "
25847 \end_layout
25848
25849 \begin_layout LyX-Code
25850   Icon "layout \SpecialChar LyX
25851 -Code"
25852 \end_layout
25853
25854 \begin_layout LyX-Code
25855   Icon "flex.insert Chunk"
25856 \end_layout
25857
25858 \begin_layout LyX-Code
25859   Separator
25860 \end_layout
25861
25862 \begin_layout LyX-Code
25863   Icon "buffer-view"
25864 \end_layout
25865
25866 \begin_layout LyX-Code
25867   Icon "buffer-typeset"
25868 \end_layout
25869
25870 \begin_layout LyX-Code
25871   Icon "build-program"
25872 \end_layout
25873
25874 \begin_layout LyX-Code
25875   Separator
25876 \end_layout
25877
25878 \begin_layout LyX-Code
25879 .
25880 \end_layout
25881
25882 \begin_layout LyX-Code
25883 .
25884 \end_layout
25885
25886 \begin_layout LyX-Code
25887 .
25888 \end_layout
25889
25890 \begin_layout LyX-Code
25891 End
25892 \end_layout
25893
25894 \begin_layout Subsubsection
25895 Colors customization
25896 \end_layout
25897
25898 \begin_layout Standard
25899 There are a number of colors in \SpecialChar LyX
25900  that can be customized in 
25901 \family sans
25902 Preferences
25903 \family default
25904 .
25905  One of the things that bothers people is the \SpecialChar LaTeX
25906  font color.
25907  The default color is red, since the chunks uses \SpecialChar LaTeX
25908  font, and there is a lot
25909  of chunks in literate documents, you may get tired of seeing everything
25910  in red.
25911  You can change it by going to the tabs 
25912 \family sans
25913 Look&Feel
25914 \family default
25915
25916 \family sans
25917 Colors.
25918 \end_layout
25919
25920 \begin_layout Standard
25921 The next thing is the visible presence of the newline character in the screen.
25922  You can choose the color of this particular character and make it blend
25923  in the background.
25924  I recommend you choosing a color that is close to the background but not
25925  equal, that way you still can see it is there, but it is not bothering
25926  you anymore.
25927 \end_layout
25928
25929 \begin_layout Subsection
25930 \SpecialChar LyX
25931  and knitr/Sweave
25932 \end_layout
25933
25934 \begin_layout Standard
25935 Support for 
25936 \family sans
25937 knitr
25938 \family default
25939  and 
25940 \family sans
25941 Sweave
25942 \family default
25943  is documented in the 
25944 \emph on
25945 knitr.lyx
25946 \emph default
25947  example file and in the Sweave manual (menu 
25948 \family sans
25949 Help\SpecialChar menuseparator
25950 Specific Manuals
25951 \family default
25952 ).
25953 \end_layout
25954
25955 \begin_layout Chapter
25956 Special features
25957 \end_layout
25958
25959 \begin_layout Standard
25960 You can do everything with \SpecialChar LyX
25961  that you can do with \SpecialChar LaTeX
25962 .
25963  However, \SpecialChar LyX
25964  cannot support every \SpecialChar LaTeX
25965  feature directly.
25966  But you can always use \SpecialChar TeX
25967  Code.
25968  This chapter shows you some more special things you might want to use.
25969  For other special things you can do with figures, tables, floats, boxes
25970  and notes, have a look at the 
25971 \emph on
25972 Embedded
25973 \begin_inset space ~
25974 \end_inset
25975
25976 Objects
25977 \emph default
25978  manual.
25979 \end_layout
25980
25981 \begin_layout Section
25982 Multiple Text Columns
25983 \end_layout
25984
25985 \begin_layout Standard
25986 This feature is independent of the option 
25987 \family sans
25988 Two-column document
25989 \family default
25990  in the document settings under 
25991 \family sans
25992 Text Layout
25993 \family default
25994 .
25995  If you want to have 2
25996 \begin_inset space ~
25997 \end_inset
25998
25999 columns for the whole document, it is recommended to use the 
26000 \family sans
26001 Two-column document
26002 \family default
26003  option.
26004  For all other cases use this feature.
26005 \end_layout
26006
26007 \begin_layout Standard
26008 To use multiple text columns in your document, you have to load the module
26009  
26010 \family sans
26011 Multiple Columns
26012 \family default
26013  (menu 
26014 \family sans
26015 Document\SpecialChar menuseparator
26016 Settings\SpecialChar menuseparator
26017 Modules
26018 \family default
26019 ) and must have the \SpecialChar LaTeX
26020 -package 
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 multicol
26026 \end_layout
26027
26028 \end_inset
26029
26030  installed.
26031 \end_layout
26032
26033 \begin_layout Standard
26034 Footnotes within multiple columns will be placed at the bottom of the page
26035  and not under each column.
26036  Within the different columns you can use everything, with the limitation
26037  that for floats you need to use the float option 
26038 \family sans
26039 Span columns
26040 \family default
26041 .
26042 \end_layout
26043
26044 \begin_layout Subsection
26045 Basics
26046 \end_layout
26047
26048 \begin_layout Standard
26049 If you want to have 2
26050 \begin_inset space ~
26051 \end_inset
26052
26053 columns in your text, insert a multicolumn inset via the menu 
26054 \family sans
26055 Insert\SpecialChar menuseparator
26056 Custom
26057 \begin_inset space ~
26058 \end_inset
26059
26060 Insets\SpecialChar menuseparator
26061 Multiple
26062 \begin_inset space ~
26063 \end_inset
26064
26065 Columns
26066 \family default
26067  where the columns should start.
26068  Write all text that should be printed in 2
26069 \begin_inset space ~
26070 \end_inset
26071
26072 columns into this inset.
26073 \end_layout
26074
26075 \begin_layout Standard
26076 Here is an example:
26077 \end_layout
26078
26079 \begin_layout Standard
26080 \noindent
26081 \begin_inset Flex Multiple Columns
26082 status open
26083
26084 \begin_layout Plain Layout
26085 \noindent
26086
26087 \series bold
26088 \size small
26089 The Adventure of the Empty House
26090 \series default
26091
26092 \begin_inset Newline newline
26093 \end_inset
26094
26095 by Sir Arthur Conan Doyle
26096 \end_layout
26097
26098 \begin_layout Plain Layout
26099
26100 \size small
26101 It was in the spring of the year 1894 that all London was interested, and
26102  the fashionable world dismayed, by the murder of the Honourable Ronald
26103  Adair under most unusual and inexplicable circumstances.
26104  The public has already learned those particulars of the crime which came
26105  out in the police investigation, but a good deal was suppressed upon that
26106  occasion, since the case for the prosecution was so overwhelmingly strong
26107  that it was not necessary to bring forward all the facts.
26108  Only now, at the end of nearly ten years, am I allowed to supply those
26109  missing links which make up the whole of that remarkable chain.
26110  The crime was of interest in itself, but that interest was as nothing to
26111  me compared to the inconceivable sequel, which afforded me the greatest
26112  shock and surprise of any event in my adventurous life.
26113  Even now, after this long interval, I find myself thrilling as I think
26114  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26115 ty which utterly submerged my mind.
26116  Let me say to that public, which has shown some interest in those glimpses
26117  which I have occasionally given them of the thoughts and actions of a very
26118  remarkable man, that they are not to blame me if I have not shared my knowledge
26119  with them, for I should have considered it my first duty to do so, had
26120  I not been barred by a positive prohibition from his own lips, which was
26121  only withdrawn upon the third of last month.
26122 \end_layout
26123
26124 \end_inset
26125
26126
26127 \end_layout
26128
26129 \begin_layout Standard
26130 To get 3 or more columns, set the cursor into the multicolumn inset and
26131  use the menu 
26132 \family sans
26133 Insert\SpecialChar menuseparator
26134 Number
26135 \begin_inset space ~
26136 \end_inset
26137
26138 of
26139 \begin_inset space ~
26140 \end_inset
26141
26142 Columns
26143 \family default
26144 .
26145  The number of the desired columns is written into that inset (for 3
26146 \begin_inset space ~
26147 \end_inset
26148
26149 columns write 
26150 \begin_inset Quotes eld
26151 \end_inset
26152
26153 3
26154 \begin_inset Quotes erd
26155 \end_inset
26156
26157 ).
26158 \begin_inset Newline newline
26159 \end_inset
26160
26161 Here is an example with 3
26162 \begin_inset space ~
26163 \end_inset
26164
26165 columns:
26166 \end_layout
26167
26168 \begin_layout Standard
26169 \begin_inset Flex Multiple Columns
26170 status open
26171
26172 \begin_layout Plain Layout
26173
26174 \size footnotesize
26175 \begin_inset Argument 1
26176 status open
26177
26178 \begin_layout Plain Layout
26179
26180 3
26181 \end_layout
26182
26183 \end_inset
26184
26185 It can be imagined that my close intimacy with Sherlock Holmes had interested
26186  me deeply in crime, and that after his disappearance I never failed to
26187  read with care the various problems which came before the public.
26188  And I even attempted, more than once, for my own private satisfaction,
26189  to employ his methods in their solution, though with indifferent success.
26190  There was none, however, which appealed to me like this tragedy of Ronald
26191  Adair.
26192  As I read the evidence at the inquest, which led up to a verdict of willful
26193  murder against some person or persons unknown, I realized more clearly
26194  than I had ever done the loss which the community had sustained by the
26195  death of Sherlock Holmes.
26196  There were points about this strange business which would, I was sure,
26197  have specially appealed to him, and the efforts of the police would have
26198  been supplemented, or more probably anticipated, by the trained observation
26199  and the alert mind of the first criminal agent in Europe.
26200  All day, as I drove upon my round, I turned over the case in my mind and
26201  found no explanation which appeared to me to be adequate.
26202  At the risk of telling a twice-told tale, I will recapitulate the facts
26203  as they were known to the public at the conclusion of the inquest.
26204 \end_layout
26205
26206 \end_inset
26207
26208
26209 \end_layout
26210
26211 \begin_layout Standard
26212 You can have up to 10
26213 \begin_inset space ~
26214 \end_inset
26215
26216 columns if you want to, but that might not be very pleasant for the readers
26217  of your document.
26218 \end_layout
26219
26220 \begin_layout Standard
26221 \begin_inset Newpage newpage
26222 \end_inset
26223
26224
26225 \end_layout
26226
26227 \begin_layout Subsection
26228 Columns inside Columns
26229 \end_layout
26230
26231 \begin_layout Standard
26232 You can also have columns inside columns:
26233 \end_layout
26234
26235 \begin_layout Standard
26236 \begin_inset Flex Multiple Columns
26237 status open
26238
26239 \begin_layout Plain Layout
26240
26241 \size footnotesize
26242 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26243  at that time governor of one of the Australian colonies.
26244  Adair's mother had returned from Australia to undergo the operation for
26245  cataract, and she, her son Ronald, and her daughter Hilda were living together
26246  at 427 Park Lane.
26247 \end_layout
26248
26249 \begin_layout Plain Layout
26250 \begin_inset Flex Multiple Columns
26251 status open
26252
26253 \begin_layout Plain Layout
26254
26255 \size footnotesize
26256 The youth moved in the best society
26257 \begin_inset space ~
26258 \end_inset
26259
26260 – had, so far as was known, no enemies and no particular vices.
26261  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26262  had been broken off by mutual consent some months before, and there was
26263  no sign that it had left any very profound feeling behind it.
26264  For the rest {sic} the man's life moved in a narrow and conventional circle,
26265  for his habits were quiet and his nature unemotional.
26266  Yet it was upon this easy-going young aristocrat that death came, in most
26267  strange and unexpected form, between the hours of ten and eleven-twenty
26268  on the night of March 30, 1894.
26269 \end_layout
26270
26271 \end_inset
26272
26273
26274 \end_layout
26275
26276 \begin_layout Plain Layout
26277
26278 \size footnotesize
26279 Ronald Adair was fond of cards
26280 \begin_inset space ~
26281 \end_inset
26282
26283 – playing continually, but never for such stakes as would hurt him.
26284  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26285  It was shown that, after dinner on the day of his death, he had played
26286  a rubber of whist at the latter club.
26287  He had also played there in the afternoon.
26288
26289 \size default
26290  
26291 \size footnotesize
26292 The evidence of those who had played with him
26293 \begin_inset space ~
26294 \end_inset
26295
26296 – Mr.
26297  Murray, Sir John Hardy, and Colonel Moran
26298 \begin_inset space ~
26299 \end_inset
26300
26301 – showed that the game was whist, and that there was a fairly equal fall
26302  of the cards.
26303  Adair might have lost five pounds, but not more.
26304  His fortune was a considerable one, and such a loss could not in any way
26305  affect him.
26306  He had played nearly every day at one club or other, but he was a cautious
26307  player, and usually rose a winner.
26308  It came out in evidence that, in partnership with Colonel Moran, he had
26309  actually won as much as four hundred and twenty pounds in a sitting, some
26310  weeks before, from Godfrey Milner and Lord Balmoral.
26311  So much for his recent history as it came out at the inquest.
26312 \end_layout
26313
26314 \end_inset
26315
26316
26317 \end_layout
26318
26319 \begin_layout Subsection
26320 Advanced Examples
26321 \end_layout
26322
26323 \begin_layout Standard
26324 The examples in this section show some more special features of multiple
26325  columns.
26326 \end_layout
26327
26328 \begin_layout Standard
26329 For more features of multiple columns, have a look at the 
26330 \begin_inset CommandInset href
26331 LatexCommand href
26332 name "documentation"
26333 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26334 literal "false"
26335
26336 \end_inset
26337
26338  of the \SpecialChar LaTeX
26339 -package 
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 multicol
26345 \end_layout
26346
26347 \end_inset
26348
26349 .
26350 \end_layout
26351
26352 \begin_layout Subsubsection
26353 Preface
26354 \end_layout
26355
26356 \begin_layout Standard
26357 To add a preface text for multiple columns, set the cursor into the multicolumn
26358  inset and use the menu 
26359 \family sans
26360 Insert\SpecialChar menuseparator
26361 Preface
26362 \family default
26363 .
26364  Write your preface text into that inset.
26365 \begin_inset Newline newline
26366 \end_inset
26367
26368 This is an example with some preface text:
26369 \end_layout
26370
26371 \begin_layout Standard
26372 \begin_inset VSpace bigskip
26373 \end_inset
26374
26375
26376 \end_layout
26377
26378 \begin_layout Standard
26379 \begin_inset Flex Multiple Columns
26380 status open
26381
26382 \begin_layout Plain Layout
26383 \begin_inset Argument 2
26384 status open
26385
26386 \begin_layout Plain Layout
26387 And the story continues and continues and continues and continues\SpecialChar ldots
26388
26389 \end_layout
26390
26391 \end_inset
26392
26393
26394 \size small
26395 On the evening of the crime, he returned from the club exactly at ten.
26396  His mother and sister were out spending the evening with a relation.
26397  The servant deposed that she heard him enter the front room on the second
26398  floor, generally used as his sitting-room.
26399  She had lit a fire there, and as it smoked she had opened the window.
26400  No sound was heard from the room until eleven-twenty, the hour of the return
26401  of Lady Maynooth and her daughter.
26402  Desiring to say good-night, she attempted to enter her son's room.
26403  The door was locked on the inside, and no answer could be got to their
26404  cries and knocking.
26405  Help was obtained, and the door forced.
26406  The unfortunate young man was found lying near the table.
26407  His head had been horribly mutilated by an expanding revolver bullet, but
26408  no weapon of any sort was to be found in the room.
26409 \end_layout
26410
26411 \end_inset
26412
26413
26414 \end_layout
26415
26416 \begin_layout Standard
26417 You can also use a section heading as the preface if you use a section command
26418  as \SpecialChar TeX
26419  Code.
26420  For example the command
26421 \end_layout
26422
26423 \begin_layout LyX-Code
26424
26425 \backslash
26426 subsection{subsection title}
26427 \end_layout
26428
26429 \begin_layout Standard
26430 creates a subsection.
26431  In this example the preface is a subsubsection:
26432 \end_layout
26433
26434 \begin_layout Standard
26435 \begin_inset Flex Multiple Columns
26436 status open
26437
26438 \begin_layout Plain Layout
26439 \begin_inset Argument 2
26440 status open
26441
26442 \begin_layout Plain Layout
26443 \begin_inset ERT
26444 status collapsed
26445
26446 \begin_layout Plain Layout
26447
26448
26449 \backslash
26450 subsubsection{
26451 \end_layout
26452
26453 \end_inset
26454
26455 This is a subsubsection heading as a preface
26456 \begin_inset ERT
26457 status collapsed
26458
26459 \begin_layout Plain Layout
26460
26461 }
26462 \end_layout
26463
26464 \end_inset
26465
26466
26467 \end_layout
26468
26469 \end_inset
26470
26471
26472 \size small
26473 A minute examination of the circumstances served only to make the case more
26474  complex.
26475  In the first place, no reason could be given why the young man should have
26476  fastened the door upon the inside.
26477  There was the possibility that the murderer had done this, and had afterwards
26478  escaped by the window.
26479  The drop was at least twenty feet, however, and a bed of crocuses in full
26480  bloom lay beneath.
26481  Neither the flowers nor the earth showed any sign of having been disturbed,
26482  nor were there any marks upon the narrow strip of grass which separated
26483  the house from the road.
26484  Apparently, therefore, it was the young man himself who had fastened the
26485  door.
26486  But how did he come by his death? No one could have climbed up to the window
26487  without leaving traces.
26488  Suppose a man had fired through the window, he would indeed be a remarkable
26489  shot who could with a revolver inflict so deadly a wound.
26490  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26491  a hundred yards of the house.
26492  No one had heard a shot.
26493 \end_layout
26494
26495 \end_inset
26496
26497
26498 \end_layout
26499
26500 \begin_layout Standard
26501 If there is less vertical space than 6
26502 \begin_inset space ~
26503 \end_inset
26504
26505 text lines is left on the page at the beginning of the multiple columns,
26506  a page break will be inserted before the multiple columns.
26507  Depending on the number of lines of the preface text, you might want to
26508  change this space.
26509  This is done by setting the cursor into the mulitcolumn inset behind the
26510  preface (if there is any) and using the menu 
26511 \family sans
26512 Insert\SpecialChar menuseparator
26513 Space
26514 \begin_inset space ~
26515 \end_inset
26516
26517 Before
26518 \begin_inset space ~
26519 \end_inset
26520
26521 Page
26522 \begin_inset space ~
26523 \end_inset
26524
26525 Break
26526 \family default
26527 .
26528  Insert into that inset the amount of space like e.
26529 \begin_inset space \thinspace{}
26530 \end_inset
26531
26532 g.
26533 \begin_inset space \space{}
26534 \end_inset
26535
26536
26537 \begin_inset Quotes eld
26538 \end_inset
26539
26540 5cm
26541 \begin_inset Quotes erd
26542 \end_inset
26543
26544 .
26545 \begin_inset Newline newline
26546 \end_inset
26547
26548 In this example the space is set to 7
26549 \begin_inset space ~
26550 \end_inset
26551
26552 text lines by using 
26553 \begin_inset Flex Code
26554 status collapsed
26555
26556 \begin_layout Plain Layout
26557 7
26558 \backslash
26559 baselineskip
26560 \end_layout
26561
26562 \end_inset
26563
26564  (where the command 
26565 \begin_inset Flex Code
26566 status collapsed
26567
26568 \begin_layout Plain Layout
26569
26570 \backslash
26571 baselineskip
26572 \end_layout
26573
26574 \end_inset
26575
26576  needs to be inserted as \SpecialChar TeX
26577  code):
26578 \end_layout
26579
26580 \begin_layout Standard
26581 \begin_inset Flex Multiple Columns
26582 status open
26583
26584 \begin_layout Plain Layout
26585 \begin_inset Argument 3
26586 status open
26587
26588 \begin_layout Plain Layout
26589 7
26590 \begin_inset ERT
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594
26595
26596 \backslash
26597 baselineskip
26598 \end_layout
26599
26600 \end_inset
26601
26602
26603 \end_layout
26604
26605 \end_inset
26606
26607
26608 \size small
26609 On the evening of the crime, he returned from the club exactly at ten.
26610  His mother and sister were out spending the evening with a relation.
26611  The servant deposed that she heard him enter the front room on the second
26612  floor, generally used as his sitting-room.
26613  She had lit a fire there, and as it smoked she had opened the window.
26614  No sound was heard from the room until eleven-twenty, the hour of the return
26615  of Lady Maynooth and her daughter.
26616  Desiring to say good-night, she attempted to enter her son's room.
26617  The door was locked on the inside, and no answer could be got to their
26618  cries and knocking.
26619  Help was obtained, and the door forced.
26620  The unfortunate young man was found lying near the table.
26621  His head had been horribly mutilated by an expanding revolver bullet, but
26622  no weapon of any sort was to be found in the room.
26623 \end_layout
26624
26625 \end_inset
26626
26627
26628 \end_layout
26629
26630 \begin_layout Subsubsection
26631 Surrounding Space
26632 \end_layout
26633
26634 \begin_layout Standard
26635 The amount of space before and after multiple columns can be changed by
26636  changing the length 
26637 \begin_inset Flex Code
26638 status collapsed
26639
26640 \begin_layout Plain Layout
26641
26642 \backslash
26643 multicolsep
26644 \end_layout
26645
26646 \end_inset
26647
26648 .
26649  For example the command
26650 \end_layout
26651
26652 \begin_layout LyX-Code
26653
26654 \backslash
26655 setlength{
26656 \backslash
26657 multicolsep}{3cm}
26658 \end_layout
26659
26660 \begin_layout Standard
26661 in \SpecialChar TeX
26662  Code changes its value to 3
26663 \begin_inset space \thinspace{}
26664 \end_inset
26665
26666 cm.
26667  The change must be made before the multiple columns' start.
26668  The predefined value is 13
26669 \begin_inset space \thinspace{}
26670 \end_inset
26671
26672 pt.
26673 \end_layout
26674
26675 \begin_layout Standard
26676 For this example 
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681
26682 \backslash
26683 multicolsep
26684 \end_layout
26685
26686 \end_inset
26687
26688  was set to 2.5
26689 \begin_inset space \thinspace{}
26690 \end_inset
26691
26692 cm:
26693 \end_layout
26694
26695 \begin_layout Standard
26696 \begin_inset ERT
26697 status open
26698
26699 \begin_layout Plain Layout
26700
26701
26702 \backslash
26703 setlength{
26704 \backslash
26705 multicolsep}{2.5cm}
26706 \end_layout
26707
26708 \end_inset
26709
26710
26711 \end_layout
26712
26713 \begin_layout Standard
26714 \begin_inset Flex Multiple Columns
26715 status open
26716
26717 \begin_layout Plain Layout
26718
26719 \size small
26720 All day I turned these facts over in my mind, endeavouring to hit upon some
26721  theory which could reconcile them all, and to find that line of least resistanc
26722 e which my poor friend had declared to be the starting-point of every investigat
26723 ion.
26724  I confess that I made little progress.
26725  In the evening I strolled across the Park, and found myself about six o'clock
26726  at the Oxford Street end of Park Lane.
26727  A group of loafers upon the pavements, all staring up at a particular window,
26728  directed me to the house which I had come to see.
26729  A tall, thin man with coloured glasses, whom I strongly suspected of being
26730  a plain-clothes detective, was pointing out some theory of his own, while
26731  the others crowded round to listen to what he said.
26732  I got as near him as I could, but his observations seemed to me to be absurd,
26733  so I withdrew again in some disgust.
26734  As I did so I struck against an elderly, deformed man, who had been behind
26735  me, and I knocked down several books which he was carrying.
26736 \end_layout
26737
26738 \end_inset
26739
26740
26741 \end_layout
26742
26743 \begin_layout Standard
26744 \begin_inset Note Greyedout
26745 status open
26746
26747 \begin_layout Plain Layout
26748
26749 \series bold
26750 Note:
26751 \series default
26752  The values you set with 
26753 \begin_inset Flex Code
26754 status collapsed
26755
26756 \begin_layout Plain Layout
26757
26758 \backslash
26759 setlength
26760 \end_layout
26761
26762 \end_inset
26763
26764  will be used for all following multiple columns until you change them again.
26765 \end_layout
26766
26767 \end_inset
26768
26769
26770 \end_layout
26771
26772 \begin_layout Standard
26773 \begin_inset ERT
26774 status collapsed
26775
26776 \begin_layout Plain Layout
26777
26778
26779 \backslash
26780 setlength{
26781 \backslash
26782 multicolsep}{13pt}
26783 \end_layout
26784
26785 \end_inset
26786
26787
26788 \begin_inset Note Note
26789 status collapsed
26790
26791 \begin_layout Plain Layout
26792 go back to the default
26793 \end_layout
26794
26795 \end_inset
26796
26797
26798 \end_layout
26799
26800 \begin_layout Standard
26801 \begin_inset Newpage newpage
26802 \end_inset
26803
26804
26805 \end_layout
26806
26807 \begin_layout Subsubsection
26808 Column Breaks
26809 \end_layout
26810
26811 \begin_layout Standard
26812 A column break can be forced by inserting the command 
26813 \begin_inset Flex Code
26814 status collapsed
26815
26816 \begin_layout Plain Layout
26817
26818 \backslash
26819 columnbreak{}
26820 \end_layout
26821
26822 \end_inset
26823
26824  as \SpecialChar TeX
26825  Code to that position in the text where the column should be broken.
26826  Note that this leads in most cases to whitespace in the text.
26827 \begin_inset Newline newline
26828 \end_inset
26829
26830 Here is an example:
26831 \end_layout
26832
26833 \begin_layout Standard
26834 \begin_inset Flex Multiple Columns
26835 status open
26836
26837 \begin_layout Plain Layout
26838
26839 \size small
26840 \begin_inset Quotes eld
26841 \end_inset
26842
26843 You're surprised to see me, sir,
26844 \begin_inset Quotes erd
26845 \end_inset
26846
26847  said he, in a strange, croaking voice.
26848 \end_layout
26849
26850 \begin_layout Plain Layout
26851
26852 \size small
26853 I acknowledged that I was.
26854 \end_layout
26855
26856 \begin_layout Plain Layout
26857
26858 \size small
26859 \begin_inset Quotes eld
26860 \end_inset
26861
26862 Well, I've a conscience, sir, and when I chanced to see you go into this
26863  house, as I came hobbling after you, I thought to myself, I'll just step
26864  in and see that kind gentleman, and tell him that if I was a bit gruff
26865  in my manner there was not any harm meant, and that I am much obliged to
26866  him for picking up my books.
26867 \begin_inset Quotes erd
26868 \end_inset
26869
26870
26871 \end_layout
26872
26873 \begin_layout Plain Layout
26874
26875 \size small
26876 \begin_inset Quotes eld
26877 \end_inset
26878
26879 You make too much of a trifle,
26880 \begin_inset Quotes erd
26881 \end_inset
26882
26883  said I.
26884  
26885 \begin_inset Quotes eld
26886 \end_inset
26887
26888 May I ask how you knew who I was?
26889 \begin_inset Quotes erd
26890 \end_inset
26891
26892  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
26893 \begin_inset ERT
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897
26898
26899 \backslash
26900 columnbreak{}
26901 \end_layout
26902
26903 \end_inset
26904
26905
26906 \end_layout
26907
26908 \begin_layout Plain Layout
26909
26910 \size small
26911 \begin_inset Quotes eld
26912 \end_inset
26913
26914 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26915  you'll find my little bookshop at the corner of Church Street, and very
26916  happy to see you, I am sure.
26917  Maybe you collect yourself, sir.
26918  Here's 
26919 \noun on
26920 British
26921 \begin_inset space ~
26922 \end_inset
26923
26924 Birds
26925 \noun default
26926 , and 
26927 \noun on
26928 Catullus
26929 \noun default
26930 , and 
26931 \noun on
26932 The Holy War
26933 \noun default
26934
26935 \begin_inset space ~
26936 \end_inset
26937
26938 – a bargain, every one of them.
26939  With five volumes you could just fill that gap on that second shelf.
26940  It looks untidy, does it not, sir?
26941 \begin_inset Quotes erd
26942 \end_inset
26943
26944
26945 \end_layout
26946
26947 \end_inset
26948
26949
26950 \end_layout
26951
26952 \begin_layout Subsubsection
26953 Column Separation
26954 \end_layout
26955
26956 \begin_layout Standard
26957 The width of the columns is automatically calculated, but you can modify
26958  the space between the columns.
26959  This is done by changing the length 
26960 \begin_inset Flex Code
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964
26965 \backslash
26966 columnsep
26967 \end_layout
26968
26969 \end_inset
26970
26971 .
26972  Its predefined value is 10
26973 \begin_inset space \thinspace{}
26974 \end_inset
26975
26976 pt.
26977  Here is an example where 
26978 \begin_inset Flex Code
26979 status collapsed
26980
26981 \begin_layout Plain Layout
26982
26983 \backslash
26984 columnsep
26985 \end_layout
26986
26987 \end_inset
26988
26989  is set to 3
26990 \begin_inset space \thinspace{}
26991 \end_inset
26992
26993 cm:
26994 \end_layout
26995
26996 \begin_layout Standard
26997 \begin_inset ERT
26998 status open
26999
27000 \begin_layout Plain Layout
27001
27002
27003 \backslash
27004 setlength{
27005 \backslash
27006 columnsep}{3cm}
27007 \end_layout
27008
27009 \end_inset
27010
27011
27012 \end_layout
27013
27014 \begin_layout Standard
27015 \begin_inset Flex Multiple Columns
27016 status open
27017
27018 \begin_layout Plain Layout
27019
27020 \size small
27021 My observations of No.
27022 \begin_inset space \space{}
27023 \end_inset
27024
27025 427 Park Lane did little to clear up the problem in which I was interested.
27026  The house was separated from the street by a low wall and railing, the
27027  whole not more than five feet high.
27028  It was perfectly easy, therefore, for anyone to get into the garden, but
27029  the window was entirely inaccessible, since there was no water pipe or
27030  anything which could help the most active man to climb it.
27031  More puzzled than ever, I retraced my steps to Kensington.
27032  I had not been in my study five minutes when the maid entered to say that
27033  a person desired to see me.
27034  To my astonishment it was none other than my strange old book collector,
27035  his sharp, wizened face peering out from a frame of white hair, and his
27036  precious volumes, a dozen of them at least, wedged under his right arm.
27037 \end_layout
27038
27039 \end_inset
27040
27041
27042 \end_layout
27043
27044 \begin_layout Standard
27045 \begin_inset ERT
27046 status collapsed
27047
27048 \begin_layout Plain Layout
27049
27050
27051 \backslash
27052 setlength{
27053 \backslash
27054 columnsep}{10pt}
27055 \end_layout
27056
27057 \end_inset
27058
27059
27060 \begin_inset Note Note
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064 go back to the default
27065 \end_layout
27066
27067 \end_inset
27068
27069
27070 \end_layout
27071
27072 \begin_layout Subsubsection
27073 Vertical Lines
27074 \end_layout
27075
27076 \begin_layout Standard
27077 Between the columns a rule with a width of the length 
27078 \begin_inset Flex Code
27079 status collapsed
27080
27081 \begin_layout Plain Layout
27082
27083 \backslash
27084 columnseprule
27085 \end_layout
27086
27087 \end_inset
27088
27089  is placed.
27090  If this rule width is set to 0
27091 \begin_inset space \thinspace{}
27092 \end_inset
27093
27094 pt (this is the default), the rule is suppressed.
27095  In the following example the rule is 2
27096 \begin_inset space \thinspace{}
27097 \end_inset
27098
27099 pt wide:
27100 \end_layout
27101
27102 \begin_layout Standard
27103 \begin_inset ERT
27104 status open
27105
27106 \begin_layout Plain Layout
27107
27108
27109 \backslash
27110 setlength{
27111 \backslash
27112 columnseprule}{2pt}
27113 \end_layout
27114
27115 \end_inset
27116
27117
27118 \end_layout
27119
27120 \begin_layout Standard
27121 \begin_inset Flex Multiple Columns
27122 status open
27123
27124 \begin_layout Plain Layout
27125
27126 \size small
27127 \begin_inset Quotes eld
27128 \end_inset
27129
27130 You're surprised to see me, sir,
27131 \begin_inset Quotes erd
27132 \end_inset
27133
27134  said he, in a strange, croaking voice.
27135 \end_layout
27136
27137 \begin_layout Plain Layout
27138
27139 \size small
27140 I acknowledged that I was.
27141 \end_layout
27142
27143 \begin_layout Plain Layout
27144
27145 \size small
27146 \begin_inset Quotes eld
27147 \end_inset
27148
27149 Well, I've a conscience, sir, and when I chanced to see you go into this
27150  house, as I came hobbling after you, I thought to myself, I'll just step
27151  in and see that kind gentleman, and tell him that if I was a bit gruff
27152  in my manner there was not any harm meant, and that I am much obliged to
27153  him for picking up my books.
27154 \begin_inset Quotes erd
27155 \end_inset
27156
27157
27158 \end_layout
27159
27160 \begin_layout Plain Layout
27161
27162 \size small
27163 \begin_inset Quotes eld
27164 \end_inset
27165
27166 You make too much of a trifle,
27167 \begin_inset Quotes erd
27168 \end_inset
27169
27170  said I.
27171  
27172 \begin_inset Quotes eld
27173 \end_inset
27174
27175 May I ask how you knew who I was?
27176 \begin_inset Quotes erd
27177 \end_inset
27178
27179
27180 \end_layout
27181
27182 \begin_layout Plain Layout
27183
27184 \size small
27185 \begin_inset Quotes eld
27186 \end_inset
27187
27188 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27189  you'll find my little bookshop at the corner of Church Street, and very
27190  happy to see you, I am sure.
27191  Maybe you collect yourself, sir.
27192  Here's 
27193 \noun on
27194 British
27195 \begin_inset space ~
27196 \end_inset
27197
27198 Birds
27199 \noun default
27200 , and 
27201 \noun on
27202 Catullus
27203 \noun default
27204 , and 
27205 \noun on
27206 The Holy War
27207 \noun default
27208
27209 \begin_inset space ~
27210 \end_inset
27211
27212 – a bargain, every one of them.
27213  With five volumes you could just fill that gap on that second shelf.
27214  It looks untidy, does it not, sir?
27215 \begin_inset Quotes erd
27216 \end_inset
27217
27218
27219 \end_layout
27220
27221 \end_inset
27222
27223
27224 \end_layout
27225
27226 \begin_layout Standard
27227 \begin_inset VSpace defskip
27228 \end_inset
27229
27230
27231 \end_layout
27232
27233 \begin_layout Standard
27234 The rule can be colored by redefining the command 
27235 \begin_inset Flex Code
27236 status collapsed
27237
27238 \begin_layout Plain Layout
27239
27240 \backslash
27241 columnseprulecolor
27242 \end_layout
27243
27244 \end_inset
27245
27246 .
27247  This is done by inserting the command
27248 \end_layout
27249
27250 \begin_layout LyX-Code
27251
27252 \backslash
27253 renewcommand{
27254 \backslash
27255 columnseprulecolor}{
27256 \backslash
27257 color{red}}
27258 \end_layout
27259
27260 \begin_layout Standard
27261 as \SpecialChar TeX
27262  Code before the multicolumn inset.
27263  Replace 
27264 \begin_inset Flex Code
27265 status collapsed
27266
27267 \begin_layout Plain Layout
27268 red
27269 \end_layout
27270
27271 \end_inset
27272
27273  in this command by a color of your choice.
27274  You can use all pre- and self-defined colors.
27275  See the 
27276 \emph on
27277 EmbeddedObjects
27278 \emph default
27279  manual, section 
27280 \emph on
27281 Colored
27282 \begin_inset space ~
27283 \end_inset
27284
27285 Tables
27286 \emph default
27287  for more information about pre- and self-defined colors.
27288  To go back to the default color insert the command
27289 \end_layout
27290
27291 \begin_layout LyX-Code
27292
27293 \backslash
27294 renewcommand{
27295 \backslash
27296 columnseprulecolor}{
27297 \backslash
27298 normalcolor}
27299 \end_layout
27300
27301 \begin_layout Standard
27302 Here is the example with a cyan rule and 1
27303 \begin_inset space \thinspace{}
27304 \end_inset
27305
27306 cm column separation:
27307 \end_layout
27308
27309 \begin_layout Standard
27310 \begin_inset ERT
27311 status open
27312
27313 \begin_layout Plain Layout
27314
27315
27316 \backslash
27317 setlength{
27318 \backslash
27319 columnsep}{1cm}
27320 \end_layout
27321
27322 \begin_layout Plain Layout
27323
27324
27325 \backslash
27326 renewcommand{
27327 \backslash
27328 columnseprulecolor}{
27329 \backslash
27330 color{cyan}}
27331 \end_layout
27332
27333 \end_inset
27334
27335
27336 \end_layout
27337
27338 \begin_layout Standard
27339 \begin_inset Flex Multiple Columns
27340 status open
27341
27342 \begin_layout Plain Layout
27343
27344 \size small
27345 \begin_inset Quotes eld
27346 \end_inset
27347
27348 You're surprised to see me, sir,
27349 \begin_inset Quotes erd
27350 \end_inset
27351
27352  said he, in a strange, croaking voice.
27353 \end_layout
27354
27355 \begin_layout Plain Layout
27356
27357 \size small
27358 I acknowledged that I was.
27359 \end_layout
27360
27361 \begin_layout Plain Layout
27362
27363 \size small
27364 \begin_inset Quotes eld
27365 \end_inset
27366
27367 Well, I've a conscience, sir, and when I chanced to see you go into this
27368  house, as I came hobbling after you, I thought to myself, I'll just step
27369  in and see that kind gentleman, and tell him that if I was a bit gruff
27370  in my manner there was not any harm meant, and that I am much obliged to
27371  him for picking up my books.
27372 \begin_inset Quotes erd
27373 \end_inset
27374
27375
27376 \end_layout
27377
27378 \begin_layout Plain Layout
27379
27380 \size small
27381 \begin_inset Quotes eld
27382 \end_inset
27383
27384 You make too much of a trifle,
27385 \begin_inset Quotes erd
27386 \end_inset
27387
27388  said I.
27389  
27390 \begin_inset Quotes eld
27391 \end_inset
27392
27393 May I ask how you knew who I was?
27394 \begin_inset Quotes erd
27395 \end_inset
27396
27397
27398 \end_layout
27399
27400 \begin_layout Plain Layout
27401
27402 \size small
27403 \begin_inset Quotes eld
27404 \end_inset
27405
27406 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27407  you'll find my little bookshop at the corner of Church Street, and very
27408  happy to see you, I am sure.
27409  Maybe you collect yourself, sir.
27410  Here's 
27411 \noun on
27412 British
27413 \begin_inset space ~
27414 \end_inset
27415
27416 Birds
27417 \noun default
27418 , and 
27419 \noun on
27420 Catullus
27421 \noun default
27422 , and 
27423 \noun on
27424 The Holy War
27425 \noun default
27426
27427 \begin_inset space ~
27428 \end_inset
27429
27430 – a bargain, every one of them.
27431  With five volumes you could just fill that gap on that second shelf.
27432  It looks untidy, does it not, sir?
27433 \begin_inset Quotes erd
27434 \end_inset
27435
27436
27437 \end_layout
27438
27439 \end_inset
27440
27441
27442 \end_layout
27443
27444 \begin_layout Standard
27445 \begin_inset ERT
27446 status collapsed
27447
27448 \begin_layout Plain Layout
27449
27450
27451 \backslash
27452 setlength{
27453 \backslash
27454 columnseprule}{0pt}
27455 \end_layout
27456
27457 \begin_layout Plain Layout
27458
27459
27460 \backslash
27461 renewcommand{
27462 \backslash
27463 columnseprulecolor}{
27464 \backslash
27465 normalcolor}
27466 \end_layout
27467
27468 \end_inset
27469
27470
27471 \begin_inset Note Note
27472 status collapsed
27473
27474 \begin_layout Plain Layout
27475 go back to the default
27476 \end_layout
27477
27478 \end_inset
27479
27480
27481 \end_layout
27482
27483 \begin_layout Section
27484 Non-standard Paragraph Shapes
27485 \end_layout
27486
27487 \begin_layout Standard
27488 \noindent
27489 \SpecialChar LaTeX
27490  as well as any other text processor uses by default rectangular paragraphs.
27491  For special cases like for example posters, invitation cards or poems you
27492  can modify the paragraph shape to one of your choice.
27493  This can be done by using the \SpecialChar LaTeX
27494 -package 
27495 \begin_inset Flex Code
27496 status collapsed
27497
27498 \begin_layout Plain Layout
27499 shapepar
27500 \end_layout
27501
27502 \end_inset
27503
27504  which is loaded by using in the document settings the module 
27505 \family sans
27506 Custom paragraph shapes
27507 \family default
27508 .
27509 \end_layout
27510
27511 \begin_layout Subsection
27512 Predefined shapes
27513 \end_layout
27514
27515 \begin_layout Standard
27516
27517 \series bold
27518 shapepar
27519 \series default
27520  provides the following shapes:
27521 \end_layout
27522
27523 \begin_layout Standard
27524 \begin_inset Tabular
27525 <lyxtabular version="3" rows="13" columns="3">
27526 <features booktabs="true" islongtable="true" longtabularalignment="center">
27527 <column alignment="left" valignment="middle" width="16col%">
27528 <column alignment="left" valignment="middle" width="40col%">
27529 <column alignment="left" valignment="middle" width="35col%">
27530 <row endhead="true">
27531 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27532 \begin_inset Text
27533
27534 \begin_layout Plain Layout
27535
27536 \series bold
27537 \size small
27538 Name
27539 \end_layout
27540
27541 \end_inset
27542 </cell>
27543 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27544 \begin_inset Text
27545
27546 \begin_layout Plain Layout
27547
27548 \series bold
27549 \size small
27550 Description
27551 \end_layout
27552
27553 \end_inset
27554 </cell>
27555 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27556 \begin_inset Text
27557
27558 \begin_layout Plain Layout
27559
27560 \series bold
27561 \size small
27562 Annotation
27563 \end_layout
27564
27565 \end_inset
27566 </cell>
27567 </row>
27568 <row interlinespace="default">
27569 <cell alignment="left" valignment="top" usebox="none">
27570 \begin_inset Text
27571
27572 \begin_layout Plain Layout
27573
27574 \size small
27575 CDlabel
27576 \end_layout
27577
27578 \end_inset
27579 </cell>
27580 <cell alignment="left" valignment="top" usebox="none">
27581 \begin_inset Text
27582
27583 \begin_layout Plain Layout
27584
27585 \size small
27586 Circle with circular hole (in the size of a CD/DVD)
27587 \end_layout
27588
27589 \end_inset
27590 </cell>
27591 <cell alignment="left" valignment="top" usebox="none">
27592 \begin_inset Text
27593
27594 \begin_layout Plain Layout
27595
27596 \size small
27597 Cannot be scaled, take care there is not too much text
27598 \end_layout
27599
27600 \end_inset
27601 </cell>
27602 </row>
27603 <row interlinespace="default">
27604 <cell alignment="left" valignment="top" usebox="none">
27605 \begin_inset Text
27606
27607 \begin_layout Plain Layout
27608
27609 \size small
27610 Circle
27611 \end_layout
27612
27613 \end_inset
27614 </cell>
27615 <cell alignment="left" valignment="top" usebox="none">
27616 \begin_inset Text
27617
27618 \begin_layout Plain Layout
27619
27620 \size small
27621 Circle
27622 \end_layout
27623
27624 \end_inset
27625 </cell>
27626 <cell alignment="left" valignment="top" usebox="none">
27627 \begin_inset Text
27628
27629 \begin_layout Plain Layout
27630
27631 \size small
27632 Fragile, calculation might fail
27633 \end_layout
27634
27635 \end_inset
27636 </cell>
27637 </row>
27638 <row interlinespace="default">
27639 <cell alignment="left" valignment="top" usebox="none">
27640 \begin_inset Text
27641
27642 \begin_layout Plain Layout
27643
27644 \size small
27645 Diamond
27646 \end_layout
27647
27648 \end_inset
27649 </cell>
27650 <cell alignment="left" valignment="top" usebox="none">
27651 \begin_inset Text
27652
27653 \begin_layout Plain Layout
27654
27655 \size small
27656 Rhomboid (symbolizing a 
27657 \begin_inset Quotes eld
27658 \end_inset
27659
27660 diamond
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664 )
27665 \end_layout
27666
27667 \end_inset
27668 </cell>
27669 <cell alignment="left" valignment="top" usebox="none">
27670 \begin_inset Text
27671
27672 \begin_layout Plain Layout
27673
27674 \size small
27675 -
27676 \end_layout
27677
27678 \end_inset
27679 </cell>
27680 </row>
27681 <row interlinespace="default">
27682 <cell alignment="left" valignment="top" usebox="none">
27683 \begin_inset Text
27684
27685 \begin_layout Plain Layout
27686
27687 \size small
27688 Heart
27689 \end_layout
27690
27691 \end_inset
27692 </cell>
27693 <cell alignment="left" valignment="top" usebox="none">
27694 \begin_inset Text
27695
27696 \begin_layout Plain Layout
27697
27698 \size small
27699 Heart-like shape
27700 \end_layout
27701
27702 \end_inset
27703 </cell>
27704 <cell alignment="left" valignment="top" usebox="none">
27705 \begin_inset Text
27706
27707 \begin_layout Plain Layout
27708
27709 \size small
27710 -
27711 \end_layout
27712
27713 \end_inset
27714 </cell>
27715 </row>
27716 <row interlinespace="default">
27717 <cell alignment="left" valignment="top" usebox="none">
27718 \begin_inset Text
27719
27720 \begin_layout Plain Layout
27721
27722 \size small
27723 Hexagon
27724 \end_layout
27725
27726 \end_inset
27727 </cell>
27728 <cell alignment="left" valignment="top" usebox="none">
27729 \begin_inset Text
27730
27731 \begin_layout Plain Layout
27732
27733 \size small
27734 Hexagon
27735 \end_layout
27736
27737 \end_inset
27738 </cell>
27739 <cell alignment="left" valignment="top" usebox="none">
27740 \begin_inset Text
27741
27742 \begin_layout Plain Layout
27743
27744 \size small
27745 -
27746 \end_layout
27747
27748 \end_inset
27749 </cell>
27750 </row>
27751 <row interlinespace="default">
27752 <cell alignment="left" valignment="top" usebox="none">
27753 \begin_inset Text
27754
27755 \begin_layout Plain Layout
27756
27757 \size small
27758 Nut
27759 \end_layout
27760
27761 \end_inset
27762 </cell>
27763 <cell alignment="left" valignment="top" usebox="none">
27764 \begin_inset Text
27765
27766 \begin_layout Plain Layout
27767
27768 \size small
27769 Nut for bolt (hexagon with circular hole)
27770 \end_layout
27771
27772 \end_inset
27773 </cell>
27774 <cell alignment="left" valignment="top" usebox="none">
27775 \begin_inset Text
27776
27777 \begin_layout Plain Layout
27778
27779 \size small
27780 -
27781 \end_layout
27782
27783 \end_inset
27784 </cell>
27785 </row>
27786 <row interlinespace="default">
27787 <cell alignment="left" valignment="top" usebox="none">
27788 \begin_inset Text
27789
27790 \begin_layout Plain Layout
27791
27792 \size small
27793 Square
27794 \end_layout
27795
27796 \end_inset
27797 </cell>
27798 <cell alignment="left" valignment="top" usebox="none">
27799 \begin_inset Text
27800
27801 \begin_layout Plain Layout
27802
27803 \size small
27804 Square
27805 \end_layout
27806
27807 \end_inset
27808 </cell>
27809 <cell alignment="left" valignment="top" usebox="none">
27810 \begin_inset Text
27811
27812 \begin_layout Plain Layout
27813
27814 \size small
27815 -
27816 \end_layout
27817
27818 \end_inset
27819 </cell>
27820 </row>
27821 <row interlinespace="default">
27822 <cell alignment="left" valignment="top" usebox="none">
27823 \begin_inset Text
27824
27825 \begin_layout Plain Layout
27826
27827 \size small
27828 Star
27829 \end_layout
27830
27831 \end_inset
27832 </cell>
27833 <cell alignment="left" valignment="top" usebox="none">
27834 \begin_inset Text
27835
27836 \begin_layout Plain Layout
27837
27838 \size small
27839 Five-point star
27840 \end_layout
27841
27842 \end_inset
27843 </cell>
27844 <cell alignment="left" valignment="top" usebox="none">
27845 \begin_inset Text
27846
27847 \begin_layout Plain Layout
27848
27849 \size small
27850 -
27851 \end_layout
27852
27853 \end_inset
27854 </cell>
27855 </row>
27856 <row interlinespace="default">
27857 <cell alignment="left" valignment="top" usebox="none">
27858 \begin_inset Text
27859
27860 \begin_layout Plain Layout
27861
27862 \size small
27863 Candle
27864 \end_layout
27865
27866 \end_inset
27867 </cell>
27868 <cell alignment="left" valignment="top" usebox="none">
27869 \begin_inset Text
27870
27871 \begin_layout Plain Layout
27872
27873 \size small
27874 Burning candle
27875 \end_layout
27876
27877 \end_inset
27878 </cell>
27879 <cell alignment="left" valignment="top" usebox="none">
27880 \begin_inset Text
27881
27882 \begin_layout Plain Layout
27883
27884 \size small
27885 -
27886 \end_layout
27887
27888 \end_inset
27889 </cell>
27890 </row>
27891 <row interlinespace="default">
27892 <cell alignment="left" valignment="top" usebox="none">
27893 \begin_inset Text
27894
27895 \begin_layout Plain Layout
27896
27897 \size small
27898 Drop down/up
27899 \end_layout
27900
27901 \end_inset
27902 </cell>
27903 <cell alignment="left" valignment="top" usebox="none">
27904 \begin_inset Text
27905
27906 \begin_layout Plain Layout
27907
27908 \size small
27909 Normal/reversed rain drop
27910 \end_layout
27911
27912 \end_inset
27913 </cell>
27914 <cell alignment="left" valignment="top" usebox="none">
27915 \begin_inset Text
27916
27917 \begin_layout Plain Layout
27918
27919 \size small
27920 Fragile, calculation might fail
27921 \end_layout
27922
27923 \end_inset
27924 </cell>
27925 </row>
27926 <row interlinespace="default">
27927 <cell alignment="left" valignment="top" usebox="none">
27928 \begin_inset Text
27929
27930 \begin_layout Plain Layout
27931
27932 \size small
27933 \SpecialChar TeX
27934
27935 \end_layout
27936
27937 \end_inset
27938 </cell>
27939 <cell alignment="left" valignment="top" usebox="none">
27940 \begin_inset Text
27941
27942 \begin_layout Plain Layout
27943
27944 \size small
27945 The \SpecialChar TeX
27946  logo
27947 \end_layout
27948
27949 \end_inset
27950 </cell>
27951 <cell alignment="left" valignment="top" usebox="none">
27952 \begin_inset Text
27953
27954 \begin_layout Plain Layout
27955
27956 \size small
27957 -
27958 \end_layout
27959
27960 \end_inset
27961 </cell>
27962 </row>
27963 <row interlinespace="default">
27964 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27965 \begin_inset Text
27966
27967 \begin_layout Plain Layout
27968
27969 \size small
27970 Triangle up/down/
27971 \begin_inset Newline newline
27972 \end_inset
27973
27974 left/right
27975 \end_layout
27976
27977 \end_inset
27978 </cell>
27979 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27980 \begin_inset Text
27981
27982 \begin_layout Plain Layout
27983
27984 \size small
27985 Triangles in different orientations
27986 \end_layout
27987
27988 \end_inset
27989 </cell>
27990 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27991 \begin_inset Text
27992
27993 \begin_layout Plain Layout
27994
27995 \size small
27996 -
27997 \end_layout
27998
27999 \end_inset
28000 </cell>
28001 </row>
28002 </lyxtabular>
28003
28004 \end_inset
28005
28006
28007 \end_layout
28008
28009 \begin_layout Standard
28010 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28011 's pull-down box
28012  for environments in the toolbar.
28013 \end_layout
28014
28015 \begin_layout Standard
28016 \begin_inset Newpage newpage
28017 \end_inset
28018
28019
28020 \end_layout
28021
28022 \begin_layout Standard
28023 Here is an example paragraph in the shape of a nut:
28024 \end_layout
28025
28026 \begin_layout Standard
28027 \begin_inset VSpace bigskip
28028 \end_inset
28029
28030
28031 \end_layout
28032
28033 \begin_layout Nut
28034
28035 \lang latin
28036 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28037  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28038  voluptua.
28039  At vero eos et accusam et justo duo dolores et ea rebum.
28040  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28041  sit amet.
28042  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28043  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28044  voluptua.
28045 \end_layout
28046
28047 \begin_layout Standard
28048 \begin_inset VSpace bigskip
28049 \end_inset
28050
28051
28052 \end_layout
28053
28054 \begin_layout Standard
28055 \begin_inset Note Greyedout
28056 status open
28057
28058 \begin_layout Plain Layout
28059
28060 \series bold
28061 Note
28062 \series default
28063
28064 \family sans
28065 shapepar
28066 \family default
28067  paragraphs cannot run over a page break.
28068 \end_layout
28069
28070 \end_inset
28071
28072
28073 \end_layout
28074
28075 \begin_layout Standard
28076 \begin_inset VSpace bigskip
28077 \end_inset
28078
28079
28080 \end_layout
28081
28082 \begin_layout Standard
28083 The package 
28084 \begin_inset Flex Code
28085 status collapsed
28086
28087 \begin_layout Plain Layout
28088 shapepar
28089 \end_layout
28090
28091 \end_inset
28092
28093  takes care that the shape will always be preserved, no matter how much
28094  text is in the paragraph.
28095  Therefore the paragraph size changes with the amount of contained text.
28096  This can lead to paragraph sizes exceeding the page margins.
28097  To demonstrate the size scaling, here is the same example paragraph but
28098  with twice as much text:
28099 \end_layout
28100
28101 \begin_layout Standard
28102 \begin_inset Newpage newpage
28103 \end_inset
28104
28105
28106 \end_layout
28107
28108 \begin_layout Nut
28109
28110 \lang latin
28111 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28112  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28113  voluptua.
28114  At vero eos et accusam et justo duo dolores et ea rebum.
28115  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28116  sit amet.
28117  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28118  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28119  voluptua.
28120  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28121  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28122  voluptua.
28123  At vero eos et accusam et justo duo dolores et ea rebum.
28124  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28125  sit amet.
28126  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28127  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28128  voluptua.
28129 \end_layout
28130
28131 \begin_layout Standard
28132 \begin_inset VSpace bigskip
28133 \end_inset
28134
28135
28136 \end_layout
28137
28138 \begin_layout Standard
28139 An exception is the shape 
28140 \family sans
28141 CDlabel
28142 \family default
28143 .
28144  It cannot be scaled because it must fit the size of a CD/DVD.
28145  Therefore the amount of text that fits into the shape is limited.
28146 \begin_inset Newline newline
28147 \end_inset
28148
28149 The 
28150 \family sans
28151 drop
28152 \family default
28153  shapes and the 
28154 \family sans
28155 circle
28156 \family default
28157  shape are fragile, meaning that the calculation of their size can fail,
28158  depending on the amount of text.
28159  You will then get the \SpecialChar LaTeX
28160  error 
28161 \begin_inset Quotes eld
28162 \end_inset
28163
28164 Arithmetic overflow
28165 \begin_inset Quotes erd
28166 \end_inset
28167
28168 .
28169  In this case one can try to remove or add some text; if nothing works one
28170  has to use another shape.
28171 \end_layout
28172
28173 \begin_layout Standard
28174 \begin_inset VSpace bigskip
28175 \end_inset
28176
28177
28178 \end_layout
28179
28180 \begin_layout Standard
28181 For shapes with tips you will maybe see that \SpecialChar LaTeX
28182 's hyphenation routine fails
28183  for text in the tips.
28184  Therefore it is often necessary to add hyphenation points 
28185 \family sans
28186 (
28187 \begin_inset Info
28188 type  "shortcut"
28189 arg   "specialchar-insert hyphenation"
28190 \end_inset
28191
28192
28193 \family default
28194 ) to the corresponding text parts.
28195 \end_layout
28196
28197 \begin_layout Standard
28198 \begin_inset VSpace bigskip
28199 \end_inset
28200
28201
28202 \end_layout
28203
28204 \begin_layout Standard
28205 Shapepar paragraphs are either always centered or placed on the page so
28206  that their left border touches the left page margin.
28207  You can therefore not use the paragraph dialog to align such paragraphs.
28208  A solution is to put the paragraph into a minipage or parbox and align
28209  the box.
28210  The problem is hereby to find the right width for the box.
28211  Because if it is too wide and you center the box, the paragraph is not
28212  centered too because it sticks at the left side of the box.
28213  So you might have to play a bit with the width until it fits.
28214  Here are two heart-shaped paragraphs, the first one is not aligned, the
28215  second one is right-aligned:
28216 \end_layout
28217
28218 \begin_layout Standard
28219 \begin_inset Newpage newpage
28220 \end_inset
28221
28222
28223 \end_layout
28224
28225 \begin_layout Heart
28226 \noindent
28227
28228 \lang latin
28229 Lo\SpecialChar softhyphen
28230 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28231  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28232  voluptua.
28233  At vero eos et accusam et justo duo dolores et ea rebum.
28234  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28235  sit amet.
28236 \end_layout
28237
28238 \begin_layout Standard
28239 \begin_inset VSpace bigskip
28240 \end_inset
28241
28242
28243 \end_layout
28244
28245 \begin_layout Standard
28246 \noindent
28247 \align right
28248 \begin_inset Box Frameless
28249 position "t"
28250 hor_pos "c"
28251 has_inner_box 1
28252 inner_pos "t"
28253 use_parbox 1
28254 use_makebox 0
28255 width "42col%"
28256 special "none"
28257 height "1in"
28258 height_special "totalheight"
28259 thickness "0.4pt"
28260 separation "3pt"
28261 shadowsize "4pt"
28262 framecolor "black"
28263 backgroundcolor "none"
28264 status open
28265
28266 \begin_layout Heart
28267 \noindent
28268
28269 \lang latin
28270 Lo\SpecialChar softhyphen
28271 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28272  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28273  voluptua.
28274  At vero eos et accusam et justo duo dolores et ea rebum.
28275  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28276  sit amet.
28277 \end_layout
28278
28279 \end_inset
28280
28281
28282 \end_layout
28283
28284 \begin_layout Subsection
28285 Custom shapes
28286 \end_layout
28287
28288 \begin_layout Standard
28289 You can define any shape you want.
28290  Doing this manually is a lot of work because every coordinate must be specified.
28291  But there is a way to let the computer calculate the coordinates:
28292 \end_layout
28293
28294 \begin_layout Enumerate
28295 Install the program 
28296 \begin_inset CommandInset href
28297 LatexCommand href
28298 name "Jpgfdraw"
28299 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28300 literal "false"
28301
28302 \end_inset
28303
28304 .
28305 \end_layout
28306
28307 \begin_layout Enumerate
28308 In 
28309 \family sans
28310 Jpgfdraw
28311 \family default
28312  go to the menu 
28313 \family sans
28314 TeX/LaTeX\SpecialChar menuseparator
28315 Settings\SpecialChar menuseparator
28316 Set Normal Size
28317 \family default
28318  and select the font size you are using in your document.
28319  For example this document uses the size 12
28320 \begin_inset space \thinspace{}
28321 \end_inset
28322
28323 pt.
28324 \end_layout
28325
28326 \begin_layout Enumerate
28327 Draw a shape.
28328 \end_layout
28329
28330 \begin_layout Enumerate
28331 Use the menu 
28332 \family sans
28333 TeX/LaTeX\SpecialChar menuseparator
28334 Shapepar
28335 \family default
28336  to export the shape to coordinates.
28337  In the appearing dialog use either the outline of your shape for the coordinate
28338 s or the path itself.
28339 \begin_inset Foot
28340 status collapsed
28341
28342 \begin_layout Plain Layout
28343 For more information see 
28344 \begin_inset CommandInset href
28345 LatexCommand href
28346 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28347 literal "false"
28348
28349 \end_inset
28350
28351
28352 \end_layout
28353
28354 \end_inset
28355
28356
28357 \end_layout
28358
28359 \begin_layout Standard
28360 The coordinates are written into a \SpecialChar TeX
28361  file.
28362  To use it for your \SpecialChar LyX
28363  document
28364 \end_layout
28365
28366 \begin_layout Enumerate
28367 Place the cursor before the first character of your paragraph (or into a
28368  new empty one).
28369 \end_layout
28370
28371 \begin_layout Enumerate
28372 Open in \SpecialChar LyX
28373  the menu 
28374 \family sans
28375 Insert\SpecialChar menuseparator
28376 File\SpecialChar menuseparator
28377 Child
28378 \begin_inset space ~
28379 \end_inset
28380
28381 Document
28382 \family default
28383 , select the file and use 
28384 \family sans
28385 Input
28386 \family default
28387  as 
28388 \family sans
28389 Include Type.
28390 \end_layout
28391
28392 \begin_layout Standard
28393 \begin_inset VSpace defskip
28394 \end_inset
28395
28396
28397 \end_layout
28398
28399 \begin_layout Standard
28400 \begin_inset Note Greyedout
28401 status open
28402
28403 \begin_layout Plain Layout
28404
28405 \series bold
28406 Note
28407 \series default
28408 : The changed shape only applies to the current paragraph; everything is
28409  reset to normal for the next paragraph.
28410  Therefore the shape definition file must be input into every paragraph
28411  with the desired shape.
28412 \end_layout
28413
28414 \end_inset
28415
28416
28417 \end_layout
28418
28419 \begin_layout Standard
28420 \begin_inset VSpace bigskip
28421 \end_inset
28422
28423
28424 \end_layout
28425
28426 \begin_layout Standard
28427 Here is an example:
28428 \end_layout
28429
28430 \begin_layout Standard
28431 \begin_inset VSpace bigskip
28432 \end_inset
28433
28434
28435 \end_layout
28436
28437 \begin_layout Standard
28438 \begin_inset CommandInset include
28439 LatexCommand input
28440 filename "SpecialParagraphShape.tex"
28441 literal "true"
28442
28443 \end_inset
28444
28445
28446 \lang latin
28447 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28448  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28449  voluptua.
28450  At vero eos et accusam et justo duo dolores et ea rebum.
28451  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28452  sit amet.
28453  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28454  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28455  voluptua.
28456 \end_layout
28457
28458 \begin_layout Standard
28459 \begin_inset VSpace bigskip
28460 \end_inset
28461
28462
28463 \end_layout
28464
28465 \begin_layout Standard
28466
28467 \series bold
28468 A tip:
28469 \series default
28470  to draw complexer shapes in 
28471 \family sans
28472 Jpgfdraw
28473 \family default
28474  you can draw the shape in a program of your choice and import the resulting
28475  image to 
28476 \family sans
28477 Jpgfdraw
28478 \family default
28479 .
28480  Then you only need to draw a line or spline along the outline of the image.
28481 \end_layout
28482
28483 \begin_layout Standard
28484 \begin_inset VSpace bigskip
28485 \end_inset
28486
28487
28488 \end_layout
28489
28490 \begin_layout Standard
28491 The module 
28492 \family sans
28493 Custom paragraph shapes
28494 \family default
28495  also provides the two commands 
28496 \family sans
28497 shapepar
28498 \family default
28499  and 
28500 \family sans
28501 Shapepar
28502 \family default
28503  which can be used to define custom shapes coordinate by coordinate.
28504 \begin_inset Foot
28505 status collapsed
28506
28507 \begin_layout Plain Layout
28508 These commands are internally used for all shapes described here.
28509 \end_layout
28510
28511 \end_inset
28512
28513  For information how these styles are used and about further customization
28514  possibilities, have a look at the 
28515 \begin_inset CommandInset href
28516 LatexCommand href
28517 name "documentation"
28518 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28519 literal "false"
28520
28521 \end_inset
28522
28523  of the package 
28524 \begin_inset Flex Code
28525 status collapsed
28526
28527 \begin_layout Plain Layout
28528 shapepar
28529 \end_layout
28530
28531 \end_inset
28532
28533 .
28534 \end_layout
28535
28536 \end_body
28537 \end_document