]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update format for doc/ru files
[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 Chapter
5350 Supplemental Tools
5351 \end_layout
5352
5353 \begin_layout Section
5354 Customizing Bibliographies with Bib\SpecialChar TeX
5355  or Biblatex
5356 \end_layout
5357
5358 \begin_layout Standard
5359 The most basic information about how to use Bib\SpecialChar TeX
5360  or 
5361 \family sans
5362 Biblatex
5363 \family default
5364  with \SpecialChar LyX
5365  is contained in the section 
5366 \emph on
5367 Bibliography databases
5368 \emph default
5369  of the 
5370 \emph on
5371 User's Guide
5372 \emph default
5373 .
5374  The following subsections explain special bibliography features supported
5375  by \SpecialChar LyX
5376 .
5377 \end_layout
5378
5379 \begin_layout Subsection
5380 Alternative Citation Styles
5381 \end_layout
5382
5383 \begin_layout Standard
5384 Standard Bib\SpecialChar TeX
5385  uses numbers (e.
5386 \begin_inset space \thinspace{}
5387 \end_inset
5388
5389 g.
5390 \begin_inset space \space{}
5391 \end_inset
5392
5393
5394 \begin_inset Quotes eld
5395 \end_inset
5396
5397 [12]
5398 \begin_inset Quotes erd
5399 \end_inset
5400
5401 ) to refer to a cited work.
5402  However, in many scientific disciplines, other citation styles are in use.
5403  The most common one is the author-year style (e.
5404 \begin_inset space \thinspace{}
5405 \end_inset
5406
5407 g.
5408 \begin_inset space \space{}
5409 \end_inset
5410
5411
5412 \begin_inset Quotes eld
5413 \end_inset
5414
5415 Knuth 1984a
5416 \begin_inset Quotes erd
5417 \end_inset
5418
5419 ).
5420  \SpecialChar LyX
5421  supports three packages that provide this style, 
5422 \begin_inset Flex Code
5423 status collapsed
5424
5425 \begin_layout Plain Layout
5426 biblatex
5427 \end_layout
5428
5429 \end_inset
5430
5431
5432 \begin_inset Flex Code
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436 natbib
5437 \end_layout
5438
5439 \end_inset
5440
5441 , and 
5442 \begin_inset Flex Code
5443 status collapsed
5444
5445 \begin_layout Plain Layout
5446 jurabib
5447 \end_layout
5448
5449 \end_inset
5450
5451 .
5452  Each of these packages has their pros and cons, which cannot be listed
5453  in detail.
5454  If you only want to have simple author-year (or author-numerical) style,
5455  or if you want to use one of the countless style files for 
5456 \begin_inset Flex Code
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460 natbib
5461 \end_layout
5462
5463 \end_inset
5464
5465 , then the established 
5466 \begin_inset Flex Code
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 natbib
5471 \end_layout
5472
5473 \end_inset
5474
5475  package is probably your choice.
5476  If you look for specific citation styles common in law studies, you might
5477  consider the 
5478 \begin_inset Flex Code
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 jurabib
5483 \end_layout
5484
5485 \end_inset
5486
5487  package.
5488  If you want to have full control over the formatting or look for advanced
5489  features such as ibidem, footnote citations, full title citations, advanced
5490  date formats (such as 400 BC) or full localization to other languages than
5491  English, you should definitely consider 
5492 \begin_inset Flex Code
5493 status collapsed
5494
5495 \begin_layout Plain Layout
5496 biblatex
5497 \end_layout
5498
5499 \end_inset
5500
5501 , which exceeds all other packages in terms of features, but is also quite
5502  heavy and more resource-hungry.
5503 \end_layout
5504
5505 \begin_layout Standard
5506 The handling of these packages in \SpecialChar LyX
5507  is basically the same.
5508  Go to 
5509 \begin_inset Flex Noun
5510 status collapsed
5511
5512 \begin_layout Plain Layout
5513 Document\SpecialChar menuseparator
5514 Settings
5515 \end_layout
5516
5517 \end_inset
5518
5519  and select under 
5520 \begin_inset Flex Noun
5521 status collapsed
5522
5523 \begin_layout Plain Layout
5524 Bibliography
5525 \end_layout
5526
5527 \end_inset
5528
5529  the 
5530 \begin_inset Flex Noun
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 Style Format
5535 \end_layout
5536
5537 \end_inset
5538
5539  
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 Basic (BibTeX)
5545 \end_layout
5546
5547 \end_inset
5548
5549
5550 \begin_inset Flex Noun
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 Biblatex
5555 \end_layout
5556
5557 \end_inset
5558
5559
5560 \begin_inset Flex Noun
5561 status collapsed
5562
5563 \begin_layout Plain Layout
5564 Biblatex (Natbib mode)
5565 \end_layout
5566
5567 \end_inset
5568
5569
5570 \begin_inset Flex Noun
5571 status collapsed
5572
5573 \begin_layout Plain Layout
5574 Natbib (BibTeX)
5575 \end_layout
5576
5577 \end_inset
5578
5579  or 
5580 \begin_inset Flex Noun
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584 Jurabib (BibTeX)
5585 \end_layout
5586
5587 \end_inset
5588
5589  (see sec.
5590 \begin_inset space ~
5591 \end_inset
5592
5593 6.5.3 in the User's Guide for more information on these choices).
5594  With all these packages, you will get some extra features in the citation
5595  dialog and you can select the style of the reference (
5596 \begin_inset Quotes eld
5597 \end_inset
5598
5599 Knuth 1984
5600 \begin_inset Quotes erd
5601 \end_inset
5602
5603
5604 \begin_inset Quotes eld
5605 \end_inset
5606
5607 Knuth (1984)
5608 \begin_inset Quotes erd
5609 \end_inset
5610
5611
5612 \begin_inset Quotes eld
5613 \end_inset
5614
5615 Knuth, 1984
5616 \begin_inset Quotes erd
5617 \end_inset
5618
5619
5620 \begin_inset Quotes eld
5621 \end_inset
5622
5623 1984
5624 \begin_inset Quotes erd
5625 \end_inset
5626
5627  etc.).
5628  Note that either package needs specifically designed style files.
5629  They all ship their own, but there are lots of additional style files,
5630  and there is even an interactive style file builder
5631 \begin_inset Foot
5632 status collapsed
5633
5634 \begin_layout Plain Layout
5635 See 
5636 \begin_inset Flex URL
5637 status open
5638
5639 \begin_layout Plain Layout
5640
5641 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
5642 \end_layout
5643
5644 \end_inset
5645
5646
5647 \end_layout
5648
5649 \end_inset
5650
5651  for 
5652 \begin_inset Flex Code
5653 status collapsed
5654
5655 \begin_layout Plain Layout
5656 natbib
5657 \end_layout
5658
5659 \end_inset
5660
5661 .
5662 \end_layout
5663
5664 \begin_layout Subsection
5665 Subdivided Bibliographies
5666 \end_layout
5667
5668 \begin_layout Standard
5669 Sometimes you might need to divide your bibliography into several sections.
5670  If you are for instance a historian, the possibility to separate sources
5671  and scientific works is most likely a 
5672 \begin_inset Quotes eld
5673 \end_inset
5674
5675 must have
5676 \begin_inset Quotes erd
5677 \end_inset
5678
5679 .
5680  Unfortunately, Bib\SpecialChar TeX
5681  itself does not allow you to do this.
5682  But with the help of some \SpecialChar LaTeX
5683  packages, Bib\SpecialChar TeX
5684  can be extended to fit your needs.
5685 \end_layout
5686
5687 \begin_layout Standard
5688 \SpecialChar LyX
5689  provides native support for one of these packages, 
5690 \family typewriter
5691 bibtopic
5692 \family default
5693 .
5694 \begin_inset Foot
5695 status collapsed
5696
5697 \begin_layout Plain Layout
5698 Available from 
5699 \begin_inset Flex URL
5700 status open
5701
5702 \begin_layout Plain Layout
5703
5704 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
5705 \end_layout
5706
5707 \end_inset
5708
5709
5710 \end_layout
5711
5712 \end_inset
5713
5714  The advantage of this package (compared to other packages such as 
5715 \family typewriter
5716 multibib
5717 \family default
5718 ) is that you don't need to define new citation commands.
5719  Instead, you need to prepare different bibliographic databases which include
5720  the entries for the different sections of the bibliography.
5721  For example: If you want to divide your bibliography into the sections
5722  
5723 \begin_inset Quotes eld
5724 \end_inset
5725
5726 Sources
5727 \begin_inset Quotes erd
5728 \end_inset
5729
5730  and 
5731 \begin_inset Quotes eld
5732 \end_inset
5733
5734 Scientific works
5735 \begin_inset Quotes erd
5736 \end_inset
5737
5738 , you first need to create two bibliographic databases, e.
5739 \begin_inset space \thinspace{}
5740 \end_inset
5741
5742 g.
5743 \begin_inset space \space{}
5744 \end_inset
5745
5746
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751 sources.bib
5752 \end_layout
5753
5754 \end_inset
5755
5756  and 
5757 \begin_inset Flex Code
5758 status collapsed
5759
5760 \begin_layout Plain Layout
5761 scientific.bib
5762 \end_layout
5763
5764 \end_inset
5765
5766 .
5767  
5768 \end_layout
5769
5770 \begin_layout Standard
5771 Go to 
5772 \begin_inset Flex Noun
5773 status collapsed
5774
5775 \begin_layout Plain Layout
5776 Document\SpecialChar menuseparator
5777 Settings
5778 \end_layout
5779
5780 \end_inset
5781
5782  and check under 
5783 \begin_inset Flex Noun
5784 status collapsed
5785
5786 \begin_layout Plain Layout
5787 Bibliography
5788 \end_layout
5789
5790 \end_inset
5791
5792  the option 
5793 \begin_inset Flex Noun
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 Subdivided bibliography
5798 \end_layout
5799
5800 \end_inset
5801
5802 .
5803  Now you can insert multiple Bib\SpecialChar TeX
5804  bibliographies, one for each section of
5805  your bibliography.
5806  Returning to our example: Insert the Bib\SpecialChar TeX
5807  bibliography 
5808 \begin_inset Flex Code
5809 status collapsed
5810
5811 \begin_layout Plain Layout
5812 sources.bib
5813 \end_layout
5814
5815 \end_inset
5816
5817  and a second one for the database 
5818 \begin_inset Flex Code
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 scientific.bib
5823 \end_layout
5824
5825 \end_inset
5826
5827 .
5828  You are free to use the same or different styles for each section.
5829  Additionally, you can choose if the bibliography section should contain
5830  
5831 \begin_inset Quotes eld
5832 \end_inset
5833
5834 all cited references
5835 \begin_inset Quotes erd
5836 \end_inset
5837
5838  of the specified database(s) (which is the default), 
5839 \begin_inset Quotes eld
5840 \end_inset
5841
5842 all uncited references
5843 \begin_inset Quotes erd
5844 \end_inset
5845
5846  or even 
5847 \begin_inset Quotes eld
5848 \end_inset
5849
5850 all references
5851 \begin_inset Quotes erd
5852 \end_inset
5853
5854 .
5855  This might be useful if you would like to separate your bibliography into
5856  three sections: 
5857 \begin_inset Quotes eld
5858 \end_inset
5859
5860 Cited sources
5861 \begin_inset Quotes erd
5862 \end_inset
5863
5864
5865 \begin_inset Quotes eld
5866 \end_inset
5867
5868 Uncited sources
5869 \begin_inset Quotes erd
5870 \end_inset
5871
5872 , and 
5873 \begin_inset Quotes eld
5874 \end_inset
5875
5876 Scientific works
5877 \begin_inset Quotes erd
5878 \end_inset
5879
5880 .
5881  The titles for the sections can be added as ordinary sections or subsections.
5882  Since 
5883 \begin_inset Flex Code
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 bibtopic
5888 \end_layout
5889
5890 \end_inset
5891
5892  removes the bibliography title, you have to manually re-add that, too (as
5893  a chapter* or section*, for instance).
5894 \end_layout
5895
5896 \begin_layout Standard
5897 With 
5898 \family sans
5899 Biblatex
5900 \family default
5901 , the procedure is a bit different.
5902  Since 
5903 \family typewriter
5904 bibtopic
5905 \family default
5906  does not work with 
5907 \family sans
5908 Biblatex
5909 \family default
5910 , the aforementioned 
5911 \begin_inset Flex Noun
5912 status collapsed
5913
5914 \begin_layout Plain Layout
5915 Subdivided bibliography
5916 \end_layout
5917
5918 \end_inset
5919
5920  option is disabled if you use 
5921 \family sans
5922 Biblatex
5923 \family default
5924 .
5925  However, 
5926 \family sans
5927 Biblatex
5928 \family default
5929  provides its own means to generate subdivided bibliographies.
5930  You can either add keywords to bibliography entries via the 
5931 \begin_inset Flex Code
5932 status collapsed
5933
5934 \begin_layout Plain Layout
5935 keywords
5936 \end_layout
5937
5938 \end_inset
5939
5940  entry option and then filter bibliography sections by keyword (by adding
5941  
5942 \begin_inset Flex Code
5943 status collapsed
5944
5945 \begin_layout Plain Layout
5946 keyword=mykeyword
5947 \end_layout
5948
5949 \end_inset
5950
5951  to the 
5952 \begin_inset Flex Noun
5953 status collapsed
5954
5955 \begin_layout Plain Layout
5956 Options
5957 \end_layout
5958
5959 \end_inset
5960
5961  field of the dialog that opens if you left-click on the 
5962 \begin_inset Flex Noun
5963 status collapsed
5964
5965 \begin_layout Plain Layout
5966 Biblatex Generated Bibliography
5967 \end_layout
5968
5969 \end_inset
5970
5971  button), or you can filter by entry types (such as 
5972 \emph on
5973 book
5974 \emph default
5975  or 
5976 \emph on
5977 article
5978 \emph default
5979 ) by entering e.
5980 \begin_inset space \thinspace{}
5981 \end_inset
5982
5983 g.
5984  
5985 \begin_inset Flex Code
5986 status collapsed
5987
5988 \begin_layout Plain Layout
5989 type=book
5990 \end_layout
5991
5992 \end_inset
5993
5994  or 
5995 \begin_inset Flex Code
5996 status collapsed
5997
5998 \begin_layout Plain Layout
5999 nottype=collection
6000 \end_layout
6001
6002 \end_inset
6003
6004  to the mentioned 
6005 \begin_inset Flex Noun
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 Options
6010 \end_layout
6011
6012 \end_inset
6013
6014  field, or you can create so-called 
6015 \begin_inset Quotes eld
6016 \end_inset
6017
6018 Bibliography Categories
6019 \begin_inset Quotes erd
6020 \end_inset
6021
6022  to which you can assign individual entries.
6023  Please refer to the Biblatex manual, section 
6024 \emph on
6025 Subdivided Bibliographies
6026 \emph default
6027 , for details.
6028 \end_layout
6029
6030 \begin_layout Subsection
6031 Multiple Bibliographies
6032 \begin_inset CommandInset label
6033 LatexCommand label
6034 name "subsec:Multiple-Bibliographies"
6035
6036 \end_inset
6037
6038
6039 \end_layout
6040
6041 \begin_layout Standard
6042 Multiple bibliographies, e.
6043 \begin_inset space \thinspace{}
6044 \end_inset
6045
6046 g.
6047 \begin_inset space \space{}
6048 \end_inset
6049
6050 a bibliography for each part, chapter, section, subsection or child (sub-documen
6051 t) of the document, are also supported by \SpecialChar LyX
6052 .
6053  In order to enable it, go to 
6054 \begin_inset Flex Noun
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 Document\SpecialChar menuseparator
6059 Settings\SpecialChar menuseparator
6060 Bibliography
6061 \end_layout
6062
6063 \end_inset
6064
6065  and select the relevant unit (e.
6066 \begin_inset space \thinspace{}
6067 \end_inset
6068
6069 g., 
6070 \begin_inset Quotes eld
6071 \end_inset
6072
6073 per section
6074 \begin_inset Quotes erd
6075 \end_inset
6076
6077 ) in the 
6078 \begin_inset Flex Noun
6079 status collapsed
6080
6081 \begin_layout Plain Layout
6082 Multiple Bibliographies
6083 \end_layout
6084
6085 \end_inset
6086
6087  combo box.
6088  Then add a Bib(la)\SpecialChar TeX
6089  bibliography to each unit (e.
6090 \begin_inset space \thinspace{}
6091 \end_inset
6092
6093 g., section) of your document.
6094  In the output, a separate bibliography, containing only the references
6095  done in the current unit is generated.
6096 \end_layout
6097
6098 \begin_layout Standard
6099 If you use Bib\SpecialChar TeX
6100 , either the 
6101 \begin_inset Flex Code
6102 status collapsed
6103
6104 \begin_layout Plain Layout
6105 chapterbib
6106 \end_layout
6107
6108 \end_inset
6109
6110  or the 
6111 \begin_inset Flex Code
6112 status collapsed
6113
6114 \begin_layout Plain Layout
6115 bibtopic
6116 \end_layout
6117
6118 \end_inset
6119
6120  package is used to create multiple bibliographies.
6121  The former package is used if you select 
6122 \begin_inset Quotes eld
6123 \end_inset
6124
6125 per child document
6126 \begin_inset Quotes erd
6127 \end_inset
6128
6129  and do 
6130 \emph on
6131 not
6132 \emph default
6133  check 
6134 \begin_inset Flex Noun
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 Sectioned Bibliography
6139 \end_layout
6140
6141 \end_inset
6142
6143 .
6144  In all other cases, 
6145 \begin_inset Flex Code
6146 status collapsed
6147
6148 \begin_layout Plain Layout
6149 bibtopic
6150 \end_layout
6151
6152 \end_inset
6153
6154  is used.
6155 \begin_inset Foot
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 An alternative approach, if you are willing to use some 
6160 \begin_inset Flex Noun
6161 status collapsed
6162
6163 \begin_layout Plain Layout
6164 \SpecialChar TeX
6165  Code
6166 \end_layout
6167
6168 \end_inset
6169
6170  (see section
6171 \begin_inset space ~
6172 \end_inset
6173
6174
6175 \begin_inset CommandInset ref
6176 LatexCommand ref
6177 reference "sec:Inserting-TeX-Code"
6178
6179 \end_inset
6180
6181 ), is to use the 
6182 \begin_inset Flex Code
6183 status collapsed
6184
6185 \begin_layout Plain Layout
6186 bibunits
6187 \end_layout
6188
6189 \end_inset
6190
6191  package.
6192 \end_layout
6193
6194 \end_inset
6195
6196  If 
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 bibtopic
6202 \end_layout
6203
6204 \end_inset
6205
6206  is used, \SpecialChar LyX
6207  encloses the specified units in 
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 bibtopic
6213 \end_layout
6214
6215 \end_inset
6216
6217 's 
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222
6223 \backslash
6224 begin{btUnit}
6225 \end_layout
6226
6227 \end_inset
6228
6229  and 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234
6235 \backslash
6236 end{btUnit}
6237 \end_layout
6238
6239 \end_inset
6240
6241  in order to create the units.
6242  Note that this approach has some limitations.
6243  First, every citation reference has to be inside some 
6244 \begin_inset Flex Code
6245 status collapsed
6246
6247 \begin_layout Plain Layout
6248 btUnit
6249 \end_layout
6250
6251 \end_inset
6252
6253 .
6254  So citations outside a defined unit (e.
6255 \begin_inset space \thinspace{}
6256 \end_inset
6257
6258 g., before the first section if you use 
6259 \begin_inset Quotes eld
6260 \end_inset
6261
6262 by section
6263 \begin_inset Quotes erd
6264 \end_inset
6265
6266 ) will appear as 
6267 \begin_inset Quotes eld
6268 \end_inset
6269
6270 ???
6271 \begin_inset Quotes erd
6272 \end_inset
6273
6274 .
6275  You can also create your own units by entering 
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280
6281 \backslash
6282 begin{btUnit}
6283 \end_layout
6284
6285 \end_inset
6286
6287  and 
6288 \begin_inset Flex Code
6289 status collapsed
6290
6291 \begin_layout Plain Layout
6292
6293 \backslash
6294 end{btUnit}
6295 \end_layout
6296
6297 \end_inset
6298
6299  as \SpecialChar TeX
6300  code (for instance to work around the mentioned limitation).
6301  Note, though, that 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 btUnit
6307 \end_layout
6308
6309 \end_inset
6310
6311 s cannot be nested.
6312  A second limitation is that 
6313 \begin_inset Flex Code
6314 status collapsed
6315
6316 \begin_layout Plain Layout
6317 bibtopic
6318 \end_layout
6319
6320 \end_inset
6321
6322  always processes all references of a bibliography database, even if they
6323  are not cited.
6324  This can result in odd labels (e.
6325 \begin_inset space \thinspace{}
6326 \end_inset
6327
6328 g.
6329  
6330 \begin_inset Quotes eld
6331 \end_inset
6332
6333 Miller 2014b
6334 \begin_inset Quotes erd
6335 \end_inset
6336
6337  if two works of this author from 2014 are in the database, even if only
6338  one is cited).
6339 \end_layout
6340
6341 \begin_layout Standard
6342 If you use 
6343 \family sans
6344 Biblatex
6345 \family default
6346 , the 
6347 \begin_inset Flex Code
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 refsection
6352 \end_layout
6353
6354 \end_inset
6355
6356  option is used instead.
6357  If you need specific units, you can start them with the \SpecialChar TeX
6358  code 
6359 \begin_inset Flex Code
6360 status collapsed
6361
6362 \begin_layout Plain Layout
6363
6364 \backslash
6365 newrefsection
6366 \end_layout
6367
6368 \end_inset
6369
6370  or 
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375
6376 \backslash
6377 newrefsegment
6378 \end_layout
6379
6380 \end_inset
6381
6382 , respectively.
6383  If you also want to control the end of the unit, use the environment 
6384 \begin_inset Flex Code
6385 status collapsed
6386
6387 \begin_layout Plain Layout
6388
6389 \backslash
6390 begin{refsection}
6391 \end_layout
6392
6393 \end_inset
6394
6395  \SpecialChar ldots
6396  
6397 \begin_inset Flex Code
6398 status collapsed
6399
6400 \begin_layout Plain Layout
6401
6402 \backslash
6403 end{refsection}
6404 \end_layout
6405
6406 \end_inset
6407
6408  instead.
6409  Note, though, that 
6410 \begin_inset Flex Code
6411 status collapsed
6412
6413 \begin_layout Plain Layout
6414 refsection
6415 \end_layout
6416
6417 \end_inset
6418
6419 s cannot be nested.
6420  In addition to the individual bibliography of the current unit, 
6421 \family sans
6422 Biblatex
6423 \family default
6424  also provides an easy way to output all bibliographies, subsequently, at
6425  one place (e.
6426 \begin_inset space \thinspace{}
6427 \end_inset
6428
6429 g., at the end of the document).
6430  Select 
6431 \begin_inset Quotes eld
6432 \end_inset
6433
6434 all reference units
6435 \begin_inset Quotes erd
6436 \end_inset
6437
6438  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
6439  this.
6440  Please refer to the 
6441 \family sans
6442 Biblatex
6443 \family default
6444  manual for more information on this topic.
6445 \end_layout
6446
6447 \begin_layout Section
6448 Multipart Documents
6449 \end_layout
6450
6451 \begin_layout Subsection
6452 General Operation
6453 \end_layout
6454
6455 \begin_layout Standard
6456 When you are working on a large file with many sections, it is often convenient
6457  to break up the document into several files, or perhaps you have something
6458  where a table may change from time to time, but the preceding text does
6459  not.
6460  In these cases, you should seriously consider using multipart documents.
6461  For example, scientific papers often have five major sections: the introduction
6462 , observations, results, discussion, and conclusion.
6463  Each of these could be its own separate \SpecialChar LyX
6464  file, with one 
6465 \begin_inset Quotes eld
6466 \end_inset
6467
6468 master
6469 \begin_inset Quotes erd
6470 \end_inset
6471
6472  file which contains the title, authors, abstract, references, etc., plus
6473  the five included files.
6474  It is important to note that each of these files is a full \SpecialChar LyX
6475  file which
6476  can be formatted and printed on its own, as well as included in a master
6477  file.
6478  Each of these files must have the same document class, however—don't attempt
6479  to mix book classes with article classes.
6480  You may also include \SpecialChar LaTeX
6481  files; however, these files must not have their own
6482  preamble (i.
6483 \begin_inset space \thinspace{}
6484 \end_inset
6485
6486 e.
6487 \begin_inset space \space{}
6488 \end_inset
6489
6490 everything up to and including the 
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495
6496 \backslash
6497 begin{document}
6498 \end_layout
6499
6500 \end_inset
6501
6502  line as well as the 
6503 \begin_inset Flex Code
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507
6508 \backslash
6509 end{document}
6510 \end_layout
6511
6512 \end_inset
6513
6514  line must be deleted) or else errors will be generated when you try to
6515  make a DVI file.
6516 \end_layout
6517
6518 \begin_layout Standard
6519 \SpecialChar LyX
6520  allows you to include files quite easily with 
6521 \begin_inset Flex Noun
6522 status collapsed
6523
6524 \begin_layout Plain Layout
6525 Insert\SpecialChar menuseparator
6526 Child
6527 \begin_inset space ~
6528 \end_inset
6529
6530 Document
6531 \end_layout
6532
6533 \end_inset
6534
6535 .
6536  When you click on this selection a small box is inserted into the file
6537  at the current cursor location.
6538  Clicking on the box raises a dialog which allows you to select the file
6539  to be included, and the method of its inclusion.
6540  
6541 \end_layout
6542
6543 \begin_layout Standard
6544 The file selection box should by now be obvious.
6545  The three inclusion methods are 
6546 \begin_inset Quotes eld
6547 \end_inset
6548
6549 include
6550 \begin_inset Quotes erd
6551 \end_inset
6552
6553
6554 \begin_inset Quotes eld
6555 \end_inset
6556
6557 input
6558 \begin_inset Quotes erd
6559 \end_inset
6560
6561 , and 
6562 \begin_inset Quotes eld
6563 \end_inset
6564
6565 verbatim
6566 \begin_inset Quotes erd
6567 \end_inset
6568
6569 .
6570  The methods 
6571 \begin_inset Quotes eld
6572 \end_inset
6573
6574 include
6575 \begin_inset Quotes erd
6576 \end_inset
6577
6578  and 
6579 \begin_inset Quotes eld
6580 \end_inset
6581
6582 input
6583 \begin_inset Quotes erd
6584 \end_inset
6585
6586  are similar in many ways, but there are also some notable differences:
6587 \end_layout
6588
6589 \begin_layout Enumerate
6590 Files that are 
6591 \begin_inset Quotes eld
6592 \end_inset
6593
6594 included
6595 \begin_inset Quotes erd
6596 \end_inset
6597
6598  are typeset beginning on a new page, while files that are 
6599 \begin_inset Quotes eld
6600 \end_inset
6601
6602 inputted
6603 \begin_inset Quotes erd
6604 \end_inset
6605
6606  are typeset starting on the current page.
6607 \end_layout
6608
6609 \begin_layout Enumerate
6610 \begin_inset Quotes eld
6611 \end_inset
6612
6613 Included
6614 \begin_inset Quotes erd
6615 \end_inset
6616
6617  files cannot themselves 
6618 \begin_inset Quotes eld
6619 \end_inset
6620
6621 include
6622 \begin_inset Quotes erd
6623 \end_inset
6624
6625  further files (
6626 \begin_inset Quotes eld
6627 \end_inset
6628
6629 grandchilds
6630 \begin_inset Quotes erd
6631 \end_inset
6632
6633 ).
6634  With 
6635 \begin_inset Quotes eld
6636 \end_inset
6637
6638 input
6639 \begin_inset Quotes erd
6640 \end_inset
6641
6642 , on the other hand, infinite sub-inputting is possible.
6643 \end_layout
6644
6645 \begin_layout Enumerate
6646 \begin_inset Quotes eld
6647 \end_inset
6648
6649 Include
6650 \begin_inset Quotes erd
6651 \end_inset
6652
6653  allow for the output of only selected 
6654 \begin_inset Quotes eld
6655 \end_inset
6656
6657 included
6658 \begin_inset Quotes erd
6659 \end_inset
6660
6661  files, while maintaining the actual counters (pagination etc.) and references
6662  (please refer to the section 
6663 \emph on
6664 Child
6665 \begin_inset space ~
6666 \end_inset
6667
6668 Documents
6669 \emph default
6670  of the 
6671 \emph on
6672 Embedded
6673 \begin_inset space ~
6674 \end_inset
6675
6676 Objects
6677 \emph default
6678  manual for details).
6679 \end_layout
6680
6681 \begin_layout Standard
6682 Hence, 
6683 \begin_inset Quotes eld
6684 \end_inset
6685
6686 include
6687 \begin_inset Quotes erd
6688 \end_inset
6689
6690  is the preferred method for chapters that are outsourced to child documents,
6691  while 
6692 \begin_inset Quotes eld
6693 \end_inset
6694
6695 input
6696 \begin_inset Quotes erd
6697 \end_inset
6698
6699  is more suitable for arbitrary file inheritance.
6700 \end_layout
6701
6702 \begin_layout Standard
6703
6704 \begin_inset Quotes eld
6705 \end_inset
6706
6707 verbatim
6708 \begin_inset Quotes erd
6709 \end_inset
6710
6711  included file allows you to include a file typeset exactly as it appears
6712  in the file, i.
6713 \begin_inset space \thinspace{}
6714 \end_inset
6715
6716 e.
6717 \begin_inset space \space{}
6718 \end_inset
6719
6720 in 
6721 \begin_inset Flex Code
6722 status collapsed
6723
6724 \begin_layout Plain Layout
6725 verbatim
6726 \end_layout
6727
6728 \end_inset
6729
6730  mode, with the characters set in a fixed-width typewriter font.
6731  Normally, spaces in this file are invisible, though two consecutive spaces
6732  are conserved, unlike \SpecialChar LyX
6733 's normal treatment of spaces.
6734  However, setting the 
6735 \begin_inset Flex Noun
6736 status collapsed
6737
6738 \begin_layout Plain Layout
6739 Mark
6740 \begin_inset space ~
6741 \end_inset
6742
6743 spaces
6744 \begin_inset space ~
6745 \end_inset
6746
6747 in
6748 \begin_inset space ~
6749 \end_inset
6750
6751 output
6752 \end_layout
6753
6754 \end_inset
6755
6756  checkbox typesets a mark to unambiguously define the presence of a space.
6757  
6758 \end_layout
6759
6760 \begin_layout Standard
6761 Generally, the master file is converted into a full \SpecialChar LaTeX
6762  file before typesetting,
6763  while the included files are converted to \SpecialChar LaTeX
6764  files that do not have all the
6765  preamble information.
6766 \end_layout
6767
6768 \begin_layout Subsection
6769 Cross-References Between Files
6770 \end_layout
6771
6772 \begin_layout Standard
6773 \begin_inset Box Shadowbox
6774 position "t"
6775 hor_pos "c"
6776 has_inner_box 1
6777 inner_pos "t"
6778 use_parbox 0
6779 use_makebox 0
6780 width "100col%"
6781 special "none"
6782 height "1in"
6783 height_special "totalheight"
6784 thickness "0.4pt"
6785 separation "3pt"
6786 shadowsize "4pt"
6787 framecolor "black"
6788 backgroundcolor "none"
6789 status open
6790
6791 \begin_layout Plain Layout
6792 This section is somewhat out of date.
6793  Need to describe default master documents and how children are opened when
6794  the master is.
6795  [[FIXME]]
6796 \end_layout
6797
6798 \end_inset
6799
6800
6801 \end_layout
6802
6803 \begin_layout Standard
6804 It is possible to set up cross-references between the different files.
6805  First, open all the files in question: let's call them A and B in a two
6806  file example, where B is included in A.
6807  Let's say you insert a label in A, then want to reference it in B.
6808  Open the cross-reference dialog whilst in document B, and you can select
6809  the 
6810 \begin_inset Quotes eld
6811 \end_inset
6812
6813 buffer
6814 \begin_inset Quotes erd
6815 \end_inset
6816
6817  to use.
6818 \end_layout
6819
6820 \begin_layout Subsection
6821 Bibliography Lists in all Subdocuments
6822 \end_layout
6823
6824 \begin_layout Standard
6825 If you work with child documents, you might want to have only one main bibliogra
6826 phy at the end, but still be able to have a selected bibliography for the
6827  child if you output it on its own.
6828  Here is how to achieve this.
6829 \end_layout
6830
6831 \begin_layout Standard
6832 For the main document, you just insert a bibliography inset at the place
6833  where the main bibliography has to appear (within the master file or within
6834  a child).
6835  If the bibliography inset is in the master file, the references will be
6836  inherited by all children, so they are available in the citation dialog
6837  within each child.
6838 \end_layout
6839
6840 \begin_layout Standard
6841 For child-specific bibliographies, insert bibliography insets within the
6842  child documents, at the place where the bibliography should appear when
6843  the child is compiled separately.
6844  However, the trick is to insert them into a branch (
6845 \family sans
6846 Insert\SpecialChar menuseparator
6847 Branch\SpecialChar menuseparator
6848 Insert New Branch...
6849 \family default
6850 ), e.
6851 \begin_inset space \thinspace{}
6852 \end_inset
6853
6854 g.
6855  called 
6856 \begin_inset Quotes eld
6857 \end_inset
6858
6859 Childonly
6860 \begin_inset Quotes erd
6861 \end_inset
6862
6863 .
6864  Within the children, activate the branch (
6865 \family sans
6866 Document\SpecialChar menuseparator
6867 Settings...\SpecialChar menuseparator
6868 Branches
6869 \family default
6870 ).
6871  Within the master, deactivate the branch (
6872 \family sans
6873 Document\SpecialChar menuseparator
6874 Settings...\SpecialChar menuseparator
6875 Branches
6876 \family default
6877 ).
6878  Now the child's bibliography will be ignored by the master, but considered
6879  by the child.
6880 \end_layout
6881
6882 \begin_layout Standard
6883 If you need multiple bibliographies (e.
6884 \begin_inset space \thinspace{}
6885 \end_inset
6886
6887 g., one per child in the 
6888 \emph on
6889 main document
6890 \emph default
6891 ), please refer to sec.
6892 \begin_inset space ~
6893 \end_inset
6894
6895
6896 \begin_inset CommandInset ref
6897 LatexCommand ref
6898 reference "subsec:Multiple-Bibliographies"
6899
6900 \end_inset
6901
6902 .
6903 \end_layout
6904
6905 \begin_layout Section
6906 \SpecialChar LyX
6907  Archives
6908 \end_layout
6909
6910 \begin_layout Standard
6911 Users sometimes need to be able to 
6912 \begin_inset Quotes eld
6913 \end_inset
6914
6915 bundle
6916 \begin_inset Quotes erd
6917 \end_inset
6918
6919  a \SpecialChar LyX
6920  file together with all the images (and other files) on which it depends,
6921  either for sending to a publisher or for sharing with a co-author.
6922  \SpecialChar LyX
6923  includes a Python script (
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928 lyxpak.py
6929 \end_layout
6930
6931 \end_inset
6932
6933 ) that automates this process.
6934  To use it, you must have either the 
6935 \begin_inset Flex Code
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 zipfile
6940 \end_layout
6941
6942 \end_inset
6943
6944  or 
6945 \begin_inset Flex Code
6946 status collapsed
6947
6948 \begin_layout Plain Layout
6949 tarfile
6950 \end_layout
6951
6952 \end_inset
6953
6954  python modules installed on your system.
6955  By default, the script prefers the 
6956 \begin_inset Flex Code
6957 status collapsed
6958
6959 \begin_layout Plain Layout
6960 gzip
6961 \end_layout
6962
6963 \end_inset
6964
6965 -compressed 
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 tar
6971 \end_layout
6972
6973 \end_inset
6974
6975  format on Unix-like systems and the 
6976 \begin_inset Flex Code
6977 status collapsed
6978
6979 \begin_layout Plain Layout
6980 zip
6981 \end_layout
6982
6983 \end_inset
6984
6985  format on Windows.
6986 \end_layout
6987
6988 \begin_layout Standard
6989 \SpecialChar LyX
6990 's configuration process will set the script up to export a `\SpecialChar LyX
6991  Archive',
6992  and this format will then be available under 
6993 \begin_inset Flex Code
6994 status collapsed
6995
6996 \begin_layout Plain Layout
6997 File\SpecialChar menuseparator
6998 Export
6999 \end_layout
7000
7001 \end_inset
7002
7003 .
7004 \end_layout
7005
7006 \begin_layout Standard
7007 Independently of the platform, the generation of a particular archive format
7008  can be forced by adding either the 
7009 \begin_inset Flex Code
7010 status collapsed
7011
7012 \begin_layout Plain Layout
7013 -t
7014 \end_layout
7015
7016 \end_inset
7017
7018  (for the 
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 tar
7024 \end_layout
7025
7026 \end_inset
7027
7028  format) or 
7029 \begin_inset Flex Code
7030 status collapsed
7031
7032 \begin_layout Plain Layout
7033 -z
7034 \end_layout
7035
7036 \end_inset
7037
7038  (for the 
7039 \begin_inset Flex Code
7040 status collapsed
7041
7042 \begin_layout Plain Layout
7043 zip
7044 \end_layout
7045
7046 \end_inset
7047
7048  format) switch to the 
7049 \begin_inset Flex Code
7050 status collapsed
7051
7052 \begin_layout Plain Layout
7053 \SpecialChar LyX
7054 \SpecialChar menuseparator
7055 \SpecialChar LyX
7056  Archive
7057 \end_layout
7058
7059 \end_inset
7060
7061  converter in 
7062 \begin_inset Flex Code
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 Tools\SpecialChar menuseparator
7067 Preferences\SpecialChar menuseparator
7068 File Handling\SpecialChar menuseparator
7069 Converters
7070 \end_layout
7071
7072 \end_inset
7073
7074 .
7075  (Make sure you add the switch after the script name, not before it.)
7076 \end_layout
7077
7078 \begin_layout Section
7079 Fancy Headers and Footers
7080 \end_layout
7081
7082 \begin_layout Standard
7083 The default page layout is rather plain; for an 
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 article
7089 \end_layout
7090
7091 \end_inset
7092
7093  document class, all you get is a centered page number at the bottom of
7094  the page.
7095  This document uses KOMA-script's book class, so it appears to be a bit
7096  fancier.
7097  But to really put on a show, you need to set the document page style to
7098  
7099 \begin_inset Quotes eld
7100 \end_inset
7101
7102 fancy
7103 \begin_inset Quotes erd
7104 \end_inset
7105
7106 , as mentioned in the 
7107 \emph on
7108 User Guide
7109 \emph default
7110 .
7111  This section describes the \SpecialChar LaTeX
7112  code you need to insert in your \SpecialChar LaTeX
7113  preamble in
7114  order to get the desired effects.
7115 \end_layout
7116
7117 \begin_layout Standard
7118 For more information on fancy headers, see the 
7119 \begin_inset Flex Code
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 fancyhdr
7124 \end_layout
7125
7126 \end_inset
7127
7128  package documentation.
7129  (
7130 \begin_inset Flex URL
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134
7135 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
7136 \end_layout
7137
7138 \end_inset
7139
7140 )
7141 \end_layout
7142
7143 \begin_layout Standard
7144 The page header is divided into three fields, not surprisingly labeled 
7145 \begin_inset Quotes eld
7146 \end_inset
7147
7148 left
7149 \begin_inset Quotes erd
7150 \end_inset
7151
7152
7153 \begin_inset Quotes eld
7154 \end_inset
7155
7156 center
7157 \begin_inset Quotes erd
7158 \end_inset
7159
7160 , and 
7161 \begin_inset Quotes eld
7162 \end_inset
7163
7164 right
7165 \begin_inset Quotes erd
7166 \end_inset
7167
7168 .
7169  The footer is also divided into these three fields.
7170  The \SpecialChar LaTeX
7171  commands to set these fields in the simplest manner are 
7172 \begin_inset Flex Code
7173 status collapsed
7174
7175 \begin_layout Plain Layout
7176
7177 \backslash
7178 lhead
7179 \end_layout
7180
7181 \end_inset
7182
7183
7184 \begin_inset Flex Code
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188
7189 \backslash
7190 chead
7191 \end_layout
7192
7193 \end_inset
7194
7195
7196 \begin_inset Flex Code
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200
7201 \backslash
7202 rhead
7203 \end_layout
7204
7205 \end_inset
7206
7207
7208 \begin_inset Flex Code
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212
7213 \backslash
7214 lfoot
7215 \end_layout
7216
7217 \end_inset
7218
7219 , etc.
7220  Suppose you wish to put your name in the upper left hand corner of each
7221  page.
7222  Simply insert the following command in the preamble: 
7223 \end_layout
7224
7225 \begin_layout Standard
7226
7227 \family typewriter
7228
7229 \backslash
7230 lhead{John Q.
7231  DocWriter}
7232 \end_layout
7233
7234 \begin_layout Standard
7235 You will now see your name in the upper left.
7236  If a field has a default entry that you would like to get rid of (often
7237  the page number appears in the central footer) simply include a command
7238  with a blank argument, e.
7239 \begin_inset space \thinspace{}
7240 \end_inset
7241
7242 g.:
7243 \end_layout
7244
7245 \begin_layout Standard
7246
7247 \family typewriter
7248
7249 \backslash
7250 cfoot{}
7251 \end_layout
7252
7253 \begin_layout Standard
7254 Let's get really fancy: lets put the section number with the word 
7255 \begin_inset Quotes eld
7256 \end_inset
7257
7258 Section
7259 \begin_inset Quotes erd
7260 \end_inset
7261
7262  (e.
7263 \begin_inset space \thinspace{}
7264 \end_inset
7265
7266 g.
7267 \begin_inset space \space{}
7268 \end_inset
7269
7270 Section 3) in the upper left, the page number (e.
7271 \begin_inset space \thinspace{}
7272 \end_inset
7273
7274 g.
7275 \begin_inset space \space{}
7276 \end_inset
7277
7278 Page 4) in the upper right, your name in the lower left, and the date in
7279  the lower right.
7280  The following commands should now appear in the preamble:
7281 \end_layout
7282
7283 \begin_layout Standard
7284
7285 \family typewriter
7286
7287 \backslash
7288 lhead{Section 
7289 \backslash
7290 thesection}
7291 \end_layout
7292
7293 \begin_layout Standard
7294
7295 \family typewriter
7296
7297 \backslash
7298 chead{}
7299 \end_layout
7300
7301 \begin_layout Standard
7302
7303 \family typewriter
7304
7305 \backslash
7306 rhead{Page 
7307 \backslash
7308 thepage}
7309 \end_layout
7310
7311 \begin_layout Standard
7312
7313 \family typewriter
7314
7315 \backslash
7316 lfoot{John Q.
7317  DocWriter}
7318 \end_layout
7319
7320 \begin_layout Standard
7321
7322 \family typewriter
7323
7324 \backslash
7325 cfoot{}
7326 \end_layout
7327
7328 \begin_layout Standard
7329
7330 \family typewriter
7331
7332 \backslash
7333 rfoot{
7334 \backslash
7335 today}
7336 \end_layout
7337
7338 \begin_layout Standard
7339 The commands 
7340 \begin_inset Flex Code
7341 status collapsed
7342
7343 \begin_layout Plain Layout
7344
7345 \backslash
7346 thesection
7347 \end_layout
7348
7349 \end_inset
7350
7351  and 
7352 \begin_inset Flex Code
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356
7357 \backslash
7358 thepage
7359 \end_layout
7360
7361 \end_inset
7362
7363  access \SpecialChar LaTeX
7364 's section and page counters, and so print out the current section
7365  and page number.
7366  
7367 \begin_inset Flex Code
7368 status collapsed
7369
7370 \begin_layout Plain Layout
7371
7372 \backslash
7373 today
7374 \end_layout
7375
7376 \end_inset
7377
7378  simply prints out today's date.
7379 \end_layout
7380
7381 \begin_layout Standard
7382 The thicknesses of the horizontal rules drawn beneath the header and above
7383  the footer can also be modified.
7384  If you don't want one of the rules, set its thickness to 0.
7385  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
7386  Use commands
7387 \family typewriter
7388  
7389 \family default
7390 like 
7391 \begin_inset Flex Code
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395
7396 \backslash
7397 renewcommand{
7398 \backslash
7399 headrulewidth}{0.4pt}
7400 \end_layout
7401
7402 \end_inset
7403
7404  and 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409
7410 \backslash
7411 renewcommand{
7412 \backslash
7413 footrulewidth}{0.4pt}
7414 \end_layout
7415
7416 \end_inset
7417
7418  to set the thicknesses.
7419 \end_layout
7420
7421 \begin_layout Standard
7422 You can switch the header/footer settings on and off for individual pages
7423  using commands like 
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428
7429 \backslash
7430 thispagestyle{empty}
7431 \end_layout
7432
7433 \end_inset
7434
7435
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440
7441 \backslash
7442 thispagestyle{plain}
7443 \end_layout
7444
7445 \end_inset
7446
7447 , and 
7448 \begin_inset Flex Code
7449 status collapsed
7450
7451 \begin_layout Plain Layout
7452
7453 \backslash
7454 thispagestyle{fancy}
7455 \end_layout
7456
7457 \end_inset
7458
7459 .
7460  Simply insert them in the text on the page you want changed and mark them
7461  as \SpecialChar TeX
7462  code.
7463  In fact, title pages are marked as plain by default, while following pages
7464  are marked fancy when using the global fancy setting.
7465 \end_layout
7466
7467 \begin_layout Standard
7468 As a final example, it is possible to include an image in the header or
7469  footer.
7470  Suppose you want to put a company logo in the upper lefthand corner.
7471  You might try something like
7472 \end_layout
7473
7474 \begin_layout Standard
7475
7476 \family typewriter
7477
7478 \backslash
7479 lhead{
7480 \backslash
7481 resizebox{1in}{!}{
7482 \backslash
7483 includegraphics{logo.eps}}}
7484 \end_layout
7485
7486 \begin_layout Standard
7487 \noindent
7488 (you may need to preface this with 
7489 \begin_inset Flex Code
7490 status collapsed
7491
7492 \begin_layout Plain Layout
7493
7494 \backslash
7495 usepackage{graphics}
7496 \end_layout
7497
7498 \end_inset
7499
7500  if you don't include graphics elsewhere in your document).
7501 \end_layout
7502
7503 \begin_layout Section
7504 Itemize Bullet Selection
7505 \begin_inset CommandInset label
7506 LatexCommand label
7507 name "sec:bullet"
7508
7509 \end_inset
7510
7511
7512 \end_layout
7513
7514 \begin_layout Standard
7515 by
7516 \noun on
7517  Allan Rae
7518 \end_layout
7519
7520 \begin_layout Subsection
7521 Introduction
7522 \end_layout
7523
7524 \begin_layout Standard
7525 \SpecialChar LyX
7526  provides 216 bullet shapes that can be accessed from a simple dialog.
7527  Using this dialog you can easily specify what bullet shape to use at each
7528  level of an itemized list.
7529  These settings are document-wide so you won't be able to specify different
7530  sets of bullets for different paragraphs.
7531 \begin_inset Foot
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 Well, actually you can but you'll have to do it by hand.
7536 \end_layout
7537
7538 \end_inset
7539
7540
7541 \end_layout
7542
7543 \begin_layout Subsection
7544 How it looks
7545 \end_layout
7546
7547 \begin_layout Standard
7548 Open the dialog by selecting the 
7549 \begin_inset Flex Noun
7550 status collapsed
7551
7552 \begin_layout Plain Layout
7553 Document\SpecialChar menuseparator
7554 Settings
7555 \end_layout
7556
7557 \end_inset
7558
7559  menu item and then select the 
7560 \begin_inset Flex Noun
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 Bullets
7565 \end_layout
7566
7567 \end_inset
7568
7569  tab.
7570 \end_layout
7571
7572 \begin_layout Standard
7573 The dialog provides you with a table of bullet shapes.
7574  A column of buttons on the left of the table provides access to the six
7575  different panels of bullet shapes.
7576  The row of buttons across the top is used to select which bullet depth
7577  you are changing.
7578
7579 \change_deleted 244031559 1603875981
7580  A text entry under the table shows the currently selected bullet shape's
7581  \SpecialChar LaTeX
7582  equivalent and this can be edited if desired.
7583  If you do modify the text you will also need to specify any needed packages
7584  in the \SpecialChar LaTeX
7585  preamble.
7586 \change_unchanged
7587
7588 \end_layout
7589
7590 \begin_layout Standard
7591 The six panels are divided up by the packages they require.
7592  The following table shows the mappings from button name to \SpecialChar LaTeX
7593  package.
7594 \end_layout
7595
7596 \begin_layout Standard
7597 \align center
7598 \begin_inset Tabular
7599 <lyxtabular version="3" rows="7" columns="2">
7600 <features tabularvalignment="middle">
7601 <column alignment="center" valignment="top" width="0pt">
7602 <column alignment="center" valignment="top" width="0pt">
7603 <row>
7604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7605 \begin_inset Text
7606
7607 \begin_layout Plain Layout
7608
7609 \family roman
7610 \series medium
7611 \shape up
7612 \size normal
7613 \emph off
7614 \bar no
7615 \noun off
7616 \color none
7617 Button
7618 \end_layout
7619
7620 \end_inset
7621 </cell>
7622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7623 \begin_inset Text
7624
7625 \begin_layout Plain Layout
7626
7627 \family roman
7628 \series medium
7629 \shape up
7630 \size normal
7631 \emph off
7632 \bar no
7633 \noun off
7634 \color none
7635 Packages Required
7636 \end_layout
7637
7638 \end_inset
7639 </cell>
7640 </row>
7641 <row>
7642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7643 \begin_inset Text
7644
7645 \begin_layout Plain Layout
7646
7647 \family sans
7648 \series medium
7649 \shape up
7650 \size normal
7651 \emph off
7652 \bar no
7653 \noun off
7654 \color none
7655 Standard
7656 \end_layout
7657
7658 \end_inset
7659 </cell>
7660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7661 \begin_inset Text
7662
7663 \begin_layout Plain Layout
7664
7665 \series medium
7666 \shape up
7667 \size normal
7668 \emph off
7669 \bar no
7670 \noun off
7671 \color none
7672 base \SpecialChar LaTeX
7673
7674 \end_layout
7675
7676 \end_inset
7677 </cell>
7678 </row>
7679 <row>
7680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7681 \begin_inset Text
7682
7683 \begin_layout Plain Layout
7684
7685 \family sans
7686 \series medium
7687 \shape up
7688 \size normal
7689 \emph off
7690 \bar no
7691 \noun off
7692 \color none
7693 Maths
7694 \end_layout
7695
7696 \end_inset
7697 </cell>
7698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7699 \begin_inset Text
7700
7701 \begin_layout Plain Layout
7702
7703 \family typewriter
7704 \series medium
7705 \shape up
7706 \size normal
7707 \emph off
7708 \bar no
7709 \noun off
7710 \color none
7711 amssymb.sty
7712 \end_layout
7713
7714 \end_inset
7715 </cell>
7716 </row>
7717 <row>
7718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7719 \begin_inset Text
7720
7721 \begin_layout Plain Layout
7722
7723 \family sans
7724 \series medium
7725 \shape up
7726 \size normal
7727 \emph off
7728 \bar no
7729 \noun off
7730 \color none
7731 Ding1
7732 \end_layout
7733
7734 \end_inset
7735 </cell>
7736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7737 \begin_inset Text
7738
7739 \begin_layout Plain Layout
7740
7741 \family typewriter
7742 \series medium
7743 \shape up
7744 \size normal
7745 \emph off
7746 \bar no
7747 \noun off
7748 \color none
7749 pifont.sty
7750 \end_layout
7751
7752 \end_inset
7753 </cell>
7754 </row>
7755 <row>
7756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7757 \begin_inset Text
7758
7759 \begin_layout Plain Layout
7760
7761 \family sans
7762 \series medium
7763 \shape up
7764 \size normal
7765 \emph off
7766 \bar no
7767 \noun off
7768 \color none
7769 Ding2
7770 \end_layout
7771
7772 \end_inset
7773 </cell>
7774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7775 \begin_inset Text
7776
7777 \begin_layout Plain Layout
7778
7779 \family typewriter
7780 \series medium
7781 \shape up
7782 \size normal
7783 \emph off
7784 \bar no
7785 \noun off
7786 \color none
7787 pifont.sty
7788 \end_layout
7789
7790 \end_inset
7791 </cell>
7792 </row>
7793 <row>
7794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7795 \begin_inset Text
7796
7797 \begin_layout Plain Layout
7798
7799 \family sans
7800 \series medium
7801 \shape up
7802 \size normal
7803 \emph off
7804 \bar no
7805 \noun off
7806 \color none
7807 Ding3
7808 \end_layout
7809
7810 \end_inset
7811 </cell>
7812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7813 \begin_inset Text
7814
7815 \begin_layout Plain Layout
7816
7817 \family typewriter
7818 \series medium
7819 \shape up
7820 \size normal
7821 \emph off
7822 \bar no
7823 \noun off
7824 \color none
7825 pifont.sty
7826 \end_layout
7827
7828 \end_inset
7829 </cell>
7830 </row>
7831 <row>
7832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7833 \begin_inset Text
7834
7835 \begin_layout Plain Layout
7836
7837 \family sans
7838 \series medium
7839 \shape up
7840 \size normal
7841 \emph off
7842 \bar no
7843 \noun off
7844 \color none
7845 Ding4
7846 \end_layout
7847
7848 \end_inset
7849 </cell>
7850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7851 \begin_inset Text
7852
7853 \begin_layout Plain Layout
7854
7855 \family typewriter
7856 \series medium
7857 \shape up
7858 \size normal
7859 \emph off
7860 \bar no
7861 \noun off
7862 \color none
7863 pifont.sty
7864 \end_layout
7865
7866 \end_inset
7867 </cell>
7868 </row>
7869 </lyxtabular>
7870
7871 \end_inset
7872
7873
7874 \end_layout
7875
7876 \begin_layout Standard
7877 \SpecialChar LyX
7878  doesn't stop you using bullets from packages you don't have.
7879  If you get errors from \SpecialChar LaTeX
7880  when you try to view or print the file, then it
7881  is likely you are missing a package.
7882 \begin_inset Foot
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886 \SpecialChar LyX
7887  doesn't restrict your use since you may be editing locally and exporting
7888  elsewhere.
7889 \end_layout
7890
7891 \end_inset
7892
7893
7894 \end_layout
7895
7896 \begin_layout Subsection
7897 How to use it
7898 \end_layout
7899
7900 \begin_layout Standard
7901 Select which bullet depth you want to change then select the bullet shape
7902  and size.
7903  Any changes will not be visible in \SpecialChar LyX
7904 , but are visible when viewing the document.
7905 \end_layout
7906
7907 \begin_layout Standard
7908 You can reset a bullet shape to the default simply by clicking your right
7909  mouse button on the appropriate bullet depth button.
7910 \begin_inset Foot
7911 status open
7912
7913 \begin_layout Plain Layout
7914 If you 
7915 \emph on
7916 really
7917 \emph default
7918  want to have multiple sets of paragraphs with different sets of bullets
7919  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
7920  code.
7921  The bullet selection dialog can help though because it provides you with
7922  the \SpecialChar LaTeX
7923  code for a wide range of bullet shapes.
7924  To make your own custom paragraphs you have the following options:
7925 \end_layout
7926
7927 \begin_layout Plain Layout
7928 \begin_inset ERT
7929 status open
7930
7931 \begin_layout Plain Layout
7932
7933
7934 \backslash
7935 let
7936 \backslash
7937 savelabelitemi=
7938 \backslash
7939 labelitemi
7940 \end_layout
7941
7942 \end_inset
7943
7944
7945 \end_layout
7946
7947 \begin_layout Plain Layout
7948 \begin_inset ERT
7949 status open
7950
7951 \begin_layout Plain Layout
7952
7953
7954 \backslash
7955 renewcommand
7956 \backslash
7957 labelitemi[0]{
7958 \backslash
7959 small
7960 \backslash
7961 (
7962 \backslash
7963 sharp
7964 \backslash
7965 )}
7966 \end_layout
7967
7968 \end_inset
7969
7970
7971 \end_layout
7972
7973 \begin_layout Itemize
7974 Use the \SpecialChar LaTeX
7975  command 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980
7981 \backslash
7982 renewcommand{}{}
7983 \end_layout
7984
7985 \end_inset
7986
7987  to specify a new bullet shape for a given depth.
7988  You'll also need to save the current bullet shape so you can restore it
7989  again afterwards.
7990  In this itemized list the following \SpecialChar LaTeX
7991  code was used to change the bullet
7992  used for the first depth.
7993 \end_layout
7994
7995 \begin_deeper
7996 \begin_layout LyX-Code
7997
7998 \backslash
7999 let
8000 \backslash
8001 savelabelitemi=
8002 \backslash
8003 labelitemi 
8004 \end_layout
8005
8006 \begin_layout LyX-Code
8007
8008 \backslash
8009 renewcommand
8010 \backslash
8011 labelitemi[0]{
8012 \backslash
8013 small
8014 \backslash
8015 (
8016 \backslash
8017 sharp
8018 \backslash
8019 )}
8020 \end_layout
8021
8022 \end_deeper
8023 \begin_layout Itemize
8024 Note that the itemize depth is specified in Roman numerals as part of the
8025  
8026 \family typewriter
8027
8028 \backslash
8029 labelitem
8030 \family default
8031  command.
8032 \end_layout
8033
8034 \begin_layout Itemize
8035 \begin_inset Argument item:1
8036 status open
8037
8038 \begin_layout Plain Layout
8039 \begin_inset ERT
8040 status open
8041
8042 \begin_layout Plain Layout
8043
8044
8045 \backslash
8046 (
8047 \backslash
8048 star
8049 \backslash
8050 )
8051 \end_layout
8052
8053 \end_inset
8054
8055
8056 \end_layout
8057
8058 \end_inset
8059
8060  Specify each individual entry by starting each item with the bullet shape
8061  enclosed in a 
8062 \begin_inset Quotes eld
8063 \end_inset
8064
8065 Custom Item
8066 \begin_inset Quotes erd
8067 \end_inset
8068
8069  inset (available at 
8070 \family sans
8071 Insert\SpecialChar menuseparator
8072 Custom Item
8073 \family default
8074 ) and set as 
8075 \begin_inset Flex Noun
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 \SpecialChar TeX
8080  Code
8081 \end_layout
8082
8083 \end_inset
8084
8085 .
8086  For example, this item was started with 
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091
8092 \backslash
8093 (
8094 \backslash
8095 star
8096 \backslash
8097 )
8098 \end_layout
8099
8100 \end_inset
8101
8102 .
8103 \end_layout
8104
8105 \begin_layout Plain Layout
8106 \begin_inset ERT
8107 status open
8108
8109 \begin_layout Plain Layout
8110
8111
8112 \backslash
8113 renewcommand
8114 \backslash
8115 labelitemi[0]{
8116 \backslash
8117 savelabelitemi}
8118 \end_layout
8119
8120 \end_inset
8121
8122
8123 \end_layout
8124
8125 \begin_layout Plain Layout
8126 You'll also need to revert the labelitem back to its previous setting for
8127  the global bullet shape settings to remain in effect.
8128  The way used here was:
8129 \end_layout
8130
8131 \begin_layout LyX-Code
8132
8133 \backslash
8134 renewcommand
8135 \backslash
8136 labelitemi[0]{
8137 \backslash
8138 savelabelitemi}
8139 \end_layout
8140
8141 \end_inset
8142
8143
8144 \end_layout
8145
8146 \begin_layout Chapter
8147 \SpecialChar LyX
8148  and the World Wide Web
8149 \end_layout
8150
8151 \begin_layout Standard
8152 \SpecialChar LyX
8153  has long supported the export of documents to various web-friendly formats,
8154  such as HTML.
8155  Before version 2.0, however, HTML export was always accomplished by the
8156  use of external converters.
8157 \begin_inset Foot
8158 status collapsed
8159
8160 \begin_layout Plain Layout
8161 For details on the use of external converters with \SpecialChar LyX
8162 , see the 
8163 \emph on
8164 Converters
8165 \emph default
8166  section of the Customization manual.
8167 \end_layout
8168
8169 \end_inset
8170
8171  These fall into two large groups: there are converters that use \SpecialChar LaTeX
8172  as an
8173  intermediate format, such as 
8174 \begin_inset Flex Code
8175 status collapsed
8176
8177 \begin_layout Plain Layout
8178 htlatex
8179 \end_layout
8180
8181 \end_inset
8182
8183
8184 \begin_inset Flex Code
8185 status collapsed
8186
8187 \begin_layout Plain Layout
8188 html2latex
8189 \end_layout
8190
8191 \end_inset
8192
8193 , and 
8194 \begin_inset Flex Code
8195 status collapsed
8196
8197 \begin_layout Plain Layout
8198 plastex
8199 \end_layout
8200
8201 \end_inset
8202
8203 , relying upon \SpecialChar LyX
8204  to produce the \SpecialChar LaTeX
8205 ; and there is a converter that works directly
8206  on \SpecialChar LyX
8207  files, 
8208 \begin_inset Flex Code
8209 status collapsed
8210
8211 \begin_layout Plain Layout
8212 e\SpecialChar LyX
8213 er
8214 \end_layout
8215
8216 \end_inset
8217
8218 .
8219  All of these have different advantages and disadvantages.
8220  
8221 \end_layout
8222
8223 \begin_layout Standard
8224 The \SpecialChar LaTeX
8225 -based converters have the advantage that, in principle, they know everythin
8226 g about the exported document that \SpecialChar LaTeX
8227  does.
8228  Such converters do not care, for example, if a certain block of code was
8229  produced by \SpecialChar LyX
8230  or was Evil Red Text.
8231  These converters know about 
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236 aux
8237 \end_layout
8238
8239 \end_inset
8240
8241  files, counters, and references, and can often make use of the 
8242 \begin_inset Flex Code
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 bbl
8247 \end_layout
8248
8249 \end_inset
8250
8251  files generated by Bib\SpecialChar TeX
8252 .
8253  On the other hand, \SpecialChar LaTeX
8254  is a very hard language to parse—it is sometimes said
8255  that only \SpecialChar TeX
8256  itself understands \SpecialChar TeX
8257 —and \SpecialChar LaTeX
8258 -based converters will often choke on
8259  what seem to be quite simple constructs; complex ones can throw them completely
8260 , and as of this writing, for example, the 
8261 \emph on
8262 Embedded Objects
8263 \emph default
8264  manual will not export with 
8265 \begin_inset Flex Code
8266 status collapsed
8267
8268 \begin_layout Plain Layout
8269 htlatex
8270 \end_layout
8271
8272 \end_inset
8273
8274 , though the others will.
8275  The other issue concerns how math is handled.
8276  These converters typically convert the formulae into little pictures that
8277  are then linked from the HTML document.
8278  Since these are actually generated by \SpecialChar LaTeX
8279 , they are accurate.
8280  But they do not scale well, and just getting them to look as if they are
8281  actually meant to be in your document—so that the font sizes seem to be
8282  roughly the same—can be a challenge.
8283 \end_layout
8284
8285 \begin_layout Standard
8286 Alex Fernandez's 
8287 \begin_inset Flex Code
8288 status collapsed
8289
8290 \begin_layout Plain Layout
8291 e\SpecialChar LyX
8292 er
8293 \end_layout
8294
8295 \end_inset
8296
8297  (
8298 \begin_inset CommandInset href
8299 LatexCommand href
8300 name "http://pinchito.es/elyxer/"
8301 target "http://pinchito.es/elyxer/"
8302 literal "false"
8303
8304 \end_inset
8305
8306 ) solves some of these problems.
8307  In particular, the formulae it produces scale perfectly, since it renders
8308  math using a combination of HTML and CSS rather than converting the formulae
8309  to images.
8310  But even moderately complex formula are rendered less well than with 
8311 \begin_inset Flex Code
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 htlatex
8316 \end_layout
8317
8318 \end_inset
8319
8320 ; this reflects the limitations of HTML.
8321 \begin_inset Foot
8322 status collapsed
8323
8324 \begin_layout Plain Layout
8325 That said, 
8326 \begin_inset Flex Code
8327 status collapsed
8328
8329 \begin_layout Plain Layout
8330 e\SpecialChar LyX
8331 er
8332 \end_layout
8333
8334 \end_inset
8335
8336  can also use jsMath and MathJax for equations, but this setting is only
8337  available globally and requires one to have access to a server that runs
8338  the backend.
8339 \end_layout
8340
8341 \end_inset
8342
8343  More importantly (as of version 1.1.1, at least), 
8344 \begin_inset Flex Code
8345 status collapsed
8346
8347 \begin_layout Plain Layout
8348 e\SpecialChar LyX
8349 er
8350 \end_layout
8351
8352 \end_inset
8353
8354  has limited support for math macros and no support for user-defined paragraph
8355  or character styles.
8356  These limitations make 
8357 \begin_inset Flex Code
8358 status collapsed
8359
8360 \begin_layout Plain Layout
8361 e\SpecialChar LyX
8362 er
8363 \end_layout
8364
8365 \end_inset
8366
8367  unsuitable for many of the documents \SpecialChar LyX
8368  users produce.
8369  In principle, of course, these problems could be solved, but the \SpecialChar LyX
8370  developers
8371  have decided to follow a different path and have made \SpecialChar LyX
8372  itself capable of
8373  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
8374 , DocBook, and plaintext.
8375 \end_layout
8376
8377 \begin_layout Standard
8378 As of this writing, XHTML output remains under development and should probably
8379  be regarded as 
8380 \begin_inset Quotes eld
8381 \end_inset
8382
8383 experimental
8384 \begin_inset Quotes erd
8385 \end_inset
8386
8387 .
8388 \begin_inset Foot
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 The file 
8393 \begin_inset Flex Code
8394 status collapsed
8395
8396 \begin_layout Plain Layout
8397 development/HTML/HTML.notes
8398 \end_layout
8399
8400 \end_inset
8401
8402 , which can be found in the \SpecialChar LyX
8403  source tree or 
8404 \begin_inset CommandInset href
8405 LatexCommand href
8406 name "accessed online"
8407 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
8408 literal "false"
8409
8410 \end_inset
8411
8412 , usually contains up-to-date information about the state of XHTML output.
8413  See also the list of XHTML bugs on 
8414 \begin_inset CommandInset href
8415 LatexCommand href
8416 name "the bug tracker"
8417 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"
8418 literal "false"
8419
8420 \end_inset
8421
8422 .
8423 \end_layout
8424
8425 \end_inset
8426
8427  Still, the developers have chosen this approach because it has several
8428  potential advantages over the other two.
8429 \end_layout
8430
8431 \begin_layout Standard
8432 These advantages are primarily due to the fact that the XHTML output routines,
8433  since they are part of \SpecialChar LyX
8434 , know everything \SpecialChar LyX
8435  knows about the document being
8436  exported.
8437 \begin_inset Foot
8438 status collapsed
8439
8440 \begin_layout Plain Layout
8441 Another advantage is that, since these routines are internal to \SpecialChar LyX
8442 , they are
8443  immune to changes in \SpecialChar LyX
8444 's file format, or to changes in the semantics of
8445  existing insets.
8446 \end_layout
8447
8448 \end_inset
8449
8450  So they know about the table of contents (as displayed in the outline),
8451  about the counters associated with different paragraph styles, and about
8452  user-defined styles.
8453  The XHTML output routines know what \SpecialChar LyX
8454  knows about internationalization,
8455  too, so they will output 
8456 \begin_inset Quotes eld
8457 \end_inset
8458
8459 Chapter 1
8460 \begin_inset Quotes erd
8461 \end_inset
8462
8463  or 
8464 \begin_inset Quotes eld
8465 \end_inset
8466
8467
8468 \lang ngerman
8469 Kapitel
8470 \lang english
8471  1
8472 \begin_inset Quotes erd
8473 \end_inset
8474
8475 , depending upon the language in effect at the time.
8476  
8477 \end_layout
8478
8479 \begin_layout Standard
8480 Quite generally, the output routines know what \SpecialChar LyX
8481  knows about document layout,
8482  that is, about how the document is to be rendered on screen.
8483  We use this information when we output the document as XHTML.
8484  In particular, \SpecialChar LyX
8485  
8486 \emph on
8487 automatically
8488 \emph default
8489  generates CSS style information corresponding to the layout information
8490  it uses to render the document on screen: if section headings are supposed
8491  to be sans-serif and bold as seen in \SpecialChar LyX
8492 , then (by default) they will be sans-seri
8493 f and bold when viewed in a web browser, too.
8494  And this is true not just for pre-defined styles, like Section, but for
8495  any style, including user-defined styles.
8496  Indeed, the XHTML output routines make no distinction between user-defined
8497  paragraph and 
8498 \change_deleted 244031559 1603876931
8499 character
8500 \change_inserted 244031559 1603876940
8501 text
8502 \change_unchanged
8503  styles and \SpecialChar LyX
8504 's own pre-defined styles: in each case, everything \SpecialChar LyX
8505  knows about
8506  the styles is contained in the layout files.
8507  And much the same is true as regards pre-defined textual insets, such as
8508  footnotes, and various custom insets.
8509  
8510 \end_layout
8511
8512 \begin_layout Standard
8513 The result is that XHTML output can be customized and extended in exactly
8514  the same way \SpecialChar LaTeX
8515  output can be customized and extended: through layout files
8516  and modules.
8517  See chapter five of the 
8518 \emph on
8519 Customization 
8520 \emph default
8521 manual for the details.
8522 \end_layout
8523
8524 \begin_layout Standard
8525 The remainder of this chapter contains more detailed information on XHTML
8526  output, its limitations, and ways to work around those limitations.
8527 \end_layout
8528
8529 \begin_layout Section
8530 Math Output in XHTML
8531 \end_layout
8532
8533 \begin_layout Standard
8534 \SpecialChar LyX
8535  offers four choices for how math is rendered.
8536  These have various advantages and disadvantages:
8537 \end_layout
8538
8539 \begin_layout Itemize
8540 MathML
8541 \begin_inset Newline newline
8542 \end_inset
8543
8544 MathML is a dialect of XML designed specifically for mathematics on the
8545  web, and it typically renders very well in browsers that support it.
8546  The disadvantage is that not all browsers support MathML, and support is
8547  not complete even in the Gecko-based browsers, such as Firefox.
8548 \begin_inset Newline newline
8549 \end_inset
8550
8551 If \SpecialChar LyX
8552  is unable to render a formula as MathML—for example, if the formula
8553  uses the 
8554 \begin_inset Flex Code
8555 status collapsed
8556
8557 \begin_layout Plain Layout
8558 xymatrix
8559 \end_layout
8560
8561 \end_inset
8562
8563  package or ERT—then it will instead output the formula as an image.
8564  
8565 \end_layout
8566
8567 \begin_layout Itemize
8568 HTML
8569 \begin_inset Newline newline
8570 \end_inset
8571
8572 As mentioned above, 
8573 \begin_inset Flex Code
8574 status collapsed
8575
8576 \begin_layout Plain Layout
8577 elyxer
8578 \end_layout
8579
8580 \end_inset
8581
8582  outputs math as HTML, styled by CSS.
8583 \begin_inset Foot
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 \SpecialChar LyX
8588  has borrowed some of the CSS for its HTML output from 
8589 \begin_inset Flex Code
8590 status collapsed
8591
8592 \begin_layout Plain Layout
8593 elyxer
8594 \end_layout
8595
8596 \end_inset
8597
8598 .
8599 \end_layout
8600
8601 \end_inset
8602
8603  For simple formulae, this can work quite well, though with more complicated
8604  formulae it tends to break down.
8605  Still, this method has the advantage that it is very widely supported and
8606  so it may be appropriate for documents that contain only a little, fairly
8607  simple math.
8608 \begin_inset Newline newline
8609 \end_inset
8610
8611 If Lyx is unable to render a formula as HTML—for example, if the formula
8612  uses the 
8613 \begin_inset Flex Code
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 xymatrix
8618 \end_layout
8619
8620 \end_inset
8621
8622  package or ERT—then it will instead output the formula as an image.
8623  
8624 \end_layout
8625
8626 \begin_layout Itemize
8627 Images
8628 \begin_inset Newline newline
8629 \end_inset
8630
8631 Like 
8632 \begin_inset Flex Code
8633 status collapsed
8634
8635 \begin_layout Plain Layout
8636 htlatex
8637 \end_layout
8638
8639 \end_inset
8640
8641 , \SpecialChar LyX
8642  will output formulae as images, the very same images, in fact, that are
8643  used for instant preview.
8644 \begin_inset Foot
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 Instant preview does 
8649 \emph on
8650 not 
8651 \emph default
8652 have to be on for images to be output, however.
8653 \end_layout
8654
8655 \end_inset
8656
8657  The advantage to this method is that the images are simply generated by
8658  \SpecialChar LaTeX
8659 , so they are very accurate.
8660  The disadvantage, as mentioned earlier, is that these are bitmapped images,
8661  so they do not scale terribly well, and one cannot copy them, etc.
8662 \begin_inset Newline newline
8663 \end_inset
8664
8665 The size of the images can be controlled by setting the 
8666 \begin_inset Quotes eld
8667 \end_inset
8668
8669 Math Images Scaling
8670 \begin_inset Quotes erd
8671 \end_inset
8672
8673  parameter under 
8674 \begin_inset Flex Noun
8675 status collapsed
8676
8677 \begin_layout Plain Layout
8678 Document\SpecialChar menuseparator
8679 Settings\SpecialChar menuseparator
8680 Formats
8681 \end_layout
8682
8683 \end_inset
8684
8685 .
8686 \begin_inset Foot
8687 status collapsed
8688
8689 \begin_layout Plain Layout
8690 For those who want to know, this controls the resolution of the image in
8691  dots per inch and is based upon a default of 75 dpi.
8692 \end_layout
8693
8694 \end_inset
8695
8696
8697 \begin_inset Newline newline
8698 \end_inset
8699
8700 If \SpecialChar LyX
8701  for some reason fails to create an image for a formula (e.g., if a required
8702  \SpecialChar LaTeX
8703  package is not installed), then it will fall back to outputing the raw
8704  \SpecialChar LaTeX
8705 .
8706 \end_layout
8707
8708 \begin_layout Itemize
8709 \SpecialChar LaTeX
8710
8711 \begin_inset Newline newline
8712 \end_inset
8713
8714 Finally, \SpecialChar LyX
8715  will happily output math as \SpecialChar LaTeX
8716 .
8717  As well as being the output of last resort, this method can be used with
8718  such tools as 
8719 \begin_inset CommandInset href
8720 LatexCommand href
8721 name "jsMath"
8722 target "http://www.math.union.edu/~dpvc/jsMath/"
8723 literal "false"
8724
8725 \end_inset
8726
8727 , which uses JavaScript to render \SpecialChar LaTeX
8728  embedded in HTML documents.
8729  \SpecialChar LyX
8730  wraps the \SpecialChar LaTeX
8731  in either a 
8732 \begin_inset Flex Code
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736 span
8737 \end_layout
8738
8739 \end_inset
8740
8741  (for inline formulas) or 
8742 \begin_inset Flex Code
8743 status collapsed
8744
8745 \begin_layout Plain Layout
8746 div
8747 \end_layout
8748
8749 \end_inset
8750
8751  (for displayed formulas) with 
8752 \begin_inset Flex Code
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 class='math'
8757 \end_layout
8758
8759 \end_inset
8760
8761 , as is required for jsMath.
8762 \end_layout
8763
8764 \begin_layout Standard
8765 One of these output methods must be selected under 
8766 \begin_inset Flex Noun
8767 status collapsed
8768
8769 \begin_layout Plain Layout
8770 Document\SpecialChar menuseparator
8771 Settings\SpecialChar menuseparator
8772 Formats
8773 \end_layout
8774
8775 \end_inset
8776
8777 .
8778  By default, \SpecialChar LyX
8779  outputs MathML.
8780  This is a document-wide setting, therefore.
8781 \end_layout
8782
8783 \begin_layout Standard
8784 Eventually, \SpecialChar LyX
8785  will offer the user the option to select an alternate output
8786  method for a particular inset, say, one that isn't being rendered very
8787  well by MathML.
8788 \begin_inset Foot
8789 status collapsed
8790
8791 \begin_layout Plain Layout
8792 That said, since \SpecialChar LyX
8793  falls back to images if the inset contains ERT, then one
8794  can force output as an image by putting some harmless ERT into the math,
8795  for example: 
8796 \begin_inset Formula $a=b\relax$
8797 \end_inset
8798
8799 .
8800 \end_layout
8801
8802 \end_inset
8803
8804
8805 \end_layout
8806
8807 \begin_layout Section
8808 Bibliography and Citations
8809 \end_layout
8810
8811 \begin_layout Standard
8812 XHTML output fully supports bibliographies and citations.
8813  
8814 \end_layout
8815
8816 \begin_layout Standard
8817 Citation labels are generated by the same machinery that generates \SpecialChar LyX
8818 's on-screen
8819  labels, so the labels will look in the output much as they do in \SpecialChar LyX
8820 , though
8821  better.
8822  If you are using numerical citations, then \SpecialChar LyX
8823  will output numerical labels,
8824  such as [1] or [17], rather than simply showing the citation key in square
8825  brackets, as it does on-screen.
8826  If you are using author-year citations, then \SpecialChar LyX
8827  will add lowercase letters
8828  to the years, just as Bib\SpecialChar TeX
8829  does, if it finds more than one citation for
8830  a given author-year combination.
8831  The labels will be printed with the bibliography entries.
8832  Note that there is, at present, no way to customize the appearance of the
8833  labels, for example, to choose between square brackets and parentheses.
8834 \end_layout
8835
8836 \begin_layout Standard
8837 Bibliography output is handled by the same machinery that handles the presentati
8838 on of reference information in the citation dialog, so you will see in the
8839  XHTML output pretty much what you would see if you were to look at a given
8840  entry in the citation dialog.
8841  The formatting can be customized in your layout file or, preferably, in
8842  a module.
8843  See the 
8844 \emph on
8845 Customization
8846 \emph default
8847  manual for the details.
8848 \end_layout
8849
8850 \begin_layout Standard
8851 The main defect at present is that cross-referenced information is printed
8852  with every entry with which it is associated.
8853  So you can see things like this:
8854 \end_layout
8855
8856 \begin_layout Quote
8857 Jason Stanley, 
8858 \begin_inset Quotes eld
8859 \end_inset
8860
8861 Context and Logical Form
8862 \begin_inset Quotes erd
8863 \end_inset
8864
8865 , in 
8866 \emph on
8867 Language in Context: Selected Essays
8868 \emph default
8869  (Oxford: Oxford University Press, 2007), pp.
8870  30–68.
8871 \end_layout
8872
8873 \begin_layout Quote
8874 Jason Stanley, 
8875 \begin_inset Quotes eld
8876 \end_inset
8877
8878 Semantics in Context
8879 \begin_inset Quotes erd
8880 \end_inset
8881
8882 , in 
8883 \emph on
8884 Language in Context: Selected Essays
8885 \emph default
8886  (Oxford: Oxford University Press, 2007), pp.
8887  201–30.
8888 \end_layout
8889
8890 \begin_layout Standard
8891 This should be fixed before long.
8892 \end_layout
8893
8894 \begin_layout Standard
8895 There is no support at present for sectioned bibliographies.
8896  If you have multiple bibliographies, then \SpecialChar LyX
8897  will print the same bibliography
8898  over and over.
8899 \end_layout
8900
8901 \begin_layout Section
8902 Indexes
8903 \end_layout
8904
8905 \begin_layout Standard
8906 \SpecialChar LyX
8907  will happily export indexes as XHTML, but with certain limitations at the
8908  moment.
8909 \end_layout
8910
8911 \begin_layout Standard
8912 Index export will be most reliable when you do not attempt to use the fancy
8913  constructs that are described in the section on indexes in the 
8914 \emph on
8915 User's Guide
8916 \emph default
8917 .
8918 \begin_inset Foot
8919 status collapsed
8920
8921 \begin_layout Plain Layout
8922 The main issue here is that \SpecialChar LyX
8923  itself does not really handle these.
8924  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
8925 .
8926 \end_layout
8927
8928 \end_inset
8929
8930  We'll describe how they are handled using the subsection headings from
8931  that section.
8932 \end_layout
8933
8934 \begin_layout Itemize
8935 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
8936  makes an effort to support these,
8937  but the entries must be separated by 
8938 \begin_inset Quotes eld
8939 \end_inset
8940
8941  ! 
8942 \begin_inset Quotes erd
8943 \end_inset
8944
8945 , that is, there must be spaces around the exclamation point.
8946  This is because it is otherwise too difficult to check for escaped exclamation
8947  points, ones in math, and so forth.
8948 \end_layout
8949
8950 \begin_layout Itemize
8951 Page Ranges: There is no support at all for page ranges, since these make
8952  no sense with XHMTL.
8953  Instead, you will just get two index entries, one at either end.
8954 \end_layout
8955
8956 \begin_layout Itemize
8957 Cross-referencing: There is no support for cross-referencing.
8958  If \SpecialChar LyX
8959  finds an entry containing the 
8960 \begin_inset Quotes eld
8961 \end_inset
8962
8963 |see\SpecialChar ldots
8964
8965 \begin_inset Quotes erd
8966 \end_inset
8967
8968  construct, it is just dropped, and the rest is treated as an ordinary index
8969  entry.
8970 \end_layout
8971
8972 \begin_layout Itemize
8973 Index Entry Order: \SpecialChar LyX
8974  does support attempts to fix the sorting order.
8975  It will take what is before the first `@' it finds and use that for sorting,
8976  taking what follows the first `@' to be the actual entry.
8977  At present, \SpecialChar LyX
8978  does not check for escaped `@', so do not try to index email
8979  addresses.
8980 \end_layout
8981
8982 \begin_layout Itemize
8983 Index Entry Layout: You can format entries by using the text style dialog,
8984  or by using any other method available within \SpecialChar LyX
8985  itself.
8986  There is no support for constructs like: 
8987 \begin_inset Quotes eld
8988 \end_inset
8989
8990 entry|textbf
8991 \begin_inset Quotes erd
8992 \end_inset
8993
8994 .
8995  Indeed, if \SpecialChar LyX
8996  finds a pipe symbol, `|', in an entry, it will delete it and
8997  everything that follows it.
8998 \end_layout
8999
9000 \begin_layout Itemize
9001 Multiple Indexes: There is no support for multiple indexes.
9002  Rather, all index entries will be printed as one large index.
9003  To avoid our printing several versions of the index, we print only the
9004  main index, so make sure you have one.
9005 \end_layout
9006
9007 \begin_layout Section
9008 Nomenclature and Glossary
9009 \end_layout
9010
9011 \begin_layout Standard
9012 There is at present no support for glossaries.
9013  Adding it would be fairly trivial, and welcome.
9014 \end_layout
9015
9016 \begin_layout Chapter
9017
9018 \change_inserted 1075283030 1616534180
9019 DocBook Output
9020 \end_layout
9021
9022 \begin_layout Standard
9023
9024 \change_inserted 1075283030 1616534386
9025 Apart from HTML, \SpecialChar LyX
9026  can generate documents in the DocBook XML vocabulary.
9027  With versions 2.3 and before, only select templates could be used to generate
9028  DocBook documents (only version 4).
9029  Starting with \SpecialChar LyX
9030  2.4, most \SpecialChar LyX
9031  layouts can generate valid DocBook documents (only
9032  version 5).
9033  This feature is built into \SpecialChar LyX
9034  and does not require the use of external tools.
9035 \end_layout
9036
9037 \begin_layout Standard
9038
9039 \change_inserted 1075283030 1616534437
9040 The result is that the DocBook output can be customized and extended in
9041  exactly the same way \SpecialChar LaTeX
9042  output can be customized and extended: through layout
9043  files and modules.
9044  See chapter five of the 
9045 \emph on
9046 Customization 
9047 \emph default
9048 manual for the details.
9049 \end_layout
9050
9051 \begin_layout Standard
9052
9053 \change_inserted 1075283030 1616534475
9054 Most \SpecialChar LyX
9055  features are supported with DocBook, like math output.
9056 \end_layout
9057
9058 \begin_layout Itemize
9059
9060 \change_inserted 1075283030 1616534741
9061 Math output is performed mostly in MathML (the major exception being constructio
9062 ns not supported by \SpecialChar LyX
9063 , i.e.
9064  ERTs).
9065  All formulae are also available in raw \SpecialChar TeX
9066  in the DocBook output for further
9067  processing.
9068 \end_layout
9069
9070 \begin_layout Itemize
9071
9072 \change_inserted 1075283030 1616534852
9073 Bibliographies and citations are implemented, including with an external
9074  BibTeX file.
9075  Bibliography entries are not prerendered when the detailed information
9076  are available, but rather output with the standard DocBook constructs.
9077  The external DocBook processor is expected to handle the rendering of entries.
9078 \end_layout
9079
9080 \begin_layout Itemize
9081
9082 \change_inserted 1075283030 1616534863
9083 Indexes are supported, including multiple indices.
9084  Grouping (with 
9085 \family typewriter
9086 !
9087 \family default
9088 ), page ranges, and cross-references (
9089 \family typewriter
9090 |see
9091 \family default
9092 ) are supported, with the exception of the same symbols escaped.
9093  Entry order (
9094 \family typewriter
9095 @
9096 \family default
9097 ) and layout (
9098 \family typewriter
9099 |mathbf
9100 \family default
9101 ) are not supported.
9102  There is no support for escaping of index entries.
9103 \end_layout
9104
9105 \begin_layout Itemize
9106
9107 \change_inserted 1075283030 1616534884
9108 Glossaries are implemented.
9109 \end_layout
9110
9111 \begin_layout Standard
9112
9113 \change_inserted 1075283030 1616534894
9114 Two major parameters can be set at the document level.
9115 \end_layout
9116
9117 \begin_layout Itemize
9118
9119 \change_inserted 1075283030 1616534948
9120 Format for tables: \SpecialChar LyX
9121  can generate tables either as HTML (default value) or
9122  CALS, depending on the user's requirements.
9123  Most DocBook processors accept both formats.
9124 \end_layout
9125
9126 \begin_layout Itemize
9127
9128 \change_inserted 1075283030 1616535006
9129 MathML prefix: in DocBook, MathML is included within its own name space,
9130  unlike HTML.
9131  The implication is that there must be an indication of the tags belonging
9132  to the MathML standard.
9133  Three choices are offered: 
9134 \end_layout
9135
9136 \begin_deeper
9137 \begin_layout Itemize
9138
9139 \change_inserted 1075283030 1616535044
9140 Inline: the MathML name space is defined for each formula (using the 
9141 \family typewriter
9142 xmlns
9143 \family default
9144  attribute on each formula)
9145 \end_layout
9146
9147 \begin_layout Itemize
9148
9149 \change_inserted 1075283030 1616535090
9150 With the 
9151 \family typewriter
9152 m
9153 \family default
9154  prefix (default): the MathML name space is defined at the document level
9155  (using the 
9156 \family typewriter
9157 xmlns:m
9158 \family default
9159  attribute on the root element).
9160  Each MathML is prefixed with 
9161 \family typewriter
9162 m
9163 \family default
9164 : for instance, 
9165 \family typewriter
9166 m:math
9167 \end_layout
9168
9169 \begin_layout Itemize
9170
9171 \change_inserted 1075283030 1616620405
9172 With the 
9173 \family typewriter
9174 mml
9175 \family default
9176  prefix: similar to the 
9177 \family typewriter
9178 m
9179 \family default
9180  option, but with 
9181 \family typewriter
9182 mml
9183 \end_layout
9184
9185 \begin_layout Standard
9186
9187 \change_inserted 1075283030 1616620470
9188 This option is especially useful if you want \SpecialChar LyX
9189  to match your personal style
9190  or to work with buggy software that only accepts one prefix for MathML.
9191 \change_unchanged
9192
9193 \end_layout
9194
9195 \end_deeper
9196 \begin_layout Chapter
9197 The \SpecialChar LyX
9198  Server
9199 \end_layout
9200
9201 \begin_layout Section
9202 Introduction
9203 \end_layout
9204
9205 \begin_layout Standard
9206 The `\SpecialChar LyX
9207  server' allows other programs to talk to \SpecialChar LyX
9208 , invoke \SpecialChar LyX
9209  commands, and retrieve
9210  information about the \SpecialChar LyX
9211  internal state.
9212  This is only intended for advanced users, but they should find it useful.
9213  It is by writing to the \SpecialChar LyX
9214  server, for example, that bibliography managers,
9215  such as JabRef, are able to 
9216 \begin_inset Quotes eld
9217 \end_inset
9218
9219 push
9220 \begin_inset Quotes erd
9221 \end_inset
9222
9223  citations to \SpecialChar LyX
9224 .
9225 \end_layout
9226
9227 \begin_layout Section
9228 Starting the \SpecialChar LyX
9229  Server
9230 \begin_inset CommandInset label
9231 LatexCommand label
9232 name "sec:Starting-the-Server"
9233
9234 \end_inset
9235
9236
9237 \end_layout
9238
9239 \begin_layout Standard
9240 The \SpecialChar LyX
9241  server works through the use of a pair of named pipes.
9242  These are usually located in 
9243 \begin_inset Flex Code
9244 status collapsed
9245
9246 \begin_layout Plain Layout
9247 UserDir
9248 \end_layout
9249
9250 \end_inset
9251
9252 , (except on Windows, where 
9253 \emph on
9254 local
9255 \emph default
9256  named pipes are special objects located in 
9257 \begin_inset Flex Code
9258 status collapsed
9259
9260 \begin_layout Plain Layout
9261
9262 \backslash
9263
9264 \backslash
9265 .
9266 \backslash
9267 pipe
9268 \end_layout
9269
9270 \end_inset
9271
9272 ) and have the names 
9273 \begin_inset Quotes eld
9274 \end_inset
9275
9276
9277 \begin_inset Flex Code
9278 status collapsed
9279
9280 \begin_layout Plain Layout
9281 lyxpipe.in
9282 \end_layout
9283
9284 \end_inset
9285
9286
9287 \begin_inset Quotes erd
9288 \end_inset
9289
9290  and 
9291 \begin_inset Quotes eld
9292 \end_inset
9293
9294
9295 \begin_inset Flex Code
9296 status collapsed
9297
9298 \begin_layout Plain Layout
9299 lyxpipe.out
9300 \end_layout
9301
9302 \end_inset
9303
9304
9305 \begin_inset Quotes erd
9306 \end_inset
9307
9308 .
9309  External programs write into 
9310 \begin_inset Flex Code
9311 status collapsed
9312
9313 \begin_layout Plain Layout
9314 lyxpipe.in
9315 \end_layout
9316
9317 \end_inset
9318
9319  and read back data from 
9320 \begin_inset Flex Code
9321 status collapsed
9322
9323 \begin_layout Plain Layout
9324 lyxpipe.out
9325 \end_layout
9326
9327 \end_inset
9328
9329 .
9330  The stem of the pipe names can be defined in the 
9331 \begin_inset Flex Noun
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 Tools\SpecialChar menuseparator
9336 Preferences
9337 \end_layout
9338
9339 \end_inset
9340
9341  dialog, for example 
9342 \begin_inset Flex Code
9343 status collapsed
9344
9345 \begin_layout Plain Layout
9346 "/home/myhome/lyxpipe"
9347 \end_layout
9348
9349 \end_inset
9350
9351 , or 
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 "
9357 \backslash
9358
9359 \backslash
9360 .
9361 \backslash
9362 pipe
9363 \backslash
9364 lyxpipe"
9365 \end_layout
9366
9367 \end_inset
9368
9369  on Windows (where any working path instead of lyxpipe can be used, for
9370  example 
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 "
9376 \backslash
9377
9378 \backslash
9379 .
9380 \backslash
9381 pipe
9382 \backslash
9383 my
9384 \backslash
9385 lyx
9386 \backslash
9387 pipe"
9388 \end_layout
9389
9390 \end_inset
9391
9392  would also work).
9393  You 
9394 \emph on
9395 must
9396 \emph default
9397  configure this manually in order for the server to start.
9398 \end_layout
9399
9400 \begin_layout Standard
9401 \SpecialChar LyX
9402  will add the '
9403 \begin_inset Flex Code
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 .in
9408 \end_layout
9409
9410 \end_inset
9411
9412 ' and '
9413 \begin_inset Flex Code
9414 status collapsed
9415
9416 \begin_layout Plain Layout
9417 .out
9418 \end_layout
9419
9420 \end_inset
9421
9422 ' to create the pipes.
9423  If one of the pipes already exists, \SpecialChar LyX
9424  will assume that another \SpecialChar LyX
9425  process
9426  is already running and will not start the server.
9427  On POSIX (Unix like) systems, if for some other reason, an unused 
9428 \begin_inset Quotes eld
9429 \end_inset
9430
9431 stale
9432 \begin_inset Quotes erd
9433 \end_inset
9434
9435  pipe is left in existence when \SpecialChar LyX
9436  closes, then \SpecialChar LyX
9437  will try to delete it.
9438  If this fails for some reason, you will need to delete the pipes manually
9439  and then restart \SpecialChar LyX
9440 .
9441  On Windows, pipes are deleted by the OS on program termination or crash,
9442  so 
9443 \begin_inset Quotes eld
9444 \end_inset
9445
9446 stale
9447 \begin_inset Quotes erd
9448 \end_inset
9449
9450  pipes should not be possible.
9451 \end_layout
9452
9453 \begin_layout Standard
9454 To have several \SpecialChar LyX
9455  processes with servers at the same time, you have to use
9456  different configurations, perhaps by using separate user directories, each
9457  with its own 
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 preferences
9463 \end_layout
9464
9465 \end_inset
9466
9467  file, for each process.
9468 \end_layout
9469
9470 \begin_layout Standard
9471 If you are developing a client program, you might find it useful to enable
9472  debugging information from the \SpecialChar LyX
9473  server.
9474  Do this by starting \SpecialChar LyX
9475  as 
9476 \begin_inset Flex Code
9477 status collapsed
9478
9479 \begin_layout Plain Layout
9480 lyx -dbg lyxserver
9481 \end_layout
9482
9483 \end_inset
9484
9485 .
9486 \end_layout
9487
9488 \begin_layout Standard
9489 You can find a complete example client written in C++ in the source distribution
9490  as 
9491 \begin_inset Flex Code
9492 status collapsed
9493
9494 \begin_layout Plain Layout
9495 development/lyxserver/server_monitor.cpp
9496 \end_layout
9497
9498 \end_inset
9499
9500 .
9501 \end_layout
9502
9503 \begin_layout Standard
9504 Another useful tool is the command-line based client found in 
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 src/client/lyxclient
9510 \end_layout
9511
9512 \end_inset
9513
9514 .
9515 \end_layout
9516
9517 \begin_layout Section
9518 Normal communication
9519 \end_layout
9520
9521 \begin_layout Standard
9522 To issue a \SpecialChar LyX
9523  call, the client writes a line of ASCII text into the input
9524  pipe.
9525  This line has the following format:
9526 \end_layout
9527
9528 \begin_layout Quote
9529 LYXCMD:
9530 \emph on
9531 clientname
9532 \emph default
9533 :
9534 \emph on
9535 function
9536 \emph default
9537 :
9538 \emph on
9539 argument
9540 \end_layout
9541
9542 \begin_layout Description
9543 clientname is a name that the client can choose arbitrarily.
9544  Its only use is that \SpecialChar LyX
9545  will echo it if it sends an answer—so a client can
9546  dispatch results from different requesters.
9547 \end_layout
9548
9549 \begin_layout Description
9550 function is the function you want \SpecialChar LyX
9551  to perform.
9552  It is the same as the commands you'd use in the minibuffer.
9553 \end_layout
9554
9555 \begin_layout Description
9556 argument is an optional argument which is meaningful only to some functions
9557  (for instance, the 
9558 \begin_inset Quotes eld
9559 \end_inset
9560
9561 self-insert
9562 \begin_inset Quotes erd
9563 \end_inset
9564
9565  LFUN will insert the argument as text at the cursor position).
9566 \end_layout
9567
9568 \begin_layout Standard
9569 The answer from \SpecialChar LyX
9570  will arrive in the output pipe and be of the form
9571 \end_layout
9572
9573 \begin_layout Quote
9574 INFO:
9575 \emph on
9576 clientname
9577 \emph default
9578 :
9579 \emph on
9580 function
9581 \emph default
9582 :
9583 \emph on
9584 data
9585 \end_layout
9586
9587 \begin_layout Standard
9588 where 
9589 \emph on
9590 clientname
9591 \emph default
9592  and 
9593 \emph on
9594 function
9595 \emph default
9596  are just echoed from the command request, while 
9597 \emph on
9598 data
9599 \emph default
9600  is more or less useful information filled according to how the command
9601  execution worked out.
9602  Some commands, such as 
9603 \begin_inset Quotes eld
9604 \end_inset
9605
9606 font-state
9607 \begin_inset Quotes erd
9608 \end_inset
9609
9610 , will return information about the internal state of \SpecialChar LyX
9611 , while other will
9612  return an empty data-response.
9613  This means that the command execution went fine.
9614 \end_layout
9615
9616 \begin_layout Standard
9617 In case of errors, the response from \SpecialChar LyX
9618  will have this form
9619 \end_layout
9620
9621 \begin_layout Quote
9622 ERROR:
9623 \emph on
9624 clientname
9625 \emph default
9626 :
9627 \emph on
9628 function
9629 \emph default
9630 :
9631 \emph on
9632 error message
9633 \end_layout
9634
9635 \begin_layout Standard
9636 where the 
9637 \emph on
9638 error message
9639 \emph default
9640  should contain an explanation of why the command failed.
9641 \end_layout
9642
9643 \begin_layout Standard
9644 Examples:
9645 \end_layout
9646
9647 \begin_layout LyX-Code
9648 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
9649 \begin_inset Newline newline
9650 \end_inset
9651
9652 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
9653 \begin_inset Newline newline
9654 \end_inset
9655
9656 read a <~/.lyxpipe.out
9657 \begin_inset Newline newline
9658 \end_inset
9659
9660 echo $a
9661 \end_layout
9662
9663 \begin_layout Subsection
9664 AppleScript (Mac OS X)
9665 \end_layout
9666
9667 \begin_layout Standard
9668 Since \SpecialChar LyX
9669  2.1, \SpecialChar LyX
9670  supports basic interactions with AppleScript for normal communicatio
9671 n through the command run.
9672  This command takes a direct argument (the 
9673 \series bold
9674 function
9675 \series default
9676  to perform) and an optional argument.
9677  It either returns the output of the function or triggers an error with
9678  the error message and code.
9679 \end_layout
9680
9681 \begin_layout Standard
9682 Example:
9683 \end_layout
9684
9685 \begin_layout LyX-Code
9686 tell application "\SpecialChar LyX
9687 "
9688 \end_layout
9689
9690 \begin_layout LyX-Code
9691   try
9692 \end_layout
9693
9694 \begin_layout LyX-Code
9695     -- Stores the current file name into f
9696 \end_layout
9697
9698 \begin_layout LyX-Code
9699     set f to (run "server-get-filename" with argument "")
9700 \end_layout
9701
9702 \begin_layout LyX-Code
9703     on error the error_message number the error_number
9704 \end_layout
9705
9706 \begin_layout LyX-Code
9707       display dialog "Error: " & the error_number & ".
9708  " ¬
9709 \end_layout
9710
9711 \begin_layout LyX-Code
9712               & the error_message buttons {"OK"} default button 1
9713 \end_layout
9714
9715 \begin_layout LyX-Code
9716   end try
9717 \end_layout
9718
9719 \begin_layout LyX-Code
9720 end tell
9721 \end_layout
9722
9723 \begin_layout Section
9724 Notification
9725 \end_layout
9726
9727 \begin_layout Standard
9728 \SpecialChar LyX
9729  can notify clients of events going on asynchronously.
9730  Currently it will only do this if the user binds a key sequence with the
9731  function 
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735 notify
9736 \begin_inset Quotes erd
9737 \end_inset
9738
9739 .
9740  The format of the string \SpecialChar LyX
9741  sends is as follows:
9742 \end_layout
9743
9744 \begin_layout Quote
9745 \begin_inset Flex Code
9746 status collapsed
9747
9748 \begin_layout Plain Layout
9749 NOTIFY:
9750 \end_layout
9751
9752 \end_inset
9753
9754
9755 \emph on
9756 key-sequence
9757 \end_layout
9758
9759 \begin_layout Standard
9760 where 
9761 \emph on
9762 key-sequence
9763 \emph default
9764  is the printed representation of the key sequence that was actually typed
9765  by the user.
9766 \end_layout
9767
9768 \begin_layout Standard
9769 This mechanism can be used to extend \SpecialChar LyX
9770 's command set and implement macros.
9771  Bind some key sequence to 
9772 \begin_inset Quotes eld
9773 \end_inset
9774
9775 notify
9776 \begin_inset Quotes erd
9777 \end_inset
9778
9779 .
9780  Then start a client that listens on the output pipe, dispatches the command
9781  according to the sequence, and starts a function that may use \SpecialChar LyX
9782  calls and
9783  \SpecialChar LyX
9784  requests to issue a command or a series of commands to \SpecialChar LyX
9785 .
9786 \end_layout
9787
9788 \begin_layout Section
9789 The simple \SpecialChar LyX
9790  Server Protocol
9791 \end_layout
9792
9793 \begin_layout Standard
9794 \SpecialChar LyX
9795  implements a simple protocol that can be used for session management.
9796  All messages are of the form
9797 \end_layout
9798
9799 \begin_layout Quote
9800 LYXSRV:
9801 \emph on
9802 clientname
9803 \emph default
9804 :
9805 \emph on
9806 protocol message
9807 \end_layout
9808
9809 \begin_layout Standard
9810 where 
9811 \emph on
9812 protocol message
9813 \emph default
9814  can be 
9815 \begin_inset Quotes eld
9816 \end_inset
9817
9818 hello
9819 \begin_inset Quotes erd
9820 \end_inset
9821
9822  or 
9823 \begin_inset Quotes eld
9824 \end_inset
9825
9826 bye
9827 \begin_inset Quotes erd
9828 \end_inset
9829
9830 .
9831  If 
9832 \begin_inset Quotes eld
9833 \end_inset
9834
9835 hello
9836 \begin_inset Quotes erd
9837 \end_inset
9838
9839  is received from a client, \SpecialChar LyX
9840  will report back to inform the client that
9841  it's listening to it's messages, while 
9842 \begin_inset Quotes eld
9843 \end_inset
9844
9845 bye
9846 \begin_inset Quotes erd
9847 \end_inset
9848
9849  sent from \SpecialChar LyX
9850  will inform clients that \SpecialChar LyX
9851  is closing.
9852 \end_layout
9853
9854 \begin_layout Section
9855 Reverse DVI/PDF search
9856 \end_layout
9857
9858 \begin_layout Standard
9859 Some DVI/PDF viewers
9860 \begin_inset Foot
9861 status collapsed
9862
9863 \begin_layout Plain Layout
9864 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
9865  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
9866 \end_layout
9867
9868 \end_inset
9869
9870  provide 
9871 \emph on
9872 reverse search
9873 \emph default
9874  facility (also called 
9875 \emph on
9876 inverse search
9877 \emph default
9878 ).
9879  This means that you can tell \SpecialChar LyX
9880  to put the cursor to a specific line in the
9881  document by clicking at the respective position in the DVI/PDF output.
9882  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
9883 .
9884  This is done via the \SpecialChar LyX
9885  server either by using the named pipe (
9886 \emph on
9887 lyxpipe
9888 \emph default
9889 ), or the UNIX domain socket (
9890 \emph on
9891 lyxsocket
9892 \emph default
9893 ) that \SpecialChar LyX
9894  creates in its temporary directory (this is the way the 
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 lyxclient
9900 \end_layout
9901
9902 \end_inset
9903
9904  program communicates with \SpecialChar LyX
9905 ).
9906  In some cases, you need a helper script that mediates between the viewer
9907  and \SpecialChar LyX
9908 , in others, the viewer can communicate with \SpecialChar LyX
9909  directly.
9910  This depends on the selected viewer and on your operating system.
9911  The same applies to the way viewers need to be configured and the way the
9912  reverse search is actually performed.
9913  In what follows, we will thus describe how to setup reverse search for
9914  specific viewers.
9915  Before we turn to this, though, we will explain what needs to be done generally
9916  to enable reverse search in the DVI/PDF output.
9917 \end_layout
9918
9919 \begin_layout Subsection
9920 Automatic setup
9921 \begin_inset CommandInset label
9922 LatexCommand label
9923 name "subsec:rev-search"
9924
9925 \end_inset
9926
9927
9928 \end_layout
9929
9930 \begin_layout Standard
9931 In most cases \SpecialChar LyX
9932  will do the work for you by pressing the following button
9933  in the toolbar: 
9934 \begin_inset Info
9935 type  "icon"
9936 arg   "buffer-toggle-output-sync"
9937 \end_inset
9938
9939 .
9940  Alternatively, you can also enable the feature by checking 
9941 \family sans
9942 Synchronize with Output
9943 \family default
9944  in 
9945 \begin_inset Flex Noun
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949 Document\SpecialChar menuseparator
9950 Settings\SpecialChar menuseparator
9951 Formats
9952 \end_layout
9953
9954 \end_inset
9955
9956 .
9957  In such a case \SpecialChar LyX
9958  will automatically insert the necessary Sync\SpecialChar TeX
9959  macro (for
9960  PDF) or load the srcltx package (for DVI) respectively.
9961  This option can be easily reached also on 
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 View/Update
9967 \end_layout
9968
9969 \end_inset
9970
9971  Toolbar.
9972 \end_layout
9973
9974 \begin_layout Standard
9975 If you need a different setting, you can select or input a custom macro
9976  from the drop down box just below 
9977 \begin_inset Flex Noun
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 Document\SpecialChar menuseparator
9982 Settings\SpecialChar menuseparator
9983 Output\SpecialChar menuseparator
9984 Synchronize with Output
9985 \end_layout
9986
9987 \end_inset
9988
9989 .
9990 \end_layout
9991
9992 \begin_layout Standard
9993 Note that the method 
9994 \begin_inset Flex Code
9995 status collapsed
9996
9997 \begin_layout Plain Layout
9998
9999 \backslash
10000 synctex=1
10001 \end_layout
10002
10003 \end_inset
10004
10005  enables gzip compression.
10006  If your viewer does not support it, you should instead use 
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011
10012 \backslash
10013 synctex=-1
10014 \end_layout
10015
10016 \end_inset
10017
10018 .
10019 \end_layout
10020
10021 \begin_layout Standard
10022 Please also note that including the 
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 srcltx
10028 \end_layout
10029
10030 \end_inset
10031
10032  package or 
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 src-specials
10038 \end_layout
10039
10040 \end_inset
10041
10042  sometimes has an undesired impact on the typesetting.
10043  Thus, you should switch output synchronization off for the final typesetting
10044  if you use the 
10045 \begin_inset Flex Code
10046 status collapsed
10047
10048 \begin_layout Plain Layout
10049 srcltx
10050 \end_layout
10051
10052 \end_inset
10053
10054  package or 
10055 \begin_inset Flex Code
10056 status collapsed
10057
10058 \begin_layout Plain Layout
10059 src-specials
10060 \end_layout
10061
10062 \end_inset
10063
10064 .
10065  
10066 \end_layout
10067
10068 \begin_layout Standard
10069 In case you need some more special settings that are not covered by the
10070  automatic settings, read the next section about how to set up output synchroniz
10071 ation manually.
10072  If the automatic setup suits your needs, you can readily jump to section
10073 \begin_inset space ~
10074 \end_inset
10075
10076
10077 \begin_inset CommandInset ref
10078 LatexCommand ref
10079 reference "subsec:configuring-viewers"
10080
10081 \end_inset
10082
10083 , where the necessary configuration steps in your viewer – needed both with
10084  the automatic and the manual setup – are described.
10085 \end_layout
10086
10087 \begin_layout Subsection
10088 Manual setup
10089 \end_layout
10090
10091 \begin_layout Standard
10092 \SpecialChar LaTeX
10093  provides several different methods for reverse search.
10094  Some are built-in in the 
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099 latex/pdflatex
10100 \end_layout
10101
10102 \end_inset
10103
10104  program, some are provided by external packages.
10105  Your choice depends on whether your \SpecialChar LaTeX
10106  distribution already provides a given
10107  method (the built-in methods are rather new) and whether your viewer can
10108  cope with it.
10109  The available methods are described in the following.
10110 \end_layout
10111
10112 \begin_layout Subsubsection*
10113 Built-in DVI-search via src-specials (DVI only) 
10114 \end_layout
10115
10116 \begin_layout Standard
10117 This method provides the DVI file with the necessary information for reverse
10118  search.
10119  It is available in \SpecialChar LaTeX
10120  since quite some time (any somewhat recent \SpecialChar LaTeX
10121  distribution
10122  should include it), and it works reliably.
10123  To enable it, change the 
10124 \begin_inset Flex Noun
10125 status collapsed
10126
10127 \begin_layout Plain Layout
10128 La
10129 \family sans
10130 TeX
10131 \family default
10132  (plain)->DVI
10133 \end_layout
10134
10135 \end_inset
10136
10137  or 
10138 \begin_inset Flex Noun
10139 status collapsed
10140
10141 \begin_layout Plain Layout
10142 La
10143 \family sans
10144 TeX
10145 \family default
10146  (plain)->DraftDVI
10147 \end_layout
10148
10149 \end_inset
10150
10151  converter in 
10152 \begin_inset Flex Noun
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 Preferences\SpecialChar menuseparator
10157 File Handling\SpecialChar menuseparator
10158 Converters
10159 \end_layout
10160
10161 \end_inset
10162
10163  to 
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 latex -src-specials $$i
10169 \end_layout
10170
10171 \end_inset
10172
10173 .
10174  If this doesn't work, check if your \SpecialChar TeX
10175  engine needs different options (the
10176  syntax might differ in some distributions).
10177 \end_layout
10178
10179 \begin_layout Subsubsection*
10180 External Packages (PDFSync and scrltx) 
10181 \end_layout
10182
10183 \begin_layout Standard
10184 The packages 
10185 \emph on
10186 pdfsync
10187 \emph default
10188  and 
10189 \emph on
10190 scrltx
10191 \emph default
10192  provide reverse search facility for PDF output (via pdflatex) and DVI output,
10193  respectively.
10194  In order to enable it, load the packages in the \SpecialChar LyX
10195  preamble: 
10196 \end_layout
10197
10198 \begin_layout Itemize
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203
10204 \backslash
10205 usepackage{pdfsync}
10206 \end_layout
10207
10208 \end_inset
10209
10210  for reverse PDF search,
10211 \end_layout
10212
10213 \begin_layout Itemize
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218
10219 \backslash
10220 usepackage[active]{srcltx}
10221 \end_layout
10222
10223 \end_inset
10224
10225  for reverse DVI search.
10226 \end_layout
10227
10228 \begin_layout Standard
10229 If you want to be able to perform both DVI and PDF reverse searches, you
10230  can also insert in the preamble the following lines
10231 \end_layout
10232
10233 \begin_layout LyX-Code
10234
10235 \backslash
10236 usepackage{ifpdf}
10237 \begin_inset Newline newline
10238 \end_inset
10239
10240
10241 \backslash
10242 ifpdf
10243 \begin_inset Newline newline
10244 \end_inset
10245
10246   
10247 \backslash
10248 usepackage{pdfsync}
10249 \begin_inset Newline newline
10250 \end_inset
10251
10252
10253 \backslash
10254 else
10255 \begin_inset Newline newline
10256 \end_inset
10257
10258   
10259 \backslash
10260 usepackage[active]{srcltx}
10261 \begin_inset Newline newline
10262 \end_inset
10263
10264
10265 \backslash
10266 fi
10267 \end_layout
10268
10269 \begin_layout Standard
10270 This way, you can preview the file as either DVI or PDF (pdflatex) and the
10271  right package will be used.
10272 \end_layout
10273
10274 \begin_layout Standard
10275 Note that PDFSync might affect the output layout of your document.
10276  It is therefore advised to disable PDFsync for final documents.
10277 \end_layout
10278
10279 \begin_layout Subsubsection*
10280 Built-in reverse search via Sync\SpecialChar TeX
10281  (DVI and PDF) 
10282 \end_layout
10283
10284 \begin_layout Standard
10285 Recent versions of 
10286 \begin_inset Flex Code
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 (pdf)latex
10291 \end_layout
10292
10293 \end_inset
10294
10295  have built-in support for both PDF and DVI reverse search.
10296  This so-called 
10297 \emph on
10298 Sync\SpecialChar TeX
10299
10300 \emph default
10301  facility is basically the result of the integration of the PDFSync package
10302  to the pdftex program and its merge with the 
10303 \emph on
10304 scr-specials
10305 \emph default
10306  approach.
10307  You need at least \SpecialChar TeX
10308 Live 2008 or a recent Mik\SpecialChar TeX
10309  distribution in order to use
10310  it.
10311 \begin_inset Foot
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315 For some reason, Mik\SpecialChar TeX
10316  does not understand/obey the command \SpecialChar LyX
10317  inserts into
10318  the preamble when you check the "Enable Forward/Reverse Search" button
10319  in the toolbar and does not generate the necessary info.
10320 \end_layout
10321
10322 \begin_layout Plain Layout
10323 The generation of the required info can be forced by changing the converter
10324  "\SpecialChar LaTeX
10325  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
10326  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
10327  the -synctex=1 switch).
10328 \end_layout
10329
10330 \end_inset
10331
10332  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
10333  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
10334  already provide Sync\SpecialChar TeX
10335  support.
10336 \end_layout
10337
10338 \begin_layout Standard
10339 To enable Sync\SpecialChar TeX
10340  for DVI output, change the 
10341 \begin_inset Flex Noun
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 La
10346 \family sans
10347 TeX
10348 \family default
10349  (plain) -> DVI
10350 \end_layout
10351
10352 \end_inset
10353
10354  or 
10355 \begin_inset Flex Noun
10356 status collapsed
10357
10358 \begin_layout Plain Layout
10359 La
10360 \family sans
10361 TeX
10362 \family default
10363  (plain) -> DraftDVI
10364 \end_layout
10365
10366 \end_inset
10367
10368  converter in 
10369 \begin_inset Flex Noun
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 Preferences\SpecialChar menuseparator
10374 File Handling\SpecialChar menuseparator
10375 Converters
10376 \end_layout
10377
10378 \end_inset
10379
10380  to 
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 latex -synctex=1 $$i
10386 \end_layout
10387
10388 \end_inset
10389
10390 , and for PDF output, change the 
10391 \begin_inset Flex Noun
10392 status collapsed
10393
10394 \begin_layout Plain Layout
10395 La
10396 \family sans
10397 TeX
10398 \family default
10399  (pdflatex) -> PDF (pdflatex)
10400 \end_layout
10401
10402 \end_inset
10403
10404  converter to 
10405 \begin_inset Flex Code
10406 status collapsed
10407
10408 \begin_layout Plain Layout
10409 pdflatex -synctex=1 $$i
10410 \end_layout
10411
10412 \end_inset
10413
10414 .
10415  Should your viewer not be considered in the following description, or in
10416  case of missing success, please check the documentation of your viewer
10417  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
10418 .
10419 \begin_inset Foot
10420 status collapsed
10421
10422 \begin_layout Plain Layout
10423 Note that the option 
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 -synctex=1
10429 \end_layout
10430
10431 \end_inset
10432
10433  option enables gzip compression.
10434  If your viewer does not support it, you should instead use 
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439 -synctex=-1
10440 \end_layout
10441
10442 \end_inset
10443
10444 .
10445 \end_layout
10446
10447 \end_inset
10448
10449
10450 \end_layout
10451
10452 \begin_layout Subsection
10453 Configuring and using specific viewers
10454 \begin_inset CommandInset label
10455 LatexCommand label
10456 name "subsec:configuring-viewers"
10457
10458 \end_inset
10459
10460
10461 \end_layout
10462
10463 \begin_layout Subsubsection*
10464 Xdvi (all platforms)
10465 \end_layout
10466
10467 \begin_layout Standard
10468 If you use 
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 xdvi
10474 \end_layout
10475
10476 \end_inset
10477
10478 , you don't need to do anything else for performing a reverse DVI search,
10479  as \SpecialChar LyX
10480  already provides the necessary hooks for automatically using the 
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 lyxclient
10486 \end_layout
10487
10488 \end_inset
10489
10490  program.
10491  Just setup your document as described above (reverse search is triggered
10492  by Ctrl-click or Alt-click on Mac OSX, respectively).
10493 \end_layout
10494
10495 \begin_layout Standard
10496 However, if for whatever reason you want to use the named pipe instead of
10497  the socket for communicating with \SpecialChar LyX
10498 , simply change the DVI viewer in 
10499 \begin_inset Flex Noun
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 Preferences\SpecialChar menuseparator
10504 File Handling\SpecialChar menuseparator
10505 File formats
10506 \end_layout
10507
10508 \end_inset
10509
10510  to
10511 \begin_inset Foot
10512 status collapsed
10513
10514 \begin_layout Plain Layout
10515 On Mac OSX you have to use 
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
10521 \end_layout
10522
10523 \end_inset
10524
10525
10526 \end_layout
10527
10528 \end_inset
10529
10530  
10531 \begin_inset Flex Code
10532 status collapsed
10533
10534 \begin_layout Plain Layout
10535 xdvi -editor "lyxeditor.sh %f %l"
10536 \end_layout
10537
10538 \end_inset
10539
10540 , where 
10541 \begin_inset Flex Code
10542 status collapsed
10543
10544 \begin_layout Plain Layout
10545 lyxeditor.sh
10546 \end_layout
10547
10548 \end_inset
10549
10550  is a suitable script.
10551  For example, a minimal shell script is the following one:
10552 \end_layout
10553
10554 \begin_layout LyX-Code
10555 #!/bin/sh
10556 \begin_inset Newline newline
10557 \end_inset
10558
10559 LYXPIPE="/path/to/lyxpipe"
10560 \begin_inset Newline newline
10561 \end_inset
10562
10563 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
10564 \begin_inset Newline newline
10565 \end_inset
10566
10567 echo "$COMMAND" > "${LYXPIPE}".in || exit
10568 \begin_inset Newline newline
10569 \end_inset
10570
10571 read TMP < "${LYXPIPE}".out || exit
10572 \end_layout
10573
10574 \begin_layout Standard
10575 where 
10576 \begin_inset Flex Code
10577 status collapsed
10578
10579 \begin_layout Plain Layout
10580 /path/to/lyxpipe
10581 \end_layout
10582
10583 \end_inset
10584
10585  is the LyXServer pipe path specified in 
10586 \begin_inset Flex Noun
10587 status collapsed
10588
10589 \begin_layout Plain Layout
10590 Preferences\SpecialChar menuseparator
10591 Paths
10592 \end_layout
10593
10594 \end_inset
10595
10596 .
10597 \begin_inset Foot
10598 status collapsed
10599
10600 \begin_layout Plain Layout
10601 In the 
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606 development/tools
10607 \end_layout
10608
10609 \end_inset
10610
10611  folder of a source distribution you can find a 
10612 \begin_inset Flex Code
10613 status collapsed
10614
10615 \begin_layout Plain Layout
10616 lyxeditor
10617 \end_layout
10618
10619 \end_inset
10620
10621  script which is able to locate the 
10622 \emph on
10623 lyxpipe
10624 \emph default
10625  based on your preferences.
10626 \end_layout
10627
10628 \end_inset
10629
10630
10631 \end_layout
10632
10633 \begin_layout Subsubsection*
10634 MacDviX (Mac OSX)
10635 \end_layout
10636
10637 \begin_layout Standard
10638 At the end of 
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 /Applications/MacDviX_Folder/calleditor.script
10644 \end_layout
10645
10646 \end_inset
10647
10648 , add the following lines:
10649 \end_layout
10650
10651 \begin_layout LyX-Code
10652 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
10653 \begin_inset Newline newline
10654 \end_inset
10655
10656 exit 1
10657 \end_layout
10658
10659 \begin_layout Standard
10660 Modify the lines accordingly if you install \SpecialChar LyX
10661  somewhere else than in the
10662  Applications folder.
10663 \end_layout
10664
10665 \begin_layout Standard
10666 Reverse search is triggered by Alt-click (OPTION-click).
10667 \end_layout
10668
10669 \begin_layout Subsubsection*
10670 Skim (Mac OSX)
10671 \end_layout
10672
10673 \begin_layout Standard
10674 Enter 
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 open -a Skim.app $$i
10680 \end_layout
10681
10682 \end_inset
10683
10684  to the viewer setting in 
10685 \begin_inset Flex Noun
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 Preferences\SpecialChar menuseparator
10690 File Handling\SpecialChar menuseparator
10691 File formats\SpecialChar menuseparator
10692 PDF (pdflatex)
10693 \end_layout
10694
10695 \end_inset
10696
10697 , and then in 
10698 \begin_inset Flex Noun
10699 status collapsed
10700
10701 \begin_layout Plain Layout
10702 Skim\SpecialChar menuseparator
10703 Preferences\SpecialChar menuseparator
10704 Sync
10705 \end_layout
10706
10707 \end_inset
10708
10709  choose 
10710 \begin_inset Flex Noun
10711 status collapsed
10712
10713 \begin_layout Plain Layout
10714 custom
10715 \end_layout
10716
10717 \end_inset
10718
10719  preset and enter command 
10720 \begin_inset Flex Noun
10721 status collapsed
10722
10723 \begin_layout Plain Layout
10724 /Applications/\SpecialChar LyX
10725 .app/Contents/MacOS/lyxeditor
10726 \end_layout
10727
10728 \end_inset
10729
10730 .
10731 \end_layout
10732
10733 \begin_layout Standard
10734 Reverse search is triggered by COMMAND-SHIFT-click
10735 \end_layout
10736
10737 \begin_layout Subsubsection*
10738 Evince (GNOME)
10739 \end_layout
10740
10741 \begin_layout Standard
10742 Reverse search with evince does not work out of the box, but it can be achieved
10743  by means of some third party helper scripts.
10744  Please refer to 
10745 \begin_inset CommandInset href
10746 LatexCommand href
10747 target "https://wiki.lyx.org/LyX/SyncTeX"
10748 literal "false"
10749
10750 \end_inset
10751
10752  for details.
10753 \end_layout
10754
10755 \begin_layout Subsubsection*
10756 Okular (KDE)
10757 \end_layout
10758
10759 \begin_layout Standard
10760 Go to 
10761 \begin_inset Flex Noun
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765 Settings\SpecialChar menuseparator
10766 Configure Okular\SpecialChar menuseparator
10767 Editor
10768 \end_layout
10769
10770 \end_inset
10771
10772  and select LyX
10773 \begin_inset Quotes erd
10774 \end_inset
10775
10776  as editor.
10777  This inserts the appropriate command (
10778 \begin_inset Flex Code
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 lyxclient -g %f %l
10783 \end_layout
10784
10785 \end_inset
10786
10787 ).
10788 \end_layout
10789
10790 \begin_layout Standard
10791 Reverse search is triggered by SHIFT-click.
10792
10793 \change_inserted -712698321 1578211026
10794  Note that this only works if Okular is in 
10795 \begin_inset Quotes eld
10796 \end_inset
10797
10798 Browse
10799 \begin_inset Quotes erd
10800 \end_inset
10801
10802  mode (i.
10803 \begin_inset space \thinspace{}
10804 \end_inset
10805
10806 e., the hand symbol is clicked).
10807 \change_unchanged
10808
10809 \end_layout
10810
10811 \begin_layout Subsubsection*
10812 Qpdfview (Unix)
10813 \end_layout
10814
10815 \begin_layout Standard
10816 Qpdfview supports Sync\SpecialChar TeX
10817  since version 0.3.5.
10818  Go to 
10819 \begin_inset Flex Noun
10820 status collapsed
10821
10822 \begin_layout Plain Layout
10823 Edit\SpecialChar menuseparator
10824 Settings\SpecialChar menuseparator
10825 Behavior
10826 \end_layout
10827
10828 \end_inset
10829
10830 , click on the input field of the 
10831 \begin_inset Quotes eld
10832 \end_inset
10833
10834 Source editor
10835 \begin_inset Quotes erd
10836 \end_inset
10837
10838  item and add the command 
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 lyxclient -g %1 %2
10844 \end_layout
10845
10846 \end_inset
10847
10848 .
10849 \end_layout
10850
10851 \begin_layout Standard
10852 Reverse search is triggered by double-click or, in more recent versions,
10853  by context menu.
10854 \end_layout
10855
10856 \begin_layout Subsubsection*
10857 YAP (Windows)
10858 \end_layout
10859
10860 \begin_layout Standard
10861 Launch yap, choose its 
10862 \begin_inset Flex Noun
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866 View\SpecialChar menuseparator
10867 Options
10868 \end_layout
10869
10870 \end_inset
10871
10872  menu and select the 
10873 \begin_inset Quotes eld
10874 \end_inset
10875
10876 Inverse DVI Search
10877 \begin_inset Quotes erd
10878 \end_inset
10879
10880  tab.
10881  Click on the 
10882 \begin_inset Quotes eld
10883 \end_inset
10884
10885 New\SpecialChar ldots
10886
10887 \begin_inset Quotes erd
10888 \end_inset
10889
10890  button and, in the window that opens, enter 
10891 \begin_inset Quotes eld
10892 \end_inset
10893
10894 \SpecialChar LyX
10895  Editor
10896 \begin_inset Quotes erd
10897 \end_inset
10898
10899  (or any other name you like) in the 
10900 \begin_inset Quotes eld
10901 \end_inset
10902
10903 Name:
10904 \begin_inset Quotes erd
10905 \end_inset
10906
10907  field.
10908  Now click on the button labeled 
10909 \begin_inset Quotes eld
10910 \end_inset
10911
10912 \SpecialChar ldots
10913
10914 \begin_inset Quotes erd
10915 \end_inset
10916
10917  to open a file dialog and navigate to the directory containing the batch
10918  file 
10919 \begin_inset Flex Code
10920 status collapsed
10921
10922 \begin_layout Plain Layout
10923 lyxeditor.bat
10924 \end_layout
10925
10926 \end_inset
10927
10928  (see below).
10929  Select 
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 lyxeditor.bat
10935 \end_layout
10936
10937 \end_inset
10938
10939  and then specify the program arguments as 
10940 \begin_inset Flex Code
10941 status collapsed
10942
10943 \begin_layout Plain Layout
10944 %f %l
10945 \end_layout
10946
10947 \end_inset
10948
10949 .
10950  The 
10951 \begin_inset Flex Code
10952 status collapsed
10953
10954 \begin_layout Plain Layout
10955 lyxeditor.bat
10956 \end_layout
10957
10958 \end_inset
10959
10960  wrapper is used for communicating with \SpecialChar LyX
10961  through the 
10962 \emph on
10963 lyxpipe
10964 \emph default
10965  and is as follows:
10966 \end_layout
10967
10968 \begin_layout LyX-Code
10969 @echo off
10970 \begin_inset Newline newline
10971 \end_inset
10972
10973 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
10974 \backslash
10975
10976 \backslash
10977 .
10978 \backslash
10979 pipe
10980 \backslash
10981 lyxpipe.in
10982 \begin_inset Newline newline
10983 \end_inset
10984
10985 type 
10986 \backslash
10987
10988 \backslash
10989 .
10990 \backslash
10991 pipe
10992 \backslash
10993 lyxpipe.out
10994 \end_layout
10995
10996 \begin_layout Standard
10997 Make sure that the \SpecialChar LyX
10998 Server pipe path you specified in \SpecialChar LyX
10999  is 
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004
11005 \backslash
11006
11007 \backslash
11008 .
11009 \backslash
11010 pipe
11011 \backslash
11012 lyxpipe
11013 \end_layout
11014
11015 \end_inset
11016
11017 , otherwise change the 
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 lyxeditor.bat
11023 \end_layout
11024
11025 \end_inset
11026
11027  wrapper accordingly.
11028 \end_layout
11029
11030 \begin_layout Standard
11031 In yap, reverse search is triggered by double-click.
11032 \end_layout
11033
11034 \begin_layout Subsubsection*
11035 SumatraPDF (Windows)
11036 \end_layout
11037
11038 \begin_layout Standard
11039 In order to use SumatraPDF for inverse search, enter 
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
11045 \end_layout
11046
11047 \end_inset
11048
11049  in the viewer setting in 
11050 \begin_inset Flex Noun
11051 status collapsed
11052
11053 \begin_layout Plain Layout
11054 Preferences\SpecialChar menuseparator
11055 File Handling\SpecialChar menuseparator
11056 File formats\SpecialChar menuseparator
11057 PDF (pdflatex)
11058 \end_layout
11059
11060 \end_inset
11061
11062 , where 
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067 lyxeditor.bat
11068 \end_layout
11069
11070 \end_inset
11071
11072  is the previous wrapper.
11073  If SumatraPDF.exe is not in your command PATH, use its full file name.
11074 \end_layout
11075
11076 \begin_layout Standard
11077 Reverse search is triggered by double-click.
11078 \end_layout
11079
11080 \begin_layout Subsubsection*
11081 YAP (Cygwin)
11082 \end_layout
11083
11084 \begin_layout Standard
11085 First of all, make sure that yap is your default DVI viewer in the Windows
11086  environment, then launch it, choose its 
11087 \begin_inset Flex Noun
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091 View\SpecialChar menuseparator
11092 Options
11093 \end_layout
11094
11095 \end_inset
11096
11097  menu and select the 
11098 \begin_inset Quotes eld
11099 \end_inset
11100
11101 Inverse DVI Search
11102 \begin_inset Quotes erd
11103 \end_inset
11104
11105  tab.
11106  Click on the 
11107 \begin_inset Quotes eld
11108 \end_inset
11109
11110 New\SpecialChar ldots
11111
11112 \begin_inset Quotes erd
11113 \end_inset
11114
11115  button and, in the window that opens, enter 
11116 \begin_inset Quotes eld
11117 \end_inset
11118
11119 \SpecialChar LyX
11120  Editor
11121 \begin_inset Quotes erd
11122 \end_inset
11123
11124  (or any other name you like) in the 
11125 \begin_inset Quotes eld
11126 \end_inset
11127
11128 Name:
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132  field.
11133  Now click on the button labeled 
11134 \begin_inset Quotes eld
11135 \end_inset
11136
11137 \SpecialChar ldots
11138
11139 \begin_inset Quotes erd
11140 \end_inset
11141
11142  to open a file dialog and navigate to the directory containing the 
11143 \begin_inset Flex Code
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 lyxeditor.exe
11148 \end_layout
11149
11150 \end_inset
11151
11152  program (which is installed by default on Cygwin along with the \SpecialChar LyX
11153  executable).
11154  Select 
11155 \begin_inset Flex Code
11156 status collapsed
11157
11158 \begin_layout Plain Layout
11159 lyxeditor.exe
11160 \end_layout
11161
11162 \end_inset
11163
11164  and then specify the program arguments as 
11165 \begin_inset Flex Code
11166 status collapsed
11167
11168 \begin_layout Plain Layout
11169 -g %f %l
11170 \end_layout
11171
11172 \end_inset
11173
11174 .
11175  In this way, you will be using the 
11176 \emph on
11177 lyxsocket
11178 \emph default
11179  for communicating with \SpecialChar LyX
11180 .
11181  If, for whatever reason, you want to use the 
11182 \emph on
11183 lyxpipe
11184 \emph default
11185 , omit the 
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 -g
11191 \end_layout
11192
11193 \end_inset
11194
11195  option and be sure to specify the \SpecialChar LyX
11196 Server pipe path in the \SpecialChar LyX
11197  preferences.
11198 \end_layout
11199
11200 \begin_layout Standard
11201 In yap, reverse search is triggered by double-click.
11202 \end_layout
11203
11204 \begin_layout Subsubsection*
11205 SumatraPDF (Cygwin)
11206 \end_layout
11207
11208 \begin_layout Standard
11209 In order to use SumatraPDF for inverse search, enter 
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214 SumatraPDF -inverse-search "lyxeditor -g %f %l"
11215 \end_layout
11216
11217 \end_inset
11218
11219  in the viewer setting in 
11220 \begin_inset Flex Noun
11221 status collapsed
11222
11223 \begin_layout Plain Layout
11224 Preferences\SpecialChar menuseparator
11225 File Handling\SpecialChar menuseparator
11226 File formats\SpecialChar menuseparator
11227 PDF (pdflatex)
11228 \end_layout
11229
11230 \end_inset
11231
11232 .
11233  If SumatraPDF.exe is not in your command PATH, use its full posix path.
11234  The 
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 -g
11240 \end_layout
11241
11242 \end_inset
11243
11244  enables communication via the 
11245 \emph on
11246 lyxsocket
11247 \emph default
11248 .
11249  Again, omit the 
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 -g
11255 \end_layout
11256
11257 \end_inset
11258
11259  option if you want to use the 
11260 \emph on
11261 lyxpipe
11262 \emph default
11263 , and be sure to specify the \SpecialChar LyX
11264 Server pipe path in the \SpecialChar LyX
11265  preferences.
11266 \end_layout
11267
11268 \begin_layout Standard
11269 Reverse search is triggered by double-click.
11270 \end_layout
11271
11272 \begin_layout Section
11273 Forward search
11274 \end_layout
11275
11276 \begin_layout Standard
11277 Forward search is, as the name implies, in a sense the 
11278 \begin_inset Quotes eld
11279 \end_inset
11280
11281 opposite
11282 \begin_inset Quotes erd
11283 \end_inset
11284
11285  of reverse search.
11286  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
11287 .
11288  If forward search is set up (as described in what follows), you can put
11289  the cursor anywhere in your \SpecialChar LyX
11290  document, and hit 
11291 \begin_inset Flex Noun
11292 status collapsed
11293
11294 \begin_layout Plain Layout
11295 Navigate\SpecialChar menuseparator
11296 Forward search
11297 \end_layout
11298
11299 \end_inset
11300
11301  (or select 
11302 \begin_inset Flex Noun
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306 Forward search
11307 \end_layout
11308
11309 \end_inset
11310
11311  in the context menu via right mouse click), and then the viewer will jump
11312  to that position as well.
11313  This implies, of course, that your viewer supports this function.
11314 \end_layout
11315
11316 \begin_layout Standard
11317 To make forward search possible, you first need to provide the generated
11318  output PDF/DVI file with additional information about the \SpecialChar TeX
11319  sources.
11320  This can be done via the methods described in the section 
11321 \begin_inset CommandInset ref
11322 LatexCommand ref
11323 reference "subsec:rev-search"
11324
11325 \end_inset
11326
11327 .
11328 \end_layout
11329
11330 \begin_layout Standard
11331 Additionally, you need to configure \SpecialChar LyX
11332  for using your viewers in 
11333 \begin_inset Flex Noun
11334 status collapsed
11335
11336 \begin_layout Plain Layout
11337 Tools\SpecialChar menuseparator
11338 Preferences\SpecialChar menuseparator
11339 Output\SpecialChar menuseparator
11340 General
11341 \end_layout
11342
11343 \end_inset
11344
11345 .
11346  We provide a range of tested configurations for some viewers, which you
11347  can select from the drop down list.
11348  If none of these configurations suits you, you have to find out and enter
11349  a suitable configuration yourself.
11350  The definition syntax uses the following placeholders:
11351 \end_layout
11352
11353 \begin_layout Itemize
11354 \noindent
11355 \begin_inset Flex Code
11356 status collapsed
11357
11358 \begin_layout Plain Layout
11359 $$n
11360 \end_layout
11361
11362 \end_inset
11363
11364 : row number
11365 \end_layout
11366
11367 \begin_layout Itemize
11368 \noindent
11369 \begin_inset Flex Code
11370 status collapsed
11371
11372 \begin_layout Plain Layout
11373 $$t
11374 \end_layout
11375
11376 \end_inset
11377
11378 : name of the (temporary) exported .tex file (without path)
11379 \end_layout
11380
11381 \begin_layout Itemize
11382 \noindent
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 $$f
11388 \end_layout
11389
11390 \end_inset
11391
11392 : name of the (temporary) exported .tex file (including path)
11393 \end_layout
11394
11395 \begin_layout Itemize
11396 \noindent
11397 \begin_inset Flex Code
11398 status collapsed
11399
11400 \begin_layout Plain Layout
11401 $$o
11402 \end_layout
11403
11404 \end_inset
11405
11406 : name of the exported output file (either dvi or pdf, depending on which
11407  one exists in the temporary directory)
11408 \end_layout
11409
11410 \begin_layout Standard
11411 Note that only some of the viewers provide full and usable forward search
11412  functionality out of the box, among them yap, xdvi, okular
11413 \begin_inset Foot
11414 status collapsed
11415
11416 \begin_layout Plain Layout
11417 You might want to set 
11418 \begin_inset Flex Code
11419 status collapsed
11420
11421 \begin_layout Plain Layout
11422 okular --unique
11423 \end_layout
11424
11425 \end_inset
11426
11427  in 
11428 \begin_inset Flex Noun
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 Tools\SpecialChar menuseparator
11433 Preferences\SpecialChar menuseparator
11434 File Handling\SpecialChar menuseparator
11435 File
11436 \begin_inset space ~
11437 \end_inset
11438
11439 Formats
11440 \end_layout
11441
11442 \end_inset
11443
11444
11445 \end_layout
11446
11447 \end_inset
11448
11449 , qpdfview, and SumatraPDF
11450 \begin_inset Foot
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 SumatraPDF can also use DDE commands through the external program CMCDDE
11455  — downloadable from 
11456 \begin_inset CommandInset href
11457 LatexCommand href
11458 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
11459 literal "false"
11460
11461 \end_inset
11462
11463
11464 \end_layout
11465
11466 \end_inset
11467
11468 .
11469  Others, such as evince
11470 \begin_inset Foot
11471 status collapsed
11472
11473 \begin_layout Plain Layout
11474 Forward search with evince can be achieved by means of third party helper
11475  scripts.
11476  Please refer to 
11477 \begin_inset CommandInset href
11478 LatexCommand href
11479 target "https://wiki.lyx.org/LyX/SyncTeX"
11480 literal "false"
11481
11482 \end_inset
11483
11484  for details.
11485 \end_layout
11486
11487 \end_inset
11488
11489 , require some extra tools in order to use forward search.
11490  While many of the widespread PDF viewers (most notably Adobe Reader) do
11491  not support forward search at all, some other viewers – e.
11492 \begin_inset space \thinspace{}
11493 \end_inset
11494
11495 g.
11496  xpdf – allow at least to reload the document and jump to a specific page
11497  of the file, so you can at least navigate 
11498 \begin_inset Quotes eld
11499 \end_inset
11500
11501 near
11502 \begin_inset Quotes erd
11503 \end_inset
11504
11505 .
11506  This latter functionality is provided by an external call of synctex (see
11507  the predefined example configurations).
11508  
11509 \end_layout
11510
11511 \begin_layout Standard
11512 Forward search works both with DVI and PDF output.
11513  \SpecialChar LyX
11514  simply checks which preview format you have used before (i.
11515 \begin_inset space \thinspace{}
11516 \end_inset
11517
11518 e., which format is already there in the temporary directory) and chooses
11519  the appropriate configuration for the respective format.
11520 \end_layout
11521
11522 \begin_layout Chapter
11523 Special Document Classes
11524 \end_layout
11525
11526 \begin_layout Section
11527
11528 \change_deleted 564990737 1669742044
11529 A&A Paper
11530 \end_layout
11531
11532 \begin_layout Standard
11533
11534 \change_deleted 564990737 1669742044
11535 by 
11536 \noun on
11537 Peter Sütterlin
11538 \end_layout
11539
11540 \begin_layout Subsection
11541
11542 \change_deleted 564990737 1669742044
11543 Introduction
11544 \end_layout
11545
11546 \begin_layout Standard
11547
11548 \change_deleted 564990737 1669742044
11549 This section describes how \SpecialChar LyX
11550  can be used to write articles for submission
11551  to the scientific journal 
11552 \emph on
11553 Astronomy and Astrophysics
11554 \emph default
11555  (
11556 \begin_inset Flex URL
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560
11561 https://www.aanda.org/
11562 \end_layout
11563
11564 \end_inset
11565
11566 ) using Version 5.01 of the document class 
11567 \family typewriter
11568 aa.cls
11569 \family default
11570 .
11571  This package can be downloaded from the ftp site
11572 \end_layout
11573
11574 \begin_layout Standard
11575
11576 \change_deleted 564990737 1669742044
11577 \begin_inset VSpace medskip
11578 \end_inset
11579
11580
11581 \end_layout
11582
11583 \begin_layout Standard
11584 \align center
11585
11586 \change_deleted 564990737 1669742044
11587 \begin_inset Flex URL
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591
11592 ftp://ftp.edpsciences.org/pub/aa/readme.html
11593 \end_layout
11594
11595 \end_inset
11596
11597
11598 \end_layout
11599
11600 \begin_layout Standard
11601
11602 \change_deleted 564990737 1669742044
11603 \begin_inset VSpace medskip
11604 \end_inset
11605
11606
11607 \end_layout
11608
11609 \begin_layout Standard
11610
11611 \change_deleted 564990737 1669742044
11612 A manual comes together with that package, and this text is not meant to
11613  replace the original manual but is merely a short guide in how to realize
11614  the correct form of your paper.
11615  
11616 \end_layout
11617
11618 \begin_layout Standard
11619
11620 \change_deleted 564990737 1669742044
11621 Please note that the publisher of the journal was changed from Springer
11622  to EDP Sciences starting January 1, 2001.
11623  That change involved also some slight changes to the style files, namely
11624  the removal of the thesaurus command.
11625  The \SpecialChar LyX
11626  class aa supports the newest version of these style files, V 5.01.
11627  If you have an older version installed, please upgrade.
11628  For compatibility, the old (version 4) layout has been kept as 
11629 \family sans
11630 article (A&A V4)
11631 \family default
11632 .
11633  Please refer to the comments in 
11634 \family typewriter
11635 \SpecialChar LyX
11636 Dir/layouts/aapaper.layout
11637 \family default
11638 .
11639 \end_layout
11640
11641 \begin_layout Subsection
11642
11643 \change_deleted 564990737 1669742044
11644 Getting started
11645 \end_layout
11646
11647 \begin_layout Standard
11648
11649 \change_deleted 564990737 1669742044
11650 It is recommended you start from the example template distributed with \SpecialChar LyX
11651 .
11652  If you are not using a template, note the following settings:
11653 \end_layout
11654
11655 \begin_layout Itemize
11656
11657 \change_deleted 564990737 1669742044
11658 Select 
11659 \family sans
11660 article (A&A)
11661 \family default
11662  in the 
11663 \family sans
11664 Document\SpecialChar menuseparator
11665 Settings
11666 \family default
11667  dialog (OK, that one was obvious).
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \change_deleted 564990737 1669742044
11673 Don't change the option 
11674 \family sans
11675 Page
11676 \begin_inset space ~
11677 \end_inset
11678
11679 style
11680 \family default
11681 : Leave it set to 
11682 \family sans
11683 default
11684 \family default
11685 .
11686  The whole layout is done by the macros, you shouldn't change anything.
11687 \end_layout
11688
11689 \begin_layout Subsection
11690
11691 \change_deleted 564990737 1669742044
11692 The header block
11693 \end_layout
11694
11695 \begin_layout Standard
11696
11697 \change_deleted 564990737 1669742044
11698 First thing to enter is the header information.
11699  It consists of seven entries, of which some are optional.
11700  They are
11701 \end_layout
11702
11703 \begin_layout Itemize
11704
11705 \change_deleted 564990737 1669742044
11706
11707 \family sans
11708 Title
11709 \family default
11710 : [required] 
11711 \end_layout
11712
11713 \begin_layout Itemize
11714
11715 \change_deleted 564990737 1669742044
11716
11717 \family sans
11718 Subtitle
11719 \family default
11720 : [optional] 
11721 \end_layout
11722
11723 \begin_layout Itemize
11724
11725 \change_deleted 564990737 1669742044
11726
11727 \family sans
11728 Author
11729 \family default
11730 : [required]
11731 \end_layout
11732
11733 \begin_layout Itemize
11734
11735 \change_deleted 564990737 1669742044
11736
11737 \family sans
11738 Address
11739 \family default
11740 : [required]
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \change_deleted 564990737 1669742044
11746
11747 \family sans
11748 Offprints
11749 \family default
11750 : [optional] if more than one author: whom to contact for offprint requests.
11751 \end_layout
11752
11753 \begin_layout Itemize
11754
11755 \change_deleted 564990737 1669742044
11756
11757 \family sans
11758 Mail
11759 \family default
11760 : [optional] mail address for contacts.
11761 \end_layout
11762
11763 \begin_layout Itemize
11764
11765 \change_deleted 564990737 1669742044
11766
11767 \family sans
11768 Date
11769 \family default
11770 : [required].
11771  Suggested format is 
11772 \family typewriter
11773 Received: <date>; Accepted <date> 
11774 \end_layout
11775
11776 \begin_layout Standard
11777
11778 \change_deleted 564990737 1669742044
11779 There is no need to issue the 
11780 \family typewriter
11781
11782 \backslash
11783 maketitle
11784 \family default
11785  command, this is done automatically by \SpecialChar LyX
11786  when the header is finished.
11787  Although the order of the single header entries doesn't matter it is advised
11788  to keep the above sequence, just to get the best optics and meets the layout
11789  of the real document.
11790 \end_layout
11791
11792 \begin_layout Standard
11793
11794 \change_deleted 564990737 1669742044
11795 If you want to place footnotes in the header block, e.
11796 \begin_inset space \thinspace{}
11797 \end_inset
11798
11799 g.
11800 \begin_inset space \space{}
11801 \end_inset
11802
11803 to state your present address, just use the standard footnote via the menu
11804  
11805 \family sans
11806 Insert\SpecialChar menuseparator
11807 Footnote.
11808
11809 \family default
11810  \SpecialChar LyX
11811  will automagically use the term 
11812 \family typewriter
11813
11814 \backslash
11815 thanks{}
11816 \family default
11817  in that case.
11818 \end_layout
11819
11820 \begin_layout Standard
11821
11822 \change_deleted 564990737 1669742044
11823 Under 
11824 \family sans
11825 Edit\SpecialChar menuseparator
11826 Text Style
11827 \family default
11828 , you'll find two insets which are relevant for the titling:
11829 \end_layout
11830
11831 \begin_layout Itemize
11832
11833 \change_deleted 564990737 1669742044
11834
11835 \family sans
11836 Institute
11837 \family typewriter
11838  
11839 \family default
11840 to mark corresponding author\SpecialChar breakableslash
11841 institute pairs.
11842  The institutes are numbered sequentially as they appear in the 
11843 \family sans
11844 Address
11845 \family default
11846  field, so you have to put a marker to each author.
11847 \end_layout
11848
11849 \begin_layout Itemize
11850
11851 \change_deleted 564990737 1669742044
11852
11853 \family sans
11854 Email
11855 \family default
11856  to supply an email address for fast contact.
11857 \end_layout
11858
11859 \begin_layout Standard
11860
11861 \change_deleted 564990737 1669742044
11862 In addition to these topics, the macros use one additional \SpecialChar LaTeX
11863  command that
11864  has no counterpart in \SpecialChar LyX
11865 :
11866 \end_layout
11867
11868 \begin_layout Itemize
11869
11870 \change_deleted 564990737 1669742044
11871
11872 \family typewriter
11873
11874 \backslash
11875 and
11876 \family default
11877  to separate different names for more than one author and institute, respectivel
11878 y.
11879 \end_layout
11880
11881 \begin_layout Standard
11882
11883 \change_deleted 564990737 1669742044
11884 The appropriate command has to be entered in \SpecialChar LyX
11885  and marked as \SpecialChar LaTeX
11886  code.
11887  See the examples.
11888  
11889 \end_layout
11890
11891 \begin_layout Subsection
11892
11893 \change_deleted 564990737 1669742044
11894 The abstract
11895 \end_layout
11896
11897 \begin_layout Standard
11898
11899 \change_deleted 564990737 1669742044
11900 The abstract should immediately follow the header block.
11901  With version 5 the abstract environment was changed to a command, and there
11902  is now a restriction to only one paragraph.
11903  In addition, it should contain an entry with the keywords.
11904  This is done via the paragraph style 
11905 \family sans
11906 Keywords
11907 \family default
11908 .
11909  Refer to the example paper.
11910 \end_layout
11911
11912 \begin_layout Subsection
11913
11914 \change_deleted 564990737 1669742044
11915 Supported environments
11916 \end_layout
11917
11918 \begin_layout Standard
11919
11920 \change_deleted 564990737 1669742044
11921 The A&A paper layout supports the following environments for structuring
11922  your text:
11923 \end_layout
11924
11925 \begin_layout Itemize
11926
11927 \change_deleted 564990737 1669742044
11928
11929 \family sans
11930 Standard
11931 \end_layout
11932
11933 \begin_layout Itemize
11934
11935 \change_deleted 564990737 1669742044
11936
11937 \family sans
11938 Section
11939 \end_layout
11940
11941 \begin_layout Itemize
11942
11943 \change_deleted 564990737 1669742044
11944
11945 \family sans
11946 Subsection
11947 \end_layout
11948
11949 \begin_layout Itemize
11950
11951 \change_deleted 564990737 1669742044
11952
11953 \family sans
11954 Subsubsection
11955 \end_layout
11956
11957 \begin_layout Itemize
11958
11959 \change_deleted 564990737 1669742044
11960
11961 \family sans
11962 Itemize
11963 \end_layout
11964
11965 \begin_layout Itemize
11966
11967 \change_deleted 564990737 1669742044
11968
11969 \family sans
11970 Enumerate
11971 \end_layout
11972
11973 \begin_layout Itemize
11974
11975 \change_deleted 564990737 1669742044
11976
11977 \family sans
11978 Description
11979 \end_layout
11980
11981 \begin_layout Itemize
11982
11983 \change_deleted 564990737 1669742044
11984
11985 \family sans
11986 Caption
11987 \end_layout
11988
11989 \begin_layout Itemize
11990
11991 \change_deleted 564990737 1669742044
11992
11993 \family sans
11994 Abstract
11995 \end_layout
11996
11997 \begin_layout Itemize
11998
11999 \change_deleted 564990737 1669742044
12000
12001 \family sans
12002 Acknowledgment
12003 \end_layout
12004
12005 \begin_layout Itemize
12006
12007 \change_deleted 564990737 1669742044
12008
12009 \family sans
12010 Bibliography
12011 \end_layout
12012
12013 \begin_layout Itemize
12014
12015 \change_deleted 564990737 1669742044
12016
12017 \family sans
12018 \SpecialChar LaTeX
12019
12020 \end_layout
12021
12022 \begin_layout Subsection
12023
12024 \change_deleted 564990737 1669742044
12025 Commands not supported by \SpecialChar LyX
12026
12027 \end_layout
12028
12029 \begin_layout Standard
12030
12031 \change_deleted 564990737 1669742044
12032 Some commands are not yet supported by the 
12033 \family sans
12034 paper (A&A)
12035 \family default
12036  layout for \SpecialChar LyX
12037 .
12038  Some have already been mentioned.
12039  For the sake of completeness, they are listed all together here:
12040 \end_layout
12041
12042 \begin_layout Itemize
12043
12044 \change_deleted 564990737 1669742044
12045
12046 \family typewriter
12047
12048 \backslash
12049 and
12050 \end_layout
12051
12052 \begin_layout Itemize
12053
12054 \change_deleted 564990737 1669742044
12055
12056 \family typewriter
12057
12058 \backslash
12059 authorrunning
12060 \end_layout
12061
12062 \begin_layout Itemize
12063
12064 \change_deleted 564990737 1669742044
12065
12066 \family typewriter
12067
12068 \backslash
12069 object{}
12070 \end_layout
12071
12072 \begin_layout Itemize
12073
12074 \change_deleted 564990737 1669742044
12075
12076 \family typewriter
12077
12078 \backslash
12079 titlerunning{}
12080 \end_layout
12081
12082 \begin_layout Standard
12083
12084 \change_deleted 564990737 1669742044
12085 If you want to use any of these commands, you have to enter them yourself.
12086  
12087 \series bold
12088 Do not forget to mark them as \SpecialChar LaTeX
12089  code!
12090 \end_layout
12091
12092 \begin_layout Subsection
12093
12094 \change_deleted 564990737 1669742044
12095 Figure and Table Floats
12096 \end_layout
12097
12098 \begin_layout Standard
12099
12100 \change_deleted 564990737 1669742044
12101 \SpecialChar LyX
12102  provides support for the necessary float environments 
12103 \family sans
12104 figure, figure*, table
12105 \family default
12106  and 
12107 \family sans
12108 table*
12109 \family default
12110 , therefore we won't tell much about it here.
12111  Refer to the 
12112 \emph on
12113 User's
12114 \begin_inset space ~
12115 \end_inset
12116
12117 Guide
12118 \emph default
12119 .
12120  Just remember that tables should be left-aligned.
12121  For that, select the table and change the alignment in 
12122 \family sans
12123 Edit\SpecialChar menuseparator
12124 Paragraph
12125 \begin_inset space ~
12126 \end_inset
12127
12128 Settings.
12129 \end_layout
12130
12131 \begin_layout Standard
12132
12133 \change_deleted 564990737 1669742044
12134 There is only one special thing: the figures with caption besides the figure.
12135  To create such a figure, you have to do the following:
12136 \end_layout
12137
12138 \begin_layout Enumerate
12139
12140 \change_deleted 564990737 1669742044
12141 Create a wide figure float: 
12142 \family sans
12143 Insert\SpecialChar menuseparator
12144 Float\SpecialChar menuseparator
12145 Figure
12146 \family default
12147 , then right click in the figure and select 
12148 \family sans
12149 Span
12150 \begin_inset space ~
12151 \end_inset
12152
12153 columns
12154 \family default
12155 .
12156 \end_layout
12157
12158 \begin_layout Enumerate
12159
12160 \change_deleted 564990737 1669742044
12161 Enter your caption text.
12162 \end_layout
12163
12164 \begin_layout Enumerate
12165
12166 \change_deleted 564990737 1669742044
12167 Press 
12168 \family sans
12169 Return
12170 \family default
12171  to move the cursor above the caption.
12172 \end_layout
12173
12174 \begin_layout Enumerate
12175
12176 \change_deleted 564990737 1669742044
12177 Insert your figure
12178 \end_layout
12179
12180 \begin_layout Enumerate
12181
12182 \change_deleted 564990737 1669742044
12183 Position the cursor behind the figure and insert a horizontal fill: 
12184 \family sans
12185 Insert\SpecialChar menuseparator
12186 Special
12187 \begin_inset space ~
12188 \end_inset
12189
12190 Character\SpecialChar menuseparator
12191 Horizontal
12192 \begin_inset space ~
12193 \end_inset
12194
12195 Fill
12196 \family default
12197 .
12198 \end_layout
12199
12200 \begin_layout Enumerate
12201
12202 \change_deleted 564990737 1669742044
12203 Switch to \SpecialChar LaTeX
12204  mode: 
12205 \family sans
12206 M-c
12207 \begin_inset space ~
12208 \end_inset
12209
12210 t
12211 \family default
12212 .
12213 \end_layout
12214
12215 \begin_layout Enumerate
12216
12217 \change_deleted 564990737 1669742044
12218 Enter 
12219 \family typewriter
12220
12221 \backslash
12222 parbox[b]{55mm}{
12223 \family default
12224 .
12225  
12226 \series bold
12227 Do not close the brace!
12228 \end_layout
12229
12230 \begin_layout Enumerate
12231
12232 \change_deleted 564990737 1669742044
12233 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
12234  mode and insert
12235  the closing brace: 
12236 \family sans
12237 M-c
12238 \begin_inset space ~
12239 \end_inset
12240
12241 t
12242 \family default
12243  
12244 \family typewriter
12245 }
12246 \family default
12247 .
12248 \end_layout
12249
12250 \begin_layout Standard
12251
12252 \change_deleted 564990737 1669742044
12253 Also, refer to the figures in the example paper.
12254 \end_layout
12255
12256 \begin_layout Subsection
12257
12258 \change_deleted 564990737 1669742044
12259 Referee layout
12260 \end_layout
12261
12262 \begin_layout Standard
12263
12264 \change_deleted 564990737 1669742044
12265 For submission, the paper has to be formated in a special double-spacing
12266  layout.
12267  For this purpose, you have to give the option 
12268 \family typewriter
12269 referee
12270 \family default
12271  to the document class.
12272  This must be done using the custom class options field in the 
12273 \family sans
12274 Document\SpecialChar menuseparator
12275 Settings
12276 \family default
12277  dialog.
12278  Just enter the string 
12279 \family typewriter
12280 referee
12281 \family default
12282  there.
12283 \end_layout
12284
12285 \begin_layout Subsection
12286
12287 \change_deleted 564990737 1669742044
12288 The example paper
12289 \end_layout
12290
12291 \begin_layout Standard
12292
12293 \change_deleted 564990737 1669742044
12294 The 
12295 \family sans
12296 Examples
12297 \family default
12298  directory contains an example paper written with \SpecialChar LyX
12299 .
12300  It is the example paper from the original macro package, translated to
12301  \SpecialChar LyX
12302 .
12303  Use it for inspiration, and compare the original \SpecialChar LaTeX
12304  code with \SpecialChar LyX
12305  way of writing.
12306 \end_layout
12307
12308 \begin_layout Section
12309 AAS\SpecialChar TeX
12310
12311 \end_layout
12312
12313 \begin_layout Standard
12314 by 
12315 \noun on
12316 Mike Ressler
12317 \end_layout
12318
12319 \begin_layout Subsection
12320 Introduction
12321 \end_layout
12322
12323 \begin_layout Standard
12324 AAS\SpecialChar TeX
12325  is a set of macros produced by the American Astronomical Society to
12326  facilitate electronic manuscript submission to the three journals they
12327  publish: the Astrophysical Journal (including the Letters and Supplement),
12328  the Astronomical Journal, and the Publications of the Astronomical Society
12329  of the Pacific.
12330  \SpecialChar LyX
12331  has proven to be an excellent tool for generating these documents, especially
12332  given its equation, citation, and figure handling capabilities.
12333  \SpecialChar LyX
12334  requires version 5.0 (or higher) of these macros; preferably 6.0, which
12335  is the version described here, or higher.
12336  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
12337 2.09 and are fundamentally
12338  incompatible with \SpecialChar LyX
12339 .
12340  The AAS\SpecialChar TeX
12341  package may be downloaded from the AAS\SpecialChar TeX
12342  Web site
12343 \end_layout
12344
12345 \begin_layout Standard
12346 \begin_inset VSpace medskip
12347 \end_inset
12348
12349
12350 \end_layout
12351
12352 \begin_layout Standard
12353 \align center
12354 \begin_inset Flex URL
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358
12359 https://aas.org/aastex/aastex-downloads
12360 \end_layout
12361
12362 \end_inset
12363
12364
12365 \end_layout
12366
12367 \begin_layout Standard
12368 \begin_inset VSpace medskip
12369 \end_inset
12370
12371
12372 \end_layout
12373
12374 \begin_layout Standard
12375 A complete user guide is contained in that package and you should familiarize
12376  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
12377 .
12378  \SpecialChar LyX
12379  will not reduce the need to figure out all the AAS\SpecialChar TeX
12380  commands, it will only
12381  reduce the drudgery of typing everything in.
12382  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
12383  document conforms
12384  completely to the requirements of the journal to which you are submitting
12385  your paper.
12386 \end_layout
12387
12388 \begin_layout Subsection
12389 Starting a New Paper
12390 \end_layout
12391
12392 \begin_layout Standard
12393 I strongly suggest that you start with the AAS\SpecialChar TeX
12394  template file.
12395  Click on 
12396 \family sans
12397 File\SpecialChar menuseparator
12398 New from
12399 \family default
12400  
12401 \family sans
12402 Template
12403 \family default
12404 , enter the new file name, then choose the 
12405 \family typewriter
12406 aastex6.lyx
12407 \family default
12408  template.
12409  This will show the most common fields found in a manuscript.
12410  Simply overwrite the existing text (including the brackets, 
12411 \family typewriter
12412 <>
12413 \family default
12414 ) with the correct information.
12415  Many of the AAS\SpecialChar TeX
12416  commands and environments can be implemented directly in
12417  \SpecialChar LyX
12418 , but some cannot.
12419  For commands such as these, the \SpecialChar LaTeX
12420  code must be entered directly and marked
12421  as such.
12422  Such commands are referred to as \SpecialChar TeX
12423  code, or Evil Red Text.
12424  I tried to minimize the amount of \SpecialChar TeX
12425  code needed in an AAS\SpecialChar TeX
12426  document.
12427 \end_layout
12428
12429 \begin_layout Subsection
12430 Finishing Your Paper
12431 \end_layout
12432
12433 \begin_layout Standard
12434 When the paper is finished to your satisfaction and previews/prints correctly,
12435  there are a few 
12436 \begin_inset Quotes eld
12437 \end_inset
12438
12439 postprocessing
12440 \begin_inset Quotes erd
12441 \end_inset
12442
12443  actions which need to be done before you submit it to the journals.
12444  
12445 \end_layout
12446
12447 \begin_layout Enumerate
12448 Export your paper as a \SpecialChar LaTeX
12449  file (
12450 \family sans
12451 File\SpecialChar menuseparator
12452 Export\SpecialChar menuseparator
12453 \SpecialChar LaTeX
12454
12455 \family default
12456 ).
12457  
12458 \end_layout
12459
12460 \begin_layout Enumerate
12461 Edit the resulting 
12462 \family typewriter
12463 .tex
12464 \family default
12465  file with your favorite text editor
12466 \end_layout
12467
12468 \begin_deeper
12469 \begin_layout Enumerate
12470 remove the comment lines before the 
12471 \family typewriter
12472
12473 \backslash
12474 documentclass
12475 \family default
12476  command
12477 \end_layout
12478
12479 \begin_layout Enumerate
12480 remove the 
12481 \family typewriter
12482
12483 \backslash
12484 usepackage...{fontenc}
12485 \family default
12486  line if it appears (usually just after 
12487 \family typewriter
12488
12489 \backslash
12490 documentclass
12491 \family default
12492 }; also remove the 
12493 \family typewriter
12494
12495 \backslash
12496 secnumdepth
12497 \family default
12498  line if it appears.
12499 \end_layout
12500
12501 \begin_layout Enumerate
12502 remove everything between (and including) the 
12503 \family typewriter
12504
12505 \backslash
12506 makeatletter
12507 \family default
12508  and 
12509 \family typewriter
12510
12511 \backslash
12512 makeatother
12513 \family default
12514  commands, except for any commands you specifically put into the \SpecialChar LaTeX
12515  preamble
12516  (which should appear immediately after the 
12517 \begin_inset Quotes eld
12518 \end_inset
12519
12520 User specified \SpecialChar LaTeX
12521  commands
12522 \begin_inset Quotes erd
12523 \end_inset
12524
12525  comment in the 
12526 \family typewriter
12527 .tex
12528 \family default
12529  file).
12530 \end_layout
12531
12532 \end_deeper
12533 \begin_layout Enumerate
12534 Run the resulting file through \SpecialChar LaTeX
12535  to make sure it still processes correctly.
12536 \end_layout
12537
12538 \begin_layout Enumerate
12539 Reread the journal requirements to make sure your filenames and formats
12540  are correct.
12541 \end_layout
12542
12543 \begin_layout Enumerate
12544 Submit it.
12545 \end_layout
12546
12547 \begin_layout Subsection
12548 Comments On Specific Commands
12549 \end_layout
12550
12551 \begin_layout Standard
12552 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
12553  commands: the
12554  AAS\SpecialChar TeX
12555  User Guide (
12556 \family typewriter
12557 aasguide.tex
12558 \family default
12559 ) gives a good description of each.
12560  Thus it's probably easiest for me to go down the list as found in the guide
12561  and offer comments where necessary.
12562  So let's begin \SpecialChar ldots
12563
12564 \end_layout
12565
12566 \begin_layout Subsubsection
12567 Things that work as expected
12568 \end_layout
12569
12570 \begin_layout Standard
12571 Because they work as you might expect, I simply list them and the section
12572  they are found in: 
12573 \family typewriter
12574
12575 \backslash
12576 documentclass
12577 \family default
12578  (2.1.1), 
12579 \family typewriter
12580
12581 \backslash
12582 begin{document}
12583 \family default
12584  (2.2), 
12585 \family typewriter
12586
12587 \backslash
12588 title
12589 \family default
12590  (2.3), 
12591 \family typewriter
12592
12593 \backslash
12594 author
12595 \family default
12596  (2.3), 
12597 \family typewriter
12598
12599 \backslash
12600 affil
12601 \family default
12602  (2.3), 
12603 \family typewriter
12604
12605 \backslash
12606 abstract
12607 \family default
12608  (2.4), 
12609 \family typewriter
12610
12611 \backslash
12612 keywords
12613 \family default
12614  (2.5), 
12615 \family typewriter
12616
12617 \backslash
12618 section
12619 \family default
12620  (2.7), 
12621 \family typewriter
12622
12623 \backslash
12624 subsection
12625 \family default
12626  (2.7), 
12627 \family typewriter
12628
12629 \backslash
12630 subsubsection
12631 \family default
12632  (2.7), 
12633 \family typewriter
12634
12635 \backslash
12636 paragraph
12637 \family default
12638  (2.7), 
12639 \family typewriter
12640
12641 \backslash
12642 facility
12643 \family default
12644  (2.10), 
12645 \family typewriter
12646
12647 \backslash
12648 begin{displaymath}
12649 \family default
12650  (2.12), 
12651 \family typewriter
12652
12653 \backslash
12654 begin{equation}
12655 \family default
12656  (2.12), 
12657 \family typewriter
12658
12659 \backslash
12660 begin{eqnarray}
12661 \family default
12662  (2.12), 
12663 \family typewriter
12664
12665 \backslash
12666 begin{mathletters}
12667 \family default
12668  (2.12), 
12669 \family typewriter
12670
12671 \backslash
12672 begin{thebibliography}
12673 \family default
12674  (2.13.1), 
12675 \family typewriter
12676
12677 \backslash
12678 bibitem
12679 \family default
12680  (2.13.2), all the cite commands and their variations (2.13.2), the generic
12681  graphicx figure commands (2.14.1), 
12682 \family typewriter
12683
12684 \backslash
12685 begin{table}
12686 \family default
12687  (2.15.4), 
12688 \family typewriter
12689
12690 \backslash
12691 begin{tabular}
12692 \family default
12693  (2.15.4), 
12694 \family typewriter
12695
12696 \backslash
12697 caption
12698 \family default
12699  (2.15.4), 
12700 \family typewriter
12701
12702 \backslash
12703 label
12704 \family default
12705  (2.15.4, amongst other places), 
12706 \family typewriter
12707
12708 \backslash
12709 tablerefs
12710 \family default
12711  (2.15.5), 
12712 \family typewriter
12713
12714 \backslash
12715 tablecomments
12716 \family default
12717  (2.15.5), 
12718 \family typewriter
12719
12720 \backslash
12721 url
12722 \family default
12723  (2.17.4), 
12724 \family typewriter
12725
12726 \backslash
12727 end{document}
12728 \family default
12729  (2.18).
12730 \end_layout
12731
12732 \begin_layout Standard
12733 The following style options also work correctly: 
12734 \family typewriter
12735 longabstract
12736 \family default
12737  (2.4), 
12738 \family typewriter
12739 preprint
12740 \family default
12741  (3.2.1), 
12742 \family typewriter
12743 preprint2
12744 \family default
12745  (3.2.2), 
12746 \family typewriter
12747 eqsecnum
12748 \family default
12749  (3.3), 
12750 \family typewriter
12751 flushrt
12752 \family default
12753  (3.4).
12754  Simply put them in the 
12755 \family sans
12756 Options
12757 \family default
12758  box in 
12759 \family sans
12760 Layout\SpecialChar menuseparator
12761 Document
12762 \family default
12763 .
12764 \end_layout
12765
12766 \begin_layout Subsubsection
12767 Things that work, but require more comment
12768 \end_layout
12769
12770 \begin_layout Standard
12771 The following items work, but require a little more discussion:
12772 \end_layout
12773
12774 \begin_layout Itemize
12775 These items are reserved for use by the journal editors, but you can put
12776  them into the \SpecialChar LaTeX
12777  preamble if you feel compelled to do so: 
12778 \family typewriter
12779
12780 \backslash
12781 received
12782 \family default
12783
12784 \family typewriter
12785
12786 \backslash
12787 revised
12788 \family default
12789
12790 \family typewriter
12791
12792 \backslash
12793 accepted
12794 \family default
12795
12796 \family typewriter
12797
12798 \backslash
12799 ccc
12800 \family default
12801
12802 \family typewriter
12803
12804 \backslash
12805 cpright
12806 \family default
12807  (all from 2.1.3)
12808 \end_layout
12809
12810 \begin_layout Itemize
12811 These items may be placed in the \SpecialChar LaTeX
12812  preamble, and are included as blanks in
12813  the template file: 
12814 \family typewriter
12815
12816 \backslash
12817 slugcomment
12818 \family default
12819  (2.1.4), 
12820 \family typewriter
12821
12822 \backslash
12823 shorttitle
12824 \family default
12825  (2.1.5), 
12826 \family typewriter
12827
12828 \backslash
12829 shortauthors
12830 \family default
12831  (2.1.5)
12832 \end_layout
12833
12834 \begin_layout Itemize
12835
12836 \family typewriter
12837
12838 \backslash
12839 email
12840 \family default
12841  (2.3) – can only be used 
12842 \begin_inset Quotes eld
12843 \end_inset
12844
12845 standalone
12846 \begin_inset Quotes erd
12847 \end_inset
12848
12849 , not in the middle of a paragraph.
12850  Use \SpecialChar TeX
12851  code if you need to embed it.
12852 \end_layout
12853
12854 \begin_layout Itemize
12855
12856 \family typewriter
12857
12858 \backslash
12859 and
12860 \family default
12861  (2.3) – will have extra {} after it.
12862  This should not cause an error.
12863 \end_layout
12864
12865 \begin_layout Itemize
12866
12867 \family typewriter
12868
12869 \backslash
12870 notetoeditor
12871 \family default
12872  (2.6) – can only be used 
12873 \begin_inset Quotes eld
12874 \end_inset
12875
12876 standalone
12877 \begin_inset Quotes erd
12878 \end_inset
12879
12880 , not in the middle of a paragraph.
12881  Use \SpecialChar TeX
12882  code if you need to embed it.
12883 \end_layout
12884
12885 \begin_layout Itemize
12886
12887 \family typewriter
12888
12889 \backslash
12890 placetable
12891 \family default
12892  (2.8) – can't insert a cross-reference tag, you must type the tag name by
12893  hand
12894 \end_layout
12895
12896 \begin_layout Itemize
12897
12898 \family typewriter
12899
12900 \backslash
12901 placefigure
12902 \family default
12903  (2.8) – same as for 
12904 \family typewriter
12905
12906 \backslash
12907 placetable
12908 \end_layout
12909
12910 \begin_layout Itemize
12911
12912 \family typewriter
12913
12914 \backslash
12915 acknowledgements
12916 \family default
12917  (2.9) – will have extra {} after it.
12918  This should not cause an error.
12919 \end_layout
12920
12921 \begin_layout Itemize
12922
12923 \family typewriter
12924
12925 \backslash
12926 appendix
12927 \family default
12928  (2.11) – will have extra {} after it.
12929  This should not cause an error.
12930 \end_layout
12931
12932 \begin_layout Itemize
12933
12934 \family typewriter
12935
12936 \backslash
12937 figcaption
12938 \family default
12939  (2.14.2) – you can insert an optional filename argument by placing the cursor
12940  at the beginning of the text and selecting 
12941 \family sans
12942 Insert\SpecialChar menuseparator
12943 Short Title
12944 \family default
12945 .
12946  
12947 \begin_inset Quotes eld
12948 \end_inset
12949
12950 Short Title
12951 \begin_inset Quotes erd
12952 \end_inset
12953
12954  inserts an optional argument of the type needed by 
12955 \family typewriter
12956
12957 \backslash
12958 figcaption
12959 \family default
12960 .
12961  Hopefully it will be renamed someday.
12962 \end_layout
12963
12964 \begin_layout Itemize
12965
12966 \family typewriter
12967
12968 \backslash
12969 objectname
12970 \family default
12971  (2.17.1) – same as 
12972 \family typewriter
12973
12974 \backslash
12975 figcaption
12976 \family default
12977  for the catalog ID optional parameter
12978 \end_layout
12979
12980 \begin_layout Itemize
12981
12982 \family typewriter
12983
12984 \backslash
12985 dataset
12986 \family default
12987  (2.17.1) – same as 
12988 \family typewriter
12989
12990 \backslash
12991 figcaption
12992 \family default
12993  for the catalog ID optional parameter
12994 \end_layout
12995
12996 \begin_layout Subsubsection
12997 Things not implemented, use \SpecialChar TeX
12998  code
12999 \end_layout
13000
13001 \begin_layout Standard
13002
13003 \family typewriter
13004
13005 \backslash
13006 eqnum
13007 \family default
13008  (2.12), 
13009 \family typewriter
13010
13011 \backslash
13012 setcounter{equation}
13013 \family default
13014  (2.12), Journal name abbreviations (2.13.4), 
13015 \family typewriter
13016
13017 \backslash
13018 figurenum
13019 \family default
13020  (2.14.1), 
13021 \family typewriter
13022
13023 \backslash
13024 epsscale
13025 \family default
13026  (2.14.1), 
13027 \family typewriter
13028
13029 \backslash
13030 plotone
13031 \family default
13032  (2.14.1), 
13033 \family typewriter
13034
13035 \backslash
13036 plottwo
13037 \family default
13038  (2.14.1), 
13039 \family typewriter
13040
13041 \backslash
13042 tablenum
13043 \family default
13044  (2.15.4), 
13045 \family typewriter
13046
13047 \backslash
13048 tableline
13049 \family default
13050  (2.15.4, insert it as the first element in the lefthand cell after where
13051  you want it.
13052  Don't use any of \SpecialChar LyX
13053 's rules in the table), 
13054 \family typewriter
13055
13056 \backslash
13057 tablenotemark
13058 \family default
13059  (2.15.5), 
13060 \family typewriter
13061
13062 \backslash
13063 tablenotetext
13064 \family default
13065  (2.15.5), much of Misc (2.17, except 
13066 \family typewriter
13067
13068 \backslash
13069 objectname
13070 \family default
13071
13072 \family typewriter
13073
13074 \backslash
13075 dataset
13076 \family default
13077
13078 \family typewriter
13079
13080 \backslash
13081 url
13082 \family default
13083 , and 
13084 \family typewriter
13085
13086 \backslash
13087 email
13088 \family default
13089 ; see above), 
13090 \family typewriter
13091
13092 \backslash
13093 singlespace
13094 \family default
13095  (3.1), 
13096 \family typewriter
13097
13098 \backslash
13099 doublespace
13100 \family default
13101  (3.1), 
13102 \family typewriter
13103
13104 \backslash
13105 onecolumn
13106 \family default
13107  (3.2), 
13108 \family typewriter
13109
13110 \backslash
13111 twocolumn
13112 \family default
13113  (3.2)
13114 \end_layout
13115
13116 \begin_layout Subsubsection
13117 Things that cannot be implemented
13118 \end_layout
13119
13120 \begin_layout Standard
13121 \SpecialChar ldots
13122  at least in any meaningful sort of way, so I suggest ignoring them.
13123  They are the references environment (2.13.3), and the deluxetable environment
13124  (2.15).
13125  If you really, really need to use deluxetable, I suggest editing it in
13126  a separate file with a text editor, then using 
13127 \family sans
13128 Insert\SpecialChar menuseparator
13129 Child
13130 \begin_inset space ~
13131 \end_inset
13132
13133 Document
13134 \family default
13135  to include it in your \SpecialChar LyX
13136  document.
13137  See the 
13138 \family typewriter
13139 aas_sample.lyx
13140 \family default
13141  file to see an example of this.
13142 \end_layout
13143
13144 \begin_layout Subsection
13145 FAQs, Tips, Tricks, and Other Ruminations
13146 \end_layout
13147
13148 \begin_layout Subsubsection
13149 Getting \SpecialChar LyX
13150  and AAS\SpecialChar TeX
13151  to cooperate
13152 \end_layout
13153
13154 \begin_layout Standard
13155 It can be a bit tricky to get \SpecialChar LyX
13156  to recognize a new layout and document class.
13157  When all else fails, do this:
13158 \end_layout
13159
13160 \begin_layout Enumerate
13161 Make certain that \SpecialChar LaTeX
13162  can find AAS\SpecialChar TeX
13163 .
13164  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
13165  distribution into a
13166  directory completely unrelated to \SpecialChar LaTeX
13167  or AAS\SpecialChar TeX
13168  and run \SpecialChar LaTeX
13169  on 
13170 \family typewriter
13171 sample.tex
13172 \family default
13173 .
13174 \end_layout
13175
13176 \begin_layout Enumerate
13177 Make certain that 
13178 \family typewriter
13179 aastex.layout
13180 \family default
13181  appears in \SpecialChar LyX
13182 's 
13183 \family typewriter
13184 layouts
13185 \family default
13186  folder
13187 \end_layout
13188
13189 \begin_layout Enumerate
13190 Rerun 
13191 \family sans
13192 Tools\SpecialChar menuseparator
13193 Reconfigure
13194 \family default
13195  in \SpecialChar LyX
13196 , then restart \SpecialChar LyX
13197 .
13198 \end_layout
13199
13200 \begin_layout Enumerate
13201 Open a regular new file, not from a template.
13202  Does AAS\SpecialChar TeX
13203  appear in the class list in 
13204 \family sans
13205 Document\SpecialChar menuseparator
13206 Settings
13207 \family default
13208 ?
13209 \end_layout
13210
13211 \begin_layout Standard
13212 If you get a warning from an existing AAS\SpecialChar TeX
13213  document about not being able
13214  to find the AAS\SpecialChar TeX
13215  layout or a message about 
13216 \begin_inset Quotes eld
13217 \end_inset
13218
13219 You should not mix title layouts with normal ones
13220 \begin_inset Quotes erd
13221 \end_inset
13222
13223 , things haven't been installed correctly.
13224 \end_layout
13225
13226 \begin_layout Subsubsection
13227 \SpecialChar LaTeX
13228  error processing a table 
13229 \end_layout
13230
13231 \begin_layout Standard
13232 \SpecialChar LyX
13233 , by default, attempts to center the table caption/title.
13234  This seems to produce a bad interaction in AAS\SpecialChar TeX
13235  so you should click somewhere
13236  in the caption/title, then select 
13237 \family sans
13238 Edit\SpecialChar menuseparator
13239 Paragraph
13240 \begin_inset space ~
13241 \end_inset
13242
13243 Settings
13244 \family default
13245 , then set the 
13246 \family sans
13247 Alignment
13248 \family default
13249  to 
13250 \family sans
13251 Block
13252 \family default
13253 .
13254  This took care of it for me.
13255 \end_layout
13256
13257 \begin_layout Subsubsection
13258 References
13259 \end_layout
13260
13261 \begin_layout Standard
13262 A couple of things: 1) I have noticed some funny spacing in the reference
13263  entries in the text.
13264  When you enter the bibliography item data, make sure their is 
13265 \emph on
13266 no
13267 \emph default
13268  space between the last author and the parenthesis setting off the year;
13269  
13270 \emph on
13271 e.
13272 \begin_inset space \thinspace{}
13273 \end_inset
13274
13275 g.
13276 \begin_inset space \space{}
13277 \end_inset
13278
13279
13280 \emph default
13281 type 
13282 \family typewriter
13283 Ressler(1992)
13284 \family default
13285 , not 
13286 \family typewriter
13287 Ressler (1992)
13288 \family default
13289 .
13290  2) Entering the references at all is not obvious.
13291  The easiest thing is to start typing your first reference at the end of
13292  the document, then mark it as type 
13293 \family sans
13294 References
13295 \family default
13296 .
13297  That will put a small gray box in front of what you just typed.
13298  Click on the box to fill in the rest of the information.
13299  For new references, go to the end of an existing reference and press return.
13300  That will create a new line with its own box, etc.
13301 \end_layout
13302
13303 \begin_layout Subsubsection
13304 Including EPS files
13305 \end_layout
13306
13307 \begin_layout Standard
13308 Even though AAS\SpecialChar TeX
13309  provides its own figure commands (
13310 \family typewriter
13311
13312 \backslash
13313 plotone
13314 \family default
13315 , for example), I much prefer \SpecialChar LaTeX
13316 's standard figure commands (with the default
13317  graphicx).
13318  You can insert the 
13319 \family typewriter
13320
13321 \backslash
13322 plotone
13323 \family default
13324 , etc.
13325 \begin_inset space ~
13326 \end_inset
13327
13328 commands as \SpecialChar TeX
13329  code into a Figure Float box if you desire, but I never have
13330  much luck getting the layout right.
13331  With the standard graphics, \SpecialChar LyX
13332  will insert a 
13333 \family typewriter
13334
13335 \backslash
13336 usepackage{graphicx}
13337 \family default
13338  command into the \SpecialChar LaTeX
13339  preamble and handle the figures in the standard \SpecialChar LaTeX2e
13340  way,
13341  interspersing the figures in the text.
13342  I believe ApJ accepts figures exactly this way now; AJ might still use
13343  the 
13344 \begin_inset Quotes eld
13345 \end_inset
13346
13347 stack everything at the end
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351  technique.
13352 \end_layout
13353
13354 \begin_layout Subsubsection
13355 Things I could have done, but didn't
13356 \end_layout
13357
13358 \begin_layout Standard
13359 There are a few 
13360 \begin_inset Quotes eld
13361 \end_inset
13362
13363 pretty
13364 \begin_inset Quotes erd
13365 \end_inset
13366
13367  things I could have implemented, but chose not to.
13368  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
13369  window,
13370  even though it is double-spaced in the paper manuscript.
13371  Also, I chose not to make separate layouts for the preprint and preprint2
13372  styles.
13373  Since I assume you will spend most of your time in the plain manuscript
13374  mode anyway, I decided not to chew up more disk space with this.
13375  
13376 \end_layout
13377
13378 \begin_layout Subsection
13379 Final Caveat
13380 \end_layout
13381
13382 \begin_layout Standard
13383 Your mileage may vary.
13384  I've now had papers published by both ApJ and AJ that have had 98% of the
13385  effort done in \SpecialChar LyX
13386 ; the last 2% was the \SpecialChar LaTeX
13387  post-processing and a few cleanups.
13388  I have had no trouble with the submission process, and I'm sure the journals
13389  were never aware that there might be a difference.
13390  So, go forth and publish!
13391 \end_layout
13392
13393 \begin_layout Section
13394 Dinbrief
13395 \end_layout
13396
13397 \begin_layout Standard
13398 The document class 
13399 \family sans
13400 dinbrief
13401 \family default
13402  can be used to type letters according to German conventions.
13403  A template file is included in 
13404 \family typewriter
13405 .../lyx/share/templates
13406 \family default
13407  for you to use as a starting point.
13408 \end_layout
13409
13410 \begin_layout Section
13411 Elsevier Journals
13412 \end_layout
13413
13414 \begin_layout Standard
13415 See the \SpecialChar LyX
13416  template file 
13417 \family typewriter
13418 elsarticle.lyx
13419 \family default
13420 .
13421  It contains all infos you need.
13422 \end_layout
13423
13424 \begin_layout Section
13425 Foils [aka 
13426 \family sans
13427 Foil\SpecialChar TeX
13428
13429 \family default
13430 ]
13431 \begin_inset CommandInset label
13432 LatexCommand label
13433 name "sec:foiltex"
13434
13435 \end_inset
13436
13437
13438 \end_layout
13439
13440 \begin_layout Standard
13441 by 
13442 \noun on
13443 Allan Rae
13444 \end_layout
13445
13446 \begin_layout Subsection
13447 Introduction
13448 \end_layout
13449
13450 \begin_layout Standard
13451 This section describes how to use \SpecialChar LyX
13452  to make slides for overhead projectors.
13453  There are two document classes that can do this: the default slides class
13454  and the 
13455 \family sans
13456 Foil\SpecialChar TeX
13457
13458 \family default
13459  slides class.
13460  This section documents the latter.
13461 \end_layout
13462
13463 \begin_layout Standard
13464 I'm going to say this again, nice and clear, so that there's no misunderstanding
13465 :
13466 \end_layout
13467
13468 \begin_layout Standard
13469 \begin_inset VSpace bigskip
13470 \end_inset
13471
13472
13473 \end_layout
13474
13475 \begin_layout Standard
13476 \align center
13477
13478 \size large
13479 This section documents the class 
13480 \begin_inset Quotes eld
13481 \end_inset
13482
13483
13484 \family sans
13485 FoilTeX
13486 \family default
13487
13488 \begin_inset Quotes erd
13489 \end_inset
13490
13491  
13492 \emph on
13493 only.
13494 \end_layout
13495
13496 \begin_layout Standard
13497 \begin_inset VSpace bigskip
13498 \end_inset
13499
13500
13501 \end_layout
13502
13503 \begin_layout Standard
13504 If you're looking for the documentation for 
13505 \begin_inset Quotes eld
13506 \end_inset
13507
13508
13509 \family sans
13510 slides (default)
13511 \family default
13512
13513 \begin_inset Quotes erd
13514 \end_inset
13515
13516 , check out section
13517 \begin_inset space ~
13518 \end_inset
13519
13520
13521 \begin_inset CommandInset ref
13522 LatexCommand ref
13523 reference "sec:slitex"
13524
13525 \end_inset
13526
13527 .
13528  If your machine doesn't have the 
13529 \family sans
13530 foils
13531 \family default
13532  class 
13533 \family sans
13534 FoilTeX
13535 \family default
13536  installed, you'll probably have to use the default 
13537 \family sans
13538 slides
13539 \family default
13540  class, which isn't quite as good as 
13541 \family sans
13542 foils.
13543 \end_layout
13544
13545 \begin_layout Standard
13546 The 
13547 \family sans
13548 foils
13549 \family default
13550  class is designed for use with version
13551 \begin_inset space ~
13552 \end_inset
13553
13554 2.1 of the 
13555 \family sans
13556 foils.cls
13557 \family default
13558  \SpecialChar LaTeX
13559  class file which is now an integral part of \SpecialChar LaTeX2e
13560 .
13561 \end_layout
13562
13563 \begin_layout Subsection
13564 Getting Started
13565 \end_layout
13566
13567 \begin_layout Standard
13568 Obviously, to use this document class, you need to select 
13569 \family sans
13570 FoilTeX
13571 \family default
13572  from the 
13573 \family sans
13574 Class
13575 \family default
13576  entry in the 
13577 \family sans
13578 Document
13579 \begin_inset space ~
13580 \end_inset
13581
13582 Layout
13583 \family default
13584  dialog.
13585  There are some settings in the 
13586 \family sans
13587 Document
13588 \begin_inset space ~
13589 \end_inset
13590
13591 Layout
13592 \family default
13593  dialog that you should know about that are specific to this class:
13594 \end_layout
13595
13596 \begin_layout Itemize
13597 Don't change the options 
13598 \family sans
13599 Sides
13600 \family default
13601  and 
13602 \family sans
13603 Columns
13604 \family default
13605  on the 
13606 \family sans
13607 Document
13608 \begin_inset space ~
13609 \end_inset
13610
13611 Layout
13612 \family default
13613  dialog.
13614  They're ignored by the 
13615 \family sans
13616 foils
13617 \family default
13618  class.
13619 \end_layout
13620
13621 \begin_layout Itemize
13622 The default font size is 20
13623 \begin_inset space \thinspace{}
13624 \end_inset
13625
13626 pt with the other options being 17
13627 \begin_inset space \thinspace{}
13628 \end_inset
13629
13630 pt, 25
13631 \begin_inset space \thinspace{}
13632 \end_inset
13633
13634 pt and 30
13635 \begin_inset space \thinspace{}
13636 \end_inset
13637
13638 pt.
13639 \end_layout
13640
13641 \begin_layout Itemize
13642 The default font is 
13643 \family sans
13644 sans
13645 \family default
13646  
13647 \family sans
13648 serif
13649 \family default
13650  but all math equations are still typeset in the usual roman font.
13651 \end_layout
13652
13653 \begin_layout Itemize
13654
13655 \family sans
13656 Foil\SpecialChar TeX
13657
13658 \family default
13659  supports A4 and Letter paper sizes as well as a special size for working
13660  with 35
13661 \begin_inset space \thinspace{}
13662 \end_inset
13663
13664 mm slides.
13665  It doesn't support A5, B5, legal or executive paper sizes.
13666 \end_layout
13667
13668 \begin_layout Itemize
13669 Don't bother changing the 
13670 \family sans
13671 Float Placement
13672 \family default
13673  settings because they are ignored anyway.
13674  All floats appear where they are defined in the text.
13675 \end_layout
13676
13677 \begin_layout Itemize
13678 The 
13679 \family sans
13680 Pagestyle
13681 \family default
13682  setting behaves a bit differently for this class.
13683  
13684 \family sans
13685 Foil\SpecialChar TeX
13686
13687 \family default
13688  provides extensive footer and header capabilities including a user-defined
13689  logo.
13690  See section
13691 \begin_inset space ~
13692 \end_inset
13693
13694
13695 \begin_inset CommandInset ref
13696 LatexCommand ref
13697 reference "sec:foilfoot"
13698
13699 \end_inset
13700
13701  for more details.
13702  The title page is treated differently to all other pages in the document
13703  and is 
13704 \emph on
13705 always
13706 \emph default
13707  unnumbered and 
13708 \emph on
13709 always
13710 \emph default
13711  has the logo centered at the bottom of the page (if one is defined).
13712  The possible page style choices and what they do are as follows:
13713 \end_layout
13714
13715 \begin_deeper
13716 \begin_layout Labeling
13717 \labelwidthstring MMMMMMM
13718
13719 \family sans
13720 \series bold
13721 empty
13722 \family default
13723 \series default
13724  The final output contains no page numbers, or other headers or footers
13725  (except footnotes of course).
13726  
13727 \end_layout
13728
13729 \begin_layout Labeling
13730 \labelwidthstring MMMMMMM
13731
13732 \family sans
13733 \series bold
13734 plain
13735 \family default
13736 \series default
13737  The final output contains page numbers centered at the bottom of the page.
13738  No other headings or footers (other than footnotes).
13739 \end_layout
13740
13741 \begin_layout Labeling
13742 \labelwidthstring MMMMMMM
13743
13744 \series bold
13745 foilheadings
13746 \series default
13747  Page numbers in lower right corner.
13748  Additional headers and footers are also shown.
13749  This is also the default.
13750 \end_layout
13751
13752 \begin_layout Labeling
13753 \labelwidthstring MMMMMMM
13754
13755 \series bold
13756 fancy
13757 \series default
13758  Gives you access to the 
13759 \family sans
13760 fancyheadings
13761 \family default
13762  package although its use with 
13763 \family sans
13764 Foil\SpecialChar TeX
13765
13766 \family default
13767  is discouraged by the writer of the 
13768 \family sans
13769 Foil\SpecialChar TeX
13770
13771 \family default
13772  package because of some potential page layout clashes.
13773 \end_layout
13774
13775 \end_deeper
13776 \begin_layout Subsubsection
13777 Extra Options
13778 \end_layout
13779
13780 \begin_layout Standard
13781 The following options may be used in the extra class options in the 
13782 \family sans
13783 Document\SpecialChar menuseparator
13784 Settings
13785 \family default
13786  dialog.
13787 \end_layout
13788
13789 \begin_layout Labeling
13790 \labelwidthstring MMMMMMx
13791
13792 \series bold
13793 35mmSlide
13794 \series default
13795  This sets up the page layout for 7.33
13796 \begin_inset space \thinspace{}
13797 \end_inset
13798
13799 in by 11
13800 \begin_inset space \thinspace{}
13801 \end_inset
13802
13803 in paper, which is about the same aspect ratio as a 35
13804 \begin_inset space \thinspace{}
13805 \end_inset
13806
13807 mm slide, making it a bit easier to work with this medium.
13808 \end_layout
13809
13810 \begin_layout Labeling
13811 \labelwidthstring MMMMMMx
13812
13813 \series bold
13814 headrule
13815 \series default
13816  Places a rule across the page below the header on every page except the
13817  title page.
13818 \end_layout
13819
13820 \begin_layout Labeling
13821 \labelwidthstring MMMMMMx
13822
13823 \series bold
13824 footrule
13825 \series default
13826  Places a rule across the page above the footer on every page except the
13827  title page.
13828 \end_layout
13829
13830 \begin_layout Labeling
13831 \labelwidthstring MMMMMMx
13832
13833 \series bold
13834 dvips
13835 \series default
13836  This is automatically set each time you create a new 
13837 \family sans
13838 foils
13839 \family default
13840  document.
13841  This option tells 
13842 \family sans
13843 Foil\SpecialChar TeX
13844
13845 \family default
13846  to use the dvips driver to rotate those pages that are set as landscape
13847  foils.
13848 \end_layout
13849
13850 \begin_layout Labeling
13851 \labelwidthstring MMMMMMx
13852
13853 \series bold
13854 landscape
13855 \series default
13856  Simply changes the page dimensions to those of a landscape page but doesn't
13857  do any rotation.
13858  Thus if you use this option you need to use an external program to rotate
13859  each page or feed your paper through your printer as landscape.
13860  Note that this option effectively reverses the roles of the 
13861 \family sans
13862 Foilhead
13863 \family default
13864  and 
13865 \family sans
13866 Rotatefoilhead
13867 \family default
13868  environments (don't worry these are described in the next section).
13869 \end_layout
13870
13871 \begin_layout Labeling
13872 \labelwidthstring MMMMMMx
13873
13874 \series bold
13875 leqno
13876 \series default
13877  Equation numbers on the left.
13878 \end_layout
13879
13880 \begin_layout Labeling
13881 \labelwidthstring MMMMMMx
13882
13883 \series bold
13884 fleqn
13885 \series default
13886  Flush-left equations.
13887 \end_layout
13888
13889 \begin_layout Subsection
13890 Supported Environments
13891 \end_layout
13892
13893 \begin_layout Standard
13894 Most of the environments commonly supported in other classes are also supported
13895  by the 
13896 \family sans
13897 foils
13898 \family default
13899  class.
13900  There are several additional environments provided by 
13901 \family sans
13902 Foil\SpecialChar TeX
13903
13904 \family default
13905  as well as a couple added by \SpecialChar LyX
13906 .
13907  The following environments are shared with other classes:
13908 \end_layout
13909
13910 \begin_layout Standard
13911 \begin_inset Flex Multiple Columns
13912 status open
13913
13914 \begin_layout Itemize
13915
13916 \family sans
13917 Standard
13918 \end_layout
13919
13920 \begin_layout Itemize
13921
13922 \family sans
13923 Itemize
13924 \end_layout
13925
13926 \begin_layout Itemize
13927
13928 \family sans
13929 Enumerate
13930 \end_layout
13931
13932 \begin_layout Itemize
13933
13934 \family sans
13935 Description
13936 \end_layout
13937
13938 \begin_layout Itemize
13939
13940 \family sans
13941 List
13942 \end_layout
13943
13944 \begin_layout Itemize
13945
13946 \family sans
13947 \SpecialChar LyX
13948 -Code
13949 \end_layout
13950
13951 \begin_layout Itemize
13952
13953 \family sans
13954 Verse
13955 \end_layout
13956
13957 \begin_layout Itemize
13958
13959 \family sans
13960 Quote
13961 \end_layout
13962
13963 \begin_layout Itemize
13964
13965 \family sans
13966 Quotation
13967 \end_layout
13968
13969 \begin_layout Itemize
13970
13971 \family sans
13972 TitleAuthor
13973 \end_layout
13974
13975 \begin_layout Itemize
13976
13977 \family sans
13978 Date
13979 \end_layout
13980
13981 \begin_layout Itemize
13982
13983 \family sans
13984 Abstract
13985 \end_layout
13986
13987 \begin_layout Itemize
13988
13989 \family sans
13990 Bibliography
13991 \end_layout
13992
13993 \begin_layout Itemize
13994
13995 \family sans
13996 Address
13997 \end_layout
13998
13999 \begin_layout Itemize
14000
14001 \family sans
14002 RightAddress
14003 \end_layout
14004
14005 \end_inset
14006
14007
14008 \end_layout
14009
14010 \begin_layout Standard
14011 That is, all the major environments apart from the sectioning environments.
14012  Since foils are essentially self-contained sections, with a title and body,
14013  
14014 \family sans
14015 Foil\SpecialChar TeX
14016
14017 \family default
14018  provides specific commands for starting new foils and these are:
14019 \end_layout
14020
14021 \begin_layout Itemize
14022
14023 \family sans
14024 Foilhead
14025 \end_layout
14026
14027 \begin_layout Itemize
14028
14029 \family sans
14030 Rotatefoilhead
14031 \end_layout
14032
14033 \begin_layout Standard
14034 \SpecialChar LyX
14035  also provides slightly modified versions of these two environments called:
14036 \end_layout
14037
14038 \begin_layout Itemize
14039
14040 \family sans
14041 ShortFoilhead
14042 \end_layout
14043
14044 \begin_layout Itemize
14045
14046 \family sans
14047 ShortRotatefoilhead
14048 \end_layout
14049
14050 \begin_layout Standard
14051 and the differences will be explained in the next section.
14052 \end_layout
14053
14054 \begin_layout Standard
14055 Since foils are often used in presenting ideas or new theorems and such
14056  
14057 \family sans
14058 Foil\SpecialChar TeX
14059
14060 \family default
14061  also provides a comprehensive box of goodies for presenting them:
14062 \end_layout
14063
14064 \begin_layout Standard
14065 \begin_inset Flex Multiple Columns
14066 status open
14067
14068 \begin_layout Itemize
14069
14070 \family sans
14071 Theorem
14072 \end_layout
14073
14074 \begin_layout Itemize
14075
14076 \family sans
14077 Lemma
14078 \end_layout
14079
14080 \begin_layout Itemize
14081
14082 \family sans
14083 Corollary
14084 \end_layout
14085
14086 \begin_layout Itemize
14087
14088 \family sans
14089 Proposition
14090 \end_layout
14091
14092 \begin_layout Itemize
14093
14094 \family sans
14095 Definition
14096 \end_layout
14097
14098 \begin_layout Itemize
14099
14100 \family sans
14101 Proof
14102 \end_layout
14103
14104 \begin_layout Itemize
14105
14106 \family sans
14107 Theorem*
14108 \end_layout
14109
14110 \begin_layout Itemize
14111
14112 \family sans
14113 Lemma*
14114 \end_layout
14115
14116 \begin_layout Itemize
14117
14118 \family sans
14119 Corollary*
14120 \end_layout
14121
14122 \begin_layout Itemize
14123
14124 \family sans
14125 Proposition*
14126 \end_layout
14127
14128 \begin_layout Itemize
14129
14130 \family sans
14131 Definition*
14132 \end_layout
14133
14134 \end_inset
14135
14136
14137 \end_layout
14138
14139 \begin_layout Standard
14140 The starred versions are unnumbered while the unstarred versions are numbered.
14141  There are also two list environments added by \SpecialChar LyX
14142  and these are:
14143 \end_layout
14144
14145 \begin_layout Itemize
14146
14147 \family sans
14148 TickList
14149 \end_layout
14150
14151 \begin_layout Itemize
14152
14153 \family sans
14154 CrossList
14155 \end_layout
14156
14157 \begin_layout Standard
14158
14159 \family sans
14160 Foil\SpecialChar TeX
14161
14162 \family default
14163  provides some powerful header and footer capabilities that are best set
14164  in the preamble although they may be set at any point in a document.
14165  If you want to change these settings in your document the best place to
14166  do so is at the very top of a foil, i.
14167 \begin_inset space \thinspace{}
14168 \end_inset
14169
14170 e.
14171 \emph on
14172
14173 \begin_inset space \space{}
14174 \end_inset
14175
14176
14177 \emph default
14178 straight after the foilhead.
14179 \end_layout
14180
14181 \begin_layout Standard
14182 For this purpose, the following command styles are provided [
14183 \shape smallcaps
14184 Martin Vermeer
14185 \shape default
14186 ]:
14187 \end_layout
14188
14189 \begin_layout Standard
14190 \begin_inset Flex Multiple Columns
14191 status open
14192
14193 \begin_layout Itemize
14194
14195 \family sans
14196 My
14197 \begin_inset space ~
14198 \end_inset
14199
14200 Logo
14201 \end_layout
14202
14203 \begin_layout Itemize
14204
14205 \family sans
14206 Restriction
14207 \end_layout
14208
14209 \begin_layout Itemize
14210
14211 \family sans
14212 Right
14213 \begin_inset space ~
14214 \end_inset
14215
14216 Footer
14217 \end_layout
14218
14219 \begin_layout Itemize
14220
14221 \family sans
14222 Right
14223 \begin_inset space ~
14224 \end_inset
14225
14226 Header
14227 \end_layout
14228
14229 \begin_layout Itemize
14230
14231 \family sans
14232 Left
14233 \begin_inset space ~
14234 \end_inset
14235
14236 Header
14237 \end_layout
14238
14239 \begin_deeper
14240 \begin_layout Plain Layout
14241 \begin_inset space ~
14242 \end_inset
14243
14244
14245 \end_layout
14246
14247 \end_deeper
14248 \end_inset
14249
14250
14251 \end_layout
14252
14253 \begin_layout Standard
14254 There are also a few commands provided by 
14255 \family sans
14256 Foil\SpecialChar TeX
14257
14258 \family default
14259  that aren't directly supported by \SpecialChar LyX
14260  but I'll tell you what they do and how
14261  to use them in section
14262 \begin_inset space ~
14263 \end_inset
14264
14265
14266 \begin_inset CommandInset ref
14267 LatexCommand ref
14268 reference "sec:unsuppfoils"
14269
14270 \end_inset
14271
14272 .
14273 \end_layout
14274
14275 \begin_layout Subsection
14276 Building a Set of Foils
14277 \end_layout
14278
14279 \begin_layout Standard
14280 This section will give a simple introduction to using the different environments
14281  to build a set of foils.
14282  If you want to see an example set of foils, take a look at the 
14283 \family typewriter
14284 Foils.lyx
14285 \family default
14286  file you find in \SpecialChar LyX
14287 's 
14288 \family typewriter
14289 examples
14290 \family default
14291  folder.
14292 \end_layout
14293
14294 \begin_layout Subsubsection
14295 Give It a Title Page
14296 \end_layout
14297
14298 \begin_layout Standard
14299 Unlike other classes that provide 
14300 \family sans
14301 Title
14302 \family default
14303
14304 \family sans
14305 Author
14306 \family default
14307
14308 \family sans
14309 Date
14310 \family default
14311  and 
14312 \family sans
14313 Abstract
14314 \family default
14315  environments, 
14316 \family sans
14317 foils
14318 \family default
14319  creates the title on a page of its own.
14320  If you leave out the 
14321 \family sans
14322 Date
14323 \family default
14324  environment \SpecialChar LaTeX
14325  will substitute the current date (every time you regenerate
14326  the output).
14327 \end_layout
14328
14329 \begin_layout Subsubsection
14330 Start a New Foil
14331 \end_layout
14332
14333 \begin_layout Standard
14334 As I mentioned earlier, there are four ways of starting a new foil.
14335  For portrait foils you should use 
14336 \family sans
14337 Foilhead
14338 \family default
14339  or 
14340 \family sans
14341 ShortFoilhead.
14342
14343 \family default
14344  The difference between these two environments is the amount of space between
14345  the title of the foil (the foilhead) and the body of the foil.
14346 \end_layout
14347
14348 \begin_layout Standard
14349 Landscape foils are generated using the 
14350 \family sans
14351 Rotatefoilhead
14352 \family default
14353  and 
14354 \family sans
14355 ShortRotatefoilhead
14356 \family default
14357  environments.
14358  Again the only difference is the spacing between foilhead and body.
14359  Both of the short versions have 0.5
14360 \begin_inset space ~
14361 \end_inset
14362
14363 inches less separation between the foilhead and the body.
14364  
14365 \end_layout
14366
14367 \begin_layout Standard
14368 One problem with the support for landscape foils is the requirement that
14369  you have to use the 
14370 \family typewriter
14371 dvips
14372 \family default
14373  driver to generate the PostScript output otherwise the foils won't be rotated.
14374  It is possible to get landscape foils even if you haven't got the 
14375 \family typewriter
14376 dvips
14377 \family default
14378  driver provided you can feed your foils sideways through your printer ;-)
14379 \end_layout
14380
14381 \begin_layout Subsubsection
14382 Theorems, Lemmas, Proofs and more
14383 \end_layout
14384
14385 \begin_layout Standard
14386 You can't have two of the same type of these environments directly following
14387  each other.
14388  If you use a normal paragraph break, , you will just be extending the previous
14389  environment as if you had merged the two environments together.
14390  Rather than that, you need to insert a so-called separator.
14391  Please refer to the section entitled 
14392 \emph on
14393 Separate Nestings
14394 \emph default
14395  in the 
14396 \emph on
14397 User's Guide
14398 \emph default
14399 .
14400 \end_layout
14401
14402 \begin_layout Subsubsection
14403 Lists
14404 \end_layout
14405
14406 \begin_layout Standard
14407 You get all the commonly supported list styles found in other classes as
14408  well as two new ones.
14409  I'll only describe the new ones here.
14410  If you want to find out more about the other list environments check out
14411  the 
14412 \emph on
14413 User's Guide.
14414
14415 \emph default
14416  If you intend to use itemized lists you might also want to read about the
14417  
14418 \family sans
14419 Itemize
14420 \begin_inset space ~
14421 \end_inset
14422
14423 Bullet
14424 \begin_inset space ~
14425 \end_inset
14426
14427 Selection
14428 \family default
14429  dialog described above in section
14430 \begin_inset space ~
14431 \end_inset
14432
14433
14434 \begin_inset CommandInset ref
14435 LatexCommand ref
14436 reference "sec:bullet"
14437
14438 \end_inset
14439
14440 .
14441 \end_layout
14442
14443 \begin_layout Standard
14444 The two new list styles, 
14445 \family sans
14446 TickList
14447 \family default
14448  and 
14449 \family sans
14450 CrossList
14451 \family default
14452 , are designed to make it easier for you to create lists of do's and don'ts
14453  or right and wrong by providing dedicated environments that use a tick
14454  or a cross as the label of the list.
14455  These lists are in fact dedicated variants of the 
14456 \family sans
14457 Itemize
14458 \family default
14459  environment.
14460  They do however require that you have the 
14461 \family typewriter
14462 psnfss
14463 \family default
14464  packages installed.
14465 \end_layout
14466
14467 \begin_layout Subsubsection
14468 Figures and Tables
14469 \end_layout
14470
14471 \begin_layout Standard
14472
14473 \family sans
14474 Foil\SpecialChar TeX
14475
14476 \family default
14477  redefines the floating tables and figures so that they appear exactly where
14478  they are in the text rather than pushing them to the top of the page or
14479  to some user specified location.
14480  In fact if you change the float placement settings they are simply ignored.
14481 \end_layout
14482
14483 \begin_layout Subsubsection
14484 Page Headers and Footers
14485 \begin_inset CommandInset label
14486 LatexCommand label
14487 name "sec:foilfoot"
14488
14489 \end_inset
14490
14491
14492 \end_layout
14493
14494 \begin_layout Standard
14495
14496 \family sans
14497 My
14498 \begin_inset space ~
14499 \end_inset
14500
14501 Logo
14502 \family default
14503  and 
14504 \family sans
14505 Restriction
14506 \family default
14507  are two commands used to control the left-footer text string.
14508  The first is meant to allow you to include a graphic logo on your foils
14509  and defaults to 
14510 \begin_inset Quotes eld
14511 \end_inset
14512
14513 -Typeset by 
14514 \family sans
14515 Foil\SpecialChar TeX
14516
14517 \family default
14518 -
14519 \begin_inset Quotes erd
14520 \end_inset
14521
14522 .
14523  While the second is meant to provide a classification for the audience,
14524  
14525 \emph on
14526 e.
14527 \begin_inset space \thinspace{}
14528 \end_inset
14529
14530 g.
14531 \emph default
14532
14533 \begin_inset space \space{}
14534 \end_inset
14535
14536 Confidential.
14537  It is empty by default.
14538 \end_layout
14539
14540 \begin_layout Standard
14541 The remaining page corners can be filled by 
14542 \family sans
14543 Right
14544 \begin_inset space ~
14545 \end_inset
14546
14547 Footer
14548 \family default
14549  (which defaults to page numbers), 
14550 \family sans
14551 Right
14552 \begin_inset space ~
14553 \end_inset
14554
14555 Header
14556 \family default
14557  (top right) and 
14558 \family sans
14559 Left
14560 \begin_inset space ~
14561 \end_inset
14562
14563 Header
14564 \family default
14565  (top left).
14566 \end_layout
14567
14568 \begin_layout Subsection
14569 Unsupported 
14570 \family sans
14571 Foil\SpecialChar TeX
14572
14573 \family default
14574  Goodies
14575 \begin_inset CommandInset label
14576 LatexCommand label
14577 name "sec:unsuppfoils"
14578
14579 \end_inset
14580
14581
14582 \end_layout
14583
14584 \begin_layout Standard
14585 All the commands mentioned below need to be set in a 
14586 \family sans
14587 \SpecialChar LaTeX
14588
14589 \family default
14590  environment or as 
14591 \family sans
14592 \SpecialChar TeX
14593
14594 \family default
14595  within another environment.
14596 \end_layout
14597
14598 \begin_layout Subsubsection
14599 Lengths
14600 \end_layout
14601
14602 \begin_layout Standard
14603 All lengths are adjusted using the 
14604 \family typewriter
14605
14606 \backslash
14607 setlength{
14608 \family default
14609 \emph on
14610 lengthname
14611 \family typewriter
14612 \emph default
14613 }{
14614 \family default
14615 \emph on
14616 newlength
14617 \family typewriter
14618 \emph default
14619 }
14620 \family default
14621  command.
14622  Where 
14623 \emph on
14624 lengthname
14625 \emph default
14626  should be replaced by the name given to the length you want to change and
14627  
14628 \emph on
14629 newlength
14630 \emph default
14631  is the length value.
14632  All lengths should be specified in units of length such as inches (
14633 \family typewriter
14634 in
14635 \family default
14636 ), millimeters (
14637 \family typewriter
14638 mm
14639 \family default
14640 ) or points (
14641 \family typewriter
14642 pt
14643 \family default
14644 ) or relative to some document or font-based length such as 
14645 \family typewriter
14646
14647 \backslash
14648 textwidth
14649 \family default
14650 .
14651  
14652 \end_layout
14653
14654 \begin_layout Standard
14655 It's possible to change the spacing between a foilhead and the body of the
14656  foil by adjusting the length specified by 
14657 \family typewriter
14658
14659 \backslash
14660 foilheadskip
14661 \family default
14662 .
14663  For example, to make 
14664 \emph on
14665 all
14666 \emph default
14667  foilheads 0.5
14668 \begin_inset space \space{}
14669 \end_inset
14670
14671 in closer to their bodies put the following in the preamble: 
14672 \family typewriter
14673
14674 \backslash
14675 setlength{
14676 \backslash
14677 foilheadskip}{-0.5in}
14678 \end_layout
14679
14680 \begin_layout Standard
14681 The spacings around floats can be adjusted by setting these lengths:
14682 \end_layout
14683
14684 \begin_layout Labeling
14685 \labelwidthstring MMMMMMMMMMM
14686
14687 \family typewriter
14688
14689 \backslash
14690 abovefloatskip
14691 \family default
14692  Separation between the text and the top of the float
14693 \end_layout
14694
14695 \begin_layout Labeling
14696 \labelwidthstring MMMMMMMMMMM
14697
14698 \family typewriter
14699
14700 \backslash
14701 abovecaptionskip
14702 \family default
14703  Separation between the float and the caption
14704 \end_layout
14705
14706 \begin_layout Labeling
14707 \labelwidthstring MMMMMMMMMMM
14708
14709 \family typewriter
14710
14711 \backslash
14712 belowcaptionskip
14713 \family default
14714  Separation between the caption and the following text
14715 \end_layout
14716
14717 \begin_layout Labeling
14718 \labelwidthstring MMMMMMMMMMM
14719
14720 \family typewriter
14721
14722 \backslash
14723 captionwidth
14724 \family default
14725  You can make the captions narrower than the surrounding text by adjusting
14726  this length.
14727  Best done relative to 
14728 \family typewriter
14729
14730 \backslash
14731 textwidth
14732 \family default
14733 .
14734 \end_layout
14735
14736 \begin_layout Standard
14737 There are also several title page related lengths that you may find useful
14738  if you have a long title or several authors:
14739 \end_layout
14740
14741 \begin_layout Labeling
14742 \labelwidthstring MMMMMMMMMMM
14743
14744 \family typewriter
14745
14746 \backslash
14747 abovetitleskip
14748 \family default
14749  Separation from headers to 
14750 \family sans
14751 Title
14752 \end_layout
14753
14754 \begin_layout Labeling
14755 \labelwidthstring MMMMMMMMMMM
14756
14757 \family typewriter
14758
14759 \backslash
14760 titleauthorskip
14761 \family default
14762  between 
14763 \family sans
14764 Title
14765 \family default
14766  and 
14767 \family sans
14768 Author
14769 \family default
14770  environments
14771 \end_layout
14772
14773 \begin_layout Labeling
14774 \labelwidthstring MMMMMMMMMMM
14775
14776 \family typewriter
14777
14778 \backslash
14779 authorauthorskip
14780 \family default
14781  between multiple 
14782 \family sans
14783 Author
14784 \family default
14785  lines
14786 \end_layout
14787
14788 \begin_layout Labeling
14789 \labelwidthstring MMMMMMMMMMM
14790
14791 \family typewriter
14792
14793 \backslash
14794 authordateskip
14795 \family default
14796  between the 
14797 \family sans
14798 Author
14799 \family default
14800  and the 
14801 \family sans
14802 Date
14803 \end_layout
14804
14805 \begin_layout Labeling
14806 \labelwidthstring MMMMMMMMMMM
14807
14808 \family typewriter
14809
14810 \backslash
14811 dateabstractskip
14812 \family default
14813  between the 
14814 \family sans
14815 Date
14816 \family default
14817  and the 
14818 \family sans
14819 Abstract
14820 \end_layout
14821
14822 \begin_layout Standard
14823 The last length related command affects all the list environments.
14824  If you place 
14825 \family typewriter
14826
14827 \backslash
14828 zerolistvertdimens
14829 \family default
14830  
14831 \emph on
14832 inside
14833 \emph default
14834  a list environment then all the vertical spacing between the list items
14835  is removed.
14836  Note that this is a command not a length so it doesn't require 
14837 \family typewriter
14838
14839 \backslash
14840 setlength
14841 \family default
14842  like the stuff mentioned above.
14843 \end_layout
14844
14845 \begin_layout Subsubsection
14846 Headers and Footers
14847 \end_layout
14848
14849 \begin_layout Standard
14850 The 
14851 \family typewriter
14852
14853 \backslash
14854 LogoOn
14855 \family default
14856  and 
14857 \family typewriter
14858
14859 \backslash
14860 LogoOff
14861 \family default
14862  commands control whether the logo in the 
14863 \family sans
14864 MyLogo
14865 \family default
14866  definition appear on a given page.
14867  If you put 
14868 \family typewriter
14869
14870 \backslash
14871 LogoOff
14872 \family default
14873  in the preamble then none of the foils will have the logo on them.
14874  If you don't want the logo on a particular page place the 
14875 \family typewriter
14876
14877 \backslash
14878 LogoOff
14879 \family default
14880  directly after the foilhead of that page and the 
14881 \family typewriter
14882
14883 \backslash
14884 LogoOn
14885 \family default
14886  directly after the next foilhead.
14887 \end_layout
14888
14889 \begin_layout Standard
14890 If you decide to use the 
14891 \family sans
14892 fancy
14893 \family default
14894  page style setting in the 
14895 \family sans
14896 Document
14897 \begin_inset space ~
14898 \end_inset
14899
14900 Layout
14901 \family default
14902  dialog you should probably add 
14903 \family typewriter
14904
14905 \backslash
14906 let
14907 \backslash
14908 headwidth
14909 \backslash
14910 textwidth
14911 \family default
14912  to your preamble so headers and footers on landscape pages are correctly
14913  placed when rotated.
14914  This is due to some clashes between the page layouts provided by the 
14915 \family sans
14916 fancyheadings
14917 \family default
14918  package and the 
14919 \family sans
14920 foils
14921 \family default
14922  class.
14923 \end_layout
14924
14925 \begin_layout Section
14926 Hollywood (Hollywood spec scripts)
14927 \end_layout
14928
14929 \begin_layout Standard
14930 by 
14931 \shape smallcaps
14932 Garst Reese
14933 \end_layout
14934
14935 \begin_layout Subsection
14936 Introduction
14937 \end_layout
14938
14939 \begin_layout Standard
14940 Getting the format of a Hollywood script right is a 
14941 \begin_inset Quotes eld
14942 \end_inset
14943
14944 rite of passage.
14945 \begin_inset Quotes erd
14946 \end_inset
14947
14948  It is designed to make the readers focus on content and to be easy and
14949  familiar for the actors to read.
14950  Each page of a script should be one minute of film.
14951  Nothing goes in a script that you cannot see or hear on screen.
14952  The courier 12 pt font should be used throughout.
14953  No italics.
14954 \end_layout
14955
14956 \begin_layout Subsection
14957 Special problems
14958 \end_layout
14959
14960 \begin_layout Standard
14961 Speakers' lines should NEVER break in mid-sentence.
14962  If a speaker's lines continue over a page break, repeat the 
14963 \family sans
14964 Speaker
14965 \family default
14966  title followed by (Cont'd).
14967 \end_layout
14968
14969 \begin_layout Subsection
14970 Special features
14971 \end_layout
14972
14973 \begin_layout Standard
14974 Insert the 
14975 \family sans
14976 Speaker
14977 \family default
14978  names as labels then cross-reference the label to insert the name.
14979  The cross-reference dialog will show the current cast of characters.
14980  You can use this to insert the speaker name in narratives also.
14981 \end_layout
14982
14983 \begin_layout Subsection
14984 Paper size and Margins
14985 \end_layout
14986
14987 \begin_layout Standard
14988 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
14989 \end_layout
14990
14991 \begin_layout Subsection
14992 Environments
14993 \end_layout
14994
14995 \begin_layout Standard
14996 The following environments are available.
14997  You can use hollywood.bind to get the bind keys shown at the right.
14998 \end_layout
14999
15000 \begin_layout Itemize
15001
15002 \family sans
15003 Standard
15004 \begin_inset Newline newline
15005 \end_inset
15006
15007
15008 \family default
15009 Used where nothing else works.
15010  Try to avoid it.
15011 \end_layout
15012
15013 \begin_layout Itemize
15014
15015 \family sans
15016 FADE_IN
15017 \family default
15018 :
15019 \begin_inset space \hfill{}
15020 \end_inset
15021
15022
15023 \family sans
15024 M-z S-I
15025 \family default
15026
15027 \begin_inset Newline newline
15028 \end_inset
15029
15030 Usually followed by something like 
15031 \begin_inset Quotes eld
15032 \end_inset
15033
15034 on Sally waking up.
15035 \begin_inset Quotes erd
15036 \end_inset
15037
15038
15039 \end_layout
15040
15041 \begin_layout Itemize
15042
15043 \family sans
15044 INT:
15045 \begin_inset space \hfill{}
15046 \end_inset
15047
15048 M-z i
15049 \begin_inset Newline newline
15050 \end_inset
15051
15052
15053 \family default
15054 Introduces a new INTERIOR camera set-up.
15055  Always followed by DAY or NIGHT, or something similar to define the lighting
15056  required.
15057  Everthing on this line in CAPS.
15058 \end_layout
15059
15060 \begin_layout Itemize
15061
15062 \family sans
15063 EXT:
15064 \begin_inset space \hfill{}
15065 \end_inset
15066
15067 M-z e
15068 \begin_inset Newline newline
15069 \end_inset
15070
15071
15072 \family default
15073 Introduces a new EXTERIOR camera set-up.
15074  Everthing on this line in CAPS.
15075 \end_layout
15076
15077 \begin_layout Itemize
15078
15079 \family sans
15080 Speaker
15081 \begin_inset space \hfill{}
15082 \end_inset
15083
15084 M-z s
15085 \begin_inset Newline newline
15086 \end_inset
15087
15088
15089 \family default
15090 The character speaking.
15091 \end_layout
15092
15093 \begin_layout Itemize
15094
15095 \family sans
15096 Parenthetical
15097 \begin_inset space \hfill{}
15098 \end_inset
15099
15100 M-z p
15101 \begin_inset Newline newline
15102 \end_inset
15103
15104
15105 \family default
15106 Instructions to the speaker.
15107  The () are automatically inserted.
15108 \end_layout
15109
15110 \begin_layout Itemize
15111
15112 \family sans
15113 Dialogue
15114 \begin_inset space \hfill{}
15115 \end_inset
15116
15117 M-z d
15118 \begin_inset Newline newline
15119 \end_inset
15120
15121
15122 \family default
15123 What the 
15124 \family sans
15125 Speaker
15126 \family default
15127  says.
15128 \end_layout
15129
15130 \begin_layout Itemize
15131
15132 \family sans
15133 Transition
15134 \begin_inset space \hfill{}
15135 \end_inset
15136
15137 M-z t
15138 \begin_inset Newline newline
15139 \end_inset
15140
15141
15142 \family default
15143 Camera movement instruction.
15144  e.
15145 \begin_inset space \thinspace{}
15146 \end_inset
15147
15148 g.
15149 \begin_inset space \space{}
15150 \end_inset
15151
15152 CUT TO:
15153 \end_layout
15154
15155 \begin_layout Itemize
15156
15157 \family sans
15158 FADE OUT:
15159 \begin_inset space \hfill{}
15160 \end_inset
15161
15162 M-z S-I
15163 \end_layout
15164
15165 \begin_layout Itemize
15166
15167 \family sans
15168 Author
15169 \begin_inset space \hfill{}
15170 \end_inset
15171
15172 M-z S-A
15173 \end_layout
15174
15175 \begin_layout Itemize
15176
15177 \family sans
15178 Title
15179 \begin_inset space \hfill{}
15180 \end_inset
15181
15182 M-z S-T
15183 \end_layout
15184
15185 \begin_layout Itemize
15186
15187 \family sans
15188 Right_Address
15189 \begin_inset space \hfill{}
15190 \end_inset
15191
15192 M-z r
15193 \end_layout
15194
15195 \begin_layout Subsection
15196 Script jargon
15197 \end_layout
15198
15199 \begin_layout Itemize
15200 (O.S) — off screen
15201 \end_layout
15202
15203 \begin_layout Itemize
15204 (V.0) — voice over
15205 \end_layout
15206
15207 \begin_layout Itemize
15208 b.
15209 \begin_inset space \thinspace{}
15210 \end_inset
15211
15212 g.
15213  — background
15214 \end_layout
15215
15216 \begin_layout Itemize
15217 C.U.
15218  — close-up
15219 \end_layout
15220
15221 \begin_layout Itemize
15222 PAN — camera movement
15223 \end_layout
15224
15225 \begin_layout Itemize
15226 INSERT — cut to close-up of
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