]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move Hollywood section into new Chapter 3 Document classes
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871 Koma-Script
2872 \end_layout
2873
2874 \begin_layout Standard
2875 by 
2876 \noun on
2877 Bernd Rellermeyer
2878 \end_layout
2879
2880 \begin_layout Subsubsection
2881 Overview
2882 \end_layout
2883
2884 \begin_layout Standard
2885 The \SpecialChar LyX
2886  document classes 
2887 \emph on
2888 article (koma-script)
2889 \emph default
2890
2891 \emph on
2892 report (koma-script)
2893 \emph default
2894
2895 \emph on
2896 book
2897 \emph default
2898  
2899 \emph on
2900 (koma-script)
2901 \emph default
2902 , and 
2903 \emph on
2904 letter
2905 \emph default
2906  
2907 \emph on
2908 (koma-script)
2909 \emph default
2910  correspond to the \SpecialChar LaTeX
2911  document classes 
2912 \family typewriter
2913 scrartcl.cls
2914 \family default
2915
2916 \family typewriter
2917 scrreprt.cls
2918 \family default
2919
2920 \family typewriter
2921 scrbook.cls
2922 \family default
2923 , and 
2924 \family typewriter
2925 scrlettr.cls
2926 \family default
2927 , resp.
2928 \begin_inset space ~
2929 \end_inset
2930
2931 of the Koma-Script family.
2932  They are replacements for the standard document classes 
2933 \family typewriter
2934 article.cls
2935 \family default
2936
2937 \family typewriter
2938 report.cls
2939 \family default
2940
2941 \family typewriter
2942 book.cls
2943 \family default
2944  and 
2945 \family typewriter
2946 letter.cls
2947 \family default
2948 , resp., and fit better to European typography conventions in a number of
2949  points.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Standard character size is 11pt in 
2954 \emph on
2955 article (koma-script)
2956 \emph default
2957
2958 \emph on
2959 report (koma-script)
2960 \emph default
2961 , and 
2962 \emph on
2963 book (koma-script)
2964 \emph default
2965 , and 12pt in 
2966 \emph on
2967 letter (koma-script)
2968 \emph default
2969 .
2970 \end_layout
2971
2972 \begin_layout Itemize
2973 Headings, labels of the description environment, and a number of elements
2974  of the 
2975 \emph on
2976 letter (koma-script)
2977 \emph default
2978  document class are set in a bold sans serif font.
2979 \begin_inset Foot
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 There is a big difference between the bold sans serif old cm fonts and new
2984  ec fonts, especially in the appearance of headings.
2985  In comparison, the ec bold sans serif fonts look a bit thin.
2986  Here the \SpecialChar LaTeX
2987  package 
2988 \family typewriter
2989 cmsd.sty by
2990 \family default
2991  
2992 \shape smallcaps
2993 Walter Schmidt
2994 \shape default
2995  helps to produce the 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 usual
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  appearance when using the ec fonts.
3004 \end_layout
3005
3006 \end_inset
3007
3008  The numbering of chapter headings is made in the same way as the numbering
3009  of section headings, that is without the extra line 
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013 Chapter\SpecialChar ldots
3014
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018 .
3019  In addition, the appearance of the headings can be modified by using a
3020  number of options (in \SpecialChar LyX
3021  to be entered in the field 
3022 \family sans
3023 Extra
3024 \begin_inset space ~
3025 \end_inset
3026
3027 Options
3028 \family default
3029  of the dialog 
3030 \family sans
3031 Layout\SpecialChar menuseparator
3032 Document
3033 \family default
3034 ).
3035  
3036 \end_layout
3037
3038 \begin_layout Itemize
3039 The main means in the Koma-Script document classes to design the type area
3040  are the options 
3041 \family sans
3042 BCOR
3043 \family default
3044  and 
3045 \family sans
3046 DIV
3047 \family default
3048  (in \SpecialChar LyX
3049  to be entered in the extra class options field in the dialog 
3050 \family sans
3051 Document\SpecialChar menuseparator
3052 Settings
3053 \family default
3054 ).
3055  They make a clearer modification of page margins possible as do the options
3056  of the dialog 
3057 \family sans
3058 Document\SpecialChar menuseparator
3059 Settings
3060 \family default
3061 .
3062  
3063 \end_layout
3064
3065 \begin_layout Itemize
3066 The \SpecialChar LaTeX
3067  document classes of the Koma-Script family define a number of additional
3068  commands.
3069  Those part of it which makes sense in \SpecialChar LyX
3070  is implemented in corresponding
3071  paragraph types.
3072 \end_layout
3073
3074 \begin_layout Standard
3075 Detailed descriptions of the \SpecialChar LaTeX
3076  document classes of the Koma-Script family
3077  can be found in the Koma-Script documentation 
3078 \emph on
3079 scrguide
3080 \emph default
3081  (German) and 
3082 \emph on
3083 scrguien
3084 \emph default
3085  (English).
3086 \end_layout
3087
3088 \begin_layout Subsubsection
3089 article (koma-script), report (koma-script), and book (koma-script)
3090 \end_layout
3091
3092 \begin_layout Standard
3093 The document classes 
3094 \emph on
3095 article (koma-script)
3096 \emph default
3097
3098 \emph on
3099 report (koma-script)
3100 \emph default
3101 , and 
3102 \emph on
3103 book
3104 \emph default
3105  
3106 \emph on
3107 (koma-script)
3108 \emph default
3109  are implemented in the layout files 
3110 \family typewriter
3111 scrartcl.layout
3112 \family default
3113
3114 \family typewriter
3115 scrreprt.layout
3116 \family default
3117 , and 
3118 \family typewriter
3119 scrbook.layout
3120 \family default
3121 , resp.
3122  They contain all the paragraph types of the corresponding standard document
3123  classes 
3124 \emph on
3125 article
3126 \emph default
3127
3128 \emph on
3129 report
3130 \emph default
3131 , and 
3132 \emph on
3133 book
3134 \emph default
3135 , resp., partly modified, with the exception of the \SpecialChar LyX
3136  specific 
3137 \family sans
3138 List
3139 \family default
3140 -type, which is replaced by the new 
3141 \family sans
3142 Labeling
3143 \family default
3144 -type having the same functionality.
3145  Beside the 
3146 \family sans
3147 Labeling
3148 \family default
3149 -Type there is a number of new paragraph types added.
3150  They are 
3151 \emph on
3152 not
3153 \emph default
3154  part of 
3155 \emph on
3156 letter (koma-script)
3157 \emph default
3158 .
3159 \end_layout
3160
3161 \begin_layout Itemize
3162
3163 \family sans
3164 Addpart, Addchap
3165 \family default
3166
3167 \family sans
3168 Addsec
3169 \family default
3170 : are equivalents to 
3171 \family sans
3172 Part*, Chapter*
3173 \family default
3174  and 
3175 \family sans
3176 Section*
3177 \family default
3178 , resp., additionally inserting an entry in the table of contents.
3179  
3180 \family sans
3181 Addpart
3182 \family default
3183  and 
3184 \family sans
3185 Addchap
3186 \family default
3187  are not contained in 
3188 \emph on
3189 article (koma-script)
3190 \emph default
3191 .
3192 \end_layout
3193
3194 \begin_layout Itemize
3195
3196 \family sans
3197 Addchap*
3198 \family default
3199
3200 \family sans
3201 Addsec*
3202 \family default
3203 : behave exactly as 
3204 \family sans
3205 Addchap
3206 \family default
3207  and 
3208 \family sans
3209 Addsec
3210 \family default
3211 , resp., additionally clearing running heads.
3212  
3213 \family sans
3214 Addchap*
3215 \family default
3216  is not contained in 
3217 \emph on
3218 article (koma-script)
3219 \emph default
3220 .
3221 \begin_inset Foot
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 There is also an 
3226 \family typewriter
3227
3228 \backslash
3229 addpart*
3230 \family default
3231  command in 
3232 \emph on
3233 book (koma-script)
3234 \emph default
3235  and in 
3236 \emph on
3237 report (koma-script)
3238 \emph default
3239 , but since this is identical to 
3240 \family sans
3241 Part*
3242 \family default
3243 , is has not been implemented in \SpecialChar LyX
3244 .
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Itemize
3253
3254 \family sans
3255 Minisec
3256 \family default
3257 : generates a heading directly above the following paragraph in the standard
3258  character size without affecting the structure of the document.
3259 \end_layout
3260
3261 \begin_layout Itemize
3262
3263 \family sans
3264 Captionabove
3265 \family default
3266  and 
3267 \family sans
3268 Captionbelow
3269 \family default
3270  are special captions which respect the different space settings needed
3271  for captions placed above or below an element (if you follow strict typographic
3272  rules, you might want to place table captions always above the table).
3273  You can also use the class option 
3274 \family typewriter
3275 tablecaptionsabove
3276 \family default
3277 , which will switch 
3278 \family sans
3279 caption
3280 \family default
3281  to 
3282 \family sans
3283 captionabove
3284 \family default
3285  for tables and 
3286 \family sans
3287 captionbelow
3288 \family default
3289  for figures.
3290  You need at least Koma-Script version 2.8q to use this.
3291 \end_layout
3292
3293 \begin_layout Itemize
3294
3295 \family sans
3296 Dictum
3297 \family default
3298 : can be used to set a bonmot, e.
3299 \begin_inset space \thinspace{}
3300 \end_inset
3301
3302 g.
3303 \begin_inset space \space{}
3304 \end_inset
3305
3306 at the beginning of a chapter.
3307  If you use the optional argument (
3308 \family sans
3309 Insert\SpecialChar menuseparator
3310 Dictum
3311 \begin_inset space ~
3312 \end_inset
3313
3314 Author
3315 \family default
3316 ), you can insert the dictum's author there.
3317  Dictum and author are separated by a line.
3318  You need at least Koma-Script version 2.8q to use this.
3319  
3320 \family sans
3321 Dictum
3322 \family default
3323  is not contained in 
3324 \emph on
3325 article (koma-script)
3326 \emph default
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 The following types, together with the standard types 
3332 \family sans
3333 Title
3334 \family default
3335
3336 \family sans
3337 Author
3338 \family default
3339 , and 
3340 \family sans
3341 Date
3342 \family default
3343 , form the title area of the document.
3344  They must be entered ahead of the first 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 ordinary
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  paragraph.
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 The corresponding \SpecialChar LaTeX
3358  commands must appear before the 
3359 \family typewriter
3360
3361 \backslash
3362 maketitle
3363 \family default
3364  command.
3365 \end_layout
3366
3367 \end_inset
3368
3369  When such a type is used more than once, the latter usage overwrites the
3370  former one, that means, for every type only the latest usage is valid.
3371  The order of the different types however has, like 
3372 \family sans
3373 Title
3374 \family default
3375
3376 \family sans
3377 Author
3378 \family default
3379 , and 
3380 \family sans
3381 Date
3382 \family default
3383 , no effect on the appearance of the produced document.
3384 \end_layout
3385
3386 \begin_layout Itemize
3387
3388 \family sans
3389 Subject
3390 \family default
3391 : produces a centered paragraph above the ordinary title (
3392 \family sans
3393 Title
3394 \family default
3395
3396 \family sans
3397 Author
3398 \family default
3399
3400 \family sans
3401 Date
3402 \family default
3403 ) for the subject of the document.
3404 \end_layout
3405
3406 \begin_layout Itemize
3407
3408 \family sans
3409 Publishers
3410 \family default
3411 : produces a centered paragraph below the ordinary title (
3412 \family sans
3413 Title
3414 \family default
3415
3416 \family sans
3417 Author
3418 \family default
3419
3420 \family sans
3421 Date
3422 \family default
3423 ) for the publishers' name.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family sans
3429 Dedication
3430 \family default
3431 : in 
3432 \emph on
3433 report (koma-script)
3434 \emph default
3435  and 
3436 \emph on
3437 book (koma-script)
3438 \emph default
3439  produces a centered paragraph on its own page behind the title page, or
3440  in 
3441 \emph on
3442 article (koma-script)
3443 \emph default
3444  produces a centered paragraph below the ordinary title (
3445 \family sans
3446 Title
3447 \family default
3448
3449 \family sans
3450 Author
3451 \family default
3452
3453 \family sans
3454 Date
3455 \family default
3456
3457 \family sans
3458 Publishers
3459 \family default
3460 ) for a dedication.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464
3465 \family sans
3466 Titlehead
3467 \family default
3468 : produces a left aligned paragraph above the ordinary title (
3469 \family sans
3470 Title
3471 \family default
3472
3473 \family sans
3474 Author
3475 \family default
3476
3477 \family sans
3478 Date
3479 \family default
3480
3481 \family sans
3482 Subject
3483 \family default
3484 ) for a document`s head.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Uppertitleback
3491 \family default
3492 : produces in a double-sided print in 
3493 \emph on
3494 report (koma-script)
3495 \emph default
3496  and 
3497 \emph on
3498 book (koma-script)
3499 \emph default
3500  a left-aligned paragraph at the top of the title page`s back or has no
3501  effect in a single-sided print or in 
3502 \emph on
3503 article (koma-script)
3504 \emph default
3505 .
3506 \end_layout
3507
3508 \begin_layout Itemize
3509
3510 \family sans
3511 Lowertitleback
3512 \family default
3513 : produces in a double-sided print in 
3514 \emph on
3515 report (koma-script)
3516 \emph default
3517  and 
3518 \emph on
3519 book (koma-script)
3520 \emph default
3521  a left-aligned paragraph at the bottom of the title page`s back or has
3522  no effect in a single-sided print or in 
3523 \emph on
3524 article (koma-script)
3525 \emph default
3526 .
3527 \end_layout
3528
3529 \begin_layout Itemize
3530
3531 \family sans
3532 Extratitle
3533 \family default
3534 : produces a special 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 dirty
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  page ahead of the actual document containing a paragraph without special
3543  formatting.
3544 \end_layout
3545
3546 \begin_layout Standard
3547 The layout files for the document classes 
3548 \emph on
3549 article (koma-script)
3550 \emph default
3551
3552 \emph on
3553 report (koma-script)
3554 \emph default
3555 , and 
3556 \emph on
3557 book (koma-script)
3558 \emph default
3559  do include the file 
3560 \family typewriter
3561 scrmacros.inc
3562 \family default
3563 .
3564  This is thought of as a place to define your own types.
3565  Copy scrmacros
3566 \family typewriter
3567 .inc
3568 \family default
3569  in your personal layout directory and edit the file!
3570 \end_layout
3571
3572 \begin_layout Subsubsection
3573 letter (koma-script)
3574 \end_layout
3575
3576 \begin_layout Description
3577 Note: This section discusses the obsolete 
3578 \family sans
3579 KOMA-Script-Letter (v.
3580 \begin_inset space ~
3581 \end_inset
3582
3583 1)
3584 \family default
3585 , which is not even included anymore in recent KOMA releases.
3586  Please refer to the next section for the current KOMA-Script-Letter class
3587  (v.
3588 \begin_inset space ~
3589 \end_inset
3590
3591 2)!
3592 \end_layout
3593
3594 \begin_layout Standard
3595 \noindent
3596 The document class 
3597 \emph on
3598 letter (koma-script)
3599 \emph default
3600  is implemented in the layout file 
3601 \family typewriter
3602 scrlettr.layout
3603 \family default
3604 .
3605  It contains all the paragraph types of the corresponding standard document
3606  class 
3607 \emph on
3608 letter
3609 \emph default
3610 , partly modified, with the exception of the \SpecialChar LyX
3611  specific types 
3612 \family sans
3613 \SpecialChar LyX
3614 -Code
3615 \family default
3616  and 
3617 \family sans
3618 Comment
3619 \family default
3620  and the 
3621 \family sans
3622 List
3623 \family default
3624  type, which is replaced by the new 
3625 \family sans
3626 Labeling
3627 \family default
3628  type.
3629  In addition, it contains, in contrast to the standard document class, the
3630  standard types 
3631 \family sans
3632 \SpecialChar LaTeX
3633
3634 \family default
3635
3636 \family sans
3637 Quotation
3638 \family default
3639
3640 \family sans
3641 Quote
3642 \family default
3643 , and 
3644 \family sans
3645 Verse
3646 \family default
3647 .
3648  Furthermore, there are a number of new letter specific types.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 The appearance of the letter produced by this document class can be controlled
3653  by a number of \SpecialChar LaTeX
3654  commands, which you can put in the \SpecialChar LaTeX
3655  preamble.
3656 \begin_inset Foot
3657 status collapsed
3658
3659 \begin_layout Plain Layout
3660 For example, the standard appearance of the letter`s heading, consisting
3661  of name and address, is quite self-willed.
3662  An 
3663 \begin_inset Quotes eld
3664 \end_inset
3665
3666 ordinary
3667 \begin_inset Quotes erd
3668 \end_inset
3669
3670  heading is produced by the following \SpecialChar LaTeX
3671  commands in the preamble:
3672 \end_layout
3673
3674 \begin_layout LyX-Code
3675
3676 \backslash
3677 firsthead{
3678 \backslash
3679 parbox[b]{
3680 \backslash
3681 textwidth}
3682 \end_layout
3683
3684 \begin_layout LyX-Code
3685   {
3686 \backslash
3687 ignorespaces 
3688 \backslash
3689 fromname
3690 \backslash
3691
3692 \backslash
3693  
3694 \backslash
3695 ignorespaces 
3696 \backslash
3697 fromaddress}} 
3698 \end_layout
3699
3700 \begin_layout LyX-Code
3701
3702 \backslash
3703 nexthead{
3704 \backslash
3705 parbox[b]{
3706 \backslash
3707 textwidth}
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711   {
3712 \backslash
3713 ignorespaces 
3714 \backslash
3715 fromname 
3716 \backslash
3717 hfill 
3718 \backslash
3719 ignorespaces 
3720 \backslash
3721 pagename
3722 \backslash
3723  
3724 \backslash
3725 thepage}}
3726 \end_layout
3727
3728 \end_inset
3729
3730  A detailed German description of such \SpecialChar LaTeX
3731  commands can be found in the Koma-Script
3732  documentation 
3733 \emph on
3734 scrguide
3735 \emph default
3736 .
3737  With it, the letter's author can produce his personal letter layout.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The types 
3742 \family sans
3743 Letter
3744 \family default
3745  and 
3746 \family sans
3747 Opening
3748 \family default
3749  define the beginning of the letter and must be used in every letter.
3750  To emphasize them in the \SpecialChar LyX
3751  document class, they are marked with the letter
3752  
3753 \shape italic
3754 L
3755 \shape default
3756  or 
3757 \shape italic
3758 O
3759 \shape default
3760 , resp.
3761 \begin_inset space ~
3762 \end_inset
3763
3764 in the left margin.
3765  It is possible to write any number of letters in one file.
3766  An 
3767 \family sans
3768 Opening
3769 \family default
3770  type produces a new letter using the same addressee and a 
3771 \family sans
3772 Letter
3773 \family default
3774  type produces a new addressee.
3775  The types 
3776 \family sans
3777 Closing
3778 \family default
3779
3780 \family sans
3781 PS
3782 \family default
3783
3784 \family sans
3785 CC
3786 \family default
3787 , and 
3788 \family sans
3789 Encl
3790 \family default
3791  are ordinary paragraph types and can also be used several times in one
3792  and the same letter.
3793 \end_layout
3794
3795 \begin_layout Itemize
3796
3797 \family sans
3798 Letter
3799 \family default
3800 : produces a paragraph for the addressee and implicitly defines the beginning
3801  of the letter.
3802 \end_layout
3803
3804 \begin_layout Itemize
3805
3806 \family sans
3807 Opening
3808 \family default
3809 : produces a paragraph for the form of address and implicitly produces a
3810  new letter.
3811 \end_layout
3812
3813 \begin_layout Itemize
3814
3815 \family sans
3816 Closing
3817 \family default
3818 : produces a paragraph for a close.
3819 \end_layout
3820
3821 \begin_layout Itemize
3822
3823 \family sans
3824 PS
3825 \family default
3826 : produces a paragraph for a postscript.
3827 \end_layout
3828
3829 \begin_layout Itemize
3830
3831 \family sans
3832 CC
3833 \family default
3834 : produces a paragraph for a distribution list.
3835 \end_layout
3836
3837 \begin_layout Itemize
3838
3839 \family sans
3840 Encl
3841 \family default
3842 : produces a paragraph for enclosures.
3843 \end_layout
3844
3845 \begin_layout Standard
3846 The types 
3847 \family sans
3848 Name
3849 \family default
3850
3851 \family sans
3852 Signature
3853 \family default
3854
3855 \family sans
3856 Address
3857 \family default
3858
3859 \family sans
3860 Telephone
3861 \family default
3862
3863 \family sans
3864 Place
3865 \family default
3866
3867 \family sans
3868 Backaddress
3869 \family default
3870
3871 \family sans
3872 Specialmail
3873 \family default
3874
3875 \family sans
3876 Location
3877 \family default
3878
3879 \family sans
3880 Title
3881 \family default
3882 , and 
3883 \family sans
3884 Subject
3885 \family default
3886  are input types provided with a label to enter information, which will
3887  be processed by the document class.
3888 \begin_inset Foot
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 It could be seen as a matter of inconsequence, that the types 
3893 \family sans
3894 Letter
3895 \family default
3896  and 
3897 \family sans
3898 Opening
3899 \family default
3900  described above are not such input types as well.
3901  Because of the special meaning of those types, however, I have implemented
3902  them as ordinary paragraph types with a one letter mark in the left margin.
3903  Moreover, it would affect my feeling of symmetry, if the 
3904 \family sans
3905 Opening
3906 \family default
3907  type and the 
3908 \family sans
3909 Closing
3910 \family default
3911  type had such a serious different appearance.
3912 \end_layout
3913
3914 \end_inset
3915
3916  The types must be used ahead of the corresponding 
3917 \family sans
3918 Opening
3919 \family default
3920  type.
3921 \end_layout
3922
3923 \begin_layout Standard
3924 An implementation of these types in a WYSIWYG fashion does not seem to make
3925  sense, because the real appearance of the produced letter does not only
3926  depend on the usage of the particular type, but also on other factors.
3927  For example, a signature entered in the 
3928 \family sans
3929 Signature
3930 \family default
3931  type will in the standard behavior appear in the produced letter only,
3932  when in the same letter also a 
3933 \family sans
3934 Closing
3935 \family default
3936  type is used.
3937  The entered value of the 
3938 \family sans
3939 Telephone
3940 \family default
3941  type will in the standard behavior not appear in the produced letter at
3942  all.
3943  The possibility to design the letter`s heading freely is already indicated
3944  in a footnote above.
3945 \end_layout
3946
3947 \begin_layout Standard
3948 The input types can also be used as empty paragraphs.
3949  This makes sense e.
3950 \begin_inset space \thinspace{}
3951 \end_inset
3952
3953 g.
3954 \begin_inset space \space{}
3955 \end_inset
3956
3957 for the 
3958 \family sans
3959 Signature
3960 \family default
3961  type.
3962  If the 
3963 \family sans
3964 Signature
3965 \family default
3966  type is not used at all, in the standard behavior the value of the 
3967 \family sans
3968 Name
3969 \family default
3970  type is used as signature, whereas if an empty 
3971 \family sans
3972 Signature
3973 \family default
3974  type is used, no signature value is defined.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 By using the input types it is possible to write a letter template, containing
3979  filled input types with your personal dates (name, address, etc.) and empty
3980  input types for other dates you want to enter.
3981 \end_layout
3982
3983 \begin_layout Itemize
3984
3985 \family sans
3986 Name
3987 \family default
3988 : sender's name, in the standard behavior appears as a centered paragraph
3989  in small caps in the letter`s heading.
3990 \end_layout
3991
3992 \begin_layout Itemize
3993
3994 \family sans
3995 Signature
3996 \family default
3997 : sender's signature, in the standard behavior appears below the 
3998 \family sans
3999 Closing
4000 \family default
4001  type.
4002  If no 
4003 \family sans
4004 Signature
4005 \family default
4006  type is used, the value of the 
4007 \family sans
4008 Name
4009 \family default
4010  type appears instead.
4011 \end_layout
4012
4013 \begin_layout Itemize
4014
4015 \family sans
4016 Address
4017 \family default
4018 : sender's address, in the standard behavior appears in a centered paragraph
4019  in the letter`s heading below the sender's name.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Telephone
4026 \family default
4027 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4028  variable
4029  
4030 \family typewriter
4031
4032 \backslash
4033 telephonenum
4034 \family default
4035 .
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Place
4042 \family default
4043 : place of the letter`s making.
4044 \end_layout
4045
4046 \begin_layout Itemize
4047
4048 \family sans
4049 Date
4050 \family default
4051 : date of the letter`s making.
4052  
4053 \family sans
4054 Place
4055 \family default
4056  and 
4057 \family sans
4058 Date
4059 \family default
4060 , in the standard behavior, produce the place and the date in a right-aligned
4061  line below the addressee's field.
4062  If an empty 
4063 \family sans
4064 Date
4065 \family default
4066  type is used, neither place nor date appear, independent of the value of
4067  the 
4068 \family sans
4069 Place
4070 \family default
4071  type.
4072  If no 
4073 \family sans
4074 Date
4075 \family default
4076  type is used, the date of the letter `s production is used.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Backaddress
4083 \family default
4084 : sender`s back address, in the standard behavior appears above the addressee's
4085  field in a small sans serif font.
4086 \end_layout
4087
4088 \begin_layout Itemize
4089
4090 \family sans
4091 Specialmail
4092 \family default
4093 : special mail information, in the standard behavior appears underlined
4094  above the addressee's field below the back address.
4095 \end_layout
4096
4097 \begin_layout Itemize
4098
4099 \family sans
4100 Location
4101 \family default
4102 : additional information, in the standard behavior appears on right side
4103  below the addressee`s field.
4104 \end_layout
4105
4106 \begin_layout Itemize
4107
4108 \family sans
4109 Title
4110 \family default
4111 : the letter's title, in the standard behavior appears in a big, bold, sans
4112  serif font above the subject.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \family sans
4118 Subject
4119 \family default
4120 : the letter's subject, in the standard behavior appears in a bold font
4121  above the 
4122 \family sans
4123 Opening
4124 \family default
4125  paragraph.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 The types 
4130 \family sans
4131 Yourref
4132 \family default
4133
4134 \family sans
4135 Yourmail
4136 \family default
4137
4138 \family sans
4139 Myref
4140 \family default
4141
4142 \family sans
4143 Customer
4144 \family default
4145 , and 
4146 \family sans
4147 Invoice
4148 \family default
4149  produce a business letter like line above the 
4150 \family sans
4151 Title
4152 \family default
4153  line containing the fields 
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Your ref.
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Your letter of
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Our ref.
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Customer no.
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185
4186 \begin_inset Quotes eld
4187 \end_inset
4188
4189 Invoice no.
4190 \begin_inset Quotes erd
4191 \end_inset
4192
4193 , and 
4194 \begin_inset Quotes eld
4195 \end_inset
4196
4197 Date
4198 \begin_inset Quotes erd
4199 \end_inset
4200
4201 .
4202  For the date field, the value of the 
4203 \family sans
4204 Date
4205 \family default
4206  type is used.
4207  If one of these 
4208 \begin_inset Quotes eld
4209 \end_inset
4210
4211 business letter types
4212 \begin_inset Quotes erd
4213 \end_inset
4214
4215  is used, the value of the 
4216 \family sans
4217 Place
4218 \family default
4219  type however does not appear, but only the \SpecialChar LaTeX
4220  variable 
4221 \family typewriter
4222
4223 \backslash
4224 fromplace
4225 \family default
4226  is set.
4227  The ordinary output of place and date in a right-aligned line below the
4228  addressee`s field is suppressed.
4229  The types are implemented as input types provided with a label and must
4230  be used ahead of the corresponding 
4231 \family sans
4232 Opening
4233 \family default
4234  type.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Yourref
4241 \family default
4242 : Your ref.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Yourmail
4249 \family default
4250 : Your letter of.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Myref
4257 \family default
4258 : Our ref.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Customer
4265 \family default
4266 : Customer no.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Invoice
4273 \family default
4274 : Invoice no.
4275 \end_layout
4276
4277 \begin_layout Subsubsection
4278 The new letter class: letter (koma-script v.2)
4279 \end_layout
4280
4281 \begin_layout Standard
4282 by 
4283 \noun on
4284 Jürgen Spitzmüller
4285 \end_layout
4286
4287 \begin_layout Standard
4288 \begin_inset VSpace medskip
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Standard
4295 \noindent
4296 Koma-Script version 2.8 has introduced a new letter class 
4297 \family typewriter
4298 scrlttr2
4299 \family default
4300  which supersedes the now unsupported 
4301 \family typewriter
4302 scrlettr
4303 \family default
4304 .
4305  It has — on the \SpecialChar LaTeX
4306  side — a completely new interface and is not compatible
4307  with the old class.
4308  Therefore, \SpecialChar LyX
4309  supports both, though it is recommended you use the new class.
4310 \end_layout
4311
4312 \begin_layout Standard
4313 This class covers the same functionality as 
4314 \emph on
4315 letter (koma-script),
4316 \emph default
4317  and a few more.
4318  The basic items are 
4319 \family sans
4320 Address
4321 \family default
4322  (receiver's address, same as 
4323 \family sans
4324 Letter
4325 \family default
4326  in the old layout), 
4327 \family sans
4328 Opening
4329 \family default
4330 , and 
4331 \family sans
4332 Closing
4333 \family default
4334 .
4335  
4336 \family sans
4337 NextAddress
4338 \family default
4339  will start a new letter (i.
4340 \begin_inset space \thinspace{}
4341 \end_inset
4342
4343 e.
4344 \begin_inset space \space{}
4345 \end_inset
4346
4347 you can write several letters per document).
4348  New elements are sender's 
4349 \family sans
4350 E-Mail
4351 \family default
4352
4353 \family sans
4354 URL
4355 \family default
4356
4357 \family sans
4358 Fax
4359 \family default
4360
4361 \family sans
4362 Bank
4363 \family default
4364  and the possibility to use a 
4365 \family sans
4366 Logo
4367 \family default
4368  (via 
4369 \family sans
4370 Insert\SpecialChar menuseparator
4371 Graphics
4372 \family default
4373 ) in the header.
4374 \end_layout
4375
4376 \begin_layout Standard
4377 The biggest improvement is, though, that the letter's layout is configurable
4378  to meet almost any needs.
4379  This can be done via the preamble or with a special style file (Letter
4380  Class Option, extension 
4381 \family typewriter
4382 *.lco
4383 \family default
4384 ), that will be read in as a class option.
4385 \begin_inset Foot
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 The KOMA package comes with some default 
4390 \family typewriter
4391 *.lco
4392 \family default
4393  files.
4394  There is, for instance, a 
4395 \family typewriter
4396 DIN.lco
4397 \family default
4398  file that follows german typesetting rules, or a 
4399 \family typewriter
4400 KOMAold.lco
4401 \family default
4402  that provides the default layout of the old 
4403 \family typewriter
4404 scrlettr
4405 \family default
4406  class.
4407  The latter can be loaded with the class option 
4408 \family typewriter
4409 KOMAold
4410 \family default
4411 , inserted via the 
4412 \family sans
4413 Layout\SpecialChar menuseparator
4414 Document\SpecialChar menuseparator
4415 Extra Options
4416 \family default
4417  field.
4418 \end_layout
4419
4420 \end_inset
4421
4422  Have a look at the 
4423 \emph on
4424 koma-letter2
4425 \emph default
4426  template that is included in \SpecialChar LyX
4427  for examples.
4428  A detailed description is to be found in the Koma-Script documentation
4429  (
4430 \emph on
4431 scrguide
4432 \emph default
4433 ).
4434 \end_layout
4435
4436 \begin_layout Subsubsection
4437 Problems
4438 \end_layout
4439
4440 \begin_layout Standard
4441 Visualizing the Koma-Script document classes in \SpecialChar LyX
4442 , the \SpecialChar LyX
4443  internals cause some
4444  problems.
4445 \end_layout
4446
4447 \begin_layout Itemize
4448 The chapter number of a 
4449 \family sans
4450 Chapter
4451 \family default
4452  type appears on a line of its own above the chapter heading instead of
4453  appearing in the same line ahead of it.
4454  The cause for that is the \SpecialChar LyX
4455  internal behavior for the labeltype 
4456 \family sans
4457 Counter_Chapter
4458 \family default
4459  in the layout file.
4460 \end_layout
4461
4462 \begin_layout Itemize
4463 The headings of the types 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471  are only put in the 
4472 \begin_inset Quotes eld
4473 \end_inset
4474
4475 true
4476 \begin_inset Quotes erd
4477 \end_inset
4478
4479  \SpecialChar LaTeX
4480  table of contents, but not in the \SpecialChar LyX
4481  table of contents (
4482 \family sans
4483 Document\SpecialChar menuseparator
4484 Table
4485 \begin_inset space ~
4486 \end_inset
4487
4488 of
4489 \begin_inset space ~
4490 \end_inset
4491
4492 Contents
4493 \family default
4494 ).
4495 \end_layout
4496
4497 \begin_layout Itemize
4498 The paragraphs in a 
4499 \emph on
4500 letter
4501 \emph default
4502  document class appear in a skip separation mode, not indented.
4503  This is the standard behavior, no special \SpecialChar LaTeX
4504  commands are needed for that.
4505  But in the 
4506 \family sans
4507 Document\SpecialChar menuseparator
4508 Settings
4509 \family default
4510  dialog the corresponding radio button indicates 
4511 \family sans
4512 Indent
4513 \family default
4514 .
4515  A 
4516 \family sans
4517 Skip
4518 \family default
4519  value always has the effect that extra \SpecialChar LaTeX
4520  commands are inserted in the document
4521  to produce the gap, which is not what is wanted in this case.
4522 \end_layout
4523
4524 \begin_layout Section
4525
4526 \change_inserted 564990737 1670439534
4527 Articles
4528 \end_layout
4529
4530 \begin_layout Standard
4531
4532 \change_inserted 564990737 1670439557
4533 See also the document classes in the Collections (section
4534 \begin_inset space ~
4535 \end_inset
4536
4537
4538 \begin_inset CommandInset ref
4539 LatexCommand ref
4540 reference "sec:Collections"
4541
4542 \end_inset
4543
4544 ).
4545 \end_layout
4546
4547 \begin_layout Section
4548
4549 \change_inserted 564990737 1670439560
4550 Books
4551 \end_layout
4552
4553 \begin_layout Standard
4554
4555 \change_inserted 564990737 1670439581
4556 See also the document classes in the Collections (section
4557 \begin_inset space ~
4558 \end_inset
4559
4560
4561 \begin_inset CommandInset ref
4562 LatexCommand ref
4563 reference "sec:Collections"
4564
4565 \end_inset
4566
4567 ).
4568 \end_layout
4569
4570 \begin_layout Subsection
4571 Memoir
4572 \end_layout
4573
4574 \begin_layout Standard
4575 By 
4576 \noun on
4577 Jürgen Spitzmüller
4578 \end_layout
4579
4580 \begin_layout Subsubsection
4581 Overview
4582 \end_layout
4583
4584 \begin_layout Standard
4585 Memoir is a very powerful and constantly evolving class.
4586  It has been designed with regard to fictional and non-fictional literature.
4587  Its aim is to let the user have maximum control over the typesetting of
4588  his document.
4589  Memoir is based on the standard book class, but it can also emulate the
4590  article class (see below).
4591 \end_layout
4592
4593 \begin_layout Standard
4594 Peter Wilson, the developer of Memoir, is known as the author of lots of
4595  useful packages in the \SpecialChar LaTeX
4596  world.
4597  Most of them have been merged with Memoir.
4598  Therefore, it is much easier to layout the table of contents, appendices,
4599  chapter designs and such.
4600  \SpecialChar LyX
4601 , though, does not support all of these goodies natively.
4602  Some of them might be added to forthcoming releases
4603 \begin_inset Foot
4604 status collapsed
4605
4606 \begin_layout Plain Layout
4607 You are invited to send suggestions to 
4608 \begin_inset Flex URL
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612
4613 lyx-devel@lists.lyx.org
4614 \end_layout
4615
4616 \end_inset
4617
4618 .
4619 \end_layout
4620
4621 \end_inset
4622
4623 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
4624 's framework.
4625  Of course you can still use all features with the help of some native \SpecialChar LaTeX
4626
4627  commands (\SpecialChar TeX
4628  code
4629 \begin_inset Foot
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633 Cf.
4634 \begin_inset ERT
4635 status collapsed
4636
4637 \begin_layout Plain Layout
4638
4639
4640 \backslash
4641  
4642 \end_layout
4643
4644 \end_inset
4645
4646 section
4647 \begin_inset space ~
4648 \end_inset
4649
4650
4651 \begin_inset CommandInset ref
4652 LatexCommand ref
4653 reference "sec:Inserting-TeX-Code"
4654
4655 \end_inset
4656
4657  for details.
4658 \end_layout
4659
4660 \end_inset
4661
4662 ).
4663  In this section, we can only list those features that are natively supported
4664  by \SpecialChar LyX
4665 .
4666  For detailed descriptions (and for the rest of features) we recommend you
4667  have a look at the detailed manual of the Memoir class
4668 \begin_inset Foot
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672 Cf.
4673 \begin_inset ERT
4674 status collapsed
4675
4676 \begin_layout Plain Layout
4677
4678
4679 \backslash
4680  
4681 \end_layout
4682
4683 \end_inset
4684
4685
4686 \begin_inset Flex URL
4687 status collapsed
4688
4689 \begin_layout Plain Layout
4690
4691 CTAN:/macros/latex/memoir/memman.pdf
4692 \end_layout
4693
4694 \end_inset
4695
4696 .
4697 \end_layout
4698
4699 \end_inset
4700
4701 , which is not only a user guide for the class, but also both a comprehensive
4702  description on good typesetting and a superb example for good typesetting
4703  itself.
4704 \end_layout
4705
4706 \begin_layout Subsubsection
4707 Basic features and restrictions
4708 \end_layout
4709
4710 \begin_layout Standard
4711 Memoir supports basically all features of the standard book classes.
4712  There are, however, some differences, as follows:
4713 \end_layout
4714
4715 \begin_layout Description
4716 Font
4717 \begin_inset space ~
4718 \end_inset
4719
4720 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
4721 \end_layout
4722
4723 \begin_layout Description
4724 Page
4725 \begin_inset space ~
4726 \end_inset
4727
4728 style: The fancy page style is not supported, due to a command clash between
4729  Memoir and the fancyhdr package (they both define a command with the same
4730  name, which confuses \SpecialChar LaTeX
4731 ).
4732  Instead, Memoir comes with a number of its own page styles (see 
4733 \family sans
4734 Document\SpecialChar menuseparator
4735 Settings\SpecialChar menuseparator
4736 Page
4737 \begin_inset space ~
4738 \end_inset
4739
4740 Style
4741 \family default
4742 ).
4743  If you want to use these for the chapter pages, you have to use the command
4744  
4745 \family typewriter
4746
4747 \backslash
4748 chapterstyle
4749 \family default
4750  in the main text or in preamble (e.
4751 \begin_inset space \thinspace{}
4752 \end_inset
4753
4754 g.
4755 \begin_inset space \space{}
4756 \end_inset
4757
4758
4759 \family typewriter
4760
4761 \backslash
4762 chapterstyle{companion}
4763 \family default
4764 ).
4765 \end_layout
4766
4767 \begin_layout Description
4768 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
4769  optional argument in the standard classes.
4770  With this, you can specify an alternative version of the title for the
4771  table of contents and the headers (for instance, if the title is too long).
4772  In \SpecialChar LyX
4773 , you can do this via 
4774 \family sans
4775 Insert\SpecialChar menuseparator
4776 Short
4777 \begin_inset space ~
4778 \end_inset
4779
4780 Title
4781 \family default
4782  at the beginning of a chapter/section.
4783  Memoir features a second optional argument and thus separates the table
4784  of contents from the header.
4785  You can define three variants of a title with this: one for the main text,
4786  one for the table of contents, and one for the headers.
4787  \SpecialChar LyX
4788  makes these available in form of specific 
4789 \family sans
4790 Short Title
4791 \family default
4792  variants in the 
4793 \family sans
4794 Insert
4795 \family default
4796  menu.
4797 \end_layout
4798
4799 \begin_layout Description
4800 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
4801  of contents, the list of figures and the list of table start a new page
4802  automatically.
4803  Memoir does not follow this route.
4804  You have to insert a page break yourself, if you want to have one.
4805 \end_layout
4806
4807 \begin_layout Description
4808 Titlepage: For some unknown reason, Memoir uses pagination on the title
4809  page (in the standard classes, title pages are 
4810 \begin_inset Quotes eld
4811 \end_inset
4812
4813 empty
4814 \begin_inset Quotes erd
4815 \end_inset
4816
4817 ).
4818  If you want an empty title page, type 
4819 \family typewriter
4820
4821 \backslash
4822 aliaspagestyle{title}{empty}
4823 \family default
4824  in the preamble.
4825 \end_layout
4826
4827 \begin_layout Description
4828 Article: With the class option 
4829 \emph on
4830 article
4831 \emph default
4832  (to be inserted in 
4833 \family sans
4834 Document\SpecialChar menuseparator
4835 Settings\SpecialChar menuseparator
4836 Class Settings\SpecialChar menuseparator
4837 Custom
4838 \begin_inset space ~
4839 \end_inset
4840
4841 Options
4842 \family default
4843 ), you can emulate article style.
4844  That is, counters (footnotes, figures, tables etc.) will not be reset on
4845  new chapters, chapters don't start a new page (but are—in contrary to 
4846 \begin_inset Quotes eld
4847 \end_inset
4848
4849 real
4850 \begin_inset Quotes erd
4851 \end_inset
4852
4853  article classes—still allowed), parts, though, use their own page, as in
4854  book.
4855 \end_layout
4856
4857 \begin_layout Description
4858 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
4859  font commands, which have been used in the old \SpecialChar LaTeX
4860  version 2.09 (e.
4861 \begin_inset space \thinspace{}
4862 \end_inset
4863
4864 g.
4865 \begin_inset space \space{}
4866 \end_inset
4867
4868
4869 \family typewriter
4870
4871 \backslash
4872 rm
4873 \family default
4874
4875 \family typewriter
4876
4877 \backslash
4878 it
4879 \family default
4880 ).
4881  It produces an error and stops \SpecialChar LaTeX
4882  whenever such a command appears.
4883  The class option 
4884 \emph on
4885 oldfontcommands
4886 \emph default
4887  reallows the commands and spits out warnings instead (which does at least
4888  not stop \SpecialChar LaTeX
4889 ).
4890  Since a lot of packages and particularly Bib\SpecialChar TeX
4891  style files are still using
4892  those commands, we have decided to use this option by default.
4893 \end_layout
4894
4895 \begin_layout Subsubsection
4896 Extra features
4897 \end_layout
4898
4899 \begin_layout Standard
4900 We will only describe the features supported by \SpecialChar LyX
4901  (which is not much currently).
4902  Please consult the Memoir manual
4903 \begin_inset Foot
4904 status collapsed
4905
4906 \begin_layout Plain Layout
4907 Cf.
4908 \begin_inset ERT
4909 status collapsed
4910
4911 \begin_layout Plain Layout
4912
4913
4914 \backslash
4915  
4916 \end_layout
4917
4918 \end_inset
4919
4920
4921 \begin_inset Flex URL
4922 status collapsed
4923
4924 \begin_layout Plain Layout
4925
4926 CTAN:/macros/latex/memoir/memman.pdf
4927 \end_layout
4928
4929 \end_inset
4930
4931 .
4932 \end_layout
4933
4934 \end_inset
4935
4936  for details.
4937 \end_layout
4938
4939 \begin_layout Description
4940 Abstract: You may wonder why an abstract is an extra feature.
4941  Well, it is in book class.
4942  Usually books don't have abstracts.
4943  Memoir, however, has.
4944  You can use it wherever and how often you like.
4945 \end_layout
4946
4947 \begin_layout Description
4948 Chapterprecis: You may know this older typesetting style: The contents of
4949  a chapter are summarized below the title and also in the table of contents
4950  (e.
4951 \begin_inset space \thinspace{}
4952 \end_inset
4953
4954 g.
4955 \begin_inset space \space{}
4956 \end_inset
4957
4958
4959 \emph on
4960 Our hero arrives in Troia; he loses some friends; he finds others
4961 \emph default
4962 ).
4963  Chapterprecis does exactly this.
4964  It is therefore only sensible below a chapter.
4965 \end_layout
4966
4967 \begin_layout Description
4968 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
4969  The epigraph environment provides an elegant way of typesetting such a
4970  motto.
4971  The motto itself (text) and its (optional) author (source) are divided
4972  by a short line.
4973  The author (source) can be inserted via 
4974 \family sans
4975 Insert\SpecialChar menuseparator
4976 Epigraph Source
4977 \family default
4978 \emph on
4979 .
4980 \end_layout
4981
4982 \begin_layout Description
4983 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
4984  complex figurative poems).
4985  \SpecialChar LyX
4986  can only support a few of them.
4987  One is poemtitle, which is a centered title for poems, which will also
4988  be added to the table of contents (verse is the standard environment for
4989  poems.
4990  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
4991  code,
4992  because they have to be nested inside regular verse environments, which
4993  is not possible with \SpecialChar LyX
4994 ).
4995 \end_layout
4996
4997 \begin_layout Description
4998 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
4999 \end_layout
5000
5001 \begin_layout Section
5002
5003 \change_inserted 564990737 1670439605
5004 Curricula vitarum
5005 \end_layout
5006
5007 \begin_layout Section
5008
5009 \change_inserted 564990737 1670439627
5010 Letters
5011 \end_layout
5012
5013 \begin_layout Section
5014
5015 \change_inserted 564990737 1670439660
5016 Presentations
5017 \end_layout
5018
5019 \begin_layout Section
5020
5021 \change_inserted 564990737 1670439661
5022 Reports
5023 \end_layout
5024
5025 \begin_layout Subsection
5026
5027 \change_inserted 564990737 1670439661
5028 report
5029 \end_layout
5030
5031 \begin_layout Standard
5032
5033 \change_inserted 564990737 1670439661
5034 The document class 
5035 \family sans
5036 report
5037 \family default
5038  provides the 
5039 \family sans
5040 report.cls
5041 \family default
5042  document class for preparing reports.
5043  Like the 
5044 \family sans
5045 book
5046 \family default
5047  document class, this provides parts, chapters and sections but does not
5048  provide the paragraph styles needed for a book; like the 
5049 \family sans
5050 article
5051 \family default
5052  document class, it provides the abstract paragraph style.
5053  In two-sided mode, it does not start a new chapter on the right hand page.
5054 \end_layout
5055
5056 \begin_layout Standard
5057
5058 \change_inserted 564990737 1670439674
5059 The remaining 
5060 \family sans
5061 report
5062 \family default
5063  document classes are described in the Collections (section
5064 \begin_inset space ~
5065 \end_inset
5066
5067
5068 \begin_inset CommandInset ref
5069 LatexCommand ref
5070 reference "sec:Collections"
5071
5072 \end_inset
5073
5074 ).
5075 \end_layout
5076
5077 \begin_layout Section
5078
5079 \change_inserted 564990737 1670439674
5080 Scripts (drama)
5081 \end_layout
5082
5083 \begin_layout Subsection
5084 Broadway
5085 \end_layout
5086
5087 \begin_layout Standard
5088 by 
5089 \shape smallcaps
5090 Garst Reese
5091 \end_layout
5092
5093 \begin_layout Subsubsection
5094 Introduction
5095 \end_layout
5096
5097 \begin_layout Standard
5098 Broadway is for writing plays.
5099  The format is more decorative than Hollywood, and much less standardized.
5100  This format should be suitable for workshops.
5101 \end_layout
5102
5103 \begin_layout Subsubsection
5104 Special problems
5105 \end_layout
5106
5107 \begin_layout Standard
5108 The same as in Hollywood.
5109 \end_layout
5110
5111 \begin_layout Subsubsection
5112 Special features
5113 \end_layout
5114
5115 \begin_layout Standard
5116 Insert the 
5117 \family sans
5118 Speaker
5119 \family default
5120  names as labels then cross-reference the label to insert the name.
5121  The cross-reference dialog will show the current cast of characters.
5122 \end_layout
5123
5124 \begin_layout Subsubsection
5125 Paper size and Margins
5126 \end_layout
5127
5128 \begin_layout Standard
5129 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
5130 \end_layout
5131
5132 \begin_layout Subsubsection
5133 Environments
5134 \end_layout
5135
5136 \begin_layout Standard
5137 The following environments are available.
5138  You can use broadway.bind to get the bind keys shown at the right.
5139 \end_layout
5140
5141 \begin_layout Itemize
5142
5143 \family sans
5144 Standard
5145 \begin_inset Newline newline
5146 \end_inset
5147
5148
5149 \family default
5150 You should not have to use this, but it is here for anything that does not
5151  fit otherwise.
5152 \end_layout
5153
5154 \begin_layout Itemize
5155
5156 \family sans
5157 Narrative
5158 \begin_inset space \hfill{}
5159 \end_inset
5160
5161 M-z n
5162 \begin_inset Newline newline
5163 \end_inset
5164
5165
5166 \family default
5167 Used to describe stage setting and the action.
5168  First use of speaker names in all CAPs.
5169 \end_layout
5170
5171 \begin_layout Itemize
5172
5173 \family sans
5174 ACT
5175 \begin_inset space \hfill{}
5176 \end_inset
5177
5178 M-z a
5179 \begin_inset Newline newline
5180 \end_inset
5181
5182
5183 \family default
5184 Automatically numbered.
5185  On screen it will be arabic, but will print as Roman.
5186 \end_layout
5187
5188 \begin_layout Itemize
5189
5190 \family sans
5191 ACT*
5192 \begin_inset space \hfill{}
5193 \end_inset
5194
5195 M-z S at
5196 \begin_inset Newline newline
5197 \end_inset
5198
5199
5200 \family default
5201 Subtitle for 
5202 \family sans
5203 ACT.
5204
5205 \family default
5206  It is just centered text.
5207 \end_layout
5208
5209 \begin_layout Itemize
5210
5211 \family sans
5212 SCENE
5213 \begin_inset space \hfill{}
5214 \end_inset
5215
5216 M-z S-S
5217 \begin_inset Newline newline
5218 \end_inset
5219
5220
5221 \family default
5222 Not automatically numbered.
5223  You supply the number.
5224  This is because I couldn't figure out how.
5225 \end_layout
5226
5227 \begin_layout Itemize
5228
5229 \family sans
5230 AT_RISE:
5231 \begin_inset space \hfill{}
5232 \end_inset
5233
5234 M-z S-R
5235 \begin_inset Newline newline
5236 \end_inset
5237
5238
5239 \family default
5240 A special case of Narrative to describe the setting and action as the curtain
5241  rises.
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \family sans
5247 Speaker
5248 \begin_inset space \hfill{}
5249 \end_inset
5250
5251 M-z s
5252 \begin_inset Newline newline
5253 \end_inset
5254
5255
5256 \family default
5257 The speaker's (actor's) title, centered in all CAPS.
5258 \end_layout
5259
5260 \begin_layout Itemize
5261
5262 \family sans
5263 Parenthetical
5264 \begin_inset space \hfill{}
5265 \end_inset
5266
5267 M-z p
5268 \begin_inset Newline newline
5269 \end_inset
5270
5271
5272 \family default
5273 Instructions to the speaker.
5274  The parentheses are automatically inserted.
5275  The ( will appear on screen, but both will be in the printed play.
5276  This environment is only used within 
5277 \family sans
5278 Dialogue
5279 \family default
5280 .
5281 \end_layout
5282
5283 \begin_layout Itemize
5284
5285 \family sans
5286 Dialogue
5287 \begin_inset space \hfill{}
5288 \end_inset
5289
5290 M-z d
5291 \begin_inset Newline newline
5292 \end_inset
5293
5294
5295 \family default
5296 What the Speaker says.
5297 \end_layout
5298
5299 \begin_layout Itemize
5300
5301 \family sans
5302 CURTAIN
5303 \begin_inset space \hfill{}
5304 \end_inset
5305
5306 M-z S-C
5307 \begin_inset Newline newline
5308 \end_inset
5309
5310
5311 \family default
5312 The curtain comes down.
5313 \end_layout
5314
5315 \begin_layout Itemize
5316
5317 \family sans
5318 Title
5319 \begin_inset space \hfill{}
5320 \end_inset
5321
5322 M-z S-T
5323 \end_layout
5324
5325 \begin_layout Itemize
5326
5327 \family sans
5328 Author
5329 \begin_inset space \hfill{}
5330 \end_inset
5331
5332 M-z S-A
5333 \end_layout
5334
5335 \begin_layout Itemize
5336
5337 \family sans
5338 Right_Address
5339 \begin_inset space \hfill{}
5340 \end_inset
5341
5342 M-z r
5343 \end_layout
5344
5345 \begin_layout Standard
5346 Hello there.
5347 \end_layout
5348
5349 \begin_layout Subsection
5350 Hollywood (Hollywood spec scripts)
5351 \end_layout
5352
5353 \begin_layout Standard
5354 by 
5355 \shape smallcaps
5356 Garst Reese
5357 \end_layout
5358
5359 \begin_layout Subsubsection
5360 Introduction
5361 \end_layout
5362
5363 \begin_layout Standard
5364 Getting the format of a Hollywood script right is a 
5365 \begin_inset Quotes eld
5366 \end_inset
5367
5368 rite of passage.
5369 \begin_inset Quotes erd
5370 \end_inset
5371
5372  It is designed to make the readers focus on content and to be easy and
5373  familiar for the actors to read.
5374  Each page of a script should be one minute of film.
5375  Nothing goes in a script that you cannot see or hear on screen.
5376  The courier 12 pt font should be used throughout.
5377  No italics.
5378 \end_layout
5379
5380 \begin_layout Subsubsection
5381 Special problems
5382 \end_layout
5383
5384 \begin_layout Standard
5385 Speakers' lines should NEVER break in mid-sentence.
5386  If a speaker's lines continue over a page break, repeat the 
5387 \family sans
5388 Speaker
5389 \family default
5390  title followed by (Cont'd).
5391 \end_layout
5392
5393 \begin_layout Subsubsection
5394 Special features
5395 \end_layout
5396
5397 \begin_layout Standard
5398 Insert the 
5399 \family sans
5400 Speaker
5401 \family default
5402  names as labels then cross-reference the label to insert the name.
5403  The cross-reference dialog will show the current cast of characters.
5404  You can use this to insert the speaker name in narratives also.
5405 \end_layout
5406
5407 \begin_layout Subsubsection
5408 Paper size and Margins
5409 \end_layout
5410
5411 \begin_layout Standard
5412 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
5413 \end_layout
5414
5415 \begin_layout Subsubsection
5416 Environments
5417 \end_layout
5418
5419 \begin_layout Standard
5420 The following environments are available.
5421  You can use hollywood.bind to get the bind keys shown at the right.
5422 \end_layout
5423
5424 \begin_layout Itemize
5425
5426 \family sans
5427 Standard
5428 \begin_inset Newline newline
5429 \end_inset
5430
5431
5432 \family default
5433 Used where nothing else works.
5434  Try to avoid it.
5435 \end_layout
5436
5437 \begin_layout Itemize
5438
5439 \family sans
5440 FADE_IN
5441 \family default
5442 :
5443 \begin_inset space \hfill{}
5444 \end_inset
5445
5446
5447 \family sans
5448 M-z S-I
5449 \family default
5450
5451 \begin_inset Newline newline
5452 \end_inset
5453
5454 Usually followed by something like 
5455 \begin_inset Quotes eld
5456 \end_inset
5457
5458 on Sally waking up.
5459 \begin_inset Quotes erd
5460 \end_inset
5461
5462
5463 \end_layout
5464
5465 \begin_layout Itemize
5466
5467 \family sans
5468 INT:
5469 \begin_inset space \hfill{}
5470 \end_inset
5471
5472 M-z i
5473 \begin_inset Newline newline
5474 \end_inset
5475
5476
5477 \family default
5478 Introduces a new INTERIOR camera set-up.
5479  Always followed by DAY or NIGHT, or something similar to define the lighting
5480  required.
5481  Everthing on this line in CAPS.
5482 \end_layout
5483
5484 \begin_layout Itemize
5485
5486 \family sans
5487 EXT:
5488 \begin_inset space \hfill{}
5489 \end_inset
5490
5491 M-z e
5492 \begin_inset Newline newline
5493 \end_inset
5494
5495
5496 \family default
5497 Introduces a new EXTERIOR camera set-up.
5498  Everthing on this line in CAPS.
5499 \end_layout
5500
5501 \begin_layout Itemize
5502
5503 \family sans
5504 Speaker
5505 \begin_inset space \hfill{}
5506 \end_inset
5507
5508 M-z s
5509 \begin_inset Newline newline
5510 \end_inset
5511
5512
5513 \family default
5514 The character speaking.
5515 \end_layout
5516
5517 \begin_layout Itemize
5518
5519 \family sans
5520 Parenthetical
5521 \begin_inset space \hfill{}
5522 \end_inset
5523
5524 M-z p
5525 \begin_inset Newline newline
5526 \end_inset
5527
5528
5529 \family default
5530 Instructions to the speaker.
5531  The () are automatically inserted.
5532 \end_layout
5533
5534 \begin_layout Itemize
5535
5536 \family sans
5537 Dialogue
5538 \begin_inset space \hfill{}
5539 \end_inset
5540
5541 M-z d
5542 \begin_inset Newline newline
5543 \end_inset
5544
5545
5546 \family default
5547 What the 
5548 \family sans
5549 Speaker
5550 \family default
5551  says.
5552 \end_layout
5553
5554 \begin_layout Itemize
5555
5556 \family sans
5557 Transition
5558 \begin_inset space \hfill{}
5559 \end_inset
5560
5561 M-z t
5562 \begin_inset Newline newline
5563 \end_inset
5564
5565
5566 \family default
5567 Camera movement instruction.
5568  e.
5569 \begin_inset space \thinspace{}
5570 \end_inset
5571
5572 g.
5573 \begin_inset space \space{}
5574 \end_inset
5575
5576 CUT TO:
5577 \end_layout
5578
5579 \begin_layout Itemize
5580
5581 \family sans
5582 FADE OUT:
5583 \begin_inset space \hfill{}
5584 \end_inset
5585
5586 M-z S-I
5587 \end_layout
5588
5589 \begin_layout Itemize
5590
5591 \family sans
5592 Author
5593 \begin_inset space \hfill{}
5594 \end_inset
5595
5596 M-z S-A
5597 \end_layout
5598
5599 \begin_layout Itemize
5600
5601 \family sans
5602 Title
5603 \begin_inset space \hfill{}
5604 \end_inset
5605
5606 M-z S-T
5607 \end_layout
5608
5609 \begin_layout Itemize
5610
5611 \family sans
5612 Right_Address
5613 \begin_inset space \hfill{}
5614 \end_inset
5615
5616 M-z r
5617 \end_layout
5618
5619 \begin_layout Subsubsection
5620 Script jargon
5621 \end_layout
5622
5623 \begin_layout Itemize
5624 (O.S) — off screen
5625 \end_layout
5626
5627 \begin_layout Itemize
5628 (V.0) — voice over
5629 \end_layout
5630
5631 \begin_layout Itemize
5632 b.
5633 \begin_inset space \thinspace{}
5634 \end_inset
5635
5636 g.
5637  — background
5638 \end_layout
5639
5640 \begin_layout Itemize
5641 C.U.
5642  — close-up
5643 \end_layout
5644
5645 \begin_layout Itemize
5646 PAN — camera movement
5647 \end_layout
5648
5649 \begin_layout Itemize
5650 INSERT — cut to close-up of
5651 \end_layout
5652
5653 \begin_layout Chapter
5654 Supplemental Tools
5655 \end_layout
5656
5657 \begin_layout Section
5658 Customizing Bibliographies with Bib\SpecialChar TeX
5659  or Biblatex
5660 \end_layout
5661
5662 \begin_layout Standard
5663 The most basic information about how to use Bib\SpecialChar TeX
5664  or 
5665 \family sans
5666 Biblatex
5667 \family default
5668  with \SpecialChar LyX
5669  is contained in the section 
5670 \emph on
5671 Bibliography databases
5672 \emph default
5673  of the 
5674 \emph on
5675 User's Guide
5676 \emph default
5677 .
5678  The following subsections explain special bibliography features supported
5679  by \SpecialChar LyX
5680 .
5681 \end_layout
5682
5683 \begin_layout Subsection
5684 Alternative Citation Styles
5685 \end_layout
5686
5687 \begin_layout Standard
5688 Standard Bib\SpecialChar TeX
5689  uses numbers (e.
5690 \begin_inset space \thinspace{}
5691 \end_inset
5692
5693 g.
5694 \begin_inset space \space{}
5695 \end_inset
5696
5697
5698 \begin_inset Quotes eld
5699 \end_inset
5700
5701 [12]
5702 \begin_inset Quotes erd
5703 \end_inset
5704
5705 ) to refer to a cited work.
5706  However, in many scientific disciplines, other citation styles are in use.
5707  The most common one is the author-year style (e.
5708 \begin_inset space \thinspace{}
5709 \end_inset
5710
5711 g.
5712 \begin_inset space \space{}
5713 \end_inset
5714
5715
5716 \begin_inset Quotes eld
5717 \end_inset
5718
5719 Knuth 1984a
5720 \begin_inset Quotes erd
5721 \end_inset
5722
5723 ).
5724  \SpecialChar LyX
5725  supports three packages that provide this style, 
5726 \begin_inset Flex Code
5727 status collapsed
5728
5729 \begin_layout Plain Layout
5730 biblatex
5731 \end_layout
5732
5733 \end_inset
5734
5735
5736 \begin_inset Flex Code
5737 status collapsed
5738
5739 \begin_layout Plain Layout
5740 natbib
5741 \end_layout
5742
5743 \end_inset
5744
5745 , and 
5746 \begin_inset Flex Code
5747 status collapsed
5748
5749 \begin_layout Plain Layout
5750 jurabib
5751 \end_layout
5752
5753 \end_inset
5754
5755 .
5756  Each of these packages has their pros and cons, which cannot be listed
5757  in detail.
5758  If you only want to have simple author-year (or author-numerical) style,
5759  or if you want to use one of the countless style files for 
5760 \begin_inset Flex Code
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 natbib
5765 \end_layout
5766
5767 \end_inset
5768
5769 , then the established 
5770 \begin_inset Flex Code
5771 status collapsed
5772
5773 \begin_layout Plain Layout
5774 natbib
5775 \end_layout
5776
5777 \end_inset
5778
5779  package is probably your choice.
5780  If you look for specific citation styles common in law studies, you might
5781  consider the 
5782 \begin_inset Flex Code
5783 status collapsed
5784
5785 \begin_layout Plain Layout
5786 jurabib
5787 \end_layout
5788
5789 \end_inset
5790
5791  package.
5792  If you want to have full control over the formatting or look for advanced
5793  features such as ibidem, footnote citations, full title citations, advanced
5794  date formats (such as 400 BC) or full localization to other languages than
5795  English, you should definitely consider 
5796 \begin_inset Flex Code
5797 status collapsed
5798
5799 \begin_layout Plain Layout
5800 biblatex
5801 \end_layout
5802
5803 \end_inset
5804
5805 , which exceeds all other packages in terms of features, but is also quite
5806  heavy and more resource-hungry.
5807 \end_layout
5808
5809 \begin_layout Standard
5810 The handling of these packages in \SpecialChar LyX
5811  is basically the same.
5812  Go to 
5813 \begin_inset Flex Noun
5814 status collapsed
5815
5816 \begin_layout Plain Layout
5817 Document\SpecialChar menuseparator
5818 Settings
5819 \end_layout
5820
5821 \end_inset
5822
5823  and select under 
5824 \begin_inset Flex Noun
5825 status collapsed
5826
5827 \begin_layout Plain Layout
5828 Bibliography
5829 \end_layout
5830
5831 \end_inset
5832
5833  the 
5834 \begin_inset Flex Noun
5835 status collapsed
5836
5837 \begin_layout Plain Layout
5838 Style Format
5839 \end_layout
5840
5841 \end_inset
5842
5843  
5844 \begin_inset Flex Noun
5845 status collapsed
5846
5847 \begin_layout Plain Layout
5848 Basic (BibTeX)
5849 \end_layout
5850
5851 \end_inset
5852
5853
5854 \begin_inset Flex Noun
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858 Biblatex
5859 \end_layout
5860
5861 \end_inset
5862
5863
5864 \begin_inset Flex Noun
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 Biblatex (Natbib mode)
5869 \end_layout
5870
5871 \end_inset
5872
5873
5874 \begin_inset Flex Noun
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 Natbib (BibTeX)
5879 \end_layout
5880
5881 \end_inset
5882
5883  or 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Jurabib (BibTeX)
5889 \end_layout
5890
5891 \end_inset
5892
5893  (see sec.
5894 \begin_inset space ~
5895 \end_inset
5896
5897 6.5.3 in the User's Guide for more information on these choices).
5898  With all these packages, you will get some extra features in the citation
5899  dialog and you can select the style of the reference (
5900 \begin_inset Quotes eld
5901 \end_inset
5902
5903 Knuth 1984
5904 \begin_inset Quotes erd
5905 \end_inset
5906
5907
5908 \begin_inset Quotes eld
5909 \end_inset
5910
5911 Knuth (1984)
5912 \begin_inset Quotes erd
5913 \end_inset
5914
5915
5916 \begin_inset Quotes eld
5917 \end_inset
5918
5919 Knuth, 1984
5920 \begin_inset Quotes erd
5921 \end_inset
5922
5923
5924 \begin_inset Quotes eld
5925 \end_inset
5926
5927 1984
5928 \begin_inset Quotes erd
5929 \end_inset
5930
5931  etc.).
5932  Note that either package needs specifically designed style files.
5933  They all ship their own, but there are lots of additional style files,
5934  and there is even an interactive style file builder
5935 \begin_inset Foot
5936 status collapsed
5937
5938 \begin_layout Plain Layout
5939 See 
5940 \begin_inset Flex URL
5941 status open
5942
5943 \begin_layout Plain Layout
5944
5945 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
5946 \end_layout
5947
5948 \end_inset
5949
5950
5951 \end_layout
5952
5953 \end_inset
5954
5955  for 
5956 \begin_inset Flex Code
5957 status collapsed
5958
5959 \begin_layout Plain Layout
5960 natbib
5961 \end_layout
5962
5963 \end_inset
5964
5965 .
5966 \end_layout
5967
5968 \begin_layout Subsection
5969 Subdivided Bibliographies
5970 \end_layout
5971
5972 \begin_layout Standard
5973 Sometimes you might need to divide your bibliography into several sections.
5974  If you are for instance a historian, the possibility to separate sources
5975  and scientific works is most likely a 
5976 \begin_inset Quotes eld
5977 \end_inset
5978
5979 must have
5980 \begin_inset Quotes erd
5981 \end_inset
5982
5983 .
5984  Unfortunately, Bib\SpecialChar TeX
5985  itself does not allow you to do this.
5986  But with the help of some \SpecialChar LaTeX
5987  packages, Bib\SpecialChar TeX
5988  can be extended to fit your needs.
5989 \end_layout
5990
5991 \begin_layout Standard
5992 \SpecialChar LyX
5993  provides native support for one of these packages, 
5994 \family typewriter
5995 bibtopic
5996 \family default
5997 .
5998 \begin_inset Foot
5999 status collapsed
6000
6001 \begin_layout Plain Layout
6002 Available from 
6003 \begin_inset Flex URL
6004 status open
6005
6006 \begin_layout Plain Layout
6007
6008 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
6009 \end_layout
6010
6011 \end_inset
6012
6013
6014 \end_layout
6015
6016 \end_inset
6017
6018  The advantage of this package (compared to other packages such as 
6019 \family typewriter
6020 multibib
6021 \family default
6022 ) is that you don't need to define new citation commands.
6023  Instead, you need to prepare different bibliographic databases which include
6024  the entries for the different sections of the bibliography.
6025  For example: If you want to divide your bibliography into the sections
6026  
6027 \begin_inset Quotes eld
6028 \end_inset
6029
6030 Sources
6031 \begin_inset Quotes erd
6032 \end_inset
6033
6034  and 
6035 \begin_inset Quotes eld
6036 \end_inset
6037
6038 Scientific works
6039 \begin_inset Quotes erd
6040 \end_inset
6041
6042 , you first need to create two bibliographic databases, e.
6043 \begin_inset space \thinspace{}
6044 \end_inset
6045
6046 g.
6047 \begin_inset space \space{}
6048 \end_inset
6049
6050
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 sources.bib
6056 \end_layout
6057
6058 \end_inset
6059
6060  and 
6061 \begin_inset Flex Code
6062 status collapsed
6063
6064 \begin_layout Plain Layout
6065 scientific.bib
6066 \end_layout
6067
6068 \end_inset
6069
6070 .
6071  
6072 \end_layout
6073
6074 \begin_layout Standard
6075 Go to 
6076 \begin_inset Flex Noun
6077 status collapsed
6078
6079 \begin_layout Plain Layout
6080 Document\SpecialChar menuseparator
6081 Settings
6082 \end_layout
6083
6084 \end_inset
6085
6086  and check under 
6087 \begin_inset Flex Noun
6088 status collapsed
6089
6090 \begin_layout Plain Layout
6091 Bibliography
6092 \end_layout
6093
6094 \end_inset
6095
6096  the option 
6097 \begin_inset Flex Noun
6098 status collapsed
6099
6100 \begin_layout Plain Layout
6101 Subdivided bibliography
6102 \end_layout
6103
6104 \end_inset
6105
6106 .
6107  Now you can insert multiple Bib\SpecialChar TeX
6108  bibliographies, one for each section of
6109  your bibliography.
6110  Returning to our example: Insert the Bib\SpecialChar TeX
6111  bibliography 
6112 \begin_inset Flex Code
6113 status collapsed
6114
6115 \begin_layout Plain Layout
6116 sources.bib
6117 \end_layout
6118
6119 \end_inset
6120
6121  and a second one for the database 
6122 \begin_inset Flex Code
6123 status collapsed
6124
6125 \begin_layout Plain Layout
6126 scientific.bib
6127 \end_layout
6128
6129 \end_inset
6130
6131 .
6132  You are free to use the same or different styles for each section.
6133  Additionally, you can choose if the bibliography section should contain
6134  
6135 \begin_inset Quotes eld
6136 \end_inset
6137
6138 all cited references
6139 \begin_inset Quotes erd
6140 \end_inset
6141
6142  of the specified database(s) (which is the default), 
6143 \begin_inset Quotes eld
6144 \end_inset
6145
6146 all uncited references
6147 \begin_inset Quotes erd
6148 \end_inset
6149
6150  or even 
6151 \begin_inset Quotes eld
6152 \end_inset
6153
6154 all references
6155 \begin_inset Quotes erd
6156 \end_inset
6157
6158 .
6159  This might be useful if you would like to separate your bibliography into
6160  three sections: 
6161 \begin_inset Quotes eld
6162 \end_inset
6163
6164 Cited sources
6165 \begin_inset Quotes erd
6166 \end_inset
6167
6168
6169 \begin_inset Quotes eld
6170 \end_inset
6171
6172 Uncited sources
6173 \begin_inset Quotes erd
6174 \end_inset
6175
6176 , and 
6177 \begin_inset Quotes eld
6178 \end_inset
6179
6180 Scientific works
6181 \begin_inset Quotes erd
6182 \end_inset
6183
6184 .
6185  The titles for the sections can be added as ordinary sections or subsections.
6186  Since 
6187 \begin_inset Flex Code
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 bibtopic
6192 \end_layout
6193
6194 \end_inset
6195
6196  removes the bibliography title, you have to manually re-add that, too (as
6197  a chapter* or section*, for instance).
6198 \end_layout
6199
6200 \begin_layout Standard
6201 With 
6202 \family sans
6203 Biblatex
6204 \family default
6205 , the procedure is a bit different.
6206  Since 
6207 \family typewriter
6208 bibtopic
6209 \family default
6210  does not work with 
6211 \family sans
6212 Biblatex
6213 \family default
6214 , the aforementioned 
6215 \begin_inset Flex Noun
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 Subdivided bibliography
6220 \end_layout
6221
6222 \end_inset
6223
6224  option is disabled if you use 
6225 \family sans
6226 Biblatex
6227 \family default
6228 .
6229  However, 
6230 \family sans
6231 Biblatex
6232 \family default
6233  provides its own means to generate subdivided bibliographies.
6234  You can either add keywords to bibliography entries via the 
6235 \begin_inset Flex Code
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239 keywords
6240 \end_layout
6241
6242 \end_inset
6243
6244  entry option and then filter bibliography sections by keyword (by adding
6245  
6246 \begin_inset Flex Code
6247 status collapsed
6248
6249 \begin_layout Plain Layout
6250 keyword=mykeyword
6251 \end_layout
6252
6253 \end_inset
6254
6255  to the 
6256 \begin_inset Flex Noun
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 Options
6261 \end_layout
6262
6263 \end_inset
6264
6265  field of the dialog that opens if you left-click on the 
6266 \begin_inset Flex Noun
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 Biblatex Generated Bibliography
6271 \end_layout
6272
6273 \end_inset
6274
6275  button), or you can filter by entry types (such as 
6276 \emph on
6277 book
6278 \emph default
6279  or 
6280 \emph on
6281 article
6282 \emph default
6283 ) by entering e.
6284 \begin_inset space \thinspace{}
6285 \end_inset
6286
6287 g.
6288  
6289 \begin_inset Flex Code
6290 status collapsed
6291
6292 \begin_layout Plain Layout
6293 type=book
6294 \end_layout
6295
6296 \end_inset
6297
6298  or 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 nottype=collection
6304 \end_layout
6305
6306 \end_inset
6307
6308  to the mentioned 
6309 \begin_inset Flex Noun
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 Options
6314 \end_layout
6315
6316 \end_inset
6317
6318  field, or you can create so-called 
6319 \begin_inset Quotes eld
6320 \end_inset
6321
6322 Bibliography Categories
6323 \begin_inset Quotes erd
6324 \end_inset
6325
6326  to which you can assign individual entries.
6327  Please refer to the Biblatex manual, section 
6328 \emph on
6329 Subdivided Bibliographies
6330 \emph default
6331 , for details.
6332 \end_layout
6333
6334 \begin_layout Subsection
6335 Multiple Bibliographies
6336 \begin_inset CommandInset label
6337 LatexCommand label
6338 name "subsec:Multiple-Bibliographies"
6339
6340 \end_inset
6341
6342
6343 \end_layout
6344
6345 \begin_layout Standard
6346 Multiple bibliographies, e.
6347 \begin_inset space \thinspace{}
6348 \end_inset
6349
6350 g.
6351 \begin_inset space \space{}
6352 \end_inset
6353
6354 a bibliography for each part, chapter, section, subsection or child (sub-documen
6355 t) of the document, are also supported by \SpecialChar LyX
6356 .
6357  In order to enable it, go to 
6358 \begin_inset Flex Noun
6359 status collapsed
6360
6361 \begin_layout Plain Layout
6362 Document\SpecialChar menuseparator
6363 Settings\SpecialChar menuseparator
6364 Bibliography
6365 \end_layout
6366
6367 \end_inset
6368
6369  and select the relevant unit (e.
6370 \begin_inset space \thinspace{}
6371 \end_inset
6372
6373 g., 
6374 \begin_inset Quotes eld
6375 \end_inset
6376
6377 per section
6378 \begin_inset Quotes erd
6379 \end_inset
6380
6381 ) in the 
6382 \begin_inset Flex Noun
6383 status collapsed
6384
6385 \begin_layout Plain Layout
6386 Multiple Bibliographies
6387 \end_layout
6388
6389 \end_inset
6390
6391  combo box.
6392  Then add a Bib(la)\SpecialChar TeX
6393  bibliography to each unit (e.
6394 \begin_inset space \thinspace{}
6395 \end_inset
6396
6397 g., section) of your document.
6398  In the output, a separate bibliography, containing only the references
6399  done in the current unit is generated.
6400 \end_layout
6401
6402 \begin_layout Standard
6403 If you use Bib\SpecialChar TeX
6404 , either the 
6405 \begin_inset Flex Code
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 chapterbib
6410 \end_layout
6411
6412 \end_inset
6413
6414  or the 
6415 \begin_inset Flex Code
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 bibtopic
6420 \end_layout
6421
6422 \end_inset
6423
6424  package is used to create multiple bibliographies.
6425  The former package is used if you select 
6426 \begin_inset Quotes eld
6427 \end_inset
6428
6429 per child document
6430 \begin_inset Quotes erd
6431 \end_inset
6432
6433  and do 
6434 \emph on
6435 not
6436 \emph default
6437  check 
6438 \begin_inset Flex Noun
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 Sectioned Bibliography
6443 \end_layout
6444
6445 \end_inset
6446
6447 .
6448  In all other cases, 
6449 \begin_inset Flex Code
6450 status collapsed
6451
6452 \begin_layout Plain Layout
6453 bibtopic
6454 \end_layout
6455
6456 \end_inset
6457
6458  is used.
6459 \begin_inset Foot
6460 status collapsed
6461
6462 \begin_layout Plain Layout
6463 An alternative approach, if you are willing to use some 
6464 \begin_inset Flex Noun
6465 status collapsed
6466
6467 \begin_layout Plain Layout
6468 \SpecialChar TeX
6469  Code
6470 \end_layout
6471
6472 \end_inset
6473
6474  (see section
6475 \begin_inset space ~
6476 \end_inset
6477
6478
6479 \begin_inset CommandInset ref
6480 LatexCommand ref
6481 reference "sec:Inserting-TeX-Code"
6482
6483 \end_inset
6484
6485 ), is to use the 
6486 \begin_inset Flex Code
6487 status collapsed
6488
6489 \begin_layout Plain Layout
6490 bibunits
6491 \end_layout
6492
6493 \end_inset
6494
6495  package.
6496 \end_layout
6497
6498 \end_inset
6499
6500  If 
6501 \begin_inset Flex Code
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505 bibtopic
6506 \end_layout
6507
6508 \end_inset
6509
6510  is used, \SpecialChar LyX
6511  encloses the specified units in 
6512 \begin_inset Flex Code
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 bibtopic
6517 \end_layout
6518
6519 \end_inset
6520
6521 's 
6522 \begin_inset Flex Code
6523 status collapsed
6524
6525 \begin_layout Plain Layout
6526
6527 \backslash
6528 begin{btUnit}
6529 \end_layout
6530
6531 \end_inset
6532
6533  and 
6534 \begin_inset Flex Code
6535 status collapsed
6536
6537 \begin_layout Plain Layout
6538
6539 \backslash
6540 end{btUnit}
6541 \end_layout
6542
6543 \end_inset
6544
6545  in order to create the units.
6546  Note that this approach has some limitations.
6547  First, every citation reference has to be inside some 
6548 \begin_inset Flex Code
6549 status collapsed
6550
6551 \begin_layout Plain Layout
6552 btUnit
6553 \end_layout
6554
6555 \end_inset
6556
6557 .
6558  So citations outside a defined unit (e.
6559 \begin_inset space \thinspace{}
6560 \end_inset
6561
6562 g., before the first section if you use 
6563 \begin_inset Quotes eld
6564 \end_inset
6565
6566 by section
6567 \begin_inset Quotes erd
6568 \end_inset
6569
6570 ) will appear as 
6571 \begin_inset Quotes eld
6572 \end_inset
6573
6574 ???
6575 \begin_inset Quotes erd
6576 \end_inset
6577
6578 .
6579  You can also create your own units by entering 
6580 \begin_inset Flex Code
6581 status collapsed
6582
6583 \begin_layout Plain Layout
6584
6585 \backslash
6586 begin{btUnit}
6587 \end_layout
6588
6589 \end_inset
6590
6591  and 
6592 \begin_inset Flex Code
6593 status collapsed
6594
6595 \begin_layout Plain Layout
6596
6597 \backslash
6598 end{btUnit}
6599 \end_layout
6600
6601 \end_inset
6602
6603  as \SpecialChar TeX
6604  code (for instance to work around the mentioned limitation).
6605  Note, though, that 
6606 \begin_inset Flex Code
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 btUnit
6611 \end_layout
6612
6613 \end_inset
6614
6615 s cannot be nested.
6616  A second limitation is that 
6617 \begin_inset Flex Code
6618 status collapsed
6619
6620 \begin_layout Plain Layout
6621 bibtopic
6622 \end_layout
6623
6624 \end_inset
6625
6626  always processes all references of a bibliography database, even if they
6627  are not cited.
6628  This can result in odd labels (e.
6629 \begin_inset space \thinspace{}
6630 \end_inset
6631
6632 g.
6633  
6634 \begin_inset Quotes eld
6635 \end_inset
6636
6637 Miller 2014b
6638 \begin_inset Quotes erd
6639 \end_inset
6640
6641  if two works of this author from 2014 are in the database, even if only
6642  one is cited).
6643 \end_layout
6644
6645 \begin_layout Standard
6646 If you use 
6647 \family sans
6648 Biblatex
6649 \family default
6650 , the 
6651 \begin_inset Flex Code
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 refsection
6656 \end_layout
6657
6658 \end_inset
6659
6660  option is used instead.
6661  If you need specific units, you can start them with the \SpecialChar TeX
6662  code 
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667
6668 \backslash
6669 newrefsection
6670 \end_layout
6671
6672 \end_inset
6673
6674  or 
6675 \begin_inset Flex Code
6676 status collapsed
6677
6678 \begin_layout Plain Layout
6679
6680 \backslash
6681 newrefsegment
6682 \end_layout
6683
6684 \end_inset
6685
6686 , respectively.
6687  If you also want to control the end of the unit, use the environment 
6688 \begin_inset Flex Code
6689 status collapsed
6690
6691 \begin_layout Plain Layout
6692
6693 \backslash
6694 begin{refsection}
6695 \end_layout
6696
6697 \end_inset
6698
6699  \SpecialChar ldots
6700  
6701 \begin_inset Flex Code
6702 status collapsed
6703
6704 \begin_layout Plain Layout
6705
6706 \backslash
6707 end{refsection}
6708 \end_layout
6709
6710 \end_inset
6711
6712  instead.
6713  Note, though, that 
6714 \begin_inset Flex Code
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 refsection
6719 \end_layout
6720
6721 \end_inset
6722
6723 s cannot be nested.
6724  In addition to the individual bibliography of the current unit, 
6725 \family sans
6726 Biblatex
6727 \family default
6728  also provides an easy way to output all bibliographies, subsequently, at
6729  one place (e.
6730 \begin_inset space \thinspace{}
6731 \end_inset
6732
6733 g., at the end of the document).
6734  Select 
6735 \begin_inset Quotes eld
6736 \end_inset
6737
6738 all reference units
6739 \begin_inset Quotes erd
6740 \end_inset
6741
6742  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
6743  this.
6744  Please refer to the 
6745 \family sans
6746 Biblatex
6747 \family default
6748  manual for more information on this topic.
6749 \end_layout
6750
6751 \begin_layout Section
6752 Multipart Documents
6753 \end_layout
6754
6755 \begin_layout Subsection
6756 General Operation
6757 \end_layout
6758
6759 \begin_layout Standard
6760 When you are working on a large file with many sections, it is often convenient
6761  to break up the document into several files, or perhaps you have something
6762  where a table may change from time to time, but the preceding text does
6763  not.
6764  In these cases, you should seriously consider using multipart documents.
6765  For example, scientific papers often have five major sections: the introduction
6766 , observations, results, discussion, and conclusion.
6767  Each of these could be its own separate \SpecialChar LyX
6768  file, with one 
6769 \begin_inset Quotes eld
6770 \end_inset
6771
6772 master
6773 \begin_inset Quotes erd
6774 \end_inset
6775
6776  file which contains the title, authors, abstract, references, etc., plus
6777  the five included files.
6778  It is important to note that each of these files is a full \SpecialChar LyX
6779  file which
6780  can be formatted and printed on its own, as well as included in a master
6781  file.
6782  Each of these files must have the same document class, however—don't attempt
6783  to mix book classes with article classes.
6784  You may also include \SpecialChar LaTeX
6785  files; however, these files must not have their own
6786  preamble (i.
6787 \begin_inset space \thinspace{}
6788 \end_inset
6789
6790 e.
6791 \begin_inset space \space{}
6792 \end_inset
6793
6794 everything up to and including the 
6795 \begin_inset Flex Code
6796 status collapsed
6797
6798 \begin_layout Plain Layout
6799
6800 \backslash
6801 begin{document}
6802 \end_layout
6803
6804 \end_inset
6805
6806  line as well as the 
6807 \begin_inset Flex Code
6808 status collapsed
6809
6810 \begin_layout Plain Layout
6811
6812 \backslash
6813 end{document}
6814 \end_layout
6815
6816 \end_inset
6817
6818  line must be deleted) or else errors will be generated when you try to
6819  make a DVI file.
6820 \end_layout
6821
6822 \begin_layout Standard
6823 \SpecialChar LyX
6824  allows you to include files quite easily with 
6825 \begin_inset Flex Noun
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 Insert\SpecialChar menuseparator
6830 Child
6831 \begin_inset space ~
6832 \end_inset
6833
6834 Document
6835 \end_layout
6836
6837 \end_inset
6838
6839 .
6840  When you click on this selection a small box is inserted into the file
6841  at the current cursor location.
6842  Clicking on the box raises a dialog which allows you to select the file
6843  to be included, and the method of its inclusion.
6844  
6845 \end_layout
6846
6847 \begin_layout Standard
6848 The file selection box should by now be obvious.
6849  The three inclusion methods are 
6850 \begin_inset Quotes eld
6851 \end_inset
6852
6853 include
6854 \begin_inset Quotes erd
6855 \end_inset
6856
6857
6858 \begin_inset Quotes eld
6859 \end_inset
6860
6861 input
6862 \begin_inset Quotes erd
6863 \end_inset
6864
6865 , and 
6866 \begin_inset Quotes eld
6867 \end_inset
6868
6869 verbatim
6870 \begin_inset Quotes erd
6871 \end_inset
6872
6873 .
6874  The methods 
6875 \begin_inset Quotes eld
6876 \end_inset
6877
6878 include
6879 \begin_inset Quotes erd
6880 \end_inset
6881
6882  and 
6883 \begin_inset Quotes eld
6884 \end_inset
6885
6886 input
6887 \begin_inset Quotes erd
6888 \end_inset
6889
6890  are similar in many ways, but there are also some notable differences:
6891 \end_layout
6892
6893 \begin_layout Enumerate
6894 Files that are 
6895 \begin_inset Quotes eld
6896 \end_inset
6897
6898 included
6899 \begin_inset Quotes erd
6900 \end_inset
6901
6902  are typeset beginning on a new page, while files that are 
6903 \begin_inset Quotes eld
6904 \end_inset
6905
6906 inputted
6907 \begin_inset Quotes erd
6908 \end_inset
6909
6910  are typeset starting on the current page.
6911 \end_layout
6912
6913 \begin_layout Enumerate
6914 \begin_inset Quotes eld
6915 \end_inset
6916
6917 Included
6918 \begin_inset Quotes erd
6919 \end_inset
6920
6921  files cannot themselves 
6922 \begin_inset Quotes eld
6923 \end_inset
6924
6925 include
6926 \begin_inset Quotes erd
6927 \end_inset
6928
6929  further files (
6930 \begin_inset Quotes eld
6931 \end_inset
6932
6933 grandchilds
6934 \begin_inset Quotes erd
6935 \end_inset
6936
6937 ).
6938  With 
6939 \begin_inset Quotes eld
6940 \end_inset
6941
6942 input
6943 \begin_inset Quotes erd
6944 \end_inset
6945
6946 , on the other hand, infinite sub-inputting is possible.
6947 \end_layout
6948
6949 \begin_layout Enumerate
6950 \begin_inset Quotes eld
6951 \end_inset
6952
6953 Include
6954 \begin_inset Quotes erd
6955 \end_inset
6956
6957  allow for the output of only selected 
6958 \begin_inset Quotes eld
6959 \end_inset
6960
6961 included
6962 \begin_inset Quotes erd
6963 \end_inset
6964
6965  files, while maintaining the actual counters (pagination etc.) and references
6966  (please refer to the section 
6967 \emph on
6968 Child
6969 \begin_inset space ~
6970 \end_inset
6971
6972 Documents
6973 \emph default
6974  of the 
6975 \emph on
6976 Embedded
6977 \begin_inset space ~
6978 \end_inset
6979
6980 Objects
6981 \emph default
6982  manual for details).
6983 \end_layout
6984
6985 \begin_layout Standard
6986 Hence, 
6987 \begin_inset Quotes eld
6988 \end_inset
6989
6990 include
6991 \begin_inset Quotes erd
6992 \end_inset
6993
6994  is the preferred method for chapters that are outsourced to child documents,
6995  while 
6996 \begin_inset Quotes eld
6997 \end_inset
6998
6999 input
7000 \begin_inset Quotes erd
7001 \end_inset
7002
7003  is more suitable for arbitrary file inheritance.
7004 \end_layout
7005
7006 \begin_layout Standard
7007
7008 \begin_inset Quotes eld
7009 \end_inset
7010
7011 verbatim
7012 \begin_inset Quotes erd
7013 \end_inset
7014
7015  included file allows you to include a file typeset exactly as it appears
7016  in the file, i.
7017 \begin_inset space \thinspace{}
7018 \end_inset
7019
7020 e.
7021 \begin_inset space \space{}
7022 \end_inset
7023
7024 in 
7025 \begin_inset Flex Code
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029 verbatim
7030 \end_layout
7031
7032 \end_inset
7033
7034  mode, with the characters set in a fixed-width typewriter font.
7035  Normally, spaces in this file are invisible, though two consecutive spaces
7036  are conserved, unlike \SpecialChar LyX
7037 's normal treatment of spaces.
7038  However, setting the 
7039 \begin_inset Flex Noun
7040 status collapsed
7041
7042 \begin_layout Plain Layout
7043 Mark
7044 \begin_inset space ~
7045 \end_inset
7046
7047 spaces
7048 \begin_inset space ~
7049 \end_inset
7050
7051 in
7052 \begin_inset space ~
7053 \end_inset
7054
7055 output
7056 \end_layout
7057
7058 \end_inset
7059
7060  checkbox typesets a mark to unambiguously define the presence of a space.
7061  
7062 \end_layout
7063
7064 \begin_layout Standard
7065 Generally, the master file is converted into a full \SpecialChar LaTeX
7066  file before typesetting,
7067  while the included files are converted to \SpecialChar LaTeX
7068  files that do not have all the
7069  preamble information.
7070 \end_layout
7071
7072 \begin_layout Subsection
7073 Cross-References Between Files
7074 \end_layout
7075
7076 \begin_layout Standard
7077 \begin_inset Box Shadowbox
7078 position "t"
7079 hor_pos "c"
7080 has_inner_box 1
7081 inner_pos "t"
7082 use_parbox 0
7083 use_makebox 0
7084 width "100col%"
7085 special "none"
7086 height "1in"
7087 height_special "totalheight"
7088 thickness "0.4pt"
7089 separation "3pt"
7090 shadowsize "4pt"
7091 framecolor "black"
7092 backgroundcolor "none"
7093 status open
7094
7095 \begin_layout Plain Layout
7096 This section is somewhat out of date.
7097  Need to describe default master documents and how children are opened when
7098  the master is.
7099  [[FIXME]]
7100 \end_layout
7101
7102 \end_inset
7103
7104
7105 \end_layout
7106
7107 \begin_layout Standard
7108 It is possible to set up cross-references between the different files.
7109  First, open all the files in question: let's call them A and B in a two
7110  file example, where B is included in A.
7111  Let's say you insert a label in A, then want to reference it in B.
7112  Open the cross-reference dialog whilst in document B, and you can select
7113  the 
7114 \begin_inset Quotes eld
7115 \end_inset
7116
7117 buffer
7118 \begin_inset Quotes erd
7119 \end_inset
7120
7121  to use.
7122 \end_layout
7123
7124 \begin_layout Subsection
7125 Bibliography Lists in all Subdocuments
7126 \end_layout
7127
7128 \begin_layout Standard
7129 If you work with child documents, you might want to have only one main bibliogra
7130 phy at the end, but still be able to have a selected bibliography for the
7131  child if you output it on its own.
7132  Here is how to achieve this.
7133 \end_layout
7134
7135 \begin_layout Standard
7136 For the main document, you just insert a bibliography inset at the place
7137  where the main bibliography has to appear (within the master file or within
7138  a child).
7139  If the bibliography inset is in the master file, the references will be
7140  inherited by all children, so they are available in the citation dialog
7141  within each child.
7142 \end_layout
7143
7144 \begin_layout Standard
7145 For child-specific bibliographies, insert bibliography insets within the
7146  child documents, at the place where the bibliography should appear when
7147  the child is compiled separately.
7148  However, the trick is to insert them into a branch (
7149 \family sans
7150 Insert\SpecialChar menuseparator
7151 Branch\SpecialChar menuseparator
7152 Insert New Branch...
7153 \family default
7154 ), e.
7155 \begin_inset space \thinspace{}
7156 \end_inset
7157
7158 g.
7159  called 
7160 \begin_inset Quotes eld
7161 \end_inset
7162
7163 Childonly
7164 \begin_inset Quotes erd
7165 \end_inset
7166
7167 .
7168  Within the children, activate the branch (
7169 \family sans
7170 Document\SpecialChar menuseparator
7171 Settings...\SpecialChar menuseparator
7172 Branches
7173 \family default
7174 ).
7175  Within the master, deactivate the branch (
7176 \family sans
7177 Document\SpecialChar menuseparator
7178 Settings...\SpecialChar menuseparator
7179 Branches
7180 \family default
7181 ).
7182  Now the child's bibliography will be ignored by the master, but considered
7183  by the child.
7184 \end_layout
7185
7186 \begin_layout Standard
7187 If you need multiple bibliographies (e.
7188 \begin_inset space \thinspace{}
7189 \end_inset
7190
7191 g., one per child in the 
7192 \emph on
7193 main document
7194 \emph default
7195 ), please refer to sec.
7196 \begin_inset space ~
7197 \end_inset
7198
7199
7200 \begin_inset CommandInset ref
7201 LatexCommand ref
7202 reference "subsec:Multiple-Bibliographies"
7203
7204 \end_inset
7205
7206 .
7207 \end_layout
7208
7209 \begin_layout Section
7210 \SpecialChar LyX
7211  Archives
7212 \end_layout
7213
7214 \begin_layout Standard
7215 Users sometimes need to be able to 
7216 \begin_inset Quotes eld
7217 \end_inset
7218
7219 bundle
7220 \begin_inset Quotes erd
7221 \end_inset
7222
7223  a \SpecialChar LyX
7224  file together with all the images (and other files) on which it depends,
7225  either for sending to a publisher or for sharing with a co-author.
7226  \SpecialChar LyX
7227  includes a Python script (
7228 \begin_inset Flex Code
7229 status collapsed
7230
7231 \begin_layout Plain Layout
7232 lyxpak.py
7233 \end_layout
7234
7235 \end_inset
7236
7237 ) that automates this process.
7238  To use it, you must have either the 
7239 \begin_inset Flex Code
7240 status collapsed
7241
7242 \begin_layout Plain Layout
7243 zipfile
7244 \end_layout
7245
7246 \end_inset
7247
7248  or 
7249 \begin_inset Flex Code
7250 status collapsed
7251
7252 \begin_layout Plain Layout
7253 tarfile
7254 \end_layout
7255
7256 \end_inset
7257
7258  python modules installed on your system.
7259  By default, the script prefers the 
7260 \begin_inset Flex Code
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 gzip
7265 \end_layout
7266
7267 \end_inset
7268
7269 -compressed 
7270 \begin_inset Flex Code
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 tar
7275 \end_layout
7276
7277 \end_inset
7278
7279  format on Unix-like systems and the 
7280 \begin_inset Flex Code
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 zip
7285 \end_layout
7286
7287 \end_inset
7288
7289  format on Windows.
7290 \end_layout
7291
7292 \begin_layout Standard
7293 \SpecialChar LyX
7294 's configuration process will set the script up to export a `\SpecialChar LyX
7295  Archive',
7296  and this format will then be available under 
7297 \begin_inset Flex Code
7298 status collapsed
7299
7300 \begin_layout Plain Layout
7301 File\SpecialChar menuseparator
7302 Export
7303 \end_layout
7304
7305 \end_inset
7306
7307 .
7308 \end_layout
7309
7310 \begin_layout Standard
7311 Independently of the platform, the generation of a particular archive format
7312  can be forced by adding either the 
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 -t
7318 \end_layout
7319
7320 \end_inset
7321
7322  (for the 
7323 \begin_inset Flex Code
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 tar
7328 \end_layout
7329
7330 \end_inset
7331
7332  format) or 
7333 \begin_inset Flex Code
7334 status collapsed
7335
7336 \begin_layout Plain Layout
7337 -z
7338 \end_layout
7339
7340 \end_inset
7341
7342  (for the 
7343 \begin_inset Flex Code
7344 status collapsed
7345
7346 \begin_layout Plain Layout
7347 zip
7348 \end_layout
7349
7350 \end_inset
7351
7352  format) switch to the 
7353 \begin_inset Flex Code
7354 status collapsed
7355
7356 \begin_layout Plain Layout
7357 \SpecialChar LyX
7358 \SpecialChar menuseparator
7359 \SpecialChar LyX
7360  Archive
7361 \end_layout
7362
7363 \end_inset
7364
7365  converter in 
7366 \begin_inset Flex Code
7367 status collapsed
7368
7369 \begin_layout Plain Layout
7370 Tools\SpecialChar menuseparator
7371 Preferences\SpecialChar menuseparator
7372 File Handling\SpecialChar menuseparator
7373 Converters
7374 \end_layout
7375
7376 \end_inset
7377
7378 .
7379  (Make sure you add the switch after the script name, not before it.)
7380 \end_layout
7381
7382 \begin_layout Section
7383 Fancy Headers and Footers
7384 \end_layout
7385
7386 \begin_layout Standard
7387 The default page layout is rather plain; for an 
7388 \begin_inset Flex Code
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392 article
7393 \end_layout
7394
7395 \end_inset
7396
7397  document class, all you get is a centered page number at the bottom of
7398  the page.
7399  This document uses KOMA-script's book class, so it appears to be a bit
7400  fancier.
7401  But to really put on a show, you need to set the document page style to
7402  
7403 \begin_inset Quotes eld
7404 \end_inset
7405
7406 fancy
7407 \begin_inset Quotes erd
7408 \end_inset
7409
7410 , as mentioned in the 
7411 \emph on
7412 User Guide
7413 \emph default
7414 .
7415  This section describes the \SpecialChar LaTeX
7416  code you need to insert in your \SpecialChar LaTeX
7417  preamble in
7418  order to get the desired effects.
7419 \end_layout
7420
7421 \begin_layout Standard
7422 For more information on fancy headers, see the 
7423 \begin_inset Flex Code
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 fancyhdr
7428 \end_layout
7429
7430 \end_inset
7431
7432  package documentation.
7433  (
7434 \begin_inset Flex URL
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438
7439 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
7440 \end_layout
7441
7442 \end_inset
7443
7444 )
7445 \end_layout
7446
7447 \begin_layout Standard
7448 The page header is divided into three fields, not surprisingly labeled 
7449 \begin_inset Quotes eld
7450 \end_inset
7451
7452 left
7453 \begin_inset Quotes erd
7454 \end_inset
7455
7456
7457 \begin_inset Quotes eld
7458 \end_inset
7459
7460 center
7461 \begin_inset Quotes erd
7462 \end_inset
7463
7464 , and 
7465 \begin_inset Quotes eld
7466 \end_inset
7467
7468 right
7469 \begin_inset Quotes erd
7470 \end_inset
7471
7472 .
7473  The footer is also divided into these three fields.
7474  The \SpecialChar LaTeX
7475  commands to set these fields in the simplest manner are 
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480
7481 \backslash
7482 lhead
7483 \end_layout
7484
7485 \end_inset
7486
7487
7488 \begin_inset Flex Code
7489 status collapsed
7490
7491 \begin_layout Plain Layout
7492
7493 \backslash
7494 chead
7495 \end_layout
7496
7497 \end_inset
7498
7499
7500 \begin_inset Flex Code
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504
7505 \backslash
7506 rhead
7507 \end_layout
7508
7509 \end_inset
7510
7511
7512 \begin_inset Flex Code
7513 status collapsed
7514
7515 \begin_layout Plain Layout
7516
7517 \backslash
7518 lfoot
7519 \end_layout
7520
7521 \end_inset
7522
7523 , etc.
7524  Suppose you wish to put your name in the upper left hand corner of each
7525  page.
7526  Simply insert the following command in the preamble: 
7527 \end_layout
7528
7529 \begin_layout Standard
7530
7531 \family typewriter
7532
7533 \backslash
7534 lhead{John Q.
7535  DocWriter}
7536 \end_layout
7537
7538 \begin_layout Standard
7539 You will now see your name in the upper left.
7540  If a field has a default entry that you would like to get rid of (often
7541  the page number appears in the central footer) simply include a command
7542  with a blank argument, e.
7543 \begin_inset space \thinspace{}
7544 \end_inset
7545
7546 g.:
7547 \end_layout
7548
7549 \begin_layout Standard
7550
7551 \family typewriter
7552
7553 \backslash
7554 cfoot{}
7555 \end_layout
7556
7557 \begin_layout Standard
7558 Let's get really fancy: lets put the section number with the word 
7559 \begin_inset Quotes eld
7560 \end_inset
7561
7562 Section
7563 \begin_inset Quotes erd
7564 \end_inset
7565
7566  (e.
7567 \begin_inset space \thinspace{}
7568 \end_inset
7569
7570 g.
7571 \begin_inset space \space{}
7572 \end_inset
7573
7574 Section 3) in the upper left, the page number (e.
7575 \begin_inset space \thinspace{}
7576 \end_inset
7577
7578 g.
7579 \begin_inset space \space{}
7580 \end_inset
7581
7582 Page 4) in the upper right, your name in the lower left, and the date in
7583  the lower right.
7584  The following commands should now appear in the preamble:
7585 \end_layout
7586
7587 \begin_layout Standard
7588
7589 \family typewriter
7590
7591 \backslash
7592 lhead{Section 
7593 \backslash
7594 thesection}
7595 \end_layout
7596
7597 \begin_layout Standard
7598
7599 \family typewriter
7600
7601 \backslash
7602 chead{}
7603 \end_layout
7604
7605 \begin_layout Standard
7606
7607 \family typewriter
7608
7609 \backslash
7610 rhead{Page 
7611 \backslash
7612 thepage}
7613 \end_layout
7614
7615 \begin_layout Standard
7616
7617 \family typewriter
7618
7619 \backslash
7620 lfoot{John Q.
7621  DocWriter}
7622 \end_layout
7623
7624 \begin_layout Standard
7625
7626 \family typewriter
7627
7628 \backslash
7629 cfoot{}
7630 \end_layout
7631
7632 \begin_layout Standard
7633
7634 \family typewriter
7635
7636 \backslash
7637 rfoot{
7638 \backslash
7639 today}
7640 \end_layout
7641
7642 \begin_layout Standard
7643 The commands 
7644 \begin_inset Flex Code
7645 status collapsed
7646
7647 \begin_layout Plain Layout
7648
7649 \backslash
7650 thesection
7651 \end_layout
7652
7653 \end_inset
7654
7655  and 
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660
7661 \backslash
7662 thepage
7663 \end_layout
7664
7665 \end_inset
7666
7667  access \SpecialChar LaTeX
7668 's section and page counters, and so print out the current section
7669  and page number.
7670  
7671 \begin_inset Flex Code
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675
7676 \backslash
7677 today
7678 \end_layout
7679
7680 \end_inset
7681
7682  simply prints out today's date.
7683 \end_layout
7684
7685 \begin_layout Standard
7686 The thicknesses of the horizontal rules drawn beneath the header and above
7687  the footer can also be modified.
7688  If you don't want one of the rules, set its thickness to 0.
7689  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
7690  Use commands
7691 \family typewriter
7692  
7693 \family default
7694 like 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699
7700 \backslash
7701 renewcommand{
7702 \backslash
7703 headrulewidth}{0.4pt}
7704 \end_layout
7705
7706 \end_inset
7707
7708  and 
7709 \begin_inset Flex Code
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713
7714 \backslash
7715 renewcommand{
7716 \backslash
7717 footrulewidth}{0.4pt}
7718 \end_layout
7719
7720 \end_inset
7721
7722  to set the thicknesses.
7723 \end_layout
7724
7725 \begin_layout Standard
7726 You can switch the header/footer settings on and off for individual pages
7727  using commands like 
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732
7733 \backslash
7734 thispagestyle{empty}
7735 \end_layout
7736
7737 \end_inset
7738
7739
7740 \begin_inset Flex Code
7741 status collapsed
7742
7743 \begin_layout Plain Layout
7744
7745 \backslash
7746 thispagestyle{plain}
7747 \end_layout
7748
7749 \end_inset
7750
7751 , and 
7752 \begin_inset Flex Code
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756
7757 \backslash
7758 thispagestyle{fancy}
7759 \end_layout
7760
7761 \end_inset
7762
7763 .
7764  Simply insert them in the text on the page you want changed and mark them
7765  as \SpecialChar TeX
7766  code.
7767  In fact, title pages are marked as plain by default, while following pages
7768  are marked fancy when using the global fancy setting.
7769 \end_layout
7770
7771 \begin_layout Standard
7772 As a final example, it is possible to include an image in the header or
7773  footer.
7774  Suppose you want to put a company logo in the upper lefthand corner.
7775  You might try something like
7776 \end_layout
7777
7778 \begin_layout Standard
7779
7780 \family typewriter
7781
7782 \backslash
7783 lhead{
7784 \backslash
7785 resizebox{1in}{!}{
7786 \backslash
7787 includegraphics{logo.eps}}}
7788 \end_layout
7789
7790 \begin_layout Standard
7791 \noindent
7792 (you may need to preface this with 
7793 \begin_inset Flex Code
7794 status collapsed
7795
7796 \begin_layout Plain Layout
7797
7798 \backslash
7799 usepackage{graphics}
7800 \end_layout
7801
7802 \end_inset
7803
7804  if you don't include graphics elsewhere in your document).
7805 \end_layout
7806
7807 \begin_layout Section
7808 Itemize Bullet Selection
7809 \begin_inset CommandInset label
7810 LatexCommand label
7811 name "sec:bullet"
7812
7813 \end_inset
7814
7815
7816 \end_layout
7817
7818 \begin_layout Standard
7819 by
7820 \noun on
7821  Allan Rae
7822 \end_layout
7823
7824 \begin_layout Subsection
7825 Introduction
7826 \end_layout
7827
7828 \begin_layout Standard
7829 \SpecialChar LyX
7830  provides 216 bullet shapes that can be accessed from a simple dialog.
7831  Using this dialog you can easily specify what bullet shape to use at each
7832  level of an itemized list.
7833  These settings are document-wide so you won't be able to specify different
7834  sets of bullets for different paragraphs.
7835 \begin_inset Foot
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 Well, actually you can but you'll have to do it by hand.
7840 \end_layout
7841
7842 \end_inset
7843
7844
7845 \end_layout
7846
7847 \begin_layout Subsection
7848 How it looks
7849 \end_layout
7850
7851 \begin_layout Standard
7852 Open the dialog by selecting the 
7853 \begin_inset Flex Noun
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 Document\SpecialChar menuseparator
7858 Settings
7859 \end_layout
7860
7861 \end_inset
7862
7863  menu item and then select the 
7864 \begin_inset Flex Noun
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 Bullets
7869 \end_layout
7870
7871 \end_inset
7872
7873  tab.
7874 \end_layout
7875
7876 \begin_layout Standard
7877 The dialog provides you with a table of bullet shapes.
7878  A column of buttons on the left of the table provides access to the six
7879  different panels of bullet shapes.
7880  The row of buttons across the top is used to select which bullet depth
7881  you are changing.
7882
7883 \change_deleted 244031559 1603875981
7884  A text entry under the table shows the currently selected bullet shape's
7885  \SpecialChar LaTeX
7886  equivalent and this can be edited if desired.
7887  If you do modify the text you will also need to specify any needed packages
7888  in the \SpecialChar LaTeX
7889  preamble.
7890 \change_unchanged
7891
7892 \end_layout
7893
7894 \begin_layout Standard
7895 The six panels are divided up by the packages they require.
7896  The following table shows the mappings from button name to \SpecialChar LaTeX
7897  package.
7898 \end_layout
7899
7900 \begin_layout Standard
7901 \align center
7902 \begin_inset Tabular
7903 <lyxtabular version="3" rows="7" columns="2">
7904 <features tabularvalignment="middle">
7905 <column alignment="center" valignment="top" width="0pt">
7906 <column alignment="center" valignment="top" width="0pt">
7907 <row>
7908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7909 \begin_inset Text
7910
7911 \begin_layout Plain Layout
7912
7913 \family roman
7914 \series medium
7915 \shape up
7916 \size normal
7917 \emph off
7918 \bar no
7919 \noun off
7920 \color none
7921 Button
7922 \end_layout
7923
7924 \end_inset
7925 </cell>
7926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7927 \begin_inset Text
7928
7929 \begin_layout Plain Layout
7930
7931 \family roman
7932 \series medium
7933 \shape up
7934 \size normal
7935 \emph off
7936 \bar no
7937 \noun off
7938 \color none
7939 Packages Required
7940 \end_layout
7941
7942 \end_inset
7943 </cell>
7944 </row>
7945 <row>
7946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7947 \begin_inset Text
7948
7949 \begin_layout Plain Layout
7950
7951 \family sans
7952 \series medium
7953 \shape up
7954 \size normal
7955 \emph off
7956 \bar no
7957 \noun off
7958 \color none
7959 Standard
7960 \end_layout
7961
7962 \end_inset
7963 </cell>
7964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7965 \begin_inset Text
7966
7967 \begin_layout Plain Layout
7968
7969 \series medium
7970 \shape up
7971 \size normal
7972 \emph off
7973 \bar no
7974 \noun off
7975 \color none
7976 base \SpecialChar LaTeX
7977
7978 \end_layout
7979
7980 \end_inset
7981 </cell>
7982 </row>
7983 <row>
7984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7985 \begin_inset Text
7986
7987 \begin_layout Plain Layout
7988
7989 \family sans
7990 \series medium
7991 \shape up
7992 \size normal
7993 \emph off
7994 \bar no
7995 \noun off
7996 \color none
7997 Maths
7998 \end_layout
7999
8000 \end_inset
8001 </cell>
8002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8003 \begin_inset Text
8004
8005 \begin_layout Plain Layout
8006
8007 \family typewriter
8008 \series medium
8009 \shape up
8010 \size normal
8011 \emph off
8012 \bar no
8013 \noun off
8014 \color none
8015 amssymb.sty
8016 \end_layout
8017
8018 \end_inset
8019 </cell>
8020 </row>
8021 <row>
8022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8023 \begin_inset Text
8024
8025 \begin_layout Plain Layout
8026
8027 \family sans
8028 \series medium
8029 \shape up
8030 \size normal
8031 \emph off
8032 \bar no
8033 \noun off
8034 \color none
8035 Ding1
8036 \end_layout
8037
8038 \end_inset
8039 </cell>
8040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8041 \begin_inset Text
8042
8043 \begin_layout Plain Layout
8044
8045 \family typewriter
8046 \series medium
8047 \shape up
8048 \size normal
8049 \emph off
8050 \bar no
8051 \noun off
8052 \color none
8053 pifont.sty
8054 \end_layout
8055
8056 \end_inset
8057 </cell>
8058 </row>
8059 <row>
8060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8061 \begin_inset Text
8062
8063 \begin_layout Plain Layout
8064
8065 \family sans
8066 \series medium
8067 \shape up
8068 \size normal
8069 \emph off
8070 \bar no
8071 \noun off
8072 \color none
8073 Ding2
8074 \end_layout
8075
8076 \end_inset
8077 </cell>
8078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8079 \begin_inset Text
8080
8081 \begin_layout Plain Layout
8082
8083 \family typewriter
8084 \series medium
8085 \shape up
8086 \size normal
8087 \emph off
8088 \bar no
8089 \noun off
8090 \color none
8091 pifont.sty
8092 \end_layout
8093
8094 \end_inset
8095 </cell>
8096 </row>
8097 <row>
8098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
8099 \begin_inset Text
8100
8101 \begin_layout Plain Layout
8102
8103 \family sans
8104 \series medium
8105 \shape up
8106 \size normal
8107 \emph off
8108 \bar no
8109 \noun off
8110 \color none
8111 Ding3
8112 \end_layout
8113
8114 \end_inset
8115 </cell>
8116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8117 \begin_inset Text
8118
8119 \begin_layout Plain Layout
8120
8121 \family typewriter
8122 \series medium
8123 \shape up
8124 \size normal
8125 \emph off
8126 \bar no
8127 \noun off
8128 \color none
8129 pifont.sty
8130 \end_layout
8131
8132 \end_inset
8133 </cell>
8134 </row>
8135 <row>
8136 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
8137 \begin_inset Text
8138
8139 \begin_layout Plain Layout
8140
8141 \family sans
8142 \series medium
8143 \shape up
8144 \size normal
8145 \emph off
8146 \bar no
8147 \noun off
8148 \color none
8149 Ding4
8150 \end_layout
8151
8152 \end_inset
8153 </cell>
8154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8155 \begin_inset Text
8156
8157 \begin_layout Plain Layout
8158
8159 \family typewriter
8160 \series medium
8161 \shape up
8162 \size normal
8163 \emph off
8164 \bar no
8165 \noun off
8166 \color none
8167 pifont.sty
8168 \end_layout
8169
8170 \end_inset
8171 </cell>
8172 </row>
8173 </lyxtabular>
8174
8175 \end_inset
8176
8177
8178 \end_layout
8179
8180 \begin_layout Standard
8181 \SpecialChar LyX
8182  doesn't stop you using bullets from packages you don't have.
8183  If you get errors from \SpecialChar LaTeX
8184  when you try to view or print the file, then it
8185  is likely you are missing a package.
8186 \begin_inset Foot
8187 status collapsed
8188
8189 \begin_layout Plain Layout
8190 \SpecialChar LyX
8191  doesn't restrict your use since you may be editing locally and exporting
8192  elsewhere.
8193 \end_layout
8194
8195 \end_inset
8196
8197
8198 \end_layout
8199
8200 \begin_layout Subsection
8201 How to use it
8202 \end_layout
8203
8204 \begin_layout Standard
8205 Select which bullet depth you want to change then select the bullet shape
8206  and size.
8207  Any changes will not be visible in \SpecialChar LyX
8208 , but are visible when viewing the document.
8209 \end_layout
8210
8211 \begin_layout Standard
8212 You can reset a bullet shape to the default simply by clicking your right
8213  mouse button on the appropriate bullet depth button.
8214 \begin_inset Foot
8215 status open
8216
8217 \begin_layout Plain Layout
8218 If you 
8219 \emph on
8220 really
8221 \emph default
8222  want to have multiple sets of paragraphs with different sets of bullets
8223  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
8224  code.
8225  The bullet selection dialog can help though because it provides you with
8226  the \SpecialChar LaTeX
8227  code for a wide range of bullet shapes.
8228  To make your own custom paragraphs you have the following options:
8229 \end_layout
8230
8231 \begin_layout Plain Layout
8232 \begin_inset ERT
8233 status open
8234
8235 \begin_layout Plain Layout
8236
8237
8238 \backslash
8239 let
8240 \backslash
8241 savelabelitemi=
8242 \backslash
8243 labelitemi
8244 \end_layout
8245
8246 \end_inset
8247
8248
8249 \end_layout
8250
8251 \begin_layout Plain Layout
8252 \begin_inset ERT
8253 status open
8254
8255 \begin_layout Plain Layout
8256
8257
8258 \backslash
8259 renewcommand
8260 \backslash
8261 labelitemi[0]{
8262 \backslash
8263 small
8264 \backslash
8265 (
8266 \backslash
8267 sharp
8268 \backslash
8269 )}
8270 \end_layout
8271
8272 \end_inset
8273
8274
8275 \end_layout
8276
8277 \begin_layout Itemize
8278 Use the \SpecialChar LaTeX
8279  command 
8280 \begin_inset Flex Code
8281 status collapsed
8282
8283 \begin_layout Plain Layout
8284
8285 \backslash
8286 renewcommand{}{}
8287 \end_layout
8288
8289 \end_inset
8290
8291  to specify a new bullet shape for a given depth.
8292  You'll also need to save the current bullet shape so you can restore it
8293  again afterwards.
8294  In this itemized list the following \SpecialChar LaTeX
8295  code was used to change the bullet
8296  used for the first depth.
8297 \end_layout
8298
8299 \begin_deeper
8300 \begin_layout LyX-Code
8301
8302 \backslash
8303 let
8304 \backslash
8305 savelabelitemi=
8306 \backslash
8307 labelitemi 
8308 \end_layout
8309
8310 \begin_layout LyX-Code
8311
8312 \backslash
8313 renewcommand
8314 \backslash
8315 labelitemi[0]{
8316 \backslash
8317 small
8318 \backslash
8319 (
8320 \backslash
8321 sharp
8322 \backslash
8323 )}
8324 \end_layout
8325
8326 \end_deeper
8327 \begin_layout Itemize
8328 Note that the itemize depth is specified in Roman numerals as part of the
8329  
8330 \family typewriter
8331
8332 \backslash
8333 labelitem
8334 \family default
8335  command.
8336 \end_layout
8337
8338 \begin_layout Itemize
8339 \begin_inset Argument item:1
8340 status open
8341
8342 \begin_layout Plain Layout
8343 \begin_inset ERT
8344 status open
8345
8346 \begin_layout Plain Layout
8347
8348
8349 \backslash
8350 (
8351 \backslash
8352 star
8353 \backslash
8354 )
8355 \end_layout
8356
8357 \end_inset
8358
8359
8360 \end_layout
8361
8362 \end_inset
8363
8364  Specify each individual entry by starting each item with the bullet shape
8365  enclosed in a 
8366 \begin_inset Quotes eld
8367 \end_inset
8368
8369 Custom Item
8370 \begin_inset Quotes erd
8371 \end_inset
8372
8373  inset (available at 
8374 \family sans
8375 Insert\SpecialChar menuseparator
8376 Custom Item
8377 \family default
8378 ) and set as 
8379 \begin_inset Flex Noun
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 \SpecialChar TeX
8384  Code
8385 \end_layout
8386
8387 \end_inset
8388
8389 .
8390  For example, this item was started with 
8391 \begin_inset Flex Code
8392 status collapsed
8393
8394 \begin_layout Plain Layout
8395
8396 \backslash
8397 (
8398 \backslash
8399 star
8400 \backslash
8401 )
8402 \end_layout
8403
8404 \end_inset
8405
8406 .
8407 \end_layout
8408
8409 \begin_layout Plain Layout
8410 \begin_inset ERT
8411 status open
8412
8413 \begin_layout Plain Layout
8414
8415
8416 \backslash
8417 renewcommand
8418 \backslash
8419 labelitemi[0]{
8420 \backslash
8421 savelabelitemi}
8422 \end_layout
8423
8424 \end_inset
8425
8426
8427 \end_layout
8428
8429 \begin_layout Plain Layout
8430 You'll also need to revert the labelitem back to its previous setting for
8431  the global bullet shape settings to remain in effect.
8432  The way used here was:
8433 \end_layout
8434
8435 \begin_layout LyX-Code
8436
8437 \backslash
8438 renewcommand
8439 \backslash
8440 labelitemi[0]{
8441 \backslash
8442 savelabelitemi}
8443 \end_layout
8444
8445 \end_inset
8446
8447
8448 \end_layout
8449
8450 \begin_layout Chapter
8451 \SpecialChar LyX
8452  and the World Wide Web
8453 \end_layout
8454
8455 \begin_layout Standard
8456 \SpecialChar LyX
8457  has long supported the export of documents to various web-friendly formats,
8458  such as HTML.
8459  Before version 2.0, however, HTML export was always accomplished by the
8460  use of external converters.
8461 \begin_inset Foot
8462 status collapsed
8463
8464 \begin_layout Plain Layout
8465 For details on the use of external converters with \SpecialChar LyX
8466 , see the 
8467 \emph on
8468 Converters
8469 \emph default
8470  section of the Customization manual.
8471 \end_layout
8472
8473 \end_inset
8474
8475  These fall into two large groups: there are converters that use \SpecialChar LaTeX
8476  as an
8477  intermediate format, such as 
8478 \begin_inset Flex Code
8479 status collapsed
8480
8481 \begin_layout Plain Layout
8482 htlatex
8483 \end_layout
8484
8485 \end_inset
8486
8487
8488 \begin_inset Flex Code
8489 status collapsed
8490
8491 \begin_layout Plain Layout
8492 html2latex
8493 \end_layout
8494
8495 \end_inset
8496
8497 , and 
8498 \begin_inset Flex Code
8499 status collapsed
8500
8501 \begin_layout Plain Layout
8502 plastex
8503 \end_layout
8504
8505 \end_inset
8506
8507 , relying upon \SpecialChar LyX
8508  to produce the \SpecialChar LaTeX
8509 ; and there is a converter that works directly
8510  on \SpecialChar LyX
8511  files, 
8512 \begin_inset Flex Code
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 e\SpecialChar LyX
8517 er
8518 \end_layout
8519
8520 \end_inset
8521
8522 .
8523  All of these have different advantages and disadvantages.
8524  
8525 \end_layout
8526
8527 \begin_layout Standard
8528 The \SpecialChar LaTeX
8529 -based converters have the advantage that, in principle, they know everythin
8530 g about the exported document that \SpecialChar LaTeX
8531  does.
8532  Such converters do not care, for example, if a certain block of code was
8533  produced by \SpecialChar LyX
8534  or was Evil Red Text.
8535  These converters know about 
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 aux
8541 \end_layout
8542
8543 \end_inset
8544
8545  files, counters, and references, and can often make use of the 
8546 \begin_inset Flex Code
8547 status collapsed
8548
8549 \begin_layout Plain Layout
8550 bbl
8551 \end_layout
8552
8553 \end_inset
8554
8555  files generated by Bib\SpecialChar TeX
8556 .
8557  On the other hand, \SpecialChar LaTeX
8558  is a very hard language to parse—it is sometimes said
8559  that only \SpecialChar TeX
8560  itself understands \SpecialChar TeX
8561 —and \SpecialChar LaTeX
8562 -based converters will often choke on
8563  what seem to be quite simple constructs; complex ones can throw them completely
8564 , and as of this writing, for example, the 
8565 \emph on
8566 Embedded Objects
8567 \emph default
8568  manual will not export with 
8569 \begin_inset Flex Code
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 htlatex
8574 \end_layout
8575
8576 \end_inset
8577
8578 , though the others will.
8579  The other issue concerns how math is handled.
8580  These converters typically convert the formulae into little pictures that
8581  are then linked from the HTML document.
8582  Since these are actually generated by \SpecialChar LaTeX
8583 , they are accurate.
8584  But they do not scale well, and just getting them to look as if they are
8585  actually meant to be in your document—so that the font sizes seem to be
8586  roughly the same—can be a challenge.
8587 \end_layout
8588
8589 \begin_layout Standard
8590 Alex Fernandez's 
8591 \begin_inset Flex Code
8592 status collapsed
8593
8594 \begin_layout Plain Layout
8595 e\SpecialChar LyX
8596 er
8597 \end_layout
8598
8599 \end_inset
8600
8601  (
8602 \begin_inset CommandInset href
8603 LatexCommand href
8604 name "http://pinchito.es/elyxer/"
8605 target "http://pinchito.es/elyxer/"
8606 literal "false"
8607
8608 \end_inset
8609
8610 ) solves some of these problems.
8611  In particular, the formulae it produces scale perfectly, since it renders
8612  math using a combination of HTML and CSS rather than converting the formulae
8613  to images.
8614  But even moderately complex formula are rendered less well than with 
8615 \begin_inset Flex Code
8616 status collapsed
8617
8618 \begin_layout Plain Layout
8619 htlatex
8620 \end_layout
8621
8622 \end_inset
8623
8624 ; this reflects the limitations of HTML.
8625 \begin_inset Foot
8626 status collapsed
8627
8628 \begin_layout Plain Layout
8629 That said, 
8630 \begin_inset Flex Code
8631 status collapsed
8632
8633 \begin_layout Plain Layout
8634 e\SpecialChar LyX
8635 er
8636 \end_layout
8637
8638 \end_inset
8639
8640  can also use jsMath and MathJax for equations, but this setting is only
8641  available globally and requires one to have access to a server that runs
8642  the backend.
8643 \end_layout
8644
8645 \end_inset
8646
8647  More importantly (as of version 1.1.1, at least), 
8648 \begin_inset Flex Code
8649 status collapsed
8650
8651 \begin_layout Plain Layout
8652 e\SpecialChar LyX
8653 er
8654 \end_layout
8655
8656 \end_inset
8657
8658  has limited support for math macros and no support for user-defined paragraph
8659  or character styles.
8660  These limitations make 
8661 \begin_inset Flex Code
8662 status collapsed
8663
8664 \begin_layout Plain Layout
8665 e\SpecialChar LyX
8666 er
8667 \end_layout
8668
8669 \end_inset
8670
8671  unsuitable for many of the documents \SpecialChar LyX
8672  users produce.
8673  In principle, of course, these problems could be solved, but the \SpecialChar LyX
8674  developers
8675  have decided to follow a different path and have made \SpecialChar LyX
8676  itself capable of
8677  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
8678 , DocBook, and plaintext.
8679 \end_layout
8680
8681 \begin_layout Standard
8682 As of this writing, XHTML output remains under development and should probably
8683  be regarded as 
8684 \begin_inset Quotes eld
8685 \end_inset
8686
8687 experimental
8688 \begin_inset Quotes erd
8689 \end_inset
8690
8691 .
8692 \begin_inset Foot
8693 status collapsed
8694
8695 \begin_layout Plain Layout
8696 The file 
8697 \begin_inset Flex Code
8698 status collapsed
8699
8700 \begin_layout Plain Layout
8701 development/HTML/HTML.notes
8702 \end_layout
8703
8704 \end_inset
8705
8706 , which can be found in the \SpecialChar LyX
8707  source tree or 
8708 \begin_inset CommandInset href
8709 LatexCommand href
8710 name "accessed online"
8711 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
8712 literal "false"
8713
8714 \end_inset
8715
8716 , usually contains up-to-date information about the state of XHTML output.
8717  See also the list of XHTML bugs on 
8718 \begin_inset CommandInset href
8719 LatexCommand href
8720 name "the bug tracker"
8721 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"
8722 literal "false"
8723
8724 \end_inset
8725
8726 .
8727 \end_layout
8728
8729 \end_inset
8730
8731  Still, the developers have chosen this approach because it has several
8732  potential advantages over the other two.
8733 \end_layout
8734
8735 \begin_layout Standard
8736 These advantages are primarily due to the fact that the XHTML output routines,
8737  since they are part of \SpecialChar LyX
8738 , know everything \SpecialChar LyX
8739  knows about the document being
8740  exported.
8741 \begin_inset Foot
8742 status collapsed
8743
8744 \begin_layout Plain Layout
8745 Another advantage is that, since these routines are internal to \SpecialChar LyX
8746 , they are
8747  immune to changes in \SpecialChar LyX
8748 's file format, or to changes in the semantics of
8749  existing insets.
8750 \end_layout
8751
8752 \end_inset
8753
8754  So they know about the table of contents (as displayed in the outline),
8755  about the counters associated with different paragraph styles, and about
8756  user-defined styles.
8757  The XHTML output routines know what \SpecialChar LyX
8758  knows about internationalization,
8759  too, so they will output 
8760 \begin_inset Quotes eld
8761 \end_inset
8762
8763 Chapter 1
8764 \begin_inset Quotes erd
8765 \end_inset
8766
8767  or 
8768 \begin_inset Quotes eld
8769 \end_inset
8770
8771
8772 \lang ngerman
8773 Kapitel
8774 \lang english
8775  1
8776 \begin_inset Quotes erd
8777 \end_inset
8778
8779 , depending upon the language in effect at the time.
8780  
8781 \end_layout
8782
8783 \begin_layout Standard
8784 Quite generally, the output routines know what \SpecialChar LyX
8785  knows about document layout,
8786  that is, about how the document is to be rendered on screen.
8787  We use this information when we output the document as XHTML.
8788  In particular, \SpecialChar LyX
8789  
8790 \emph on
8791 automatically
8792 \emph default
8793  generates CSS style information corresponding to the layout information
8794  it uses to render the document on screen: if section headings are supposed
8795  to be sans-serif and bold as seen in \SpecialChar LyX
8796 , then (by default) they will be sans-seri
8797 f and bold when viewed in a web browser, too.
8798  And this is true not just for pre-defined styles, like Section, but for
8799  any style, including user-defined styles.
8800  Indeed, the XHTML output routines make no distinction between user-defined
8801  paragraph and 
8802 \change_deleted 244031559 1603876931
8803 character
8804 \change_inserted 244031559 1603876940
8805 text
8806 \change_unchanged
8807  styles and \SpecialChar LyX
8808 's own pre-defined styles: in each case, everything \SpecialChar LyX
8809  knows about
8810  the styles is contained in the layout files.
8811  And much the same is true as regards pre-defined textual insets, such as
8812  footnotes, and various custom insets.
8813  
8814 \end_layout
8815
8816 \begin_layout Standard
8817 The result is that XHTML output can be customized and extended in exactly
8818  the same way \SpecialChar LaTeX
8819  output can be customized and extended: through layout files
8820  and modules.
8821  See chapter five of the 
8822 \emph on
8823 Customization 
8824 \emph default
8825 manual for the details.
8826 \end_layout
8827
8828 \begin_layout Standard
8829 The remainder of this chapter contains more detailed information on XHTML
8830  output, its limitations, and ways to work around those limitations.
8831 \end_layout
8832
8833 \begin_layout Section
8834 Math Output in XHTML
8835 \end_layout
8836
8837 \begin_layout Standard
8838 \SpecialChar LyX
8839  offers four choices for how math is rendered.
8840  These have various advantages and disadvantages:
8841 \end_layout
8842
8843 \begin_layout Itemize
8844 MathML
8845 \begin_inset Newline newline
8846 \end_inset
8847
8848 MathML is a dialect of XML designed specifically for mathematics on the
8849  web, and it typically renders very well in browsers that support it.
8850  The disadvantage is that not all browsers support MathML, and support is
8851  not complete even in the Gecko-based browsers, such as Firefox.
8852 \begin_inset Newline newline
8853 \end_inset
8854
8855 If \SpecialChar LyX
8856  is unable to render a formula as MathML—for example, if the formula
8857  uses the 
8858 \begin_inset Flex Code
8859 status collapsed
8860
8861 \begin_layout Plain Layout
8862 xymatrix
8863 \end_layout
8864
8865 \end_inset
8866
8867  package or ERT—then it will instead output the formula as an image.
8868  
8869 \end_layout
8870
8871 \begin_layout Itemize
8872 HTML
8873 \begin_inset Newline newline
8874 \end_inset
8875
8876 As mentioned above, 
8877 \begin_inset Flex Code
8878 status collapsed
8879
8880 \begin_layout Plain Layout
8881 elyxer
8882 \end_layout
8883
8884 \end_inset
8885
8886  outputs math as HTML, styled by CSS.
8887 \begin_inset Foot
8888 status collapsed
8889
8890 \begin_layout Plain Layout
8891 \SpecialChar LyX
8892  has borrowed some of the CSS for its HTML output from 
8893 \begin_inset Flex Code
8894 status collapsed
8895
8896 \begin_layout Plain Layout
8897 elyxer
8898 \end_layout
8899
8900 \end_inset
8901
8902 .
8903 \end_layout
8904
8905 \end_inset
8906
8907  For simple formulae, this can work quite well, though with more complicated
8908  formulae it tends to break down.
8909  Still, this method has the advantage that it is very widely supported and
8910  so it may be appropriate for documents that contain only a little, fairly
8911  simple math.
8912 \begin_inset Newline newline
8913 \end_inset
8914
8915 If Lyx is unable to render a formula as HTML—for example, if the formula
8916  uses the 
8917 \begin_inset Flex Code
8918 status collapsed
8919
8920 \begin_layout Plain Layout
8921 xymatrix
8922 \end_layout
8923
8924 \end_inset
8925
8926  package or ERT—then it will instead output the formula as an image.
8927  
8928 \end_layout
8929
8930 \begin_layout Itemize
8931 Images
8932 \begin_inset Newline newline
8933 \end_inset
8934
8935 Like 
8936 \begin_inset Flex Code
8937 status collapsed
8938
8939 \begin_layout Plain Layout
8940 htlatex
8941 \end_layout
8942
8943 \end_inset
8944
8945 , \SpecialChar LyX
8946  will output formulae as images, the very same images, in fact, that are
8947  used for instant preview.
8948 \begin_inset Foot
8949 status collapsed
8950
8951 \begin_layout Plain Layout
8952 Instant preview does 
8953 \emph on
8954 not 
8955 \emph default
8956 have to be on for images to be output, however.
8957 \end_layout
8958
8959 \end_inset
8960
8961  The advantage to this method is that the images are simply generated by
8962  \SpecialChar LaTeX
8963 , so they are very accurate.
8964  The disadvantage, as mentioned earlier, is that these are bitmapped images,
8965  so they do not scale terribly well, and one cannot copy them, etc.
8966 \begin_inset Newline newline
8967 \end_inset
8968
8969 The size of the images can be controlled by setting the 
8970 \begin_inset Quotes eld
8971 \end_inset
8972
8973 Math Images Scaling
8974 \begin_inset Quotes erd
8975 \end_inset
8976
8977  parameter under 
8978 \begin_inset Flex Noun
8979 status collapsed
8980
8981 \begin_layout Plain Layout
8982 Document\SpecialChar menuseparator
8983 Settings\SpecialChar menuseparator
8984 Formats
8985 \end_layout
8986
8987 \end_inset
8988
8989 .
8990 \begin_inset Foot
8991 status collapsed
8992
8993 \begin_layout Plain Layout
8994 For those who want to know, this controls the resolution of the image in
8995  dots per inch and is based upon a default of 75 dpi.
8996 \end_layout
8997
8998 \end_inset
8999
9000
9001 \begin_inset Newline newline
9002 \end_inset
9003
9004 If \SpecialChar LyX
9005  for some reason fails to create an image for a formula (e.g., if a required
9006  \SpecialChar LaTeX
9007  package is not installed), then it will fall back to outputing the raw
9008  \SpecialChar LaTeX
9009 .
9010 \end_layout
9011
9012 \begin_layout Itemize
9013 \SpecialChar LaTeX
9014
9015 \begin_inset Newline newline
9016 \end_inset
9017
9018 Finally, \SpecialChar LyX
9019  will happily output math as \SpecialChar LaTeX
9020 .
9021  As well as being the output of last resort, this method can be used with
9022  such tools as 
9023 \begin_inset CommandInset href
9024 LatexCommand href
9025 name "jsMath"
9026 target "http://www.math.union.edu/~dpvc/jsMath/"
9027 literal "false"
9028
9029 \end_inset
9030
9031 , which uses JavaScript to render \SpecialChar LaTeX
9032  embedded in HTML documents.
9033  \SpecialChar LyX
9034  wraps the \SpecialChar LaTeX
9035  in either a 
9036 \begin_inset Flex Code
9037 status collapsed
9038
9039 \begin_layout Plain Layout
9040 span
9041 \end_layout
9042
9043 \end_inset
9044
9045  (for inline formulas) or 
9046 \begin_inset Flex Code
9047 status collapsed
9048
9049 \begin_layout Plain Layout
9050 div
9051 \end_layout
9052
9053 \end_inset
9054
9055  (for displayed formulas) with 
9056 \begin_inset Flex Code
9057 status collapsed
9058
9059 \begin_layout Plain Layout
9060 class='math'
9061 \end_layout
9062
9063 \end_inset
9064
9065 , as is required for jsMath.
9066 \end_layout
9067
9068 \begin_layout Standard
9069 One of these output methods must be selected under 
9070 \begin_inset Flex Noun
9071 status collapsed
9072
9073 \begin_layout Plain Layout
9074 Document\SpecialChar menuseparator
9075 Settings\SpecialChar menuseparator
9076 Formats
9077 \end_layout
9078
9079 \end_inset
9080
9081 .
9082  By default, \SpecialChar LyX
9083  outputs MathML.
9084  This is a document-wide setting, therefore.
9085 \end_layout
9086
9087 \begin_layout Standard
9088 Eventually, \SpecialChar LyX
9089  will offer the user the option to select an alternate output
9090  method for a particular inset, say, one that isn't being rendered very
9091  well by MathML.
9092 \begin_inset Foot
9093 status collapsed
9094
9095 \begin_layout Plain Layout
9096 That said, since \SpecialChar LyX
9097  falls back to images if the inset contains ERT, then one
9098  can force output as an image by putting some harmless ERT into the math,
9099  for example: 
9100 \begin_inset Formula $a=b\relax$
9101 \end_inset
9102
9103 .
9104 \end_layout
9105
9106 \end_inset
9107
9108
9109 \end_layout
9110
9111 \begin_layout Section
9112 Bibliography and Citations
9113 \end_layout
9114
9115 \begin_layout Standard
9116 XHTML output fully supports bibliographies and citations.
9117  
9118 \end_layout
9119
9120 \begin_layout Standard
9121 Citation labels are generated by the same machinery that generates \SpecialChar LyX
9122 's on-screen
9123  labels, so the labels will look in the output much as they do in \SpecialChar LyX
9124 , though
9125  better.
9126  If you are using numerical citations, then \SpecialChar LyX
9127  will output numerical labels,
9128  such as [1] or [17], rather than simply showing the citation key in square
9129  brackets, as it does on-screen.
9130  If you are using author-year citations, then \SpecialChar LyX
9131  will add lowercase letters
9132  to the years, just as Bib\SpecialChar TeX
9133  does, if it finds more than one citation for
9134  a given author-year combination.
9135  The labels will be printed with the bibliography entries.
9136  Note that there is, at present, no way to customize the appearance of the
9137  labels, for example, to choose between square brackets and parentheses.
9138 \end_layout
9139
9140 \begin_layout Standard
9141 Bibliography output is handled by the same machinery that handles the presentati
9142 on of reference information in the citation dialog, so you will see in the
9143  XHTML output pretty much what you would see if you were to look at a given
9144  entry in the citation dialog.
9145  The formatting can be customized in your layout file or, preferably, in
9146  a module.
9147  See the 
9148 \emph on
9149 Customization
9150 \emph default
9151  manual for the details.
9152 \end_layout
9153
9154 \begin_layout Standard
9155 The main defect at present is that cross-referenced information is printed
9156  with every entry with which it is associated.
9157  So you can see things like this:
9158 \end_layout
9159
9160 \begin_layout Quote
9161 Jason Stanley, 
9162 \begin_inset Quotes eld
9163 \end_inset
9164
9165 Context and Logical Form
9166 \begin_inset Quotes erd
9167 \end_inset
9168
9169 , in 
9170 \emph on
9171 Language in Context: Selected Essays
9172 \emph default
9173  (Oxford: Oxford University Press, 2007), pp.
9174  30–68.
9175 \end_layout
9176
9177 \begin_layout Quote
9178 Jason Stanley, 
9179 \begin_inset Quotes eld
9180 \end_inset
9181
9182 Semantics in Context
9183 \begin_inset Quotes erd
9184 \end_inset
9185
9186 , in 
9187 \emph on
9188 Language in Context: Selected Essays
9189 \emph default
9190  (Oxford: Oxford University Press, 2007), pp.
9191  201–30.
9192 \end_layout
9193
9194 \begin_layout Standard
9195 This should be fixed before long.
9196 \end_layout
9197
9198 \begin_layout Standard
9199 There is no support at present for sectioned bibliographies.
9200  If you have multiple bibliographies, then \SpecialChar LyX
9201  will print the same bibliography
9202  over and over.
9203 \end_layout
9204
9205 \begin_layout Section
9206 Indexes
9207 \end_layout
9208
9209 \begin_layout Standard
9210 \SpecialChar LyX
9211  will happily export indexes as XHTML, but with certain limitations at the
9212  moment.
9213 \end_layout
9214
9215 \begin_layout Standard
9216 Index export will be most reliable when you do not attempt to use the fancy
9217  constructs that are described in the section on indexes in the 
9218 \emph on
9219 User's Guide
9220 \emph default
9221 .
9222 \begin_inset Foot
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 The main issue here is that \SpecialChar LyX
9227  itself does not really handle these.
9228  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
9229 .
9230 \end_layout
9231
9232 \end_inset
9233
9234  We'll describe how they are handled using the subsection headings from
9235  that section.
9236 \end_layout
9237
9238 \begin_layout Itemize
9239 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
9240  makes an effort to support these,
9241  but the entries must be separated by 
9242 \begin_inset Quotes eld
9243 \end_inset
9244
9245  ! 
9246 \begin_inset Quotes erd
9247 \end_inset
9248
9249 , that is, there must be spaces around the exclamation point.
9250  This is because it is otherwise too difficult to check for escaped exclamation
9251  points, ones in math, and so forth.
9252 \end_layout
9253
9254 \begin_layout Itemize
9255 Page Ranges: There is no support at all for page ranges, since these make
9256  no sense with XHMTL.
9257  Instead, you will just get two index entries, one at either end.
9258 \end_layout
9259
9260 \begin_layout Itemize
9261 Cross-referencing: There is no support for cross-referencing.
9262  If \SpecialChar LyX
9263  finds an entry containing the 
9264 \begin_inset Quotes eld
9265 \end_inset
9266
9267 |see\SpecialChar ldots
9268
9269 \begin_inset Quotes erd
9270 \end_inset
9271
9272  construct, it is just dropped, and the rest is treated as an ordinary index
9273  entry.
9274 \end_layout
9275
9276 \begin_layout Itemize
9277 Index Entry Order: \SpecialChar LyX
9278  does support attempts to fix the sorting order.
9279  It will take what is before the first `@' it finds and use that for sorting,
9280  taking what follows the first `@' to be the actual entry.
9281  At present, \SpecialChar LyX
9282  does not check for escaped `@', so do not try to index email
9283  addresses.
9284 \end_layout
9285
9286 \begin_layout Itemize
9287 Index Entry Layout: You can format entries by using the text style dialog,
9288  or by using any other method available within \SpecialChar LyX
9289  itself.
9290  There is no support for constructs like: 
9291 \begin_inset Quotes eld
9292 \end_inset
9293
9294 entry|textbf
9295 \begin_inset Quotes erd
9296 \end_inset
9297
9298 .
9299  Indeed, if \SpecialChar LyX
9300  finds a pipe symbol, `|', in an entry, it will delete it and
9301  everything that follows it.
9302 \end_layout
9303
9304 \begin_layout Itemize
9305 Multiple Indexes: There is no support for multiple indexes.
9306  Rather, all index entries will be printed as one large index.
9307  To avoid our printing several versions of the index, we print only the
9308  main index, so make sure you have one.
9309 \end_layout
9310
9311 \begin_layout Section
9312 Nomenclature and Glossary
9313 \end_layout
9314
9315 \begin_layout Standard
9316 There is at present no support for glossaries.
9317  Adding it would be fairly trivial, and welcome.
9318 \end_layout
9319
9320 \begin_layout Chapter
9321
9322 \change_inserted 1075283030 1616534180
9323 DocBook Output
9324 \end_layout
9325
9326 \begin_layout Standard
9327
9328 \change_inserted 1075283030 1616534386
9329 Apart from HTML, \SpecialChar LyX
9330  can generate documents in the DocBook XML vocabulary.
9331  With versions 2.3 and before, only select templates could be used to generate
9332  DocBook documents (only version 4).
9333  Starting with \SpecialChar LyX
9334  2.4, most \SpecialChar LyX
9335  layouts can generate valid DocBook documents (only
9336  version 5).
9337  This feature is built into \SpecialChar LyX
9338  and does not require the use of external tools.
9339 \end_layout
9340
9341 \begin_layout Standard
9342
9343 \change_inserted 1075283030 1616534437
9344 The result is that the DocBook output can be customized and extended in
9345  exactly the same way \SpecialChar LaTeX
9346  output can be customized and extended: through layout
9347  files and modules.
9348  See chapter five of the 
9349 \emph on
9350 Customization 
9351 \emph default
9352 manual for the details.
9353 \end_layout
9354
9355 \begin_layout Standard
9356
9357 \change_inserted 1075283030 1616534475
9358 Most \SpecialChar LyX
9359  features are supported with DocBook, like math output.
9360 \end_layout
9361
9362 \begin_layout Itemize
9363
9364 \change_inserted 1075283030 1616534741
9365 Math output is performed mostly in MathML (the major exception being constructio
9366 ns not supported by \SpecialChar LyX
9367 , i.e.
9368  ERTs).
9369  All formulae are also available in raw \SpecialChar TeX
9370  in the DocBook output for further
9371  processing.
9372 \end_layout
9373
9374 \begin_layout Itemize
9375
9376 \change_inserted 1075283030 1616534852
9377 Bibliographies and citations are implemented, including with an external
9378  BibTeX file.
9379  Bibliography entries are not prerendered when the detailed information
9380  are available, but rather output with the standard DocBook constructs.
9381  The external DocBook processor is expected to handle the rendering of entries.
9382 \end_layout
9383
9384 \begin_layout Itemize
9385
9386 \change_inserted 1075283030 1616534863
9387 Indexes are supported, including multiple indices.
9388  Grouping (with 
9389 \family typewriter
9390 !
9391 \family default
9392 ), page ranges, and cross-references (
9393 \family typewriter
9394 |see
9395 \family default
9396 ) are supported, with the exception of the same symbols escaped.
9397  Entry order (
9398 \family typewriter
9399 @
9400 \family default
9401 ) and layout (
9402 \family typewriter
9403 |mathbf
9404 \family default
9405 ) are not supported.
9406  There is no support for escaping of index entries.
9407 \end_layout
9408
9409 \begin_layout Itemize
9410
9411 \change_inserted 1075283030 1616534884
9412 Glossaries are implemented.
9413 \end_layout
9414
9415 \begin_layout Standard
9416
9417 \change_inserted 1075283030 1616534894
9418 Two major parameters can be set at the document level.
9419 \end_layout
9420
9421 \begin_layout Itemize
9422
9423 \change_inserted 1075283030 1616534948
9424 Format for tables: \SpecialChar LyX
9425  can generate tables either as HTML (default value) or
9426  CALS, depending on the user's requirements.
9427  Most DocBook processors accept both formats.
9428 \end_layout
9429
9430 \begin_layout Itemize
9431
9432 \change_inserted 1075283030 1616535006
9433 MathML prefix: in DocBook, MathML is included within its own name space,
9434  unlike HTML.
9435  The implication is that there must be an indication of the tags belonging
9436  to the MathML standard.
9437  Three choices are offered: 
9438 \end_layout
9439
9440 \begin_deeper
9441 \begin_layout Itemize
9442
9443 \change_inserted 1075283030 1616535044
9444 Inline: the MathML name space is defined for each formula (using the 
9445 \family typewriter
9446 xmlns
9447 \family default
9448  attribute on each formula)
9449 \end_layout
9450
9451 \begin_layout Itemize
9452
9453 \change_inserted 1075283030 1616535090
9454 With the 
9455 \family typewriter
9456 m
9457 \family default
9458  prefix (default): the MathML name space is defined at the document level
9459  (using the 
9460 \family typewriter
9461 xmlns:m
9462 \family default
9463  attribute on the root element).
9464  Each MathML is prefixed with 
9465 \family typewriter
9466 m
9467 \family default
9468 : for instance, 
9469 \family typewriter
9470 m:math
9471 \end_layout
9472
9473 \begin_layout Itemize
9474
9475 \change_inserted 1075283030 1616620405
9476 With the 
9477 \family typewriter
9478 mml
9479 \family default
9480  prefix: similar to the 
9481 \family typewriter
9482 m
9483 \family default
9484  option, but with 
9485 \family typewriter
9486 mml
9487 \end_layout
9488
9489 \begin_layout Standard
9490
9491 \change_inserted 1075283030 1616620470
9492 This option is especially useful if you want \SpecialChar LyX
9493  to match your personal style
9494  or to work with buggy software that only accepts one prefix for MathML.
9495 \change_unchanged
9496
9497 \end_layout
9498
9499 \end_deeper
9500 \begin_layout Chapter
9501 The \SpecialChar LyX
9502  Server
9503 \end_layout
9504
9505 \begin_layout Section
9506 Introduction
9507 \end_layout
9508
9509 \begin_layout Standard
9510 The `\SpecialChar LyX
9511  server' allows other programs to talk to \SpecialChar LyX
9512 , invoke \SpecialChar LyX
9513  commands, and retrieve
9514  information about the \SpecialChar LyX
9515  internal state.
9516  This is only intended for advanced users, but they should find it useful.
9517  It is by writing to the \SpecialChar LyX
9518  server, for example, that bibliography managers,
9519  such as JabRef, are able to 
9520 \begin_inset Quotes eld
9521 \end_inset
9522
9523 push
9524 \begin_inset Quotes erd
9525 \end_inset
9526
9527  citations to \SpecialChar LyX
9528 .
9529 \end_layout
9530
9531 \begin_layout Section
9532 Starting the \SpecialChar LyX
9533  Server
9534 \begin_inset CommandInset label
9535 LatexCommand label
9536 name "sec:Starting-the-Server"
9537
9538 \end_inset
9539
9540
9541 \end_layout
9542
9543 \begin_layout Standard
9544 The \SpecialChar LyX
9545  server works through the use of a pair of named pipes.
9546  These are usually located in 
9547 \begin_inset Flex Code
9548 status collapsed
9549
9550 \begin_layout Plain Layout
9551 UserDir
9552 \end_layout
9553
9554 \end_inset
9555
9556 , (except on Windows, where 
9557 \emph on
9558 local
9559 \emph default
9560  named pipes are special objects located in 
9561 \begin_inset Flex Code
9562 status collapsed
9563
9564 \begin_layout Plain Layout
9565
9566 \backslash
9567
9568 \backslash
9569 .
9570 \backslash
9571 pipe
9572 \end_layout
9573
9574 \end_inset
9575
9576 ) and have the names 
9577 \begin_inset Quotes eld
9578 \end_inset
9579
9580
9581 \begin_inset Flex Code
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 lyxpipe.in
9586 \end_layout
9587
9588 \end_inset
9589
9590
9591 \begin_inset Quotes erd
9592 \end_inset
9593
9594  and 
9595 \begin_inset Quotes eld
9596 \end_inset
9597
9598
9599 \begin_inset Flex Code
9600 status collapsed
9601
9602 \begin_layout Plain Layout
9603 lyxpipe.out
9604 \end_layout
9605
9606 \end_inset
9607
9608
9609 \begin_inset Quotes erd
9610 \end_inset
9611
9612 .
9613  External programs write into 
9614 \begin_inset Flex Code
9615 status collapsed
9616
9617 \begin_layout Plain Layout
9618 lyxpipe.in
9619 \end_layout
9620
9621 \end_inset
9622
9623  and read back data from 
9624 \begin_inset Flex Code
9625 status collapsed
9626
9627 \begin_layout Plain Layout
9628 lyxpipe.out
9629 \end_layout
9630
9631 \end_inset
9632
9633 .
9634  The stem of the pipe names can be defined in the 
9635 \begin_inset Flex Noun
9636 status collapsed
9637
9638 \begin_layout Plain Layout
9639 Tools\SpecialChar menuseparator
9640 Preferences
9641 \end_layout
9642
9643 \end_inset
9644
9645  dialog, for example 
9646 \begin_inset Flex Code
9647 status collapsed
9648
9649 \begin_layout Plain Layout
9650 "/home/myhome/lyxpipe"
9651 \end_layout
9652
9653 \end_inset
9654
9655 , or 
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 "
9661 \backslash
9662
9663 \backslash
9664 .
9665 \backslash
9666 pipe
9667 \backslash
9668 lyxpipe"
9669 \end_layout
9670
9671 \end_inset
9672
9673  on Windows (where any working path instead of lyxpipe can be used, for
9674  example 
9675 \begin_inset Flex Code
9676 status collapsed
9677
9678 \begin_layout Plain Layout
9679 "
9680 \backslash
9681
9682 \backslash
9683 .
9684 \backslash
9685 pipe
9686 \backslash
9687 my
9688 \backslash
9689 lyx
9690 \backslash
9691 pipe"
9692 \end_layout
9693
9694 \end_inset
9695
9696  would also work).
9697  You 
9698 \emph on
9699 must
9700 \emph default
9701  configure this manually in order for the server to start.
9702 \end_layout
9703
9704 \begin_layout Standard
9705 \SpecialChar LyX
9706  will add the '
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 .in
9712 \end_layout
9713
9714 \end_inset
9715
9716 ' and '
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 .out
9722 \end_layout
9723
9724 \end_inset
9725
9726 ' to create the pipes.
9727  If one of the pipes already exists, \SpecialChar LyX
9728  will assume that another \SpecialChar LyX
9729  process
9730  is already running and will not start the server.
9731  On POSIX (Unix like) systems, if for some other reason, an unused 
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735 stale
9736 \begin_inset Quotes erd
9737 \end_inset
9738
9739  pipe is left in existence when \SpecialChar LyX
9740  closes, then \SpecialChar LyX
9741  will try to delete it.
9742  If this fails for some reason, you will need to delete the pipes manually
9743  and then restart \SpecialChar LyX
9744 .
9745  On Windows, pipes are deleted by the OS on program termination or crash,
9746  so 
9747 \begin_inset Quotes eld
9748 \end_inset
9749
9750 stale
9751 \begin_inset Quotes erd
9752 \end_inset
9753
9754  pipes should not be possible.
9755 \end_layout
9756
9757 \begin_layout Standard
9758 To have several \SpecialChar LyX
9759  processes with servers at the same time, you have to use
9760  different configurations, perhaps by using separate user directories, each
9761  with its own 
9762 \begin_inset Flex Code
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 preferences
9767 \end_layout
9768
9769 \end_inset
9770
9771  file, for each process.
9772 \end_layout
9773
9774 \begin_layout Standard
9775 If you are developing a client program, you might find it useful to enable
9776  debugging information from the \SpecialChar LyX
9777  server.
9778  Do this by starting \SpecialChar LyX
9779  as 
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 lyx -dbg lyxserver
9785 \end_layout
9786
9787 \end_inset
9788
9789 .
9790 \end_layout
9791
9792 \begin_layout Standard
9793 You can find a complete example client written in C++ in the source distribution
9794  as 
9795 \begin_inset Flex Code
9796 status collapsed
9797
9798 \begin_layout Plain Layout
9799 development/lyxserver/server_monitor.cpp
9800 \end_layout
9801
9802 \end_inset
9803
9804 .
9805 \end_layout
9806
9807 \begin_layout Standard
9808 Another useful tool is the command-line based client found in 
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 src/client/lyxclient
9814 \end_layout
9815
9816 \end_inset
9817
9818 .
9819 \end_layout
9820
9821 \begin_layout Section
9822 Normal communication
9823 \end_layout
9824
9825 \begin_layout Standard
9826 To issue a \SpecialChar LyX
9827  call, the client writes a line of ASCII text into the input
9828  pipe.
9829  This line has the following format:
9830 \end_layout
9831
9832 \begin_layout Quote
9833 LYXCMD:
9834 \emph on
9835 clientname
9836 \emph default
9837 :
9838 \emph on
9839 function
9840 \emph default
9841 :
9842 \emph on
9843 argument
9844 \end_layout
9845
9846 \begin_layout Description
9847 clientname is a name that the client can choose arbitrarily.
9848  Its only use is that \SpecialChar LyX
9849  will echo it if it sends an answer—so a client can
9850  dispatch results from different requesters.
9851 \end_layout
9852
9853 \begin_layout Description
9854 function is the function you want \SpecialChar LyX
9855  to perform.
9856  It is the same as the commands you'd use in the minibuffer.
9857 \end_layout
9858
9859 \begin_layout Description
9860 argument is an optional argument which is meaningful only to some functions
9861  (for instance, the 
9862 \begin_inset Quotes eld
9863 \end_inset
9864
9865 self-insert
9866 \begin_inset Quotes erd
9867 \end_inset
9868
9869  LFUN will insert the argument as text at the cursor position).
9870 \end_layout
9871
9872 \begin_layout Standard
9873 The answer from \SpecialChar LyX
9874  will arrive in the output pipe and be of the form
9875 \end_layout
9876
9877 \begin_layout Quote
9878 INFO:
9879 \emph on
9880 clientname
9881 \emph default
9882 :
9883 \emph on
9884 function
9885 \emph default
9886 :
9887 \emph on
9888 data
9889 \end_layout
9890
9891 \begin_layout Standard
9892 where 
9893 \emph on
9894 clientname
9895 \emph default
9896  and 
9897 \emph on
9898 function
9899 \emph default
9900  are just echoed from the command request, while 
9901 \emph on
9902 data
9903 \emph default
9904  is more or less useful information filled according to how the command
9905  execution worked out.
9906  Some commands, such as 
9907 \begin_inset Quotes eld
9908 \end_inset
9909
9910 font-state
9911 \begin_inset Quotes erd
9912 \end_inset
9913
9914 , will return information about the internal state of \SpecialChar LyX
9915 , while other will
9916  return an empty data-response.
9917  This means that the command execution went fine.
9918 \end_layout
9919
9920 \begin_layout Standard
9921 In case of errors, the response from \SpecialChar LyX
9922  will have this form
9923 \end_layout
9924
9925 \begin_layout Quote
9926 ERROR:
9927 \emph on
9928 clientname
9929 \emph default
9930 :
9931 \emph on
9932 function
9933 \emph default
9934 :
9935 \emph on
9936 error message
9937 \end_layout
9938
9939 \begin_layout Standard
9940 where the 
9941 \emph on
9942 error message
9943 \emph default
9944  should contain an explanation of why the command failed.
9945 \end_layout
9946
9947 \begin_layout Standard
9948 Examples:
9949 \end_layout
9950
9951 \begin_layout LyX-Code
9952 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
9953 \begin_inset Newline newline
9954 \end_inset
9955
9956 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
9957 \begin_inset Newline newline
9958 \end_inset
9959
9960 read a <~/.lyxpipe.out
9961 \begin_inset Newline newline
9962 \end_inset
9963
9964 echo $a
9965 \end_layout
9966
9967 \begin_layout Subsection
9968 AppleScript (Mac OS X)
9969 \end_layout
9970
9971 \begin_layout Standard
9972 Since \SpecialChar LyX
9973  2.1, \SpecialChar LyX
9974  supports basic interactions with AppleScript for normal communicatio
9975 n through the command run.
9976  This command takes a direct argument (the 
9977 \series bold
9978 function
9979 \series default
9980  to perform) and an optional argument.
9981  It either returns the output of the function or triggers an error with
9982  the error message and code.
9983 \end_layout
9984
9985 \begin_layout Standard
9986 Example:
9987 \end_layout
9988
9989 \begin_layout LyX-Code
9990 tell application "\SpecialChar LyX
9991 "
9992 \end_layout
9993
9994 \begin_layout LyX-Code
9995   try
9996 \end_layout
9997
9998 \begin_layout LyX-Code
9999     -- Stores the current file name into f
10000 \end_layout
10001
10002 \begin_layout LyX-Code
10003     set f to (run "server-get-filename" with argument "")
10004 \end_layout
10005
10006 \begin_layout LyX-Code
10007     on error the error_message number the error_number
10008 \end_layout
10009
10010 \begin_layout LyX-Code
10011       display dialog "Error: " & the error_number & ".
10012  " ¬
10013 \end_layout
10014
10015 \begin_layout LyX-Code
10016               & the error_message buttons {"OK"} default button 1
10017 \end_layout
10018
10019 \begin_layout LyX-Code
10020   end try
10021 \end_layout
10022
10023 \begin_layout LyX-Code
10024 end tell
10025 \end_layout
10026
10027 \begin_layout Section
10028 Notification
10029 \end_layout
10030
10031 \begin_layout Standard
10032 \SpecialChar LyX
10033  can notify clients of events going on asynchronously.
10034  Currently it will only do this if the user binds a key sequence with the
10035  function 
10036 \begin_inset Quotes eld
10037 \end_inset
10038
10039 notify
10040 \begin_inset Quotes erd
10041 \end_inset
10042
10043 .
10044  The format of the string \SpecialChar LyX
10045  sends is as follows:
10046 \end_layout
10047
10048 \begin_layout Quote
10049 \begin_inset Flex Code
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 NOTIFY:
10054 \end_layout
10055
10056 \end_inset
10057
10058
10059 \emph on
10060 key-sequence
10061 \end_layout
10062
10063 \begin_layout Standard
10064 where 
10065 \emph on
10066 key-sequence
10067 \emph default
10068  is the printed representation of the key sequence that was actually typed
10069  by the user.
10070 \end_layout
10071
10072 \begin_layout Standard
10073 This mechanism can be used to extend \SpecialChar LyX
10074 's command set and implement macros.
10075  Bind some key sequence to 
10076 \begin_inset Quotes eld
10077 \end_inset
10078
10079 notify
10080 \begin_inset Quotes erd
10081 \end_inset
10082
10083 .
10084  Then start a client that listens on the output pipe, dispatches the command
10085  according to the sequence, and starts a function that may use \SpecialChar LyX
10086  calls and
10087  \SpecialChar LyX
10088  requests to issue a command or a series of commands to \SpecialChar LyX
10089 .
10090 \end_layout
10091
10092 \begin_layout Section
10093 The simple \SpecialChar LyX
10094  Server Protocol
10095 \end_layout
10096
10097 \begin_layout Standard
10098 \SpecialChar LyX
10099  implements a simple protocol that can be used for session management.
10100  All messages are of the form
10101 \end_layout
10102
10103 \begin_layout Quote
10104 LYXSRV:
10105 \emph on
10106 clientname
10107 \emph default
10108 :
10109 \emph on
10110 protocol message
10111 \end_layout
10112
10113 \begin_layout Standard
10114 where 
10115 \emph on
10116 protocol message
10117 \emph default
10118  can be 
10119 \begin_inset Quotes eld
10120 \end_inset
10121
10122 hello
10123 \begin_inset Quotes erd
10124 \end_inset
10125
10126  or 
10127 \begin_inset Quotes eld
10128 \end_inset
10129
10130 bye
10131 \begin_inset Quotes erd
10132 \end_inset
10133
10134 .
10135  If 
10136 \begin_inset Quotes eld
10137 \end_inset
10138
10139 hello
10140 \begin_inset Quotes erd
10141 \end_inset
10142
10143  is received from a client, \SpecialChar LyX
10144  will report back to inform the client that
10145  it's listening to it's messages, while 
10146 \begin_inset Quotes eld
10147 \end_inset
10148
10149 bye
10150 \begin_inset Quotes erd
10151 \end_inset
10152
10153  sent from \SpecialChar LyX
10154  will inform clients that \SpecialChar LyX
10155  is closing.
10156 \end_layout
10157
10158 \begin_layout Section
10159 Reverse DVI/PDF search
10160 \end_layout
10161
10162 \begin_layout Standard
10163 Some DVI/PDF viewers
10164 \begin_inset Foot
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
10169  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
10170 \end_layout
10171
10172 \end_inset
10173
10174  provide 
10175 \emph on
10176 reverse search
10177 \emph default
10178  facility (also called 
10179 \emph on
10180 inverse search
10181 \emph default
10182 ).
10183  This means that you can tell \SpecialChar LyX
10184  to put the cursor to a specific line in the
10185  document by clicking at the respective position in the DVI/PDF output.
10186  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
10187 .
10188  This is done via the \SpecialChar LyX
10189  server either by using the named pipe (
10190 \emph on
10191 lyxpipe
10192 \emph default
10193 ), or the UNIX domain socket (
10194 \emph on
10195 lyxsocket
10196 \emph default
10197 ) that \SpecialChar LyX
10198  creates in its temporary directory (this is the way the 
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 lyxclient
10204 \end_layout
10205
10206 \end_inset
10207
10208  program communicates with \SpecialChar LyX
10209 ).
10210  In some cases, you need a helper script that mediates between the viewer
10211  and \SpecialChar LyX
10212 , in others, the viewer can communicate with \SpecialChar LyX
10213  directly.
10214  This depends on the selected viewer and on your operating system.
10215  The same applies to the way viewers need to be configured and the way the
10216  reverse search is actually performed.
10217  In what follows, we will thus describe how to setup reverse search for
10218  specific viewers.
10219  Before we turn to this, though, we will explain what needs to be done generally
10220  to enable reverse search in the DVI/PDF output.
10221 \end_layout
10222
10223 \begin_layout Subsection
10224 Automatic setup
10225 \begin_inset CommandInset label
10226 LatexCommand label
10227 name "subsec:rev-search"
10228
10229 \end_inset
10230
10231
10232 \end_layout
10233
10234 \begin_layout Standard
10235 In most cases \SpecialChar LyX
10236  will do the work for you by pressing the following button
10237  in the toolbar: 
10238 \begin_inset Info
10239 type  "icon"
10240 arg   "buffer-toggle-output-sync"
10241 \end_inset
10242
10243 .
10244  Alternatively, you can also enable the feature by checking 
10245 \family sans
10246 Synchronize with Output
10247 \family default
10248  in 
10249 \begin_inset Flex Noun
10250 status collapsed
10251
10252 \begin_layout Plain Layout
10253 Document\SpecialChar menuseparator
10254 Settings\SpecialChar menuseparator
10255 Formats
10256 \end_layout
10257
10258 \end_inset
10259
10260 .
10261  In such a case \SpecialChar LyX
10262  will automatically insert the necessary Sync\SpecialChar TeX
10263  macro (for
10264  PDF) or load the srcltx package (for DVI) respectively.
10265  This option can be easily reached also on 
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 View/Update
10271 \end_layout
10272
10273 \end_inset
10274
10275  Toolbar.
10276 \end_layout
10277
10278 \begin_layout Standard
10279 If you need a different setting, you can select or input a custom macro
10280  from the drop down box just below 
10281 \begin_inset Flex Noun
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 Document\SpecialChar menuseparator
10286 Settings\SpecialChar menuseparator
10287 Output\SpecialChar menuseparator
10288 Synchronize with Output
10289 \end_layout
10290
10291 \end_inset
10292
10293 .
10294 \end_layout
10295
10296 \begin_layout Standard
10297 Note that the method 
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302
10303 \backslash
10304 synctex=1
10305 \end_layout
10306
10307 \end_inset
10308
10309  enables gzip compression.
10310  If your viewer does not support it, you should instead use 
10311 \begin_inset Flex Code
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315
10316 \backslash
10317 synctex=-1
10318 \end_layout
10319
10320 \end_inset
10321
10322 .
10323 \end_layout
10324
10325 \begin_layout Standard
10326 Please also note that including the 
10327 \begin_inset Flex Code
10328 status collapsed
10329
10330 \begin_layout Plain Layout
10331 srcltx
10332 \end_layout
10333
10334 \end_inset
10335
10336  package or 
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 src-specials
10342 \end_layout
10343
10344 \end_inset
10345
10346  sometimes has an undesired impact on the typesetting.
10347  Thus, you should switch output synchronization off for the final typesetting
10348  if you use the 
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 srcltx
10354 \end_layout
10355
10356 \end_inset
10357
10358  package or 
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 src-specials
10364 \end_layout
10365
10366 \end_inset
10367
10368 .
10369  
10370 \end_layout
10371
10372 \begin_layout Standard
10373 In case you need some more special settings that are not covered by the
10374  automatic settings, read the next section about how to set up output synchroniz
10375 ation manually.
10376  If the automatic setup suits your needs, you can readily jump to section
10377 \begin_inset space ~
10378 \end_inset
10379
10380
10381 \begin_inset CommandInset ref
10382 LatexCommand ref
10383 reference "subsec:configuring-viewers"
10384
10385 \end_inset
10386
10387 , where the necessary configuration steps in your viewer – needed both with
10388  the automatic and the manual setup – are described.
10389 \end_layout
10390
10391 \begin_layout Subsection
10392 Manual setup
10393 \end_layout
10394
10395 \begin_layout Standard
10396 \SpecialChar LaTeX
10397  provides several different methods for reverse search.
10398  Some are built-in in the 
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 latex/pdflatex
10404 \end_layout
10405
10406 \end_inset
10407
10408  program, some are provided by external packages.
10409  Your choice depends on whether your \SpecialChar LaTeX
10410  distribution already provides a given
10411  method (the built-in methods are rather new) and whether your viewer can
10412  cope with it.
10413  The available methods are described in the following.
10414 \end_layout
10415
10416 \begin_layout Subsubsection*
10417 Built-in DVI-search via src-specials (DVI only) 
10418 \end_layout
10419
10420 \begin_layout Standard
10421 This method provides the DVI file with the necessary information for reverse
10422  search.
10423  It is available in \SpecialChar LaTeX
10424  since quite some time (any somewhat recent \SpecialChar LaTeX
10425  distribution
10426  should include it), and it works reliably.
10427  To enable it, change the 
10428 \begin_inset Flex Noun
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432 La
10433 \family sans
10434 TeX
10435 \family default
10436  (plain)->DVI
10437 \end_layout
10438
10439 \end_inset
10440
10441  or 
10442 \begin_inset Flex Noun
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 La
10447 \family sans
10448 TeX
10449 \family default
10450  (plain)->DraftDVI
10451 \end_layout
10452
10453 \end_inset
10454
10455  converter in 
10456 \begin_inset Flex Noun
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 Preferences\SpecialChar menuseparator
10461 File Handling\SpecialChar menuseparator
10462 Converters
10463 \end_layout
10464
10465 \end_inset
10466
10467  to 
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 latex -src-specials $$i
10473 \end_layout
10474
10475 \end_inset
10476
10477 .
10478  If this doesn't work, check if your \SpecialChar TeX
10479  engine needs different options (the
10480  syntax might differ in some distributions).
10481 \end_layout
10482
10483 \begin_layout Subsubsection*
10484 External Packages (PDFSync and scrltx) 
10485 \end_layout
10486
10487 \begin_layout Standard
10488 The packages 
10489 \emph on
10490 pdfsync
10491 \emph default
10492  and 
10493 \emph on
10494 scrltx
10495 \emph default
10496  provide reverse search facility for PDF output (via pdflatex) and DVI output,
10497  respectively.
10498  In order to enable it, load the packages in the \SpecialChar LyX
10499  preamble: 
10500 \end_layout
10501
10502 \begin_layout Itemize
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507
10508 \backslash
10509 usepackage{pdfsync}
10510 \end_layout
10511
10512 \end_inset
10513
10514  for reverse PDF search,
10515 \end_layout
10516
10517 \begin_layout Itemize
10518 \begin_inset Flex Code
10519 status collapsed
10520
10521 \begin_layout Plain Layout
10522
10523 \backslash
10524 usepackage[active]{srcltx}
10525 \end_layout
10526
10527 \end_inset
10528
10529  for reverse DVI search.
10530 \end_layout
10531
10532 \begin_layout Standard
10533 If you want to be able to perform both DVI and PDF reverse searches, you
10534  can also insert in the preamble the following lines
10535 \end_layout
10536
10537 \begin_layout LyX-Code
10538
10539 \backslash
10540 usepackage{ifpdf}
10541 \begin_inset Newline newline
10542 \end_inset
10543
10544
10545 \backslash
10546 ifpdf
10547 \begin_inset Newline newline
10548 \end_inset
10549
10550   
10551 \backslash
10552 usepackage{pdfsync}
10553 \begin_inset Newline newline
10554 \end_inset
10555
10556
10557 \backslash
10558 else
10559 \begin_inset Newline newline
10560 \end_inset
10561
10562   
10563 \backslash
10564 usepackage[active]{srcltx}
10565 \begin_inset Newline newline
10566 \end_inset
10567
10568
10569 \backslash
10570 fi
10571 \end_layout
10572
10573 \begin_layout Standard
10574 This way, you can preview the file as either DVI or PDF (pdflatex) and the
10575  right package will be used.
10576 \end_layout
10577
10578 \begin_layout Standard
10579 Note that PDFSync might affect the output layout of your document.
10580  It is therefore advised to disable PDFsync for final documents.
10581 \end_layout
10582
10583 \begin_layout Subsubsection*
10584 Built-in reverse search via Sync\SpecialChar TeX
10585  (DVI and PDF) 
10586 \end_layout
10587
10588 \begin_layout Standard
10589 Recent versions of 
10590 \begin_inset Flex Code
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 (pdf)latex
10595 \end_layout
10596
10597 \end_inset
10598
10599  have built-in support for both PDF and DVI reverse search.
10600  This so-called 
10601 \emph on
10602 Sync\SpecialChar TeX
10603
10604 \emph default
10605  facility is basically the result of the integration of the PDFSync package
10606  to the pdftex program and its merge with the 
10607 \emph on
10608 scr-specials
10609 \emph default
10610  approach.
10611  You need at least \SpecialChar TeX
10612 Live 2008 or a recent Mik\SpecialChar TeX
10613  distribution in order to use
10614  it.
10615 \begin_inset Foot
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 For some reason, Mik\SpecialChar TeX
10620  does not understand/obey the command \SpecialChar LyX
10621  inserts into
10622  the preamble when you check the "Enable Forward/Reverse Search" button
10623  in the toolbar and does not generate the necessary info.
10624 \end_layout
10625
10626 \begin_layout Plain Layout
10627 The generation of the required info can be forced by changing the converter
10628  "\SpecialChar LaTeX
10629  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
10630  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
10631  the -synctex=1 switch).
10632 \end_layout
10633
10634 \end_inset
10635
10636  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
10637  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
10638  already provide Sync\SpecialChar TeX
10639  support.
10640 \end_layout
10641
10642 \begin_layout Standard
10643 To enable Sync\SpecialChar TeX
10644  for DVI output, change the 
10645 \begin_inset Flex Noun
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 La
10650 \family sans
10651 TeX
10652 \family default
10653  (plain) -> DVI
10654 \end_layout
10655
10656 \end_inset
10657
10658  or 
10659 \begin_inset Flex Noun
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 La
10664 \family sans
10665 TeX
10666 \family default
10667  (plain) -> DraftDVI
10668 \end_layout
10669
10670 \end_inset
10671
10672  converter in 
10673 \begin_inset Flex Noun
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 Preferences\SpecialChar menuseparator
10678 File Handling\SpecialChar menuseparator
10679 Converters
10680 \end_layout
10681
10682 \end_inset
10683
10684  to 
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 latex -synctex=1 $$i
10690 \end_layout
10691
10692 \end_inset
10693
10694 , and for PDF output, change the 
10695 \begin_inset Flex Noun
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 La
10700 \family sans
10701 TeX
10702 \family default
10703  (pdflatex) -> PDF (pdflatex)
10704 \end_layout
10705
10706 \end_inset
10707
10708  converter to 
10709 \begin_inset Flex Code
10710 status collapsed
10711
10712 \begin_layout Plain Layout
10713 pdflatex -synctex=1 $$i
10714 \end_layout
10715
10716 \end_inset
10717
10718 .
10719  Should your viewer not be considered in the following description, or in
10720  case of missing success, please check the documentation of your viewer
10721  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
10722 .
10723 \begin_inset Foot
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727 Note that the option 
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 -synctex=1
10733 \end_layout
10734
10735 \end_inset
10736
10737  option enables gzip compression.
10738  If your viewer does not support it, you should instead use 
10739 \begin_inset Flex Code
10740 status collapsed
10741
10742 \begin_layout Plain Layout
10743 -synctex=-1
10744 \end_layout
10745
10746 \end_inset
10747
10748 .
10749 \end_layout
10750
10751 \end_inset
10752
10753
10754 \end_layout
10755
10756 \begin_layout Subsection
10757 Configuring and using specific viewers
10758 \begin_inset CommandInset label
10759 LatexCommand label
10760 name "subsec:configuring-viewers"
10761
10762 \end_inset
10763
10764
10765 \end_layout
10766
10767 \begin_layout Subsubsection*
10768 Xdvi (all platforms)
10769 \end_layout
10770
10771 \begin_layout Standard
10772 If you use 
10773 \begin_inset Flex Code
10774 status collapsed
10775
10776 \begin_layout Plain Layout
10777 xdvi
10778 \end_layout
10779
10780 \end_inset
10781
10782 , you don't need to do anything else for performing a reverse DVI search,
10783  as \SpecialChar LyX
10784  already provides the necessary hooks for automatically using the 
10785 \begin_inset Flex Code
10786 status collapsed
10787
10788 \begin_layout Plain Layout
10789 lyxclient
10790 \end_layout
10791
10792 \end_inset
10793
10794  program.
10795  Just setup your document as described above (reverse search is triggered
10796  by Ctrl-click or Alt-click on Mac OSX, respectively).
10797 \end_layout
10798
10799 \begin_layout Standard
10800 However, if for whatever reason you want to use the named pipe instead of
10801  the socket for communicating with \SpecialChar LyX
10802 , simply change the DVI viewer in 
10803 \begin_inset Flex Noun
10804 status collapsed
10805
10806 \begin_layout Plain Layout
10807 Preferences\SpecialChar menuseparator
10808 File Handling\SpecialChar menuseparator
10809 File formats
10810 \end_layout
10811
10812 \end_inset
10813
10814  to
10815 \begin_inset Foot
10816 status collapsed
10817
10818 \begin_layout Plain Layout
10819 On Mac OSX you have to use 
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
10825 \end_layout
10826
10827 \end_inset
10828
10829
10830 \end_layout
10831
10832 \end_inset
10833
10834  
10835 \begin_inset Flex Code
10836 status collapsed
10837
10838 \begin_layout Plain Layout
10839 xdvi -editor "lyxeditor.sh %f %l"
10840 \end_layout
10841
10842 \end_inset
10843
10844 , where 
10845 \begin_inset Flex Code
10846 status collapsed
10847
10848 \begin_layout Plain Layout
10849 lyxeditor.sh
10850 \end_layout
10851
10852 \end_inset
10853
10854  is a suitable script.
10855  For example, a minimal shell script is the following one:
10856 \end_layout
10857
10858 \begin_layout LyX-Code
10859 #!/bin/sh
10860 \begin_inset Newline newline
10861 \end_inset
10862
10863 LYXPIPE="/path/to/lyxpipe"
10864 \begin_inset Newline newline
10865 \end_inset
10866
10867 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
10868 \begin_inset Newline newline
10869 \end_inset
10870
10871 echo "$COMMAND" > "${LYXPIPE}".in || exit
10872 \begin_inset Newline newline
10873 \end_inset
10874
10875 read TMP < "${LYXPIPE}".out || exit
10876 \end_layout
10877
10878 \begin_layout Standard
10879 where 
10880 \begin_inset Flex Code
10881 status collapsed
10882
10883 \begin_layout Plain Layout
10884 /path/to/lyxpipe
10885 \end_layout
10886
10887 \end_inset
10888
10889  is the LyXServer pipe path specified in 
10890 \begin_inset Flex Noun
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 Preferences\SpecialChar menuseparator
10895 Paths
10896 \end_layout
10897
10898 \end_inset
10899
10900 .
10901 \begin_inset Foot
10902 status collapsed
10903
10904 \begin_layout Plain Layout
10905 In the 
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 development/tools
10911 \end_layout
10912
10913 \end_inset
10914
10915  folder of a source distribution you can find a 
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920 lyxeditor
10921 \end_layout
10922
10923 \end_inset
10924
10925  script which is able to locate the 
10926 \emph on
10927 lyxpipe
10928 \emph default
10929  based on your preferences.
10930 \end_layout
10931
10932 \end_inset
10933
10934
10935 \end_layout
10936
10937 \begin_layout Subsubsection*
10938 MacDviX (Mac OSX)
10939 \end_layout
10940
10941 \begin_layout Standard
10942 At the end of 
10943 \begin_inset Flex Code
10944 status collapsed
10945
10946 \begin_layout Plain Layout
10947 /Applications/MacDviX_Folder/calleditor.script
10948 \end_layout
10949
10950 \end_inset
10951
10952 , add the following lines:
10953 \end_layout
10954
10955 \begin_layout LyX-Code
10956 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
10957 \begin_inset Newline newline
10958 \end_inset
10959
10960 exit 1
10961 \end_layout
10962
10963 \begin_layout Standard
10964 Modify the lines accordingly if you install \SpecialChar LyX
10965  somewhere else than in the
10966  Applications folder.
10967 \end_layout
10968
10969 \begin_layout Standard
10970 Reverse search is triggered by Alt-click (OPTION-click).
10971 \end_layout
10972
10973 \begin_layout Subsubsection*
10974 Skim (Mac OSX)
10975 \end_layout
10976
10977 \begin_layout Standard
10978 Enter 
10979 \begin_inset Flex Code
10980 status collapsed
10981
10982 \begin_layout Plain Layout
10983 open -a Skim.app $$i
10984 \end_layout
10985
10986 \end_inset
10987
10988  to the viewer setting in 
10989 \begin_inset Flex Noun
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993 Preferences\SpecialChar menuseparator
10994 File Handling\SpecialChar menuseparator
10995 File formats\SpecialChar menuseparator
10996 PDF (pdflatex)
10997 \end_layout
10998
10999 \end_inset
11000
11001 , and then in 
11002 \begin_inset Flex Noun
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006 Skim\SpecialChar menuseparator
11007 Preferences\SpecialChar menuseparator
11008 Sync
11009 \end_layout
11010
11011 \end_inset
11012
11013  choose 
11014 \begin_inset Flex Noun
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018 custom
11019 \end_layout
11020
11021 \end_inset
11022
11023  preset and enter command 
11024 \begin_inset Flex Noun
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 /Applications/\SpecialChar LyX
11029 .app/Contents/MacOS/lyxeditor
11030 \end_layout
11031
11032 \end_inset
11033
11034 .
11035 \end_layout
11036
11037 \begin_layout Standard
11038 Reverse search is triggered by COMMAND-SHIFT-click
11039 \end_layout
11040
11041 \begin_layout Subsubsection*
11042 Evince (GNOME)
11043 \end_layout
11044
11045 \begin_layout Standard
11046 Reverse search with evince does not work out of the box, but it can be achieved
11047  by means of some third party helper scripts.
11048  Please refer to 
11049 \begin_inset CommandInset href
11050 LatexCommand href
11051 target "https://wiki.lyx.org/LyX/SyncTeX"
11052 literal "false"
11053
11054 \end_inset
11055
11056  for details.
11057 \end_layout
11058
11059 \begin_layout Subsubsection*
11060 Okular (KDE)
11061 \end_layout
11062
11063 \begin_layout Standard
11064 Go to 
11065 \begin_inset Flex Noun
11066 status collapsed
11067
11068 \begin_layout Plain Layout
11069 Settings\SpecialChar menuseparator
11070 Configure Okular\SpecialChar menuseparator
11071 Editor
11072 \end_layout
11073
11074 \end_inset
11075
11076  and select LyX
11077 \begin_inset Quotes erd
11078 \end_inset
11079
11080  as editor.
11081  This inserts the appropriate command (
11082 \begin_inset Flex Code
11083 status collapsed
11084
11085 \begin_layout Plain Layout
11086 lyxclient -g %f %l
11087 \end_layout
11088
11089 \end_inset
11090
11091 ).
11092 \end_layout
11093
11094 \begin_layout Standard
11095 Reverse search is triggered by SHIFT-click.
11096
11097 \change_inserted -712698321 1578211026
11098  Note that this only works if Okular is in 
11099 \begin_inset Quotes eld
11100 \end_inset
11101
11102 Browse
11103 \begin_inset Quotes erd
11104 \end_inset
11105
11106  mode (i.
11107 \begin_inset space \thinspace{}
11108 \end_inset
11109
11110 e., the hand symbol is clicked).
11111 \change_unchanged
11112
11113 \end_layout
11114
11115 \begin_layout Subsubsection*
11116 Qpdfview (Unix)
11117 \end_layout
11118
11119 \begin_layout Standard
11120 Qpdfview supports Sync\SpecialChar TeX
11121  since version 0.3.5.
11122  Go to 
11123 \begin_inset Flex Noun
11124 status collapsed
11125
11126 \begin_layout Plain Layout
11127 Edit\SpecialChar menuseparator
11128 Settings\SpecialChar menuseparator
11129 Behavior
11130 \end_layout
11131
11132 \end_inset
11133
11134 , click on the input field of the 
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138 Source editor
11139 \begin_inset Quotes erd
11140 \end_inset
11141
11142  item and add the command 
11143 \begin_inset Flex Code
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 lyxclient -g %1 %2
11148 \end_layout
11149
11150 \end_inset
11151
11152 .
11153 \end_layout
11154
11155 \begin_layout Standard
11156 Reverse search is triggered by double-click or, in more recent versions,
11157  by context menu.
11158 \end_layout
11159
11160 \begin_layout Subsubsection*
11161 YAP (Windows)
11162 \end_layout
11163
11164 \begin_layout Standard
11165 Launch yap, choose its 
11166 \begin_inset Flex Noun
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 View\SpecialChar menuseparator
11171 Options
11172 \end_layout
11173
11174 \end_inset
11175
11176  menu and select the 
11177 \begin_inset Quotes eld
11178 \end_inset
11179
11180 Inverse DVI Search
11181 \begin_inset Quotes erd
11182 \end_inset
11183
11184  tab.
11185  Click on the 
11186 \begin_inset Quotes eld
11187 \end_inset
11188
11189 New\SpecialChar ldots
11190
11191 \begin_inset Quotes erd
11192 \end_inset
11193
11194  button and, in the window that opens, enter 
11195 \begin_inset Quotes eld
11196 \end_inset
11197
11198 \SpecialChar LyX
11199  Editor
11200 \begin_inset Quotes erd
11201 \end_inset
11202
11203  (or any other name you like) in the 
11204 \begin_inset Quotes eld
11205 \end_inset
11206
11207 Name:
11208 \begin_inset Quotes erd
11209 \end_inset
11210
11211  field.
11212  Now click on the button labeled 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216 \SpecialChar ldots
11217
11218 \begin_inset Quotes erd
11219 \end_inset
11220
11221  to open a file dialog and navigate to the directory containing the batch
11222  file 
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 lyxeditor.bat
11228 \end_layout
11229
11230 \end_inset
11231
11232  (see below).
11233  Select 
11234 \begin_inset Flex Code
11235 status collapsed
11236
11237 \begin_layout Plain Layout
11238 lyxeditor.bat
11239 \end_layout
11240
11241 \end_inset
11242
11243  and then specify the program arguments as 
11244 \begin_inset Flex Code
11245 status collapsed
11246
11247 \begin_layout Plain Layout
11248 %f %l
11249 \end_layout
11250
11251 \end_inset
11252
11253 .
11254  The 
11255 \begin_inset Flex Code
11256 status collapsed
11257
11258 \begin_layout Plain Layout
11259 lyxeditor.bat
11260 \end_layout
11261
11262 \end_inset
11263
11264  wrapper is used for communicating with \SpecialChar LyX
11265  through the 
11266 \emph on
11267 lyxpipe
11268 \emph default
11269  and is as follows:
11270 \end_layout
11271
11272 \begin_layout LyX-Code
11273 @echo off
11274 \begin_inset Newline newline
11275 \end_inset
11276
11277 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
11278 \backslash
11279
11280 \backslash
11281 .
11282 \backslash
11283 pipe
11284 \backslash
11285 lyxpipe.in
11286 \begin_inset Newline newline
11287 \end_inset
11288
11289 type 
11290 \backslash
11291
11292 \backslash
11293 .
11294 \backslash
11295 pipe
11296 \backslash
11297 lyxpipe.out
11298 \end_layout
11299
11300 \begin_layout Standard
11301 Make sure that the \SpecialChar LyX
11302 Server pipe path you specified in \SpecialChar LyX
11303  is 
11304 \begin_inset Flex Code
11305 status collapsed
11306
11307 \begin_layout Plain Layout
11308
11309 \backslash
11310
11311 \backslash
11312 .
11313 \backslash
11314 pipe
11315 \backslash
11316 lyxpipe
11317 \end_layout
11318
11319 \end_inset
11320
11321 , otherwise change the 
11322 \begin_inset Flex Code
11323 status collapsed
11324
11325 \begin_layout Plain Layout
11326 lyxeditor.bat
11327 \end_layout
11328
11329 \end_inset
11330
11331  wrapper accordingly.
11332 \end_layout
11333
11334 \begin_layout Standard
11335 In yap, reverse search is triggered by double-click.
11336 \end_layout
11337
11338 \begin_layout Subsubsection*
11339 SumatraPDF (Windows)
11340 \end_layout
11341
11342 \begin_layout Standard
11343 In order to use SumatraPDF for inverse search, enter 
11344 \begin_inset Flex Code
11345 status collapsed
11346
11347 \begin_layout Plain Layout
11348 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
11349 \end_layout
11350
11351 \end_inset
11352
11353  in the viewer setting in 
11354 \begin_inset Flex Noun
11355 status collapsed
11356
11357 \begin_layout Plain Layout
11358 Preferences\SpecialChar menuseparator
11359 File Handling\SpecialChar menuseparator
11360 File formats\SpecialChar menuseparator
11361 PDF (pdflatex)
11362 \end_layout
11363
11364 \end_inset
11365
11366 , where 
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371 lyxeditor.bat
11372 \end_layout
11373
11374 \end_inset
11375
11376  is the previous wrapper.
11377  If SumatraPDF.exe is not in your command PATH, use its full file name.
11378 \end_layout
11379
11380 \begin_layout Standard
11381 Reverse search is triggered by double-click.
11382 \end_layout
11383
11384 \begin_layout Subsubsection*
11385 YAP (Cygwin)
11386 \end_layout
11387
11388 \begin_layout Standard
11389 First of all, make sure that yap is your default DVI viewer in the Windows
11390  environment, then launch it, choose its 
11391 \begin_inset Flex Noun
11392 status collapsed
11393
11394 \begin_layout Plain Layout
11395 View\SpecialChar menuseparator
11396 Options
11397 \end_layout
11398
11399 \end_inset
11400
11401  menu and select the 
11402 \begin_inset Quotes eld
11403 \end_inset
11404
11405 Inverse DVI Search
11406 \begin_inset Quotes erd
11407 \end_inset
11408
11409  tab.
11410  Click on the 
11411 \begin_inset Quotes eld
11412 \end_inset
11413
11414 New\SpecialChar ldots
11415
11416 \begin_inset Quotes erd
11417 \end_inset
11418
11419  button and, in the window that opens, enter 
11420 \begin_inset Quotes eld
11421 \end_inset
11422
11423 \SpecialChar LyX
11424  Editor
11425 \begin_inset Quotes erd
11426 \end_inset
11427
11428  (or any other name you like) in the 
11429 \begin_inset Quotes eld
11430 \end_inset
11431
11432 Name:
11433 \begin_inset Quotes erd
11434 \end_inset
11435
11436  field.
11437  Now click on the button labeled 
11438 \begin_inset Quotes eld
11439 \end_inset
11440
11441 \SpecialChar ldots
11442
11443 \begin_inset Quotes erd
11444 \end_inset
11445
11446  to open a file dialog and navigate to the directory containing the 
11447 \begin_inset Flex Code
11448 status collapsed
11449
11450 \begin_layout Plain Layout
11451 lyxeditor.exe
11452 \end_layout
11453
11454 \end_inset
11455
11456  program (which is installed by default on Cygwin along with the \SpecialChar LyX
11457  executable).
11458  Select 
11459 \begin_inset Flex Code
11460 status collapsed
11461
11462 \begin_layout Plain Layout
11463 lyxeditor.exe
11464 \end_layout
11465
11466 \end_inset
11467
11468  and then specify the program arguments as 
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 -g %f %l
11474 \end_layout
11475
11476 \end_inset
11477
11478 .
11479  In this way, you will be using the 
11480 \emph on
11481 lyxsocket
11482 \emph default
11483  for communicating with \SpecialChar LyX
11484 .
11485  If, for whatever reason, you want to use the 
11486 \emph on
11487 lyxpipe
11488 \emph default
11489 , omit the 
11490 \begin_inset Flex Code
11491 status collapsed
11492
11493 \begin_layout Plain Layout
11494 -g
11495 \end_layout
11496
11497 \end_inset
11498
11499  option and be sure to specify the \SpecialChar LyX
11500 Server pipe path in the \SpecialChar LyX
11501  preferences.
11502 \end_layout
11503
11504 \begin_layout Standard
11505 In yap, reverse search is triggered by double-click.
11506 \end_layout
11507
11508 \begin_layout Subsubsection*
11509 SumatraPDF (Cygwin)
11510 \end_layout
11511
11512 \begin_layout Standard
11513 In order to use SumatraPDF for inverse search, enter 
11514 \begin_inset Flex Code
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518 SumatraPDF -inverse-search "lyxeditor -g %f %l"
11519 \end_layout
11520
11521 \end_inset
11522
11523  in the viewer setting in 
11524 \begin_inset Flex Noun
11525 status collapsed
11526
11527 \begin_layout Plain Layout
11528 Preferences\SpecialChar menuseparator
11529 File Handling\SpecialChar menuseparator
11530 File formats\SpecialChar menuseparator
11531 PDF (pdflatex)
11532 \end_layout
11533
11534 \end_inset
11535
11536 .
11537  If SumatraPDF.exe is not in your command PATH, use its full posix path.
11538  The 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 -g
11544 \end_layout
11545
11546 \end_inset
11547
11548  enables communication via the 
11549 \emph on
11550 lyxsocket
11551 \emph default
11552 .
11553  Again, omit the 
11554 \begin_inset Flex Code
11555 status collapsed
11556
11557 \begin_layout Plain Layout
11558 -g
11559 \end_layout
11560
11561 \end_inset
11562
11563  option if you want to use the 
11564 \emph on
11565 lyxpipe
11566 \emph default
11567 , and be sure to specify the \SpecialChar LyX
11568 Server pipe path in the \SpecialChar LyX
11569  preferences.
11570 \end_layout
11571
11572 \begin_layout Standard
11573 Reverse search is triggered by double-click.
11574 \end_layout
11575
11576 \begin_layout Section
11577 Forward search
11578 \end_layout
11579
11580 \begin_layout Standard
11581 Forward search is, as the name implies, in a sense the 
11582 \begin_inset Quotes eld
11583 \end_inset
11584
11585 opposite
11586 \begin_inset Quotes erd
11587 \end_inset
11588
11589  of reverse search.
11590  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
11591 .
11592  If forward search is set up (as described in what follows), you can put
11593  the cursor anywhere in your \SpecialChar LyX
11594  document, and hit 
11595 \begin_inset Flex Noun
11596 status collapsed
11597
11598 \begin_layout Plain Layout
11599 Navigate\SpecialChar menuseparator
11600 Forward search
11601 \end_layout
11602
11603 \end_inset
11604
11605  (or select 
11606 \begin_inset Flex Noun
11607 status collapsed
11608
11609 \begin_layout Plain Layout
11610 Forward search
11611 \end_layout
11612
11613 \end_inset
11614
11615  in the context menu via right mouse click), and then the viewer will jump
11616  to that position as well.
11617  This implies, of course, that your viewer supports this function.
11618 \end_layout
11619
11620 \begin_layout Standard
11621 To make forward search possible, you first need to provide the generated
11622  output PDF/DVI file with additional information about the \SpecialChar TeX
11623  sources.
11624  This can be done via the methods described in the section 
11625 \begin_inset CommandInset ref
11626 LatexCommand ref
11627 reference "subsec:rev-search"
11628
11629 \end_inset
11630
11631 .
11632 \end_layout
11633
11634 \begin_layout Standard
11635 Additionally, you need to configure \SpecialChar LyX
11636  for using your viewers in 
11637 \begin_inset Flex Noun
11638 status collapsed
11639
11640 \begin_layout Plain Layout
11641 Tools\SpecialChar menuseparator
11642 Preferences\SpecialChar menuseparator
11643 Output\SpecialChar menuseparator
11644 General
11645 \end_layout
11646
11647 \end_inset
11648
11649 .
11650  We provide a range of tested configurations for some viewers, which you
11651  can select from the drop down list.
11652  If none of these configurations suits you, you have to find out and enter
11653  a suitable configuration yourself.
11654  The definition syntax uses the following placeholders:
11655 \end_layout
11656
11657 \begin_layout Itemize
11658 \noindent
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 $$n
11664 \end_layout
11665
11666 \end_inset
11667
11668 : row number
11669 \end_layout
11670
11671 \begin_layout Itemize
11672 \noindent
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 $$t
11678 \end_layout
11679
11680 \end_inset
11681
11682 : name of the (temporary) exported .tex file (without path)
11683 \end_layout
11684
11685 \begin_layout Itemize
11686 \noindent
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 $$f
11692 \end_layout
11693
11694 \end_inset
11695
11696 : name of the (temporary) exported .tex file (including path)
11697 \end_layout
11698
11699 \begin_layout Itemize
11700 \noindent
11701 \begin_inset Flex Code
11702 status collapsed
11703
11704 \begin_layout Plain Layout
11705 $$o
11706 \end_layout
11707
11708 \end_inset
11709
11710 : name of the exported output file (either dvi or pdf, depending on which
11711  one exists in the temporary directory)
11712 \end_layout
11713
11714 \begin_layout Standard
11715 Note that only some of the viewers provide full and usable forward search
11716  functionality out of the box, among them yap, xdvi, okular
11717 \begin_inset Foot
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 You might want to set 
11722 \begin_inset Flex Code
11723 status collapsed
11724
11725 \begin_layout Plain Layout
11726 okular --unique
11727 \end_layout
11728
11729 \end_inset
11730
11731  in 
11732 \begin_inset Flex Noun
11733 status collapsed
11734
11735 \begin_layout Plain Layout
11736 Tools\SpecialChar menuseparator
11737 Preferences\SpecialChar menuseparator
11738 File Handling\SpecialChar menuseparator
11739 File
11740 \begin_inset space ~
11741 \end_inset
11742
11743 Formats
11744 \end_layout
11745
11746 \end_inset
11747
11748
11749 \end_layout
11750
11751 \end_inset
11752
11753 , qpdfview, and SumatraPDF
11754 \begin_inset Foot
11755 status collapsed
11756
11757 \begin_layout Plain Layout
11758 SumatraPDF can also use DDE commands through the external program CMCDDE
11759  — downloadable from 
11760 \begin_inset CommandInset href
11761 LatexCommand href
11762 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
11763 literal "false"
11764
11765 \end_inset
11766
11767
11768 \end_layout
11769
11770 \end_inset
11771
11772 .
11773  Others, such as evince
11774 \begin_inset Foot
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 Forward search with evince can be achieved by means of third party helper
11779  scripts.
11780  Please refer to 
11781 \begin_inset CommandInset href
11782 LatexCommand href
11783 target "https://wiki.lyx.org/LyX/SyncTeX"
11784 literal "false"
11785
11786 \end_inset
11787
11788  for details.
11789 \end_layout
11790
11791 \end_inset
11792
11793 , require some extra tools in order to use forward search.
11794  While many of the widespread PDF viewers (most notably Adobe Reader) do
11795  not support forward search at all, some other viewers – e.
11796 \begin_inset space \thinspace{}
11797 \end_inset
11798
11799 g.
11800  xpdf – allow at least to reload the document and jump to a specific page
11801  of the file, so you can at least navigate 
11802 \begin_inset Quotes eld
11803 \end_inset
11804
11805 near
11806 \begin_inset Quotes erd
11807 \end_inset
11808
11809 .
11810  This latter functionality is provided by an external call of synctex (see
11811  the predefined example configurations).
11812  
11813 \end_layout
11814
11815 \begin_layout Standard
11816 Forward search works both with DVI and PDF output.
11817  \SpecialChar LyX
11818  simply checks which preview format you have used before (i.
11819 \begin_inset space \thinspace{}
11820 \end_inset
11821
11822 e., which format is already there in the temporary directory) and chooses
11823  the appropriate configuration for the respective format.
11824 \end_layout
11825
11826 \begin_layout Chapter
11827 Special Document Classes
11828 \end_layout
11829
11830 \begin_layout Section
11831
11832 \change_deleted 564990737 1669742044
11833 A&A Paper
11834 \end_layout
11835
11836 \begin_layout Standard
11837
11838 \change_deleted 564990737 1669742044
11839 by 
11840 \noun on
11841 Peter Sütterlin
11842 \end_layout
11843
11844 \begin_layout Subsection
11845
11846 \change_deleted 564990737 1669742044
11847 Introduction
11848 \end_layout
11849
11850 \begin_layout Standard
11851
11852 \change_deleted 564990737 1669742044
11853 This section describes how \SpecialChar LyX
11854  can be used to write articles for submission
11855  to the scientific journal 
11856 \emph on
11857 Astronomy and Astrophysics
11858 \emph default
11859  (
11860 \begin_inset Flex URL
11861 status collapsed
11862
11863 \begin_layout Plain Layout
11864
11865 https://www.aanda.org/
11866 \end_layout
11867
11868 \end_inset
11869
11870 ) using Version 5.01 of the document class 
11871 \family typewriter
11872 aa.cls
11873 \family default
11874 .
11875  This package can be downloaded from the ftp site
11876 \end_layout
11877
11878 \begin_layout Standard
11879
11880 \change_deleted 564990737 1669742044
11881 \begin_inset VSpace medskip
11882 \end_inset
11883
11884
11885 \end_layout
11886
11887 \begin_layout Standard
11888 \align center
11889
11890 \change_deleted 564990737 1669742044
11891 \begin_inset Flex URL
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895
11896 ftp://ftp.edpsciences.org/pub/aa/readme.html
11897 \end_layout
11898
11899 \end_inset
11900
11901
11902 \end_layout
11903
11904 \begin_layout Standard
11905
11906 \change_deleted 564990737 1669742044
11907 \begin_inset VSpace medskip
11908 \end_inset
11909
11910
11911 \end_layout
11912
11913 \begin_layout Standard
11914
11915 \change_deleted 564990737 1669742044
11916 A manual comes together with that package, and this text is not meant to
11917  replace the original manual but is merely a short guide in how to realize
11918  the correct form of your paper.
11919  
11920 \end_layout
11921
11922 \begin_layout Standard
11923
11924 \change_deleted 564990737 1669742044
11925 Please note that the publisher of the journal was changed from Springer
11926  to EDP Sciences starting January 1, 2001.
11927  That change involved also some slight changes to the style files, namely
11928  the removal of the thesaurus command.
11929  The \SpecialChar LyX
11930  class aa supports the newest version of these style files, V 5.01.
11931  If you have an older version installed, please upgrade.
11932  For compatibility, the old (version 4) layout has been kept as 
11933 \family sans
11934 article (A&A V4)
11935 \family default
11936 .
11937  Please refer to the comments in 
11938 \family typewriter
11939 \SpecialChar LyX
11940 Dir/layouts/aapaper.layout
11941 \family default
11942 .
11943 \end_layout
11944
11945 \begin_layout Subsection
11946
11947 \change_deleted 564990737 1669742044
11948 Getting started
11949 \end_layout
11950
11951 \begin_layout Standard
11952
11953 \change_deleted 564990737 1669742044
11954 It is recommended you start from the example template distributed with \SpecialChar LyX
11955 .
11956  If you are not using a template, note the following settings:
11957 \end_layout
11958
11959 \begin_layout Itemize
11960
11961 \change_deleted 564990737 1669742044
11962 Select 
11963 \family sans
11964 article (A&A)
11965 \family default
11966  in the 
11967 \family sans
11968 Document\SpecialChar menuseparator
11969 Settings
11970 \family default
11971  dialog (OK, that one was obvious).
11972 \end_layout
11973
11974 \begin_layout Itemize
11975
11976 \change_deleted 564990737 1669742044
11977 Don't change the option 
11978 \family sans
11979 Page
11980 \begin_inset space ~
11981 \end_inset
11982
11983 style
11984 \family default
11985 : Leave it set to 
11986 \family sans
11987 default
11988 \family default
11989 .
11990  The whole layout is done by the macros, you shouldn't change anything.
11991 \end_layout
11992
11993 \begin_layout Subsection
11994
11995 \change_deleted 564990737 1669742044
11996 The header block
11997 \end_layout
11998
11999 \begin_layout Standard
12000
12001 \change_deleted 564990737 1669742044
12002 First thing to enter is the header information.
12003  It consists of seven entries, of which some are optional.
12004  They are
12005 \end_layout
12006
12007 \begin_layout Itemize
12008
12009 \change_deleted 564990737 1669742044
12010
12011 \family sans
12012 Title
12013 \family default
12014 : [required] 
12015 \end_layout
12016
12017 \begin_layout Itemize
12018
12019 \change_deleted 564990737 1669742044
12020
12021 \family sans
12022 Subtitle
12023 \family default
12024 : [optional] 
12025 \end_layout
12026
12027 \begin_layout Itemize
12028
12029 \change_deleted 564990737 1669742044
12030
12031 \family sans
12032 Author
12033 \family default
12034 : [required]
12035 \end_layout
12036
12037 \begin_layout Itemize
12038
12039 \change_deleted 564990737 1669742044
12040
12041 \family sans
12042 Address
12043 \family default
12044 : [required]
12045 \end_layout
12046
12047 \begin_layout Itemize
12048
12049 \change_deleted 564990737 1669742044
12050
12051 \family sans
12052 Offprints
12053 \family default
12054 : [optional] if more than one author: whom to contact for offprint requests.
12055 \end_layout
12056
12057 \begin_layout Itemize
12058
12059 \change_deleted 564990737 1669742044
12060
12061 \family sans
12062 Mail
12063 \family default
12064 : [optional] mail address for contacts.
12065 \end_layout
12066
12067 \begin_layout Itemize
12068
12069 \change_deleted 564990737 1669742044
12070
12071 \family sans
12072 Date
12073 \family default
12074 : [required].
12075  Suggested format is 
12076 \family typewriter
12077 Received: <date>; Accepted <date> 
12078 \end_layout
12079
12080 \begin_layout Standard
12081
12082 \change_deleted 564990737 1669742044
12083 There is no need to issue the 
12084 \family typewriter
12085
12086 \backslash
12087 maketitle
12088 \family default
12089  command, this is done automatically by \SpecialChar LyX
12090  when the header is finished.
12091  Although the order of the single header entries doesn't matter it is advised
12092  to keep the above sequence, just to get the best optics and meets the layout
12093  of the real document.
12094 \end_layout
12095
12096 \begin_layout Standard
12097
12098 \change_deleted 564990737 1669742044
12099 If you want to place footnotes in the header block, e.
12100 \begin_inset space \thinspace{}
12101 \end_inset
12102
12103 g.
12104 \begin_inset space \space{}
12105 \end_inset
12106
12107 to state your present address, just use the standard footnote via the menu
12108  
12109 \family sans
12110 Insert\SpecialChar menuseparator
12111 Footnote.
12112
12113 \family default
12114  \SpecialChar LyX
12115  will automagically use the term 
12116 \family typewriter
12117
12118 \backslash
12119 thanks{}
12120 \family default
12121  in that case.
12122 \end_layout
12123
12124 \begin_layout Standard
12125
12126 \change_deleted 564990737 1669742044
12127 Under 
12128 \family sans
12129 Edit\SpecialChar menuseparator
12130 Text Style
12131 \family default
12132 , you'll find two insets which are relevant for the titling:
12133 \end_layout
12134
12135 \begin_layout Itemize
12136
12137 \change_deleted 564990737 1669742044
12138
12139 \family sans
12140 Institute
12141 \family typewriter
12142  
12143 \family default
12144 to mark corresponding author\SpecialChar breakableslash
12145 institute pairs.
12146  The institutes are numbered sequentially as they appear in the 
12147 \family sans
12148 Address
12149 \family default
12150  field, so you have to put a marker to each author.
12151 \end_layout
12152
12153 \begin_layout Itemize
12154
12155 \change_deleted 564990737 1669742044
12156
12157 \family sans
12158 Email
12159 \family default
12160  to supply an email address for fast contact.
12161 \end_layout
12162
12163 \begin_layout Standard
12164
12165 \change_deleted 564990737 1669742044
12166 In addition to these topics, the macros use one additional \SpecialChar LaTeX
12167  command that
12168  has no counterpart in \SpecialChar LyX
12169 :
12170 \end_layout
12171
12172 \begin_layout Itemize
12173
12174 \change_deleted 564990737 1669742044
12175
12176 \family typewriter
12177
12178 \backslash
12179 and
12180 \family default
12181  to separate different names for more than one author and institute, respectivel
12182 y.
12183 \end_layout
12184
12185 \begin_layout Standard
12186
12187 \change_deleted 564990737 1669742044
12188 The appropriate command has to be entered in \SpecialChar LyX
12189  and marked as \SpecialChar LaTeX
12190  code.
12191  See the examples.
12192  
12193 \end_layout
12194
12195 \begin_layout Subsection
12196
12197 \change_deleted 564990737 1669742044
12198 The abstract
12199 \end_layout
12200
12201 \begin_layout Standard
12202
12203 \change_deleted 564990737 1669742044
12204 The abstract should immediately follow the header block.
12205  With version 5 the abstract environment was changed to a command, and there
12206  is now a restriction to only one paragraph.
12207  In addition, it should contain an entry with the keywords.
12208  This is done via the paragraph style 
12209 \family sans
12210 Keywords
12211 \family default
12212 .
12213  Refer to the example paper.
12214 \end_layout
12215
12216 \begin_layout Subsection
12217
12218 \change_deleted 564990737 1669742044
12219 Supported environments
12220 \end_layout
12221
12222 \begin_layout Standard
12223
12224 \change_deleted 564990737 1669742044
12225 The A&A paper layout supports the following environments for structuring
12226  your text:
12227 \end_layout
12228
12229 \begin_layout Itemize
12230
12231 \change_deleted 564990737 1669742044
12232
12233 \family sans
12234 Standard
12235 \end_layout
12236
12237 \begin_layout Itemize
12238
12239 \change_deleted 564990737 1669742044
12240
12241 \family sans
12242 Section
12243 \end_layout
12244
12245 \begin_layout Itemize
12246
12247 \change_deleted 564990737 1669742044
12248
12249 \family sans
12250 Subsection
12251 \end_layout
12252
12253 \begin_layout Itemize
12254
12255 \change_deleted 564990737 1669742044
12256
12257 \family sans
12258 Subsubsection
12259 \end_layout
12260
12261 \begin_layout Itemize
12262
12263 \change_deleted 564990737 1669742044
12264
12265 \family sans
12266 Itemize
12267 \end_layout
12268
12269 \begin_layout Itemize
12270
12271 \change_deleted 564990737 1669742044
12272
12273 \family sans
12274 Enumerate
12275 \end_layout
12276
12277 \begin_layout Itemize
12278
12279 \change_deleted 564990737 1669742044
12280
12281 \family sans
12282 Description
12283 \end_layout
12284
12285 \begin_layout Itemize
12286
12287 \change_deleted 564990737 1669742044
12288
12289 \family sans
12290 Caption
12291 \end_layout
12292
12293 \begin_layout Itemize
12294
12295 \change_deleted 564990737 1669742044
12296
12297 \family sans
12298 Abstract
12299 \end_layout
12300
12301 \begin_layout Itemize
12302
12303 \change_deleted 564990737 1669742044
12304
12305 \family sans
12306 Acknowledgment
12307 \end_layout
12308
12309 \begin_layout Itemize
12310
12311 \change_deleted 564990737 1669742044
12312
12313 \family sans
12314 Bibliography
12315 \end_layout
12316
12317 \begin_layout Itemize
12318
12319 \change_deleted 564990737 1669742044
12320
12321 \family sans
12322 \SpecialChar LaTeX
12323
12324 \end_layout
12325
12326 \begin_layout Subsection
12327
12328 \change_deleted 564990737 1669742044
12329 Commands not supported by \SpecialChar LyX
12330
12331 \end_layout
12332
12333 \begin_layout Standard
12334
12335 \change_deleted 564990737 1669742044
12336 Some commands are not yet supported by the 
12337 \family sans
12338 paper (A&A)
12339 \family default
12340  layout for \SpecialChar LyX
12341 .
12342  Some have already been mentioned.
12343  For the sake of completeness, they are listed all together here:
12344 \end_layout
12345
12346 \begin_layout Itemize
12347
12348 \change_deleted 564990737 1669742044
12349
12350 \family typewriter
12351
12352 \backslash
12353 and
12354 \end_layout
12355
12356 \begin_layout Itemize
12357
12358 \change_deleted 564990737 1669742044
12359
12360 \family typewriter
12361
12362 \backslash
12363 authorrunning
12364 \end_layout
12365
12366 \begin_layout Itemize
12367
12368 \change_deleted 564990737 1669742044
12369
12370 \family typewriter
12371
12372 \backslash
12373 object{}
12374 \end_layout
12375
12376 \begin_layout Itemize
12377
12378 \change_deleted 564990737 1669742044
12379
12380 \family typewriter
12381
12382 \backslash
12383 titlerunning{}
12384 \end_layout
12385
12386 \begin_layout Standard
12387
12388 \change_deleted 564990737 1669742044
12389 If you want to use any of these commands, you have to enter them yourself.
12390  
12391 \series bold
12392 Do not forget to mark them as \SpecialChar LaTeX
12393  code!
12394 \end_layout
12395
12396 \begin_layout Subsection
12397
12398 \change_deleted 564990737 1669742044
12399 Figure and Table Floats
12400 \end_layout
12401
12402 \begin_layout Standard
12403
12404 \change_deleted 564990737 1669742044
12405 \SpecialChar LyX
12406  provides support for the necessary float environments 
12407 \family sans
12408 figure, figure*, table
12409 \family default
12410  and 
12411 \family sans
12412 table*
12413 \family default
12414 , therefore we won't tell much about it here.
12415  Refer to the 
12416 \emph on
12417 User's
12418 \begin_inset space ~
12419 \end_inset
12420
12421 Guide
12422 \emph default
12423 .
12424  Just remember that tables should be left-aligned.
12425  For that, select the table and change the alignment in 
12426 \family sans
12427 Edit\SpecialChar menuseparator
12428 Paragraph
12429 \begin_inset space ~
12430 \end_inset
12431
12432 Settings.
12433 \end_layout
12434
12435 \begin_layout Standard
12436
12437 \change_deleted 564990737 1669742044
12438 There is only one special thing: the figures with caption besides the figure.
12439  To create such a figure, you have to do the following:
12440 \end_layout
12441
12442 \begin_layout Enumerate
12443
12444 \change_deleted 564990737 1669742044
12445 Create a wide figure float: 
12446 \family sans
12447 Insert\SpecialChar menuseparator
12448 Float\SpecialChar menuseparator
12449 Figure
12450 \family default
12451 , then right click in the figure and select 
12452 \family sans
12453 Span
12454 \begin_inset space ~
12455 \end_inset
12456
12457 columns
12458 \family default
12459 .
12460 \end_layout
12461
12462 \begin_layout Enumerate
12463
12464 \change_deleted 564990737 1669742044
12465 Enter your caption text.
12466 \end_layout
12467
12468 \begin_layout Enumerate
12469
12470 \change_deleted 564990737 1669742044
12471 Press 
12472 \family sans
12473 Return
12474 \family default
12475  to move the cursor above the caption.
12476 \end_layout
12477
12478 \begin_layout Enumerate
12479
12480 \change_deleted 564990737 1669742044
12481 Insert your figure
12482 \end_layout
12483
12484 \begin_layout Enumerate
12485
12486 \change_deleted 564990737 1669742044
12487 Position the cursor behind the figure and insert a horizontal fill: 
12488 \family sans
12489 Insert\SpecialChar menuseparator
12490 Special
12491 \begin_inset space ~
12492 \end_inset
12493
12494 Character\SpecialChar menuseparator
12495 Horizontal
12496 \begin_inset space ~
12497 \end_inset
12498
12499 Fill
12500 \family default
12501 .
12502 \end_layout
12503
12504 \begin_layout Enumerate
12505
12506 \change_deleted 564990737 1669742044
12507 Switch to \SpecialChar LaTeX
12508  mode: 
12509 \family sans
12510 M-c
12511 \begin_inset space ~
12512 \end_inset
12513
12514 t
12515 \family default
12516 .
12517 \end_layout
12518
12519 \begin_layout Enumerate
12520
12521 \change_deleted 564990737 1669742044
12522 Enter 
12523 \family typewriter
12524
12525 \backslash
12526 parbox[b]{55mm}{
12527 \family default
12528 .
12529  
12530 \series bold
12531 Do not close the brace!
12532 \end_layout
12533
12534 \begin_layout Enumerate
12535
12536 \change_deleted 564990737 1669742044
12537 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
12538  mode and insert
12539  the closing brace: 
12540 \family sans
12541 M-c
12542 \begin_inset space ~
12543 \end_inset
12544
12545 t
12546 \family default
12547  
12548 \family typewriter
12549 }
12550 \family default
12551 .
12552 \end_layout
12553
12554 \begin_layout Standard
12555
12556 \change_deleted 564990737 1669742044
12557 Also, refer to the figures in the example paper.
12558 \end_layout
12559
12560 \begin_layout Subsection
12561
12562 \change_deleted 564990737 1669742044
12563 Referee layout
12564 \end_layout
12565
12566 \begin_layout Standard
12567
12568 \change_deleted 564990737 1669742044
12569 For submission, the paper has to be formated in a special double-spacing
12570  layout.
12571  For this purpose, you have to give the option 
12572 \family typewriter
12573 referee
12574 \family default
12575  to the document class.
12576  This must be done using the custom class options field in the 
12577 \family sans
12578 Document\SpecialChar menuseparator
12579 Settings
12580 \family default
12581  dialog.
12582  Just enter the string 
12583 \family typewriter
12584 referee
12585 \family default
12586  there.
12587 \end_layout
12588
12589 \begin_layout Subsection
12590
12591 \change_deleted 564990737 1669742044
12592 The example paper
12593 \end_layout
12594
12595 \begin_layout Standard
12596
12597 \change_deleted 564990737 1669742044
12598 The 
12599 \family sans
12600 Examples
12601 \family default
12602  directory contains an example paper written with \SpecialChar LyX
12603 .
12604  It is the example paper from the original macro package, translated to
12605  \SpecialChar LyX
12606 .
12607  Use it for inspiration, and compare the original \SpecialChar LaTeX
12608  code with \SpecialChar LyX
12609  way of writing.
12610 \end_layout
12611
12612 \begin_layout Section
12613 AAS\SpecialChar TeX
12614
12615 \end_layout
12616
12617 \begin_layout Standard
12618 by 
12619 \noun on
12620 Mike Ressler
12621 \end_layout
12622
12623 \begin_layout Subsection
12624 Introduction
12625 \end_layout
12626
12627 \begin_layout Standard
12628 AAS\SpecialChar TeX
12629  is a set of macros produced by the American Astronomical Society to
12630  facilitate electronic manuscript submission to the three journals they
12631  publish: the Astrophysical Journal (including the Letters and Supplement),
12632  the Astronomical Journal, and the Publications of the Astronomical Society
12633  of the Pacific.
12634  \SpecialChar LyX
12635  has proven to be an excellent tool for generating these documents, especially
12636  given its equation, citation, and figure handling capabilities.
12637  \SpecialChar LyX
12638  requires version 5.0 (or higher) of these macros; preferably 6.0, which
12639  is the version described here, or higher.
12640  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
12641 2.09 and are fundamentally
12642  incompatible with \SpecialChar LyX
12643 .
12644  The AAS\SpecialChar TeX
12645  package may be downloaded from the AAS\SpecialChar TeX
12646  Web site
12647 \end_layout
12648
12649 \begin_layout Standard
12650 \begin_inset VSpace medskip
12651 \end_inset
12652
12653
12654 \end_layout
12655
12656 \begin_layout Standard
12657 \align center
12658 \begin_inset Flex URL
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662
12663 https://aas.org/aastex/aastex-downloads
12664 \end_layout
12665
12666 \end_inset
12667
12668
12669 \end_layout
12670
12671 \begin_layout Standard
12672 \begin_inset VSpace medskip
12673 \end_inset
12674
12675
12676 \end_layout
12677
12678 \begin_layout Standard
12679 A complete user guide is contained in that package and you should familiarize
12680  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
12681 .
12682  \SpecialChar LyX
12683  will not reduce the need to figure out all the AAS\SpecialChar TeX
12684  commands, it will only
12685  reduce the drudgery of typing everything in.
12686  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
12687  document conforms
12688  completely to the requirements of the journal to which you are submitting
12689  your paper.
12690 \end_layout
12691
12692 \begin_layout Subsection
12693 Starting a New Paper
12694 \end_layout
12695
12696 \begin_layout Standard
12697 I strongly suggest that you start with the AAS\SpecialChar TeX
12698  template file.
12699  Click on 
12700 \family sans
12701 File\SpecialChar menuseparator
12702 New from
12703 \family default
12704  
12705 \family sans
12706 Template
12707 \family default
12708 , enter the new file name, then choose the 
12709 \family typewriter
12710 aastex6.lyx
12711 \family default
12712  template.
12713  This will show the most common fields found in a manuscript.
12714  Simply overwrite the existing text (including the brackets, 
12715 \family typewriter
12716 <>
12717 \family default
12718 ) with the correct information.
12719  Many of the AAS\SpecialChar TeX
12720  commands and environments can be implemented directly in
12721  \SpecialChar LyX
12722 , but some cannot.
12723  For commands such as these, the \SpecialChar LaTeX
12724  code must be entered directly and marked
12725  as such.
12726  Such commands are referred to as \SpecialChar TeX
12727  code, or Evil Red Text.
12728  I tried to minimize the amount of \SpecialChar TeX
12729  code needed in an AAS\SpecialChar TeX
12730  document.
12731 \end_layout
12732
12733 \begin_layout Subsection
12734 Finishing Your Paper
12735 \end_layout
12736
12737 \begin_layout Standard
12738 When the paper is finished to your satisfaction and previews/prints correctly,
12739  there are a few 
12740 \begin_inset Quotes eld
12741 \end_inset
12742
12743 postprocessing
12744 \begin_inset Quotes erd
12745 \end_inset
12746
12747  actions which need to be done before you submit it to the journals.
12748  
12749 \end_layout
12750
12751 \begin_layout Enumerate
12752 Export your paper as a \SpecialChar LaTeX
12753  file (
12754 \family sans
12755 File\SpecialChar menuseparator
12756 Export\SpecialChar menuseparator
12757 \SpecialChar LaTeX
12758
12759 \family default
12760 ).
12761  
12762 \end_layout
12763
12764 \begin_layout Enumerate
12765 Edit the resulting 
12766 \family typewriter
12767 .tex
12768 \family default
12769  file with your favorite text editor
12770 \end_layout
12771
12772 \begin_deeper
12773 \begin_layout Enumerate
12774 remove the comment lines before the 
12775 \family typewriter
12776
12777 \backslash
12778 documentclass
12779 \family default
12780  command
12781 \end_layout
12782
12783 \begin_layout Enumerate
12784 remove the 
12785 \family typewriter
12786
12787 \backslash
12788 usepackage...{fontenc}
12789 \family default
12790  line if it appears (usually just after 
12791 \family typewriter
12792
12793 \backslash
12794 documentclass
12795 \family default
12796 }; also remove the 
12797 \family typewriter
12798
12799 \backslash
12800 secnumdepth
12801 \family default
12802  line if it appears.
12803 \end_layout
12804
12805 \begin_layout Enumerate
12806 remove everything between (and including) the 
12807 \family typewriter
12808
12809 \backslash
12810 makeatletter
12811 \family default
12812  and 
12813 \family typewriter
12814
12815 \backslash
12816 makeatother
12817 \family default
12818  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12819  preamble
12820  (which should appear immediately after the 
12821 \begin_inset Quotes eld
12822 \end_inset
12823
12824 User specified \SpecialChar LaTeX
12825  commands
12826 \begin_inset Quotes erd
12827 \end_inset
12828
12829  comment in the 
12830 \family typewriter
12831 .tex
12832 \family default
12833  file).
12834 \end_layout
12835
12836 \end_deeper
12837 \begin_layout Enumerate
12838 Run the resulting file through \SpecialChar LaTeX
12839  to make sure it still processes correctly.
12840 \end_layout
12841
12842 \begin_layout Enumerate
12843 Reread the journal requirements to make sure your filenames and formats
12844  are correct.
12845 \end_layout
12846
12847 \begin_layout Enumerate
12848 Submit it.
12849 \end_layout
12850
12851 \begin_layout Subsection
12852 Comments On Specific Commands
12853 \end_layout
12854
12855 \begin_layout Standard
12856 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
12857  commands: the
12858  AAS\SpecialChar TeX
12859  User Guide (
12860 \family typewriter
12861 aasguide.tex
12862 \family default
12863 ) gives a good description of each.
12864  Thus it's probably easiest for me to go down the list as found in the guide
12865  and offer comments where necessary.
12866  So let's begin \SpecialChar ldots
12867
12868 \end_layout
12869
12870 \begin_layout Subsubsection
12871 Things that work as expected
12872 \end_layout
12873
12874 \begin_layout Standard
12875 Because they work as you might expect, I simply list them and the section
12876  they are found in: 
12877 \family typewriter
12878
12879 \backslash
12880 documentclass
12881 \family default
12882  (2.1.1), 
12883 \family typewriter
12884
12885 \backslash
12886 begin{document}
12887 \family default
12888  (2.2), 
12889 \family typewriter
12890
12891 \backslash
12892 title
12893 \family default
12894  (2.3), 
12895 \family typewriter
12896
12897 \backslash
12898 author
12899 \family default
12900  (2.3), 
12901 \family typewriter
12902
12903 \backslash
12904 affil
12905 \family default
12906  (2.3), 
12907 \family typewriter
12908
12909 \backslash
12910 abstract
12911 \family default
12912  (2.4), 
12913 \family typewriter
12914
12915 \backslash
12916 keywords
12917 \family default
12918  (2.5), 
12919 \family typewriter
12920
12921 \backslash
12922 section
12923 \family default
12924  (2.7), 
12925 \family typewriter
12926
12927 \backslash
12928 subsection
12929 \family default
12930  (2.7), 
12931 \family typewriter
12932
12933 \backslash
12934 subsubsection
12935 \family default
12936  (2.7), 
12937 \family typewriter
12938
12939 \backslash
12940 paragraph
12941 \family default
12942  (2.7), 
12943 \family typewriter
12944
12945 \backslash
12946 facility
12947 \family default
12948  (2.10), 
12949 \family typewriter
12950
12951 \backslash
12952 begin{displaymath}
12953 \family default
12954  (2.12), 
12955 \family typewriter
12956
12957 \backslash
12958 begin{equation}
12959 \family default
12960  (2.12), 
12961 \family typewriter
12962
12963 \backslash
12964 begin{eqnarray}
12965 \family default
12966  (2.12), 
12967 \family typewriter
12968
12969 \backslash
12970 begin{mathletters}
12971 \family default
12972  (2.12), 
12973 \family typewriter
12974
12975 \backslash
12976 begin{thebibliography}
12977 \family default
12978  (2.13.1), 
12979 \family typewriter
12980
12981 \backslash
12982 bibitem
12983 \family default
12984  (2.13.2), all the cite commands and their variations (2.13.2), the generic
12985  graphicx figure commands (2.14.1), 
12986 \family typewriter
12987
12988 \backslash
12989 begin{table}
12990 \family default
12991  (2.15.4), 
12992 \family typewriter
12993
12994 \backslash
12995 begin{tabular}
12996 \family default
12997  (2.15.4), 
12998 \family typewriter
12999
13000 \backslash
13001 caption
13002 \family default
13003  (2.15.4), 
13004 \family typewriter
13005
13006 \backslash
13007 label
13008 \family default
13009  (2.15.4, amongst other places), 
13010 \family typewriter
13011
13012 \backslash
13013 tablerefs
13014 \family default
13015  (2.15.5), 
13016 \family typewriter
13017
13018 \backslash
13019 tablecomments
13020 \family default
13021  (2.15.5), 
13022 \family typewriter
13023
13024 \backslash
13025 url
13026 \family default
13027  (2.17.4), 
13028 \family typewriter
13029
13030 \backslash
13031 end{document}
13032 \family default
13033  (2.18).
13034 \end_layout
13035
13036 \begin_layout Standard
13037 The following style options also work correctly: 
13038 \family typewriter
13039 longabstract
13040 \family default
13041  (2.4), 
13042 \family typewriter
13043 preprint
13044 \family default
13045  (3.2.1), 
13046 \family typewriter
13047 preprint2
13048 \family default
13049  (3.2.2), 
13050 \family typewriter
13051 eqsecnum
13052 \family default
13053  (3.3), 
13054 \family typewriter
13055 flushrt
13056 \family default
13057  (3.4).
13058  Simply put them in the 
13059 \family sans
13060 Options
13061 \family default
13062  box in 
13063 \family sans
13064 Layout\SpecialChar menuseparator
13065 Document
13066 \family default
13067 .
13068 \end_layout
13069
13070 \begin_layout Subsubsection
13071 Things that work, but require more comment
13072 \end_layout
13073
13074 \begin_layout Standard
13075 The following items work, but require a little more discussion:
13076 \end_layout
13077
13078 \begin_layout Itemize
13079 These items are reserved for use by the journal editors, but you can put
13080  them into the \SpecialChar LaTeX
13081  preamble if you feel compelled to do so: 
13082 \family typewriter
13083
13084 \backslash
13085 received
13086 \family default
13087
13088 \family typewriter
13089
13090 \backslash
13091 revised
13092 \family default
13093
13094 \family typewriter
13095
13096 \backslash
13097 accepted
13098 \family default
13099
13100 \family typewriter
13101
13102 \backslash
13103 ccc
13104 \family default
13105
13106 \family typewriter
13107
13108 \backslash
13109 cpright
13110 \family default
13111  (all from 2.1.3)
13112 \end_layout
13113
13114 \begin_layout Itemize
13115 These items may be placed in the \SpecialChar LaTeX
13116  preamble, and are included as blanks in
13117  the template file: 
13118 \family typewriter
13119
13120 \backslash
13121 slugcomment
13122 \family default
13123  (2.1.4), 
13124 \family typewriter
13125
13126 \backslash
13127 shorttitle
13128 \family default
13129  (2.1.5), 
13130 \family typewriter
13131
13132 \backslash
13133 shortauthors
13134 \family default
13135  (2.1.5)
13136 \end_layout
13137
13138 \begin_layout Itemize
13139
13140 \family typewriter
13141
13142 \backslash
13143 email
13144 \family default
13145  (2.3) – can only be used 
13146 \begin_inset Quotes eld
13147 \end_inset
13148
13149 standalone
13150 \begin_inset Quotes erd
13151 \end_inset
13152
13153 , not in the middle of a paragraph.
13154  Use \SpecialChar TeX
13155  code if you need to embed it.
13156 \end_layout
13157
13158 \begin_layout Itemize
13159
13160 \family typewriter
13161
13162 \backslash
13163 and
13164 \family default
13165  (2.3) – will have extra {} after it.
13166  This should not cause an error.
13167 \end_layout
13168
13169 \begin_layout Itemize
13170
13171 \family typewriter
13172
13173 \backslash
13174 notetoeditor
13175 \family default
13176  (2.6) – can only be used 
13177 \begin_inset Quotes eld
13178 \end_inset
13179
13180 standalone
13181 \begin_inset Quotes erd
13182 \end_inset
13183
13184 , not in the middle of a paragraph.
13185  Use \SpecialChar TeX
13186  code if you need to embed it.
13187 \end_layout
13188
13189 \begin_layout Itemize
13190
13191 \family typewriter
13192
13193 \backslash
13194 placetable
13195 \family default
13196  (2.8) – can't insert a cross-reference tag, you must type the tag name by
13197  hand
13198 \end_layout
13199
13200 \begin_layout Itemize
13201
13202 \family typewriter
13203
13204 \backslash
13205 placefigure
13206 \family default
13207  (2.8) – same as for 
13208 \family typewriter
13209
13210 \backslash
13211 placetable
13212 \end_layout
13213
13214 \begin_layout Itemize
13215
13216 \family typewriter
13217
13218 \backslash
13219 acknowledgements
13220 \family default
13221  (2.9) – will have extra {} after it.
13222  This should not cause an error.
13223 \end_layout
13224
13225 \begin_layout Itemize
13226
13227 \family typewriter
13228
13229 \backslash
13230 appendix
13231 \family default
13232  (2.11) – will have extra {} after it.
13233  This should not cause an error.
13234 \end_layout
13235
13236 \begin_layout Itemize
13237
13238 \family typewriter
13239
13240 \backslash
13241 figcaption
13242 \family default
13243  (2.14.2) – you can insert an optional filename argument by placing the cursor
13244  at the beginning of the text and selecting 
13245 \family sans
13246 Insert\SpecialChar menuseparator
13247 Short Title
13248 \family default
13249 .
13250  
13251 \begin_inset Quotes eld
13252 \end_inset
13253
13254 Short Title
13255 \begin_inset Quotes erd
13256 \end_inset
13257
13258  inserts an optional argument of the type needed by 
13259 \family typewriter
13260
13261 \backslash
13262 figcaption
13263 \family default
13264 .
13265  Hopefully it will be renamed someday.
13266 \end_layout
13267
13268 \begin_layout Itemize
13269
13270 \family typewriter
13271
13272 \backslash
13273 objectname
13274 \family default
13275  (2.17.1) – same as 
13276 \family typewriter
13277
13278 \backslash
13279 figcaption
13280 \family default
13281  for the catalog ID optional parameter
13282 \end_layout
13283
13284 \begin_layout Itemize
13285
13286 \family typewriter
13287
13288 \backslash
13289 dataset
13290 \family default
13291  (2.17.1) – same as 
13292 \family typewriter
13293
13294 \backslash
13295 figcaption
13296 \family default
13297  for the catalog ID optional parameter
13298 \end_layout
13299
13300 \begin_layout Subsubsection
13301 Things not implemented, use \SpecialChar TeX
13302  code
13303 \end_layout
13304
13305 \begin_layout Standard
13306
13307 \family typewriter
13308
13309 \backslash
13310 eqnum
13311 \family default
13312  (2.12), 
13313 \family typewriter
13314
13315 \backslash
13316 setcounter{equation}
13317 \family default
13318  (2.12), Journal name abbreviations (2.13.4), 
13319 \family typewriter
13320
13321 \backslash
13322 figurenum
13323 \family default
13324  (2.14.1), 
13325 \family typewriter
13326
13327 \backslash
13328 epsscale
13329 \family default
13330  (2.14.1), 
13331 \family typewriter
13332
13333 \backslash
13334 plotone
13335 \family default
13336  (2.14.1), 
13337 \family typewriter
13338
13339 \backslash
13340 plottwo
13341 \family default
13342  (2.14.1), 
13343 \family typewriter
13344
13345 \backslash
13346 tablenum
13347 \family default
13348  (2.15.4), 
13349 \family typewriter
13350
13351 \backslash
13352 tableline
13353 \family default
13354  (2.15.4, insert it as the first element in the lefthand cell after where
13355  you want it.
13356  Don't use any of \SpecialChar LyX
13357 's rules in the table), 
13358 \family typewriter
13359
13360 \backslash
13361 tablenotemark
13362 \family default
13363  (2.15.5), 
13364 \family typewriter
13365
13366 \backslash
13367 tablenotetext
13368 \family default
13369  (2.15.5), much of Misc (2.17, except 
13370 \family typewriter
13371
13372 \backslash
13373 objectname
13374 \family default
13375
13376 \family typewriter
13377
13378 \backslash
13379 dataset
13380 \family default
13381
13382 \family typewriter
13383
13384 \backslash
13385 url
13386 \family default
13387 , and 
13388 \family typewriter
13389
13390 \backslash
13391 email
13392 \family default
13393 ; see above), 
13394 \family typewriter
13395
13396 \backslash
13397 singlespace
13398 \family default
13399  (3.1), 
13400 \family typewriter
13401
13402 \backslash
13403 doublespace
13404 \family default
13405  (3.1), 
13406 \family typewriter
13407
13408 \backslash
13409 onecolumn
13410 \family default
13411  (3.2), 
13412 \family typewriter
13413
13414 \backslash
13415 twocolumn
13416 \family default
13417  (3.2)
13418 \end_layout
13419
13420 \begin_layout Subsubsection
13421 Things that cannot be implemented
13422 \end_layout
13423
13424 \begin_layout Standard
13425 \SpecialChar ldots
13426  at least in any meaningful sort of way, so I suggest ignoring them.
13427  They are the references environment (2.13.3), and the deluxetable environment
13428  (2.15).
13429  If you really, really need to use deluxetable, I suggest editing it in
13430  a separate file with a text editor, then using 
13431 \family sans
13432 Insert\SpecialChar menuseparator
13433 Child
13434 \begin_inset space ~
13435 \end_inset
13436
13437 Document
13438 \family default
13439  to include it in your \SpecialChar LyX
13440  document.
13441  See the 
13442 \family typewriter
13443 aas_sample.lyx
13444 \family default
13445  file to see an example of this.
13446 \end_layout
13447
13448 \begin_layout Subsection
13449 FAQs, Tips, Tricks, and Other Ruminations
13450 \end_layout
13451
13452 \begin_layout Subsubsection
13453 Getting \SpecialChar LyX
13454  and AAS\SpecialChar TeX
13455  to cooperate
13456 \end_layout
13457
13458 \begin_layout Standard
13459 It can be a bit tricky to get \SpecialChar LyX
13460  to recognize a new layout and document class.
13461  When all else fails, do this:
13462 \end_layout
13463
13464 \begin_layout Enumerate
13465 Make certain that \SpecialChar LaTeX
13466  can find AAS\SpecialChar TeX
13467 .
13468  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
13469  distribution into a
13470  directory completely unrelated to \SpecialChar LaTeX
13471  or AAS\SpecialChar TeX
13472  and run \SpecialChar LaTeX
13473  on 
13474 \family typewriter
13475 sample.tex
13476 \family default
13477 .
13478 \end_layout
13479
13480 \begin_layout Enumerate
13481 Make certain that 
13482 \family typewriter
13483 aastex.layout
13484 \family default
13485  appears in \SpecialChar LyX
13486 's 
13487 \family typewriter
13488 layouts
13489 \family default
13490  folder
13491 \end_layout
13492
13493 \begin_layout Enumerate
13494 Rerun 
13495 \family sans
13496 Tools\SpecialChar menuseparator
13497 Reconfigure
13498 \family default
13499  in \SpecialChar LyX
13500 , then restart \SpecialChar LyX
13501 .
13502 \end_layout
13503
13504 \begin_layout Enumerate
13505 Open a regular new file, not from a template.
13506  Does AAS\SpecialChar TeX
13507  appear in the class list in 
13508 \family sans
13509 Document\SpecialChar menuseparator
13510 Settings
13511 \family default
13512 ?
13513 \end_layout
13514
13515 \begin_layout Standard
13516 If you get a warning from an existing AAS\SpecialChar TeX
13517  document about not being able
13518  to find the AAS\SpecialChar TeX
13519  layout or a message about 
13520 \begin_inset Quotes eld
13521 \end_inset
13522
13523 You should not mix title layouts with normal ones
13524 \begin_inset Quotes erd
13525 \end_inset
13526
13527 , things haven't been installed correctly.
13528 \end_layout
13529
13530 \begin_layout Subsubsection
13531 \SpecialChar LaTeX
13532  error processing a table 
13533 \end_layout
13534
13535 \begin_layout Standard
13536 \SpecialChar LyX
13537 , by default, attempts to center the table caption/title.
13538  This seems to produce a bad interaction in AAS\SpecialChar TeX
13539  so you should click somewhere
13540  in the caption/title, then select 
13541 \family sans
13542 Edit\SpecialChar menuseparator
13543 Paragraph
13544 \begin_inset space ~
13545 \end_inset
13546
13547 Settings
13548 \family default
13549 , then set the 
13550 \family sans
13551 Alignment
13552 \family default
13553  to 
13554 \family sans
13555 Block
13556 \family default
13557 .
13558  This took care of it for me.
13559 \end_layout
13560
13561 \begin_layout Subsubsection
13562 References
13563 \end_layout
13564
13565 \begin_layout Standard
13566 A couple of things: 1) I have noticed some funny spacing in the reference
13567  entries in the text.
13568  When you enter the bibliography item data, make sure their is 
13569 \emph on
13570 no
13571 \emph default
13572  space between the last author and the parenthesis setting off the year;
13573  
13574 \emph on
13575 e.
13576 \begin_inset space \thinspace{}
13577 \end_inset
13578
13579 g.
13580 \begin_inset space \space{}
13581 \end_inset
13582
13583
13584 \emph default
13585 type 
13586 \family typewriter
13587 Ressler(1992)
13588 \family default
13589 , not 
13590 \family typewriter
13591 Ressler (1992)
13592 \family default
13593 .
13594  2) Entering the references at all is not obvious.
13595  The easiest thing is to start typing your first reference at the end of
13596  the document, then mark it as type 
13597 \family sans
13598 References
13599 \family default
13600 .
13601  That will put a small gray box in front of what you just typed.
13602  Click on the box to fill in the rest of the information.
13603  For new references, go to the end of an existing reference and press return.
13604  That will create a new line with its own box, etc.
13605 \end_layout
13606
13607 \begin_layout Subsubsection
13608 Including EPS files
13609 \end_layout
13610
13611 \begin_layout Standard
13612 Even though AAS\SpecialChar TeX
13613  provides its own figure commands (
13614 \family typewriter
13615
13616 \backslash
13617 plotone
13618 \family default
13619 , for example), I much prefer \SpecialChar LaTeX
13620 's standard figure commands (with the default
13621  graphicx).
13622  You can insert the 
13623 \family typewriter
13624
13625 \backslash
13626 plotone
13627 \family default
13628 , etc.
13629 \begin_inset space ~
13630 \end_inset
13631
13632 commands as \SpecialChar TeX
13633  code into a Figure Float box if you desire, but I never have
13634  much luck getting the layout right.
13635  With the standard graphics, \SpecialChar LyX
13636  will insert a 
13637 \family typewriter
13638
13639 \backslash
13640 usepackage{graphicx}
13641 \family default
13642  command into the \SpecialChar LaTeX
13643  preamble and handle the figures in the standard \SpecialChar LaTeX2e
13644  way,
13645  interspersing the figures in the text.
13646  I believe ApJ accepts figures exactly this way now; AJ might still use
13647  the 
13648 \begin_inset Quotes eld
13649 \end_inset
13650
13651 stack everything at the end
13652 \begin_inset Quotes erd
13653 \end_inset
13654
13655  technique.
13656 \end_layout
13657
13658 \begin_layout Subsubsection
13659 Things I could have done, but didn't
13660 \end_layout
13661
13662 \begin_layout Standard
13663 There are a few 
13664 \begin_inset Quotes eld
13665 \end_inset
13666
13667 pretty
13668 \begin_inset Quotes erd
13669 \end_inset
13670
13671  things I could have implemented, but chose not to.
13672  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
13673  window,
13674  even though it is double-spaced in the paper manuscript.
13675  Also, I chose not to make separate layouts for the preprint and preprint2
13676  styles.
13677  Since I assume you will spend most of your time in the plain manuscript
13678  mode anyway, I decided not to chew up more disk space with this.
13679  
13680 \end_layout
13681
13682 \begin_layout Subsection
13683 Final Caveat
13684 \end_layout
13685
13686 \begin_layout Standard
13687 Your mileage may vary.
13688  I've now had papers published by both ApJ and AJ that have had 98% of the
13689  effort done in \SpecialChar LyX
13690 ; the last 2% was the \SpecialChar LaTeX
13691  post-processing and a few cleanups.
13692  I have had no trouble with the submission process, and I'm sure the journals
13693  were never aware that there might be a difference.
13694  So, go forth and publish!
13695 \end_layout
13696
13697 \begin_layout Section
13698 Dinbrief
13699 \end_layout
13700
13701 \begin_layout Standard
13702 The document class 
13703 \family sans
13704 dinbrief
13705 \family default
13706  can be used to type letters according to German conventions.
13707  A template file is included in 
13708 \family typewriter
13709 .../lyx/share/templates
13710 \family default
13711  for you to use as a starting point.
13712 \end_layout
13713
13714 \begin_layout Section
13715 Elsevier Journals
13716 \end_layout
13717
13718 \begin_layout Standard
13719 See the \SpecialChar LyX
13720  template file 
13721 \family typewriter
13722 elsarticle.lyx
13723 \family default
13724 .
13725  It contains all infos you need.
13726 \end_layout
13727
13728 \begin_layout Section
13729 Foils [aka 
13730 \family sans
13731 Foil\SpecialChar TeX
13732
13733 \family default
13734 ]
13735 \begin_inset CommandInset label
13736 LatexCommand label
13737 name "sec:foiltex"
13738
13739 \end_inset
13740
13741
13742 \end_layout
13743
13744 \begin_layout Standard
13745 by 
13746 \noun on
13747 Allan Rae
13748 \end_layout
13749
13750 \begin_layout Subsection
13751 Introduction
13752 \end_layout
13753
13754 \begin_layout Standard
13755 This section describes how to use \SpecialChar LyX
13756  to make slides for overhead projectors.
13757  There are two document classes that can do this: the default slides class
13758  and the 
13759 \family sans
13760 Foil\SpecialChar TeX
13761
13762 \family default
13763  slides class.
13764  This section documents the latter.
13765 \end_layout
13766
13767 \begin_layout Standard
13768 I'm going to say this again, nice and clear, so that there's no misunderstanding
13769 :
13770 \end_layout
13771
13772 \begin_layout Standard
13773 \begin_inset VSpace bigskip
13774 \end_inset
13775
13776
13777 \end_layout
13778
13779 \begin_layout Standard
13780 \align center
13781
13782 \size large
13783 This section documents the class 
13784 \begin_inset Quotes eld
13785 \end_inset
13786
13787
13788 \family sans
13789 FoilTeX
13790 \family default
13791
13792 \begin_inset Quotes erd
13793 \end_inset
13794
13795  
13796 \emph on
13797 only.
13798 \end_layout
13799
13800 \begin_layout Standard
13801 \begin_inset VSpace bigskip
13802 \end_inset
13803
13804
13805 \end_layout
13806
13807 \begin_layout Standard
13808 If you're looking for the documentation for 
13809 \begin_inset Quotes eld
13810 \end_inset
13811
13812
13813 \family sans
13814 slides (default)
13815 \family default
13816
13817 \begin_inset Quotes erd
13818 \end_inset
13819
13820 , check out section
13821 \begin_inset space ~
13822 \end_inset
13823
13824
13825 \begin_inset CommandInset ref
13826 LatexCommand ref
13827 reference "sec:slitex"
13828
13829 \end_inset
13830
13831 .
13832  If your machine doesn't have the 
13833 \family sans
13834 foils
13835 \family default
13836  class 
13837 \family sans
13838 FoilTeX
13839 \family default
13840  installed, you'll probably have to use the default 
13841 \family sans
13842 slides
13843 \family default
13844  class, which isn't quite as good as 
13845 \family sans
13846 foils.
13847 \end_layout
13848
13849 \begin_layout Standard
13850 The 
13851 \family sans
13852 foils
13853 \family default
13854  class is designed for use with version
13855 \begin_inset space ~
13856 \end_inset
13857
13858 2.1 of the 
13859 \family sans
13860 foils.cls
13861 \family default
13862  \SpecialChar LaTeX
13863  class file which is now an integral part of \SpecialChar LaTeX2e
13864 .
13865 \end_layout
13866
13867 \begin_layout Subsection
13868 Getting Started
13869 \end_layout
13870
13871 \begin_layout Standard
13872 Obviously, to use this document class, you need to select 
13873 \family sans
13874 FoilTeX
13875 \family default
13876  from the 
13877 \family sans
13878 Class
13879 \family default
13880  entry in the 
13881 \family sans
13882 Document
13883 \begin_inset space ~
13884 \end_inset
13885
13886 Layout
13887 \family default
13888  dialog.
13889  There are some settings in the 
13890 \family sans
13891 Document
13892 \begin_inset space ~
13893 \end_inset
13894
13895 Layout
13896 \family default
13897  dialog that you should know about that are specific to this class:
13898 \end_layout
13899
13900 \begin_layout Itemize
13901 Don't change the options 
13902 \family sans
13903 Sides
13904 \family default
13905  and 
13906 \family sans
13907 Columns
13908 \family default
13909  on the 
13910 \family sans
13911 Document
13912 \begin_inset space ~
13913 \end_inset
13914
13915 Layout
13916 \family default
13917  dialog.
13918  They're ignored by the 
13919 \family sans
13920 foils
13921 \family default
13922  class.
13923 \end_layout
13924
13925 \begin_layout Itemize
13926 The default font size is 20
13927 \begin_inset space \thinspace{}
13928 \end_inset
13929
13930 pt with the other options being 17
13931 \begin_inset space \thinspace{}
13932 \end_inset
13933
13934 pt, 25
13935 \begin_inset space \thinspace{}
13936 \end_inset
13937
13938 pt and 30
13939 \begin_inset space \thinspace{}
13940 \end_inset
13941
13942 pt.
13943 \end_layout
13944
13945 \begin_layout Itemize
13946 The default font is 
13947 \family sans
13948 sans
13949 \family default
13950  
13951 \family sans
13952 serif
13953 \family default
13954  but all math equations are still typeset in the usual roman font.
13955 \end_layout
13956
13957 \begin_layout Itemize
13958
13959 \family sans
13960 Foil\SpecialChar TeX
13961
13962 \family default
13963  supports A4 and Letter paper sizes as well as a special size for working
13964  with 35
13965 \begin_inset space \thinspace{}
13966 \end_inset
13967
13968 mm slides.
13969  It doesn't support A5, B5, legal or executive paper sizes.
13970 \end_layout
13971
13972 \begin_layout Itemize
13973 Don't bother changing the 
13974 \family sans
13975 Float Placement
13976 \family default
13977  settings because they are ignored anyway.
13978  All floats appear where they are defined in the text.
13979 \end_layout
13980
13981 \begin_layout Itemize
13982 The 
13983 \family sans
13984 Pagestyle
13985 \family default
13986  setting behaves a bit differently for this class.
13987  
13988 \family sans
13989 Foil\SpecialChar TeX
13990
13991 \family default
13992  provides extensive footer and header capabilities including a user-defined
13993  logo.
13994  See section
13995 \begin_inset space ~
13996 \end_inset
13997
13998
13999 \begin_inset CommandInset ref
14000 LatexCommand ref
14001 reference "sec:foilfoot"
14002
14003 \end_inset
14004
14005  for more details.
14006  The title page is treated differently to all other pages in the document
14007  and is 
14008 \emph on
14009 always
14010 \emph default
14011  unnumbered and 
14012 \emph on
14013 always
14014 \emph default
14015  has the logo centered at the bottom of the page (if one is defined).
14016  The possible page style choices and what they do are as follows:
14017 \end_layout
14018
14019 \begin_deeper
14020 \begin_layout Labeling
14021 \labelwidthstring MMMMMMM
14022
14023 \family sans
14024 \series bold
14025 empty
14026 \family default
14027 \series default
14028  The final output contains no page numbers, or other headers or footers
14029  (except footnotes of course).
14030  
14031 \end_layout
14032
14033 \begin_layout Labeling
14034 \labelwidthstring MMMMMMM
14035
14036 \family sans
14037 \series bold
14038 plain
14039 \family default
14040 \series default
14041  The final output contains page numbers centered at the bottom of the page.
14042  No other headings or footers (other than footnotes).
14043 \end_layout
14044
14045 \begin_layout Labeling
14046 \labelwidthstring MMMMMMM
14047
14048 \series bold
14049 foilheadings
14050 \series default
14051  Page numbers in lower right corner.
14052  Additional headers and footers are also shown.
14053  This is also the default.
14054 \end_layout
14055
14056 \begin_layout Labeling
14057 \labelwidthstring MMMMMMM
14058
14059 \series bold
14060 fancy
14061 \series default
14062  Gives you access to the 
14063 \family sans
14064 fancyheadings
14065 \family default
14066  package although its use with 
14067 \family sans
14068 Foil\SpecialChar TeX
14069
14070 \family default
14071  is discouraged by the writer of the 
14072 \family sans
14073 Foil\SpecialChar TeX
14074
14075 \family default
14076  package because of some potential page layout clashes.
14077 \end_layout
14078
14079 \end_deeper
14080 \begin_layout Subsubsection
14081 Extra Options
14082 \end_layout
14083
14084 \begin_layout Standard
14085 The following options may be used in the extra class options in the 
14086 \family sans
14087 Document\SpecialChar menuseparator
14088 Settings
14089 \family default
14090  dialog.
14091 \end_layout
14092
14093 \begin_layout Labeling
14094 \labelwidthstring MMMMMMx
14095
14096 \series bold
14097 35mmSlide
14098 \series default
14099  This sets up the page layout for 7.33
14100 \begin_inset space \thinspace{}
14101 \end_inset
14102
14103 in by 11
14104 \begin_inset space \thinspace{}
14105 \end_inset
14106
14107 in paper, which is about the same aspect ratio as a 35
14108 \begin_inset space \thinspace{}
14109 \end_inset
14110
14111 mm slide, making it a bit easier to work with this medium.
14112 \end_layout
14113
14114 \begin_layout Labeling
14115 \labelwidthstring MMMMMMx
14116
14117 \series bold
14118 headrule
14119 \series default
14120  Places a rule across the page below the header on every page except the
14121  title page.
14122 \end_layout
14123
14124 \begin_layout Labeling
14125 \labelwidthstring MMMMMMx
14126
14127 \series bold
14128 footrule
14129 \series default
14130  Places a rule across the page above the footer on every page except the
14131  title page.
14132 \end_layout
14133
14134 \begin_layout Labeling
14135 \labelwidthstring MMMMMMx
14136
14137 \series bold
14138 dvips
14139 \series default
14140  This is automatically set each time you create a new 
14141 \family sans
14142 foils
14143 \family default
14144  document.
14145  This option tells 
14146 \family sans
14147 Foil\SpecialChar TeX
14148
14149 \family default
14150  to use the dvips driver to rotate those pages that are set as landscape
14151  foils.
14152 \end_layout
14153
14154 \begin_layout Labeling
14155 \labelwidthstring MMMMMMx
14156
14157 \series bold
14158 landscape
14159 \series default
14160  Simply changes the page dimensions to those of a landscape page but doesn't
14161  do any rotation.
14162  Thus if you use this option you need to use an external program to rotate
14163  each page or feed your paper through your printer as landscape.
14164  Note that this option effectively reverses the roles of the 
14165 \family sans
14166 Foilhead
14167 \family default
14168  and 
14169 \family sans
14170 Rotatefoilhead
14171 \family default
14172  environments (don't worry these are described in the next section).
14173 \end_layout
14174
14175 \begin_layout Labeling
14176 \labelwidthstring MMMMMMx
14177
14178 \series bold
14179 leqno
14180 \series default
14181  Equation numbers on the left.
14182 \end_layout
14183
14184 \begin_layout Labeling
14185 \labelwidthstring MMMMMMx
14186
14187 \series bold
14188 fleqn
14189 \series default
14190  Flush-left equations.
14191 \end_layout
14192
14193 \begin_layout Subsection
14194 Supported Environments
14195 \end_layout
14196
14197 \begin_layout Standard
14198 Most of the environments commonly supported in other classes are also supported
14199  by the 
14200 \family sans
14201 foils
14202 \family default
14203  class.
14204  There are several additional environments provided by 
14205 \family sans
14206 Foil\SpecialChar TeX
14207
14208 \family default
14209  as well as a couple added by \SpecialChar LyX
14210 .
14211  The following environments are shared with other classes:
14212 \end_layout
14213
14214 \begin_layout Standard
14215 \begin_inset Flex Multiple Columns
14216 status open
14217
14218 \begin_layout Itemize
14219
14220 \family sans
14221 Standard
14222 \end_layout
14223
14224 \begin_layout Itemize
14225
14226 \family sans
14227 Itemize
14228 \end_layout
14229
14230 \begin_layout Itemize
14231
14232 \family sans
14233 Enumerate
14234 \end_layout
14235
14236 \begin_layout Itemize
14237
14238 \family sans
14239 Description
14240 \end_layout
14241
14242 \begin_layout Itemize
14243
14244 \family sans
14245 List
14246 \end_layout
14247
14248 \begin_layout Itemize
14249
14250 \family sans
14251 \SpecialChar LyX
14252 -Code
14253 \end_layout
14254
14255 \begin_layout Itemize
14256
14257 \family sans
14258 Verse
14259 \end_layout
14260
14261 \begin_layout Itemize
14262
14263 \family sans
14264 Quote
14265 \end_layout
14266
14267 \begin_layout Itemize
14268
14269 \family sans
14270 Quotation
14271 \end_layout
14272
14273 \begin_layout Itemize
14274
14275 \family sans
14276 TitleAuthor
14277 \end_layout
14278
14279 \begin_layout Itemize
14280
14281 \family sans
14282 Date
14283 \end_layout
14284
14285 \begin_layout Itemize
14286
14287 \family sans
14288 Abstract
14289 \end_layout
14290
14291 \begin_layout Itemize
14292
14293 \family sans
14294 Bibliography
14295 \end_layout
14296
14297 \begin_layout Itemize
14298
14299 \family sans
14300 Address
14301 \end_layout
14302
14303 \begin_layout Itemize
14304
14305 \family sans
14306 RightAddress
14307 \end_layout
14308
14309 \end_inset
14310
14311
14312 \end_layout
14313
14314 \begin_layout Standard
14315 That is, all the major environments apart from the sectioning environments.
14316  Since foils are essentially self-contained sections, with a title and body,
14317  
14318 \family sans
14319 Foil\SpecialChar TeX
14320
14321 \family default
14322  provides specific commands for starting new foils and these are:
14323 \end_layout
14324
14325 \begin_layout Itemize
14326
14327 \family sans
14328 Foilhead
14329 \end_layout
14330
14331 \begin_layout Itemize
14332
14333 \family sans
14334 Rotatefoilhead
14335 \end_layout
14336
14337 \begin_layout Standard
14338 \SpecialChar LyX
14339  also provides slightly modified versions of these two environments called:
14340 \end_layout
14341
14342 \begin_layout Itemize
14343
14344 \family sans
14345 ShortFoilhead
14346 \end_layout
14347
14348 \begin_layout Itemize
14349
14350 \family sans
14351 ShortRotatefoilhead
14352 \end_layout
14353
14354 \begin_layout Standard
14355 and the differences will be explained in the next section.
14356 \end_layout
14357
14358 \begin_layout Standard
14359 Since foils are often used in presenting ideas or new theorems and such
14360  
14361 \family sans
14362 Foil\SpecialChar TeX
14363
14364 \family default
14365  also provides a comprehensive box of goodies for presenting them:
14366 \end_layout
14367
14368 \begin_layout Standard
14369 \begin_inset Flex Multiple Columns
14370 status open
14371
14372 \begin_layout Itemize
14373
14374 \family sans
14375 Theorem
14376 \end_layout
14377
14378 \begin_layout Itemize
14379
14380 \family sans
14381 Lemma
14382 \end_layout
14383
14384 \begin_layout Itemize
14385
14386 \family sans
14387 Corollary
14388 \end_layout
14389
14390 \begin_layout Itemize
14391
14392 \family sans
14393 Proposition
14394 \end_layout
14395
14396 \begin_layout Itemize
14397
14398 \family sans
14399 Definition
14400 \end_layout
14401
14402 \begin_layout Itemize
14403
14404 \family sans
14405 Proof
14406 \end_layout
14407
14408 \begin_layout Itemize
14409
14410 \family sans
14411 Theorem*
14412 \end_layout
14413
14414 \begin_layout Itemize
14415
14416 \family sans
14417 Lemma*
14418 \end_layout
14419
14420 \begin_layout Itemize
14421
14422 \family sans
14423 Corollary*
14424 \end_layout
14425
14426 \begin_layout Itemize
14427
14428 \family sans
14429 Proposition*
14430 \end_layout
14431
14432 \begin_layout Itemize
14433
14434 \family sans
14435 Definition*
14436 \end_layout
14437
14438 \end_inset
14439
14440
14441 \end_layout
14442
14443 \begin_layout Standard
14444 The starred versions are unnumbered while the unstarred versions are numbered.
14445  There are also two list environments added by \SpecialChar LyX
14446  and these are:
14447 \end_layout
14448
14449 \begin_layout Itemize
14450
14451 \family sans
14452 TickList
14453 \end_layout
14454
14455 \begin_layout Itemize
14456
14457 \family sans
14458 CrossList
14459 \end_layout
14460
14461 \begin_layout Standard
14462
14463 \family sans
14464 Foil\SpecialChar TeX
14465
14466 \family default
14467  provides some powerful header and footer capabilities that are best set
14468  in the preamble although they may be set at any point in a document.
14469  If you want to change these settings in your document the best place to
14470  do so is at the very top of a foil, i.
14471 \begin_inset space \thinspace{}
14472 \end_inset
14473
14474 e.
14475 \emph on
14476
14477 \begin_inset space \space{}
14478 \end_inset
14479
14480
14481 \emph default
14482 straight after the foilhead.
14483 \end_layout
14484
14485 \begin_layout Standard
14486 For this purpose, the following command styles are provided [
14487 \shape smallcaps
14488 Martin Vermeer
14489 \shape default
14490 ]:
14491 \end_layout
14492
14493 \begin_layout Standard
14494 \begin_inset Flex Multiple Columns
14495 status open
14496
14497 \begin_layout Itemize
14498
14499 \family sans
14500 My
14501 \begin_inset space ~
14502 \end_inset
14503
14504 Logo
14505 \end_layout
14506
14507 \begin_layout Itemize
14508
14509 \family sans
14510 Restriction
14511 \end_layout
14512
14513 \begin_layout Itemize
14514
14515 \family sans
14516 Right
14517 \begin_inset space ~
14518 \end_inset
14519
14520 Footer
14521 \end_layout
14522
14523 \begin_layout Itemize
14524
14525 \family sans
14526 Right
14527 \begin_inset space ~
14528 \end_inset
14529
14530 Header
14531 \end_layout
14532
14533 \begin_layout Itemize
14534
14535 \family sans
14536 Left
14537 \begin_inset space ~
14538 \end_inset
14539
14540 Header
14541 \end_layout
14542
14543 \begin_deeper
14544 \begin_layout Plain Layout
14545 \begin_inset space ~
14546 \end_inset
14547
14548
14549 \end_layout
14550
14551 \end_deeper
14552 \end_inset
14553
14554
14555 \end_layout
14556
14557 \begin_layout Standard
14558 There are also a few commands provided by 
14559 \family sans
14560 Foil\SpecialChar TeX
14561
14562 \family default
14563  that aren't directly supported by \SpecialChar LyX
14564  but I'll tell you what they do and how
14565  to use them in section
14566 \begin_inset space ~
14567 \end_inset
14568
14569
14570 \begin_inset CommandInset ref
14571 LatexCommand ref
14572 reference "sec:unsuppfoils"
14573
14574 \end_inset
14575
14576 .
14577 \end_layout
14578
14579 \begin_layout Subsection
14580 Building a Set of Foils
14581 \end_layout
14582
14583 \begin_layout Standard
14584 This section will give a simple introduction to using the different environments
14585  to build a set of foils.
14586  If you want to see an example set of foils, take a look at the 
14587 \family typewriter
14588 Foils.lyx
14589 \family default
14590  file you find in \SpecialChar LyX
14591 's 
14592 \family typewriter
14593 examples
14594 \family default
14595  folder.
14596 \end_layout
14597
14598 \begin_layout Subsubsection
14599 Give It a Title Page
14600 \end_layout
14601
14602 \begin_layout Standard
14603 Unlike other classes that provide 
14604 \family sans
14605 Title
14606 \family default
14607
14608 \family sans
14609 Author
14610 \family default
14611
14612 \family sans
14613 Date
14614 \family default
14615  and 
14616 \family sans
14617 Abstract
14618 \family default
14619  environments, 
14620 \family sans
14621 foils
14622 \family default
14623  creates the title on a page of its own.
14624  If you leave out the 
14625 \family sans
14626 Date
14627 \family default
14628  environment \SpecialChar LaTeX
14629  will substitute the current date (every time you regenerate
14630  the output).
14631 \end_layout
14632
14633 \begin_layout Subsubsection
14634 Start a New Foil
14635 \end_layout
14636
14637 \begin_layout Standard
14638 As I mentioned earlier, there are four ways of starting a new foil.
14639  For portrait foils you should use 
14640 \family sans
14641 Foilhead
14642 \family default
14643  or 
14644 \family sans
14645 ShortFoilhead.
14646
14647 \family default
14648  The difference between these two environments is the amount of space between
14649  the title of the foil (the foilhead) and the body of the foil.
14650 \end_layout
14651
14652 \begin_layout Standard
14653 Landscape foils are generated using the 
14654 \family sans
14655 Rotatefoilhead
14656 \family default
14657  and 
14658 \family sans
14659 ShortRotatefoilhead
14660 \family default
14661  environments.
14662  Again the only difference is the spacing between foilhead and body.
14663  Both of the short versions have 0.5
14664 \begin_inset space ~
14665 \end_inset
14666
14667 inches less separation between the foilhead and the body.
14668  
14669 \end_layout
14670
14671 \begin_layout Standard
14672 One problem with the support for landscape foils is the requirement that
14673  you have to use the 
14674 \family typewriter
14675 dvips
14676 \family default
14677  driver to generate the PostScript output otherwise the foils won't be rotated.
14678  It is possible to get landscape foils even if you haven't got the 
14679 \family typewriter
14680 dvips
14681 \family default
14682  driver provided you can feed your foils sideways through your printer ;-)
14683 \end_layout
14684
14685 \begin_layout Subsubsection
14686 Theorems, Lemmas, Proofs and more
14687 \end_layout
14688
14689 \begin_layout Standard
14690 You can't have two of the same type of these environments directly following
14691  each other.
14692  If you use a normal paragraph break, , you will just be extending the previous
14693  environment as if you had merged the two environments together.
14694  Rather than that, you need to insert a so-called separator.
14695  Please refer to the section entitled 
14696 \emph on
14697 Separate Nestings
14698 \emph default
14699  in the 
14700 \emph on
14701 User's Guide
14702 \emph default
14703 .
14704 \end_layout
14705
14706 \begin_layout Subsubsection
14707 Lists
14708 \end_layout
14709
14710 \begin_layout Standard
14711 You get all the commonly supported list styles found in other classes as
14712  well as two new ones.
14713  I'll only describe the new ones here.
14714  If you want to find out more about the other list environments check out
14715  the 
14716 \emph on
14717 User's Guide.
14718
14719 \emph default
14720  If you intend to use itemized lists you might also want to read about the
14721  
14722 \family sans
14723 Itemize
14724 \begin_inset space ~
14725 \end_inset
14726
14727 Bullet
14728 \begin_inset space ~
14729 \end_inset
14730
14731 Selection
14732 \family default
14733  dialog described above in section
14734 \begin_inset space ~
14735 \end_inset
14736
14737
14738 \begin_inset CommandInset ref
14739 LatexCommand ref
14740 reference "sec:bullet"
14741
14742 \end_inset
14743
14744 .
14745 \end_layout
14746
14747 \begin_layout Standard
14748 The two new list styles, 
14749 \family sans
14750 TickList
14751 \family default
14752  and 
14753 \family sans
14754 CrossList
14755 \family default
14756 , are designed to make it easier for you to create lists of do's and don'ts
14757  or right and wrong by providing dedicated environments that use a tick
14758  or a cross as the label of the list.
14759  These lists are in fact dedicated variants of the 
14760 \family sans
14761 Itemize
14762 \family default
14763  environment.
14764  They do however require that you have the 
14765 \family typewriter
14766 psnfss
14767 \family default
14768  packages installed.
14769 \end_layout
14770
14771 \begin_layout Subsubsection
14772 Figures and Tables
14773 \end_layout
14774
14775 \begin_layout Standard
14776
14777 \family sans
14778 Foil\SpecialChar TeX
14779
14780 \family default
14781  redefines the floating tables and figures so that they appear exactly where
14782  they are in the text rather than pushing them to the top of the page or
14783  to some user specified location.
14784  In fact if you change the float placement settings they are simply ignored.
14785 \end_layout
14786
14787 \begin_layout Subsubsection
14788 Page Headers and Footers
14789 \begin_inset CommandInset label
14790 LatexCommand label
14791 name "sec:foilfoot"
14792
14793 \end_inset
14794
14795
14796 \end_layout
14797
14798 \begin_layout Standard
14799
14800 \family sans
14801 My
14802 \begin_inset space ~
14803 \end_inset
14804
14805 Logo
14806 \family default
14807  and 
14808 \family sans
14809 Restriction
14810 \family default
14811  are two commands used to control the left-footer text string.
14812  The first is meant to allow you to include a graphic logo on your foils
14813  and defaults to 
14814 \begin_inset Quotes eld
14815 \end_inset
14816
14817 -Typeset by 
14818 \family sans
14819 Foil\SpecialChar TeX
14820
14821 \family default
14822 -
14823 \begin_inset Quotes erd
14824 \end_inset
14825
14826 .
14827  While the second is meant to provide a classification for the audience,
14828  
14829 \emph on
14830 e.
14831 \begin_inset space \thinspace{}
14832 \end_inset
14833
14834 g.
14835 \emph default
14836
14837 \begin_inset space \space{}
14838 \end_inset
14839
14840 Confidential.
14841  It is empty by default.
14842 \end_layout
14843
14844 \begin_layout Standard
14845 The remaining page corners can be filled by 
14846 \family sans
14847 Right
14848 \begin_inset space ~
14849 \end_inset
14850
14851 Footer
14852 \family default
14853  (which defaults to page numbers), 
14854 \family sans
14855 Right
14856 \begin_inset space ~
14857 \end_inset
14858
14859 Header
14860 \family default
14861  (top right) and 
14862 \family sans
14863 Left
14864 \begin_inset space ~
14865 \end_inset
14866
14867 Header
14868 \family default
14869  (top left).
14870 \end_layout
14871
14872 \begin_layout Subsection
14873 Unsupported 
14874 \family sans
14875 Foil\SpecialChar TeX
14876
14877 \family default
14878  Goodies
14879 \begin_inset CommandInset label
14880 LatexCommand label
14881 name "sec:unsuppfoils"
14882
14883 \end_inset
14884
14885
14886 \end_layout
14887
14888 \begin_layout Standard
14889 All the commands mentioned below need to be set in a 
14890 \family sans
14891 \SpecialChar LaTeX
14892
14893 \family default
14894  environment or as 
14895 \family sans
14896 \SpecialChar TeX
14897
14898 \family default
14899  within another environment.
14900 \end_layout
14901
14902 \begin_layout Subsubsection
14903 Lengths
14904 \end_layout
14905
14906 \begin_layout Standard
14907 All lengths are adjusted using the 
14908 \family typewriter
14909
14910 \backslash
14911 setlength{
14912 \family default
14913 \emph on
14914 lengthname
14915 \family typewriter
14916 \emph default
14917 }{
14918 \family default
14919 \emph on
14920 newlength
14921 \family typewriter
14922 \emph default
14923 }
14924 \family default
14925  command.
14926  Where 
14927 \emph on
14928 lengthname
14929 \emph default
14930  should be replaced by the name given to the length you want to change and
14931  
14932 \emph on
14933 newlength
14934 \emph default
14935  is the length value.
14936  All lengths should be specified in units of length such as inches (
14937 \family typewriter
14938 in
14939 \family default
14940 ), millimeters (
14941 \family typewriter
14942 mm
14943 \family default
14944 ) or points (
14945 \family typewriter
14946 pt
14947 \family default
14948 ) or relative to some document or font-based length such as 
14949 \family typewriter
14950
14951 \backslash
14952 textwidth
14953 \family default
14954 .
14955  
14956 \end_layout
14957
14958 \begin_layout Standard
14959 It's possible to change the spacing between a foilhead and the body of the
14960  foil by adjusting the length specified by 
14961 \family typewriter
14962
14963 \backslash
14964 foilheadskip
14965 \family default
14966 .
14967  For example, to make 
14968 \emph on
14969 all
14970 \emph default
14971  foilheads 0.5
14972 \begin_inset space \space{}
14973 \end_inset
14974
14975 in closer to their bodies put the following in the preamble: 
14976 \family typewriter
14977
14978 \backslash
14979 setlength{
14980 \backslash
14981 foilheadskip}{-0.5in}
14982 \end_layout
14983
14984 \begin_layout Standard
14985 The spacings around floats can be adjusted by setting these lengths:
14986 \end_layout
14987
14988 \begin_layout Labeling
14989 \labelwidthstring MMMMMMMMMMM
14990
14991 \family typewriter
14992
14993 \backslash
14994 abovefloatskip
14995 \family default
14996  Separation between the text and the top of the float
14997 \end_layout
14998
14999 \begin_layout Labeling
15000 \labelwidthstring MMMMMMMMMMM
15001
15002 \family typewriter
15003
15004 \backslash
15005 abovecaptionskip
15006 \family default
15007  Separation between the float and the caption
15008 \end_layout
15009
15010 \begin_layout Labeling
15011 \labelwidthstring MMMMMMMMMMM
15012
15013 \family typewriter
15014
15015 \backslash
15016 belowcaptionskip
15017 \family default
15018  Separation between the caption and the following text
15019 \end_layout
15020
15021 \begin_layout Labeling
15022 \labelwidthstring MMMMMMMMMMM
15023
15024 \family typewriter
15025
15026 \backslash
15027 captionwidth
15028 \family default
15029  You can make the captions narrower than the surrounding text by adjusting
15030  this length.
15031  Best done relative to 
15032 \family typewriter
15033
15034 \backslash
15035 textwidth
15036 \family default
15037 .
15038 \end_layout
15039
15040 \begin_layout Standard
15041 There are also several title page related lengths that you may find useful
15042  if you have a long title or several authors:
15043 \end_layout
15044
15045 \begin_layout Labeling
15046 \labelwidthstring MMMMMMMMMMM
15047
15048 \family typewriter
15049
15050 \backslash
15051 abovetitleskip
15052 \family default
15053  Separation from headers to 
15054 \family sans
15055 Title
15056 \end_layout
15057
15058 \begin_layout Labeling
15059 \labelwidthstring MMMMMMMMMMM
15060
15061 \family typewriter
15062
15063 \backslash
15064 titleauthorskip
15065 \family default
15066  between 
15067 \family sans
15068 Title
15069 \family default
15070  and 
15071 \family sans
15072 Author
15073 \family default
15074  environments
15075 \end_layout
15076
15077 \begin_layout Labeling
15078 \labelwidthstring MMMMMMMMMMM
15079
15080 \family typewriter
15081
15082 \backslash
15083 authorauthorskip
15084 \family default
15085  between multiple 
15086 \family sans
15087 Author
15088 \family default
15089  lines
15090 \end_layout
15091
15092 \begin_layout Labeling
15093 \labelwidthstring MMMMMMMMMMM
15094
15095 \family typewriter
15096
15097 \backslash
15098 authordateskip
15099 \family default
15100  between the 
15101 \family sans
15102 Author
15103 \family default
15104  and the 
15105 \family sans
15106 Date
15107 \end_layout
15108
15109 \begin_layout Labeling
15110 \labelwidthstring MMMMMMMMMMM
15111
15112 \family typewriter
15113
15114 \backslash
15115 dateabstractskip
15116 \family default
15117  between the 
15118 \family sans
15119 Date
15120 \family default
15121  and the 
15122 \family sans
15123 Abstract
15124 \end_layout
15125
15126 \begin_layout Standard
15127 The last length related command affects all the list environments.
15128  If you place 
15129 \family typewriter
15130
15131 \backslash
15132 zerolistvertdimens
15133 \family default
15134  
15135 \emph on
15136 inside
15137 \emph default
15138  a list environment then all the vertical spacing between the list items
15139  is removed.
15140  Note that this is a command not a length so it doesn't require 
15141 \family typewriter
15142
15143 \backslash
15144 setlength
15145 \family default
15146  like the stuff mentioned above.
15147 \end_layout
15148
15149 \begin_layout Subsubsection
15150 Headers and Footers
15151 \end_layout
15152
15153 \begin_layout Standard
15154 The 
15155 \family typewriter
15156
15157 \backslash
15158 LogoOn
15159 \family default
15160  and 
15161 \family typewriter
15162
15163 \backslash
15164 LogoOff
15165 \family default
15166  commands control whether the logo in the 
15167 \family sans
15168 MyLogo
15169 \family default
15170  definition appear on a given page.
15171  If you put 
15172 \family typewriter
15173
15174 \backslash
15175 LogoOff
15176 \family default
15177  in the preamble then none of the foils will have the logo on them.
15178  If you don't want the logo on a particular page place the 
15179 \family typewriter
15180
15181 \backslash
15182 LogoOff
15183 \family default
15184  directly after the foilhead of that page and the 
15185 \family typewriter
15186
15187 \backslash
15188 LogoOn
15189 \family default
15190  directly after the next foilhead.
15191 \end_layout
15192
15193 \begin_layout Standard
15194 If you decide to use the 
15195 \family sans
15196 fancy
15197 \family default
15198  page style setting in the 
15199 \family sans
15200 Document
15201 \begin_inset space ~
15202 \end_inset
15203
15204 Layout
15205 \family default
15206  dialog you should probably add 
15207 \family typewriter
15208
15209 \backslash
15210 let
15211 \backslash
15212 headwidth
15213 \backslash
15214 textwidth
15215 \family default
15216  to your preamble so headers and footers on landscape pages are correctly
15217  placed when rotated.
15218  This is due to some clashes between the page layouts provided by the 
15219 \family sans
15220 fancyheadings
15221 \family default
15222  package and the 
15223 \family sans
15224 foils
15225 \family default
15226  class.
15227 \end_layout
15228
15229 \begin_layout Section
15230
15231 \change_deleted 564990737 1669755802
15232 ijmpc and ijmpd
15233 \end_layout
15234
15235 \begin_layout Standard
15236
15237 \change_deleted 564990737 1669755802
15238 by 
15239 \noun on
15240 Panayotis Papasotiriou
15241 \end_layout
15242
15243 \begin_layout Subsection
15244
15245 \change_deleted 564990737 1669755802
15246 Overview
15247 \end_layout
15248
15249 \begin_layout Standard
15250
15251 \change_deleted 564990737 1669755802
15252 The ijmpc package is a set of macros that facilitates electronic manuscript
15253  submission to the 
15254 \emph on
15255 International Journal of Modern Physics C
15256 \emph default
15257 .
15258  Similarly, the ijmpd package is for creating manuscripts to be submitted
15259  to the 
15260 \emph on
15261 International Journal of Modern Physics D
15262 \emph default
15263 .
15264  Both journals are published by World Scientific.
15265  The corresponding document classes are named 
15266 \family typewriter
15267 ws-ijmpc.cls
15268 \family default
15269  and 
15270 \family typewriter
15271 ws-ijmpd.cls
15272 \family default
15273 , respectively.
15274  These files, together with instructions for the authors, can be downloaded
15275  from the sites 
15276 \begin_inset Flex URL
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280
15281 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
15282 \end_layout
15283
15284 \end_inset
15285
15286  and 
15287 \begin_inset Flex URL
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291
15292 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
15293 \end_layout
15294
15295 \end_inset
15296
15297 .
15298  Both packages are modified versions of the standard 
15299 \begin_inset Quotes eld
15300 \end_inset
15301
15302 article
15303 \begin_inset Quotes erd
15304 \end_inset
15305
15306  package, and they are almost (but not exactly) identical.
15307  Most of their features are supported by \SpecialChar LyX
15308 .
15309  I have used \SpecialChar LyX
15310  successfully to write articles submitted to both journals
15311  without any problem.
15312 \end_layout
15313
15314 \begin_layout Subsection
15315
15316 \change_deleted 564990737 1669755802
15317 Writing a paper
15318 \end_layout
15319
15320 \begin_layout Standard
15321
15322 \change_deleted 564990737 1669755802
15323 As usual, the easiest way to write a paper is to start with a template.
15324  Click on 
15325 \family sans
15326 File\SpecialChar menuseparator
15327 New from
15328 \family default
15329  
15330 \family sans
15331 Template
15332 \family default
15333 , then choose the 
15334 \family typewriter
15335 ijmpc.lyx
15336 \family default
15337  or 
15338 \family typewriter
15339 ijmpd.lyx
15340 \family default
15341  template.
15342  This will give an (almost) empty document that includes the most common
15343  fields found in a manuscript.
15344  Simply overwrite the existing text (including the brackets, 
15345 \family typewriter
15346 <>
15347 \family default
15348 ) with your text.
15349  You should keep in mind the following remarks.
15350 \end_layout
15351
15352 \begin_layout Enumerate
15353
15354 \change_deleted 564990737 1669755802
15355 \SpecialChar LyX
15356  won't let you change the font size and the page style of the document,
15357  because such modifications are not allowed by both packages.
15358 \end_layout
15359
15360 \begin_layout Enumerate
15361
15362 \change_deleted 564990737 1669755802
15363 The language of the document should not be changed.
15364  Before previewing your paper, be sure that the babel package is not used.
15365  To do this, click on 
15366 \begin_inset Info
15367 type  "menu"
15368 arg   "dialog-show document"
15369 \end_inset
15370
15371  
15372 \family sans
15373 \SpecialChar menuseparator
15374 Language
15375 \family default
15376 , and select 
15377 \begin_inset Quotes eld
15378 \end_inset
15379
15380 None
15381 \begin_inset Quotes erd
15382 \end_inset
15383
15384  as 
15385 \family sans
15386 Language Package
15387 \family default
15388 .
15389 \end_layout
15390
15391 \begin_layout Enumerate
15392
15393 \change_deleted 564990737 1669755802
15394 The 
15395 \begin_inset Quotes eld
15396 \end_inset
15397
15398 Keywords
15399 \begin_inset Quotes erd
15400 \end_inset
15401
15402  style must be used to define keywords.
15403 \end_layout
15404
15405 \begin_layout Enumerate
15406
15407 \change_deleted 564990737 1669755802
15408 The ijmpc package provides a style named 
15409 \begin_inset Quotes eld
15410 \end_inset
15411
15412 Classification Codes
15413 \begin_inset Quotes erd
15414 \end_inset
15415
15416 , which can be used to define classification codes, such as PACS numbers.
15417  Note that this facility is not supported by the ijmpd package.
15418 \end_layout
15419
15420 \begin_layout Enumerate
15421
15422 \change_deleted 564990737 1669755802
15423 Several new environments are available: 
15424 \begin_inset Quotes eld
15425 \end_inset
15426
15427 Definition
15428 \begin_inset Quotes erd
15429 \end_inset
15430
15431
15432 \begin_inset Quotes eld
15433 \end_inset
15434
15435 Step
15436 \begin_inset Quotes erd
15437 \end_inset
15438
15439
15440 \begin_inset Quotes eld
15441 \end_inset
15442
15443 Example
15444 \begin_inset Quotes erd
15445 \end_inset
15446
15447
15448 \begin_inset Quotes eld
15449 \end_inset
15450
15451 Remark
15452 \begin_inset Quotes erd
15453 \end_inset
15454
15455
15456 \begin_inset Quotes eld
15457 \end_inset
15458
15459 Notation
15460 \begin_inset Quotes erd
15461 \end_inset
15462
15463
15464 \begin_inset Quotes eld
15465 \end_inset
15466
15467 Theorem
15468 \begin_inset Quotes erd
15469 \end_inset
15470
15471
15472 \begin_inset Quotes eld
15473 \end_inset
15474
15475 Proof
15476 \begin_inset Quotes erd
15477 \end_inset
15478
15479
15480 \begin_inset Quotes eld
15481 \end_inset
15482
15483 Corollary
15484 \begin_inset Quotes erd
15485 \end_inset
15486
15487
15488 \begin_inset Quotes eld
15489 \end_inset
15490
15491 Lemma
15492 \begin_inset Quotes erd
15493 \end_inset
15494
15495
15496 \begin_inset Quotes eld
15497 \end_inset
15498
15499 Proposition
15500 \begin_inset Quotes erd
15501 \end_inset
15502
15503
15504 \begin_inset Quotes eld
15505 \end_inset
15506
15507 Prop
15508 \begin_inset Quotes erd
15509 \end_inset
15510
15511
15512 \begin_inset Quotes eld
15513 \end_inset
15514
15515 Question
15516 \begin_inset Quotes erd
15517 \end_inset
15518
15519
15520 \begin_inset Quotes eld
15521 \end_inset
15522
15523 Claim
15524 \begin_inset Quotes erd
15525 \end_inset
15526
15527 , and 
15528 \begin_inset Quotes eld
15529 \end_inset
15530
15531 Conjecture
15532 \begin_inset Quotes erd
15533 \end_inset
15534
15535 .
15536  Their use is more or less obvious.
15537  \SpecialChar LyX
15538  supports all these environments; it will use the proper label, text style,
15539  and numbering scheme for each of them.
15540 \end_layout
15541
15542 \begin_layout Enumerate
15543
15544 \change_deleted 564990737 1669755802
15545 Both packages use basic citations; the natbib package should not be used.
15546  In \SpecialChar LyX
15547 , citation references are shown as usual; in the output, citations are
15548  shown as superscripts.
15549  If you want to use a citation as normal text, you should use the 
15550 \family typewriter
15551 refcite
15552 \family default
15553  command, e.
15554 \begin_inset space \thinspace{}
15555 \end_inset
15556
15557 g.
15558 \begin_inset space \space{}
15559 \end_inset
15560
15561
15562 \begin_inset Quotes eld
15563 \end_inset
15564
15565 See Ref.
15566 \begin_inset space \space{}
15567 \end_inset
15568
15569
15570 \family typewriter
15571
15572 \backslash
15573 refcite{key}
15574 \family default
15575
15576 \begin_inset Quotes erd
15577 \end_inset
15578
15579 .
15580 \end_layout
15581
15582 \begin_layout Enumerate
15583
15584 \change_deleted 564990737 1669755802
15585 There is no 
15586 \begin_inset Quotes eld
15587 \end_inset
15588
15589 Acknowledgments
15590 \begin_inset Quotes erd
15591 \end_inset
15592
15593  section in both packages.
15594  To put acknowledgments, just use the 
15595 \begin_inset Quotes eld
15596 \end_inset
15597
15598 Section*
15599 \begin_inset Quotes erd
15600 \end_inset
15601
15602  environment.
15603 \end_layout
15604
15605 \begin_layout Enumerate
15606
15607 \change_deleted 564990737 1669755802
15608 Appendices may be added to the paper, 
15609 \emph on
15610 after
15611 \emph default
15612  the Acknowledgments and 
15613 \shape italic
15614 before
15615 \shape default
15616  the References.
15617  \SpecialChar LyX
15618  provides a special environment, called 
15619 \begin_inset Quotes eld
15620 \end_inset
15621
15622 Appendices Section
15623 \begin_inset Quotes erd
15624 \end_inset
15625
15626  which marks the beginning of the appendices.
15627  This environment should be left blank; it just sends a \SpecialChar LaTeX
15628  command, but nothing
15629  is really printed.
15630  In \SpecialChar LyX
15631 , the word 
15632 \begin_inset Quotes eld
15633 \end_inset
15634
15635 Appendix
15636 \begin_inset Quotes erd
15637 \end_inset
15638
15639  is printed with blue letters, as a signal that all sections after that
15640  point are appendices.
15641  To write an appendix, use the 
15642 \begin_inset Quotes eld
15643 \end_inset
15644
15645 Appendix
15646 \begin_inset Quotes erd
15647 \end_inset
15648
15649  environment.
15650  \SpecialChar LyX
15651  will number each appendix with capital letters, as required by both journals.
15652  Note that 
15653 \begin_inset Quotes eld
15654 \end_inset
15655
15656 Appendices Section
15657 \begin_inset Quotes erd
15658 \end_inset
15659
15660  
15661 \emph on
15662 must
15663 \emph default
15664  be present before the first appendix; if not, all appendices will be numbered
15665  as normal sections in the output.
15666 \end_layout
15667
15668 \begin_layout Enumerate
15669
15670 \change_deleted 564990737 1669755802
15671 The ijmpc and the ijmpd packages use the 
15672 \family typewriter
15673 tbl
15674 \family default
15675  command to implement table captions.
15676  As a result, a table created by \SpecialChar LyX
15677  is printed correctly, but its caption
15678  is ignored.
15679  However, you can use some \SpecialChar TeX
15680  code to overcome this problem, so that captions
15681  are printed as expected.
15682  To do so, create a float table as usual, remove the caption, and replace
15683  it with the \SpecialChar TeX
15684  code 
15685 \family typewriter
15686
15687 \backslash
15688 tbl{
15689 \emph on
15690 your table caption
15691 \emph default
15692 }{
15693 \family default
15694  (sic); you must also the \SpecialChar TeX
15695  code 
15696 \family typewriter
15697 }
15698 \family default
15699  immediately after the tabular material.
15700  Study the example table included in the template files to see how this
15701  trick is implemented.
15702  Alternatively, If you need table captions, you should implement the whole
15703  table float in a 
15704 \family typewriter
15705 .tex
15706 \family default
15707  file, then include this file to the \SpecialChar LyX
15708  document (
15709 \family sans
15710 Insert\SpecialChar menuseparator
15711 File\SpecialChar menuseparator
15712 Child
15713 \begin_inset space ~
15714 \end_inset
15715
15716 Document
15717 \family default
15718 ).
15719  Details on how to create a table float can be found in the files 
15720 \family typewriter
15721 ws-ijmpc.tex
15722 \family default
15723  and 
15724 \family typewriter
15725 ws-ijmpd.tex
15726 \family default
15727 , included in the corresponding packages.
15728 \end_layout
15729
15730 \begin_layout Subsection
15731
15732 \change_deleted 564990737 1669755802
15733 Preparing a paper for submission
15734 \end_layout
15735
15736 \begin_layout Standard
15737
15738 \change_deleted 564990737 1669755802
15739 Before you submit your paper you must export the \SpecialChar LyX
15740  document as a \SpecialChar LaTeX
15741  file (
15742 \family sans
15743 File\SpecialChar menuseparator
15744 Export\SpecialChar menuseparator
15745 \SpecialChar LaTeX
15746
15747 \family default
15748 )
15749 \begin_inset Foot
15750 status open
15751
15752 \begin_layout Plain Layout
15753 Actually you have the choice between \SpecialChar LaTeX
15754  (plain) and pdflatex.
15755  If you intend to use pdflatex to prepare the paper, you should use the
15756  pdflatex option so that included graphics are converted to PDF format,
15757  ready for use by pdflatex.
15758 \end_layout
15759
15760 \end_inset
15761
15762 , then make the following changes to the resulting 
15763 \family typewriter
15764 .tex
15765 \family default
15766  file.
15767 \end_layout
15768
15769 \begin_layout Enumerate
15770
15771 \change_deleted 564990737 1669755802
15772 Remove the comment lines before the 
15773 \family typewriter
15774
15775 \backslash
15776 documentclass
15777 \family default
15778  command.
15779 \end_layout
15780
15781 \begin_layout Enumerate
15782
15783 \change_deleted 564990737 1669755802
15784 Remove everything between (and including) the 
15785 \family typewriter
15786
15787 \backslash
15788 makeatletter
15789 \family default
15790  and 
15791 \family typewriter
15792
15793 \backslash
15794 makeatother
15795 \family default
15796  commands, except for any commands you specifically put into the \SpecialChar LaTeX
15797  preamble.
15798 \end_layout
15799
15800 \begin_layout Standard
15801
15802 \change_deleted 564990737 1669755802
15803 The modified 
15804 \family typewriter
15805 .tex
15806 \family default
15807  file should be saved and processed through \SpecialChar LaTeX
15808  as many times as necessary.
15809  You may also want to check the resulting 
15810 \family typewriter
15811 .dvi
15812 \family default
15813  document.
15814 \change_unchanged
15815
15816 \end_layout
15817
15818 \begin_layout Section
15819
15820 \change_deleted 564990737 1669801478
15821 iopart
15822 \end_layout
15823
15824 \begin_layout Standard
15825
15826 \change_deleted 564990737 1669801478
15827 by 
15828 \noun on
15829 Uwe Stöhr
15830 \end_layout
15831
15832 \begin_layout Subsection
15833
15834 \change_deleted 564990737 1669801478
15835 Overview
15836 \end_layout
15837
15838 \begin_layout Standard
15839
15840 \change_deleted 564990737 1669801478
15841 The iopart package provides a document class to create electronic manuscript
15842  submission to the journals published by the Institute of Physics.
15843  Instructions for the authors how to create a paper using the iopart class
15844  can be downloaded together with the iopart package from the site 
15845 \begin_inset Flex URL
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849
15850 ftp://ftp.iop.org/pub/journals/latex2e
15851 \end_layout
15852
15853 \end_inset
15854
15855 .
15856 \end_layout
15857
15858 \begin_layout Subsection
15859
15860 \change_deleted 564990737 1669801478
15861 Writing a paper
15862 \end_layout
15863
15864 \begin_layout Standard
15865
15866 \change_deleted 564990737 1669801478
15867 The easiest way to write a paper is to start with the template 
15868 \emph on
15869 IOP-article.lyx
15870 \emph default
15871  that is available via 
15872 \family sans
15873 File\SpecialChar menuseparator
15874 New From Template
15875 \family default
15876  The template explains how to use the special text environments.
15877  Here are the most important advices:
15878 \end_layout
15879
15880 \begin_layout Itemize
15881
15882 \change_deleted 564990737 1669801478
15883 To be able to compile your document to a PDF, PS, or DVI, ensure that the
15884  no AMS packages are loaded in 
15885 \family sans
15886 Document\SpecialChar menuseparator
15887 Settings\SpecialChar menuseparator
15888 Math Options
15889 \family default
15890 !
15891 \end_layout
15892
15893 \begin_layout Itemize
15894
15895 \change_deleted 564990737 1669801478
15896
15897 \size normal
15898 The title environment defines the kind of your paper.
15899  So use one of the following environments for the title:
15900 \end_layout
15901
15902 \begin_deeper
15903 \begin_layout Itemize
15904
15905 \change_deleted 564990737 1669801478
15906
15907 \family sans
15908 \size normal
15909 Title
15910 \family default
15911  for a Paper
15912 \end_layout
15913
15914 \begin_layout Itemize
15915
15916 \change_deleted 564990737 1669801478
15917
15918 \family sans
15919 \size normal
15920 Review
15921 \family default
15922  for a Review
15923 \end_layout
15924
15925 \begin_layout Itemize
15926
15927 \change_deleted 564990737 1669801478
15928
15929 \family sans
15930 \size normal
15931 Topical
15932 \family default
15933  for a Topical review
15934 \end_layout
15935
15936 \begin_layout Itemize
15937
15938 \change_deleted 564990737 1669801478
15939
15940 \family sans
15941 \size normal
15942 Comment
15943 \family default
15944  for a Comment
15945 \end_layout
15946
15947 \begin_layout Itemize
15948
15949 \change_deleted 564990737 1669801478
15950
15951 \family sans
15952 \size normal
15953 Note
15954 \family default
15955  for a Note
15956 \end_layout
15957
15958 \begin_layout Itemize
15959
15960 \change_deleted 564990737 1669801478
15961
15962 \family sans
15963 \size normal
15964 Paper
15965 \family default
15966  for a Paper (same as Title)
15967 \end_layout
15968
15969 \begin_layout Itemize
15970
15971 \change_deleted 564990737 1669801478
15972
15973 \family sans
15974 \size normal
15975 Prelim
15976 \family default
15977  for a Preliminary communication
15978 \end_layout
15979
15980 \begin_layout Itemize
15981
15982 \change_deleted 564990737 1669801478
15983
15984 \family sans
15985 \size normal
15986 Rapid
15987 \family default
15988  for a Rapid communication
15989 \end_layout
15990
15991 \begin_layout Itemize
15992
15993 \change_deleted 564990737 1669801478
15994
15995 \family sans
15996 \size normal
15997 Letter
15998 \family default
15999  for a Letter to the editor
16000 \end_layout
16001
16002 \end_deeper
16003 \begin_layout Itemize
16004
16005 \change_deleted 564990737 1669801478
16006
16007 \size normal
16008 All title environments except of 
16009 \family sans
16010 Letter
16011 \family default
16012  can have an optional short title.
16013 \end_layout
16014
16015 \begin_layout Itemize
16016
16017 \change_deleted 564990737 1669801478
16018 There is a general title environment 
16019 \family sans
16020 Article
16021 \family default
16022  which is not directly supported by \SpecialChar LyX
16023 .
16024  This can be used as \SpecialChar TeX
16025  code when your document doesn't fit into one of the
16026  other title types.
16027 \end_layout
16028
16029 \begin_layout Standard
16030
16031 \change_deleted 564990737 1669801478
16032 For more informations like hints for special table and formula formatting,
16033  look at the IOP author guidelines.
16034 \change_unchanged
16035
16036 \end_layout
16037
16038 \begin_layout Section
16039
16040 \change_deleted 564990737 1670317155
16041 Kluwer
16042 \end_layout
16043
16044 \begin_layout Standard
16045
16046 \change_deleted 564990737 1670317155
16047 by 
16048 \noun on
16049 Panayotis Papasotiriou
16050 \end_layout
16051
16052 \begin_layout Subsection
16053
16054 \change_deleted 564990737 1670317155
16055 Overview
16056 \end_layout
16057
16058 \begin_layout Standard
16059
16060 \change_deleted 564990737 1670317155
16061 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
16062  that facilitates electronic manuscript submission to the journals they
16063  publish.
16064  Most known of them (at least in my domain of interest) are 
16065 \emph on
16066 Astrophysics and Space Science
16067 \emph default
16068  and 
16069 \emph on
16070 Solar Physics
16071 \emph default
16072 , but there are many others (see a complete list at 
16073 \begin_inset Flex URL
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077
16078 http://www.wkap.nl/jrnllist.htm/JRNLHOME
16079 \end_layout
16080
16081 \end_inset
16082
16083 ).
16084  The Kluwer package may be downloaded from the site 
16085 \begin_inset Flex URL
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089
16090 http://www.wkap.nl/kaphtml.htm/STYLEFILES
16091 \end_layout
16092
16093 \end_inset
16094
16095 .
16096  A complete user guide is contained in that package (but it can also be
16097  downloaded separately).
16098 \end_layout
16099
16100 \begin_layout Standard
16101
16102 \change_deleted 564990737 1670317155
16103 \SpecialChar LyX
16104  supports many features of the package but not everything.
16105  However, the \SpecialChar TeX
16106  code needed is reduced to some 
16107 \begin_inset Quotes eld
16108 \end_inset
16109
16110 peculiar
16111 \begin_inset Quotes erd
16112 \end_inset
16113
16114  commands of the package (see
16115 \begin_inset space ~
16116 \end_inset
16117
16118
16119 \begin_inset CommandInset ref
16120 LatexCommand ref
16121 reference "subsec:kluwer_peculiarities"
16122
16123 \end_inset
16124
16125 ).
16126  I have recently used \SpecialChar LyX
16127  to write an article submitted to the 
16128 \emph on
16129 Astrophysics and Space Science
16130 \emph default
16131  without any problem.
16132 \end_layout
16133
16134 \begin_layout Subsection
16135
16136 \change_deleted 564990737 1670317155
16137 Writing a paper
16138 \end_layout
16139
16140 \begin_layout Standard
16141
16142 \change_deleted 564990737 1670317155
16143 The easiest way to write a paper is to start with the Kluwer template file.
16144  Click on 
16145 \family sans
16146 File\SpecialChar menuseparator
16147 New from
16148 \family default
16149  
16150 \family sans
16151 Template
16152 \family default
16153 , then choose the 
16154 \family typewriter
16155 kluwer.lyx
16156 \family default
16157  template.
16158  This will give an (almost) empty document that includes the most common
16159  fields found in a manuscript and a short description of their use.
16160  As in most templates, simply overwrite the existing text (including the
16161  brackets, 
16162 \family typewriter
16163 <>
16164 \family default
16165 ) with the correct information.
16166 \end_layout
16167
16168 \begin_layout Subsection
16169
16170 \change_deleted 564990737 1670317155
16171 Preparing a paper for submission
16172 \end_layout
16173
16174 \begin_layout Standard
16175
16176 \change_deleted 564990737 1670317155
16177 As in the AAS\SpecialChar TeX
16178  package, before you submit your paper to a journal you must
16179  
16180 \begin_inset Quotes eld
16181 \end_inset
16182
16183 postprocess
16184 \begin_inset Quotes erd
16185 \end_inset
16186
16187  it as follows.
16188 \end_layout
16189
16190 \begin_layout Enumerate
16191
16192 \change_deleted 564990737 1670317155
16193 Export your paper as a \SpecialChar LaTeX
16194  file.
16195  To do this, click on 
16196 \family sans
16197 File\SpecialChar menuseparator
16198 Export\SpecialChar menuseparator
16199 \SpecialChar LaTeX
16200
16201 \family default
16202 .
16203  
16204 \end_layout
16205
16206 \begin_layout Enumerate
16207
16208 \change_deleted 564990737 1670317155
16209 Edit the resulting 
16210 \family typewriter
16211 .tex
16212 \family default
16213  file with a text editor and make the following changes
16214 \end_layout
16215
16216 \begin_deeper
16217 \begin_layout Enumerate
16218
16219 \change_deleted 564990737 1670317155
16220 remove the comment lines before the 
16221 \family typewriter
16222
16223 \backslash
16224 documentclass
16225 \family default
16226  command,
16227 \end_layout
16228
16229 \begin_layout Enumerate
16230
16231 \change_deleted 564990737 1670317155
16232 remove everything between (and including) the 
16233 \family typewriter
16234
16235 \backslash
16236 makeatletter
16237 \family default
16238  and 
16239 \family typewriter
16240
16241 \backslash
16242 makeatother
16243 \family default
16244  commands, except for any commands you specifically put into the \SpecialChar LaTeX
16245  preamble.
16246 \end_layout
16247
16248 \begin_layout Standard
16249
16250 \change_deleted 564990737 1670317155
16251 Save the resulting 
16252 \family typewriter
16253 .tex
16254 \family default
16255  file.
16256 \end_layout
16257
16258 \end_deeper
16259 \begin_layout Enumerate
16260
16261 \change_deleted 564990737 1670317155
16262 Run the 
16263 \family typewriter
16264 .tex
16265 \family default
16266  file through \SpecialChar LaTeX
16267  as many times as necessary (usually up to three).
16268 \end_layout
16269
16270 \begin_layout Enumerate
16271
16272 \change_deleted 564990737 1670317155
16273 View the resulting 
16274 \family typewriter
16275 .dvi
16276 \family default
16277  document using, e.
16278 \begin_inset space \thinspace{}
16279 \end_inset
16280
16281 g.
16282 \begin_inset space \space{}
16283 \end_inset
16284
16285
16286 \family sans
16287 xdvi
16288 \family default
16289 , and check if everything is OK (it should, if you didn't make any mistake).
16290 \end_layout
16291
16292 \begin_layout Subsection
16293
16294 \change_deleted 564990737 1670317155
16295 \begin_inset Quotes eld
16296 \end_inset
16297
16298 Peculiarities
16299 \begin_inset Quotes erd
16300 \end_inset
16301
16302  of the Kluwer package
16303 \begin_inset CommandInset label
16304 LatexCommand label
16305 name "subsec:kluwer_peculiarities"
16306
16307 \end_inset
16308
16309
16310 \end_layout
16311
16312 \begin_layout Standard
16313
16314 \change_deleted 564990737 1670317155
16315 The Kluwer package has the following 
16316 \begin_inset Quotes eld
16317 \end_inset
16318
16319 peculiarities
16320 \begin_inset Quotes erd
16321 \end_inset
16322
16323 .
16324 \end_layout
16325
16326 \begin_layout Enumerate
16327
16328 \change_deleted 564990737 1670317155
16329 It is possible to write multiple articles in the same \SpecialChar LaTeX
16330  file
16331 \begin_inset Foot
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335 I can't imagine any good reason to do this.
16336 \end_layout
16337
16338 \end_inset
16339
16340 .
16341  Each article must be included in the environment 
16342 \begin_inset Quotes eld
16343 \end_inset
16344
16345 article
16346 \begin_inset Quotes erd
16347 \end_inset
16348
16349 .
16350  Unfortunately, this environment cannot be omitted, even if you write just
16351  one article.
16352  Therefore, each article starts with the command 
16353 \family typewriter
16354
16355 \backslash
16356 begin{article}
16357 \family default
16358  and, obviously, ends with the command 
16359 \family typewriter
16360
16361 \backslash
16362 end{article}
16363 \family default
16364 .
16365  Although this can be implemented in \SpecialChar LyX
16366 , I didn't included it, since it looks
16367  ugly and can confuse the novice user.
16368  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
16369  code (the
16370  well-known 
16371 \begin_inset Quotes eld
16372 \end_inset
16373
16374 \SpecialChar TeX
16375  code
16376 \begin_inset Quotes erd
16377 \end_inset
16378
16379 ).
16380 \end_layout
16381
16382 \begin_layout Enumerate
16383
16384 \change_deleted 564990737 1670317155
16385 Information given at the beginning of the article (i.
16386 \begin_inset space \thinspace{}
16387 \end_inset
16388
16389 e.
16390 \begin_inset space \space{}
16391 \end_inset
16392
16393 title, subtitle, author, institution, running title, running author, abstract
16394  and keywords) must be included in an environment called 
16395 \begin_inset Quotes eld
16396 \end_inset
16397
16398 opening
16399 \begin_inset Quotes erd
16400 \end_inset
16401
16402 .
16403  This is not implemented in \SpecialChar LyX
16404 , so you must enter title, subtitle etc.
16405 \begin_inset space ~
16406 \end_inset
16407
16408 between two \SpecialChar TeX
16409  code lines (
16410 \family typewriter
16411
16412 \backslash
16413 begin{opening}
16414 \family default
16415  and 
16416 \family typewriter
16417
16418 \backslash
16419 end{opening}
16420 \family default
16421 ).
16422 \end_layout
16423
16424 \begin_layout Enumerate
16425
16426 \change_deleted 564990737 1670317155
16427 According to the user manual, the label of each bibliography item must be
16428  written as 
16429 \family typewriter
16430
16431 \backslash
16432 protect
16433 \backslash
16434 citeauthoryear{
16435 \family default
16436 \emph on
16437 author(s)
16438 \family typewriter
16439 \emph default
16440 }{
16441 \family default
16442 \emph on
16443 year
16444 \family typewriter
16445 \emph default
16446 }
16447 \family default
16448 .
16449 \end_layout
16450
16451 \begin_layout Standard
16452
16453 \change_deleted 564990737 1670317155
16454 The 
16455 \family typewriter
16456 kluwer.lyx
16457 \family default
16458  template takes care of all these 
16459 \begin_inset Quotes eld
16460 \end_inset
16461
16462 peculiarities
16463 \begin_inset Quotes erd
16464 \end_inset
16465
16466 .
16467  If you start a new paper using this template you don't need to do anything
16468  special.
16469  Just 
16470 \end_layout
16471
16472 \begin_layout Enumerate
16473
16474 \change_deleted 564990737 1670317155
16475 don't delete the \SpecialChar TeX
16476  code included in the template, and
16477 \end_layout
16478
16479 \begin_layout Enumerate
16480
16481 \change_deleted 564990737 1670317155
16482 copy the example bibliography item included in the template and modify it
16483  as necessary to enter new bibliography items.
16484 \end_layout
16485
16486 \begin_layout Section
16487 Article (mwart), book (mwbk) and report (mwrep)
16488 \begin_inset Argument status
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 The 
16493 \family typewriter
16494 mw
16495 \family default
16496  Classes
16497 \end_layout
16498
16499 \end_inset
16500
16501
16502 \end_layout
16503
16504 \begin_layout Standard
16505 by 
16506 \noun on
16507 Tomasz Luczak
16508 \end_layout
16509
16510 \begin_layout Standard
16511 The \SpecialChar LyX
16512  document classes 
16513 \emph on
16514 article (mwart)
16515 \emph default
16516
16517 \emph on
16518 report (mwrep)
16519 \emph default
16520  and 
16521 \emph on
16522 book
16523 \emph default
16524  
16525 \emph on
16526 (mwbk)
16527 \emph default
16528  correspond to the \SpecialChar LaTeX
16529  document classes 
16530 \family typewriter
16531 mwart.cls
16532 \family default
16533
16534 \family typewriter
16535 mwrep.cls
16536 \family default
16537  and 
16538 \family typewriter
16539 mwbk.cls
16540 \family default
16541 , resp.
16542  They are replacements for the standard document classes 
16543 \family typewriter
16544 article.cls
16545 \family default
16546
16547 \family typewriter
16548 report.cls
16549 \family default
16550  and 
16551 \family typewriter
16552 book.cls
16553 \family default
16554 , resp., and fit better to Polish typography conventions in a number of points.
16555  
16556 \end_layout
16557
16558 \begin_layout Standard
16559 Basic differences:
16560 \end_layout
16561
16562 \begin_layout Itemize
16563 Unnumbered titles (with star, e.
16564 \begin_inset space \thinspace{}
16565 \end_inset
16566
16567 g.
16568 \begin_inset space \space{}
16569 \end_inset
16570
16571
16572 \family sans
16573 Section*
16574 \family default
16575 ) are added into table of contents,
16576 \end_layout
16577
16578 \begin_layout Itemize
16579 Additional page styles:
16580 \end_layout
16581
16582 \begin_deeper
16583 \begin_layout Description
16584 uheadings header with separated lines,
16585 \end_layout
16586
16587 \begin_layout Description
16588 myheadings custom header, contents headers via commands: 
16589 \family typewriter
16590
16591 \backslash
16592 markright
16593 \family default
16594  and 
16595 \family typewriter
16596
16597 \backslash
16598 markboth
16599 \family default
16600 ,
16601 \end_layout
16602
16603 \begin_layout Description
16604 myuheadings custom header with separated lines,
16605 \end_layout
16606
16607 \begin_layout Description
16608 outer page number is placed on outer side of page
16609 \end_layout
16610
16611 \end_deeper
16612 \begin_layout Itemize
16613 Options 
16614 \end_layout
16615
16616 \begin_deeper
16617 \begin_layout Description
16618 rmheadings serif titles — default,
16619 \end_layout
16620
16621 \begin_layout Description
16622 sfheadings sansserif titles,
16623 \end_layout
16624
16625 \begin_layout Description
16626 authortitle on title page first placed is author next title — default,
16627 \end_layout
16628
16629 \begin_layout Description
16630 titleauthor on title page first placed is title next author,
16631 \end_layout
16632
16633 \begin_layout Description
16634 withmarginpar reserve place on page for margins.
16635 \end_layout
16636
16637 \end_deeper
16638 \begin_layout Section
16639 Paper
16640 \end_layout
16641
16642 \begin_layout Standard
16643 The document class 
16644 \family sans
16645 paper
16646 \family default
16647  provides an alternative to the standard 
16648 \family sans
16649 article
16650 \family default
16651  class.
16652  It provides similar functionality, but you might prefer this layout with
16653  sans serif sections, headings, and more.
16654 \end_layout
16655
16656 \begin_layout Section
16657 Rev\SpecialChar TeX
16658 4
16659 \end_layout
16660
16661 \begin_layout Standard
16662 by 
16663 \noun on
16664 Amir Karger
16665 \end_layout
16666
16667 \begin_layout Standard
16668 \begin_inset VSpace bigskip
16669 \end_inset
16670
16671
16672 \end_layout
16673
16674 \begin_layout Standard
16675 \noindent
16676 The 
16677 \family sans
16678 Revtex
16679 \begin_inset space ~
16680 \end_inset
16681
16682 4
16683 \family default
16684  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16685  4.0 (the 
16686 \begin_inset Formula $\beta$
16687 \end_inset
16688
16689  release of May, 1999) class.
16690 \end_layout
16691
16692 \begin_layout Standard
16693 \SpecialChar LyX
16694  has a 
16695 \family sans
16696 Revtex
16697 \family default
16698  textclass, which works with Rev\SpecialChar TeX
16699  3.1.
16700  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16701  2.09.
16702  That means that it doesn't interact very well with \SpecialChar LyX
16703 , which requires \SpecialChar LaTeX2e
16704 , although
16705  it has been kludged to work.
16706  Since Rev\SpecialChar TeX
16707  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16708 , \SpecialChar LyX
16709  with the
16710  
16711 \family sans
16712 Rev\SpecialChar TeX
16713
16714 \begin_inset space ~
16715 \end_inset
16716
16717 4
16718 \family default
16719  textclass should also be pretty easy to use.
16720 \end_layout
16721
16722 \begin_layout Standard
16723 These documents are supposed to be used in 
16724 \emph on
16725 addition
16726 \emph default
16727  to the Rev\SpecialChar TeX
16728  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16729  macros,
16730  and assume you'll know what to put in the preamble if necessary.
16731 \end_layout
16732
16733 \begin_layout Subsection
16734 Installation
16735 \end_layout
16736
16737 \begin_layout Standard
16738 All you need to do is install Rev\SpecialChar TeX
16739  4, as described in the package's README
16740  file.
16741  The package can be found at The Rev\SpecialChar TeX
16742  4 Web Site 
16743 \begin_inset Flex URL
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747
16748 http://publish.aps.org/revtex4/
16749 \end_layout
16750
16751 \end_inset
16752
16753 .
16754  Install it somewhere that \SpecialChar LaTeX
16755  can see it.
16756  Test it by trying to \SpecialChar LaTeX
16757  a short Rev\SpecialChar TeX
16758  4 document in some random directory (i.
16759 \begin_inset space \thinspace{}
16760 \end_inset
16761
16762 e.
16763 \begin_inset space \space{}
16764 \end_inset
16765
16766 not the directory where you installed the class file.) Then, if you reconfigure
16767  \SpecialChar LyX
16768 , it will find the class file and let you use the Rev\SpecialChar TeX
16769 4 textclass.
16770 \end_layout
16771
16772 \begin_layout Standard
16773 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16774  4 document
16775  using 
16776 \family typewriter
16777 tex2lyx
16778 \family default
16779 , or to use the 
16780 \family sans
16781 Revtex
16782 \begin_inset space ~
16783 \end_inset
16784
16785 4
16786 \family default
16787  template, found in the templates directory.
16788 \end_layout
16789
16790 \begin_layout Subsection
16791 Preamble Matter
16792 \end_layout
16793
16794 \begin_layout Standard
16795 Optional arguments to 
16796 \family typewriter
16797
16798 \backslash
16799 documentclass
16800 \family default
16801 , like 
16802 \begin_inset Quotes eld
16803 \end_inset
16804
16805 preprint
16806 \begin_inset Quotes erd
16807 \end_inset
16808
16809  and 
16810 \begin_inset Quotes eld
16811 \end_inset
16812
16813 aps
16814 \begin_inset Quotes erd
16815 \end_inset
16816
16817 , go in the 
16818 \family sans
16819 Extra
16820 \begin_inset space ~
16821 \end_inset
16822
16823 Options
16824 \family default
16825  field in the 
16826 \family sans
16827 Document
16828 \begin_inset space ~
16829 \end_inset
16830
16831 Layout
16832 \family default
16833  dialog, as usual.
16834  Remember that in Rev\SpecialChar TeX
16835 , at least one optional argument is required! 
16836 \end_layout
16837
16838 \begin_layout Standard
16839 Other preamble matter, like 
16840 \family typewriter
16841
16842 \backslash
16843 draft
16844 \family default
16845  etc.
16846 \begin_inset space ~
16847 \end_inset
16848
16849 goes in the 
16850 \family sans
16851 \SpecialChar LaTeX
16852
16853 \begin_inset space ~
16854 \end_inset
16855
16856 Preamble
16857 \family default
16858  dialog, also as usual.
16859 \end_layout
16860
16861 \begin_layout Subsection
16862 Layouts
16863 \end_layout
16864
16865 \begin_layout Standard
16866 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16867 4.0.
16868  For example, the Email layout corresponds to 
16869 \family typewriter
16870
16871 \backslash
16872 email{}
16873 \family default
16874 .
16875  Note that (at least as of Rev\SpecialChar TeX
16876  4.0 Beta), the 
16877 \family sans
16878 Address
16879 \family default
16880  and 
16881 \family sans
16882 Affiliation
16883 \family default
16884  layouts are exactly equivalent, so you shouldn't need to use both.
16885 \begin_inset Foot
16886 status collapsed
16887
16888 \begin_layout Plain Layout
16889 In case you're curious, both were included so that 
16890 \family typewriter
16891 tex2lyx
16892 \family default
16893  would be able to translate both 
16894 \family typewriter
16895
16896 \backslash
16897 address
16898 \family default
16899  and 
16900 \family typewriter
16901
16902 \backslash
16903 affiliation
16904 \family default
16905 .
16906 \end_layout
16907
16908 \end_inset
16909
16910
16911 \end_layout
16912
16913 \begin_layout Subsection
16914 Important Notes
16915 \end_layout
16916
16917 \begin_layout Standard
16918 There are a couple of important unique aspects of Rev\SpecialChar TeX
16919  4 which might cause
16920  bugs that will be even more confusing in \SpecialChar LyX
16921 .
16922 \end_layout
16923
16924 \begin_layout Standard
16925 In Rev\SpecialChar TeX
16926 , the 
16927 \family typewriter
16928
16929 \backslash
16930 thanks
16931 \family default
16932  command goes 
16933 \emph on
16934 outside
16935 \emph default
16936  the 
16937 \family typewriter
16938
16939 \backslash
16940 author
16941 \family default
16942  command.
16943  The \SpecialChar LyX
16944  equivalent is that there is a separate Thanks layout.
16945  Do 
16946 \emph on
16947 not
16948 \emph default
16949  write footnotes in the 
16950 \family sans
16951 Author
16952 \family default
16953  layout, or weird things may happen.
16954  See the Rev\SpecialChar TeX
16955  4 documentation for more details.
16956 \end_layout
16957
16958 \begin_layout Standard
16959 Also, the 
16960 \family sans
16961 Author
16962 \begin_inset space ~
16963 \end_inset
16964
16965 Email
16966 \family default
16967
16968 \family sans
16969 Author
16970 \begin_inset space ~
16971 \end_inset
16972
16973 URL
16974 \family default
16975 , and 
16976 \family sans
16977 Thanks
16978 \family default
16979  layouts must be placed 
16980 \emph on
16981 in between
16982 \emph default
16983  the 
16984 \family sans
16985 Author
16986 \family default
16987  layout and the corresponding 
16988 \family sans
16989 Address
16990 \family default
16991  (or equivalent 
16992 \family sans
16993 Affiliation
16994 \family default
16995 ) layout.
16996  If you put the 
16997 \family sans
16998 Thanks
16999 \family default
17000  after the 
17001 \family sans
17002 Address
17003 \family default
17004 , the \SpecialChar LaTeX
17005  won't compile.
17006 \end_layout
17007
17008 \begin_layout Section
17009 Springer Journals (
17010 \family sans
17011 svjour
17012 \family default
17013 )
17014 \end_layout
17015
17016 \begin_layout Standard
17017 by 
17018 \noun on
17019 Martin Vermeer
17020 \end_layout
17021
17022 \begin_layout Subsection
17023 Description
17024 \end_layout
17025
17026 \begin_layout Standard
17027 These are the layout files for some of the journal formats used by Springer
17028  Verlag and listed on 
17029 \begin_inset Flex URL
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033
17034 http://www.springer.de/author/tex/help-journals.html
17035 \end_layout
17036
17037 \end_inset
17038
17039 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
17040  now!).
17041  It is a modular system: the things common to all journals are implemented
17042  in 
17043 \family typewriter
17044 svjour.inc
17045 \family default
17046 , which journal-specific layout files (such as, e.
17047 \begin_inset space \thinspace{}
17048 \end_inset
17049
17050 g.
17051 \begin_inset space \space{}
17052 \end_inset
17053
17054
17055 \family typewriter
17056 svjog.layout
17057 \family default
17058  for Journal of Geodesy) can include.
17059 \end_layout
17060
17061 \begin_layout Standard
17062 This means that implementing support for any other Springer journal on this
17063  list is as simple as writing your own 
17064 \family typewriter
17065 sv
17066 \family default
17067 <myjournal>
17068 \family typewriter
17069 .layout
17070 \family default
17071  file following the outline given in 
17072 \family typewriter
17073 svjog.layout
17074 \family default
17075 .
17076  
17077 \end_layout
17078
17079 \begin_layout Standard
17080 It is reasonably well tested only for the Journal of Geodesy.
17081  
17082 \family typewriter
17083 svjour
17084 \family default
17085  and 
17086 \family typewriter
17087 svjog
17088 \family default
17089  come with the standard \SpecialChar LyX
17090  distribution.
17091  Install the relevant class file (downloaded from Springer) in a proper
17092  directory, reconfigure \SpecialChar LaTeX
17093  (in the te\SpecialChar TeX
17094  case by running 
17095 \family typewriter
17096 texhash
17097 \family default
17098 , as root if necessary — doesn't \SpecialChar LyX
17099  take care of this?), reconfigure \SpecialChar LyX
17100  and
17101  it should work.
17102 \end_layout
17103
17104 \begin_layout Subsection
17105 New styles
17106 \end_layout
17107
17108 \begin_layout Standard
17109 A large number of theorem-like styles — 
17110 \family sans
17111 Claim, Conjecture,
17112 \family default
17113  
17114 \family sans
17115 \SpecialChar ldots
17116 Theorem
17117 \family default
17118 .
17119 \end_layout
17120
17121 \begin_layout Standard
17122
17123 \family sans
17124 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17125 _Title, Author_Running, Institute,
17126  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17127 \family default
17128 .
17129  See the Springer class file documentation for details.
17130 \end_layout
17131
17132 \begin_layout Subsection
17133 Supported journals
17134 \end_layout
17135
17136 \begin_layout Itemize
17137
17138 \emph on
17139 Journal of Geodesy
17140 \emph default
17141
17142 \family typewriter
17143 svjog.layout
17144 \family default
17145  — Martin Vermeer
17146 \end_layout
17147
17148 \begin_layout Itemize
17149
17150 \emph on
17151 Probability Theory and Related Fields
17152 \emph default
17153
17154 \family typewriter
17155 svprobth.layout
17156 \family default
17157  — Jean-Marc Lasgouttes
17158 \end_layout
17159
17160 \begin_layout Standard
17161 Add your own, it isn't so hard!
17162 \end_layout
17163
17164 \begin_layout Subsection
17165 Credits
17166 \end_layout
17167
17168 \begin_layout Standard
17169 These files are partly based on the older 
17170 \family typewriter
17171 ejour2.layout
17172 \family default
17173 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17174  2.09 style
17175  file from Springer.
17176  All this, and the 
17177 \family typewriter
17178 ejour2
17179 \family default
17180  layout, are now defunct.
17181  Jean-Marc Lasgouttes helped out big in making me find my way around the
17182  \SpecialChar LyX
17183  layout file mechanism.
17184 \end_layout
17185
17186 \begin_layout Subsection
17187 Bugs
17188 \end_layout
17189
17190 \begin_layout Standard
17191 Probably.
17192  But probably less than in the old hacked-\SpecialChar LaTeX
17193  
17194 \family typewriter
17195 ejour2
17196 \family default
17197 .
17198 \end_layout
17199
17200 \begin_layout Section
17201 Slides [aka 
17202 \noun on
17203 Sli\SpecialChar TeX
17204
17205 \noun default
17206 ]
17207 \begin_inset CommandInset label
17208 LatexCommand label
17209 name "sec:slitex"
17210
17211 \end_inset
17212
17213
17214 \end_layout
17215
17216 \begin_layout Standard
17217 by 
17218 \noun on
17219 John Weiss
17220 \noun default
17221  
17222 \end_layout
17223
17224 \begin_layout Subsection
17225 Introduction
17226 \end_layout
17227
17228 \begin_layout Standard
17229 This section describes how to use \SpecialChar LyX
17230  to make slides for overhead projectors.
17231  There are two document classes that can do this: the default slides class
17232  and the 
17233 \family sans
17234 Foil\SpecialChar TeX
17235
17236 \family default
17237  slides class.
17238  This section documents the former.
17239 \end_layout
17240
17241 \begin_layout Standard
17242 I'm going to say this again, nice and clear, so that there's no misunderstanding
17243 :
17244 \end_layout
17245
17246 \begin_layout Standard
17247 \begin_inset VSpace bigskip
17248 \end_inset
17249
17250
17251 \end_layout
17252
17253 \begin_layout Standard
17254 \align center
17255
17256 \size large
17257 This section documents the class 
17258 \begin_inset Quotes eld
17259 \end_inset
17260
17261
17262 \family sans
17263 slides (default)
17264 \family default
17265
17266 \begin_inset Quotes erd
17267 \end_inset
17268
17269  
17270 \emph on
17271 only.
17272 \end_layout
17273
17274 \begin_layout Standard
17275 \begin_inset VSpace bigskip
17276 \end_inset
17277
17278
17279 \end_layout
17280
17281 \begin_layout Standard
17282 If you're looking for the documentation for 
17283 \begin_inset Quotes eld
17284 \end_inset
17285
17286
17287 \family sans
17288 slides (Foil\SpecialChar TeX
17289 )
17290 \family default
17291
17292 \begin_inset Quotes erd
17293 \end_inset
17294
17295 , check out section
17296 \begin_inset space ~
17297 \end_inset
17298
17299
17300 \begin_inset CommandInset ref
17301 LatexCommand ref
17302 reference "sec:foiltex"
17303
17304 \end_inset
17305
17306 .
17307  The 
17308 \family sans
17309 foils
17310 \family default
17311  class [
17312 \begin_inset Quotes eld
17313 \end_inset
17314
17315
17316 \family sans
17317 slides (Foil\SpecialChar TeX
17318 )
17319 \family default
17320
17321 \begin_inset Quotes erd
17322 \end_inset
17323
17324 ] is actually somewhat better than the default 
17325 \family sans
17326 slides
17327 \family default
17328  class,
17329 \begin_inset Foot
17330 status collapsed
17331
17332 \begin_layout Plain Layout
17333 \SpecialChar ldots
17334 or so I've been told repeatedly by its advocates.
17335  Having never used it, I have no idea if this claim is true or not.
17336 \end_layout
17337
17338 \end_inset
17339
17340  which this section documents.
17341 \end_layout
17342
17343 \begin_layout Standard
17344 This class is the \SpecialChar LaTeX2e
17345  improvement of the old 
17346 \noun on
17347 Sli\SpecialChar TeX
17348
17349 \noun default
17350  package.
17351  Every \SpecialChar LaTeX2e
17352  distribution includes this class [which I'll just refer to as 
17353 \begin_inset Quotes eld
17354 \end_inset
17355
17356
17357 \family sans
17358 slides
17359 \family default
17360
17361 \begin_inset Quotes erd
17362 \end_inset
17363
17364  from now on], so you're bound to have it.
17365  As I noted earlier, there are other classes, such as 
17366 \family sans
17367 foils
17368 \family default
17369 , which also produce slides for overhead projectors and do a better job
17370  at it.
17371  However, there are some things which 
17372 \family sans
17373 slides
17374 \family default
17375  can do which the others can't, such as generate overlays.
17376  Read on to learn more!
17377 \end_layout
17378
17379 \begin_layout Subsection
17380 Getting Started
17381 \begin_inset CommandInset label
17382 LatexCommand label
17383 name "sec:slidesetup"
17384
17385 \end_inset
17386
17387
17388 \end_layout
17389
17390 \begin_layout Standard
17391 Obviously, to use this document class, you need to select 
17392 \begin_inset Quotes eld
17393 \end_inset
17394
17395
17396 \family sans
17397 slides (default)
17398 \family default
17399
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403  from the class list in the 
17404 \family sans
17405 Document\SpecialChar menuseparator
17406 Settings
17407 \family default
17408  dialog.
17409  There are some other special things you should know about this class:
17410 \end_layout
17411
17412 \begin_layout Itemize
17413 Don't bother changing the options 
17414 \family sans
17415 Sides and Columns
17416 \family default
17417 .
17418  They're not supported by the 
17419 \family sans
17420 slides
17421 \family default
17422  class, anyways.
17423 \end_layout
17424
17425 \begin_layout Itemize
17426 The option 
17427 \family sans
17428 Page
17429 \begin_inset space ~
17430 \end_inset
17431
17432 style
17433 \family default
17434  behaves a bit differently for this class.
17435  The possible choices and what they do are as follows:
17436 \end_layout
17437
17438 \begin_deeper
17439 \begin_layout Description
17440
17441 \family sans
17442 plain
17443 \family default
17444  The final output contains page numbers in the lower right corner.
17445 \end_layout
17446
17447 \begin_layout Description
17448
17449 \family sans
17450 headings
17451 \family default
17452  Like 
17453 \family sans
17454 plain
17455 \family default
17456 , but also prints out any time markers you've put in.
17457  This is the default.
17458 \end_layout
17459
17460 \begin_layout Description
17461
17462 \family sans
17463 empty
17464 \family default
17465  The final output contains no page numbers, time markers, or alignment markers.
17466 \end_layout
17467
17468 \end_deeper
17469 \begin_layout Itemize
17470 The 
17471 \family sans
17472 slides
17473 \family default
17474  class has an extra option: 
17475 \family typewriter
17476 clock
17477 \family default
17478 .
17479  To use it, put 
17480 \begin_inset Quotes eld
17481 \end_inset
17482
17483
17484 \family typewriter
17485 clock
17486 \family default
17487
17488 \begin_inset Quotes erd
17489 \end_inset
17490
17491  in the extra class options.
17492 \end_layout
17493
17494 \begin_deeper
17495 \begin_layout Standard
17496 Using this options allows you to add time markers to 
17497 \family sans
17498 Note
17499 \family default
17500 s.
17501  See section
17502 \begin_inset space ~
17503 \end_inset
17504
17505
17506 \begin_inset CommandInset ref
17507 LatexCommand ref
17508 reference "sec:slideNote"
17509
17510 \end_inset
17511
17512  for more details.
17513 \end_layout
17514
17515 \end_deeper
17516 \begin_layout Standard
17517 You can also use the template file 
17518 \begin_inset Quotes eld
17519 \end_inset
17520
17521
17522 \family typewriter
17523 slides.lyx
17524 \family default
17525
17526 \begin_inset Quotes erd
17527 \end_inset
17528
17529  to automatically set up a document to use the 
17530 \family sans
17531 slides
17532 \family default
17533  class [using 
17534 \family sans
17535 File\SpecialChar menuseparator
17536 New
17537 \begin_inset space ~
17538 \end_inset
17539
17540 from
17541 \begin_inset space ~
17542 \end_inset
17543
17544 Template
17545 \family default
17546  to open your new document].
17547  The template file also contains some examples of the special paragraph
17548  environments used by this class.
17549  I'll describe those next.
17550 \end_layout
17551
17552 \begin_layout Subsection
17553 Paragraph Environments
17554 \end_layout
17555
17556 \begin_layout Subsubsection
17557 Supported Environments
17558 \end_layout
17559
17560 \begin_layout Standard
17561 The first thing you'll notice when you start up a new 
17562 \family sans
17563 slides
17564 \family default
17565  document is the font size and type: it's the equivalent of the size 
17566 \begin_inset Quotes eld
17567 \end_inset
17568
17569
17570 \family sans
17571 Largest
17572 \family default
17573
17574 \begin_inset Quotes erd
17575 \end_inset
17576
17577  in the 
17578 \family sans
17579 Sans
17580 \begin_inset space ~
17581 \end_inset
17582
17583 Serif
17584 \family default
17585  font.
17586  This is also what's used in the output.
17587  Think of this as a 
17588 \begin_inset Quotes eld
17589 \end_inset
17590
17591 visual cue
17592 \begin_inset Quotes erd
17593 \end_inset
17594
17595  to remind you that this is a slide.
17596  Your final slides will use a larger font; ergo, you'll have less space.
17597  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17598 \end_layout
17599
17600 \begin_layout Standard
17601 The next thing that becomes obvious is the changes to the paragraph environment
17602  pull-down box [at the far-left end of the toolbar].
17603  Most of the paragraph environments you're used to seeing are missing.
17604  There are also five new ones.
17605  That's because the 
17606 \family sans
17607 slides
17608 \family default
17609  class itself only supports certain paragraph environments:
17610 \end_layout
17611
17612 \begin_layout Itemize
17613
17614 \family sans
17615 Standard
17616 \end_layout
17617
17618 \begin_layout Itemize
17619
17620 \family sans
17621 Itemize
17622 \end_layout
17623
17624 \begin_layout Itemize
17625
17626 \family sans
17627 Enumerate
17628 \end_layout
17629
17630 \begin_layout Itemize
17631
17632 \family sans
17633 Description
17634 \end_layout
17635
17636 \begin_layout Itemize
17637
17638 \family sans
17639 List
17640 \end_layout
17641
17642 \begin_layout Itemize
17643
17644 \family sans
17645 Quotation
17646 \end_layout
17647
17648 \begin_layout Itemize
17649
17650 \family sans
17651 Quote
17652 \end_layout
17653
17654 \begin_layout Itemize
17655
17656 \family sans
17657 Verse
17658 \end_layout
17659
17660 \begin_layout Itemize
17661
17662 \family sans
17663 Caption
17664 \end_layout
17665
17666 \begin_layout Itemize
17667
17668 \family sans
17669 \SpecialChar LyX
17670 -Code
17671 \end_layout
17672
17673 \begin_layout Standard
17674 All of the other standard environments, including the section-heading environmen
17675 ts, aren't used in the 
17676 \family sans
17677 slides
17678 \family default
17679  class.
17680 \end_layout
17681
17682 \begin_layout Standard
17683 On the other hand, you'll notice the following new environments:
17684 \end_layout
17685
17686 \begin_layout Itemize
17687
17688 \family sans
17689 Slide
17690 \end_layout
17691
17692 \begin_layout Itemize
17693
17694 \family sans
17695 Overlay
17696 \end_layout
17697
17698 \begin_layout Itemize
17699
17700 \family sans
17701 Note
17702 \end_layout
17703
17704 \begin_layout Itemize
17705
17706 \family sans
17707 InvisibleText
17708 \end_layout
17709
17710 \begin_layout Itemize
17711
17712 \family sans
17713 VisibleText
17714 \end_layout
17715
17716 \begin_layout Standard
17717 These five are kind of quirky, due to a 
17718 \begin_inset Quotes eld
17719 \end_inset
17720
17721 feature
17722 \begin_inset Quotes erd
17723 \end_inset
17724
17725  in \SpecialChar LyX
17726 .
17727  You see, \SpecialChar LyX
17728  doesn't permit you to nest any other paragraph environment into
17729  an empty environment.
17730  Now, that's fine and dandy, but it means that you wouldn't be able to start
17731  a slide with anything except plain text.
17732  To deal with this, I've performed a little 
17733 \begin_inset Quotes eld
17734 \end_inset
17735
17736 \SpecialChar LaTeX
17737  magic.
17738 \begin_inset Quotes erd
17739 \end_inset
17740
17741  
17742 \end_layout
17743
17744 \begin_layout Subsubsection
17745 Quirks of the New Environments
17746 \begin_inset CommandInset label
17747 LatexCommand label
17748 name "sec:slideQuirk"
17749
17750 \end_inset
17751
17752
17753 \end_layout
17754
17755 \begin_layout Standard
17756 All five of the new paragraph environments are somewhat quirky due to inherent
17757  limitiations in the current version of \SpecialChar LyX
17758 .
17759  As I just mentioned, \SpecialChar LyX
17760  forbids environments that begin with another environment.
17761  To get around this, the 
17762 \family sans
17763 Slide
17764 \family default
17765  environment isn't a paragraph environment as described in the 
17766 \emph on
17767 User's Guide
17768 \emph default
17769 .
17770  
17771 \end_layout
17772
17773 \begin_layout Standard
17774 You should consider 
17775 \family sans
17776 Slide
17777 \family default
17778
17779 \family sans
17780 Overlay
17781 \family default
17782 , and 
17783 \family sans
17784 Note
17785 \family default
17786  to be 
17787 \begin_inset Quotes eld
17788 \end_inset
17789
17790 pseudo-environments.
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794  They look like a section heading or a 
17795 \begin_inset Quotes eld
17796 \end_inset
17797
17798
17799 \family sans
17800 Caption
17801 \family default
17802 ,
17803 \begin_inset Quotes erd
17804 \end_inset
17805
17806  but really begin a [and, if necessary, end the previous] paragraph environment.
17807  Likewise, treat 
17808 \family sans
17809 InvisibleText
17810 \family default
17811  and 
17812 \family sans
17813 VisibleText
17814 \family default
17815  as 
17816 \begin_inset Quotes eld
17817 \end_inset
17818
17819 pseudo-commands.
17820 \begin_inset Quotes erd
17821 \end_inset
17822
17823  These two perform some action.
17824 \end_layout
17825
17826 \begin_layout Standard
17827 A common feature of all five environments, 
17828 \family sans
17829 Slide
17830 \family default
17831
17832 \family sans
17833 Overlay
17834 \family default
17835
17836 \family sans
17837 Note
17838 \family default
17839
17840 \family sans
17841 InvisibleText
17842 \family default
17843  and 
17844 \family sans
17845 VisibleText
17846 \family default
17847 , is a rather long-ish label.
17848  The text following this label — ordinarily the contents of the paragraph
17849  environment — is utterly irrelevant for 
17850 \family sans
17851 Slide
17852 \family default
17853
17854 \family sans
17855 Overlay
17856 \family default
17857
17858 \family sans
17859 Note
17860 \family default
17861
17862 \family sans
17863 InvisibleText
17864 \family default
17865  and 
17866 \family sans
17867 VisibleText
17868 \family default
17869 .
17870  \SpecialChar LyX
17871  completely ignores it.
17872  In fact, you can leave these five environments completely empty.
17873  
17874 \end_layout
17875
17876 \begin_layout Standard
17877 While you don't 
17878 \emph on
17879 have
17880 \emph default
17881  to put any text after the rather long-ish label, you might want to.
17882  This could be a short description of the contents of the 
17883 \family sans
17884 Slide
17885 \family default
17886 , for example.
17887  In that case, enter your descriptive comment and hit 
17888 \family sans
17889 Return
17890 \family default
17891  as you normally would.
17892 \end_layout
17893
17894 \begin_layout Standard
17895 If, on the other hand, you don't want to enter any descriptive text, you'll
17896  hit another \SpecialChar LyX
17897  quirk.
17898  \SpecialChar LyX
17899 , like nature, abhors a vacuum, and will not let you start a new paragraph
17900  environment until you put something in the old one.
17901  So, do this:
17902 \end_layout
17903
17904 \begin_layout Itemize
17905 Start entering the text that will 
17906 \emph on
17907 follow
17908 \emph default
17909  the new 
17910 \family sans
17911 Slide
17912 \family default
17913
17914 \family sans
17915 Overlay
17916 \family default
17917
17918 \family sans
17919 Note
17920 \family default
17921
17922 \family sans
17923 InvisibleText
17924 \family default
17925  or 
17926 \family sans
17927 VisibleText
17928 \family default
17929 .
17930  
17931 \end_layout
17932
17933 \begin_layout Itemize
17934 Now move to the beginning of that paragraph.
17935  
17936 \end_layout
17937
17938 \begin_layout Itemize
17939 Next, hit 
17940 \family sans
17941 Return
17942 \family default
17943 .
17944  
17945 \end_layout
17946
17947 \begin_layout Itemize
17948 Finally, change this new, empty paragraph to a 
17949 \family sans
17950 Slide
17951 \family default
17952
17953 \family sans
17954 Overlay
17955 \family default
17956
17957 \family sans
17958 Note
17959 \family default
17960
17961 \family sans
17962 InvisibleText
17963 \family default
17964  or 
17965 \family sans
17966 VisibleText
17967 \family default
17968 .
17969  
17970 \end_layout
17971
17972 \begin_layout Standard
17973 Some future version of \SpecialChar LyX
17974  will, hopefully, resolve this quirkiness\SpecialChar ldots
17975
17976 \end_layout
17977
17978 \begin_layout Subsection
17979 Making a Presentation with 
17980 \family sans
17981 Slide
17982 \family default
17983
17984 \family sans
17985 Overlay
17986 \family default
17987  and 
17988 \family sans
17989 Note
17990 \end_layout
17991
17992 \begin_layout Subsubsection
17993 Using the 
17994 \family sans
17995 Slide
17996 \family default
17997  Environment
17998 \end_layout
17999
18000 \begin_layout Standard
18001 If you're expecting this section to teach you how to actually make a presentatio
18002 n, you'll be sorely disappointed.
18003  Naturally, I'll describe all of the ways the 
18004 \family sans
18005 slides
18006 \family default
18007  class can assist you in preparing the materials for a presentation.
18008  Filling in the contents, however, is up to you.
18009  [Then again, that 
18010 \emph on
18011 is
18012 \emph default
18013  the \SpecialChar LyX
18014  philosophy.]
18015 \end_layout
18016
18017 \begin_layout Standard
18018 Choosing the 
18019 \family sans
18020 Slide
18021 \family default
18022  environment [in the manner described in section
18023 \begin_inset space ~
18024 \end_inset
18025
18026
18027 \begin_inset CommandInset ref
18028 LatexCommand ref
18029 reference "sec:slideQuirk"
18030
18031 \end_inset
18032
18033 ] tells \SpecialChar LyX
18034  to begin a new slide [duh].
18035  The label for this environment/
18036 \begin_inset Quotes erd
18037 \end_inset
18038
18039 pseudo-command
18040 \begin_inset Quotes erd
18041 \end_inset
18042
18043  is an 
18044 \begin_inset Quotes eld
18045 \end_inset
18046
18047 ASCII line,
18048 \begin_inset Quotes erd
18049 \end_inset
18050
18051  in cool blue, followed by the label, 
18052 \begin_inset Quotes eld
18053 \end_inset
18054
18055 NewSlide:
18056 \begin_inset Quotes erd
18057 \end_inset
18058
18059 .
18060  Any text or paragraph environments that follow this one go on the new slide.
18061  It's that simple.
18062 \end_layout
18063
18064 \begin_layout Standard
18065 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18066
18067  (this can be specified in the 
18068 \family sans
18069 Paragraph Layout
18070 \family default
18071  dialog).
18072  In fact, you'll want to, once you finish entering the contents of one slide.
18073  If you've entered more text than can physically fit on a slide, the extra
18074  overflows onto a new slide.
18075  I don't recommend doing this, however, since the overflow slide won't have
18076  any page number on it.
18077  Furthermore, it may interfere with any 
18078 \family sans
18079 Overlay
18080 \family default
18081  you've made to accompany the oversized 
18082 \family sans
18083 Slide
18084 \family default
18085 .
18086 \end_layout
18087
18088 \begin_layout Standard
18089 The 
18090 \family sans
18091 Overlay
18092 \family default
18093  and 
18094 \family sans
18095 Note
18096 \family default
18097  environments work the same way as the 
18098 \family sans
18099 Slide
18100 \family default
18101  environment.
18102  They both create an 
18103 \begin_inset Quotes eld
18104 \end_inset
18105
18106 ASCII line
18107 \begin_inset Quotes erd
18108 \end_inset
18109
18110  followed by a label [
18111 \begin_inset Quotes eld
18112 \end_inset
18113
18114 NewOverlay:
18115 \begin_inset Quotes erd
18116 \end_inset
18117
18118  and 
18119 \begin_inset Quotes eld
18120 \end_inset
18121
18122 NewNote:
18123 \begin_inset Quotes erd
18124 \end_inset
18125
18126 , respectively].
18127  The color is a stunning magenta instead of blue, and the 
18128 \begin_inset Quotes eld
18129 \end_inset
18130
18131 ASCII line
18132 \begin_inset Quotes erd
18133 \end_inset
18134
18135  will look different, in style and in length.
18136  The label fonts of all three also differ from one another.
18137 \end_layout
18138
18139 \begin_layout Standard
18140 As with a 
18141 \family sans
18142 Slide
18143 \family default
18144 , if the contents of a 
18145 \family sans
18146 Note
18147 \family default
18148  or 
18149 \family sans
18150 Overlay
18151 \family default
18152  exceed the physical size of a slide or sheet of paper, the extra will overflow
18153  onto a new sheet.
18154  Again, you should avoid this.
18155  It defeats the whole purpose of 
18156 \family sans
18157 Note
18158 \family default
18159 s and 
18160 \family sans
18161 Overlay
18162 \family default
18163 s.
18164 \end_layout
18165
18166 \begin_layout Subsubsection
18167 Using 
18168 \family sans
18169 Overlay
18170 \family default
18171  with 
18172 \family sans
18173 Slide
18174 \end_layout
18175
18176 \begin_layout Standard
18177 The idea behind an 
18178 \family sans
18179 Overlay
18180 \family default
18181  is a slide that sits atop another slide.
18182  Perhaps you wish to discuss a figure on the main 
18183 \family sans
18184 Slide
18185 \family default
18186  before displaying the text associated with it.
18187  One way to accomplish this is tape a flap of dark paper over the part of
18188  the 
18189 \family sans
18190 Slide
18191 \family default
18192  you want to display later.
18193  This method fails, however, if you wish to overlap one graph with another,
18194  for example.
18195  You would then have to fumble while speaking to align the two separate,
18196  overlapping 
18197 \family sans
18198 Slide
18199 \family default
18200 s to align the two graphs.
18201  The use of an 
18202 \family sans
18203 Overlay
18204 \family default
18205  environment in both cases makes life much easier.
18206 \end_layout
18207
18208 \begin_layout Standard
18209 Each 
18210 \family sans
18211 Overlay
18212 \family default
18213  receives the page number of its 
18214 \begin_inset Quotes eld
18215 \end_inset
18216
18217 parent
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221  
18222 \family sans
18223 Slide
18224 \family default
18225 , appended by 
18226 \begin_inset Quotes eld
18227 \end_inset
18228
18229
18230 \family typewriter
18231 -a
18232 \family default
18233
18234 \begin_inset Quotes erd
18235 \end_inset
18236
18237 .
18238 \begin_inset Foot
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 Presumably, mutliple 
18243 \family sans
18244 Overlay
18245 \family default
18246 s would have 
18247 \begin_inset Quotes eld
18248 \end_inset
18249
18250
18251 \family typewriter
18252 -a
18253 \family default
18254
18255 \begin_inset Quotes erd
18256 \end_inset
18257
18258
18259 \begin_inset Quotes eld
18260 \end_inset
18261
18262
18263 \family typewriter
18264 -b
18265 \family default
18266
18267 \begin_inset Quotes erd
18268 \end_inset
18269
18270
18271 \begin_inset Quotes eld
18272 \end_inset
18273
18274
18275 \family typewriter
18276 -c
18277 \family default
18278
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282 , etc.
18283 \begin_inset space ~
18284 \end_inset
18285
18286 appended to the page number of the parent 
18287 \family sans
18288 Slide
18289 \family default
18290 .
18291  
18292 \end_layout
18293
18294 \end_inset
18295
18296  Clearly, you want the contents of both the 
18297 \family sans
18298 Slide
18299 \family default
18300  and the 
18301 \family sans
18302 Overlay
18303 \family default
18304  to each fit on a single physical slide! You should probably consider an
18305  
18306 \family sans
18307 Overlay
18308 \family default
18309  as 
18310 \begin_inset Quotes eld
18311 \end_inset
18312
18313 part of
18314 \begin_inset Quotes erd
18315 \end_inset
18316
18317  a 
18318 \family sans
18319 Slide
18320 \family default
18321 .
18322  Indeed, the \SpecialChar LyX
18323  
18324 \family sans
18325 slides
18326 \family default
18327  class provides a visual cue for this: the label at the start of an 
18328 \family sans
18329 Overlay
18330 \family default
18331  is shorter than that at the start of a 
18332 \family sans
18333 Slide
18334 \family default
18335 .
18336  Lastly, when you generate printable output, you'll find alignment markers
18337  in all four corners of both the 
18338 \family sans
18339 Overlay
18340 \family default
18341  page and its parent 
18342 \family sans
18343 Slide
18344 \family default
18345 .
18346  These will assist you in lining up the two physical slides.
18347 \end_layout
18348
18349 \begin_layout Standard
18350 The major problem in overlaying two slides is aligning the contents of the
18351  two transparencies.
18352  How much space should you leave for that graph on the second slide? Worse
18353  still, what if you want a graph and a sentence on second slide, but there
18354  is text on the main transparency that goes in between them? You could try
18355  and insert vertical space of the right size.
18356  The better way is to use 
18357 \family sans
18358 InvisibleText
18359 \family default
18360  and 
18361 \family sans
18362 VisibleText
18363 \family default
18364 .
18365 \end_layout
18366
18367 \begin_layout Standard
18368 As their names imply, 
18369 \family sans
18370 InvisibleText
18371 \family default
18372  and 
18373 \family sans
18374 VisibleText
18375 \family default
18376  are two command-like paragraph environments that make all subsequent text
18377  invisible and visible, respectively.
18378  Note from section
18379 \begin_inset space ~
18380 \end_inset
18381
18382
18383 \begin_inset CommandInset ref
18384 LatexCommand ref
18385 reference "sec:slideQuirk"
18386
18387 \end_inset
18388
18389  that you don't place anything 
18390 \emph on
18391 into
18392 \emph default
18393  these two environments, however.
18394  When you create an 
18395 \family sans
18396 InvisibleText
18397 \family default
18398 , it inserts a centered, sky-blue label into the page reading 
18399 \begin_inset Quotes eld
18400 \end_inset
18401
18402 <Invisible Text Follows>
18403 \begin_inset Quotes erd
18404 \end_inset
18405
18406 .
18407  For paragraphs following this label, the parts of the 
18408 \family sans
18409 Slide
18410 \family default
18411  [or 
18412 \family sans
18413 Overlay
18414 \family default
18415 ; it doesn't matter which] where they would be contain instead blank space.
18416  
18417 \end_layout
18418
18419 \begin_layout Standard
18420 For 
18421 \family sans
18422 VisibleText
18423 \family default
18424 , the corresponding centered label is 
18425 \begin_inset Quotes eld
18426 \end_inset
18427
18428 <Visible Text Follows>
18429 \begin_inset Quotes erd
18430 \end_inset
18431
18432  in blazing green.
18433  Paragraphs following this label behave normally.
18434  Note that the beginning of a new 
18435 \family sans
18436 Slide
18437 \family default
18438
18439 \family sans
18440 Overlay
18441 \family default
18442 , or 
18443 \family sans
18444 Note
18445 \family default
18446  automatically shuts off an 
18447 \family sans
18448 InvisibleText
18449 \family default
18450 .
18451  It's therefore not necessary to use 
18452 \family sans
18453 VisibleText
18454 \family default
18455  at the end of a 
18456 \family sans
18457 Slide
18458 \family default
18459 .
18460 \end_layout
18461
18462 \begin_layout Standard
18463 By now, it should be obvious how to create overlay transparencies using
18464  the proper combination of 
18465 \family sans
18466 InvisibleText
18467 \family default
18468  and 
18469 \family sans
18470 VisibleText
18471 \family default
18472  on a 
18473 \family sans
18474 Slide
18475 \family default
18476  and 
18477 \family sans
18478 Overlay
18479 \family default
18480 :
18481 \end_layout
18482
18483 \begin_layout Enumerate
18484 Create a 
18485 \family sans
18486 Slide
18487 \family default
18488 , including everything that will appear on it, whether on the main slide
18489  or on the 
18490 \family sans
18491 Overlay
18492 \family default
18493 .
18494 \end_layout
18495
18496 \begin_layout Enumerate
18497 Before each figure or paragraph that will appear only on the 
18498 \family sans
18499 Overlay
18500 \family default
18501 , insert an 
18502 \family sans
18503 InvisibleText
18504 \family default
18505  environment.
18506  If necessary, insert a 
18507 \family sans
18508 VisibleText
18509 \family default
18510  environment after the 
18511 \family sans
18512 Overlay
18513 \family default
18514 -only text.
18515 \end_layout
18516
18517 \begin_layout Enumerate
18518 Start an 
18519 \family sans
18520 Overlay
18521 \family default
18522  immediately following the 
18523 \family sans
18524 Slide
18525 \family default
18526 .
18527 \end_layout
18528
18529 \begin_layout Enumerate
18530 Copy the contents of this 
18531 \family sans
18532 Slide
18533 \family default
18534  into the 
18535 \family sans
18536 Overlay
18537 \family default
18538 .
18539 \end_layout
18540
18541 \begin_layout Enumerate
18542 Within the 
18543 \family sans
18544 Overlay
18545 \family default
18546 , change all of the 
18547 \family sans
18548 InvisibleText
18549 \family default
18550  lines to 
18551 \family sans
18552 VisibleText
18553 \family default
18554  and vice-versa.
18555 \end_layout
18556
18557 \begin_layout Standard
18558 That's it.
18559  You've just made an 
18560 \family sans
18561 Overlay
18562 \family default
18563 .
18564 \end_layout
18565
18566 \begin_layout Standard
18567 There's one problem with the way I've designed the \SpecialChar LyX
18568  
18569 \family sans
18570 slides
18571 \family default
18572  class: you can't make text in the middle of a paragraph invisible, nor
18573  make text in the middle of an invisible paragraph visible again.
18574  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18575  codes.
18576 \begin_inset Foot
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 The commands of interest are: 
18581 \end_layout
18582
18583 \begin_layout Itemize
18584
18585 \family typewriter
18586 {
18587 \backslash
18588 invisible \SpecialChar ldots
18589  }
18590 \end_layout
18591
18592 \begin_layout Itemize
18593
18594 \family typewriter
18595 {
18596 \backslash
18597 visible \SpecialChar ldots
18598  }
18599 \end_layout
18600
18601 \begin_layout Plain Layout
18602 \SpecialChar ldots
18603 and need to be marked as \SpecialChar TeX
18604 .
18605  The text whose 
18606 \begin_inset Quotes eld
18607 \end_inset
18608
18609 visibility
18610 \begin_inset Quotes erd
18611 \end_inset
18612
18613  you wish to change goes in between the brackets [and after the 
18614 \family typewriter
18615
18616 \backslash
18617 invisible
18618 \family default
18619  or 
18620 \family typewriter
18621
18622 \backslash
18623 visible
18624 \family default
18625  command].
18626  If you don't know how to mark text as \SpecialChar TeX
18627 , see the appropriate section of
18628  the 
18629 \emph on
18630 User's Guide
18631 \emph default
18632 .
18633 \end_layout
18634
18635 \end_inset
18636
18637
18638 \end_layout
18639
18640 \begin_layout Subsubsection
18641 Using 
18642 \family sans
18643 Note
18644 \family default
18645  with 
18646 \family sans
18647 Slide
18648 \family default
18649
18650 \begin_inset CommandInset label
18651 LatexCommand label
18652 name "sec:slideNote"
18653
18654 \end_inset
18655
18656
18657 \end_layout
18658
18659 \begin_layout Standard
18660 Like an 
18661 \family sans
18662 Overlay
18663 \family default
18664 , a 
18665 \family sans
18666 Note
18667 \family default
18668  is associated with a 
18669 \begin_inset Quotes eld
18670 \end_inset
18671
18672 parent
18673 \begin_inset Quotes erd
18674 \end_inset
18675
18676  
18677 \family sans
18678 Slide
18679 \family default
18680 .
18681  Here, too, the \SpecialChar LyX
18682  
18683 \family sans
18684 slides
18685 \family default
18686  class provides visual cues.
18687  The label for a 
18688 \family sans
18689 Note
18690 \family default
18691  is shorter than that of a 
18692 \family sans
18693 Slide
18694 \family default
18695  [yet longer than that of an 
18696 \family sans
18697 Overlay
18698 \family default
18699 ] and, like the label of an 
18700 \family sans
18701 Overlay
18702 \family default
18703  is shockingly magenta.
18704  Additionally, the printed 
18705 \family sans
18706 Note
18707 \family default
18708  has the page number of its 
18709 \begin_inset Quotes eld
18710 \end_inset
18711
18712 parent
18713 \begin_inset Quotes erd
18714 \end_inset
18715
18716  
18717 \family sans
18718 Slide
18719 \family default
18720 , appended by 
18721 \begin_inset Quotes eld
18722 \end_inset
18723
18724
18725 \family typewriter
18726 -
18727 \family default
18728 1
18729 \begin_inset Quotes erd
18730 \end_inset
18731
18732
18733 \begin_inset Quotes eld
18734 \end_inset
18735
18736
18737 \family typewriter
18738 -
18739 \family default
18740 2
18741 \begin_inset Quotes erd
18742 \end_inset
18743
18744
18745 \begin_inset Quotes eld
18746 \end_inset
18747
18748
18749 \family typewriter
18750 -
18751 \family default
18752 3
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756 , etc.
18757  You can have multiple 
18758 \family sans
18759 Note
18760 \family default
18761 s associated with a single 
18762 \family sans
18763 Slide
18764 \family default
18765 , and, as with 
18766 \family sans
18767 Slide
18768 \family default
18769  and 
18770 \family sans
18771 Overlay
18772 \family default
18773 , you'll probably want to break up long 
18774 \family sans
18775 Note
18776 \family default
18777 s so that they fit on a single sheet of paper.
18778 \end_layout
18779
18780 \begin_layout Standard
18781 The purpose of a 
18782 \family sans
18783 Note
18784 \family default
18785  is obvious: it contains anything additional you might want to say about
18786  a 
18787 \family sans
18788 Slide
18789 \family default
18790 .
18791  It could also be used as a sheet of reminders for a particular 
18792 \family sans
18793 Slide
18794 \family default
18795 .
18796  In the case of the latter, you might want to make use of time markers.
18797  Currently, the \SpecialChar LyX
18798  
18799 \family sans
18800 slides
18801 \family default
18802  class has no 
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806 native
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810  support for time markers, a 
18811 \noun on
18812 Sli\SpecialChar TeX
18813
18814 \noun default
18815  feature.
18816  So, you'll have to resort to using the \SpecialChar LaTeX
18817  codes.
18818 \end_layout
18819
18820 \begin_layout Standard
18821 To use time markers, you'll need to specify the extra class option 
18822 \begin_inset Quotes eld
18823 \end_inset
18824
18825
18826 \family typewriter
18827 clock
18828 \family default
18829
18830 \begin_inset Quotes erd
18831 \end_inset
18832
18833  [see section
18834 \begin_inset space ~
18835 \end_inset
18836
18837
18838 \begin_inset CommandInset ref
18839 LatexCommand ref
18840 reference "sec:slidesetup"
18841
18842 \end_inset
18843
18844 ].
18845  This option turns on timing marks, which will appear in the lower-left-hand
18846  corner of every 
18847 \family sans
18848 Note
18849 \family default
18850  you generate.
18851  To set what appears in the time marker, you use the \SpecialChar LaTeX
18852  commands 
18853 \begin_inset Quotes eld
18854 \end_inset
18855
18856
18857 \family typewriter
18858
18859 \backslash
18860 settime{}
18861 \family default
18862
18863 \begin_inset Quotes erd
18864 \end_inset
18865
18866  and 
18867 \begin_inset Quotes eld
18868 \end_inset
18869
18870
18871 \family typewriter
18872
18873 \backslash
18874 addtime{}
18875 \family default
18876
18877 \begin_inset Quotes erd
18878 \end_inset
18879
18880 .
18881  The arguments of both commands are time measured in seconds.
18882  
18883 \begin_inset Quotes eld
18884 \end_inset
18885
18886
18887 \family typewriter
18888
18889 \backslash
18890 settime{}
18891 \family default
18892
18893 \begin_inset Quotes erd
18894 \end_inset
18895
18896  sets the time marker to a given time.
18897  
18898 \begin_inset Quotes eld
18899 \end_inset
18900
18901
18902 \family typewriter
18903
18904 \backslash
18905 addtime{}
18906 \family default
18907
18908 \begin_inset Quotes erd
18909 \end_inset
18910
18911  increments the time marker by the specified amount.
18912  Using time markers and 
18913 \family sans
18914 Note
18915 \family default
18916 s in this fashion, you can remind yourself how much time to spend on a particula
18917
18918 \family sans
18919 Slide
18920 \family default
18921 .
18922 \end_layout
18923
18924 \begin_layout Standard
18925 There's one last feature to describe.
18926  Clearly, you'd like to print out all of your 
18927 \family sans
18928 Slide
18929 \family default
18930 s and 
18931 \family sans
18932 Overlay
18933 \family default
18934 s on transparencies while printing all of your 
18935 \family sans
18936 Note
18937 \family default
18938 s on plain paper.
18939  However, a 
18940 \family sans
18941 Note
18942 \family default
18943  
18944 \emph on
18945 must
18946 \emph default
18947  follow the 
18948 \family sans
18949 Slide
18950 \family default
18951  with which it is associated.
18952  What's a person to do?
18953 \end_layout
18954
18955 \begin_layout Standard
18956 Luckily, there are two \SpecialChar LaTeX
18957  commands that allow you to select what to print
18958  out.
18959  Both must be placed into the preamble of your document.
18960  The command 
18961 \begin_inset Quotes eld
18962 \end_inset
18963
18964
18965 \family typewriter
18966
18967 \backslash
18968 onlyslides{
18969 \backslash
18970 slides}
18971 \family default
18972
18973 \begin_inset Quotes erd
18974 \end_inset
18975
18976  will cause the output to contain only the 
18977 \family sans
18978 Slide
18979 \family default
18980 s and 
18981 \family sans
18982 Overlay
18983 \family default
18984 s.
18985  Correspondingly, the command 
18986 \begin_inset Quotes eld
18987 \end_inset
18988
18989
18990 \family typewriter
18991
18992 \backslash
18993 onlynotes{
18994 \backslash
18995 notes}
18996 \family default
18997
18998 \begin_inset Quotes erd
18999 \end_inset
19000
19001  prevents the output of anything but 
19002 \family sans
19003 Note
19004 \family default
19005 s.
19006  I'd advise placing both commands in the preamble and initially comment
19007  both out.
19008  You can then preview your entire presentation as you write.
19009  When you're done writing, you can then uncomment one of the two to select
19010  what you want to print.
19011  I like to uncomment 
19012 \begin_inset Quotes eld
19013 \end_inset
19014
19015
19016 \family typewriter
19017
19018 \backslash
19019 onlyslides{
19020 \backslash
19021 slides}
19022 \family default
19023
19024 \begin_inset Quotes erd
19025 \end_inset
19026
19027  , print to a file with 
19028 \begin_inset Quotes eld
19029 \end_inset
19030
19031
19032 \family typewriter
19033 -slides
19034 \family default
19035
19036 \begin_inset Quotes erd
19037 \end_inset
19038
19039  in its name, comment it back out, then uncomment 
19040 \begin_inset Quotes eld
19041 \end_inset
19042
19043
19044 \family typewriter
19045
19046 \backslash
19047 onlynotes{
19048 \backslash
19049 notes}
19050 \family default
19051
19052 \begin_inset Quotes erd
19053 \end_inset
19054
19055  and print to a 
19056 \begin_inset Quotes eld
19057 \end_inset
19058
19059
19060 \family typewriter
19061 *-notes.ps
19062 \family default
19063
19064 \begin_inset Quotes erd
19065 \end_inset
19066
19067  file.
19068  I can then send either file to a printer, loading transparencies or plain
19069  paper as appropriate.
19070 \end_layout
19071
19072 \begin_layout Standard
19073 You can also provide other arguments to the 
19074 \begin_inset Quotes eld
19075 \end_inset
19076
19077
19078 \family typewriter
19079
19080 \backslash
19081 onlyslides{}
19082 \family default
19083
19084 \begin_inset Quotes erd
19085 \end_inset
19086
19087  and 
19088 \begin_inset Quotes eld
19089 \end_inset
19090
19091
19092 \family typewriter
19093
19094 \backslash
19095 onlynotes{}
19096 \family default
19097
19098 \begin_inset Quotes erd
19099 \end_inset
19100
19101  commands.
19102  See a good \SpecialChar LaTeX
19103  book for details.
19104 \end_layout
19105
19106 \begin_layout Subsection
19107 The 
19108 \family sans
19109 slides
19110 \family default
19111  Class Template File
19112 \end_layout
19113
19114 \begin_layout Standard
19115 I have also provided a template file, 
19116 \begin_inset Quotes eld
19117 \end_inset
19118
19119
19120 \family typewriter
19121 slides.lyx
19122 \family default
19123
19124 \begin_inset Quotes erd
19125 \end_inset
19126
19127 , with the 
19128 \family sans
19129 slides
19130 \family default
19131  class.
19132  To use it, begin your new presentation with 
19133 \family sans
19134 File\SpecialChar menuseparator
19135 New
19136 \begin_inset space ~
19137 \end_inset
19138
19139 from
19140 \begin_inset space ~
19141 \end_inset
19142
19143 Template
19144 \family default
19145 .
19146  Your new \SpecialChar LyX
19147  presentation file will contain an example 
19148 \family sans
19149 Slide
19150 \family default
19151  – 
19152 \family sans
19153 Overlay
19154 \family default
19155  – 
19156 \family sans
19157 Note
19158 \family default
19159  triplet.
19160  The 
19161 \family sans
19162 Slide
19163 \family default
19164  and 
19165 \family sans
19166 Overlay
19167 \family default
19168  additionally contain an example of the use of 
19169 \family sans
19170 InvisibleText
19171 \family default
19172  and 
19173 \family sans
19174 VisibleText
19175 \family default
19176 .
19177  Lastly, the preamble will contain:
19178 \end_layout
19179
19180 \begin_layout LyX-Code
19181 % Uncomment to print out only slides and overlays
19182 \end_layout
19183
19184 \begin_layout LyX-Code
19185 %
19186 \end_layout
19187
19188 \begin_layout LyX-Code
19189 %
19190 \backslash
19191 onlyslides{
19192 \backslash
19193 slides}
19194 \begin_inset Newline newline
19195 \end_inset
19196
19197  
19198 \end_layout
19199
19200 \begin_layout LyX-Code
19201 % Uncomment to print out only notes
19202 \end_layout
19203
19204 \begin_layout LyX-Code
19205 %
19206 \end_layout
19207
19208 \begin_layout LyX-Code
19209 %
19210 \backslash
19211 onlynotes{
19212 \backslash
19213 notes}
19214 \end_layout
19215
19216 \begin_layout Standard
19217 One final thing: I created this class to support the \SpecialChar LaTeX2e
19218  
19219 \begin_inset Quotes eld
19220 \end_inset
19221
19222
19223 \noun on
19224 Sli\SpecialChar TeX
19225
19226 \noun default
19227  emulation
19228 \begin_inset Quotes erd
19229 \end_inset
19230
19231  class, one of the built-in \SpecialChar LaTeX2e
19232  classes.
19233  Neither I nor the rest of the \SpecialChar LyX
19234  Team endorse or oppose the use of this built-in
19235  slide class.
19236  It's here if you want it or need it.
19237  There exist other \SpecialChar LaTeX2e
19238  classes for creating presentations, such as the 
19239 \family sans
19240 Foils
19241 \family default
19242  class [see section
19243 \begin_inset space ~
19244 \end_inset
19245
19246
19247 \begin_inset CommandInset ref
19248 LatexCommand ref
19249 reference "sec:foiltex"
19250
19251 \end_inset
19252
19253 ] or the 
19254 \begin_inset Quotes eld
19255 \end_inset
19256
19257
19258 \family typewriter
19259 seminar
19260 \family default
19261
19262 \begin_inset Quotes erd
19263 \end_inset
19264
19265  package [present on some \SpecialChar TeX
19266  distributions].
19267  The latter is not yet supported under \SpecialChar LyX
19268 .
19269 \begin_inset Foot
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 Perhaps you can take on the task\SpecialChar ldots
19274
19275 \end_layout
19276
19277 \end_inset
19278
19279  I know nothing about these other classes.
19280  Try them out to see what sort of alternative they provide.
19281 \end_layout
19282
19283 \begin_layout Chapter
19284 \SpecialChar LyX
19285  Features needing Extra Software
19286 \end_layout
19287
19288 \begin_layout Section
19289 Checking \SpecialChar TeX
19290
19291 \end_layout
19292
19293 \begin_layout Standard
19294 by 
19295 \noun on
19296 Asger Alstrup
19297 \end_layout
19298
19299 \begin_layout Subsection
19300 Introduction
19301 \end_layout
19302
19303 \begin_layout Standard
19304 If you have the 
19305 \family typewriter
19306 chktex
19307 \family default
19308  program installed
19309 \begin_inset Foot
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313
19314 \family typewriter
19315 chktex
19316 \family default
19317  is not yet available when you are using the \SpecialChar LaTeX
19318  distribution MiK\SpecialChar TeX
19319 .
19320 \end_layout
19321
19322 \end_inset
19323
19324 , you'll find in the 
19325 \family sans
19326 Tools
19327 \family default
19328  menu the entry: 
19329 \family sans
19330 Check
19331 \begin_inset space ~
19332 \end_inset
19333
19334 TeX
19335 \family default
19336 .
19337  You can get 
19338 \family typewriter
19339 chktex
19340 \family default
19341  from CTAN,
19342 \begin_inset Newline newline
19343 \end_inset
19344
19345
19346 \begin_inset CommandInset href
19347 LatexCommand href
19348 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19349 literal "false"
19350
19351 \end_inset
19352
19353 .
19354 \end_layout
19355
19356 \begin_layout Standard
19357 The 
19358 \family sans
19359 Chk\SpecialChar TeX
19360
19361 \family default
19362  package is a program that was written by 
19363 \begin_inset Flex Noun
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 Jens T.
19368 \begin_inset space ~
19369 \end_inset
19370
19371 Berger Thielemann
19372 \end_layout
19373
19374 \end_inset
19375
19376  in frustration because some constructs in \SpecialChar LaTeX
19377  are sometimes non-intuitive,
19378  and easy to forget.
19379  The program runs over your \SpecialChar LaTeX
19380  file, checks the integrity of the file, and
19381  flags some common errors.
19382  In other technical words, it is 
19383 \family typewriter
19384 lint
19385 \family default
19386  for \SpecialChar LaTeX
19387 .
19388 \end_layout
19389
19390 \begin_layout Standard
19391 Well, what is a syntax checker doing in \SpecialChar LyX
19392  which is supposed to produce correct
19393  \SpecialChar LaTeX
19394  anyways? The answer is simple: Just as 
19395 \family typewriter
19396 Lint
19397 \family default
19398  not only checks the 
19399 \emph on
19400 syntax
19401 \emph default
19402  of C programs, but also does 
19403 \emph on
19404 semantic
19405 \emph default
19406  checks for type-errors, 
19407 \family sans
19408 Chk\SpecialChar TeX
19409
19410 \family default
19411  catches some common 
19412 \emph on
19413 typographic
19414 \emph default
19415  errors, in addition to the syntactical ones.
19416  Specifically, 
19417 \family sans
19418 Chk\SpecialChar TeX
19419
19420 \family default
19421  is capable of detecting several common errors, such as
19422 \end_layout
19423
19424 \begin_layout Itemize
19425 Ellipsis detection:
19426 \begin_inset Newline newline
19427 \end_inset
19428
19429 Use \SpecialChar ldots
19430  instead of ...
19431 \end_layout
19432
19433 \begin_layout Itemize
19434 No space in front of/after parenthesis:
19435 \begin_inset Newline newline
19436 \end_inset
19437
19438 ( wrong spacing )
19439 \end_layout
19440
19441 \begin_layout Itemize
19442 Enforcement of normal space after common abbreviations:
19443 \begin_inset Newline newline
19444 \end_inset
19445
19446 e.
19447 \begin_inset space \thinspace{}
19448 \end_inset
19449
19450 g.
19451 \begin_inset space \space{}
19452 \end_inset
19453
19454 is too wide spacing.
19455 \end_layout
19456
19457 \begin_layout Itemize
19458 Enforcement of end-of-sentence space when the last sentence ends with a
19459  capital letter:
19460 \begin_inset Newline newline
19461 \end_inset
19462
19463 This is a TEST.
19464  And this is wrong spacing.
19465 \end_layout
19466
19467 \begin_layout Itemize
19468 Space in front of labels and similar commands:
19469 \begin_inset Newline newline
19470 \end_inset
19471
19472 The label should stick right up to the text to avoid falling to a wrong
19473  page.
19474  
19475 \begin_inset CommandInset label
19476 LatexCommand label
19477 name "sec:chktex"
19478
19479 \end_inset
19480
19481  
19482 \begin_inset Foot
19483 status collapsed
19484
19485 \begin_layout Plain Layout
19486 This footnote is in danger of falling off to a wrong page
19487 \end_layout
19488
19489 \end_inset
19490
19491  The label is separated too much.
19492 \end_layout
19493
19494 \begin_layout Itemize
19495 Space in front of references, instead of hard spaces:
19496 \begin_inset Newline newline
19497 \end_inset
19498
19499 If you have bad luck, the text will break right between the referenced text
19500  and reference number, and that's a pity.
19501  See section 
19502 \begin_inset CommandInset ref
19503 LatexCommand ref
19504 reference "sec:chktex"
19505
19506 \end_inset
19507
19508 .
19509 \end_layout
19510
19511 \begin_layout Itemize
19512 Use of 
19513 \begin_inset Quotes eld
19514 \end_inset
19515
19516 x
19517 \begin_inset Quotes erd
19518 \end_inset
19519
19520  instead of 
19521 \begin_inset Formula $\times$
19522 \end_inset
19523
19524  between numbers:
19525 \begin_inset Newline newline
19526 \end_inset
19527
19528 2x2 looks cheap compared to 
19529 \begin_inset Formula $2\times2$
19530 \end_inset
19531
19532 .
19533 \end_layout
19534
19535 \begin_layout Standard
19536 and more \SpecialChar ldots
19537  It is an invaluable tool when you are 
19538 \begin_inset Quotes eld
19539 \end_inset
19540
19541 finishing up
19542 \begin_inset Quotes erd
19543 \end_inset
19544
19545  your document before printing, and you should run it right after the obligatory
19546  spelling check, and before you go fine tuning the typesetting.
19547 \end_layout
19548
19549 \begin_layout Subsection
19550 How to use it
19551 \end_layout
19552
19553 \begin_layout Standard
19554 If you have the program installed, usage is as simple as choosing 
19555 \family sans
19556 Tools\SpecialChar menuseparator
19557 Check
19558 \begin_inset space ~
19559 \end_inset
19560
19561 TeX
19562 \family default
19563 .
19564  This will make \SpecialChar LyX
19565  generate a \SpecialChar LaTeX
19566  file of your document, start 
19567 \family sans
19568 Chk\SpecialChar TeX
19569
19570 \family default
19571  to check it, and then make \SpecialChar LyX
19572  insert 
19573 \begin_inset Quotes eld
19574 \end_inset
19575
19576 error boxes
19577 \begin_inset Quotes erd
19578 \end_inset
19579
19580  with the warnings from 
19581 \family sans
19582 Chk\SpecialChar TeX
19583
19584 \family default
19585 , if there were any.
19586  The warnings will be placed close to the point of the mistake, and you
19587  can quickly find them by using the 
19588 \family sans
19589 Navigate\SpecialChar menuseparator
19590 Error
19591 \family default
19592  menu item, or the shortcut key 
19593 \family sans
19594 C-g
19595 \family default
19596  from the default 
19597 \family typewriter
19598 cua
19599 \family default
19600  bind file.
19601  Open the error boxes by clicking on them with the mouse, or use the shortcut
19602  key 
19603 \family sans
19604 C-i
19605 \family default
19606  from 
19607 \family typewriter
19608 cua
19609 \family default
19610  bindings, or the corresponding 
19611 \family sans
19612 C-o
19613 \family default
19614  for the alternate 
19615 \family typewriter
19616 emacs
19617 \family default
19618  bind file.
19619  Read the warning and correct the mistake, if it is a mistake.
19620  If you have trouble understanding what the warning is about, you can safely
19621  ignore it.
19622  Remember that there is a hidden layer between the document on screen and
19623  the technical details in invoking 
19624 \family sans
19625 Chk\SpecialChar TeX
19626
19627 \family default
19628 , and this gap can make some warnings seem arcane or just plain silly.
19629 \end_layout
19630
19631 \begin_layout Standard
19632 This document is an excellent testing bed for the feature, and it should
19633  provide quite a few warnings for you to fiddle with.
19634  Since computers are only so smart, expect most of the warnings to be false
19635  alarms, though.
19636 \end_layout
19637
19638 \begin_layout Subsection
19639 How to fine tune it
19640 \end_layout
19641
19642 \begin_layout Standard
19643 Sometimes, you'll find that 
19644 \family sans
19645 Chk\SpecialChar TeX
19646
19647 \family default
19648  makes more noise than suits your mood.
19649  Then you can choose not to use it, wait until your mood changes, or try
19650  to customize 
19651 \family sans
19652 Chk\SpecialChar TeX
19653
19654 \family default
19655  to get better along with you.
19656 \end_layout
19657
19658 \begin_layout Standard
19659 Although 
19660 \family sans
19661 Chk\SpecialChar TeX
19662
19663 \family default
19664  
19665 \emph on
19666 is
19667 \emph default
19668  very configurable and extensible, you should not expect to solve all problems
19669  with 
19670 \family sans
19671 Chk\SpecialChar TeX
19672
19673 \family default
19674  in \SpecialChar LyX
19675  this way.
19676  Since \SpecialChar LyX
19677  has to generate a somewhat special \SpecialChar LaTeX
19678  file to be able to match the
19679  line numbers from the 
19680 \family sans
19681 Chk\SpecialChar TeX
19682
19683 \family default
19684  output
19685 \begin_inset Foot
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 You can inspect the specific output from 
19690 \family sans
19691 chktex
19692 \family default
19693  by using 
19694 \family sans
19695 Document\SpecialChar menuseparator
19696 \SpecialChar LaTeX
19697
19698 \begin_inset space ~
19699 \end_inset
19700
19701 Log
19702 \family default
19703  right after a 
19704 \family sans
19705 chktex
19706 \family default
19707  run.
19708 \end_layout
19709
19710 \end_inset
19711
19712  to the internal document structure, some of the warnings will not appear
19713  correctly.
19714  There are two things you can do about this:
19715 \end_layout
19716
19717 \begin_layout Itemize
19718 Fine tune the 
19719 \family sans
19720 Chk\SpecialChar TeX
19721
19722 \family default
19723  invocation command line in 
19724 \begin_inset Flex Noun
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 Tools\SpecialChar menuseparator
19729 Preferences\SpecialChar menuseparator
19730 Output\SpecialChar menuseparator
19731 LaTeX\SpecialChar menuseparator
19732 CheckTeX command
19733 \end_layout
19734
19735 \end_inset
19736
19737 , or the global 
19738 \family sans
19739 Chk\SpecialChar TeX
19740
19741 \family default
19742  installation configuration file (usually with the file 
19743 \family typewriter
19744 chktexrc
19745 \family default
19746 ).
19747  See below to learn what warnings can be enabled and disabled on the command
19748  line.
19749 \end_layout
19750
19751 \begin_layout Itemize
19752 Export your document as a raw \SpecialChar LaTeX
19753  file using 
19754 \family sans
19755 File\SpecialChar menuseparator
19756 Export\SpecialChar menuseparator
19757 \SpecialChar LaTeX
19758
19759 \family default
19760  and run 
19761 \family typewriter
19762 chktex
19763 \family default
19764  manually on that.
19765  Invoked in this way, it can be a hassle to find the corresponding place
19766  in the document inside \SpecialChar LyX
19767 , but with a little patience, you should be able
19768  to do it.
19769 \end_layout
19770
19771 \begin_layout Standard
19772 Here follows the warning messages that can be enabled and disabled in 
19773 \family sans
19774 Preferences
19775 \family default
19776 .
19777  Use 
19778 \family typewriter
19779 -n#
19780 \family default
19781  to disable a warning, and 
19782 \family typewriter
19783 -w#
19784 \family default
19785  to enable a warning.
19786  The emphasized entries are disabled by default, because the default is
19787  "
19788 \family typewriter
19789 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19790 \family default
19791 ".
19792 \end_layout
19793
19794 \begin_layout Standard
19795 Notice that you should only use the options that enable and disable warnings,
19796  because \SpecialChar LyX
19797  relies on some of the other command line parameters to be set
19798  in a specific way to have a chance to communicate with 
19799 \family typewriter
19800 chktex
19801 \family default
19802 .
19803 \end_layout
19804
19805 \begin_layout Enumerate
19806
19807 \size small
19808 \emph on
19809 Command terminated with space.
19810 \end_layout
19811
19812 \begin_layout Enumerate
19813
19814 \size small
19815 Non-breaking space (
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819
19820 \family typewriter
19821 ~
19822 \family default
19823
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827 ) should have been used.
19828 \end_layout
19829
19830 \begin_layout Enumerate
19831
19832 \size small
19833 \emph on
19834 You should enclose the previous parenthesis with 
19835 \begin_inset Quotes eld
19836 \end_inset
19837
19838
19839 \family typewriter
19840 {}
19841 \family default
19842
19843 \begin_inset Quotes erd
19844 \end_inset
19845
19846 .
19847 \end_layout
19848
19849 \begin_layout Enumerate
19850
19851 \size small
19852 Italic correction (
19853 \begin_inset Quotes eld
19854 \end_inset
19855
19856
19857 \family typewriter
19858
19859 \backslash
19860 /
19861 \family default
19862
19863 \begin_inset Quotes erd
19864 \end_inset
19865
19866 ) found in non-italic buffer.
19867 \end_layout
19868
19869 \begin_layout Enumerate
19870
19871 \size small
19872 Italic correction (
19873 \begin_inset Quotes eld
19874 \end_inset
19875
19876
19877 \family typewriter
19878
19879 \backslash
19880 /
19881 \family default
19882
19883 \begin_inset Quotes erd
19884 \end_inset
19885
19886 ) found more than once.
19887 \end_layout
19888
19889 \begin_layout Enumerate
19890
19891 \size small
19892 \emph on
19893 No italic correction (
19894 \begin_inset Quotes eld
19895 \end_inset
19896
19897
19898 \family typewriter
19899
19900 \backslash
19901 /
19902 \family default
19903
19904 \begin_inset Quotes erd
19905 \end_inset
19906
19907 ) found.
19908 \end_layout
19909
19910 \begin_layout Enumerate
19911
19912 \size small
19913 Accent command 
19914 \begin_inset Quotes eld
19915 \end_inset
19916
19917
19918 \family typewriter
19919 cmd
19920 \family default
19921
19922 \begin_inset Quotes erd
19923 \end_inset
19924
19925  needs use of 
19926 \begin_inset Quotes eld
19927 \end_inset
19928
19929
19930 \family typewriter
19931 cmd
19932 \family default
19933
19934 \begin_inset Quotes erd
19935 \end_inset
19936
19937 .
19938 \end_layout
19939
19940 \begin_layout Enumerate
19941
19942 \size small
19943 Wrong length of dash may have been used.
19944 \end_layout
19945
19946 \begin_layout Enumerate
19947
19948 \size small
19949 \emph on
19950 \begin_inset Quotes eld
19951 \end_inset
19952
19953
19954 \family typewriter
19955 %s
19956 \family default
19957
19958 \begin_inset Quotes erd
19959 \end_inset
19960
19961  expected, found 
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967 %s
19968 \family default
19969
19970 \begin_inset Quotes erd
19971 \end_inset
19972
19973 .
19974 \end_layout
19975
19976 \begin_layout Enumerate
19977
19978 \size small
19979 Solo 
19980 \begin_inset Quotes eld
19981 \end_inset
19982
19983
19984 \family typewriter
19985 %s
19986 \family default
19987
19988 \begin_inset Quotes erd
19989 \end_inset
19990
19991  found.
19992 \end_layout
19993
19994 \begin_layout Enumerate
19995
19996 \size small
19997 You should use 
19998 \begin_inset Quotes eld
19999 \end_inset
20000
20001
20002 \family typewriter
20003 %s
20004 \family default
20005
20006 \begin_inset Quotes erd
20007 \end_inset
20008
20009  to achieve an ellipsis.
20010 \end_layout
20011
20012 \begin_layout Enumerate
20013
20014 \size small
20015 Inter-word spacing (
20016 \begin_inset Quotes eld
20017 \end_inset
20018
20019
20020 \family typewriter
20021
20022 \backslash
20023
20024 \family default
20025  
20026 \begin_inset Quotes eld
20027 \end_inset
20028
20029 ) should perhaps be used.
20030 \end_layout
20031
20032 \begin_layout Enumerate
20033
20034 \size small
20035 Inter-sentence spacing (
20036 \begin_inset Quotes eld
20037 \end_inset
20038
20039
20040 \family typewriter
20041
20042 \backslash
20043 @
20044 \family default
20045
20046 \begin_inset Quotes erd
20047 \end_inset
20048
20049 ) should perhaps be used.
20050 \end_layout
20051
20052 \begin_layout Enumerate
20053
20054 \size small
20055 Could not find argument for command.
20056 \end_layout
20057
20058 \begin_layout Enumerate
20059
20060 \size small
20061 No match found for 
20062 \begin_inset Quotes eld
20063 \end_inset
20064
20065
20066 \family typewriter
20067 %s
20068 \family default
20069
20070 \begin_inset Quotes erd
20071 \end_inset
20072
20073 .
20074 \end_layout
20075
20076 \begin_layout Enumerate
20077
20078 \size small
20079 Math mode still on at end of \SpecialChar LaTeX
20080  file.
20081 \end_layout
20082
20083 \begin_layout Enumerate
20084
20085 \size small
20086 Number of 
20087 \begin_inset Quotes eld
20088 \end_inset
20089
20090
20091 \family typewriter
20092 char
20093 \family default
20094
20095 \begin_inset Quotes erd
20096 \end_inset
20097
20098  doesn't match the number of 
20099 \begin_inset Quotes eld
20100 \end_inset
20101
20102
20103 \family typewriter
20104 char
20105 \family default
20106
20107 \begin_inset Quotes erd
20108 \end_inset
20109
20110 .
20111 \end_layout
20112
20113 \begin_layout Enumerate
20114
20115 \size small
20116 You should use either 
20117 \family typewriter
20118
20119 \begin_inset Quotes eld
20120 \end_inset
20121
20122
20123 \family default
20124  or 
20125 \family typewriter
20126
20127 \begin_inset Quotes erd
20128 \end_inset
20129
20130
20131 \family default
20132  as an alternative to 
20133 \begin_inset Quotes eld
20134 \end_inset
20135
20136
20137 \family typewriter
20138 "
20139 \family default
20140
20141 \begin_inset Quotes erd
20142 \end_inset
20143
20144 .
20145 \end_layout
20146
20147 \begin_layout Enumerate
20148
20149 \size small
20150 You should use "
20151 \family typewriter
20152 '
20153 \family default
20154 " (ASCII 39) instead of "
20155 \family typewriter
20156 ´
20157 \family default
20158 " (ASCII 180).
20159 \end_layout
20160
20161 \begin_layout Enumerate
20162
20163 \size small
20164 User-specified pattern found.
20165 \end_layout
20166
20167 \begin_layout Enumerate
20168
20169 \size small
20170 This command might not be intended.
20171 \end_layout
20172
20173 \begin_layout Enumerate
20174
20175 \size small
20176 \emph on
20177 Comment displayed.
20178 \end_layout
20179
20180 \begin_layout Enumerate
20181
20182 \size small
20183 Either 
20184 \family typewriter
20185 ''
20186 \backslash
20187 ,'
20188 \family default
20189  or 
20190 \family typewriter
20191 '
20192 \backslash
20193 ,''
20194 \family default
20195  will look better.
20196 \end_layout
20197
20198 \begin_layout Enumerate
20199
20200 \size small
20201 Delete this space to maintain correct page references.
20202 \end_layout
20203
20204 \begin_layout Enumerate
20205
20206 \size small
20207 \emph on
20208 You might wish to put this between a pair of 
20209 \begin_inset Quotes eld
20210 \end_inset
20211
20212
20213 \family typewriter
20214 {}
20215 \family default
20216
20217 \begin_inset Quotes erd
20218 \end_inset
20219
20220 .
20221 \end_layout
20222
20223 \begin_layout Enumerate
20224
20225 \size small
20226 You ought to remove spaces in front of punctuation.
20227 \end_layout
20228
20229 \begin_layout Enumerate
20230
20231 \size small
20232 Could not execute \SpecialChar LaTeX
20233  command.
20234 \end_layout
20235
20236 \begin_layout Enumerate
20237
20238 \size small
20239 Don't use 
20240 \family typewriter
20241
20242 \backslash
20243 /
20244 \family default
20245  in front of small punctuation.
20246 \end_layout
20247
20248 \begin_layout Enumerate
20249
20250 \family typewriter
20251 \size small
20252 $
20253 \backslash
20254 times$
20255 \family default
20256  may look prettier here.
20257 \end_layout
20258
20259 \begin_layout Enumerate
20260
20261 \size small
20262 \emph on
20263 Multiple spaces detected in output.
20264 \end_layout
20265
20266 \begin_layout Enumerate
20267
20268 \size small
20269 This text may be ignored.
20270 \end_layout
20271
20272 \begin_layout Enumerate
20273
20274 \size small
20275 Use 
20276 \family typewriter
20277
20278 \begin_inset Quotes eld
20279 \end_inset
20280
20281
20282 \family default
20283  to begin quotation, not 
20284 \family typewriter
20285 '
20286 \family default
20287 .
20288 \end_layout
20289
20290 \begin_layout Enumerate
20291
20292 \size small
20293 Use 
20294 \family typewriter
20295 '
20296 \family default
20297  to end quotation, not 
20298 \family typewriter
20299
20300 \begin_inset Quotes eld
20301 \end_inset
20302
20303
20304 \family default
20305 .
20306 \end_layout
20307
20308 \begin_layout Enumerate
20309
20310 \size small
20311 Don't mix quotes.
20312 \end_layout
20313
20314 \begin_layout Enumerate
20315
20316 \size small
20317 You should perhaps use 
20318 \begin_inset Quotes eld
20319 \end_inset
20320
20321
20322 \family typewriter
20323 cmd
20324 \family default
20325
20326 \begin_inset Quotes erd
20327 \end_inset
20328
20329  instead.
20330 \end_layout
20331
20332 \begin_layout Enumerate
20333
20334 \size small
20335 You should put a space in front of/after parenthesis.
20336 \end_layout
20337
20338 \begin_layout Enumerate
20339
20340 \size small
20341 You should avoid spaces in front of/after parenthesis.
20342 \end_layout
20343
20344 \begin_layout Enumerate
20345
20346 \size small
20347 \emph on
20348 You should not use punctuation in front of/after quotes.
20349 \end_layout
20350
20351 \begin_layout Enumerate
20352
20353 \size small
20354 Double space found.
20355 \end_layout
20356
20357 \begin_layout Enumerate
20358
20359 \size small
20360 You should put punctuation outside inner/inside display math mode.
20361 \end_layout
20362
20363 \begin_layout Enumerate
20364
20365 \size small
20366 You ought to not use primitive \SpecialChar TeX
20367  in \SpecialChar LaTeX
20368  code.
20369 \end_layout
20370
20371 \begin_layout Enumerate
20372
20373 \size small
20374 You should remove spaces in front of 
20375 \begin_inset Quotes eld
20376 \end_inset
20377
20378
20379 \family typewriter
20380 %s
20381 \family default
20382
20383 \begin_inset Quotes erd
20384 \end_inset
20385
20386
20387 \end_layout
20388
20389 \begin_layout Enumerate
20390
20391 \size small
20392 \begin_inset Quotes eld
20393 \end_inset
20394
20395
20396 \family typewriter
20397 %s
20398 \family default
20399
20400 \begin_inset Quotes erd
20401 \end_inset
20402
20403  is normally not followed by 
20404 \begin_inset Quotes eld
20405 \end_inset
20406
20407
20408 \family typewriter
20409 %c
20410 \family default
20411
20412 \begin_inset Quotes erd
20413 \end_inset
20414
20415 .
20416 \end_layout
20417
20418 \begin_layout Standard
20419 In later versions of \SpecialChar LyX
20420 , we hope to provide a more complete interface to this
20421  tool (and it's smaller cousin 
20422 \family typewriter
20423 lacheck
20424 \family default
20425 ) to exploit the full power of it.
20426  But it's not exactly useless as it is now: go try it on one of your existing
20427  documents of a certain length and be surprised.
20428 \end_layout
20429
20430 \begin_layout Section
20431 Version Control in \SpecialChar LyX
20432
20433 \end_layout
20434
20435 \begin_layout Standard
20436 by
20437 \noun on
20438  Lars Gullik Bjønnes 
20439 \noun default
20440 and 
20441 \noun on
20442 Pavel Sanda
20443 \end_layout
20444
20445 \begin_layout Subsection
20446 Introduction
20447 \end_layout
20448
20449 \begin_layout Standard
20450 \SpecialChar LyX
20451  supports some of the most basic RCS/CVS/SVN/GIT commands.
20452  If you need something a bit more sophisticated you will have to do that
20453  manually in a terminal.
20454 \end_layout
20455
20456 \begin_layout Standard
20457 Also note that CVS support is not as good as subversion support, so we advise
20458  using SVN instead.
20459  A good place to start learning Subversion is the SVN Book
20460 \begin_inset Foot
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 \begin_inset CommandInset href
20465 LatexCommand href
20466 target "http://svnbook.red-bean.com/"
20467 literal "false"
20468
20469 \end_inset
20470
20471
20472 \end_layout
20473
20474 \end_inset
20475
20476 .
20477  In the case of RCS you should read 
20478 \begin_inset Quotes eld
20479 \end_inset
20480
20481 rcsintro
20482 \begin_inset Quotes erd
20483 \end_inset
20484
20485  (a man file, read it with 
20486 \family typewriter
20487 man rcsintro
20488 \family default
20489 ).
20490  This file describes all the basic features of RCS.
20491  You should especially notice the comment about a RCS directory, and the
20492  notion of a master RCS file (the file ending in 
20493 \family typewriter
20494 ,v
20495 \family default
20496 ).
20497 \end_layout
20498
20499 \begin_layout Standard
20500 Before you begin to use the version control features in \SpecialChar LyX
20501 , you should be
20502  familiar with RCS/CVS/SVN/GIT usage.
20503  The implementation in \SpecialChar LyX
20504  assumes a recent version of the GNU RCS or CVS/SVN
20505  package — no guarantees are made for older versions.
20506  Most of the log messages are not currently displayed after operations —
20507  you can check them in the Messages pane if you are unsure.
20508  Regular users of version control will appreciate the VC toolbar, which
20509  can be enabled via 
20510 \family sans
20511 View\SpecialChar menuseparator
20512 Toolbars\SpecialChar menuseparator
20513 Version
20514 \begin_inset space ~
20515 \end_inset
20516
20517 Control
20518 \family default
20519 .
20520 \end_layout
20521
20522 \begin_layout Standard
20523 For introducing your own external commands consult 
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 vc-command
20529 \end_layout
20530
20531 \end_inset
20532
20533  in the manual 
20534 \emph on
20535 \SpecialChar LyX
20536  Functions
20537 \emph default
20538 .
20539 \end_layout
20540
20541 \begin_layout Standard
20542 It is strongly recommended to store documents in uncompressed format if
20543  using version control (uncheck 
20544 \family sans
20545 Document\SpecialChar menuseparator
20546 Compressed
20547 \family default
20548  if it is checked): Uncompressed LyX documents are text files and therefore
20549  for merging two different versions by version control systems.
20550  Compressed LyX documents are binary files, which cannot be merged by version
20551  control systems.
20552 \end_layout
20553
20554 \begin_layout Subsection
20555 RCS commands in \SpecialChar LyX
20556
20557 \end_layout
20558
20559 \begin_layout Standard
20560 The following sections describe the RCS commands supported by \SpecialChar LyX
20561 .
20562  You can find them in the 
20563 \family sans
20564 File\SpecialChar menuseparator
20565 Version
20566 \begin_inset space ~
20567 \end_inset
20568
20569 Control
20570 \family default
20571  submenu.
20572  \SpecialChar LyX
20573  was tested against RCS 5.7/5.8.
20574 \end_layout
20575
20576 \begin_layout Subsubsection
20577
20578 \family sans
20579 Register
20580 \end_layout
20581
20582 \begin_layout Standard
20583 If your document is not under revision control, this is the only item shown
20584  in the menu.
20585  And if it is under revision control, the 
20586 \family sans
20587 Register
20588 \family default
20589  item is not visible.
20590  
20591 \end_layout
20592
20593 \begin_layout Standard
20594 This command registers your document with RCS (unless you are under the
20595  directory managed by CVS)\SpecialChar endofsentence
20596  You are asked interactively to supply an initial
20597  description of the document.
20598  The document is now set in Read-Only mode and you have to 
20599 \family sans
20600 Check
20601 \begin_inset space ~
20602 \end_inset
20603
20604 Out
20605 \begin_inset space ~
20606 \end_inset
20607
20608 For
20609 \begin_inset space ~
20610 \end_inset
20611
20612 Edit
20613 \family default
20614 , before making any changes to it.
20615  A document under revision control has a 
20616 \begin_inset Quotes eld
20617 \end_inset
20618
20619 [RCS:<version> <locker>]
20620 \begin_inset Quotes erd
20621 \end_inset
20622
20623  item tagged to the filename in the minibuffer.
20624 \end_layout
20625
20626 \begin_layout Standard
20627 RCS command that is run:
20628 \end_layout
20629
20630 \begin_layout LyX-Code
20631
20632 \family typewriter
20633 ci -q -u -i -t-"<initial description>" <file-name>
20634 \end_layout
20635
20636 \begin_layout Standard
20637 Read 
20638 \family typewriter
20639 man ci
20640 \family default
20641  to understand the switches.
20642  
20643 \end_layout
20644
20645 \begin_layout Subsubsection
20646
20647 \family sans
20648 Check In Changes
20649 \end_layout
20650
20651 \begin_layout Standard
20652 When you are finished editing a file, you check in your changes.
20653  When you do this, you are asked for a description of the changes.
20654  This is stored in the history log.
20655  The version number is bumped, your changes are applied to the master RCS
20656  file, the document is unlocked and set to Read-Only mode.
20657 \end_layout
20658
20659 \begin_layout Itemize
20660 RCS command: 
20661 \family typewriter
20662 ci -q -u -m"<description>" <file-name>
20663 \end_layout
20664
20665 \begin_layout Subsubsection
20666
20667 \family sans
20668 Check Out For Edit
20669 \end_layout
20670
20671 \begin_layout Standard
20672 By doing this you lock the document so that only you can edit it.
20673  This will also make the document Read-Write only for you.
20674  You will usually continue editing for a while and when you are finished
20675  you check in your changes.
20676  The status line is changed to reflect that you have locked the file.
20677 \end_layout
20678
20679 \begin_layout Itemize
20680 RCS command: 
20681 \family typewriter
20682 co -q -l <file-name>
20683 \end_layout
20684
20685 \begin_layout Subsubsection
20686
20687 \family sans
20688 Revert To Repository Version
20689 \end_layout
20690
20691 \begin_layout Standard
20692 This will discard all changes made to the document since the last check
20693  in.
20694  You get a warning before changes are discarded.
20695 \end_layout
20696
20697 \begin_layout Itemize
20698 RCS command: 
20699 \family typewriter
20700 co -f -u<version> <file-name>
20701 \end_layout
20702
20703 \begin_layout Subsubsection
20704
20705 \family sans
20706 Copy
20707 \end_layout
20708
20709 \begin_layout Standard
20710 This will create a copy of the current document.
20711  Since RCS does not support copy operations natively, the version history
20712  is not preserved, and the copy is added as a new file.
20713  It requires a clean document without any changes since the last checkin.
20714  You are asked for a file name and a description of the copy operation.
20715  After that the copy is created, both locally and in the repository.
20716  If the parent directories of the copied and original document differ, all
20717  relative paths of included files of the copy are adjusted (like in 
20718 \family sans
20719 File\SpecialChar menuseparator
20720 Save As
20721 \family default
20722 \SpecialChar ldots
20723 ).
20724  Finally, the copy is loaded instead of the original document.
20725 \end_layout
20726
20727 \begin_layout Labeling
20728 \labelwidthstring 00.00.0000
20729 RCS
20730 \begin_inset space ~
20731 \end_inset
20732
20733 commands: 
20734 \begin_inset space ~
20735 \end_inset
20736
20737
20738 \begin_inset Newline newline
20739 \end_inset
20740
20741 Copy 
20742 \begin_inset Flex Code
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746
20747 \family typewriter
20748 \begin_inset Quotes qld
20749 \end_inset
20750
20751 <file-name>
20752 \begin_inset Quotes qld
20753 \end_inset
20754
20755
20756 \end_layout
20757
20758 \end_inset
20759
20760  to 
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765
20766 \family typewriter
20767 \begin_inset Quotes qld
20768 \end_inset
20769
20770 <new-file-name>
20771 \begin_inset Quotes qld
20772 \end_inset
20773
20774
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \begin_inset Newline newline
20781 \end_inset
20782
20783
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788 ci -q -u 
20789 \family typewriter
20790 -i 
20791 \begin_inset Quotes qld
20792 \end_inset
20793
20794 <new-file-name>
20795 \begin_inset Quotes qld
20796 \end_inset
20797
20798
20799 \end_layout
20800
20801 \end_inset
20802
20803
20804 \end_layout
20805
20806 \begin_layout Subsubsection
20807
20808 \family sans
20809 Undo Last Checkin
20810 \end_layout
20811
20812 \begin_layout Standard
20813 This makes as if the last check in never happened.
20814  No changes are made to the document loaded into \SpecialChar LyX
20815 , but the last version
20816  is removed from the master RCS file.
20817 \end_layout
20818
20819 \begin_layout Itemize
20820 RCS command: 
20821 \family typewriter
20822 rcs -o<version> <file-name>
20823 \end_layout
20824
20825 \begin_layout Subsubsection
20826
20827 \family sans
20828 Show History
20829 \end_layout
20830
20831 \begin_layout Standard
20832 This shows the complete history of the RCS document.
20833  The output of 
20834 \family typewriter
20835 rlog <file-name>
20836 \family default
20837  is shown in a browser.
20838  See 
20839 \family typewriter
20840 man rlog
20841 \family default
20842  for more info.
20843 \end_layout
20844
20845 \begin_layout Subsubsection
20846 Revision info
20847 \end_layout
20848
20849 \begin_layout Standard
20850 \SpecialChar LyX
20851  supports RCS version number, author name, date and time of last commit.
20852  All those are extracted from 
20853 \family typewriter
20854 rlog -r <file-name>
20855 \family default
20856 .
20857  See 
20858 \begin_inset CommandInset ref
20859 LatexCommand ref
20860 reference "subsec:VCS-Revision-Information"
20861
20862 \end_inset
20863
20864  for details.
20865 \end_layout
20866
20867 \begin_layout Subsection
20868 CVS commands in \SpecialChar LyX
20869
20870 \end_layout
20871
20872 \begin_layout Standard
20873 A subset of CVS operations is supported by \SpecialChar LyX
20874 .
20875  You can find the commands in the 
20876 \family sans
20877 File\SpecialChar menuseparator
20878 Version
20879 \begin_inset space ~
20880 \end_inset
20881
20882 Control
20883 \family default
20884  submenu.
20885  The version control system SVN is more powerful, so please use it instead
20886  of CVS if possible.
20887 \end_layout
20888
20889 \begin_layout Subsubsection
20890
20891 \family sans
20892 General CVS usage
20893 \end_layout
20894
20895 \begin_layout Standard
20896 If you start from scratch with CVS you have to create your repository and
20897  checkout the working copy with external tools.
20898  If you're using a client-server setup you may need to login before doing
20899  the first repository checkout.
20900 \end_layout
20901
20902 \begin_layout Standard
20903 If your documents are under revision control and others are using the same
20904  repository problems arise when different changes to the same document at
20905  the same location happen.
20906  Standard CVS repositories don't operate with a file locking mechanism.
20907  This may be surprising, but conflicts only occur if people disagree on
20908  the proper content of the same part of a document.
20909  So, if co-workers are used to communicate regularly, these conflicts occur
20910  rarely.
20911  If they don't communicate they have a fundamental problem anyway.
20912  Nevertheless some people like to work with so called 
20913 \begin_inset Quotes eld
20914 \end_inset
20915
20916 reserved checkouts
20917 \begin_inset Quotes erd
20918 \end_inset
20919
20920 .
20921  If they do so the working copy of all files is readonly when checked out
20922  first and the user starts editing after using a special command to make
20923  the working copy writable.
20924  When the changes are checked in the working copy returns to readonly state.
20925  With \SpecialChar LyX
20926  one has to edit the 
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 .cvsrc
20932 \end_layout
20933
20934 \end_inset
20935
20936  file and add the line 
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 cvs -r
20942 \end_layout
20943
20944 \end_inset
20945
20946  to work with reserved checkouts.
20947  The benefit is the possibility to see who is using a writable copy of some
20948  document.
20949  It's not guaranteed only one user makes a copy writable.
20950 \end_layout
20951
20952 \begin_layout Standard
20953 \SpecialChar LyX
20954  tries to guess if you're using reserved or non-reserved checkouts.
20955  If your working copy is readonly or it is writable and an additional copy
20956  of your document exists in the CVS/Base sub-directory a reserved otherwise
20957  a non-reserved checkout is assumed.
20958  When a reserved checkout is detected you have to use 
20959 \begin_inset Flex Noun
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 Check Out
20964 \end_layout
20965
20966 \end_inset
20967
20968  to make your working copy writable if it's readonly.
20969  After doing so the 
20970 \begin_inset Flex Noun
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 Check In
20975 \end_layout
20976
20977 \end_inset
20978
20979  operation is possible and that makes your working copy readonly again after
20980  transferring your changes to the repository.
20981 \end_layout
20982
20983 \begin_layout Standard
20984 More information about CVS can be found here 
20985 \begin_inset Flex URL
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989
20990 http://www.nongnu.org/cvs
20991 \end_layout
20992
20993 \end_inset
20994
20995  and here 
20996 \begin_inset Flex URL
20997 status collapsed
20998
20999 \begin_layout Plain Layout
21000
21001 http://ximbiot.com/cvs
21002 \end_layout
21003
21004 \end_inset
21005
21006 .
21007 \end_layout
21008
21009 \begin_layout Standard
21010 Read 
21011 \family typewriter
21012 man cvs
21013 \family default
21014  to understand the sub-commands and the switches mentioned below.
21015 \end_layout
21016
21017 \begin_layout Subsubsection
21018
21019 \family sans
21020 Register
21021 \end_layout
21022
21023 \begin_layout Standard
21024 If your document is not under revision control, this is the only item shown
21025  in the menu.
21026  And if it is under revision control, the 
21027 \family sans
21028 Register
21029 \family default
21030  item is not visible.
21031  
21032 \end_layout
21033
21034 \begin_layout Standard
21035 This command registers in CVS your document 
21036 \begin_inset Flex Strong
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040
21041 \emph on
21042 only
21043 \end_layout
21044
21045 \end_inset
21046
21047  in the case you have already the documents directory under CVS control
21048  (in particular 
21049 \family typewriter
21050 CVS/Entries
21051 \family default
21052  file exists).
21053  This means you have to create or checkout the archive by yourself using
21054  external tools.
21055  (In case you forget that step \SpecialChar LyX
21056  registers the document with RCS.)
21057 \end_layout
21058
21059 \begin_layout Standard
21060 Then you are asked interactively to supply an initial description of the
21061  document.
21062  Don't forget that registered file is not yet checked in.
21063 \end_layout
21064
21065 \begin_layout Standard
21066 CVS command that is run: 
21067 \family typewriter
21068 cvs -q add -m"<entered message>" "<file-name>"
21069 \end_layout
21070
21071 \begin_layout Standard
21072 The term 
21073 \family typewriter
21074 "<file-name>"
21075 \family default
21076  above and for all other CVS commands is an abbreviation for 
21077 \begin_inset Quotes eld
21078 \end_inset
21079
21080 change the current working directory to file location and use the file name
21081  without path component as argument
21082 \begin_inset Quotes erd
21083 \end_inset
21084
21085 .
21086 \end_layout
21087
21088 \begin_layout Subsubsection
21089
21090 \family sans
21091 Check In Changes
21092 \end_layout
21093
21094 \begin_layout Standard
21095 When you are finished editing a file, you commit your changes.
21096  When you do this and you had changed the document, you are asked for a
21097  description of the changes.
21098  After that changes are written to the repository.
21099  In case you didn't change the document and a reserved checkout is detected
21100  the reservation made on 
21101 \begin_inset Flex Noun
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105 Check Out
21106 \end_layout
21107
21108 \end_inset
21109
21110  is undone.
21111 \end_layout
21112
21113 \begin_layout Labeling
21114 \labelwidthstring 00.00.0000
21115 CVS
21116 \begin_inset space ~
21117 \end_inset
21118
21119 command: 
21120 \begin_inset space ~
21121 \end_inset
21122
21123
21124 \begin_inset Newline newline
21125 \end_inset
21126
21127
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 cvs 
21133 \family typewriter
21134 -q commit -m"<description>" "<file-name>"
21135 \end_layout
21136
21137 \end_inset
21138
21139  or
21140 \begin_inset Newline newline
21141 \end_inset
21142
21143
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 cvs -q unedit 
21149 \family typewriter
21150 "<file-name>"
21151 \end_layout
21152
21153 \end_inset
21154
21155
21156 \end_layout
21157
21158 \begin_layout Subsubsection
21159
21160 \family sans
21161 Check Out Changes
21162 \end_layout
21163
21164 \begin_layout Standard
21165 When you are sharing a repository with others, you may have to incorporate
21166  their changes into your working copy.
21167 \end_layout
21168
21169 \begin_layout Standard
21170 CVS command: 
21171 \family typewriter
21172 cvs -q update "<file-name>"
21173 \end_layout
21174
21175 \begin_layout Standard
21176 If a readonly checkout is detected the working copy is made writable and
21177  reserved.
21178 \end_layout
21179
21180 \begin_layout Standard
21181 CVS command: 
21182 \family typewriter
21183 cvs -q edit "<file-name>"
21184 \end_layout
21185
21186 \begin_layout Subsubsection
21187
21188 \family sans
21189 Revert To Repository Version
21190 \end_layout
21191
21192 \begin_layout Standard
21193 This will discard all changes made to the document since the last check
21194  in.
21195  You get a warning before changes are discarded.
21196  Firstly the file is deleted, secondly CVS update command is run.
21197 \end_layout
21198
21199 \begin_layout Standard
21200 CVS command: 
21201 \family typewriter
21202 cvs -q update "<file-name>"
21203 \end_layout
21204
21205 \begin_layout Standard
21206 If a reserved checkout is detected and the working copy has no changes only
21207  the reservation is undone.
21208 \end_layout
21209
21210 \begin_layout Standard
21211 CVS command: 
21212 \family typewriter
21213 cvs -q unedit "<file-name>"
21214 \end_layout
21215
21216 \begin_layout Subsubsection
21217
21218 \family sans
21219 Copy
21220 \end_layout
21221
21222 \begin_layout Standard
21223 This will create a copy of the current document.
21224  Since CVS does not support copy operations natively, the version history
21225  is not preserved, and the copy is added as a new file.
21226  It requires a clean document without any changes since the last checkin.
21227  You are asked for a file name and a description of the copy operation.
21228  After that the copy is created, both locally and in the repository.
21229  If the parent directories of the copied and original document differ, all
21230  relative paths of included files of the copy are adjusted (like in 
21231 \family sans
21232 File\SpecialChar menuseparator
21233 Save As
21234 \family default
21235 \SpecialChar ldots
21236 ).
21237  Finally, the copy is loaded instead of the original document.
21238 \end_layout
21239
21240 \begin_layout Labeling
21241 \labelwidthstring 00.00.0000
21242 CVS
21243 \begin_inset space ~
21244 \end_inset
21245
21246 commands: 
21247 \begin_inset space ~
21248 \end_inset
21249
21250
21251 \begin_inset Newline newline
21252 \end_inset
21253
21254 Copy 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 "<file-name>"
21260 \end_layout
21261
21262 \end_inset
21263
21264  to 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 "<new-file-name>"
21270 \end_layout
21271
21272 \end_inset
21273
21274
21275 \begin_inset Newline newline
21276 \end_inset
21277
21278
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 cvs -q add "<new-file-name>"
21284 \end_layout
21285
21286 \end_inset
21287
21288
21289 \end_layout
21290
21291 \begin_layout Subsubsection
21292
21293 \family sans
21294 Rename
21295 \end_layout
21296
21297 \begin_layout Standard
21298 This will rename the current document.
21299  Since CVS does not support rename operations natively, the version history
21300  is not preserved, the renamed document is added as a new file, and the
21301  original document is deleted.
21302  It requires a clean document without any changes since the last checkin.
21303  You are asked for a file name and a description of the rename operation.
21304  After that the document is renamed, both locally and in the repository.
21305  If the parent directories of the new and old file names differ, all relative
21306  paths of included files are adjusted (like in 
21307 \family sans
21308 File\SpecialChar menuseparator
21309 Save As
21310 \family default
21311 \SpecialChar ldots
21312 ).
21313  Finally, the document is reloaded using the new name.
21314 \end_layout
21315
21316 \begin_layout Labeling
21317 \labelwidthstring 00.00.0000
21318 CVS
21319 \begin_inset space ~
21320 \end_inset
21321
21322 commands: 
21323 \begin_inset space ~
21324 \end_inset
21325
21326
21327 \begin_inset Newline newline
21328 \end_inset
21329
21330 Rename 
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 "<file-name>"
21336 \end_layout
21337
21338 \end_inset
21339
21340  to 
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345 "<new-file-name>"
21346 \end_layout
21347
21348 \end_inset
21349
21350
21351 \begin_inset Newline newline
21352 \end_inset
21353
21354
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 cvs -q add "<new-file-name>"
21360 \end_layout
21361
21362 \end_inset
21363
21364
21365 \begin_inset Newline newline
21366 \end_inset
21367
21368
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 cvs -q remove "<file-name>"
21374 \end_layout
21375
21376 \end_inset
21377
21378
21379 \end_layout
21380
21381 \begin_layout Subsubsection
21382 Update of the local directory checkout from repository
21383 \end_layout
21384
21385 \begin_layout Standard
21386 Once your documents gets more complex, containing sub-documents and pictures,
21387  including external 
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 .tex
21393 \end_layout
21394
21395 \end_inset
21396
21397  files and so on using version control becomes more complicated.
21398  \SpecialChar LyX
21399  supports updating the whole tree in which resides the document.
21400  This become especially useful once you cooperate with people which neither
21401  have detailed knowledge about CVS usage nor they have ambition to commit
21402  additional material to the repository.
21403  You have to organize the files structure so that all external files are
21404  in the same directory or subdirectories of the document.
21405  It's good practice anyway to store multipart documents in an extra directory.
21406 \end_layout
21407
21408 \begin_layout Standard
21409 The 
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 Update local directory from repository
21415 \end_layout
21416
21417 \end_inset
21418
21419  command updates the whole directory.
21420  If local changes are detected user is warned before update starts.
21421  In case of merge conflicts both versions of the conflicting document parts
21422  are placed in the final document.
21423  You have to review and correct the result of the merge.
21424  You'll find the conflicts enclosed in pairs of 
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 <<<<<<<
21430 \end_layout
21431
21432 \end_inset
21433
21434  and 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 >>>>>>>
21440 \end_layout
21441
21442 \end_inset
21443
21444  separated by 
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 =======
21450 \end_layout
21451
21452 \end_inset
21453
21454 .
21455  The first part is your version as before the update operation with the
21456  document name prepended.
21457  The second one is the repository version with the version number after
21458  the sequence of 
21459 \begin_inset Flex Code
21460 status collapsed
21461
21462 \begin_layout Plain Layout
21463 >
21464 \end_layout
21465
21466 \end_inset
21467
21468  signs.
21469 \end_layout
21470
21471 \begin_layout Labeling
21472 \labelwidthstring 00.00.0000
21473 CVS
21474 \begin_inset space ~
21475 \end_inset
21476
21477 commands: 
21478 \begin_inset space ~
21479 \end_inset
21480
21481
21482 \begin_inset Newline newline
21483 \end_inset
21484
21485
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 cd $path; cvs diff 
21491 \family typewriter
21492 "."
21493 \end_layout
21494
21495 \end_inset
21496
21497  (Ask if changes are detected.)
21498 \begin_inset Newline newline
21499 \end_inset
21500
21501
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 cd $path; cvs -q update 
21507 \family typewriter
21508 "."
21509 \end_layout
21510
21511 \end_inset
21512
21513
21514 \end_layout
21515
21516 \begin_layout Standard
21517 where 
21518 \begin_inset Flex Code
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 $path
21523 \end_layout
21524
21525 \end_inset
21526
21527  stands for the path to the document.
21528 \end_layout
21529
21530 \begin_layout Subsubsection
21531
21532 \family sans
21533 Show History
21534 \end_layout
21535
21536 \begin_layout Standard
21537 This shows the complete history of the CVS document.
21538  The output of 
21539 \family typewriter
21540 cvs log "<file-name>"
21541 \family default
21542  is shown in a browser.
21543 \end_layout
21544
21545 \begin_layout Subsubsection
21546 Revision info
21547 \end_layout
21548
21549 \begin_layout Standard
21550 \SpecialChar LyX
21551  supports CVS version number, author name, date and time of last commit.
21552  All those are extracted from 
21553 \family typewriter
21554 cvs log -r <file-name>
21555 \family default
21556 .
21557  See 
21558 \begin_inset CommandInset ref
21559 LatexCommand ref
21560 reference "subsec:VCS-Revision-Information"
21561
21562 \end_inset
21563
21564  for details.
21565 \end_layout
21566
21567 \begin_layout Subsection
21568 SVN commands in \SpecialChar LyX
21569
21570 \end_layout
21571
21572 \begin_layout Standard
21573 SVN is now partially supported by \SpecialChar LyX
21574 .
21575  You can find the commands in the 
21576 \family sans
21577 File\SpecialChar menuseparator
21578 Version
21579 \begin_inset space ~
21580 \end_inset
21581
21582 Control
21583 \family default
21584  submenu.
21585  Please note that if you use password protected access to repository via
21586  ssh, you will be asked in terminal window.
21587  \SpecialChar LyX
21588  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21589 \begin_inset Foot
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593 Most of the commands will work with 1.4 too, see 
21594 \begin_inset CommandInset ref
21595 LatexCommand ref
21596 reference "subsec:SVN-Repo-Update"
21597
21598 \end_inset
21599
21600 .
21601  There seems to be currently unresolved permissions problem under SVN 1.8
21602  with reverting changes when file is locked.
21603 \end_layout
21604
21605 \end_inset
21606
21607
21608 \end_layout
21609
21610 \begin_layout Subsubsection
21611
21612 \family sans
21613 Register
21614 \end_layout
21615
21616 \begin_layout Standard
21617 If your document is not under revision control, this is the only item shown
21618  in the menu.
21619  And if it is under revision control, the 
21620 \family sans
21621 Register
21622 \family default
21623  item is not visible.
21624 \end_layout
21625
21626 \begin_layout Standard
21627 This command registers in SVN your document ONLY in case you have already
21628  the documents directory under SVN control (in particular 
21629 \family typewriter
21630 .svn/entries
21631 \family default
21632  file exists).
21633  This means you have to checkout the archive by yourself.
21634 \end_layout
21635
21636 \begin_layout Standard
21637 Then you are asked interactively to supply an initial description of the
21638  document.
21639  Don't forget that registered file is not yet commited.
21640 \end_layout
21641
21642 \begin_layout Standard
21643 SVN command that is run: 
21644 \family typewriter
21645 svn add -q 
21646 \begin_inset Quotes qld
21647 \end_inset
21648
21649 <file-name>
21650 \begin_inset Quotes qld
21651 \end_inset
21652
21653
21654 \end_layout
21655
21656 \begin_layout Standard
21657 Read 
21658 \family typewriter
21659 man svn
21660 \family default
21661  to understand the switches.
21662 \end_layout
21663
21664 \begin_layout Subsubsection
21665
21666 \family sans
21667 Check In Changes
21668 \end_layout
21669
21670 \begin_layout Standard
21671 When you are finished editing a file, you commit your changes.
21672  When you do this, you are asked for a description of the changes.
21673  After that changes are commited.
21674 \end_layout
21675
21676 \begin_layout Standard
21677 SVN command:
21678 \begin_inset Foot
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 In case locking is not enabled.
21683  See Section 
21684 \begin_inset CommandInset ref
21685 LatexCommand ref
21686 reference "subsec:SVN-File-Locking"
21687
21688 \end_inset
21689
21690 .
21691 \end_layout
21692
21693 \end_inset
21694
21695  
21696 \family typewriter
21697 svn commit -q -m"<description>" <file-name>
21698 \end_layout
21699
21700 \begin_layout Subsubsection
21701
21702 \family sans
21703 Check Out For Edit
21704 \end_layout
21705
21706 \begin_layout Standard
21707 Updates the changes of this file from the repository.
21708  Be sure you understand SVN merging and conflicts resolving before using
21709  this function, because all conflicts has to be resolved manually by you!
21710 \end_layout
21711
21712 \begin_layout Standard
21713 SVN command:
21714 \begin_inset Foot
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 Ditto.
21719 \end_layout
21720
21721 \end_inset
21722
21723  
21724 \family typewriter
21725 svn update --non-interactive 
21726 \begin_inset Quotes qld
21727 \end_inset
21728
21729 <file-name>
21730 \begin_inset Quotes qld
21731 \end_inset
21732
21733
21734 \end_layout
21735
21736 \begin_layout Subsubsection
21737
21738 \family sans
21739 Revert To Repository Version
21740 \end_layout
21741
21742 \begin_layout Standard
21743 This will discard all changes made to the document since the last check
21744  in.
21745  You get a warning before changes are discarded.
21746 \end_layout
21747
21748 \begin_layout Standard
21749 SVN command: 
21750 \family typewriter
21751 svn revert -q 
21752 \begin_inset Quotes qld
21753 \end_inset
21754
21755 <file-name>
21756 \begin_inset Quotes qld
21757 \end_inset
21758
21759
21760 \end_layout
21761
21762 \begin_layout Subsubsection
21763
21764 \family sans
21765 Copy
21766 \end_layout
21767
21768 \begin_layout Standard
21769 This will create a copy of the current document including the version history.
21770  It requires a clean document without any changes since the last checkin.
21771  You are asked for a file name and a description of the copy operation.
21772  After that the copy is created, both locally and in the repository.
21773  If the parent directories of the copied and original document differ, all
21774  relative paths of included files of the copy are adjusted (like in 
21775 \family sans
21776 File\SpecialChar menuseparator
21777 Save As
21778 \family default
21779 \SpecialChar ldots
21780 ).
21781  Finally, the copy is loaded instead of the original document.
21782 \end_layout
21783
21784 \begin_layout Labeling
21785 \labelwidthstring 00.00.0000
21786 SVN
21787 \begin_inset space ~
21788 \end_inset
21789
21790 commands: 
21791 \begin_inset space ~
21792 \end_inset
21793
21794
21795 \begin_inset Newline newline
21796 \end_inset
21797
21798
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 svn copy -q 
21804 \family typewriter
21805
21806 \begin_inset Quotes qld
21807 \end_inset
21808
21809 <file-name>
21810 \begin_inset Quotes qld
21811 \end_inset
21812
21813  
21814 \begin_inset Quotes qld
21815 \end_inset
21816
21817 <new-file-name>
21818 \begin_inset Quotes qld
21819 \end_inset
21820
21821
21822 \end_layout
21823
21824 \end_inset
21825
21826
21827 \begin_inset Newline newline
21828 \end_inset
21829
21830
21831 \begin_inset Flex Code
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835 svn commit
21836 \end_layout
21837
21838 \end_inset
21839
21840
21841 \end_layout
21842
21843 \begin_layout Subsubsection
21844
21845 \family sans
21846 Rename
21847 \end_layout
21848
21849 \begin_layout Standard
21850 This will rename the current document including the version history.
21851  It requires a clean document without any changes since the last checkin.
21852  You are asked for a file name and a description of the rename operation.
21853  After that the document is renamed, both locally and in the repository.
21854  If the parent directories of the new and old file names differ, all relative
21855  paths of included files are adjusted (like in 
21856 \family sans
21857 File\SpecialChar menuseparator
21858 Save As
21859 \family default
21860 \SpecialChar ldots
21861 ).
21862  Finally, the document is reloaded using the new name.
21863 \end_layout
21864
21865 \begin_layout Labeling
21866 \labelwidthstring 00.00.0000
21867 SVN
21868 \begin_inset space ~
21869 \end_inset
21870
21871 commands: 
21872 \begin_inset space ~
21873 \end_inset
21874
21875
21876 \begin_inset Newline newline
21877 \end_inset
21878
21879
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884 svn move -q 
21885 \family typewriter
21886
21887 \begin_inset Quotes qld
21888 \end_inset
21889
21890 <file-name>
21891 \begin_inset Quotes qld
21892 \end_inset
21893
21894  
21895 \begin_inset Quotes qld
21896 \end_inset
21897
21898 <new-file-name>
21899 \begin_inset Quotes qld
21900 \end_inset
21901
21902
21903 \end_layout
21904
21905 \end_inset
21906
21907
21908 \begin_inset Newline newline
21909 \end_inset
21910
21911
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 svn commit
21917 \end_layout
21918
21919 \end_inset
21920
21921
21922 \end_layout
21923
21924 \begin_layout Subsubsection
21925 \begin_inset CommandInset label
21926 LatexCommand label
21927 name "subsec:SVN-Repo-Update"
21928
21929 \end_inset
21930
21931 Update of the local directory checkout from repository
21932 \begin_inset Foot
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936 Note that this command will work only with subversion 
21937 \begin_inset Formula $\geqq1.5$
21938 \end_inset
21939
21940
21941 \end_layout
21942
21943 \end_inset
21944
21945
21946 \end_layout
21947
21948 \begin_layout Standard
21949 All the commands above have one shortcoming – they deal with the current
21950  document only.
21951  Once your document contains pictures, includes external 
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 .tex
21957 \end_layout
21958
21959 \end_inset
21960
21961  files and so on administration becomes more complicated.
21962  \SpecialChar LyX
21963  now supports updating the whole tree in which resides the document
21964 \begin_inset Foot
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968 One need to organize the files structure so that all external files are
21969  in the same directory or subdirectories of the document.
21970  
21971 \end_layout
21972
21973 \end_inset
21974
21975 .
21976  This become especially useful once you cooperate with people which neither
21977  know about subversion management nor they have ambition to commit additional
21978  material to the repository.
21979  
21980 \end_layout
21981
21982 \begin_layout Standard
21983 \begin_inset Flex Code
21984 status collapsed
21985
21986 \begin_layout Plain Layout
21987 Update local directory from repository
21988 \end_layout
21989
21990 \end_inset
21991
21992  command updates the whole directory and in case of merge conflicts local
21993  version of the files are left, so no unintended data loss occurs.
21994  If local changes are detected user is warned before update starts.
21995 \end_layout
21996
21997 \begin_layout Labeling
21998 \labelwidthstring 00.00.0000
21999 SVN
22000 \begin_inset space ~
22001 \end_inset
22002
22003 commands: 
22004 \begin_inset space ~
22005 \end_inset
22006
22007
22008 \begin_inset Newline newline
22009 \end_inset
22010
22011
22012 \begin_inset Flex Code
22013 status collapsed
22014
22015 \begin_layout Plain Layout
22016 svn diff $path
22017 \end_layout
22018
22019 \end_inset
22020
22021  (Ask if changes are detected.)
22022 \begin_inset Newline newline
22023 \end_inset
22024
22025
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 svn update --accept mine-full $path
22031 \end_layout
22032
22033 \end_inset
22034
22035
22036 \end_layout
22037
22038 \begin_layout Standard
22039 where 
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 $path
22045 \end_layout
22046
22047 \end_inset
22048
22049  stands for the path to the document.
22050 \end_layout
22051
22052 \begin_layout Subsubsection
22053
22054 \family sans
22055 Show History
22056 \end_layout
22057
22058 \begin_layout Standard
22059 This shows the complete history of the SVN document.
22060  The output of 
22061 \family typewriter
22062 svn log 
22063 \begin_inset Quotes qld
22064 \end_inset
22065
22066 <file-name>
22067 \begin_inset Quotes qld
22068 \end_inset
22069
22070
22071 \family default
22072  is shown in a browser.
22073 \end_layout
22074
22075 \begin_layout Subsubsection
22076 File Locking
22077 \begin_inset CommandInset label
22078 LatexCommand label
22079 name "subsec:SVN-File-Locking"
22080
22081 \end_inset
22082
22083
22084 \end_layout
22085
22086 \begin_layout Standard
22087 The file exchange through various revision control systems brings the problem
22088  of merge conflicts in case two different users try to edit the same (parts
22089  of) document.
22090  When such a conflict happens it needs manual resolving and one reasonable
22091  alternative is to provide some kind of locking mechanism, which guarantees
22092  that only one user is allowed to edit file at the given time.
22093 \end_layout
22094
22095 \begin_layout Standard
22096 SVN has two such mechanisms to provide mutual exclusivity for file access
22097  – locks and automatic setting of write permissions (see sec.
22098  
22099 \begin_inset CommandInset ref
22100 LatexCommand ref
22101 reference "subsec:Automatical-Locking-Property"
22102
22103 \end_inset
22104
22105 ) based on 
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 svn:needs-lock
22111 \end_layout
22112
22113 \end_inset
22114
22115  file svn property
22116 \begin_inset Foot
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 \begin_inset Flex URL
22121 status open
22122
22123 \begin_layout Plain Layout
22124
22125 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
22126 \end_layout
22127
22128 \end_inset
22129
22130
22131 \end_layout
22132
22133 \end_inset
22134
22135 .
22136  If this property is detected for a given document \SpecialChar LyX
22137  starts to use SVN locks
22138  for document editing automatically and the whole check-in/out mechanism
22139  switches to the same regimen as for RCS.
22140  This in particular means there are two different modes of file use in \SpecialChar LyX
22141 :
22142 \end_layout
22143
22144 \begin_layout Itemize
22145 Unlocked state.
22146  The loaded file is in the read-only mode.
22147  For editing on needs to check-out.
22148  
22149 \emph on
22150 Check-out
22151 \emph default
22152  consists of updating from the repository and gaining write lock.
22153  If the lock is not possible to obtain, we remain in unlocked state.
22154 \end_layout
22155
22156 \begin_layout Itemize
22157 Locked state.
22158  The loaded file is in the 
22159 \begin_inset Quotes els
22160 \end_inset
22161
22162 normal
22163 \begin_inset Quotes ers
22164 \end_inset
22165
22166  edit mode.
22167  No other user is allowed to edit the file.
22168  
22169 \emph on
22170 Check-in
22171 \emph default
22172  consists of commiting changes and releasing write-lock.
22173  If no changes have been made to the document, no commit will be produced
22174 \begin_inset Foot
22175 status collapsed
22176
22177 \begin_layout Plain Layout
22178 Don't be puzzled by the fact that you will be asked for commit message anyway.
22179 \end_layout
22180
22181 \end_inset
22182
22183  and only the write-lock will be released.
22184 \end_layout
22185
22186 \begin_layout Standard
22187 SVN commands:
22188 \end_layout
22189
22190 \begin_layout Labeling
22191 \labelwidthstring 00.00.0000
22192 Check-in:
22193 \family typewriter
22194  svn commit -q -m"<description>" "<file-name>"
22195 \begin_inset Newline newline
22196 \end_inset
22197
22198 svn unlock "<file-name>"
22199 \end_layout
22200
22201 \begin_layout Labeling
22202 \labelwidthstring 00.00.0000
22203 Check-out: 
22204 \family typewriter
22205 svn update "<file-name>"
22206 \begin_inset Newline newline
22207 \end_inset
22208
22209 svn lock "<file-name>"
22210 \end_layout
22211
22212 \begin_layout Subsubsection
22213
22214 \family typewriter
22215 \begin_inset CommandInset label
22216 LatexCommand label
22217 name "subsec:Automatical-Locking-Property"
22218
22219 \end_inset
22220
22221
22222 \family default
22223 Automatic Locking Property
22224 \end_layout
22225
22226 \begin_layout Standard
22227 The above mentioned automatic setting of write permissions of the .lyx file
22228  can be set through
22229 \family sans
22230  File\SpecialChar menuseparator
22231 Version
22232 \begin_inset space ~
22233 \end_inset
22234
22235 Control\SpecialChar menuseparator
22236 Use Locking Property
22237 \family default
22238 .
22239  This command is active only when the file is not locked on the svn server
22240  (i.e.
22241  you need to check-out before proceeding).
22242 \end_layout
22243
22244 \begin_layout Labeling
22245 \labelwidthstring 00.00.0000
22246 SVN
22247 \begin_inset space ~
22248 \end_inset
22249
22250 commands:
22251 \end_layout
22252
22253 \begin_layout Labeling
22254 \labelwidthstring 00.00.0000
22255 Set:
22256 \family typewriter
22257  svn propset svn:needs-lock ON "<file-name>"
22258 \end_layout
22259
22260 \begin_layout Labeling
22261 \labelwidthstring 00.00.0000
22262 Unset: 
22263 \family typewriter
22264 svn propdel svn:needs-lock "<file-name>"
22265 \end_layout
22266
22267 \begin_layout Subsubsection
22268 \begin_inset CommandInset label
22269 LatexCommand label
22270 name "subsec:VCS-Revision-Information"
22271
22272 \end_inset
22273
22274 Revision Information in Documents
22275 \end_layout
22276
22277 \begin_layout Standard
22278 There are more possibilities how to activate revision information in our
22279  document.
22280 \end_layout
22281
22282 \begin_layout Itemize
22283 \SpecialChar LyX
22284  supports directly:
22285 \end_layout
22286
22287 \begin_deeper
22288 \begin_layout Itemize
22289 tree revision information (
22290 \begin_inset Flex Code
22291 status collapsed
22292
22293 \begin_layout Plain Layout
22294 vcs-tree-revision
22295 \end_layout
22296
22297 \end_inset
22298
22299 ).
22300  The result is the output of the 
22301 \begin_inset Flex Code
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305 svnversion
22306 \end_layout
22307
22308 \end_inset
22309
22310  command, the following table gives you an idea, how to read the results.
22311 \end_layout
22312
22313 \begin_layout Standard
22314 \align center
22315 \begin_inset Tabular
22316 <lyxtabular version="3" rows="6" columns="2">
22317 <features tabularvalignment="middle">
22318 <column alignment="left" valignment="top">
22319 <column alignment="left" valignment="top">
22320 <row>
22321 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22322 \begin_inset Text
22323
22324 \begin_layout Plain Layout
22325
22326 \series bold
22327 Output
22328 \end_layout
22329
22330 \end_inset
22331 </cell>
22332 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22333 \begin_inset Text
22334
22335 \begin_layout Plain Layout
22336
22337 \series bold
22338 Meaning
22339 \end_layout
22340
22341 \end_inset
22342 </cell>
22343 </row>
22344 <row>
22345 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22346 \begin_inset Text
22347
22348 \begin_layout Plain Layout
22349 4123:4168
22350 \end_layout
22351
22352 \end_inset
22353 </cell>
22354 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22355 \begin_inset Text
22356
22357 \begin_layout Plain Layout
22358 mixed revision working copy
22359 \end_layout
22360
22361 \end_inset
22362 </cell>
22363 </row>
22364 <row>
22365 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22366 \begin_inset Text
22367
22368 \begin_layout Plain Layout
22369 4168M
22370 \end_layout
22371
22372 \end_inset
22373 </cell>
22374 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22375 \begin_inset Text
22376
22377 \begin_layout Plain Layout
22378 modified working copy
22379 \end_layout
22380
22381 \end_inset
22382 </cell>
22383 </row>
22384 <row>
22385 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22386 \begin_inset Text
22387
22388 \begin_layout Plain Layout
22389 4123S
22390 \end_layout
22391
22392 \end_inset
22393 </cell>
22394 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22395 \begin_inset Text
22396
22397 \begin_layout Plain Layout
22398 switched working copy
22399 \end_layout
22400
22401 \end_inset
22402 </cell>
22403 </row>
22404 <row>
22405 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22406 \begin_inset Text
22407
22408 \begin_layout Plain Layout
22409 4123P
22410 \end_layout
22411
22412 \end_inset
22413 </cell>
22414 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22415 \begin_inset Text
22416
22417 \begin_layout Plain Layout
22418 partial working copy, from a sparse checkout
22419 \end_layout
22420
22421 \end_inset
22422 </cell>
22423 </row>
22424 <row>
22425 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22426 \begin_inset Text
22427
22428 \begin_layout Plain Layout
22429 4123:4168MS
22430 \end_layout
22431
22432 \end_inset
22433 </cell>
22434 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22435 \begin_inset Text
22436
22437 \begin_layout Plain Layout
22438 mixed revision, modified, switched working copy
22439 \end_layout
22440
22441 \end_inset
22442 </cell>
22443 </row>
22444 </lyxtabular>
22445
22446 \end_inset
22447
22448
22449 \end_layout
22450
22451 \begin_layout Itemize
22452 file revision information.
22453  The result comes from parsing the output of 
22454 \begin_inset Flex Code
22455 status collapsed
22456
22457 \begin_layout Plain Layout
22458 svn
22459 \begin_inset space ~
22460 \end_inset
22461
22462 info
22463 \begin_inset space ~
22464 \end_inset
22465
22466 --xml
22467 \begin_inset space ~
22468 \end_inset
22469
22470 file.lyx
22471 \end_layout
22472
22473 \end_inset
22474
22475 .
22476  Supported flags are:
22477 \end_layout
22478
22479 \begin_deeper
22480 \begin_layout Itemize
22481 version number of the last commit (
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 vcs-revision
22487 \end_layout
22488
22489 \end_inset
22490
22491 )
22492 \end_layout
22493
22494 \begin_layout Itemize
22495 author of the last commit (
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 vcs-author
22501 \end_layout
22502
22503 \end_inset
22504
22505 )
22506 \end_layout
22507
22508 \begin_layout Itemize
22509 date of the last commit (
22510 \begin_inset Flex Code
22511 status collapsed
22512
22513 \begin_layout Plain Layout
22514 vcs-date
22515 \end_layout
22516
22517 \end_inset
22518
22519 )
22520 \end_layout
22521
22522 \begin_layout Itemize
22523 time of the last commit (
22524 \begin_inset Flex Code
22525 status collapsed
22526
22527 \begin_layout Plain Layout
22528 vcs-time
22529 \end_layout
22530
22531 \end_inset
22532
22533 )
22534 \end_layout
22535
22536 \end_deeper
22537 \begin_layout Standard
22538 You can obtain this info via InsetInfo (
22539 \change_inserted 5863208 1564400022
22540
22541 \lang american
22542 Insert\SpecialChar menuseparator
22543 Field\SpecialChar menuseparator
22544 Version Control Revision
22545 \change_deleted 5863208 1564399852
22546
22547 \lang english
22548 e.g.
22549  
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 info-insert buffer vcs-date
22555 \end_layout
22556
22557 \end_inset
22558
22559
22560 \change_unchanged
22561 ).
22562  The information will be available only when you have the file stored under
22563  svn managment (i.e.
22564  the 
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 .svn
22570 \end_layout
22571
22572 \end_inset
22573
22574  directory is available with your document).
22575 \end_layout
22576
22577 \end_deeper
22578 \begin_layout Itemize
22579 Another—a hacking one—possibility is to use svn keywords
22580 \begin_inset Foot
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22585 \end_layout
22586
22587 \end_inset
22588
22589 .
22590  In short – you set file keywords property (e.g.
22591  
22592 \family sans
22593 svn propset svn:keywords 'Rev' file.lyx
22594 \family default
22595 ) and then paste keyword \SpecialChar TeX
22596  code
22597 \begin_inset Foot
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 This is an easy way how to ensure that \SpecialChar LyX
22602  won't break the line in the middle
22603  of keyword tag.
22604 \end_layout
22605
22606 \end_inset
22607
22608  tag in your document (e.g.
22609  
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614 $Rev$
22615 \end_layout
22616
22617 \end_inset
22618
22619 ).
22620  This way svn client will automatically substitute revision number (e.g.
22621  
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 $Rev: 59 $
22627 \end_layout
22628
22629 \end_inset
22630
22631 ) after each update and commit.
22632  There are more problems with this approach.
22633  Firstly, the '$' character is used in \SpecialChar TeX
22634  world for math equations, so any
22635  occurence of math formula 
22636 \begin_inset Formula $Rev$
22637 \end_inset
22638
22639  become 
22640 \begin_inset Formula $Rev:59$
22641 \end_inset
22642
22643  in your \SpecialChar LyX
22644  document.
22645  Similarly for other keywords like Id, Date, Author, etc.
22646  Secondly svn output is dependent on your locales, so its very easy that
22647  svn would produce some problematic strings once Date is used.
22648  Thirdly you get the whole 'Rev: 59' string in your document instead of
22649  the plain number.
22650  Until subversion implements user's custom keywords it will be hard to use
22651  this approach reliably or let \SpecialChar LyX
22652  to support it directly.
22653 \end_layout
22654
22655 \begin_layout Subsection
22656 SVN and Windows Environment
22657 \end_layout
22658
22659 \begin_layout Quote
22660 My inclination is to say that if the user cannot figure out the command
22661  line operations on their own fairly quickly, they would be well advised
22662  to use TortoiseSVN.
22663  —P.
22664  A.
22665  Rubin
22666 \end_layout
22667
22668 \begin_layout Subsubsection
22669 Preparation
22670 \end_layout
22671
22672 \begin_layout Standard
22673 In addition to installing \SpecialChar LyX
22674 , and having access to a Subversion repository,
22675  the user will need to install the Subversion client program.
22676  A Windows installer for the client program is available from 
22677 \begin_inset CommandInset href
22678 LatexCommand href
22679 name "CollabNet"
22680 target "http://www.collab.net/nonav/downloads/subversion/"
22681 literal "false"
22682
22683 \end_inset
22684
22685 .
22686  The user may also want to install 
22687 \begin_inset CommandInset href
22688 LatexCommand href
22689 name "TortoiseSVN"
22690 target "http://tortoisesvn.tigris.org/"
22691 literal "false"
22692
22693 \end_inset
22694
22695 , which integrates Subversion operations into the context (rightclick) menu
22696  of Windows Explorer.
22697  Operations done outside \SpecialChar LyX
22698  will typically be more convenient using the Explorer
22699  context menu.
22700  Note that TortoiseSVN is not a replacement for the client program, which
22701  is what \SpecialChar LyX
22702  itself will use.
22703 \end_layout
22704
22705 \begin_layout Subsubsection
22706 Bringing a document under Subversion control
22707 \end_layout
22708
22709 \begin_layout Standard
22710 Before a \SpecialChar LyX
22711  document can be brought under version control in Subversion, its
22712  parent directory needs to be under version control.
22713  If the document is being added to a project already in the repository,
22714  this is accomplished by checking the project out to the directory where
22715  the new document will be placed.
22716  If the project itself is not yet under version control (for instance, if
22717  this document starts a new project), the directory must be imported into
22718  the repository.
22719  This is done outside \SpecialChar LyX
22720 .
22721  Both import and checkout are easily accomplished from the Explorer context
22722  menu using TortoiseSVN, or alternatively can be done using the command
22723  line client at a DOS prompt.
22724  The procedure for importing the project using TortoiseSVN is described
22725  below, assuming an existing repository and a new project being started
22726  in 
22727 \family typewriter
22728 C:
22729 \backslash
22730 new project
22731 \family default
22732 .
22733  For information on using the Subversion client program, run 
22734 \family typewriter
22735 svn --help 
22736 \family default
22737 in a DOS shell.
22738 \end_layout
22739
22740 \begin_layout Enumerate
22741 Locate 
22742 \family typewriter
22743 C:
22744 \backslash
22745 new project 
22746 \family default
22747 in Windows Explorer, right click it, and select 
22748 \family sans
22749 TortoiseSVN\SpecialChar menuseparator
22750 Repo-browser
22751 \family default
22752 .
22753  If necessary, adjust the URL for the repository, then click OK.
22754 \end_layout
22755
22756 \begin_layout Enumerate
22757 Right click the level of the repository under which you want to place the
22758  new project folder (typically the top level) and click 
22759 \family sans
22760 Create folder
22761 \family default
22762  Supply a name for the project folder and click OK.
22763  Add a message for the log file if desired, then click OK again.
22764  The new project folder should appear in the repository.
22765  Finally, click OK again to exit the repository browser.
22766 \end_layout
22767
22768 \begin_layout Enumerate
22769 Once again right click 
22770 \family typewriter
22771 C:
22772 \backslash
22773 new project
22774 \family default
22775 , this time selecting SVN Checkout\SpecialChar ldots
22776  Select the URL of the project folder
22777  you just created in the repository, and set the checkout directory to 
22778 \family typewriter
22779 C:
22780 \backslash
22781 new project.
22782
22783 \family default
22784  Click OK.
22785  You will be warned about a non-empty folder; click OK to proceed.
22786  You should now have a 
22787 \family typewriter
22788 .svn
22789 \family default
22790  directory under 
22791 \family typewriter
22792 C:
22793 \backslash
22794 new project.
22795 \end_layout
22796
22797 \begin_layout Enumerate
22798 Create or open your document in \SpecialChar LyX
22799  and click 
22800 \family sans
22801 File\SpecialChar menuseparator
22802 Version
22803 \begin_inset space ~
22804 \end_inset
22805
22806 Control\SpecialChar menuseparator
22807 Register.
22808  
22809 \family default
22810 Add a log message and click OK to commit the document to version control.
22811 \end_layout
22812
22813 \begin_layout Standard
22814 From this point onward, you should have full functionality in the 
22815 \family sans
22816 File\SpecialChar menuseparator
22817 Version
22818 \begin_inset space ~
22819 \end_inset
22820
22821 Control
22822 \family default
22823  menu.
22824  You also have the option of checking the document in and out, viewing its
22825  history, etc.
22826  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22827  client program from a command prompt.
22828 \end_layout
22829
22830 \begin_layout Subsubsection
22831 SSH tunnel used with SVN under Windows
22832 \end_layout
22833
22834 \begin_layout Standard
22835 Compared with Linux setting up an svn client to communicate over ssh under
22836  Windows is a rather troublesome task.
22837  We will at least offer some hints how to setup the client side but prior
22838  knowledge about ssh and the Windows command line is needed, also be prepared
22839  for a great deal of frustration\SpecialChar ldots
22840
22841 \end_layout
22842
22843 \begin_layout Enumerate
22844 Get an svn client for windows, as described in the previous sections.
22845  When it is a fresh install run some svn command (e.g.
22846  
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851 svn --version
22852 \end_layout
22853
22854 \end_inset
22855
22856 ) to create config files, which you will need to change later on.
22857 \end_layout
22858
22859 \begin_layout Enumerate
22860 Choose an ssh client for Windows.
22861  There are several possibilities, we will use the one from Putty tools
22862 \begin_inset Foot
22863 status collapsed
22864
22865 \begin_layout Plain Layout
22866 \begin_inset Flex URL
22867 status collapsed
22868
22869 \begin_layout Plain Layout
22870
22871 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22872 \end_layout
22873
22874 \end_inset
22875
22876
22877 \end_layout
22878
22879 \end_inset
22880
22881 .
22882  You will need to set the connection up so that the client doesn't ask for
22883  any password from you.
22884  To keep things easy we will use only keys without any additional password
22885  protection etc.
22886 \end_layout
22887
22888 \begin_deeper
22889 \begin_layout Enumerate
22890 Generate keys by 
22891 \begin_inset Flex Code
22892 status collapsed
22893
22894 \begin_layout Plain Layout
22895 puttygen
22896 \end_layout
22897
22898 \end_inset
22899
22900 .
22901  Save your private .ppk key file and put the public one on the server side.
22902  If the SVN server runs on Linux, note that the format of the public key
22903  is not compatible with Linux openssh and you will need to direcly copy-paste
22904  the key from the 
22905 \begin_inset Quotes eld
22906 \end_inset
22907
22908
22909 \emph on
22910 Public key for pasting into OpenSSH authorized_keys file
22911 \emph default
22912 :
22913 \begin_inset Quotes erd
22914 \end_inset
22915
22916  edit field into the server's 
22917 \begin_inset Flex Code
22918 status collapsed
22919
22920 \begin_layout Plain Layout
22921 ~/.ssh/authorized_keys
22922 \end_layout
22923
22924 \end_inset
22925
22926  / 
22927 \begin_inset Flex Code
22928 status collapsed
22929
22930 \begin_layout Plain Layout
22931 authorized_keys2
22932 \end_layout
22933
22934 \end_inset
22935
22936  file.
22937 \end_layout
22938
22939 \begin_layout Enumerate
22940 Get the Putty's 
22941 \begin_inset Flex Code
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945 plink
22946 \end_layout
22947
22948 \end_inset
22949
22950 .
22951  In the SVN config file
22952 \begin_inset Foot
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956 Exact path depends on Windows version, usually somewhere around 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 c:
22962 \backslash
22963 Documents and Settings
22964 \backslash
22965 user
22966 \backslash
22967 Application Data
22968 \backslash
22969 Subversion
22970 \backslash
22971 config
22972 \end_layout
22973
22974 \end_inset
22975
22976  / 
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981 AppData
22982 \backslash
22983 Roaming
22984 \backslash
22985 Subversion
22986 \end_layout
22987
22988 \end_inset
22989
22990 .
22991 \end_layout
22992
22993 \end_inset
22994
22995 , section [tunnels], setup ssh command, e.g.
22996  
22997 \begin_inset Flex Code
22998 status collapsed
22999
23000 \begin_layout Plain Layout
23001 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
23002 \end_layout
23003
23004 \end_inset
23005
23006 .
23007 \begin_inset Foot
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 It will usually take a lot of time to get exact command right and it depends
23012  on many things.
23013  For example do not have some remote server saved as a default session in
23014  Putty etc.
23015  If things fail, try to connect via plink without SVN first.
23016 \end_layout
23017
23018 \end_inset
23019
23020
23021 \end_layout
23022
23023 \end_deeper
23024 \begin_layout Enumerate
23025 Checkout the SVN archive, e.
23026 \begin_inset space \thinspace{}
23027 \end_inset
23028
23029 g.
23030 \begin_inset Newline newline
23031 \end_inset
23032
23033
23034 \begin_inset Flex Code
23035 status collapsed
23036
23037 \begin_layout Plain Layout
23038 svn co svn+ssh://user@server/repository_path
23039 \end_layout
23040
23041 \end_inset
23042
23043 .
23044 \end_layout
23045
23046 \begin_layout Subsubsection
23047 End-of-Line Conversions
23048 \end_layout
23049
23050 \begin_layout Standard
23051 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
23052  will
23053  use different line endings inside the .lyx files.
23054  This is not a problem as far as \SpecialChar LyX
23055  functionality is concerned, but the commit
23056  diffs will be huge and merge-conflicts prone.
23057  Fortunately SVN itself knows
23058 \begin_inset Foot
23059 status collapsed
23060
23061 \begin_layout Plain Layout
23062 \begin_inset Flex URL
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066
23067 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
23068 \end_layout
23069
23070 \end_inset
23071
23072
23073 \end_layout
23074
23075 \end_inset
23076
23077  how to deal with CR/LF problems when switching .lyx files to the 
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 native
23083 \end_layout
23084
23085 \end_inset
23086
23087  mode.
23088 \begin_inset Foot
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092 For the lazy guys: 
23093 \begin_inset Flex Code
23094 status collapsed
23095
23096 \begin_layout Plain Layout
23097 svn propset svn:eol-style native FILE_NAME
23098 \end_layout
23099
23100 \end_inset
23101
23102
23103 \end_layout
23104
23105 \end_inset
23106
23107
23108 \end_layout
23109
23110 \begin_layout Subsection
23111 GIT commands in \SpecialChar LyX
23112
23113 \end_layout
23114
23115 \begin_layout Standard
23116 A minimal subset of GIT commands is now supported by \SpecialChar LyX
23117 .
23118  You can find the commands in the 
23119 \family sans
23120 File\SpecialChar menuseparator
23121 Version
23122 \begin_inset space ~
23123 \end_inset
23124
23125 Control
23126 \family default
23127  submenu.
23128  Please note that if you use password protected access to repository via
23129  ssh, you will be asked in terminal window.
23130  \SpecialChar LyX
23131  was tested against GIT 1.7.
23132 \begin_inset Foot
23133 status collapsed
23134
23135 \begin_layout Plain Layout
23136 Windows users please note that you need to ensure that git is on the path.
23137  This can be set from within \SpecialChar LyX
23138  at 
23139 \family sans
23140 Tools\SpecialChar menuseparator
23141 Preferences\SpecialChar menuseparator
23142 Paths\SpecialChar menuseparator
23143 PATH prefix
23144 \family default
23145 .
23146 \end_layout
23147
23148 \end_inset
23149
23150
23151 \end_layout
23152
23153 \begin_layout Standard
23154 One big difference of GIT and the other supported version control systems
23155  is the distributed nature of GIT: With traditional version control systems
23156  there is one central server which hosts the repository.
23157  Users commit their changes to the server, and get updates made by other
23158  users from it.
23159  With GIT, users commit to a local repository.
23160  The local repository can be synchronized with one or more remote repositories
23161  using the 
23162 \begin_inset Flex Code
23163 status collapsed
23164
23165 \begin_layout Plain Layout
23166 pull
23167 \end_layout
23168
23169 \end_inset
23170
23171  and 
23172 \begin_inset Flex Code
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176 push
23177 \end_layout
23178
23179 \end_inset
23180
23181  GIT commands.
23182  \SpecialChar LyX
23183  does not interact in any way with remote GIT repositories.
23184  It works exclusively with the local repository in a very similar way as
23185  with a central CVS or SVN repository.
23186  If you use remote GIT repositories you need to do the 
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 pull
23192 \end_layout
23193
23194 \end_inset
23195
23196  and 
23197 \begin_inset Flex Code
23198 status collapsed
23199
23200 \begin_layout Plain Layout
23201 push
23202 \end_layout
23203
23204 \end_inset
23205
23206  operations with your favourite GIT client.
23207 \end_layout
23208
23209 \begin_layout Subsubsection
23210
23211 \family sans
23212 Register
23213 \end_layout
23214
23215 \begin_layout Standard
23216 If your document is not under revision control, this is the only item shown
23217  in the menu.
23218  And if it is under revision control, the 
23219 \family sans
23220 Register
23221 \family default
23222  item is not visible.
23223 \end_layout
23224
23225 \begin_layout Standard
23226 This command registers in GIT your document ONLY in case you have already
23227  the documents directory under GIT control (in particular 
23228 \family typewriter
23229 .git/index
23230 \family default
23231  file exists).
23232  This means you have to checkout the archive by yourself.
23233 \end_layout
23234
23235 \begin_layout Standard
23236 Then you are asked interactively to supply an initial description of the
23237  document.
23238  Don't forget that registered file is not yet committed.
23239 \end_layout
23240
23241 \begin_layout Standard
23242 GIT command that is run: 
23243 \family typewriter
23244 git add 
23245 \begin_inset Quotes qld
23246 \end_inset
23247
23248 <file-name>
23249 \begin_inset Quotes qld
23250 \end_inset
23251
23252
23253 \end_layout
23254
23255 \begin_layout Standard
23256 Read 
23257 \family typewriter
23258 man git
23259 \family default
23260  to understand the switches.
23261 \end_layout
23262
23263 \begin_layout Subsubsection
23264
23265 \family sans
23266 Check In Changes
23267 \end_layout
23268
23269 \begin_layout Standard
23270 When you are finished editing a file, you commit your changes.
23271  When you do this, you are asked for a description of the changes.
23272  After that changes are committed.
23273 \end_layout
23274
23275 \begin_layout Standard
23276 GIT command: 
23277 \family typewriter
23278 git commit -q -m"<description>" <file-name>
23279 \end_layout
23280
23281 \begin_layout Subsubsection
23282
23283 \family sans
23284 Revert To Repository Version
23285 \end_layout
23286
23287 \begin_layout Standard
23288 This will discard all changes made to the document since the last check
23289  in.
23290  You get a warning before changes are discarded.
23291 \end_layout
23292
23293 \begin_layout Standard
23294 GIT command: 
23295 \family typewriter
23296 git checkout -q 
23297 \begin_inset Quotes qld
23298 \end_inset
23299
23300 <file-name>
23301 \begin_inset Quotes qld
23302 \end_inset
23303
23304
23305 \end_layout
23306
23307 \begin_layout Subsubsection
23308
23309 \family sans
23310 Rename
23311 \end_layout
23312
23313 \begin_layout Standard
23314 This will rename the current document including the version history.
23315  It requires a clean document without any changes since the last checkin.
23316  You are asked for a file name and a description of the rename operation.
23317  After that the document is renamed, both locally and in the repository.
23318  If the parent directories of the new and old file names differ, all relative
23319  paths of included files are adjusted (like in 
23320 \family sans
23321 File\SpecialChar menuseparator
23322 Save As
23323 \family default
23324 \SpecialChar ldots
23325 ).
23326  Finally, the document is reloaded using the new name.
23327 \end_layout
23328
23329 \begin_layout Labeling
23330 \labelwidthstring 00.00.0000
23331 GIT
23332 \begin_inset space ~
23333 \end_inset
23334
23335 commands: 
23336 \begin_inset space ~
23337 \end_inset
23338
23339
23340 \begin_inset Newline newline
23341 \end_inset
23342
23343
23344 \begin_inset Flex Code
23345 status collapsed
23346
23347 \begin_layout Plain Layout
23348 git mv 
23349 \family typewriter
23350
23351 \begin_inset Quotes qld
23352 \end_inset
23353
23354 <file-name>
23355 \begin_inset Quotes qld
23356 \end_inset
23357
23358  
23359 \begin_inset Quotes qld
23360 \end_inset
23361
23362 <new-file-name>
23363 \begin_inset Quotes qld
23364 \end_inset
23365
23366
23367 \end_layout
23368
23369 \end_inset
23370
23371
23372 \begin_inset Newline newline
23373 \end_inset
23374
23375
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 git commit
23381 \end_layout
23382
23383 \end_inset
23384
23385
23386 \end_layout
23387
23388 \begin_layout Subsubsection
23389
23390 \family sans
23391 Show History
23392 \end_layout
23393
23394 \begin_layout Standard
23395 This shows the complete history of the GIT document.
23396  The output of 
23397 \family typewriter
23398 git log 
23399 \begin_inset Quotes qld
23400 \end_inset
23401
23402 <file-name>
23403 \begin_inset Quotes qld
23404 \end_inset
23405
23406
23407 \family default
23408  is shown in a browser.
23409 \end_layout
23410
23411 \begin_layout Subsubsection
23412 Version Info
23413 \end_layout
23414
23415 \begin_layout Standard
23416 \SpecialChar LyX
23417  supports GIT hash number of the last commit to the file, 
23418 \change_inserted 1119979965 1564297456
23419 its abbreviated form, 
23420 \change_unchanged
23421 author name, date and time of last commit.
23422  All those are extracted from 
23423 \family typewriter
23424 git log -n 1 --pretty=format:%H%n
23425 \change_inserted 1119979965 1564297427
23426 %h%n
23427 \change_unchanged
23428 %an%n%ai
23429 \family default
23430 .
23431  Tree version information is obtained via 
23432 \family typewriter
23433 git describe --abbrev --dirty --long
23434 \family default
23435 .
23436  See 
23437 \begin_inset CommandInset ref
23438 LatexCommand ref
23439 reference "subsec:VCS-Revision-Information"
23440
23441 \end_inset
23442
23443  for other details.
23444 \end_layout
23445
23446 \begin_layout Subsection
23447 Further tuning
23448 \end_layout
23449
23450 \begin_layout Standard
23451 With the recent addition of the 
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 vc-command
23457 \end_layout
23458
23459 \end_inset
23460
23461  function \SpecialChar LyX
23462  power users are allowed to create their own commands for revision
23463  control.
23464 \end_layout
23465
23466 \begin_layout Standard
23467 As an example you can see how two TortoiseSVN commands could be integrated
23468  directly:
23469 \end_layout
23470
23471 \begin_layout Description
23472 Commit: 
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23478 \end_layout
23479
23480 \end_inset
23481
23482
23483 \end_layout
23484
23485 \begin_layout Description
23486 Revert: 
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23492 \end_layout
23493
23494 \end_inset
23495
23496
23497 \end_layout
23498
23499 \begin_layout Subsection
23500 Version control and Document comparison
23501 \end_layout
23502
23503 \begin_layout Standard
23504 One of the typical uses of version control is to inspect the changes between
23505  revisions, usually by creating 
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 diff
23511 \end_layout
23512
23513 \end_inset
23514
23515  dumps.
23516  While this is useful for plain text files, it is much less useful in the
23517  case of \SpecialChar LyX
23518  files, which have more a complicated structure.
23519  Hence we provide binding to the Document comparison feature.
23520  There are two ways of calling this feature – either by direct call of 
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 vc-compare
23526 \end_layout
23527
23528 \end_inset
23529
23530  \SpecialChar LyX
23531  function (for details see \SpecialChar LyX
23532  functions manual) or by the toolbar icon 
23533 \begin_inset Info
23534 type  "icon"
23535 arg   "vc-compare"
23536 \end_inset
23537
23538  or the menu item 
23539 \begin_inset Info
23540 type  "menu"
23541 arg   "vc-compare"
23542 \end_inset
23543
23544 , respectively.
23545  One can either compare two chosen revisions of the document or he can simply
23546  compare the current version of edited text with older revisions (where
23547  '
23548 \begin_inset Flex Noun
23549 status collapsed
23550
23551 \begin_layout Plain Layout
23552 0
23553 \end_layout
23554
23555 \end_inset
23556
23557 ' revisions back means comparison of the edited file with last commited
23558  revision).
23559  
23560 \end_layout
23561
23562 \begin_layout Standard
23563 This feature is supported for SVN and RCS though due to the more complicated
23564  versioning scheme of RCS there is a constraint – when addressing the revisions
23565  in dialog, numbers always point to the last number in RCS revision number,
23566  i.e.
23567  '35' in '1.2.35'.
23568  We don't currently support GIT addressing of revisions, one can just compare
23569  edited document with its revision X steps backs, where X is addressed as
23570  
23571 \begin_inset Flex Code
23572 status collapsed
23573
23574 \begin_layout Plain Layout
23575 HEAD~X
23576 \end_layout
23577
23578 \end_inset
23579
23580 .
23581 \end_layout
23582
23583 \begin_layout Section
23584 Literate Programming
23585 \end_layout
23586
23587 \begin_layout Standard
23588 Updated by 
23589 \noun on
23590 Kayvan Sylvan 
23591 \noun default
23592 (kayvan@sylvan.com)
23593 \noun on
23594
23595 \noun default
23596 original documentation written by 
23597 \noun on
23598 Edmar Wienskoski Jr.
23599
23600 \noun default
23601  (edmar-w-jr@technologist.com)
23602 \end_layout
23603
23604 \begin_layout Subsection
23605 Introduction
23606 \end_layout
23607
23608 \begin_layout Standard
23609 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23610  for literate
23611  programming, where it is assumed that you are familiar with this programming
23612  technique, and know what 
23613 \begin_inset Quotes eld
23614 \end_inset
23615
23616 tangling
23617 \begin_inset Quotes erd
23618 \end_inset
23619
23620  and 
23621 \begin_inset Quotes eld
23622 \end_inset
23623
23624 weaving
23625 \begin_inset Quotes erd
23626 \end_inset
23627
23628  means.
23629  If that is not the case, please follow the web links provided in the following
23630  sections.
23631  There is a lot of good documentation out there covering old development
23632  history to the latest tools tips.
23633 \end_layout
23634
23635 \begin_layout Standard
23636 It is also assumed that you are familiar with \SpecialChar LyX
23637  itself to a point that you
23638  are comfortable changing your \SpecialChar LyX
23639  preferences, and X resources file.
23640  If that is not the case please refer to other \SpecialChar LyX
23641  documentation to cover your
23642  specific needs.
23643 \end_layout
23644
23645 \begin_layout Subsection
23646 Literate Programming
23647 \end_layout
23648
23649 \begin_layout Standard
23650 From the Literate Programming FAQ: 
23651 \end_layout
23652
23653 \begin_layout Quotation
23654 Literate programming is the combination of documentation and source together
23655  in a fashion suited for reading by human beings.
23656  In fact, literate programs should be enjoyable reading, even inviting!
23657  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23658  and documentation in a single file.
23659  Literate programming tools then parse the file to produce either readable
23660  documentation or compilable source.
23661  The WEB style of literate programming was created by D.
23662 \begin_inset space \thinspace{}
23663 \end_inset
23664
23665 E.
23666  Knuth during the development of his \SpecialChar TeX
23667  typesetting software.
23668  
23669 \end_layout
23670
23671 \begin_layout Standard
23672 Another excerpt says:
23673 \end_layout
23674
23675 \begin_layout Quotation
23676
23677 \emph on
23678 How is literate programming different from verbose commenting?
23679 \end_layout
23680
23681 \begin_layout Quotation
23682 There are three distinguishing characteristics.
23683  In order of importance, they are: 
23684 \end_layout
23685
23686 \begin_deeper
23687 \begin_layout Itemize
23688 flexible order of elaboration 
23689 \end_layout
23690
23691 \begin_layout Itemize
23692 automatic support for browsing 
23693 \end_layout
23694
23695 \begin_layout Itemize
23696 typeset documentation, especially diagrams and mathematics 
23697 \end_layout
23698
23699 \end_deeper
23700 \begin_layout Standard
23701 Now that I sparked your curiosity, take a look in the references.
23702 \end_layout
23703
23704 \begin_layout Subsubsection
23705 References
23706 \end_layout
23707
23708 \begin_layout Standard
23709 The complete Literate Programming FAQ can be found at:
23710 \end_layout
23711
23712 \begin_layout Quote
23713 Literate Programming FAQ 
23714 \begin_inset Flex URL
23715 status open
23716
23717 \begin_layout Plain Layout
23718
23719 http://www.literateprogramming.com/lpfaq.pdf
23720 \end_layout
23721
23722 \end_inset
23723
23724
23725 \end_layout
23726
23727 \begin_layout Standard
23728 The FAQ lists 23 (twenty three!) different literate programming tools.
23729  Where some are specialized or 
23730 \begin_inset Quotes eld
23731 \end_inset
23732
23733 tailored
23734 \begin_inset Quotes erd
23735 \end_inset
23736
23737  for particular programming languages, while other have general scope.
23738  I selected 
23739 \noun on
23740 Noweb
23741 \noun default
23742  for my own use for several reasons:
23743 \end_layout
23744
23745 \begin_layout Itemize
23746 It can generate the documentation either in \SpecialChar LaTeX
23747  or HTML.
23748 \end_layout
23749
23750 \begin_layout Itemize
23751 It has a open architecture, i.
23752 \begin_inset space \thinspace{}
23753 \end_inset
23754
23755 e.
23756 \begin_inset space \space{}
23757 \end_inset
23758
23759 it is easy to plug in new filters
23760 \begin_inset Foot
23761 status collapsed
23762
23763 \begin_layout Plain Layout
23764
23765 \emph on
23766 Filters 
23767 \emph default
23768 are programs that read a given data stream and output a manipulated data
23769  stream.
23770  That way, a WEB file (consisting of literate code) can be turned into a
23771  file consisting only of C program code or \SpecialChar LaTeX
23772  code.
23773 \end_layout
23774
23775 \end_inset
23776
23777  and to perform special processing that you may need.
23778  
23779 \end_layout
23780
23781 \begin_layout Itemize
23782 There is a good selection of filters available already (the HTML is one
23783  of them).
23784 \end_layout
23785
23786 \begin_layout Itemize
23787 It is free.
23788 \end_layout
23789
23790 \begin_layout Standard
23791 The Noweb web page can be found at: 
23792 \end_layout
23793
23794 \begin_layout Quote
23795 Noweb home page 
23796 \begin_inset Flex URL
23797 status collapsed
23798
23799 \begin_layout Plain Layout
23800
23801 https://www.cs.tufts.edu/~nr/noweb/
23802 \end_layout
23803
23804 \end_inset
23805
23806
23807 \end_layout
23808
23809 \begin_layout Standard
23810 Starting from there you can reach many other interesting links and even
23811  some literate program examples.
23812 \end_layout
23813
23814 \begin_layout Subsection
23815 \SpecialChar LyX
23816  and Literate Programming with Noweb
23817 \end_layout
23818
23819 \begin_layout Standard
23820 The \SpecialChar LyX
23821  support for Literate Programming is provided by using the generic \SpecialChar LyX
23822
23823  converters mechanism.
23824  This support is provided in a 
23825 \begin_inset Quotes eld
23826 \end_inset
23827
23828 Noweb independent
23829 \begin_inset Quotes erd
23830 \end_inset
23831
23832  way, i.
23833 \begin_inset space \thinspace{}
23834 \end_inset
23835
23836 e.
23837 \begin_inset space \space{}
23838 \end_inset
23839
23840 you will be able to use this new \SpecialChar LyX
23841  feature with some other literate programming
23842  tool of your choice by just changing your \SpecialChar LyX
23843  preferences.
23844 \end_layout
23845
23846 \begin_layout Subsubsection
23847 Generating documents and code (weaving and tangling)
23848 \end_layout
23849
23850 \begin_layout Paragraph
23851 Using the noweb module
23852 \end_layout
23853
23854 \begin_layout Standard
23855 If you have installed Noweb and \SpecialChar LyX
23856  successfully, whenever you open a new document,
23857  after you have chosen its document class, use the 
23858 \family sans
23859 Document\SpecialChar menuseparator
23860 Settings
23861 \family default
23862  menu to add the 
23863 \begin_inset Quotes eld
23864 \end_inset
23865
23866 noweb
23867 \begin_inset Quotes erd
23868 \end_inset
23869
23870  module.
23871  If Noweb is correctly installed, when you click on the 
23872 \begin_inset Quotes eld
23873 \end_inset
23874
23875 Modules
23876 \begin_inset Quotes erd
23877 \end_inset
23878
23879  link, you will see the 
23880 \begin_inset Quotes eld
23881 \end_inset
23882
23883 noweb
23884 \begin_inset Quotes erd
23885 \end_inset
23886
23887  module in the available list and you can add it to your document.
23888 \end_layout
23889
23890 \begin_layout Paragraph
23891 Typing code in
23892 \end_layout
23893
23894 \begin_layout Standard
23895 \SpecialChar LyX
23896  enables you to write code with a custom inset named 
23897 \begin_inset Flex Noun
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901 Chunk
23902 \end_layout
23903
23904 \end_inset
23905
23906 .
23907  Noweb delimits chunks like this:
23908 \end_layout
23909
23910 \begin_layout LyX-Code
23911 <<My code>>=
23912 \end_layout
23913
23914 \begin_layout LyX-Code
23915   code
23916 \end_layout
23917
23918 \begin_layout LyX-Code
23919   more code
23920 \end_layout
23921
23922 \begin_layout LyX-Code
23923   even more code
23924 \end_layout
23925
23926 \begin_layout LyX-Code
23927   @
23928 \end_layout
23929
23930 \begin_layout Standard
23931 The problem is that whatever is written in between the << and the 
23932 \family typewriter
23933 @
23934 \family default
23935  must be taken literally, i.
23936 \begin_inset space \thinspace{}
23937 \end_inset
23938
23939 e.
23940 \begin_inset space \space{}
23941 \end_inset
23942
23943 \SpecialChar LyX
23944  should be prevented from making any special interpretation of what has
23945  been written.
23946  This is also handled by 
23947 \begin_inset Flex Noun
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 Chunk
23952 \end_layout
23953
23954 \end_inset
23955
23956 , that works like a normal text inset but has a free spacing capability.
23957 \end_layout
23958
23959 \begin_layout Standard
23960 As a special note, you can also use the 
23961 \begin_inset Quotes eld
23962 \end_inset
23963
23964 %def
23965 \begin_inset Quotes erd
23966 \end_inset
23967
23968  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23969 rence:
23970 \end_layout
23971
23972 \begin_layout LyX-Code
23973 <<My chunk>>=
23974 \end_layout
23975
23976 \begin_layout LyX-Code
23977 def some_function(args):
23978 \end_layout
23979
23980 \begin_layout LyX-Code
23981    "This is the doc string for this function."
23982 \end_layout
23983
23984 \begin_layout LyX-Code
23985    print "My args: ", args
23986 \end_layout
23987
23988 \begin_layout LyX-Code
23989 @ %def some_function
23990 \end_layout
23991
23992 \begin_layout Standard
23993 For an example of this usage and the resulting cross-reference output, look
23994  at the Literate python program in 
23995 \emph on
23996 LIBDIR/examples/listerrors.lyx
23997 \emph default
23998  which should make this all clear.
23999 \end_layout
24000
24001 \begin_layout Paragraph
24002 Generating the documentation
24003 \end_layout
24004
24005 \begin_layout Standard
24006 At this point you already have a new document file with a proper document
24007  class, and with some code and text on it.
24008  How do I print it? The answer is simple, you select 
24009 \family sans
24010 View\SpecialChar menuseparator
24011 DVI,
24012 \family default
24013  etc.
24014  Just like you would do for a plain document.
24015  No special procedure is required.
24016 \end_layout
24017
24018 \begin_layout Standard
24019 To help orientate you, I will now explain what happens inside \SpecialChar LyX
24020 :
24021 \end_layout
24022
24023 \begin_layout Enumerate
24024 When the 
24025 \family sans
24026 Update\SpecialChar menuseparator
24027 DVI
24028 \family default
24029  menu option is chosen, a \SpecialChar LaTeX
24030  file is generated.
24031  
24032 \end_layout
24033
24034 \begin_deeper
24035 \begin_layout Standard
24036 If the document is of any literate class the generated file will be named
24037  with an extension name defined by the 
24038 \begin_inset Quotes eld
24039 \end_inset
24040
24041 literate
24042 \begin_inset Quotes erd
24043 \end_inset
24044
24045  format (defined in the Preferences panel), otherwise the file will have
24046  the usual 
24047 \family typewriter
24048 .tex
24049 \family default
24050  extension.
24051 \end_layout
24052
24053 \end_deeper
24054 \begin_layout Enumerate
24055 Note that the only difference so far is in the name of the file, no special
24056  processing is required by \SpecialChar LyX
24057 .
24058  Given that you formatted the code using the 
24059 \begin_inset Flex Noun
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 Chunk
24064 \end_layout
24065
24066 \end_inset
24067
24068  inset that, by itself, takes care of the business.
24069 \end_layout
24070
24071 \begin_layout Enumerate
24072 If the document is of any literate class \SpecialChar LyX
24073  will then use the internal \SpecialChar LyX
24074  to
24075  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
24076  converter
24077 \begin_inset Foot
24078 status collapsed
24079
24080 \begin_layout Plain Layout
24081 The converters are defined in the 
24082 \family sans
24083 Tools\SpecialChar menuseparator
24084 Preferences
24085 \family default
24086  panel, under the 
24087 \begin_inset Quotes eld
24088 \end_inset
24089
24090 Conversion
24091 \begin_inset Quotes erd
24092 \end_inset
24093
24094  tab.
24095  See section 
24096 \emph on
24097 Converters
24098 \emph default
24099  of the 
24100 \emph on
24101 Customization
24102 \emph default
24103  manual for general information about converters.
24104 \end_layout
24105
24106 \end_inset
24107
24108  to generate the \SpecialChar LaTeX
24109  file.
24110 \end_layout
24111
24112 \begin_deeper
24113 \begin_layout Standard
24114 Otherwise it will just skip this step.
24115 \end_layout
24116
24117 \end_deeper
24118 \begin_layout Enumerate
24119 Finally, \SpecialChar LaTeX
24120  is invoked and the regular post processing continues as in a plain
24121  document.
24122 \end_layout
24123
24124 \begin_layout Standard
24125 Independence from a particular 
24126 \begin_inset Quotes eld
24127 \end_inset
24128
24129 literate tool
24130 \begin_inset Quotes erd
24131 \end_inset
24132
24133  is easily achieved by changing the commands that are run by the various
24134  converters.
24135 \end_layout
24136
24137 \begin_layout Paragraph
24138 Generating the code
24139 \end_layout
24140
24141 \begin_layout Standard
24142 When the build menu option is chosen or the corresponding button in the
24143  toolbar is pressed, a \SpecialChar LaTeX
24144  file is generated just like step 1 above.
24145  Next, \SpecialChar LyX
24146  invokes the 
24147 \family typewriter
24148 Noweb->Program
24149 \family default
24150  converter.
24151  This converter needs to be defined by the user and is not installed by
24152  default, though the Program format is.
24153  This converter (like any other converter) will have two parts:
24154 \end_layout
24155
24156 \begin_layout Enumerate
24157 The converter program itself.
24158  This program performs the conversion from the one format to the other (in
24159  this case, from the Noweb format to the Program pseudo-format).
24160 \end_layout
24161
24162 \begin_layout Enumerate
24163 The error log parser.
24164  This is a program whose sole purpose is to rewrite error messages in a
24165  format that \SpecialChar LyX
24166  understands.
24167  This makes it possible for \SpecialChar LyX
24168  to place error boxes in the right places in
24169  the file buffer.
24170 \end_layout
24171
24172 \begin_layout Standard
24173 The first part, the 
24174 \begin_inset Quotes eld
24175 \end_inset
24176
24177 Converter
24178 \begin_inset Quotes erd
24179 \end_inset
24180
24181  setting, should be set to
24182 \end_layout
24183
24184 \begin_layout LyX-Code
24185
24186 \family typewriter
24187 build-script $$i
24188 \family default
24189  $$r
24190 \end_layout
24191
24192 \begin_layout Standard
24193 This basically means that \SpecialChar LyX
24194  will call 
24195 \begin_inset Quotes eld
24196 \end_inset
24197
24198 build-script
24199 \begin_inset Quotes erd
24200 \end_inset
24201
24202  (a program or script) with the name of the Noweb file (normally a file
24203  in the \SpecialChar LyX
24204  temp directory) and the directory path of the original \SpecialChar LyX
24205  file.
24206  
24207 \end_layout
24208
24209 \begin_layout Standard
24210 This is an implementation of 
24211 \begin_inset Quotes eld
24212 \end_inset
24213
24214 build-script
24215 \begin_inset Quotes erd
24216 \end_inset
24217
24218  that you can place in a directory on your path:
24219 \end_layout
24220
24221 \begin_layout LyX-Code
24222
24223 \family sans
24224 #!/bin/sh
24225 \end_layout
24226
24227 \begin_layout LyX-Code
24228
24229 \family sans
24230 #
24231 \end_layout
24232
24233 \begin_layout LyX-Code
24234
24235 \family sans
24236 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24237 \end_layout
24238
24239 \begin_layout Standard
24240 The next part of the converter setting is the 
24241 \begin_inset Quotes eld
24242 \end_inset
24243
24244 Flags
24245 \begin_inset Quotes erd
24246 \end_inset
24247
24248  which is to be set to
24249 \end_layout
24250
24251 \begin_layout LyX-Code
24252
24253 \family typewriter
24254 parselog=$$s/scripts/listerrors
24255 \end_layout
24256
24257 \begin_layout Standard
24258 This will run any errors that are generated by the 
24259 \begin_inset Quotes eld
24260 \end_inset
24261
24262 build-script
24263 \begin_inset Quotes erd
24264 \end_inset
24265
24266  process through the 
24267 \begin_inset Quotes eld
24268 \end_inset
24269
24270 listerrors
24271 \begin_inset Quotes erd
24272 \end_inset
24273
24274  program.
24275 \end_layout
24276
24277 \begin_layout Standard
24278 The build will normally take place in \SpecialChar LyX
24279 's temporary directory, so the files
24280  produced by the conversion will be in that directory.
24281  \SpecialChar LyX
24282  will copy out what it regards as the `main' file, but the 
24283 \family typewriter
24284 Noweb->Program
24285 \family default
24286  conversion may produce several files, and so most of these would then be
24287  deleted when \SpecialChar LyX
24288  was closed.
24289  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24290  the build-script chunk can place the generated files in that location.
24291 \end_layout
24292
24293 \begin_layout Paragraph
24294 Build instructions in the document
24295 \end_layout
24296
24297 \begin_layout Standard
24298 The last piece of the integration between \SpecialChar LyX
24299  and noweb is the 
24300 \begin_inset Quotes eld
24301 \end_inset
24302
24303 build-script
24304 \begin_inset Quotes erd
24305 \end_inset
24306
24307  chunk.
24308  Generally, the instructions for building your program should be embedded
24309  in a chunk of its own.
24310  The noweb-specific 
24311 \begin_inset Quotes eld
24312 \end_inset
24313
24314 build-script
24315 \begin_inset Quotes erd
24316 \end_inset
24317
24318  above uses the notangle command to look for this chunk (called 
24319 \begin_inset Quotes eld
24320 \end_inset
24321
24322 build-script
24323 \begin_inset Quotes erd
24324 \end_inset
24325
24326 ) and runs its contents through 
24327 \begin_inset Quotes eld
24328 \end_inset
24329
24330 sh
24331 \begin_inset Quotes erd
24332 \end_inset
24333
24334 .
24335 \end_layout
24336
24337 \begin_layout Standard
24338 Typically, such a chunk would look something like this:
24339 \end_layout
24340
24341 \begin_layout LyX-Code
24342 <<build-script>>=
24343 \end_layout
24344
24345 \begin_layout LyX-Code
24346 #!/bin/sh
24347 \begin_inset Newline newline
24348 \end_inset
24349
24350 if [ -z "${NOWEB_SOURCE}" ]
24351 \begin_inset Newline newline
24352 \end_inset
24353
24354 then
24355 \end_layout
24356
24357 \begin_layout LyX-Code
24358 NOWEB_SOURCE=myfile.nw
24359 \begin_inset Newline newline
24360 \end_inset
24361
24362 fi
24363 \begin_inset Newline newline
24364 \end_inset
24365
24366 [...
24367  code to extract files ...
24368  use NOWEB_OUTPUT_DIR here ...]
24369 \begin_inset Newline newline
24370 \end_inset
24371
24372 [...
24373  code to compile files ...]
24374 \begin_inset Newline newline
24375 \end_inset
24376
24377 @
24378 \end_layout
24379
24380 \begin_layout Standard
24381 Look in 
24382 \emph on
24383 LIBDIR/examples/listerrors.lyx
24384 \emph default
24385  or in 
24386 \emph on
24387 LIBDIR/examples/Literate.lyx
24388 \emph default
24389  which implement two versions of the 
24390 \begin_inset Quotes eld
24391 \end_inset
24392
24393 listerrors
24394 \begin_inset Quotes erd
24395 \end_inset
24396
24397  program for some illustrations of how all of these pieces go together or
24398  in 
24399 \emph on
24400 LIBDIR/examples/noweb2lyx.lyx.
24401
24402 \emph default
24403  Interestingly, these three files show off the language-indepence of the
24404  \SpecialChar LyX
24405  literate programming support since they are written in Python, C and Perl
24406  respectively.
24407 \end_layout
24408
24409 \begin_layout Subsubsection
24410 Configuring \SpecialChar LyX
24411
24412 \end_layout
24413
24414 \begin_layout Standard
24415 All the Literate Programming support is configured by the 
24416 \family sans
24417 Tools\SpecialChar menuseparator
24418 Preferences
24419 \family default
24420  panel in the 
24421 \begin_inset Quotes eld
24422 \end_inset
24423
24424 File Handling
24425 \begin_inset Quotes erd
24426 \end_inset
24427
24428  tab.
24429  The important parts are:
24430 \end_layout
24431
24432 \begin_layout Description
24433 the
24434 \begin_inset space ~
24435 \end_inset
24436
24437
24438 \begin_inset Quotes eld
24439 \end_inset
24440
24441 NoWeb
24442 \begin_inset Quotes erd
24443 \end_inset
24444
24445
24446 \begin_inset space ~
24447 \end_inset
24448
24449 format Set up via the File Formats tab, this is where the Noweb-specific
24450  pieces are set up.
24451  The 
24452 \family sans
24453 GUI Name
24454 \family default
24455  is set to 
24456 \family typewriter
24457 NoWeb
24458 \family default
24459 , the file extension is set to 
24460 \family typewriter
24461 .nw
24462 \family default
24463 .
24464  This tells \SpecialChar LyX
24465  to create a file with a 
24466 \family typewriter
24467 .nw
24468 \family default
24469  extension in the first step of the conversion process.
24470 \end_layout
24471
24472 \begin_layout Description
24473 the
24474 \begin_inset space ~
24475 \end_inset
24476
24477
24478 \family sans
24479 Program
24480 \family default
24481
24482 \begin_inset space ~
24483 \end_inset
24484
24485 format This is an empty format whose sole purpose is to be the endpoint
24486  of a conversion (which then allows us to set up a converter for it).
24487 \end_layout
24488
24489 \begin_layout Description
24490
24491 \family sans
24492 NoWeb
24493 \family default
24494 ->
24495 \family sans
24496 \SpecialChar LaTeX
24497
24498 \family default
24499  This converter performs the 
24500 \begin_inset Quotes eld
24501 \end_inset
24502
24503 weaving
24504 \begin_inset Quotes erd
24505 \end_inset
24506
24507  of the literate document.
24508  For Noweb, it is set to 
24509 \begin_inset Quotes eld
24510 \end_inset
24511
24512
24513 \family typewriter
24514 noweave -delay -index $$i > $$o
24515 \family default
24516
24517 \begin_inset Quotes erd
24518 \end_inset
24519
24520
24521 \end_layout
24522
24523 \begin_layout Description
24524
24525 \family sans
24526 NoWeb
24527 \family default
24528 ->
24529 \family sans
24530 Program
24531 \family default
24532  This performs the 
24533 \begin_inset Quotes eld
24534 \end_inset
24535
24536 tangling step
24537 \begin_inset Quotes erd
24538 \end_inset
24539
24540 .
24541  As stated above, the Converter is set to 
24542 \begin_inset Quotes eld
24543 \end_inset
24544
24545
24546 \family typewriter
24547 build-script $$i
24548 \family default
24549  $$r
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553 , with Flags set to
24554 \begin_inset Newline newline
24555 \end_inset
24556
24557
24558 \begin_inset Quotes eld
24559 \end_inset
24560
24561
24562 \family typewriter
24563 parselog=$$s/scripts/listerrors
24564 \family default
24565
24566 \begin_inset Quotes erd
24567 \end_inset
24568
24569 .
24570 \end_layout
24571
24572 \begin_layout Subsubsection
24573 Debug extensions
24574 \end_layout
24575
24576 \begin_layout Standard
24577 There is also a new function implemented in the \SpecialChar LyX
24578  server, the 
24579 \begin_inset Quotes eld
24580 \end_inset
24581
24582 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24583  
24584 \end_layout
24585
24586 \begin_layout Standard
24587 When debugging code with ddd/gdb, it is possible to invoke a text editor
24588  at the current execution position with a single key stroke.
24589  The default ddd configuration for that is shift-ctrl-V.
24590  It happens that you can define the editor command line invocation in ddd
24591  by accessing the 
24592 \family sans
24593 Edit\SpecialChar menuseparator
24594 Preferences\SpecialChar menuseparator
24595 Helpers
24596 \family default
24597  dialog and changing the "Edit Sources" entry.
24598 \end_layout
24599
24600 \begin_layout Standard
24601 I take advantage of the newly created \SpecialChar LyX
24602  server function and this ddd feature,
24603  and set 
24604 \begin_inset Quotes eld
24605 \end_inset
24606
24607 Edit Sources
24608 \begin_inset Quotes erd
24609 \end_inset
24610
24611  to:
24612 \end_layout
24613
24614 \begin_layout LyX-Code
24615 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24616 \end_layout
24617
24618 \begin_layout Standard
24619 With this, whenever you are using ddd and find a point in the program that
24620  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24621  ddd will forward this information to \SpecialChar LyX
24622  through the \SpecialChar LyX
24623  server and then the
24624  \SpecialChar LyX
24625  window will show the same file with the cursor at the same position ddd
24626  was pointing to.
24627  No more guessing or long scrolling to locate a point in the program back
24628  from debugging !
24629 \end_layout
24630
24631 \begin_layout Standard
24632 Note however that you must enable the \SpecialChar LyX
24633  server to get this feature working
24634  (it is disabled by default).
24635  Sec.
24636 \begin_inset space ~
24637 \end_inset
24638
24639
24640 \begin_inset CommandInset ref
24641 LatexCommand ref
24642 reference "sec:Starting-the-Server"
24643
24644 \end_inset
24645
24646  explains how to do that.
24647 \end_layout
24648
24649 \begin_layout Subsubsection
24650 Toolbar extensions
24651 \end_layout
24652
24653 \begin_layout Standard
24654 There are six new buttons that can be added to your \SpecialChar LyX
24655  toolbar.
24656  Four of these buttons are short cuts to layout styles: 
24657 \family sans
24658 Standard
24659 \family default
24660
24661 \family sans
24662 Section
24663 \family default
24664
24665 \family sans
24666 \SpecialChar LaTeX
24667
24668 \family default
24669 , and 
24670 \family sans
24671 \SpecialChar LyX
24672 -Code
24673 \family default
24674 , one for the custom inset 
24675 \family sans
24676 Chunk
24677 \family default
24678 .
24679  The last one is a short cut to the 
24680 \begin_inset Quotes eld
24681 \end_inset
24682
24683 Build Program
24684 \begin_inset Quotes erd
24685 \end_inset
24686
24687  File menu entry.
24688  
24689 \end_layout
24690
24691 \begin_layout Standard
24692 \SpecialChar LyX
24693  has a range of buttons that are available for tool bar customization.
24694  In my toolbar I like to combine the six short cuts above with two more:
24695  One for 
24696 \family sans
24697 Document
24698 \family default
24699 \SpecialChar menuseparator
24700
24701 \family sans
24702 Update
24703 \family default
24704 \SpecialChar menuseparator
24705
24706 \family sans
24707 DVI
24708 \family default
24709  and the other for 
24710 \family sans
24711 Document\SpecialChar menuseparator
24712 View\SpecialChar menuseparator
24713 DVI
24714 \family default
24715  File menu entries.
24716  Here is how it looks like:
24717 \end_layout
24718
24719 \begin_layout LyX-Code
24720 Toolbar
24721 \end_layout
24722
24723 \begin_layout LyX-Code
24724   Layouts
24725 \end_layout
24726
24727 \begin_layout LyX-Code
24728   Icon "layout Standard"
24729 \end_layout
24730
24731 \begin_layout LyX-Code
24732   Icon "layout Section"
24733 \end_layout
24734
24735 \begin_layout LyX-Code
24736   Icon "layout \SpecialChar LaTeX
24737 "
24738 \end_layout
24739
24740 \begin_layout LyX-Code
24741   Icon "layout \SpecialChar LyX
24742 -Code"
24743 \end_layout
24744
24745 \begin_layout LyX-Code
24746   Icon "flex.insert Chunk"
24747 \end_layout
24748
24749 \begin_layout LyX-Code
24750   Separator
24751 \end_layout
24752
24753 \begin_layout LyX-Code
24754   Icon "buffer-view"
24755 \end_layout
24756
24757 \begin_layout LyX-Code
24758   Icon "buffer-typeset"
24759 \end_layout
24760
24761 \begin_layout LyX-Code
24762   Icon "build-program"
24763 \end_layout
24764
24765 \begin_layout LyX-Code
24766   Separator
24767 \end_layout
24768
24769 \begin_layout LyX-Code
24770 .
24771 \end_layout
24772
24773 \begin_layout LyX-Code
24774 .
24775 \end_layout
24776
24777 \begin_layout LyX-Code
24778 .
24779 \end_layout
24780
24781 \begin_layout LyX-Code
24782 End
24783 \end_layout
24784
24785 \begin_layout Subsubsection
24786 Colors customization
24787 \end_layout
24788
24789 \begin_layout Standard
24790 There are a number of colors in \SpecialChar LyX
24791  that can be customized in 
24792 \family sans
24793 Preferences
24794 \family default
24795 .
24796  One of the things that bothers people is the \SpecialChar LaTeX
24797  font color.
24798  The default color is red, since the chunks uses \SpecialChar LaTeX
24799  font, and there is a lot
24800  of chunks in literate documents, you may get tired of seeing everything
24801  in red.
24802  You can change it by going to the tabs 
24803 \family sans
24804 Look&Feel
24805 \family default
24806
24807 \family sans
24808 Colors.
24809 \end_layout
24810
24811 \begin_layout Standard
24812 The next thing is the visible presence of the newline character in the screen.
24813  You can choose the color of this particular character and make it blend
24814  in the background.
24815  I recommend you choosing a color that is close to the background but not
24816  equal, that way you still can see it is there, but it is not bothering
24817  you anymore.
24818 \end_layout
24819
24820 \begin_layout Subsection
24821 \SpecialChar LyX
24822  and knitr/Sweave
24823 \end_layout
24824
24825 \begin_layout Standard
24826 Support for 
24827 \family sans
24828 knitr
24829 \family default
24830  and 
24831 \family sans
24832 Sweave
24833 \family default
24834  is documented in the 
24835 \emph on
24836 knitr.lyx
24837 \emph default
24838  example file and in the Sweave manual (menu 
24839 \family sans
24840 Help\SpecialChar menuseparator
24841 Specific Manuals
24842 \family default
24843 ).
24844 \end_layout
24845
24846 \begin_layout Chapter
24847 Special features
24848 \end_layout
24849
24850 \begin_layout Standard
24851 You can do everything with \SpecialChar LyX
24852  that you can do with \SpecialChar LaTeX
24853 .
24854  However, \SpecialChar LyX
24855  cannot support every \SpecialChar LaTeX
24856  feature directly.
24857  But you can always use \SpecialChar TeX
24858  Code.
24859  This chapter shows you some more special things you might want to use.
24860  For other special things you can do with figures, tables, floats, boxes
24861  and notes, have a look at the 
24862 \emph on
24863 Embedded
24864 \begin_inset space ~
24865 \end_inset
24866
24867 Objects
24868 \emph default
24869  manual.
24870 \end_layout
24871
24872 \begin_layout Section
24873 Multiple Text Columns
24874 \end_layout
24875
24876 \begin_layout Standard
24877 This feature is independent of the option 
24878 \family sans
24879 Two-column document
24880 \family default
24881  in the document settings under 
24882 \family sans
24883 Text Layout
24884 \family default
24885 .
24886  If you want to have 2
24887 \begin_inset space ~
24888 \end_inset
24889
24890 columns for the whole document, it is recommended to use the 
24891 \family sans
24892 Two-column document
24893 \family default
24894  option.
24895  For all other cases use this feature.
24896 \end_layout
24897
24898 \begin_layout Standard
24899 To use multiple text columns in your document, you have to load the module
24900  
24901 \family sans
24902 Multiple Columns
24903 \family default
24904  (menu 
24905 \family sans
24906 Document\SpecialChar menuseparator
24907 Settings\SpecialChar menuseparator
24908 Modules
24909 \family default
24910 ) and must have the \SpecialChar LaTeX
24911 -package 
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 multicol
24917 \end_layout
24918
24919 \end_inset
24920
24921  installed.
24922 \end_layout
24923
24924 \begin_layout Standard
24925 Footnotes within multiple columns will be placed at the bottom of the page
24926  and not under each column.
24927  Within the different columns you can use everything, with the limitation
24928  that for floats you need to use the float option 
24929 \family sans
24930 Span columns
24931 \family default
24932 .
24933 \end_layout
24934
24935 \begin_layout Subsection
24936 Basics
24937 \end_layout
24938
24939 \begin_layout Standard
24940 If you want to have 2
24941 \begin_inset space ~
24942 \end_inset
24943
24944 columns in your text, insert a multicolumn inset via the menu 
24945 \family sans
24946 Insert\SpecialChar menuseparator
24947 Custom
24948 \begin_inset space ~
24949 \end_inset
24950
24951 Insets\SpecialChar menuseparator
24952 Multiple
24953 \begin_inset space ~
24954 \end_inset
24955
24956 Columns
24957 \family default
24958  where the columns should start.
24959  Write all text that should be printed in 2
24960 \begin_inset space ~
24961 \end_inset
24962
24963 columns into this inset.
24964 \end_layout
24965
24966 \begin_layout Standard
24967 Here is an example:
24968 \end_layout
24969
24970 \begin_layout Standard
24971 \noindent
24972 \begin_inset Flex Multiple Columns
24973 status open
24974
24975 \begin_layout Plain Layout
24976 \noindent
24977
24978 \series bold
24979 \size small
24980 The Adventure of the Empty House
24981 \series default
24982
24983 \begin_inset Newline newline
24984 \end_inset
24985
24986 by Sir Arthur Conan Doyle
24987 \end_layout
24988
24989 \begin_layout Plain Layout
24990
24991 \size small
24992 It was in the spring of the year 1894 that all London was interested, and
24993  the fashionable world dismayed, by the murder of the Honourable Ronald
24994  Adair under most unusual and inexplicable circumstances.
24995  The public has already learned those particulars of the crime which came
24996  out in the police investigation, but a good deal was suppressed upon that
24997  occasion, since the case for the prosecution was so overwhelmingly strong
24998  that it was not necessary to bring forward all the facts.
24999  Only now, at the end of nearly ten years, am I allowed to supply those
25000  missing links which make up the whole of that remarkable chain.
25001  The crime was of interest in itself, but that interest was as nothing to
25002  me compared to the inconceivable sequel, which afforded me the greatest
25003  shock and surprise of any event in my adventurous life.
25004  Even now, after this long interval, I find myself thrilling as I think
25005  of it, and feeling once more that sudden flood of joy, amazement, and increduli
25006 ty which utterly submerged my mind.
25007  Let me say to that public, which has shown some interest in those glimpses
25008  which I have occasionally given them of the thoughts and actions of a very
25009  remarkable man, that they are not to blame me if I have not shared my knowledge
25010  with them, for I should have considered it my first duty to do so, had
25011  I not been barred by a positive prohibition from his own lips, which was
25012  only withdrawn upon the third of last month.
25013 \end_layout
25014
25015 \end_inset
25016
25017
25018 \end_layout
25019
25020 \begin_layout Standard
25021 To get 3 or more columns, set the cursor into the multicolumn inset and
25022  use the menu 
25023 \family sans
25024 Insert\SpecialChar menuseparator
25025 Number
25026 \begin_inset space ~
25027 \end_inset
25028
25029 of
25030 \begin_inset space ~
25031 \end_inset
25032
25033 Columns
25034 \family default
25035 .
25036  The number of the desired columns is written into that inset (for 3
25037 \begin_inset space ~
25038 \end_inset
25039
25040 columns write 
25041 \begin_inset Quotes eld
25042 \end_inset
25043
25044 3
25045 \begin_inset Quotes erd
25046 \end_inset
25047
25048 ).
25049 \begin_inset Newline newline
25050 \end_inset
25051
25052 Here is an example with 3
25053 \begin_inset space ~
25054 \end_inset
25055
25056 columns:
25057 \end_layout
25058
25059 \begin_layout Standard
25060 \begin_inset Flex Multiple Columns
25061 status open
25062
25063 \begin_layout Plain Layout
25064
25065 \size footnotesize
25066 \begin_inset Argument 1
25067 status open
25068
25069 \begin_layout Plain Layout
25070
25071 3
25072 \end_layout
25073
25074 \end_inset
25075
25076 It can be imagined that my close intimacy with Sherlock Holmes had interested
25077  me deeply in crime, and that after his disappearance I never failed to
25078  read with care the various problems which came before the public.
25079  And I even attempted, more than once, for my own private satisfaction,
25080  to employ his methods in their solution, though with indifferent success.
25081  There was none, however, which appealed to me like this tragedy of Ronald
25082  Adair.
25083  As I read the evidence at the inquest, which led up to a verdict of willful
25084  murder against some person or persons unknown, I realized more clearly
25085  than I had ever done the loss which the community had sustained by the
25086  death of Sherlock Holmes.
25087  There were points about this strange business which would, I was sure,
25088  have specially appealed to him, and the efforts of the police would have
25089  been supplemented, or more probably anticipated, by the trained observation
25090  and the alert mind of the first criminal agent in Europe.
25091  All day, as I drove upon my round, I turned over the case in my mind and
25092  found no explanation which appeared to me to be adequate.
25093  At the risk of telling a twice-told tale, I will recapitulate the facts
25094  as they were known to the public at the conclusion of the inquest.
25095 \end_layout
25096
25097 \end_inset
25098
25099
25100 \end_layout
25101
25102 \begin_layout Standard
25103 You can have up to 10
25104 \begin_inset space ~
25105 \end_inset
25106
25107 columns if you want to, but that might not be very pleasant for the readers
25108  of your document.
25109 \end_layout
25110
25111 \begin_layout Standard
25112 \begin_inset Newpage newpage
25113 \end_inset
25114
25115
25116 \end_layout
25117
25118 \begin_layout Subsection
25119 Columns inside Columns
25120 \end_layout
25121
25122 \begin_layout Standard
25123 You can also have columns inside columns:
25124 \end_layout
25125
25126 \begin_layout Standard
25127 \begin_inset Flex Multiple Columns
25128 status open
25129
25130 \begin_layout Plain Layout
25131
25132 \size footnotesize
25133 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
25134  at that time governor of one of the Australian colonies.
25135  Adair's mother had returned from Australia to undergo the operation for
25136  cataract, and she, her son Ronald, and her daughter Hilda were living together
25137  at 427 Park Lane.
25138 \end_layout
25139
25140 \begin_layout Plain Layout
25141 \begin_inset Flex Multiple Columns
25142 status open
25143
25144 \begin_layout Plain Layout
25145
25146 \size footnotesize
25147 The youth moved in the best society
25148 \begin_inset space ~
25149 \end_inset
25150
25151 – had, so far as was known, no enemies and no particular vices.
25152  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25153  had been broken off by mutual consent some months before, and there was
25154  no sign that it had left any very profound feeling behind it.
25155  For the rest {sic} the man's life moved in a narrow and conventional circle,
25156  for his habits were quiet and his nature unemotional.
25157  Yet it was upon this easy-going young aristocrat that death came, in most
25158  strange and unexpected form, between the hours of ten and eleven-twenty
25159  on the night of March 30, 1894.
25160 \end_layout
25161
25162 \end_inset
25163
25164
25165 \end_layout
25166
25167 \begin_layout Plain Layout
25168
25169 \size footnotesize
25170 Ronald Adair was fond of cards
25171 \begin_inset space ~
25172 \end_inset
25173
25174 – playing continually, but never for such stakes as would hurt him.
25175  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25176  It was shown that, after dinner on the day of his death, he had played
25177  a rubber of whist at the latter club.
25178  He had also played there in the afternoon.
25179
25180 \size default
25181  
25182 \size footnotesize
25183 The evidence of those who had played with him
25184 \begin_inset space ~
25185 \end_inset
25186
25187 – Mr.
25188  Murray, Sir John Hardy, and Colonel Moran
25189 \begin_inset space ~
25190 \end_inset
25191
25192 – showed that the game was whist, and that there was a fairly equal fall
25193  of the cards.
25194  Adair might have lost five pounds, but not more.
25195  His fortune was a considerable one, and such a loss could not in any way
25196  affect him.
25197  He had played nearly every day at one club or other, but he was a cautious
25198  player, and usually rose a winner.
25199  It came out in evidence that, in partnership with Colonel Moran, he had
25200  actually won as much as four hundred and twenty pounds in a sitting, some
25201  weeks before, from Godfrey Milner and Lord Balmoral.
25202  So much for his recent history as it came out at the inquest.
25203 \end_layout
25204
25205 \end_inset
25206
25207
25208 \end_layout
25209
25210 \begin_layout Subsection
25211 Advanced Examples
25212 \end_layout
25213
25214 \begin_layout Standard
25215 The examples in this section show some more special features of multiple
25216  columns.
25217 \end_layout
25218
25219 \begin_layout Standard
25220 For more features of multiple columns, have a look at the 
25221 \begin_inset CommandInset href
25222 LatexCommand href
25223 name "documentation"
25224 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25225 literal "false"
25226
25227 \end_inset
25228
25229  of the \SpecialChar LaTeX
25230 -package 
25231 \begin_inset Flex Code
25232 status collapsed
25233
25234 \begin_layout Plain Layout
25235 multicol
25236 \end_layout
25237
25238 \end_inset
25239
25240 .
25241 \end_layout
25242
25243 \begin_layout Subsubsection
25244 Preface
25245 \end_layout
25246
25247 \begin_layout Standard
25248 To add a preface text for multiple columns, set the cursor into the multicolumn
25249  inset and use the menu 
25250 \family sans
25251 Insert\SpecialChar menuseparator
25252 Preface
25253 \family default
25254 .
25255  Write your preface text into that inset.
25256 \begin_inset Newline newline
25257 \end_inset
25258
25259 This is an example with some preface text:
25260 \end_layout
25261
25262 \begin_layout Standard
25263 \begin_inset VSpace bigskip
25264 \end_inset
25265
25266
25267 \end_layout
25268
25269 \begin_layout Standard
25270 \begin_inset Flex Multiple Columns
25271 status open
25272
25273 \begin_layout Plain Layout
25274 \begin_inset Argument 2
25275 status open
25276
25277 \begin_layout Plain Layout
25278 And the story continues and continues and continues and continues\SpecialChar ldots
25279
25280 \end_layout
25281
25282 \end_inset
25283
25284
25285 \size small
25286 On the evening of the crime, he returned from the club exactly at ten.
25287  His mother and sister were out spending the evening with a relation.
25288  The servant deposed that she heard him enter the front room on the second
25289  floor, generally used as his sitting-room.
25290  She had lit a fire there, and as it smoked she had opened the window.
25291  No sound was heard from the room until eleven-twenty, the hour of the return
25292  of Lady Maynooth and her daughter.
25293  Desiring to say good-night, she attempted to enter her son's room.
25294  The door was locked on the inside, and no answer could be got to their
25295  cries and knocking.
25296  Help was obtained, and the door forced.
25297  The unfortunate young man was found lying near the table.
25298  His head had been horribly mutilated by an expanding revolver bullet, but
25299  no weapon of any sort was to be found in the room.
25300 \end_layout
25301
25302 \end_inset
25303
25304
25305 \end_layout
25306
25307 \begin_layout Standard
25308 You can also use a section heading as the preface if you use a section command
25309  as \SpecialChar TeX
25310  Code.
25311  For example the command
25312 \end_layout
25313
25314 \begin_layout LyX-Code
25315
25316 \backslash
25317 subsection{subsection title}
25318 \end_layout
25319
25320 \begin_layout Standard
25321 creates a subsection.
25322  In this example the preface is a subsubsection:
25323 \end_layout
25324
25325 \begin_layout Standard
25326 \begin_inset Flex Multiple Columns
25327 status open
25328
25329 \begin_layout Plain Layout
25330 \begin_inset Argument 2
25331 status open
25332
25333 \begin_layout Plain Layout
25334 \begin_inset ERT
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338
25339
25340 \backslash
25341 subsubsection{
25342 \end_layout
25343
25344 \end_inset
25345
25346 This is a subsubsection heading as a preface
25347 \begin_inset ERT
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352 }
25353 \end_layout
25354
25355 \end_inset
25356
25357
25358 \end_layout
25359
25360 \end_inset
25361
25362
25363 \size small
25364 A minute examination of the circumstances served only to make the case more
25365  complex.
25366  In the first place, no reason could be given why the young man should have
25367  fastened the door upon the inside.
25368  There was the possibility that the murderer had done this, and had afterwards
25369  escaped by the window.
25370  The drop was at least twenty feet, however, and a bed of crocuses in full
25371  bloom lay beneath.
25372  Neither the flowers nor the earth showed any sign of having been disturbed,
25373  nor were there any marks upon the narrow strip of grass which separated
25374  the house from the road.
25375  Apparently, therefore, it was the young man himself who had fastened the
25376  door.
25377  But how did he come by his death? No one could have climbed up to the window
25378  without leaving traces.
25379  Suppose a man had fired through the window, he would indeed be a remarkable
25380  shot who could with a revolver inflict so deadly a wound.
25381  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25382  a hundred yards of the house.
25383  No one had heard a shot.
25384 \end_layout
25385
25386 \end_inset
25387
25388
25389 \end_layout
25390
25391 \begin_layout Standard
25392 If there is less vertical space than 6
25393 \begin_inset space ~
25394 \end_inset
25395
25396 text lines is left on the page at the beginning of the multiple columns,
25397  a page break will be inserted before the multiple columns.
25398  Depending on the number of lines of the preface text, you might want to
25399  change this space.
25400  This is done by setting the cursor into the mulitcolumn inset behind the
25401  preface (if there is any) and using the menu 
25402 \family sans
25403 Insert\SpecialChar menuseparator
25404 Space
25405 \begin_inset space ~
25406 \end_inset
25407
25408 Before
25409 \begin_inset space ~
25410 \end_inset
25411
25412 Page
25413 \begin_inset space ~
25414 \end_inset
25415
25416 Break
25417 \family default
25418 .
25419  Insert into that inset the amount of space like e.
25420 \begin_inset space \thinspace{}
25421 \end_inset
25422
25423 g.
25424 \begin_inset space \space{}
25425 \end_inset
25426
25427
25428 \begin_inset Quotes eld
25429 \end_inset
25430
25431 5cm
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435 .
25436 \begin_inset Newline newline
25437 \end_inset
25438
25439 In this example the space is set to 7
25440 \begin_inset space ~
25441 \end_inset
25442
25443 text lines by using 
25444 \begin_inset Flex Code
25445 status collapsed
25446
25447 \begin_layout Plain Layout
25448 7
25449 \backslash
25450 baselineskip
25451 \end_layout
25452
25453 \end_inset
25454
25455  (where the command 
25456 \begin_inset Flex Code
25457 status collapsed
25458
25459 \begin_layout Plain Layout
25460
25461 \backslash
25462 baselineskip
25463 \end_layout
25464
25465 \end_inset
25466
25467  needs to be inserted as \SpecialChar TeX
25468  code):
25469 \end_layout
25470
25471 \begin_layout Standard
25472 \begin_inset Flex Multiple Columns
25473 status open
25474
25475 \begin_layout Plain Layout
25476 \begin_inset Argument 3
25477 status open
25478
25479 \begin_layout Plain Layout
25480 7
25481 \begin_inset ERT
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485
25486
25487 \backslash
25488 baselineskip
25489 \end_layout
25490
25491 \end_inset
25492
25493
25494 \end_layout
25495
25496 \end_inset
25497
25498
25499 \size small
25500 On the evening of the crime, he returned from the club exactly at ten.
25501  His mother and sister were out spending the evening with a relation.
25502  The servant deposed that she heard him enter the front room on the second
25503  floor, generally used as his sitting-room.
25504  She had lit a fire there, and as it smoked she had opened the window.
25505  No sound was heard from the room until eleven-twenty, the hour of the return
25506  of Lady Maynooth and her daughter.
25507  Desiring to say good-night, she attempted to enter her son's room.
25508  The door was locked on the inside, and no answer could be got to their
25509  cries and knocking.
25510  Help was obtained, and the door forced.
25511  The unfortunate young man was found lying near the table.
25512  His head had been horribly mutilated by an expanding revolver bullet, but
25513  no weapon of any sort was to be found in the room.
25514 \end_layout
25515
25516 \end_inset
25517
25518
25519 \end_layout
25520
25521 \begin_layout Subsubsection
25522 Surrounding Space
25523 \end_layout
25524
25525 \begin_layout Standard
25526 The amount of space before and after multiple columns can be changed by
25527  changing the length 
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532
25533 \backslash
25534 multicolsep
25535 \end_layout
25536
25537 \end_inset
25538
25539 .
25540  For example the command
25541 \end_layout
25542
25543 \begin_layout LyX-Code
25544
25545 \backslash
25546 setlength{
25547 \backslash
25548 multicolsep}{3cm}
25549 \end_layout
25550
25551 \begin_layout Standard
25552 in \SpecialChar TeX
25553  Code changes its value to 3
25554 \begin_inset space \thinspace{}
25555 \end_inset
25556
25557 cm.
25558  The change must be made before the multiple columns' start.
25559  The predefined value is 13
25560 \begin_inset space \thinspace{}
25561 \end_inset
25562
25563 pt.
25564 \end_layout
25565
25566 \begin_layout Standard
25567 For this example 
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572
25573 \backslash
25574 multicolsep
25575 \end_layout
25576
25577 \end_inset
25578
25579  was set to 2.5
25580 \begin_inset space \thinspace{}
25581 \end_inset
25582
25583 cm:
25584 \end_layout
25585
25586 \begin_layout Standard
25587 \begin_inset ERT
25588 status open
25589
25590 \begin_layout Plain Layout
25591
25592
25593 \backslash
25594 setlength{
25595 \backslash
25596 multicolsep}{2.5cm}
25597 \end_layout
25598
25599 \end_inset
25600
25601
25602 \end_layout
25603
25604 \begin_layout Standard
25605 \begin_inset Flex Multiple Columns
25606 status open
25607
25608 \begin_layout Plain Layout
25609
25610 \size small
25611 All day I turned these facts over in my mind, endeavouring to hit upon some
25612  theory which could reconcile them all, and to find that line of least resistanc
25613 e which my poor friend had declared to be the starting-point of every investigat
25614 ion.
25615  I confess that I made little progress.
25616  In the evening I strolled across the Park, and found myself about six o'clock
25617  at the Oxford Street end of Park Lane.
25618  A group of loafers upon the pavements, all staring up at a particular window,
25619  directed me to the house which I had come to see.
25620  A tall, thin man with coloured glasses, whom I strongly suspected of being
25621  a plain-clothes detective, was pointing out some theory of his own, while
25622  the others crowded round to listen to what he said.
25623  I got as near him as I could, but his observations seemed to me to be absurd,
25624  so I withdrew again in some disgust.
25625  As I did so I struck against an elderly, deformed man, who had been behind
25626  me, and I knocked down several books which he was carrying.
25627 \end_layout
25628
25629 \end_inset
25630
25631
25632 \end_layout
25633
25634 \begin_layout Standard
25635 \begin_inset Note Greyedout
25636 status open
25637
25638 \begin_layout Plain Layout
25639
25640 \series bold
25641 Note:
25642 \series default
25643  The values you set with 
25644 \begin_inset Flex Code
25645 status collapsed
25646
25647 \begin_layout Plain Layout
25648
25649 \backslash
25650 setlength
25651 \end_layout
25652
25653 \end_inset
25654
25655  will be used for all following multiple columns until you change them again.
25656 \end_layout
25657
25658 \end_inset
25659
25660
25661 \end_layout
25662
25663 \begin_layout Standard
25664 \begin_inset ERT
25665 status collapsed
25666
25667 \begin_layout Plain Layout
25668
25669
25670 \backslash
25671 setlength{
25672 \backslash
25673 multicolsep}{13pt}
25674 \end_layout
25675
25676 \end_inset
25677
25678
25679 \begin_inset Note Note
25680 status collapsed
25681
25682 \begin_layout Plain Layout
25683 go back to the default
25684 \end_layout
25685
25686 \end_inset
25687
25688
25689 \end_layout
25690
25691 \begin_layout Standard
25692 \begin_inset Newpage newpage
25693 \end_inset
25694
25695
25696 \end_layout
25697
25698 \begin_layout Subsubsection
25699 Column Breaks
25700 \end_layout
25701
25702 \begin_layout Standard
25703 A column break can be forced by inserting the command 
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708
25709 \backslash
25710 columnbreak{}
25711 \end_layout
25712
25713 \end_inset
25714
25715  as \SpecialChar TeX
25716  Code to that position in the text where the column should be broken.
25717  Note that this leads in most cases to whitespace in the text.
25718 \begin_inset Newline newline
25719 \end_inset
25720
25721 Here is an example:
25722 \end_layout
25723
25724 \begin_layout Standard
25725 \begin_inset Flex Multiple Columns
25726 status open
25727
25728 \begin_layout Plain Layout
25729
25730 \size small
25731 \begin_inset Quotes eld
25732 \end_inset
25733
25734 You're surprised to see me, sir,
25735 \begin_inset Quotes erd
25736 \end_inset
25737
25738  said he, in a strange, croaking voice.
25739 \end_layout
25740
25741 \begin_layout Plain Layout
25742
25743 \size small
25744 I acknowledged that I was.
25745 \end_layout
25746
25747 \begin_layout Plain Layout
25748
25749 \size small
25750 \begin_inset Quotes eld
25751 \end_inset
25752
25753 Well, I've a conscience, sir, and when I chanced to see you go into this
25754  house, as I came hobbling after you, I thought to myself, I'll just step
25755  in and see that kind gentleman, and tell him that if I was a bit gruff
25756  in my manner there was not any harm meant, and that I am much obliged to
25757  him for picking up my books.
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761
25762 \end_layout
25763
25764 \begin_layout Plain Layout
25765
25766 \size small
25767 \begin_inset Quotes eld
25768 \end_inset
25769
25770 You make too much of a trifle,
25771 \begin_inset Quotes erd
25772 \end_inset
25773
25774  said I.
25775  
25776 \begin_inset Quotes eld
25777 \end_inset
25778
25779 May I ask how you knew who I was?
25780 \begin_inset Quotes erd
25781 \end_inset
25782
25783  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25784 \begin_inset ERT
25785 status collapsed
25786
25787 \begin_layout Plain Layout
25788
25789
25790 \backslash
25791 columnbreak{}
25792 \end_layout
25793
25794 \end_inset
25795
25796
25797 \end_layout
25798
25799 \begin_layout Plain Layout
25800
25801 \size small
25802 \begin_inset Quotes eld
25803 \end_inset
25804
25805 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25806  you'll find my little bookshop at the corner of Church Street, and very
25807  happy to see you, I am sure.
25808  Maybe you collect yourself, sir.
25809  Here's 
25810 \noun on
25811 British
25812 \begin_inset space ~
25813 \end_inset
25814
25815 Birds
25816 \noun default
25817 , and 
25818 \noun on
25819 Catullus
25820 \noun default
25821 , and 
25822 \noun on
25823 The Holy War
25824 \noun default
25825
25826 \begin_inset space ~
25827 \end_inset
25828
25829 – a bargain, every one of them.
25830  With five volumes you could just fill that gap on that second shelf.
25831  It looks untidy, does it not, sir?
25832 \begin_inset Quotes erd
25833 \end_inset
25834
25835
25836 \end_layout
25837
25838 \end_inset
25839
25840
25841 \end_layout
25842
25843 \begin_layout Subsubsection
25844 Column Separation
25845 \end_layout
25846
25847 \begin_layout Standard
25848 The width of the columns is automatically calculated, but you can modify
25849  the space between the columns.
25850  This is done by changing the length 
25851 \begin_inset Flex Code
25852 status collapsed
25853
25854 \begin_layout Plain Layout
25855
25856 \backslash
25857 columnsep
25858 \end_layout
25859
25860 \end_inset
25861
25862 .
25863  Its predefined value is 10
25864 \begin_inset space \thinspace{}
25865 \end_inset
25866
25867 pt.
25868  Here is an example where 
25869 \begin_inset Flex Code
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873
25874 \backslash
25875 columnsep
25876 \end_layout
25877
25878 \end_inset
25879
25880  is set to 3
25881 \begin_inset space \thinspace{}
25882 \end_inset
25883
25884 cm:
25885 \end_layout
25886
25887 \begin_layout Standard
25888 \begin_inset ERT
25889 status open
25890
25891 \begin_layout Plain Layout
25892
25893
25894 \backslash
25895 setlength{
25896 \backslash
25897 columnsep}{3cm}
25898 \end_layout
25899
25900 \end_inset
25901
25902
25903 \end_layout
25904
25905 \begin_layout Standard
25906 \begin_inset Flex Multiple Columns
25907 status open
25908
25909 \begin_layout Plain Layout
25910
25911 \size small
25912 My observations of No.
25913 \begin_inset space \space{}
25914 \end_inset
25915
25916 427 Park Lane did little to clear up the problem in which I was interested.
25917  The house was separated from the street by a low wall and railing, the
25918  whole not more than five feet high.
25919  It was perfectly easy, therefore, for anyone to get into the garden, but
25920  the window was entirely inaccessible, since there was no water pipe or
25921  anything which could help the most active man to climb it.
25922  More puzzled than ever, I retraced my steps to Kensington.
25923  I had not been in my study five minutes when the maid entered to say that
25924  a person desired to see me.
25925  To my astonishment it was none other than my strange old book collector,
25926  his sharp, wizened face peering out from a frame of white hair, and his
25927  precious volumes, a dozen of them at least, wedged under his right arm.
25928 \end_layout
25929
25930 \end_inset
25931
25932
25933 \end_layout
25934
25935 \begin_layout Standard
25936 \begin_inset ERT
25937 status collapsed
25938
25939 \begin_layout Plain Layout
25940
25941
25942 \backslash
25943 setlength{
25944 \backslash
25945 columnsep}{10pt}
25946 \end_layout
25947
25948 \end_inset
25949
25950
25951 \begin_inset Note Note
25952 status collapsed
25953
25954 \begin_layout Plain Layout
25955 go back to the default
25956 \end_layout
25957
25958 \end_inset
25959
25960
25961 \end_layout
25962
25963 \begin_layout Subsubsection
25964 Vertical Lines
25965 \end_layout
25966
25967 \begin_layout Standard
25968 Between the columns a rule with a width of the length 
25969 \begin_inset Flex Code
25970 status collapsed
25971
25972 \begin_layout Plain Layout
25973
25974 \backslash
25975 columnseprule
25976 \end_layout
25977
25978 \end_inset
25979
25980  is placed.
25981  If this rule width is set to 0
25982 \begin_inset space \thinspace{}
25983 \end_inset
25984
25985 pt (this is the default), the rule is suppressed.
25986  In the following example the rule is 2
25987 \begin_inset space \thinspace{}
25988 \end_inset
25989
25990 pt wide:
25991 \end_layout
25992
25993 \begin_layout Standard
25994 \begin_inset ERT
25995 status open
25996
25997 \begin_layout Plain Layout
25998
25999
26000 \backslash
26001 setlength{
26002 \backslash
26003 columnseprule}{2pt}
26004 \end_layout
26005
26006 \end_inset
26007
26008
26009 \end_layout
26010
26011 \begin_layout Standard
26012 \begin_inset Flex Multiple Columns
26013 status open
26014
26015 \begin_layout Plain Layout
26016
26017 \size small
26018 \begin_inset Quotes eld
26019 \end_inset
26020
26021 You're surprised to see me, sir,
26022 \begin_inset Quotes erd
26023 \end_inset
26024
26025  said he, in a strange, croaking voice.
26026 \end_layout
26027
26028 \begin_layout Plain Layout
26029
26030 \size small
26031 I acknowledged that I was.
26032 \end_layout
26033
26034 \begin_layout Plain Layout
26035
26036 \size small
26037 \begin_inset Quotes eld
26038 \end_inset
26039
26040 Well, I've a conscience, sir, and when I chanced to see you go into this
26041  house, as I came hobbling after you, I thought to myself, I'll just step
26042  in and see that kind gentleman, and tell him that if I was a bit gruff
26043  in my manner there was not any harm meant, and that I am much obliged to
26044  him for picking up my books.
26045 \begin_inset Quotes erd
26046 \end_inset
26047
26048
26049 \end_layout
26050
26051 \begin_layout Plain Layout
26052
26053 \size small
26054 \begin_inset Quotes eld
26055 \end_inset
26056
26057 You make too much of a trifle,
26058 \begin_inset Quotes erd
26059 \end_inset
26060
26061  said I.
26062  
26063 \begin_inset Quotes eld
26064 \end_inset
26065
26066 May I ask how you knew who I was?
26067 \begin_inset Quotes erd
26068 \end_inset
26069
26070
26071 \end_layout
26072
26073 \begin_layout Plain Layout
26074
26075 \size small
26076 \begin_inset Quotes eld
26077 \end_inset
26078
26079 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26080  you'll find my little bookshop at the corner of Church Street, and very
26081  happy to see you, I am sure.
26082  Maybe you collect yourself, sir.
26083  Here's 
26084 \noun on
26085 British
26086 \begin_inset space ~
26087 \end_inset
26088
26089 Birds
26090 \noun default
26091 , and 
26092 \noun on
26093 Catullus
26094 \noun default
26095 , and 
26096 \noun on
26097 The Holy War
26098 \noun default
26099
26100 \begin_inset space ~
26101 \end_inset
26102
26103 – a bargain, every one of them.
26104  With five volumes you could just fill that gap on that second shelf.
26105  It looks untidy, does it not, sir?
26106 \begin_inset Quotes erd
26107 \end_inset
26108
26109
26110 \end_layout
26111
26112 \end_inset
26113
26114
26115 \end_layout
26116
26117 \begin_layout Standard
26118 \begin_inset VSpace defskip
26119 \end_inset
26120
26121
26122 \end_layout
26123
26124 \begin_layout Standard
26125 The rule can be colored by redefining the command 
26126 \begin_inset Flex Code
26127 status collapsed
26128
26129 \begin_layout Plain Layout
26130
26131 \backslash
26132 columnseprulecolor
26133 \end_layout
26134
26135 \end_inset
26136
26137 .
26138  This is done by inserting the command
26139 \end_layout
26140
26141 \begin_layout LyX-Code
26142
26143 \backslash
26144 renewcommand{
26145 \backslash
26146 columnseprulecolor}{
26147 \backslash
26148 color{red}}
26149 \end_layout
26150
26151 \begin_layout Standard
26152 as \SpecialChar TeX
26153  Code before the multicolumn inset.
26154  Replace 
26155 \begin_inset Flex Code
26156 status collapsed
26157
26158 \begin_layout Plain Layout
26159 red
26160 \end_layout
26161
26162 \end_inset
26163
26164  in this command by a color of your choice.
26165  You can use all pre- and self-defined colors.
26166  See the 
26167 \emph on
26168 EmbeddedObjects
26169 \emph default
26170  manual, section 
26171 \emph on
26172 Colored
26173 \begin_inset space ~
26174 \end_inset
26175
26176 Tables
26177 \emph default
26178  for more information about pre- and self-defined colors.
26179  To go back to the default color insert the command
26180 \end_layout
26181
26182 \begin_layout LyX-Code
26183
26184 \backslash
26185 renewcommand{
26186 \backslash
26187 columnseprulecolor}{
26188 \backslash
26189 normalcolor}
26190 \end_layout
26191
26192 \begin_layout Standard
26193 Here is the example with a cyan rule and 1
26194 \begin_inset space \thinspace{}
26195 \end_inset
26196
26197 cm column separation:
26198 \end_layout
26199
26200 \begin_layout Standard
26201 \begin_inset ERT
26202 status open
26203
26204 \begin_layout Plain Layout
26205
26206
26207 \backslash
26208 setlength{
26209 \backslash
26210 columnsep}{1cm}
26211 \end_layout
26212
26213 \begin_layout Plain Layout
26214
26215
26216 \backslash
26217 renewcommand{
26218 \backslash
26219 columnseprulecolor}{
26220 \backslash
26221 color{cyan}}
26222 \end_layout
26223
26224 \end_inset
26225
26226
26227 \end_layout
26228
26229 \begin_layout Standard
26230 \begin_inset Flex Multiple Columns
26231 status open
26232
26233 \begin_layout Plain Layout
26234
26235 \size small
26236 \begin_inset Quotes eld
26237 \end_inset
26238
26239 You're surprised to see me, sir,
26240 \begin_inset Quotes erd
26241 \end_inset
26242
26243  said he, in a strange, croaking voice.
26244 \end_layout
26245
26246 \begin_layout Plain Layout
26247
26248 \size small
26249 I acknowledged that I was.
26250 \end_layout
26251
26252 \begin_layout Plain Layout
26253
26254 \size small
26255 \begin_inset Quotes eld
26256 \end_inset
26257
26258 Well, I've a conscience, sir, and when I chanced to see you go into this
26259  house, as I came hobbling after you, I thought to myself, I'll just step
26260  in and see that kind gentleman, and tell him that if I was a bit gruff
26261  in my manner there was not any harm meant, and that I am much obliged to
26262  him for picking up my books.
26263 \begin_inset Quotes erd
26264 \end_inset
26265
26266
26267 \end_layout
26268
26269 \begin_layout Plain Layout
26270
26271 \size small
26272 \begin_inset Quotes eld
26273 \end_inset
26274
26275 You make too much of a trifle,
26276 \begin_inset Quotes erd
26277 \end_inset
26278
26279  said I.
26280  
26281 \begin_inset Quotes eld
26282 \end_inset
26283
26284 May I ask how you knew who I was?
26285 \begin_inset Quotes erd
26286 \end_inset
26287
26288
26289 \end_layout
26290
26291 \begin_layout Plain Layout
26292
26293 \size small
26294 \begin_inset Quotes eld
26295 \end_inset
26296
26297 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26298  you'll find my little bookshop at the corner of Church Street, and very
26299  happy to see you, I am sure.
26300  Maybe you collect yourself, sir.
26301  Here's 
26302 \noun on
26303 British
26304 \begin_inset space ~
26305 \end_inset
26306
26307 Birds
26308 \noun default
26309 , and 
26310 \noun on
26311 Catullus
26312 \noun default
26313 , and 
26314 \noun on
26315 The Holy War
26316 \noun default
26317
26318 \begin_inset space ~
26319 \end_inset
26320
26321 – a bargain, every one of them.
26322  With five volumes you could just fill that gap on that second shelf.
26323  It looks untidy, does it not, sir?
26324 \begin_inset Quotes erd
26325 \end_inset
26326
26327
26328 \end_layout
26329
26330 \end_inset
26331
26332
26333 \end_layout
26334
26335 \begin_layout Standard
26336 \begin_inset ERT
26337 status collapsed
26338
26339 \begin_layout Plain Layout
26340
26341
26342 \backslash
26343 setlength{
26344 \backslash
26345 columnseprule}{0pt}
26346 \end_layout
26347
26348 \begin_layout Plain Layout
26349
26350
26351 \backslash
26352 renewcommand{
26353 \backslash
26354 columnseprulecolor}{
26355 \backslash
26356 normalcolor}
26357 \end_layout
26358
26359 \end_inset
26360
26361
26362 \begin_inset Note Note
26363 status collapsed
26364
26365 \begin_layout Plain Layout
26366 go back to the default
26367 \end_layout
26368
26369 \end_inset
26370
26371
26372 \end_layout
26373
26374 \begin_layout Section
26375 Non-standard Paragraph Shapes
26376 \end_layout
26377
26378 \begin_layout Standard
26379 \noindent
26380 \SpecialChar LaTeX
26381  as well as any other text processor uses by default rectangular paragraphs.
26382  For special cases like for example posters, invitation cards or poems you
26383  can modify the paragraph shape to one of your choice.
26384  This can be done by using the \SpecialChar LaTeX
26385 -package 
26386 \begin_inset Flex Code
26387 status collapsed
26388
26389 \begin_layout Plain Layout
26390 shapepar
26391 \end_layout
26392
26393 \end_inset
26394
26395  which is loaded by using in the document settings the module 
26396 \family sans
26397 Custom paragraph shapes
26398 \family default
26399 .
26400 \end_layout
26401
26402 \begin_layout Subsection
26403 Predefined shapes
26404 \end_layout
26405
26406 \begin_layout Standard
26407
26408 \series bold
26409 shapepar
26410 \series default
26411  provides the following shapes:
26412 \end_layout
26413
26414 \begin_layout Standard
26415 \begin_inset Tabular
26416 <lyxtabular version="3" rows="13" columns="3">
26417 <features booktabs="true" islongtable="true" longtabularalignment="center">
26418 <column alignment="left" valignment="middle" width="16col%">
26419 <column alignment="left" valignment="middle" width="40col%">
26420 <column alignment="left" valignment="middle" width="35col%">
26421 <row endhead="true">
26422 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26423 \begin_inset Text
26424
26425 \begin_layout Plain Layout
26426
26427 \series bold
26428 \size small
26429 Name
26430 \end_layout
26431
26432 \end_inset
26433 </cell>
26434 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26435 \begin_inset Text
26436
26437 \begin_layout Plain Layout
26438
26439 \series bold
26440 \size small
26441 Description
26442 \end_layout
26443
26444 \end_inset
26445 </cell>
26446 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26447 \begin_inset Text
26448
26449 \begin_layout Plain Layout
26450
26451 \series bold
26452 \size small
26453 Annotation
26454 \end_layout
26455
26456 \end_inset
26457 </cell>
26458 </row>
26459 <row interlinespace="default">
26460 <cell alignment="left" valignment="top" usebox="none">
26461 \begin_inset Text
26462
26463 \begin_layout Plain Layout
26464
26465 \size small
26466 CDlabel
26467 \end_layout
26468
26469 \end_inset
26470 </cell>
26471 <cell alignment="left" valignment="top" usebox="none">
26472 \begin_inset Text
26473
26474 \begin_layout Plain Layout
26475
26476 \size small
26477 Circle with circular hole (in the size of a CD/DVD)
26478 \end_layout
26479
26480 \end_inset
26481 </cell>
26482 <cell alignment="left" valignment="top" usebox="none">
26483 \begin_inset Text
26484
26485 \begin_layout Plain Layout
26486
26487 \size small
26488 Cannot be scaled, take care there is not too much text
26489 \end_layout
26490
26491 \end_inset
26492 </cell>
26493 </row>
26494 <row interlinespace="default">
26495 <cell alignment="left" valignment="top" usebox="none">
26496 \begin_inset Text
26497
26498 \begin_layout Plain Layout
26499
26500 \size small
26501 Circle
26502 \end_layout
26503
26504 \end_inset
26505 </cell>
26506 <cell alignment="left" valignment="top" usebox="none">
26507 \begin_inset Text
26508
26509 \begin_layout Plain Layout
26510
26511 \size small
26512 Circle
26513 \end_layout
26514
26515 \end_inset
26516 </cell>
26517 <cell alignment="left" valignment="top" usebox="none">
26518 \begin_inset Text
26519
26520 \begin_layout Plain Layout
26521
26522 \size small
26523 Fragile, calculation might fail
26524 \end_layout
26525
26526 \end_inset
26527 </cell>
26528 </row>
26529 <row interlinespace="default">
26530 <cell alignment="left" valignment="top" usebox="none">
26531 \begin_inset Text
26532
26533 \begin_layout Plain Layout
26534
26535 \size small
26536 Diamond
26537 \end_layout
26538
26539 \end_inset
26540 </cell>
26541 <cell alignment="left" valignment="top" usebox="none">
26542 \begin_inset Text
26543
26544 \begin_layout Plain Layout
26545
26546 \size small
26547 Rhomboid (symbolizing a 
26548 \begin_inset Quotes eld
26549 \end_inset
26550
26551 diamond
26552 \begin_inset Quotes erd
26553 \end_inset
26554
26555 )
26556 \end_layout
26557
26558 \end_inset
26559 </cell>
26560 <cell alignment="left" valignment="top" usebox="none">
26561 \begin_inset Text
26562
26563 \begin_layout Plain Layout
26564
26565 \size small
26566 -
26567 \end_layout
26568
26569 \end_inset
26570 </cell>
26571 </row>
26572 <row interlinespace="default">
26573 <cell alignment="left" valignment="top" usebox="none">
26574 \begin_inset Text
26575
26576 \begin_layout Plain Layout
26577
26578 \size small
26579 Heart
26580 \end_layout
26581
26582 \end_inset
26583 </cell>
26584 <cell alignment="left" valignment="top" usebox="none">
26585 \begin_inset Text
26586
26587 \begin_layout Plain Layout
26588
26589 \size small
26590 Heart-like shape
26591 \end_layout
26592
26593 \end_inset
26594 </cell>
26595 <cell alignment="left" valignment="top" usebox="none">
26596 \begin_inset Text
26597
26598 \begin_layout Plain Layout
26599
26600 \size small
26601 -
26602 \end_layout
26603
26604 \end_inset
26605 </cell>
26606 </row>
26607 <row interlinespace="default">
26608 <cell alignment="left" valignment="top" usebox="none">
26609 \begin_inset Text
26610
26611 \begin_layout Plain Layout
26612
26613 \size small
26614 Hexagon
26615 \end_layout
26616
26617 \end_inset
26618 </cell>
26619 <cell alignment="left" valignment="top" usebox="none">
26620 \begin_inset Text
26621
26622 \begin_layout Plain Layout
26623
26624 \size small
26625 Hexagon
26626 \end_layout
26627
26628 \end_inset
26629 </cell>
26630 <cell alignment="left" valignment="top" usebox="none">
26631 \begin_inset Text
26632
26633 \begin_layout Plain Layout
26634
26635 \size small
26636 -
26637 \end_layout
26638
26639 \end_inset
26640 </cell>
26641 </row>
26642 <row interlinespace="default">
26643 <cell alignment="left" valignment="top" usebox="none">
26644 \begin_inset Text
26645
26646 \begin_layout Plain Layout
26647
26648 \size small
26649 Nut
26650 \end_layout
26651
26652 \end_inset
26653 </cell>
26654 <cell alignment="left" valignment="top" usebox="none">
26655 \begin_inset Text
26656
26657 \begin_layout Plain Layout
26658
26659 \size small
26660 Nut for bolt (hexagon with circular hole)
26661 \end_layout
26662
26663 \end_inset
26664 </cell>
26665 <cell alignment="left" valignment="top" usebox="none">
26666 \begin_inset Text
26667
26668 \begin_layout Plain Layout
26669
26670 \size small
26671 -
26672 \end_layout
26673
26674 \end_inset
26675 </cell>
26676 </row>
26677 <row interlinespace="default">
26678 <cell alignment="left" valignment="top" usebox="none">
26679 \begin_inset Text
26680
26681 \begin_layout Plain Layout
26682
26683 \size small
26684 Square
26685 \end_layout
26686
26687 \end_inset
26688 </cell>
26689 <cell alignment="left" valignment="top" usebox="none">
26690 \begin_inset Text
26691
26692 \begin_layout Plain Layout
26693
26694 \size small
26695 Square
26696 \end_layout
26697
26698 \end_inset
26699 </cell>
26700 <cell alignment="left" valignment="top" usebox="none">
26701 \begin_inset Text
26702
26703 \begin_layout Plain Layout
26704
26705 \size small
26706 -
26707 \end_layout
26708
26709 \end_inset
26710 </cell>
26711 </row>
26712 <row interlinespace="default">
26713 <cell alignment="left" valignment="top" usebox="none">
26714 \begin_inset Text
26715
26716 \begin_layout Plain Layout
26717
26718 \size small
26719 Star
26720 \end_layout
26721
26722 \end_inset
26723 </cell>
26724 <cell alignment="left" valignment="top" usebox="none">
26725 \begin_inset Text
26726
26727 \begin_layout Plain Layout
26728
26729 \size small
26730 Five-point star
26731 \end_layout
26732
26733 \end_inset
26734 </cell>
26735 <cell alignment="left" valignment="top" usebox="none">
26736 \begin_inset Text
26737
26738 \begin_layout Plain Layout
26739
26740 \size small
26741 -
26742 \end_layout
26743
26744 \end_inset
26745 </cell>
26746 </row>
26747 <row interlinespace="default">
26748 <cell alignment="left" valignment="top" usebox="none">
26749 \begin_inset Text
26750
26751 \begin_layout Plain Layout
26752
26753 \size small
26754 Candle
26755 \end_layout
26756
26757 \end_inset
26758 </cell>
26759 <cell alignment="left" valignment="top" usebox="none">
26760 \begin_inset Text
26761
26762 \begin_layout Plain Layout
26763
26764 \size small
26765 Burning candle
26766 \end_layout
26767
26768 \end_inset
26769 </cell>
26770 <cell alignment="left" valignment="top" usebox="none">
26771 \begin_inset Text
26772
26773 \begin_layout Plain Layout
26774
26775 \size small
26776 -
26777 \end_layout
26778
26779 \end_inset
26780 </cell>
26781 </row>
26782 <row interlinespace="default">
26783 <cell alignment="left" valignment="top" usebox="none">
26784 \begin_inset Text
26785
26786 \begin_layout Plain Layout
26787
26788 \size small
26789 Drop down/up
26790 \end_layout
26791
26792 \end_inset
26793 </cell>
26794 <cell alignment="left" valignment="top" usebox="none">
26795 \begin_inset Text
26796
26797 \begin_layout Plain Layout
26798
26799 \size small
26800 Normal/reversed rain drop
26801 \end_layout
26802
26803 \end_inset
26804 </cell>
26805 <cell alignment="left" valignment="top" usebox="none">
26806 \begin_inset Text
26807
26808 \begin_layout Plain Layout
26809
26810 \size small
26811 Fragile, calculation might fail
26812 \end_layout
26813
26814 \end_inset
26815 </cell>
26816 </row>
26817 <row interlinespace="default">
26818 <cell alignment="left" valignment="top" usebox="none">
26819 \begin_inset Text
26820
26821 \begin_layout Plain Layout
26822
26823 \size small
26824 \SpecialChar TeX
26825
26826 \end_layout
26827
26828 \end_inset
26829 </cell>
26830 <cell alignment="left" valignment="top" usebox="none">
26831 \begin_inset Text
26832
26833 \begin_layout Plain Layout
26834
26835 \size small
26836 The \SpecialChar TeX
26837  logo
26838 \end_layout
26839
26840 \end_inset
26841 </cell>
26842 <cell alignment="left" valignment="top" usebox="none">
26843 \begin_inset Text
26844
26845 \begin_layout Plain Layout
26846
26847 \size small
26848 -
26849 \end_layout
26850
26851 \end_inset
26852 </cell>
26853 </row>
26854 <row interlinespace="default">
26855 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26856 \begin_inset Text
26857
26858 \begin_layout Plain Layout
26859
26860 \size small
26861 Triangle up/down/
26862 \begin_inset Newline newline
26863 \end_inset
26864
26865 left/right
26866 \end_layout
26867
26868 \end_inset
26869 </cell>
26870 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26871 \begin_inset Text
26872
26873 \begin_layout Plain Layout
26874
26875 \size small
26876 Triangles in different orientations
26877 \end_layout
26878
26879 \end_inset
26880 </cell>
26881 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26882 \begin_inset Text
26883
26884 \begin_layout Plain Layout
26885
26886 \size small
26887 -
26888 \end_layout
26889
26890 \end_inset
26891 </cell>
26892 </row>
26893 </lyxtabular>
26894
26895 \end_inset
26896
26897
26898 \end_layout
26899
26900 \begin_layout Standard
26901 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26902 's pull-down box
26903  for environments in the toolbar.
26904 \end_layout
26905
26906 \begin_layout Standard
26907 \begin_inset Newpage newpage
26908 \end_inset
26909
26910
26911 \end_layout
26912
26913 \begin_layout Standard
26914 Here is an example paragraph in the shape of a nut:
26915 \end_layout
26916
26917 \begin_layout Standard
26918 \begin_inset VSpace bigskip
26919 \end_inset
26920
26921
26922 \end_layout
26923
26924 \begin_layout Nut
26925
26926 \lang latin
26927 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26928  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26929  voluptua.
26930  At vero eos et accusam et justo duo dolores et ea rebum.
26931  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26932  sit amet.
26933  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26934  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26935  voluptua.
26936 \end_layout
26937
26938 \begin_layout Standard
26939 \begin_inset VSpace bigskip
26940 \end_inset
26941
26942
26943 \end_layout
26944
26945 \begin_layout Standard
26946 \begin_inset Note Greyedout
26947 status open
26948
26949 \begin_layout Plain Layout
26950
26951 \series bold
26952 Note
26953 \series default
26954
26955 \family sans
26956 shapepar
26957 \family default
26958  paragraphs cannot run over a page break.
26959 \end_layout
26960
26961 \end_inset
26962
26963
26964 \end_layout
26965
26966 \begin_layout Standard
26967 \begin_inset VSpace bigskip
26968 \end_inset
26969
26970
26971 \end_layout
26972
26973 \begin_layout Standard
26974 The package 
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 shapepar
26980 \end_layout
26981
26982 \end_inset
26983
26984  takes care that the shape will always be preserved, no matter how much
26985  text is in the paragraph.
26986  Therefore the paragraph size changes with the amount of contained text.
26987  This can lead to paragraph sizes exceeding the page margins.
26988  To demonstrate the size scaling, here is the same example paragraph but
26989  with twice as much text:
26990 \end_layout
26991
26992 \begin_layout Standard
26993 \begin_inset Newpage newpage
26994 \end_inset
26995
26996
26997 \end_layout
26998
26999 \begin_layout Nut
27000
27001 \lang latin
27002 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27003  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27004  voluptua.
27005  At vero eos et accusam et justo duo dolores et ea rebum.
27006  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27007  sit amet.
27008  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27009  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27010  voluptua.
27011  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27012  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27013  voluptua.
27014  At vero eos et accusam et justo duo dolores et ea rebum.
27015  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27016  sit amet.
27017  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27018  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27019  voluptua.
27020 \end_layout
27021
27022 \begin_layout Standard
27023 \begin_inset VSpace bigskip
27024 \end_inset
27025
27026
27027 \end_layout
27028
27029 \begin_layout Standard
27030 An exception is the shape 
27031 \family sans
27032 CDlabel
27033 \family default
27034 .
27035  It cannot be scaled because it must fit the size of a CD/DVD.
27036  Therefore the amount of text that fits into the shape is limited.
27037 \begin_inset Newline newline
27038 \end_inset
27039
27040 The 
27041 \family sans
27042 drop
27043 \family default
27044  shapes and the 
27045 \family sans
27046 circle
27047 \family default
27048  shape are fragile, meaning that the calculation of their size can fail,
27049  depending on the amount of text.
27050  You will then get the \SpecialChar LaTeX
27051  error 
27052 \begin_inset Quotes eld
27053 \end_inset
27054
27055 Arithmetic overflow
27056 \begin_inset Quotes erd
27057 \end_inset
27058
27059 .
27060  In this case one can try to remove or add some text; if nothing works one
27061  has to use another shape.
27062 \end_layout
27063
27064 \begin_layout Standard
27065 \begin_inset VSpace bigskip
27066 \end_inset
27067
27068
27069 \end_layout
27070
27071 \begin_layout Standard
27072 For shapes with tips you will maybe see that \SpecialChar LaTeX
27073 's hyphenation routine fails
27074  for text in the tips.
27075  Therefore it is often necessary to add hyphenation points 
27076 \family sans
27077 (
27078 \begin_inset Info
27079 type  "shortcut"
27080 arg   "specialchar-insert hyphenation"
27081 \end_inset
27082
27083
27084 \family default
27085 ) to the corresponding text parts.
27086 \end_layout
27087
27088 \begin_layout Standard
27089 \begin_inset VSpace bigskip
27090 \end_inset
27091
27092
27093 \end_layout
27094
27095 \begin_layout Standard
27096 Shapepar paragraphs are either always centered or placed on the page so
27097  that their left border touches the left page margin.
27098  You can therefore not use the paragraph dialog to align such paragraphs.
27099  A solution is to put the paragraph into a minipage or parbox and align
27100  the box.
27101  The problem is hereby to find the right width for the box.
27102  Because if it is too wide and you center the box, the paragraph is not
27103  centered too because it sticks at the left side of the box.
27104  So you might have to play a bit with the width until it fits.
27105  Here are two heart-shaped paragraphs, the first one is not aligned, the
27106  second one is right-aligned:
27107 \end_layout
27108
27109 \begin_layout Standard
27110 \begin_inset Newpage newpage
27111 \end_inset
27112
27113
27114 \end_layout
27115
27116 \begin_layout Heart
27117 \noindent
27118
27119 \lang latin
27120 Lo\SpecialChar softhyphen
27121 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27122  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27123  voluptua.
27124  At vero eos et accusam et justo duo dolores et ea rebum.
27125  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27126  sit amet.
27127 \end_layout
27128
27129 \begin_layout Standard
27130 \begin_inset VSpace bigskip
27131 \end_inset
27132
27133
27134 \end_layout
27135
27136 \begin_layout Standard
27137 \noindent
27138 \align right
27139 \begin_inset Box Frameless
27140 position "t"
27141 hor_pos "c"
27142 has_inner_box 1
27143 inner_pos "t"
27144 use_parbox 1
27145 use_makebox 0
27146 width "42col%"
27147 special "none"
27148 height "1in"
27149 height_special "totalheight"
27150 thickness "0.4pt"
27151 separation "3pt"
27152 shadowsize "4pt"
27153 framecolor "black"
27154 backgroundcolor "none"
27155 status open
27156
27157 \begin_layout Heart
27158 \noindent
27159
27160 \lang latin
27161 Lo\SpecialChar softhyphen
27162 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27163  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27164  voluptua.
27165  At vero eos et accusam et justo duo dolores et ea rebum.
27166  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27167  sit amet.
27168 \end_layout
27169
27170 \end_inset
27171
27172
27173 \end_layout
27174
27175 \begin_layout Subsection
27176 Custom shapes
27177 \end_layout
27178
27179 \begin_layout Standard
27180 You can define any shape you want.
27181  Doing this manually is a lot of work because every coordinate must be specified.
27182  But there is a way to let the computer calculate the coordinates:
27183 \end_layout
27184
27185 \begin_layout Enumerate
27186 Install the program 
27187 \begin_inset CommandInset href
27188 LatexCommand href
27189 name "Jpgfdraw"
27190 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
27191 literal "false"
27192
27193 \end_inset
27194
27195 .
27196 \end_layout
27197
27198 \begin_layout Enumerate
27199 In 
27200 \family sans
27201 Jpgfdraw
27202 \family default
27203  go to the menu 
27204 \family sans
27205 TeX/LaTeX\SpecialChar menuseparator
27206 Settings\SpecialChar menuseparator
27207 Set Normal Size
27208 \family default
27209  and select the font size you are using in your document.
27210  For example this document uses the size 12
27211 \begin_inset space \thinspace{}
27212 \end_inset
27213
27214 pt.
27215 \end_layout
27216
27217 \begin_layout Enumerate
27218 Draw a shape.
27219 \end_layout
27220
27221 \begin_layout Enumerate
27222 Use the menu 
27223 \family sans
27224 TeX/LaTeX\SpecialChar menuseparator
27225 Shapepar
27226 \family default
27227  to export the shape to coordinates.
27228  In the appearing dialog use either the outline of your shape for the coordinate
27229 s or the path itself.
27230 \begin_inset Foot
27231 status collapsed
27232
27233 \begin_layout Plain Layout
27234 For more information see 
27235 \begin_inset CommandInset href
27236 LatexCommand href
27237 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27238 literal "false"
27239
27240 \end_inset
27241
27242
27243 \end_layout
27244
27245 \end_inset
27246
27247
27248 \end_layout
27249
27250 \begin_layout Standard
27251 The coordinates are written into a \SpecialChar TeX
27252  file.
27253  To use it for your \SpecialChar LyX
27254  document
27255 \end_layout
27256
27257 \begin_layout Enumerate
27258 Place the cursor before the first character of your paragraph (or into a
27259  new empty one).
27260 \end_layout
27261
27262 \begin_layout Enumerate
27263 Open in \SpecialChar LyX
27264  the menu 
27265 \family sans
27266 Insert\SpecialChar menuseparator
27267 File\SpecialChar menuseparator
27268 Child
27269 \begin_inset space ~
27270 \end_inset
27271
27272 Document
27273 \family default
27274 , select the file and use 
27275 \family sans
27276 Input
27277 \family default
27278  as 
27279 \family sans
27280 Include Type.
27281 \end_layout
27282
27283 \begin_layout Standard
27284 \begin_inset VSpace defskip
27285 \end_inset
27286
27287
27288 \end_layout
27289
27290 \begin_layout Standard
27291 \begin_inset Note Greyedout
27292 status open
27293
27294 \begin_layout Plain Layout
27295
27296 \series bold
27297 Note
27298 \series default
27299 : The changed shape only applies to the current paragraph; everything is
27300  reset to normal for the next paragraph.
27301  Therefore the shape definition file must be input into every paragraph
27302  with the desired shape.
27303 \end_layout
27304
27305 \end_inset
27306
27307
27308 \end_layout
27309
27310 \begin_layout Standard
27311 \begin_inset VSpace bigskip
27312 \end_inset
27313
27314
27315 \end_layout
27316
27317 \begin_layout Standard
27318 Here is an example:
27319 \end_layout
27320
27321 \begin_layout Standard
27322 \begin_inset VSpace bigskip
27323 \end_inset
27324
27325
27326 \end_layout
27327
27328 \begin_layout Standard
27329 \begin_inset CommandInset include
27330 LatexCommand input
27331 filename "SpecialParagraphShape.tex"
27332 literal "true"
27333
27334 \end_inset
27335
27336
27337 \lang latin
27338 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27339  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27340  voluptua.
27341  At vero eos et accusam et justo duo dolores et ea rebum.
27342  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27343  sit amet.
27344  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27345  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27346  voluptua.
27347 \end_layout
27348
27349 \begin_layout Standard
27350 \begin_inset VSpace bigskip
27351 \end_inset
27352
27353
27354 \end_layout
27355
27356 \begin_layout Standard
27357
27358 \series bold
27359 A tip:
27360 \series default
27361  to draw complexer shapes in 
27362 \family sans
27363 Jpgfdraw
27364 \family default
27365  you can draw the shape in a program of your choice and import the resulting
27366  image to 
27367 \family sans
27368 Jpgfdraw
27369 \family default
27370 .
27371  Then you only need to draw a line or spline along the outline of the image.
27372 \end_layout
27373
27374 \begin_layout Standard
27375 \begin_inset VSpace bigskip
27376 \end_inset
27377
27378
27379 \end_layout
27380
27381 \begin_layout Standard
27382 The module 
27383 \family sans
27384 Custom paragraph shapes
27385 \family default
27386  also provides the two commands 
27387 \family sans
27388 shapepar
27389 \family default
27390  and 
27391 \family sans
27392 Shapepar
27393 \family default
27394  which can be used to define custom shapes coordinate by coordinate.
27395 \begin_inset Foot
27396 status collapsed
27397
27398 \begin_layout Plain Layout
27399 These commands are internally used for all shapes described here.
27400 \end_layout
27401
27402 \end_inset
27403
27404  For information how these styles are used and about further customization
27405  possibilities, have a look at the 
27406 \begin_inset CommandInset href
27407 LatexCommand href
27408 name "documentation"
27409 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
27410 literal "false"
27411
27412 \end_inset
27413
27414  of the package 
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419 shapepar
27420 \end_layout
27421
27422 \end_inset
27423
27424 .
27425 \end_layout
27426
27427 \end_body
27428 \end_document