]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move Foils (FoilTeX) section in Additional.lyx to Chapter 3 Document classes
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871 Koma-Script
2872 \end_layout
2873
2874 \begin_layout Standard
2875 by 
2876 \noun on
2877 Bernd Rellermeyer
2878 \end_layout
2879
2880 \begin_layout Subsubsection
2881 Overview
2882 \end_layout
2883
2884 \begin_layout Standard
2885 The \SpecialChar LyX
2886  document classes 
2887 \emph on
2888 article (koma-script)
2889 \emph default
2890
2891 \emph on
2892 report (koma-script)
2893 \emph default
2894
2895 \emph on
2896 book
2897 \emph default
2898  
2899 \emph on
2900 (koma-script)
2901 \emph default
2902 , and 
2903 \emph on
2904 letter
2905 \emph default
2906  
2907 \emph on
2908 (koma-script)
2909 \emph default
2910  correspond to the \SpecialChar LaTeX
2911  document classes 
2912 \family typewriter
2913 scrartcl.cls
2914 \family default
2915
2916 \family typewriter
2917 scrreprt.cls
2918 \family default
2919
2920 \family typewriter
2921 scrbook.cls
2922 \family default
2923 , and 
2924 \family typewriter
2925 scrlettr.cls
2926 \family default
2927 , resp.
2928 \begin_inset space ~
2929 \end_inset
2930
2931 of the Koma-Script family.
2932  They are replacements for the standard document classes 
2933 \family typewriter
2934 article.cls
2935 \family default
2936
2937 \family typewriter
2938 report.cls
2939 \family default
2940
2941 \family typewriter
2942 book.cls
2943 \family default
2944  and 
2945 \family typewriter
2946 letter.cls
2947 \family default
2948 , resp., and fit better to European typography conventions in a number of
2949  points.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Standard character size is 11pt in 
2954 \emph on
2955 article (koma-script)
2956 \emph default
2957
2958 \emph on
2959 report (koma-script)
2960 \emph default
2961 , and 
2962 \emph on
2963 book (koma-script)
2964 \emph default
2965 , and 12pt in 
2966 \emph on
2967 letter (koma-script)
2968 \emph default
2969 .
2970 \end_layout
2971
2972 \begin_layout Itemize
2973 Headings, labels of the description environment, and a number of elements
2974  of the 
2975 \emph on
2976 letter (koma-script)
2977 \emph default
2978  document class are set in a bold sans serif font.
2979 \begin_inset Foot
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 There is a big difference between the bold sans serif old cm fonts and new
2984  ec fonts, especially in the appearance of headings.
2985  In comparison, the ec bold sans serif fonts look a bit thin.
2986  Here the \SpecialChar LaTeX
2987  package 
2988 \family typewriter
2989 cmsd.sty by
2990 \family default
2991  
2992 \shape smallcaps
2993 Walter Schmidt
2994 \shape default
2995  helps to produce the 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 usual
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  appearance when using the ec fonts.
3004 \end_layout
3005
3006 \end_inset
3007
3008  The numbering of chapter headings is made in the same way as the numbering
3009  of section headings, that is without the extra line 
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013 Chapter\SpecialChar ldots
3014
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018 .
3019  In addition, the appearance of the headings can be modified by using a
3020  number of options (in \SpecialChar LyX
3021  to be entered in the field 
3022 \family sans
3023 Extra
3024 \begin_inset space ~
3025 \end_inset
3026
3027 Options
3028 \family default
3029  of the dialog 
3030 \family sans
3031 Layout\SpecialChar menuseparator
3032 Document
3033 \family default
3034 ).
3035  
3036 \end_layout
3037
3038 \begin_layout Itemize
3039 The main means in the Koma-Script document classes to design the type area
3040  are the options 
3041 \family sans
3042 BCOR
3043 \family default
3044  and 
3045 \family sans
3046 DIV
3047 \family default
3048  (in \SpecialChar LyX
3049  to be entered in the extra class options field in the dialog 
3050 \family sans
3051 Document\SpecialChar menuseparator
3052 Settings
3053 \family default
3054 ).
3055  They make a clearer modification of page margins possible as do the options
3056  of the dialog 
3057 \family sans
3058 Document\SpecialChar menuseparator
3059 Settings
3060 \family default
3061 .
3062  
3063 \end_layout
3064
3065 \begin_layout Itemize
3066 The \SpecialChar LaTeX
3067  document classes of the Koma-Script family define a number of additional
3068  commands.
3069  Those part of it which makes sense in \SpecialChar LyX
3070  is implemented in corresponding
3071  paragraph types.
3072 \end_layout
3073
3074 \begin_layout Standard
3075 Detailed descriptions of the \SpecialChar LaTeX
3076  document classes of the Koma-Script family
3077  can be found in the Koma-Script documentation 
3078 \emph on
3079 scrguide
3080 \emph default
3081  (German) and 
3082 \emph on
3083 scrguien
3084 \emph default
3085  (English).
3086 \end_layout
3087
3088 \begin_layout Subsubsection
3089 article (koma-script), report (koma-script), and book (koma-script)
3090 \end_layout
3091
3092 \begin_layout Standard
3093 The document classes 
3094 \emph on
3095 article (koma-script)
3096 \emph default
3097
3098 \emph on
3099 report (koma-script)
3100 \emph default
3101 , and 
3102 \emph on
3103 book
3104 \emph default
3105  
3106 \emph on
3107 (koma-script)
3108 \emph default
3109  are implemented in the layout files 
3110 \family typewriter
3111 scrartcl.layout
3112 \family default
3113
3114 \family typewriter
3115 scrreprt.layout
3116 \family default
3117 , and 
3118 \family typewriter
3119 scrbook.layout
3120 \family default
3121 , resp.
3122  They contain all the paragraph types of the corresponding standard document
3123  classes 
3124 \emph on
3125 article
3126 \emph default
3127
3128 \emph on
3129 report
3130 \emph default
3131 , and 
3132 \emph on
3133 book
3134 \emph default
3135 , resp., partly modified, with the exception of the \SpecialChar LyX
3136  specific 
3137 \family sans
3138 List
3139 \family default
3140 -type, which is replaced by the new 
3141 \family sans
3142 Labeling
3143 \family default
3144 -type having the same functionality.
3145  Beside the 
3146 \family sans
3147 Labeling
3148 \family default
3149 -Type there is a number of new paragraph types added.
3150  They are 
3151 \emph on
3152 not
3153 \emph default
3154  part of 
3155 \emph on
3156 letter (koma-script)
3157 \emph default
3158 .
3159 \end_layout
3160
3161 \begin_layout Itemize
3162
3163 \family sans
3164 Addpart, Addchap
3165 \family default
3166
3167 \family sans
3168 Addsec
3169 \family default
3170 : are equivalents to 
3171 \family sans
3172 Part*, Chapter*
3173 \family default
3174  and 
3175 \family sans
3176 Section*
3177 \family default
3178 , resp., additionally inserting an entry in the table of contents.
3179  
3180 \family sans
3181 Addpart
3182 \family default
3183  and 
3184 \family sans
3185 Addchap
3186 \family default
3187  are not contained in 
3188 \emph on
3189 article (koma-script)
3190 \emph default
3191 .
3192 \end_layout
3193
3194 \begin_layout Itemize
3195
3196 \family sans
3197 Addchap*
3198 \family default
3199
3200 \family sans
3201 Addsec*
3202 \family default
3203 : behave exactly as 
3204 \family sans
3205 Addchap
3206 \family default
3207  and 
3208 \family sans
3209 Addsec
3210 \family default
3211 , resp., additionally clearing running heads.
3212  
3213 \family sans
3214 Addchap*
3215 \family default
3216  is not contained in 
3217 \emph on
3218 article (koma-script)
3219 \emph default
3220 .
3221 \begin_inset Foot
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 There is also an 
3226 \family typewriter
3227
3228 \backslash
3229 addpart*
3230 \family default
3231  command in 
3232 \emph on
3233 book (koma-script)
3234 \emph default
3235  and in 
3236 \emph on
3237 report (koma-script)
3238 \emph default
3239 , but since this is identical to 
3240 \family sans
3241 Part*
3242 \family default
3243 , is has not been implemented in \SpecialChar LyX
3244 .
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Itemize
3253
3254 \family sans
3255 Minisec
3256 \family default
3257 : generates a heading directly above the following paragraph in the standard
3258  character size without affecting the structure of the document.
3259 \end_layout
3260
3261 \begin_layout Itemize
3262
3263 \family sans
3264 Captionabove
3265 \family default
3266  and 
3267 \family sans
3268 Captionbelow
3269 \family default
3270  are special captions which respect the different space settings needed
3271  for captions placed above or below an element (if you follow strict typographic
3272  rules, you might want to place table captions always above the table).
3273  You can also use the class option 
3274 \family typewriter
3275 tablecaptionsabove
3276 \family default
3277 , which will switch 
3278 \family sans
3279 caption
3280 \family default
3281  to 
3282 \family sans
3283 captionabove
3284 \family default
3285  for tables and 
3286 \family sans
3287 captionbelow
3288 \family default
3289  for figures.
3290  You need at least Koma-Script version 2.8q to use this.
3291 \end_layout
3292
3293 \begin_layout Itemize
3294
3295 \family sans
3296 Dictum
3297 \family default
3298 : can be used to set a bonmot, e.
3299 \begin_inset space \thinspace{}
3300 \end_inset
3301
3302 g.
3303 \begin_inset space \space{}
3304 \end_inset
3305
3306 at the beginning of a chapter.
3307  If you use the optional argument (
3308 \family sans
3309 Insert\SpecialChar menuseparator
3310 Dictum
3311 \begin_inset space ~
3312 \end_inset
3313
3314 Author
3315 \family default
3316 ), you can insert the dictum's author there.
3317  Dictum and author are separated by a line.
3318  You need at least Koma-Script version 2.8q to use this.
3319  
3320 \family sans
3321 Dictum
3322 \family default
3323  is not contained in 
3324 \emph on
3325 article (koma-script)
3326 \emph default
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 The following types, together with the standard types 
3332 \family sans
3333 Title
3334 \family default
3335
3336 \family sans
3337 Author
3338 \family default
3339 , and 
3340 \family sans
3341 Date
3342 \family default
3343 , form the title area of the document.
3344  They must be entered ahead of the first 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 ordinary
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  paragraph.
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 The corresponding \SpecialChar LaTeX
3358  commands must appear before the 
3359 \family typewriter
3360
3361 \backslash
3362 maketitle
3363 \family default
3364  command.
3365 \end_layout
3366
3367 \end_inset
3368
3369  When such a type is used more than once, the latter usage overwrites the
3370  former one, that means, for every type only the latest usage is valid.
3371  The order of the different types however has, like 
3372 \family sans
3373 Title
3374 \family default
3375
3376 \family sans
3377 Author
3378 \family default
3379 , and 
3380 \family sans
3381 Date
3382 \family default
3383 , no effect on the appearance of the produced document.
3384 \end_layout
3385
3386 \begin_layout Itemize
3387
3388 \family sans
3389 Subject
3390 \family default
3391 : produces a centered paragraph above the ordinary title (
3392 \family sans
3393 Title
3394 \family default
3395
3396 \family sans
3397 Author
3398 \family default
3399
3400 \family sans
3401 Date
3402 \family default
3403 ) for the subject of the document.
3404 \end_layout
3405
3406 \begin_layout Itemize
3407
3408 \family sans
3409 Publishers
3410 \family default
3411 : produces a centered paragraph below the ordinary title (
3412 \family sans
3413 Title
3414 \family default
3415
3416 \family sans
3417 Author
3418 \family default
3419
3420 \family sans
3421 Date
3422 \family default
3423 ) for the publishers' name.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family sans
3429 Dedication
3430 \family default
3431 : in 
3432 \emph on
3433 report (koma-script)
3434 \emph default
3435  and 
3436 \emph on
3437 book (koma-script)
3438 \emph default
3439  produces a centered paragraph on its own page behind the title page, or
3440  in 
3441 \emph on
3442 article (koma-script)
3443 \emph default
3444  produces a centered paragraph below the ordinary title (
3445 \family sans
3446 Title
3447 \family default
3448
3449 \family sans
3450 Author
3451 \family default
3452
3453 \family sans
3454 Date
3455 \family default
3456
3457 \family sans
3458 Publishers
3459 \family default
3460 ) for a dedication.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464
3465 \family sans
3466 Titlehead
3467 \family default
3468 : produces a left aligned paragraph above the ordinary title (
3469 \family sans
3470 Title
3471 \family default
3472
3473 \family sans
3474 Author
3475 \family default
3476
3477 \family sans
3478 Date
3479 \family default
3480
3481 \family sans
3482 Subject
3483 \family default
3484 ) for a document`s head.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Uppertitleback
3491 \family default
3492 : produces in a double-sided print in 
3493 \emph on
3494 report (koma-script)
3495 \emph default
3496  and 
3497 \emph on
3498 book (koma-script)
3499 \emph default
3500  a left-aligned paragraph at the top of the title page`s back or has no
3501  effect in a single-sided print or in 
3502 \emph on
3503 article (koma-script)
3504 \emph default
3505 .
3506 \end_layout
3507
3508 \begin_layout Itemize
3509
3510 \family sans
3511 Lowertitleback
3512 \family default
3513 : produces in a double-sided print in 
3514 \emph on
3515 report (koma-script)
3516 \emph default
3517  and 
3518 \emph on
3519 book (koma-script)
3520 \emph default
3521  a left-aligned paragraph at the bottom of the title page`s back or has
3522  no effect in a single-sided print or in 
3523 \emph on
3524 article (koma-script)
3525 \emph default
3526 .
3527 \end_layout
3528
3529 \begin_layout Itemize
3530
3531 \family sans
3532 Extratitle
3533 \family default
3534 : produces a special 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 dirty
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  page ahead of the actual document containing a paragraph without special
3543  formatting.
3544 \end_layout
3545
3546 \begin_layout Standard
3547 The layout files for the document classes 
3548 \emph on
3549 article (koma-script)
3550 \emph default
3551
3552 \emph on
3553 report (koma-script)
3554 \emph default
3555 , and 
3556 \emph on
3557 book (koma-script)
3558 \emph default
3559  do include the file 
3560 \family typewriter
3561 scrmacros.inc
3562 \family default
3563 .
3564  This is thought of as a place to define your own types.
3565  Copy scrmacros
3566 \family typewriter
3567 .inc
3568 \family default
3569  in your personal layout directory and edit the file!
3570 \end_layout
3571
3572 \begin_layout Subsubsection
3573 letter (koma-script)
3574 \end_layout
3575
3576 \begin_layout Description
3577 Note: This section discusses the obsolete 
3578 \family sans
3579 KOMA-Script-Letter (v.
3580 \begin_inset space ~
3581 \end_inset
3582
3583 1)
3584 \family default
3585 , which is not even included anymore in recent KOMA releases.
3586  Please refer to the next section for the current KOMA-Script-Letter class
3587  (v.
3588 \begin_inset space ~
3589 \end_inset
3590
3591 2)!
3592 \end_layout
3593
3594 \begin_layout Standard
3595 \noindent
3596 The document class 
3597 \emph on
3598 letter (koma-script)
3599 \emph default
3600  is implemented in the layout file 
3601 \family typewriter
3602 scrlettr.layout
3603 \family default
3604 .
3605  It contains all the paragraph types of the corresponding standard document
3606  class 
3607 \emph on
3608 letter
3609 \emph default
3610 , partly modified, with the exception of the \SpecialChar LyX
3611  specific types 
3612 \family sans
3613 \SpecialChar LyX
3614 -Code
3615 \family default
3616  and 
3617 \family sans
3618 Comment
3619 \family default
3620  and the 
3621 \family sans
3622 List
3623 \family default
3624  type, which is replaced by the new 
3625 \family sans
3626 Labeling
3627 \family default
3628  type.
3629  In addition, it contains, in contrast to the standard document class, the
3630  standard types 
3631 \family sans
3632 \SpecialChar LaTeX
3633
3634 \family default
3635
3636 \family sans
3637 Quotation
3638 \family default
3639
3640 \family sans
3641 Quote
3642 \family default
3643 , and 
3644 \family sans
3645 Verse
3646 \family default
3647 .
3648  Furthermore, there are a number of new letter specific types.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 The appearance of the letter produced by this document class can be controlled
3653  by a number of \SpecialChar LaTeX
3654  commands, which you can put in the \SpecialChar LaTeX
3655  preamble.
3656 \begin_inset Foot
3657 status collapsed
3658
3659 \begin_layout Plain Layout
3660 For example, the standard appearance of the letter`s heading, consisting
3661  of name and address, is quite self-willed.
3662  An 
3663 \begin_inset Quotes eld
3664 \end_inset
3665
3666 ordinary
3667 \begin_inset Quotes erd
3668 \end_inset
3669
3670  heading is produced by the following \SpecialChar LaTeX
3671  commands in the preamble:
3672 \end_layout
3673
3674 \begin_layout LyX-Code
3675
3676 \backslash
3677 firsthead{
3678 \backslash
3679 parbox[b]{
3680 \backslash
3681 textwidth}
3682 \end_layout
3683
3684 \begin_layout LyX-Code
3685   {
3686 \backslash
3687 ignorespaces 
3688 \backslash
3689 fromname
3690 \backslash
3691
3692 \backslash
3693  
3694 \backslash
3695 ignorespaces 
3696 \backslash
3697 fromaddress}} 
3698 \end_layout
3699
3700 \begin_layout LyX-Code
3701
3702 \backslash
3703 nexthead{
3704 \backslash
3705 parbox[b]{
3706 \backslash
3707 textwidth}
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711   {
3712 \backslash
3713 ignorespaces 
3714 \backslash
3715 fromname 
3716 \backslash
3717 hfill 
3718 \backslash
3719 ignorespaces 
3720 \backslash
3721 pagename
3722 \backslash
3723  
3724 \backslash
3725 thepage}}
3726 \end_layout
3727
3728 \end_inset
3729
3730  A detailed German description of such \SpecialChar LaTeX
3731  commands can be found in the Koma-Script
3732  documentation 
3733 \emph on
3734 scrguide
3735 \emph default
3736 .
3737  With it, the letter's author can produce his personal letter layout.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The types 
3742 \family sans
3743 Letter
3744 \family default
3745  and 
3746 \family sans
3747 Opening
3748 \family default
3749  define the beginning of the letter and must be used in every letter.
3750  To emphasize them in the \SpecialChar LyX
3751  document class, they are marked with the letter
3752  
3753 \shape italic
3754 L
3755 \shape default
3756  or 
3757 \shape italic
3758 O
3759 \shape default
3760 , resp.
3761 \begin_inset space ~
3762 \end_inset
3763
3764 in the left margin.
3765  It is possible to write any number of letters in one file.
3766  An 
3767 \family sans
3768 Opening
3769 \family default
3770  type produces a new letter using the same addressee and a 
3771 \family sans
3772 Letter
3773 \family default
3774  type produces a new addressee.
3775  The types 
3776 \family sans
3777 Closing
3778 \family default
3779
3780 \family sans
3781 PS
3782 \family default
3783
3784 \family sans
3785 CC
3786 \family default
3787 , and 
3788 \family sans
3789 Encl
3790 \family default
3791  are ordinary paragraph types and can also be used several times in one
3792  and the same letter.
3793 \end_layout
3794
3795 \begin_layout Itemize
3796
3797 \family sans
3798 Letter
3799 \family default
3800 : produces a paragraph for the addressee and implicitly defines the beginning
3801  of the letter.
3802 \end_layout
3803
3804 \begin_layout Itemize
3805
3806 \family sans
3807 Opening
3808 \family default
3809 : produces a paragraph for the form of address and implicitly produces a
3810  new letter.
3811 \end_layout
3812
3813 \begin_layout Itemize
3814
3815 \family sans
3816 Closing
3817 \family default
3818 : produces a paragraph for a close.
3819 \end_layout
3820
3821 \begin_layout Itemize
3822
3823 \family sans
3824 PS
3825 \family default
3826 : produces a paragraph for a postscript.
3827 \end_layout
3828
3829 \begin_layout Itemize
3830
3831 \family sans
3832 CC
3833 \family default
3834 : produces a paragraph for a distribution list.
3835 \end_layout
3836
3837 \begin_layout Itemize
3838
3839 \family sans
3840 Encl
3841 \family default
3842 : produces a paragraph for enclosures.
3843 \end_layout
3844
3845 \begin_layout Standard
3846 The types 
3847 \family sans
3848 Name
3849 \family default
3850
3851 \family sans
3852 Signature
3853 \family default
3854
3855 \family sans
3856 Address
3857 \family default
3858
3859 \family sans
3860 Telephone
3861 \family default
3862
3863 \family sans
3864 Place
3865 \family default
3866
3867 \family sans
3868 Backaddress
3869 \family default
3870
3871 \family sans
3872 Specialmail
3873 \family default
3874
3875 \family sans
3876 Location
3877 \family default
3878
3879 \family sans
3880 Title
3881 \family default
3882 , and 
3883 \family sans
3884 Subject
3885 \family default
3886  are input types provided with a label to enter information, which will
3887  be processed by the document class.
3888 \begin_inset Foot
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 It could be seen as a matter of inconsequence, that the types 
3893 \family sans
3894 Letter
3895 \family default
3896  and 
3897 \family sans
3898 Opening
3899 \family default
3900  described above are not such input types as well.
3901  Because of the special meaning of those types, however, I have implemented
3902  them as ordinary paragraph types with a one letter mark in the left margin.
3903  Moreover, it would affect my feeling of symmetry, if the 
3904 \family sans
3905 Opening
3906 \family default
3907  type and the 
3908 \family sans
3909 Closing
3910 \family default
3911  type had such a serious different appearance.
3912 \end_layout
3913
3914 \end_inset
3915
3916  The types must be used ahead of the corresponding 
3917 \family sans
3918 Opening
3919 \family default
3920  type.
3921 \end_layout
3922
3923 \begin_layout Standard
3924 An implementation of these types in a WYSIWYG fashion does not seem to make
3925  sense, because the real appearance of the produced letter does not only
3926  depend on the usage of the particular type, but also on other factors.
3927  For example, a signature entered in the 
3928 \family sans
3929 Signature
3930 \family default
3931  type will in the standard behavior appear in the produced letter only,
3932  when in the same letter also a 
3933 \family sans
3934 Closing
3935 \family default
3936  type is used.
3937  The entered value of the 
3938 \family sans
3939 Telephone
3940 \family default
3941  type will in the standard behavior not appear in the produced letter at
3942  all.
3943  The possibility to design the letter`s heading freely is already indicated
3944  in a footnote above.
3945 \end_layout
3946
3947 \begin_layout Standard
3948 The input types can also be used as empty paragraphs.
3949  This makes sense e.
3950 \begin_inset space \thinspace{}
3951 \end_inset
3952
3953 g.
3954 \begin_inset space \space{}
3955 \end_inset
3956
3957 for the 
3958 \family sans
3959 Signature
3960 \family default
3961  type.
3962  If the 
3963 \family sans
3964 Signature
3965 \family default
3966  type is not used at all, in the standard behavior the value of the 
3967 \family sans
3968 Name
3969 \family default
3970  type is used as signature, whereas if an empty 
3971 \family sans
3972 Signature
3973 \family default
3974  type is used, no signature value is defined.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 By using the input types it is possible to write a letter template, containing
3979  filled input types with your personal dates (name, address, etc.) and empty
3980  input types for other dates you want to enter.
3981 \end_layout
3982
3983 \begin_layout Itemize
3984
3985 \family sans
3986 Name
3987 \family default
3988 : sender's name, in the standard behavior appears as a centered paragraph
3989  in small caps in the letter`s heading.
3990 \end_layout
3991
3992 \begin_layout Itemize
3993
3994 \family sans
3995 Signature
3996 \family default
3997 : sender's signature, in the standard behavior appears below the 
3998 \family sans
3999 Closing
4000 \family default
4001  type.
4002  If no 
4003 \family sans
4004 Signature
4005 \family default
4006  type is used, the value of the 
4007 \family sans
4008 Name
4009 \family default
4010  type appears instead.
4011 \end_layout
4012
4013 \begin_layout Itemize
4014
4015 \family sans
4016 Address
4017 \family default
4018 : sender's address, in the standard behavior appears in a centered paragraph
4019  in the letter`s heading below the sender's name.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Telephone
4026 \family default
4027 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4028  variable
4029  
4030 \family typewriter
4031
4032 \backslash
4033 telephonenum
4034 \family default
4035 .
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Place
4042 \family default
4043 : place of the letter`s making.
4044 \end_layout
4045
4046 \begin_layout Itemize
4047
4048 \family sans
4049 Date
4050 \family default
4051 : date of the letter`s making.
4052  
4053 \family sans
4054 Place
4055 \family default
4056  and 
4057 \family sans
4058 Date
4059 \family default
4060 , in the standard behavior, produce the place and the date in a right-aligned
4061  line below the addressee's field.
4062  If an empty 
4063 \family sans
4064 Date
4065 \family default
4066  type is used, neither place nor date appear, independent of the value of
4067  the 
4068 \family sans
4069 Place
4070 \family default
4071  type.
4072  If no 
4073 \family sans
4074 Date
4075 \family default
4076  type is used, the date of the letter `s production is used.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Backaddress
4083 \family default
4084 : sender`s back address, in the standard behavior appears above the addressee's
4085  field in a small sans serif font.
4086 \end_layout
4087
4088 \begin_layout Itemize
4089
4090 \family sans
4091 Specialmail
4092 \family default
4093 : special mail information, in the standard behavior appears underlined
4094  above the addressee's field below the back address.
4095 \end_layout
4096
4097 \begin_layout Itemize
4098
4099 \family sans
4100 Location
4101 \family default
4102 : additional information, in the standard behavior appears on right side
4103  below the addressee`s field.
4104 \end_layout
4105
4106 \begin_layout Itemize
4107
4108 \family sans
4109 Title
4110 \family default
4111 : the letter's title, in the standard behavior appears in a big, bold, sans
4112  serif font above the subject.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \family sans
4118 Subject
4119 \family default
4120 : the letter's subject, in the standard behavior appears in a bold font
4121  above the 
4122 \family sans
4123 Opening
4124 \family default
4125  paragraph.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 The types 
4130 \family sans
4131 Yourref
4132 \family default
4133
4134 \family sans
4135 Yourmail
4136 \family default
4137
4138 \family sans
4139 Myref
4140 \family default
4141
4142 \family sans
4143 Customer
4144 \family default
4145 , and 
4146 \family sans
4147 Invoice
4148 \family default
4149  produce a business letter like line above the 
4150 \family sans
4151 Title
4152 \family default
4153  line containing the fields 
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Your ref.
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Your letter of
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Our ref.
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Customer no.
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185
4186 \begin_inset Quotes eld
4187 \end_inset
4188
4189 Invoice no.
4190 \begin_inset Quotes erd
4191 \end_inset
4192
4193 , and 
4194 \begin_inset Quotes eld
4195 \end_inset
4196
4197 Date
4198 \begin_inset Quotes erd
4199 \end_inset
4200
4201 .
4202  For the date field, the value of the 
4203 \family sans
4204 Date
4205 \family default
4206  type is used.
4207  If one of these 
4208 \begin_inset Quotes eld
4209 \end_inset
4210
4211 business letter types
4212 \begin_inset Quotes erd
4213 \end_inset
4214
4215  is used, the value of the 
4216 \family sans
4217 Place
4218 \family default
4219  type however does not appear, but only the \SpecialChar LaTeX
4220  variable 
4221 \family typewriter
4222
4223 \backslash
4224 fromplace
4225 \family default
4226  is set.
4227  The ordinary output of place and date in a right-aligned line below the
4228  addressee`s field is suppressed.
4229  The types are implemented as input types provided with a label and must
4230  be used ahead of the corresponding 
4231 \family sans
4232 Opening
4233 \family default
4234  type.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Yourref
4241 \family default
4242 : Your ref.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Yourmail
4249 \family default
4250 : Your letter of.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Myref
4257 \family default
4258 : Our ref.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Customer
4265 \family default
4266 : Customer no.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Invoice
4273 \family default
4274 : Invoice no.
4275 \end_layout
4276
4277 \begin_layout Subsubsection
4278 The new letter class: letter (koma-script v.2)
4279 \end_layout
4280
4281 \begin_layout Standard
4282 by 
4283 \noun on
4284 Jürgen Spitzmüller
4285 \end_layout
4286
4287 \begin_layout Standard
4288 \begin_inset VSpace medskip
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Standard
4295 \noindent
4296 Koma-Script version 2.8 has introduced a new letter class 
4297 \family typewriter
4298 scrlttr2
4299 \family default
4300  which supersedes the now unsupported 
4301 \family typewriter
4302 scrlettr
4303 \family default
4304 .
4305  It has — on the \SpecialChar LaTeX
4306  side — a completely new interface and is not compatible
4307  with the old class.
4308  Therefore, \SpecialChar LyX
4309  supports both, though it is recommended you use the new class.
4310 \end_layout
4311
4312 \begin_layout Standard
4313 This class covers the same functionality as 
4314 \emph on
4315 letter (koma-script),
4316 \emph default
4317  and a few more.
4318  The basic items are 
4319 \family sans
4320 Address
4321 \family default
4322  (receiver's address, same as 
4323 \family sans
4324 Letter
4325 \family default
4326  in the old layout), 
4327 \family sans
4328 Opening
4329 \family default
4330 , and 
4331 \family sans
4332 Closing
4333 \family default
4334 .
4335  
4336 \family sans
4337 NextAddress
4338 \family default
4339  will start a new letter (i.
4340 \begin_inset space \thinspace{}
4341 \end_inset
4342
4343 e.
4344 \begin_inset space \space{}
4345 \end_inset
4346
4347 you can write several letters per document).
4348  New elements are sender's 
4349 \family sans
4350 E-Mail
4351 \family default
4352
4353 \family sans
4354 URL
4355 \family default
4356
4357 \family sans
4358 Fax
4359 \family default
4360
4361 \family sans
4362 Bank
4363 \family default
4364  and the possibility to use a 
4365 \family sans
4366 Logo
4367 \family default
4368  (via 
4369 \family sans
4370 Insert\SpecialChar menuseparator
4371 Graphics
4372 \family default
4373 ) in the header.
4374 \end_layout
4375
4376 \begin_layout Standard
4377 The biggest improvement is, though, that the letter's layout is configurable
4378  to meet almost any needs.
4379  This can be done via the preamble or with a special style file (Letter
4380  Class Option, extension 
4381 \family typewriter
4382 *.lco
4383 \family default
4384 ), that will be read in as a class option.
4385 \begin_inset Foot
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 The KOMA package comes with some default 
4390 \family typewriter
4391 *.lco
4392 \family default
4393  files.
4394  There is, for instance, a 
4395 \family typewriter
4396 DIN.lco
4397 \family default
4398  file that follows german typesetting rules, or a 
4399 \family typewriter
4400 KOMAold.lco
4401 \family default
4402  that provides the default layout of the old 
4403 \family typewriter
4404 scrlettr
4405 \family default
4406  class.
4407  The latter can be loaded with the class option 
4408 \family typewriter
4409 KOMAold
4410 \family default
4411 , inserted via the 
4412 \family sans
4413 Layout\SpecialChar menuseparator
4414 Document\SpecialChar menuseparator
4415 Extra Options
4416 \family default
4417  field.
4418 \end_layout
4419
4420 \end_inset
4421
4422  Have a look at the 
4423 \emph on
4424 koma-letter2
4425 \emph default
4426  template that is included in \SpecialChar LyX
4427  for examples.
4428  A detailed description is to be found in the Koma-Script documentation
4429  (
4430 \emph on
4431 scrguide
4432 \emph default
4433 ).
4434 \end_layout
4435
4436 \begin_layout Subsubsection
4437 Problems
4438 \end_layout
4439
4440 \begin_layout Standard
4441 Visualizing the Koma-Script document classes in \SpecialChar LyX
4442 , the \SpecialChar LyX
4443  internals cause some
4444  problems.
4445 \end_layout
4446
4447 \begin_layout Itemize
4448 The chapter number of a 
4449 \family sans
4450 Chapter
4451 \family default
4452  type appears on a line of its own above the chapter heading instead of
4453  appearing in the same line ahead of it.
4454  The cause for that is the \SpecialChar LyX
4455  internal behavior for the labeltype 
4456 \family sans
4457 Counter_Chapter
4458 \family default
4459  in the layout file.
4460 \end_layout
4461
4462 \begin_layout Itemize
4463 The headings of the types 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471  are only put in the 
4472 \begin_inset Quotes eld
4473 \end_inset
4474
4475 true
4476 \begin_inset Quotes erd
4477 \end_inset
4478
4479  \SpecialChar LaTeX
4480  table of contents, but not in the \SpecialChar LyX
4481  table of contents (
4482 \family sans
4483 Document\SpecialChar menuseparator
4484 Table
4485 \begin_inset space ~
4486 \end_inset
4487
4488 of
4489 \begin_inset space ~
4490 \end_inset
4491
4492 Contents
4493 \family default
4494 ).
4495 \end_layout
4496
4497 \begin_layout Itemize
4498 The paragraphs in a 
4499 \emph on
4500 letter
4501 \emph default
4502  document class appear in a skip separation mode, not indented.
4503  This is the standard behavior, no special \SpecialChar LaTeX
4504  commands are needed for that.
4505  But in the 
4506 \family sans
4507 Document\SpecialChar menuseparator
4508 Settings
4509 \family default
4510  dialog the corresponding radio button indicates 
4511 \family sans
4512 Indent
4513 \family default
4514 .
4515  A 
4516 \family sans
4517 Skip
4518 \family default
4519  value always has the effect that extra \SpecialChar LaTeX
4520  commands are inserted in the document
4521  to produce the gap, which is not what is wanted in this case.
4522 \end_layout
4523
4524 \begin_layout Section
4525
4526 \change_inserted 564990737 1670439534
4527 Articles
4528 \end_layout
4529
4530 \begin_layout Standard
4531
4532 \change_inserted 564990737 1670794710
4533 See also the document classes in the Collections (section
4534 \begin_inset space ~
4535 \end_inset
4536
4537
4538 \begin_inset CommandInset ref
4539 LatexCommand ref
4540 reference "sec:Collections"
4541
4542 \end_inset
4543
4544 ).
4545 \end_layout
4546
4547 \begin_layout Subsection
4548
4549 \change_inserted 564990737 1670794716
4550
4551 \lang american
4552 A&A Paper
4553 \end_layout
4554
4555 \begin_layout Standard
4556
4557 \change_inserted 564990737 1670794716
4558
4559 \lang american
4560 Original by 
4561 \noun on
4562 Peter Sütterlin
4563 \noun default
4564 ; updated by the \SpecialChar LyX
4565  Team
4566 \end_layout
4567
4568 \begin_layout Subsubsection
4569
4570 \change_inserted 564990737 1670794716
4571
4572 \lang american
4573 Introduction
4574 \end_layout
4575
4576 \begin_layout Standard
4577
4578 \change_inserted 564990737 1670794716
4579
4580 \lang american
4581 This section describes how \SpecialChar LyX
4582  can be used to write articles for submission
4583  to the scientific journal 
4584 \emph on
4585 Astronomy and Astrophysics
4586 \emph default
4587  (
4588 \begin_inset CommandInset href
4589 LatexCommand href
4590 name "aa-package"
4591 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4592 literal "false"
4593
4594 \end_inset
4595
4596 ) using Version 9.1 of the document class 
4597 \family typewriter
4598 aa.cls
4599 \family default
4600 ; information about it is available at 
4601 \begin_inset Flex URL
4602 status collapsed
4603
4604 \begin_layout Plain Layout
4605
4606 \change_inserted 564990737 1670794716
4607
4608 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4609 \change_unchanged
4610
4611 \end_layout
4612
4613 \end_inset
4614
4615 .
4616 \end_layout
4617
4618 \begin_layout Standard
4619
4620 \change_inserted 564990737 1670794716
4621
4622 \lang american
4623 A manual comes together with the package and should be consulted before
4624  installing this document class as described in the 
4625 \emph on
4626 Installing New Document Classe
4627 \emph default
4628 s section of the 
4629 \emph on
4630 Customization
4631 \emph default
4632  manual.
4633  
4634 \end_layout
4635
4636 \begin_layout Standard
4637
4638 \change_inserted 564990737 1670794716
4639
4640 \lang american
4641 \begin_inset Note Greyedout
4642 status open
4643
4644 \begin_layout Plain Layout
4645
4646 \change_inserted 564990737 1670794716
4647
4648 \lang american
4649 Please note that the publisher of the journal was changed from Springer
4650  to EDP Sciences starting January 1, 2001.
4651  That change also involved some slight changes to the style files, namely
4652  the removal of the thesaurus command.
4653  If you have an older version installed, please upgrade.
4654  For information about compatibility with the old (version 4) layout, please
4655  refer to the comments in 
4656 \family typewriter
4657 \SpecialChar LyX
4658 Dir/layouts/aapaper.layout
4659 \family default
4660 .
4661 \end_layout
4662
4663 \end_inset
4664
4665
4666 \end_layout
4667
4668 \begin_layout Subsubsection
4669
4670 \change_inserted 564990737 1670794716
4671
4672 \lang american
4673 Getting started
4674 \end_layout
4675
4676 \begin_layout Standard
4677
4678 \change_inserted 564990737 1670794716
4679
4680 \lang american
4681 It is recommended you start from the template 
4682 \emph on
4683 aa.lyx
4684 \emph default
4685  in the menu 
4686 \family sans
4687 \bar under
4688 F
4689 \bar default
4690 ile\SpecialChar menuseparator
4691 New
4692 \begin_inset space ~
4693 \end_inset
4694
4695 fro
4696 \bar under
4697 m
4698 \bar default
4699
4700 \begin_inset space ~
4701 \end_inset
4702
4703 Template
4704 \family default
4705 .
4706  If you are not using the template, note the following settings:
4707 \end_layout
4708
4709 \begin_layout Itemize
4710
4711 \change_inserted 564990737 1670794716
4712
4713 \lang american
4714 Select 
4715 \family sans
4716 article (A&A)
4717 \family default
4718  in the 
4719 \family sans
4720 \bar under
4721 D
4722 \bar default
4723 ocument\SpecialChar menuseparator
4724
4725 \bar under
4726 S
4727 \bar default
4728 ettings\SpecialChar menuseparator
4729 Document
4730 \begin_inset space ~
4731 \end_inset
4732
4733 Class
4734 \family default
4735  dialog (OK, that one was obvious).
4736 \end_layout
4737
4738 \begin_layout Itemize
4739
4740 \change_inserted 564990737 1670794716
4741
4742 \lang american
4743 Don't change the 
4744 \family sans
4745 Headings
4746 \begin_inset space ~
4747 \end_inset
4748
4749
4750 \bar under
4751 s
4752 \bar default
4753 tyle
4754 \family default
4755  in the 
4756 \family sans
4757 Page
4758 \begin_inset space ~
4759 \end_inset
4760
4761 Layout
4762 \family default
4763  dialog: leave it set to 
4764 \family sans
4765 Default
4766 \family default
4767 .
4768  The whole layout is done by the macros, you shouldn't change anything.
4769 \end_layout
4770
4771 \begin_layout Subsubsection
4772
4773 \change_inserted 564990737 1670794716
4774
4775 \lang american
4776 The header block
4777 \end_layout
4778
4779 \begin_layout Standard
4780
4781 \change_inserted 564990737 1670794716
4782
4783 \lang american
4784 First thing to enter is the header information.
4785  It consists of five entries, of which one is optional.
4786  They are
4787 \end_layout
4788
4789 \begin_layout Itemize
4790
4791 \change_inserted 564990737 1670794716
4792
4793 \family sans
4794 \lang american
4795 Title
4796 \family default
4797 : [required] 
4798 \end_layout
4799
4800 \begin_layout Itemize
4801
4802 \change_inserted 564990737 1670794716
4803
4804 \family sans
4805 \lang american
4806 Subtitle
4807 \family default
4808 : [optional] 
4809 \end_layout
4810
4811 \begin_layout Itemize
4812
4813 \change_inserted 564990737 1670794716
4814
4815 \family sans
4816 \lang american
4817 Author
4818 \family default
4819 : [required]
4820 \end_layout
4821
4822 \begin_layout Itemize
4823
4824 \change_inserted 564990737 1670794716
4825
4826 \family typewriter
4827 \lang american
4828 Institute
4829 \family default
4830 : [required]
4831 \end_layout
4832
4833 \begin_layout Itemize
4834
4835 \change_inserted 564990737 1670794716
4836
4837 \family sans
4838 \lang american
4839 Date
4840 \family default
4841 : [required].
4842  Suggested format is 
4843 \family typewriter
4844 Received: <date>; Accepted <date> 
4845 \end_layout
4846
4847 \begin_layout Standard
4848
4849 \change_inserted 564990737 1670794716
4850
4851 \lang american
4852 Although the order of the single header entries doesn't matter it is advised
4853  to keep the above sequence, just to get the best optics and meets the layout
4854  of the real document.
4855 \end_layout
4856
4857 \begin_layout Standard
4858
4859 \change_inserted 564990737 1670794716
4860
4861 \lang american
4862 If you want to place footnotes in the header block, e.
4863 \begin_inset space \thinspace{}
4864 \end_inset
4865
4866 g.
4867 \begin_inset space \space{}
4868 \end_inset
4869
4870 to state your present address, just use the standard footnote via the menu
4871  
4872 \family sans
4873 \bar under
4874 I
4875 \bar default
4876 nsert\SpecialChar menuseparator
4877
4878 \bar under
4879 F
4880 \bar default
4881 ootnote.
4882
4883 \family default
4884  \SpecialChar LyX
4885  will automagically use the term 
4886 \family typewriter
4887
4888 \backslash
4889 thanks{}
4890 \family default
4891  in that case.
4892 \end_layout
4893
4894 \begin_layout Standard
4895
4896 \change_inserted 564990737 1670794716
4897
4898 \lang american
4899 In addition to these topics, the macros use three additional \SpecialChar LaTeX
4900  commands that
4901  have no counterpart in \SpecialChar LyX
4902 :
4903 \end_layout
4904
4905 \begin_layout Itemize
4906
4907 \change_inserted 564990737 1670794716
4908
4909 \family typewriter
4910 \lang american
4911
4912 \backslash
4913 and
4914 \family default
4915  to separate different names for more than one author and institute, respectivel
4916 y.
4917 \end_layout
4918
4919 \begin_layout Itemize
4920
4921 \change_inserted 564990737 1670794716
4922
4923 \family typewriter
4924 \lang american
4925
4926 \backslash
4927 inst{<nr>}
4928 \family default
4929  to mark corresponding author/institute pairs.
4930  The institutes are numbered sequentially as they appear in the 
4931 \family sans
4932 Institute
4933 \family default
4934  field, so you have to put a marker to each author.
4935 \end_layout
4936
4937 \begin_layout Itemize
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \family typewriter
4942 \lang american
4943
4944 \backslash
4945 email{address}
4946 \family default
4947  to supply an email address for fast contact.
4948 \end_layout
4949
4950 \begin_layout Standard
4951
4952 \change_inserted 564990737 1670794716
4953
4954 \lang american
4955 In all cases, the appropriate command has to be entered as \SpecialChar TeX
4956  code in \SpecialChar LyX
4957 .
4958  See the examples in the template and in the file 
4959 \emph on
4960 aa_sample.lyx
4961 \emph default
4962  in the 
4963 \family sans
4964 Examples
4965 \family default
4966  directory.
4967  
4968 \end_layout
4969
4970 \begin_layout Subsubsection
4971
4972 \change_inserted 564990737 1670794716
4973
4974 \lang american
4975 The abstract
4976 \end_layout
4977
4978 \begin_layout Standard
4979
4980 \change_inserted 564990737 1670794716
4981
4982 \lang american
4983 The abstract should immediately follow the header block and must contain
4984  five tokens: 
4985 \family typewriter
4986
4987 \backslash
4988 abstract{}{}{}{}{}
4989 \family default
4990  
4991 \end_layout
4992
4993 \begin_layout Enumerate
4994
4995 \change_inserted 564990737 1670794716
4996
4997 \family typewriter
4998 \lang american
4999 context heading
5000 \family default
5001  (optional) {} leave it empty if necessary 
5002 \end_layout
5003
5004 \begin_layout Enumerate
5005
5006 \change_inserted 564990737 1670794716
5007
5008 \family typewriter
5009 \lang american
5010 aims heading
5011 \family default
5012  (mandatory) {} 
5013 \end_layout
5014
5015 \begin_layout Enumerate
5016
5017 \change_inserted 564990737 1670794716
5018
5019 \family typewriter
5020 \lang american
5021 methods heading
5022 \family default
5023  (mandatory) {} 
5024 \end_layout
5025
5026 \begin_layout Enumerate
5027
5028 \change_inserted 564990737 1670794716
5029
5030 \family typewriter
5031 \lang american
5032 results heading
5033 \family default
5034  (mandatory) {} 
5035 \end_layout
5036
5037 \begin_layout Enumerate
5038
5039 \change_inserted 564990737 1670794716
5040
5041 \family typewriter
5042 \lang american
5043 conclusions heading
5044 \family default
5045  (optional) {} leave it empty if necessary 
5046 \end_layout
5047
5048 \begin_layout Standard
5049
5050 \change_inserted 564990737 1670794716
5051
5052 \lang american
5053 (NB.
5054  This structure not shown in 
5055 \emph on
5056 aa_sample.lyx.
5057 \emph default
5058 )
5059 \end_layout
5060
5061 \begin_layout Subsubsection
5062
5063 \change_inserted 564990737 1670794716
5064
5065 \lang american
5066 Supported environments
5067 \end_layout
5068
5069 \begin_layout Standard
5070
5071 \change_inserted 564990737 1670794716
5072
5073 \lang american
5074 The A&A paper layout supports the following environments for structuring
5075  your text:
5076 \end_layout
5077
5078 \begin_layout Itemize
5079
5080 \change_inserted 564990737 1670794716
5081
5082 \family sans
5083 \lang american
5084 Standard
5085 \end_layout
5086
5087 \begin_layout Itemize
5088
5089 \change_inserted 564990737 1670794716
5090
5091 \family sans
5092 \lang american
5093 Section
5094 \end_layout
5095
5096 \begin_layout Itemize
5097
5098 \change_inserted 564990737 1670794716
5099
5100 \family sans
5101 \lang american
5102 Subsection
5103 \end_layout
5104
5105 \begin_layout Itemize
5106
5107 \change_inserted 564990737 1670794716
5108
5109 \family sans
5110 \lang american
5111 Subsubsection
5112 \end_layout
5113
5114 \begin_layout Itemize
5115
5116 \change_inserted 564990737 1670794716
5117
5118 \family sans
5119 \lang american
5120 Itemize
5121 \end_layout
5122
5123 \begin_layout Itemize
5124
5125 \change_inserted 564990737 1670794716
5126
5127 \family sans
5128 \lang american
5129 Enumerate
5130 \end_layout
5131
5132 \begin_layout Itemize
5133
5134 \change_inserted 564990737 1670794716
5135
5136 \family sans
5137 \lang american
5138 Description
5139 \end_layout
5140
5141 \begin_layout Itemize
5142
5143 \change_inserted 564990737 1670794716
5144
5145 \family sans
5146 \lang american
5147 Caption
5148 \end_layout
5149
5150 \begin_layout Itemize
5151
5152 \change_inserted 564990737 1670794716
5153
5154 \family sans
5155 \lang american
5156 Abstract
5157 \end_layout
5158
5159 \begin_layout Itemize
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family sans
5164 \lang american
5165 Acknowledgment
5166 \end_layout
5167
5168 \begin_layout Itemize
5169
5170 \change_inserted 564990737 1670794716
5171
5172 \family sans
5173 \lang american
5174 Bibliography
5175 \end_layout
5176
5177 \begin_layout Itemize
5178
5179 \change_inserted 564990737 1670794716
5180
5181 \family sans
5182 \lang american
5183 \SpecialChar LaTeX
5184
5185 \end_layout
5186
5187 \begin_layout Subsubsection
5188
5189 \change_inserted 564990737 1670794716
5190
5191 \lang american
5192 Commands not supported by \SpecialChar LyX
5193
5194 \end_layout
5195
5196 \begin_layout Standard
5197
5198 \change_inserted 564990737 1670794716
5199
5200 \lang american
5201 Some commands are not yet supported by the 
5202 \family sans
5203 paper (A&A)
5204 \family default
5205  layout for \SpecialChar LyX
5206 .
5207  Some have already been mentioned.
5208  For the sake of completeness, they are listed all together here:
5209 \end_layout
5210
5211 \begin_layout Itemize
5212
5213 \change_inserted 564990737 1670794716
5214
5215 \family typewriter
5216 \lang american
5217
5218 \backslash
5219 and
5220 \end_layout
5221
5222 \begin_layout Itemize
5223
5224 \change_inserted 564990737 1670794716
5225
5226 \family typewriter
5227 \lang american
5228
5229 \backslash
5230 email
5231 \end_layout
5232
5233 \begin_layout Itemize
5234
5235 \change_inserted 564990737 1670794716
5236
5237 \family typewriter
5238 \lang american
5239
5240 \backslash
5241 inst{}
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family typewriter
5249 \lang american
5250
5251 \backslash
5252 keywords{}
5253 \end_layout
5254
5255 \begin_layout Itemize
5256
5257 \change_inserted 564990737 1670794716
5258
5259 \family typewriter
5260 \lang american
5261
5262 \backslash
5263 object{}
5264 \end_layout
5265
5266 \begin_layout Standard
5267
5268 \change_inserted 564990737 1670794716
5269
5270 \lang american
5271 If you want to use any of these commands, you have to enter them yourself.
5272  
5273 \family typewriter
5274 Do not forget to use
5275 \family sans
5276  
5277 \bar under
5278 I
5279 \bar default
5280 nsert\SpecialChar menuseparator
5281 \SpecialChar TeX
5282
5283 \begin_inset space ~
5284 \end_inset
5285
5286 Code
5287 \family default
5288 \series bold
5289 !
5290 \end_layout
5291
5292 \begin_layout Subsubsection
5293
5294 \change_inserted 564990737 1670794716
5295
5296 \lang american
5297 Figure and Table Floats
5298 \end_layout
5299
5300 \begin_layout Standard
5301
5302 \change_inserted 564990737 1670794716
5303
5304 \lang american
5305 \SpecialChar LyX
5306  provides support for the necessary float environments 
5307 \family sans
5308 figure, figure*, table
5309 \family default
5310  and 
5311 \family sans
5312 table*
5313 \family default
5314 , therefore we won't tell much about it here.
5315  Refer to the 
5316 \emph on
5317 User's
5318 \begin_inset space ~
5319 \end_inset
5320
5321 Guide
5322 \emph default
5323 .
5324  Just remember that tables should be left-aligned.
5325  For that, select the table and change the alignment in 
5326 \family sans
5327 \bar under
5328 E
5329 \bar default
5330 dit\SpecialChar menuseparator
5331
5332 \bar under
5333 P
5334 \bar default
5335 aragraph
5336 \begin_inset space ~
5337 \end_inset
5338
5339 Settings.
5340 \end_layout
5341
5342 \begin_layout Standard
5343
5344 \change_inserted 564990737 1670794716
5345
5346 \lang american
5347 There is only one special thing: the figures with a caption beside the figure.
5348  To create such a figure, you have to do the following:
5349 \end_layout
5350
5351 \begin_layout Enumerate
5352
5353 \change_inserted 564990737 1670794716
5354
5355 \lang american
5356 Create a wide figure float: 
5357 \family sans
5358 \bar under
5359 I
5360 \bar default
5361 nsert\SpecialChar menuseparator
5362 Flo
5363 \bar under
5364 a
5365 \bar default
5366 t\SpecialChar menuseparator
5367 Figure
5368 \family default
5369 , then, from within the float, use the menu 
5370 \family sans
5371 \bar under
5372 E
5373 \bar default
5374 dit\SpecialChar menuseparator
5375 Flo
5376 \bar under
5377 a
5378 \bar default
5379 t
5380 \begin_inset space ~
5381 \end_inset
5382
5383 Settings
5384 \family default
5385  and check 
5386 \family sans
5387 \bar under
5388 S
5389 \bar default
5390 pan
5391 \begin_inset space ~
5392 \end_inset
5393
5394 columns
5395 \family default
5396  in the 
5397 \family sans
5398 float
5399 \family default
5400  dialog.
5401 \end_layout
5402
5403 \begin_layout Enumerate
5404
5405 \change_inserted 564990737 1670794716
5406
5407 \lang american
5408 Enter your caption text.
5409 \end_layout
5410
5411 \begin_layout Enumerate
5412
5413 \change_inserted 564990737 1670794716
5414
5415 \lang american
5416 Press 
5417 \family sans
5418 Return
5419 \family default
5420  to move the cursor above the caption.
5421 \end_layout
5422
5423 \begin_layout Enumerate
5424
5425 \change_inserted 564990737 1670794716
5426
5427 \lang american
5428 Insert your figure
5429 \end_layout
5430
5431 \begin_layout Enumerate
5432
5433 \change_inserted 564990737 1670794716
5434
5435 \lang american
5436 Position the cursor after the figure and insert a horizontal fill by using
5437  the menu: 
5438 \family sans
5439 \bar under
5440 I
5441 \bar default
5442 nsert\SpecialChar menuseparator
5443 F
5444 \bar under
5445 o
5446 \bar default
5447 rmatting\SpecialChar menuseparator
5448 H
5449 \bar under
5450 o
5451 \bar default
5452 rizontal
5453 \begin_inset space ~
5454 \end_inset
5455
5456 Space
5457 \family default
5458  to open the 
5459 \family sans
5460 space
5461 \family default
5462  dialog and select the 
5463 \family sans
5464 Horizontal fill
5465 \family default
5466  option from the 
5467 \family sans
5468 \bar under
5469 S
5470 \bar default
5471 pacing
5472 \family default
5473  pull-down menu.
5474 \end_layout
5475
5476 \begin_layout Enumerate
5477
5478 \change_inserted 564990737 1670794716
5479
5480 \lang american
5481 Switch to \SpecialChar LaTeX
5482  mode: 
5483 \family sans
5484 M-c
5485 \begin_inset space ~
5486 \end_inset
5487
5488 t
5489 \family default
5490 .
5491 \end_layout
5492
5493 \begin_layout Enumerate
5494
5495 \change_inserted 564990737 1670794716
5496
5497 \lang american
5498 Enter 
5499 \family typewriter
5500
5501 \backslash
5502 parbox[b]{55mm}{
5503 \family default
5504  
5505 \emph on
5506 Do not close the brace!
5507 \end_layout
5508
5509 \begin_layout Enumerate
5510
5511 \change_inserted 564990737 1670794716
5512
5513 \lang american
5514 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5515  mode and insert
5516  the closing brace: 
5517 \family sans
5518 M-c
5519 \begin_inset space ~
5520 \end_inset
5521
5522 t
5523 \family default
5524  
5525 \family typewriter
5526 }
5527 \family default
5528 .
5529 \end_layout
5530
5531 \begin_layout Standard
5532
5533 \change_inserted 564990737 1670794716
5534
5535 \lang american
5536 Also, refer to the figures in the file 
5537 \emph on
5538 aa_sample.lyx
5539 \emph default
5540  in the 
5541 \family sans
5542 Examples
5543 \family default
5544  directory.
5545 \end_layout
5546
5547 \begin_layout Subsubsection
5548
5549 \change_inserted 564990737 1670794716
5550
5551 \lang american
5552 Referee layout
5553 \end_layout
5554
5555 \begin_layout Standard
5556
5557 \change_inserted 564990737 1670794716
5558
5559 \lang american
5560 For submission, the paper has to be formatted in a special double-spacing
5561  layout.
5562  For this purpose, you have to add the option 
5563 \family typewriter
5564 referee
5565 \family default
5566  to the 
5567 \family sans
5568 Cus
5569 \bar under
5570 t
5571 \bar default
5572 om Class
5573 \begin_inset space ~
5574 \end_inset
5575
5576 options
5577 \family default
5578  in the 
5579 \family sans
5580 \bar under
5581 D
5582 \bar default
5583 ocument\SpecialChar menuseparator
5584
5585 \bar under
5586 S
5587 \bar default
5588 ettings\SpecialChar menuseparator
5589 Document
5590 \begin_inset space ~
5591 \end_inset
5592
5593 Class
5594 \family default
5595  dialog.
5596  
5597 \end_layout
5598
5599 \begin_layout Subsubsection
5600
5601 \change_inserted 564990737 1670794716
5602
5603 \lang american
5604 The example paper
5605 \end_layout
5606
5607 \begin_layout Standard
5608
5609 \change_inserted 564990737 1670794716
5610
5611 \lang american
5612 The example paper 
5613 \emph on
5614 aa_sample.lyx
5615 \emph default
5616  was written with \SpecialChar LyX
5617 .
5618  It is the example paper from the original macro package, 
5619 \family typewriter
5620 aa.dem
5621 \family default
5622  in the 
5623 \begin_inset CommandInset href
5624 LatexCommand href
5625 name "aa-package"
5626 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5627 literal "false"
5628
5629 \end_inset
5630
5631 , but translated to \SpecialChar LyX
5632  using the older unstructured abstract type.
5633  Use it for inspiration, and compare the \SpecialChar LaTeX
5634  code in 
5635 \family typewriter
5636 aa.dem
5637 \family default
5638  with the \SpecialChar LyX
5639  way of writing.
5640 \end_layout
5641
5642 \begin_layout Subsection
5643 AAS\SpecialChar TeX
5644
5645 \end_layout
5646
5647 \begin_layout Standard
5648 by 
5649 \noun on
5650 Mike Ressler
5651 \end_layout
5652
5653 \begin_layout Subsubsection
5654 Introduction
5655 \end_layout
5656
5657 \begin_layout Standard
5658 AAS\SpecialChar TeX
5659  is a set of macros produced by the American Astronomical Society to
5660  facilitate electronic manuscript submission to the three journals they
5661  publish: the Astrophysical Journal (including the Letters and Supplement),
5662  the Astronomical Journal, and the Publications of the Astronomical Society
5663  of the Pacific.
5664  \SpecialChar LyX
5665  has proven to be an excellent tool for generating these documents, especially
5666  given its equation, citation, and figure handling capabilities.
5667  \SpecialChar LyX
5668  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5669  is the version described here, or higher.
5670  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5671 2.09 and are fundamentally
5672  incompatible with \SpecialChar LyX
5673 .
5674  The AAS\SpecialChar TeX
5675  package may be downloaded from the AAS\SpecialChar TeX
5676  Web site
5677 \end_layout
5678
5679 \begin_layout Standard
5680 \begin_inset VSpace medskip
5681 \end_inset
5682
5683
5684 \end_layout
5685
5686 \begin_layout Standard
5687 \align center
5688 \begin_inset Flex URL
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692
5693 https://aas.org/aastex/aastex-downloads
5694 \end_layout
5695
5696 \end_inset
5697
5698
5699 \end_layout
5700
5701 \begin_layout Standard
5702 \begin_inset VSpace medskip
5703 \end_inset
5704
5705
5706 \end_layout
5707
5708 \begin_layout Standard
5709 A complete user guide is contained in that package and you should familiarize
5710  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5711 .
5712  \SpecialChar LyX
5713  will not reduce the need to figure out all the AAS\SpecialChar TeX
5714  commands, it will only
5715  reduce the drudgery of typing everything in.
5716  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5717  document conforms
5718  completely to the requirements of the journal to which you are submitting
5719  your paper.
5720 \end_layout
5721
5722 \begin_layout Subsubsection
5723 Starting a New Paper
5724 \end_layout
5725
5726 \begin_layout Standard
5727 I strongly suggest that you start with the AAS\SpecialChar TeX
5728  template file.
5729  Click on 
5730 \family sans
5731 File\SpecialChar menuseparator
5732 New from
5733 \family default
5734  
5735 \family sans
5736 Template
5737 \family default
5738 , enter the new file name, then choose the 
5739 \family typewriter
5740 aastex6.lyx
5741 \family default
5742  template.
5743  This will show the most common fields found in a manuscript.
5744  Simply overwrite the existing text (including the brackets, 
5745 \family typewriter
5746 <>
5747 \family default
5748 ) with the correct information.
5749  Many of the AAS\SpecialChar TeX
5750  commands and environments can be implemented directly in
5751  \SpecialChar LyX
5752 , but some cannot.
5753  For commands such as these, the \SpecialChar LaTeX
5754  code must be entered directly and marked
5755  as such.
5756  Such commands are referred to as \SpecialChar TeX
5757  code, or Evil Red Text.
5758  I tried to minimize the amount of \SpecialChar TeX
5759  code needed in an AAS\SpecialChar TeX
5760  document.
5761 \end_layout
5762
5763 \begin_layout Subsubsection
5764 Finishing Your Paper
5765 \end_layout
5766
5767 \begin_layout Standard
5768 When the paper is finished to your satisfaction and previews/prints correctly,
5769  there are a few 
5770 \begin_inset Quotes eld
5771 \end_inset
5772
5773 postprocessing
5774 \begin_inset Quotes erd
5775 \end_inset
5776
5777  actions which need to be done before you submit it to the journals.
5778  
5779 \end_layout
5780
5781 \begin_layout Enumerate
5782 Export your paper as a \SpecialChar LaTeX
5783  file (
5784 \family sans
5785 File\SpecialChar menuseparator
5786 Export\SpecialChar menuseparator
5787 \SpecialChar LaTeX
5788
5789 \family default
5790 ).
5791  
5792 \end_layout
5793
5794 \begin_layout Enumerate
5795 Edit the resulting 
5796 \family typewriter
5797 .tex
5798 \family default
5799  file with your favorite text editor
5800 \end_layout
5801
5802 \begin_deeper
5803 \begin_layout Enumerate
5804 remove the comment lines before the 
5805 \family typewriter
5806
5807 \backslash
5808 documentclass
5809 \family default
5810  command
5811 \end_layout
5812
5813 \begin_layout Enumerate
5814 remove the 
5815 \family typewriter
5816
5817 \backslash
5818 usepackage...{fontenc}
5819 \family default
5820  line if it appears (usually just after 
5821 \family typewriter
5822
5823 \backslash
5824 documentclass
5825 \family default
5826 }; also remove the 
5827 \family typewriter
5828
5829 \backslash
5830 secnumdepth
5831 \family default
5832  line if it appears.
5833 \end_layout
5834
5835 \begin_layout Enumerate
5836 remove everything between (and including) the 
5837 \family typewriter
5838
5839 \backslash
5840 makeatletter
5841 \family default
5842  and 
5843 \family typewriter
5844
5845 \backslash
5846 makeatother
5847 \family default
5848  commands, except for any commands you specifically put into the \SpecialChar LaTeX
5849  preamble
5850  (which should appear immediately after the 
5851 \begin_inset Quotes eld
5852 \end_inset
5853
5854 User specified \SpecialChar LaTeX
5855  commands
5856 \begin_inset Quotes erd
5857 \end_inset
5858
5859  comment in the 
5860 \family typewriter
5861 .tex
5862 \family default
5863  file).
5864 \end_layout
5865
5866 \end_deeper
5867 \begin_layout Enumerate
5868 Run the resulting file through \SpecialChar LaTeX
5869  to make sure it still processes correctly.
5870 \end_layout
5871
5872 \begin_layout Enumerate
5873 Reread the journal requirements to make sure your filenames and formats
5874  are correct.
5875 \end_layout
5876
5877 \begin_layout Enumerate
5878 Submit it.
5879 \end_layout
5880
5881 \begin_layout Subsubsection
5882 Comments On Specific Commands
5883 \end_layout
5884
5885 \begin_layout Standard
5886 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
5887  commands: the
5888  AAS\SpecialChar TeX
5889  User Guide (
5890 \family typewriter
5891 aasguide.tex
5892 \family default
5893 ) gives a good description of each.
5894  Thus it's probably easiest for me to go down the list as found in the guide
5895  and offer comments where necessary.
5896  So let's begin \SpecialChar ldots
5897
5898 \end_layout
5899
5900 \begin_layout Paragraph
5901 Things that work as expected
5902 \end_layout
5903
5904 \begin_layout Standard
5905 Because they work as you might expect, I simply list them and the section
5906  they are found in: 
5907 \family typewriter
5908
5909 \backslash
5910 documentclass
5911 \family default
5912  (2.1.1), 
5913 \family typewriter
5914
5915 \backslash
5916 begin{document}
5917 \family default
5918  (2.2), 
5919 \family typewriter
5920
5921 \backslash
5922 title
5923 \family default
5924  (2.3), 
5925 \family typewriter
5926
5927 \backslash
5928 author
5929 \family default
5930  (2.3), 
5931 \family typewriter
5932
5933 \backslash
5934 affil
5935 \family default
5936  (2.3), 
5937 \family typewriter
5938
5939 \backslash
5940 abstract
5941 \family default
5942  (2.4), 
5943 \family typewriter
5944
5945 \backslash
5946 keywords
5947 \family default
5948  (2.5), 
5949 \family typewriter
5950
5951 \backslash
5952 section
5953 \family default
5954  (2.7), 
5955 \family typewriter
5956
5957 \backslash
5958 subsection
5959 \family default
5960  (2.7), 
5961 \family typewriter
5962
5963 \backslash
5964 subsubsection
5965 \family default
5966  (2.7), 
5967 \family typewriter
5968
5969 \backslash
5970 paragraph
5971 \family default
5972  (2.7), 
5973 \family typewriter
5974
5975 \backslash
5976 facility
5977 \family default
5978  (2.10), 
5979 \family typewriter
5980
5981 \backslash
5982 begin{displaymath}
5983 \family default
5984  (2.12), 
5985 \family typewriter
5986
5987 \backslash
5988 begin{equation}
5989 \family default
5990  (2.12), 
5991 \family typewriter
5992
5993 \backslash
5994 begin{eqnarray}
5995 \family default
5996  (2.12), 
5997 \family typewriter
5998
5999 \backslash
6000 begin{mathletters}
6001 \family default
6002  (2.12), 
6003 \family typewriter
6004
6005 \backslash
6006 begin{thebibliography}
6007 \family default
6008  (2.13.1), 
6009 \family typewriter
6010
6011 \backslash
6012 bibitem
6013 \family default
6014  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6015  graphicx figure commands (2.14.1), 
6016 \family typewriter
6017
6018 \backslash
6019 begin{table}
6020 \family default
6021  (2.15.4), 
6022 \family typewriter
6023
6024 \backslash
6025 begin{tabular}
6026 \family default
6027  (2.15.4), 
6028 \family typewriter
6029
6030 \backslash
6031 caption
6032 \family default
6033  (2.15.4), 
6034 \family typewriter
6035
6036 \backslash
6037 label
6038 \family default
6039  (2.15.4, amongst other places), 
6040 \family typewriter
6041
6042 \backslash
6043 tablerefs
6044 \family default
6045  (2.15.5), 
6046 \family typewriter
6047
6048 \backslash
6049 tablecomments
6050 \family default
6051  (2.15.5), 
6052 \family typewriter
6053
6054 \backslash
6055 url
6056 \family default
6057  (2.17.4), 
6058 \family typewriter
6059
6060 \backslash
6061 end{document}
6062 \family default
6063  (2.18).
6064 \end_layout
6065
6066 \begin_layout Standard
6067 The following style options also work correctly: 
6068 \family typewriter
6069 longabstract
6070 \family default
6071  (2.4), 
6072 \family typewriter
6073 preprint
6074 \family default
6075  (3.2.1), 
6076 \family typewriter
6077 preprint2
6078 \family default
6079  (3.2.2), 
6080 \family typewriter
6081 eqsecnum
6082 \family default
6083  (3.3), 
6084 \family typewriter
6085 flushrt
6086 \family default
6087  (3.4).
6088  Simply put them in the 
6089 \family sans
6090 Options
6091 \family default
6092  box in 
6093 \family sans
6094 Layout\SpecialChar menuseparator
6095 Document
6096 \family default
6097 .
6098 \end_layout
6099
6100 \begin_layout Paragraph
6101 Things that work, but require more comment
6102 \end_layout
6103
6104 \begin_layout Standard
6105 The following items work, but require a little more discussion:
6106 \end_layout
6107
6108 \begin_layout Itemize
6109 These items are reserved for use by the journal editors, but you can put
6110  them into the \SpecialChar LaTeX
6111  preamble if you feel compelled to do so: 
6112 \family typewriter
6113
6114 \backslash
6115 received
6116 \family default
6117
6118 \family typewriter
6119
6120 \backslash
6121 revised
6122 \family default
6123
6124 \family typewriter
6125
6126 \backslash
6127 accepted
6128 \family default
6129
6130 \family typewriter
6131
6132 \backslash
6133 ccc
6134 \family default
6135
6136 \family typewriter
6137
6138 \backslash
6139 cpright
6140 \family default
6141  (all from 2.1.3)
6142 \end_layout
6143
6144 \begin_layout Itemize
6145 These items may be placed in the \SpecialChar LaTeX
6146  preamble, and are included as blanks in
6147  the template file: 
6148 \family typewriter
6149
6150 \backslash
6151 slugcomment
6152 \family default
6153  (2.1.4), 
6154 \family typewriter
6155
6156 \backslash
6157 shorttitle
6158 \family default
6159  (2.1.5), 
6160 \family typewriter
6161
6162 \backslash
6163 shortauthors
6164 \family default
6165  (2.1.5)
6166 \end_layout
6167
6168 \begin_layout Itemize
6169
6170 \family typewriter
6171
6172 \backslash
6173 email
6174 \family default
6175  (2.3) – can only be used 
6176 \begin_inset Quotes eld
6177 \end_inset
6178
6179 standalone
6180 \begin_inset Quotes erd
6181 \end_inset
6182
6183 , not in the middle of a paragraph.
6184  Use \SpecialChar TeX
6185  code if you need to embed it.
6186 \end_layout
6187
6188 \begin_layout Itemize
6189
6190 \family typewriter
6191
6192 \backslash
6193 and
6194 \family default
6195  (2.3) – will have extra {} after it.
6196  This should not cause an error.
6197 \end_layout
6198
6199 \begin_layout Itemize
6200
6201 \family typewriter
6202
6203 \backslash
6204 notetoeditor
6205 \family default
6206  (2.6) – can only be used 
6207 \begin_inset Quotes eld
6208 \end_inset
6209
6210 standalone
6211 \begin_inset Quotes erd
6212 \end_inset
6213
6214 , not in the middle of a paragraph.
6215  Use \SpecialChar TeX
6216  code if you need to embed it.
6217 \end_layout
6218
6219 \begin_layout Itemize
6220
6221 \family typewriter
6222
6223 \backslash
6224 placetable
6225 \family default
6226  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6227  hand
6228 \end_layout
6229
6230 \begin_layout Itemize
6231
6232 \family typewriter
6233
6234 \backslash
6235 placefigure
6236 \family default
6237  (2.8) – same as for 
6238 \family typewriter
6239
6240 \backslash
6241 placetable
6242 \end_layout
6243
6244 \begin_layout Itemize
6245
6246 \family typewriter
6247
6248 \backslash
6249 acknowledgements
6250 \family default
6251  (2.9) – will have extra {} after it.
6252  This should not cause an error.
6253 \end_layout
6254
6255 \begin_layout Itemize
6256
6257 \family typewriter
6258
6259 \backslash
6260 appendix
6261 \family default
6262  (2.11) – will have extra {} after it.
6263  This should not cause an error.
6264 \end_layout
6265
6266 \begin_layout Itemize
6267
6268 \family typewriter
6269
6270 \backslash
6271 figcaption
6272 \family default
6273  (2.14.2) – you can insert an optional filename argument by placing the cursor
6274  at the beginning of the text and selecting 
6275 \family sans
6276 Insert\SpecialChar menuseparator
6277 Short Title
6278 \family default
6279 .
6280  
6281 \begin_inset Quotes eld
6282 \end_inset
6283
6284 Short Title
6285 \begin_inset Quotes erd
6286 \end_inset
6287
6288  inserts an optional argument of the type needed by 
6289 \family typewriter
6290
6291 \backslash
6292 figcaption
6293 \family default
6294 .
6295  Hopefully it will be renamed someday.
6296 \end_layout
6297
6298 \begin_layout Itemize
6299
6300 \family typewriter
6301
6302 \backslash
6303 objectname
6304 \family default
6305  (2.17.1) – same as 
6306 \family typewriter
6307
6308 \backslash
6309 figcaption
6310 \family default
6311  for the catalog ID optional parameter
6312 \end_layout
6313
6314 \begin_layout Itemize
6315
6316 \family typewriter
6317
6318 \backslash
6319 dataset
6320 \family default
6321  (2.17.1) – same as 
6322 \family typewriter
6323
6324 \backslash
6325 figcaption
6326 \family default
6327  for the catalog ID optional parameter
6328 \end_layout
6329
6330 \begin_layout Paragraph
6331 Things not implemented, use \SpecialChar TeX
6332  code
6333 \end_layout
6334
6335 \begin_layout Standard
6336
6337 \family typewriter
6338
6339 \backslash
6340 eqnum
6341 \family default
6342  (2.12), 
6343 \family typewriter
6344
6345 \backslash
6346 setcounter{equation}
6347 \family default
6348  (2.12), Journal name abbreviations (2.13.4), 
6349 \family typewriter
6350
6351 \backslash
6352 figurenum
6353 \family default
6354  (2.14.1), 
6355 \family typewriter
6356
6357 \backslash
6358 epsscale
6359 \family default
6360  (2.14.1), 
6361 \family typewriter
6362
6363 \backslash
6364 plotone
6365 \family default
6366  (2.14.1), 
6367 \family typewriter
6368
6369 \backslash
6370 plottwo
6371 \family default
6372  (2.14.1), 
6373 \family typewriter
6374
6375 \backslash
6376 tablenum
6377 \family default
6378  (2.15.4), 
6379 \family typewriter
6380
6381 \backslash
6382 tableline
6383 \family default
6384  (2.15.4, insert it as the first element in the lefthand cell after where
6385  you want it.
6386  Don't use any of \SpecialChar LyX
6387 's rules in the table), 
6388 \family typewriter
6389
6390 \backslash
6391 tablenotemark
6392 \family default
6393  (2.15.5), 
6394 \family typewriter
6395
6396 \backslash
6397 tablenotetext
6398 \family default
6399  (2.15.5), much of Misc (2.17, except 
6400 \family typewriter
6401
6402 \backslash
6403 objectname
6404 \family default
6405
6406 \family typewriter
6407
6408 \backslash
6409 dataset
6410 \family default
6411
6412 \family typewriter
6413
6414 \backslash
6415 url
6416 \family default
6417 , and 
6418 \family typewriter
6419
6420 \backslash
6421 email
6422 \family default
6423 ; see above), 
6424 \family typewriter
6425
6426 \backslash
6427 singlespace
6428 \family default
6429  (3.1), 
6430 \family typewriter
6431
6432 \backslash
6433 doublespace
6434 \family default
6435  (3.1), 
6436 \family typewriter
6437
6438 \backslash
6439 onecolumn
6440 \family default
6441  (3.2), 
6442 \family typewriter
6443
6444 \backslash
6445 twocolumn
6446 \family default
6447  (3.2)
6448 \end_layout
6449
6450 \begin_layout Paragraph
6451 Things that cannot be implemented
6452 \end_layout
6453
6454 \begin_layout Standard
6455 \SpecialChar ldots
6456  at least in any meaningful sort of way, so I suggest ignoring them.
6457  They are the references environment (2.13.3), and the deluxetable environment
6458  (2.15).
6459  If you really, really need to use deluxetable, I suggest editing it in
6460  a separate file with a text editor, then using 
6461 \family sans
6462 Insert\SpecialChar menuseparator
6463 Child
6464 \begin_inset space ~
6465 \end_inset
6466
6467 Document
6468 \family default
6469  to include it in your \SpecialChar LyX
6470  document.
6471  See the 
6472 \family typewriter
6473 aas_sample.lyx
6474 \family default
6475  file to see an example of this.
6476 \end_layout
6477
6478 \begin_layout Subsubsection
6479 FAQs, Tips, Tricks, and Other Ruminations
6480 \end_layout
6481
6482 \begin_layout Paragraph
6483 Getting \SpecialChar LyX
6484  and AAS\SpecialChar TeX
6485  to cooperate
6486 \end_layout
6487
6488 \begin_layout Standard
6489 It can be a bit tricky to get \SpecialChar LyX
6490  to recognize a new layout and document class.
6491  When all else fails, do this:
6492 \end_layout
6493
6494 \begin_layout Enumerate
6495 Make certain that \SpecialChar LaTeX
6496  can find AAS\SpecialChar TeX
6497 .
6498  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6499  distribution into a
6500  directory completely unrelated to \SpecialChar LaTeX
6501  or AAS\SpecialChar TeX
6502  and run \SpecialChar LaTeX
6503  on 
6504 \family typewriter
6505 sample.tex
6506 \family default
6507 .
6508 \end_layout
6509
6510 \begin_layout Enumerate
6511 Make certain that 
6512 \family typewriter
6513 aastex.layout
6514 \family default
6515  appears in \SpecialChar LyX
6516 's 
6517 \family typewriter
6518 layouts
6519 \family default
6520  folder
6521 \end_layout
6522
6523 \begin_layout Enumerate
6524 Rerun 
6525 \family sans
6526 Tools\SpecialChar menuseparator
6527 Reconfigure
6528 \family default
6529  in \SpecialChar LyX
6530 , then restart \SpecialChar LyX
6531 .
6532 \end_layout
6533
6534 \begin_layout Enumerate
6535 Open a regular new file, not from a template.
6536  Does AAS\SpecialChar TeX
6537  appear in the class list in 
6538 \family sans
6539 Document\SpecialChar menuseparator
6540 Settings
6541 \family default
6542 ?
6543 \end_layout
6544
6545 \begin_layout Standard
6546 If you get a warning from an existing AAS\SpecialChar TeX
6547  document about not being able
6548  to find the AAS\SpecialChar TeX
6549  layout or a message about 
6550 \begin_inset Quotes eld
6551 \end_inset
6552
6553 You should not mix title layouts with normal ones
6554 \begin_inset Quotes erd
6555 \end_inset
6556
6557 , things haven't been installed correctly.
6558 \end_layout
6559
6560 \begin_layout Paragraph
6561 \SpecialChar LaTeX
6562  error processing a table 
6563 \end_layout
6564
6565 \begin_layout Standard
6566 \SpecialChar LyX
6567 , by default, attempts to center the table caption/title.
6568  This seems to produce a bad interaction in AAS\SpecialChar TeX
6569  so you should click somewhere
6570  in the caption/title, then select 
6571 \family sans
6572 Edit\SpecialChar menuseparator
6573 Paragraph
6574 \begin_inset space ~
6575 \end_inset
6576
6577 Settings
6578 \family default
6579 , then set the 
6580 \family sans
6581 Alignment
6582 \family default
6583  to 
6584 \family sans
6585 Block
6586 \family default
6587 .
6588  This took care of it for me.
6589 \end_layout
6590
6591 \begin_layout Paragraph
6592 References
6593 \end_layout
6594
6595 \begin_layout Standard
6596 A couple of things: 1) I have noticed some funny spacing in the reference
6597  entries in the text.
6598  When you enter the bibliography item data, make sure their is 
6599 \emph on
6600 no
6601 \emph default
6602  space between the last author and the parenthesis setting off the year;
6603  
6604 \emph on
6605 e.
6606 \begin_inset space \thinspace{}
6607 \end_inset
6608
6609 g.
6610 \begin_inset space \space{}
6611 \end_inset
6612
6613
6614 \emph default
6615 type 
6616 \family typewriter
6617 Ressler(1992)
6618 \family default
6619 , not 
6620 \family typewriter
6621 Ressler (1992)
6622 \family default
6623 .
6624  2) Entering the references at all is not obvious.
6625  The easiest thing is to start typing your first reference at the end of
6626  the document, then mark it as type 
6627 \family sans
6628 References
6629 \family default
6630 .
6631  That will put a small gray box in front of what you just typed.
6632  Click on the box to fill in the rest of the information.
6633  For new references, go to the end of an existing reference and press return.
6634  That will create a new line with its own box, etc.
6635 \end_layout
6636
6637 \begin_layout Paragraph
6638 Including EPS files
6639 \end_layout
6640
6641 \begin_layout Standard
6642 Even though AAS\SpecialChar TeX
6643  provides its own figure commands (
6644 \family typewriter
6645
6646 \backslash
6647 plotone
6648 \family default
6649 , for example), I much prefer \SpecialChar LaTeX
6650 's standard figure commands (with the default
6651  graphicx).
6652  You can insert the 
6653 \family typewriter
6654
6655 \backslash
6656 plotone
6657 \family default
6658 , etc.
6659 \begin_inset space ~
6660 \end_inset
6661
6662 commands as \SpecialChar TeX
6663  code into a Figure Float box if you desire, but I never have
6664  much luck getting the layout right.
6665  With the standard graphics, \SpecialChar LyX
6666  will insert a 
6667 \family typewriter
6668
6669 \backslash
6670 usepackage{graphicx}
6671 \family default
6672  command into the \SpecialChar LaTeX
6673  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6674  way,
6675  interspersing the figures in the text.
6676  I believe ApJ accepts figures exactly this way now; AJ might still use
6677  the 
6678 \begin_inset Quotes eld
6679 \end_inset
6680
6681 stack everything at the end
6682 \begin_inset Quotes erd
6683 \end_inset
6684
6685  technique.
6686 \end_layout
6687
6688 \begin_layout Paragraph
6689 Things I could have done, but didn't
6690 \end_layout
6691
6692 \begin_layout Standard
6693 There are a few 
6694 \begin_inset Quotes eld
6695 \end_inset
6696
6697 pretty
6698 \begin_inset Quotes erd
6699 \end_inset
6700
6701  things I could have implemented, but chose not to.
6702  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6703  window,
6704  even though it is double-spaced in the paper manuscript.
6705  Also, I chose not to make separate layouts for the preprint and preprint2
6706  styles.
6707  Since I assume you will spend most of your time in the plain manuscript
6708  mode anyway, I decided not to chew up more disk space with this.
6709  
6710 \end_layout
6711
6712 \begin_layout Subsubsection
6713 Final Caveat
6714 \end_layout
6715
6716 \begin_layout Standard
6717 Your mileage may vary.
6718  I've now had papers published by both ApJ and AJ that have had 98% of the
6719  effort done in \SpecialChar LyX
6720 ; the last 2% was the \SpecialChar LaTeX
6721  post-processing and a few cleanups.
6722  I have had no trouble with the submission process, and I'm sure the journals
6723  were never aware that there might be a difference.
6724  So, go forth and publish!
6725 \end_layout
6726
6727 \begin_layout Section
6728
6729 \change_inserted 564990737 1670439560
6730 Books
6731 \end_layout
6732
6733 \begin_layout Standard
6734
6735 \change_inserted 564990737 1670439581
6736 See also the document classes in the Collections (section
6737 \begin_inset space ~
6738 \end_inset
6739
6740
6741 \begin_inset CommandInset ref
6742 LatexCommand ref
6743 reference "sec:Collections"
6744
6745 \end_inset
6746
6747 ).
6748 \end_layout
6749
6750 \begin_layout Subsection
6751 Memoir
6752 \end_layout
6753
6754 \begin_layout Standard
6755 By 
6756 \noun on
6757 Jürgen Spitzmüller
6758 \end_layout
6759
6760 \begin_layout Subsubsection
6761 Overview
6762 \end_layout
6763
6764 \begin_layout Standard
6765 Memoir is a very powerful and constantly evolving class.
6766  It has been designed with regard to fictional and non-fictional literature.
6767  Its aim is to let the user have maximum control over the typesetting of
6768  his document.
6769  Memoir is based on the standard book class, but it can also emulate the
6770  article class (see below).
6771 \end_layout
6772
6773 \begin_layout Standard
6774 Peter Wilson, the developer of Memoir, is known as the author of lots of
6775  useful packages in the \SpecialChar LaTeX
6776  world.
6777  Most of them have been merged with Memoir.
6778  Therefore, it is much easier to layout the table of contents, appendices,
6779  chapter designs and such.
6780  \SpecialChar LyX
6781 , though, does not support all of these goodies natively.
6782  Some of them might be added to forthcoming releases
6783 \begin_inset Foot
6784 status collapsed
6785
6786 \begin_layout Plain Layout
6787 You are invited to send suggestions to 
6788 \begin_inset Flex URL
6789 status collapsed
6790
6791 \begin_layout Plain Layout
6792
6793 lyx-devel@lists.lyx.org
6794 \end_layout
6795
6796 \end_inset
6797
6798 .
6799 \end_layout
6800
6801 \end_inset
6802
6803 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
6804 's framework.
6805  Of course you can still use all features with the help of some native \SpecialChar LaTeX
6806
6807  commands (\SpecialChar TeX
6808  code
6809 \begin_inset Foot
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 Cf.
6814 \begin_inset ERT
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818
6819
6820 \backslash
6821  
6822 \end_layout
6823
6824 \end_inset
6825
6826 section
6827 \begin_inset space ~
6828 \end_inset
6829
6830
6831 \begin_inset CommandInset ref
6832 LatexCommand ref
6833 reference "sec:Inserting-TeX-Code"
6834
6835 \end_inset
6836
6837  for details.
6838 \end_layout
6839
6840 \end_inset
6841
6842 ).
6843  In this section, we can only list those features that are natively supported
6844  by \SpecialChar LyX
6845 .
6846  For detailed descriptions (and for the rest of features) we recommend you
6847  have a look at the detailed manual of the Memoir class
6848 \begin_inset Foot
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 Cf.
6853 \begin_inset ERT
6854 status collapsed
6855
6856 \begin_layout Plain Layout
6857
6858
6859 \backslash
6860  
6861 \end_layout
6862
6863 \end_inset
6864
6865
6866 \begin_inset Flex URL
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870
6871 CTAN:/macros/latex/memoir/memman.pdf
6872 \end_layout
6873
6874 \end_inset
6875
6876 .
6877 \end_layout
6878
6879 \end_inset
6880
6881 , which is not only a user guide for the class, but also both a comprehensive
6882  description on good typesetting and a superb example for good typesetting
6883  itself.
6884 \end_layout
6885
6886 \begin_layout Subsubsection
6887 Basic features and restrictions
6888 \end_layout
6889
6890 \begin_layout Standard
6891 Memoir supports basically all features of the standard book classes.
6892  There are, however, some differences, as follows:
6893 \end_layout
6894
6895 \begin_layout Description
6896 Font
6897 \begin_inset space ~
6898 \end_inset
6899
6900 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
6901 \end_layout
6902
6903 \begin_layout Description
6904 Page
6905 \begin_inset space ~
6906 \end_inset
6907
6908 style: The fancy page style is not supported, due to a command clash between
6909  Memoir and the fancyhdr package (they both define a command with the same
6910  name, which confuses \SpecialChar LaTeX
6911 ).
6912  Instead, Memoir comes with a number of its own page styles (see 
6913 \family sans
6914 Document\SpecialChar menuseparator
6915 Settings\SpecialChar menuseparator
6916 Page
6917 \begin_inset space ~
6918 \end_inset
6919
6920 Style
6921 \family default
6922 ).
6923  If you want to use these for the chapter pages, you have to use the command
6924  
6925 \family typewriter
6926
6927 \backslash
6928 chapterstyle
6929 \family default
6930  in the main text or in preamble (e.
6931 \begin_inset space \thinspace{}
6932 \end_inset
6933
6934 g.
6935 \begin_inset space \space{}
6936 \end_inset
6937
6938
6939 \family typewriter
6940
6941 \backslash
6942 chapterstyle{companion}
6943 \family default
6944 ).
6945 \end_layout
6946
6947 \begin_layout Description
6948 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
6949  optional argument in the standard classes.
6950  With this, you can specify an alternative version of the title for the
6951  table of contents and the headers (for instance, if the title is too long).
6952  In \SpecialChar LyX
6953 , you can do this via 
6954 \family sans
6955 Insert\SpecialChar menuseparator
6956 Short
6957 \begin_inset space ~
6958 \end_inset
6959
6960 Title
6961 \family default
6962  at the beginning of a chapter/section.
6963  Memoir features a second optional argument and thus separates the table
6964  of contents from the header.
6965  You can define three variants of a title with this: one for the main text,
6966  one for the table of contents, and one for the headers.
6967  \SpecialChar LyX
6968  makes these available in form of specific 
6969 \family sans
6970 Short Title
6971 \family default
6972  variants in the 
6973 \family sans
6974 Insert
6975 \family default
6976  menu.
6977 \end_layout
6978
6979 \begin_layout Description
6980 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
6981  of contents, the list of figures and the list of table start a new page
6982  automatically.
6983  Memoir does not follow this route.
6984  You have to insert a page break yourself, if you want to have one.
6985 \end_layout
6986
6987 \begin_layout Description
6988 Titlepage: For some unknown reason, Memoir uses pagination on the title
6989  page (in the standard classes, title pages are 
6990 \begin_inset Quotes eld
6991 \end_inset
6992
6993 empty
6994 \begin_inset Quotes erd
6995 \end_inset
6996
6997 ).
6998  If you want an empty title page, type 
6999 \family typewriter
7000
7001 \backslash
7002 aliaspagestyle{title}{empty}
7003 \family default
7004  in the preamble.
7005 \end_layout
7006
7007 \begin_layout Description
7008 Article: With the class option 
7009 \emph on
7010 article
7011 \emph default
7012  (to be inserted in 
7013 \family sans
7014 Document\SpecialChar menuseparator
7015 Settings\SpecialChar menuseparator
7016 Class Settings\SpecialChar menuseparator
7017 Custom
7018 \begin_inset space ~
7019 \end_inset
7020
7021 Options
7022 \family default
7023 ), you can emulate article style.
7024  That is, counters (footnotes, figures, tables etc.) will not be reset on
7025  new chapters, chapters don't start a new page (but are—in contrary to 
7026 \begin_inset Quotes eld
7027 \end_inset
7028
7029 real
7030 \begin_inset Quotes erd
7031 \end_inset
7032
7033  article classes—still allowed), parts, though, use their own page, as in
7034  book.
7035 \end_layout
7036
7037 \begin_layout Description
7038 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7039  font commands, which have been used in the old \SpecialChar LaTeX
7040  version 2.09 (e.
7041 \begin_inset space \thinspace{}
7042 \end_inset
7043
7044 g.
7045 \begin_inset space \space{}
7046 \end_inset
7047
7048
7049 \family typewriter
7050
7051 \backslash
7052 rm
7053 \family default
7054
7055 \family typewriter
7056
7057 \backslash
7058 it
7059 \family default
7060 ).
7061  It produces an error and stops \SpecialChar LaTeX
7062  whenever such a command appears.
7063  The class option 
7064 \emph on
7065 oldfontcommands
7066 \emph default
7067  reallows the commands and spits out warnings instead (which does at least
7068  not stop \SpecialChar LaTeX
7069 ).
7070  Since a lot of packages and particularly Bib\SpecialChar TeX
7071  style files are still using
7072  those commands, we have decided to use this option by default.
7073 \end_layout
7074
7075 \begin_layout Subsubsection
7076 Extra features
7077 \end_layout
7078
7079 \begin_layout Standard
7080 We will only describe the features supported by \SpecialChar LyX
7081  (which is not much currently).
7082  Please consult the Memoir manual
7083 \begin_inset Foot
7084 status collapsed
7085
7086 \begin_layout Plain Layout
7087 Cf.
7088 \begin_inset ERT
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092
7093
7094 \backslash
7095  
7096 \end_layout
7097
7098 \end_inset
7099
7100
7101 \begin_inset Flex URL
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105
7106 CTAN:/macros/latex/memoir/memman.pdf
7107 \end_layout
7108
7109 \end_inset
7110
7111 .
7112 \end_layout
7113
7114 \end_inset
7115
7116  for details.
7117 \end_layout
7118
7119 \begin_layout Description
7120 Abstract: You may wonder why an abstract is an extra feature.
7121  Well, it is in book class.
7122  Usually books don't have abstracts.
7123  Memoir, however, has.
7124  You can use it wherever and how often you like.
7125 \end_layout
7126
7127 \begin_layout Description
7128 Chapterprecis: You may know this older typesetting style: The contents of
7129  a chapter are summarized below the title and also in the table of contents
7130  (e.
7131 \begin_inset space \thinspace{}
7132 \end_inset
7133
7134 g.
7135 \begin_inset space \space{}
7136 \end_inset
7137
7138
7139 \emph on
7140 Our hero arrives in Troia; he loses some friends; he finds others
7141 \emph default
7142 ).
7143  Chapterprecis does exactly this.
7144  It is therefore only sensible below a chapter.
7145 \end_layout
7146
7147 \begin_layout Description
7148 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7149  The epigraph environment provides an elegant way of typesetting such a
7150  motto.
7151  The motto itself (text) and its (optional) author (source) are divided
7152  by a short line.
7153  The author (source) can be inserted via 
7154 \family sans
7155 Insert\SpecialChar menuseparator
7156 Epigraph Source
7157 \family default
7158 \emph on
7159 .
7160 \end_layout
7161
7162 \begin_layout Description
7163 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7164  complex figurative poems).
7165  \SpecialChar LyX
7166  can only support a few of them.
7167  One is poemtitle, which is a centered title for poems, which will also
7168  be added to the table of contents (verse is the standard environment for
7169  poems.
7170  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7171  code,
7172  because they have to be nested inside regular verse environments, which
7173  is not possible with \SpecialChar LyX
7174 ).
7175 \end_layout
7176
7177 \begin_layout Description
7178 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7179 \end_layout
7180
7181 \begin_layout Section
7182
7183 \change_inserted 564990737 1670439605
7184 Curricula vitarum
7185 \end_layout
7186
7187 \begin_layout Section
7188
7189 \change_inserted 564990737 1670439627
7190 Letters
7191 \end_layout
7192
7193 \begin_layout Section
7194
7195 \change_inserted 564990737 1670439660
7196 Presentations
7197 \end_layout
7198
7199 \begin_layout Subsection
7200 Foils [aka 
7201 \family sans
7202 Foil\SpecialChar TeX
7203
7204 \family default
7205 ]
7206 \begin_inset CommandInset label
7207 LatexCommand label
7208 name "sec:foiltex"
7209
7210 \end_inset
7211
7212
7213 \end_layout
7214
7215 \begin_layout Standard
7216 by 
7217 \noun on
7218 Allan Rae
7219 \end_layout
7220
7221 \begin_layout Subsubsection
7222 Introduction
7223 \end_layout
7224
7225 \begin_layout Standard
7226 This section describes how to use \SpecialChar LyX
7227  to make slides for overhead projectors.
7228  There are two document classes that can do this: the default slides class
7229  and the 
7230 \family sans
7231 Foil\SpecialChar TeX
7232
7233 \family default
7234  slides class.
7235  This section documents the latter.
7236 \end_layout
7237
7238 \begin_layout Standard
7239 I'm going to say this again, nice and clear, so that there's no misunderstanding
7240 :
7241 \end_layout
7242
7243 \begin_layout Standard
7244 \begin_inset VSpace bigskip
7245 \end_inset
7246
7247
7248 \end_layout
7249
7250 \begin_layout Standard
7251 \align center
7252
7253 \size large
7254 This section documents the class 
7255 \begin_inset Quotes eld
7256 \end_inset
7257
7258
7259 \family sans
7260 FoilTeX
7261 \family default
7262
7263 \begin_inset Quotes erd
7264 \end_inset
7265
7266  
7267 \emph on
7268 only.
7269 \end_layout
7270
7271 \begin_layout Standard
7272 \begin_inset VSpace bigskip
7273 \end_inset
7274
7275
7276 \end_layout
7277
7278 \begin_layout Standard
7279 If you're looking for the documentation for 
7280 \begin_inset Quotes eld
7281 \end_inset
7282
7283
7284 \family sans
7285 slides (default)
7286 \family default
7287
7288 \begin_inset Quotes erd
7289 \end_inset
7290
7291 , check out section
7292 \begin_inset space ~
7293 \end_inset
7294
7295
7296 \begin_inset CommandInset ref
7297 LatexCommand ref
7298 reference "sec:slitex"
7299
7300 \end_inset
7301
7302 .
7303  If your machine doesn't have the 
7304 \family sans
7305 foils
7306 \family default
7307  class 
7308 \family sans
7309 FoilTeX
7310 \family default
7311  installed, you'll probably have to use the default 
7312 \family sans
7313 slides
7314 \family default
7315  class, which isn't quite as good as 
7316 \family sans
7317 foils.
7318 \end_layout
7319
7320 \begin_layout Standard
7321 The 
7322 \family sans
7323 foils
7324 \family default
7325  class is designed for use with version
7326 \begin_inset space ~
7327 \end_inset
7328
7329 2.1 of the 
7330 \family sans
7331 foils.cls
7332 \family default
7333  \SpecialChar LaTeX
7334  class file which is now an integral part of \SpecialChar LaTeX2e
7335 .
7336 \end_layout
7337
7338 \begin_layout Subsubsection
7339 Getting Started
7340 \end_layout
7341
7342 \begin_layout Standard
7343 Obviously, to use this document class, you need to select 
7344 \family sans
7345 FoilTeX
7346 \family default
7347  from the 
7348 \family sans
7349 Class
7350 \family default
7351  entry in the 
7352 \family sans
7353 Document
7354 \begin_inset space ~
7355 \end_inset
7356
7357 Layout
7358 \family default
7359  dialog.
7360  There are some settings in the 
7361 \family sans
7362 Document
7363 \begin_inset space ~
7364 \end_inset
7365
7366 Layout
7367 \family default
7368  dialog that you should know about that are specific to this class:
7369 \end_layout
7370
7371 \begin_layout Itemize
7372 Don't change the options 
7373 \family sans
7374 Sides
7375 \family default
7376  and 
7377 \family sans
7378 Columns
7379 \family default
7380  on the 
7381 \family sans
7382 Document
7383 \begin_inset space ~
7384 \end_inset
7385
7386 Layout
7387 \family default
7388  dialog.
7389  They're ignored by the 
7390 \family sans
7391 foils
7392 \family default
7393  class.
7394 \end_layout
7395
7396 \begin_layout Itemize
7397 The default font size is 20
7398 \begin_inset space \thinspace{}
7399 \end_inset
7400
7401 pt with the other options being 17
7402 \begin_inset space \thinspace{}
7403 \end_inset
7404
7405 pt, 25
7406 \begin_inset space \thinspace{}
7407 \end_inset
7408
7409 pt and 30
7410 \begin_inset space \thinspace{}
7411 \end_inset
7412
7413 pt.
7414 \end_layout
7415
7416 \begin_layout Itemize
7417 The default font is 
7418 \family sans
7419 sans
7420 \family default
7421  
7422 \family sans
7423 serif
7424 \family default
7425  but all math equations are still typeset in the usual roman font.
7426 \end_layout
7427
7428 \begin_layout Itemize
7429
7430 \family sans
7431 Foil\SpecialChar TeX
7432
7433 \family default
7434  supports A4 and Letter paper sizes as well as a special size for working
7435  with 35
7436 \begin_inset space \thinspace{}
7437 \end_inset
7438
7439 mm slides.
7440  It doesn't support A5, B5, legal or executive paper sizes.
7441 \end_layout
7442
7443 \begin_layout Itemize
7444 Don't bother changing the 
7445 \family sans
7446 Float Placement
7447 \family default
7448  settings because they are ignored anyway.
7449  All floats appear where they are defined in the text.
7450 \end_layout
7451
7452 \begin_layout Itemize
7453 The 
7454 \family sans
7455 Pagestyle
7456 \family default
7457  setting behaves a bit differently for this class.
7458  
7459 \family sans
7460 Foil\SpecialChar TeX
7461
7462 \family default
7463  provides extensive footer and header capabilities including a user-defined
7464  logo.
7465  See section
7466 \begin_inset space ~
7467 \end_inset
7468
7469
7470 \begin_inset CommandInset ref
7471 LatexCommand ref
7472 reference "sec:foilfoot"
7473
7474 \end_inset
7475
7476  for more details.
7477  The title page is treated differently to all other pages in the document
7478  and is 
7479 \emph on
7480 always
7481 \emph default
7482  unnumbered and 
7483 \emph on
7484 always
7485 \emph default
7486  has the logo centered at the bottom of the page (if one is defined).
7487  The possible page style choices and what they do are as follows:
7488 \end_layout
7489
7490 \begin_deeper
7491 \begin_layout Labeling
7492 \labelwidthstring MMMMMMM
7493
7494 \family sans
7495 \series bold
7496 empty
7497 \family default
7498 \series default
7499  The final output contains no page numbers, or other headers or footers
7500  (except footnotes of course).
7501  
7502 \end_layout
7503
7504 \begin_layout Labeling
7505 \labelwidthstring MMMMMMM
7506
7507 \family sans
7508 \series bold
7509 plain
7510 \family default
7511 \series default
7512  The final output contains page numbers centered at the bottom of the page.
7513  No other headings or footers (other than footnotes).
7514 \end_layout
7515
7516 \begin_layout Labeling
7517 \labelwidthstring MMMMMMM
7518
7519 \series bold
7520 foilheadings
7521 \series default
7522  Page numbers in lower right corner.
7523  Additional headers and footers are also shown.
7524  This is also the default.
7525 \end_layout
7526
7527 \begin_layout Labeling
7528 \labelwidthstring MMMMMMM
7529
7530 \series bold
7531 fancy
7532 \series default
7533  Gives you access to the 
7534 \family sans
7535 fancyheadings
7536 \family default
7537  package although its use with 
7538 \family sans
7539 Foil\SpecialChar TeX
7540
7541 \family default
7542  is discouraged by the writer of the 
7543 \family sans
7544 Foil\SpecialChar TeX
7545
7546 \family default
7547  package because of some potential page layout clashes.
7548 \end_layout
7549
7550 \end_deeper
7551 \begin_layout Paragraph
7552 Extra Options
7553 \end_layout
7554
7555 \begin_layout Standard
7556 The following options may be used in the extra class options in the 
7557 \family sans
7558 Document\SpecialChar menuseparator
7559 Settings
7560 \family default
7561  dialog.
7562 \end_layout
7563
7564 \begin_layout Labeling
7565 \labelwidthstring MMMMMMx
7566
7567 \series bold
7568 35mmSlide
7569 \series default
7570  This sets up the page layout for 7.33
7571 \begin_inset space \thinspace{}
7572 \end_inset
7573
7574 in by 11
7575 \begin_inset space \thinspace{}
7576 \end_inset
7577
7578 in paper, which is about the same aspect ratio as a 35
7579 \begin_inset space \thinspace{}
7580 \end_inset
7581
7582 mm slide, making it a bit easier to work with this medium.
7583 \end_layout
7584
7585 \begin_layout Labeling
7586 \labelwidthstring MMMMMMx
7587
7588 \series bold
7589 headrule
7590 \series default
7591  Places a rule across the page below the header on every page except the
7592  title page.
7593 \end_layout
7594
7595 \begin_layout Labeling
7596 \labelwidthstring MMMMMMx
7597
7598 \series bold
7599 footrule
7600 \series default
7601  Places a rule across the page above the footer on every page except the
7602  title page.
7603 \end_layout
7604
7605 \begin_layout Labeling
7606 \labelwidthstring MMMMMMx
7607
7608 \series bold
7609 dvips
7610 \series default
7611  This is automatically set each time you create a new 
7612 \family sans
7613 foils
7614 \family default
7615  document.
7616  This option tells 
7617 \family sans
7618 Foil\SpecialChar TeX
7619
7620 \family default
7621  to use the dvips driver to rotate those pages that are set as landscape
7622  foils.
7623 \end_layout
7624
7625 \begin_layout Labeling
7626 \labelwidthstring MMMMMMx
7627
7628 \series bold
7629 landscape
7630 \series default
7631  Simply changes the page dimensions to those of a landscape page but doesn't
7632  do any rotation.
7633  Thus if you use this option you need to use an external program to rotate
7634  each page or feed your paper through your printer as landscape.
7635  Note that this option effectively reverses the roles of the 
7636 \family sans
7637 Foilhead
7638 \family default
7639  and 
7640 \family sans
7641 Rotatefoilhead
7642 \family default
7643  environments (don't worry these are described in the next section).
7644 \end_layout
7645
7646 \begin_layout Labeling
7647 \labelwidthstring MMMMMMx
7648
7649 \series bold
7650 leqno
7651 \series default
7652  Equation numbers on the left.
7653 \end_layout
7654
7655 \begin_layout Labeling
7656 \labelwidthstring MMMMMMx
7657
7658 \series bold
7659 fleqn
7660 \series default
7661  Flush-left equations.
7662 \end_layout
7663
7664 \begin_layout Subsubsection
7665 Supported Environments
7666 \end_layout
7667
7668 \begin_layout Standard
7669 Most of the environments commonly supported in other classes are also supported
7670  by the 
7671 \family sans
7672 foils
7673 \family default
7674  class.
7675  There are several additional environments provided by 
7676 \family sans
7677 Foil\SpecialChar TeX
7678
7679 \family default
7680  as well as a couple added by \SpecialChar LyX
7681 .
7682  The following environments are shared with other classes:
7683 \end_layout
7684
7685 \begin_layout Standard
7686 \begin_inset Flex Multiple Columns
7687 status open
7688
7689 \begin_layout Itemize
7690
7691 \family sans
7692 Standard
7693 \end_layout
7694
7695 \begin_layout Itemize
7696
7697 \family sans
7698 Itemize
7699 \end_layout
7700
7701 \begin_layout Itemize
7702
7703 \family sans
7704 Enumerate
7705 \end_layout
7706
7707 \begin_layout Itemize
7708
7709 \family sans
7710 Description
7711 \end_layout
7712
7713 \begin_layout Itemize
7714
7715 \family sans
7716 List
7717 \end_layout
7718
7719 \begin_layout Itemize
7720
7721 \family sans
7722 \SpecialChar LyX
7723 -Code
7724 \end_layout
7725
7726 \begin_layout Itemize
7727
7728 \family sans
7729 Verse
7730 \end_layout
7731
7732 \begin_layout Itemize
7733
7734 \family sans
7735 Quote
7736 \end_layout
7737
7738 \begin_layout Itemize
7739
7740 \family sans
7741 Quotation
7742 \end_layout
7743
7744 \begin_layout Itemize
7745
7746 \family sans
7747 TitleAuthor
7748 \end_layout
7749
7750 \begin_layout Itemize
7751
7752 \family sans
7753 Date
7754 \end_layout
7755
7756 \begin_layout Itemize
7757
7758 \family sans
7759 Abstract
7760 \end_layout
7761
7762 \begin_layout Itemize
7763
7764 \family sans
7765 Bibliography
7766 \end_layout
7767
7768 \begin_layout Itemize
7769
7770 \family sans
7771 Address
7772 \end_layout
7773
7774 \begin_layout Itemize
7775
7776 \family sans
7777 RightAddress
7778 \end_layout
7779
7780 \end_inset
7781
7782
7783 \end_layout
7784
7785 \begin_layout Standard
7786 That is, all the major environments apart from the sectioning environments.
7787  Since foils are essentially self-contained sections, with a title and body,
7788  
7789 \family sans
7790 Foil\SpecialChar TeX
7791
7792 \family default
7793  provides specific commands for starting new foils and these are:
7794 \end_layout
7795
7796 \begin_layout Itemize
7797
7798 \family sans
7799 Foilhead
7800 \end_layout
7801
7802 \begin_layout Itemize
7803
7804 \family sans
7805 Rotatefoilhead
7806 \end_layout
7807
7808 \begin_layout Standard
7809 \SpecialChar LyX
7810  also provides slightly modified versions of these two environments called:
7811 \end_layout
7812
7813 \begin_layout Itemize
7814
7815 \family sans
7816 ShortFoilhead
7817 \end_layout
7818
7819 \begin_layout Itemize
7820
7821 \family sans
7822 ShortRotatefoilhead
7823 \end_layout
7824
7825 \begin_layout Standard
7826 and the differences will be explained in the next section.
7827 \end_layout
7828
7829 \begin_layout Standard
7830 Since foils are often used in presenting ideas or new theorems and such
7831  
7832 \family sans
7833 Foil\SpecialChar TeX
7834
7835 \family default
7836  also provides a comprehensive box of goodies for presenting them:
7837 \end_layout
7838
7839 \begin_layout Standard
7840 \begin_inset Flex Multiple Columns
7841 status open
7842
7843 \begin_layout Itemize
7844
7845 \family sans
7846 Theorem
7847 \end_layout
7848
7849 \begin_layout Itemize
7850
7851 \family sans
7852 Lemma
7853 \end_layout
7854
7855 \begin_layout Itemize
7856
7857 \family sans
7858 Corollary
7859 \end_layout
7860
7861 \begin_layout Itemize
7862
7863 \family sans
7864 Proposition
7865 \end_layout
7866
7867 \begin_layout Itemize
7868
7869 \family sans
7870 Definition
7871 \end_layout
7872
7873 \begin_layout Itemize
7874
7875 \family sans
7876 Proof
7877 \end_layout
7878
7879 \begin_layout Itemize
7880
7881 \family sans
7882 Theorem*
7883 \end_layout
7884
7885 \begin_layout Itemize
7886
7887 \family sans
7888 Lemma*
7889 \end_layout
7890
7891 \begin_layout Itemize
7892
7893 \family sans
7894 Corollary*
7895 \end_layout
7896
7897 \begin_layout Itemize
7898
7899 \family sans
7900 Proposition*
7901 \end_layout
7902
7903 \begin_layout Itemize
7904
7905 \family sans
7906 Definition*
7907 \end_layout
7908
7909 \end_inset
7910
7911
7912 \end_layout
7913
7914 \begin_layout Standard
7915 The starred versions are unnumbered while the unstarred versions are numbered.
7916  There are also two list environments added by \SpecialChar LyX
7917  and these are:
7918 \end_layout
7919
7920 \begin_layout Itemize
7921
7922 \family sans
7923 TickList
7924 \end_layout
7925
7926 \begin_layout Itemize
7927
7928 \family sans
7929 CrossList
7930 \end_layout
7931
7932 \begin_layout Standard
7933
7934 \family sans
7935 Foil\SpecialChar TeX
7936
7937 \family default
7938  provides some powerful header and footer capabilities that are best set
7939  in the preamble although they may be set at any point in a document.
7940  If you want to change these settings in your document the best place to
7941  do so is at the very top of a foil, i.
7942 \begin_inset space \thinspace{}
7943 \end_inset
7944
7945 e.
7946 \emph on
7947
7948 \begin_inset space \space{}
7949 \end_inset
7950
7951
7952 \emph default
7953 straight after the foilhead.
7954 \end_layout
7955
7956 \begin_layout Standard
7957 For this purpose, the following command styles are provided [
7958 \shape smallcaps
7959 Martin Vermeer
7960 \shape default
7961 ]:
7962 \end_layout
7963
7964 \begin_layout Standard
7965 \begin_inset Flex Multiple Columns
7966 status open
7967
7968 \begin_layout Itemize
7969
7970 \family sans
7971 My
7972 \begin_inset space ~
7973 \end_inset
7974
7975 Logo
7976 \end_layout
7977
7978 \begin_layout Itemize
7979
7980 \family sans
7981 Restriction
7982 \end_layout
7983
7984 \begin_layout Itemize
7985
7986 \family sans
7987 Right
7988 \begin_inset space ~
7989 \end_inset
7990
7991 Footer
7992 \end_layout
7993
7994 \begin_layout Itemize
7995
7996 \family sans
7997 Right
7998 \begin_inset space ~
7999 \end_inset
8000
8001 Header
8002 \end_layout
8003
8004 \begin_layout Itemize
8005
8006 \family sans
8007 Left
8008 \begin_inset space ~
8009 \end_inset
8010
8011 Header
8012 \end_layout
8013
8014 \begin_deeper
8015 \begin_layout Plain Layout
8016 \begin_inset space ~
8017 \end_inset
8018
8019
8020 \end_layout
8021
8022 \end_deeper
8023 \end_inset
8024
8025
8026 \end_layout
8027
8028 \begin_layout Standard
8029 There are also a few commands provided by 
8030 \family sans
8031 Foil\SpecialChar TeX
8032
8033 \family default
8034  that aren't directly supported by \SpecialChar LyX
8035  but I'll tell you what they do and how
8036  to use them in section
8037 \begin_inset space ~
8038 \end_inset
8039
8040
8041 \begin_inset CommandInset ref
8042 LatexCommand ref
8043 reference "sec:unsuppfoils"
8044
8045 \end_inset
8046
8047 .
8048 \end_layout
8049
8050 \begin_layout Subsubsection
8051 Building a Set of Foils
8052 \end_layout
8053
8054 \begin_layout Standard
8055 This section will give a simple introduction to using the different environments
8056  to build a set of foils.
8057  If you want to see an example set of foils, take a look at the 
8058 \family typewriter
8059 Foils.lyx
8060 \family default
8061  file you find in \SpecialChar LyX
8062 's 
8063 \family typewriter
8064 examples
8065 \family default
8066  folder.
8067 \end_layout
8068
8069 \begin_layout Paragraph
8070 Give It a Title Page
8071 \end_layout
8072
8073 \begin_layout Standard
8074 Unlike other classes that provide 
8075 \family sans
8076 Title
8077 \family default
8078
8079 \family sans
8080 Author
8081 \family default
8082
8083 \family sans
8084 Date
8085 \family default
8086  and 
8087 \family sans
8088 Abstract
8089 \family default
8090  environments, 
8091 \family sans
8092 foils
8093 \family default
8094  creates the title on a page of its own.
8095  If you leave out the 
8096 \family sans
8097 Date
8098 \family default
8099  environment \SpecialChar LaTeX
8100  will substitute the current date (every time you regenerate
8101  the output).
8102 \end_layout
8103
8104 \begin_layout Paragraph
8105 Start a New Foil
8106 \end_layout
8107
8108 \begin_layout Standard
8109 As I mentioned earlier, there are four ways of starting a new foil.
8110  For portrait foils you should use 
8111 \family sans
8112 Foilhead
8113 \family default
8114  or 
8115 \family sans
8116 ShortFoilhead.
8117
8118 \family default
8119  The difference between these two environments is the amount of space between
8120  the title of the foil (the foilhead) and the body of the foil.
8121 \end_layout
8122
8123 \begin_layout Standard
8124 Landscape foils are generated using the 
8125 \family sans
8126 Rotatefoilhead
8127 \family default
8128  and 
8129 \family sans
8130 ShortRotatefoilhead
8131 \family default
8132  environments.
8133  Again the only difference is the spacing between foilhead and body.
8134  Both of the short versions have 0.5
8135 \begin_inset space ~
8136 \end_inset
8137
8138 inches less separation between the foilhead and the body.
8139  
8140 \end_layout
8141
8142 \begin_layout Standard
8143 One problem with the support for landscape foils is the requirement that
8144  you have to use the 
8145 \family typewriter
8146 dvips
8147 \family default
8148  driver to generate the PostScript output otherwise the foils won't be rotated.
8149  It is possible to get landscape foils even if you haven't got the 
8150 \family typewriter
8151 dvips
8152 \family default
8153  driver provided you can feed your foils sideways through your printer ;-)
8154 \end_layout
8155
8156 \begin_layout Paragraph
8157 Theorems, Lemmas, Proofs and more
8158 \end_layout
8159
8160 \begin_layout Standard
8161 You can't have two of the same type of these environments directly following
8162  each other.
8163  If you use a normal paragraph break, , you will just be extending the previous
8164  environment as if you had merged the two environments together.
8165  Rather than that, you need to insert a so-called separator.
8166  Please refer to the section entitled 
8167 \emph on
8168 Separate Nestings
8169 \emph default
8170  in the 
8171 \emph on
8172 User's Guide
8173 \emph default
8174 .
8175 \end_layout
8176
8177 \begin_layout Paragraph
8178 Lists
8179 \end_layout
8180
8181 \begin_layout Standard
8182 You get all the commonly supported list styles found in other classes as
8183  well as two new ones.
8184  I'll only describe the new ones here.
8185  If you want to find out more about the other list environments check out
8186  the 
8187 \emph on
8188 User's Guide.
8189
8190 \emph default
8191  If you intend to use itemized lists you might also want to read about the
8192  
8193 \family sans
8194 Itemize
8195 \begin_inset space ~
8196 \end_inset
8197
8198 Bullet
8199 \begin_inset space ~
8200 \end_inset
8201
8202 Selection
8203 \family default
8204  dialog described above in section
8205 \begin_inset space ~
8206 \end_inset
8207
8208
8209 \begin_inset CommandInset ref
8210 LatexCommand ref
8211 reference "sec:bullet"
8212
8213 \end_inset
8214
8215 .
8216 \end_layout
8217
8218 \begin_layout Standard
8219 The two new list styles, 
8220 \family sans
8221 TickList
8222 \family default
8223  and 
8224 \family sans
8225 CrossList
8226 \family default
8227 , are designed to make it easier for you to create lists of do's and don'ts
8228  or right and wrong by providing dedicated environments that use a tick
8229  or a cross as the label of the list.
8230  These lists are in fact dedicated variants of the 
8231 \family sans
8232 Itemize
8233 \family default
8234  environment.
8235  They do however require that you have the 
8236 \family typewriter
8237 psnfss
8238 \family default
8239  packages installed.
8240 \end_layout
8241
8242 \begin_layout Paragraph
8243 Figures and Tables
8244 \end_layout
8245
8246 \begin_layout Standard
8247
8248 \family sans
8249 Foil\SpecialChar TeX
8250
8251 \family default
8252  redefines the floating tables and figures so that they appear exactly where
8253  they are in the text rather than pushing them to the top of the page or
8254  to some user specified location.
8255  In fact if you change the float placement settings they are simply ignored.
8256 \end_layout
8257
8258 \begin_layout Paragraph
8259 Page Headers and Footers
8260 \begin_inset CommandInset label
8261 LatexCommand label
8262 name "sec:foilfoot"
8263
8264 \end_inset
8265
8266
8267 \end_layout
8268
8269 \begin_layout Standard
8270
8271 \family sans
8272 My
8273 \begin_inset space ~
8274 \end_inset
8275
8276 Logo
8277 \family default
8278  and 
8279 \family sans
8280 Restriction
8281 \family default
8282  are two commands used to control the left-footer text string.
8283  The first is meant to allow you to include a graphic logo on your foils
8284  and defaults to 
8285 \begin_inset Quotes eld
8286 \end_inset
8287
8288 -Typeset by 
8289 \family sans
8290 Foil\SpecialChar TeX
8291
8292 \family default
8293 -
8294 \begin_inset Quotes erd
8295 \end_inset
8296
8297 .
8298  While the second is meant to provide a classification for the audience,
8299  
8300 \emph on
8301 e.
8302 \begin_inset space \thinspace{}
8303 \end_inset
8304
8305 g.
8306 \emph default
8307
8308 \begin_inset space \space{}
8309 \end_inset
8310
8311 Confidential.
8312  It is empty by default.
8313 \end_layout
8314
8315 \begin_layout Standard
8316 The remaining page corners can be filled by 
8317 \family sans
8318 Right
8319 \begin_inset space ~
8320 \end_inset
8321
8322 Footer
8323 \family default
8324  (which defaults to page numbers), 
8325 \family sans
8326 Right
8327 \begin_inset space ~
8328 \end_inset
8329
8330 Header
8331 \family default
8332  (top right) and 
8333 \family sans
8334 Left
8335 \begin_inset space ~
8336 \end_inset
8337
8338 Header
8339 \family default
8340  (top left).
8341 \end_layout
8342
8343 \begin_layout Subsubsection
8344 Unsupported 
8345 \family sans
8346 Foil\SpecialChar TeX
8347
8348 \family default
8349  Goodies
8350 \begin_inset CommandInset label
8351 LatexCommand label
8352 name "sec:unsuppfoils"
8353
8354 \end_inset
8355
8356
8357 \end_layout
8358
8359 \begin_layout Standard
8360 All the commands mentioned below need to be set in a 
8361 \family sans
8362 \SpecialChar LaTeX
8363
8364 \family default
8365  environment or as 
8366 \family sans
8367 \SpecialChar TeX
8368
8369 \family default
8370  within another environment.
8371 \end_layout
8372
8373 \begin_layout Paragraph
8374 Lengths
8375 \end_layout
8376
8377 \begin_layout Standard
8378 All lengths are adjusted using the 
8379 \family typewriter
8380
8381 \backslash
8382 setlength{
8383 \family default
8384 \emph on
8385 lengthname
8386 \family typewriter
8387 \emph default
8388 }{
8389 \family default
8390 \emph on
8391 newlength
8392 \family typewriter
8393 \emph default
8394 }
8395 \family default
8396  command.
8397  Where 
8398 \emph on
8399 lengthname
8400 \emph default
8401  should be replaced by the name given to the length you want to change and
8402  
8403 \emph on
8404 newlength
8405 \emph default
8406  is the length value.
8407  All lengths should be specified in units of length such as inches (
8408 \family typewriter
8409 in
8410 \family default
8411 ), millimeters (
8412 \family typewriter
8413 mm
8414 \family default
8415 ) or points (
8416 \family typewriter
8417 pt
8418 \family default
8419 ) or relative to some document or font-based length such as 
8420 \family typewriter
8421
8422 \backslash
8423 textwidth
8424 \family default
8425 .
8426  
8427 \end_layout
8428
8429 \begin_layout Standard
8430 It's possible to change the spacing between a foilhead and the body of the
8431  foil by adjusting the length specified by 
8432 \family typewriter
8433
8434 \backslash
8435 foilheadskip
8436 \family default
8437 .
8438  For example, to make 
8439 \emph on
8440 all
8441 \emph default
8442  foilheads 0.5
8443 \begin_inset space \space{}
8444 \end_inset
8445
8446 in closer to their bodies put the following in the preamble: 
8447 \family typewriter
8448
8449 \backslash
8450 setlength{
8451 \backslash
8452 foilheadskip}{-0.5in}
8453 \end_layout
8454
8455 \begin_layout Standard
8456 The spacings around floats can be adjusted by setting these lengths:
8457 \end_layout
8458
8459 \begin_layout Labeling
8460 \labelwidthstring MMMMMMMMMMM
8461
8462 \family typewriter
8463
8464 \backslash
8465 abovefloatskip
8466 \family default
8467  Separation between the text and the top of the float
8468 \end_layout
8469
8470 \begin_layout Labeling
8471 \labelwidthstring MMMMMMMMMMM
8472
8473 \family typewriter
8474
8475 \backslash
8476 abovecaptionskip
8477 \family default
8478  Separation between the float and the caption
8479 \end_layout
8480
8481 \begin_layout Labeling
8482 \labelwidthstring MMMMMMMMMMM
8483
8484 \family typewriter
8485
8486 \backslash
8487 belowcaptionskip
8488 \family default
8489  Separation between the caption and the following text
8490 \end_layout
8491
8492 \begin_layout Labeling
8493 \labelwidthstring MMMMMMMMMMM
8494
8495 \family typewriter
8496
8497 \backslash
8498 captionwidth
8499 \family default
8500  You can make the captions narrower than the surrounding text by adjusting
8501  this length.
8502  Best done relative to 
8503 \family typewriter
8504
8505 \backslash
8506 textwidth
8507 \family default
8508 .
8509 \end_layout
8510
8511 \begin_layout Standard
8512 There are also several title page related lengths that you may find useful
8513  if you have a long title or several authors:
8514 \end_layout
8515
8516 \begin_layout Labeling
8517 \labelwidthstring MMMMMMMMMMM
8518
8519 \family typewriter
8520
8521 \backslash
8522 abovetitleskip
8523 \family default
8524  Separation from headers to 
8525 \family sans
8526 Title
8527 \end_layout
8528
8529 \begin_layout Labeling
8530 \labelwidthstring MMMMMMMMMMM
8531
8532 \family typewriter
8533
8534 \backslash
8535 titleauthorskip
8536 \family default
8537  between 
8538 \family sans
8539 Title
8540 \family default
8541  and 
8542 \family sans
8543 Author
8544 \family default
8545  environments
8546 \end_layout
8547
8548 \begin_layout Labeling
8549 \labelwidthstring MMMMMMMMMMM
8550
8551 \family typewriter
8552
8553 \backslash
8554 authorauthorskip
8555 \family default
8556  between multiple 
8557 \family sans
8558 Author
8559 \family default
8560  lines
8561 \end_layout
8562
8563 \begin_layout Labeling
8564 \labelwidthstring MMMMMMMMMMM
8565
8566 \family typewriter
8567
8568 \backslash
8569 authordateskip
8570 \family default
8571  between the 
8572 \family sans
8573 Author
8574 \family default
8575  and the 
8576 \family sans
8577 Date
8578 \end_layout
8579
8580 \begin_layout Labeling
8581 \labelwidthstring MMMMMMMMMMM
8582
8583 \family typewriter
8584
8585 \backslash
8586 dateabstractskip
8587 \family default
8588  between the 
8589 \family sans
8590 Date
8591 \family default
8592  and the 
8593 \family sans
8594 Abstract
8595 \end_layout
8596
8597 \begin_layout Standard
8598 The last length related command affects all the list environments.
8599  If you place 
8600 \family typewriter
8601
8602 \backslash
8603 zerolistvertdimens
8604 \family default
8605  
8606 \emph on
8607 inside
8608 \emph default
8609  a list environment then all the vertical spacing between the list items
8610  is removed.
8611  Note that this is a command not a length so it doesn't require 
8612 \family typewriter
8613
8614 \backslash
8615 setlength
8616 \family default
8617  like the stuff mentioned above.
8618 \end_layout
8619
8620 \begin_layout Paragraph
8621 Headers and Footers
8622 \end_layout
8623
8624 \begin_layout Standard
8625 The 
8626 \family typewriter
8627
8628 \backslash
8629 LogoOn
8630 \family default
8631  and 
8632 \family typewriter
8633
8634 \backslash
8635 LogoOff
8636 \family default
8637  commands control whether the logo in the 
8638 \family sans
8639 MyLogo
8640 \family default
8641  definition appear on a given page.
8642  If you put 
8643 \family typewriter
8644
8645 \backslash
8646 LogoOff
8647 \family default
8648  in the preamble then none of the foils will have the logo on them.
8649  If you don't want the logo on a particular page place the 
8650 \family typewriter
8651
8652 \backslash
8653 LogoOff
8654 \family default
8655  directly after the foilhead of that page and the 
8656 \family typewriter
8657
8658 \backslash
8659 LogoOn
8660 \family default
8661  directly after the next foilhead.
8662 \end_layout
8663
8664 \begin_layout Standard
8665 If you decide to use the 
8666 \family sans
8667 fancy
8668 \family default
8669  page style setting in the 
8670 \family sans
8671 Document
8672 \begin_inset space ~
8673 \end_inset
8674
8675 Layout
8676 \family default
8677  dialog you should probably add 
8678 \family typewriter
8679
8680 \backslash
8681 let
8682 \backslash
8683 headwidth
8684 \backslash
8685 textwidth
8686 \family default
8687  to your preamble so headers and footers on landscape pages are correctly
8688  placed when rotated.
8689  This is due to some clashes between the page layouts provided by the 
8690 \family sans
8691 fancyheadings
8692 \family default
8693  package and the 
8694 \family sans
8695 foils
8696 \family default
8697  class.
8698 \end_layout
8699
8700 \begin_layout Section
8701
8702 \change_inserted 564990737 1670439661
8703 Reports
8704 \end_layout
8705
8706 \begin_layout Subsection
8707
8708 \change_inserted 564990737 1670439661
8709 report
8710 \end_layout
8711
8712 \begin_layout Standard
8713
8714 \change_inserted 564990737 1670439661
8715 The document class 
8716 \family sans
8717 report
8718 \family default
8719  provides the 
8720 \family sans
8721 report.cls
8722 \family default
8723  document class for preparing reports.
8724  Like the 
8725 \family sans
8726 book
8727 \family default
8728  document class, this provides parts, chapters and sections but does not
8729  provide the paragraph styles needed for a book; like the 
8730 \family sans
8731 article
8732 \family default
8733  document class, it provides the abstract paragraph style.
8734  In two-sided mode, it does not start a new chapter on the right hand page.
8735 \end_layout
8736
8737 \begin_layout Standard
8738
8739 \change_inserted 564990737 1670439674
8740 The remaining 
8741 \family sans
8742 report
8743 \family default
8744  document classes are described in the Collections (section
8745 \begin_inset space ~
8746 \end_inset
8747
8748
8749 \begin_inset CommandInset ref
8750 LatexCommand ref
8751 reference "sec:Collections"
8752
8753 \end_inset
8754
8755 ).
8756 \end_layout
8757
8758 \begin_layout Section
8759
8760 \change_inserted 564990737 1670439674
8761 Scripts (drama)
8762 \end_layout
8763
8764 \begin_layout Subsection
8765 Broadway
8766 \end_layout
8767
8768 \begin_layout Standard
8769 by 
8770 \shape smallcaps
8771 Garst Reese
8772 \end_layout
8773
8774 \begin_layout Subsubsection
8775 Introduction
8776 \end_layout
8777
8778 \begin_layout Standard
8779 Broadway is for writing plays.
8780  The format is more decorative than Hollywood, and much less standardized.
8781  This format should be suitable for workshops.
8782 \end_layout
8783
8784 \begin_layout Subsubsection
8785 Special problems
8786 \end_layout
8787
8788 \begin_layout Standard
8789 The same as in Hollywood.
8790 \end_layout
8791
8792 \begin_layout Subsubsection
8793 Special features
8794 \end_layout
8795
8796 \begin_layout Standard
8797 Insert the 
8798 \family sans
8799 Speaker
8800 \family default
8801  names as labels then cross-reference the label to insert the name.
8802  The cross-reference dialog will show the current cast of characters.
8803 \end_layout
8804
8805 \begin_layout Subsubsection
8806 Paper size and Margins
8807 \end_layout
8808
8809 \begin_layout Standard
8810 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
8811 \end_layout
8812
8813 \begin_layout Subsubsection
8814 Environments
8815 \end_layout
8816
8817 \begin_layout Standard
8818 The following environments are available.
8819  You can use broadway.bind to get the bind keys shown at the right.
8820 \end_layout
8821
8822 \begin_layout Itemize
8823
8824 \family sans
8825 Standard
8826 \begin_inset Newline newline
8827 \end_inset
8828
8829
8830 \family default
8831 You should not have to use this, but it is here for anything that does not
8832  fit otherwise.
8833 \end_layout
8834
8835 \begin_layout Itemize
8836
8837 \family sans
8838 Narrative
8839 \begin_inset space \hfill{}
8840 \end_inset
8841
8842 M-z n
8843 \begin_inset Newline newline
8844 \end_inset
8845
8846
8847 \family default
8848 Used to describe stage setting and the action.
8849  First use of speaker names in all CAPs.
8850 \end_layout
8851
8852 \begin_layout Itemize
8853
8854 \family sans
8855 ACT
8856 \begin_inset space \hfill{}
8857 \end_inset
8858
8859 M-z a
8860 \begin_inset Newline newline
8861 \end_inset
8862
8863
8864 \family default
8865 Automatically numbered.
8866  On screen it will be arabic, but will print as Roman.
8867 \end_layout
8868
8869 \begin_layout Itemize
8870
8871 \family sans
8872 ACT*
8873 \begin_inset space \hfill{}
8874 \end_inset
8875
8876 M-z S at
8877 \begin_inset Newline newline
8878 \end_inset
8879
8880
8881 \family default
8882 Subtitle for 
8883 \family sans
8884 ACT.
8885
8886 \family default
8887  It is just centered text.
8888 \end_layout
8889
8890 \begin_layout Itemize
8891
8892 \family sans
8893 SCENE
8894 \begin_inset space \hfill{}
8895 \end_inset
8896
8897 M-z S-S
8898 \begin_inset Newline newline
8899 \end_inset
8900
8901
8902 \family default
8903 Not automatically numbered.
8904  You supply the number.
8905  This is because I couldn't figure out how.
8906 \end_layout
8907
8908 \begin_layout Itemize
8909
8910 \family sans
8911 AT_RISE:
8912 \begin_inset space \hfill{}
8913 \end_inset
8914
8915 M-z S-R
8916 \begin_inset Newline newline
8917 \end_inset
8918
8919
8920 \family default
8921 A special case of Narrative to describe the setting and action as the curtain
8922  rises.
8923 \end_layout
8924
8925 \begin_layout Itemize
8926
8927 \family sans
8928 Speaker
8929 \begin_inset space \hfill{}
8930 \end_inset
8931
8932 M-z s
8933 \begin_inset Newline newline
8934 \end_inset
8935
8936
8937 \family default
8938 The speaker's (actor's) title, centered in all CAPS.
8939 \end_layout
8940
8941 \begin_layout Itemize
8942
8943 \family sans
8944 Parenthetical
8945 \begin_inset space \hfill{}
8946 \end_inset
8947
8948 M-z p
8949 \begin_inset Newline newline
8950 \end_inset
8951
8952
8953 \family default
8954 Instructions to the speaker.
8955  The parentheses are automatically inserted.
8956  The ( will appear on screen, but both will be in the printed play.
8957  This environment is only used within 
8958 \family sans
8959 Dialogue
8960 \family default
8961 .
8962 \end_layout
8963
8964 \begin_layout Itemize
8965
8966 \family sans
8967 Dialogue
8968 \begin_inset space \hfill{}
8969 \end_inset
8970
8971 M-z d
8972 \begin_inset Newline newline
8973 \end_inset
8974
8975
8976 \family default
8977 What the Speaker says.
8978 \end_layout
8979
8980 \begin_layout Itemize
8981
8982 \family sans
8983 CURTAIN
8984 \begin_inset space \hfill{}
8985 \end_inset
8986
8987 M-z S-C
8988 \begin_inset Newline newline
8989 \end_inset
8990
8991
8992 \family default
8993 The curtain comes down.
8994 \end_layout
8995
8996 \begin_layout Itemize
8997
8998 \family sans
8999 Title
9000 \begin_inset space \hfill{}
9001 \end_inset
9002
9003 M-z S-T
9004 \end_layout
9005
9006 \begin_layout Itemize
9007
9008 \family sans
9009 Author
9010 \begin_inset space \hfill{}
9011 \end_inset
9012
9013 M-z S-A
9014 \end_layout
9015
9016 \begin_layout Itemize
9017
9018 \family sans
9019 Right_Address
9020 \begin_inset space \hfill{}
9021 \end_inset
9022
9023 M-z r
9024 \end_layout
9025
9026 \begin_layout Standard
9027 Hello there.
9028 \end_layout
9029
9030 \begin_layout Subsection
9031 Hollywood (Hollywood spec scripts)
9032 \end_layout
9033
9034 \begin_layout Standard
9035 by 
9036 \shape smallcaps
9037 Garst Reese
9038 \end_layout
9039
9040 \begin_layout Subsubsection
9041 Introduction
9042 \end_layout
9043
9044 \begin_layout Standard
9045 Getting the format of a Hollywood script right is a 
9046 \begin_inset Quotes eld
9047 \end_inset
9048
9049 rite of passage.
9050 \begin_inset Quotes erd
9051 \end_inset
9052
9053  It is designed to make the readers focus on content and to be easy and
9054  familiar for the actors to read.
9055  Each page of a script should be one minute of film.
9056  Nothing goes in a script that you cannot see or hear on screen.
9057  The courier 12 pt font should be used throughout.
9058  No italics.
9059 \end_layout
9060
9061 \begin_layout Subsubsection
9062 Special problems
9063 \end_layout
9064
9065 \begin_layout Standard
9066 Speakers' lines should NEVER break in mid-sentence.
9067  If a speaker's lines continue over a page break, repeat the 
9068 \family sans
9069 Speaker
9070 \family default
9071  title followed by (Cont'd).
9072 \end_layout
9073
9074 \begin_layout Subsubsection
9075 Special features
9076 \end_layout
9077
9078 \begin_layout Standard
9079 Insert the 
9080 \family sans
9081 Speaker
9082 \family default
9083  names as labels then cross-reference the label to insert the name.
9084  The cross-reference dialog will show the current cast of characters.
9085  You can use this to insert the speaker name in narratives also.
9086 \end_layout
9087
9088 \begin_layout Subsubsection
9089 Paper size and Margins
9090 \end_layout
9091
9092 \begin_layout Standard
9093 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
9094 \end_layout
9095
9096 \begin_layout Subsubsection
9097 Environments
9098 \end_layout
9099
9100 \begin_layout Standard
9101 The following environments are available.
9102  You can use hollywood.bind to get the bind keys shown at the right.
9103 \end_layout
9104
9105 \begin_layout Itemize
9106
9107 \family sans
9108 Standard
9109 \begin_inset Newline newline
9110 \end_inset
9111
9112
9113 \family default
9114 Used where nothing else works.
9115  Try to avoid it.
9116 \end_layout
9117
9118 \begin_layout Itemize
9119
9120 \family sans
9121 FADE_IN
9122 \family default
9123 :
9124 \begin_inset space \hfill{}
9125 \end_inset
9126
9127
9128 \family sans
9129 M-z S-I
9130 \family default
9131
9132 \begin_inset Newline newline
9133 \end_inset
9134
9135 Usually followed by something like 
9136 \begin_inset Quotes eld
9137 \end_inset
9138
9139 on Sally waking up.
9140 \begin_inset Quotes erd
9141 \end_inset
9142
9143
9144 \end_layout
9145
9146 \begin_layout Itemize
9147
9148 \family sans
9149 INT:
9150 \begin_inset space \hfill{}
9151 \end_inset
9152
9153 M-z i
9154 \begin_inset Newline newline
9155 \end_inset
9156
9157
9158 \family default
9159 Introduces a new INTERIOR camera set-up.
9160  Always followed by DAY or NIGHT, or something similar to define the lighting
9161  required.
9162  Everthing on this line in CAPS.
9163 \end_layout
9164
9165 \begin_layout Itemize
9166
9167 \family sans
9168 EXT:
9169 \begin_inset space \hfill{}
9170 \end_inset
9171
9172 M-z e
9173 \begin_inset Newline newline
9174 \end_inset
9175
9176
9177 \family default
9178 Introduces a new EXTERIOR camera set-up.
9179  Everthing on this line in CAPS.
9180 \end_layout
9181
9182 \begin_layout Itemize
9183
9184 \family sans
9185 Speaker
9186 \begin_inset space \hfill{}
9187 \end_inset
9188
9189 M-z s
9190 \begin_inset Newline newline
9191 \end_inset
9192
9193
9194 \family default
9195 The character speaking.
9196 \end_layout
9197
9198 \begin_layout Itemize
9199
9200 \family sans
9201 Parenthetical
9202 \begin_inset space \hfill{}
9203 \end_inset
9204
9205 M-z p
9206 \begin_inset Newline newline
9207 \end_inset
9208
9209
9210 \family default
9211 Instructions to the speaker.
9212  The () are automatically inserted.
9213 \end_layout
9214
9215 \begin_layout Itemize
9216
9217 \family sans
9218 Dialogue
9219 \begin_inset space \hfill{}
9220 \end_inset
9221
9222 M-z d
9223 \begin_inset Newline newline
9224 \end_inset
9225
9226
9227 \family default
9228 What the 
9229 \family sans
9230 Speaker
9231 \family default
9232  says.
9233 \end_layout
9234
9235 \begin_layout Itemize
9236
9237 \family sans
9238 Transition
9239 \begin_inset space \hfill{}
9240 \end_inset
9241
9242 M-z t
9243 \begin_inset Newline newline
9244 \end_inset
9245
9246
9247 \family default
9248 Camera movement instruction.
9249  e.
9250 \begin_inset space \thinspace{}
9251 \end_inset
9252
9253 g.
9254 \begin_inset space \space{}
9255 \end_inset
9256
9257 CUT TO:
9258 \end_layout
9259
9260 \begin_layout Itemize
9261
9262 \family sans
9263 FADE OUT:
9264 \begin_inset space \hfill{}
9265 \end_inset
9266
9267 M-z S-I
9268 \end_layout
9269
9270 \begin_layout Itemize
9271
9272 \family sans
9273 Author
9274 \begin_inset space \hfill{}
9275 \end_inset
9276
9277 M-z S-A
9278 \end_layout
9279
9280 \begin_layout Itemize
9281
9282 \family sans
9283 Title
9284 \begin_inset space \hfill{}
9285 \end_inset
9286
9287 M-z S-T
9288 \end_layout
9289
9290 \begin_layout Itemize
9291
9292 \family sans
9293 Right_Address
9294 \begin_inset space \hfill{}
9295 \end_inset
9296
9297 M-z r
9298 \end_layout
9299
9300 \begin_layout Subsubsection
9301 Script jargon
9302 \end_layout
9303
9304 \begin_layout Itemize
9305 (O.S) — off screen
9306 \end_layout
9307
9308 \begin_layout Itemize
9309 (V.0) — voice over
9310 \end_layout
9311
9312 \begin_layout Itemize
9313 b.
9314 \begin_inset space \thinspace{}
9315 \end_inset
9316
9317 g.
9318  — background
9319 \end_layout
9320
9321 \begin_layout Itemize
9322 C.U.
9323  — close-up
9324 \end_layout
9325
9326 \begin_layout Itemize
9327 PAN — camera movement
9328 \end_layout
9329
9330 \begin_layout Itemize
9331 INSERT — cut to close-up of
9332 \end_layout
9333
9334 \begin_layout Chapter
9335 Supplemental Tools
9336 \end_layout
9337
9338 \begin_layout Section
9339 Customizing Bibliographies with Bib\SpecialChar TeX
9340  or Biblatex
9341 \end_layout
9342
9343 \begin_layout Standard
9344 The most basic information about how to use Bib\SpecialChar TeX
9345  or 
9346 \family sans
9347 Biblatex
9348 \family default
9349  with \SpecialChar LyX
9350  is contained in the section 
9351 \emph on
9352 Bibliography databases
9353 \emph default
9354  of the 
9355 \emph on
9356 User's Guide
9357 \emph default
9358 .
9359  The following subsections explain special bibliography features supported
9360  by \SpecialChar LyX
9361 .
9362 \end_layout
9363
9364 \begin_layout Subsection
9365 Alternative Citation Styles
9366 \end_layout
9367
9368 \begin_layout Standard
9369 Standard Bib\SpecialChar TeX
9370  uses numbers (e.
9371 \begin_inset space \thinspace{}
9372 \end_inset
9373
9374 g.
9375 \begin_inset space \space{}
9376 \end_inset
9377
9378
9379 \begin_inset Quotes eld
9380 \end_inset
9381
9382 [12]
9383 \begin_inset Quotes erd
9384 \end_inset
9385
9386 ) to refer to a cited work.
9387  However, in many scientific disciplines, other citation styles are in use.
9388  The most common one is the author-year style (e.
9389 \begin_inset space \thinspace{}
9390 \end_inset
9391
9392 g.
9393 \begin_inset space \space{}
9394 \end_inset
9395
9396
9397 \begin_inset Quotes eld
9398 \end_inset
9399
9400 Knuth 1984a
9401 \begin_inset Quotes erd
9402 \end_inset
9403
9404 ).
9405  \SpecialChar LyX
9406  supports three packages that provide this style, 
9407 \begin_inset Flex Code
9408 status collapsed
9409
9410 \begin_layout Plain Layout
9411 biblatex
9412 \end_layout
9413
9414 \end_inset
9415
9416
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 natbib
9422 \end_layout
9423
9424 \end_inset
9425
9426 , and 
9427 \begin_inset Flex Code
9428 status collapsed
9429
9430 \begin_layout Plain Layout
9431 jurabib
9432 \end_layout
9433
9434 \end_inset
9435
9436 .
9437  Each of these packages has their pros and cons, which cannot be listed
9438  in detail.
9439  If you only want to have simple author-year (or author-numerical) style,
9440  or if you want to use one of the countless style files for 
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 natbib
9446 \end_layout
9447
9448 \end_inset
9449
9450 , then the established 
9451 \begin_inset Flex Code
9452 status collapsed
9453
9454 \begin_layout Plain Layout
9455 natbib
9456 \end_layout
9457
9458 \end_inset
9459
9460  package is probably your choice.
9461  If you look for specific citation styles common in law studies, you might
9462  consider the 
9463 \begin_inset Flex Code
9464 status collapsed
9465
9466 \begin_layout Plain Layout
9467 jurabib
9468 \end_layout
9469
9470 \end_inset
9471
9472  package.
9473  If you want to have full control over the formatting or look for advanced
9474  features such as ibidem, footnote citations, full title citations, advanced
9475  date formats (such as 400 BC) or full localization to other languages than
9476  English, you should definitely consider 
9477 \begin_inset Flex Code
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481 biblatex
9482 \end_layout
9483
9484 \end_inset
9485
9486 , which exceeds all other packages in terms of features, but is also quite
9487  heavy and more resource-hungry.
9488 \end_layout
9489
9490 \begin_layout Standard
9491 The handling of these packages in \SpecialChar LyX
9492  is basically the same.
9493  Go to 
9494 \begin_inset Flex Noun
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 Document\SpecialChar menuseparator
9499 Settings
9500 \end_layout
9501
9502 \end_inset
9503
9504  and select under 
9505 \begin_inset Flex Noun
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 Bibliography
9510 \end_layout
9511
9512 \end_inset
9513
9514  the 
9515 \begin_inset Flex Noun
9516 status collapsed
9517
9518 \begin_layout Plain Layout
9519 Style Format
9520 \end_layout
9521
9522 \end_inset
9523
9524  
9525 \begin_inset Flex Noun
9526 status collapsed
9527
9528 \begin_layout Plain Layout
9529 Basic (BibTeX)
9530 \end_layout
9531
9532 \end_inset
9533
9534
9535 \begin_inset Flex Noun
9536 status collapsed
9537
9538 \begin_layout Plain Layout
9539 Biblatex
9540 \end_layout
9541
9542 \end_inset
9543
9544
9545 \begin_inset Flex Noun
9546 status collapsed
9547
9548 \begin_layout Plain Layout
9549 Biblatex (Natbib mode)
9550 \end_layout
9551
9552 \end_inset
9553
9554
9555 \begin_inset Flex Noun
9556 status collapsed
9557
9558 \begin_layout Plain Layout
9559 Natbib (BibTeX)
9560 \end_layout
9561
9562 \end_inset
9563
9564  or 
9565 \begin_inset Flex Noun
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 Jurabib (BibTeX)
9570 \end_layout
9571
9572 \end_inset
9573
9574  (see sec.
9575 \begin_inset space ~
9576 \end_inset
9577
9578 6.5.3 in the User's Guide for more information on these choices).
9579  With all these packages, you will get some extra features in the citation
9580  dialog and you can select the style of the reference (
9581 \begin_inset Quotes eld
9582 \end_inset
9583
9584 Knuth 1984
9585 \begin_inset Quotes erd
9586 \end_inset
9587
9588
9589 \begin_inset Quotes eld
9590 \end_inset
9591
9592 Knuth (1984)
9593 \begin_inset Quotes erd
9594 \end_inset
9595
9596
9597 \begin_inset Quotes eld
9598 \end_inset
9599
9600 Knuth, 1984
9601 \begin_inset Quotes erd
9602 \end_inset
9603
9604
9605 \begin_inset Quotes eld
9606 \end_inset
9607
9608 1984
9609 \begin_inset Quotes erd
9610 \end_inset
9611
9612  etc.).
9613  Note that either package needs specifically designed style files.
9614  They all ship their own, but there are lots of additional style files,
9615  and there is even an interactive style file builder
9616 \begin_inset Foot
9617 status collapsed
9618
9619 \begin_layout Plain Layout
9620 See 
9621 \begin_inset Flex URL
9622 status open
9623
9624 \begin_layout Plain Layout
9625
9626 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
9627 \end_layout
9628
9629 \end_inset
9630
9631
9632 \end_layout
9633
9634 \end_inset
9635
9636  for 
9637 \begin_inset Flex Code
9638 status collapsed
9639
9640 \begin_layout Plain Layout
9641 natbib
9642 \end_layout
9643
9644 \end_inset
9645
9646 .
9647 \end_layout
9648
9649 \begin_layout Subsection
9650 Subdivided Bibliographies
9651 \end_layout
9652
9653 \begin_layout Standard
9654 Sometimes you might need to divide your bibliography into several sections.
9655  If you are for instance a historian, the possibility to separate sources
9656  and scientific works is most likely a 
9657 \begin_inset Quotes eld
9658 \end_inset
9659
9660 must have
9661 \begin_inset Quotes erd
9662 \end_inset
9663
9664 .
9665  Unfortunately, Bib\SpecialChar TeX
9666  itself does not allow you to do this.
9667  But with the help of some \SpecialChar LaTeX
9668  packages, Bib\SpecialChar TeX
9669  can be extended to fit your needs.
9670 \end_layout
9671
9672 \begin_layout Standard
9673 \SpecialChar LyX
9674  provides native support for one of these packages, 
9675 \family typewriter
9676 bibtopic
9677 \family default
9678 .
9679 \begin_inset Foot
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 Available from 
9684 \begin_inset Flex URL
9685 status open
9686
9687 \begin_layout Plain Layout
9688
9689 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
9690 \end_layout
9691
9692 \end_inset
9693
9694
9695 \end_layout
9696
9697 \end_inset
9698
9699  The advantage of this package (compared to other packages such as 
9700 \family typewriter
9701 multibib
9702 \family default
9703 ) is that you don't need to define new citation commands.
9704  Instead, you need to prepare different bibliographic databases which include
9705  the entries for the different sections of the bibliography.
9706  For example: If you want to divide your bibliography into the sections
9707  
9708 \begin_inset Quotes eld
9709 \end_inset
9710
9711 Sources
9712 \begin_inset Quotes erd
9713 \end_inset
9714
9715  and 
9716 \begin_inset Quotes eld
9717 \end_inset
9718
9719 Scientific works
9720 \begin_inset Quotes erd
9721 \end_inset
9722
9723 , you first need to create two bibliographic databases, e.
9724 \begin_inset space \thinspace{}
9725 \end_inset
9726
9727 g.
9728 \begin_inset space \space{}
9729 \end_inset
9730
9731
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 sources.bib
9737 \end_layout
9738
9739 \end_inset
9740
9741  and 
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 scientific.bib
9747 \end_layout
9748
9749 \end_inset
9750
9751 .
9752  
9753 \end_layout
9754
9755 \begin_layout Standard
9756 Go to 
9757 \begin_inset Flex Noun
9758 status collapsed
9759
9760 \begin_layout Plain Layout
9761 Document\SpecialChar menuseparator
9762 Settings
9763 \end_layout
9764
9765 \end_inset
9766
9767  and check under 
9768 \begin_inset Flex Noun
9769 status collapsed
9770
9771 \begin_layout Plain Layout
9772 Bibliography
9773 \end_layout
9774
9775 \end_inset
9776
9777  the option 
9778 \begin_inset Flex Noun
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 Subdivided bibliography
9783 \end_layout
9784
9785 \end_inset
9786
9787 .
9788  Now you can insert multiple Bib\SpecialChar TeX
9789  bibliographies, one for each section of
9790  your bibliography.
9791  Returning to our example: Insert the Bib\SpecialChar TeX
9792  bibliography 
9793 \begin_inset Flex Code
9794 status collapsed
9795
9796 \begin_layout Plain Layout
9797 sources.bib
9798 \end_layout
9799
9800 \end_inset
9801
9802  and a second one for the database 
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 scientific.bib
9808 \end_layout
9809
9810 \end_inset
9811
9812 .
9813  You are free to use the same or different styles for each section.
9814  Additionally, you can choose if the bibliography section should contain
9815  
9816 \begin_inset Quotes eld
9817 \end_inset
9818
9819 all cited references
9820 \begin_inset Quotes erd
9821 \end_inset
9822
9823  of the specified database(s) (which is the default), 
9824 \begin_inset Quotes eld
9825 \end_inset
9826
9827 all uncited references
9828 \begin_inset Quotes erd
9829 \end_inset
9830
9831  or even 
9832 \begin_inset Quotes eld
9833 \end_inset
9834
9835 all references
9836 \begin_inset Quotes erd
9837 \end_inset
9838
9839 .
9840  This might be useful if you would like to separate your bibliography into
9841  three sections: 
9842 \begin_inset Quotes eld
9843 \end_inset
9844
9845 Cited sources
9846 \begin_inset Quotes erd
9847 \end_inset
9848
9849
9850 \begin_inset Quotes eld
9851 \end_inset
9852
9853 Uncited sources
9854 \begin_inset Quotes erd
9855 \end_inset
9856
9857 , and 
9858 \begin_inset Quotes eld
9859 \end_inset
9860
9861 Scientific works
9862 \begin_inset Quotes erd
9863 \end_inset
9864
9865 .
9866  The titles for the sections can be added as ordinary sections or subsections.
9867  Since 
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872 bibtopic
9873 \end_layout
9874
9875 \end_inset
9876
9877  removes the bibliography title, you have to manually re-add that, too (as
9878  a chapter* or section*, for instance).
9879 \end_layout
9880
9881 \begin_layout Standard
9882 With 
9883 \family sans
9884 Biblatex
9885 \family default
9886 , the procedure is a bit different.
9887  Since 
9888 \family typewriter
9889 bibtopic
9890 \family default
9891  does not work with 
9892 \family sans
9893 Biblatex
9894 \family default
9895 , the aforementioned 
9896 \begin_inset Flex Noun
9897 status collapsed
9898
9899 \begin_layout Plain Layout
9900 Subdivided bibliography
9901 \end_layout
9902
9903 \end_inset
9904
9905  option is disabled if you use 
9906 \family sans
9907 Biblatex
9908 \family default
9909 .
9910  However, 
9911 \family sans
9912 Biblatex
9913 \family default
9914  provides its own means to generate subdivided bibliographies.
9915  You can either add keywords to bibliography entries via the 
9916 \begin_inset Flex Code
9917 status collapsed
9918
9919 \begin_layout Plain Layout
9920 keywords
9921 \end_layout
9922
9923 \end_inset
9924
9925  entry option and then filter bibliography sections by keyword (by adding
9926  
9927 \begin_inset Flex Code
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 keyword=mykeyword
9932 \end_layout
9933
9934 \end_inset
9935
9936  to the 
9937 \begin_inset Flex Noun
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941 Options
9942 \end_layout
9943
9944 \end_inset
9945
9946  field of the dialog that opens if you left-click on the 
9947 \begin_inset Flex Noun
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951 Biblatex Generated Bibliography
9952 \end_layout
9953
9954 \end_inset
9955
9956  button), or you can filter by entry types (such as 
9957 \emph on
9958 book
9959 \emph default
9960  or 
9961 \emph on
9962 article
9963 \emph default
9964 ) by entering e.
9965 \begin_inset space \thinspace{}
9966 \end_inset
9967
9968 g.
9969  
9970 \begin_inset Flex Code
9971 status collapsed
9972
9973 \begin_layout Plain Layout
9974 type=book
9975 \end_layout
9976
9977 \end_inset
9978
9979  or 
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984 nottype=collection
9985 \end_layout
9986
9987 \end_inset
9988
9989  to the mentioned 
9990 \begin_inset Flex Noun
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 Options
9995 \end_layout
9996
9997 \end_inset
9998
9999  field, or you can create so-called 
10000 \begin_inset Quotes eld
10001 \end_inset
10002
10003 Bibliography Categories
10004 \begin_inset Quotes erd
10005 \end_inset
10006
10007  to which you can assign individual entries.
10008  Please refer to the Biblatex manual, section 
10009 \emph on
10010 Subdivided Bibliographies
10011 \emph default
10012 , for details.
10013 \end_layout
10014
10015 \begin_layout Subsection
10016 Multiple Bibliographies
10017 \begin_inset CommandInset label
10018 LatexCommand label
10019 name "subsec:Multiple-Bibliographies"
10020
10021 \end_inset
10022
10023
10024 \end_layout
10025
10026 \begin_layout Standard
10027 Multiple bibliographies, e.
10028 \begin_inset space \thinspace{}
10029 \end_inset
10030
10031 g.
10032 \begin_inset space \space{}
10033 \end_inset
10034
10035 a bibliography for each part, chapter, section, subsection or child (sub-documen
10036 t) of the document, are also supported by \SpecialChar LyX
10037 .
10038  In order to enable it, go to 
10039 \begin_inset Flex Noun
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 Document\SpecialChar menuseparator
10044 Settings\SpecialChar menuseparator
10045 Bibliography
10046 \end_layout
10047
10048 \end_inset
10049
10050  and select the relevant unit (e.
10051 \begin_inset space \thinspace{}
10052 \end_inset
10053
10054 g., 
10055 \begin_inset Quotes eld
10056 \end_inset
10057
10058 per section
10059 \begin_inset Quotes erd
10060 \end_inset
10061
10062 ) in the 
10063 \begin_inset Flex Noun
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 Multiple Bibliographies
10068 \end_layout
10069
10070 \end_inset
10071
10072  combo box.
10073  Then add a Bib(la)\SpecialChar TeX
10074  bibliography to each unit (e.
10075 \begin_inset space \thinspace{}
10076 \end_inset
10077
10078 g., section) of your document.
10079  In the output, a separate bibliography, containing only the references
10080  done in the current unit is generated.
10081 \end_layout
10082
10083 \begin_layout Standard
10084 If you use Bib\SpecialChar TeX
10085 , either the 
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 chapterbib
10091 \end_layout
10092
10093 \end_inset
10094
10095  or the 
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 bibtopic
10101 \end_layout
10102
10103 \end_inset
10104
10105  package is used to create multiple bibliographies.
10106  The former package is used if you select 
10107 \begin_inset Quotes eld
10108 \end_inset
10109
10110 per child document
10111 \begin_inset Quotes erd
10112 \end_inset
10113
10114  and do 
10115 \emph on
10116 not
10117 \emph default
10118  check 
10119 \begin_inset Flex Noun
10120 status collapsed
10121
10122 \begin_layout Plain Layout
10123 Sectioned Bibliography
10124 \end_layout
10125
10126 \end_inset
10127
10128 .
10129  In all other cases, 
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 bibtopic
10135 \end_layout
10136
10137 \end_inset
10138
10139  is used.
10140 \begin_inset Foot
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 An alternative approach, if you are willing to use some 
10145 \begin_inset Flex Noun
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 \SpecialChar TeX
10150  Code
10151 \end_layout
10152
10153 \end_inset
10154
10155  (see section
10156 \begin_inset space ~
10157 \end_inset
10158
10159
10160 \begin_inset CommandInset ref
10161 LatexCommand ref
10162 reference "sec:Inserting-TeX-Code"
10163
10164 \end_inset
10165
10166 ), is to use the 
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 bibunits
10172 \end_layout
10173
10174 \end_inset
10175
10176  package.
10177 \end_layout
10178
10179 \end_inset
10180
10181  If 
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 bibtopic
10187 \end_layout
10188
10189 \end_inset
10190
10191  is used, \SpecialChar LyX
10192  encloses the specified units in 
10193 \begin_inset Flex Code
10194 status collapsed
10195
10196 \begin_layout Plain Layout
10197 bibtopic
10198 \end_layout
10199
10200 \end_inset
10201
10202 's 
10203 \begin_inset Flex Code
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207
10208 \backslash
10209 begin{btUnit}
10210 \end_layout
10211
10212 \end_inset
10213
10214  and 
10215 \begin_inset Flex Code
10216 status collapsed
10217
10218 \begin_layout Plain Layout
10219
10220 \backslash
10221 end{btUnit}
10222 \end_layout
10223
10224 \end_inset
10225
10226  in order to create the units.
10227  Note that this approach has some limitations.
10228  First, every citation reference has to be inside some 
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 btUnit
10234 \end_layout
10235
10236 \end_inset
10237
10238 .
10239  So citations outside a defined unit (e.
10240 \begin_inset space \thinspace{}
10241 \end_inset
10242
10243 g., before the first section if you use 
10244 \begin_inset Quotes eld
10245 \end_inset
10246
10247 by section
10248 \begin_inset Quotes erd
10249 \end_inset
10250
10251 ) will appear as 
10252 \begin_inset Quotes eld
10253 \end_inset
10254
10255 ???
10256 \begin_inset Quotes erd
10257 \end_inset
10258
10259 .
10260  You can also create your own units by entering 
10261 \begin_inset Flex Code
10262 status collapsed
10263
10264 \begin_layout Plain Layout
10265
10266 \backslash
10267 begin{btUnit}
10268 \end_layout
10269
10270 \end_inset
10271
10272  and 
10273 \begin_inset Flex Code
10274 status collapsed
10275
10276 \begin_layout Plain Layout
10277
10278 \backslash
10279 end{btUnit}
10280 \end_layout
10281
10282 \end_inset
10283
10284  as \SpecialChar TeX
10285  code (for instance to work around the mentioned limitation).
10286  Note, though, that 
10287 \begin_inset Flex Code
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 btUnit
10292 \end_layout
10293
10294 \end_inset
10295
10296 s cannot be nested.
10297  A second limitation is that 
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 bibtopic
10303 \end_layout
10304
10305 \end_inset
10306
10307  always processes all references of a bibliography database, even if they
10308  are not cited.
10309  This can result in odd labels (e.
10310 \begin_inset space \thinspace{}
10311 \end_inset
10312
10313 g.
10314  
10315 \begin_inset Quotes eld
10316 \end_inset
10317
10318 Miller 2014b
10319 \begin_inset Quotes erd
10320 \end_inset
10321
10322  if two works of this author from 2014 are in the database, even if only
10323  one is cited).
10324 \end_layout
10325
10326 \begin_layout Standard
10327 If you use 
10328 \family sans
10329 Biblatex
10330 \family default
10331 , the 
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 refsection
10337 \end_layout
10338
10339 \end_inset
10340
10341  option is used instead.
10342  If you need specific units, you can start them with the \SpecialChar TeX
10343  code 
10344 \begin_inset Flex Code
10345 status collapsed
10346
10347 \begin_layout Plain Layout
10348
10349 \backslash
10350 newrefsection
10351 \end_layout
10352
10353 \end_inset
10354
10355  or 
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360
10361 \backslash
10362 newrefsegment
10363 \end_layout
10364
10365 \end_inset
10366
10367 , respectively.
10368  If you also want to control the end of the unit, use the environment 
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373
10374 \backslash
10375 begin{refsection}
10376 \end_layout
10377
10378 \end_inset
10379
10380  \SpecialChar ldots
10381  
10382 \begin_inset Flex Code
10383 status collapsed
10384
10385 \begin_layout Plain Layout
10386
10387 \backslash
10388 end{refsection}
10389 \end_layout
10390
10391 \end_inset
10392
10393  instead.
10394  Note, though, that 
10395 \begin_inset Flex Code
10396 status collapsed
10397
10398 \begin_layout Plain Layout
10399 refsection
10400 \end_layout
10401
10402 \end_inset
10403
10404 s cannot be nested.
10405  In addition to the individual bibliography of the current unit, 
10406 \family sans
10407 Biblatex
10408 \family default
10409  also provides an easy way to output all bibliographies, subsequently, at
10410  one place (e.
10411 \begin_inset space \thinspace{}
10412 \end_inset
10413
10414 g., at the end of the document).
10415  Select 
10416 \begin_inset Quotes eld
10417 \end_inset
10418
10419 all reference units
10420 \begin_inset Quotes erd
10421 \end_inset
10422
10423  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
10424  this.
10425  Please refer to the 
10426 \family sans
10427 Biblatex
10428 \family default
10429  manual for more information on this topic.
10430 \end_layout
10431
10432 \begin_layout Section
10433 Multipart Documents
10434 \end_layout
10435
10436 \begin_layout Subsection
10437 General Operation
10438 \end_layout
10439
10440 \begin_layout Standard
10441 When you are working on a large file with many sections, it is often convenient
10442  to break up the document into several files, or perhaps you have something
10443  where a table may change from time to time, but the preceding text does
10444  not.
10445  In these cases, you should seriously consider using multipart documents.
10446  For example, scientific papers often have five major sections: the introduction
10447 , observations, results, discussion, and conclusion.
10448  Each of these could be its own separate \SpecialChar LyX
10449  file, with one 
10450 \begin_inset Quotes eld
10451 \end_inset
10452
10453 master
10454 \begin_inset Quotes erd
10455 \end_inset
10456
10457  file which contains the title, authors, abstract, references, etc., plus
10458  the five included files.
10459  It is important to note that each of these files is a full \SpecialChar LyX
10460  file which
10461  can be formatted and printed on its own, as well as included in a master
10462  file.
10463  Each of these files must have the same document class, however—don't attempt
10464  to mix book classes with article classes.
10465  You may also include \SpecialChar LaTeX
10466  files; however, these files must not have their own
10467  preamble (i.
10468 \begin_inset space \thinspace{}
10469 \end_inset
10470
10471 e.
10472 \begin_inset space \space{}
10473 \end_inset
10474
10475 everything up to and including the 
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480
10481 \backslash
10482 begin{document}
10483 \end_layout
10484
10485 \end_inset
10486
10487  line as well as the 
10488 \begin_inset Flex Code
10489 status collapsed
10490
10491 \begin_layout Plain Layout
10492
10493 \backslash
10494 end{document}
10495 \end_layout
10496
10497 \end_inset
10498
10499  line must be deleted) or else errors will be generated when you try to
10500  make a DVI file.
10501 \end_layout
10502
10503 \begin_layout Standard
10504 \SpecialChar LyX
10505  allows you to include files quite easily with 
10506 \begin_inset Flex Noun
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 Insert\SpecialChar menuseparator
10511 Child
10512 \begin_inset space ~
10513 \end_inset
10514
10515 Document
10516 \end_layout
10517
10518 \end_inset
10519
10520 .
10521  When you click on this selection a small box is inserted into the file
10522  at the current cursor location.
10523  Clicking on the box raises a dialog which allows you to select the file
10524  to be included, and the method of its inclusion.
10525  
10526 \end_layout
10527
10528 \begin_layout Standard
10529 The file selection box should by now be obvious.
10530  The three inclusion methods are 
10531 \begin_inset Quotes eld
10532 \end_inset
10533
10534 include
10535 \begin_inset Quotes erd
10536 \end_inset
10537
10538
10539 \begin_inset Quotes eld
10540 \end_inset
10541
10542 input
10543 \begin_inset Quotes erd
10544 \end_inset
10545
10546 , and 
10547 \begin_inset Quotes eld
10548 \end_inset
10549
10550 verbatim
10551 \begin_inset Quotes erd
10552 \end_inset
10553
10554 .
10555  The methods 
10556 \begin_inset Quotes eld
10557 \end_inset
10558
10559 include
10560 \begin_inset Quotes erd
10561 \end_inset
10562
10563  and 
10564 \begin_inset Quotes eld
10565 \end_inset
10566
10567 input
10568 \begin_inset Quotes erd
10569 \end_inset
10570
10571  are similar in many ways, but there are also some notable differences:
10572 \end_layout
10573
10574 \begin_layout Enumerate
10575 Files that are 
10576 \begin_inset Quotes eld
10577 \end_inset
10578
10579 included
10580 \begin_inset Quotes erd
10581 \end_inset
10582
10583  are typeset beginning on a new page, while files that are 
10584 \begin_inset Quotes eld
10585 \end_inset
10586
10587 inputted
10588 \begin_inset Quotes erd
10589 \end_inset
10590
10591  are typeset starting on the current page.
10592 \end_layout
10593
10594 \begin_layout Enumerate
10595 \begin_inset Quotes eld
10596 \end_inset
10597
10598 Included
10599 \begin_inset Quotes erd
10600 \end_inset
10601
10602  files cannot themselves 
10603 \begin_inset Quotes eld
10604 \end_inset
10605
10606 include
10607 \begin_inset Quotes erd
10608 \end_inset
10609
10610  further files (
10611 \begin_inset Quotes eld
10612 \end_inset
10613
10614 grandchilds
10615 \begin_inset Quotes erd
10616 \end_inset
10617
10618 ).
10619  With 
10620 \begin_inset Quotes eld
10621 \end_inset
10622
10623 input
10624 \begin_inset Quotes erd
10625 \end_inset
10626
10627 , on the other hand, infinite sub-inputting is possible.
10628 \end_layout
10629
10630 \begin_layout Enumerate
10631 \begin_inset Quotes eld
10632 \end_inset
10633
10634 Include
10635 \begin_inset Quotes erd
10636 \end_inset
10637
10638  allow for the output of only selected 
10639 \begin_inset Quotes eld
10640 \end_inset
10641
10642 included
10643 \begin_inset Quotes erd
10644 \end_inset
10645
10646  files, while maintaining the actual counters (pagination etc.) and references
10647  (please refer to the section 
10648 \emph on
10649 Child
10650 \begin_inset space ~
10651 \end_inset
10652
10653 Documents
10654 \emph default
10655  of the 
10656 \emph on
10657 Embedded
10658 \begin_inset space ~
10659 \end_inset
10660
10661 Objects
10662 \emph default
10663  manual for details).
10664 \end_layout
10665
10666 \begin_layout Standard
10667 Hence, 
10668 \begin_inset Quotes eld
10669 \end_inset
10670
10671 include
10672 \begin_inset Quotes erd
10673 \end_inset
10674
10675  is the preferred method for chapters that are outsourced to child documents,
10676  while 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680 input
10681 \begin_inset Quotes erd
10682 \end_inset
10683
10684  is more suitable for arbitrary file inheritance.
10685 \end_layout
10686
10687 \begin_layout Standard
10688
10689 \begin_inset Quotes eld
10690 \end_inset
10691
10692 verbatim
10693 \begin_inset Quotes erd
10694 \end_inset
10695
10696  included file allows you to include a file typeset exactly as it appears
10697  in the file, i.
10698 \begin_inset space \thinspace{}
10699 \end_inset
10700
10701 e.
10702 \begin_inset space \space{}
10703 \end_inset
10704
10705 in 
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 verbatim
10711 \end_layout
10712
10713 \end_inset
10714
10715  mode, with the characters set in a fixed-width typewriter font.
10716  Normally, spaces in this file are invisible, though two consecutive spaces
10717  are conserved, unlike \SpecialChar LyX
10718 's normal treatment of spaces.
10719  However, setting the 
10720 \begin_inset Flex Noun
10721 status collapsed
10722
10723 \begin_layout Plain Layout
10724 Mark
10725 \begin_inset space ~
10726 \end_inset
10727
10728 spaces
10729 \begin_inset space ~
10730 \end_inset
10731
10732 in
10733 \begin_inset space ~
10734 \end_inset
10735
10736 output
10737 \end_layout
10738
10739 \end_inset
10740
10741  checkbox typesets a mark to unambiguously define the presence of a space.
10742  
10743 \end_layout
10744
10745 \begin_layout Standard
10746 Generally, the master file is converted into a full \SpecialChar LaTeX
10747  file before typesetting,
10748  while the included files are converted to \SpecialChar LaTeX
10749  files that do not have all the
10750  preamble information.
10751 \end_layout
10752
10753 \begin_layout Subsection
10754 Cross-References Between Files
10755 \end_layout
10756
10757 \begin_layout Standard
10758 \begin_inset Box Shadowbox
10759 position "t"
10760 hor_pos "c"
10761 has_inner_box 1
10762 inner_pos "t"
10763 use_parbox 0
10764 use_makebox 0
10765 width "100col%"
10766 special "none"
10767 height "1in"
10768 height_special "totalheight"
10769 thickness "0.4pt"
10770 separation "3pt"
10771 shadowsize "4pt"
10772 framecolor "black"
10773 backgroundcolor "none"
10774 status open
10775
10776 \begin_layout Plain Layout
10777 This section is somewhat out of date.
10778  Need to describe default master documents and how children are opened when
10779  the master is.
10780  [[FIXME]]
10781 \end_layout
10782
10783 \end_inset
10784
10785
10786 \end_layout
10787
10788 \begin_layout Standard
10789 It is possible to set up cross-references between the different files.
10790  First, open all the files in question: let's call them A and B in a two
10791  file example, where B is included in A.
10792  Let's say you insert a label in A, then want to reference it in B.
10793  Open the cross-reference dialog whilst in document B, and you can select
10794  the 
10795 \begin_inset Quotes eld
10796 \end_inset
10797
10798 buffer
10799 \begin_inset Quotes erd
10800 \end_inset
10801
10802  to use.
10803 \end_layout
10804
10805 \begin_layout Subsection
10806 Bibliography Lists in all Subdocuments
10807 \end_layout
10808
10809 \begin_layout Standard
10810 If you work with child documents, you might want to have only one main bibliogra
10811 phy at the end, but still be able to have a selected bibliography for the
10812  child if you output it on its own.
10813  Here is how to achieve this.
10814 \end_layout
10815
10816 \begin_layout Standard
10817 For the main document, you just insert a bibliography inset at the place
10818  where the main bibliography has to appear (within the master file or within
10819  a child).
10820  If the bibliography inset is in the master file, the references will be
10821  inherited by all children, so they are available in the citation dialog
10822  within each child.
10823 \end_layout
10824
10825 \begin_layout Standard
10826 For child-specific bibliographies, insert bibliography insets within the
10827  child documents, at the place where the bibliography should appear when
10828  the child is compiled separately.
10829  However, the trick is to insert them into a branch (
10830 \family sans
10831 Insert\SpecialChar menuseparator
10832 Branch\SpecialChar menuseparator
10833 Insert New Branch...
10834 \family default
10835 ), e.
10836 \begin_inset space \thinspace{}
10837 \end_inset
10838
10839 g.
10840  called 
10841 \begin_inset Quotes eld
10842 \end_inset
10843
10844 Childonly
10845 \begin_inset Quotes erd
10846 \end_inset
10847
10848 .
10849  Within the children, activate the branch (
10850 \family sans
10851 Document\SpecialChar menuseparator
10852 Settings...\SpecialChar menuseparator
10853 Branches
10854 \family default
10855 ).
10856  Within the master, deactivate the branch (
10857 \family sans
10858 Document\SpecialChar menuseparator
10859 Settings...\SpecialChar menuseparator
10860 Branches
10861 \family default
10862 ).
10863  Now the child's bibliography will be ignored by the master, but considered
10864  by the child.
10865 \end_layout
10866
10867 \begin_layout Standard
10868 If you need multiple bibliographies (e.
10869 \begin_inset space \thinspace{}
10870 \end_inset
10871
10872 g., one per child in the 
10873 \emph on
10874 main document
10875 \emph default
10876 ), please refer to sec.
10877 \begin_inset space ~
10878 \end_inset
10879
10880
10881 \begin_inset CommandInset ref
10882 LatexCommand ref
10883 reference "subsec:Multiple-Bibliographies"
10884
10885 \end_inset
10886
10887 .
10888 \end_layout
10889
10890 \begin_layout Section
10891 \SpecialChar LyX
10892  Archives
10893 \end_layout
10894
10895 \begin_layout Standard
10896 Users sometimes need to be able to 
10897 \begin_inset Quotes eld
10898 \end_inset
10899
10900 bundle
10901 \begin_inset Quotes erd
10902 \end_inset
10903
10904  a \SpecialChar LyX
10905  file together with all the images (and other files) on which it depends,
10906  either for sending to a publisher or for sharing with a co-author.
10907  \SpecialChar LyX
10908  includes a Python script (
10909 \begin_inset Flex Code
10910 status collapsed
10911
10912 \begin_layout Plain Layout
10913 lyxpak.py
10914 \end_layout
10915
10916 \end_inset
10917
10918 ) that automates this process.
10919  To use it, you must have either the 
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924 zipfile
10925 \end_layout
10926
10927 \end_inset
10928
10929  or 
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 tarfile
10935 \end_layout
10936
10937 \end_inset
10938
10939  python modules installed on your system.
10940  By default, the script prefers the 
10941 \begin_inset Flex Code
10942 status collapsed
10943
10944 \begin_layout Plain Layout
10945 gzip
10946 \end_layout
10947
10948 \end_inset
10949
10950 -compressed 
10951 \begin_inset Flex Code
10952 status collapsed
10953
10954 \begin_layout Plain Layout
10955 tar
10956 \end_layout
10957
10958 \end_inset
10959
10960  format on Unix-like systems and the 
10961 \begin_inset Flex Code
10962 status collapsed
10963
10964 \begin_layout Plain Layout
10965 zip
10966 \end_layout
10967
10968 \end_inset
10969
10970  format on Windows.
10971 \end_layout
10972
10973 \begin_layout Standard
10974 \SpecialChar LyX
10975 's configuration process will set the script up to export a `\SpecialChar LyX
10976  Archive',
10977  and this format will then be available under 
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 File\SpecialChar menuseparator
10983 Export
10984 \end_layout
10985
10986 \end_inset
10987
10988 .
10989 \end_layout
10990
10991 \begin_layout Standard
10992 Independently of the platform, the generation of a particular archive format
10993  can be forced by adding either the 
10994 \begin_inset Flex Code
10995 status collapsed
10996
10997 \begin_layout Plain Layout
10998 -t
10999 \end_layout
11000
11001 \end_inset
11002
11003  (for the 
11004 \begin_inset Flex Code
11005 status collapsed
11006
11007 \begin_layout Plain Layout
11008 tar
11009 \end_layout
11010
11011 \end_inset
11012
11013  format) or 
11014 \begin_inset Flex Code
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018 -z
11019 \end_layout
11020
11021 \end_inset
11022
11023  (for the 
11024 \begin_inset Flex Code
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 zip
11029 \end_layout
11030
11031 \end_inset
11032
11033  format) switch to the 
11034 \begin_inset Flex Code
11035 status collapsed
11036
11037 \begin_layout Plain Layout
11038 \SpecialChar LyX
11039 \SpecialChar menuseparator
11040 \SpecialChar LyX
11041  Archive
11042 \end_layout
11043
11044 \end_inset
11045
11046  converter in 
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 Tools\SpecialChar menuseparator
11052 Preferences\SpecialChar menuseparator
11053 File Handling\SpecialChar menuseparator
11054 Converters
11055 \end_layout
11056
11057 \end_inset
11058
11059 .
11060  (Make sure you add the switch after the script name, not before it.)
11061 \end_layout
11062
11063 \begin_layout Section
11064 Fancy Headers and Footers
11065 \end_layout
11066
11067 \begin_layout Standard
11068 The default page layout is rather plain; for an 
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073 article
11074 \end_layout
11075
11076 \end_inset
11077
11078  document class, all you get is a centered page number at the bottom of
11079  the page.
11080  This document uses KOMA-script's book class, so it appears to be a bit
11081  fancier.
11082  But to really put on a show, you need to set the document page style to
11083  
11084 \begin_inset Quotes eld
11085 \end_inset
11086
11087 fancy
11088 \begin_inset Quotes erd
11089 \end_inset
11090
11091 , as mentioned in the 
11092 \emph on
11093 User Guide
11094 \emph default
11095 .
11096  This section describes the \SpecialChar LaTeX
11097  code you need to insert in your \SpecialChar LaTeX
11098  preamble in
11099  order to get the desired effects.
11100 \end_layout
11101
11102 \begin_layout Standard
11103 For more information on fancy headers, see the 
11104 \begin_inset Flex Code
11105 status collapsed
11106
11107 \begin_layout Plain Layout
11108 fancyhdr
11109 \end_layout
11110
11111 \end_inset
11112
11113  package documentation.
11114  (
11115 \begin_inset Flex URL
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119
11120 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
11121 \end_layout
11122
11123 \end_inset
11124
11125 )
11126 \end_layout
11127
11128 \begin_layout Standard
11129 The page header is divided into three fields, not surprisingly labeled 
11130 \begin_inset Quotes eld
11131 \end_inset
11132
11133 left
11134 \begin_inset Quotes erd
11135 \end_inset
11136
11137
11138 \begin_inset Quotes eld
11139 \end_inset
11140
11141 center
11142 \begin_inset Quotes erd
11143 \end_inset
11144
11145 , and 
11146 \begin_inset Quotes eld
11147 \end_inset
11148
11149 right
11150 \begin_inset Quotes erd
11151 \end_inset
11152
11153 .
11154  The footer is also divided into these three fields.
11155  The \SpecialChar LaTeX
11156  commands to set these fields in the simplest manner are 
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161
11162 \backslash
11163 lhead
11164 \end_layout
11165
11166 \end_inset
11167
11168
11169 \begin_inset Flex Code
11170 status collapsed
11171
11172 \begin_layout Plain Layout
11173
11174 \backslash
11175 chead
11176 \end_layout
11177
11178 \end_inset
11179
11180
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185
11186 \backslash
11187 rhead
11188 \end_layout
11189
11190 \end_inset
11191
11192
11193 \begin_inset Flex Code
11194 status collapsed
11195
11196 \begin_layout Plain Layout
11197
11198 \backslash
11199 lfoot
11200 \end_layout
11201
11202 \end_inset
11203
11204 , etc.
11205  Suppose you wish to put your name in the upper left hand corner of each
11206  page.
11207  Simply insert the following command in the preamble: 
11208 \end_layout
11209
11210 \begin_layout Standard
11211
11212 \family typewriter
11213
11214 \backslash
11215 lhead{John Q.
11216  DocWriter}
11217 \end_layout
11218
11219 \begin_layout Standard
11220 You will now see your name in the upper left.
11221  If a field has a default entry that you would like to get rid of (often
11222  the page number appears in the central footer) simply include a command
11223  with a blank argument, e.
11224 \begin_inset space \thinspace{}
11225 \end_inset
11226
11227 g.:
11228 \end_layout
11229
11230 \begin_layout Standard
11231
11232 \family typewriter
11233
11234 \backslash
11235 cfoot{}
11236 \end_layout
11237
11238 \begin_layout Standard
11239 Let's get really fancy: lets put the section number with the word 
11240 \begin_inset Quotes eld
11241 \end_inset
11242
11243 Section
11244 \begin_inset Quotes erd
11245 \end_inset
11246
11247  (e.
11248 \begin_inset space \thinspace{}
11249 \end_inset
11250
11251 g.
11252 \begin_inset space \space{}
11253 \end_inset
11254
11255 Section 3) in the upper left, the page number (e.
11256 \begin_inset space \thinspace{}
11257 \end_inset
11258
11259 g.
11260 \begin_inset space \space{}
11261 \end_inset
11262
11263 Page 4) in the upper right, your name in the lower left, and the date in
11264  the lower right.
11265  The following commands should now appear in the preamble:
11266 \end_layout
11267
11268 \begin_layout Standard
11269
11270 \family typewriter
11271
11272 \backslash
11273 lhead{Section 
11274 \backslash
11275 thesection}
11276 \end_layout
11277
11278 \begin_layout Standard
11279
11280 \family typewriter
11281
11282 \backslash
11283 chead{}
11284 \end_layout
11285
11286 \begin_layout Standard
11287
11288 \family typewriter
11289
11290 \backslash
11291 rhead{Page 
11292 \backslash
11293 thepage}
11294 \end_layout
11295
11296 \begin_layout Standard
11297
11298 \family typewriter
11299
11300 \backslash
11301 lfoot{John Q.
11302  DocWriter}
11303 \end_layout
11304
11305 \begin_layout Standard
11306
11307 \family typewriter
11308
11309 \backslash
11310 cfoot{}
11311 \end_layout
11312
11313 \begin_layout Standard
11314
11315 \family typewriter
11316
11317 \backslash
11318 rfoot{
11319 \backslash
11320 today}
11321 \end_layout
11322
11323 \begin_layout Standard
11324 The commands 
11325 \begin_inset Flex Code
11326 status collapsed
11327
11328 \begin_layout Plain Layout
11329
11330 \backslash
11331 thesection
11332 \end_layout
11333
11334 \end_inset
11335
11336  and 
11337 \begin_inset Flex Code
11338 status collapsed
11339
11340 \begin_layout Plain Layout
11341
11342 \backslash
11343 thepage
11344 \end_layout
11345
11346 \end_inset
11347
11348  access \SpecialChar LaTeX
11349 's section and page counters, and so print out the current section
11350  and page number.
11351  
11352 \begin_inset Flex Code
11353 status collapsed
11354
11355 \begin_layout Plain Layout
11356
11357 \backslash
11358 today
11359 \end_layout
11360
11361 \end_inset
11362
11363  simply prints out today's date.
11364 \end_layout
11365
11366 \begin_layout Standard
11367 The thicknesses of the horizontal rules drawn beneath the header and above
11368  the footer can also be modified.
11369  If you don't want one of the rules, set its thickness to 0.
11370  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
11371  Use commands
11372 \family typewriter
11373  
11374 \family default
11375 like 
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380
11381 \backslash
11382 renewcommand{
11383 \backslash
11384 headrulewidth}{0.4pt}
11385 \end_layout
11386
11387 \end_inset
11388
11389  and 
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394
11395 \backslash
11396 renewcommand{
11397 \backslash
11398 footrulewidth}{0.4pt}
11399 \end_layout
11400
11401 \end_inset
11402
11403  to set the thicknesses.
11404 \end_layout
11405
11406 \begin_layout Standard
11407 You can switch the header/footer settings on and off for individual pages
11408  using commands like 
11409 \begin_inset Flex Code
11410 status collapsed
11411
11412 \begin_layout Plain Layout
11413
11414 \backslash
11415 thispagestyle{empty}
11416 \end_layout
11417
11418 \end_inset
11419
11420
11421 \begin_inset Flex Code
11422 status collapsed
11423
11424 \begin_layout Plain Layout
11425
11426 \backslash
11427 thispagestyle{plain}
11428 \end_layout
11429
11430 \end_inset
11431
11432 , and 
11433 \begin_inset Flex Code
11434 status collapsed
11435
11436 \begin_layout Plain Layout
11437
11438 \backslash
11439 thispagestyle{fancy}
11440 \end_layout
11441
11442 \end_inset
11443
11444 .
11445  Simply insert them in the text on the page you want changed and mark them
11446  as \SpecialChar TeX
11447  code.
11448  In fact, title pages are marked as plain by default, while following pages
11449  are marked fancy when using the global fancy setting.
11450 \end_layout
11451
11452 \begin_layout Standard
11453 As a final example, it is possible to include an image in the header or
11454  footer.
11455  Suppose you want to put a company logo in the upper lefthand corner.
11456  You might try something like
11457 \end_layout
11458
11459 \begin_layout Standard
11460
11461 \family typewriter
11462
11463 \backslash
11464 lhead{
11465 \backslash
11466 resizebox{1in}{!}{
11467 \backslash
11468 includegraphics{logo.eps}}}
11469 \end_layout
11470
11471 \begin_layout Standard
11472 \noindent
11473 (you may need to preface this with 
11474 \begin_inset Flex Code
11475 status collapsed
11476
11477 \begin_layout Plain Layout
11478
11479 \backslash
11480 usepackage{graphics}
11481 \end_layout
11482
11483 \end_inset
11484
11485  if you don't include graphics elsewhere in your document).
11486 \end_layout
11487
11488 \begin_layout Section
11489 Itemize Bullet Selection
11490 \begin_inset CommandInset label
11491 LatexCommand label
11492 name "sec:bullet"
11493
11494 \end_inset
11495
11496
11497 \end_layout
11498
11499 \begin_layout Standard
11500 by
11501 \noun on
11502  Allan Rae
11503 \end_layout
11504
11505 \begin_layout Subsection
11506 Introduction
11507 \end_layout
11508
11509 \begin_layout Standard
11510 \SpecialChar LyX
11511  provides 216 bullet shapes that can be accessed from a simple dialog.
11512  Using this dialog you can easily specify what bullet shape to use at each
11513  level of an itemized list.
11514  These settings are document-wide so you won't be able to specify different
11515  sets of bullets for different paragraphs.
11516 \begin_inset Foot
11517 status collapsed
11518
11519 \begin_layout Plain Layout
11520 Well, actually you can but you'll have to do it by hand.
11521 \end_layout
11522
11523 \end_inset
11524
11525
11526 \end_layout
11527
11528 \begin_layout Subsection
11529 How it looks
11530 \end_layout
11531
11532 \begin_layout Standard
11533 Open the dialog by selecting the 
11534 \begin_inset Flex Noun
11535 status collapsed
11536
11537 \begin_layout Plain Layout
11538 Document\SpecialChar menuseparator
11539 Settings
11540 \end_layout
11541
11542 \end_inset
11543
11544  menu item and then select the 
11545 \begin_inset Flex Noun
11546 status collapsed
11547
11548 \begin_layout Plain Layout
11549 Bullets
11550 \end_layout
11551
11552 \end_inset
11553
11554  tab.
11555 \end_layout
11556
11557 \begin_layout Standard
11558 The dialog provides you with a table of bullet shapes.
11559  A column of buttons on the left of the table provides access to the six
11560  different panels of bullet shapes.
11561  The row of buttons across the top is used to select which bullet depth
11562  you are changing.
11563
11564 \change_deleted 244031559 1603875981
11565  A text entry under the table shows the currently selected bullet shape's
11566  \SpecialChar LaTeX
11567  equivalent and this can be edited if desired.
11568  If you do modify the text you will also need to specify any needed packages
11569  in the \SpecialChar LaTeX
11570  preamble.
11571 \change_unchanged
11572
11573 \end_layout
11574
11575 \begin_layout Standard
11576 The six panels are divided up by the packages they require.
11577  The following table shows the mappings from button name to \SpecialChar LaTeX
11578  package.
11579 \end_layout
11580
11581 \begin_layout Standard
11582 \align center
11583 \begin_inset Tabular
11584 <lyxtabular version="3" rows="7" columns="2">
11585 <features tabularvalignment="middle">
11586 <column alignment="center" valignment="top" width="0pt">
11587 <column alignment="center" valignment="top" width="0pt">
11588 <row>
11589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11590 \begin_inset Text
11591
11592 \begin_layout Plain Layout
11593
11594 \family roman
11595 \series medium
11596 \shape up
11597 \size normal
11598 \emph off
11599 \bar no
11600 \noun off
11601 \color none
11602 Button
11603 \end_layout
11604
11605 \end_inset
11606 </cell>
11607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11608 \begin_inset Text
11609
11610 \begin_layout Plain Layout
11611
11612 \family roman
11613 \series medium
11614 \shape up
11615 \size normal
11616 \emph off
11617 \bar no
11618 \noun off
11619 \color none
11620 Packages Required
11621 \end_layout
11622
11623 \end_inset
11624 </cell>
11625 </row>
11626 <row>
11627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11628 \begin_inset Text
11629
11630 \begin_layout Plain Layout
11631
11632 \family sans
11633 \series medium
11634 \shape up
11635 \size normal
11636 \emph off
11637 \bar no
11638 \noun off
11639 \color none
11640 Standard
11641 \end_layout
11642
11643 \end_inset
11644 </cell>
11645 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11646 \begin_inset Text
11647
11648 \begin_layout Plain Layout
11649
11650 \series medium
11651 \shape up
11652 \size normal
11653 \emph off
11654 \bar no
11655 \noun off
11656 \color none
11657 base \SpecialChar LaTeX
11658
11659 \end_layout
11660
11661 \end_inset
11662 </cell>
11663 </row>
11664 <row>
11665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11666 \begin_inset Text
11667
11668 \begin_layout Plain Layout
11669
11670 \family sans
11671 \series medium
11672 \shape up
11673 \size normal
11674 \emph off
11675 \bar no
11676 \noun off
11677 \color none
11678 Maths
11679 \end_layout
11680
11681 \end_inset
11682 </cell>
11683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11684 \begin_inset Text
11685
11686 \begin_layout Plain Layout
11687
11688 \family typewriter
11689 \series medium
11690 \shape up
11691 \size normal
11692 \emph off
11693 \bar no
11694 \noun off
11695 \color none
11696 amssymb.sty
11697 \end_layout
11698
11699 \end_inset
11700 </cell>
11701 </row>
11702 <row>
11703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11704 \begin_inset Text
11705
11706 \begin_layout Plain Layout
11707
11708 \family sans
11709 \series medium
11710 \shape up
11711 \size normal
11712 \emph off
11713 \bar no
11714 \noun off
11715 \color none
11716 Ding1
11717 \end_layout
11718
11719 \end_inset
11720 </cell>
11721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11722 \begin_inset Text
11723
11724 \begin_layout Plain Layout
11725
11726 \family typewriter
11727 \series medium
11728 \shape up
11729 \size normal
11730 \emph off
11731 \bar no
11732 \noun off
11733 \color none
11734 pifont.sty
11735 \end_layout
11736
11737 \end_inset
11738 </cell>
11739 </row>
11740 <row>
11741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11742 \begin_inset Text
11743
11744 \begin_layout Plain Layout
11745
11746 \family sans
11747 \series medium
11748 \shape up
11749 \size normal
11750 \emph off
11751 \bar no
11752 \noun off
11753 \color none
11754 Ding2
11755 \end_layout
11756
11757 \end_inset
11758 </cell>
11759 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11760 \begin_inset Text
11761
11762 \begin_layout Plain Layout
11763
11764 \family typewriter
11765 \series medium
11766 \shape up
11767 \size normal
11768 \emph off
11769 \bar no
11770 \noun off
11771 \color none
11772 pifont.sty
11773 \end_layout
11774
11775 \end_inset
11776 </cell>
11777 </row>
11778 <row>
11779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11780 \begin_inset Text
11781
11782 \begin_layout Plain Layout
11783
11784 \family sans
11785 \series medium
11786 \shape up
11787 \size normal
11788 \emph off
11789 \bar no
11790 \noun off
11791 \color none
11792 Ding3
11793 \end_layout
11794
11795 \end_inset
11796 </cell>
11797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11798 \begin_inset Text
11799
11800 \begin_layout Plain Layout
11801
11802 \family typewriter
11803 \series medium
11804 \shape up
11805 \size normal
11806 \emph off
11807 \bar no
11808 \noun off
11809 \color none
11810 pifont.sty
11811 \end_layout
11812
11813 \end_inset
11814 </cell>
11815 </row>
11816 <row>
11817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11818 \begin_inset Text
11819
11820 \begin_layout Plain Layout
11821
11822 \family sans
11823 \series medium
11824 \shape up
11825 \size normal
11826 \emph off
11827 \bar no
11828 \noun off
11829 \color none
11830 Ding4
11831 \end_layout
11832
11833 \end_inset
11834 </cell>
11835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11836 \begin_inset Text
11837
11838 \begin_layout Plain Layout
11839
11840 \family typewriter
11841 \series medium
11842 \shape up
11843 \size normal
11844 \emph off
11845 \bar no
11846 \noun off
11847 \color none
11848 pifont.sty
11849 \end_layout
11850
11851 \end_inset
11852 </cell>
11853 </row>
11854 </lyxtabular>
11855
11856 \end_inset
11857
11858
11859 \end_layout
11860
11861 \begin_layout Standard
11862 \SpecialChar LyX
11863  doesn't stop you using bullets from packages you don't have.
11864  If you get errors from \SpecialChar LaTeX
11865  when you try to view or print the file, then it
11866  is likely you are missing a package.
11867 \begin_inset Foot
11868 status collapsed
11869
11870 \begin_layout Plain Layout
11871 \SpecialChar LyX
11872  doesn't restrict your use since you may be editing locally and exporting
11873  elsewhere.
11874 \end_layout
11875
11876 \end_inset
11877
11878
11879 \end_layout
11880
11881 \begin_layout Subsection
11882 How to use it
11883 \end_layout
11884
11885 \begin_layout Standard
11886 Select which bullet depth you want to change then select the bullet shape
11887  and size.
11888  Any changes will not be visible in \SpecialChar LyX
11889 , but are visible when viewing the document.
11890 \end_layout
11891
11892 \begin_layout Standard
11893 You can reset a bullet shape to the default simply by clicking your right
11894  mouse button on the appropriate bullet depth button.
11895 \begin_inset Foot
11896 status open
11897
11898 \begin_layout Plain Layout
11899 If you 
11900 \emph on
11901 really
11902 \emph default
11903  want to have multiple sets of paragraphs with different sets of bullets
11904  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
11905  code.
11906  The bullet selection dialog can help though because it provides you with
11907  the \SpecialChar LaTeX
11908  code for a wide range of bullet shapes.
11909  To make your own custom paragraphs you have the following options:
11910 \end_layout
11911
11912 \begin_layout Plain Layout
11913 \begin_inset ERT
11914 status open
11915
11916 \begin_layout Plain Layout
11917
11918
11919 \backslash
11920 let
11921 \backslash
11922 savelabelitemi=
11923 \backslash
11924 labelitemi
11925 \end_layout
11926
11927 \end_inset
11928
11929
11930 \end_layout
11931
11932 \begin_layout Plain Layout
11933 \begin_inset ERT
11934 status open
11935
11936 \begin_layout Plain Layout
11937
11938
11939 \backslash
11940 renewcommand
11941 \backslash
11942 labelitemi[0]{
11943 \backslash
11944 small
11945 \backslash
11946 (
11947 \backslash
11948 sharp
11949 \backslash
11950 )}
11951 \end_layout
11952
11953 \end_inset
11954
11955
11956 \end_layout
11957
11958 \begin_layout Itemize
11959 Use the \SpecialChar LaTeX
11960  command 
11961 \begin_inset Flex Code
11962 status collapsed
11963
11964 \begin_layout Plain Layout
11965
11966 \backslash
11967 renewcommand{}{}
11968 \end_layout
11969
11970 \end_inset
11971
11972  to specify a new bullet shape for a given depth.
11973  You'll also need to save the current bullet shape so you can restore it
11974  again afterwards.
11975  In this itemized list the following \SpecialChar LaTeX
11976  code was used to change the bullet
11977  used for the first depth.
11978 \end_layout
11979
11980 \begin_deeper
11981 \begin_layout LyX-Code
11982
11983 \backslash
11984 let
11985 \backslash
11986 savelabelitemi=
11987 \backslash
11988 labelitemi 
11989 \end_layout
11990
11991 \begin_layout LyX-Code
11992
11993 \backslash
11994 renewcommand
11995 \backslash
11996 labelitemi[0]{
11997 \backslash
11998 small
11999 \backslash
12000 (
12001 \backslash
12002 sharp
12003 \backslash
12004 )}
12005 \end_layout
12006
12007 \end_deeper
12008 \begin_layout Itemize
12009 Note that the itemize depth is specified in Roman numerals as part of the
12010  
12011 \family typewriter
12012
12013 \backslash
12014 labelitem
12015 \family default
12016  command.
12017 \end_layout
12018
12019 \begin_layout Itemize
12020 \begin_inset Argument item:1
12021 status open
12022
12023 \begin_layout Plain Layout
12024 \begin_inset ERT
12025 status open
12026
12027 \begin_layout Plain Layout
12028
12029
12030 \backslash
12031 (
12032 \backslash
12033 star
12034 \backslash
12035 )
12036 \end_layout
12037
12038 \end_inset
12039
12040
12041 \end_layout
12042
12043 \end_inset
12044
12045  Specify each individual entry by starting each item with the bullet shape
12046  enclosed in a 
12047 \begin_inset Quotes eld
12048 \end_inset
12049
12050 Custom Item
12051 \begin_inset Quotes erd
12052 \end_inset
12053
12054  inset (available at 
12055 \family sans
12056 Insert\SpecialChar menuseparator
12057 Custom Item
12058 \family default
12059 ) and set as 
12060 \begin_inset Flex Noun
12061 status collapsed
12062
12063 \begin_layout Plain Layout
12064 \SpecialChar TeX
12065  Code
12066 \end_layout
12067
12068 \end_inset
12069
12070 .
12071  For example, this item was started with 
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076
12077 \backslash
12078 (
12079 \backslash
12080 star
12081 \backslash
12082 )
12083 \end_layout
12084
12085 \end_inset
12086
12087 .
12088 \end_layout
12089
12090 \begin_layout Plain Layout
12091 \begin_inset ERT
12092 status open
12093
12094 \begin_layout Plain Layout
12095
12096
12097 \backslash
12098 renewcommand
12099 \backslash
12100 labelitemi[0]{
12101 \backslash
12102 savelabelitemi}
12103 \end_layout
12104
12105 \end_inset
12106
12107
12108 \end_layout
12109
12110 \begin_layout Plain Layout
12111 You'll also need to revert the labelitem back to its previous setting for
12112  the global bullet shape settings to remain in effect.
12113  The way used here was:
12114 \end_layout
12115
12116 \begin_layout LyX-Code
12117
12118 \backslash
12119 renewcommand
12120 \backslash
12121 labelitemi[0]{
12122 \backslash
12123 savelabelitemi}
12124 \end_layout
12125
12126 \end_inset
12127
12128
12129 \end_layout
12130
12131 \begin_layout Chapter
12132 \SpecialChar LyX
12133  and the World Wide Web
12134 \end_layout
12135
12136 \begin_layout Standard
12137 \SpecialChar LyX
12138  has long supported the export of documents to various web-friendly formats,
12139  such as HTML.
12140  Before version 2.0, however, HTML export was always accomplished by the
12141  use of external converters.
12142 \begin_inset Foot
12143 status collapsed
12144
12145 \begin_layout Plain Layout
12146 For details on the use of external converters with \SpecialChar LyX
12147 , see the 
12148 \emph on
12149 Converters
12150 \emph default
12151  section of the Customization manual.
12152 \end_layout
12153
12154 \end_inset
12155
12156  These fall into two large groups: there are converters that use \SpecialChar LaTeX
12157  as an
12158  intermediate format, such as 
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 htlatex
12164 \end_layout
12165
12166 \end_inset
12167
12168
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173 html2latex
12174 \end_layout
12175
12176 \end_inset
12177
12178 , and 
12179 \begin_inset Flex Code
12180 status collapsed
12181
12182 \begin_layout Plain Layout
12183 plastex
12184 \end_layout
12185
12186 \end_inset
12187
12188 , relying upon \SpecialChar LyX
12189  to produce the \SpecialChar LaTeX
12190 ; and there is a converter that works directly
12191  on \SpecialChar LyX
12192  files, 
12193 \begin_inset Flex Code
12194 status collapsed
12195
12196 \begin_layout Plain Layout
12197 e\SpecialChar LyX
12198 er
12199 \end_layout
12200
12201 \end_inset
12202
12203 .
12204  All of these have different advantages and disadvantages.
12205  
12206 \end_layout
12207
12208 \begin_layout Standard
12209 The \SpecialChar LaTeX
12210 -based converters have the advantage that, in principle, they know everythin
12211 g about the exported document that \SpecialChar LaTeX
12212  does.
12213  Such converters do not care, for example, if a certain block of code was
12214  produced by \SpecialChar LyX
12215  or was Evil Red Text.
12216  These converters know about 
12217 \begin_inset Flex Code
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221 aux
12222 \end_layout
12223
12224 \end_inset
12225
12226  files, counters, and references, and can often make use of the 
12227 \begin_inset Flex Code
12228 status collapsed
12229
12230 \begin_layout Plain Layout
12231 bbl
12232 \end_layout
12233
12234 \end_inset
12235
12236  files generated by Bib\SpecialChar TeX
12237 .
12238  On the other hand, \SpecialChar LaTeX
12239  is a very hard language to parse—it is sometimes said
12240  that only \SpecialChar TeX
12241  itself understands \SpecialChar TeX
12242 —and \SpecialChar LaTeX
12243 -based converters will often choke on
12244  what seem to be quite simple constructs; complex ones can throw them completely
12245 , and as of this writing, for example, the 
12246 \emph on
12247 Embedded Objects
12248 \emph default
12249  manual will not export with 
12250 \begin_inset Flex Code
12251 status collapsed
12252
12253 \begin_layout Plain Layout
12254 htlatex
12255 \end_layout
12256
12257 \end_inset
12258
12259 , though the others will.
12260  The other issue concerns how math is handled.
12261  These converters typically convert the formulae into little pictures that
12262  are then linked from the HTML document.
12263  Since these are actually generated by \SpecialChar LaTeX
12264 , they are accurate.
12265  But they do not scale well, and just getting them to look as if they are
12266  actually meant to be in your document—so that the font sizes seem to be
12267  roughly the same—can be a challenge.
12268 \end_layout
12269
12270 \begin_layout Standard
12271 Alex Fernandez's 
12272 \begin_inset Flex Code
12273 status collapsed
12274
12275 \begin_layout Plain Layout
12276 e\SpecialChar LyX
12277 er
12278 \end_layout
12279
12280 \end_inset
12281
12282  (
12283 \begin_inset CommandInset href
12284 LatexCommand href
12285 name "http://pinchito.es/elyxer/"
12286 target "http://pinchito.es/elyxer/"
12287 literal "false"
12288
12289 \end_inset
12290
12291 ) solves some of these problems.
12292  In particular, the formulae it produces scale perfectly, since it renders
12293  math using a combination of HTML and CSS rather than converting the formulae
12294  to images.
12295  But even moderately complex formula are rendered less well than with 
12296 \begin_inset Flex Code
12297 status collapsed
12298
12299 \begin_layout Plain Layout
12300 htlatex
12301 \end_layout
12302
12303 \end_inset
12304
12305 ; this reflects the limitations of HTML.
12306 \begin_inset Foot
12307 status collapsed
12308
12309 \begin_layout Plain Layout
12310 That said, 
12311 \begin_inset Flex Code
12312 status collapsed
12313
12314 \begin_layout Plain Layout
12315 e\SpecialChar LyX
12316 er
12317 \end_layout
12318
12319 \end_inset
12320
12321  can also use jsMath and MathJax for equations, but this setting is only
12322  available globally and requires one to have access to a server that runs
12323  the backend.
12324 \end_layout
12325
12326 \end_inset
12327
12328  More importantly (as of version 1.1.1, at least), 
12329 \begin_inset Flex Code
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333 e\SpecialChar LyX
12334 er
12335 \end_layout
12336
12337 \end_inset
12338
12339  has limited support for math macros and no support for user-defined paragraph
12340  or character styles.
12341  These limitations make 
12342 \begin_inset Flex Code
12343 status collapsed
12344
12345 \begin_layout Plain Layout
12346 e\SpecialChar LyX
12347 er
12348 \end_layout
12349
12350 \end_inset
12351
12352  unsuitable for many of the documents \SpecialChar LyX
12353  users produce.
12354  In principle, of course, these problems could be solved, but the \SpecialChar LyX
12355  developers
12356  have decided to follow a different path and have made \SpecialChar LyX
12357  itself capable of
12358  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
12359 , DocBook, and plaintext.
12360 \end_layout
12361
12362 \begin_layout Standard
12363 As of this writing, XHTML output remains under development and should probably
12364  be regarded as 
12365 \begin_inset Quotes eld
12366 \end_inset
12367
12368 experimental
12369 \begin_inset Quotes erd
12370 \end_inset
12371
12372 .
12373 \begin_inset Foot
12374 status collapsed
12375
12376 \begin_layout Plain Layout
12377 The file 
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382 development/HTML/HTML.notes
12383 \end_layout
12384
12385 \end_inset
12386
12387 , which can be found in the \SpecialChar LyX
12388  source tree or 
12389 \begin_inset CommandInset href
12390 LatexCommand href
12391 name "accessed online"
12392 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
12393 literal "false"
12394
12395 \end_inset
12396
12397 , usually contains up-to-date information about the state of XHTML output.
12398  See also the list of XHTML bugs on 
12399 \begin_inset CommandInset href
12400 LatexCommand href
12401 name "the bug tracker"
12402 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"
12403 literal "false"
12404
12405 \end_inset
12406
12407 .
12408 \end_layout
12409
12410 \end_inset
12411
12412  Still, the developers have chosen this approach because it has several
12413  potential advantages over the other two.
12414 \end_layout
12415
12416 \begin_layout Standard
12417 These advantages are primarily due to the fact that the XHTML output routines,
12418  since they are part of \SpecialChar LyX
12419 , know everything \SpecialChar LyX
12420  knows about the document being
12421  exported.
12422 \begin_inset Foot
12423 status collapsed
12424
12425 \begin_layout Plain Layout
12426 Another advantage is that, since these routines are internal to \SpecialChar LyX
12427 , they are
12428  immune to changes in \SpecialChar LyX
12429 's file format, or to changes in the semantics of
12430  existing insets.
12431 \end_layout
12432
12433 \end_inset
12434
12435  So they know about the table of contents (as displayed in the outline),
12436  about the counters associated with different paragraph styles, and about
12437  user-defined styles.
12438  The XHTML output routines know what \SpecialChar LyX
12439  knows about internationalization,
12440  too, so they will output 
12441 \begin_inset Quotes eld
12442 \end_inset
12443
12444 Chapter 1
12445 \begin_inset Quotes erd
12446 \end_inset
12447
12448  or 
12449 \begin_inset Quotes eld
12450 \end_inset
12451
12452
12453 \lang ngerman
12454 Kapitel
12455 \lang english
12456  1
12457 \begin_inset Quotes erd
12458 \end_inset
12459
12460 , depending upon the language in effect at the time.
12461  
12462 \end_layout
12463
12464 \begin_layout Standard
12465 Quite generally, the output routines know what \SpecialChar LyX
12466  knows about document layout,
12467  that is, about how the document is to be rendered on screen.
12468  We use this information when we output the document as XHTML.
12469  In particular, \SpecialChar LyX
12470  
12471 \emph on
12472 automatically
12473 \emph default
12474  generates CSS style information corresponding to the layout information
12475  it uses to render the document on screen: if section headings are supposed
12476  to be sans-serif and bold as seen in \SpecialChar LyX
12477 , then (by default) they will be sans-seri
12478 f and bold when viewed in a web browser, too.
12479  And this is true not just for pre-defined styles, like Section, but for
12480  any style, including user-defined styles.
12481  Indeed, the XHTML output routines make no distinction between user-defined
12482  paragraph and 
12483 \change_deleted 244031559 1603876931
12484 character
12485 \change_inserted 244031559 1603876940
12486 text
12487 \change_unchanged
12488  styles and \SpecialChar LyX
12489 's own pre-defined styles: in each case, everything \SpecialChar LyX
12490  knows about
12491  the styles is contained in the layout files.
12492  And much the same is true as regards pre-defined textual insets, such as
12493  footnotes, and various custom insets.
12494  
12495 \end_layout
12496
12497 \begin_layout Standard
12498 The result is that XHTML output can be customized and extended in exactly
12499  the same way \SpecialChar LaTeX
12500  output can be customized and extended: through layout files
12501  and modules.
12502  See chapter five of the 
12503 \emph on
12504 Customization 
12505 \emph default
12506 manual for the details.
12507 \end_layout
12508
12509 \begin_layout Standard
12510 The remainder of this chapter contains more detailed information on XHTML
12511  output, its limitations, and ways to work around those limitations.
12512 \end_layout
12513
12514 \begin_layout Section
12515 Math Output in XHTML
12516 \end_layout
12517
12518 \begin_layout Standard
12519 \SpecialChar LyX
12520  offers four choices for how math is rendered.
12521  These have various advantages and disadvantages:
12522 \end_layout
12523
12524 \begin_layout Itemize
12525 MathML
12526 \begin_inset Newline newline
12527 \end_inset
12528
12529 MathML is a dialect of XML designed specifically for mathematics on the
12530  web, and it typically renders very well in browsers that support it.
12531  The disadvantage is that not all browsers support MathML, and support is
12532  not complete even in the Gecko-based browsers, such as Firefox.
12533 \begin_inset Newline newline
12534 \end_inset
12535
12536 If \SpecialChar LyX
12537  is unable to render a formula as MathML—for example, if the formula
12538  uses the 
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 xymatrix
12544 \end_layout
12545
12546 \end_inset
12547
12548  package or ERT—then it will instead output the formula as an image.
12549  
12550 \end_layout
12551
12552 \begin_layout Itemize
12553 HTML
12554 \begin_inset Newline newline
12555 \end_inset
12556
12557 As mentioned above, 
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 elyxer
12563 \end_layout
12564
12565 \end_inset
12566
12567  outputs math as HTML, styled by CSS.
12568 \begin_inset Foot
12569 status collapsed
12570
12571 \begin_layout Plain Layout
12572 \SpecialChar LyX
12573  has borrowed some of the CSS for its HTML output from 
12574 \begin_inset Flex Code
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578 elyxer
12579 \end_layout
12580
12581 \end_inset
12582
12583 .
12584 \end_layout
12585
12586 \end_inset
12587
12588  For simple formulae, this can work quite well, though with more complicated
12589  formulae it tends to break down.
12590  Still, this method has the advantage that it is very widely supported and
12591  so it may be appropriate for documents that contain only a little, fairly
12592  simple math.
12593 \begin_inset Newline newline
12594 \end_inset
12595
12596 If Lyx is unable to render a formula as HTML—for example, if the formula
12597  uses the 
12598 \begin_inset Flex Code
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 xymatrix
12603 \end_layout
12604
12605 \end_inset
12606
12607  package or ERT—then it will instead output the formula as an image.
12608  
12609 \end_layout
12610
12611 \begin_layout Itemize
12612 Images
12613 \begin_inset Newline newline
12614 \end_inset
12615
12616 Like 
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 htlatex
12622 \end_layout
12623
12624 \end_inset
12625
12626 , \SpecialChar LyX
12627  will output formulae as images, the very same images, in fact, that are
12628  used for instant preview.
12629 \begin_inset Foot
12630 status collapsed
12631
12632 \begin_layout Plain Layout
12633 Instant preview does 
12634 \emph on
12635 not 
12636 \emph default
12637 have to be on for images to be output, however.
12638 \end_layout
12639
12640 \end_inset
12641
12642  The advantage to this method is that the images are simply generated by
12643  \SpecialChar LaTeX
12644 , so they are very accurate.
12645  The disadvantage, as mentioned earlier, is that these are bitmapped images,
12646  so they do not scale terribly well, and one cannot copy them, etc.
12647 \begin_inset Newline newline
12648 \end_inset
12649
12650 The size of the images can be controlled by setting the 
12651 \begin_inset Quotes eld
12652 \end_inset
12653
12654 Math Images Scaling
12655 \begin_inset Quotes erd
12656 \end_inset
12657
12658  parameter under 
12659 \begin_inset Flex Noun
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 Document\SpecialChar menuseparator
12664 Settings\SpecialChar menuseparator
12665 Formats
12666 \end_layout
12667
12668 \end_inset
12669
12670 .
12671 \begin_inset Foot
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 For those who want to know, this controls the resolution of the image in
12676  dots per inch and is based upon a default of 75 dpi.
12677 \end_layout
12678
12679 \end_inset
12680
12681
12682 \begin_inset Newline newline
12683 \end_inset
12684
12685 If \SpecialChar LyX
12686  for some reason fails to create an image for a formula (e.g., if a required
12687  \SpecialChar LaTeX
12688  package is not installed), then it will fall back to outputing the raw
12689  \SpecialChar LaTeX
12690 .
12691 \end_layout
12692
12693 \begin_layout Itemize
12694 \SpecialChar LaTeX
12695
12696 \begin_inset Newline newline
12697 \end_inset
12698
12699 Finally, \SpecialChar LyX
12700  will happily output math as \SpecialChar LaTeX
12701 .
12702  As well as being the output of last resort, this method can be used with
12703  such tools as 
12704 \begin_inset CommandInset href
12705 LatexCommand href
12706 name "jsMath"
12707 target "http://www.math.union.edu/~dpvc/jsMath/"
12708 literal "false"
12709
12710 \end_inset
12711
12712 , which uses JavaScript to render \SpecialChar LaTeX
12713  embedded in HTML documents.
12714  \SpecialChar LyX
12715  wraps the \SpecialChar LaTeX
12716  in either a 
12717 \begin_inset Flex Code
12718 status collapsed
12719
12720 \begin_layout Plain Layout
12721 span
12722 \end_layout
12723
12724 \end_inset
12725
12726  (for inline formulas) or 
12727 \begin_inset Flex Code
12728 status collapsed
12729
12730 \begin_layout Plain Layout
12731 div
12732 \end_layout
12733
12734 \end_inset
12735
12736  (for displayed formulas) with 
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741 class='math'
12742 \end_layout
12743
12744 \end_inset
12745
12746 , as is required for jsMath.
12747 \end_layout
12748
12749 \begin_layout Standard
12750 One of these output methods must be selected under 
12751 \begin_inset Flex Noun
12752 status collapsed
12753
12754 \begin_layout Plain Layout
12755 Document\SpecialChar menuseparator
12756 Settings\SpecialChar menuseparator
12757 Formats
12758 \end_layout
12759
12760 \end_inset
12761
12762 .
12763  By default, \SpecialChar LyX
12764  outputs MathML.
12765  This is a document-wide setting, therefore.
12766 \end_layout
12767
12768 \begin_layout Standard
12769 Eventually, \SpecialChar LyX
12770  will offer the user the option to select an alternate output
12771  method for a particular inset, say, one that isn't being rendered very
12772  well by MathML.
12773 \begin_inset Foot
12774 status collapsed
12775
12776 \begin_layout Plain Layout
12777 That said, since \SpecialChar LyX
12778  falls back to images if the inset contains ERT, then one
12779  can force output as an image by putting some harmless ERT into the math,
12780  for example: 
12781 \begin_inset Formula $a=b\relax$
12782 \end_inset
12783
12784 .
12785 \end_layout
12786
12787 \end_inset
12788
12789
12790 \end_layout
12791
12792 \begin_layout Section
12793 Bibliography and Citations
12794 \end_layout
12795
12796 \begin_layout Standard
12797 XHTML output fully supports bibliographies and citations.
12798  
12799 \end_layout
12800
12801 \begin_layout Standard
12802 Citation labels are generated by the same machinery that generates \SpecialChar LyX
12803 's on-screen
12804  labels, so the labels will look in the output much as they do in \SpecialChar LyX
12805 , though
12806  better.
12807  If you are using numerical citations, then \SpecialChar LyX
12808  will output numerical labels,
12809  such as [1] or [17], rather than simply showing the citation key in square
12810  brackets, as it does on-screen.
12811  If you are using author-year citations, then \SpecialChar LyX
12812  will add lowercase letters
12813  to the years, just as Bib\SpecialChar TeX
12814  does, if it finds more than one citation for
12815  a given author-year combination.
12816  The labels will be printed with the bibliography entries.
12817  Note that there is, at present, no way to customize the appearance of the
12818  labels, for example, to choose between square brackets and parentheses.
12819 \end_layout
12820
12821 \begin_layout Standard
12822 Bibliography output is handled by the same machinery that handles the presentati
12823 on of reference information in the citation dialog, so you will see in the
12824  XHTML output pretty much what you would see if you were to look at a given
12825  entry in the citation dialog.
12826  The formatting can be customized in your layout file or, preferably, in
12827  a module.
12828  See the 
12829 \emph on
12830 Customization
12831 \emph default
12832  manual for the details.
12833 \end_layout
12834
12835 \begin_layout Standard
12836 The main defect at present is that cross-referenced information is printed
12837  with every entry with which it is associated.
12838  So you can see things like this:
12839 \end_layout
12840
12841 \begin_layout Quote
12842 Jason Stanley, 
12843 \begin_inset Quotes eld
12844 \end_inset
12845
12846 Context and Logical Form
12847 \begin_inset Quotes erd
12848 \end_inset
12849
12850 , in 
12851 \emph on
12852 Language in Context: Selected Essays
12853 \emph default
12854  (Oxford: Oxford University Press, 2007), pp.
12855  30–68.
12856 \end_layout
12857
12858 \begin_layout Quote
12859 Jason Stanley, 
12860 \begin_inset Quotes eld
12861 \end_inset
12862
12863 Semantics in Context
12864 \begin_inset Quotes erd
12865 \end_inset
12866
12867 , in 
12868 \emph on
12869 Language in Context: Selected Essays
12870 \emph default
12871  (Oxford: Oxford University Press, 2007), pp.
12872  201–30.
12873 \end_layout
12874
12875 \begin_layout Standard
12876 This should be fixed before long.
12877 \end_layout
12878
12879 \begin_layout Standard
12880 There is no support at present for sectioned bibliographies.
12881  If you have multiple bibliographies, then \SpecialChar LyX
12882  will print the same bibliography
12883  over and over.
12884 \end_layout
12885
12886 \begin_layout Section
12887 Indexes
12888 \end_layout
12889
12890 \begin_layout Standard
12891 \SpecialChar LyX
12892  will happily export indexes as XHTML, but with certain limitations at the
12893  moment.
12894 \end_layout
12895
12896 \begin_layout Standard
12897 Index export will be most reliable when you do not attempt to use the fancy
12898  constructs that are described in the section on indexes in the 
12899 \emph on
12900 User's Guide
12901 \emph default
12902 .
12903 \begin_inset Foot
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 The main issue here is that \SpecialChar LyX
12908  itself does not really handle these.
12909  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
12910 .
12911 \end_layout
12912
12913 \end_inset
12914
12915  We'll describe how they are handled using the subsection headings from
12916  that section.
12917 \end_layout
12918
12919 \begin_layout Itemize
12920 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
12921  makes an effort to support these,
12922  but the entries must be separated by 
12923 \begin_inset Quotes eld
12924 \end_inset
12925
12926  ! 
12927 \begin_inset Quotes erd
12928 \end_inset
12929
12930 , that is, there must be spaces around the exclamation point.
12931  This is because it is otherwise too difficult to check for escaped exclamation
12932  points, ones in math, and so forth.
12933 \end_layout
12934
12935 \begin_layout Itemize
12936 Page Ranges: There is no support at all for page ranges, since these make
12937  no sense with XHMTL.
12938  Instead, you will just get two index entries, one at either end.
12939 \end_layout
12940
12941 \begin_layout Itemize
12942 Cross-referencing: There is no support for cross-referencing.
12943  If \SpecialChar LyX
12944  finds an entry containing the 
12945 \begin_inset Quotes eld
12946 \end_inset
12947
12948 |see\SpecialChar ldots
12949
12950 \begin_inset Quotes erd
12951 \end_inset
12952
12953  construct, it is just dropped, and the rest is treated as an ordinary index
12954  entry.
12955 \end_layout
12956
12957 \begin_layout Itemize
12958 Index Entry Order: \SpecialChar LyX
12959  does support attempts to fix the sorting order.
12960  It will take what is before the first `@' it finds and use that for sorting,
12961  taking what follows the first `@' to be the actual entry.
12962  At present, \SpecialChar LyX
12963  does not check for escaped `@', so do not try to index email
12964  addresses.
12965 \end_layout
12966
12967 \begin_layout Itemize
12968 Index Entry Layout: You can format entries by using the text style dialog,
12969  or by using any other method available within \SpecialChar LyX
12970  itself.
12971  There is no support for constructs like: 
12972 \begin_inset Quotes eld
12973 \end_inset
12974
12975 entry|textbf
12976 \begin_inset Quotes erd
12977 \end_inset
12978
12979 .
12980  Indeed, if \SpecialChar LyX
12981  finds a pipe symbol, `|', in an entry, it will delete it and
12982  everything that follows it.
12983 \end_layout
12984
12985 \begin_layout Itemize
12986 Multiple Indexes: There is no support for multiple indexes.
12987  Rather, all index entries will be printed as one large index.
12988  To avoid our printing several versions of the index, we print only the
12989  main index, so make sure you have one.
12990 \end_layout
12991
12992 \begin_layout Section
12993 Nomenclature and Glossary
12994 \end_layout
12995
12996 \begin_layout Standard
12997 There is at present no support for glossaries.
12998  Adding it would be fairly trivial, and welcome.
12999 \end_layout
13000
13001 \begin_layout Chapter
13002
13003 \change_inserted 1075283030 1616534180
13004 DocBook Output
13005 \end_layout
13006
13007 \begin_layout Standard
13008
13009 \change_inserted 1075283030 1616534386
13010 Apart from HTML, \SpecialChar LyX
13011  can generate documents in the DocBook XML vocabulary.
13012  With versions 2.3 and before, only select templates could be used to generate
13013  DocBook documents (only version 4).
13014  Starting with \SpecialChar LyX
13015  2.4, most \SpecialChar LyX
13016  layouts can generate valid DocBook documents (only
13017  version 5).
13018  This feature is built into \SpecialChar LyX
13019  and does not require the use of external tools.
13020 \end_layout
13021
13022 \begin_layout Standard
13023
13024 \change_inserted 1075283030 1616534437
13025 The result is that the DocBook output can be customized and extended in
13026  exactly the same way \SpecialChar LaTeX
13027  output can be customized and extended: through layout
13028  files and modules.
13029  See chapter five of the 
13030 \emph on
13031 Customization 
13032 \emph default
13033 manual for the details.
13034 \end_layout
13035
13036 \begin_layout Standard
13037
13038 \change_inserted 1075283030 1616534475
13039 Most \SpecialChar LyX
13040  features are supported with DocBook, like math output.
13041 \end_layout
13042
13043 \begin_layout Itemize
13044
13045 \change_inserted 1075283030 1616534741
13046 Math output is performed mostly in MathML (the major exception being constructio
13047 ns not supported by \SpecialChar LyX
13048 , i.e.
13049  ERTs).
13050  All formulae are also available in raw \SpecialChar TeX
13051  in the DocBook output for further
13052  processing.
13053 \end_layout
13054
13055 \begin_layout Itemize
13056
13057 \change_inserted 1075283030 1616534852
13058 Bibliographies and citations are implemented, including with an external
13059  BibTeX file.
13060  Bibliography entries are not prerendered when the detailed information
13061  are available, but rather output with the standard DocBook constructs.
13062  The external DocBook processor is expected to handle the rendering of entries.
13063 \end_layout
13064
13065 \begin_layout Itemize
13066
13067 \change_inserted 1075283030 1616534863
13068 Indexes are supported, including multiple indices.
13069  Grouping (with 
13070 \family typewriter
13071 !
13072 \family default
13073 ), page ranges, and cross-references (
13074 \family typewriter
13075 |see
13076 \family default
13077 ) are supported, with the exception of the same symbols escaped.
13078  Entry order (
13079 \family typewriter
13080 @
13081 \family default
13082 ) and layout (
13083 \family typewriter
13084 |mathbf
13085 \family default
13086 ) are not supported.
13087  There is no support for escaping of index entries.
13088 \end_layout
13089
13090 \begin_layout Itemize
13091
13092 \change_inserted 1075283030 1616534884
13093 Glossaries are implemented.
13094 \end_layout
13095
13096 \begin_layout Standard
13097
13098 \change_inserted 1075283030 1616534894
13099 Two major parameters can be set at the document level.
13100 \end_layout
13101
13102 \begin_layout Itemize
13103
13104 \change_inserted 1075283030 1616534948
13105 Format for tables: \SpecialChar LyX
13106  can generate tables either as HTML (default value) or
13107  CALS, depending on the user's requirements.
13108  Most DocBook processors accept both formats.
13109 \end_layout
13110
13111 \begin_layout Itemize
13112
13113 \change_inserted 1075283030 1616535006
13114 MathML prefix: in DocBook, MathML is included within its own name space,
13115  unlike HTML.
13116  The implication is that there must be an indication of the tags belonging
13117  to the MathML standard.
13118  Three choices are offered: 
13119 \end_layout
13120
13121 \begin_deeper
13122 \begin_layout Itemize
13123
13124 \change_inserted 1075283030 1616535044
13125 Inline: the MathML name space is defined for each formula (using the 
13126 \family typewriter
13127 xmlns
13128 \family default
13129  attribute on each formula)
13130 \end_layout
13131
13132 \begin_layout Itemize
13133
13134 \change_inserted 1075283030 1616535090
13135 With the 
13136 \family typewriter
13137 m
13138 \family default
13139  prefix (default): the MathML name space is defined at the document level
13140  (using the 
13141 \family typewriter
13142 xmlns:m
13143 \family default
13144  attribute on the root element).
13145  Each MathML is prefixed with 
13146 \family typewriter
13147 m
13148 \family default
13149 : for instance, 
13150 \family typewriter
13151 m:math
13152 \end_layout
13153
13154 \begin_layout Itemize
13155
13156 \change_inserted 1075283030 1616620405
13157 With the 
13158 \family typewriter
13159 mml
13160 \family default
13161  prefix: similar to the 
13162 \family typewriter
13163 m
13164 \family default
13165  option, but with 
13166 \family typewriter
13167 mml
13168 \end_layout
13169
13170 \begin_layout Standard
13171
13172 \change_inserted 1075283030 1616620470
13173 This option is especially useful if you want \SpecialChar LyX
13174  to match your personal style
13175  or to work with buggy software that only accepts one prefix for MathML.
13176 \change_unchanged
13177
13178 \end_layout
13179
13180 \end_deeper
13181 \begin_layout Chapter
13182 The \SpecialChar LyX
13183  Server
13184 \end_layout
13185
13186 \begin_layout Section
13187 Introduction
13188 \end_layout
13189
13190 \begin_layout Standard
13191 The `\SpecialChar LyX
13192  server' allows other programs to talk to \SpecialChar LyX
13193 , invoke \SpecialChar LyX
13194  commands, and retrieve
13195  information about the \SpecialChar LyX
13196  internal state.
13197  This is only intended for advanced users, but they should find it useful.
13198  It is by writing to the \SpecialChar LyX
13199  server, for example, that bibliography managers,
13200  such as JabRef, are able to 
13201 \begin_inset Quotes eld
13202 \end_inset
13203
13204 push
13205 \begin_inset Quotes erd
13206 \end_inset
13207
13208  citations to \SpecialChar LyX
13209 .
13210 \end_layout
13211
13212 \begin_layout Section
13213 Starting the \SpecialChar LyX
13214  Server
13215 \begin_inset CommandInset label
13216 LatexCommand label
13217 name "sec:Starting-the-Server"
13218
13219 \end_inset
13220
13221
13222 \end_layout
13223
13224 \begin_layout Standard
13225 The \SpecialChar LyX
13226  server works through the use of a pair of named pipes.
13227  These are usually located in 
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 UserDir
13233 \end_layout
13234
13235 \end_inset
13236
13237 , (except on Windows, where 
13238 \emph on
13239 local
13240 \emph default
13241  named pipes are special objects located in 
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246
13247 \backslash
13248
13249 \backslash
13250 .
13251 \backslash
13252 pipe
13253 \end_layout
13254
13255 \end_inset
13256
13257 ) and have the names 
13258 \begin_inset Quotes eld
13259 \end_inset
13260
13261
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 lyxpipe.in
13267 \end_layout
13268
13269 \end_inset
13270
13271
13272 \begin_inset Quotes erd
13273 \end_inset
13274
13275  and 
13276 \begin_inset Quotes eld
13277 \end_inset
13278
13279
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 lyxpipe.out
13285 \end_layout
13286
13287 \end_inset
13288
13289
13290 \begin_inset Quotes erd
13291 \end_inset
13292
13293 .
13294  External programs write into 
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299 lyxpipe.in
13300 \end_layout
13301
13302 \end_inset
13303
13304  and read back data from 
13305 \begin_inset Flex Code
13306 status collapsed
13307
13308 \begin_layout Plain Layout
13309 lyxpipe.out
13310 \end_layout
13311
13312 \end_inset
13313
13314 .
13315  The stem of the pipe names can be defined in the 
13316 \begin_inset Flex Noun
13317 status collapsed
13318
13319 \begin_layout Plain Layout
13320 Tools\SpecialChar menuseparator
13321 Preferences
13322 \end_layout
13323
13324 \end_inset
13325
13326  dialog, for example 
13327 \begin_inset Flex Code
13328 status collapsed
13329
13330 \begin_layout Plain Layout
13331 "/home/myhome/lyxpipe"
13332 \end_layout
13333
13334 \end_inset
13335
13336 , or 
13337 \begin_inset Flex Code
13338 status collapsed
13339
13340 \begin_layout Plain Layout
13341 "
13342 \backslash
13343
13344 \backslash
13345 .
13346 \backslash
13347 pipe
13348 \backslash
13349 lyxpipe"
13350 \end_layout
13351
13352 \end_inset
13353
13354  on Windows (where any working path instead of lyxpipe can be used, for
13355  example 
13356 \begin_inset Flex Code
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360 "
13361 \backslash
13362
13363 \backslash
13364 .
13365 \backslash
13366 pipe
13367 \backslash
13368 my
13369 \backslash
13370 lyx
13371 \backslash
13372 pipe"
13373 \end_layout
13374
13375 \end_inset
13376
13377  would also work).
13378  You 
13379 \emph on
13380 must
13381 \emph default
13382  configure this manually in order for the server to start.
13383 \end_layout
13384
13385 \begin_layout Standard
13386 \SpecialChar LyX
13387  will add the '
13388 \begin_inset Flex Code
13389 status collapsed
13390
13391 \begin_layout Plain Layout
13392 .in
13393 \end_layout
13394
13395 \end_inset
13396
13397 ' and '
13398 \begin_inset Flex Code
13399 status collapsed
13400
13401 \begin_layout Plain Layout
13402 .out
13403 \end_layout
13404
13405 \end_inset
13406
13407 ' to create the pipes.
13408  If one of the pipes already exists, \SpecialChar LyX
13409  will assume that another \SpecialChar LyX
13410  process
13411  is already running and will not start the server.
13412  On POSIX (Unix like) systems, if for some other reason, an unused 
13413 \begin_inset Quotes eld
13414 \end_inset
13415
13416 stale
13417 \begin_inset Quotes erd
13418 \end_inset
13419
13420  pipe is left in existence when \SpecialChar LyX
13421  closes, then \SpecialChar LyX
13422  will try to delete it.
13423  If this fails for some reason, you will need to delete the pipes manually
13424  and then restart \SpecialChar LyX
13425 .
13426  On Windows, pipes are deleted by the OS on program termination or crash,
13427  so 
13428 \begin_inset Quotes eld
13429 \end_inset
13430
13431 stale
13432 \begin_inset Quotes erd
13433 \end_inset
13434
13435  pipes should not be possible.
13436 \end_layout
13437
13438 \begin_layout Standard
13439 To have several \SpecialChar LyX
13440  processes with servers at the same time, you have to use
13441  different configurations, perhaps by using separate user directories, each
13442  with its own 
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447 preferences
13448 \end_layout
13449
13450 \end_inset
13451
13452  file, for each process.
13453 \end_layout
13454
13455 \begin_layout Standard
13456 If you are developing a client program, you might find it useful to enable
13457  debugging information from the \SpecialChar LyX
13458  server.
13459  Do this by starting \SpecialChar LyX
13460  as 
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 lyx -dbg lyxserver
13466 \end_layout
13467
13468 \end_inset
13469
13470 .
13471 \end_layout
13472
13473 \begin_layout Standard
13474 You can find a complete example client written in C++ in the source distribution
13475  as 
13476 \begin_inset Flex Code
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 development/lyxserver/server_monitor.cpp
13481 \end_layout
13482
13483 \end_inset
13484
13485 .
13486 \end_layout
13487
13488 \begin_layout Standard
13489 Another useful tool is the command-line based client found in 
13490 \begin_inset Flex Code
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 src/client/lyxclient
13495 \end_layout
13496
13497 \end_inset
13498
13499 .
13500 \end_layout
13501
13502 \begin_layout Section
13503 Normal communication
13504 \end_layout
13505
13506 \begin_layout Standard
13507 To issue a \SpecialChar LyX
13508  call, the client writes a line of ASCII text into the input
13509  pipe.
13510  This line has the following format:
13511 \end_layout
13512
13513 \begin_layout Quote
13514 LYXCMD:
13515 \emph on
13516 clientname
13517 \emph default
13518 :
13519 \emph on
13520 function
13521 \emph default
13522 :
13523 \emph on
13524 argument
13525 \end_layout
13526
13527 \begin_layout Description
13528 clientname is a name that the client can choose arbitrarily.
13529  Its only use is that \SpecialChar LyX
13530  will echo it if it sends an answer—so a client can
13531  dispatch results from different requesters.
13532 \end_layout
13533
13534 \begin_layout Description
13535 function is the function you want \SpecialChar LyX
13536  to perform.
13537  It is the same as the commands you'd use in the minibuffer.
13538 \end_layout
13539
13540 \begin_layout Description
13541 argument is an optional argument which is meaningful only to some functions
13542  (for instance, the 
13543 \begin_inset Quotes eld
13544 \end_inset
13545
13546 self-insert
13547 \begin_inset Quotes erd
13548 \end_inset
13549
13550  LFUN will insert the argument as text at the cursor position).
13551 \end_layout
13552
13553 \begin_layout Standard
13554 The answer from \SpecialChar LyX
13555  will arrive in the output pipe and be of the form
13556 \end_layout
13557
13558 \begin_layout Quote
13559 INFO:
13560 \emph on
13561 clientname
13562 \emph default
13563 :
13564 \emph on
13565 function
13566 \emph default
13567 :
13568 \emph on
13569 data
13570 \end_layout
13571
13572 \begin_layout Standard
13573 where 
13574 \emph on
13575 clientname
13576 \emph default
13577  and 
13578 \emph on
13579 function
13580 \emph default
13581  are just echoed from the command request, while 
13582 \emph on
13583 data
13584 \emph default
13585  is more or less useful information filled according to how the command
13586  execution worked out.
13587  Some commands, such as 
13588 \begin_inset Quotes eld
13589 \end_inset
13590
13591 font-state
13592 \begin_inset Quotes erd
13593 \end_inset
13594
13595 , will return information about the internal state of \SpecialChar LyX
13596 , while other will
13597  return an empty data-response.
13598  This means that the command execution went fine.
13599 \end_layout
13600
13601 \begin_layout Standard
13602 In case of errors, the response from \SpecialChar LyX
13603  will have this form
13604 \end_layout
13605
13606 \begin_layout Quote
13607 ERROR:
13608 \emph on
13609 clientname
13610 \emph default
13611 :
13612 \emph on
13613 function
13614 \emph default
13615 :
13616 \emph on
13617 error message
13618 \end_layout
13619
13620 \begin_layout Standard
13621 where the 
13622 \emph on
13623 error message
13624 \emph default
13625  should contain an explanation of why the command failed.
13626 \end_layout
13627
13628 \begin_layout Standard
13629 Examples:
13630 \end_layout
13631
13632 \begin_layout LyX-Code
13633 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
13634 \begin_inset Newline newline
13635 \end_inset
13636
13637 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
13638 \begin_inset Newline newline
13639 \end_inset
13640
13641 read a <~/.lyxpipe.out
13642 \begin_inset Newline newline
13643 \end_inset
13644
13645 echo $a
13646 \end_layout
13647
13648 \begin_layout Subsection
13649 AppleScript (Mac OS X)
13650 \end_layout
13651
13652 \begin_layout Standard
13653 Since \SpecialChar LyX
13654  2.1, \SpecialChar LyX
13655  supports basic interactions with AppleScript for normal communicatio
13656 n through the command run.
13657  This command takes a direct argument (the 
13658 \series bold
13659 function
13660 \series default
13661  to perform) and an optional argument.
13662  It either returns the output of the function or triggers an error with
13663  the error message and code.
13664 \end_layout
13665
13666 \begin_layout Standard
13667 Example:
13668 \end_layout
13669
13670 \begin_layout LyX-Code
13671 tell application "\SpecialChar LyX
13672 "
13673 \end_layout
13674
13675 \begin_layout LyX-Code
13676   try
13677 \end_layout
13678
13679 \begin_layout LyX-Code
13680     -- Stores the current file name into f
13681 \end_layout
13682
13683 \begin_layout LyX-Code
13684     set f to (run "server-get-filename" with argument "")
13685 \end_layout
13686
13687 \begin_layout LyX-Code
13688     on error the error_message number the error_number
13689 \end_layout
13690
13691 \begin_layout LyX-Code
13692       display dialog "Error: " & the error_number & ".
13693  " ¬
13694 \end_layout
13695
13696 \begin_layout LyX-Code
13697               & the error_message buttons {"OK"} default button 1
13698 \end_layout
13699
13700 \begin_layout LyX-Code
13701   end try
13702 \end_layout
13703
13704 \begin_layout LyX-Code
13705 end tell
13706 \end_layout
13707
13708 \begin_layout Section
13709 Notification
13710 \end_layout
13711
13712 \begin_layout Standard
13713 \SpecialChar LyX
13714  can notify clients of events going on asynchronously.
13715  Currently it will only do this if the user binds a key sequence with the
13716  function 
13717 \begin_inset Quotes eld
13718 \end_inset
13719
13720 notify
13721 \begin_inset Quotes erd
13722 \end_inset
13723
13724 .
13725  The format of the string \SpecialChar LyX
13726  sends is as follows:
13727 \end_layout
13728
13729 \begin_layout Quote
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 NOTIFY:
13735 \end_layout
13736
13737 \end_inset
13738
13739
13740 \emph on
13741 key-sequence
13742 \end_layout
13743
13744 \begin_layout Standard
13745 where 
13746 \emph on
13747 key-sequence
13748 \emph default
13749  is the printed representation of the key sequence that was actually typed
13750  by the user.
13751 \end_layout
13752
13753 \begin_layout Standard
13754 This mechanism can be used to extend \SpecialChar LyX
13755 's command set and implement macros.
13756  Bind some key sequence to 
13757 \begin_inset Quotes eld
13758 \end_inset
13759
13760 notify
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764 .
13765  Then start a client that listens on the output pipe, dispatches the command
13766  according to the sequence, and starts a function that may use \SpecialChar LyX
13767  calls and
13768  \SpecialChar LyX
13769  requests to issue a command or a series of commands to \SpecialChar LyX
13770 .
13771 \end_layout
13772
13773 \begin_layout Section
13774 The simple \SpecialChar LyX
13775  Server Protocol
13776 \end_layout
13777
13778 \begin_layout Standard
13779 \SpecialChar LyX
13780  implements a simple protocol that can be used for session management.
13781  All messages are of the form
13782 \end_layout
13783
13784 \begin_layout Quote
13785 LYXSRV:
13786 \emph on
13787 clientname
13788 \emph default
13789 :
13790 \emph on
13791 protocol message
13792 \end_layout
13793
13794 \begin_layout Standard
13795 where 
13796 \emph on
13797 protocol message
13798 \emph default
13799  can be 
13800 \begin_inset Quotes eld
13801 \end_inset
13802
13803 hello
13804 \begin_inset Quotes erd
13805 \end_inset
13806
13807  or 
13808 \begin_inset Quotes eld
13809 \end_inset
13810
13811 bye
13812 \begin_inset Quotes erd
13813 \end_inset
13814
13815 .
13816  If 
13817 \begin_inset Quotes eld
13818 \end_inset
13819
13820 hello
13821 \begin_inset Quotes erd
13822 \end_inset
13823
13824  is received from a client, \SpecialChar LyX
13825  will report back to inform the client that
13826  it's listening to it's messages, while 
13827 \begin_inset Quotes eld
13828 \end_inset
13829
13830 bye
13831 \begin_inset Quotes erd
13832 \end_inset
13833
13834  sent from \SpecialChar LyX
13835  will inform clients that \SpecialChar LyX
13836  is closing.
13837 \end_layout
13838
13839 \begin_layout Section
13840 Reverse DVI/PDF search
13841 \end_layout
13842
13843 \begin_layout Standard
13844 Some DVI/PDF viewers
13845 \begin_inset Foot
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
13850  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
13851 \end_layout
13852
13853 \end_inset
13854
13855  provide 
13856 \emph on
13857 reverse search
13858 \emph default
13859  facility (also called 
13860 \emph on
13861 inverse search
13862 \emph default
13863 ).
13864  This means that you can tell \SpecialChar LyX
13865  to put the cursor to a specific line in the
13866  document by clicking at the respective position in the DVI/PDF output.
13867  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
13868 .
13869  This is done via the \SpecialChar LyX
13870  server either by using the named pipe (
13871 \emph on
13872 lyxpipe
13873 \emph default
13874 ), or the UNIX domain socket (
13875 \emph on
13876 lyxsocket
13877 \emph default
13878 ) that \SpecialChar LyX
13879  creates in its temporary directory (this is the way the 
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884 lyxclient
13885 \end_layout
13886
13887 \end_inset
13888
13889  program communicates with \SpecialChar LyX
13890 ).
13891  In some cases, you need a helper script that mediates between the viewer
13892  and \SpecialChar LyX
13893 , in others, the viewer can communicate with \SpecialChar LyX
13894  directly.
13895  This depends on the selected viewer and on your operating system.
13896  The same applies to the way viewers need to be configured and the way the
13897  reverse search is actually performed.
13898  In what follows, we will thus describe how to setup reverse search for
13899  specific viewers.
13900  Before we turn to this, though, we will explain what needs to be done generally
13901  to enable reverse search in the DVI/PDF output.
13902 \end_layout
13903
13904 \begin_layout Subsection
13905 Automatic setup
13906 \begin_inset CommandInset label
13907 LatexCommand label
13908 name "subsec:rev-search"
13909
13910 \end_inset
13911
13912
13913 \end_layout
13914
13915 \begin_layout Standard
13916 In most cases \SpecialChar LyX
13917  will do the work for you by pressing the following button
13918  in the toolbar: 
13919 \begin_inset Info
13920 type  "icon"
13921 arg   "buffer-toggle-output-sync"
13922 \end_inset
13923
13924 .
13925  Alternatively, you can also enable the feature by checking 
13926 \family sans
13927 Synchronize with Output
13928 \family default
13929  in 
13930 \begin_inset Flex Noun
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 Document\SpecialChar menuseparator
13935 Settings\SpecialChar menuseparator
13936 Formats
13937 \end_layout
13938
13939 \end_inset
13940
13941 .
13942  In such a case \SpecialChar LyX
13943  will automatically insert the necessary Sync\SpecialChar TeX
13944  macro (for
13945  PDF) or load the srcltx package (for DVI) respectively.
13946  This option can be easily reached also on 
13947 \begin_inset Flex Code
13948 status collapsed
13949
13950 \begin_layout Plain Layout
13951 View/Update
13952 \end_layout
13953
13954 \end_inset
13955
13956  Toolbar.
13957 \end_layout
13958
13959 \begin_layout Standard
13960 If you need a different setting, you can select or input a custom macro
13961  from the drop down box just below 
13962 \begin_inset Flex Noun
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 Document\SpecialChar menuseparator
13967 Settings\SpecialChar menuseparator
13968 Output\SpecialChar menuseparator
13969 Synchronize with Output
13970 \end_layout
13971
13972 \end_inset
13973
13974 .
13975 \end_layout
13976
13977 \begin_layout Standard
13978 Note that the method 
13979 \begin_inset Flex Code
13980 status collapsed
13981
13982 \begin_layout Plain Layout
13983
13984 \backslash
13985 synctex=1
13986 \end_layout
13987
13988 \end_inset
13989
13990  enables gzip compression.
13991  If your viewer does not support it, you should instead use 
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996
13997 \backslash
13998 synctex=-1
13999 \end_layout
14000
14001 \end_inset
14002
14003 .
14004 \end_layout
14005
14006 \begin_layout Standard
14007 Please also note that including the 
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 srcltx
14013 \end_layout
14014
14015 \end_inset
14016
14017  package or 
14018 \begin_inset Flex Code
14019 status collapsed
14020
14021 \begin_layout Plain Layout
14022 src-specials
14023 \end_layout
14024
14025 \end_inset
14026
14027  sometimes has an undesired impact on the typesetting.
14028  Thus, you should switch output synchronization off for the final typesetting
14029  if you use the 
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034 srcltx
14035 \end_layout
14036
14037 \end_inset
14038
14039  package or 
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 src-specials
14045 \end_layout
14046
14047 \end_inset
14048
14049 .
14050  
14051 \end_layout
14052
14053 \begin_layout Standard
14054 In case you need some more special settings that are not covered by the
14055  automatic settings, read the next section about how to set up output synchroniz
14056 ation manually.
14057  If the automatic setup suits your needs, you can readily jump to section
14058 \begin_inset space ~
14059 \end_inset
14060
14061
14062 \begin_inset CommandInset ref
14063 LatexCommand ref
14064 reference "subsec:configuring-viewers"
14065
14066 \end_inset
14067
14068 , where the necessary configuration steps in your viewer – needed both with
14069  the automatic and the manual setup – are described.
14070 \end_layout
14071
14072 \begin_layout Subsection
14073 Manual setup
14074 \end_layout
14075
14076 \begin_layout Standard
14077 \SpecialChar LaTeX
14078  provides several different methods for reverse search.
14079  Some are built-in in the 
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 latex/pdflatex
14085 \end_layout
14086
14087 \end_inset
14088
14089  program, some are provided by external packages.
14090  Your choice depends on whether your \SpecialChar LaTeX
14091  distribution already provides a given
14092  method (the built-in methods are rather new) and whether your viewer can
14093  cope with it.
14094  The available methods are described in the following.
14095 \end_layout
14096
14097 \begin_layout Subsubsection*
14098 Built-in DVI-search via src-specials (DVI only) 
14099 \end_layout
14100
14101 \begin_layout Standard
14102 This method provides the DVI file with the necessary information for reverse
14103  search.
14104  It is available in \SpecialChar LaTeX
14105  since quite some time (any somewhat recent \SpecialChar LaTeX
14106  distribution
14107  should include it), and it works reliably.
14108  To enable it, change the 
14109 \begin_inset Flex Noun
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 La
14114 \family sans
14115 TeX
14116 \family default
14117  (plain)->DVI
14118 \end_layout
14119
14120 \end_inset
14121
14122  or 
14123 \begin_inset Flex Noun
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 La
14128 \family sans
14129 TeX
14130 \family default
14131  (plain)->DraftDVI
14132 \end_layout
14133
14134 \end_inset
14135
14136  converter in 
14137 \begin_inset Flex Noun
14138 status collapsed
14139
14140 \begin_layout Plain Layout
14141 Preferences\SpecialChar menuseparator
14142 File Handling\SpecialChar menuseparator
14143 Converters
14144 \end_layout
14145
14146 \end_inset
14147
14148  to 
14149 \begin_inset Flex Code
14150 status collapsed
14151
14152 \begin_layout Plain Layout
14153 latex -src-specials $$i
14154 \end_layout
14155
14156 \end_inset
14157
14158 .
14159  If this doesn't work, check if your \SpecialChar TeX
14160  engine needs different options (the
14161  syntax might differ in some distributions).
14162 \end_layout
14163
14164 \begin_layout Subsubsection*
14165 External Packages (PDFSync and scrltx) 
14166 \end_layout
14167
14168 \begin_layout Standard
14169 The packages 
14170 \emph on
14171 pdfsync
14172 \emph default
14173  and 
14174 \emph on
14175 scrltx
14176 \emph default
14177  provide reverse search facility for PDF output (via pdflatex) and DVI output,
14178  respectively.
14179  In order to enable it, load the packages in the \SpecialChar LyX
14180  preamble: 
14181 \end_layout
14182
14183 \begin_layout Itemize
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188
14189 \backslash
14190 usepackage{pdfsync}
14191 \end_layout
14192
14193 \end_inset
14194
14195  for reverse PDF search,
14196 \end_layout
14197
14198 \begin_layout Itemize
14199 \begin_inset Flex Code
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203
14204 \backslash
14205 usepackage[active]{srcltx}
14206 \end_layout
14207
14208 \end_inset
14209
14210  for reverse DVI search.
14211 \end_layout
14212
14213 \begin_layout Standard
14214 If you want to be able to perform both DVI and PDF reverse searches, you
14215  can also insert in the preamble the following lines
14216 \end_layout
14217
14218 \begin_layout LyX-Code
14219
14220 \backslash
14221 usepackage{ifpdf}
14222 \begin_inset Newline newline
14223 \end_inset
14224
14225
14226 \backslash
14227 ifpdf
14228 \begin_inset Newline newline
14229 \end_inset
14230
14231   
14232 \backslash
14233 usepackage{pdfsync}
14234 \begin_inset Newline newline
14235 \end_inset
14236
14237
14238 \backslash
14239 else
14240 \begin_inset Newline newline
14241 \end_inset
14242
14243   
14244 \backslash
14245 usepackage[active]{srcltx}
14246 \begin_inset Newline newline
14247 \end_inset
14248
14249
14250 \backslash
14251 fi
14252 \end_layout
14253
14254 \begin_layout Standard
14255 This way, you can preview the file as either DVI or PDF (pdflatex) and the
14256  right package will be used.
14257 \end_layout
14258
14259 \begin_layout Standard
14260 Note that PDFSync might affect the output layout of your document.
14261  It is therefore advised to disable PDFsync for final documents.
14262 \end_layout
14263
14264 \begin_layout Subsubsection*
14265 Built-in reverse search via Sync\SpecialChar TeX
14266  (DVI and PDF) 
14267 \end_layout
14268
14269 \begin_layout Standard
14270 Recent versions of 
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275 (pdf)latex
14276 \end_layout
14277
14278 \end_inset
14279
14280  have built-in support for both PDF and DVI reverse search.
14281  This so-called 
14282 \emph on
14283 Sync\SpecialChar TeX
14284
14285 \emph default
14286  facility is basically the result of the integration of the PDFSync package
14287  to the pdftex program and its merge with the 
14288 \emph on
14289 scr-specials
14290 \emph default
14291  approach.
14292  You need at least \SpecialChar TeX
14293 Live 2008 or a recent Mik\SpecialChar TeX
14294  distribution in order to use
14295  it.
14296 \begin_inset Foot
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300 For some reason, Mik\SpecialChar TeX
14301  does not understand/obey the command \SpecialChar LyX
14302  inserts into
14303  the preamble when you check the "Enable Forward/Reverse Search" button
14304  in the toolbar and does not generate the necessary info.
14305 \end_layout
14306
14307 \begin_layout Plain Layout
14308 The generation of the required info can be forced by changing the converter
14309  "\SpecialChar LaTeX
14310  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
14311  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
14312  the -synctex=1 switch).
14313 \end_layout
14314
14315 \end_inset
14316
14317  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
14318  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
14319  already provide Sync\SpecialChar TeX
14320  support.
14321 \end_layout
14322
14323 \begin_layout Standard
14324 To enable Sync\SpecialChar TeX
14325  for DVI output, change the 
14326 \begin_inset Flex Noun
14327 status collapsed
14328
14329 \begin_layout Plain Layout
14330 La
14331 \family sans
14332 TeX
14333 \family default
14334  (plain) -> DVI
14335 \end_layout
14336
14337 \end_inset
14338
14339  or 
14340 \begin_inset Flex Noun
14341 status collapsed
14342
14343 \begin_layout Plain Layout
14344 La
14345 \family sans
14346 TeX
14347 \family default
14348  (plain) -> DraftDVI
14349 \end_layout
14350
14351 \end_inset
14352
14353  converter in 
14354 \begin_inset Flex Noun
14355 status collapsed
14356
14357 \begin_layout Plain Layout
14358 Preferences\SpecialChar menuseparator
14359 File Handling\SpecialChar menuseparator
14360 Converters
14361 \end_layout
14362
14363 \end_inset
14364
14365  to 
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370 latex -synctex=1 $$i
14371 \end_layout
14372
14373 \end_inset
14374
14375 , and for PDF output, change the 
14376 \begin_inset Flex Noun
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 La
14381 \family sans
14382 TeX
14383 \family default
14384  (pdflatex) -> PDF (pdflatex)
14385 \end_layout
14386
14387 \end_inset
14388
14389  converter to 
14390 \begin_inset Flex Code
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 pdflatex -synctex=1 $$i
14395 \end_layout
14396
14397 \end_inset
14398
14399 .
14400  Should your viewer not be considered in the following description, or in
14401  case of missing success, please check the documentation of your viewer
14402  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
14403 .
14404 \begin_inset Foot
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 Note that the option 
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 -synctex=1
14414 \end_layout
14415
14416 \end_inset
14417
14418  option enables gzip compression.
14419  If your viewer does not support it, you should instead use 
14420 \begin_inset Flex Code
14421 status collapsed
14422
14423 \begin_layout Plain Layout
14424 -synctex=-1
14425 \end_layout
14426
14427 \end_inset
14428
14429 .
14430 \end_layout
14431
14432 \end_inset
14433
14434
14435 \end_layout
14436
14437 \begin_layout Subsection
14438 Configuring and using specific viewers
14439 \begin_inset CommandInset label
14440 LatexCommand label
14441 name "subsec:configuring-viewers"
14442
14443 \end_inset
14444
14445
14446 \end_layout
14447
14448 \begin_layout Subsubsection*
14449 Xdvi (all platforms)
14450 \end_layout
14451
14452 \begin_layout Standard
14453 If you use 
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 xdvi
14459 \end_layout
14460
14461 \end_inset
14462
14463 , you don't need to do anything else for performing a reverse DVI search,
14464  as \SpecialChar LyX
14465  already provides the necessary hooks for automatically using the 
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470 lyxclient
14471 \end_layout
14472
14473 \end_inset
14474
14475  program.
14476  Just setup your document as described above (reverse search is triggered
14477  by Ctrl-click or Alt-click on Mac OSX, respectively).
14478 \end_layout
14479
14480 \begin_layout Standard
14481 However, if for whatever reason you want to use the named pipe instead of
14482  the socket for communicating with \SpecialChar LyX
14483 , simply change the DVI viewer in 
14484 \begin_inset Flex Noun
14485 status collapsed
14486
14487 \begin_layout Plain Layout
14488 Preferences\SpecialChar menuseparator
14489 File Handling\SpecialChar menuseparator
14490 File formats
14491 \end_layout
14492
14493 \end_inset
14494
14495  to
14496 \begin_inset Foot
14497 status collapsed
14498
14499 \begin_layout Plain Layout
14500 On Mac OSX you have to use 
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
14506 \end_layout
14507
14508 \end_inset
14509
14510
14511 \end_layout
14512
14513 \end_inset
14514
14515  
14516 \begin_inset Flex Code
14517 status collapsed
14518
14519 \begin_layout Plain Layout
14520 xdvi -editor "lyxeditor.sh %f %l"
14521 \end_layout
14522
14523 \end_inset
14524
14525 , where 
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 lyxeditor.sh
14531 \end_layout
14532
14533 \end_inset
14534
14535  is a suitable script.
14536  For example, a minimal shell script is the following one:
14537 \end_layout
14538
14539 \begin_layout LyX-Code
14540 #!/bin/sh
14541 \begin_inset Newline newline
14542 \end_inset
14543
14544 LYXPIPE="/path/to/lyxpipe"
14545 \begin_inset Newline newline
14546 \end_inset
14547
14548 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
14549 \begin_inset Newline newline
14550 \end_inset
14551
14552 echo "$COMMAND" > "${LYXPIPE}".in || exit
14553 \begin_inset Newline newline
14554 \end_inset
14555
14556 read TMP < "${LYXPIPE}".out || exit
14557 \end_layout
14558
14559 \begin_layout Standard
14560 where 
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 /path/to/lyxpipe
14566 \end_layout
14567
14568 \end_inset
14569
14570  is the LyXServer pipe path specified in 
14571 \begin_inset Flex Noun
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 Preferences\SpecialChar menuseparator
14576 Paths
14577 \end_layout
14578
14579 \end_inset
14580
14581 .
14582 \begin_inset Foot
14583 status collapsed
14584
14585 \begin_layout Plain Layout
14586 In the 
14587 \begin_inset Flex Code
14588 status collapsed
14589
14590 \begin_layout Plain Layout
14591 development/tools
14592 \end_layout
14593
14594 \end_inset
14595
14596  folder of a source distribution you can find a 
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 lyxeditor
14602 \end_layout
14603
14604 \end_inset
14605
14606  script which is able to locate the 
14607 \emph on
14608 lyxpipe
14609 \emph default
14610  based on your preferences.
14611 \end_layout
14612
14613 \end_inset
14614
14615
14616 \end_layout
14617
14618 \begin_layout Subsubsection*
14619 MacDviX (Mac OSX)
14620 \end_layout
14621
14622 \begin_layout Standard
14623 At the end of 
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 /Applications/MacDviX_Folder/calleditor.script
14629 \end_layout
14630
14631 \end_inset
14632
14633 , add the following lines:
14634 \end_layout
14635
14636 \begin_layout LyX-Code
14637 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
14638 \begin_inset Newline newline
14639 \end_inset
14640
14641 exit 1
14642 \end_layout
14643
14644 \begin_layout Standard
14645 Modify the lines accordingly if you install \SpecialChar LyX
14646  somewhere else than in the
14647  Applications folder.
14648 \end_layout
14649
14650 \begin_layout Standard
14651 Reverse search is triggered by Alt-click (OPTION-click).
14652 \end_layout
14653
14654 \begin_layout Subsubsection*
14655 Skim (Mac OSX)
14656 \end_layout
14657
14658 \begin_layout Standard
14659 Enter 
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 open -a Skim.app $$i
14665 \end_layout
14666
14667 \end_inset
14668
14669  to the viewer setting in 
14670 \begin_inset Flex Noun
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 Preferences\SpecialChar menuseparator
14675 File Handling\SpecialChar menuseparator
14676 File formats\SpecialChar menuseparator
14677 PDF (pdflatex)
14678 \end_layout
14679
14680 \end_inset
14681
14682 , and then in 
14683 \begin_inset Flex Noun
14684 status collapsed
14685
14686 \begin_layout Plain Layout
14687 Skim\SpecialChar menuseparator
14688 Preferences\SpecialChar menuseparator
14689 Sync
14690 \end_layout
14691
14692 \end_inset
14693
14694  choose 
14695 \begin_inset Flex Noun
14696 status collapsed
14697
14698 \begin_layout Plain Layout
14699 custom
14700 \end_layout
14701
14702 \end_inset
14703
14704  preset and enter command 
14705 \begin_inset Flex Noun
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 /Applications/\SpecialChar LyX
14710 .app/Contents/MacOS/lyxeditor
14711 \end_layout
14712
14713 \end_inset
14714
14715 .
14716 \end_layout
14717
14718 \begin_layout Standard
14719 Reverse search is triggered by COMMAND-SHIFT-click
14720 \end_layout
14721
14722 \begin_layout Subsubsection*
14723 Evince (GNOME)
14724 \end_layout
14725
14726 \begin_layout Standard
14727 Reverse search with evince does not work out of the box, but it can be achieved
14728  by means of some third party helper scripts.
14729  Please refer to 
14730 \begin_inset CommandInset href
14731 LatexCommand href
14732 target "https://wiki.lyx.org/LyX/SyncTeX"
14733 literal "false"
14734
14735 \end_inset
14736
14737  for details.
14738 \end_layout
14739
14740 \begin_layout Subsubsection*
14741 Okular (KDE)
14742 \end_layout
14743
14744 \begin_layout Standard
14745 Go to 
14746 \begin_inset Flex Noun
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 Settings\SpecialChar menuseparator
14751 Configure Okular\SpecialChar menuseparator
14752 Editor
14753 \end_layout
14754
14755 \end_inset
14756
14757  and select LyX
14758 \begin_inset Quotes erd
14759 \end_inset
14760
14761  as editor.
14762  This inserts the appropriate command (
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 lyxclient -g %f %l
14768 \end_layout
14769
14770 \end_inset
14771
14772 ).
14773 \end_layout
14774
14775 \begin_layout Standard
14776 Reverse search is triggered by SHIFT-click.
14777
14778 \change_inserted -712698321 1578211026
14779  Note that this only works if Okular is in 
14780 \begin_inset Quotes eld
14781 \end_inset
14782
14783 Browse
14784 \begin_inset Quotes erd
14785 \end_inset
14786
14787  mode (i.
14788 \begin_inset space \thinspace{}
14789 \end_inset
14790
14791 e., the hand symbol is clicked).
14792 \change_unchanged
14793
14794 \end_layout
14795
14796 \begin_layout Subsubsection*
14797 Qpdfview (Unix)
14798 \end_layout
14799
14800 \begin_layout Standard
14801 Qpdfview supports Sync\SpecialChar TeX
14802  since version 0.3.5.
14803  Go to 
14804 \begin_inset Flex Noun
14805 status collapsed
14806
14807 \begin_layout Plain Layout
14808 Edit\SpecialChar menuseparator
14809 Settings\SpecialChar menuseparator
14810 Behavior
14811 \end_layout
14812
14813 \end_inset
14814
14815 , click on the input field of the 
14816 \begin_inset Quotes eld
14817 \end_inset
14818
14819 Source editor
14820 \begin_inset Quotes erd
14821 \end_inset
14822
14823  item and add the command 
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 lyxclient -g %1 %2
14829 \end_layout
14830
14831 \end_inset
14832
14833 .
14834 \end_layout
14835
14836 \begin_layout Standard
14837 Reverse search is triggered by double-click or, in more recent versions,
14838  by context menu.
14839 \end_layout
14840
14841 \begin_layout Subsubsection*
14842 YAP (Windows)
14843 \end_layout
14844
14845 \begin_layout Standard
14846 Launch yap, choose its 
14847 \begin_inset Flex Noun
14848 status collapsed
14849
14850 \begin_layout Plain Layout
14851 View\SpecialChar menuseparator
14852 Options
14853 \end_layout
14854
14855 \end_inset
14856
14857  menu and select the 
14858 \begin_inset Quotes eld
14859 \end_inset
14860
14861 Inverse DVI Search
14862 \begin_inset Quotes erd
14863 \end_inset
14864
14865  tab.
14866  Click on the 
14867 \begin_inset Quotes eld
14868 \end_inset
14869
14870 New\SpecialChar ldots
14871
14872 \begin_inset Quotes erd
14873 \end_inset
14874
14875  button and, in the window that opens, enter 
14876 \begin_inset Quotes eld
14877 \end_inset
14878
14879 \SpecialChar LyX
14880  Editor
14881 \begin_inset Quotes erd
14882 \end_inset
14883
14884  (or any other name you like) in the 
14885 \begin_inset Quotes eld
14886 \end_inset
14887
14888 Name:
14889 \begin_inset Quotes erd
14890 \end_inset
14891
14892  field.
14893  Now click on the button labeled 
14894 \begin_inset Quotes eld
14895 \end_inset
14896
14897 \SpecialChar ldots
14898
14899 \begin_inset Quotes erd
14900 \end_inset
14901
14902  to open a file dialog and navigate to the directory containing the batch
14903  file 
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 lyxeditor.bat
14909 \end_layout
14910
14911 \end_inset
14912
14913  (see below).
14914  Select 
14915 \begin_inset Flex Code
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 lyxeditor.bat
14920 \end_layout
14921
14922 \end_inset
14923
14924  and then specify the program arguments as 
14925 \begin_inset Flex Code
14926 status collapsed
14927
14928 \begin_layout Plain Layout
14929 %f %l
14930 \end_layout
14931
14932 \end_inset
14933
14934 .
14935  The 
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 lyxeditor.bat
14941 \end_layout
14942
14943 \end_inset
14944
14945  wrapper is used for communicating with \SpecialChar LyX
14946  through the 
14947 \emph on
14948 lyxpipe
14949 \emph default
14950  and is as follows:
14951 \end_layout
14952
14953 \begin_layout LyX-Code
14954 @echo off
14955 \begin_inset Newline newline
14956 \end_inset
14957
14958 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
14959 \backslash
14960
14961 \backslash
14962 .
14963 \backslash
14964 pipe
14965 \backslash
14966 lyxpipe.in
14967 \begin_inset Newline newline
14968 \end_inset
14969
14970 type 
14971 \backslash
14972
14973 \backslash
14974 .
14975 \backslash
14976 pipe
14977 \backslash
14978 lyxpipe.out
14979 \end_layout
14980
14981 \begin_layout Standard
14982 Make sure that the \SpecialChar LyX
14983 Server pipe path you specified in \SpecialChar LyX
14984  is 
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989
14990 \backslash
14991
14992 \backslash
14993 .
14994 \backslash
14995 pipe
14996 \backslash
14997 lyxpipe
14998 \end_layout
14999
15000 \end_inset
15001
15002 , otherwise change the 
15003 \begin_inset Flex Code
15004 status collapsed
15005
15006 \begin_layout Plain Layout
15007 lyxeditor.bat
15008 \end_layout
15009
15010 \end_inset
15011
15012  wrapper accordingly.
15013 \end_layout
15014
15015 \begin_layout Standard
15016 In yap, reverse search is triggered by double-click.
15017 \end_layout
15018
15019 \begin_layout Subsubsection*
15020 SumatraPDF (Windows)
15021 \end_layout
15022
15023 \begin_layout Standard
15024 In order to use SumatraPDF for inverse search, enter 
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
15030 \end_layout
15031
15032 \end_inset
15033
15034  in the viewer setting in 
15035 \begin_inset Flex Noun
15036 status collapsed
15037
15038 \begin_layout Plain Layout
15039 Preferences\SpecialChar menuseparator
15040 File Handling\SpecialChar menuseparator
15041 File formats\SpecialChar menuseparator
15042 PDF (pdflatex)
15043 \end_layout
15044
15045 \end_inset
15046
15047 , where 
15048 \begin_inset Flex Code
15049 status collapsed
15050
15051 \begin_layout Plain Layout
15052 lyxeditor.bat
15053 \end_layout
15054
15055 \end_inset
15056
15057  is the previous wrapper.
15058  If SumatraPDF.exe is not in your command PATH, use its full file name.
15059 \end_layout
15060
15061 \begin_layout Standard
15062 Reverse search is triggered by double-click.
15063 \end_layout
15064
15065 \begin_layout Subsubsection*
15066 YAP (Cygwin)
15067 \end_layout
15068
15069 \begin_layout Standard
15070 First of all, make sure that yap is your default DVI viewer in the Windows
15071  environment, then launch it, choose its 
15072 \begin_inset Flex Noun
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 View\SpecialChar menuseparator
15077 Options
15078 \end_layout
15079
15080 \end_inset
15081
15082  menu and select the 
15083 \begin_inset Quotes eld
15084 \end_inset
15085
15086 Inverse DVI Search
15087 \begin_inset Quotes erd
15088 \end_inset
15089
15090  tab.
15091  Click on the 
15092 \begin_inset Quotes eld
15093 \end_inset
15094
15095 New\SpecialChar ldots
15096
15097 \begin_inset Quotes erd
15098 \end_inset
15099
15100  button and, in the window that opens, enter 
15101 \begin_inset Quotes eld
15102 \end_inset
15103
15104 \SpecialChar LyX
15105  Editor
15106 \begin_inset Quotes erd
15107 \end_inset
15108
15109  (or any other name you like) in the 
15110 \begin_inset Quotes eld
15111 \end_inset
15112
15113 Name:
15114 \begin_inset Quotes erd
15115 \end_inset
15116
15117  field.
15118  Now click on the button labeled 
15119 \begin_inset Quotes eld
15120 \end_inset
15121
15122 \SpecialChar ldots
15123
15124 \begin_inset Quotes erd
15125 \end_inset
15126
15127  to open a file dialog and navigate to the directory containing the 
15128 \begin_inset Flex Code
15129 status collapsed
15130
15131 \begin_layout Plain Layout
15132 lyxeditor.exe
15133 \end_layout
15134
15135 \end_inset
15136
15137  program (which is installed by default on Cygwin along with the \SpecialChar LyX
15138  executable).
15139  Select 
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 lyxeditor.exe
15145 \end_layout
15146
15147 \end_inset
15148
15149  and then specify the program arguments as 
15150 \begin_inset Flex Code
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154 -g %f %l
15155 \end_layout
15156
15157 \end_inset
15158
15159 .
15160  In this way, you will be using the 
15161 \emph on
15162 lyxsocket
15163 \emph default
15164  for communicating with \SpecialChar LyX
15165 .
15166  If, for whatever reason, you want to use the 
15167 \emph on
15168 lyxpipe
15169 \emph default
15170 , omit the 
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 -g
15176 \end_layout
15177
15178 \end_inset
15179
15180  option and be sure to specify the \SpecialChar LyX
15181 Server pipe path in the \SpecialChar LyX
15182  preferences.
15183 \end_layout
15184
15185 \begin_layout Standard
15186 In yap, reverse search is triggered by double-click.
15187 \end_layout
15188
15189 \begin_layout Subsubsection*
15190 SumatraPDF (Cygwin)
15191 \end_layout
15192
15193 \begin_layout Standard
15194 In order to use SumatraPDF for inverse search, enter 
15195 \begin_inset Flex Code
15196 status collapsed
15197
15198 \begin_layout Plain Layout
15199 SumatraPDF -inverse-search "lyxeditor -g %f %l"
15200 \end_layout
15201
15202 \end_inset
15203
15204  in the viewer setting in 
15205 \begin_inset Flex Noun
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 Preferences\SpecialChar menuseparator
15210 File Handling\SpecialChar menuseparator
15211 File formats\SpecialChar menuseparator
15212 PDF (pdflatex)
15213 \end_layout
15214
15215 \end_inset
15216
15217 .
15218  If SumatraPDF.exe is not in your command PATH, use its full posix path.
15219  The 
15220 \begin_inset Flex Code
15221 status collapsed
15222
15223 \begin_layout Plain Layout
15224 -g
15225 \end_layout
15226
15227 \end_inset
15228
15229  enables communication via the 
15230 \emph on
15231 lyxsocket
15232 \emph default
15233 .
15234  Again, omit the 
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239 -g
15240 \end_layout
15241
15242 \end_inset
15243
15244  option if you want to use the 
15245 \emph on
15246 lyxpipe
15247 \emph default
15248 , and be sure to specify the \SpecialChar LyX
15249 Server pipe path in the \SpecialChar LyX
15250  preferences.
15251 \end_layout
15252
15253 \begin_layout Standard
15254 Reverse search is triggered by double-click.
15255 \end_layout
15256
15257 \begin_layout Section
15258 Forward search
15259 \end_layout
15260
15261 \begin_layout Standard
15262 Forward search is, as the name implies, in a sense the 
15263 \begin_inset Quotes eld
15264 \end_inset
15265
15266 opposite
15267 \begin_inset Quotes erd
15268 \end_inset
15269
15270  of reverse search.
15271  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
15272 .
15273  If forward search is set up (as described in what follows), you can put
15274  the cursor anywhere in your \SpecialChar LyX
15275  document, and hit 
15276 \begin_inset Flex Noun
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 Navigate\SpecialChar menuseparator
15281 Forward search
15282 \end_layout
15283
15284 \end_inset
15285
15286  (or select 
15287 \begin_inset Flex Noun
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 Forward search
15292 \end_layout
15293
15294 \end_inset
15295
15296  in the context menu via right mouse click), and then the viewer will jump
15297  to that position as well.
15298  This implies, of course, that your viewer supports this function.
15299 \end_layout
15300
15301 \begin_layout Standard
15302 To make forward search possible, you first need to provide the generated
15303  output PDF/DVI file with additional information about the \SpecialChar TeX
15304  sources.
15305  This can be done via the methods described in the section 
15306 \begin_inset CommandInset ref
15307 LatexCommand ref
15308 reference "subsec:rev-search"
15309
15310 \end_inset
15311
15312 .
15313 \end_layout
15314
15315 \begin_layout Standard
15316 Additionally, you need to configure \SpecialChar LyX
15317  for using your viewers in 
15318 \begin_inset Flex Noun
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 Tools\SpecialChar menuseparator
15323 Preferences\SpecialChar menuseparator
15324 Output\SpecialChar menuseparator
15325 General
15326 \end_layout
15327
15328 \end_inset
15329
15330 .
15331  We provide a range of tested configurations for some viewers, which you
15332  can select from the drop down list.
15333  If none of these configurations suits you, you have to find out and enter
15334  a suitable configuration yourself.
15335  The definition syntax uses the following placeholders:
15336 \end_layout
15337
15338 \begin_layout Itemize
15339 \noindent
15340 \begin_inset Flex Code
15341 status collapsed
15342
15343 \begin_layout Plain Layout
15344 $$n
15345 \end_layout
15346
15347 \end_inset
15348
15349 : row number
15350 \end_layout
15351
15352 \begin_layout Itemize
15353 \noindent
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358 $$t
15359 \end_layout
15360
15361 \end_inset
15362
15363 : name of the (temporary) exported .tex file (without path)
15364 \end_layout
15365
15366 \begin_layout Itemize
15367 \noindent
15368 \begin_inset Flex Code
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 $$f
15373 \end_layout
15374
15375 \end_inset
15376
15377 : name of the (temporary) exported .tex file (including path)
15378 \end_layout
15379
15380 \begin_layout Itemize
15381 \noindent
15382 \begin_inset Flex Code
15383 status collapsed
15384
15385 \begin_layout Plain Layout
15386 $$o
15387 \end_layout
15388
15389 \end_inset
15390
15391 : name of the exported output file (either dvi or pdf, depending on which
15392  one exists in the temporary directory)
15393 \end_layout
15394
15395 \begin_layout Standard
15396 Note that only some of the viewers provide full and usable forward search
15397  functionality out of the box, among them yap, xdvi, okular
15398 \begin_inset Foot
15399 status collapsed
15400
15401 \begin_layout Plain Layout
15402 You might want to set 
15403 \begin_inset Flex Code
15404 status collapsed
15405
15406 \begin_layout Plain Layout
15407 okular --unique
15408 \end_layout
15409
15410 \end_inset
15411
15412  in 
15413 \begin_inset Flex Noun
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 Tools\SpecialChar menuseparator
15418 Preferences\SpecialChar menuseparator
15419 File Handling\SpecialChar menuseparator
15420 File
15421 \begin_inset space ~
15422 \end_inset
15423
15424 Formats
15425 \end_layout
15426
15427 \end_inset
15428
15429
15430 \end_layout
15431
15432 \end_inset
15433
15434 , qpdfview, and SumatraPDF
15435 \begin_inset Foot
15436 status collapsed
15437
15438 \begin_layout Plain Layout
15439 SumatraPDF can also use DDE commands through the external program CMCDDE
15440  — downloadable from 
15441 \begin_inset CommandInset href
15442 LatexCommand href
15443 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
15444 literal "false"
15445
15446 \end_inset
15447
15448
15449 \end_layout
15450
15451 \end_inset
15452
15453 .
15454  Others, such as evince
15455 \begin_inset Foot
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 Forward search with evince can be achieved by means of third party helper
15460  scripts.
15461  Please refer to 
15462 \begin_inset CommandInset href
15463 LatexCommand href
15464 target "https://wiki.lyx.org/LyX/SyncTeX"
15465 literal "false"
15466
15467 \end_inset
15468
15469  for details.
15470 \end_layout
15471
15472 \end_inset
15473
15474 , require some extra tools in order to use forward search.
15475  While many of the widespread PDF viewers (most notably Adobe Reader) do
15476  not support forward search at all, some other viewers – e.
15477 \begin_inset space \thinspace{}
15478 \end_inset
15479
15480 g.
15481  xpdf – allow at least to reload the document and jump to a specific page
15482  of the file, so you can at least navigate 
15483 \begin_inset Quotes eld
15484 \end_inset
15485
15486 near
15487 \begin_inset Quotes erd
15488 \end_inset
15489
15490 .
15491  This latter functionality is provided by an external call of synctex (see
15492  the predefined example configurations).
15493  
15494 \end_layout
15495
15496 \begin_layout Standard
15497 Forward search works both with DVI and PDF output.
15498  \SpecialChar LyX
15499  simply checks which preview format you have used before (i.
15500 \begin_inset space \thinspace{}
15501 \end_inset
15502
15503 e., which format is already there in the temporary directory) and chooses
15504  the appropriate configuration for the respective format.
15505 \end_layout
15506
15507 \begin_layout Chapter
15508 Special Document Classes
15509 \end_layout
15510
15511 \begin_layout Section
15512
15513 \change_deleted 564990737 1669742044
15514 A&A Paper
15515 \end_layout
15516
15517 \begin_layout Standard
15518
15519 \change_deleted 564990737 1669742044
15520 by 
15521 \noun on
15522 Peter Sütterlin
15523 \end_layout
15524
15525 \begin_layout Subsection
15526
15527 \change_deleted 564990737 1669742044
15528 Introduction
15529 \end_layout
15530
15531 \begin_layout Standard
15532
15533 \change_deleted 564990737 1669742044
15534 This section describes how \SpecialChar LyX
15535  can be used to write articles for submission
15536  to the scientific journal 
15537 \emph on
15538 Astronomy and Astrophysics
15539 \emph default
15540  (
15541 \begin_inset Flex URL
15542 status collapsed
15543
15544 \begin_layout Plain Layout
15545
15546 https://www.aanda.org/
15547 \end_layout
15548
15549 \end_inset
15550
15551 ) using Version 5.01 of the document class 
15552 \family typewriter
15553 aa.cls
15554 \family default
15555 .
15556  This package can be downloaded from the ftp site
15557 \end_layout
15558
15559 \begin_layout Standard
15560
15561 \change_deleted 564990737 1669742044
15562 \begin_inset VSpace medskip
15563 \end_inset
15564
15565
15566 \end_layout
15567
15568 \begin_layout Standard
15569 \align center
15570
15571 \change_deleted 564990737 1669742044
15572 \begin_inset Flex URL
15573 status collapsed
15574
15575 \begin_layout Plain Layout
15576
15577 ftp://ftp.edpsciences.org/pub/aa/readme.html
15578 \end_layout
15579
15580 \end_inset
15581
15582
15583 \end_layout
15584
15585 \begin_layout Standard
15586
15587 \change_deleted 564990737 1669742044
15588 \begin_inset VSpace medskip
15589 \end_inset
15590
15591
15592 \end_layout
15593
15594 \begin_layout Standard
15595
15596 \change_deleted 564990737 1669742044
15597 A manual comes together with that package, and this text is not meant to
15598  replace the original manual but is merely a short guide in how to realize
15599  the correct form of your paper.
15600  
15601 \end_layout
15602
15603 \begin_layout Standard
15604
15605 \change_deleted 564990737 1669742044
15606 Please note that the publisher of the journal was changed from Springer
15607  to EDP Sciences starting January 1, 2001.
15608  That change involved also some slight changes to the style files, namely
15609  the removal of the thesaurus command.
15610  The \SpecialChar LyX
15611  class aa supports the newest version of these style files, V 5.01.
15612  If you have an older version installed, please upgrade.
15613  For compatibility, the old (version 4) layout has been kept as 
15614 \family sans
15615 article (A&A V4)
15616 \family default
15617 .
15618  Please refer to the comments in 
15619 \family typewriter
15620 \SpecialChar LyX
15621 Dir/layouts/aapaper.layout
15622 \family default
15623 .
15624 \end_layout
15625
15626 \begin_layout Subsection
15627
15628 \change_deleted 564990737 1669742044
15629 Getting started
15630 \end_layout
15631
15632 \begin_layout Standard
15633
15634 \change_deleted 564990737 1669742044
15635 It is recommended you start from the example template distributed with \SpecialChar LyX
15636 .
15637  If you are not using a template, note the following settings:
15638 \end_layout
15639
15640 \begin_layout Itemize
15641
15642 \change_deleted 564990737 1669742044
15643 Select 
15644 \family sans
15645 article (A&A)
15646 \family default
15647  in the 
15648 \family sans
15649 Document\SpecialChar menuseparator
15650 Settings
15651 \family default
15652  dialog (OK, that one was obvious).
15653 \end_layout
15654
15655 \begin_layout Itemize
15656
15657 \change_deleted 564990737 1669742044
15658 Don't change the option 
15659 \family sans
15660 Page
15661 \begin_inset space ~
15662 \end_inset
15663
15664 style
15665 \family default
15666 : Leave it set to 
15667 \family sans
15668 default
15669 \family default
15670 .
15671  The whole layout is done by the macros, you shouldn't change anything.
15672 \end_layout
15673
15674 \begin_layout Subsection
15675
15676 \change_deleted 564990737 1669742044
15677 The header block
15678 \end_layout
15679
15680 \begin_layout Standard
15681
15682 \change_deleted 564990737 1669742044
15683 First thing to enter is the header information.
15684  It consists of seven entries, of which some are optional.
15685  They are
15686 \end_layout
15687
15688 \begin_layout Itemize
15689
15690 \change_deleted 564990737 1669742044
15691
15692 \family sans
15693 Title
15694 \family default
15695 : [required] 
15696 \end_layout
15697
15698 \begin_layout Itemize
15699
15700 \change_deleted 564990737 1669742044
15701
15702 \family sans
15703 Subtitle
15704 \family default
15705 : [optional] 
15706 \end_layout
15707
15708 \begin_layout Itemize
15709
15710 \change_deleted 564990737 1669742044
15711
15712 \family sans
15713 Author
15714 \family default
15715 : [required]
15716 \end_layout
15717
15718 \begin_layout Itemize
15719
15720 \change_deleted 564990737 1669742044
15721
15722 \family sans
15723 Address
15724 \family default
15725 : [required]
15726 \end_layout
15727
15728 \begin_layout Itemize
15729
15730 \change_deleted 564990737 1669742044
15731
15732 \family sans
15733 Offprints
15734 \family default
15735 : [optional] if more than one author: whom to contact for offprint requests.
15736 \end_layout
15737
15738 \begin_layout Itemize
15739
15740 \change_deleted 564990737 1669742044
15741
15742 \family sans
15743 Mail
15744 \family default
15745 : [optional] mail address for contacts.
15746 \end_layout
15747
15748 \begin_layout Itemize
15749
15750 \change_deleted 564990737 1669742044
15751
15752 \family sans
15753 Date
15754 \family default
15755 : [required].
15756  Suggested format is 
15757 \family typewriter
15758 Received: <date>; Accepted <date> 
15759 \end_layout
15760
15761 \begin_layout Standard
15762
15763 \change_deleted 564990737 1669742044
15764 There is no need to issue the 
15765 \family typewriter
15766
15767 \backslash
15768 maketitle
15769 \family default
15770  command, this is done automatically by \SpecialChar LyX
15771  when the header is finished.
15772  Although the order of the single header entries doesn't matter it is advised
15773  to keep the above sequence, just to get the best optics and meets the layout
15774  of the real document.
15775 \end_layout
15776
15777 \begin_layout Standard
15778
15779 \change_deleted 564990737 1669742044
15780 If you want to place footnotes in the header block, e.
15781 \begin_inset space \thinspace{}
15782 \end_inset
15783
15784 g.
15785 \begin_inset space \space{}
15786 \end_inset
15787
15788 to state your present address, just use the standard footnote via the menu
15789  
15790 \family sans
15791 Insert\SpecialChar menuseparator
15792 Footnote.
15793
15794 \family default
15795  \SpecialChar LyX
15796  will automagically use the term 
15797 \family typewriter
15798
15799 \backslash
15800 thanks{}
15801 \family default
15802  in that case.
15803 \end_layout
15804
15805 \begin_layout Standard
15806
15807 \change_deleted 564990737 1669742044
15808 Under 
15809 \family sans
15810 Edit\SpecialChar menuseparator
15811 Text Style
15812 \family default
15813 , you'll find two insets which are relevant for the titling:
15814 \end_layout
15815
15816 \begin_layout Itemize
15817
15818 \change_deleted 564990737 1669742044
15819
15820 \family sans
15821 Institute
15822 \family typewriter
15823  
15824 \family default
15825 to mark corresponding author\SpecialChar breakableslash
15826 institute pairs.
15827  The institutes are numbered sequentially as they appear in the 
15828 \family sans
15829 Address
15830 \family default
15831  field, so you have to put a marker to each author.
15832 \end_layout
15833
15834 \begin_layout Itemize
15835
15836 \change_deleted 564990737 1669742044
15837
15838 \family sans
15839 Email
15840 \family default
15841  to supply an email address for fast contact.
15842 \end_layout
15843
15844 \begin_layout Standard
15845
15846 \change_deleted 564990737 1669742044
15847 In addition to these topics, the macros use one additional \SpecialChar LaTeX
15848  command that
15849  has no counterpart in \SpecialChar LyX
15850 :
15851 \end_layout
15852
15853 \begin_layout Itemize
15854
15855 \change_deleted 564990737 1669742044
15856
15857 \family typewriter
15858
15859 \backslash
15860 and
15861 \family default
15862  to separate different names for more than one author and institute, respectivel
15863 y.
15864 \end_layout
15865
15866 \begin_layout Standard
15867
15868 \change_deleted 564990737 1669742044
15869 The appropriate command has to be entered in \SpecialChar LyX
15870  and marked as \SpecialChar LaTeX
15871  code.
15872  See the examples.
15873  
15874 \end_layout
15875
15876 \begin_layout Subsection
15877
15878 \change_deleted 564990737 1669742044
15879 The abstract
15880 \end_layout
15881
15882 \begin_layout Standard
15883
15884 \change_deleted 564990737 1669742044
15885 The abstract should immediately follow the header block.
15886  With version 5 the abstract environment was changed to a command, and there
15887  is now a restriction to only one paragraph.
15888  In addition, it should contain an entry with the keywords.
15889  This is done via the paragraph style 
15890 \family sans
15891 Keywords
15892 \family default
15893 .
15894  Refer to the example paper.
15895 \end_layout
15896
15897 \begin_layout Subsection
15898
15899 \change_deleted 564990737 1669742044
15900 Supported environments
15901 \end_layout
15902
15903 \begin_layout Standard
15904
15905 \change_deleted 564990737 1669742044
15906 The A&A paper layout supports the following environments for structuring
15907  your text:
15908 \end_layout
15909
15910 \begin_layout Itemize
15911
15912 \change_deleted 564990737 1669742044
15913
15914 \family sans
15915 Standard
15916 \end_layout
15917
15918 \begin_layout Itemize
15919
15920 \change_deleted 564990737 1669742044
15921
15922 \family sans
15923 Section
15924 \end_layout
15925
15926 \begin_layout Itemize
15927
15928 \change_deleted 564990737 1669742044
15929
15930 \family sans
15931 Subsection
15932 \end_layout
15933
15934 \begin_layout Itemize
15935
15936 \change_deleted 564990737 1669742044
15937
15938 \family sans
15939 Subsubsection
15940 \end_layout
15941
15942 \begin_layout Itemize
15943
15944 \change_deleted 564990737 1669742044
15945
15946 \family sans
15947 Itemize
15948 \end_layout
15949
15950 \begin_layout Itemize
15951
15952 \change_deleted 564990737 1669742044
15953
15954 \family sans
15955 Enumerate
15956 \end_layout
15957
15958 \begin_layout Itemize
15959
15960 \change_deleted 564990737 1669742044
15961
15962 \family sans
15963 Description
15964 \end_layout
15965
15966 \begin_layout Itemize
15967
15968 \change_deleted 564990737 1669742044
15969
15970 \family sans
15971 Caption
15972 \end_layout
15973
15974 \begin_layout Itemize
15975
15976 \change_deleted 564990737 1669742044
15977
15978 \family sans
15979 Abstract
15980 \end_layout
15981
15982 \begin_layout Itemize
15983
15984 \change_deleted 564990737 1669742044
15985
15986 \family sans
15987 Acknowledgment
15988 \end_layout
15989
15990 \begin_layout Itemize
15991
15992 \change_deleted 564990737 1669742044
15993
15994 \family sans
15995 Bibliography
15996 \end_layout
15997
15998 \begin_layout Itemize
15999
16000 \change_deleted 564990737 1669742044
16001
16002 \family sans
16003 \SpecialChar LaTeX
16004
16005 \end_layout
16006
16007 \begin_layout Subsection
16008
16009 \change_deleted 564990737 1669742044
16010 Commands not supported by \SpecialChar LyX
16011
16012 \end_layout
16013
16014 \begin_layout Standard
16015
16016 \change_deleted 564990737 1669742044
16017 Some commands are not yet supported by the 
16018 \family sans
16019 paper (A&A)
16020 \family default
16021  layout for \SpecialChar LyX
16022 .
16023  Some have already been mentioned.
16024  For the sake of completeness, they are listed all together here:
16025 \end_layout
16026
16027 \begin_layout Itemize
16028
16029 \change_deleted 564990737 1669742044
16030
16031 \family typewriter
16032
16033 \backslash
16034 and
16035 \end_layout
16036
16037 \begin_layout Itemize
16038
16039 \change_deleted 564990737 1669742044
16040
16041 \family typewriter
16042
16043 \backslash
16044 authorrunning
16045 \end_layout
16046
16047 \begin_layout Itemize
16048
16049 \change_deleted 564990737 1669742044
16050
16051 \family typewriter
16052
16053 \backslash
16054 object{}
16055 \end_layout
16056
16057 \begin_layout Itemize
16058
16059 \change_deleted 564990737 1669742044
16060
16061 \family typewriter
16062
16063 \backslash
16064 titlerunning{}
16065 \end_layout
16066
16067 \begin_layout Standard
16068
16069 \change_deleted 564990737 1669742044
16070 If you want to use any of these commands, you have to enter them yourself.
16071  
16072 \series bold
16073 Do not forget to mark them as \SpecialChar LaTeX
16074  code!
16075 \end_layout
16076
16077 \begin_layout Subsection
16078
16079 \change_deleted 564990737 1669742044
16080 Figure and Table Floats
16081 \end_layout
16082
16083 \begin_layout Standard
16084
16085 \change_deleted 564990737 1669742044
16086 \SpecialChar LyX
16087  provides support for the necessary float environments 
16088 \family sans
16089 figure, figure*, table
16090 \family default
16091  and 
16092 \family sans
16093 table*
16094 \family default
16095 , therefore we won't tell much about it here.
16096  Refer to the 
16097 \emph on
16098 User's
16099 \begin_inset space ~
16100 \end_inset
16101
16102 Guide
16103 \emph default
16104 .
16105  Just remember that tables should be left-aligned.
16106  For that, select the table and change the alignment in 
16107 \family sans
16108 Edit\SpecialChar menuseparator
16109 Paragraph
16110 \begin_inset space ~
16111 \end_inset
16112
16113 Settings.
16114 \end_layout
16115
16116 \begin_layout Standard
16117
16118 \change_deleted 564990737 1669742044
16119 There is only one special thing: the figures with caption besides the figure.
16120  To create such a figure, you have to do the following:
16121 \end_layout
16122
16123 \begin_layout Enumerate
16124
16125 \change_deleted 564990737 1669742044
16126 Create a wide figure float: 
16127 \family sans
16128 Insert\SpecialChar menuseparator
16129 Float\SpecialChar menuseparator
16130 Figure
16131 \family default
16132 , then right click in the figure and select 
16133 \family sans
16134 Span
16135 \begin_inset space ~
16136 \end_inset
16137
16138 columns
16139 \family default
16140 .
16141 \end_layout
16142
16143 \begin_layout Enumerate
16144
16145 \change_deleted 564990737 1669742044
16146 Enter your caption text.
16147 \end_layout
16148
16149 \begin_layout Enumerate
16150
16151 \change_deleted 564990737 1669742044
16152 Press 
16153 \family sans
16154 Return
16155 \family default
16156  to move the cursor above the caption.
16157 \end_layout
16158
16159 \begin_layout Enumerate
16160
16161 \change_deleted 564990737 1669742044
16162 Insert your figure
16163 \end_layout
16164
16165 \begin_layout Enumerate
16166
16167 \change_deleted 564990737 1669742044
16168 Position the cursor behind the figure and insert a horizontal fill: 
16169 \family sans
16170 Insert\SpecialChar menuseparator
16171 Special
16172 \begin_inset space ~
16173 \end_inset
16174
16175 Character\SpecialChar menuseparator
16176 Horizontal
16177 \begin_inset space ~
16178 \end_inset
16179
16180 Fill
16181 \family default
16182 .
16183 \end_layout
16184
16185 \begin_layout Enumerate
16186
16187 \change_deleted 564990737 1669742044
16188 Switch to \SpecialChar LaTeX
16189  mode: 
16190 \family sans
16191 M-c
16192 \begin_inset space ~
16193 \end_inset
16194
16195 t
16196 \family default
16197 .
16198 \end_layout
16199
16200 \begin_layout Enumerate
16201
16202 \change_deleted 564990737 1669742044
16203 Enter 
16204 \family typewriter
16205
16206 \backslash
16207 parbox[b]{55mm}{
16208 \family default
16209 .
16210  
16211 \series bold
16212 Do not close the brace!
16213 \end_layout
16214
16215 \begin_layout Enumerate
16216
16217 \change_deleted 564990737 1669742044
16218 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
16219  mode and insert
16220  the closing brace: 
16221 \family sans
16222 M-c
16223 \begin_inset space ~
16224 \end_inset
16225
16226 t
16227 \family default
16228  
16229 \family typewriter
16230 }
16231 \family default
16232 .
16233 \end_layout
16234
16235 \begin_layout Standard
16236
16237 \change_deleted 564990737 1669742044
16238 Also, refer to the figures in the example paper.
16239 \end_layout
16240
16241 \begin_layout Subsection
16242
16243 \change_deleted 564990737 1669742044
16244 Referee layout
16245 \end_layout
16246
16247 \begin_layout Standard
16248
16249 \change_deleted 564990737 1669742044
16250 For submission, the paper has to be formated in a special double-spacing
16251  layout.
16252  For this purpose, you have to give the option 
16253 \family typewriter
16254 referee
16255 \family default
16256  to the document class.
16257  This must be done using the custom class options field in the 
16258 \family sans
16259 Document\SpecialChar menuseparator
16260 Settings
16261 \family default
16262  dialog.
16263  Just enter the string 
16264 \family typewriter
16265 referee
16266 \family default
16267  there.
16268 \end_layout
16269
16270 \begin_layout Subsection
16271
16272 \change_deleted 564990737 1669742044
16273 The example paper
16274 \end_layout
16275
16276 \begin_layout Standard
16277
16278 \change_deleted 564990737 1669742044
16279 The 
16280 \family sans
16281 Examples
16282 \family default
16283  directory contains an example paper written with \SpecialChar LyX
16284 .
16285  It is the example paper from the original macro package, translated to
16286  \SpecialChar LyX
16287 .
16288  Use it for inspiration, and compare the original \SpecialChar LaTeX
16289  code with \SpecialChar LyX
16290  way of writing.
16291 \end_layout
16292
16293 \begin_layout Section
16294 Dinbrief
16295 \end_layout
16296
16297 \begin_layout Standard
16298 The document class 
16299 \family sans
16300 dinbrief
16301 \family default
16302  can be used to type letters according to German conventions.
16303  A template file is included in 
16304 \family typewriter
16305 .../lyx/share/templates
16306 \family default
16307  for you to use as a starting point.
16308 \end_layout
16309
16310 \begin_layout Section
16311 Elsevier Journals
16312 \end_layout
16313
16314 \begin_layout Standard
16315 See the \SpecialChar LyX
16316  template file 
16317 \family typewriter
16318 elsarticle.lyx
16319 \family default
16320 .
16321  It contains all infos you need.
16322 \end_layout
16323
16324 \begin_layout Section
16325
16326 \change_deleted 564990737 1669755802
16327 ijmpc and ijmpd
16328 \end_layout
16329
16330 \begin_layout Standard
16331
16332 \change_deleted 564990737 1669755802
16333 by 
16334 \noun on
16335 Panayotis Papasotiriou
16336 \end_layout
16337
16338 \begin_layout Subsection
16339
16340 \change_deleted 564990737 1669755802
16341 Overview
16342 \end_layout
16343
16344 \begin_layout Standard
16345
16346 \change_deleted 564990737 1669755802
16347 The ijmpc package is a set of macros that facilitates electronic manuscript
16348  submission to the 
16349 \emph on
16350 International Journal of Modern Physics C
16351 \emph default
16352 .
16353  Similarly, the ijmpd package is for creating manuscripts to be submitted
16354  to the 
16355 \emph on
16356 International Journal of Modern Physics D
16357 \emph default
16358 .
16359  Both journals are published by World Scientific.
16360  The corresponding document classes are named 
16361 \family typewriter
16362 ws-ijmpc.cls
16363 \family default
16364  and 
16365 \family typewriter
16366 ws-ijmpd.cls
16367 \family default
16368 , respectively.
16369  These files, together with instructions for the authors, can be downloaded
16370  from the sites 
16371 \begin_inset Flex URL
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375
16376 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
16377 \end_layout
16378
16379 \end_inset
16380
16381  and 
16382 \begin_inset Flex URL
16383 status collapsed
16384
16385 \begin_layout Plain Layout
16386
16387 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
16388 \end_layout
16389
16390 \end_inset
16391
16392 .
16393  Both packages are modified versions of the standard 
16394 \begin_inset Quotes eld
16395 \end_inset
16396
16397 article
16398 \begin_inset Quotes erd
16399 \end_inset
16400
16401  package, and they are almost (but not exactly) identical.
16402  Most of their features are supported by \SpecialChar LyX
16403 .
16404  I have used \SpecialChar LyX
16405  successfully to write articles submitted to both journals
16406  without any problem.
16407 \end_layout
16408
16409 \begin_layout Subsection
16410
16411 \change_deleted 564990737 1669755802
16412 Writing a paper
16413 \end_layout
16414
16415 \begin_layout Standard
16416
16417 \change_deleted 564990737 1669755802
16418 As usual, the easiest way to write a paper is to start with a template.
16419  Click on 
16420 \family sans
16421 File\SpecialChar menuseparator
16422 New from
16423 \family default
16424  
16425 \family sans
16426 Template
16427 \family default
16428 , then choose the 
16429 \family typewriter
16430 ijmpc.lyx
16431 \family default
16432  or 
16433 \family typewriter
16434 ijmpd.lyx
16435 \family default
16436  template.
16437  This will give an (almost) empty document that includes the most common
16438  fields found in a manuscript.
16439  Simply overwrite the existing text (including the brackets, 
16440 \family typewriter
16441 <>
16442 \family default
16443 ) with your text.
16444  You should keep in mind the following remarks.
16445 \end_layout
16446
16447 \begin_layout Enumerate
16448
16449 \change_deleted 564990737 1669755802
16450 \SpecialChar LyX
16451  won't let you change the font size and the page style of the document,
16452  because such modifications are not allowed by both packages.
16453 \end_layout
16454
16455 \begin_layout Enumerate
16456
16457 \change_deleted 564990737 1669755802
16458 The language of the document should not be changed.
16459  Before previewing your paper, be sure that the babel package is not used.
16460  To do this, click on 
16461 \begin_inset Info
16462 type  "menu"
16463 arg   "dialog-show document"
16464 \end_inset
16465
16466  
16467 \family sans
16468 \SpecialChar menuseparator
16469 Language
16470 \family default
16471 , and select 
16472 \begin_inset Quotes eld
16473 \end_inset
16474
16475 None
16476 \begin_inset Quotes erd
16477 \end_inset
16478
16479  as 
16480 \family sans
16481 Language Package
16482 \family default
16483 .
16484 \end_layout
16485
16486 \begin_layout Enumerate
16487
16488 \change_deleted 564990737 1669755802
16489 The 
16490 \begin_inset Quotes eld
16491 \end_inset
16492
16493 Keywords
16494 \begin_inset Quotes erd
16495 \end_inset
16496
16497  style must be used to define keywords.
16498 \end_layout
16499
16500 \begin_layout Enumerate
16501
16502 \change_deleted 564990737 1669755802
16503 The ijmpc package provides a style named 
16504 \begin_inset Quotes eld
16505 \end_inset
16506
16507 Classification Codes
16508 \begin_inset Quotes erd
16509 \end_inset
16510
16511 , which can be used to define classification codes, such as PACS numbers.
16512  Note that this facility is not supported by the ijmpd package.
16513 \end_layout
16514
16515 \begin_layout Enumerate
16516
16517 \change_deleted 564990737 1669755802
16518 Several new environments are available: 
16519 \begin_inset Quotes eld
16520 \end_inset
16521
16522 Definition
16523 \begin_inset Quotes erd
16524 \end_inset
16525
16526
16527 \begin_inset Quotes eld
16528 \end_inset
16529
16530 Step
16531 \begin_inset Quotes erd
16532 \end_inset
16533
16534
16535 \begin_inset Quotes eld
16536 \end_inset
16537
16538 Example
16539 \begin_inset Quotes erd
16540 \end_inset
16541
16542
16543 \begin_inset Quotes eld
16544 \end_inset
16545
16546 Remark
16547 \begin_inset Quotes erd
16548 \end_inset
16549
16550
16551 \begin_inset Quotes eld
16552 \end_inset
16553
16554 Notation
16555 \begin_inset Quotes erd
16556 \end_inset
16557
16558
16559 \begin_inset Quotes eld
16560 \end_inset
16561
16562 Theorem
16563 \begin_inset Quotes erd
16564 \end_inset
16565
16566
16567 \begin_inset Quotes eld
16568 \end_inset
16569
16570 Proof
16571 \begin_inset Quotes erd
16572 \end_inset
16573
16574
16575 \begin_inset Quotes eld
16576 \end_inset
16577
16578 Corollary
16579 \begin_inset Quotes erd
16580 \end_inset
16581
16582
16583 \begin_inset Quotes eld
16584 \end_inset
16585
16586 Lemma
16587 \begin_inset Quotes erd
16588 \end_inset
16589
16590
16591 \begin_inset Quotes eld
16592 \end_inset
16593
16594 Proposition
16595 \begin_inset Quotes erd
16596 \end_inset
16597
16598
16599 \begin_inset Quotes eld
16600 \end_inset
16601
16602 Prop
16603 \begin_inset Quotes erd
16604 \end_inset
16605
16606
16607 \begin_inset Quotes eld
16608 \end_inset
16609
16610 Question
16611 \begin_inset Quotes erd
16612 \end_inset
16613
16614
16615 \begin_inset Quotes eld
16616 \end_inset
16617
16618 Claim
16619 \begin_inset Quotes erd
16620 \end_inset
16621
16622 , and 
16623 \begin_inset Quotes eld
16624 \end_inset
16625
16626 Conjecture
16627 \begin_inset Quotes erd
16628 \end_inset
16629
16630 .
16631  Their use is more or less obvious.
16632  \SpecialChar LyX
16633  supports all these environments; it will use the proper label, text style,
16634  and numbering scheme for each of them.
16635 \end_layout
16636
16637 \begin_layout Enumerate
16638
16639 \change_deleted 564990737 1669755802
16640 Both packages use basic citations; the natbib package should not be used.
16641  In \SpecialChar LyX
16642 , citation references are shown as usual; in the output, citations are
16643  shown as superscripts.
16644  If you want to use a citation as normal text, you should use the 
16645 \family typewriter
16646 refcite
16647 \family default
16648  command, e.
16649 \begin_inset space \thinspace{}
16650 \end_inset
16651
16652 g.
16653 \begin_inset space \space{}
16654 \end_inset
16655
16656
16657 \begin_inset Quotes eld
16658 \end_inset
16659
16660 See Ref.
16661 \begin_inset space \space{}
16662 \end_inset
16663
16664
16665 \family typewriter
16666
16667 \backslash
16668 refcite{key}
16669 \family default
16670
16671 \begin_inset Quotes erd
16672 \end_inset
16673
16674 .
16675 \end_layout
16676
16677 \begin_layout Enumerate
16678
16679 \change_deleted 564990737 1669755802
16680 There is no 
16681 \begin_inset Quotes eld
16682 \end_inset
16683
16684 Acknowledgments
16685 \begin_inset Quotes erd
16686 \end_inset
16687
16688  section in both packages.
16689  To put acknowledgments, just use the 
16690 \begin_inset Quotes eld
16691 \end_inset
16692
16693 Section*
16694 \begin_inset Quotes erd
16695 \end_inset
16696
16697  environment.
16698 \end_layout
16699
16700 \begin_layout Enumerate
16701
16702 \change_deleted 564990737 1669755802
16703 Appendices may be added to the paper, 
16704 \emph on
16705 after
16706 \emph default
16707  the Acknowledgments and 
16708 \shape italic
16709 before
16710 \shape default
16711  the References.
16712  \SpecialChar LyX
16713  provides a special environment, called 
16714 \begin_inset Quotes eld
16715 \end_inset
16716
16717 Appendices Section
16718 \begin_inset Quotes erd
16719 \end_inset
16720
16721  which marks the beginning of the appendices.
16722  This environment should be left blank; it just sends a \SpecialChar LaTeX
16723  command, but nothing
16724  is really printed.
16725  In \SpecialChar LyX
16726 , the word 
16727 \begin_inset Quotes eld
16728 \end_inset
16729
16730 Appendix
16731 \begin_inset Quotes erd
16732 \end_inset
16733
16734  is printed with blue letters, as a signal that all sections after that
16735  point are appendices.
16736  To write an appendix, use the 
16737 \begin_inset Quotes eld
16738 \end_inset
16739
16740 Appendix
16741 \begin_inset Quotes erd
16742 \end_inset
16743
16744  environment.
16745  \SpecialChar LyX
16746  will number each appendix with capital letters, as required by both journals.
16747  Note that 
16748 \begin_inset Quotes eld
16749 \end_inset
16750
16751 Appendices Section
16752 \begin_inset Quotes erd
16753 \end_inset
16754
16755  
16756 \emph on
16757 must
16758 \emph default
16759  be present before the first appendix; if not, all appendices will be numbered
16760  as normal sections in the output.
16761 \end_layout
16762
16763 \begin_layout Enumerate
16764
16765 \change_deleted 564990737 1669755802
16766 The ijmpc and the ijmpd packages use the 
16767 \family typewriter
16768 tbl
16769 \family default
16770  command to implement table captions.
16771  As a result, a table created by \SpecialChar LyX
16772  is printed correctly, but its caption
16773  is ignored.
16774  However, you can use some \SpecialChar TeX
16775  code to overcome this problem, so that captions
16776  are printed as expected.
16777  To do so, create a float table as usual, remove the caption, and replace
16778  it with the \SpecialChar TeX
16779  code 
16780 \family typewriter
16781
16782 \backslash
16783 tbl{
16784 \emph on
16785 your table caption
16786 \emph default
16787 }{
16788 \family default
16789  (sic); you must also the \SpecialChar TeX
16790  code 
16791 \family typewriter
16792 }
16793 \family default
16794  immediately after the tabular material.
16795  Study the example table included in the template files to see how this
16796  trick is implemented.
16797  Alternatively, If you need table captions, you should implement the whole
16798  table float in a 
16799 \family typewriter
16800 .tex
16801 \family default
16802  file, then include this file to the \SpecialChar LyX
16803  document (
16804 \family sans
16805 Insert\SpecialChar menuseparator
16806 File\SpecialChar menuseparator
16807 Child
16808 \begin_inset space ~
16809 \end_inset
16810
16811 Document
16812 \family default
16813 ).
16814  Details on how to create a table float can be found in the files 
16815 \family typewriter
16816 ws-ijmpc.tex
16817 \family default
16818  and 
16819 \family typewriter
16820 ws-ijmpd.tex
16821 \family default
16822 , included in the corresponding packages.
16823 \end_layout
16824
16825 \begin_layout Subsection
16826
16827 \change_deleted 564990737 1669755802
16828 Preparing a paper for submission
16829 \end_layout
16830
16831 \begin_layout Standard
16832
16833 \change_deleted 564990737 1669755802
16834 Before you submit your paper you must export the \SpecialChar LyX
16835  document as a \SpecialChar LaTeX
16836  file (
16837 \family sans
16838 File\SpecialChar menuseparator
16839 Export\SpecialChar menuseparator
16840 \SpecialChar LaTeX
16841
16842 \family default
16843 )
16844 \begin_inset Foot
16845 status open
16846
16847 \begin_layout Plain Layout
16848 Actually you have the choice between \SpecialChar LaTeX
16849  (plain) and pdflatex.
16850  If you intend to use pdflatex to prepare the paper, you should use the
16851  pdflatex option so that included graphics are converted to PDF format,
16852  ready for use by pdflatex.
16853 \end_layout
16854
16855 \end_inset
16856
16857 , then make the following changes to the resulting 
16858 \family typewriter
16859 .tex
16860 \family default
16861  file.
16862 \end_layout
16863
16864 \begin_layout Enumerate
16865
16866 \change_deleted 564990737 1669755802
16867 Remove the comment lines before the 
16868 \family typewriter
16869
16870 \backslash
16871 documentclass
16872 \family default
16873  command.
16874 \end_layout
16875
16876 \begin_layout Enumerate
16877
16878 \change_deleted 564990737 1669755802
16879 Remove everything between (and including) the 
16880 \family typewriter
16881
16882 \backslash
16883 makeatletter
16884 \family default
16885  and 
16886 \family typewriter
16887
16888 \backslash
16889 makeatother
16890 \family default
16891  commands, except for any commands you specifically put into the \SpecialChar LaTeX
16892  preamble.
16893 \end_layout
16894
16895 \begin_layout Standard
16896
16897 \change_deleted 564990737 1669755802
16898 The modified 
16899 \family typewriter
16900 .tex
16901 \family default
16902  file should be saved and processed through \SpecialChar LaTeX
16903  as many times as necessary.
16904  You may also want to check the resulting 
16905 \family typewriter
16906 .dvi
16907 \family default
16908  document.
16909 \change_unchanged
16910
16911 \end_layout
16912
16913 \begin_layout Section
16914
16915 \change_deleted 564990737 1669801478
16916 iopart
16917 \end_layout
16918
16919 \begin_layout Standard
16920
16921 \change_deleted 564990737 1669801478
16922 by 
16923 \noun on
16924 Uwe Stöhr
16925 \end_layout
16926
16927 \begin_layout Subsection
16928
16929 \change_deleted 564990737 1669801478
16930 Overview
16931 \end_layout
16932
16933 \begin_layout Standard
16934
16935 \change_deleted 564990737 1669801478
16936 The iopart package provides a document class to create electronic manuscript
16937  submission to the journals published by the Institute of Physics.
16938  Instructions for the authors how to create a paper using the iopart class
16939  can be downloaded together with the iopart package from the site 
16940 \begin_inset Flex URL
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944
16945 ftp://ftp.iop.org/pub/journals/latex2e
16946 \end_layout
16947
16948 \end_inset
16949
16950 .
16951 \end_layout
16952
16953 \begin_layout Subsection
16954
16955 \change_deleted 564990737 1669801478
16956 Writing a paper
16957 \end_layout
16958
16959 \begin_layout Standard
16960
16961 \change_deleted 564990737 1669801478
16962 The easiest way to write a paper is to start with the template 
16963 \emph on
16964 IOP-article.lyx
16965 \emph default
16966  that is available via 
16967 \family sans
16968 File\SpecialChar menuseparator
16969 New From Template
16970 \family default
16971  The template explains how to use the special text environments.
16972  Here are the most important advices:
16973 \end_layout
16974
16975 \begin_layout Itemize
16976
16977 \change_deleted 564990737 1669801478
16978 To be able to compile your document to a PDF, PS, or DVI, ensure that the
16979  no AMS packages are loaded in 
16980 \family sans
16981 Document\SpecialChar menuseparator
16982 Settings\SpecialChar menuseparator
16983 Math Options
16984 \family default
16985 !
16986 \end_layout
16987
16988 \begin_layout Itemize
16989
16990 \change_deleted 564990737 1669801478
16991
16992 \size normal
16993 The title environment defines the kind of your paper.
16994  So use one of the following environments for the title:
16995 \end_layout
16996
16997 \begin_deeper
16998 \begin_layout Itemize
16999
17000 \change_deleted 564990737 1669801478
17001
17002 \family sans
17003 \size normal
17004 Title
17005 \family default
17006  for a Paper
17007 \end_layout
17008
17009 \begin_layout Itemize
17010
17011 \change_deleted 564990737 1669801478
17012
17013 \family sans
17014 \size normal
17015 Review
17016 \family default
17017  for a Review
17018 \end_layout
17019
17020 \begin_layout Itemize
17021
17022 \change_deleted 564990737 1669801478
17023
17024 \family sans
17025 \size normal
17026 Topical
17027 \family default
17028  for a Topical review
17029 \end_layout
17030
17031 \begin_layout Itemize
17032
17033 \change_deleted 564990737 1669801478
17034
17035 \family sans
17036 \size normal
17037 Comment
17038 \family default
17039  for a Comment
17040 \end_layout
17041
17042 \begin_layout Itemize
17043
17044 \change_deleted 564990737 1669801478
17045
17046 \family sans
17047 \size normal
17048 Note
17049 \family default
17050  for a Note
17051 \end_layout
17052
17053 \begin_layout Itemize
17054
17055 \change_deleted 564990737 1669801478
17056
17057 \family sans
17058 \size normal
17059 Paper
17060 \family default
17061  for a Paper (same as Title)
17062 \end_layout
17063
17064 \begin_layout Itemize
17065
17066 \change_deleted 564990737 1669801478
17067
17068 \family sans
17069 \size normal
17070 Prelim
17071 \family default
17072  for a Preliminary communication
17073 \end_layout
17074
17075 \begin_layout Itemize
17076
17077 \change_deleted 564990737 1669801478
17078
17079 \family sans
17080 \size normal
17081 Rapid
17082 \family default
17083  for a Rapid communication
17084 \end_layout
17085
17086 \begin_layout Itemize
17087
17088 \change_deleted 564990737 1669801478
17089
17090 \family sans
17091 \size normal
17092 Letter
17093 \family default
17094  for a Letter to the editor
17095 \end_layout
17096
17097 \end_deeper
17098 \begin_layout Itemize
17099
17100 \change_deleted 564990737 1669801478
17101
17102 \size normal
17103 All title environments except of 
17104 \family sans
17105 Letter
17106 \family default
17107  can have an optional short title.
17108 \end_layout
17109
17110 \begin_layout Itemize
17111
17112 \change_deleted 564990737 1669801478
17113 There is a general title environment 
17114 \family sans
17115 Article
17116 \family default
17117  which is not directly supported by \SpecialChar LyX
17118 .
17119  This can be used as \SpecialChar TeX
17120  code when your document doesn't fit into one of the
17121  other title types.
17122 \end_layout
17123
17124 \begin_layout Standard
17125
17126 \change_deleted 564990737 1669801478
17127 For more informations like hints for special table and formula formatting,
17128  look at the IOP author guidelines.
17129 \change_unchanged
17130
17131 \end_layout
17132
17133 \begin_layout Section
17134
17135 \change_deleted 564990737 1670317155
17136 Kluwer
17137 \end_layout
17138
17139 \begin_layout Standard
17140
17141 \change_deleted 564990737 1670317155
17142 by 
17143 \noun on
17144 Panayotis Papasotiriou
17145 \end_layout
17146
17147 \begin_layout Subsection
17148
17149 \change_deleted 564990737 1670317155
17150 Overview
17151 \end_layout
17152
17153 \begin_layout Standard
17154
17155 \change_deleted 564990737 1670317155
17156 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
17157  that facilitates electronic manuscript submission to the journals they
17158  publish.
17159  Most known of them (at least in my domain of interest) are 
17160 \emph on
17161 Astrophysics and Space Science
17162 \emph default
17163  and 
17164 \emph on
17165 Solar Physics
17166 \emph default
17167 , but there are many others (see a complete list at 
17168 \begin_inset Flex URL
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172
17173 http://www.wkap.nl/jrnllist.htm/JRNLHOME
17174 \end_layout
17175
17176 \end_inset
17177
17178 ).
17179  The Kluwer package may be downloaded from the site 
17180 \begin_inset Flex URL
17181 status collapsed
17182
17183 \begin_layout Plain Layout
17184
17185 http://www.wkap.nl/kaphtml.htm/STYLEFILES
17186 \end_layout
17187
17188 \end_inset
17189
17190 .
17191  A complete user guide is contained in that package (but it can also be
17192  downloaded separately).
17193 \end_layout
17194
17195 \begin_layout Standard
17196
17197 \change_deleted 564990737 1670317155
17198 \SpecialChar LyX
17199  supports many features of the package but not everything.
17200  However, the \SpecialChar TeX
17201  code needed is reduced to some 
17202 \begin_inset Quotes eld
17203 \end_inset
17204
17205 peculiar
17206 \begin_inset Quotes erd
17207 \end_inset
17208
17209  commands of the package (see
17210 \begin_inset space ~
17211 \end_inset
17212
17213
17214 \begin_inset CommandInset ref
17215 LatexCommand ref
17216 reference "subsec:kluwer_peculiarities"
17217
17218 \end_inset
17219
17220 ).
17221  I have recently used \SpecialChar LyX
17222  to write an article submitted to the 
17223 \emph on
17224 Astrophysics and Space Science
17225 \emph default
17226  without any problem.
17227 \end_layout
17228
17229 \begin_layout Subsection
17230
17231 \change_deleted 564990737 1670317155
17232 Writing a paper
17233 \end_layout
17234
17235 \begin_layout Standard
17236
17237 \change_deleted 564990737 1670317155
17238 The easiest way to write a paper is to start with the Kluwer template file.
17239  Click on 
17240 \family sans
17241 File\SpecialChar menuseparator
17242 New from
17243 \family default
17244  
17245 \family sans
17246 Template
17247 \family default
17248 , then choose the 
17249 \family typewriter
17250 kluwer.lyx
17251 \family default
17252  template.
17253  This will give an (almost) empty document that includes the most common
17254  fields found in a manuscript and a short description of their use.
17255  As in most templates, simply overwrite the existing text (including the
17256  brackets, 
17257 \family typewriter
17258 <>
17259 \family default
17260 ) with the correct information.
17261 \end_layout
17262
17263 \begin_layout Subsection
17264
17265 \change_deleted 564990737 1670317155
17266 Preparing a paper for submission
17267 \end_layout
17268
17269 \begin_layout Standard
17270
17271 \change_deleted 564990737 1670317155
17272 As in the AAS\SpecialChar TeX
17273  package, before you submit your paper to a journal you must
17274  
17275 \begin_inset Quotes eld
17276 \end_inset
17277
17278 postprocess
17279 \begin_inset Quotes erd
17280 \end_inset
17281
17282  it as follows.
17283 \end_layout
17284
17285 \begin_layout Enumerate
17286
17287 \change_deleted 564990737 1670317155
17288 Export your paper as a \SpecialChar LaTeX
17289  file.
17290  To do this, click on 
17291 \family sans
17292 File\SpecialChar menuseparator
17293 Export\SpecialChar menuseparator
17294 \SpecialChar LaTeX
17295
17296 \family default
17297 .
17298  
17299 \end_layout
17300
17301 \begin_layout Enumerate
17302
17303 \change_deleted 564990737 1670317155
17304 Edit the resulting 
17305 \family typewriter
17306 .tex
17307 \family default
17308  file with a text editor and make the following changes
17309 \end_layout
17310
17311 \begin_deeper
17312 \begin_layout Enumerate
17313
17314 \change_deleted 564990737 1670317155
17315 remove the comment lines before the 
17316 \family typewriter
17317
17318 \backslash
17319 documentclass
17320 \family default
17321  command,
17322 \end_layout
17323
17324 \begin_layout Enumerate
17325
17326 \change_deleted 564990737 1670317155
17327 remove everything between (and including) the 
17328 \family typewriter
17329
17330 \backslash
17331 makeatletter
17332 \family default
17333  and 
17334 \family typewriter
17335
17336 \backslash
17337 makeatother
17338 \family default
17339  commands, except for any commands you specifically put into the \SpecialChar LaTeX
17340  preamble.
17341 \end_layout
17342
17343 \begin_layout Standard
17344
17345 \change_deleted 564990737 1670317155
17346 Save the resulting 
17347 \family typewriter
17348 .tex
17349 \family default
17350  file.
17351 \end_layout
17352
17353 \end_deeper
17354 \begin_layout Enumerate
17355
17356 \change_deleted 564990737 1670317155
17357 Run the 
17358 \family typewriter
17359 .tex
17360 \family default
17361  file through \SpecialChar LaTeX
17362  as many times as necessary (usually up to three).
17363 \end_layout
17364
17365 \begin_layout Enumerate
17366
17367 \change_deleted 564990737 1670317155
17368 View the resulting 
17369 \family typewriter
17370 .dvi
17371 \family default
17372  document using, e.
17373 \begin_inset space \thinspace{}
17374 \end_inset
17375
17376 g.
17377 \begin_inset space \space{}
17378 \end_inset
17379
17380
17381 \family sans
17382 xdvi
17383 \family default
17384 , and check if everything is OK (it should, if you didn't make any mistake).
17385 \end_layout
17386
17387 \begin_layout Subsection
17388
17389 \change_deleted 564990737 1670317155
17390 \begin_inset Quotes eld
17391 \end_inset
17392
17393 Peculiarities
17394 \begin_inset Quotes erd
17395 \end_inset
17396
17397  of the Kluwer package
17398 \begin_inset CommandInset label
17399 LatexCommand label
17400 name "subsec:kluwer_peculiarities"
17401
17402 \end_inset
17403
17404
17405 \end_layout
17406
17407 \begin_layout Standard
17408
17409 \change_deleted 564990737 1670317155
17410 The Kluwer package has the following 
17411 \begin_inset Quotes eld
17412 \end_inset
17413
17414 peculiarities
17415 \begin_inset Quotes erd
17416 \end_inset
17417
17418 .
17419 \end_layout
17420
17421 \begin_layout Enumerate
17422
17423 \change_deleted 564990737 1670317155
17424 It is possible to write multiple articles in the same \SpecialChar LaTeX
17425  file
17426 \begin_inset Foot
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 I can't imagine any good reason to do this.
17431 \end_layout
17432
17433 \end_inset
17434
17435 .
17436  Each article must be included in the environment 
17437 \begin_inset Quotes eld
17438 \end_inset
17439
17440 article
17441 \begin_inset Quotes erd
17442 \end_inset
17443
17444 .
17445  Unfortunately, this environment cannot be omitted, even if you write just
17446  one article.
17447  Therefore, each article starts with the command 
17448 \family typewriter
17449
17450 \backslash
17451 begin{article}
17452 \family default
17453  and, obviously, ends with the command 
17454 \family typewriter
17455
17456 \backslash
17457 end{article}
17458 \family default
17459 .
17460  Although this can be implemented in \SpecialChar LyX
17461 , I didn't included it, since it looks
17462  ugly and can confuse the novice user.
17463  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
17464  code (the
17465  well-known 
17466 \begin_inset Quotes eld
17467 \end_inset
17468
17469 \SpecialChar TeX
17470  code
17471 \begin_inset Quotes erd
17472 \end_inset
17473
17474 ).
17475 \end_layout
17476
17477 \begin_layout Enumerate
17478
17479 \change_deleted 564990737 1670317155
17480 Information given at the beginning of the article (i.
17481 \begin_inset space \thinspace{}
17482 \end_inset
17483
17484 e.
17485 \begin_inset space \space{}
17486 \end_inset
17487
17488 title, subtitle, author, institution, running title, running author, abstract
17489  and keywords) must be included in an environment called 
17490 \begin_inset Quotes eld
17491 \end_inset
17492
17493 opening
17494 \begin_inset Quotes erd
17495 \end_inset
17496
17497 .
17498  This is not implemented in \SpecialChar LyX
17499 , so you must enter title, subtitle etc.
17500 \begin_inset space ~
17501 \end_inset
17502
17503 between two \SpecialChar TeX
17504  code lines (
17505 \family typewriter
17506
17507 \backslash
17508 begin{opening}
17509 \family default
17510  and 
17511 \family typewriter
17512
17513 \backslash
17514 end{opening}
17515 \family default
17516 ).
17517 \end_layout
17518
17519 \begin_layout Enumerate
17520
17521 \change_deleted 564990737 1670317155
17522 According to the user manual, the label of each bibliography item must be
17523  written as 
17524 \family typewriter
17525
17526 \backslash
17527 protect
17528 \backslash
17529 citeauthoryear{
17530 \family default
17531 \emph on
17532 author(s)
17533 \family typewriter
17534 \emph default
17535 }{
17536 \family default
17537 \emph on
17538 year
17539 \family typewriter
17540 \emph default
17541 }
17542 \family default
17543 .
17544 \end_layout
17545
17546 \begin_layout Standard
17547
17548 \change_deleted 564990737 1670317155
17549 The 
17550 \family typewriter
17551 kluwer.lyx
17552 \family default
17553  template takes care of all these 
17554 \begin_inset Quotes eld
17555 \end_inset
17556
17557 peculiarities
17558 \begin_inset Quotes erd
17559 \end_inset
17560
17561 .
17562  If you start a new paper using this template you don't need to do anything
17563  special.
17564  Just 
17565 \end_layout
17566
17567 \begin_layout Enumerate
17568
17569 \change_deleted 564990737 1670317155
17570 don't delete the \SpecialChar TeX
17571  code included in the template, and
17572 \end_layout
17573
17574 \begin_layout Enumerate
17575
17576 \change_deleted 564990737 1670317155
17577 copy the example bibliography item included in the template and modify it
17578  as necessary to enter new bibliography items.
17579 \end_layout
17580
17581 \begin_layout Section
17582 Article (mwart), book (mwbk) and report (mwrep)
17583 \begin_inset Argument status
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 The 
17588 \family typewriter
17589 mw
17590 \family default
17591  Classes
17592 \end_layout
17593
17594 \end_inset
17595
17596
17597 \end_layout
17598
17599 \begin_layout Standard
17600 by 
17601 \noun on
17602 Tomasz Luczak
17603 \end_layout
17604
17605 \begin_layout Standard
17606 The \SpecialChar LyX
17607  document classes 
17608 \emph on
17609 article (mwart)
17610 \emph default
17611
17612 \emph on
17613 report (mwrep)
17614 \emph default
17615  and 
17616 \emph on
17617 book
17618 \emph default
17619  
17620 \emph on
17621 (mwbk)
17622 \emph default
17623  correspond to the \SpecialChar LaTeX
17624  document classes 
17625 \family typewriter
17626 mwart.cls
17627 \family default
17628
17629 \family typewriter
17630 mwrep.cls
17631 \family default
17632  and 
17633 \family typewriter
17634 mwbk.cls
17635 \family default
17636 , resp.
17637  They are replacements for the standard document classes 
17638 \family typewriter
17639 article.cls
17640 \family default
17641
17642 \family typewriter
17643 report.cls
17644 \family default
17645  and 
17646 \family typewriter
17647 book.cls
17648 \family default
17649 , resp., and fit better to Polish typography conventions in a number of points.
17650  
17651 \end_layout
17652
17653 \begin_layout Standard
17654 Basic differences:
17655 \end_layout
17656
17657 \begin_layout Itemize
17658 Unnumbered titles (with star, e.
17659 \begin_inset space \thinspace{}
17660 \end_inset
17661
17662 g.
17663 \begin_inset space \space{}
17664 \end_inset
17665
17666
17667 \family sans
17668 Section*
17669 \family default
17670 ) are added into table of contents,
17671 \end_layout
17672
17673 \begin_layout Itemize
17674 Additional page styles:
17675 \end_layout
17676
17677 \begin_deeper
17678 \begin_layout Description
17679 uheadings header with separated lines,
17680 \end_layout
17681
17682 \begin_layout Description
17683 myheadings custom header, contents headers via commands: 
17684 \family typewriter
17685
17686 \backslash
17687 markright
17688 \family default
17689  and 
17690 \family typewriter
17691
17692 \backslash
17693 markboth
17694 \family default
17695 ,
17696 \end_layout
17697
17698 \begin_layout Description
17699 myuheadings custom header with separated lines,
17700 \end_layout
17701
17702 \begin_layout Description
17703 outer page number is placed on outer side of page
17704 \end_layout
17705
17706 \end_deeper
17707 \begin_layout Itemize
17708 Options 
17709 \end_layout
17710
17711 \begin_deeper
17712 \begin_layout Description
17713 rmheadings serif titles — default,
17714 \end_layout
17715
17716 \begin_layout Description
17717 sfheadings sansserif titles,
17718 \end_layout
17719
17720 \begin_layout Description
17721 authortitle on title page first placed is author next title — default,
17722 \end_layout
17723
17724 \begin_layout Description
17725 titleauthor on title page first placed is title next author,
17726 \end_layout
17727
17728 \begin_layout Description
17729 withmarginpar reserve place on page for margins.
17730 \end_layout
17731
17732 \end_deeper
17733 \begin_layout Section
17734 Paper
17735 \end_layout
17736
17737 \begin_layout Standard
17738 The document class 
17739 \family sans
17740 paper
17741 \family default
17742  provides an alternative to the standard 
17743 \family sans
17744 article
17745 \family default
17746  class.
17747  It provides similar functionality, but you might prefer this layout with
17748  sans serif sections, headings, and more.
17749 \end_layout
17750
17751 \begin_layout Section
17752 Rev\SpecialChar TeX
17753 4
17754 \end_layout
17755
17756 \begin_layout Standard
17757 by 
17758 \noun on
17759 Amir Karger
17760 \end_layout
17761
17762 \begin_layout Standard
17763 \begin_inset VSpace bigskip
17764 \end_inset
17765
17766
17767 \end_layout
17768
17769 \begin_layout Standard
17770 \noindent
17771 The 
17772 \family sans
17773 Revtex
17774 \begin_inset space ~
17775 \end_inset
17776
17777 4
17778 \family default
17779  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
17780  4.0 (the 
17781 \begin_inset Formula $\beta$
17782 \end_inset
17783
17784  release of May, 1999) class.
17785 \end_layout
17786
17787 \begin_layout Standard
17788 \SpecialChar LyX
17789  has a 
17790 \family sans
17791 Revtex
17792 \family default
17793  textclass, which works with Rev\SpecialChar TeX
17794  3.1.
17795  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
17796  2.09.
17797  That means that it doesn't interact very well with \SpecialChar LyX
17798 , which requires \SpecialChar LaTeX2e
17799 , although
17800  it has been kludged to work.
17801  Since Rev\SpecialChar TeX
17802  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
17803 , \SpecialChar LyX
17804  with the
17805  
17806 \family sans
17807 Rev\SpecialChar TeX
17808
17809 \begin_inset space ~
17810 \end_inset
17811
17812 4
17813 \family default
17814  textclass should also be pretty easy to use.
17815 \end_layout
17816
17817 \begin_layout Standard
17818 These documents are supposed to be used in 
17819 \emph on
17820 addition
17821 \emph default
17822  to the Rev\SpecialChar TeX
17823  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
17824  macros,
17825  and assume you'll know what to put in the preamble if necessary.
17826 \end_layout
17827
17828 \begin_layout Subsection
17829 Installation
17830 \end_layout
17831
17832 \begin_layout Standard
17833 All you need to do is install Rev\SpecialChar TeX
17834  4, as described in the package's README
17835  file.
17836  The package can be found at The Rev\SpecialChar TeX
17837  4 Web Site 
17838 \begin_inset Flex URL
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842
17843 http://publish.aps.org/revtex4/
17844 \end_layout
17845
17846 \end_inset
17847
17848 .
17849  Install it somewhere that \SpecialChar LaTeX
17850  can see it.
17851  Test it by trying to \SpecialChar LaTeX
17852  a short Rev\SpecialChar TeX
17853  4 document in some random directory (i.
17854 \begin_inset space \thinspace{}
17855 \end_inset
17856
17857 e.
17858 \begin_inset space \space{}
17859 \end_inset
17860
17861 not the directory where you installed the class file.) Then, if you reconfigure
17862  \SpecialChar LyX
17863 , it will find the class file and let you use the Rev\SpecialChar TeX
17864 4 textclass.
17865 \end_layout
17866
17867 \begin_layout Standard
17868 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
17869  4 document
17870  using 
17871 \family typewriter
17872 tex2lyx
17873 \family default
17874 , or to use the 
17875 \family sans
17876 Revtex
17877 \begin_inset space ~
17878 \end_inset
17879
17880 4
17881 \family default
17882  template, found in the templates directory.
17883 \end_layout
17884
17885 \begin_layout Subsection
17886 Preamble Matter
17887 \end_layout
17888
17889 \begin_layout Standard
17890 Optional arguments to 
17891 \family typewriter
17892
17893 \backslash
17894 documentclass
17895 \family default
17896 , like 
17897 \begin_inset Quotes eld
17898 \end_inset
17899
17900 preprint
17901 \begin_inset Quotes erd
17902 \end_inset
17903
17904  and 
17905 \begin_inset Quotes eld
17906 \end_inset
17907
17908 aps
17909 \begin_inset Quotes erd
17910 \end_inset
17911
17912 , go in the 
17913 \family sans
17914 Extra
17915 \begin_inset space ~
17916 \end_inset
17917
17918 Options
17919 \family default
17920  field in the 
17921 \family sans
17922 Document
17923 \begin_inset space ~
17924 \end_inset
17925
17926 Layout
17927 \family default
17928  dialog, as usual.
17929  Remember that in Rev\SpecialChar TeX
17930 , at least one optional argument is required! 
17931 \end_layout
17932
17933 \begin_layout Standard
17934 Other preamble matter, like 
17935 \family typewriter
17936
17937 \backslash
17938 draft
17939 \family default
17940  etc.
17941 \begin_inset space ~
17942 \end_inset
17943
17944 goes in the 
17945 \family sans
17946 \SpecialChar LaTeX
17947
17948 \begin_inset space ~
17949 \end_inset
17950
17951 Preamble
17952 \family default
17953  dialog, also as usual.
17954 \end_layout
17955
17956 \begin_layout Subsection
17957 Layouts
17958 \end_layout
17959
17960 \begin_layout Standard
17961 The layouts basically correspond to the commands in Rev\SpecialChar TeX
17962 4.0.
17963  For example, the Email layout corresponds to 
17964 \family typewriter
17965
17966 \backslash
17967 email{}
17968 \family default
17969 .
17970  Note that (at least as of Rev\SpecialChar TeX
17971  4.0 Beta), the 
17972 \family sans
17973 Address
17974 \family default
17975  and 
17976 \family sans
17977 Affiliation
17978 \family default
17979  layouts are exactly equivalent, so you shouldn't need to use both.
17980 \begin_inset Foot
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 In case you're curious, both were included so that 
17985 \family typewriter
17986 tex2lyx
17987 \family default
17988  would be able to translate both 
17989 \family typewriter
17990
17991 \backslash
17992 address
17993 \family default
17994  and 
17995 \family typewriter
17996
17997 \backslash
17998 affiliation
17999 \family default
18000 .
18001 \end_layout
18002
18003 \end_inset
18004
18005
18006 \end_layout
18007
18008 \begin_layout Subsection
18009 Important Notes
18010 \end_layout
18011
18012 \begin_layout Standard
18013 There are a couple of important unique aspects of Rev\SpecialChar TeX
18014  4 which might cause
18015  bugs that will be even more confusing in \SpecialChar LyX
18016 .
18017 \end_layout
18018
18019 \begin_layout Standard
18020 In Rev\SpecialChar TeX
18021 , the 
18022 \family typewriter
18023
18024 \backslash
18025 thanks
18026 \family default
18027  command goes 
18028 \emph on
18029 outside
18030 \emph default
18031  the 
18032 \family typewriter
18033
18034 \backslash
18035 author
18036 \family default
18037  command.
18038  The \SpecialChar LyX
18039  equivalent is that there is a separate Thanks layout.
18040  Do 
18041 \emph on
18042 not
18043 \emph default
18044  write footnotes in the 
18045 \family sans
18046 Author
18047 \family default
18048  layout, or weird things may happen.
18049  See the Rev\SpecialChar TeX
18050  4 documentation for more details.
18051 \end_layout
18052
18053 \begin_layout Standard
18054 Also, the 
18055 \family sans
18056 Author
18057 \begin_inset space ~
18058 \end_inset
18059
18060 Email
18061 \family default
18062
18063 \family sans
18064 Author
18065 \begin_inset space ~
18066 \end_inset
18067
18068 URL
18069 \family default
18070 , and 
18071 \family sans
18072 Thanks
18073 \family default
18074  layouts must be placed 
18075 \emph on
18076 in between
18077 \emph default
18078  the 
18079 \family sans
18080 Author
18081 \family default
18082  layout and the corresponding 
18083 \family sans
18084 Address
18085 \family default
18086  (or equivalent 
18087 \family sans
18088 Affiliation
18089 \family default
18090 ) layout.
18091  If you put the 
18092 \family sans
18093 Thanks
18094 \family default
18095  after the 
18096 \family sans
18097 Address
18098 \family default
18099 , the \SpecialChar LaTeX
18100  won't compile.
18101 \end_layout
18102
18103 \begin_layout Section
18104 Springer Journals (
18105 \family sans
18106 svjour
18107 \family default
18108 )
18109 \end_layout
18110
18111 \begin_layout Standard
18112 by 
18113 \noun on
18114 Martin Vermeer
18115 \end_layout
18116
18117 \begin_layout Subsection
18118 Description
18119 \end_layout
18120
18121 \begin_layout Standard
18122 These are the layout files for some of the journal formats used by Springer
18123  Verlag and listed on 
18124 \begin_inset Flex URL
18125 status collapsed
18126
18127 \begin_layout Plain Layout
18128
18129 http://www.springer.de/author/tex/help-journals.html
18130 \end_layout
18131
18132 \end_inset
18133
18134 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
18135  now!).
18136  It is a modular system: the things common to all journals are implemented
18137  in 
18138 \family typewriter
18139 svjour.inc
18140 \family default
18141 , which journal-specific layout files (such as, e.
18142 \begin_inset space \thinspace{}
18143 \end_inset
18144
18145 g.
18146 \begin_inset space \space{}
18147 \end_inset
18148
18149
18150 \family typewriter
18151 svjog.layout
18152 \family default
18153  for Journal of Geodesy) can include.
18154 \end_layout
18155
18156 \begin_layout Standard
18157 This means that implementing support for any other Springer journal on this
18158  list is as simple as writing your own 
18159 \family typewriter
18160 sv
18161 \family default
18162 <myjournal>
18163 \family typewriter
18164 .layout
18165 \family default
18166  file following the outline given in 
18167 \family typewriter
18168 svjog.layout
18169 \family default
18170 .
18171  
18172 \end_layout
18173
18174 \begin_layout Standard
18175 It is reasonably well tested only for the Journal of Geodesy.
18176  
18177 \family typewriter
18178 svjour
18179 \family default
18180  and 
18181 \family typewriter
18182 svjog
18183 \family default
18184  come with the standard \SpecialChar LyX
18185  distribution.
18186  Install the relevant class file (downloaded from Springer) in a proper
18187  directory, reconfigure \SpecialChar LaTeX
18188  (in the te\SpecialChar TeX
18189  case by running 
18190 \family typewriter
18191 texhash
18192 \family default
18193 , as root if necessary — doesn't \SpecialChar LyX
18194  take care of this?), reconfigure \SpecialChar LyX
18195  and
18196  it should work.
18197 \end_layout
18198
18199 \begin_layout Subsection
18200 New styles
18201 \end_layout
18202
18203 \begin_layout Standard
18204 A large number of theorem-like styles — 
18205 \family sans
18206 Claim, Conjecture,
18207 \family default
18208  
18209 \family sans
18210 \SpecialChar ldots
18211 Theorem
18212 \family default
18213 .
18214 \end_layout
18215
18216 \begin_layout Standard
18217
18218 \family sans
18219 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
18220 _Title, Author_Running, Institute,
18221  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
18222 \family default
18223 .
18224  See the Springer class file documentation for details.
18225 \end_layout
18226
18227 \begin_layout Subsection
18228 Supported journals
18229 \end_layout
18230
18231 \begin_layout Itemize
18232
18233 \emph on
18234 Journal of Geodesy
18235 \emph default
18236
18237 \family typewriter
18238 svjog.layout
18239 \family default
18240  — Martin Vermeer
18241 \end_layout
18242
18243 \begin_layout Itemize
18244
18245 \emph on
18246 Probability Theory and Related Fields
18247 \emph default
18248
18249 \family typewriter
18250 svprobth.layout
18251 \family default
18252  — Jean-Marc Lasgouttes
18253 \end_layout
18254
18255 \begin_layout Standard
18256 Add your own, it isn't so hard!
18257 \end_layout
18258
18259 \begin_layout Subsection
18260 Credits
18261 \end_layout
18262
18263 \begin_layout Standard
18264 These files are partly based on the older 
18265 \family typewriter
18266 ejour2.layout
18267 \family default
18268 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
18269  2.09 style
18270  file from Springer.
18271  All this, and the 
18272 \family typewriter
18273 ejour2
18274 \family default
18275  layout, are now defunct.
18276  Jean-Marc Lasgouttes helped out big in making me find my way around the
18277  \SpecialChar LyX
18278  layout file mechanism.
18279 \end_layout
18280
18281 \begin_layout Subsection
18282 Bugs
18283 \end_layout
18284
18285 \begin_layout Standard
18286 Probably.
18287  But probably less than in the old hacked-\SpecialChar LaTeX
18288  
18289 \family typewriter
18290 ejour2
18291 \family default
18292 .
18293 \end_layout
18294
18295 \begin_layout Section
18296 Slides [aka 
18297 \noun on
18298 Sli\SpecialChar TeX
18299
18300 \noun default
18301 ]
18302 \begin_inset CommandInset label
18303 LatexCommand label
18304 name "sec:slitex"
18305
18306 \end_inset
18307
18308
18309 \end_layout
18310
18311 \begin_layout Standard
18312 by 
18313 \noun on
18314 John Weiss
18315 \noun default
18316  
18317 \end_layout
18318
18319 \begin_layout Subsection
18320 Introduction
18321 \end_layout
18322
18323 \begin_layout Standard
18324 This section describes how to use \SpecialChar LyX
18325  to make slides for overhead projectors.
18326  There are two document classes that can do this: the default slides class
18327  and the 
18328 \family sans
18329 Foil\SpecialChar TeX
18330
18331 \family default
18332  slides class.
18333  This section documents the former.
18334 \end_layout
18335
18336 \begin_layout Standard
18337 I'm going to say this again, nice and clear, so that there's no misunderstanding
18338 :
18339 \end_layout
18340
18341 \begin_layout Standard
18342 \begin_inset VSpace bigskip
18343 \end_inset
18344
18345
18346 \end_layout
18347
18348 \begin_layout Standard
18349 \align center
18350
18351 \size large
18352 This section documents the class 
18353 \begin_inset Quotes eld
18354 \end_inset
18355
18356
18357 \family sans
18358 slides (default)
18359 \family default
18360
18361 \begin_inset Quotes erd
18362 \end_inset
18363
18364  
18365 \emph on
18366 only.
18367 \end_layout
18368
18369 \begin_layout Standard
18370 \begin_inset VSpace bigskip
18371 \end_inset
18372
18373
18374 \end_layout
18375
18376 \begin_layout Standard
18377 If you're looking for the documentation for 
18378 \begin_inset Quotes eld
18379 \end_inset
18380
18381
18382 \family sans
18383 slides (Foil\SpecialChar TeX
18384 )
18385 \family default
18386
18387 \begin_inset Quotes erd
18388 \end_inset
18389
18390 , check out section
18391 \begin_inset space ~
18392 \end_inset
18393
18394
18395 \begin_inset CommandInset ref
18396 LatexCommand ref
18397 reference "sec:foiltex"
18398
18399 \end_inset
18400
18401 .
18402  The 
18403 \family sans
18404 foils
18405 \family default
18406  class [
18407 \begin_inset Quotes eld
18408 \end_inset
18409
18410
18411 \family sans
18412 slides (Foil\SpecialChar TeX
18413 )
18414 \family default
18415
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419 ] is actually somewhat better than the default 
18420 \family sans
18421 slides
18422 \family default
18423  class,
18424 \begin_inset Foot
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 \SpecialChar ldots
18429 or so I've been told repeatedly by its advocates.
18430  Having never used it, I have no idea if this claim is true or not.
18431 \end_layout
18432
18433 \end_inset
18434
18435  which this section documents.
18436 \end_layout
18437
18438 \begin_layout Standard
18439 This class is the \SpecialChar LaTeX2e
18440  improvement of the old 
18441 \noun on
18442 Sli\SpecialChar TeX
18443
18444 \noun default
18445  package.
18446  Every \SpecialChar LaTeX2e
18447  distribution includes this class [which I'll just refer to as 
18448 \begin_inset Quotes eld
18449 \end_inset
18450
18451
18452 \family sans
18453 slides
18454 \family default
18455
18456 \begin_inset Quotes erd
18457 \end_inset
18458
18459  from now on], so you're bound to have it.
18460  As I noted earlier, there are other classes, such as 
18461 \family sans
18462 foils
18463 \family default
18464 , which also produce slides for overhead projectors and do a better job
18465  at it.
18466  However, there are some things which 
18467 \family sans
18468 slides
18469 \family default
18470  can do which the others can't, such as generate overlays.
18471  Read on to learn more!
18472 \end_layout
18473
18474 \begin_layout Subsection
18475 Getting Started
18476 \begin_inset CommandInset label
18477 LatexCommand label
18478 name "sec:slidesetup"
18479
18480 \end_inset
18481
18482
18483 \end_layout
18484
18485 \begin_layout Standard
18486 Obviously, to use this document class, you need to select 
18487 \begin_inset Quotes eld
18488 \end_inset
18489
18490
18491 \family sans
18492 slides (default)
18493 \family default
18494
18495 \begin_inset Quotes erd
18496 \end_inset
18497
18498  from the class list in the 
18499 \family sans
18500 Document\SpecialChar menuseparator
18501 Settings
18502 \family default
18503  dialog.
18504  There are some other special things you should know about this class:
18505 \end_layout
18506
18507 \begin_layout Itemize
18508 Don't bother changing the options 
18509 \family sans
18510 Sides and Columns
18511 \family default
18512 .
18513  They're not supported by the 
18514 \family sans
18515 slides
18516 \family default
18517  class, anyways.
18518 \end_layout
18519
18520 \begin_layout Itemize
18521 The option 
18522 \family sans
18523 Page
18524 \begin_inset space ~
18525 \end_inset
18526
18527 style
18528 \family default
18529  behaves a bit differently for this class.
18530  The possible choices and what they do are as follows:
18531 \end_layout
18532
18533 \begin_deeper
18534 \begin_layout Description
18535
18536 \family sans
18537 plain
18538 \family default
18539  The final output contains page numbers in the lower right corner.
18540 \end_layout
18541
18542 \begin_layout Description
18543
18544 \family sans
18545 headings
18546 \family default
18547  Like 
18548 \family sans
18549 plain
18550 \family default
18551 , but also prints out any time markers you've put in.
18552  This is the default.
18553 \end_layout
18554
18555 \begin_layout Description
18556
18557 \family sans
18558 empty
18559 \family default
18560  The final output contains no page numbers, time markers, or alignment markers.
18561 \end_layout
18562
18563 \end_deeper
18564 \begin_layout Itemize
18565 The 
18566 \family sans
18567 slides
18568 \family default
18569  class has an extra option: 
18570 \family typewriter
18571 clock
18572 \family default
18573 .
18574  To use it, put 
18575 \begin_inset Quotes eld
18576 \end_inset
18577
18578
18579 \family typewriter
18580 clock
18581 \family default
18582
18583 \begin_inset Quotes erd
18584 \end_inset
18585
18586  in the extra class options.
18587 \end_layout
18588
18589 \begin_deeper
18590 \begin_layout Standard
18591 Using this options allows you to add time markers to 
18592 \family sans
18593 Note
18594 \family default
18595 s.
18596  See section
18597 \begin_inset space ~
18598 \end_inset
18599
18600
18601 \begin_inset CommandInset ref
18602 LatexCommand ref
18603 reference "sec:slideNote"
18604
18605 \end_inset
18606
18607  for more details.
18608 \end_layout
18609
18610 \end_deeper
18611 \begin_layout Standard
18612 You can also use the template file 
18613 \begin_inset Quotes eld
18614 \end_inset
18615
18616
18617 \family typewriter
18618 slides.lyx
18619 \family default
18620
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624  to automatically set up a document to use the 
18625 \family sans
18626 slides
18627 \family default
18628  class [using 
18629 \family sans
18630 File\SpecialChar menuseparator
18631 New
18632 \begin_inset space ~
18633 \end_inset
18634
18635 from
18636 \begin_inset space ~
18637 \end_inset
18638
18639 Template
18640 \family default
18641  to open your new document].
18642  The template file also contains some examples of the special paragraph
18643  environments used by this class.
18644  I'll describe those next.
18645 \end_layout
18646
18647 \begin_layout Subsection
18648 Paragraph Environments
18649 \end_layout
18650
18651 \begin_layout Subsubsection
18652 Supported Environments
18653 \end_layout
18654
18655 \begin_layout Standard
18656 The first thing you'll notice when you start up a new 
18657 \family sans
18658 slides
18659 \family default
18660  document is the font size and type: it's the equivalent of the size 
18661 \begin_inset Quotes eld
18662 \end_inset
18663
18664
18665 \family sans
18666 Largest
18667 \family default
18668
18669 \begin_inset Quotes erd
18670 \end_inset
18671
18672  in the 
18673 \family sans
18674 Sans
18675 \begin_inset space ~
18676 \end_inset
18677
18678 Serif
18679 \family default
18680  font.
18681  This is also what's used in the output.
18682  Think of this as a 
18683 \begin_inset Quotes eld
18684 \end_inset
18685
18686 visual cue
18687 \begin_inset Quotes erd
18688 \end_inset
18689
18690  to remind you that this is a slide.
18691  Your final slides will use a larger font; ergo, you'll have less space.
18692  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18693 \end_layout
18694
18695 \begin_layout Standard
18696 The next thing that becomes obvious is the changes to the paragraph environment
18697  pull-down box [at the far-left end of the toolbar].
18698  Most of the paragraph environments you're used to seeing are missing.
18699  There are also five new ones.
18700  That's because the 
18701 \family sans
18702 slides
18703 \family default
18704  class itself only supports certain paragraph environments:
18705 \end_layout
18706
18707 \begin_layout Itemize
18708
18709 \family sans
18710 Standard
18711 \end_layout
18712
18713 \begin_layout Itemize
18714
18715 \family sans
18716 Itemize
18717 \end_layout
18718
18719 \begin_layout Itemize
18720
18721 \family sans
18722 Enumerate
18723 \end_layout
18724
18725 \begin_layout Itemize
18726
18727 \family sans
18728 Description
18729 \end_layout
18730
18731 \begin_layout Itemize
18732
18733 \family sans
18734 List
18735 \end_layout
18736
18737 \begin_layout Itemize
18738
18739 \family sans
18740 Quotation
18741 \end_layout
18742
18743 \begin_layout Itemize
18744
18745 \family sans
18746 Quote
18747 \end_layout
18748
18749 \begin_layout Itemize
18750
18751 \family sans
18752 Verse
18753 \end_layout
18754
18755 \begin_layout Itemize
18756
18757 \family sans
18758 Caption
18759 \end_layout
18760
18761 \begin_layout Itemize
18762
18763 \family sans
18764 \SpecialChar LyX
18765 -Code
18766 \end_layout
18767
18768 \begin_layout Standard
18769 All of the other standard environments, including the section-heading environmen
18770 ts, aren't used in the 
18771 \family sans
18772 slides
18773 \family default
18774  class.
18775 \end_layout
18776
18777 \begin_layout Standard
18778 On the other hand, you'll notice the following new environments:
18779 \end_layout
18780
18781 \begin_layout Itemize
18782
18783 \family sans
18784 Slide
18785 \end_layout
18786
18787 \begin_layout Itemize
18788
18789 \family sans
18790 Overlay
18791 \end_layout
18792
18793 \begin_layout Itemize
18794
18795 \family sans
18796 Note
18797 \end_layout
18798
18799 \begin_layout Itemize
18800
18801 \family sans
18802 InvisibleText
18803 \end_layout
18804
18805 \begin_layout Itemize
18806
18807 \family sans
18808 VisibleText
18809 \end_layout
18810
18811 \begin_layout Standard
18812 These five are kind of quirky, due to a 
18813 \begin_inset Quotes eld
18814 \end_inset
18815
18816 feature
18817 \begin_inset Quotes erd
18818 \end_inset
18819
18820  in \SpecialChar LyX
18821 .
18822  You see, \SpecialChar LyX
18823  doesn't permit you to nest any other paragraph environment into
18824  an empty environment.
18825  Now, that's fine and dandy, but it means that you wouldn't be able to start
18826  a slide with anything except plain text.
18827  To deal with this, I've performed a little 
18828 \begin_inset Quotes eld
18829 \end_inset
18830
18831 \SpecialChar LaTeX
18832  magic.
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836  
18837 \end_layout
18838
18839 \begin_layout Subsubsection
18840 Quirks of the New Environments
18841 \begin_inset CommandInset label
18842 LatexCommand label
18843 name "sec:slideQuirk"
18844
18845 \end_inset
18846
18847
18848 \end_layout
18849
18850 \begin_layout Standard
18851 All five of the new paragraph environments are somewhat quirky due to inherent
18852  limitiations in the current version of \SpecialChar LyX
18853 .
18854  As I just mentioned, \SpecialChar LyX
18855  forbids environments that begin with another environment.
18856  To get around this, the 
18857 \family sans
18858 Slide
18859 \family default
18860  environment isn't a paragraph environment as described in the 
18861 \emph on
18862 User's Guide
18863 \emph default
18864 .
18865  
18866 \end_layout
18867
18868 \begin_layout Standard
18869 You should consider 
18870 \family sans
18871 Slide
18872 \family default
18873
18874 \family sans
18875 Overlay
18876 \family default
18877 , and 
18878 \family sans
18879 Note
18880 \family default
18881  to be 
18882 \begin_inset Quotes eld
18883 \end_inset
18884
18885 pseudo-environments.
18886 \begin_inset Quotes erd
18887 \end_inset
18888
18889  They look like a section heading or a 
18890 \begin_inset Quotes eld
18891 \end_inset
18892
18893
18894 \family sans
18895 Caption
18896 \family default
18897 ,
18898 \begin_inset Quotes erd
18899 \end_inset
18900
18901  but really begin a [and, if necessary, end the previous] paragraph environment.
18902  Likewise, treat 
18903 \family sans
18904 InvisibleText
18905 \family default
18906  and 
18907 \family sans
18908 VisibleText
18909 \family default
18910  as 
18911 \begin_inset Quotes eld
18912 \end_inset
18913
18914 pseudo-commands.
18915 \begin_inset Quotes erd
18916 \end_inset
18917
18918  These two perform some action.
18919 \end_layout
18920
18921 \begin_layout Standard
18922 A common feature of all five environments, 
18923 \family sans
18924 Slide
18925 \family default
18926
18927 \family sans
18928 Overlay
18929 \family default
18930
18931 \family sans
18932 Note
18933 \family default
18934
18935 \family sans
18936 InvisibleText
18937 \family default
18938  and 
18939 \family sans
18940 VisibleText
18941 \family default
18942 , is a rather long-ish label.
18943  The text following this label — ordinarily the contents of the paragraph
18944  environment — is utterly irrelevant for 
18945 \family sans
18946 Slide
18947 \family default
18948
18949 \family sans
18950 Overlay
18951 \family default
18952
18953 \family sans
18954 Note
18955 \family default
18956
18957 \family sans
18958 InvisibleText
18959 \family default
18960  and 
18961 \family sans
18962 VisibleText
18963 \family default
18964 .
18965  \SpecialChar LyX
18966  completely ignores it.
18967  In fact, you can leave these five environments completely empty.
18968  
18969 \end_layout
18970
18971 \begin_layout Standard
18972 While you don't 
18973 \emph on
18974 have
18975 \emph default
18976  to put any text after the rather long-ish label, you might want to.
18977  This could be a short description of the contents of the 
18978 \family sans
18979 Slide
18980 \family default
18981 , for example.
18982  In that case, enter your descriptive comment and hit 
18983 \family sans
18984 Return
18985 \family default
18986  as you normally would.
18987 \end_layout
18988
18989 \begin_layout Standard
18990 If, on the other hand, you don't want to enter any descriptive text, you'll
18991  hit another \SpecialChar LyX
18992  quirk.
18993  \SpecialChar LyX
18994 , like nature, abhors a vacuum, and will not let you start a new paragraph
18995  environment until you put something in the old one.
18996  So, do this:
18997 \end_layout
18998
18999 \begin_layout Itemize
19000 Start entering the text that will 
19001 \emph on
19002 follow
19003 \emph default
19004  the new 
19005 \family sans
19006 Slide
19007 \family default
19008
19009 \family sans
19010 Overlay
19011 \family default
19012
19013 \family sans
19014 Note
19015 \family default
19016
19017 \family sans
19018 InvisibleText
19019 \family default
19020  or 
19021 \family sans
19022 VisibleText
19023 \family default
19024 .
19025  
19026 \end_layout
19027
19028 \begin_layout Itemize
19029 Now move to the beginning of that paragraph.
19030  
19031 \end_layout
19032
19033 \begin_layout Itemize
19034 Next, hit 
19035 \family sans
19036 Return
19037 \family default
19038 .
19039  
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 Finally, change this new, empty paragraph to a 
19044 \family sans
19045 Slide
19046 \family default
19047
19048 \family sans
19049 Overlay
19050 \family default
19051
19052 \family sans
19053 Note
19054 \family default
19055
19056 \family sans
19057 InvisibleText
19058 \family default
19059  or 
19060 \family sans
19061 VisibleText
19062 \family default
19063 .
19064  
19065 \end_layout
19066
19067 \begin_layout Standard
19068 Some future version of \SpecialChar LyX
19069  will, hopefully, resolve this quirkiness\SpecialChar ldots
19070
19071 \end_layout
19072
19073 \begin_layout Subsection
19074 Making a Presentation with 
19075 \family sans
19076 Slide
19077 \family default
19078
19079 \family sans
19080 Overlay
19081 \family default
19082  and 
19083 \family sans
19084 Note
19085 \end_layout
19086
19087 \begin_layout Subsubsection
19088 Using the 
19089 \family sans
19090 Slide
19091 \family default
19092  Environment
19093 \end_layout
19094
19095 \begin_layout Standard
19096 If you're expecting this section to teach you how to actually make a presentatio
19097 n, you'll be sorely disappointed.
19098  Naturally, I'll describe all of the ways the 
19099 \family sans
19100 slides
19101 \family default
19102  class can assist you in preparing the materials for a presentation.
19103  Filling in the contents, however, is up to you.
19104  [Then again, that 
19105 \emph on
19106 is
19107 \emph default
19108  the \SpecialChar LyX
19109  philosophy.]
19110 \end_layout
19111
19112 \begin_layout Standard
19113 Choosing the 
19114 \family sans
19115 Slide
19116 \family default
19117  environment [in the manner described in section
19118 \begin_inset space ~
19119 \end_inset
19120
19121
19122 \begin_inset CommandInset ref
19123 LatexCommand ref
19124 reference "sec:slideQuirk"
19125
19126 \end_inset
19127
19128 ] tells \SpecialChar LyX
19129  to begin a new slide [duh].
19130  The label for this environment/
19131 \begin_inset Quotes erd
19132 \end_inset
19133
19134 pseudo-command
19135 \begin_inset Quotes erd
19136 \end_inset
19137
19138  is an 
19139 \begin_inset Quotes eld
19140 \end_inset
19141
19142 ASCII line,
19143 \begin_inset Quotes erd
19144 \end_inset
19145
19146  in cool blue, followed by the label, 
19147 \begin_inset Quotes eld
19148 \end_inset
19149
19150 NewSlide:
19151 \begin_inset Quotes erd
19152 \end_inset
19153
19154 .
19155  Any text or paragraph environments that follow this one go on the new slide.
19156  It's that simple.
19157 \end_layout
19158
19159 \begin_layout Standard
19160 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
19161
19162  (this can be specified in the 
19163 \family sans
19164 Paragraph Layout
19165 \family default
19166  dialog).
19167  In fact, you'll want to, once you finish entering the contents of one slide.
19168  If you've entered more text than can physically fit on a slide, the extra
19169  overflows onto a new slide.
19170  I don't recommend doing this, however, since the overflow slide won't have
19171  any page number on it.
19172  Furthermore, it may interfere with any 
19173 \family sans
19174 Overlay
19175 \family default
19176  you've made to accompany the oversized 
19177 \family sans
19178 Slide
19179 \family default
19180 .
19181 \end_layout
19182
19183 \begin_layout Standard
19184 The 
19185 \family sans
19186 Overlay
19187 \family default
19188  and 
19189 \family sans
19190 Note
19191 \family default
19192  environments work the same way as the 
19193 \family sans
19194 Slide
19195 \family default
19196  environment.
19197  They both create an 
19198 \begin_inset Quotes eld
19199 \end_inset
19200
19201 ASCII line
19202 \begin_inset Quotes erd
19203 \end_inset
19204
19205  followed by a label [
19206 \begin_inset Quotes eld
19207 \end_inset
19208
19209 NewOverlay:
19210 \begin_inset Quotes erd
19211 \end_inset
19212
19213  and 
19214 \begin_inset Quotes eld
19215 \end_inset
19216
19217 NewNote:
19218 \begin_inset Quotes erd
19219 \end_inset
19220
19221 , respectively].
19222  The color is a stunning magenta instead of blue, and the 
19223 \begin_inset Quotes eld
19224 \end_inset
19225
19226 ASCII line
19227 \begin_inset Quotes erd
19228 \end_inset
19229
19230  will look different, in style and in length.
19231  The label fonts of all three also differ from one another.
19232 \end_layout
19233
19234 \begin_layout Standard
19235 As with a 
19236 \family sans
19237 Slide
19238 \family default
19239 , if the contents of a 
19240 \family sans
19241 Note
19242 \family default
19243  or 
19244 \family sans
19245 Overlay
19246 \family default
19247  exceed the physical size of a slide or sheet of paper, the extra will overflow
19248  onto a new sheet.
19249  Again, you should avoid this.
19250  It defeats the whole purpose of 
19251 \family sans
19252 Note
19253 \family default
19254 s and 
19255 \family sans
19256 Overlay
19257 \family default
19258 s.
19259 \end_layout
19260
19261 \begin_layout Subsubsection
19262 Using 
19263 \family sans
19264 Overlay
19265 \family default
19266  with 
19267 \family sans
19268 Slide
19269 \end_layout
19270
19271 \begin_layout Standard
19272 The idea behind an 
19273 \family sans
19274 Overlay
19275 \family default
19276  is a slide that sits atop another slide.
19277  Perhaps you wish to discuss a figure on the main 
19278 \family sans
19279 Slide
19280 \family default
19281  before displaying the text associated with it.
19282  One way to accomplish this is tape a flap of dark paper over the part of
19283  the 
19284 \family sans
19285 Slide
19286 \family default
19287  you want to display later.
19288  This method fails, however, if you wish to overlap one graph with another,
19289  for example.
19290  You would then have to fumble while speaking to align the two separate,
19291  overlapping 
19292 \family sans
19293 Slide
19294 \family default
19295 s to align the two graphs.
19296  The use of an 
19297 \family sans
19298 Overlay
19299 \family default
19300  environment in both cases makes life much easier.
19301 \end_layout
19302
19303 \begin_layout Standard
19304 Each 
19305 \family sans
19306 Overlay
19307 \family default
19308  receives the page number of its 
19309 \begin_inset Quotes eld
19310 \end_inset
19311
19312 parent
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316  
19317 \family sans
19318 Slide
19319 \family default
19320 , appended by 
19321 \begin_inset Quotes eld
19322 \end_inset
19323
19324
19325 \family typewriter
19326 -a
19327 \family default
19328
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332 .
19333 \begin_inset Foot
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 Presumably, mutliple 
19338 \family sans
19339 Overlay
19340 \family default
19341 s would have 
19342 \begin_inset Quotes eld
19343 \end_inset
19344
19345
19346 \family typewriter
19347 -a
19348 \family default
19349
19350 \begin_inset Quotes erd
19351 \end_inset
19352
19353
19354 \begin_inset Quotes eld
19355 \end_inset
19356
19357
19358 \family typewriter
19359 -b
19360 \family default
19361
19362 \begin_inset Quotes erd
19363 \end_inset
19364
19365
19366 \begin_inset Quotes eld
19367 \end_inset
19368
19369
19370 \family typewriter
19371 -c
19372 \family default
19373
19374 \begin_inset Quotes erd
19375 \end_inset
19376
19377 , etc.
19378 \begin_inset space ~
19379 \end_inset
19380
19381 appended to the page number of the parent 
19382 \family sans
19383 Slide
19384 \family default
19385 .
19386  
19387 \end_layout
19388
19389 \end_inset
19390
19391  Clearly, you want the contents of both the 
19392 \family sans
19393 Slide
19394 \family default
19395  and the 
19396 \family sans
19397 Overlay
19398 \family default
19399  to each fit on a single physical slide! You should probably consider an
19400  
19401 \family sans
19402 Overlay
19403 \family default
19404  as 
19405 \begin_inset Quotes eld
19406 \end_inset
19407
19408 part of
19409 \begin_inset Quotes erd
19410 \end_inset
19411
19412  a 
19413 \family sans
19414 Slide
19415 \family default
19416 .
19417  Indeed, the \SpecialChar LyX
19418  
19419 \family sans
19420 slides
19421 \family default
19422  class provides a visual cue for this: the label at the start of an 
19423 \family sans
19424 Overlay
19425 \family default
19426  is shorter than that at the start of a 
19427 \family sans
19428 Slide
19429 \family default
19430 .
19431  Lastly, when you generate printable output, you'll find alignment markers
19432  in all four corners of both the 
19433 \family sans
19434 Overlay
19435 \family default
19436  page and its parent 
19437 \family sans
19438 Slide
19439 \family default
19440 .
19441  These will assist you in lining up the two physical slides.
19442 \end_layout
19443
19444 \begin_layout Standard
19445 The major problem in overlaying two slides is aligning the contents of the
19446  two transparencies.
19447  How much space should you leave for that graph on the second slide? Worse
19448  still, what if you want a graph and a sentence on second slide, but there
19449  is text on the main transparency that goes in between them? You could try
19450  and insert vertical space of the right size.
19451  The better way is to use 
19452 \family sans
19453 InvisibleText
19454 \family default
19455  and 
19456 \family sans
19457 VisibleText
19458 \family default
19459 .
19460 \end_layout
19461
19462 \begin_layout Standard
19463 As their names imply, 
19464 \family sans
19465 InvisibleText
19466 \family default
19467  and 
19468 \family sans
19469 VisibleText
19470 \family default
19471  are two command-like paragraph environments that make all subsequent text
19472  invisible and visible, respectively.
19473  Note from section
19474 \begin_inset space ~
19475 \end_inset
19476
19477
19478 \begin_inset CommandInset ref
19479 LatexCommand ref
19480 reference "sec:slideQuirk"
19481
19482 \end_inset
19483
19484  that you don't place anything 
19485 \emph on
19486 into
19487 \emph default
19488  these two environments, however.
19489  When you create an 
19490 \family sans
19491 InvisibleText
19492 \family default
19493 , it inserts a centered, sky-blue label into the page reading 
19494 \begin_inset Quotes eld
19495 \end_inset
19496
19497 <Invisible Text Follows>
19498 \begin_inset Quotes erd
19499 \end_inset
19500
19501 .
19502  For paragraphs following this label, the parts of the 
19503 \family sans
19504 Slide
19505 \family default
19506  [or 
19507 \family sans
19508 Overlay
19509 \family default
19510 ; it doesn't matter which] where they would be contain instead blank space.
19511  
19512 \end_layout
19513
19514 \begin_layout Standard
19515 For 
19516 \family sans
19517 VisibleText
19518 \family default
19519 , the corresponding centered label is 
19520 \begin_inset Quotes eld
19521 \end_inset
19522
19523 <Visible Text Follows>
19524 \begin_inset Quotes erd
19525 \end_inset
19526
19527  in blazing green.
19528  Paragraphs following this label behave normally.
19529  Note that the beginning of a new 
19530 \family sans
19531 Slide
19532 \family default
19533
19534 \family sans
19535 Overlay
19536 \family default
19537 , or 
19538 \family sans
19539 Note
19540 \family default
19541  automatically shuts off an 
19542 \family sans
19543 InvisibleText
19544 \family default
19545 .
19546  It's therefore not necessary to use 
19547 \family sans
19548 VisibleText
19549 \family default
19550  at the end of a 
19551 \family sans
19552 Slide
19553 \family default
19554 .
19555 \end_layout
19556
19557 \begin_layout Standard
19558 By now, it should be obvious how to create overlay transparencies using
19559  the proper combination of 
19560 \family sans
19561 InvisibleText
19562 \family default
19563  and 
19564 \family sans
19565 VisibleText
19566 \family default
19567  on a 
19568 \family sans
19569 Slide
19570 \family default
19571  and 
19572 \family sans
19573 Overlay
19574 \family default
19575 :
19576 \end_layout
19577
19578 \begin_layout Enumerate
19579 Create a 
19580 \family sans
19581 Slide
19582 \family default
19583 , including everything that will appear on it, whether on the main slide
19584  or on the 
19585 \family sans
19586 Overlay
19587 \family default
19588 .
19589 \end_layout
19590
19591 \begin_layout Enumerate
19592 Before each figure or paragraph that will appear only on the 
19593 \family sans
19594 Overlay
19595 \family default
19596 , insert an 
19597 \family sans
19598 InvisibleText
19599 \family default
19600  environment.
19601  If necessary, insert a 
19602 \family sans
19603 VisibleText
19604 \family default
19605  environment after the 
19606 \family sans
19607 Overlay
19608 \family default
19609 -only text.
19610 \end_layout
19611
19612 \begin_layout Enumerate
19613 Start an 
19614 \family sans
19615 Overlay
19616 \family default
19617  immediately following the 
19618 \family sans
19619 Slide
19620 \family default
19621 .
19622 \end_layout
19623
19624 \begin_layout Enumerate
19625 Copy the contents of this 
19626 \family sans
19627 Slide
19628 \family default
19629  into the 
19630 \family sans
19631 Overlay
19632 \family default
19633 .
19634 \end_layout
19635
19636 \begin_layout Enumerate
19637 Within the 
19638 \family sans
19639 Overlay
19640 \family default
19641 , change all of the 
19642 \family sans
19643 InvisibleText
19644 \family default
19645  lines to 
19646 \family sans
19647 VisibleText
19648 \family default
19649  and vice-versa.
19650 \end_layout
19651
19652 \begin_layout Standard
19653 That's it.
19654  You've just made an 
19655 \family sans
19656 Overlay
19657 \family default
19658 .
19659 \end_layout
19660
19661 \begin_layout Standard
19662 There's one problem with the way I've designed the \SpecialChar LyX
19663  
19664 \family sans
19665 slides
19666 \family default
19667  class: you can't make text in the middle of a paragraph invisible, nor
19668  make text in the middle of an invisible paragraph visible again.
19669  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19670  codes.
19671 \begin_inset Foot
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 The commands of interest are: 
19676 \end_layout
19677
19678 \begin_layout Itemize
19679
19680 \family typewriter
19681 {
19682 \backslash
19683 invisible \SpecialChar ldots
19684  }
19685 \end_layout
19686
19687 \begin_layout Itemize
19688
19689 \family typewriter
19690 {
19691 \backslash
19692 visible \SpecialChar ldots
19693  }
19694 \end_layout
19695
19696 \begin_layout Plain Layout
19697 \SpecialChar ldots
19698 and need to be marked as \SpecialChar TeX
19699 .
19700  The text whose 
19701 \begin_inset Quotes eld
19702 \end_inset
19703
19704 visibility
19705 \begin_inset Quotes erd
19706 \end_inset
19707
19708  you wish to change goes in between the brackets [and after the 
19709 \family typewriter
19710
19711 \backslash
19712 invisible
19713 \family default
19714  or 
19715 \family typewriter
19716
19717 \backslash
19718 visible
19719 \family default
19720  command].
19721  If you don't know how to mark text as \SpecialChar TeX
19722 , see the appropriate section of
19723  the 
19724 \emph on
19725 User's Guide
19726 \emph default
19727 .
19728 \end_layout
19729
19730 \end_inset
19731
19732
19733 \end_layout
19734
19735 \begin_layout Subsubsection
19736 Using 
19737 \family sans
19738 Note
19739 \family default
19740  with 
19741 \family sans
19742 Slide
19743 \family default
19744
19745 \begin_inset CommandInset label
19746 LatexCommand label
19747 name "sec:slideNote"
19748
19749 \end_inset
19750
19751
19752 \end_layout
19753
19754 \begin_layout Standard
19755 Like an 
19756 \family sans
19757 Overlay
19758 \family default
19759 , a 
19760 \family sans
19761 Note
19762 \family default
19763  is associated with a 
19764 \begin_inset Quotes eld
19765 \end_inset
19766
19767 parent
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771  
19772 \family sans
19773 Slide
19774 \family default
19775 .
19776  Here, too, the \SpecialChar LyX
19777  
19778 \family sans
19779 slides
19780 \family default
19781  class provides visual cues.
19782  The label for a 
19783 \family sans
19784 Note
19785 \family default
19786  is shorter than that of a 
19787 \family sans
19788 Slide
19789 \family default
19790  [yet longer than that of an 
19791 \family sans
19792 Overlay
19793 \family default
19794 ] and, like the label of an 
19795 \family sans
19796 Overlay
19797 \family default
19798  is shockingly magenta.
19799  Additionally, the printed 
19800 \family sans
19801 Note
19802 \family default
19803  has the page number of its 
19804 \begin_inset Quotes eld
19805 \end_inset
19806
19807 parent
19808 \begin_inset Quotes erd
19809 \end_inset
19810
19811  
19812 \family sans
19813 Slide
19814 \family default
19815 , appended by 
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819
19820 \family typewriter
19821 -
19822 \family default
19823 1
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827
19828 \begin_inset Quotes eld
19829 \end_inset
19830
19831
19832 \family typewriter
19833 -
19834 \family default
19835 2
19836 \begin_inset Quotes erd
19837 \end_inset
19838
19839
19840 \begin_inset Quotes eld
19841 \end_inset
19842
19843
19844 \family typewriter
19845 -
19846 \family default
19847 3
19848 \begin_inset Quotes erd
19849 \end_inset
19850
19851 , etc.
19852  You can have multiple 
19853 \family sans
19854 Note
19855 \family default
19856 s associated with a single 
19857 \family sans
19858 Slide
19859 \family default
19860 , and, as with 
19861 \family sans
19862 Slide
19863 \family default
19864  and 
19865 \family sans
19866 Overlay
19867 \family default
19868 , you'll probably want to break up long 
19869 \family sans
19870 Note
19871 \family default
19872 s so that they fit on a single sheet of paper.
19873 \end_layout
19874
19875 \begin_layout Standard
19876 The purpose of a 
19877 \family sans
19878 Note
19879 \family default
19880  is obvious: it contains anything additional you might want to say about
19881  a 
19882 \family sans
19883 Slide
19884 \family default
19885 .
19886  It could also be used as a sheet of reminders for a particular 
19887 \family sans
19888 Slide
19889 \family default
19890 .
19891  In the case of the latter, you might want to make use of time markers.
19892  Currently, the \SpecialChar LyX
19893  
19894 \family sans
19895 slides
19896 \family default
19897  class has no 
19898 \begin_inset Quotes eld
19899 \end_inset
19900
19901 native
19902 \begin_inset Quotes erd
19903 \end_inset
19904
19905  support for time markers, a 
19906 \noun on
19907 Sli\SpecialChar TeX
19908
19909 \noun default
19910  feature.
19911  So, you'll have to resort to using the \SpecialChar LaTeX
19912  codes.
19913 \end_layout
19914
19915 \begin_layout Standard
19916 To use time markers, you'll need to specify the extra class option 
19917 \begin_inset Quotes eld
19918 \end_inset
19919
19920
19921 \family typewriter
19922 clock
19923 \family default
19924
19925 \begin_inset Quotes erd
19926 \end_inset
19927
19928  [see section
19929 \begin_inset space ~
19930 \end_inset
19931
19932
19933 \begin_inset CommandInset ref
19934 LatexCommand ref
19935 reference "sec:slidesetup"
19936
19937 \end_inset
19938
19939 ].
19940  This option turns on timing marks, which will appear in the lower-left-hand
19941  corner of every 
19942 \family sans
19943 Note
19944 \family default
19945  you generate.
19946  To set what appears in the time marker, you use the \SpecialChar LaTeX
19947  commands 
19948 \begin_inset Quotes eld
19949 \end_inset
19950
19951
19952 \family typewriter
19953
19954 \backslash
19955 settime{}
19956 \family default
19957
19958 \begin_inset Quotes erd
19959 \end_inset
19960
19961  and 
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967
19968 \backslash
19969 addtime{}
19970 \family default
19971
19972 \begin_inset Quotes erd
19973 \end_inset
19974
19975 .
19976  The arguments of both commands are time measured in seconds.
19977  
19978 \begin_inset Quotes eld
19979 \end_inset
19980
19981
19982 \family typewriter
19983
19984 \backslash
19985 settime{}
19986 \family default
19987
19988 \begin_inset Quotes erd
19989 \end_inset
19990
19991  sets the time marker to a given time.
19992  
19993 \begin_inset Quotes eld
19994 \end_inset
19995
19996
19997 \family typewriter
19998
19999 \backslash
20000 addtime{}
20001 \family default
20002
20003 \begin_inset Quotes erd
20004 \end_inset
20005
20006  increments the time marker by the specified amount.
20007  Using time markers and 
20008 \family sans
20009 Note
20010 \family default
20011 s in this fashion, you can remind yourself how much time to spend on a particula
20012
20013 \family sans
20014 Slide
20015 \family default
20016 .
20017 \end_layout
20018
20019 \begin_layout Standard
20020 There's one last feature to describe.
20021  Clearly, you'd like to print out all of your 
20022 \family sans
20023 Slide
20024 \family default
20025 s and 
20026 \family sans
20027 Overlay
20028 \family default
20029 s on transparencies while printing all of your 
20030 \family sans
20031 Note
20032 \family default
20033 s on plain paper.
20034  However, a 
20035 \family sans
20036 Note
20037 \family default
20038  
20039 \emph on
20040 must
20041 \emph default
20042  follow the 
20043 \family sans
20044 Slide
20045 \family default
20046  with which it is associated.
20047  What's a person to do?
20048 \end_layout
20049
20050 \begin_layout Standard
20051 Luckily, there are two \SpecialChar LaTeX
20052  commands that allow you to select what to print
20053  out.
20054  Both must be placed into the preamble of your document.
20055  The command 
20056 \begin_inset Quotes eld
20057 \end_inset
20058
20059
20060 \family typewriter
20061
20062 \backslash
20063 onlyslides{
20064 \backslash
20065 slides}
20066 \family default
20067
20068 \begin_inset Quotes erd
20069 \end_inset
20070
20071  will cause the output to contain only the 
20072 \family sans
20073 Slide
20074 \family default
20075 s and 
20076 \family sans
20077 Overlay
20078 \family default
20079 s.
20080  Correspondingly, the command 
20081 \begin_inset Quotes eld
20082 \end_inset
20083
20084
20085 \family typewriter
20086
20087 \backslash
20088 onlynotes{
20089 \backslash
20090 notes}
20091 \family default
20092
20093 \begin_inset Quotes erd
20094 \end_inset
20095
20096  prevents the output of anything but 
20097 \family sans
20098 Note
20099 \family default
20100 s.
20101  I'd advise placing both commands in the preamble and initially comment
20102  both out.
20103  You can then preview your entire presentation as you write.
20104  When you're done writing, you can then uncomment one of the two to select
20105  what you want to print.
20106  I like to uncomment 
20107 \begin_inset Quotes eld
20108 \end_inset
20109
20110
20111 \family typewriter
20112
20113 \backslash
20114 onlyslides{
20115 \backslash
20116 slides}
20117 \family default
20118
20119 \begin_inset Quotes erd
20120 \end_inset
20121
20122  , print to a file with 
20123 \begin_inset Quotes eld
20124 \end_inset
20125
20126
20127 \family typewriter
20128 -slides
20129 \family default
20130
20131 \begin_inset Quotes erd
20132 \end_inset
20133
20134  in its name, comment it back out, then uncomment 
20135 \begin_inset Quotes eld
20136 \end_inset
20137
20138
20139 \family typewriter
20140
20141 \backslash
20142 onlynotes{
20143 \backslash
20144 notes}
20145 \family default
20146
20147 \begin_inset Quotes erd
20148 \end_inset
20149
20150  and print to a 
20151 \begin_inset Quotes eld
20152 \end_inset
20153
20154
20155 \family typewriter
20156 *-notes.ps
20157 \family default
20158
20159 \begin_inset Quotes erd
20160 \end_inset
20161
20162  file.
20163  I can then send either file to a printer, loading transparencies or plain
20164  paper as appropriate.
20165 \end_layout
20166
20167 \begin_layout Standard
20168 You can also provide other arguments to the 
20169 \begin_inset Quotes eld
20170 \end_inset
20171
20172
20173 \family typewriter
20174
20175 \backslash
20176 onlyslides{}
20177 \family default
20178
20179 \begin_inset Quotes erd
20180 \end_inset
20181
20182  and 
20183 \begin_inset Quotes eld
20184 \end_inset
20185
20186
20187 \family typewriter
20188
20189 \backslash
20190 onlynotes{}
20191 \family default
20192
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196  commands.
20197  See a good \SpecialChar LaTeX
20198  book for details.
20199 \end_layout
20200
20201 \begin_layout Subsection
20202 The 
20203 \family sans
20204 slides
20205 \family default
20206  Class Template File
20207 \end_layout
20208
20209 \begin_layout Standard
20210 I have also provided a template file, 
20211 \begin_inset Quotes eld
20212 \end_inset
20213
20214
20215 \family typewriter
20216 slides.lyx
20217 \family default
20218
20219 \begin_inset Quotes erd
20220 \end_inset
20221
20222 , with the 
20223 \family sans
20224 slides
20225 \family default
20226  class.
20227  To use it, begin your new presentation with 
20228 \family sans
20229 File\SpecialChar menuseparator
20230 New
20231 \begin_inset space ~
20232 \end_inset
20233
20234 from
20235 \begin_inset space ~
20236 \end_inset
20237
20238 Template
20239 \family default
20240 .
20241  Your new \SpecialChar LyX
20242  presentation file will contain an example 
20243 \family sans
20244 Slide
20245 \family default
20246  – 
20247 \family sans
20248 Overlay
20249 \family default
20250  – 
20251 \family sans
20252 Note
20253 \family default
20254  triplet.
20255  The 
20256 \family sans
20257 Slide
20258 \family default
20259  and 
20260 \family sans
20261 Overlay
20262 \family default
20263  additionally contain an example of the use of 
20264 \family sans
20265 InvisibleText
20266 \family default
20267  and 
20268 \family sans
20269 VisibleText
20270 \family default
20271 .
20272  Lastly, the preamble will contain:
20273 \end_layout
20274
20275 \begin_layout LyX-Code
20276 % Uncomment to print out only slides and overlays
20277 \end_layout
20278
20279 \begin_layout LyX-Code
20280 %
20281 \end_layout
20282
20283 \begin_layout LyX-Code
20284 %
20285 \backslash
20286 onlyslides{
20287 \backslash
20288 slides}
20289 \begin_inset Newline newline
20290 \end_inset
20291
20292  
20293 \end_layout
20294
20295 \begin_layout LyX-Code
20296 % Uncomment to print out only notes
20297 \end_layout
20298
20299 \begin_layout LyX-Code
20300 %
20301 \end_layout
20302
20303 \begin_layout LyX-Code
20304 %
20305 \backslash
20306 onlynotes{
20307 \backslash
20308 notes}
20309 \end_layout
20310
20311 \begin_layout Standard
20312 One final thing: I created this class to support the \SpecialChar LaTeX2e
20313  
20314 \begin_inset Quotes eld
20315 \end_inset
20316
20317
20318 \noun on
20319 Sli\SpecialChar TeX
20320
20321 \noun default
20322  emulation
20323 \begin_inset Quotes erd
20324 \end_inset
20325
20326  class, one of the built-in \SpecialChar LaTeX2e
20327  classes.
20328  Neither I nor the rest of the \SpecialChar LyX
20329  Team endorse or oppose the use of this built-in
20330  slide class.
20331  It's here if you want it or need it.
20332  There exist other \SpecialChar LaTeX2e
20333  classes for creating presentations, such as the 
20334 \family sans
20335 Foils
20336 \family default
20337  class [see section
20338 \begin_inset space ~
20339 \end_inset
20340
20341
20342 \begin_inset CommandInset ref
20343 LatexCommand ref
20344 reference "sec:foiltex"
20345
20346 \end_inset
20347
20348 ] or the 
20349 \begin_inset Quotes eld
20350 \end_inset
20351
20352
20353 \family typewriter
20354 seminar
20355 \family default
20356
20357 \begin_inset Quotes erd
20358 \end_inset
20359
20360  package [present on some \SpecialChar TeX
20361  distributions].
20362  The latter is not yet supported under \SpecialChar LyX
20363 .
20364 \begin_inset Foot
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 Perhaps you can take on the task\SpecialChar ldots
20369
20370 \end_layout
20371
20372 \end_inset
20373
20374  I know nothing about these other classes.
20375  Try them out to see what sort of alternative they provide.
20376 \end_layout
20377
20378 \begin_layout Chapter
20379 \SpecialChar LyX
20380  Features needing Extra Software
20381 \end_layout
20382
20383 \begin_layout Section
20384 Checking \SpecialChar TeX
20385
20386 \end_layout
20387
20388 \begin_layout Standard
20389 by 
20390 \noun on
20391 Asger Alstrup
20392 \end_layout
20393
20394 \begin_layout Subsection
20395 Introduction
20396 \end_layout
20397
20398 \begin_layout Standard
20399 If you have the 
20400 \family typewriter
20401 chktex
20402 \family default
20403  program installed
20404 \begin_inset Foot
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408
20409 \family typewriter
20410 chktex
20411 \family default
20412  is not yet available when you are using the \SpecialChar LaTeX
20413  distribution MiK\SpecialChar TeX
20414 .
20415 \end_layout
20416
20417 \end_inset
20418
20419 , you'll find in the 
20420 \family sans
20421 Tools
20422 \family default
20423  menu the entry: 
20424 \family sans
20425 Check
20426 \begin_inset space ~
20427 \end_inset
20428
20429 TeX
20430 \family default
20431 .
20432  You can get 
20433 \family typewriter
20434 chktex
20435 \family default
20436  from CTAN,
20437 \begin_inset Newline newline
20438 \end_inset
20439
20440
20441 \begin_inset CommandInset href
20442 LatexCommand href
20443 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
20444 literal "false"
20445
20446 \end_inset
20447
20448 .
20449 \end_layout
20450
20451 \begin_layout Standard
20452 The 
20453 \family sans
20454 Chk\SpecialChar TeX
20455
20456 \family default
20457  package is a program that was written by 
20458 \begin_inset Flex Noun
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462 Jens T.
20463 \begin_inset space ~
20464 \end_inset
20465
20466 Berger Thielemann
20467 \end_layout
20468
20469 \end_inset
20470
20471  in frustration because some constructs in \SpecialChar LaTeX
20472  are sometimes non-intuitive,
20473  and easy to forget.
20474  The program runs over your \SpecialChar LaTeX
20475  file, checks the integrity of the file, and
20476  flags some common errors.
20477  In other technical words, it is 
20478 \family typewriter
20479 lint
20480 \family default
20481  for \SpecialChar LaTeX
20482 .
20483 \end_layout
20484
20485 \begin_layout Standard
20486 Well, what is a syntax checker doing in \SpecialChar LyX
20487  which is supposed to produce correct
20488  \SpecialChar LaTeX
20489  anyways? The answer is simple: Just as 
20490 \family typewriter
20491 Lint
20492 \family default
20493  not only checks the 
20494 \emph on
20495 syntax
20496 \emph default
20497  of C programs, but also does 
20498 \emph on
20499 semantic
20500 \emph default
20501  checks for type-errors, 
20502 \family sans
20503 Chk\SpecialChar TeX
20504
20505 \family default
20506  catches some common 
20507 \emph on
20508 typographic
20509 \emph default
20510  errors, in addition to the syntactical ones.
20511  Specifically, 
20512 \family sans
20513 Chk\SpecialChar TeX
20514
20515 \family default
20516  is capable of detecting several common errors, such as
20517 \end_layout
20518
20519 \begin_layout Itemize
20520 Ellipsis detection:
20521 \begin_inset Newline newline
20522 \end_inset
20523
20524 Use \SpecialChar ldots
20525  instead of ...
20526 \end_layout
20527
20528 \begin_layout Itemize
20529 No space in front of/after parenthesis:
20530 \begin_inset Newline newline
20531 \end_inset
20532
20533 ( wrong spacing )
20534 \end_layout
20535
20536 \begin_layout Itemize
20537 Enforcement of normal space after common abbreviations:
20538 \begin_inset Newline newline
20539 \end_inset
20540
20541 e.
20542 \begin_inset space \thinspace{}
20543 \end_inset
20544
20545 g.
20546 \begin_inset space \space{}
20547 \end_inset
20548
20549 is too wide spacing.
20550 \end_layout
20551
20552 \begin_layout Itemize
20553 Enforcement of end-of-sentence space when the last sentence ends with a
20554  capital letter:
20555 \begin_inset Newline newline
20556 \end_inset
20557
20558 This is a TEST.
20559  And this is wrong spacing.
20560 \end_layout
20561
20562 \begin_layout Itemize
20563 Space in front of labels and similar commands:
20564 \begin_inset Newline newline
20565 \end_inset
20566
20567 The label should stick right up to the text to avoid falling to a wrong
20568  page.
20569  
20570 \begin_inset CommandInset label
20571 LatexCommand label
20572 name "sec:chktex"
20573
20574 \end_inset
20575
20576  
20577 \begin_inset Foot
20578 status collapsed
20579
20580 \begin_layout Plain Layout
20581 This footnote is in danger of falling off to a wrong page
20582 \end_layout
20583
20584 \end_inset
20585
20586  The label is separated too much.
20587 \end_layout
20588
20589 \begin_layout Itemize
20590 Space in front of references, instead of hard spaces:
20591 \begin_inset Newline newline
20592 \end_inset
20593
20594 If you have bad luck, the text will break right between the referenced text
20595  and reference number, and that's a pity.
20596  See section 
20597 \begin_inset CommandInset ref
20598 LatexCommand ref
20599 reference "sec:chktex"
20600
20601 \end_inset
20602
20603 .
20604 \end_layout
20605
20606 \begin_layout Itemize
20607 Use of 
20608 \begin_inset Quotes eld
20609 \end_inset
20610
20611 x
20612 \begin_inset Quotes erd
20613 \end_inset
20614
20615  instead of 
20616 \begin_inset Formula $\times$
20617 \end_inset
20618
20619  between numbers:
20620 \begin_inset Newline newline
20621 \end_inset
20622
20623 2x2 looks cheap compared to 
20624 \begin_inset Formula $2\times2$
20625 \end_inset
20626
20627 .
20628 \end_layout
20629
20630 \begin_layout Standard
20631 and more \SpecialChar ldots
20632  It is an invaluable tool when you are 
20633 \begin_inset Quotes eld
20634 \end_inset
20635
20636 finishing up
20637 \begin_inset Quotes erd
20638 \end_inset
20639
20640  your document before printing, and you should run it right after the obligatory
20641  spelling check, and before you go fine tuning the typesetting.
20642 \end_layout
20643
20644 \begin_layout Subsection
20645 How to use it
20646 \end_layout
20647
20648 \begin_layout Standard
20649 If you have the program installed, usage is as simple as choosing 
20650 \family sans
20651 Tools\SpecialChar menuseparator
20652 Check
20653 \begin_inset space ~
20654 \end_inset
20655
20656 TeX
20657 \family default
20658 .
20659  This will make \SpecialChar LyX
20660  generate a \SpecialChar LaTeX
20661  file of your document, start 
20662 \family sans
20663 Chk\SpecialChar TeX
20664
20665 \family default
20666  to check it, and then make \SpecialChar LyX
20667  insert 
20668 \begin_inset Quotes eld
20669 \end_inset
20670
20671 error boxes
20672 \begin_inset Quotes erd
20673 \end_inset
20674
20675  with the warnings from 
20676 \family sans
20677 Chk\SpecialChar TeX
20678
20679 \family default
20680 , if there were any.
20681  The warnings will be placed close to the point of the mistake, and you
20682  can quickly find them by using the 
20683 \family sans
20684 Navigate\SpecialChar menuseparator
20685 Error
20686 \family default
20687  menu item, or the shortcut key 
20688 \family sans
20689 C-g
20690 \family default
20691  from the default 
20692 \family typewriter
20693 cua
20694 \family default
20695  bind file.
20696  Open the error boxes by clicking on them with the mouse, or use the shortcut
20697  key 
20698 \family sans
20699 C-i
20700 \family default
20701  from 
20702 \family typewriter
20703 cua
20704 \family default
20705  bindings, or the corresponding 
20706 \family sans
20707 C-o
20708 \family default
20709  for the alternate 
20710 \family typewriter
20711 emacs
20712 \family default
20713  bind file.
20714  Read the warning and correct the mistake, if it is a mistake.
20715  If you have trouble understanding what the warning is about, you can safely
20716  ignore it.
20717  Remember that there is a hidden layer between the document on screen and
20718  the technical details in invoking 
20719 \family sans
20720 Chk\SpecialChar TeX
20721
20722 \family default
20723 , and this gap can make some warnings seem arcane or just plain silly.
20724 \end_layout
20725
20726 \begin_layout Standard
20727 This document is an excellent testing bed for the feature, and it should
20728  provide quite a few warnings for you to fiddle with.
20729  Since computers are only so smart, expect most of the warnings to be false
20730  alarms, though.
20731 \end_layout
20732
20733 \begin_layout Subsection
20734 How to fine tune it
20735 \end_layout
20736
20737 \begin_layout Standard
20738 Sometimes, you'll find that 
20739 \family sans
20740 Chk\SpecialChar TeX
20741
20742 \family default
20743  makes more noise than suits your mood.
20744  Then you can choose not to use it, wait until your mood changes, or try
20745  to customize 
20746 \family sans
20747 Chk\SpecialChar TeX
20748
20749 \family default
20750  to get better along with you.
20751 \end_layout
20752
20753 \begin_layout Standard
20754 Although 
20755 \family sans
20756 Chk\SpecialChar TeX
20757
20758 \family default
20759  
20760 \emph on
20761 is
20762 \emph default
20763  very configurable and extensible, you should not expect to solve all problems
20764  with 
20765 \family sans
20766 Chk\SpecialChar TeX
20767
20768 \family default
20769  in \SpecialChar LyX
20770  this way.
20771  Since \SpecialChar LyX
20772  has to generate a somewhat special \SpecialChar LaTeX
20773  file to be able to match the
20774  line numbers from the 
20775 \family sans
20776 Chk\SpecialChar TeX
20777
20778 \family default
20779  output
20780 \begin_inset Foot
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 You can inspect the specific output from 
20785 \family sans
20786 chktex
20787 \family default
20788  by using 
20789 \family sans
20790 Document\SpecialChar menuseparator
20791 \SpecialChar LaTeX
20792
20793 \begin_inset space ~
20794 \end_inset
20795
20796 Log
20797 \family default
20798  right after a 
20799 \family sans
20800 chktex
20801 \family default
20802  run.
20803 \end_layout
20804
20805 \end_inset
20806
20807  to the internal document structure, some of the warnings will not appear
20808  correctly.
20809  There are two things you can do about this:
20810 \end_layout
20811
20812 \begin_layout Itemize
20813 Fine tune the 
20814 \family sans
20815 Chk\SpecialChar TeX
20816
20817 \family default
20818  invocation command line in 
20819 \begin_inset Flex Noun
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 Tools\SpecialChar menuseparator
20824 Preferences\SpecialChar menuseparator
20825 Output\SpecialChar menuseparator
20826 LaTeX\SpecialChar menuseparator
20827 CheckTeX command
20828 \end_layout
20829
20830 \end_inset
20831
20832 , or the global 
20833 \family sans
20834 Chk\SpecialChar TeX
20835
20836 \family default
20837  installation configuration file (usually with the file 
20838 \family typewriter
20839 chktexrc
20840 \family default
20841 ).
20842  See below to learn what warnings can be enabled and disabled on the command
20843  line.
20844 \end_layout
20845
20846 \begin_layout Itemize
20847 Export your document as a raw \SpecialChar LaTeX
20848  file using 
20849 \family sans
20850 File\SpecialChar menuseparator
20851 Export\SpecialChar menuseparator
20852 \SpecialChar LaTeX
20853
20854 \family default
20855  and run 
20856 \family typewriter
20857 chktex
20858 \family default
20859  manually on that.
20860  Invoked in this way, it can be a hassle to find the corresponding place
20861  in the document inside \SpecialChar LyX
20862 , but with a little patience, you should be able
20863  to do it.
20864 \end_layout
20865
20866 \begin_layout Standard
20867 Here follows the warning messages that can be enabled and disabled in 
20868 \family sans
20869 Preferences
20870 \family default
20871 .
20872  Use 
20873 \family typewriter
20874 -n#
20875 \family default
20876  to disable a warning, and 
20877 \family typewriter
20878 -w#
20879 \family default
20880  to enable a warning.
20881  The emphasized entries are disabled by default, because the default is
20882  "
20883 \family typewriter
20884 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20885 \family default
20886 ".
20887 \end_layout
20888
20889 \begin_layout Standard
20890 Notice that you should only use the options that enable and disable warnings,
20891  because \SpecialChar LyX
20892  relies on some of the other command line parameters to be set
20893  in a specific way to have a chance to communicate with 
20894 \family typewriter
20895 chktex
20896 \family default
20897 .
20898 \end_layout
20899
20900 \begin_layout Enumerate
20901
20902 \size small
20903 \emph on
20904 Command terminated with space.
20905 \end_layout
20906
20907 \begin_layout Enumerate
20908
20909 \size small
20910 Non-breaking space (
20911 \begin_inset Quotes eld
20912 \end_inset
20913
20914
20915 \family typewriter
20916 ~
20917 \family default
20918
20919 \begin_inset Quotes erd
20920 \end_inset
20921
20922 ) should have been used.
20923 \end_layout
20924
20925 \begin_layout Enumerate
20926
20927 \size small
20928 \emph on
20929 You should enclose the previous parenthesis with 
20930 \begin_inset Quotes eld
20931 \end_inset
20932
20933
20934 \family typewriter
20935 {}
20936 \family default
20937
20938 \begin_inset Quotes erd
20939 \end_inset
20940
20941 .
20942 \end_layout
20943
20944 \begin_layout Enumerate
20945
20946 \size small
20947 Italic correction (
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951
20952 \family typewriter
20953
20954 \backslash
20955 /
20956 \family default
20957
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961 ) found in non-italic buffer.
20962 \end_layout
20963
20964 \begin_layout Enumerate
20965
20966 \size small
20967 Italic correction (
20968 \begin_inset Quotes eld
20969 \end_inset
20970
20971
20972 \family typewriter
20973
20974 \backslash
20975 /
20976 \family default
20977
20978 \begin_inset Quotes erd
20979 \end_inset
20980
20981 ) found more than once.
20982 \end_layout
20983
20984 \begin_layout Enumerate
20985
20986 \size small
20987 \emph on
20988 No italic correction (
20989 \begin_inset Quotes eld
20990 \end_inset
20991
20992
20993 \family typewriter
20994
20995 \backslash
20996 /
20997 \family default
20998
20999 \begin_inset Quotes erd
21000 \end_inset
21001
21002 ) found.
21003 \end_layout
21004
21005 \begin_layout Enumerate
21006
21007 \size small
21008 Accent command 
21009 \begin_inset Quotes eld
21010 \end_inset
21011
21012
21013 \family typewriter
21014 cmd
21015 \family default
21016
21017 \begin_inset Quotes erd
21018 \end_inset
21019
21020  needs use of 
21021 \begin_inset Quotes eld
21022 \end_inset
21023
21024
21025 \family typewriter
21026 cmd
21027 \family default
21028
21029 \begin_inset Quotes erd
21030 \end_inset
21031
21032 .
21033 \end_layout
21034
21035 \begin_layout Enumerate
21036
21037 \size small
21038 Wrong length of dash may have been used.
21039 \end_layout
21040
21041 \begin_layout Enumerate
21042
21043 \size small
21044 \emph on
21045 \begin_inset Quotes eld
21046 \end_inset
21047
21048
21049 \family typewriter
21050 %s
21051 \family default
21052
21053 \begin_inset Quotes erd
21054 \end_inset
21055
21056  expected, found 
21057 \begin_inset Quotes eld
21058 \end_inset
21059
21060
21061 \family typewriter
21062 %s
21063 \family default
21064
21065 \begin_inset Quotes erd
21066 \end_inset
21067
21068 .
21069 \end_layout
21070
21071 \begin_layout Enumerate
21072
21073 \size small
21074 Solo 
21075 \begin_inset Quotes eld
21076 \end_inset
21077
21078
21079 \family typewriter
21080 %s
21081 \family default
21082
21083 \begin_inset Quotes erd
21084 \end_inset
21085
21086  found.
21087 \end_layout
21088
21089 \begin_layout Enumerate
21090
21091 \size small
21092 You should use 
21093 \begin_inset Quotes eld
21094 \end_inset
21095
21096
21097 \family typewriter
21098 %s
21099 \family default
21100
21101 \begin_inset Quotes erd
21102 \end_inset
21103
21104  to achieve an ellipsis.
21105 \end_layout
21106
21107 \begin_layout Enumerate
21108
21109 \size small
21110 Inter-word spacing (
21111 \begin_inset Quotes eld
21112 \end_inset
21113
21114
21115 \family typewriter
21116
21117 \backslash
21118
21119 \family default
21120  
21121 \begin_inset Quotes eld
21122 \end_inset
21123
21124 ) should perhaps be used.
21125 \end_layout
21126
21127 \begin_layout Enumerate
21128
21129 \size small
21130 Inter-sentence spacing (
21131 \begin_inset Quotes eld
21132 \end_inset
21133
21134
21135 \family typewriter
21136
21137 \backslash
21138 @
21139 \family default
21140
21141 \begin_inset Quotes erd
21142 \end_inset
21143
21144 ) should perhaps be used.
21145 \end_layout
21146
21147 \begin_layout Enumerate
21148
21149 \size small
21150 Could not find argument for command.
21151 \end_layout
21152
21153 \begin_layout Enumerate
21154
21155 \size small
21156 No match found for 
21157 \begin_inset Quotes eld
21158 \end_inset
21159
21160
21161 \family typewriter
21162 %s
21163 \family default
21164
21165 \begin_inset Quotes erd
21166 \end_inset
21167
21168 .
21169 \end_layout
21170
21171 \begin_layout Enumerate
21172
21173 \size small
21174 Math mode still on at end of \SpecialChar LaTeX
21175  file.
21176 \end_layout
21177
21178 \begin_layout Enumerate
21179
21180 \size small
21181 Number of 
21182 \begin_inset Quotes eld
21183 \end_inset
21184
21185
21186 \family typewriter
21187 char
21188 \family default
21189
21190 \begin_inset Quotes erd
21191 \end_inset
21192
21193  doesn't match the number of 
21194 \begin_inset Quotes eld
21195 \end_inset
21196
21197
21198 \family typewriter
21199 char
21200 \family default
21201
21202 \begin_inset Quotes erd
21203 \end_inset
21204
21205 .
21206 \end_layout
21207
21208 \begin_layout Enumerate
21209
21210 \size small
21211 You should use either 
21212 \family typewriter
21213
21214 \begin_inset Quotes eld
21215 \end_inset
21216
21217
21218 \family default
21219  or 
21220 \family typewriter
21221
21222 \begin_inset Quotes erd
21223 \end_inset
21224
21225
21226 \family default
21227  as an alternative to 
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231
21232 \family typewriter
21233 "
21234 \family default
21235
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239 .
21240 \end_layout
21241
21242 \begin_layout Enumerate
21243
21244 \size small
21245 You should use "
21246 \family typewriter
21247 '
21248 \family default
21249 " (ASCII 39) instead of "
21250 \family typewriter
21251 ´
21252 \family default
21253 " (ASCII 180).
21254 \end_layout
21255
21256 \begin_layout Enumerate
21257
21258 \size small
21259 User-specified pattern found.
21260 \end_layout
21261
21262 \begin_layout Enumerate
21263
21264 \size small
21265 This command might not be intended.
21266 \end_layout
21267
21268 \begin_layout Enumerate
21269
21270 \size small
21271 \emph on
21272 Comment displayed.
21273 \end_layout
21274
21275 \begin_layout Enumerate
21276
21277 \size small
21278 Either 
21279 \family typewriter
21280 ''
21281 \backslash
21282 ,'
21283 \family default
21284  or 
21285 \family typewriter
21286 '
21287 \backslash
21288 ,''
21289 \family default
21290  will look better.
21291 \end_layout
21292
21293 \begin_layout Enumerate
21294
21295 \size small
21296 Delete this space to maintain correct page references.
21297 \end_layout
21298
21299 \begin_layout Enumerate
21300
21301 \size small
21302 \emph on
21303 You might wish to put this between a pair of 
21304 \begin_inset Quotes eld
21305 \end_inset
21306
21307
21308 \family typewriter
21309 {}
21310 \family default
21311
21312 \begin_inset Quotes erd
21313 \end_inset
21314
21315 .
21316 \end_layout
21317
21318 \begin_layout Enumerate
21319
21320 \size small
21321 You ought to remove spaces in front of punctuation.
21322 \end_layout
21323
21324 \begin_layout Enumerate
21325
21326 \size small
21327 Could not execute \SpecialChar LaTeX
21328  command.
21329 \end_layout
21330
21331 \begin_layout Enumerate
21332
21333 \size small
21334 Don't use 
21335 \family typewriter
21336
21337 \backslash
21338 /
21339 \family default
21340  in front of small punctuation.
21341 \end_layout
21342
21343 \begin_layout Enumerate
21344
21345 \family typewriter
21346 \size small
21347 $
21348 \backslash
21349 times$
21350 \family default
21351  may look prettier here.
21352 \end_layout
21353
21354 \begin_layout Enumerate
21355
21356 \size small
21357 \emph on
21358 Multiple spaces detected in output.
21359 \end_layout
21360
21361 \begin_layout Enumerate
21362
21363 \size small
21364 This text may be ignored.
21365 \end_layout
21366
21367 \begin_layout Enumerate
21368
21369 \size small
21370 Use 
21371 \family typewriter
21372
21373 \begin_inset Quotes eld
21374 \end_inset
21375
21376
21377 \family default
21378  to begin quotation, not 
21379 \family typewriter
21380 '
21381 \family default
21382 .
21383 \end_layout
21384
21385 \begin_layout Enumerate
21386
21387 \size small
21388 Use 
21389 \family typewriter
21390 '
21391 \family default
21392  to end quotation, not 
21393 \family typewriter
21394
21395 \begin_inset Quotes eld
21396 \end_inset
21397
21398
21399 \family default
21400 .
21401 \end_layout
21402
21403 \begin_layout Enumerate
21404
21405 \size small
21406 Don't mix quotes.
21407 \end_layout
21408
21409 \begin_layout Enumerate
21410
21411 \size small
21412 You should perhaps use 
21413 \begin_inset Quotes eld
21414 \end_inset
21415
21416
21417 \family typewriter
21418 cmd
21419 \family default
21420
21421 \begin_inset Quotes erd
21422 \end_inset
21423
21424  instead.
21425 \end_layout
21426
21427 \begin_layout Enumerate
21428
21429 \size small
21430 You should put a space in front of/after parenthesis.
21431 \end_layout
21432
21433 \begin_layout Enumerate
21434
21435 \size small
21436 You should avoid spaces in front of/after parenthesis.
21437 \end_layout
21438
21439 \begin_layout Enumerate
21440
21441 \size small
21442 \emph on
21443 You should not use punctuation in front of/after quotes.
21444 \end_layout
21445
21446 \begin_layout Enumerate
21447
21448 \size small
21449 Double space found.
21450 \end_layout
21451
21452 \begin_layout Enumerate
21453
21454 \size small
21455 You should put punctuation outside inner/inside display math mode.
21456 \end_layout
21457
21458 \begin_layout Enumerate
21459
21460 \size small
21461 You ought to not use primitive \SpecialChar TeX
21462  in \SpecialChar LaTeX
21463  code.
21464 \end_layout
21465
21466 \begin_layout Enumerate
21467
21468 \size small
21469 You should remove spaces in front of 
21470 \begin_inset Quotes eld
21471 \end_inset
21472
21473
21474 \family typewriter
21475 %s
21476 \family default
21477
21478 \begin_inset Quotes erd
21479 \end_inset
21480
21481
21482 \end_layout
21483
21484 \begin_layout Enumerate
21485
21486 \size small
21487 \begin_inset Quotes eld
21488 \end_inset
21489
21490
21491 \family typewriter
21492 %s
21493 \family default
21494
21495 \begin_inset Quotes erd
21496 \end_inset
21497
21498  is normally not followed by 
21499 \begin_inset Quotes eld
21500 \end_inset
21501
21502
21503 \family typewriter
21504 %c
21505 \family default
21506
21507 \begin_inset Quotes erd
21508 \end_inset
21509
21510 .
21511 \end_layout
21512
21513 \begin_layout Standard
21514 In later versions of \SpecialChar LyX
21515 , we hope to provide a more complete interface to this
21516  tool (and it's smaller cousin 
21517 \family typewriter
21518 lacheck
21519 \family default
21520 ) to exploit the full power of it.
21521  But it's not exactly useless as it is now: go try it on one of your existing
21522  documents of a certain length and be surprised.
21523 \end_layout
21524
21525 \begin_layout Section
21526 Version Control in \SpecialChar LyX
21527
21528 \end_layout
21529
21530 \begin_layout Standard
21531 by
21532 \noun on
21533  Lars Gullik Bjønnes 
21534 \noun default
21535 and 
21536 \noun on
21537 Pavel Sanda
21538 \end_layout
21539
21540 \begin_layout Subsection
21541 Introduction
21542 \end_layout
21543
21544 \begin_layout Standard
21545 \SpecialChar LyX
21546  supports some of the most basic RCS/CVS/SVN/GIT commands.
21547  If you need something a bit more sophisticated you will have to do that
21548  manually in a terminal.
21549 \end_layout
21550
21551 \begin_layout Standard
21552 Also note that CVS support is not as good as subversion support, so we advise
21553  using SVN instead.
21554  A good place to start learning Subversion is the SVN Book
21555 \begin_inset Foot
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 \begin_inset CommandInset href
21560 LatexCommand href
21561 target "http://svnbook.red-bean.com/"
21562 literal "false"
21563
21564 \end_inset
21565
21566
21567 \end_layout
21568
21569 \end_inset
21570
21571 .
21572  In the case of RCS you should read 
21573 \begin_inset Quotes eld
21574 \end_inset
21575
21576 rcsintro
21577 \begin_inset Quotes erd
21578 \end_inset
21579
21580  (a man file, read it with 
21581 \family typewriter
21582 man rcsintro
21583 \family default
21584 ).
21585  This file describes all the basic features of RCS.
21586  You should especially notice the comment about a RCS directory, and the
21587  notion of a master RCS file (the file ending in 
21588 \family typewriter
21589 ,v
21590 \family default
21591 ).
21592 \end_layout
21593
21594 \begin_layout Standard
21595 Before you begin to use the version control features in \SpecialChar LyX
21596 , you should be
21597  familiar with RCS/CVS/SVN/GIT usage.
21598  The implementation in \SpecialChar LyX
21599  assumes a recent version of the GNU RCS or CVS/SVN
21600  package — no guarantees are made for older versions.
21601  Most of the log messages are not currently displayed after operations —
21602  you can check them in the Messages pane if you are unsure.
21603  Regular users of version control will appreciate the VC toolbar, which
21604  can be enabled via 
21605 \family sans
21606 View\SpecialChar menuseparator
21607 Toolbars\SpecialChar menuseparator
21608 Version
21609 \begin_inset space ~
21610 \end_inset
21611
21612 Control
21613 \family default
21614 .
21615 \end_layout
21616
21617 \begin_layout Standard
21618 For introducing your own external commands consult 
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623 vc-command
21624 \end_layout
21625
21626 \end_inset
21627
21628  in the manual 
21629 \emph on
21630 \SpecialChar LyX
21631  Functions
21632 \emph default
21633 .
21634 \end_layout
21635
21636 \begin_layout Standard
21637 It is strongly recommended to store documents in uncompressed format if
21638  using version control (uncheck 
21639 \family sans
21640 Document\SpecialChar menuseparator
21641 Compressed
21642 \family default
21643  if it is checked): Uncompressed LyX documents are text files and therefore
21644  for merging two different versions by version control systems.
21645  Compressed LyX documents are binary files, which cannot be merged by version
21646  control systems.
21647 \end_layout
21648
21649 \begin_layout Subsection
21650 RCS commands in \SpecialChar LyX
21651
21652 \end_layout
21653
21654 \begin_layout Standard
21655 The following sections describe the RCS commands supported by \SpecialChar LyX
21656 .
21657  You can find them in the 
21658 \family sans
21659 File\SpecialChar menuseparator
21660 Version
21661 \begin_inset space ~
21662 \end_inset
21663
21664 Control
21665 \family default
21666  submenu.
21667  \SpecialChar LyX
21668  was tested against RCS 5.7/5.8.
21669 \end_layout
21670
21671 \begin_layout Subsubsection
21672
21673 \family sans
21674 Register
21675 \end_layout
21676
21677 \begin_layout Standard
21678 If your document is not under revision control, this is the only item shown
21679  in the menu.
21680  And if it is under revision control, the 
21681 \family sans
21682 Register
21683 \family default
21684  item is not visible.
21685  
21686 \end_layout
21687
21688 \begin_layout Standard
21689 This command registers your document with RCS (unless you are under the
21690  directory managed by CVS)\SpecialChar endofsentence
21691  You are asked interactively to supply an initial
21692  description of the document.
21693  The document is now set in Read-Only mode and you have to 
21694 \family sans
21695 Check
21696 \begin_inset space ~
21697 \end_inset
21698
21699 Out
21700 \begin_inset space ~
21701 \end_inset
21702
21703 For
21704 \begin_inset space ~
21705 \end_inset
21706
21707 Edit
21708 \family default
21709 , before making any changes to it.
21710  A document under revision control has a 
21711 \begin_inset Quotes eld
21712 \end_inset
21713
21714 [RCS:<version> <locker>]
21715 \begin_inset Quotes erd
21716 \end_inset
21717
21718  item tagged to the filename in the minibuffer.
21719 \end_layout
21720
21721 \begin_layout Standard
21722 RCS command that is run:
21723 \end_layout
21724
21725 \begin_layout LyX-Code
21726
21727 \family typewriter
21728 ci -q -u -i -t-"<initial description>" <file-name>
21729 \end_layout
21730
21731 \begin_layout Standard
21732 Read 
21733 \family typewriter
21734 man ci
21735 \family default
21736  to understand the switches.
21737  
21738 \end_layout
21739
21740 \begin_layout Subsubsection
21741
21742 \family sans
21743 Check In Changes
21744 \end_layout
21745
21746 \begin_layout Standard
21747 When you are finished editing a file, you check in your changes.
21748  When you do this, you are asked for a description of the changes.
21749  This is stored in the history log.
21750  The version number is bumped, your changes are applied to the master RCS
21751  file, the document is unlocked and set to Read-Only mode.
21752 \end_layout
21753
21754 \begin_layout Itemize
21755 RCS command: 
21756 \family typewriter
21757 ci -q -u -m"<description>" <file-name>
21758 \end_layout
21759
21760 \begin_layout Subsubsection
21761
21762 \family sans
21763 Check Out For Edit
21764 \end_layout
21765
21766 \begin_layout Standard
21767 By doing this you lock the document so that only you can edit it.
21768  This will also make the document Read-Write only for you.
21769  You will usually continue editing for a while and when you are finished
21770  you check in your changes.
21771  The status line is changed to reflect that you have locked the file.
21772 \end_layout
21773
21774 \begin_layout Itemize
21775 RCS command: 
21776 \family typewriter
21777 co -q -l <file-name>
21778 \end_layout
21779
21780 \begin_layout Subsubsection
21781
21782 \family sans
21783 Revert To Repository Version
21784 \end_layout
21785
21786 \begin_layout Standard
21787 This will discard all changes made to the document since the last check
21788  in.
21789  You get a warning before changes are discarded.
21790 \end_layout
21791
21792 \begin_layout Itemize
21793 RCS command: 
21794 \family typewriter
21795 co -f -u<version> <file-name>
21796 \end_layout
21797
21798 \begin_layout Subsubsection
21799
21800 \family sans
21801 Copy
21802 \end_layout
21803
21804 \begin_layout Standard
21805 This will create a copy of the current document.
21806  Since RCS does not support copy operations natively, the version history
21807  is not preserved, and the copy is added as a new file.
21808  It requires a clean document without any changes since the last checkin.
21809  You are asked for a file name and a description of the copy operation.
21810  After that the copy is created, both locally and in the repository.
21811  If the parent directories of the copied and original document differ, all
21812  relative paths of included files of the copy are adjusted (like in 
21813 \family sans
21814 File\SpecialChar menuseparator
21815 Save As
21816 \family default
21817 \SpecialChar ldots
21818 ).
21819  Finally, the copy is loaded instead of the original document.
21820 \end_layout
21821
21822 \begin_layout Labeling
21823 \labelwidthstring 00.00.0000
21824 RCS
21825 \begin_inset space ~
21826 \end_inset
21827
21828 commands: 
21829 \begin_inset space ~
21830 \end_inset
21831
21832
21833 \begin_inset Newline newline
21834 \end_inset
21835
21836 Copy 
21837 \begin_inset Flex Code
21838 status collapsed
21839
21840 \begin_layout Plain Layout
21841
21842 \family typewriter
21843 \begin_inset Quotes qld
21844 \end_inset
21845
21846 <file-name>
21847 \begin_inset Quotes qld
21848 \end_inset
21849
21850
21851 \end_layout
21852
21853 \end_inset
21854
21855  to 
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860
21861 \family typewriter
21862 \begin_inset Quotes qld
21863 \end_inset
21864
21865 <new-file-name>
21866 \begin_inset Quotes qld
21867 \end_inset
21868
21869
21870 \end_layout
21871
21872 \end_inset
21873
21874
21875 \begin_inset Newline newline
21876 \end_inset
21877
21878
21879 \begin_inset Flex Code
21880 status collapsed
21881
21882 \begin_layout Plain Layout
21883 ci -q -u 
21884 \family typewriter
21885 -i 
21886 \begin_inset Quotes qld
21887 \end_inset
21888
21889 <new-file-name>
21890 \begin_inset Quotes qld
21891 \end_inset
21892
21893
21894 \end_layout
21895
21896 \end_inset
21897
21898
21899 \end_layout
21900
21901 \begin_layout Subsubsection
21902
21903 \family sans
21904 Undo Last Checkin
21905 \end_layout
21906
21907 \begin_layout Standard
21908 This makes as if the last check in never happened.
21909  No changes are made to the document loaded into \SpecialChar LyX
21910 , but the last version
21911  is removed from the master RCS file.
21912 \end_layout
21913
21914 \begin_layout Itemize
21915 RCS command: 
21916 \family typewriter
21917 rcs -o<version> <file-name>
21918 \end_layout
21919
21920 \begin_layout Subsubsection
21921
21922 \family sans
21923 Show History
21924 \end_layout
21925
21926 \begin_layout Standard
21927 This shows the complete history of the RCS document.
21928  The output of 
21929 \family typewriter
21930 rlog <file-name>
21931 \family default
21932  is shown in a browser.
21933  See 
21934 \family typewriter
21935 man rlog
21936 \family default
21937  for more info.
21938 \end_layout
21939
21940 \begin_layout Subsubsection
21941 Revision info
21942 \end_layout
21943
21944 \begin_layout Standard
21945 \SpecialChar LyX
21946  supports RCS version number, author name, date and time of last commit.
21947  All those are extracted from 
21948 \family typewriter
21949 rlog -r <file-name>
21950 \family default
21951 .
21952  See 
21953 \begin_inset CommandInset ref
21954 LatexCommand ref
21955 reference "subsec:VCS-Revision-Information"
21956
21957 \end_inset
21958
21959  for details.
21960 \end_layout
21961
21962 \begin_layout Subsection
21963 CVS commands in \SpecialChar LyX
21964
21965 \end_layout
21966
21967 \begin_layout Standard
21968 A subset of CVS operations is supported by \SpecialChar LyX
21969 .
21970  You can find the commands in the 
21971 \family sans
21972 File\SpecialChar menuseparator
21973 Version
21974 \begin_inset space ~
21975 \end_inset
21976
21977 Control
21978 \family default
21979  submenu.
21980  The version control system SVN is more powerful, so please use it instead
21981  of CVS if possible.
21982 \end_layout
21983
21984 \begin_layout Subsubsection
21985
21986 \family sans
21987 General CVS usage
21988 \end_layout
21989
21990 \begin_layout Standard
21991 If you start from scratch with CVS you have to create your repository and
21992  checkout the working copy with external tools.
21993  If you're using a client-server setup you may need to login before doing
21994  the first repository checkout.
21995 \end_layout
21996
21997 \begin_layout Standard
21998 If your documents are under revision control and others are using the same
21999  repository problems arise when different changes to the same document at
22000  the same location happen.
22001  Standard CVS repositories don't operate with a file locking mechanism.
22002  This may be surprising, but conflicts only occur if people disagree on
22003  the proper content of the same part of a document.
22004  So, if co-workers are used to communicate regularly, these conflicts occur
22005  rarely.
22006  If they don't communicate they have a fundamental problem anyway.
22007  Nevertheless some people like to work with so called 
22008 \begin_inset Quotes eld
22009 \end_inset
22010
22011 reserved checkouts
22012 \begin_inset Quotes erd
22013 \end_inset
22014
22015 .
22016  If they do so the working copy of all files is readonly when checked out
22017  first and the user starts editing after using a special command to make
22018  the working copy writable.
22019  When the changes are checked in the working copy returns to readonly state.
22020  With \SpecialChar LyX
22021  one has to edit the 
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 .cvsrc
22027 \end_layout
22028
22029 \end_inset
22030
22031  file and add the line 
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 cvs -r
22037 \end_layout
22038
22039 \end_inset
22040
22041  to work with reserved checkouts.
22042  The benefit is the possibility to see who is using a writable copy of some
22043  document.
22044  It's not guaranteed only one user makes a copy writable.
22045 \end_layout
22046
22047 \begin_layout Standard
22048 \SpecialChar LyX
22049  tries to guess if you're using reserved or non-reserved checkouts.
22050  If your working copy is readonly or it is writable and an additional copy
22051  of your document exists in the CVS/Base sub-directory a reserved otherwise
22052  a non-reserved checkout is assumed.
22053  When a reserved checkout is detected you have to use 
22054 \begin_inset Flex Noun
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058 Check Out
22059 \end_layout
22060
22061 \end_inset
22062
22063  to make your working copy writable if it's readonly.
22064  After doing so the 
22065 \begin_inset Flex Noun
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069 Check In
22070 \end_layout
22071
22072 \end_inset
22073
22074  operation is possible and that makes your working copy readonly again after
22075  transferring your changes to the repository.
22076 \end_layout
22077
22078 \begin_layout Standard
22079 More information about CVS can be found here 
22080 \begin_inset Flex URL
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084
22085 http://www.nongnu.org/cvs
22086 \end_layout
22087
22088 \end_inset
22089
22090  and here 
22091 \begin_inset Flex URL
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095
22096 http://ximbiot.com/cvs
22097 \end_layout
22098
22099 \end_inset
22100
22101 .
22102 \end_layout
22103
22104 \begin_layout Standard
22105 Read 
22106 \family typewriter
22107 man cvs
22108 \family default
22109  to understand the sub-commands and the switches mentioned below.
22110 \end_layout
22111
22112 \begin_layout Subsubsection
22113
22114 \family sans
22115 Register
22116 \end_layout
22117
22118 \begin_layout Standard
22119 If your document is not under revision control, this is the only item shown
22120  in the menu.
22121  And if it is under revision control, the 
22122 \family sans
22123 Register
22124 \family default
22125  item is not visible.
22126  
22127 \end_layout
22128
22129 \begin_layout Standard
22130 This command registers in CVS your document 
22131 \begin_inset Flex Strong
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135
22136 \emph on
22137 only
22138 \end_layout
22139
22140 \end_inset
22141
22142  in the case you have already the documents directory under CVS control
22143  (in particular 
22144 \family typewriter
22145 CVS/Entries
22146 \family default
22147  file exists).
22148  This means you have to create or checkout the archive by yourself using
22149  external tools.
22150  (In case you forget that step \SpecialChar LyX
22151  registers the document with RCS.)
22152 \end_layout
22153
22154 \begin_layout Standard
22155 Then you are asked interactively to supply an initial description of the
22156  document.
22157  Don't forget that registered file is not yet checked in.
22158 \end_layout
22159
22160 \begin_layout Standard
22161 CVS command that is run: 
22162 \family typewriter
22163 cvs -q add -m"<entered message>" "<file-name>"
22164 \end_layout
22165
22166 \begin_layout Standard
22167 The term 
22168 \family typewriter
22169 "<file-name>"
22170 \family default
22171  above and for all other CVS commands is an abbreviation for 
22172 \begin_inset Quotes eld
22173 \end_inset
22174
22175 change the current working directory to file location and use the file name
22176  without path component as argument
22177 \begin_inset Quotes erd
22178 \end_inset
22179
22180 .
22181 \end_layout
22182
22183 \begin_layout Subsubsection
22184
22185 \family sans
22186 Check In Changes
22187 \end_layout
22188
22189 \begin_layout Standard
22190 When you are finished editing a file, you commit your changes.
22191  When you do this and you had changed the document, you are asked for a
22192  description of the changes.
22193  After that changes are written to the repository.
22194  In case you didn't change the document and a reserved checkout is detected
22195  the reservation made on 
22196 \begin_inset Flex Noun
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200 Check Out
22201 \end_layout
22202
22203 \end_inset
22204
22205  is undone.
22206 \end_layout
22207
22208 \begin_layout Labeling
22209 \labelwidthstring 00.00.0000
22210 CVS
22211 \begin_inset space ~
22212 \end_inset
22213
22214 command: 
22215 \begin_inset space ~
22216 \end_inset
22217
22218
22219 \begin_inset Newline newline
22220 \end_inset
22221
22222
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 cvs 
22228 \family typewriter
22229 -q commit -m"<description>" "<file-name>"
22230 \end_layout
22231
22232 \end_inset
22233
22234  or
22235 \begin_inset Newline newline
22236 \end_inset
22237
22238
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243 cvs -q unedit 
22244 \family typewriter
22245 "<file-name>"
22246 \end_layout
22247
22248 \end_inset
22249
22250
22251 \end_layout
22252
22253 \begin_layout Subsubsection
22254
22255 \family sans
22256 Check Out Changes
22257 \end_layout
22258
22259 \begin_layout Standard
22260 When you are sharing a repository with others, you may have to incorporate
22261  their changes into your working copy.
22262 \end_layout
22263
22264 \begin_layout Standard
22265 CVS command: 
22266 \family typewriter
22267 cvs -q update "<file-name>"
22268 \end_layout
22269
22270 \begin_layout Standard
22271 If a readonly checkout is detected the working copy is made writable and
22272  reserved.
22273 \end_layout
22274
22275 \begin_layout Standard
22276 CVS command: 
22277 \family typewriter
22278 cvs -q edit "<file-name>"
22279 \end_layout
22280
22281 \begin_layout Subsubsection
22282
22283 \family sans
22284 Revert To Repository Version
22285 \end_layout
22286
22287 \begin_layout Standard
22288 This will discard all changes made to the document since the last check
22289  in.
22290  You get a warning before changes are discarded.
22291  Firstly the file is deleted, secondly CVS update command is run.
22292 \end_layout
22293
22294 \begin_layout Standard
22295 CVS command: 
22296 \family typewriter
22297 cvs -q update "<file-name>"
22298 \end_layout
22299
22300 \begin_layout Standard
22301 If a reserved checkout is detected and the working copy has no changes only
22302  the reservation is undone.
22303 \end_layout
22304
22305 \begin_layout Standard
22306 CVS command: 
22307 \family typewriter
22308 cvs -q unedit "<file-name>"
22309 \end_layout
22310
22311 \begin_layout Subsubsection
22312
22313 \family sans
22314 Copy
22315 \end_layout
22316
22317 \begin_layout Standard
22318 This will create a copy of the current document.
22319  Since CVS does not support copy operations natively, the version history
22320  is not preserved, and the copy is added as a new file.
22321  It requires a clean document without any changes since the last checkin.
22322  You are asked for a file name and a description of the copy operation.
22323  After that the copy is created, both locally and in the repository.
22324  If the parent directories of the copied and original document differ, all
22325  relative paths of included files of the copy are adjusted (like in 
22326 \family sans
22327 File\SpecialChar menuseparator
22328 Save As
22329 \family default
22330 \SpecialChar ldots
22331 ).
22332  Finally, the copy is loaded instead of the original document.
22333 \end_layout
22334
22335 \begin_layout Labeling
22336 \labelwidthstring 00.00.0000
22337 CVS
22338 \begin_inset space ~
22339 \end_inset
22340
22341 commands: 
22342 \begin_inset space ~
22343 \end_inset
22344
22345
22346 \begin_inset Newline newline
22347 \end_inset
22348
22349 Copy 
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 "<file-name>"
22355 \end_layout
22356
22357 \end_inset
22358
22359  to 
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 "<new-file-name>"
22365 \end_layout
22366
22367 \end_inset
22368
22369
22370 \begin_inset Newline newline
22371 \end_inset
22372
22373
22374 \begin_inset Flex Code
22375 status collapsed
22376
22377 \begin_layout Plain Layout
22378 cvs -q add "<new-file-name>"
22379 \end_layout
22380
22381 \end_inset
22382
22383
22384 \end_layout
22385
22386 \begin_layout Subsubsection
22387
22388 \family sans
22389 Rename
22390 \end_layout
22391
22392 \begin_layout Standard
22393 This will rename the current document.
22394  Since CVS does not support rename operations natively, the version history
22395  is not preserved, the renamed document is added as a new file, and the
22396  original document is deleted.
22397  It requires a clean document without any changes since the last checkin.
22398  You are asked for a file name and a description of the rename operation.
22399  After that the document is renamed, both locally and in the repository.
22400  If the parent directories of the new and old file names differ, all relative
22401  paths of included files are adjusted (like in 
22402 \family sans
22403 File\SpecialChar menuseparator
22404 Save As
22405 \family default
22406 \SpecialChar ldots
22407 ).
22408  Finally, the document is reloaded using the new name.
22409 \end_layout
22410
22411 \begin_layout Labeling
22412 \labelwidthstring 00.00.0000
22413 CVS
22414 \begin_inset space ~
22415 \end_inset
22416
22417 commands: 
22418 \begin_inset space ~
22419 \end_inset
22420
22421
22422 \begin_inset Newline newline
22423 \end_inset
22424
22425 Rename 
22426 \begin_inset Flex Code
22427 status collapsed
22428
22429 \begin_layout Plain Layout
22430 "<file-name>"
22431 \end_layout
22432
22433 \end_inset
22434
22435  to 
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 "<new-file-name>"
22441 \end_layout
22442
22443 \end_inset
22444
22445
22446 \begin_inset Newline newline
22447 \end_inset
22448
22449
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 cvs -q add "<new-file-name>"
22455 \end_layout
22456
22457 \end_inset
22458
22459
22460 \begin_inset Newline newline
22461 \end_inset
22462
22463
22464 \begin_inset Flex Code
22465 status collapsed
22466
22467 \begin_layout Plain Layout
22468 cvs -q remove "<file-name>"
22469 \end_layout
22470
22471 \end_inset
22472
22473
22474 \end_layout
22475
22476 \begin_layout Subsubsection
22477 Update of the local directory checkout from repository
22478 \end_layout
22479
22480 \begin_layout Standard
22481 Once your documents gets more complex, containing sub-documents and pictures,
22482  including external 
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 .tex
22488 \end_layout
22489
22490 \end_inset
22491
22492  files and so on using version control becomes more complicated.
22493  \SpecialChar LyX
22494  supports updating the whole tree in which resides the document.
22495  This become especially useful once you cooperate with people which neither
22496  have detailed knowledge about CVS usage nor they have ambition to commit
22497  additional material to the repository.
22498  You have to organize the files structure so that all external files are
22499  in the same directory or subdirectories of the document.
22500  It's good practice anyway to store multipart documents in an extra directory.
22501 \end_layout
22502
22503 \begin_layout Standard
22504 The 
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 Update local directory from repository
22510 \end_layout
22511
22512 \end_inset
22513
22514  command updates the whole directory.
22515  If local changes are detected user is warned before update starts.
22516  In case of merge conflicts both versions of the conflicting document parts
22517  are placed in the final document.
22518  You have to review and correct the result of the merge.
22519  You'll find the conflicts enclosed in pairs of 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524 <<<<<<<
22525 \end_layout
22526
22527 \end_inset
22528
22529  and 
22530 \begin_inset Flex Code
22531 status collapsed
22532
22533 \begin_layout Plain Layout
22534 >>>>>>>
22535 \end_layout
22536
22537 \end_inset
22538
22539  separated by 
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 =======
22545 \end_layout
22546
22547 \end_inset
22548
22549 .
22550  The first part is your version as before the update operation with the
22551  document name prepended.
22552  The second one is the repository version with the version number after
22553  the sequence of 
22554 \begin_inset Flex Code
22555 status collapsed
22556
22557 \begin_layout Plain Layout
22558 >
22559 \end_layout
22560
22561 \end_inset
22562
22563  signs.
22564 \end_layout
22565
22566 \begin_layout Labeling
22567 \labelwidthstring 00.00.0000
22568 CVS
22569 \begin_inset space ~
22570 \end_inset
22571
22572 commands: 
22573 \begin_inset space ~
22574 \end_inset
22575
22576
22577 \begin_inset Newline newline
22578 \end_inset
22579
22580
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 cd $path; cvs diff 
22586 \family typewriter
22587 "."
22588 \end_layout
22589
22590 \end_inset
22591
22592  (Ask if changes are detected.)
22593 \begin_inset Newline newline
22594 \end_inset
22595
22596
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 cd $path; cvs -q update 
22602 \family typewriter
22603 "."
22604 \end_layout
22605
22606 \end_inset
22607
22608
22609 \end_layout
22610
22611 \begin_layout Standard
22612 where 
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 $path
22618 \end_layout
22619
22620 \end_inset
22621
22622  stands for the path to the document.
22623 \end_layout
22624
22625 \begin_layout Subsubsection
22626
22627 \family sans
22628 Show History
22629 \end_layout
22630
22631 \begin_layout Standard
22632 This shows the complete history of the CVS document.
22633  The output of 
22634 \family typewriter
22635 cvs log "<file-name>"
22636 \family default
22637  is shown in a browser.
22638 \end_layout
22639
22640 \begin_layout Subsubsection
22641 Revision info
22642 \end_layout
22643
22644 \begin_layout Standard
22645 \SpecialChar LyX
22646  supports CVS version number, author name, date and time of last commit.
22647  All those are extracted from 
22648 \family typewriter
22649 cvs log -r <file-name>
22650 \family default
22651 .
22652  See 
22653 \begin_inset CommandInset ref
22654 LatexCommand ref
22655 reference "subsec:VCS-Revision-Information"
22656
22657 \end_inset
22658
22659  for details.
22660 \end_layout
22661
22662 \begin_layout Subsection
22663 SVN commands in \SpecialChar LyX
22664
22665 \end_layout
22666
22667 \begin_layout Standard
22668 SVN is now partially supported by \SpecialChar LyX
22669 .
22670  You can find the commands in the 
22671 \family sans
22672 File\SpecialChar menuseparator
22673 Version
22674 \begin_inset space ~
22675 \end_inset
22676
22677 Control
22678 \family default
22679  submenu.
22680  Please note that if you use password protected access to repository via
22681  ssh, you will be asked in terminal window.
22682  \SpecialChar LyX
22683  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22684 \begin_inset Foot
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688 Most of the commands will work with 1.4 too, see 
22689 \begin_inset CommandInset ref
22690 LatexCommand ref
22691 reference "subsec:SVN-Repo-Update"
22692
22693 \end_inset
22694
22695 .
22696  There seems to be currently unresolved permissions problem under SVN 1.8
22697  with reverting changes when file is locked.
22698 \end_layout
22699
22700 \end_inset
22701
22702
22703 \end_layout
22704
22705 \begin_layout Subsubsection
22706
22707 \family sans
22708 Register
22709 \end_layout
22710
22711 \begin_layout Standard
22712 If your document is not under revision control, this is the only item shown
22713  in the menu.
22714  And if it is under revision control, the 
22715 \family sans
22716 Register
22717 \family default
22718  item is not visible.
22719 \end_layout
22720
22721 \begin_layout Standard
22722 This command registers in SVN your document ONLY in case you have already
22723  the documents directory under SVN control (in particular 
22724 \family typewriter
22725 .svn/entries
22726 \family default
22727  file exists).
22728  This means you have to checkout the archive by yourself.
22729 \end_layout
22730
22731 \begin_layout Standard
22732 Then you are asked interactively to supply an initial description of the
22733  document.
22734  Don't forget that registered file is not yet commited.
22735 \end_layout
22736
22737 \begin_layout Standard
22738 SVN command that is run: 
22739 \family typewriter
22740 svn add -q 
22741 \begin_inset Quotes qld
22742 \end_inset
22743
22744 <file-name>
22745 \begin_inset Quotes qld
22746 \end_inset
22747
22748
22749 \end_layout
22750
22751 \begin_layout Standard
22752 Read 
22753 \family typewriter
22754 man svn
22755 \family default
22756  to understand the switches.
22757 \end_layout
22758
22759 \begin_layout Subsubsection
22760
22761 \family sans
22762 Check In Changes
22763 \end_layout
22764
22765 \begin_layout Standard
22766 When you are finished editing a file, you commit your changes.
22767  When you do this, you are asked for a description of the changes.
22768  After that changes are commited.
22769 \end_layout
22770
22771 \begin_layout Standard
22772 SVN command:
22773 \begin_inset Foot
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 In case locking is not enabled.
22778  See Section 
22779 \begin_inset CommandInset ref
22780 LatexCommand ref
22781 reference "subsec:SVN-File-Locking"
22782
22783 \end_inset
22784
22785 .
22786 \end_layout
22787
22788 \end_inset
22789
22790  
22791 \family typewriter
22792 svn commit -q -m"<description>" <file-name>
22793 \end_layout
22794
22795 \begin_layout Subsubsection
22796
22797 \family sans
22798 Check Out For Edit
22799 \end_layout
22800
22801 \begin_layout Standard
22802 Updates the changes of this file from the repository.
22803  Be sure you understand SVN merging and conflicts resolving before using
22804  this function, because all conflicts has to be resolved manually by you!
22805 \end_layout
22806
22807 \begin_layout Standard
22808 SVN command:
22809 \begin_inset Foot
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 Ditto.
22814 \end_layout
22815
22816 \end_inset
22817
22818  
22819 \family typewriter
22820 svn update --non-interactive 
22821 \begin_inset Quotes qld
22822 \end_inset
22823
22824 <file-name>
22825 \begin_inset Quotes qld
22826 \end_inset
22827
22828
22829 \end_layout
22830
22831 \begin_layout Subsubsection
22832
22833 \family sans
22834 Revert To Repository Version
22835 \end_layout
22836
22837 \begin_layout Standard
22838 This will discard all changes made to the document since the last check
22839  in.
22840  You get a warning before changes are discarded.
22841 \end_layout
22842
22843 \begin_layout Standard
22844 SVN command: 
22845 \family typewriter
22846 svn revert -q 
22847 \begin_inset Quotes qld
22848 \end_inset
22849
22850 <file-name>
22851 \begin_inset Quotes qld
22852 \end_inset
22853
22854
22855 \end_layout
22856
22857 \begin_layout Subsubsection
22858
22859 \family sans
22860 Copy
22861 \end_layout
22862
22863 \begin_layout Standard
22864 This will create a copy of the current document including the version history.
22865  It requires a clean document without any changes since the last checkin.
22866  You are asked for a file name and a description of the copy operation.
22867  After that the copy is created, both locally and in the repository.
22868  If the parent directories of the copied and original document differ, all
22869  relative paths of included files of the copy are adjusted (like in 
22870 \family sans
22871 File\SpecialChar menuseparator
22872 Save As
22873 \family default
22874 \SpecialChar ldots
22875 ).
22876  Finally, the copy is loaded instead of the original document.
22877 \end_layout
22878
22879 \begin_layout Labeling
22880 \labelwidthstring 00.00.0000
22881 SVN
22882 \begin_inset space ~
22883 \end_inset
22884
22885 commands: 
22886 \begin_inset space ~
22887 \end_inset
22888
22889
22890 \begin_inset Newline newline
22891 \end_inset
22892
22893
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 svn copy -q 
22899 \family typewriter
22900
22901 \begin_inset Quotes qld
22902 \end_inset
22903
22904 <file-name>
22905 \begin_inset Quotes qld
22906 \end_inset
22907
22908  
22909 \begin_inset Quotes qld
22910 \end_inset
22911
22912 <new-file-name>
22913 \begin_inset Quotes qld
22914 \end_inset
22915
22916
22917 \end_layout
22918
22919 \end_inset
22920
22921
22922 \begin_inset Newline newline
22923 \end_inset
22924
22925
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 svn commit
22931 \end_layout
22932
22933 \end_inset
22934
22935
22936 \end_layout
22937
22938 \begin_layout Subsubsection
22939
22940 \family sans
22941 Rename
22942 \end_layout
22943
22944 \begin_layout Standard
22945 This will rename the current document including the version history.
22946  It requires a clean document without any changes since the last checkin.
22947  You are asked for a file name and a description of the rename operation.
22948  After that the document is renamed, both locally and in the repository.
22949  If the parent directories of the new and old file names differ, all relative
22950  paths of included files are adjusted (like in 
22951 \family sans
22952 File\SpecialChar menuseparator
22953 Save As
22954 \family default
22955 \SpecialChar ldots
22956 ).
22957  Finally, the document is reloaded using the new name.
22958 \end_layout
22959
22960 \begin_layout Labeling
22961 \labelwidthstring 00.00.0000
22962 SVN
22963 \begin_inset space ~
22964 \end_inset
22965
22966 commands: 
22967 \begin_inset space ~
22968 \end_inset
22969
22970
22971 \begin_inset Newline newline
22972 \end_inset
22973
22974
22975 \begin_inset Flex Code
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 svn move -q 
22980 \family typewriter
22981
22982 \begin_inset Quotes qld
22983 \end_inset
22984
22985 <file-name>
22986 \begin_inset Quotes qld
22987 \end_inset
22988
22989  
22990 \begin_inset Quotes qld
22991 \end_inset
22992
22993 <new-file-name>
22994 \begin_inset Quotes qld
22995 \end_inset
22996
22997
22998 \end_layout
22999
23000 \end_inset
23001
23002
23003 \begin_inset Newline newline
23004 \end_inset
23005
23006
23007 \begin_inset Flex Code
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 svn commit
23012 \end_layout
23013
23014 \end_inset
23015
23016
23017 \end_layout
23018
23019 \begin_layout Subsubsection
23020 \begin_inset CommandInset label
23021 LatexCommand label
23022 name "subsec:SVN-Repo-Update"
23023
23024 \end_inset
23025
23026 Update of the local directory checkout from repository
23027 \begin_inset Foot
23028 status collapsed
23029
23030 \begin_layout Plain Layout
23031 Note that this command will work only with subversion 
23032 \begin_inset Formula $\geqq1.5$
23033 \end_inset
23034
23035
23036 \end_layout
23037
23038 \end_inset
23039
23040
23041 \end_layout
23042
23043 \begin_layout Standard
23044 All the commands above have one shortcoming – they deal with the current
23045  document only.
23046  Once your document contains pictures, includes external 
23047 \begin_inset Flex Code
23048 status collapsed
23049
23050 \begin_layout Plain Layout
23051 .tex
23052 \end_layout
23053
23054 \end_inset
23055
23056  files and so on administration becomes more complicated.
23057  \SpecialChar LyX
23058  now supports updating the whole tree in which resides the document
23059 \begin_inset Foot
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063 One need to organize the files structure so that all external files are
23064  in the same directory or subdirectories of the document.
23065  
23066 \end_layout
23067
23068 \end_inset
23069
23070 .
23071  This become especially useful once you cooperate with people which neither
23072  know about subversion management nor they have ambition to commit additional
23073  material to the repository.
23074  
23075 \end_layout
23076
23077 \begin_layout Standard
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 Update local directory from repository
23083 \end_layout
23084
23085 \end_inset
23086
23087  command updates the whole directory and in case of merge conflicts local
23088  version of the files are left, so no unintended data loss occurs.
23089  If local changes are detected user is warned before update starts.
23090 \end_layout
23091
23092 \begin_layout Labeling
23093 \labelwidthstring 00.00.0000
23094 SVN
23095 \begin_inset space ~
23096 \end_inset
23097
23098 commands: 
23099 \begin_inset space ~
23100 \end_inset
23101
23102
23103 \begin_inset Newline newline
23104 \end_inset
23105
23106
23107 \begin_inset Flex Code
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 svn diff $path
23112 \end_layout
23113
23114 \end_inset
23115
23116  (Ask if changes are detected.)
23117 \begin_inset Newline newline
23118 \end_inset
23119
23120
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 svn update --accept mine-full $path
23126 \end_layout
23127
23128 \end_inset
23129
23130
23131 \end_layout
23132
23133 \begin_layout Standard
23134 where 
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 $path
23140 \end_layout
23141
23142 \end_inset
23143
23144  stands for the path to the document.
23145 \end_layout
23146
23147 \begin_layout Subsubsection
23148
23149 \family sans
23150 Show History
23151 \end_layout
23152
23153 \begin_layout Standard
23154 This shows the complete history of the SVN document.
23155  The output of 
23156 \family typewriter
23157 svn log 
23158 \begin_inset Quotes qld
23159 \end_inset
23160
23161 <file-name>
23162 \begin_inset Quotes qld
23163 \end_inset
23164
23165
23166 \family default
23167  is shown in a browser.
23168 \end_layout
23169
23170 \begin_layout Subsubsection
23171 File Locking
23172 \begin_inset CommandInset label
23173 LatexCommand label
23174 name "subsec:SVN-File-Locking"
23175
23176 \end_inset
23177
23178
23179 \end_layout
23180
23181 \begin_layout Standard
23182 The file exchange through various revision control systems brings the problem
23183  of merge conflicts in case two different users try to edit the same (parts
23184  of) document.
23185  When such a conflict happens it needs manual resolving and one reasonable
23186  alternative is to provide some kind of locking mechanism, which guarantees
23187  that only one user is allowed to edit file at the given time.
23188 \end_layout
23189
23190 \begin_layout Standard
23191 SVN has two such mechanisms to provide mutual exclusivity for file access
23192  – locks and automatic setting of write permissions (see sec.
23193  
23194 \begin_inset CommandInset ref
23195 LatexCommand ref
23196 reference "subsec:Automatical-Locking-Property"
23197
23198 \end_inset
23199
23200 ) based on 
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205 svn:needs-lock
23206 \end_layout
23207
23208 \end_inset
23209
23210  file svn property
23211 \begin_inset Foot
23212 status collapsed
23213
23214 \begin_layout Plain Layout
23215 \begin_inset Flex URL
23216 status open
23217
23218 \begin_layout Plain Layout
23219
23220 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23221 \end_layout
23222
23223 \end_inset
23224
23225
23226 \end_layout
23227
23228 \end_inset
23229
23230 .
23231  If this property is detected for a given document \SpecialChar LyX
23232  starts to use SVN locks
23233  for document editing automatically and the whole check-in/out mechanism
23234  switches to the same regimen as for RCS.
23235  This in particular means there are two different modes of file use in \SpecialChar LyX
23236 :
23237 \end_layout
23238
23239 \begin_layout Itemize
23240 Unlocked state.
23241  The loaded file is in the read-only mode.
23242  For editing on needs to check-out.
23243  
23244 \emph on
23245 Check-out
23246 \emph default
23247  consists of updating from the repository and gaining write lock.
23248  If the lock is not possible to obtain, we remain in unlocked state.
23249 \end_layout
23250
23251 \begin_layout Itemize
23252 Locked state.
23253  The loaded file is in the 
23254 \begin_inset Quotes els
23255 \end_inset
23256
23257 normal
23258 \begin_inset Quotes ers
23259 \end_inset
23260
23261  edit mode.
23262  No other user is allowed to edit the file.
23263  
23264 \emph on
23265 Check-in
23266 \emph default
23267  consists of commiting changes and releasing write-lock.
23268  If no changes have been made to the document, no commit will be produced
23269 \begin_inset Foot
23270 status collapsed
23271
23272 \begin_layout Plain Layout
23273 Don't be puzzled by the fact that you will be asked for commit message anyway.
23274 \end_layout
23275
23276 \end_inset
23277
23278  and only the write-lock will be released.
23279 \end_layout
23280
23281 \begin_layout Standard
23282 SVN commands:
23283 \end_layout
23284
23285 \begin_layout Labeling
23286 \labelwidthstring 00.00.0000
23287 Check-in:
23288 \family typewriter
23289  svn commit -q -m"<description>" "<file-name>"
23290 \begin_inset Newline newline
23291 \end_inset
23292
23293 svn unlock "<file-name>"
23294 \end_layout
23295
23296 \begin_layout Labeling
23297 \labelwidthstring 00.00.0000
23298 Check-out: 
23299 \family typewriter
23300 svn update "<file-name>"
23301 \begin_inset Newline newline
23302 \end_inset
23303
23304 svn lock "<file-name>"
23305 \end_layout
23306
23307 \begin_layout Subsubsection
23308
23309 \family typewriter
23310 \begin_inset CommandInset label
23311 LatexCommand label
23312 name "subsec:Automatical-Locking-Property"
23313
23314 \end_inset
23315
23316
23317 \family default
23318 Automatic Locking Property
23319 \end_layout
23320
23321 \begin_layout Standard
23322 The above mentioned automatic setting of write permissions of the .lyx file
23323  can be set through
23324 \family sans
23325  File\SpecialChar menuseparator
23326 Version
23327 \begin_inset space ~
23328 \end_inset
23329
23330 Control\SpecialChar menuseparator
23331 Use Locking Property
23332 \family default
23333 .
23334  This command is active only when the file is not locked on the svn server
23335  (i.e.
23336  you need to check-out before proceeding).
23337 \end_layout
23338
23339 \begin_layout Labeling
23340 \labelwidthstring 00.00.0000
23341 SVN
23342 \begin_inset space ~
23343 \end_inset
23344
23345 commands:
23346 \end_layout
23347
23348 \begin_layout Labeling
23349 \labelwidthstring 00.00.0000
23350 Set:
23351 \family typewriter
23352  svn propset svn:needs-lock ON "<file-name>"
23353 \end_layout
23354
23355 \begin_layout Labeling
23356 \labelwidthstring 00.00.0000
23357 Unset: 
23358 \family typewriter
23359 svn propdel svn:needs-lock "<file-name>"
23360 \end_layout
23361
23362 \begin_layout Subsubsection
23363 \begin_inset CommandInset label
23364 LatexCommand label
23365 name "subsec:VCS-Revision-Information"
23366
23367 \end_inset
23368
23369 Revision Information in Documents
23370 \end_layout
23371
23372 \begin_layout Standard
23373 There are more possibilities how to activate revision information in our
23374  document.
23375 \end_layout
23376
23377 \begin_layout Itemize
23378 \SpecialChar LyX
23379  supports directly:
23380 \end_layout
23381
23382 \begin_deeper
23383 \begin_layout Itemize
23384 tree revision information (
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 vcs-tree-revision
23390 \end_layout
23391
23392 \end_inset
23393
23394 ).
23395  The result is the output of the 
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 svnversion
23401 \end_layout
23402
23403 \end_inset
23404
23405  command, the following table gives you an idea, how to read the results.
23406 \end_layout
23407
23408 \begin_layout Standard
23409 \align center
23410 \begin_inset Tabular
23411 <lyxtabular version="3" rows="6" columns="2">
23412 <features tabularvalignment="middle">
23413 <column alignment="left" valignment="top">
23414 <column alignment="left" valignment="top">
23415 <row>
23416 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23417 \begin_inset Text
23418
23419 \begin_layout Plain Layout
23420
23421 \series bold
23422 Output
23423 \end_layout
23424
23425 \end_inset
23426 </cell>
23427 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23428 \begin_inset Text
23429
23430 \begin_layout Plain Layout
23431
23432 \series bold
23433 Meaning
23434 \end_layout
23435
23436 \end_inset
23437 </cell>
23438 </row>
23439 <row>
23440 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23441 \begin_inset Text
23442
23443 \begin_layout Plain Layout
23444 4123:4168
23445 \end_layout
23446
23447 \end_inset
23448 </cell>
23449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23450 \begin_inset Text
23451
23452 \begin_layout Plain Layout
23453 mixed revision working copy
23454 \end_layout
23455
23456 \end_inset
23457 </cell>
23458 </row>
23459 <row>
23460 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23461 \begin_inset Text
23462
23463 \begin_layout Plain Layout
23464 4168M
23465 \end_layout
23466
23467 \end_inset
23468 </cell>
23469 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23470 \begin_inset Text
23471
23472 \begin_layout Plain Layout
23473 modified working copy
23474 \end_layout
23475
23476 \end_inset
23477 </cell>
23478 </row>
23479 <row>
23480 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23481 \begin_inset Text
23482
23483 \begin_layout Plain Layout
23484 4123S
23485 \end_layout
23486
23487 \end_inset
23488 </cell>
23489 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23490 \begin_inset Text
23491
23492 \begin_layout Plain Layout
23493 switched working copy
23494 \end_layout
23495
23496 \end_inset
23497 </cell>
23498 </row>
23499 <row>
23500 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23501 \begin_inset Text
23502
23503 \begin_layout Plain Layout
23504 4123P
23505 \end_layout
23506
23507 \end_inset
23508 </cell>
23509 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23510 \begin_inset Text
23511
23512 \begin_layout Plain Layout
23513 partial working copy, from a sparse checkout
23514 \end_layout
23515
23516 \end_inset
23517 </cell>
23518 </row>
23519 <row>
23520 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23521 \begin_inset Text
23522
23523 \begin_layout Plain Layout
23524 4123:4168MS
23525 \end_layout
23526
23527 \end_inset
23528 </cell>
23529 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23530 \begin_inset Text
23531
23532 \begin_layout Plain Layout
23533 mixed revision, modified, switched working copy
23534 \end_layout
23535
23536 \end_inset
23537 </cell>
23538 </row>
23539 </lyxtabular>
23540
23541 \end_inset
23542
23543
23544 \end_layout
23545
23546 \begin_layout Itemize
23547 file revision information.
23548  The result comes from parsing the output of 
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553 svn
23554 \begin_inset space ~
23555 \end_inset
23556
23557 info
23558 \begin_inset space ~
23559 \end_inset
23560
23561 --xml
23562 \begin_inset space ~
23563 \end_inset
23564
23565 file.lyx
23566 \end_layout
23567
23568 \end_inset
23569
23570 .
23571  Supported flags are:
23572 \end_layout
23573
23574 \begin_deeper
23575 \begin_layout Itemize
23576 version number of the last commit (
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 vcs-revision
23582 \end_layout
23583
23584 \end_inset
23585
23586 )
23587 \end_layout
23588
23589 \begin_layout Itemize
23590 author of the last commit (
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 vcs-author
23596 \end_layout
23597
23598 \end_inset
23599
23600 )
23601 \end_layout
23602
23603 \begin_layout Itemize
23604 date of the last commit (
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 vcs-date
23610 \end_layout
23611
23612 \end_inset
23613
23614 )
23615 \end_layout
23616
23617 \begin_layout Itemize
23618 time of the last commit (
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 vcs-time
23624 \end_layout
23625
23626 \end_inset
23627
23628 )
23629 \end_layout
23630
23631 \end_deeper
23632 \begin_layout Standard
23633 You can obtain this info via InsetInfo (
23634 \change_inserted 5863208 1564400022
23635
23636 \lang american
23637 Insert\SpecialChar menuseparator
23638 Field\SpecialChar menuseparator
23639 Version Control Revision
23640 \change_deleted 5863208 1564399852
23641
23642 \lang english
23643 e.g.
23644  
23645 \begin_inset Flex Code
23646 status collapsed
23647
23648 \begin_layout Plain Layout
23649 info-insert buffer vcs-date
23650 \end_layout
23651
23652 \end_inset
23653
23654
23655 \change_unchanged
23656 ).
23657  The information will be available only when you have the file stored under
23658  svn managment (i.e.
23659  the 
23660 \begin_inset Flex Code
23661 status collapsed
23662
23663 \begin_layout Plain Layout
23664 .svn
23665 \end_layout
23666
23667 \end_inset
23668
23669  directory is available with your document).
23670 \end_layout
23671
23672 \end_deeper
23673 \begin_layout Itemize
23674 Another—a hacking one—possibility is to use svn keywords
23675 \begin_inset Foot
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23680 \end_layout
23681
23682 \end_inset
23683
23684 .
23685  In short – you set file keywords property (e.g.
23686  
23687 \family sans
23688 svn propset svn:keywords 'Rev' file.lyx
23689 \family default
23690 ) and then paste keyword \SpecialChar TeX
23691  code
23692 \begin_inset Foot
23693 status collapsed
23694
23695 \begin_layout Plain Layout
23696 This is an easy way how to ensure that \SpecialChar LyX
23697  won't break the line in the middle
23698  of keyword tag.
23699 \end_layout
23700
23701 \end_inset
23702
23703  tag in your document (e.g.
23704  
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 $Rev$
23710 \end_layout
23711
23712 \end_inset
23713
23714 ).
23715  This way svn client will automatically substitute revision number (e.g.
23716  
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 $Rev: 59 $
23722 \end_layout
23723
23724 \end_inset
23725
23726 ) after each update and commit.
23727  There are more problems with this approach.
23728  Firstly, the '$' character is used in \SpecialChar TeX
23729  world for math equations, so any
23730  occurence of math formula 
23731 \begin_inset Formula $Rev$
23732 \end_inset
23733
23734  become 
23735 \begin_inset Formula $Rev:59$
23736 \end_inset
23737
23738  in your \SpecialChar LyX
23739  document.
23740  Similarly for other keywords like Id, Date, Author, etc.
23741  Secondly svn output is dependent on your locales, so its very easy that
23742  svn would produce some problematic strings once Date is used.
23743  Thirdly you get the whole 'Rev: 59' string in your document instead of
23744  the plain number.
23745  Until subversion implements user's custom keywords it will be hard to use
23746  this approach reliably or let \SpecialChar LyX
23747  to support it directly.
23748 \end_layout
23749
23750 \begin_layout Subsection
23751 SVN and Windows Environment
23752 \end_layout
23753
23754 \begin_layout Quote
23755 My inclination is to say that if the user cannot figure out the command
23756  line operations on their own fairly quickly, they would be well advised
23757  to use TortoiseSVN.
23758  —P.
23759  A.
23760  Rubin
23761 \end_layout
23762
23763 \begin_layout Subsubsection
23764 Preparation
23765 \end_layout
23766
23767 \begin_layout Standard
23768 In addition to installing \SpecialChar LyX
23769 , and having access to a Subversion repository,
23770  the user will need to install the Subversion client program.
23771  A Windows installer for the client program is available from 
23772 \begin_inset CommandInset href
23773 LatexCommand href
23774 name "CollabNet"
23775 target "http://www.collab.net/nonav/downloads/subversion/"
23776 literal "false"
23777
23778 \end_inset
23779
23780 .
23781  The user may also want to install 
23782 \begin_inset CommandInset href
23783 LatexCommand href
23784 name "TortoiseSVN"
23785 target "http://tortoisesvn.tigris.org/"
23786 literal "false"
23787
23788 \end_inset
23789
23790 , which integrates Subversion operations into the context (rightclick) menu
23791  of Windows Explorer.
23792  Operations done outside \SpecialChar LyX
23793  will typically be more convenient using the Explorer
23794  context menu.
23795  Note that TortoiseSVN is not a replacement for the client program, which
23796  is what \SpecialChar LyX
23797  itself will use.
23798 \end_layout
23799
23800 \begin_layout Subsubsection
23801 Bringing a document under Subversion control
23802 \end_layout
23803
23804 \begin_layout Standard
23805 Before a \SpecialChar LyX
23806  document can be brought under version control in Subversion, its
23807  parent directory needs to be under version control.
23808  If the document is being added to a project already in the repository,
23809  this is accomplished by checking the project out to the directory where
23810  the new document will be placed.
23811  If the project itself is not yet under version control (for instance, if
23812  this document starts a new project), the directory must be imported into
23813  the repository.
23814  This is done outside \SpecialChar LyX
23815 .
23816  Both import and checkout are easily accomplished from the Explorer context
23817  menu using TortoiseSVN, or alternatively can be done using the command
23818  line client at a DOS prompt.
23819  The procedure for importing the project using TortoiseSVN is described
23820  below, assuming an existing repository and a new project being started
23821  in 
23822 \family typewriter
23823 C:
23824 \backslash
23825 new project
23826 \family default
23827 .
23828  For information on using the Subversion client program, run 
23829 \family typewriter
23830 svn --help 
23831 \family default
23832 in a DOS shell.
23833 \end_layout
23834
23835 \begin_layout Enumerate
23836 Locate 
23837 \family typewriter
23838 C:
23839 \backslash
23840 new project 
23841 \family default
23842 in Windows Explorer, right click it, and select 
23843 \family sans
23844 TortoiseSVN\SpecialChar menuseparator
23845 Repo-browser
23846 \family default
23847 .
23848  If necessary, adjust the URL for the repository, then click OK.
23849 \end_layout
23850
23851 \begin_layout Enumerate
23852 Right click the level of the repository under which you want to place the
23853  new project folder (typically the top level) and click 
23854 \family sans
23855 Create folder
23856 \family default
23857  Supply a name for the project folder and click OK.
23858  Add a message for the log file if desired, then click OK again.
23859  The new project folder should appear in the repository.
23860  Finally, click OK again to exit the repository browser.
23861 \end_layout
23862
23863 \begin_layout Enumerate
23864 Once again right click 
23865 \family typewriter
23866 C:
23867 \backslash
23868 new project
23869 \family default
23870 , this time selecting SVN Checkout\SpecialChar ldots
23871  Select the URL of the project folder
23872  you just created in the repository, and set the checkout directory to 
23873 \family typewriter
23874 C:
23875 \backslash
23876 new project.
23877
23878 \family default
23879  Click OK.
23880  You will be warned about a non-empty folder; click OK to proceed.
23881  You should now have a 
23882 \family typewriter
23883 .svn
23884 \family default
23885  directory under 
23886 \family typewriter
23887 C:
23888 \backslash
23889 new project.
23890 \end_layout
23891
23892 \begin_layout Enumerate
23893 Create or open your document in \SpecialChar LyX
23894  and click 
23895 \family sans
23896 File\SpecialChar menuseparator
23897 Version
23898 \begin_inset space ~
23899 \end_inset
23900
23901 Control\SpecialChar menuseparator
23902 Register.
23903  
23904 \family default
23905 Add a log message and click OK to commit the document to version control.
23906 \end_layout
23907
23908 \begin_layout Standard
23909 From this point onward, you should have full functionality in the 
23910 \family sans
23911 File\SpecialChar menuseparator
23912 Version
23913 \begin_inset space ~
23914 \end_inset
23915
23916 Control
23917 \family default
23918  menu.
23919  You also have the option of checking the document in and out, viewing its
23920  history, etc.
23921  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23922  client program from a command prompt.
23923 \end_layout
23924
23925 \begin_layout Subsubsection
23926 SSH tunnel used with SVN under Windows
23927 \end_layout
23928
23929 \begin_layout Standard
23930 Compared with Linux setting up an svn client to communicate over ssh under
23931  Windows is a rather troublesome task.
23932  We will at least offer some hints how to setup the client side but prior
23933  knowledge about ssh and the Windows command line is needed, also be prepared
23934  for a great deal of frustration\SpecialChar ldots
23935
23936 \end_layout
23937
23938 \begin_layout Enumerate
23939 Get an svn client for windows, as described in the previous sections.
23940  When it is a fresh install run some svn command (e.g.
23941  
23942 \begin_inset Flex Code
23943 status collapsed
23944
23945 \begin_layout Plain Layout
23946 svn --version
23947 \end_layout
23948
23949 \end_inset
23950
23951 ) to create config files, which you will need to change later on.
23952 \end_layout
23953
23954 \begin_layout Enumerate
23955 Choose an ssh client for Windows.
23956  There are several possibilities, we will use the one from Putty tools
23957 \begin_inset Foot
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 \begin_inset Flex URL
23962 status collapsed
23963
23964 \begin_layout Plain Layout
23965
23966 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23967 \end_layout
23968
23969 \end_inset
23970
23971
23972 \end_layout
23973
23974 \end_inset
23975
23976 .
23977  You will need to set the connection up so that the client doesn't ask for
23978  any password from you.
23979  To keep things easy we will use only keys without any additional password
23980  protection etc.
23981 \end_layout
23982
23983 \begin_deeper
23984 \begin_layout Enumerate
23985 Generate keys by 
23986 \begin_inset Flex Code
23987 status collapsed
23988
23989 \begin_layout Plain Layout
23990 puttygen
23991 \end_layout
23992
23993 \end_inset
23994
23995 .
23996  Save your private .ppk key file and put the public one on the server side.
23997  If the SVN server runs on Linux, note that the format of the public key
23998  is not compatible with Linux openssh and you will need to direcly copy-paste
23999  the key from the 
24000 \begin_inset Quotes eld
24001 \end_inset
24002
24003
24004 \emph on
24005 Public key for pasting into OpenSSH authorized_keys file
24006 \emph default
24007 :
24008 \begin_inset Quotes erd
24009 \end_inset
24010
24011  edit field into the server's 
24012 \begin_inset Flex Code
24013 status collapsed
24014
24015 \begin_layout Plain Layout
24016 ~/.ssh/authorized_keys
24017 \end_layout
24018
24019 \end_inset
24020
24021  / 
24022 \begin_inset Flex Code
24023 status collapsed
24024
24025 \begin_layout Plain Layout
24026 authorized_keys2
24027 \end_layout
24028
24029 \end_inset
24030
24031  file.
24032 \end_layout
24033
24034 \begin_layout Enumerate
24035 Get the Putty's 
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 plink
24041 \end_layout
24042
24043 \end_inset
24044
24045 .
24046  In the SVN config file
24047 \begin_inset Foot
24048 status collapsed
24049
24050 \begin_layout Plain Layout
24051 Exact path depends on Windows version, usually somewhere around 
24052 \begin_inset Flex Code
24053 status collapsed
24054
24055 \begin_layout Plain Layout
24056 c:
24057 \backslash
24058 Documents and Settings
24059 \backslash
24060 user
24061 \backslash
24062 Application Data
24063 \backslash
24064 Subversion
24065 \backslash
24066 config
24067 \end_layout
24068
24069 \end_inset
24070
24071  / 
24072 \begin_inset Flex Code
24073 status collapsed
24074
24075 \begin_layout Plain Layout
24076 AppData
24077 \backslash
24078 Roaming
24079 \backslash
24080 Subversion
24081 \end_layout
24082
24083 \end_inset
24084
24085 .
24086 \end_layout
24087
24088 \end_inset
24089
24090 , section [tunnels], setup ssh command, e.g.
24091  
24092 \begin_inset Flex Code
24093 status collapsed
24094
24095 \begin_layout Plain Layout
24096 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24097 \end_layout
24098
24099 \end_inset
24100
24101 .
24102 \begin_inset Foot
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 It will usually take a lot of time to get exact command right and it depends
24107  on many things.
24108  For example do not have some remote server saved as a default session in
24109  Putty etc.
24110  If things fail, try to connect via plink without SVN first.
24111 \end_layout
24112
24113 \end_inset
24114
24115
24116 \end_layout
24117
24118 \end_deeper
24119 \begin_layout Enumerate
24120 Checkout the SVN archive, e.
24121 \begin_inset space \thinspace{}
24122 \end_inset
24123
24124 g.
24125 \begin_inset Newline newline
24126 \end_inset
24127
24128
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133 svn co svn+ssh://user@server/repository_path
24134 \end_layout
24135
24136 \end_inset
24137
24138 .
24139 \end_layout
24140
24141 \begin_layout Subsubsection
24142 End-of-Line Conversions
24143 \end_layout
24144
24145 \begin_layout Standard
24146 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24147  will
24148  use different line endings inside the .lyx files.
24149  This is not a problem as far as \SpecialChar LyX
24150  functionality is concerned, but the commit
24151  diffs will be huge and merge-conflicts prone.
24152  Fortunately SVN itself knows
24153 \begin_inset Foot
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157 \begin_inset Flex URL
24158 status collapsed
24159
24160 \begin_layout Plain Layout
24161
24162 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24163 \end_layout
24164
24165 \end_inset
24166
24167
24168 \end_layout
24169
24170 \end_inset
24171
24172  how to deal with CR/LF problems when switching .lyx files to the 
24173 \begin_inset Flex Code
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 native
24178 \end_layout
24179
24180 \end_inset
24181
24182  mode.
24183 \begin_inset Foot
24184 status collapsed
24185
24186 \begin_layout Plain Layout
24187 For the lazy guys: 
24188 \begin_inset Flex Code
24189 status collapsed
24190
24191 \begin_layout Plain Layout
24192 svn propset svn:eol-style native FILE_NAME
24193 \end_layout
24194
24195 \end_inset
24196
24197
24198 \end_layout
24199
24200 \end_inset
24201
24202
24203 \end_layout
24204
24205 \begin_layout Subsection
24206 GIT commands in \SpecialChar LyX
24207
24208 \end_layout
24209
24210 \begin_layout Standard
24211 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24212 .
24213  You can find the commands in the 
24214 \family sans
24215 File\SpecialChar menuseparator
24216 Version
24217 \begin_inset space ~
24218 \end_inset
24219
24220 Control
24221 \family default
24222  submenu.
24223  Please note that if you use password protected access to repository via
24224  ssh, you will be asked in terminal window.
24225  \SpecialChar LyX
24226  was tested against GIT 1.7.
24227 \begin_inset Foot
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231 Windows users please note that you need to ensure that git is on the path.
24232  This can be set from within \SpecialChar LyX
24233  at 
24234 \family sans
24235 Tools\SpecialChar menuseparator
24236 Preferences\SpecialChar menuseparator
24237 Paths\SpecialChar menuseparator
24238 PATH prefix
24239 \family default
24240 .
24241 \end_layout
24242
24243 \end_inset
24244
24245
24246 \end_layout
24247
24248 \begin_layout Standard
24249 One big difference of GIT and the other supported version control systems
24250  is the distributed nature of GIT: With traditional version control systems
24251  there is one central server which hosts the repository.
24252  Users commit their changes to the server, and get updates made by other
24253  users from it.
24254  With GIT, users commit to a local repository.
24255  The local repository can be synchronized with one or more remote repositories
24256  using the 
24257 \begin_inset Flex Code
24258 status collapsed
24259
24260 \begin_layout Plain Layout
24261 pull
24262 \end_layout
24263
24264 \end_inset
24265
24266  and 
24267 \begin_inset Flex Code
24268 status collapsed
24269
24270 \begin_layout Plain Layout
24271 push
24272 \end_layout
24273
24274 \end_inset
24275
24276  GIT commands.
24277  \SpecialChar LyX
24278  does not interact in any way with remote GIT repositories.
24279  It works exclusively with the local repository in a very similar way as
24280  with a central CVS or SVN repository.
24281  If you use remote GIT repositories you need to do the 
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 pull
24287 \end_layout
24288
24289 \end_inset
24290
24291  and 
24292 \begin_inset Flex Code
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 push
24297 \end_layout
24298
24299 \end_inset
24300
24301  operations with your favourite GIT client.
24302 \end_layout
24303
24304 \begin_layout Subsubsection
24305
24306 \family sans
24307 Register
24308 \end_layout
24309
24310 \begin_layout Standard
24311 If your document is not under revision control, this is the only item shown
24312  in the menu.
24313  And if it is under revision control, the 
24314 \family sans
24315 Register
24316 \family default
24317  item is not visible.
24318 \end_layout
24319
24320 \begin_layout Standard
24321 This command registers in GIT your document ONLY in case you have already
24322  the documents directory under GIT control (in particular 
24323 \family typewriter
24324 .git/index
24325 \family default
24326  file exists).
24327  This means you have to checkout the archive by yourself.
24328 \end_layout
24329
24330 \begin_layout Standard
24331 Then you are asked interactively to supply an initial description of the
24332  document.
24333  Don't forget that registered file is not yet committed.
24334 \end_layout
24335
24336 \begin_layout Standard
24337 GIT command that is run: 
24338 \family typewriter
24339 git add 
24340 \begin_inset Quotes qld
24341 \end_inset
24342
24343 <file-name>
24344 \begin_inset Quotes qld
24345 \end_inset
24346
24347
24348 \end_layout
24349
24350 \begin_layout Standard
24351 Read 
24352 \family typewriter
24353 man git
24354 \family default
24355  to understand the switches.
24356 \end_layout
24357
24358 \begin_layout Subsubsection
24359
24360 \family sans
24361 Check In Changes
24362 \end_layout
24363
24364 \begin_layout Standard
24365 When you are finished editing a file, you commit your changes.
24366  When you do this, you are asked for a description of the changes.
24367  After that changes are committed.
24368 \end_layout
24369
24370 \begin_layout Standard
24371 GIT command: 
24372 \family typewriter
24373 git commit -q -m"<description>" <file-name>
24374 \end_layout
24375
24376 \begin_layout Subsubsection
24377
24378 \family sans
24379 Revert To Repository Version
24380 \end_layout
24381
24382 \begin_layout Standard
24383 This will discard all changes made to the document since the last check
24384  in.
24385  You get a warning before changes are discarded.
24386 \end_layout
24387
24388 \begin_layout Standard
24389 GIT command: 
24390 \family typewriter
24391 git checkout -q 
24392 \begin_inset Quotes qld
24393 \end_inset
24394
24395 <file-name>
24396 \begin_inset Quotes qld
24397 \end_inset
24398
24399
24400 \end_layout
24401
24402 \begin_layout Subsubsection
24403
24404 \family sans
24405 Rename
24406 \end_layout
24407
24408 \begin_layout Standard
24409 This will rename the current document including the version history.
24410  It requires a clean document without any changes since the last checkin.
24411  You are asked for a file name and a description of the rename operation.
24412  After that the document is renamed, both locally and in the repository.
24413  If the parent directories of the new and old file names differ, all relative
24414  paths of included files are adjusted (like in 
24415 \family sans
24416 File\SpecialChar menuseparator
24417 Save As
24418 \family default
24419 \SpecialChar ldots
24420 ).
24421  Finally, the document is reloaded using the new name.
24422 \end_layout
24423
24424 \begin_layout Labeling
24425 \labelwidthstring 00.00.0000
24426 GIT
24427 \begin_inset space ~
24428 \end_inset
24429
24430 commands: 
24431 \begin_inset space ~
24432 \end_inset
24433
24434
24435 \begin_inset Newline newline
24436 \end_inset
24437
24438
24439 \begin_inset Flex Code
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 git mv 
24444 \family typewriter
24445
24446 \begin_inset Quotes qld
24447 \end_inset
24448
24449 <file-name>
24450 \begin_inset Quotes qld
24451 \end_inset
24452
24453  
24454 \begin_inset Quotes qld
24455 \end_inset
24456
24457 <new-file-name>
24458 \begin_inset Quotes qld
24459 \end_inset
24460
24461
24462 \end_layout
24463
24464 \end_inset
24465
24466
24467 \begin_inset Newline newline
24468 \end_inset
24469
24470
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 git commit
24476 \end_layout
24477
24478 \end_inset
24479
24480
24481 \end_layout
24482
24483 \begin_layout Subsubsection
24484
24485 \family sans
24486 Show History
24487 \end_layout
24488
24489 \begin_layout Standard
24490 This shows the complete history of the GIT document.
24491  The output of 
24492 \family typewriter
24493 git log 
24494 \begin_inset Quotes qld
24495 \end_inset
24496
24497 <file-name>
24498 \begin_inset Quotes qld
24499 \end_inset
24500
24501
24502 \family default
24503  is shown in a browser.
24504 \end_layout
24505
24506 \begin_layout Subsubsection
24507 Version Info
24508 \end_layout
24509
24510 \begin_layout Standard
24511 \SpecialChar LyX
24512  supports GIT hash number of the last commit to the file, 
24513 \change_inserted 1119979965 1564297456
24514 its abbreviated form, 
24515 \change_unchanged
24516 author name, date and time of last commit.
24517  All those are extracted from 
24518 \family typewriter
24519 git log -n 1 --pretty=format:%H%n
24520 \change_inserted 1119979965 1564297427
24521 %h%n
24522 \change_unchanged
24523 %an%n%ai
24524 \family default
24525 .
24526  Tree version information is obtained via 
24527 \family typewriter
24528 git describe --abbrev --dirty --long
24529 \family default
24530 .
24531  See 
24532 \begin_inset CommandInset ref
24533 LatexCommand ref
24534 reference "subsec:VCS-Revision-Information"
24535
24536 \end_inset
24537
24538  for other details.
24539 \end_layout
24540
24541 \begin_layout Subsection
24542 Further tuning
24543 \end_layout
24544
24545 \begin_layout Standard
24546 With the recent addition of the 
24547 \begin_inset Flex Code
24548 status collapsed
24549
24550 \begin_layout Plain Layout
24551 vc-command
24552 \end_layout
24553
24554 \end_inset
24555
24556  function \SpecialChar LyX
24557  power users are allowed to create their own commands for revision
24558  control.
24559 \end_layout
24560
24561 \begin_layout Standard
24562 As an example you can see how two TortoiseSVN commands could be integrated
24563  directly:
24564 \end_layout
24565
24566 \begin_layout Description
24567 Commit: 
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24573 \end_layout
24574
24575 \end_inset
24576
24577
24578 \end_layout
24579
24580 \begin_layout Description
24581 Revert: 
24582 \begin_inset Flex Code
24583 status collapsed
24584
24585 \begin_layout Plain Layout
24586 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24587 \end_layout
24588
24589 \end_inset
24590
24591
24592 \end_layout
24593
24594 \begin_layout Subsection
24595 Version control and Document comparison
24596 \end_layout
24597
24598 \begin_layout Standard
24599 One of the typical uses of version control is to inspect the changes between
24600  revisions, usually by creating 
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 diff
24606 \end_layout
24607
24608 \end_inset
24609
24610  dumps.
24611  While this is useful for plain text files, it is much less useful in the
24612  case of \SpecialChar LyX
24613  files, which have more a complicated structure.
24614  Hence we provide binding to the Document comparison feature.
24615  There are two ways of calling this feature – either by direct call of 
24616 \begin_inset Flex Code
24617 status collapsed
24618
24619 \begin_layout Plain Layout
24620 vc-compare
24621 \end_layout
24622
24623 \end_inset
24624
24625  \SpecialChar LyX
24626  function (for details see \SpecialChar LyX
24627  functions manual) or by the toolbar icon 
24628 \begin_inset Info
24629 type  "icon"
24630 arg   "vc-compare"
24631 \end_inset
24632
24633  or the menu item 
24634 \begin_inset Info
24635 type  "menu"
24636 arg   "vc-compare"
24637 \end_inset
24638
24639 , respectively.
24640  One can either compare two chosen revisions of the document or he can simply
24641  compare the current version of edited text with older revisions (where
24642  '
24643 \begin_inset Flex Noun
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647 0
24648 \end_layout
24649
24650 \end_inset
24651
24652 ' revisions back means comparison of the edited file with last commited
24653  revision).
24654  
24655 \end_layout
24656
24657 \begin_layout Standard
24658 This feature is supported for SVN and RCS though due to the more complicated
24659  versioning scheme of RCS there is a constraint – when addressing the revisions
24660  in dialog, numbers always point to the last number in RCS revision number,
24661  i.e.
24662  '35' in '1.2.35'.
24663  We don't currently support GIT addressing of revisions, one can just compare
24664  edited document with its revision X steps backs, where X is addressed as
24665  
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670 HEAD~X
24671 \end_layout
24672
24673 \end_inset
24674
24675 .
24676 \end_layout
24677
24678 \begin_layout Section
24679 Literate Programming
24680 \end_layout
24681
24682 \begin_layout Standard
24683 Updated by 
24684 \noun on
24685 Kayvan Sylvan 
24686 \noun default
24687 (kayvan@sylvan.com)
24688 \noun on
24689
24690 \noun default
24691 original documentation written by 
24692 \noun on
24693 Edmar Wienskoski Jr.
24694
24695 \noun default
24696  (edmar-w-jr@technologist.com)
24697 \end_layout
24698
24699 \begin_layout Subsection
24700 Introduction
24701 \end_layout
24702
24703 \begin_layout Standard
24704 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24705  for literate
24706  programming, where it is assumed that you are familiar with this programming
24707  technique, and know what 
24708 \begin_inset Quotes eld
24709 \end_inset
24710
24711 tangling
24712 \begin_inset Quotes erd
24713 \end_inset
24714
24715  and 
24716 \begin_inset Quotes eld
24717 \end_inset
24718
24719 weaving
24720 \begin_inset Quotes erd
24721 \end_inset
24722
24723  means.
24724  If that is not the case, please follow the web links provided in the following
24725  sections.
24726  There is a lot of good documentation out there covering old development
24727  history to the latest tools tips.
24728 \end_layout
24729
24730 \begin_layout Standard
24731 It is also assumed that you are familiar with \SpecialChar LyX
24732  itself to a point that you
24733  are comfortable changing your \SpecialChar LyX
24734  preferences, and X resources file.
24735  If that is not the case please refer to other \SpecialChar LyX
24736  documentation to cover your
24737  specific needs.
24738 \end_layout
24739
24740 \begin_layout Subsection
24741 Literate Programming
24742 \end_layout
24743
24744 \begin_layout Standard
24745 From the Literate Programming FAQ: 
24746 \end_layout
24747
24748 \begin_layout Quotation
24749 Literate programming is the combination of documentation and source together
24750  in a fashion suited for reading by human beings.
24751  In fact, literate programs should be enjoyable reading, even inviting!
24752  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24753  and documentation in a single file.
24754  Literate programming tools then parse the file to produce either readable
24755  documentation or compilable source.
24756  The WEB style of literate programming was created by D.
24757 \begin_inset space \thinspace{}
24758 \end_inset
24759
24760 E.
24761  Knuth during the development of his \SpecialChar TeX
24762  typesetting software.
24763  
24764 \end_layout
24765
24766 \begin_layout Standard
24767 Another excerpt says:
24768 \end_layout
24769
24770 \begin_layout Quotation
24771
24772 \emph on
24773 How is literate programming different from verbose commenting?
24774 \end_layout
24775
24776 \begin_layout Quotation
24777 There are three distinguishing characteristics.
24778  In order of importance, they are: 
24779 \end_layout
24780
24781 \begin_deeper
24782 \begin_layout Itemize
24783 flexible order of elaboration 
24784 \end_layout
24785
24786 \begin_layout Itemize
24787 automatic support for browsing 
24788 \end_layout
24789
24790 \begin_layout Itemize
24791 typeset documentation, especially diagrams and mathematics 
24792 \end_layout
24793
24794 \end_deeper
24795 \begin_layout Standard
24796 Now that I sparked your curiosity, take a look in the references.
24797 \end_layout
24798
24799 \begin_layout Subsubsection
24800 References
24801 \end_layout
24802
24803 \begin_layout Standard
24804 The complete Literate Programming FAQ can be found at:
24805 \end_layout
24806
24807 \begin_layout Quote
24808 Literate Programming FAQ 
24809 \begin_inset Flex URL
24810 status open
24811
24812 \begin_layout Plain Layout
24813
24814 http://www.literateprogramming.com/lpfaq.pdf
24815 \end_layout
24816
24817 \end_inset
24818
24819
24820 \end_layout
24821
24822 \begin_layout Standard
24823 The FAQ lists 23 (twenty three!) different literate programming tools.
24824  Where some are specialized or 
24825 \begin_inset Quotes eld
24826 \end_inset
24827
24828 tailored
24829 \begin_inset Quotes erd
24830 \end_inset
24831
24832  for particular programming languages, while other have general scope.
24833  I selected 
24834 \noun on
24835 Noweb
24836 \noun default
24837  for my own use for several reasons:
24838 \end_layout
24839
24840 \begin_layout Itemize
24841 It can generate the documentation either in \SpecialChar LaTeX
24842  or HTML.
24843 \end_layout
24844
24845 \begin_layout Itemize
24846 It has a open architecture, i.
24847 \begin_inset space \thinspace{}
24848 \end_inset
24849
24850 e.
24851 \begin_inset space \space{}
24852 \end_inset
24853
24854 it is easy to plug in new filters
24855 \begin_inset Foot
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859
24860 \emph on
24861 Filters 
24862 \emph default
24863 are programs that read a given data stream and output a manipulated data
24864  stream.
24865  That way, a WEB file (consisting of literate code) can be turned into a
24866  file consisting only of C program code or \SpecialChar LaTeX
24867  code.
24868 \end_layout
24869
24870 \end_inset
24871
24872  and to perform special processing that you may need.
24873  
24874 \end_layout
24875
24876 \begin_layout Itemize
24877 There is a good selection of filters available already (the HTML is one
24878  of them).
24879 \end_layout
24880
24881 \begin_layout Itemize
24882 It is free.
24883 \end_layout
24884
24885 \begin_layout Standard
24886 The Noweb web page can be found at: 
24887 \end_layout
24888
24889 \begin_layout Quote
24890 Noweb home page 
24891 \begin_inset Flex URL
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895
24896 https://www.cs.tufts.edu/~nr/noweb/
24897 \end_layout
24898
24899 \end_inset
24900
24901
24902 \end_layout
24903
24904 \begin_layout Standard
24905 Starting from there you can reach many other interesting links and even
24906  some literate program examples.
24907 \end_layout
24908
24909 \begin_layout Subsection
24910 \SpecialChar LyX
24911  and Literate Programming with Noweb
24912 \end_layout
24913
24914 \begin_layout Standard
24915 The \SpecialChar LyX
24916  support for Literate Programming is provided by using the generic \SpecialChar LyX
24917
24918  converters mechanism.
24919  This support is provided in a 
24920 \begin_inset Quotes eld
24921 \end_inset
24922
24923 Noweb independent
24924 \begin_inset Quotes erd
24925 \end_inset
24926
24927  way, i.
24928 \begin_inset space \thinspace{}
24929 \end_inset
24930
24931 e.
24932 \begin_inset space \space{}
24933 \end_inset
24934
24935 you will be able to use this new \SpecialChar LyX
24936  feature with some other literate programming
24937  tool of your choice by just changing your \SpecialChar LyX
24938  preferences.
24939 \end_layout
24940
24941 \begin_layout Subsubsection
24942 Generating documents and code (weaving and tangling)
24943 \end_layout
24944
24945 \begin_layout Paragraph
24946 Using the noweb module
24947 \end_layout
24948
24949 \begin_layout Standard
24950 If you have installed Noweb and \SpecialChar LyX
24951  successfully, whenever you open a new document,
24952  after you have chosen its document class, use the 
24953 \family sans
24954 Document\SpecialChar menuseparator
24955 Settings
24956 \family default
24957  menu to add the 
24958 \begin_inset Quotes eld
24959 \end_inset
24960
24961 noweb
24962 \begin_inset Quotes erd
24963 \end_inset
24964
24965  module.
24966  If Noweb is correctly installed, when you click on the 
24967 \begin_inset Quotes eld
24968 \end_inset
24969
24970 Modules
24971 \begin_inset Quotes erd
24972 \end_inset
24973
24974  link, you will see the 
24975 \begin_inset Quotes eld
24976 \end_inset
24977
24978 noweb
24979 \begin_inset Quotes erd
24980 \end_inset
24981
24982  module in the available list and you can add it to your document.
24983 \end_layout
24984
24985 \begin_layout Paragraph
24986 Typing code in
24987 \end_layout
24988
24989 \begin_layout Standard
24990 \SpecialChar LyX
24991  enables you to write code with a custom inset named 
24992 \begin_inset Flex Noun
24993 status collapsed
24994
24995 \begin_layout Plain Layout
24996 Chunk
24997 \end_layout
24998
24999 \end_inset
25000
25001 .
25002  Noweb delimits chunks like this:
25003 \end_layout
25004
25005 \begin_layout LyX-Code
25006 <<My code>>=
25007 \end_layout
25008
25009 \begin_layout LyX-Code
25010   code
25011 \end_layout
25012
25013 \begin_layout LyX-Code
25014   more code
25015 \end_layout
25016
25017 \begin_layout LyX-Code
25018   even more code
25019 \end_layout
25020
25021 \begin_layout LyX-Code
25022   @
25023 \end_layout
25024
25025 \begin_layout Standard
25026 The problem is that whatever is written in between the << and the 
25027 \family typewriter
25028 @
25029 \family default
25030  must be taken literally, i.
25031 \begin_inset space \thinspace{}
25032 \end_inset
25033
25034 e.
25035 \begin_inset space \space{}
25036 \end_inset
25037
25038 \SpecialChar LyX
25039  should be prevented from making any special interpretation of what has
25040  been written.
25041  This is also handled by 
25042 \begin_inset Flex Noun
25043 status collapsed
25044
25045 \begin_layout Plain Layout
25046 Chunk
25047 \end_layout
25048
25049 \end_inset
25050
25051 , that works like a normal text inset but has a free spacing capability.
25052 \end_layout
25053
25054 \begin_layout Standard
25055 As a special note, you can also use the 
25056 \begin_inset Quotes eld
25057 \end_inset
25058
25059 %def
25060 \begin_inset Quotes erd
25061 \end_inset
25062
25063  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25064 rence:
25065 \end_layout
25066
25067 \begin_layout LyX-Code
25068 <<My chunk>>=
25069 \end_layout
25070
25071 \begin_layout LyX-Code
25072 def some_function(args):
25073 \end_layout
25074
25075 \begin_layout LyX-Code
25076    "This is the doc string for this function."
25077 \end_layout
25078
25079 \begin_layout LyX-Code
25080    print "My args: ", args
25081 \end_layout
25082
25083 \begin_layout LyX-Code
25084 @ %def some_function
25085 \end_layout
25086
25087 \begin_layout Standard
25088 For an example of this usage and the resulting cross-reference output, look
25089  at the Literate python program in 
25090 \emph on
25091 LIBDIR/examples/listerrors.lyx
25092 \emph default
25093  which should make this all clear.
25094 \end_layout
25095
25096 \begin_layout Paragraph
25097 Generating the documentation
25098 \end_layout
25099
25100 \begin_layout Standard
25101 At this point you already have a new document file with a proper document
25102  class, and with some code and text on it.
25103  How do I print it? The answer is simple, you select 
25104 \family sans
25105 View\SpecialChar menuseparator
25106 DVI,
25107 \family default
25108  etc.
25109  Just like you would do for a plain document.
25110  No special procedure is required.
25111 \end_layout
25112
25113 \begin_layout Standard
25114 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25115 :
25116 \end_layout
25117
25118 \begin_layout Enumerate
25119 When the 
25120 \family sans
25121 Update\SpecialChar menuseparator
25122 DVI
25123 \family default
25124  menu option is chosen, a \SpecialChar LaTeX
25125  file is generated.
25126  
25127 \end_layout
25128
25129 \begin_deeper
25130 \begin_layout Standard
25131 If the document is of any literate class the generated file will be named
25132  with an extension name defined by the 
25133 \begin_inset Quotes eld
25134 \end_inset
25135
25136 literate
25137 \begin_inset Quotes erd
25138 \end_inset
25139
25140  format (defined in the Preferences panel), otherwise the file will have
25141  the usual 
25142 \family typewriter
25143 .tex
25144 \family default
25145  extension.
25146 \end_layout
25147
25148 \end_deeper
25149 \begin_layout Enumerate
25150 Note that the only difference so far is in the name of the file, no special
25151  processing is required by \SpecialChar LyX
25152 .
25153  Given that you formatted the code using the 
25154 \begin_inset Flex Noun
25155 status collapsed
25156
25157 \begin_layout Plain Layout
25158 Chunk
25159 \end_layout
25160
25161 \end_inset
25162
25163  inset that, by itself, takes care of the business.
25164 \end_layout
25165
25166 \begin_layout Enumerate
25167 If the document is of any literate class \SpecialChar LyX
25168  will then use the internal \SpecialChar LyX
25169  to
25170  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25171  converter
25172 \begin_inset Foot
25173 status collapsed
25174
25175 \begin_layout Plain Layout
25176 The converters are defined in the 
25177 \family sans
25178 Tools\SpecialChar menuseparator
25179 Preferences
25180 \family default
25181  panel, under the 
25182 \begin_inset Quotes eld
25183 \end_inset
25184
25185 Conversion
25186 \begin_inset Quotes erd
25187 \end_inset
25188
25189  tab.
25190  See section 
25191 \emph on
25192 Converters
25193 \emph default
25194  of the 
25195 \emph on
25196 Customization
25197 \emph default
25198  manual for general information about converters.
25199 \end_layout
25200
25201 \end_inset
25202
25203  to generate the \SpecialChar LaTeX
25204  file.
25205 \end_layout
25206
25207 \begin_deeper
25208 \begin_layout Standard
25209 Otherwise it will just skip this step.
25210 \end_layout
25211
25212 \end_deeper
25213 \begin_layout Enumerate
25214 Finally, \SpecialChar LaTeX
25215  is invoked and the regular post processing continues as in a plain
25216  document.
25217 \end_layout
25218
25219 \begin_layout Standard
25220 Independence from a particular 
25221 \begin_inset Quotes eld
25222 \end_inset
25223
25224 literate tool
25225 \begin_inset Quotes erd
25226 \end_inset
25227
25228  is easily achieved by changing the commands that are run by the various
25229  converters.
25230 \end_layout
25231
25232 \begin_layout Paragraph
25233 Generating the code
25234 \end_layout
25235
25236 \begin_layout Standard
25237 When the build menu option is chosen or the corresponding button in the
25238  toolbar is pressed, a \SpecialChar LaTeX
25239  file is generated just like step 1 above.
25240  Next, \SpecialChar LyX
25241  invokes the 
25242 \family typewriter
25243 Noweb->Program
25244 \family default
25245  converter.
25246  This converter needs to be defined by the user and is not installed by
25247  default, though the Program format is.
25248  This converter (like any other converter) will have two parts:
25249 \end_layout
25250
25251 \begin_layout Enumerate
25252 The converter program itself.
25253  This program performs the conversion from the one format to the other (in
25254  this case, from the Noweb format to the Program pseudo-format).
25255 \end_layout
25256
25257 \begin_layout Enumerate
25258 The error log parser.
25259  This is a program whose sole purpose is to rewrite error messages in a
25260  format that \SpecialChar LyX
25261  understands.
25262  This makes it possible for \SpecialChar LyX
25263  to place error boxes in the right places in
25264  the file buffer.
25265 \end_layout
25266
25267 \begin_layout Standard
25268 The first part, the 
25269 \begin_inset Quotes eld
25270 \end_inset
25271
25272 Converter
25273 \begin_inset Quotes erd
25274 \end_inset
25275
25276  setting, should be set to
25277 \end_layout
25278
25279 \begin_layout LyX-Code
25280
25281 \family typewriter
25282 build-script $$i
25283 \family default
25284  $$r
25285 \end_layout
25286
25287 \begin_layout Standard
25288 This basically means that \SpecialChar LyX
25289  will call 
25290 \begin_inset Quotes eld
25291 \end_inset
25292
25293 build-script
25294 \begin_inset Quotes erd
25295 \end_inset
25296
25297  (a program or script) with the name of the Noweb file (normally a file
25298  in the \SpecialChar LyX
25299  temp directory) and the directory path of the original \SpecialChar LyX
25300  file.
25301  
25302 \end_layout
25303
25304 \begin_layout Standard
25305 This is an implementation of 
25306 \begin_inset Quotes eld
25307 \end_inset
25308
25309 build-script
25310 \begin_inset Quotes erd
25311 \end_inset
25312
25313  that you can place in a directory on your path:
25314 \end_layout
25315
25316 \begin_layout LyX-Code
25317
25318 \family sans
25319 #!/bin/sh
25320 \end_layout
25321
25322 \begin_layout LyX-Code
25323
25324 \family sans
25325 #
25326 \end_layout
25327
25328 \begin_layout LyX-Code
25329
25330 \family sans
25331 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25332 \end_layout
25333
25334 \begin_layout Standard
25335 The next part of the converter setting is the 
25336 \begin_inset Quotes eld
25337 \end_inset
25338
25339 Flags
25340 \begin_inset Quotes erd
25341 \end_inset
25342
25343  which is to be set to
25344 \end_layout
25345
25346 \begin_layout LyX-Code
25347
25348 \family typewriter
25349 parselog=$$s/scripts/listerrors
25350 \end_layout
25351
25352 \begin_layout Standard
25353 This will run any errors that are generated by the 
25354 \begin_inset Quotes eld
25355 \end_inset
25356
25357 build-script
25358 \begin_inset Quotes erd
25359 \end_inset
25360
25361  process through the 
25362 \begin_inset Quotes eld
25363 \end_inset
25364
25365 listerrors
25366 \begin_inset Quotes erd
25367 \end_inset
25368
25369  program.
25370 \end_layout
25371
25372 \begin_layout Standard
25373 The build will normally take place in \SpecialChar LyX
25374 's temporary directory, so the files
25375  produced by the conversion will be in that directory.
25376  \SpecialChar LyX
25377  will copy out what it regards as the `main' file, but the 
25378 \family typewriter
25379 Noweb->Program
25380 \family default
25381  conversion may produce several files, and so most of these would then be
25382  deleted when \SpecialChar LyX
25383  was closed.
25384  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25385  the build-script chunk can place the generated files in that location.
25386 \end_layout
25387
25388 \begin_layout Paragraph
25389 Build instructions in the document
25390 \end_layout
25391
25392 \begin_layout Standard
25393 The last piece of the integration between \SpecialChar LyX
25394  and noweb is the 
25395 \begin_inset Quotes eld
25396 \end_inset
25397
25398 build-script
25399 \begin_inset Quotes erd
25400 \end_inset
25401
25402  chunk.
25403  Generally, the instructions for building your program should be embedded
25404  in a chunk of its own.
25405  The noweb-specific 
25406 \begin_inset Quotes eld
25407 \end_inset
25408
25409 build-script
25410 \begin_inset Quotes erd
25411 \end_inset
25412
25413  above uses the notangle command to look for this chunk (called 
25414 \begin_inset Quotes eld
25415 \end_inset
25416
25417 build-script
25418 \begin_inset Quotes erd
25419 \end_inset
25420
25421 ) and runs its contents through 
25422 \begin_inset Quotes eld
25423 \end_inset
25424
25425 sh
25426 \begin_inset Quotes erd
25427 \end_inset
25428
25429 .
25430 \end_layout
25431
25432 \begin_layout Standard
25433 Typically, such a chunk would look something like this:
25434 \end_layout
25435
25436 \begin_layout LyX-Code
25437 <<build-script>>=
25438 \end_layout
25439
25440 \begin_layout LyX-Code
25441 #!/bin/sh
25442 \begin_inset Newline newline
25443 \end_inset
25444
25445 if [ -z "${NOWEB_SOURCE}" ]
25446 \begin_inset Newline newline
25447 \end_inset
25448
25449 then
25450 \end_layout
25451
25452 \begin_layout LyX-Code
25453 NOWEB_SOURCE=myfile.nw
25454 \begin_inset Newline newline
25455 \end_inset
25456
25457 fi
25458 \begin_inset Newline newline
25459 \end_inset
25460
25461 [...
25462  code to extract files ...
25463  use NOWEB_OUTPUT_DIR here ...]
25464 \begin_inset Newline newline
25465 \end_inset
25466
25467 [...
25468  code to compile files ...]
25469 \begin_inset Newline newline
25470 \end_inset
25471
25472 @
25473 \end_layout
25474
25475 \begin_layout Standard
25476 Look in 
25477 \emph on
25478 LIBDIR/examples/listerrors.lyx
25479 \emph default
25480  or in 
25481 \emph on
25482 LIBDIR/examples/Literate.lyx
25483 \emph default
25484  which implement two versions of the 
25485 \begin_inset Quotes eld
25486 \end_inset
25487
25488 listerrors
25489 \begin_inset Quotes erd
25490 \end_inset
25491
25492  program for some illustrations of how all of these pieces go together or
25493  in 
25494 \emph on
25495 LIBDIR/examples/noweb2lyx.lyx.
25496
25497 \emph default
25498  Interestingly, these three files show off the language-indepence of the
25499  \SpecialChar LyX
25500  literate programming support since they are written in Python, C and Perl
25501  respectively.
25502 \end_layout
25503
25504 \begin_layout Subsubsection
25505 Configuring \SpecialChar LyX
25506
25507 \end_layout
25508
25509 \begin_layout Standard
25510 All the Literate Programming support is configured by the 
25511 \family sans
25512 Tools\SpecialChar menuseparator
25513 Preferences
25514 \family default
25515  panel in the 
25516 \begin_inset Quotes eld
25517 \end_inset
25518
25519 File Handling
25520 \begin_inset Quotes erd
25521 \end_inset
25522
25523  tab.
25524  The important parts are:
25525 \end_layout
25526
25527 \begin_layout Description
25528 the
25529 \begin_inset space ~
25530 \end_inset
25531
25532
25533 \begin_inset Quotes eld
25534 \end_inset
25535
25536 NoWeb
25537 \begin_inset Quotes erd
25538 \end_inset
25539
25540
25541 \begin_inset space ~
25542 \end_inset
25543
25544 format Set up via the File Formats tab, this is where the Noweb-specific
25545  pieces are set up.
25546  The 
25547 \family sans
25548 GUI Name
25549 \family default
25550  is set to 
25551 \family typewriter
25552 NoWeb
25553 \family default
25554 , the file extension is set to 
25555 \family typewriter
25556 .nw
25557 \family default
25558 .
25559  This tells \SpecialChar LyX
25560  to create a file with a 
25561 \family typewriter
25562 .nw
25563 \family default
25564  extension in the first step of the conversion process.
25565 \end_layout
25566
25567 \begin_layout Description
25568 the
25569 \begin_inset space ~
25570 \end_inset
25571
25572
25573 \family sans
25574 Program
25575 \family default
25576
25577 \begin_inset space ~
25578 \end_inset
25579
25580 format This is an empty format whose sole purpose is to be the endpoint
25581  of a conversion (which then allows us to set up a converter for it).
25582 \end_layout
25583
25584 \begin_layout Description
25585
25586 \family sans
25587 NoWeb
25588 \family default
25589 ->
25590 \family sans
25591 \SpecialChar LaTeX
25592
25593 \family default
25594  This converter performs the 
25595 \begin_inset Quotes eld
25596 \end_inset
25597
25598 weaving
25599 \begin_inset Quotes erd
25600 \end_inset
25601
25602  of the literate document.
25603  For Noweb, it is set to 
25604 \begin_inset Quotes eld
25605 \end_inset
25606
25607
25608 \family typewriter
25609 noweave -delay -index $$i > $$o
25610 \family default
25611
25612 \begin_inset Quotes erd
25613 \end_inset
25614
25615
25616 \end_layout
25617
25618 \begin_layout Description
25619
25620 \family sans
25621 NoWeb
25622 \family default
25623 ->
25624 \family sans
25625 Program
25626 \family default
25627  This performs the 
25628 \begin_inset Quotes eld
25629 \end_inset
25630
25631 tangling step
25632 \begin_inset Quotes erd
25633 \end_inset
25634
25635 .
25636  As stated above, the Converter is set to 
25637 \begin_inset Quotes eld
25638 \end_inset
25639
25640
25641 \family typewriter
25642 build-script $$i
25643 \family default
25644  $$r
25645 \begin_inset Quotes erd
25646 \end_inset
25647
25648 , with Flags set to
25649 \begin_inset Newline newline
25650 \end_inset
25651
25652
25653 \begin_inset Quotes eld
25654 \end_inset
25655
25656
25657 \family typewriter
25658 parselog=$$s/scripts/listerrors
25659 \family default
25660
25661 \begin_inset Quotes erd
25662 \end_inset
25663
25664 .
25665 \end_layout
25666
25667 \begin_layout Subsubsection
25668 Debug extensions
25669 \end_layout
25670
25671 \begin_layout Standard
25672 There is also a new function implemented in the \SpecialChar LyX
25673  server, the 
25674 \begin_inset Quotes eld
25675 \end_inset
25676
25677 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25678  
25679 \end_layout
25680
25681 \begin_layout Standard
25682 When debugging code with ddd/gdb, it is possible to invoke a text editor
25683  at the current execution position with a single key stroke.
25684  The default ddd configuration for that is shift-ctrl-V.
25685  It happens that you can define the editor command line invocation in ddd
25686  by accessing the 
25687 \family sans
25688 Edit\SpecialChar menuseparator
25689 Preferences\SpecialChar menuseparator
25690 Helpers
25691 \family default
25692  dialog and changing the "Edit Sources" entry.
25693 \end_layout
25694
25695 \begin_layout Standard
25696 I take advantage of the newly created \SpecialChar LyX
25697  server function and this ddd feature,
25698  and set 
25699 \begin_inset Quotes eld
25700 \end_inset
25701
25702 Edit Sources
25703 \begin_inset Quotes erd
25704 \end_inset
25705
25706  to:
25707 \end_layout
25708
25709 \begin_layout LyX-Code
25710 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25711 \end_layout
25712
25713 \begin_layout Standard
25714 With this, whenever you are using ddd and find a point in the program that
25715  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25716  ddd will forward this information to \SpecialChar LyX
25717  through the \SpecialChar LyX
25718  server and then the
25719  \SpecialChar LyX
25720  window will show the same file with the cursor at the same position ddd
25721  was pointing to.
25722  No more guessing or long scrolling to locate a point in the program back
25723  from debugging !
25724 \end_layout
25725
25726 \begin_layout Standard
25727 Note however that you must enable the \SpecialChar LyX
25728  server to get this feature working
25729  (it is disabled by default).
25730  Sec.
25731 \begin_inset space ~
25732 \end_inset
25733
25734
25735 \begin_inset CommandInset ref
25736 LatexCommand ref
25737 reference "sec:Starting-the-Server"
25738
25739 \end_inset
25740
25741  explains how to do that.
25742 \end_layout
25743
25744 \begin_layout Subsubsection
25745 Toolbar extensions
25746 \end_layout
25747
25748 \begin_layout Standard
25749 There are six new buttons that can be added to your \SpecialChar LyX
25750  toolbar.
25751  Four of these buttons are short cuts to layout styles: 
25752 \family sans
25753 Standard
25754 \family default
25755
25756 \family sans
25757 Section
25758 \family default
25759
25760 \family sans
25761 \SpecialChar LaTeX
25762
25763 \family default
25764 , and 
25765 \family sans
25766 \SpecialChar LyX
25767 -Code
25768 \family default
25769 , one for the custom inset 
25770 \family sans
25771 Chunk
25772 \family default
25773 .
25774  The last one is a short cut to the 
25775 \begin_inset Quotes eld
25776 \end_inset
25777
25778 Build Program
25779 \begin_inset Quotes erd
25780 \end_inset
25781
25782  File menu entry.
25783  
25784 \end_layout
25785
25786 \begin_layout Standard
25787 \SpecialChar LyX
25788  has a range of buttons that are available for tool bar customization.
25789  In my toolbar I like to combine the six short cuts above with two more:
25790  One for 
25791 \family sans
25792 Document
25793 \family default
25794 \SpecialChar menuseparator
25795
25796 \family sans
25797 Update
25798 \family default
25799 \SpecialChar menuseparator
25800
25801 \family sans
25802 DVI
25803 \family default
25804  and the other for 
25805 \family sans
25806 Document\SpecialChar menuseparator
25807 View\SpecialChar menuseparator
25808 DVI
25809 \family default
25810  File menu entries.
25811  Here is how it looks like:
25812 \end_layout
25813
25814 \begin_layout LyX-Code
25815 Toolbar
25816 \end_layout
25817
25818 \begin_layout LyX-Code
25819   Layouts
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823   Icon "layout Standard"
25824 \end_layout
25825
25826 \begin_layout LyX-Code
25827   Icon "layout Section"
25828 \end_layout
25829
25830 \begin_layout LyX-Code
25831   Icon "layout \SpecialChar LaTeX
25832 "
25833 \end_layout
25834
25835 \begin_layout LyX-Code
25836   Icon "layout \SpecialChar LyX
25837 -Code"
25838 \end_layout
25839
25840 \begin_layout LyX-Code
25841   Icon "flex.insert Chunk"
25842 \end_layout
25843
25844 \begin_layout LyX-Code
25845   Separator
25846 \end_layout
25847
25848 \begin_layout LyX-Code
25849   Icon "buffer-view"
25850 \end_layout
25851
25852 \begin_layout LyX-Code
25853   Icon "buffer-typeset"
25854 \end_layout
25855
25856 \begin_layout LyX-Code
25857   Icon "build-program"
25858 \end_layout
25859
25860 \begin_layout LyX-Code
25861   Separator
25862 \end_layout
25863
25864 \begin_layout LyX-Code
25865 .
25866 \end_layout
25867
25868 \begin_layout LyX-Code
25869 .
25870 \end_layout
25871
25872 \begin_layout LyX-Code
25873 .
25874 \end_layout
25875
25876 \begin_layout LyX-Code
25877 End
25878 \end_layout
25879
25880 \begin_layout Subsubsection
25881 Colors customization
25882 \end_layout
25883
25884 \begin_layout Standard
25885 There are a number of colors in \SpecialChar LyX
25886  that can be customized in 
25887 \family sans
25888 Preferences
25889 \family default
25890 .
25891  One of the things that bothers people is the \SpecialChar LaTeX
25892  font color.
25893  The default color is red, since the chunks uses \SpecialChar LaTeX
25894  font, and there is a lot
25895  of chunks in literate documents, you may get tired of seeing everything
25896  in red.
25897  You can change it by going to the tabs 
25898 \family sans
25899 Look&Feel
25900 \family default
25901
25902 \family sans
25903 Colors.
25904 \end_layout
25905
25906 \begin_layout Standard
25907 The next thing is the visible presence of the newline character in the screen.
25908  You can choose the color of this particular character and make it blend
25909  in the background.
25910  I recommend you choosing a color that is close to the background but not
25911  equal, that way you still can see it is there, but it is not bothering
25912  you anymore.
25913 \end_layout
25914
25915 \begin_layout Subsection
25916 \SpecialChar LyX
25917  and knitr/Sweave
25918 \end_layout
25919
25920 \begin_layout Standard
25921 Support for 
25922 \family sans
25923 knitr
25924 \family default
25925  and 
25926 \family sans
25927 Sweave
25928 \family default
25929  is documented in the 
25930 \emph on
25931 knitr.lyx
25932 \emph default
25933  example file and in the Sweave manual (menu 
25934 \family sans
25935 Help\SpecialChar menuseparator
25936 Specific Manuals
25937 \family default
25938 ).
25939 \end_layout
25940
25941 \begin_layout Chapter
25942 Special features
25943 \end_layout
25944
25945 \begin_layout Standard
25946 You can do everything with \SpecialChar LyX
25947  that you can do with \SpecialChar LaTeX
25948 .
25949  However, \SpecialChar LyX
25950  cannot support every \SpecialChar LaTeX
25951  feature directly.
25952  But you can always use \SpecialChar TeX
25953  Code.
25954  This chapter shows you some more special things you might want to use.
25955  For other special things you can do with figures, tables, floats, boxes
25956  and notes, have a look at the 
25957 \emph on
25958 Embedded
25959 \begin_inset space ~
25960 \end_inset
25961
25962 Objects
25963 \emph default
25964  manual.
25965 \end_layout
25966
25967 \begin_layout Section
25968 Multiple Text Columns
25969 \end_layout
25970
25971 \begin_layout Standard
25972 This feature is independent of the option 
25973 \family sans
25974 Two-column document
25975 \family default
25976  in the document settings under 
25977 \family sans
25978 Text Layout
25979 \family default
25980 .
25981  If you want to have 2
25982 \begin_inset space ~
25983 \end_inset
25984
25985 columns for the whole document, it is recommended to use the 
25986 \family sans
25987 Two-column document
25988 \family default
25989  option.
25990  For all other cases use this feature.
25991 \end_layout
25992
25993 \begin_layout Standard
25994 To use multiple text columns in your document, you have to load the module
25995  
25996 \family sans
25997 Multiple Columns
25998 \family default
25999  (menu 
26000 \family sans
26001 Document\SpecialChar menuseparator
26002 Settings\SpecialChar menuseparator
26003 Modules
26004 \family default
26005 ) and must have the \SpecialChar LaTeX
26006 -package 
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 multicol
26012 \end_layout
26013
26014 \end_inset
26015
26016  installed.
26017 \end_layout
26018
26019 \begin_layout Standard
26020 Footnotes within multiple columns will be placed at the bottom of the page
26021  and not under each column.
26022  Within the different columns you can use everything, with the limitation
26023  that for floats you need to use the float option 
26024 \family sans
26025 Span columns
26026 \family default
26027 .
26028 \end_layout
26029
26030 \begin_layout Subsection
26031 Basics
26032 \end_layout
26033
26034 \begin_layout Standard
26035 If you want to have 2
26036 \begin_inset space ~
26037 \end_inset
26038
26039 columns in your text, insert a multicolumn inset via the menu 
26040 \family sans
26041 Insert\SpecialChar menuseparator
26042 Custom
26043 \begin_inset space ~
26044 \end_inset
26045
26046 Insets\SpecialChar menuseparator
26047 Multiple
26048 \begin_inset space ~
26049 \end_inset
26050
26051 Columns
26052 \family default
26053  where the columns should start.
26054  Write all text that should be printed in 2
26055 \begin_inset space ~
26056 \end_inset
26057
26058 columns into this inset.
26059 \end_layout
26060
26061 \begin_layout Standard
26062 Here is an example:
26063 \end_layout
26064
26065 \begin_layout Standard
26066 \noindent
26067 \begin_inset Flex Multiple Columns
26068 status open
26069
26070 \begin_layout Plain Layout
26071 \noindent
26072
26073 \series bold
26074 \size small
26075 The Adventure of the Empty House
26076 \series default
26077
26078 \begin_inset Newline newline
26079 \end_inset
26080
26081 by Sir Arthur Conan Doyle
26082 \end_layout
26083
26084 \begin_layout Plain Layout
26085
26086 \size small
26087 It was in the spring of the year 1894 that all London was interested, and
26088  the fashionable world dismayed, by the murder of the Honourable Ronald
26089  Adair under most unusual and inexplicable circumstances.
26090  The public has already learned those particulars of the crime which came
26091  out in the police investigation, but a good deal was suppressed upon that
26092  occasion, since the case for the prosecution was so overwhelmingly strong
26093  that it was not necessary to bring forward all the facts.
26094  Only now, at the end of nearly ten years, am I allowed to supply those
26095  missing links which make up the whole of that remarkable chain.
26096  The crime was of interest in itself, but that interest was as nothing to
26097  me compared to the inconceivable sequel, which afforded me the greatest
26098  shock and surprise of any event in my adventurous life.
26099  Even now, after this long interval, I find myself thrilling as I think
26100  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26101 ty which utterly submerged my mind.
26102  Let me say to that public, which has shown some interest in those glimpses
26103  which I have occasionally given them of the thoughts and actions of a very
26104  remarkable man, that they are not to blame me if I have not shared my knowledge
26105  with them, for I should have considered it my first duty to do so, had
26106  I not been barred by a positive prohibition from his own lips, which was
26107  only withdrawn upon the third of last month.
26108 \end_layout
26109
26110 \end_inset
26111
26112
26113 \end_layout
26114
26115 \begin_layout Standard
26116 To get 3 or more columns, set the cursor into the multicolumn inset and
26117  use the menu 
26118 \family sans
26119 Insert\SpecialChar menuseparator
26120 Number
26121 \begin_inset space ~
26122 \end_inset
26123
26124 of
26125 \begin_inset space ~
26126 \end_inset
26127
26128 Columns
26129 \family default
26130 .
26131  The number of the desired columns is written into that inset (for 3
26132 \begin_inset space ~
26133 \end_inset
26134
26135 columns write 
26136 \begin_inset Quotes eld
26137 \end_inset
26138
26139 3
26140 \begin_inset Quotes erd
26141 \end_inset
26142
26143 ).
26144 \begin_inset Newline newline
26145 \end_inset
26146
26147 Here is an example with 3
26148 \begin_inset space ~
26149 \end_inset
26150
26151 columns:
26152 \end_layout
26153
26154 \begin_layout Standard
26155 \begin_inset Flex Multiple Columns
26156 status open
26157
26158 \begin_layout Plain Layout
26159
26160 \size footnotesize
26161 \begin_inset Argument 1
26162 status open
26163
26164 \begin_layout Plain Layout
26165
26166 3
26167 \end_layout
26168
26169 \end_inset
26170
26171 It can be imagined that my close intimacy with Sherlock Holmes had interested
26172  me deeply in crime, and that after his disappearance I never failed to
26173  read with care the various problems which came before the public.
26174  And I even attempted, more than once, for my own private satisfaction,
26175  to employ his methods in their solution, though with indifferent success.
26176  There was none, however, which appealed to me like this tragedy of Ronald
26177  Adair.
26178  As I read the evidence at the inquest, which led up to a verdict of willful
26179  murder against some person or persons unknown, I realized more clearly
26180  than I had ever done the loss which the community had sustained by the
26181  death of Sherlock Holmes.
26182  There were points about this strange business which would, I was sure,
26183  have specially appealed to him, and the efforts of the police would have
26184  been supplemented, or more probably anticipated, by the trained observation
26185  and the alert mind of the first criminal agent in Europe.
26186  All day, as I drove upon my round, I turned over the case in my mind and
26187  found no explanation which appeared to me to be adequate.
26188  At the risk of telling a twice-told tale, I will recapitulate the facts
26189  as they were known to the public at the conclusion of the inquest.
26190 \end_layout
26191
26192 \end_inset
26193
26194
26195 \end_layout
26196
26197 \begin_layout Standard
26198 You can have up to 10
26199 \begin_inset space ~
26200 \end_inset
26201
26202 columns if you want to, but that might not be very pleasant for the readers
26203  of your document.
26204 \end_layout
26205
26206 \begin_layout Standard
26207 \begin_inset Newpage newpage
26208 \end_inset
26209
26210
26211 \end_layout
26212
26213 \begin_layout Subsection
26214 Columns inside Columns
26215 \end_layout
26216
26217 \begin_layout Standard
26218 You can also have columns inside columns:
26219 \end_layout
26220
26221 \begin_layout Standard
26222 \begin_inset Flex Multiple Columns
26223 status open
26224
26225 \begin_layout Plain Layout
26226
26227 \size footnotesize
26228 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26229  at that time governor of one of the Australian colonies.
26230  Adair's mother had returned from Australia to undergo the operation for
26231  cataract, and she, her son Ronald, and her daughter Hilda were living together
26232  at 427 Park Lane.
26233 \end_layout
26234
26235 \begin_layout Plain Layout
26236 \begin_inset Flex Multiple Columns
26237 status open
26238
26239 \begin_layout Plain Layout
26240
26241 \size footnotesize
26242 The youth moved in the best society
26243 \begin_inset space ~
26244 \end_inset
26245
26246 – had, so far as was known, no enemies and no particular vices.
26247  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26248  had been broken off by mutual consent some months before, and there was
26249  no sign that it had left any very profound feeling behind it.
26250  For the rest {sic} the man's life moved in a narrow and conventional circle,
26251  for his habits were quiet and his nature unemotional.
26252  Yet it was upon this easy-going young aristocrat that death came, in most
26253  strange and unexpected form, between the hours of ten and eleven-twenty
26254  on the night of March 30, 1894.
26255 \end_layout
26256
26257 \end_inset
26258
26259
26260 \end_layout
26261
26262 \begin_layout Plain Layout
26263
26264 \size footnotesize
26265 Ronald Adair was fond of cards
26266 \begin_inset space ~
26267 \end_inset
26268
26269 – playing continually, but never for such stakes as would hurt him.
26270  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26271  It was shown that, after dinner on the day of his death, he had played
26272  a rubber of whist at the latter club.
26273  He had also played there in the afternoon.
26274
26275 \size default
26276  
26277 \size footnotesize
26278 The evidence of those who had played with him
26279 \begin_inset space ~
26280 \end_inset
26281
26282 – Mr.
26283  Murray, Sir John Hardy, and Colonel Moran
26284 \begin_inset space ~
26285 \end_inset
26286
26287 – showed that the game was whist, and that there was a fairly equal fall
26288  of the cards.
26289  Adair might have lost five pounds, but not more.
26290  His fortune was a considerable one, and such a loss could not in any way
26291  affect him.
26292  He had played nearly every day at one club or other, but he was a cautious
26293  player, and usually rose a winner.
26294  It came out in evidence that, in partnership with Colonel Moran, he had
26295  actually won as much as four hundred and twenty pounds in a sitting, some
26296  weeks before, from Godfrey Milner and Lord Balmoral.
26297  So much for his recent history as it came out at the inquest.
26298 \end_layout
26299
26300 \end_inset
26301
26302
26303 \end_layout
26304
26305 \begin_layout Subsection
26306 Advanced Examples
26307 \end_layout
26308
26309 \begin_layout Standard
26310 The examples in this section show some more special features of multiple
26311  columns.
26312 \end_layout
26313
26314 \begin_layout Standard
26315 For more features of multiple columns, have a look at the 
26316 \begin_inset CommandInset href
26317 LatexCommand href
26318 name "documentation"
26319 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26320 literal "false"
26321
26322 \end_inset
26323
26324  of the \SpecialChar LaTeX
26325 -package 
26326 \begin_inset Flex Code
26327 status collapsed
26328
26329 \begin_layout Plain Layout
26330 multicol
26331 \end_layout
26332
26333 \end_inset
26334
26335 .
26336 \end_layout
26337
26338 \begin_layout Subsubsection
26339 Preface
26340 \end_layout
26341
26342 \begin_layout Standard
26343 To add a preface text for multiple columns, set the cursor into the multicolumn
26344  inset and use the menu 
26345 \family sans
26346 Insert\SpecialChar menuseparator
26347 Preface
26348 \family default
26349 .
26350  Write your preface text into that inset.
26351 \begin_inset Newline newline
26352 \end_inset
26353
26354 This is an example with some preface text:
26355 \end_layout
26356
26357 \begin_layout Standard
26358 \begin_inset VSpace bigskip
26359 \end_inset
26360
26361
26362 \end_layout
26363
26364 \begin_layout Standard
26365 \begin_inset Flex Multiple Columns
26366 status open
26367
26368 \begin_layout Plain Layout
26369 \begin_inset Argument 2
26370 status open
26371
26372 \begin_layout Plain Layout
26373 And the story continues and continues and continues and continues\SpecialChar ldots
26374
26375 \end_layout
26376
26377 \end_inset
26378
26379
26380 \size small
26381 On the evening of the crime, he returned from the club exactly at ten.
26382  His mother and sister were out spending the evening with a relation.
26383  The servant deposed that she heard him enter the front room on the second
26384  floor, generally used as his sitting-room.
26385  She had lit a fire there, and as it smoked she had opened the window.
26386  No sound was heard from the room until eleven-twenty, the hour of the return
26387  of Lady Maynooth and her daughter.
26388  Desiring to say good-night, she attempted to enter her son's room.
26389  The door was locked on the inside, and no answer could be got to their
26390  cries and knocking.
26391  Help was obtained, and the door forced.
26392  The unfortunate young man was found lying near the table.
26393  His head had been horribly mutilated by an expanding revolver bullet, but
26394  no weapon of any sort was to be found in the room.
26395 \end_layout
26396
26397 \end_inset
26398
26399
26400 \end_layout
26401
26402 \begin_layout Standard
26403 You can also use a section heading as the preface if you use a section command
26404  as \SpecialChar TeX
26405  Code.
26406  For example the command
26407 \end_layout
26408
26409 \begin_layout LyX-Code
26410
26411 \backslash
26412 subsection{subsection title}
26413 \end_layout
26414
26415 \begin_layout Standard
26416 creates a subsection.
26417  In this example the preface is a subsubsection:
26418 \end_layout
26419
26420 \begin_layout Standard
26421 \begin_inset Flex Multiple Columns
26422 status open
26423
26424 \begin_layout Plain Layout
26425 \begin_inset Argument 2
26426 status open
26427
26428 \begin_layout Plain Layout
26429 \begin_inset ERT
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433
26434
26435 \backslash
26436 subsubsection{
26437 \end_layout
26438
26439 \end_inset
26440
26441 This is a subsubsection heading as a preface
26442 \begin_inset ERT
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446
26447 }
26448 \end_layout
26449
26450 \end_inset
26451
26452
26453 \end_layout
26454
26455 \end_inset
26456
26457
26458 \size small
26459 A minute examination of the circumstances served only to make the case more
26460  complex.
26461  In the first place, no reason could be given why the young man should have
26462  fastened the door upon the inside.
26463  There was the possibility that the murderer had done this, and had afterwards
26464  escaped by the window.
26465  The drop was at least twenty feet, however, and a bed of crocuses in full
26466  bloom lay beneath.
26467  Neither the flowers nor the earth showed any sign of having been disturbed,
26468  nor were there any marks upon the narrow strip of grass which separated
26469  the house from the road.
26470  Apparently, therefore, it was the young man himself who had fastened the
26471  door.
26472  But how did he come by his death? No one could have climbed up to the window
26473  without leaving traces.
26474  Suppose a man had fired through the window, he would indeed be a remarkable
26475  shot who could with a revolver inflict so deadly a wound.
26476  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26477  a hundred yards of the house.
26478  No one had heard a shot.
26479 \end_layout
26480
26481 \end_inset
26482
26483
26484 \end_layout
26485
26486 \begin_layout Standard
26487 If there is less vertical space than 6
26488 \begin_inset space ~
26489 \end_inset
26490
26491 text lines is left on the page at the beginning of the multiple columns,
26492  a page break will be inserted before the multiple columns.
26493  Depending on the number of lines of the preface text, you might want to
26494  change this space.
26495  This is done by setting the cursor into the mulitcolumn inset behind the
26496  preface (if there is any) and using the menu 
26497 \family sans
26498 Insert\SpecialChar menuseparator
26499 Space
26500 \begin_inset space ~
26501 \end_inset
26502
26503 Before
26504 \begin_inset space ~
26505 \end_inset
26506
26507 Page
26508 \begin_inset space ~
26509 \end_inset
26510
26511 Break
26512 \family default
26513 .
26514  Insert into that inset the amount of space like e.
26515 \begin_inset space \thinspace{}
26516 \end_inset
26517
26518 g.
26519 \begin_inset space \space{}
26520 \end_inset
26521
26522
26523 \begin_inset Quotes eld
26524 \end_inset
26525
26526 5cm
26527 \begin_inset Quotes erd
26528 \end_inset
26529
26530 .
26531 \begin_inset Newline newline
26532 \end_inset
26533
26534 In this example the space is set to 7
26535 \begin_inset space ~
26536 \end_inset
26537
26538 text lines by using 
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543 7
26544 \backslash
26545 baselineskip
26546 \end_layout
26547
26548 \end_inset
26549
26550  (where the command 
26551 \begin_inset Flex Code
26552 status collapsed
26553
26554 \begin_layout Plain Layout
26555
26556 \backslash
26557 baselineskip
26558 \end_layout
26559
26560 \end_inset
26561
26562  needs to be inserted as \SpecialChar TeX
26563  code):
26564 \end_layout
26565
26566 \begin_layout Standard
26567 \begin_inset Flex Multiple Columns
26568 status open
26569
26570 \begin_layout Plain Layout
26571 \begin_inset Argument 3
26572 status open
26573
26574 \begin_layout Plain Layout
26575 7
26576 \begin_inset ERT
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580
26581
26582 \backslash
26583 baselineskip
26584 \end_layout
26585
26586 \end_inset
26587
26588
26589 \end_layout
26590
26591 \end_inset
26592
26593
26594 \size small
26595 On the evening of the crime, he returned from the club exactly at ten.
26596  His mother and sister were out spending the evening with a relation.
26597  The servant deposed that she heard him enter the front room on the second
26598  floor, generally used as his sitting-room.
26599  She had lit a fire there, and as it smoked she had opened the window.
26600  No sound was heard from the room until eleven-twenty, the hour of the return
26601  of Lady Maynooth and her daughter.
26602  Desiring to say good-night, she attempted to enter her son's room.
26603  The door was locked on the inside, and no answer could be got to their
26604  cries and knocking.
26605  Help was obtained, and the door forced.
26606  The unfortunate young man was found lying near the table.
26607  His head had been horribly mutilated by an expanding revolver bullet, but
26608  no weapon of any sort was to be found in the room.
26609 \end_layout
26610
26611 \end_inset
26612
26613
26614 \end_layout
26615
26616 \begin_layout Subsubsection
26617 Surrounding Space
26618 \end_layout
26619
26620 \begin_layout Standard
26621 The amount of space before and after multiple columns can be changed by
26622  changing the length 
26623 \begin_inset Flex Code
26624 status collapsed
26625
26626 \begin_layout Plain Layout
26627
26628 \backslash
26629 multicolsep
26630 \end_layout
26631
26632 \end_inset
26633
26634 .
26635  For example the command
26636 \end_layout
26637
26638 \begin_layout LyX-Code
26639
26640 \backslash
26641 setlength{
26642 \backslash
26643 multicolsep}{3cm}
26644 \end_layout
26645
26646 \begin_layout Standard
26647 in \SpecialChar TeX
26648  Code changes its value to 3
26649 \begin_inset space \thinspace{}
26650 \end_inset
26651
26652 cm.
26653  The change must be made before the multiple columns' start.
26654  The predefined value is 13
26655 \begin_inset space \thinspace{}
26656 \end_inset
26657
26658 pt.
26659 \end_layout
26660
26661 \begin_layout Standard
26662 For this example 
26663 \begin_inset Flex Code
26664 status collapsed
26665
26666 \begin_layout Plain Layout
26667
26668 \backslash
26669 multicolsep
26670 \end_layout
26671
26672 \end_inset
26673
26674  was set to 2.5
26675 \begin_inset space \thinspace{}
26676 \end_inset
26677
26678 cm:
26679 \end_layout
26680
26681 \begin_layout Standard
26682 \begin_inset ERT
26683 status open
26684
26685 \begin_layout Plain Layout
26686
26687
26688 \backslash
26689 setlength{
26690 \backslash
26691 multicolsep}{2.5cm}
26692 \end_layout
26693
26694 \end_inset
26695
26696
26697 \end_layout
26698
26699 \begin_layout Standard
26700 \begin_inset Flex Multiple Columns
26701 status open
26702
26703 \begin_layout Plain Layout
26704
26705 \size small
26706 All day I turned these facts over in my mind, endeavouring to hit upon some
26707  theory which could reconcile them all, and to find that line of least resistanc
26708 e which my poor friend had declared to be the starting-point of every investigat
26709 ion.
26710  I confess that I made little progress.
26711  In the evening I strolled across the Park, and found myself about six o'clock
26712  at the Oxford Street end of Park Lane.
26713  A group of loafers upon the pavements, all staring up at a particular window,
26714  directed me to the house which I had come to see.
26715  A tall, thin man with coloured glasses, whom I strongly suspected of being
26716  a plain-clothes detective, was pointing out some theory of his own, while
26717  the others crowded round to listen to what he said.
26718  I got as near him as I could, but his observations seemed to me to be absurd,
26719  so I withdrew again in some disgust.
26720  As I did so I struck against an elderly, deformed man, who had been behind
26721  me, and I knocked down several books which he was carrying.
26722 \end_layout
26723
26724 \end_inset
26725
26726
26727 \end_layout
26728
26729 \begin_layout Standard
26730 \begin_inset Note Greyedout
26731 status open
26732
26733 \begin_layout Plain Layout
26734
26735 \series bold
26736 Note:
26737 \series default
26738  The values you set with 
26739 \begin_inset Flex Code
26740 status collapsed
26741
26742 \begin_layout Plain Layout
26743
26744 \backslash
26745 setlength
26746 \end_layout
26747
26748 \end_inset
26749
26750  will be used for all following multiple columns until you change them again.
26751 \end_layout
26752
26753 \end_inset
26754
26755
26756 \end_layout
26757
26758 \begin_layout Standard
26759 \begin_inset ERT
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763
26764
26765 \backslash
26766 setlength{
26767 \backslash
26768 multicolsep}{13pt}
26769 \end_layout
26770
26771 \end_inset
26772
26773
26774 \begin_inset Note Note
26775 status collapsed
26776
26777 \begin_layout Plain Layout
26778 go back to the default
26779 \end_layout
26780
26781 \end_inset
26782
26783
26784 \end_layout
26785
26786 \begin_layout Standard
26787 \begin_inset Newpage newpage
26788 \end_inset
26789
26790
26791 \end_layout
26792
26793 \begin_layout Subsubsection
26794 Column Breaks
26795 \end_layout
26796
26797 \begin_layout Standard
26798 A column break can be forced by inserting the command 
26799 \begin_inset Flex Code
26800 status collapsed
26801
26802 \begin_layout Plain Layout
26803
26804 \backslash
26805 columnbreak{}
26806 \end_layout
26807
26808 \end_inset
26809
26810  as \SpecialChar TeX
26811  Code to that position in the text where the column should be broken.
26812  Note that this leads in most cases to whitespace in the text.
26813 \begin_inset Newline newline
26814 \end_inset
26815
26816 Here is an example:
26817 \end_layout
26818
26819 \begin_layout Standard
26820 \begin_inset Flex Multiple Columns
26821 status open
26822
26823 \begin_layout Plain Layout
26824
26825 \size small
26826 \begin_inset Quotes eld
26827 \end_inset
26828
26829 You're surprised to see me, sir,
26830 \begin_inset Quotes erd
26831 \end_inset
26832
26833  said he, in a strange, croaking voice.
26834 \end_layout
26835
26836 \begin_layout Plain Layout
26837
26838 \size small
26839 I acknowledged that I was.
26840 \end_layout
26841
26842 \begin_layout Plain Layout
26843
26844 \size small
26845 \begin_inset Quotes eld
26846 \end_inset
26847
26848 Well, I've a conscience, sir, and when I chanced to see you go into this
26849  house, as I came hobbling after you, I thought to myself, I'll just step
26850  in and see that kind gentleman, and tell him that if I was a bit gruff
26851  in my manner there was not any harm meant, and that I am much obliged to
26852  him for picking up my books.
26853 \begin_inset Quotes erd
26854 \end_inset
26855
26856
26857 \end_layout
26858
26859 \begin_layout Plain Layout
26860
26861 \size small
26862 \begin_inset Quotes eld
26863 \end_inset
26864
26865 You make too much of a trifle,
26866 \begin_inset Quotes erd
26867 \end_inset
26868
26869  said I.
26870  
26871 \begin_inset Quotes eld
26872 \end_inset
26873
26874 May I ask how you knew who I was?
26875 \begin_inset Quotes erd
26876 \end_inset
26877
26878  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
26879 \begin_inset ERT
26880 status collapsed
26881
26882 \begin_layout Plain Layout
26883
26884
26885 \backslash
26886 columnbreak{}
26887 \end_layout
26888
26889 \end_inset
26890
26891
26892 \end_layout
26893
26894 \begin_layout Plain Layout
26895
26896 \size small
26897 \begin_inset Quotes eld
26898 \end_inset
26899
26900 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26901  you'll find my little bookshop at the corner of Church Street, and very
26902  happy to see you, I am sure.
26903  Maybe you collect yourself, sir.
26904  Here's 
26905 \noun on
26906 British
26907 \begin_inset space ~
26908 \end_inset
26909
26910 Birds
26911 \noun default
26912 , and 
26913 \noun on
26914 Catullus
26915 \noun default
26916 , and 
26917 \noun on
26918 The Holy War
26919 \noun default
26920
26921 \begin_inset space ~
26922 \end_inset
26923
26924 – a bargain, every one of them.
26925  With five volumes you could just fill that gap on that second shelf.
26926  It looks untidy, does it not, sir?
26927 \begin_inset Quotes erd
26928 \end_inset
26929
26930
26931 \end_layout
26932
26933 \end_inset
26934
26935
26936 \end_layout
26937
26938 \begin_layout Subsubsection
26939 Column Separation
26940 \end_layout
26941
26942 \begin_layout Standard
26943 The width of the columns is automatically calculated, but you can modify
26944  the space between the columns.
26945  This is done by changing the length 
26946 \begin_inset Flex Code
26947 status collapsed
26948
26949 \begin_layout Plain Layout
26950
26951 \backslash
26952 columnsep
26953 \end_layout
26954
26955 \end_inset
26956
26957 .
26958  Its predefined value is 10
26959 \begin_inset space \thinspace{}
26960 \end_inset
26961
26962 pt.
26963  Here is an example where 
26964 \begin_inset Flex Code
26965 status collapsed
26966
26967 \begin_layout Plain Layout
26968
26969 \backslash
26970 columnsep
26971 \end_layout
26972
26973 \end_inset
26974
26975  is set to 3
26976 \begin_inset space \thinspace{}
26977 \end_inset
26978
26979 cm:
26980 \end_layout
26981
26982 \begin_layout Standard
26983 \begin_inset ERT
26984 status open
26985
26986 \begin_layout Plain Layout
26987
26988
26989 \backslash
26990 setlength{
26991 \backslash
26992 columnsep}{3cm}
26993 \end_layout
26994
26995 \end_inset
26996
26997
26998 \end_layout
26999
27000 \begin_layout Standard
27001 \begin_inset Flex Multiple Columns
27002 status open
27003
27004 \begin_layout Plain Layout
27005
27006 \size small
27007 My observations of No.
27008 \begin_inset space \space{}
27009 \end_inset
27010
27011 427 Park Lane did little to clear up the problem in which I was interested.
27012  The house was separated from the street by a low wall and railing, the
27013  whole not more than five feet high.
27014  It was perfectly easy, therefore, for anyone to get into the garden, but
27015  the window was entirely inaccessible, since there was no water pipe or
27016  anything which could help the most active man to climb it.
27017  More puzzled than ever, I retraced my steps to Kensington.
27018  I had not been in my study five minutes when the maid entered to say that
27019  a person desired to see me.
27020  To my astonishment it was none other than my strange old book collector,
27021  his sharp, wizened face peering out from a frame of white hair, and his
27022  precious volumes, a dozen of them at least, wedged under his right arm.
27023 \end_layout
27024
27025 \end_inset
27026
27027
27028 \end_layout
27029
27030 \begin_layout Standard
27031 \begin_inset ERT
27032 status collapsed
27033
27034 \begin_layout Plain Layout
27035
27036
27037 \backslash
27038 setlength{
27039 \backslash
27040 columnsep}{10pt}
27041 \end_layout
27042
27043 \end_inset
27044
27045
27046 \begin_inset Note Note
27047 status collapsed
27048
27049 \begin_layout Plain Layout
27050 go back to the default
27051 \end_layout
27052
27053 \end_inset
27054
27055
27056 \end_layout
27057
27058 \begin_layout Subsubsection
27059 Vertical Lines
27060 \end_layout
27061
27062 \begin_layout Standard
27063 Between the columns a rule with a width of the length 
27064 \begin_inset Flex Code
27065 status collapsed
27066
27067 \begin_layout Plain Layout
27068
27069 \backslash
27070 columnseprule
27071 \end_layout
27072
27073 \end_inset
27074
27075  is placed.
27076  If this rule width is set to 0
27077 \begin_inset space \thinspace{}
27078 \end_inset
27079
27080 pt (this is the default), the rule is suppressed.
27081  In the following example the rule is 2
27082 \begin_inset space \thinspace{}
27083 \end_inset
27084
27085 pt wide:
27086 \end_layout
27087
27088 \begin_layout Standard
27089 \begin_inset ERT
27090 status open
27091
27092 \begin_layout Plain Layout
27093
27094
27095 \backslash
27096 setlength{
27097 \backslash
27098 columnseprule}{2pt}
27099 \end_layout
27100
27101 \end_inset
27102
27103
27104 \end_layout
27105
27106 \begin_layout Standard
27107 \begin_inset Flex Multiple Columns
27108 status open
27109
27110 \begin_layout Plain Layout
27111
27112 \size small
27113 \begin_inset Quotes eld
27114 \end_inset
27115
27116 You're surprised to see me, sir,
27117 \begin_inset Quotes erd
27118 \end_inset
27119
27120  said he, in a strange, croaking voice.
27121 \end_layout
27122
27123 \begin_layout Plain Layout
27124
27125 \size small
27126 I acknowledged that I was.
27127 \end_layout
27128
27129 \begin_layout Plain Layout
27130
27131 \size small
27132 \begin_inset Quotes eld
27133 \end_inset
27134
27135 Well, I've a conscience, sir, and when I chanced to see you go into this
27136  house, as I came hobbling after you, I thought to myself, I'll just step
27137  in and see that kind gentleman, and tell him that if I was a bit gruff
27138  in my manner there was not any harm meant, and that I am much obliged to
27139  him for picking up my books.
27140 \begin_inset Quotes erd
27141 \end_inset
27142
27143
27144 \end_layout
27145
27146 \begin_layout Plain Layout
27147
27148 \size small
27149 \begin_inset Quotes eld
27150 \end_inset
27151
27152 You make too much of a trifle,
27153 \begin_inset Quotes erd
27154 \end_inset
27155
27156  said I.
27157  
27158 \begin_inset Quotes eld
27159 \end_inset
27160
27161 May I ask how you knew who I was?
27162 \begin_inset Quotes erd
27163 \end_inset
27164
27165
27166 \end_layout
27167
27168 \begin_layout Plain Layout
27169
27170 \size small
27171 \begin_inset Quotes eld
27172 \end_inset
27173
27174 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27175  you'll find my little bookshop at the corner of Church Street, and very
27176  happy to see you, I am sure.
27177  Maybe you collect yourself, sir.
27178  Here's 
27179 \noun on
27180 British
27181 \begin_inset space ~
27182 \end_inset
27183
27184 Birds
27185 \noun default
27186 , and 
27187 \noun on
27188 Catullus
27189 \noun default
27190 , and 
27191 \noun on
27192 The Holy War
27193 \noun default
27194
27195 \begin_inset space ~
27196 \end_inset
27197
27198 – a bargain, every one of them.
27199  With five volumes you could just fill that gap on that second shelf.
27200  It looks untidy, does it not, sir?
27201 \begin_inset Quotes erd
27202 \end_inset
27203
27204
27205 \end_layout
27206
27207 \end_inset
27208
27209
27210 \end_layout
27211
27212 \begin_layout Standard
27213 \begin_inset VSpace defskip
27214 \end_inset
27215
27216
27217 \end_layout
27218
27219 \begin_layout Standard
27220 The rule can be colored by redefining the command 
27221 \begin_inset Flex Code
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225
27226 \backslash
27227 columnseprulecolor
27228 \end_layout
27229
27230 \end_inset
27231
27232 .
27233  This is done by inserting the command
27234 \end_layout
27235
27236 \begin_layout LyX-Code
27237
27238 \backslash
27239 renewcommand{
27240 \backslash
27241 columnseprulecolor}{
27242 \backslash
27243 color{red}}
27244 \end_layout
27245
27246 \begin_layout Standard
27247 as \SpecialChar TeX
27248  Code before the multicolumn inset.
27249  Replace 
27250 \begin_inset Flex Code
27251 status collapsed
27252
27253 \begin_layout Plain Layout
27254 red
27255 \end_layout
27256
27257 \end_inset
27258
27259  in this command by a color of your choice.
27260  You can use all pre- and self-defined colors.
27261  See the 
27262 \emph on
27263 EmbeddedObjects
27264 \emph default
27265  manual, section 
27266 \emph on
27267 Colored
27268 \begin_inset space ~
27269 \end_inset
27270
27271 Tables
27272 \emph default
27273  for more information about pre- and self-defined colors.
27274  To go back to the default color insert the command
27275 \end_layout
27276
27277 \begin_layout LyX-Code
27278
27279 \backslash
27280 renewcommand{
27281 \backslash
27282 columnseprulecolor}{
27283 \backslash
27284 normalcolor}
27285 \end_layout
27286
27287 \begin_layout Standard
27288 Here is the example with a cyan rule and 1
27289 \begin_inset space \thinspace{}
27290 \end_inset
27291
27292 cm column separation:
27293 \end_layout
27294
27295 \begin_layout Standard
27296 \begin_inset ERT
27297 status open
27298
27299 \begin_layout Plain Layout
27300
27301
27302 \backslash
27303 setlength{
27304 \backslash
27305 columnsep}{1cm}
27306 \end_layout
27307
27308 \begin_layout Plain Layout
27309
27310
27311 \backslash
27312 renewcommand{
27313 \backslash
27314 columnseprulecolor}{
27315 \backslash
27316 color{cyan}}
27317 \end_layout
27318
27319 \end_inset
27320
27321
27322 \end_layout
27323
27324 \begin_layout Standard
27325 \begin_inset Flex Multiple Columns
27326 status open
27327
27328 \begin_layout Plain Layout
27329
27330 \size small
27331 \begin_inset Quotes eld
27332 \end_inset
27333
27334 You're surprised to see me, sir,
27335 \begin_inset Quotes erd
27336 \end_inset
27337
27338  said he, in a strange, croaking voice.
27339 \end_layout
27340
27341 \begin_layout Plain Layout
27342
27343 \size small
27344 I acknowledged that I was.
27345 \end_layout
27346
27347 \begin_layout Plain Layout
27348
27349 \size small
27350 \begin_inset Quotes eld
27351 \end_inset
27352
27353 Well, I've a conscience, sir, and when I chanced to see you go into this
27354  house, as I came hobbling after you, I thought to myself, I'll just step
27355  in and see that kind gentleman, and tell him that if I was a bit gruff
27356  in my manner there was not any harm meant, and that I am much obliged to
27357  him for picking up my books.
27358 \begin_inset Quotes erd
27359 \end_inset
27360
27361
27362 \end_layout
27363
27364 \begin_layout Plain Layout
27365
27366 \size small
27367 \begin_inset Quotes eld
27368 \end_inset
27369
27370 You make too much of a trifle,
27371 \begin_inset Quotes erd
27372 \end_inset
27373
27374  said I.
27375  
27376 \begin_inset Quotes eld
27377 \end_inset
27378
27379 May I ask how you knew who I was?
27380 \begin_inset Quotes erd
27381 \end_inset
27382
27383
27384 \end_layout
27385
27386 \begin_layout Plain Layout
27387
27388 \size small
27389 \begin_inset Quotes eld
27390 \end_inset
27391
27392 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27393  you'll find my little bookshop at the corner of Church Street, and very
27394  happy to see you, I am sure.
27395  Maybe you collect yourself, sir.
27396  Here's 
27397 \noun on
27398 British
27399 \begin_inset space ~
27400 \end_inset
27401
27402 Birds
27403 \noun default
27404 , and 
27405 \noun on
27406 Catullus
27407 \noun default
27408 , and 
27409 \noun on
27410 The Holy War
27411 \noun default
27412
27413 \begin_inset space ~
27414 \end_inset
27415
27416 – a bargain, every one of them.
27417  With five volumes you could just fill that gap on that second shelf.
27418  It looks untidy, does it not, sir?
27419 \begin_inset Quotes erd
27420 \end_inset
27421
27422
27423 \end_layout
27424
27425 \end_inset
27426
27427
27428 \end_layout
27429
27430 \begin_layout Standard
27431 \begin_inset ERT
27432 status collapsed
27433
27434 \begin_layout Plain Layout
27435
27436
27437 \backslash
27438 setlength{
27439 \backslash
27440 columnseprule}{0pt}
27441 \end_layout
27442
27443 \begin_layout Plain Layout
27444
27445
27446 \backslash
27447 renewcommand{
27448 \backslash
27449 columnseprulecolor}{
27450 \backslash
27451 normalcolor}
27452 \end_layout
27453
27454 \end_inset
27455
27456
27457 \begin_inset Note Note
27458 status collapsed
27459
27460 \begin_layout Plain Layout
27461 go back to the default
27462 \end_layout
27463
27464 \end_inset
27465
27466
27467 \end_layout
27468
27469 \begin_layout Section
27470 Non-standard Paragraph Shapes
27471 \end_layout
27472
27473 \begin_layout Standard
27474 \noindent
27475 \SpecialChar LaTeX
27476  as well as any other text processor uses by default rectangular paragraphs.
27477  For special cases like for example posters, invitation cards or poems you
27478  can modify the paragraph shape to one of your choice.
27479  This can be done by using the \SpecialChar LaTeX
27480 -package 
27481 \begin_inset Flex Code
27482 status collapsed
27483
27484 \begin_layout Plain Layout
27485 shapepar
27486 \end_layout
27487
27488 \end_inset
27489
27490  which is loaded by using in the document settings the module 
27491 \family sans
27492 Custom paragraph shapes
27493 \family default
27494 .
27495 \end_layout
27496
27497 \begin_layout Subsection
27498 Predefined shapes
27499 \end_layout
27500
27501 \begin_layout Standard
27502
27503 \series bold
27504 shapepar
27505 \series default
27506  provides the following shapes:
27507 \end_layout
27508
27509 \begin_layout Standard
27510 \begin_inset Tabular
27511 <lyxtabular version="3" rows="13" columns="3">
27512 <features booktabs="true" islongtable="true" longtabularalignment="center">
27513 <column alignment="left" valignment="middle" width="16col%">
27514 <column alignment="left" valignment="middle" width="40col%">
27515 <column alignment="left" valignment="middle" width="35col%">
27516 <row endhead="true">
27517 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27518 \begin_inset Text
27519
27520 \begin_layout Plain Layout
27521
27522 \series bold
27523 \size small
27524 Name
27525 \end_layout
27526
27527 \end_inset
27528 </cell>
27529 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27530 \begin_inset Text
27531
27532 \begin_layout Plain Layout
27533
27534 \series bold
27535 \size small
27536 Description
27537 \end_layout
27538
27539 \end_inset
27540 </cell>
27541 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27542 \begin_inset Text
27543
27544 \begin_layout Plain Layout
27545
27546 \series bold
27547 \size small
27548 Annotation
27549 \end_layout
27550
27551 \end_inset
27552 </cell>
27553 </row>
27554 <row interlinespace="default">
27555 <cell alignment="left" valignment="top" usebox="none">
27556 \begin_inset Text
27557
27558 \begin_layout Plain Layout
27559
27560 \size small
27561 CDlabel
27562 \end_layout
27563
27564 \end_inset
27565 </cell>
27566 <cell alignment="left" valignment="top" usebox="none">
27567 \begin_inset Text
27568
27569 \begin_layout Plain Layout
27570
27571 \size small
27572 Circle with circular hole (in the size of a CD/DVD)
27573 \end_layout
27574
27575 \end_inset
27576 </cell>
27577 <cell alignment="left" valignment="top" usebox="none">
27578 \begin_inset Text
27579
27580 \begin_layout Plain Layout
27581
27582 \size small
27583 Cannot be scaled, take care there is not too much text
27584 \end_layout
27585
27586 \end_inset
27587 </cell>
27588 </row>
27589 <row interlinespace="default">
27590 <cell alignment="left" valignment="top" usebox="none">
27591 \begin_inset Text
27592
27593 \begin_layout Plain Layout
27594
27595 \size small
27596 Circle
27597 \end_layout
27598
27599 \end_inset
27600 </cell>
27601 <cell alignment="left" valignment="top" usebox="none">
27602 \begin_inset Text
27603
27604 \begin_layout Plain Layout
27605
27606 \size small
27607 Circle
27608 \end_layout
27609
27610 \end_inset
27611 </cell>
27612 <cell alignment="left" valignment="top" usebox="none">
27613 \begin_inset Text
27614
27615 \begin_layout Plain Layout
27616
27617 \size small
27618 Fragile, calculation might fail
27619 \end_layout
27620
27621 \end_inset
27622 </cell>
27623 </row>
27624 <row interlinespace="default">
27625 <cell alignment="left" valignment="top" usebox="none">
27626 \begin_inset Text
27627
27628 \begin_layout Plain Layout
27629
27630 \size small
27631 Diamond
27632 \end_layout
27633
27634 \end_inset
27635 </cell>
27636 <cell alignment="left" valignment="top" usebox="none">
27637 \begin_inset Text
27638
27639 \begin_layout Plain Layout
27640
27641 \size small
27642 Rhomboid (symbolizing a 
27643 \begin_inset Quotes eld
27644 \end_inset
27645
27646 diamond
27647 \begin_inset Quotes erd
27648 \end_inset
27649
27650 )
27651 \end_layout
27652
27653 \end_inset
27654 </cell>
27655 <cell alignment="left" valignment="top" usebox="none">
27656 \begin_inset Text
27657
27658 \begin_layout Plain Layout
27659
27660 \size small
27661 -
27662 \end_layout
27663
27664 \end_inset
27665 </cell>
27666 </row>
27667 <row interlinespace="default">
27668 <cell alignment="left" valignment="top" usebox="none">
27669 \begin_inset Text
27670
27671 \begin_layout Plain Layout
27672
27673 \size small
27674 Heart
27675 \end_layout
27676
27677 \end_inset
27678 </cell>
27679 <cell alignment="left" valignment="top" usebox="none">
27680 \begin_inset Text
27681
27682 \begin_layout Plain Layout
27683
27684 \size small
27685 Heart-like shape
27686 \end_layout
27687
27688 \end_inset
27689 </cell>
27690 <cell alignment="left" valignment="top" usebox="none">
27691 \begin_inset Text
27692
27693 \begin_layout Plain Layout
27694
27695 \size small
27696 -
27697 \end_layout
27698
27699 \end_inset
27700 </cell>
27701 </row>
27702 <row interlinespace="default">
27703 <cell alignment="left" valignment="top" usebox="none">
27704 \begin_inset Text
27705
27706 \begin_layout Plain Layout
27707
27708 \size small
27709 Hexagon
27710 \end_layout
27711
27712 \end_inset
27713 </cell>
27714 <cell alignment="left" valignment="top" usebox="none">
27715 \begin_inset Text
27716
27717 \begin_layout Plain Layout
27718
27719 \size small
27720 Hexagon
27721 \end_layout
27722
27723 \end_inset
27724 </cell>
27725 <cell alignment="left" valignment="top" usebox="none">
27726 \begin_inset Text
27727
27728 \begin_layout Plain Layout
27729
27730 \size small
27731 -
27732 \end_layout
27733
27734 \end_inset
27735 </cell>
27736 </row>
27737 <row interlinespace="default">
27738 <cell alignment="left" valignment="top" usebox="none">
27739 \begin_inset Text
27740
27741 \begin_layout Plain Layout
27742
27743 \size small
27744 Nut
27745 \end_layout
27746
27747 \end_inset
27748 </cell>
27749 <cell alignment="left" valignment="top" usebox="none">
27750 \begin_inset Text
27751
27752 \begin_layout Plain Layout
27753
27754 \size small
27755 Nut for bolt (hexagon with circular hole)
27756 \end_layout
27757
27758 \end_inset
27759 </cell>
27760 <cell alignment="left" valignment="top" usebox="none">
27761 \begin_inset Text
27762
27763 \begin_layout Plain Layout
27764
27765 \size small
27766 -
27767 \end_layout
27768
27769 \end_inset
27770 </cell>
27771 </row>
27772 <row interlinespace="default">
27773 <cell alignment="left" valignment="top" usebox="none">
27774 \begin_inset Text
27775
27776 \begin_layout Plain Layout
27777
27778 \size small
27779 Square
27780 \end_layout
27781
27782 \end_inset
27783 </cell>
27784 <cell alignment="left" valignment="top" usebox="none">
27785 \begin_inset Text
27786
27787 \begin_layout Plain Layout
27788
27789 \size small
27790 Square
27791 \end_layout
27792
27793 \end_inset
27794 </cell>
27795 <cell alignment="left" valignment="top" usebox="none">
27796 \begin_inset Text
27797
27798 \begin_layout Plain Layout
27799
27800 \size small
27801 -
27802 \end_layout
27803
27804 \end_inset
27805 </cell>
27806 </row>
27807 <row interlinespace="default">
27808 <cell alignment="left" valignment="top" usebox="none">
27809 \begin_inset Text
27810
27811 \begin_layout Plain Layout
27812
27813 \size small
27814 Star
27815 \end_layout
27816
27817 \end_inset
27818 </cell>
27819 <cell alignment="left" valignment="top" usebox="none">
27820 \begin_inset Text
27821
27822 \begin_layout Plain Layout
27823
27824 \size small
27825 Five-point star
27826 \end_layout
27827
27828 \end_inset
27829 </cell>
27830 <cell alignment="left" valignment="top" usebox="none">
27831 \begin_inset Text
27832
27833 \begin_layout Plain Layout
27834
27835 \size small
27836 -
27837 \end_layout
27838
27839 \end_inset
27840 </cell>
27841 </row>
27842 <row interlinespace="default">
27843 <cell alignment="left" valignment="top" usebox="none">
27844 \begin_inset Text
27845
27846 \begin_layout Plain Layout
27847
27848 \size small
27849 Candle
27850 \end_layout
27851
27852 \end_inset
27853 </cell>
27854 <cell alignment="left" valignment="top" usebox="none">
27855 \begin_inset Text
27856
27857 \begin_layout Plain Layout
27858
27859 \size small
27860 Burning candle
27861 \end_layout
27862
27863 \end_inset
27864 </cell>
27865 <cell alignment="left" valignment="top" usebox="none">
27866 \begin_inset Text
27867
27868 \begin_layout Plain Layout
27869
27870 \size small
27871 -
27872 \end_layout
27873
27874 \end_inset
27875 </cell>
27876 </row>
27877 <row interlinespace="default">
27878 <cell alignment="left" valignment="top" usebox="none">
27879 \begin_inset Text
27880
27881 \begin_layout Plain Layout
27882
27883 \size small
27884 Drop down/up
27885 \end_layout
27886
27887 \end_inset
27888 </cell>
27889 <cell alignment="left" valignment="top" usebox="none">
27890 \begin_inset Text
27891
27892 \begin_layout Plain Layout
27893
27894 \size small
27895 Normal/reversed rain drop
27896 \end_layout
27897
27898 \end_inset
27899 </cell>
27900 <cell alignment="left" valignment="top" usebox="none">
27901 \begin_inset Text
27902
27903 \begin_layout Plain Layout
27904
27905 \size small
27906 Fragile, calculation might fail
27907 \end_layout
27908
27909 \end_inset
27910 </cell>
27911 </row>
27912 <row interlinespace="default">
27913 <cell alignment="left" valignment="top" usebox="none">
27914 \begin_inset Text
27915
27916 \begin_layout Plain Layout
27917
27918 \size small
27919 \SpecialChar TeX
27920
27921 \end_layout
27922
27923 \end_inset
27924 </cell>
27925 <cell alignment="left" valignment="top" usebox="none">
27926 \begin_inset Text
27927
27928 \begin_layout Plain Layout
27929
27930 \size small
27931 The \SpecialChar TeX
27932  logo
27933 \end_layout
27934
27935 \end_inset
27936 </cell>
27937 <cell alignment="left" valignment="top" usebox="none">
27938 \begin_inset Text
27939
27940 \begin_layout Plain Layout
27941
27942 \size small
27943 -
27944 \end_layout
27945
27946 \end_inset
27947 </cell>
27948 </row>
27949 <row interlinespace="default">
27950 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27951 \begin_inset Text
27952
27953 \begin_layout Plain Layout
27954
27955 \size small
27956 Triangle up/down/
27957 \begin_inset Newline newline
27958 \end_inset
27959
27960 left/right
27961 \end_layout
27962
27963 \end_inset
27964 </cell>
27965 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27966 \begin_inset Text
27967
27968 \begin_layout Plain Layout
27969
27970 \size small
27971 Triangles in different orientations
27972 \end_layout
27973
27974 \end_inset
27975 </cell>
27976 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27977 \begin_inset Text
27978
27979 \begin_layout Plain Layout
27980
27981 \size small
27982 -
27983 \end_layout
27984
27985 \end_inset
27986 </cell>
27987 </row>
27988 </lyxtabular>
27989
27990 \end_inset
27991
27992
27993 \end_layout
27994
27995 \begin_layout Standard
27996 To use a shape for your paragraph, simply select it in \SpecialChar LyX
27997 's pull-down box
27998  for environments in the toolbar.
27999 \end_layout
28000
28001 \begin_layout Standard
28002 \begin_inset Newpage newpage
28003 \end_inset
28004
28005
28006 \end_layout
28007
28008 \begin_layout Standard
28009 Here is an example paragraph in the shape of a nut:
28010 \end_layout
28011
28012 \begin_layout Standard
28013 \begin_inset VSpace bigskip
28014 \end_inset
28015
28016
28017 \end_layout
28018
28019 \begin_layout Nut
28020
28021 \lang latin
28022 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28023  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28024  voluptua.
28025  At vero eos et accusam et justo duo dolores et ea rebum.
28026  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28027  sit amet.
28028  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28029  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28030  voluptua.
28031 \end_layout
28032
28033 \begin_layout Standard
28034 \begin_inset VSpace bigskip
28035 \end_inset
28036
28037
28038 \end_layout
28039
28040 \begin_layout Standard
28041 \begin_inset Note Greyedout
28042 status open
28043
28044 \begin_layout Plain Layout
28045
28046 \series bold
28047 Note
28048 \series default
28049
28050 \family sans
28051 shapepar
28052 \family default
28053  paragraphs cannot run over a page break.
28054 \end_layout
28055
28056 \end_inset
28057
28058
28059 \end_layout
28060
28061 \begin_layout Standard
28062 \begin_inset VSpace bigskip
28063 \end_inset
28064
28065
28066 \end_layout
28067
28068 \begin_layout Standard
28069 The package 
28070 \begin_inset Flex Code
28071 status collapsed
28072
28073 \begin_layout Plain Layout
28074 shapepar
28075 \end_layout
28076
28077 \end_inset
28078
28079  takes care that the shape will always be preserved, no matter how much
28080  text is in the paragraph.
28081  Therefore the paragraph size changes with the amount of contained text.
28082  This can lead to paragraph sizes exceeding the page margins.
28083  To demonstrate the size scaling, here is the same example paragraph but
28084  with twice as much text:
28085 \end_layout
28086
28087 \begin_layout Standard
28088 \begin_inset Newpage newpage
28089 \end_inset
28090
28091
28092 \end_layout
28093
28094 \begin_layout Nut
28095
28096 \lang latin
28097 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28098  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28099  voluptua.
28100  At vero eos et accusam et justo duo dolores et ea rebum.
28101  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28102  sit amet.
28103  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28104  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28105  voluptua.
28106  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28107  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28108  voluptua.
28109  At vero eos et accusam et justo duo dolores et ea rebum.
28110  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28111  sit amet.
28112  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28113  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28114  voluptua.
28115 \end_layout
28116
28117 \begin_layout Standard
28118 \begin_inset VSpace bigskip
28119 \end_inset
28120
28121
28122 \end_layout
28123
28124 \begin_layout Standard
28125 An exception is the shape 
28126 \family sans
28127 CDlabel
28128 \family default
28129 .
28130  It cannot be scaled because it must fit the size of a CD/DVD.
28131  Therefore the amount of text that fits into the shape is limited.
28132 \begin_inset Newline newline
28133 \end_inset
28134
28135 The 
28136 \family sans
28137 drop
28138 \family default
28139  shapes and the 
28140 \family sans
28141 circle
28142 \family default
28143  shape are fragile, meaning that the calculation of their size can fail,
28144  depending on the amount of text.
28145  You will then get the \SpecialChar LaTeX
28146  error 
28147 \begin_inset Quotes eld
28148 \end_inset
28149
28150 Arithmetic overflow
28151 \begin_inset Quotes erd
28152 \end_inset
28153
28154 .
28155  In this case one can try to remove or add some text; if nothing works one
28156  has to use another shape.
28157 \end_layout
28158
28159 \begin_layout Standard
28160 \begin_inset VSpace bigskip
28161 \end_inset
28162
28163
28164 \end_layout
28165
28166 \begin_layout Standard
28167 For shapes with tips you will maybe see that \SpecialChar LaTeX
28168 's hyphenation routine fails
28169  for text in the tips.
28170  Therefore it is often necessary to add hyphenation points 
28171 \family sans
28172 (
28173 \begin_inset Info
28174 type  "shortcut"
28175 arg   "specialchar-insert hyphenation"
28176 \end_inset
28177
28178
28179 \family default
28180 ) to the corresponding text parts.
28181 \end_layout
28182
28183 \begin_layout Standard
28184 \begin_inset VSpace bigskip
28185 \end_inset
28186
28187
28188 \end_layout
28189
28190 \begin_layout Standard
28191 Shapepar paragraphs are either always centered or placed on the page so
28192  that their left border touches the left page margin.
28193  You can therefore not use the paragraph dialog to align such paragraphs.
28194  A solution is to put the paragraph into a minipage or parbox and align
28195  the box.
28196  The problem is hereby to find the right width for the box.
28197  Because if it is too wide and you center the box, the paragraph is not
28198  centered too because it sticks at the left side of the box.
28199  So you might have to play a bit with the width until it fits.
28200  Here are two heart-shaped paragraphs, the first one is not aligned, the
28201  second one is right-aligned:
28202 \end_layout
28203
28204 \begin_layout Standard
28205 \begin_inset Newpage newpage
28206 \end_inset
28207
28208
28209 \end_layout
28210
28211 \begin_layout Heart
28212 \noindent
28213
28214 \lang latin
28215 Lo\SpecialChar softhyphen
28216 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28217  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28218  voluptua.
28219  At vero eos et accusam et justo duo dolores et ea rebum.
28220  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28221  sit amet.
28222 \end_layout
28223
28224 \begin_layout Standard
28225 \begin_inset VSpace bigskip
28226 \end_inset
28227
28228
28229 \end_layout
28230
28231 \begin_layout Standard
28232 \noindent
28233 \align right
28234 \begin_inset Box Frameless
28235 position "t"
28236 hor_pos "c"
28237 has_inner_box 1
28238 inner_pos "t"
28239 use_parbox 1
28240 use_makebox 0
28241 width "42col%"
28242 special "none"
28243 height "1in"
28244 height_special "totalheight"
28245 thickness "0.4pt"
28246 separation "3pt"
28247 shadowsize "4pt"
28248 framecolor "black"
28249 backgroundcolor "none"
28250 status open
28251
28252 \begin_layout Heart
28253 \noindent
28254
28255 \lang latin
28256 Lo\SpecialChar softhyphen
28257 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28258  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28259  voluptua.
28260  At vero eos et accusam et justo duo dolores et ea rebum.
28261  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28262  sit amet.
28263 \end_layout
28264
28265 \end_inset
28266
28267
28268 \end_layout
28269
28270 \begin_layout Subsection
28271 Custom shapes
28272 \end_layout
28273
28274 \begin_layout Standard
28275 You can define any shape you want.
28276  Doing this manually is a lot of work because every coordinate must be specified.
28277  But there is a way to let the computer calculate the coordinates:
28278 \end_layout
28279
28280 \begin_layout Enumerate
28281 Install the program 
28282 \begin_inset CommandInset href
28283 LatexCommand href
28284 name "Jpgfdraw"
28285 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28286 literal "false"
28287
28288 \end_inset
28289
28290 .
28291 \end_layout
28292
28293 \begin_layout Enumerate
28294 In 
28295 \family sans
28296 Jpgfdraw
28297 \family default
28298  go to the menu 
28299 \family sans
28300 TeX/LaTeX\SpecialChar menuseparator
28301 Settings\SpecialChar menuseparator
28302 Set Normal Size
28303 \family default
28304  and select the font size you are using in your document.
28305  For example this document uses the size 12
28306 \begin_inset space \thinspace{}
28307 \end_inset
28308
28309 pt.
28310 \end_layout
28311
28312 \begin_layout Enumerate
28313 Draw a shape.
28314 \end_layout
28315
28316 \begin_layout Enumerate
28317 Use the menu 
28318 \family sans
28319 TeX/LaTeX\SpecialChar menuseparator
28320 Shapepar
28321 \family default
28322  to export the shape to coordinates.
28323  In the appearing dialog use either the outline of your shape for the coordinate
28324 s or the path itself.
28325 \begin_inset Foot
28326 status collapsed
28327
28328 \begin_layout Plain Layout
28329 For more information see 
28330 \begin_inset CommandInset href
28331 LatexCommand href
28332 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28333 literal "false"
28334
28335 \end_inset
28336
28337
28338 \end_layout
28339
28340 \end_inset
28341
28342
28343 \end_layout
28344
28345 \begin_layout Standard
28346 The coordinates are written into a \SpecialChar TeX
28347  file.
28348  To use it for your \SpecialChar LyX
28349  document
28350 \end_layout
28351
28352 \begin_layout Enumerate
28353 Place the cursor before the first character of your paragraph (or into a
28354  new empty one).
28355 \end_layout
28356
28357 \begin_layout Enumerate
28358 Open in \SpecialChar LyX
28359  the menu 
28360 \family sans
28361 Insert\SpecialChar menuseparator
28362 File\SpecialChar menuseparator
28363 Child
28364 \begin_inset space ~
28365 \end_inset
28366
28367 Document
28368 \family default
28369 , select the file and use 
28370 \family sans
28371 Input
28372 \family default
28373  as 
28374 \family sans
28375 Include Type.
28376 \end_layout
28377
28378 \begin_layout Standard
28379 \begin_inset VSpace defskip
28380 \end_inset
28381
28382
28383 \end_layout
28384
28385 \begin_layout Standard
28386 \begin_inset Note Greyedout
28387 status open
28388
28389 \begin_layout Plain Layout
28390
28391 \series bold
28392 Note
28393 \series default
28394 : The changed shape only applies to the current paragraph; everything is
28395  reset to normal for the next paragraph.
28396  Therefore the shape definition file must be input into every paragraph
28397  with the desired shape.
28398 \end_layout
28399
28400 \end_inset
28401
28402
28403 \end_layout
28404
28405 \begin_layout Standard
28406 \begin_inset VSpace bigskip
28407 \end_inset
28408
28409
28410 \end_layout
28411
28412 \begin_layout Standard
28413 Here is an example:
28414 \end_layout
28415
28416 \begin_layout Standard
28417 \begin_inset VSpace bigskip
28418 \end_inset
28419
28420
28421 \end_layout
28422
28423 \begin_layout Standard
28424 \begin_inset CommandInset include
28425 LatexCommand input
28426 filename "SpecialParagraphShape.tex"
28427 literal "true"
28428
28429 \end_inset
28430
28431
28432 \lang latin
28433 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28434  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28435  voluptua.
28436  At vero eos et accusam et justo duo dolores et ea rebum.
28437  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28438  sit amet.
28439  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28440  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28441  voluptua.
28442 \end_layout
28443
28444 \begin_layout Standard
28445 \begin_inset VSpace bigskip
28446 \end_inset
28447
28448
28449 \end_layout
28450
28451 \begin_layout Standard
28452
28453 \series bold
28454 A tip:
28455 \series default
28456  to draw complexer shapes in 
28457 \family sans
28458 Jpgfdraw
28459 \family default
28460  you can draw the shape in a program of your choice and import the resulting
28461  image to 
28462 \family sans
28463 Jpgfdraw
28464 \family default
28465 .
28466  Then you only need to draw a line or spline along the outline of the image.
28467 \end_layout
28468
28469 \begin_layout Standard
28470 \begin_inset VSpace bigskip
28471 \end_inset
28472
28473
28474 \end_layout
28475
28476 \begin_layout Standard
28477 The module 
28478 \family sans
28479 Custom paragraph shapes
28480 \family default
28481  also provides the two commands 
28482 \family sans
28483 shapepar
28484 \family default
28485  and 
28486 \family sans
28487 Shapepar
28488 \family default
28489  which can be used to define custom shapes coordinate by coordinate.
28490 \begin_inset Foot
28491 status collapsed
28492
28493 \begin_layout Plain Layout
28494 These commands are internally used for all shapes described here.
28495 \end_layout
28496
28497 \end_inset
28498
28499  For information how these styles are used and about further customization
28500  possibilities, have a look at the 
28501 \begin_inset CommandInset href
28502 LatexCommand href
28503 name "documentation"
28504 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28505 literal "false"
28506
28507 \end_inset
28508
28509  of the package 
28510 \begin_inset Flex Code
28511 status collapsed
28512
28513 \begin_layout Plain Layout
28514 shapepar
28515 \end_layout
28516
28517 \end_inset
28518
28519 .
28520 \end_layout
28521
28522 \end_body
28523 \end_document