]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move Article (mwart) section in Additional.lyx to Chapter 3 Document classes and...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871 Koma-Script
2872 \end_layout
2873
2874 \begin_layout Standard
2875 by 
2876 \noun on
2877 Bernd Rellermeyer
2878 \end_layout
2879
2880 \begin_layout Subsubsection
2881 Overview
2882 \end_layout
2883
2884 \begin_layout Standard
2885 The \SpecialChar LyX
2886  document classes 
2887 \emph on
2888 article (koma-script)
2889 \emph default
2890
2891 \emph on
2892 report (koma-script)
2893 \emph default
2894
2895 \emph on
2896 book
2897 \emph default
2898  
2899 \emph on
2900 (koma-script)
2901 \emph default
2902 , and 
2903 \emph on
2904 letter
2905 \emph default
2906  
2907 \emph on
2908 (koma-script)
2909 \emph default
2910  correspond to the \SpecialChar LaTeX
2911  document classes 
2912 \family typewriter
2913 scrartcl.cls
2914 \family default
2915
2916 \family typewriter
2917 scrreprt.cls
2918 \family default
2919
2920 \family typewriter
2921 scrbook.cls
2922 \family default
2923 , and 
2924 \family typewriter
2925 scrlettr.cls
2926 \family default
2927 , resp.
2928 \begin_inset space ~
2929 \end_inset
2930
2931 of the Koma-Script family.
2932  They are replacements for the standard document classes 
2933 \family typewriter
2934 article.cls
2935 \family default
2936
2937 \family typewriter
2938 report.cls
2939 \family default
2940
2941 \family typewriter
2942 book.cls
2943 \family default
2944  and 
2945 \family typewriter
2946 letter.cls
2947 \family default
2948 , resp., and fit better to European typography conventions in a number of
2949  points.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Standard character size is 11pt in 
2954 \emph on
2955 article (koma-script)
2956 \emph default
2957
2958 \emph on
2959 report (koma-script)
2960 \emph default
2961 , and 
2962 \emph on
2963 book (koma-script)
2964 \emph default
2965 , and 12pt in 
2966 \emph on
2967 letter (koma-script)
2968 \emph default
2969 .
2970 \end_layout
2971
2972 \begin_layout Itemize
2973 Headings, labels of the description environment, and a number of elements
2974  of the 
2975 \emph on
2976 letter (koma-script)
2977 \emph default
2978  document class are set in a bold sans serif font.
2979 \begin_inset Foot
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 There is a big difference between the bold sans serif old cm fonts and new
2984  ec fonts, especially in the appearance of headings.
2985  In comparison, the ec bold sans serif fonts look a bit thin.
2986  Here the \SpecialChar LaTeX
2987  package 
2988 \family typewriter
2989 cmsd.sty by
2990 \family default
2991  
2992 \shape smallcaps
2993 Walter Schmidt
2994 \shape default
2995  helps to produce the 
2996 \begin_inset Quotes eld
2997 \end_inset
2998
2999 usual
3000 \begin_inset Quotes erd
3001 \end_inset
3002
3003  appearance when using the ec fonts.
3004 \end_layout
3005
3006 \end_inset
3007
3008  The numbering of chapter headings is made in the same way as the numbering
3009  of section headings, that is without the extra line 
3010 \begin_inset Quotes eld
3011 \end_inset
3012
3013 Chapter\SpecialChar ldots
3014
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018 .
3019  In addition, the appearance of the headings can be modified by using a
3020  number of options (in \SpecialChar LyX
3021  to be entered in the field 
3022 \family sans
3023 Extra
3024 \begin_inset space ~
3025 \end_inset
3026
3027 Options
3028 \family default
3029  of the dialog 
3030 \family sans
3031 Layout\SpecialChar menuseparator
3032 Document
3033 \family default
3034 ).
3035  
3036 \end_layout
3037
3038 \begin_layout Itemize
3039 The main means in the Koma-Script document classes to design the type area
3040  are the options 
3041 \family sans
3042 BCOR
3043 \family default
3044  and 
3045 \family sans
3046 DIV
3047 \family default
3048  (in \SpecialChar LyX
3049  to be entered in the extra class options field in the dialog 
3050 \family sans
3051 Document\SpecialChar menuseparator
3052 Settings
3053 \family default
3054 ).
3055  They make a clearer modification of page margins possible as do the options
3056  of the dialog 
3057 \family sans
3058 Document\SpecialChar menuseparator
3059 Settings
3060 \family default
3061 .
3062  
3063 \end_layout
3064
3065 \begin_layout Itemize
3066 The \SpecialChar LaTeX
3067  document classes of the Koma-Script family define a number of additional
3068  commands.
3069  Those part of it which makes sense in \SpecialChar LyX
3070  is implemented in corresponding
3071  paragraph types.
3072 \end_layout
3073
3074 \begin_layout Standard
3075 Detailed descriptions of the \SpecialChar LaTeX
3076  document classes of the Koma-Script family
3077  can be found in the Koma-Script documentation 
3078 \emph on
3079 scrguide
3080 \emph default
3081  (German) and 
3082 \emph on
3083 scrguien
3084 \emph default
3085  (English).
3086 \end_layout
3087
3088 \begin_layout Subsubsection
3089 article (koma-script), report (koma-script), and book (koma-script)
3090 \end_layout
3091
3092 \begin_layout Standard
3093 The document classes 
3094 \emph on
3095 article (koma-script)
3096 \emph default
3097
3098 \emph on
3099 report (koma-script)
3100 \emph default
3101 , and 
3102 \emph on
3103 book
3104 \emph default
3105  
3106 \emph on
3107 (koma-script)
3108 \emph default
3109  are implemented in the layout files 
3110 \family typewriter
3111 scrartcl.layout
3112 \family default
3113
3114 \family typewriter
3115 scrreprt.layout
3116 \family default
3117 , and 
3118 \family typewriter
3119 scrbook.layout
3120 \family default
3121 , resp.
3122  They contain all the paragraph types of the corresponding standard document
3123  classes 
3124 \emph on
3125 article
3126 \emph default
3127
3128 \emph on
3129 report
3130 \emph default
3131 , and 
3132 \emph on
3133 book
3134 \emph default
3135 , resp., partly modified, with the exception of the \SpecialChar LyX
3136  specific 
3137 \family sans
3138 List
3139 \family default
3140 -type, which is replaced by the new 
3141 \family sans
3142 Labeling
3143 \family default
3144 -type having the same functionality.
3145  Beside the 
3146 \family sans
3147 Labeling
3148 \family default
3149 -Type there is a number of new paragraph types added.
3150  They are 
3151 \emph on
3152 not
3153 \emph default
3154  part of 
3155 \emph on
3156 letter (koma-script)
3157 \emph default
3158 .
3159 \end_layout
3160
3161 \begin_layout Itemize
3162
3163 \family sans
3164 Addpart, Addchap
3165 \family default
3166
3167 \family sans
3168 Addsec
3169 \family default
3170 : are equivalents to 
3171 \family sans
3172 Part*, Chapter*
3173 \family default
3174  and 
3175 \family sans
3176 Section*
3177 \family default
3178 , resp., additionally inserting an entry in the table of contents.
3179  
3180 \family sans
3181 Addpart
3182 \family default
3183  and 
3184 \family sans
3185 Addchap
3186 \family default
3187  are not contained in 
3188 \emph on
3189 article (koma-script)
3190 \emph default
3191 .
3192 \end_layout
3193
3194 \begin_layout Itemize
3195
3196 \family sans
3197 Addchap*
3198 \family default
3199
3200 \family sans
3201 Addsec*
3202 \family default
3203 : behave exactly as 
3204 \family sans
3205 Addchap
3206 \family default
3207  and 
3208 \family sans
3209 Addsec
3210 \family default
3211 , resp., additionally clearing running heads.
3212  
3213 \family sans
3214 Addchap*
3215 \family default
3216  is not contained in 
3217 \emph on
3218 article (koma-script)
3219 \emph default
3220 .
3221 \begin_inset Foot
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 There is also an 
3226 \family typewriter
3227
3228 \backslash
3229 addpart*
3230 \family default
3231  command in 
3232 \emph on
3233 book (koma-script)
3234 \emph default
3235  and in 
3236 \emph on
3237 report (koma-script)
3238 \emph default
3239 , but since this is identical to 
3240 \family sans
3241 Part*
3242 \family default
3243 , is has not been implemented in \SpecialChar LyX
3244 .
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \end_layout
3251
3252 \begin_layout Itemize
3253
3254 \family sans
3255 Minisec
3256 \family default
3257 : generates a heading directly above the following paragraph in the standard
3258  character size without affecting the structure of the document.
3259 \end_layout
3260
3261 \begin_layout Itemize
3262
3263 \family sans
3264 Captionabove
3265 \family default
3266  and 
3267 \family sans
3268 Captionbelow
3269 \family default
3270  are special captions which respect the different space settings needed
3271  for captions placed above or below an element (if you follow strict typographic
3272  rules, you might want to place table captions always above the table).
3273  You can also use the class option 
3274 \family typewriter
3275 tablecaptionsabove
3276 \family default
3277 , which will switch 
3278 \family sans
3279 caption
3280 \family default
3281  to 
3282 \family sans
3283 captionabove
3284 \family default
3285  for tables and 
3286 \family sans
3287 captionbelow
3288 \family default
3289  for figures.
3290  You need at least Koma-Script version 2.8q to use this.
3291 \end_layout
3292
3293 \begin_layout Itemize
3294
3295 \family sans
3296 Dictum
3297 \family default
3298 : can be used to set a bonmot, e.
3299 \begin_inset space \thinspace{}
3300 \end_inset
3301
3302 g.
3303 \begin_inset space \space{}
3304 \end_inset
3305
3306 at the beginning of a chapter.
3307  If you use the optional argument (
3308 \family sans
3309 Insert\SpecialChar menuseparator
3310 Dictum
3311 \begin_inset space ~
3312 \end_inset
3313
3314 Author
3315 \family default
3316 ), you can insert the dictum's author there.
3317  Dictum and author are separated by a line.
3318  You need at least Koma-Script version 2.8q to use this.
3319  
3320 \family sans
3321 Dictum
3322 \family default
3323  is not contained in 
3324 \emph on
3325 article (koma-script)
3326 \emph default
3327 .
3328 \end_layout
3329
3330 \begin_layout Standard
3331 The following types, together with the standard types 
3332 \family sans
3333 Title
3334 \family default
3335
3336 \family sans
3337 Author
3338 \family default
3339 , and 
3340 \family sans
3341 Date
3342 \family default
3343 , form the title area of the document.
3344  They must be entered ahead of the first 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 ordinary
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  paragraph.
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 The corresponding \SpecialChar LaTeX
3358  commands must appear before the 
3359 \family typewriter
3360
3361 \backslash
3362 maketitle
3363 \family default
3364  command.
3365 \end_layout
3366
3367 \end_inset
3368
3369  When such a type is used more than once, the latter usage overwrites the
3370  former one, that means, for every type only the latest usage is valid.
3371  The order of the different types however has, like 
3372 \family sans
3373 Title
3374 \family default
3375
3376 \family sans
3377 Author
3378 \family default
3379 , and 
3380 \family sans
3381 Date
3382 \family default
3383 , no effect on the appearance of the produced document.
3384 \end_layout
3385
3386 \begin_layout Itemize
3387
3388 \family sans
3389 Subject
3390 \family default
3391 : produces a centered paragraph above the ordinary title (
3392 \family sans
3393 Title
3394 \family default
3395
3396 \family sans
3397 Author
3398 \family default
3399
3400 \family sans
3401 Date
3402 \family default
3403 ) for the subject of the document.
3404 \end_layout
3405
3406 \begin_layout Itemize
3407
3408 \family sans
3409 Publishers
3410 \family default
3411 : produces a centered paragraph below the ordinary title (
3412 \family sans
3413 Title
3414 \family default
3415
3416 \family sans
3417 Author
3418 \family default
3419
3420 \family sans
3421 Date
3422 \family default
3423 ) for the publishers' name.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family sans
3429 Dedication
3430 \family default
3431 : in 
3432 \emph on
3433 report (koma-script)
3434 \emph default
3435  and 
3436 \emph on
3437 book (koma-script)
3438 \emph default
3439  produces a centered paragraph on its own page behind the title page, or
3440  in 
3441 \emph on
3442 article (koma-script)
3443 \emph default
3444  produces a centered paragraph below the ordinary title (
3445 \family sans
3446 Title
3447 \family default
3448
3449 \family sans
3450 Author
3451 \family default
3452
3453 \family sans
3454 Date
3455 \family default
3456
3457 \family sans
3458 Publishers
3459 \family default
3460 ) for a dedication.
3461 \end_layout
3462
3463 \begin_layout Itemize
3464
3465 \family sans
3466 Titlehead
3467 \family default
3468 : produces a left aligned paragraph above the ordinary title (
3469 \family sans
3470 Title
3471 \family default
3472
3473 \family sans
3474 Author
3475 \family default
3476
3477 \family sans
3478 Date
3479 \family default
3480
3481 \family sans
3482 Subject
3483 \family default
3484 ) for a document`s head.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Uppertitleback
3491 \family default
3492 : produces in a double-sided print in 
3493 \emph on
3494 report (koma-script)
3495 \emph default
3496  and 
3497 \emph on
3498 book (koma-script)
3499 \emph default
3500  a left-aligned paragraph at the top of the title page`s back or has no
3501  effect in a single-sided print or in 
3502 \emph on
3503 article (koma-script)
3504 \emph default
3505 .
3506 \end_layout
3507
3508 \begin_layout Itemize
3509
3510 \family sans
3511 Lowertitleback
3512 \family default
3513 : produces in a double-sided print in 
3514 \emph on
3515 report (koma-script)
3516 \emph default
3517  and 
3518 \emph on
3519 book (koma-script)
3520 \emph default
3521  a left-aligned paragraph at the bottom of the title page`s back or has
3522  no effect in a single-sided print or in 
3523 \emph on
3524 article (koma-script)
3525 \emph default
3526 .
3527 \end_layout
3528
3529 \begin_layout Itemize
3530
3531 \family sans
3532 Extratitle
3533 \family default
3534 : produces a special 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 dirty
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  page ahead of the actual document containing a paragraph without special
3543  formatting.
3544 \end_layout
3545
3546 \begin_layout Standard
3547 The layout files for the document classes 
3548 \emph on
3549 article (koma-script)
3550 \emph default
3551
3552 \emph on
3553 report (koma-script)
3554 \emph default
3555 , and 
3556 \emph on
3557 book (koma-script)
3558 \emph default
3559  do include the file 
3560 \family typewriter
3561 scrmacros.inc
3562 \family default
3563 .
3564  This is thought of as a place to define your own types.
3565  Copy scrmacros
3566 \family typewriter
3567 .inc
3568 \family default
3569  in your personal layout directory and edit the file!
3570 \end_layout
3571
3572 \begin_layout Subsubsection
3573 letter (koma-script)
3574 \end_layout
3575
3576 \begin_layout Description
3577 Note: This section discusses the obsolete 
3578 \family sans
3579 KOMA-Script-Letter (v.
3580 \begin_inset space ~
3581 \end_inset
3582
3583 1)
3584 \family default
3585 , which is not even included anymore in recent KOMA releases.
3586  Please refer to the next section for the current KOMA-Script-Letter class
3587  (v.
3588 \begin_inset space ~
3589 \end_inset
3590
3591 2)!
3592 \end_layout
3593
3594 \begin_layout Standard
3595 \noindent
3596 The document class 
3597 \emph on
3598 letter (koma-script)
3599 \emph default
3600  is implemented in the layout file 
3601 \family typewriter
3602 scrlettr.layout
3603 \family default
3604 .
3605  It contains all the paragraph types of the corresponding standard document
3606  class 
3607 \emph on
3608 letter
3609 \emph default
3610 , partly modified, with the exception of the \SpecialChar LyX
3611  specific types 
3612 \family sans
3613 \SpecialChar LyX
3614 -Code
3615 \family default
3616  and 
3617 \family sans
3618 Comment
3619 \family default
3620  and the 
3621 \family sans
3622 List
3623 \family default
3624  type, which is replaced by the new 
3625 \family sans
3626 Labeling
3627 \family default
3628  type.
3629  In addition, it contains, in contrast to the standard document class, the
3630  standard types 
3631 \family sans
3632 \SpecialChar LaTeX
3633
3634 \family default
3635
3636 \family sans
3637 Quotation
3638 \family default
3639
3640 \family sans
3641 Quote
3642 \family default
3643 , and 
3644 \family sans
3645 Verse
3646 \family default
3647 .
3648  Furthermore, there are a number of new letter specific types.
3649 \end_layout
3650
3651 \begin_layout Standard
3652 The appearance of the letter produced by this document class can be controlled
3653  by a number of \SpecialChar LaTeX
3654  commands, which you can put in the \SpecialChar LaTeX
3655  preamble.
3656 \begin_inset Foot
3657 status collapsed
3658
3659 \begin_layout Plain Layout
3660 For example, the standard appearance of the letter`s heading, consisting
3661  of name and address, is quite self-willed.
3662  An 
3663 \begin_inset Quotes eld
3664 \end_inset
3665
3666 ordinary
3667 \begin_inset Quotes erd
3668 \end_inset
3669
3670  heading is produced by the following \SpecialChar LaTeX
3671  commands in the preamble:
3672 \end_layout
3673
3674 \begin_layout LyX-Code
3675
3676 \backslash
3677 firsthead{
3678 \backslash
3679 parbox[b]{
3680 \backslash
3681 textwidth}
3682 \end_layout
3683
3684 \begin_layout LyX-Code
3685   {
3686 \backslash
3687 ignorespaces 
3688 \backslash
3689 fromname
3690 \backslash
3691
3692 \backslash
3693  
3694 \backslash
3695 ignorespaces 
3696 \backslash
3697 fromaddress}} 
3698 \end_layout
3699
3700 \begin_layout LyX-Code
3701
3702 \backslash
3703 nexthead{
3704 \backslash
3705 parbox[b]{
3706 \backslash
3707 textwidth}
3708 \end_layout
3709
3710 \begin_layout LyX-Code
3711   {
3712 \backslash
3713 ignorespaces 
3714 \backslash
3715 fromname 
3716 \backslash
3717 hfill 
3718 \backslash
3719 ignorespaces 
3720 \backslash
3721 pagename
3722 \backslash
3723  
3724 \backslash
3725 thepage}}
3726 \end_layout
3727
3728 \end_inset
3729
3730  A detailed German description of such \SpecialChar LaTeX
3731  commands can be found in the Koma-Script
3732  documentation 
3733 \emph on
3734 scrguide
3735 \emph default
3736 .
3737  With it, the letter's author can produce his personal letter layout.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The types 
3742 \family sans
3743 Letter
3744 \family default
3745  and 
3746 \family sans
3747 Opening
3748 \family default
3749  define the beginning of the letter and must be used in every letter.
3750  To emphasize them in the \SpecialChar LyX
3751  document class, they are marked with the letter
3752  
3753 \shape italic
3754 L
3755 \shape default
3756  or 
3757 \shape italic
3758 O
3759 \shape default
3760 , resp.
3761 \begin_inset space ~
3762 \end_inset
3763
3764 in the left margin.
3765  It is possible to write any number of letters in one file.
3766  An 
3767 \family sans
3768 Opening
3769 \family default
3770  type produces a new letter using the same addressee and a 
3771 \family sans
3772 Letter
3773 \family default
3774  type produces a new addressee.
3775  The types 
3776 \family sans
3777 Closing
3778 \family default
3779
3780 \family sans
3781 PS
3782 \family default
3783
3784 \family sans
3785 CC
3786 \family default
3787 , and 
3788 \family sans
3789 Encl
3790 \family default
3791  are ordinary paragraph types and can also be used several times in one
3792  and the same letter.
3793 \end_layout
3794
3795 \begin_layout Itemize
3796
3797 \family sans
3798 Letter
3799 \family default
3800 : produces a paragraph for the addressee and implicitly defines the beginning
3801  of the letter.
3802 \end_layout
3803
3804 \begin_layout Itemize
3805
3806 \family sans
3807 Opening
3808 \family default
3809 : produces a paragraph for the form of address and implicitly produces a
3810  new letter.
3811 \end_layout
3812
3813 \begin_layout Itemize
3814
3815 \family sans
3816 Closing
3817 \family default
3818 : produces a paragraph for a close.
3819 \end_layout
3820
3821 \begin_layout Itemize
3822
3823 \family sans
3824 PS
3825 \family default
3826 : produces a paragraph for a postscript.
3827 \end_layout
3828
3829 \begin_layout Itemize
3830
3831 \family sans
3832 CC
3833 \family default
3834 : produces a paragraph for a distribution list.
3835 \end_layout
3836
3837 \begin_layout Itemize
3838
3839 \family sans
3840 Encl
3841 \family default
3842 : produces a paragraph for enclosures.
3843 \end_layout
3844
3845 \begin_layout Standard
3846 The types 
3847 \family sans
3848 Name
3849 \family default
3850
3851 \family sans
3852 Signature
3853 \family default
3854
3855 \family sans
3856 Address
3857 \family default
3858
3859 \family sans
3860 Telephone
3861 \family default
3862
3863 \family sans
3864 Place
3865 \family default
3866
3867 \family sans
3868 Backaddress
3869 \family default
3870
3871 \family sans
3872 Specialmail
3873 \family default
3874
3875 \family sans
3876 Location
3877 \family default
3878
3879 \family sans
3880 Title
3881 \family default
3882 , and 
3883 \family sans
3884 Subject
3885 \family default
3886  are input types provided with a label to enter information, which will
3887  be processed by the document class.
3888 \begin_inset Foot
3889 status collapsed
3890
3891 \begin_layout Plain Layout
3892 It could be seen as a matter of inconsequence, that the types 
3893 \family sans
3894 Letter
3895 \family default
3896  and 
3897 \family sans
3898 Opening
3899 \family default
3900  described above are not such input types as well.
3901  Because of the special meaning of those types, however, I have implemented
3902  them as ordinary paragraph types with a one letter mark in the left margin.
3903  Moreover, it would affect my feeling of symmetry, if the 
3904 \family sans
3905 Opening
3906 \family default
3907  type and the 
3908 \family sans
3909 Closing
3910 \family default
3911  type had such a serious different appearance.
3912 \end_layout
3913
3914 \end_inset
3915
3916  The types must be used ahead of the corresponding 
3917 \family sans
3918 Opening
3919 \family default
3920  type.
3921 \end_layout
3922
3923 \begin_layout Standard
3924 An implementation of these types in a WYSIWYG fashion does not seem to make
3925  sense, because the real appearance of the produced letter does not only
3926  depend on the usage of the particular type, but also on other factors.
3927  For example, a signature entered in the 
3928 \family sans
3929 Signature
3930 \family default
3931  type will in the standard behavior appear in the produced letter only,
3932  when in the same letter also a 
3933 \family sans
3934 Closing
3935 \family default
3936  type is used.
3937  The entered value of the 
3938 \family sans
3939 Telephone
3940 \family default
3941  type will in the standard behavior not appear in the produced letter at
3942  all.
3943  The possibility to design the letter`s heading freely is already indicated
3944  in a footnote above.
3945 \end_layout
3946
3947 \begin_layout Standard
3948 The input types can also be used as empty paragraphs.
3949  This makes sense e.
3950 \begin_inset space \thinspace{}
3951 \end_inset
3952
3953 g.
3954 \begin_inset space \space{}
3955 \end_inset
3956
3957 for the 
3958 \family sans
3959 Signature
3960 \family default
3961  type.
3962  If the 
3963 \family sans
3964 Signature
3965 \family default
3966  type is not used at all, in the standard behavior the value of the 
3967 \family sans
3968 Name
3969 \family default
3970  type is used as signature, whereas if an empty 
3971 \family sans
3972 Signature
3973 \family default
3974  type is used, no signature value is defined.
3975 \end_layout
3976
3977 \begin_layout Standard
3978 By using the input types it is possible to write a letter template, containing
3979  filled input types with your personal dates (name, address, etc.) and empty
3980  input types for other dates you want to enter.
3981 \end_layout
3982
3983 \begin_layout Itemize
3984
3985 \family sans
3986 Name
3987 \family default
3988 : sender's name, in the standard behavior appears as a centered paragraph
3989  in small caps in the letter`s heading.
3990 \end_layout
3991
3992 \begin_layout Itemize
3993
3994 \family sans
3995 Signature
3996 \family default
3997 : sender's signature, in the standard behavior appears below the 
3998 \family sans
3999 Closing
4000 \family default
4001  type.
4002  If no 
4003 \family sans
4004 Signature
4005 \family default
4006  type is used, the value of the 
4007 \family sans
4008 Name
4009 \family default
4010  type appears instead.
4011 \end_layout
4012
4013 \begin_layout Itemize
4014
4015 \family sans
4016 Address
4017 \family default
4018 : sender's address, in the standard behavior appears in a centered paragraph
4019  in the letter`s heading below the sender's name.
4020 \end_layout
4021
4022 \begin_layout Itemize
4023
4024 \family sans
4025 Telephone
4026 \family default
4027 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4028  variable
4029  
4030 \family typewriter
4031
4032 \backslash
4033 telephonenum
4034 \family default
4035 .
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Place
4042 \family default
4043 : place of the letter`s making.
4044 \end_layout
4045
4046 \begin_layout Itemize
4047
4048 \family sans
4049 Date
4050 \family default
4051 : date of the letter`s making.
4052  
4053 \family sans
4054 Place
4055 \family default
4056  and 
4057 \family sans
4058 Date
4059 \family default
4060 , in the standard behavior, produce the place and the date in a right-aligned
4061  line below the addressee's field.
4062  If an empty 
4063 \family sans
4064 Date
4065 \family default
4066  type is used, neither place nor date appear, independent of the value of
4067  the 
4068 \family sans
4069 Place
4070 \family default
4071  type.
4072  If no 
4073 \family sans
4074 Date
4075 \family default
4076  type is used, the date of the letter `s production is used.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Backaddress
4083 \family default
4084 : sender`s back address, in the standard behavior appears above the addressee's
4085  field in a small sans serif font.
4086 \end_layout
4087
4088 \begin_layout Itemize
4089
4090 \family sans
4091 Specialmail
4092 \family default
4093 : special mail information, in the standard behavior appears underlined
4094  above the addressee's field below the back address.
4095 \end_layout
4096
4097 \begin_layout Itemize
4098
4099 \family sans
4100 Location
4101 \family default
4102 : additional information, in the standard behavior appears on right side
4103  below the addressee`s field.
4104 \end_layout
4105
4106 \begin_layout Itemize
4107
4108 \family sans
4109 Title
4110 \family default
4111 : the letter's title, in the standard behavior appears in a big, bold, sans
4112  serif font above the subject.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \family sans
4118 Subject
4119 \family default
4120 : the letter's subject, in the standard behavior appears in a bold font
4121  above the 
4122 \family sans
4123 Opening
4124 \family default
4125  paragraph.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 The types 
4130 \family sans
4131 Yourref
4132 \family default
4133
4134 \family sans
4135 Yourmail
4136 \family default
4137
4138 \family sans
4139 Myref
4140 \family default
4141
4142 \family sans
4143 Customer
4144 \family default
4145 , and 
4146 \family sans
4147 Invoice
4148 \family default
4149  produce a business letter like line above the 
4150 \family sans
4151 Title
4152 \family default
4153  line containing the fields 
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Your ref.
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Your letter of
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Our ref.
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 Customer no.
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185
4186 \begin_inset Quotes eld
4187 \end_inset
4188
4189 Invoice no.
4190 \begin_inset Quotes erd
4191 \end_inset
4192
4193 , and 
4194 \begin_inset Quotes eld
4195 \end_inset
4196
4197 Date
4198 \begin_inset Quotes erd
4199 \end_inset
4200
4201 .
4202  For the date field, the value of the 
4203 \family sans
4204 Date
4205 \family default
4206  type is used.
4207  If one of these 
4208 \begin_inset Quotes eld
4209 \end_inset
4210
4211 business letter types
4212 \begin_inset Quotes erd
4213 \end_inset
4214
4215  is used, the value of the 
4216 \family sans
4217 Place
4218 \family default
4219  type however does not appear, but only the \SpecialChar LaTeX
4220  variable 
4221 \family typewriter
4222
4223 \backslash
4224 fromplace
4225 \family default
4226  is set.
4227  The ordinary output of place and date in a right-aligned line below the
4228  addressee`s field is suppressed.
4229  The types are implemented as input types provided with a label and must
4230  be used ahead of the corresponding 
4231 \family sans
4232 Opening
4233 \family default
4234  type.
4235 \end_layout
4236
4237 \begin_layout Itemize
4238
4239 \family sans
4240 Yourref
4241 \family default
4242 : Your ref.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Yourmail
4249 \family default
4250 : Your letter of.
4251 \end_layout
4252
4253 \begin_layout Itemize
4254
4255 \family sans
4256 Myref
4257 \family default
4258 : Our ref.
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Customer
4265 \family default
4266 : Customer no.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Invoice
4273 \family default
4274 : Invoice no.
4275 \end_layout
4276
4277 \begin_layout Subsubsection
4278 The new letter class: letter (koma-script v.2)
4279 \end_layout
4280
4281 \begin_layout Standard
4282 by 
4283 \noun on
4284 Jürgen Spitzmüller
4285 \end_layout
4286
4287 \begin_layout Standard
4288 \begin_inset VSpace medskip
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Standard
4295 \noindent
4296 Koma-Script version 2.8 has introduced a new letter class 
4297 \family typewriter
4298 scrlttr2
4299 \family default
4300  which supersedes the now unsupported 
4301 \family typewriter
4302 scrlettr
4303 \family default
4304 .
4305  It has — on the \SpecialChar LaTeX
4306  side — a completely new interface and is not compatible
4307  with the old class.
4308  Therefore, \SpecialChar LyX
4309  supports both, though it is recommended you use the new class.
4310 \end_layout
4311
4312 \begin_layout Standard
4313 This class covers the same functionality as 
4314 \emph on
4315 letter (koma-script),
4316 \emph default
4317  and a few more.
4318  The basic items are 
4319 \family sans
4320 Address
4321 \family default
4322  (receiver's address, same as 
4323 \family sans
4324 Letter
4325 \family default
4326  in the old layout), 
4327 \family sans
4328 Opening
4329 \family default
4330 , and 
4331 \family sans
4332 Closing
4333 \family default
4334 .
4335  
4336 \family sans
4337 NextAddress
4338 \family default
4339  will start a new letter (i.
4340 \begin_inset space \thinspace{}
4341 \end_inset
4342
4343 e.
4344 \begin_inset space \space{}
4345 \end_inset
4346
4347 you can write several letters per document).
4348  New elements are sender's 
4349 \family sans
4350 E-Mail
4351 \family default
4352
4353 \family sans
4354 URL
4355 \family default
4356
4357 \family sans
4358 Fax
4359 \family default
4360
4361 \family sans
4362 Bank
4363 \family default
4364  and the possibility to use a 
4365 \family sans
4366 Logo
4367 \family default
4368  (via 
4369 \family sans
4370 Insert\SpecialChar menuseparator
4371 Graphics
4372 \family default
4373 ) in the header.
4374 \end_layout
4375
4376 \begin_layout Standard
4377 The biggest improvement is, though, that the letter's layout is configurable
4378  to meet almost any needs.
4379  This can be done via the preamble or with a special style file (Letter
4380  Class Option, extension 
4381 \family typewriter
4382 *.lco
4383 \family default
4384 ), that will be read in as a class option.
4385 \begin_inset Foot
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 The KOMA package comes with some default 
4390 \family typewriter
4391 *.lco
4392 \family default
4393  files.
4394  There is, for instance, a 
4395 \family typewriter
4396 DIN.lco
4397 \family default
4398  file that follows german typesetting rules, or a 
4399 \family typewriter
4400 KOMAold.lco
4401 \family default
4402  that provides the default layout of the old 
4403 \family typewriter
4404 scrlettr
4405 \family default
4406  class.
4407  The latter can be loaded with the class option 
4408 \family typewriter
4409 KOMAold
4410 \family default
4411 , inserted via the 
4412 \family sans
4413 Layout\SpecialChar menuseparator
4414 Document\SpecialChar menuseparator
4415 Extra Options
4416 \family default
4417  field.
4418 \end_layout
4419
4420 \end_inset
4421
4422  Have a look at the 
4423 \emph on
4424 koma-letter2
4425 \emph default
4426  template that is included in \SpecialChar LyX
4427  for examples.
4428  A detailed description is to be found in the Koma-Script documentation
4429  (
4430 \emph on
4431 scrguide
4432 \emph default
4433 ).
4434 \end_layout
4435
4436 \begin_layout Subsubsection
4437 Problems
4438 \end_layout
4439
4440 \begin_layout Standard
4441 Visualizing the Koma-Script document classes in \SpecialChar LyX
4442 , the \SpecialChar LyX
4443  internals cause some
4444  problems.
4445 \end_layout
4446
4447 \begin_layout Itemize
4448 The chapter number of a 
4449 \family sans
4450 Chapter
4451 \family default
4452  type appears on a line of its own above the chapter heading instead of
4453  appearing in the same line ahead of it.
4454  The cause for that is the \SpecialChar LyX
4455  internal behavior for the labeltype 
4456 \family sans
4457 Counter_Chapter
4458 \family default
4459  in the layout file.
4460 \end_layout
4461
4462 \begin_layout Itemize
4463 The headings of the types 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471  are only put in the 
4472 \begin_inset Quotes eld
4473 \end_inset
4474
4475 true
4476 \begin_inset Quotes erd
4477 \end_inset
4478
4479  \SpecialChar LaTeX
4480  table of contents, but not in the \SpecialChar LyX
4481  table of contents (
4482 \family sans
4483 Document\SpecialChar menuseparator
4484 Table
4485 \begin_inset space ~
4486 \end_inset
4487
4488 of
4489 \begin_inset space ~
4490 \end_inset
4491
4492 Contents
4493 \family default
4494 ).
4495 \end_layout
4496
4497 \begin_layout Itemize
4498 The paragraphs in a 
4499 \emph on
4500 letter
4501 \emph default
4502  document class appear in a skip separation mode, not indented.
4503  This is the standard behavior, no special \SpecialChar LaTeX
4504  commands are needed for that.
4505  But in the 
4506 \family sans
4507 Document\SpecialChar menuseparator
4508 Settings
4509 \family default
4510  dialog the corresponding radio button indicates 
4511 \family sans
4512 Indent
4513 \family default
4514 .
4515  A 
4516 \family sans
4517 Skip
4518 \family default
4519  value always has the effect that extra \SpecialChar LaTeX
4520  commands are inserted in the document
4521  to produce the gap, which is not what is wanted in this case.
4522 \end_layout
4523
4524 \begin_layout Subsection
4525
4526 \change_inserted 564990737 1670924924
4527 Polish M.
4528 \begin_inset space \thinspace{}
4529 \end_inset
4530
4531 W.
4532 \begin_inset space \space{}
4533 \end_inset
4534
4535 collection
4536 \change_deleted 564990737 1670924933
4537 Article (mwart), book (mwbk) and report (mwrep)
4538 \begin_inset Argument status
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542 The 
4543 \family typewriter
4544 mw
4545 \family default
4546  Classes
4547 \end_layout
4548
4549 \end_inset
4550
4551
4552 \change_unchanged
4553
4554 \end_layout
4555
4556 \begin_layout Standard
4557 by 
4558 \noun on
4559 Tomasz Luczak
4560 \end_layout
4561
4562 \begin_layout Standard
4563 The \SpecialChar LyX
4564  document classes 
4565 \emph on
4566 article (mwart)
4567 \emph default
4568
4569 \emph on
4570 report (mwrep)
4571 \emph default
4572  and 
4573 \emph on
4574 book
4575 \emph default
4576  
4577 \emph on
4578 (mwbk)
4579 \emph default
4580  correspond to the \SpecialChar LaTeX
4581  document classes 
4582 \family typewriter
4583 mwart.cls
4584 \family default
4585
4586 \family typewriter
4587 mwrep.cls
4588 \family default
4589  and 
4590 \family typewriter
4591 mwbk.cls
4592 \family default
4593 , resp.
4594  They are replacements for the standard document classes 
4595 \family typewriter
4596 article.cls
4597 \family default
4598
4599 \family typewriter
4600 report.cls
4601 \family default
4602  and 
4603 \family typewriter
4604 book.cls
4605 \family default
4606 , resp., and fit better to Polish typography conventions in a number of points.
4607  
4608 \end_layout
4609
4610 \begin_layout Standard
4611 Basic differences:
4612 \end_layout
4613
4614 \begin_layout Itemize
4615 Unnumbered titles (with star, e.
4616 \begin_inset space \thinspace{}
4617 \end_inset
4618
4619 g.
4620 \begin_inset space \space{}
4621 \end_inset
4622
4623
4624 \family sans
4625 Section*
4626 \family default
4627 ) are added into table of contents,
4628 \end_layout
4629
4630 \begin_layout Itemize
4631 Additional page styles:
4632 \end_layout
4633
4634 \begin_deeper
4635 \begin_layout Description
4636 uheadings header with separated lines,
4637 \end_layout
4638
4639 \begin_layout Description
4640 myheadings custom header, contents headers via commands: 
4641 \family typewriter
4642
4643 \backslash
4644 markright
4645 \family default
4646  and 
4647 \family typewriter
4648
4649 \backslash
4650 markboth
4651 \family default
4652 ,
4653 \end_layout
4654
4655 \begin_layout Description
4656 myuheadings custom header with separated lines,
4657 \end_layout
4658
4659 \begin_layout Description
4660 outer page number is placed on outer side of page
4661 \end_layout
4662
4663 \end_deeper
4664 \begin_layout Itemize
4665 Options 
4666 \end_layout
4667
4668 \begin_deeper
4669 \begin_layout Description
4670 rmheadings serif titles — default,
4671 \end_layout
4672
4673 \begin_layout Description
4674 sfheadings sansserif titles,
4675 \end_layout
4676
4677 \begin_layout Description
4678 authortitle on title page first placed is author next title — default,
4679 \end_layout
4680
4681 \begin_layout Description
4682 titleauthor on title page first placed is title next author,
4683 \end_layout
4684
4685 \begin_layout Description
4686 withmarginpar reserve place on page for margins.
4687 \end_layout
4688
4689 \end_deeper
4690 \begin_layout Section
4691
4692 \change_inserted 564990737 1670439534
4693 Articles
4694 \end_layout
4695
4696 \begin_layout Standard
4697
4698 \change_inserted 564990737 1670794710
4699 See also the document classes in the Collections (section
4700 \begin_inset space ~
4701 \end_inset
4702
4703
4704 \begin_inset CommandInset ref
4705 LatexCommand ref
4706 reference "sec:Collections"
4707
4708 \end_inset
4709
4710 ).
4711 \end_layout
4712
4713 \begin_layout Subsection
4714
4715 \change_inserted 564990737 1670794716
4716
4717 \lang american
4718 A&A Paper
4719 \end_layout
4720
4721 \begin_layout Standard
4722
4723 \change_inserted 564990737 1670794716
4724
4725 \lang american
4726 Original by 
4727 \noun on
4728 Peter Sütterlin
4729 \noun default
4730 ; updated by the \SpecialChar LyX
4731  Team
4732 \end_layout
4733
4734 \begin_layout Subsubsection
4735
4736 \change_inserted 564990737 1670794716
4737
4738 \lang american
4739 Introduction
4740 \end_layout
4741
4742 \begin_layout Standard
4743
4744 \change_inserted 564990737 1670794716
4745
4746 \lang american
4747 This section describes how \SpecialChar LyX
4748  can be used to write articles for submission
4749  to the scientific journal 
4750 \emph on
4751 Astronomy and Astrophysics
4752 \emph default
4753  (
4754 \begin_inset CommandInset href
4755 LatexCommand href
4756 name "aa-package"
4757 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4758 literal "false"
4759
4760 \end_inset
4761
4762 ) using Version 9.1 of the document class 
4763 \family typewriter
4764 aa.cls
4765 \family default
4766 ; information about it is available at 
4767 \begin_inset Flex URL
4768 status collapsed
4769
4770 \begin_layout Plain Layout
4771
4772 \change_inserted 564990737 1670794716
4773
4774 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4775 \change_unchanged
4776
4777 \end_layout
4778
4779 \end_inset
4780
4781 .
4782 \end_layout
4783
4784 \begin_layout Standard
4785
4786 \change_inserted 564990737 1670794716
4787
4788 \lang american
4789 A manual comes together with the package and should be consulted before
4790  installing this document class as described in the 
4791 \emph on
4792 Installing New Document Classe
4793 \emph default
4794 s section of the 
4795 \emph on
4796 Customization
4797 \emph default
4798  manual.
4799  
4800 \end_layout
4801
4802 \begin_layout Standard
4803
4804 \change_inserted 564990737 1670794716
4805
4806 \lang american
4807 \begin_inset Note Greyedout
4808 status open
4809
4810 \begin_layout Plain Layout
4811
4812 \change_inserted 564990737 1670794716
4813
4814 \lang american
4815 Please note that the publisher of the journal was changed from Springer
4816  to EDP Sciences starting January 1, 2001.
4817  That change also involved some slight changes to the style files, namely
4818  the removal of the thesaurus command.
4819  If you have an older version installed, please upgrade.
4820  For information about compatibility with the old (version 4) layout, please
4821  refer to the comments in 
4822 \family typewriter
4823 \SpecialChar LyX
4824 Dir/layouts/aapaper.layout
4825 \family default
4826 .
4827 \end_layout
4828
4829 \end_inset
4830
4831
4832 \end_layout
4833
4834 \begin_layout Subsubsection
4835
4836 \change_inserted 564990737 1670794716
4837
4838 \lang american
4839 Getting started
4840 \end_layout
4841
4842 \begin_layout Standard
4843
4844 \change_inserted 564990737 1670794716
4845
4846 \lang american
4847 It is recommended you start from the template 
4848 \emph on
4849 aa.lyx
4850 \emph default
4851  in the menu 
4852 \family sans
4853 \bar under
4854 F
4855 \bar default
4856 ile\SpecialChar menuseparator
4857 New
4858 \begin_inset space ~
4859 \end_inset
4860
4861 fro
4862 \bar under
4863 m
4864 \bar default
4865
4866 \begin_inset space ~
4867 \end_inset
4868
4869 Template
4870 \family default
4871 .
4872  If you are not using the template, note the following settings:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876
4877 \change_inserted 564990737 1670794716
4878
4879 \lang american
4880 Select 
4881 \family sans
4882 article (A&A)
4883 \family default
4884  in the 
4885 \family sans
4886 \bar under
4887 D
4888 \bar default
4889 ocument\SpecialChar menuseparator
4890
4891 \bar under
4892 S
4893 \bar default
4894 ettings\SpecialChar menuseparator
4895 Document
4896 \begin_inset space ~
4897 \end_inset
4898
4899 Class
4900 \family default
4901  dialog (OK, that one was obvious).
4902 \end_layout
4903
4904 \begin_layout Itemize
4905
4906 \change_inserted 564990737 1670794716
4907
4908 \lang american
4909 Don't change the 
4910 \family sans
4911 Headings
4912 \begin_inset space ~
4913 \end_inset
4914
4915
4916 \bar under
4917 s
4918 \bar default
4919 tyle
4920 \family default
4921  in the 
4922 \family sans
4923 Page
4924 \begin_inset space ~
4925 \end_inset
4926
4927 Layout
4928 \family default
4929  dialog: leave it set to 
4930 \family sans
4931 Default
4932 \family default
4933 .
4934  The whole layout is done by the macros, you shouldn't change anything.
4935 \end_layout
4936
4937 \begin_layout Subsubsection
4938
4939 \change_inserted 564990737 1670794716
4940
4941 \lang american
4942 The header block
4943 \end_layout
4944
4945 \begin_layout Standard
4946
4947 \change_inserted 564990737 1670794716
4948
4949 \lang american
4950 First thing to enter is the header information.
4951  It consists of five entries, of which one is optional.
4952  They are
4953 \end_layout
4954
4955 \begin_layout Itemize
4956
4957 \change_inserted 564990737 1670794716
4958
4959 \family sans
4960 \lang american
4961 Title
4962 \family default
4963 : [required] 
4964 \end_layout
4965
4966 \begin_layout Itemize
4967
4968 \change_inserted 564990737 1670794716
4969
4970 \family sans
4971 \lang american
4972 Subtitle
4973 \family default
4974 : [optional] 
4975 \end_layout
4976
4977 \begin_layout Itemize
4978
4979 \change_inserted 564990737 1670794716
4980
4981 \family sans
4982 \lang american
4983 Author
4984 \family default
4985 : [required]
4986 \end_layout
4987
4988 \begin_layout Itemize
4989
4990 \change_inserted 564990737 1670794716
4991
4992 \family typewriter
4993 \lang american
4994 Institute
4995 \family default
4996 : [required]
4997 \end_layout
4998
4999 \begin_layout Itemize
5000
5001 \change_inserted 564990737 1670794716
5002
5003 \family sans
5004 \lang american
5005 Date
5006 \family default
5007 : [required].
5008  Suggested format is 
5009 \family typewriter
5010 Received: <date>; Accepted <date> 
5011 \end_layout
5012
5013 \begin_layout Standard
5014
5015 \change_inserted 564990737 1670794716
5016
5017 \lang american
5018 Although the order of the single header entries doesn't matter it is advised
5019  to keep the above sequence, just to get the best optics and meets the layout
5020  of the real document.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_inserted 564990737 1670794716
5026
5027 \lang american
5028 If you want to place footnotes in the header block, e.
5029 \begin_inset space \thinspace{}
5030 \end_inset
5031
5032 g.
5033 \begin_inset space \space{}
5034 \end_inset
5035
5036 to state your present address, just use the standard footnote via the menu
5037  
5038 \family sans
5039 \bar under
5040 I
5041 \bar default
5042 nsert\SpecialChar menuseparator
5043
5044 \bar under
5045 F
5046 \bar default
5047 ootnote.
5048
5049 \family default
5050  \SpecialChar LyX
5051  will automagically use the term 
5052 \family typewriter
5053
5054 \backslash
5055 thanks{}
5056 \family default
5057  in that case.
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5066  commands that
5067  have no counterpart in \SpecialChar LyX
5068 :
5069 \end_layout
5070
5071 \begin_layout Itemize
5072
5073 \change_inserted 564990737 1670794716
5074
5075 \family typewriter
5076 \lang american
5077
5078 \backslash
5079 and
5080 \family default
5081  to separate different names for more than one author and institute, respectivel
5082 y.
5083 \end_layout
5084
5085 \begin_layout Itemize
5086
5087 \change_inserted 564990737 1670794716
5088
5089 \family typewriter
5090 \lang american
5091
5092 \backslash
5093 inst{<nr>}
5094 \family default
5095  to mark corresponding author/institute pairs.
5096  The institutes are numbered sequentially as they appear in the 
5097 \family sans
5098 Institute
5099 \family default
5100  field, so you have to put a marker to each author.
5101 \end_layout
5102
5103 \begin_layout Itemize
5104
5105 \change_inserted 564990737 1670794716
5106
5107 \family typewriter
5108 \lang american
5109
5110 \backslash
5111 email{address}
5112 \family default
5113  to supply an email address for fast contact.
5114 \end_layout
5115
5116 \begin_layout Standard
5117
5118 \change_inserted 564990737 1670794716
5119
5120 \lang american
5121 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5122  code in \SpecialChar LyX
5123 .
5124  See the examples in the template and in the file 
5125 \emph on
5126 aa_sample.lyx
5127 \emph default
5128  in the 
5129 \family sans
5130 Examples
5131 \family default
5132  directory.
5133  
5134 \end_layout
5135
5136 \begin_layout Subsubsection
5137
5138 \change_inserted 564990737 1670794716
5139
5140 \lang american
5141 The abstract
5142 \end_layout
5143
5144 \begin_layout Standard
5145
5146 \change_inserted 564990737 1670794716
5147
5148 \lang american
5149 The abstract should immediately follow the header block and must contain
5150  five tokens: 
5151 \family typewriter
5152
5153 \backslash
5154 abstract{}{}{}{}{}
5155 \family default
5156  
5157 \end_layout
5158
5159 \begin_layout Enumerate
5160
5161 \change_inserted 564990737 1670794716
5162
5163 \family typewriter
5164 \lang american
5165 context heading
5166 \family default
5167  (optional) {} leave it empty if necessary 
5168 \end_layout
5169
5170 \begin_layout Enumerate
5171
5172 \change_inserted 564990737 1670794716
5173
5174 \family typewriter
5175 \lang american
5176 aims heading
5177 \family default
5178  (mandatory) {} 
5179 \end_layout
5180
5181 \begin_layout Enumerate
5182
5183 \change_inserted 564990737 1670794716
5184
5185 \family typewriter
5186 \lang american
5187 methods heading
5188 \family default
5189  (mandatory) {} 
5190 \end_layout
5191
5192 \begin_layout Enumerate
5193
5194 \change_inserted 564990737 1670794716
5195
5196 \family typewriter
5197 \lang american
5198 results heading
5199 \family default
5200  (mandatory) {} 
5201 \end_layout
5202
5203 \begin_layout Enumerate
5204
5205 \change_inserted 564990737 1670794716
5206
5207 \family typewriter
5208 \lang american
5209 conclusions heading
5210 \family default
5211  (optional) {} leave it empty if necessary 
5212 \end_layout
5213
5214 \begin_layout Standard
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \lang american
5219 (NB.
5220  This structure not shown in 
5221 \emph on
5222 aa_sample.lyx.
5223 \emph default
5224 )
5225 \end_layout
5226
5227 \begin_layout Subsubsection
5228
5229 \change_inserted 564990737 1670794716
5230
5231 \lang american
5232 Supported environments
5233 \end_layout
5234
5235 \begin_layout Standard
5236
5237 \change_inserted 564990737 1670794716
5238
5239 \lang american
5240 The A&A paper layout supports the following environments for structuring
5241  your text:
5242 \end_layout
5243
5244 \begin_layout Itemize
5245
5246 \change_inserted 564990737 1670794716
5247
5248 \family sans
5249 \lang american
5250 Standard
5251 \end_layout
5252
5253 \begin_layout Itemize
5254
5255 \change_inserted 564990737 1670794716
5256
5257 \family sans
5258 \lang american
5259 Section
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Subsection
5269 \end_layout
5270
5271 \begin_layout Itemize
5272
5273 \change_inserted 564990737 1670794716
5274
5275 \family sans
5276 \lang american
5277 Subsubsection
5278 \end_layout
5279
5280 \begin_layout Itemize
5281
5282 \change_inserted 564990737 1670794716
5283
5284 \family sans
5285 \lang american
5286 Itemize
5287 \end_layout
5288
5289 \begin_layout Itemize
5290
5291 \change_inserted 564990737 1670794716
5292
5293 \family sans
5294 \lang american
5295 Enumerate
5296 \end_layout
5297
5298 \begin_layout Itemize
5299
5300 \change_inserted 564990737 1670794716
5301
5302 \family sans
5303 \lang american
5304 Description
5305 \end_layout
5306
5307 \begin_layout Itemize
5308
5309 \change_inserted 564990737 1670794716
5310
5311 \family sans
5312 \lang american
5313 Caption
5314 \end_layout
5315
5316 \begin_layout Itemize
5317
5318 \change_inserted 564990737 1670794716
5319
5320 \family sans
5321 \lang american
5322 Abstract
5323 \end_layout
5324
5325 \begin_layout Itemize
5326
5327 \change_inserted 564990737 1670794716
5328
5329 \family sans
5330 \lang american
5331 Acknowledgment
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family sans
5339 \lang american
5340 Bibliography
5341 \end_layout
5342
5343 \begin_layout Itemize
5344
5345 \change_inserted 564990737 1670794716
5346
5347 \family sans
5348 \lang american
5349 \SpecialChar LaTeX
5350
5351 \end_layout
5352
5353 \begin_layout Subsubsection
5354
5355 \change_inserted 564990737 1670794716
5356
5357 \lang american
5358 Commands not supported by \SpecialChar LyX
5359
5360 \end_layout
5361
5362 \begin_layout Standard
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \lang american
5367 Some commands are not yet supported by the 
5368 \family sans
5369 paper (A&A)
5370 \family default
5371  layout for \SpecialChar LyX
5372 .
5373  Some have already been mentioned.
5374  For the sake of completeness, they are listed all together here:
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \change_inserted 564990737 1670794716
5380
5381 \family typewriter
5382 \lang american
5383
5384 \backslash
5385 and
5386 \end_layout
5387
5388 \begin_layout Itemize
5389
5390 \change_inserted 564990737 1670794716
5391
5392 \family typewriter
5393 \lang american
5394
5395 \backslash
5396 email
5397 \end_layout
5398
5399 \begin_layout Itemize
5400
5401 \change_inserted 564990737 1670794716
5402
5403 \family typewriter
5404 \lang american
5405
5406 \backslash
5407 inst{}
5408 \end_layout
5409
5410 \begin_layout Itemize
5411
5412 \change_inserted 564990737 1670794716
5413
5414 \family typewriter
5415 \lang american
5416
5417 \backslash
5418 keywords{}
5419 \end_layout
5420
5421 \begin_layout Itemize
5422
5423 \change_inserted 564990737 1670794716
5424
5425 \family typewriter
5426 \lang american
5427
5428 \backslash
5429 object{}
5430 \end_layout
5431
5432 \begin_layout Standard
5433
5434 \change_inserted 564990737 1670794716
5435
5436 \lang american
5437 If you want to use any of these commands, you have to enter them yourself.
5438  
5439 \family typewriter
5440 Do not forget to use
5441 \family sans
5442  
5443 \bar under
5444 I
5445 \bar default
5446 nsert\SpecialChar menuseparator
5447 \SpecialChar TeX
5448
5449 \begin_inset space ~
5450 \end_inset
5451
5452 Code
5453 \family default
5454 \series bold
5455 !
5456 \end_layout
5457
5458 \begin_layout Subsubsection
5459
5460 \change_inserted 564990737 1670794716
5461
5462 \lang american
5463 Figure and Table Floats
5464 \end_layout
5465
5466 \begin_layout Standard
5467
5468 \change_inserted 564990737 1670794716
5469
5470 \lang american
5471 \SpecialChar LyX
5472  provides support for the necessary float environments 
5473 \family sans
5474 figure, figure*, table
5475 \family default
5476  and 
5477 \family sans
5478 table*
5479 \family default
5480 , therefore we won't tell much about it here.
5481  Refer to the 
5482 \emph on
5483 User's
5484 \begin_inset space ~
5485 \end_inset
5486
5487 Guide
5488 \emph default
5489 .
5490  Just remember that tables should be left-aligned.
5491  For that, select the table and change the alignment in 
5492 \family sans
5493 \bar under
5494 E
5495 \bar default
5496 dit\SpecialChar menuseparator
5497
5498 \bar under
5499 P
5500 \bar default
5501 aragraph
5502 \begin_inset space ~
5503 \end_inset
5504
5505 Settings.
5506 \end_layout
5507
5508 \begin_layout Standard
5509
5510 \change_inserted 564990737 1670794716
5511
5512 \lang american
5513 There is only one special thing: the figures with a caption beside the figure.
5514  To create such a figure, you have to do the following:
5515 \end_layout
5516
5517 \begin_layout Enumerate
5518
5519 \change_inserted 564990737 1670794716
5520
5521 \lang american
5522 Create a wide figure float: 
5523 \family sans
5524 \bar under
5525 I
5526 \bar default
5527 nsert\SpecialChar menuseparator
5528 Flo
5529 \bar under
5530 a
5531 \bar default
5532 t\SpecialChar menuseparator
5533 Figure
5534 \family default
5535 , then, from within the float, use the menu 
5536 \family sans
5537 \bar under
5538 E
5539 \bar default
5540 dit\SpecialChar menuseparator
5541 Flo
5542 \bar under
5543 a
5544 \bar default
5545 t
5546 \begin_inset space ~
5547 \end_inset
5548
5549 Settings
5550 \family default
5551  and check 
5552 \family sans
5553 \bar under
5554 S
5555 \bar default
5556 pan
5557 \begin_inset space ~
5558 \end_inset
5559
5560 columns
5561 \family default
5562  in the 
5563 \family sans
5564 float
5565 \family default
5566  dialog.
5567 \end_layout
5568
5569 \begin_layout Enumerate
5570
5571 \change_inserted 564990737 1670794716
5572
5573 \lang american
5574 Enter your caption text.
5575 \end_layout
5576
5577 \begin_layout Enumerate
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \lang american
5582 Press 
5583 \family sans
5584 Return
5585 \family default
5586  to move the cursor above the caption.
5587 \end_layout
5588
5589 \begin_layout Enumerate
5590
5591 \change_inserted 564990737 1670794716
5592
5593 \lang american
5594 Insert your figure
5595 \end_layout
5596
5597 \begin_layout Enumerate
5598
5599 \change_inserted 564990737 1670794716
5600
5601 \lang american
5602 Position the cursor after the figure and insert a horizontal fill by using
5603  the menu: 
5604 \family sans
5605 \bar under
5606 I
5607 \bar default
5608 nsert\SpecialChar menuseparator
5609 F
5610 \bar under
5611 o
5612 \bar default
5613 rmatting\SpecialChar menuseparator
5614 H
5615 \bar under
5616 o
5617 \bar default
5618 rizontal
5619 \begin_inset space ~
5620 \end_inset
5621
5622 Space
5623 \family default
5624  to open the 
5625 \family sans
5626 space
5627 \family default
5628  dialog and select the 
5629 \family sans
5630 Horizontal fill
5631 \family default
5632  option from the 
5633 \family sans
5634 \bar under
5635 S
5636 \bar default
5637 pacing
5638 \family default
5639  pull-down menu.
5640 \end_layout
5641
5642 \begin_layout Enumerate
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \lang american
5647 Switch to \SpecialChar LaTeX
5648  mode: 
5649 \family sans
5650 M-c
5651 \begin_inset space ~
5652 \end_inset
5653
5654 t
5655 \family default
5656 .
5657 \end_layout
5658
5659 \begin_layout Enumerate
5660
5661 \change_inserted 564990737 1670794716
5662
5663 \lang american
5664 Enter 
5665 \family typewriter
5666
5667 \backslash
5668 parbox[b]{55mm}{
5669 \family default
5670  
5671 \emph on
5672 Do not close the brace!
5673 \end_layout
5674
5675 \begin_layout Enumerate
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \lang american
5680 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5681  mode and insert
5682  the closing brace: 
5683 \family sans
5684 M-c
5685 \begin_inset space ~
5686 \end_inset
5687
5688 t
5689 \family default
5690  
5691 \family typewriter
5692 }
5693 \family default
5694 .
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 Also, refer to the figures in the file 
5703 \emph on
5704 aa_sample.lyx
5705 \emph default
5706  in the 
5707 \family sans
5708 Examples
5709 \family default
5710  directory.
5711 \end_layout
5712
5713 \begin_layout Subsubsection
5714
5715 \change_inserted 564990737 1670794716
5716
5717 \lang american
5718 Referee layout
5719 \end_layout
5720
5721 \begin_layout Standard
5722
5723 \change_inserted 564990737 1670794716
5724
5725 \lang american
5726 For submission, the paper has to be formatted in a special double-spacing
5727  layout.
5728  For this purpose, you have to add the option 
5729 \family typewriter
5730 referee
5731 \family default
5732  to the 
5733 \family sans
5734 Cus
5735 \bar under
5736 t
5737 \bar default
5738 om Class
5739 \begin_inset space ~
5740 \end_inset
5741
5742 options
5743 \family default
5744  in the 
5745 \family sans
5746 \bar under
5747 D
5748 \bar default
5749 ocument\SpecialChar menuseparator
5750
5751 \bar under
5752 S
5753 \bar default
5754 ettings\SpecialChar menuseparator
5755 Document
5756 \begin_inset space ~
5757 \end_inset
5758
5759 Class
5760 \family default
5761  dialog.
5762  
5763 \end_layout
5764
5765 \begin_layout Subsubsection
5766
5767 \change_inserted 564990737 1670794716
5768
5769 \lang american
5770 The example paper
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 The example paper 
5779 \emph on
5780 aa_sample.lyx
5781 \emph default
5782  was written with \SpecialChar LyX
5783 .
5784  It is the example paper from the original macro package, 
5785 \family typewriter
5786 aa.dem
5787 \family default
5788  in the 
5789 \begin_inset CommandInset href
5790 LatexCommand href
5791 name "aa-package"
5792 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5793 literal "false"
5794
5795 \end_inset
5796
5797 , but translated to \SpecialChar LyX
5798  using the older unstructured abstract type.
5799  Use it for inspiration, and compare the \SpecialChar LaTeX
5800  code in 
5801 \family typewriter
5802 aa.dem
5803 \family default
5804  with the \SpecialChar LyX
5805  way of writing.
5806 \end_layout
5807
5808 \begin_layout Subsection
5809 AAS\SpecialChar TeX
5810
5811 \end_layout
5812
5813 \begin_layout Standard
5814 by 
5815 \noun on
5816 Mike Ressler
5817 \end_layout
5818
5819 \begin_layout Subsubsection
5820 Introduction
5821 \end_layout
5822
5823 \begin_layout Standard
5824 AAS\SpecialChar TeX
5825  is a set of macros produced by the American Astronomical Society to
5826  facilitate electronic manuscript submission to the three journals they
5827  publish: the Astrophysical Journal (including the Letters and Supplement),
5828  the Astronomical Journal, and the Publications of the Astronomical Society
5829  of the Pacific.
5830  \SpecialChar LyX
5831  has proven to be an excellent tool for generating these documents, especially
5832  given its equation, citation, and figure handling capabilities.
5833  \SpecialChar LyX
5834  requires version 5.0 (or higher) of these macros; preferably 6.0, which
5835  is the version described here, or higher.
5836  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
5837 2.09 and are fundamentally
5838  incompatible with \SpecialChar LyX
5839 .
5840  The AAS\SpecialChar TeX
5841  package may be downloaded from the AAS\SpecialChar TeX
5842  Web site
5843 \end_layout
5844
5845 \begin_layout Standard
5846 \begin_inset VSpace medskip
5847 \end_inset
5848
5849
5850 \end_layout
5851
5852 \begin_layout Standard
5853 \align center
5854 \begin_inset Flex URL
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858
5859 https://aas.org/aastex/aastex-downloads
5860 \end_layout
5861
5862 \end_inset
5863
5864
5865 \end_layout
5866
5867 \begin_layout Standard
5868 \begin_inset VSpace medskip
5869 \end_inset
5870
5871
5872 \end_layout
5873
5874 \begin_layout Standard
5875 A complete user guide is contained in that package and you should familiarize
5876  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
5877 .
5878  \SpecialChar LyX
5879  will not reduce the need to figure out all the AAS\SpecialChar TeX
5880  commands, it will only
5881  reduce the drudgery of typing everything in.
5882  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
5883  document conforms
5884  completely to the requirements of the journal to which you are submitting
5885  your paper.
5886 \end_layout
5887
5888 \begin_layout Subsubsection
5889 Starting a New Paper
5890 \end_layout
5891
5892 \begin_layout Standard
5893 I strongly suggest that you start with the AAS\SpecialChar TeX
5894  template file.
5895  Click on 
5896 \family sans
5897 File\SpecialChar menuseparator
5898 New from
5899 \family default
5900  
5901 \family sans
5902 Template
5903 \family default
5904 , enter the new file name, then choose the 
5905 \family typewriter
5906 aastex6.lyx
5907 \family default
5908  template.
5909  This will show the most common fields found in a manuscript.
5910  Simply overwrite the existing text (including the brackets, 
5911 \family typewriter
5912 <>
5913 \family default
5914 ) with the correct information.
5915  Many of the AAS\SpecialChar TeX
5916  commands and environments can be implemented directly in
5917  \SpecialChar LyX
5918 , but some cannot.
5919  For commands such as these, the \SpecialChar LaTeX
5920  code must be entered directly and marked
5921  as such.
5922  Such commands are referred to as \SpecialChar TeX
5923  code, or Evil Red Text.
5924  I tried to minimize the amount of \SpecialChar TeX
5925  code needed in an AAS\SpecialChar TeX
5926  document.
5927 \end_layout
5928
5929 \begin_layout Subsubsection
5930 Finishing Your Paper
5931 \end_layout
5932
5933 \begin_layout Standard
5934 When the paper is finished to your satisfaction and previews/prints correctly,
5935  there are a few 
5936 \begin_inset Quotes eld
5937 \end_inset
5938
5939 postprocessing
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  actions which need to be done before you submit it to the journals.
5944  
5945 \end_layout
5946
5947 \begin_layout Enumerate
5948 Export your paper as a \SpecialChar LaTeX
5949  file (
5950 \family sans
5951 File\SpecialChar menuseparator
5952 Export\SpecialChar menuseparator
5953 \SpecialChar LaTeX
5954
5955 \family default
5956 ).
5957  
5958 \end_layout
5959
5960 \begin_layout Enumerate
5961 Edit the resulting 
5962 \family typewriter
5963 .tex
5964 \family default
5965  file with your favorite text editor
5966 \end_layout
5967
5968 \begin_deeper
5969 \begin_layout Enumerate
5970 remove the comment lines before the 
5971 \family typewriter
5972
5973 \backslash
5974 documentclass
5975 \family default
5976  command
5977 \end_layout
5978
5979 \begin_layout Enumerate
5980 remove the 
5981 \family typewriter
5982
5983 \backslash
5984 usepackage...{fontenc}
5985 \family default
5986  line if it appears (usually just after 
5987 \family typewriter
5988
5989 \backslash
5990 documentclass
5991 \family default
5992 }; also remove the 
5993 \family typewriter
5994
5995 \backslash
5996 secnumdepth
5997 \family default
5998  line if it appears.
5999 \end_layout
6000
6001 \begin_layout Enumerate
6002 remove everything between (and including) the 
6003 \family typewriter
6004
6005 \backslash
6006 makeatletter
6007 \family default
6008  and 
6009 \family typewriter
6010
6011 \backslash
6012 makeatother
6013 \family default
6014  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6015  preamble
6016  (which should appear immediately after the 
6017 \begin_inset Quotes eld
6018 \end_inset
6019
6020 User specified \SpecialChar LaTeX
6021  commands
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025  comment in the 
6026 \family typewriter
6027 .tex
6028 \family default
6029  file).
6030 \end_layout
6031
6032 \end_deeper
6033 \begin_layout Enumerate
6034 Run the resulting file through \SpecialChar LaTeX
6035  to make sure it still processes correctly.
6036 \end_layout
6037
6038 \begin_layout Enumerate
6039 Reread the journal requirements to make sure your filenames and formats
6040  are correct.
6041 \end_layout
6042
6043 \begin_layout Enumerate
6044 Submit it.
6045 \end_layout
6046
6047 \begin_layout Subsubsection
6048 Comments On Specific Commands
6049 \end_layout
6050
6051 \begin_layout Standard
6052 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6053  commands: the
6054  AAS\SpecialChar TeX
6055  User Guide (
6056 \family typewriter
6057 aasguide.tex
6058 \family default
6059 ) gives a good description of each.
6060  Thus it's probably easiest for me to go down the list as found in the guide
6061  and offer comments where necessary.
6062  So let's begin \SpecialChar ldots
6063
6064 \end_layout
6065
6066 \begin_layout Paragraph
6067 Things that work as expected
6068 \end_layout
6069
6070 \begin_layout Standard
6071 Because they work as you might expect, I simply list them and the section
6072  they are found in: 
6073 \family typewriter
6074
6075 \backslash
6076 documentclass
6077 \family default
6078  (2.1.1), 
6079 \family typewriter
6080
6081 \backslash
6082 begin{document}
6083 \family default
6084  (2.2), 
6085 \family typewriter
6086
6087 \backslash
6088 title
6089 \family default
6090  (2.3), 
6091 \family typewriter
6092
6093 \backslash
6094 author
6095 \family default
6096  (2.3), 
6097 \family typewriter
6098
6099 \backslash
6100 affil
6101 \family default
6102  (2.3), 
6103 \family typewriter
6104
6105 \backslash
6106 abstract
6107 \family default
6108  (2.4), 
6109 \family typewriter
6110
6111 \backslash
6112 keywords
6113 \family default
6114  (2.5), 
6115 \family typewriter
6116
6117 \backslash
6118 section
6119 \family default
6120  (2.7), 
6121 \family typewriter
6122
6123 \backslash
6124 subsection
6125 \family default
6126  (2.7), 
6127 \family typewriter
6128
6129 \backslash
6130 subsubsection
6131 \family default
6132  (2.7), 
6133 \family typewriter
6134
6135 \backslash
6136 paragraph
6137 \family default
6138  (2.7), 
6139 \family typewriter
6140
6141 \backslash
6142 facility
6143 \family default
6144  (2.10), 
6145 \family typewriter
6146
6147 \backslash
6148 begin{displaymath}
6149 \family default
6150  (2.12), 
6151 \family typewriter
6152
6153 \backslash
6154 begin{equation}
6155 \family default
6156  (2.12), 
6157 \family typewriter
6158
6159 \backslash
6160 begin{eqnarray}
6161 \family default
6162  (2.12), 
6163 \family typewriter
6164
6165 \backslash
6166 begin{mathletters}
6167 \family default
6168  (2.12), 
6169 \family typewriter
6170
6171 \backslash
6172 begin{thebibliography}
6173 \family default
6174  (2.13.1), 
6175 \family typewriter
6176
6177 \backslash
6178 bibitem
6179 \family default
6180  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6181  graphicx figure commands (2.14.1), 
6182 \family typewriter
6183
6184 \backslash
6185 begin{table}
6186 \family default
6187  (2.15.4), 
6188 \family typewriter
6189
6190 \backslash
6191 begin{tabular}
6192 \family default
6193  (2.15.4), 
6194 \family typewriter
6195
6196 \backslash
6197 caption
6198 \family default
6199  (2.15.4), 
6200 \family typewriter
6201
6202 \backslash
6203 label
6204 \family default
6205  (2.15.4, amongst other places), 
6206 \family typewriter
6207
6208 \backslash
6209 tablerefs
6210 \family default
6211  (2.15.5), 
6212 \family typewriter
6213
6214 \backslash
6215 tablecomments
6216 \family default
6217  (2.15.5), 
6218 \family typewriter
6219
6220 \backslash
6221 url
6222 \family default
6223  (2.17.4), 
6224 \family typewriter
6225
6226 \backslash
6227 end{document}
6228 \family default
6229  (2.18).
6230 \end_layout
6231
6232 \begin_layout Standard
6233 The following style options also work correctly: 
6234 \family typewriter
6235 longabstract
6236 \family default
6237  (2.4), 
6238 \family typewriter
6239 preprint
6240 \family default
6241  (3.2.1), 
6242 \family typewriter
6243 preprint2
6244 \family default
6245  (3.2.2), 
6246 \family typewriter
6247 eqsecnum
6248 \family default
6249  (3.3), 
6250 \family typewriter
6251 flushrt
6252 \family default
6253  (3.4).
6254  Simply put them in the 
6255 \family sans
6256 Options
6257 \family default
6258  box in 
6259 \family sans
6260 Layout\SpecialChar menuseparator
6261 Document
6262 \family default
6263 .
6264 \end_layout
6265
6266 \begin_layout Paragraph
6267 Things that work, but require more comment
6268 \end_layout
6269
6270 \begin_layout Standard
6271 The following items work, but require a little more discussion:
6272 \end_layout
6273
6274 \begin_layout Itemize
6275 These items are reserved for use by the journal editors, but you can put
6276  them into the \SpecialChar LaTeX
6277  preamble if you feel compelled to do so: 
6278 \family typewriter
6279
6280 \backslash
6281 received
6282 \family default
6283
6284 \family typewriter
6285
6286 \backslash
6287 revised
6288 \family default
6289
6290 \family typewriter
6291
6292 \backslash
6293 accepted
6294 \family default
6295
6296 \family typewriter
6297
6298 \backslash
6299 ccc
6300 \family default
6301
6302 \family typewriter
6303
6304 \backslash
6305 cpright
6306 \family default
6307  (all from 2.1.3)
6308 \end_layout
6309
6310 \begin_layout Itemize
6311 These items may be placed in the \SpecialChar LaTeX
6312  preamble, and are included as blanks in
6313  the template file: 
6314 \family typewriter
6315
6316 \backslash
6317 slugcomment
6318 \family default
6319  (2.1.4), 
6320 \family typewriter
6321
6322 \backslash
6323 shorttitle
6324 \family default
6325  (2.1.5), 
6326 \family typewriter
6327
6328 \backslash
6329 shortauthors
6330 \family default
6331  (2.1.5)
6332 \end_layout
6333
6334 \begin_layout Itemize
6335
6336 \family typewriter
6337
6338 \backslash
6339 email
6340 \family default
6341  (2.3) – can only be used 
6342 \begin_inset Quotes eld
6343 \end_inset
6344
6345 standalone
6346 \begin_inset Quotes erd
6347 \end_inset
6348
6349 , not in the middle of a paragraph.
6350  Use \SpecialChar TeX
6351  code if you need to embed it.
6352 \end_layout
6353
6354 \begin_layout Itemize
6355
6356 \family typewriter
6357
6358 \backslash
6359 and
6360 \family default
6361  (2.3) – will have extra {} after it.
6362  This should not cause an error.
6363 \end_layout
6364
6365 \begin_layout Itemize
6366
6367 \family typewriter
6368
6369 \backslash
6370 notetoeditor
6371 \family default
6372  (2.6) – can only be used 
6373 \begin_inset Quotes eld
6374 \end_inset
6375
6376 standalone
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380 , not in the middle of a paragraph.
6381  Use \SpecialChar TeX
6382  code if you need to embed it.
6383 \end_layout
6384
6385 \begin_layout Itemize
6386
6387 \family typewriter
6388
6389 \backslash
6390 placetable
6391 \family default
6392  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6393  hand
6394 \end_layout
6395
6396 \begin_layout Itemize
6397
6398 \family typewriter
6399
6400 \backslash
6401 placefigure
6402 \family default
6403  (2.8) – same as for 
6404 \family typewriter
6405
6406 \backslash
6407 placetable
6408 \end_layout
6409
6410 \begin_layout Itemize
6411
6412 \family typewriter
6413
6414 \backslash
6415 acknowledgements
6416 \family default
6417  (2.9) – will have extra {} after it.
6418  This should not cause an error.
6419 \end_layout
6420
6421 \begin_layout Itemize
6422
6423 \family typewriter
6424
6425 \backslash
6426 appendix
6427 \family default
6428  (2.11) – will have extra {} after it.
6429  This should not cause an error.
6430 \end_layout
6431
6432 \begin_layout Itemize
6433
6434 \family typewriter
6435
6436 \backslash
6437 figcaption
6438 \family default
6439  (2.14.2) – you can insert an optional filename argument by placing the cursor
6440  at the beginning of the text and selecting 
6441 \family sans
6442 Insert\SpecialChar menuseparator
6443 Short Title
6444 \family default
6445 .
6446  
6447 \begin_inset Quotes eld
6448 \end_inset
6449
6450 Short Title
6451 \begin_inset Quotes erd
6452 \end_inset
6453
6454  inserts an optional argument of the type needed by 
6455 \family typewriter
6456
6457 \backslash
6458 figcaption
6459 \family default
6460 .
6461  Hopefully it will be renamed someday.
6462 \end_layout
6463
6464 \begin_layout Itemize
6465
6466 \family typewriter
6467
6468 \backslash
6469 objectname
6470 \family default
6471  (2.17.1) – same as 
6472 \family typewriter
6473
6474 \backslash
6475 figcaption
6476 \family default
6477  for the catalog ID optional parameter
6478 \end_layout
6479
6480 \begin_layout Itemize
6481
6482 \family typewriter
6483
6484 \backslash
6485 dataset
6486 \family default
6487  (2.17.1) – same as 
6488 \family typewriter
6489
6490 \backslash
6491 figcaption
6492 \family default
6493  for the catalog ID optional parameter
6494 \end_layout
6495
6496 \begin_layout Paragraph
6497 Things not implemented, use \SpecialChar TeX
6498  code
6499 \end_layout
6500
6501 \begin_layout Standard
6502
6503 \family typewriter
6504
6505 \backslash
6506 eqnum
6507 \family default
6508  (2.12), 
6509 \family typewriter
6510
6511 \backslash
6512 setcounter{equation}
6513 \family default
6514  (2.12), Journal name abbreviations (2.13.4), 
6515 \family typewriter
6516
6517 \backslash
6518 figurenum
6519 \family default
6520  (2.14.1), 
6521 \family typewriter
6522
6523 \backslash
6524 epsscale
6525 \family default
6526  (2.14.1), 
6527 \family typewriter
6528
6529 \backslash
6530 plotone
6531 \family default
6532  (2.14.1), 
6533 \family typewriter
6534
6535 \backslash
6536 plottwo
6537 \family default
6538  (2.14.1), 
6539 \family typewriter
6540
6541 \backslash
6542 tablenum
6543 \family default
6544  (2.15.4), 
6545 \family typewriter
6546
6547 \backslash
6548 tableline
6549 \family default
6550  (2.15.4, insert it as the first element in the lefthand cell after where
6551  you want it.
6552  Don't use any of \SpecialChar LyX
6553 's rules in the table), 
6554 \family typewriter
6555
6556 \backslash
6557 tablenotemark
6558 \family default
6559  (2.15.5), 
6560 \family typewriter
6561
6562 \backslash
6563 tablenotetext
6564 \family default
6565  (2.15.5), much of Misc (2.17, except 
6566 \family typewriter
6567
6568 \backslash
6569 objectname
6570 \family default
6571
6572 \family typewriter
6573
6574 \backslash
6575 dataset
6576 \family default
6577
6578 \family typewriter
6579
6580 \backslash
6581 url
6582 \family default
6583 , and 
6584 \family typewriter
6585
6586 \backslash
6587 email
6588 \family default
6589 ; see above), 
6590 \family typewriter
6591
6592 \backslash
6593 singlespace
6594 \family default
6595  (3.1), 
6596 \family typewriter
6597
6598 \backslash
6599 doublespace
6600 \family default
6601  (3.1), 
6602 \family typewriter
6603
6604 \backslash
6605 onecolumn
6606 \family default
6607  (3.2), 
6608 \family typewriter
6609
6610 \backslash
6611 twocolumn
6612 \family default
6613  (3.2)
6614 \end_layout
6615
6616 \begin_layout Paragraph
6617 Things that cannot be implemented
6618 \end_layout
6619
6620 \begin_layout Standard
6621 \SpecialChar ldots
6622  at least in any meaningful sort of way, so I suggest ignoring them.
6623  They are the references environment (2.13.3), and the deluxetable environment
6624  (2.15).
6625  If you really, really need to use deluxetable, I suggest editing it in
6626  a separate file with a text editor, then using 
6627 \family sans
6628 Insert\SpecialChar menuseparator
6629 Child
6630 \begin_inset space ~
6631 \end_inset
6632
6633 Document
6634 \family default
6635  to include it in your \SpecialChar LyX
6636  document.
6637  See the 
6638 \family typewriter
6639 aas_sample.lyx
6640 \family default
6641  file to see an example of this.
6642 \end_layout
6643
6644 \begin_layout Subsubsection
6645 FAQs, Tips, Tricks, and Other Ruminations
6646 \end_layout
6647
6648 \begin_layout Paragraph
6649 Getting \SpecialChar LyX
6650  and AAS\SpecialChar TeX
6651  to cooperate
6652 \end_layout
6653
6654 \begin_layout Standard
6655 It can be a bit tricky to get \SpecialChar LyX
6656  to recognize a new layout and document class.
6657  When all else fails, do this:
6658 \end_layout
6659
6660 \begin_layout Enumerate
6661 Make certain that \SpecialChar LaTeX
6662  can find AAS\SpecialChar TeX
6663 .
6664  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6665  distribution into a
6666  directory completely unrelated to \SpecialChar LaTeX
6667  or AAS\SpecialChar TeX
6668  and run \SpecialChar LaTeX
6669  on 
6670 \family typewriter
6671 sample.tex
6672 \family default
6673 .
6674 \end_layout
6675
6676 \begin_layout Enumerate
6677 Make certain that 
6678 \family typewriter
6679 aastex.layout
6680 \family default
6681  appears in \SpecialChar LyX
6682 's 
6683 \family typewriter
6684 layouts
6685 \family default
6686  folder
6687 \end_layout
6688
6689 \begin_layout Enumerate
6690 Rerun 
6691 \family sans
6692 Tools\SpecialChar menuseparator
6693 Reconfigure
6694 \family default
6695  in \SpecialChar LyX
6696 , then restart \SpecialChar LyX
6697 .
6698 \end_layout
6699
6700 \begin_layout Enumerate
6701 Open a regular new file, not from a template.
6702  Does AAS\SpecialChar TeX
6703  appear in the class list in 
6704 \family sans
6705 Document\SpecialChar menuseparator
6706 Settings
6707 \family default
6708 ?
6709 \end_layout
6710
6711 \begin_layout Standard
6712 If you get a warning from an existing AAS\SpecialChar TeX
6713  document about not being able
6714  to find the AAS\SpecialChar TeX
6715  layout or a message about 
6716 \begin_inset Quotes eld
6717 \end_inset
6718
6719 You should not mix title layouts with normal ones
6720 \begin_inset Quotes erd
6721 \end_inset
6722
6723 , things haven't been installed correctly.
6724 \end_layout
6725
6726 \begin_layout Paragraph
6727 \SpecialChar LaTeX
6728  error processing a table 
6729 \end_layout
6730
6731 \begin_layout Standard
6732 \SpecialChar LyX
6733 , by default, attempts to center the table caption/title.
6734  This seems to produce a bad interaction in AAS\SpecialChar TeX
6735  so you should click somewhere
6736  in the caption/title, then select 
6737 \family sans
6738 Edit\SpecialChar menuseparator
6739 Paragraph
6740 \begin_inset space ~
6741 \end_inset
6742
6743 Settings
6744 \family default
6745 , then set the 
6746 \family sans
6747 Alignment
6748 \family default
6749  to 
6750 \family sans
6751 Block
6752 \family default
6753 .
6754  This took care of it for me.
6755 \end_layout
6756
6757 \begin_layout Paragraph
6758 References
6759 \end_layout
6760
6761 \begin_layout Standard
6762 A couple of things: 1) I have noticed some funny spacing in the reference
6763  entries in the text.
6764  When you enter the bibliography item data, make sure their is 
6765 \emph on
6766 no
6767 \emph default
6768  space between the last author and the parenthesis setting off the year;
6769  
6770 \emph on
6771 e.
6772 \begin_inset space \thinspace{}
6773 \end_inset
6774
6775 g.
6776 \begin_inset space \space{}
6777 \end_inset
6778
6779
6780 \emph default
6781 type 
6782 \family typewriter
6783 Ressler(1992)
6784 \family default
6785 , not 
6786 \family typewriter
6787 Ressler (1992)
6788 \family default
6789 .
6790  2) Entering the references at all is not obvious.
6791  The easiest thing is to start typing your first reference at the end of
6792  the document, then mark it as type 
6793 \family sans
6794 References
6795 \family default
6796 .
6797  That will put a small gray box in front of what you just typed.
6798  Click on the box to fill in the rest of the information.
6799  For new references, go to the end of an existing reference and press return.
6800  That will create a new line with its own box, etc.
6801 \end_layout
6802
6803 \begin_layout Paragraph
6804 Including EPS files
6805 \end_layout
6806
6807 \begin_layout Standard
6808 Even though AAS\SpecialChar TeX
6809  provides its own figure commands (
6810 \family typewriter
6811
6812 \backslash
6813 plotone
6814 \family default
6815 , for example), I much prefer \SpecialChar LaTeX
6816 's standard figure commands (with the default
6817  graphicx).
6818  You can insert the 
6819 \family typewriter
6820
6821 \backslash
6822 plotone
6823 \family default
6824 , etc.
6825 \begin_inset space ~
6826 \end_inset
6827
6828 commands as \SpecialChar TeX
6829  code into a Figure Float box if you desire, but I never have
6830  much luck getting the layout right.
6831  With the standard graphics, \SpecialChar LyX
6832  will insert a 
6833 \family typewriter
6834
6835 \backslash
6836 usepackage{graphicx}
6837 \family default
6838  command into the \SpecialChar LaTeX
6839  preamble and handle the figures in the standard \SpecialChar LaTeX2e
6840  way,
6841  interspersing the figures in the text.
6842  I believe ApJ accepts figures exactly this way now; AJ might still use
6843  the 
6844 \begin_inset Quotes eld
6845 \end_inset
6846
6847 stack everything at the end
6848 \begin_inset Quotes erd
6849 \end_inset
6850
6851  technique.
6852 \end_layout
6853
6854 \begin_layout Paragraph
6855 Things I could have done, but didn't
6856 \end_layout
6857
6858 \begin_layout Standard
6859 There are a few 
6860 \begin_inset Quotes eld
6861 \end_inset
6862
6863 pretty
6864 \begin_inset Quotes erd
6865 \end_inset
6866
6867  things I could have implemented, but chose not to.
6868  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
6869  window,
6870  even though it is double-spaced in the paper manuscript.
6871  Also, I chose not to make separate layouts for the preprint and preprint2
6872  styles.
6873  Since I assume you will spend most of your time in the plain manuscript
6874  mode anyway, I decided not to chew up more disk space with this.
6875  
6876 \end_layout
6877
6878 \begin_layout Subsubsection
6879 Final Caveat
6880 \end_layout
6881
6882 \begin_layout Standard
6883 Your mileage may vary.
6884  I've now had papers published by both ApJ and AJ that have had 98% of the
6885  effort done in \SpecialChar LyX
6886 ; the last 2% was the \SpecialChar LaTeX
6887  post-processing and a few cleanups.
6888  I have had no trouble with the submission process, and I'm sure the journals
6889  were never aware that there might be a difference.
6890  So, go forth and publish!
6891 \end_layout
6892
6893 \begin_layout Section
6894
6895 \change_inserted 564990737 1670439560
6896 Books
6897 \end_layout
6898
6899 \begin_layout Standard
6900
6901 \change_inserted 564990737 1670439581
6902 See also the document classes in the Collections (section
6903 \begin_inset space ~
6904 \end_inset
6905
6906
6907 \begin_inset CommandInset ref
6908 LatexCommand ref
6909 reference "sec:Collections"
6910
6911 \end_inset
6912
6913 ).
6914 \end_layout
6915
6916 \begin_layout Subsection
6917 Memoir
6918 \end_layout
6919
6920 \begin_layout Standard
6921 By 
6922 \noun on
6923 Jürgen Spitzmüller
6924 \end_layout
6925
6926 \begin_layout Subsubsection
6927 Overview
6928 \end_layout
6929
6930 \begin_layout Standard
6931 Memoir is a very powerful and constantly evolving class.
6932  It has been designed with regard to fictional and non-fictional literature.
6933  Its aim is to let the user have maximum control over the typesetting of
6934  his document.
6935  Memoir is based on the standard book class, but it can also emulate the
6936  article class (see below).
6937 \end_layout
6938
6939 \begin_layout Standard
6940 Peter Wilson, the developer of Memoir, is known as the author of lots of
6941  useful packages in the \SpecialChar LaTeX
6942  world.
6943  Most of them have been merged with Memoir.
6944  Therefore, it is much easier to layout the table of contents, appendices,
6945  chapter designs and such.
6946  \SpecialChar LyX
6947 , though, does not support all of these goodies natively.
6948  Some of them might be added to forthcoming releases
6949 \begin_inset Foot
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953 You are invited to send suggestions to 
6954 \begin_inset Flex URL
6955 status collapsed
6956
6957 \begin_layout Plain Layout
6958
6959 lyx-devel@lists.lyx.org
6960 \end_layout
6961
6962 \end_inset
6963
6964 .
6965 \end_layout
6966
6967 \end_inset
6968
6969 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
6970 's framework.
6971  Of course you can still use all features with the help of some native \SpecialChar LaTeX
6972
6973  commands (\SpecialChar TeX
6974  code
6975 \begin_inset Foot
6976 status collapsed
6977
6978 \begin_layout Plain Layout
6979 Cf.
6980 \begin_inset ERT
6981 status collapsed
6982
6983 \begin_layout Plain Layout
6984
6985
6986 \backslash
6987  
6988 \end_layout
6989
6990 \end_inset
6991
6992 section
6993 \begin_inset space ~
6994 \end_inset
6995
6996
6997 \begin_inset CommandInset ref
6998 LatexCommand ref
6999 reference "sec:Inserting-TeX-Code"
7000
7001 \end_inset
7002
7003  for details.
7004 \end_layout
7005
7006 \end_inset
7007
7008 ).
7009  In this section, we can only list those features that are natively supported
7010  by \SpecialChar LyX
7011 .
7012  For detailed descriptions (and for the rest of features) we recommend you
7013  have a look at the detailed manual of the Memoir class
7014 \begin_inset Foot
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 Cf.
7019 \begin_inset ERT
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023
7024
7025 \backslash
7026  
7027 \end_layout
7028
7029 \end_inset
7030
7031
7032 \begin_inset Flex URL
7033 status collapsed
7034
7035 \begin_layout Plain Layout
7036
7037 CTAN:/macros/latex/memoir/memman.pdf
7038 \end_layout
7039
7040 \end_inset
7041
7042 .
7043 \end_layout
7044
7045 \end_inset
7046
7047 , which is not only a user guide for the class, but also both a comprehensive
7048  description on good typesetting and a superb example for good typesetting
7049  itself.
7050 \end_layout
7051
7052 \begin_layout Subsubsection
7053 Basic features and restrictions
7054 \end_layout
7055
7056 \begin_layout Standard
7057 Memoir supports basically all features of the standard book classes.
7058  There are, however, some differences, as follows:
7059 \end_layout
7060
7061 \begin_layout Description
7062 Font
7063 \begin_inset space ~
7064 \end_inset
7065
7066 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7067 \end_layout
7068
7069 \begin_layout Description
7070 Page
7071 \begin_inset space ~
7072 \end_inset
7073
7074 style: The fancy page style is not supported, due to a command clash between
7075  Memoir and the fancyhdr package (they both define a command with the same
7076  name, which confuses \SpecialChar LaTeX
7077 ).
7078  Instead, Memoir comes with a number of its own page styles (see 
7079 \family sans
7080 Document\SpecialChar menuseparator
7081 Settings\SpecialChar menuseparator
7082 Page
7083 \begin_inset space ~
7084 \end_inset
7085
7086 Style
7087 \family default
7088 ).
7089  If you want to use these for the chapter pages, you have to use the command
7090  
7091 \family typewriter
7092
7093 \backslash
7094 chapterstyle
7095 \family default
7096  in the main text or in preamble (e.
7097 \begin_inset space \thinspace{}
7098 \end_inset
7099
7100 g.
7101 \begin_inset space \space{}
7102 \end_inset
7103
7104
7105 \family typewriter
7106
7107 \backslash
7108 chapterstyle{companion}
7109 \family default
7110 ).
7111 \end_layout
7112
7113 \begin_layout Description
7114 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7115  optional argument in the standard classes.
7116  With this, you can specify an alternative version of the title for the
7117  table of contents and the headers (for instance, if the title is too long).
7118  In \SpecialChar LyX
7119 , you can do this via 
7120 \family sans
7121 Insert\SpecialChar menuseparator
7122 Short
7123 \begin_inset space ~
7124 \end_inset
7125
7126 Title
7127 \family default
7128  at the beginning of a chapter/section.
7129  Memoir features a second optional argument and thus separates the table
7130  of contents from the header.
7131  You can define three variants of a title with this: one for the main text,
7132  one for the table of contents, and one for the headers.
7133  \SpecialChar LyX
7134  makes these available in form of specific 
7135 \family sans
7136 Short Title
7137 \family default
7138  variants in the 
7139 \family sans
7140 Insert
7141 \family default
7142  menu.
7143 \end_layout
7144
7145 \begin_layout Description
7146 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7147  of contents, the list of figures and the list of table start a new page
7148  automatically.
7149  Memoir does not follow this route.
7150  You have to insert a page break yourself, if you want to have one.
7151 \end_layout
7152
7153 \begin_layout Description
7154 Titlepage: For some unknown reason, Memoir uses pagination on the title
7155  page (in the standard classes, title pages are 
7156 \begin_inset Quotes eld
7157 \end_inset
7158
7159 empty
7160 \begin_inset Quotes erd
7161 \end_inset
7162
7163 ).
7164  If you want an empty title page, type 
7165 \family typewriter
7166
7167 \backslash
7168 aliaspagestyle{title}{empty}
7169 \family default
7170  in the preamble.
7171 \end_layout
7172
7173 \begin_layout Description
7174 Article: With the class option 
7175 \emph on
7176 article
7177 \emph default
7178  (to be inserted in 
7179 \family sans
7180 Document\SpecialChar menuseparator
7181 Settings\SpecialChar menuseparator
7182 Class Settings\SpecialChar menuseparator
7183 Custom
7184 \begin_inset space ~
7185 \end_inset
7186
7187 Options
7188 \family default
7189 ), you can emulate article style.
7190  That is, counters (footnotes, figures, tables etc.) will not be reset on
7191  new chapters, chapters don't start a new page (but are—in contrary to 
7192 \begin_inset Quotes eld
7193 \end_inset
7194
7195 real
7196 \begin_inset Quotes erd
7197 \end_inset
7198
7199  article classes—still allowed), parts, though, use their own page, as in
7200  book.
7201 \end_layout
7202
7203 \begin_layout Description
7204 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7205  font commands, which have been used in the old \SpecialChar LaTeX
7206  version 2.09 (e.
7207 \begin_inset space \thinspace{}
7208 \end_inset
7209
7210 g.
7211 \begin_inset space \space{}
7212 \end_inset
7213
7214
7215 \family typewriter
7216
7217 \backslash
7218 rm
7219 \family default
7220
7221 \family typewriter
7222
7223 \backslash
7224 it
7225 \family default
7226 ).
7227  It produces an error and stops \SpecialChar LaTeX
7228  whenever such a command appears.
7229  The class option 
7230 \emph on
7231 oldfontcommands
7232 \emph default
7233  reallows the commands and spits out warnings instead (which does at least
7234  not stop \SpecialChar LaTeX
7235 ).
7236  Since a lot of packages and particularly Bib\SpecialChar TeX
7237  style files are still using
7238  those commands, we have decided to use this option by default.
7239 \end_layout
7240
7241 \begin_layout Subsubsection
7242 Extra features
7243 \end_layout
7244
7245 \begin_layout Standard
7246 We will only describe the features supported by \SpecialChar LyX
7247  (which is not much currently).
7248  Please consult the Memoir manual
7249 \begin_inset Foot
7250 status collapsed
7251
7252 \begin_layout Plain Layout
7253 Cf.
7254 \begin_inset ERT
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258
7259
7260 \backslash
7261  
7262 \end_layout
7263
7264 \end_inset
7265
7266
7267 \begin_inset Flex URL
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271
7272 CTAN:/macros/latex/memoir/memman.pdf
7273 \end_layout
7274
7275 \end_inset
7276
7277 .
7278 \end_layout
7279
7280 \end_inset
7281
7282  for details.
7283 \end_layout
7284
7285 \begin_layout Description
7286 Abstract: You may wonder why an abstract is an extra feature.
7287  Well, it is in book class.
7288  Usually books don't have abstracts.
7289  Memoir, however, has.
7290  You can use it wherever and how often you like.
7291 \end_layout
7292
7293 \begin_layout Description
7294 Chapterprecis: You may know this older typesetting style: The contents of
7295  a chapter are summarized below the title and also in the table of contents
7296  (e.
7297 \begin_inset space \thinspace{}
7298 \end_inset
7299
7300 g.
7301 \begin_inset space \space{}
7302 \end_inset
7303
7304
7305 \emph on
7306 Our hero arrives in Troia; he loses some friends; he finds others
7307 \emph default
7308 ).
7309  Chapterprecis does exactly this.
7310  It is therefore only sensible below a chapter.
7311 \end_layout
7312
7313 \begin_layout Description
7314 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7315  The epigraph environment provides an elegant way of typesetting such a
7316  motto.
7317  The motto itself (text) and its (optional) author (source) are divided
7318  by a short line.
7319  The author (source) can be inserted via 
7320 \family sans
7321 Insert\SpecialChar menuseparator
7322 Epigraph Source
7323 \family default
7324 \emph on
7325 .
7326 \end_layout
7327
7328 \begin_layout Description
7329 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7330  complex figurative poems).
7331  \SpecialChar LyX
7332  can only support a few of them.
7333  One is poemtitle, which is a centered title for poems, which will also
7334  be added to the table of contents (verse is the standard environment for
7335  poems.
7336  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7337  code,
7338  because they have to be nested inside regular verse environments, which
7339  is not possible with \SpecialChar LyX
7340 ).
7341 \end_layout
7342
7343 \begin_layout Description
7344 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7345 \end_layout
7346
7347 \begin_layout Section
7348
7349 \change_inserted 564990737 1670439605
7350 Curricula vitarum
7351 \end_layout
7352
7353 \begin_layout Section
7354
7355 \change_inserted 564990737 1670439627
7356 Letters
7357 \end_layout
7358
7359 \begin_layout Section
7360
7361 \change_inserted 564990737 1670439660
7362 Presentations
7363 \end_layout
7364
7365 \begin_layout Subsection
7366 Foils [aka 
7367 \family sans
7368 Foil\SpecialChar TeX
7369
7370 \family default
7371 ]
7372 \begin_inset CommandInset label
7373 LatexCommand label
7374 name "sec:foiltex"
7375
7376 \end_inset
7377
7378
7379 \end_layout
7380
7381 \begin_layout Standard
7382 by 
7383 \noun on
7384 Allan Rae
7385 \end_layout
7386
7387 \begin_layout Subsubsection
7388 Introduction
7389 \end_layout
7390
7391 \begin_layout Standard
7392 This section describes how to use \SpecialChar LyX
7393  to make slides for overhead projectors.
7394  There are two document classes that can do this: the default slides class
7395  and the 
7396 \family sans
7397 Foil\SpecialChar TeX
7398
7399 \family default
7400  slides class.
7401  This section documents the latter.
7402 \end_layout
7403
7404 \begin_layout Standard
7405 I'm going to say this again, nice and clear, so that there's no misunderstanding
7406 :
7407 \end_layout
7408
7409 \begin_layout Standard
7410 \begin_inset VSpace bigskip
7411 \end_inset
7412
7413
7414 \end_layout
7415
7416 \begin_layout Standard
7417 \align center
7418
7419 \size large
7420 This section documents the class 
7421 \begin_inset Quotes eld
7422 \end_inset
7423
7424
7425 \family sans
7426 FoilTeX
7427 \family default
7428
7429 \begin_inset Quotes erd
7430 \end_inset
7431
7432  
7433 \emph on
7434 only.
7435 \end_layout
7436
7437 \begin_layout Standard
7438 \begin_inset VSpace bigskip
7439 \end_inset
7440
7441
7442 \end_layout
7443
7444 \begin_layout Standard
7445 If you're looking for the documentation for 
7446 \begin_inset Quotes eld
7447 \end_inset
7448
7449
7450 \family sans
7451 slides (default)
7452 \family default
7453
7454 \begin_inset Quotes erd
7455 \end_inset
7456
7457 , check out section
7458 \begin_inset space ~
7459 \end_inset
7460
7461
7462 \begin_inset CommandInset ref
7463 LatexCommand ref
7464 reference "sec:slitex"
7465
7466 \end_inset
7467
7468 .
7469  If your machine doesn't have the 
7470 \family sans
7471 foils
7472 \family default
7473  class 
7474 \family sans
7475 FoilTeX
7476 \family default
7477  installed, you'll probably have to use the default 
7478 \family sans
7479 slides
7480 \family default
7481  class, which isn't quite as good as 
7482 \family sans
7483 foils.
7484 \end_layout
7485
7486 \begin_layout Standard
7487 The 
7488 \family sans
7489 foils
7490 \family default
7491  class is designed for use with version
7492 \begin_inset space ~
7493 \end_inset
7494
7495 2.1 of the 
7496 \family sans
7497 foils.cls
7498 \family default
7499  \SpecialChar LaTeX
7500  class file which is now an integral part of \SpecialChar LaTeX2e
7501 .
7502 \end_layout
7503
7504 \begin_layout Subsubsection
7505 Getting Started
7506 \end_layout
7507
7508 \begin_layout Standard
7509 Obviously, to use this document class, you need to select 
7510 \family sans
7511 FoilTeX
7512 \family default
7513  from the 
7514 \family sans
7515 Class
7516 \family default
7517  entry in the 
7518 \family sans
7519 Document
7520 \begin_inset space ~
7521 \end_inset
7522
7523 Layout
7524 \family default
7525  dialog.
7526  There are some settings in the 
7527 \family sans
7528 Document
7529 \begin_inset space ~
7530 \end_inset
7531
7532 Layout
7533 \family default
7534  dialog that you should know about that are specific to this class:
7535 \end_layout
7536
7537 \begin_layout Itemize
7538 Don't change the options 
7539 \family sans
7540 Sides
7541 \family default
7542  and 
7543 \family sans
7544 Columns
7545 \family default
7546  on the 
7547 \family sans
7548 Document
7549 \begin_inset space ~
7550 \end_inset
7551
7552 Layout
7553 \family default
7554  dialog.
7555  They're ignored by the 
7556 \family sans
7557 foils
7558 \family default
7559  class.
7560 \end_layout
7561
7562 \begin_layout Itemize
7563 The default font size is 20
7564 \begin_inset space \thinspace{}
7565 \end_inset
7566
7567 pt with the other options being 17
7568 \begin_inset space \thinspace{}
7569 \end_inset
7570
7571 pt, 25
7572 \begin_inset space \thinspace{}
7573 \end_inset
7574
7575 pt and 30
7576 \begin_inset space \thinspace{}
7577 \end_inset
7578
7579 pt.
7580 \end_layout
7581
7582 \begin_layout Itemize
7583 The default font is 
7584 \family sans
7585 sans
7586 \family default
7587  
7588 \family sans
7589 serif
7590 \family default
7591  but all math equations are still typeset in the usual roman font.
7592 \end_layout
7593
7594 \begin_layout Itemize
7595
7596 \family sans
7597 Foil\SpecialChar TeX
7598
7599 \family default
7600  supports A4 and Letter paper sizes as well as a special size for working
7601  with 35
7602 \begin_inset space \thinspace{}
7603 \end_inset
7604
7605 mm slides.
7606  It doesn't support A5, B5, legal or executive paper sizes.
7607 \end_layout
7608
7609 \begin_layout Itemize
7610 Don't bother changing the 
7611 \family sans
7612 Float Placement
7613 \family default
7614  settings because they are ignored anyway.
7615  All floats appear where they are defined in the text.
7616 \end_layout
7617
7618 \begin_layout Itemize
7619 The 
7620 \family sans
7621 Pagestyle
7622 \family default
7623  setting behaves a bit differently for this class.
7624  
7625 \family sans
7626 Foil\SpecialChar TeX
7627
7628 \family default
7629  provides extensive footer and header capabilities including a user-defined
7630  logo.
7631  See section
7632 \begin_inset space ~
7633 \end_inset
7634
7635
7636 \begin_inset CommandInset ref
7637 LatexCommand ref
7638 reference "sec:foilfoot"
7639
7640 \end_inset
7641
7642  for more details.
7643  The title page is treated differently to all other pages in the document
7644  and is 
7645 \emph on
7646 always
7647 \emph default
7648  unnumbered and 
7649 \emph on
7650 always
7651 \emph default
7652  has the logo centered at the bottom of the page (if one is defined).
7653  The possible page style choices and what they do are as follows:
7654 \end_layout
7655
7656 \begin_deeper
7657 \begin_layout Labeling
7658 \labelwidthstring MMMMMMM
7659
7660 \family sans
7661 \series bold
7662 empty
7663 \family default
7664 \series default
7665  The final output contains no page numbers, or other headers or footers
7666  (except footnotes of course).
7667  
7668 \end_layout
7669
7670 \begin_layout Labeling
7671 \labelwidthstring MMMMMMM
7672
7673 \family sans
7674 \series bold
7675 plain
7676 \family default
7677 \series default
7678  The final output contains page numbers centered at the bottom of the page.
7679  No other headings or footers (other than footnotes).
7680 \end_layout
7681
7682 \begin_layout Labeling
7683 \labelwidthstring MMMMMMM
7684
7685 \series bold
7686 foilheadings
7687 \series default
7688  Page numbers in lower right corner.
7689  Additional headers and footers are also shown.
7690  This is also the default.
7691 \end_layout
7692
7693 \begin_layout Labeling
7694 \labelwidthstring MMMMMMM
7695
7696 \series bold
7697 fancy
7698 \series default
7699  Gives you access to the 
7700 \family sans
7701 fancyheadings
7702 \family default
7703  package although its use with 
7704 \family sans
7705 Foil\SpecialChar TeX
7706
7707 \family default
7708  is discouraged by the writer of the 
7709 \family sans
7710 Foil\SpecialChar TeX
7711
7712 \family default
7713  package because of some potential page layout clashes.
7714 \end_layout
7715
7716 \end_deeper
7717 \begin_layout Paragraph
7718 Extra Options
7719 \end_layout
7720
7721 \begin_layout Standard
7722 The following options may be used in the extra class options in the 
7723 \family sans
7724 Document\SpecialChar menuseparator
7725 Settings
7726 \family default
7727  dialog.
7728 \end_layout
7729
7730 \begin_layout Labeling
7731 \labelwidthstring MMMMMMx
7732
7733 \series bold
7734 35mmSlide
7735 \series default
7736  This sets up the page layout for 7.33
7737 \begin_inset space \thinspace{}
7738 \end_inset
7739
7740 in by 11
7741 \begin_inset space \thinspace{}
7742 \end_inset
7743
7744 in paper, which is about the same aspect ratio as a 35
7745 \begin_inset space \thinspace{}
7746 \end_inset
7747
7748 mm slide, making it a bit easier to work with this medium.
7749 \end_layout
7750
7751 \begin_layout Labeling
7752 \labelwidthstring MMMMMMx
7753
7754 \series bold
7755 headrule
7756 \series default
7757  Places a rule across the page below the header on every page except the
7758  title page.
7759 \end_layout
7760
7761 \begin_layout Labeling
7762 \labelwidthstring MMMMMMx
7763
7764 \series bold
7765 footrule
7766 \series default
7767  Places a rule across the page above the footer on every page except the
7768  title page.
7769 \end_layout
7770
7771 \begin_layout Labeling
7772 \labelwidthstring MMMMMMx
7773
7774 \series bold
7775 dvips
7776 \series default
7777  This is automatically set each time you create a new 
7778 \family sans
7779 foils
7780 \family default
7781  document.
7782  This option tells 
7783 \family sans
7784 Foil\SpecialChar TeX
7785
7786 \family default
7787  to use the dvips driver to rotate those pages that are set as landscape
7788  foils.
7789 \end_layout
7790
7791 \begin_layout Labeling
7792 \labelwidthstring MMMMMMx
7793
7794 \series bold
7795 landscape
7796 \series default
7797  Simply changes the page dimensions to those of a landscape page but doesn't
7798  do any rotation.
7799  Thus if you use this option you need to use an external program to rotate
7800  each page or feed your paper through your printer as landscape.
7801  Note that this option effectively reverses the roles of the 
7802 \family sans
7803 Foilhead
7804 \family default
7805  and 
7806 \family sans
7807 Rotatefoilhead
7808 \family default
7809  environments (don't worry these are described in the next section).
7810 \end_layout
7811
7812 \begin_layout Labeling
7813 \labelwidthstring MMMMMMx
7814
7815 \series bold
7816 leqno
7817 \series default
7818  Equation numbers on the left.
7819 \end_layout
7820
7821 \begin_layout Labeling
7822 \labelwidthstring MMMMMMx
7823
7824 \series bold
7825 fleqn
7826 \series default
7827  Flush-left equations.
7828 \end_layout
7829
7830 \begin_layout Subsubsection
7831 Supported Environments
7832 \end_layout
7833
7834 \begin_layout Standard
7835 Most of the environments commonly supported in other classes are also supported
7836  by the 
7837 \family sans
7838 foils
7839 \family default
7840  class.
7841  There are several additional environments provided by 
7842 \family sans
7843 Foil\SpecialChar TeX
7844
7845 \family default
7846  as well as a couple added by \SpecialChar LyX
7847 .
7848  The following environments are shared with other classes:
7849 \end_layout
7850
7851 \begin_layout Standard
7852 \begin_inset Flex Multiple Columns
7853 status open
7854
7855 \begin_layout Itemize
7856
7857 \family sans
7858 Standard
7859 \end_layout
7860
7861 \begin_layout Itemize
7862
7863 \family sans
7864 Itemize
7865 \end_layout
7866
7867 \begin_layout Itemize
7868
7869 \family sans
7870 Enumerate
7871 \end_layout
7872
7873 \begin_layout Itemize
7874
7875 \family sans
7876 Description
7877 \end_layout
7878
7879 \begin_layout Itemize
7880
7881 \family sans
7882 List
7883 \end_layout
7884
7885 \begin_layout Itemize
7886
7887 \family sans
7888 \SpecialChar LyX
7889 -Code
7890 \end_layout
7891
7892 \begin_layout Itemize
7893
7894 \family sans
7895 Verse
7896 \end_layout
7897
7898 \begin_layout Itemize
7899
7900 \family sans
7901 Quote
7902 \end_layout
7903
7904 \begin_layout Itemize
7905
7906 \family sans
7907 Quotation
7908 \end_layout
7909
7910 \begin_layout Itemize
7911
7912 \family sans
7913 TitleAuthor
7914 \end_layout
7915
7916 \begin_layout Itemize
7917
7918 \family sans
7919 Date
7920 \end_layout
7921
7922 \begin_layout Itemize
7923
7924 \family sans
7925 Abstract
7926 \end_layout
7927
7928 \begin_layout Itemize
7929
7930 \family sans
7931 Bibliography
7932 \end_layout
7933
7934 \begin_layout Itemize
7935
7936 \family sans
7937 Address
7938 \end_layout
7939
7940 \begin_layout Itemize
7941
7942 \family sans
7943 RightAddress
7944 \end_layout
7945
7946 \end_inset
7947
7948
7949 \end_layout
7950
7951 \begin_layout Standard
7952 That is, all the major environments apart from the sectioning environments.
7953  Since foils are essentially self-contained sections, with a title and body,
7954  
7955 \family sans
7956 Foil\SpecialChar TeX
7957
7958 \family default
7959  provides specific commands for starting new foils and these are:
7960 \end_layout
7961
7962 \begin_layout Itemize
7963
7964 \family sans
7965 Foilhead
7966 \end_layout
7967
7968 \begin_layout Itemize
7969
7970 \family sans
7971 Rotatefoilhead
7972 \end_layout
7973
7974 \begin_layout Standard
7975 \SpecialChar LyX
7976  also provides slightly modified versions of these two environments called:
7977 \end_layout
7978
7979 \begin_layout Itemize
7980
7981 \family sans
7982 ShortFoilhead
7983 \end_layout
7984
7985 \begin_layout Itemize
7986
7987 \family sans
7988 ShortRotatefoilhead
7989 \end_layout
7990
7991 \begin_layout Standard
7992 and the differences will be explained in the next section.
7993 \end_layout
7994
7995 \begin_layout Standard
7996 Since foils are often used in presenting ideas or new theorems and such
7997  
7998 \family sans
7999 Foil\SpecialChar TeX
8000
8001 \family default
8002  also provides a comprehensive box of goodies for presenting them:
8003 \end_layout
8004
8005 \begin_layout Standard
8006 \begin_inset Flex Multiple Columns
8007 status open
8008
8009 \begin_layout Itemize
8010
8011 \family sans
8012 Theorem
8013 \end_layout
8014
8015 \begin_layout Itemize
8016
8017 \family sans
8018 Lemma
8019 \end_layout
8020
8021 \begin_layout Itemize
8022
8023 \family sans
8024 Corollary
8025 \end_layout
8026
8027 \begin_layout Itemize
8028
8029 \family sans
8030 Proposition
8031 \end_layout
8032
8033 \begin_layout Itemize
8034
8035 \family sans
8036 Definition
8037 \end_layout
8038
8039 \begin_layout Itemize
8040
8041 \family sans
8042 Proof
8043 \end_layout
8044
8045 \begin_layout Itemize
8046
8047 \family sans
8048 Theorem*
8049 \end_layout
8050
8051 \begin_layout Itemize
8052
8053 \family sans
8054 Lemma*
8055 \end_layout
8056
8057 \begin_layout Itemize
8058
8059 \family sans
8060 Corollary*
8061 \end_layout
8062
8063 \begin_layout Itemize
8064
8065 \family sans
8066 Proposition*
8067 \end_layout
8068
8069 \begin_layout Itemize
8070
8071 \family sans
8072 Definition*
8073 \end_layout
8074
8075 \end_inset
8076
8077
8078 \end_layout
8079
8080 \begin_layout Standard
8081 The starred versions are unnumbered while the unstarred versions are numbered.
8082  There are also two list environments added by \SpecialChar LyX
8083  and these are:
8084 \end_layout
8085
8086 \begin_layout Itemize
8087
8088 \family sans
8089 TickList
8090 \end_layout
8091
8092 \begin_layout Itemize
8093
8094 \family sans
8095 CrossList
8096 \end_layout
8097
8098 \begin_layout Standard
8099
8100 \family sans
8101 Foil\SpecialChar TeX
8102
8103 \family default
8104  provides some powerful header and footer capabilities that are best set
8105  in the preamble although they may be set at any point in a document.
8106  If you want to change these settings in your document the best place to
8107  do so is at the very top of a foil, i.
8108 \begin_inset space \thinspace{}
8109 \end_inset
8110
8111 e.
8112 \emph on
8113
8114 \begin_inset space \space{}
8115 \end_inset
8116
8117
8118 \emph default
8119 straight after the foilhead.
8120 \end_layout
8121
8122 \begin_layout Standard
8123 For this purpose, the following command styles are provided [
8124 \shape smallcaps
8125 Martin Vermeer
8126 \shape default
8127 ]:
8128 \end_layout
8129
8130 \begin_layout Standard
8131 \begin_inset Flex Multiple Columns
8132 status open
8133
8134 \begin_layout Itemize
8135
8136 \family sans
8137 My
8138 \begin_inset space ~
8139 \end_inset
8140
8141 Logo
8142 \end_layout
8143
8144 \begin_layout Itemize
8145
8146 \family sans
8147 Restriction
8148 \end_layout
8149
8150 \begin_layout Itemize
8151
8152 \family sans
8153 Right
8154 \begin_inset space ~
8155 \end_inset
8156
8157 Footer
8158 \end_layout
8159
8160 \begin_layout Itemize
8161
8162 \family sans
8163 Right
8164 \begin_inset space ~
8165 \end_inset
8166
8167 Header
8168 \end_layout
8169
8170 \begin_layout Itemize
8171
8172 \family sans
8173 Left
8174 \begin_inset space ~
8175 \end_inset
8176
8177 Header
8178 \end_layout
8179
8180 \begin_deeper
8181 \begin_layout Plain Layout
8182 \begin_inset space ~
8183 \end_inset
8184
8185
8186 \end_layout
8187
8188 \end_deeper
8189 \end_inset
8190
8191
8192 \end_layout
8193
8194 \begin_layout Standard
8195 There are also a few commands provided by 
8196 \family sans
8197 Foil\SpecialChar TeX
8198
8199 \family default
8200  that aren't directly supported by \SpecialChar LyX
8201  but I'll tell you what they do and how
8202  to use them in section
8203 \begin_inset space ~
8204 \end_inset
8205
8206
8207 \begin_inset CommandInset ref
8208 LatexCommand ref
8209 reference "sec:unsuppfoils"
8210
8211 \end_inset
8212
8213 .
8214 \end_layout
8215
8216 \begin_layout Subsubsection
8217 Building a Set of Foils
8218 \end_layout
8219
8220 \begin_layout Standard
8221 This section will give a simple introduction to using the different environments
8222  to build a set of foils.
8223  If you want to see an example set of foils, take a look at the 
8224 \family typewriter
8225 Foils.lyx
8226 \family default
8227  file you find in \SpecialChar LyX
8228 's 
8229 \family typewriter
8230 examples
8231 \family default
8232  folder.
8233 \end_layout
8234
8235 \begin_layout Paragraph
8236 Give It a Title Page
8237 \end_layout
8238
8239 \begin_layout Standard
8240 Unlike other classes that provide 
8241 \family sans
8242 Title
8243 \family default
8244
8245 \family sans
8246 Author
8247 \family default
8248
8249 \family sans
8250 Date
8251 \family default
8252  and 
8253 \family sans
8254 Abstract
8255 \family default
8256  environments, 
8257 \family sans
8258 foils
8259 \family default
8260  creates the title on a page of its own.
8261  If you leave out the 
8262 \family sans
8263 Date
8264 \family default
8265  environment \SpecialChar LaTeX
8266  will substitute the current date (every time you regenerate
8267  the output).
8268 \end_layout
8269
8270 \begin_layout Paragraph
8271 Start a New Foil
8272 \end_layout
8273
8274 \begin_layout Standard
8275 As I mentioned earlier, there are four ways of starting a new foil.
8276  For portrait foils you should use 
8277 \family sans
8278 Foilhead
8279 \family default
8280  or 
8281 \family sans
8282 ShortFoilhead.
8283
8284 \family default
8285  The difference between these two environments is the amount of space between
8286  the title of the foil (the foilhead) and the body of the foil.
8287 \end_layout
8288
8289 \begin_layout Standard
8290 Landscape foils are generated using the 
8291 \family sans
8292 Rotatefoilhead
8293 \family default
8294  and 
8295 \family sans
8296 ShortRotatefoilhead
8297 \family default
8298  environments.
8299  Again the only difference is the spacing between foilhead and body.
8300  Both of the short versions have 0.5
8301 \begin_inset space ~
8302 \end_inset
8303
8304 inches less separation between the foilhead and the body.
8305  
8306 \end_layout
8307
8308 \begin_layout Standard
8309 One problem with the support for landscape foils is the requirement that
8310  you have to use the 
8311 \family typewriter
8312 dvips
8313 \family default
8314  driver to generate the PostScript output otherwise the foils won't be rotated.
8315  It is possible to get landscape foils even if you haven't got the 
8316 \family typewriter
8317 dvips
8318 \family default
8319  driver provided you can feed your foils sideways through your printer ;-)
8320 \end_layout
8321
8322 \begin_layout Paragraph
8323 Theorems, Lemmas, Proofs and more
8324 \end_layout
8325
8326 \begin_layout Standard
8327 You can't have two of the same type of these environments directly following
8328  each other.
8329  If you use a normal paragraph break, , you will just be extending the previous
8330  environment as if you had merged the two environments together.
8331  Rather than that, you need to insert a so-called separator.
8332  Please refer to the section entitled 
8333 \emph on
8334 Separate Nestings
8335 \emph default
8336  in the 
8337 \emph on
8338 User's Guide
8339 \emph default
8340 .
8341 \end_layout
8342
8343 \begin_layout Paragraph
8344 Lists
8345 \end_layout
8346
8347 \begin_layout Standard
8348 You get all the commonly supported list styles found in other classes as
8349  well as two new ones.
8350  I'll only describe the new ones here.
8351  If you want to find out more about the other list environments check out
8352  the 
8353 \emph on
8354 User's Guide.
8355
8356 \emph default
8357  If you intend to use itemized lists you might also want to read about the
8358  
8359 \family sans
8360 Itemize
8361 \begin_inset space ~
8362 \end_inset
8363
8364 Bullet
8365 \begin_inset space ~
8366 \end_inset
8367
8368 Selection
8369 \family default
8370  dialog described above in section
8371 \begin_inset space ~
8372 \end_inset
8373
8374
8375 \begin_inset CommandInset ref
8376 LatexCommand ref
8377 reference "sec:bullet"
8378
8379 \end_inset
8380
8381 .
8382 \end_layout
8383
8384 \begin_layout Standard
8385 The two new list styles, 
8386 \family sans
8387 TickList
8388 \family default
8389  and 
8390 \family sans
8391 CrossList
8392 \family default
8393 , are designed to make it easier for you to create lists of do's and don'ts
8394  or right and wrong by providing dedicated environments that use a tick
8395  or a cross as the label of the list.
8396  These lists are in fact dedicated variants of the 
8397 \family sans
8398 Itemize
8399 \family default
8400  environment.
8401  They do however require that you have the 
8402 \family typewriter
8403 psnfss
8404 \family default
8405  packages installed.
8406 \end_layout
8407
8408 \begin_layout Paragraph
8409 Figures and Tables
8410 \end_layout
8411
8412 \begin_layout Standard
8413
8414 \family sans
8415 Foil\SpecialChar TeX
8416
8417 \family default
8418  redefines the floating tables and figures so that they appear exactly where
8419  they are in the text rather than pushing them to the top of the page or
8420  to some user specified location.
8421  In fact if you change the float placement settings they are simply ignored.
8422 \end_layout
8423
8424 \begin_layout Paragraph
8425 Page Headers and Footers
8426 \begin_inset CommandInset label
8427 LatexCommand label
8428 name "sec:foilfoot"
8429
8430 \end_inset
8431
8432
8433 \end_layout
8434
8435 \begin_layout Standard
8436
8437 \family sans
8438 My
8439 \begin_inset space ~
8440 \end_inset
8441
8442 Logo
8443 \family default
8444  and 
8445 \family sans
8446 Restriction
8447 \family default
8448  are two commands used to control the left-footer text string.
8449  The first is meant to allow you to include a graphic logo on your foils
8450  and defaults to 
8451 \begin_inset Quotes eld
8452 \end_inset
8453
8454 -Typeset by 
8455 \family sans
8456 Foil\SpecialChar TeX
8457
8458 \family default
8459 -
8460 \begin_inset Quotes erd
8461 \end_inset
8462
8463 .
8464  While the second is meant to provide a classification for the audience,
8465  
8466 \emph on
8467 e.
8468 \begin_inset space \thinspace{}
8469 \end_inset
8470
8471 g.
8472 \emph default
8473
8474 \begin_inset space \space{}
8475 \end_inset
8476
8477 Confidential.
8478  It is empty by default.
8479 \end_layout
8480
8481 \begin_layout Standard
8482 The remaining page corners can be filled by 
8483 \family sans
8484 Right
8485 \begin_inset space ~
8486 \end_inset
8487
8488 Footer
8489 \family default
8490  (which defaults to page numbers), 
8491 \family sans
8492 Right
8493 \begin_inset space ~
8494 \end_inset
8495
8496 Header
8497 \family default
8498  (top right) and 
8499 \family sans
8500 Left
8501 \begin_inset space ~
8502 \end_inset
8503
8504 Header
8505 \family default
8506  (top left).
8507 \end_layout
8508
8509 \begin_layout Subsubsection
8510 Unsupported 
8511 \family sans
8512 Foil\SpecialChar TeX
8513
8514 \family default
8515  Goodies
8516 \begin_inset CommandInset label
8517 LatexCommand label
8518 name "sec:unsuppfoils"
8519
8520 \end_inset
8521
8522
8523 \end_layout
8524
8525 \begin_layout Standard
8526 All the commands mentioned below need to be set in a 
8527 \family sans
8528 \SpecialChar LaTeX
8529
8530 \family default
8531  environment or as 
8532 \family sans
8533 \SpecialChar TeX
8534
8535 \family default
8536  within another environment.
8537 \end_layout
8538
8539 \begin_layout Paragraph
8540 Lengths
8541 \end_layout
8542
8543 \begin_layout Standard
8544 All lengths are adjusted using the 
8545 \family typewriter
8546
8547 \backslash
8548 setlength{
8549 \family default
8550 \emph on
8551 lengthname
8552 \family typewriter
8553 \emph default
8554 }{
8555 \family default
8556 \emph on
8557 newlength
8558 \family typewriter
8559 \emph default
8560 }
8561 \family default
8562  command.
8563  Where 
8564 \emph on
8565 lengthname
8566 \emph default
8567  should be replaced by the name given to the length you want to change and
8568  
8569 \emph on
8570 newlength
8571 \emph default
8572  is the length value.
8573  All lengths should be specified in units of length such as inches (
8574 \family typewriter
8575 in
8576 \family default
8577 ), millimeters (
8578 \family typewriter
8579 mm
8580 \family default
8581 ) or points (
8582 \family typewriter
8583 pt
8584 \family default
8585 ) or relative to some document or font-based length such as 
8586 \family typewriter
8587
8588 \backslash
8589 textwidth
8590 \family default
8591 .
8592  
8593 \end_layout
8594
8595 \begin_layout Standard
8596 It's possible to change the spacing between a foilhead and the body of the
8597  foil by adjusting the length specified by 
8598 \family typewriter
8599
8600 \backslash
8601 foilheadskip
8602 \family default
8603 .
8604  For example, to make 
8605 \emph on
8606 all
8607 \emph default
8608  foilheads 0.5
8609 \begin_inset space \space{}
8610 \end_inset
8611
8612 in closer to their bodies put the following in the preamble: 
8613 \family typewriter
8614
8615 \backslash
8616 setlength{
8617 \backslash
8618 foilheadskip}{-0.5in}
8619 \end_layout
8620
8621 \begin_layout Standard
8622 The spacings around floats can be adjusted by setting these lengths:
8623 \end_layout
8624
8625 \begin_layout Labeling
8626 \labelwidthstring MMMMMMMMMMM
8627
8628 \family typewriter
8629
8630 \backslash
8631 abovefloatskip
8632 \family default
8633  Separation between the text and the top of the float
8634 \end_layout
8635
8636 \begin_layout Labeling
8637 \labelwidthstring MMMMMMMMMMM
8638
8639 \family typewriter
8640
8641 \backslash
8642 abovecaptionskip
8643 \family default
8644  Separation between the float and the caption
8645 \end_layout
8646
8647 \begin_layout Labeling
8648 \labelwidthstring MMMMMMMMMMM
8649
8650 \family typewriter
8651
8652 \backslash
8653 belowcaptionskip
8654 \family default
8655  Separation between the caption and the following text
8656 \end_layout
8657
8658 \begin_layout Labeling
8659 \labelwidthstring MMMMMMMMMMM
8660
8661 \family typewriter
8662
8663 \backslash
8664 captionwidth
8665 \family default
8666  You can make the captions narrower than the surrounding text by adjusting
8667  this length.
8668  Best done relative to 
8669 \family typewriter
8670
8671 \backslash
8672 textwidth
8673 \family default
8674 .
8675 \end_layout
8676
8677 \begin_layout Standard
8678 There are also several title page related lengths that you may find useful
8679  if you have a long title or several authors:
8680 \end_layout
8681
8682 \begin_layout Labeling
8683 \labelwidthstring MMMMMMMMMMM
8684
8685 \family typewriter
8686
8687 \backslash
8688 abovetitleskip
8689 \family default
8690  Separation from headers to 
8691 \family sans
8692 Title
8693 \end_layout
8694
8695 \begin_layout Labeling
8696 \labelwidthstring MMMMMMMMMMM
8697
8698 \family typewriter
8699
8700 \backslash
8701 titleauthorskip
8702 \family default
8703  between 
8704 \family sans
8705 Title
8706 \family default
8707  and 
8708 \family sans
8709 Author
8710 \family default
8711  environments
8712 \end_layout
8713
8714 \begin_layout Labeling
8715 \labelwidthstring MMMMMMMMMMM
8716
8717 \family typewriter
8718
8719 \backslash
8720 authorauthorskip
8721 \family default
8722  between multiple 
8723 \family sans
8724 Author
8725 \family default
8726  lines
8727 \end_layout
8728
8729 \begin_layout Labeling
8730 \labelwidthstring MMMMMMMMMMM
8731
8732 \family typewriter
8733
8734 \backslash
8735 authordateskip
8736 \family default
8737  between the 
8738 \family sans
8739 Author
8740 \family default
8741  and the 
8742 \family sans
8743 Date
8744 \end_layout
8745
8746 \begin_layout Labeling
8747 \labelwidthstring MMMMMMMMMMM
8748
8749 \family typewriter
8750
8751 \backslash
8752 dateabstractskip
8753 \family default
8754  between the 
8755 \family sans
8756 Date
8757 \family default
8758  and the 
8759 \family sans
8760 Abstract
8761 \end_layout
8762
8763 \begin_layout Standard
8764 The last length related command affects all the list environments.
8765  If you place 
8766 \family typewriter
8767
8768 \backslash
8769 zerolistvertdimens
8770 \family default
8771  
8772 \emph on
8773 inside
8774 \emph default
8775  a list environment then all the vertical spacing between the list items
8776  is removed.
8777  Note that this is a command not a length so it doesn't require 
8778 \family typewriter
8779
8780 \backslash
8781 setlength
8782 \family default
8783  like the stuff mentioned above.
8784 \end_layout
8785
8786 \begin_layout Paragraph
8787 Headers and Footers
8788 \end_layout
8789
8790 \begin_layout Standard
8791 The 
8792 \family typewriter
8793
8794 \backslash
8795 LogoOn
8796 \family default
8797  and 
8798 \family typewriter
8799
8800 \backslash
8801 LogoOff
8802 \family default
8803  commands control whether the logo in the 
8804 \family sans
8805 MyLogo
8806 \family default
8807  definition appear on a given page.
8808  If you put 
8809 \family typewriter
8810
8811 \backslash
8812 LogoOff
8813 \family default
8814  in the preamble then none of the foils will have the logo on them.
8815  If you don't want the logo on a particular page place the 
8816 \family typewriter
8817
8818 \backslash
8819 LogoOff
8820 \family default
8821  directly after the foilhead of that page and the 
8822 \family typewriter
8823
8824 \backslash
8825 LogoOn
8826 \family default
8827  directly after the next foilhead.
8828 \end_layout
8829
8830 \begin_layout Standard
8831 If you decide to use the 
8832 \family sans
8833 fancy
8834 \family default
8835  page style setting in the 
8836 \family sans
8837 Document
8838 \begin_inset space ~
8839 \end_inset
8840
8841 Layout
8842 \family default
8843  dialog you should probably add 
8844 \family typewriter
8845
8846 \backslash
8847 let
8848 \backslash
8849 headwidth
8850 \backslash
8851 textwidth
8852 \family default
8853  to your preamble so headers and footers on landscape pages are correctly
8854  placed when rotated.
8855  This is due to some clashes between the page layouts provided by the 
8856 \family sans
8857 fancyheadings
8858 \family default
8859  package and the 
8860 \family sans
8861 foils
8862 \family default
8863  class.
8864 \end_layout
8865
8866 \begin_layout Section
8867
8868 \change_inserted 564990737 1670439661
8869 Reports
8870 \end_layout
8871
8872 \begin_layout Subsection
8873
8874 \change_inserted 564990737 1670439661
8875 report
8876 \end_layout
8877
8878 \begin_layout Standard
8879
8880 \change_inserted 564990737 1670439661
8881 The document class 
8882 \family sans
8883 report
8884 \family default
8885  provides the 
8886 \family sans
8887 report.cls
8888 \family default
8889  document class for preparing reports.
8890  Like the 
8891 \family sans
8892 book
8893 \family default
8894  document class, this provides parts, chapters and sections but does not
8895  provide the paragraph styles needed for a book; like the 
8896 \family sans
8897 article
8898 \family default
8899  document class, it provides the abstract paragraph style.
8900  In two-sided mode, it does not start a new chapter on the right hand page.
8901 \end_layout
8902
8903 \begin_layout Standard
8904
8905 \change_inserted 564990737 1670439674
8906 The remaining 
8907 \family sans
8908 report
8909 \family default
8910  document classes are described in the Collections (section
8911 \begin_inset space ~
8912 \end_inset
8913
8914
8915 \begin_inset CommandInset ref
8916 LatexCommand ref
8917 reference "sec:Collections"
8918
8919 \end_inset
8920
8921 ).
8922 \end_layout
8923
8924 \begin_layout Section
8925
8926 \change_inserted 564990737 1670439674
8927 Scripts (drama)
8928 \end_layout
8929
8930 \begin_layout Subsection
8931 Broadway
8932 \end_layout
8933
8934 \begin_layout Standard
8935 by 
8936 \shape smallcaps
8937 Garst Reese
8938 \end_layout
8939
8940 \begin_layout Subsubsection
8941 Introduction
8942 \end_layout
8943
8944 \begin_layout Standard
8945 Broadway is for writing plays.
8946  The format is more decorative than Hollywood, and much less standardized.
8947  This format should be suitable for workshops.
8948 \end_layout
8949
8950 \begin_layout Subsubsection
8951 Special problems
8952 \end_layout
8953
8954 \begin_layout Standard
8955 The same as in Hollywood.
8956 \end_layout
8957
8958 \begin_layout Subsubsection
8959 Special features
8960 \end_layout
8961
8962 \begin_layout Standard
8963 Insert the 
8964 \family sans
8965 Speaker
8966 \family default
8967  names as labels then cross-reference the label to insert the name.
8968  The cross-reference dialog will show the current cast of characters.
8969 \end_layout
8970
8971 \begin_layout Subsubsection
8972 Paper size and Margins
8973 \end_layout
8974
8975 \begin_layout Standard
8976 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
8977 \end_layout
8978
8979 \begin_layout Subsubsection
8980 Environments
8981 \end_layout
8982
8983 \begin_layout Standard
8984 The following environments are available.
8985  You can use broadway.bind to get the bind keys shown at the right.
8986 \end_layout
8987
8988 \begin_layout Itemize
8989
8990 \family sans
8991 Standard
8992 \begin_inset Newline newline
8993 \end_inset
8994
8995
8996 \family default
8997 You should not have to use this, but it is here for anything that does not
8998  fit otherwise.
8999 \end_layout
9000
9001 \begin_layout Itemize
9002
9003 \family sans
9004 Narrative
9005 \begin_inset space \hfill{}
9006 \end_inset
9007
9008 M-z n
9009 \begin_inset Newline newline
9010 \end_inset
9011
9012
9013 \family default
9014 Used to describe stage setting and the action.
9015  First use of speaker names in all CAPs.
9016 \end_layout
9017
9018 \begin_layout Itemize
9019
9020 \family sans
9021 ACT
9022 \begin_inset space \hfill{}
9023 \end_inset
9024
9025 M-z a
9026 \begin_inset Newline newline
9027 \end_inset
9028
9029
9030 \family default
9031 Automatically numbered.
9032  On screen it will be arabic, but will print as Roman.
9033 \end_layout
9034
9035 \begin_layout Itemize
9036
9037 \family sans
9038 ACT*
9039 \begin_inset space \hfill{}
9040 \end_inset
9041
9042 M-z S at
9043 \begin_inset Newline newline
9044 \end_inset
9045
9046
9047 \family default
9048 Subtitle for 
9049 \family sans
9050 ACT.
9051
9052 \family default
9053  It is just centered text.
9054 \end_layout
9055
9056 \begin_layout Itemize
9057
9058 \family sans
9059 SCENE
9060 \begin_inset space \hfill{}
9061 \end_inset
9062
9063 M-z S-S
9064 \begin_inset Newline newline
9065 \end_inset
9066
9067
9068 \family default
9069 Not automatically numbered.
9070  You supply the number.
9071  This is because I couldn't figure out how.
9072 \end_layout
9073
9074 \begin_layout Itemize
9075
9076 \family sans
9077 AT_RISE:
9078 \begin_inset space \hfill{}
9079 \end_inset
9080
9081 M-z S-R
9082 \begin_inset Newline newline
9083 \end_inset
9084
9085
9086 \family default
9087 A special case of Narrative to describe the setting and action as the curtain
9088  rises.
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \family sans
9094 Speaker
9095 \begin_inset space \hfill{}
9096 \end_inset
9097
9098 M-z s
9099 \begin_inset Newline newline
9100 \end_inset
9101
9102
9103 \family default
9104 The speaker's (actor's) title, centered in all CAPS.
9105 \end_layout
9106
9107 \begin_layout Itemize
9108
9109 \family sans
9110 Parenthetical
9111 \begin_inset space \hfill{}
9112 \end_inset
9113
9114 M-z p
9115 \begin_inset Newline newline
9116 \end_inset
9117
9118
9119 \family default
9120 Instructions to the speaker.
9121  The parentheses are automatically inserted.
9122  The ( will appear on screen, but both will be in the printed play.
9123  This environment is only used within 
9124 \family sans
9125 Dialogue
9126 \family default
9127 .
9128 \end_layout
9129
9130 \begin_layout Itemize
9131
9132 \family sans
9133 Dialogue
9134 \begin_inset space \hfill{}
9135 \end_inset
9136
9137 M-z d
9138 \begin_inset Newline newline
9139 \end_inset
9140
9141
9142 \family default
9143 What the Speaker says.
9144 \end_layout
9145
9146 \begin_layout Itemize
9147
9148 \family sans
9149 CURTAIN
9150 \begin_inset space \hfill{}
9151 \end_inset
9152
9153 M-z S-C
9154 \begin_inset Newline newline
9155 \end_inset
9156
9157
9158 \family default
9159 The curtain comes down.
9160 \end_layout
9161
9162 \begin_layout Itemize
9163
9164 \family sans
9165 Title
9166 \begin_inset space \hfill{}
9167 \end_inset
9168
9169 M-z S-T
9170 \end_layout
9171
9172 \begin_layout Itemize
9173
9174 \family sans
9175 Author
9176 \begin_inset space \hfill{}
9177 \end_inset
9178
9179 M-z S-A
9180 \end_layout
9181
9182 \begin_layout Itemize
9183
9184 \family sans
9185 Right_Address
9186 \begin_inset space \hfill{}
9187 \end_inset
9188
9189 M-z r
9190 \end_layout
9191
9192 \begin_layout Standard
9193 Hello there.
9194 \end_layout
9195
9196 \begin_layout Subsection
9197 Hollywood (Hollywood spec scripts)
9198 \end_layout
9199
9200 \begin_layout Standard
9201 by 
9202 \shape smallcaps
9203 Garst Reese
9204 \end_layout
9205
9206 \begin_layout Subsubsection
9207 Introduction
9208 \end_layout
9209
9210 \begin_layout Standard
9211 Getting the format of a Hollywood script right is a 
9212 \begin_inset Quotes eld
9213 \end_inset
9214
9215 rite of passage.
9216 \begin_inset Quotes erd
9217 \end_inset
9218
9219  It is designed to make the readers focus on content and to be easy and
9220  familiar for the actors to read.
9221  Each page of a script should be one minute of film.
9222  Nothing goes in a script that you cannot see or hear on screen.
9223  The courier 12 pt font should be used throughout.
9224  No italics.
9225 \end_layout
9226
9227 \begin_layout Subsubsection
9228 Special problems
9229 \end_layout
9230
9231 \begin_layout Standard
9232 Speakers' lines should NEVER break in mid-sentence.
9233  If a speaker's lines continue over a page break, repeat the 
9234 \family sans
9235 Speaker
9236 \family default
9237  title followed by (Cont'd).
9238 \end_layout
9239
9240 \begin_layout Subsubsection
9241 Special features
9242 \end_layout
9243
9244 \begin_layout Standard
9245 Insert the 
9246 \family sans
9247 Speaker
9248 \family default
9249  names as labels then cross-reference the label to insert the name.
9250  The cross-reference dialog will show the current cast of characters.
9251  You can use this to insert the speaker name in narratives also.
9252 \end_layout
9253
9254 \begin_layout Subsubsection
9255 Paper size and Margins
9256 \end_layout
9257
9258 \begin_layout Standard
9259 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
9260 \end_layout
9261
9262 \begin_layout Subsubsection
9263 Environments
9264 \end_layout
9265
9266 \begin_layout Standard
9267 The following environments are available.
9268  You can use hollywood.bind to get the bind keys shown at the right.
9269 \end_layout
9270
9271 \begin_layout Itemize
9272
9273 \family sans
9274 Standard
9275 \begin_inset Newline newline
9276 \end_inset
9277
9278
9279 \family default
9280 Used where nothing else works.
9281  Try to avoid it.
9282 \end_layout
9283
9284 \begin_layout Itemize
9285
9286 \family sans
9287 FADE_IN
9288 \family default
9289 :
9290 \begin_inset space \hfill{}
9291 \end_inset
9292
9293
9294 \family sans
9295 M-z S-I
9296 \family default
9297
9298 \begin_inset Newline newline
9299 \end_inset
9300
9301 Usually followed by something like 
9302 \begin_inset Quotes eld
9303 \end_inset
9304
9305 on Sally waking up.
9306 \begin_inset Quotes erd
9307 \end_inset
9308
9309
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family sans
9315 INT:
9316 \begin_inset space \hfill{}
9317 \end_inset
9318
9319 M-z i
9320 \begin_inset Newline newline
9321 \end_inset
9322
9323
9324 \family default
9325 Introduces a new INTERIOR camera set-up.
9326  Always followed by DAY or NIGHT, or something similar to define the lighting
9327  required.
9328  Everthing on this line in CAPS.
9329 \end_layout
9330
9331 \begin_layout Itemize
9332
9333 \family sans
9334 EXT:
9335 \begin_inset space \hfill{}
9336 \end_inset
9337
9338 M-z e
9339 \begin_inset Newline newline
9340 \end_inset
9341
9342
9343 \family default
9344 Introduces a new EXTERIOR camera set-up.
9345  Everthing on this line in CAPS.
9346 \end_layout
9347
9348 \begin_layout Itemize
9349
9350 \family sans
9351 Speaker
9352 \begin_inset space \hfill{}
9353 \end_inset
9354
9355 M-z s
9356 \begin_inset Newline newline
9357 \end_inset
9358
9359
9360 \family default
9361 The character speaking.
9362 \end_layout
9363
9364 \begin_layout Itemize
9365
9366 \family sans
9367 Parenthetical
9368 \begin_inset space \hfill{}
9369 \end_inset
9370
9371 M-z p
9372 \begin_inset Newline newline
9373 \end_inset
9374
9375
9376 \family default
9377 Instructions to the speaker.
9378  The () are automatically inserted.
9379 \end_layout
9380
9381 \begin_layout Itemize
9382
9383 \family sans
9384 Dialogue
9385 \begin_inset space \hfill{}
9386 \end_inset
9387
9388 M-z d
9389 \begin_inset Newline newline
9390 \end_inset
9391
9392
9393 \family default
9394 What the 
9395 \family sans
9396 Speaker
9397 \family default
9398  says.
9399 \end_layout
9400
9401 \begin_layout Itemize
9402
9403 \family sans
9404 Transition
9405 \begin_inset space \hfill{}
9406 \end_inset
9407
9408 M-z t
9409 \begin_inset Newline newline
9410 \end_inset
9411
9412
9413 \family default
9414 Camera movement instruction.
9415  e.
9416 \begin_inset space \thinspace{}
9417 \end_inset
9418
9419 g.
9420 \begin_inset space \space{}
9421 \end_inset
9422
9423 CUT TO:
9424 \end_layout
9425
9426 \begin_layout Itemize
9427
9428 \family sans
9429 FADE OUT:
9430 \begin_inset space \hfill{}
9431 \end_inset
9432
9433 M-z S-I
9434 \end_layout
9435
9436 \begin_layout Itemize
9437
9438 \family sans
9439 Author
9440 \begin_inset space \hfill{}
9441 \end_inset
9442
9443 M-z S-A
9444 \end_layout
9445
9446 \begin_layout Itemize
9447
9448 \family sans
9449 Title
9450 \begin_inset space \hfill{}
9451 \end_inset
9452
9453 M-z S-T
9454 \end_layout
9455
9456 \begin_layout Itemize
9457
9458 \family sans
9459 Right_Address
9460 \begin_inset space \hfill{}
9461 \end_inset
9462
9463 M-z r
9464 \end_layout
9465
9466 \begin_layout Subsubsection
9467 Script jargon
9468 \end_layout
9469
9470 \begin_layout Itemize
9471 (O.S) — off screen
9472 \end_layout
9473
9474 \begin_layout Itemize
9475 (V.0) — voice over
9476 \end_layout
9477
9478 \begin_layout Itemize
9479 b.
9480 \begin_inset space \thinspace{}
9481 \end_inset
9482
9483 g.
9484  — background
9485 \end_layout
9486
9487 \begin_layout Itemize
9488 C.U.
9489  — close-up
9490 \end_layout
9491
9492 \begin_layout Itemize
9493 PAN — camera movement
9494 \end_layout
9495
9496 \begin_layout Itemize
9497 INSERT — cut to close-up of
9498 \end_layout
9499
9500 \begin_layout Chapter
9501 Supplemental Tools
9502 \end_layout
9503
9504 \begin_layout Section
9505 Customizing Bibliographies with Bib\SpecialChar TeX
9506  or Biblatex
9507 \end_layout
9508
9509 \begin_layout Standard
9510 The most basic information about how to use Bib\SpecialChar TeX
9511  or 
9512 \family sans
9513 Biblatex
9514 \family default
9515  with \SpecialChar LyX
9516  is contained in the section 
9517 \emph on
9518 Bibliography databases
9519 \emph default
9520  of the 
9521 \emph on
9522 User's Guide
9523 \emph default
9524 .
9525  The following subsections explain special bibliography features supported
9526  by \SpecialChar LyX
9527 .
9528 \end_layout
9529
9530 \begin_layout Subsection
9531 Alternative Citation Styles
9532 \end_layout
9533
9534 \begin_layout Standard
9535 Standard Bib\SpecialChar TeX
9536  uses numbers (e.
9537 \begin_inset space \thinspace{}
9538 \end_inset
9539
9540 g.
9541 \begin_inset space \space{}
9542 \end_inset
9543
9544
9545 \begin_inset Quotes eld
9546 \end_inset
9547
9548 [12]
9549 \begin_inset Quotes erd
9550 \end_inset
9551
9552 ) to refer to a cited work.
9553  However, in many scientific disciplines, other citation styles are in use.
9554  The most common one is the author-year style (e.
9555 \begin_inset space \thinspace{}
9556 \end_inset
9557
9558 g.
9559 \begin_inset space \space{}
9560 \end_inset
9561
9562
9563 \begin_inset Quotes eld
9564 \end_inset
9565
9566 Knuth 1984a
9567 \begin_inset Quotes erd
9568 \end_inset
9569
9570 ).
9571  \SpecialChar LyX
9572  supports three packages that provide this style, 
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 biblatex
9578 \end_layout
9579
9580 \end_inset
9581
9582
9583 \begin_inset Flex Code
9584 status collapsed
9585
9586 \begin_layout Plain Layout
9587 natbib
9588 \end_layout
9589
9590 \end_inset
9591
9592 , and 
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 jurabib
9598 \end_layout
9599
9600 \end_inset
9601
9602 .
9603  Each of these packages has their pros and cons, which cannot be listed
9604  in detail.
9605  If you only want to have simple author-year (or author-numerical) style,
9606  or if you want to use one of the countless style files for 
9607 \begin_inset Flex Code
9608 status collapsed
9609
9610 \begin_layout Plain Layout
9611 natbib
9612 \end_layout
9613
9614 \end_inset
9615
9616 , then the established 
9617 \begin_inset Flex Code
9618 status collapsed
9619
9620 \begin_layout Plain Layout
9621 natbib
9622 \end_layout
9623
9624 \end_inset
9625
9626  package is probably your choice.
9627  If you look for specific citation styles common in law studies, you might
9628  consider the 
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 jurabib
9634 \end_layout
9635
9636 \end_inset
9637
9638  package.
9639  If you want to have full control over the formatting or look for advanced
9640  features such as ibidem, footnote citations, full title citations, advanced
9641  date formats (such as 400 BC) or full localization to other languages than
9642  English, you should definitely consider 
9643 \begin_inset Flex Code
9644 status collapsed
9645
9646 \begin_layout Plain Layout
9647 biblatex
9648 \end_layout
9649
9650 \end_inset
9651
9652 , which exceeds all other packages in terms of features, but is also quite
9653  heavy and more resource-hungry.
9654 \end_layout
9655
9656 \begin_layout Standard
9657 The handling of these packages in \SpecialChar LyX
9658  is basically the same.
9659  Go to 
9660 \begin_inset Flex Noun
9661 status collapsed
9662
9663 \begin_layout Plain Layout
9664 Document\SpecialChar menuseparator
9665 Settings
9666 \end_layout
9667
9668 \end_inset
9669
9670  and select under 
9671 \begin_inset Flex Noun
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 Bibliography
9676 \end_layout
9677
9678 \end_inset
9679
9680  the 
9681 \begin_inset Flex Noun
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 Style Format
9686 \end_layout
9687
9688 \end_inset
9689
9690  
9691 \begin_inset Flex Noun
9692 status collapsed
9693
9694 \begin_layout Plain Layout
9695 Basic (BibTeX)
9696 \end_layout
9697
9698 \end_inset
9699
9700
9701 \begin_inset Flex Noun
9702 status collapsed
9703
9704 \begin_layout Plain Layout
9705 Biblatex
9706 \end_layout
9707
9708 \end_inset
9709
9710
9711 \begin_inset Flex Noun
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 Biblatex (Natbib mode)
9716 \end_layout
9717
9718 \end_inset
9719
9720
9721 \begin_inset Flex Noun
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 Natbib (BibTeX)
9726 \end_layout
9727
9728 \end_inset
9729
9730  or 
9731 \begin_inset Flex Noun
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735 Jurabib (BibTeX)
9736 \end_layout
9737
9738 \end_inset
9739
9740  (see sec.
9741 \begin_inset space ~
9742 \end_inset
9743
9744 6.5.3 in the User's Guide for more information on these choices).
9745  With all these packages, you will get some extra features in the citation
9746  dialog and you can select the style of the reference (
9747 \begin_inset Quotes eld
9748 \end_inset
9749
9750 Knuth 1984
9751 \begin_inset Quotes erd
9752 \end_inset
9753
9754
9755 \begin_inset Quotes eld
9756 \end_inset
9757
9758 Knuth (1984)
9759 \begin_inset Quotes erd
9760 \end_inset
9761
9762
9763 \begin_inset Quotes eld
9764 \end_inset
9765
9766 Knuth, 1984
9767 \begin_inset Quotes erd
9768 \end_inset
9769
9770
9771 \begin_inset Quotes eld
9772 \end_inset
9773
9774 1984
9775 \begin_inset Quotes erd
9776 \end_inset
9777
9778  etc.).
9779  Note that either package needs specifically designed style files.
9780  They all ship their own, but there are lots of additional style files,
9781  and there is even an interactive style file builder
9782 \begin_inset Foot
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 See 
9787 \begin_inset Flex URL
9788 status open
9789
9790 \begin_layout Plain Layout
9791
9792 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
9793 \end_layout
9794
9795 \end_inset
9796
9797
9798 \end_layout
9799
9800 \end_inset
9801
9802  for 
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 natbib
9808 \end_layout
9809
9810 \end_inset
9811
9812 .
9813 \end_layout
9814
9815 \begin_layout Subsection
9816 Subdivided Bibliographies
9817 \end_layout
9818
9819 \begin_layout Standard
9820 Sometimes you might need to divide your bibliography into several sections.
9821  If you are for instance a historian, the possibility to separate sources
9822  and scientific works is most likely a 
9823 \begin_inset Quotes eld
9824 \end_inset
9825
9826 must have
9827 \begin_inset Quotes erd
9828 \end_inset
9829
9830 .
9831  Unfortunately, Bib\SpecialChar TeX
9832  itself does not allow you to do this.
9833  But with the help of some \SpecialChar LaTeX
9834  packages, Bib\SpecialChar TeX
9835  can be extended to fit your needs.
9836 \end_layout
9837
9838 \begin_layout Standard
9839 \SpecialChar LyX
9840  provides native support for one of these packages, 
9841 \family typewriter
9842 bibtopic
9843 \family default
9844 .
9845 \begin_inset Foot
9846 status collapsed
9847
9848 \begin_layout Plain Layout
9849 Available from 
9850 \begin_inset Flex URL
9851 status open
9852
9853 \begin_layout Plain Layout
9854
9855 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
9856 \end_layout
9857
9858 \end_inset
9859
9860
9861 \end_layout
9862
9863 \end_inset
9864
9865  The advantage of this package (compared to other packages such as 
9866 \family typewriter
9867 multibib
9868 \family default
9869 ) is that you don't need to define new citation commands.
9870  Instead, you need to prepare different bibliographic databases which include
9871  the entries for the different sections of the bibliography.
9872  For example: If you want to divide your bibliography into the sections
9873  
9874 \begin_inset Quotes eld
9875 \end_inset
9876
9877 Sources
9878 \begin_inset Quotes erd
9879 \end_inset
9880
9881  and 
9882 \begin_inset Quotes eld
9883 \end_inset
9884
9885 Scientific works
9886 \begin_inset Quotes erd
9887 \end_inset
9888
9889 , you first need to create two bibliographic databases, e.
9890 \begin_inset space \thinspace{}
9891 \end_inset
9892
9893 g.
9894 \begin_inset space \space{}
9895 \end_inset
9896
9897
9898 \begin_inset Flex Code
9899 status collapsed
9900
9901 \begin_layout Plain Layout
9902 sources.bib
9903 \end_layout
9904
9905 \end_inset
9906
9907  and 
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 scientific.bib
9913 \end_layout
9914
9915 \end_inset
9916
9917 .
9918  
9919 \end_layout
9920
9921 \begin_layout Standard
9922 Go to 
9923 \begin_inset Flex Noun
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 Document\SpecialChar menuseparator
9928 Settings
9929 \end_layout
9930
9931 \end_inset
9932
9933  and check under 
9934 \begin_inset Flex Noun
9935 status collapsed
9936
9937 \begin_layout Plain Layout
9938 Bibliography
9939 \end_layout
9940
9941 \end_inset
9942
9943  the option 
9944 \begin_inset Flex Noun
9945 status collapsed
9946
9947 \begin_layout Plain Layout
9948 Subdivided bibliography
9949 \end_layout
9950
9951 \end_inset
9952
9953 .
9954  Now you can insert multiple Bib\SpecialChar TeX
9955  bibliographies, one for each section of
9956  your bibliography.
9957  Returning to our example: Insert the Bib\SpecialChar TeX
9958  bibliography 
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963 sources.bib
9964 \end_layout
9965
9966 \end_inset
9967
9968  and a second one for the database 
9969 \begin_inset Flex Code
9970 status collapsed
9971
9972 \begin_layout Plain Layout
9973 scientific.bib
9974 \end_layout
9975
9976 \end_inset
9977
9978 .
9979  You are free to use the same or different styles for each section.
9980  Additionally, you can choose if the bibliography section should contain
9981  
9982 \begin_inset Quotes eld
9983 \end_inset
9984
9985 all cited references
9986 \begin_inset Quotes erd
9987 \end_inset
9988
9989  of the specified database(s) (which is the default), 
9990 \begin_inset Quotes eld
9991 \end_inset
9992
9993 all uncited references
9994 \begin_inset Quotes erd
9995 \end_inset
9996
9997  or even 
9998 \begin_inset Quotes eld
9999 \end_inset
10000
10001 all references
10002 \begin_inset Quotes erd
10003 \end_inset
10004
10005 .
10006  This might be useful if you would like to separate your bibliography into
10007  three sections: 
10008 \begin_inset Quotes eld
10009 \end_inset
10010
10011 Cited sources
10012 \begin_inset Quotes erd
10013 \end_inset
10014
10015
10016 \begin_inset Quotes eld
10017 \end_inset
10018
10019 Uncited sources
10020 \begin_inset Quotes erd
10021 \end_inset
10022
10023 , and 
10024 \begin_inset Quotes eld
10025 \end_inset
10026
10027 Scientific works
10028 \begin_inset Quotes erd
10029 \end_inset
10030
10031 .
10032  The titles for the sections can be added as ordinary sections or subsections.
10033  Since 
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 bibtopic
10039 \end_layout
10040
10041 \end_inset
10042
10043  removes the bibliography title, you have to manually re-add that, too (as
10044  a chapter* or section*, for instance).
10045 \end_layout
10046
10047 \begin_layout Standard
10048 With 
10049 \family sans
10050 Biblatex
10051 \family default
10052 , the procedure is a bit different.
10053  Since 
10054 \family typewriter
10055 bibtopic
10056 \family default
10057  does not work with 
10058 \family sans
10059 Biblatex
10060 \family default
10061 , the aforementioned 
10062 \begin_inset Flex Noun
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 Subdivided bibliography
10067 \end_layout
10068
10069 \end_inset
10070
10071  option is disabled if you use 
10072 \family sans
10073 Biblatex
10074 \family default
10075 .
10076  However, 
10077 \family sans
10078 Biblatex
10079 \family default
10080  provides its own means to generate subdivided bibliographies.
10081  You can either add keywords to bibliography entries via the 
10082 \begin_inset Flex Code
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086 keywords
10087 \end_layout
10088
10089 \end_inset
10090
10091  entry option and then filter bibliography sections by keyword (by adding
10092  
10093 \begin_inset Flex Code
10094 status collapsed
10095
10096 \begin_layout Plain Layout
10097 keyword=mykeyword
10098 \end_layout
10099
10100 \end_inset
10101
10102  to the 
10103 \begin_inset Flex Noun
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 Options
10108 \end_layout
10109
10110 \end_inset
10111
10112  field of the dialog that opens if you left-click on the 
10113 \begin_inset Flex Noun
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 Biblatex Generated Bibliography
10118 \end_layout
10119
10120 \end_inset
10121
10122  button), or you can filter by entry types (such as 
10123 \emph on
10124 book
10125 \emph default
10126  or 
10127 \emph on
10128 article
10129 \emph default
10130 ) by entering e.
10131 \begin_inset space \thinspace{}
10132 \end_inset
10133
10134 g.
10135  
10136 \begin_inset Flex Code
10137 status collapsed
10138
10139 \begin_layout Plain Layout
10140 type=book
10141 \end_layout
10142
10143 \end_inset
10144
10145  or 
10146 \begin_inset Flex Code
10147 status collapsed
10148
10149 \begin_layout Plain Layout
10150 nottype=collection
10151 \end_layout
10152
10153 \end_inset
10154
10155  to the mentioned 
10156 \begin_inset Flex Noun
10157 status collapsed
10158
10159 \begin_layout Plain Layout
10160 Options
10161 \end_layout
10162
10163 \end_inset
10164
10165  field, or you can create so-called 
10166 \begin_inset Quotes eld
10167 \end_inset
10168
10169 Bibliography Categories
10170 \begin_inset Quotes erd
10171 \end_inset
10172
10173  to which you can assign individual entries.
10174  Please refer to the Biblatex manual, section 
10175 \emph on
10176 Subdivided Bibliographies
10177 \emph default
10178 , for details.
10179 \end_layout
10180
10181 \begin_layout Subsection
10182 Multiple Bibliographies
10183 \begin_inset CommandInset label
10184 LatexCommand label
10185 name "subsec:Multiple-Bibliographies"
10186
10187 \end_inset
10188
10189
10190 \end_layout
10191
10192 \begin_layout Standard
10193 Multiple bibliographies, e.
10194 \begin_inset space \thinspace{}
10195 \end_inset
10196
10197 g.
10198 \begin_inset space \space{}
10199 \end_inset
10200
10201 a bibliography for each part, chapter, section, subsection or child (sub-documen
10202 t) of the document, are also supported by \SpecialChar LyX
10203 .
10204  In order to enable it, go to 
10205 \begin_inset Flex Noun
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209 Document\SpecialChar menuseparator
10210 Settings\SpecialChar menuseparator
10211 Bibliography
10212 \end_layout
10213
10214 \end_inset
10215
10216  and select the relevant unit (e.
10217 \begin_inset space \thinspace{}
10218 \end_inset
10219
10220 g., 
10221 \begin_inset Quotes eld
10222 \end_inset
10223
10224 per section
10225 \begin_inset Quotes erd
10226 \end_inset
10227
10228 ) in the 
10229 \begin_inset Flex Noun
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 Multiple Bibliographies
10234 \end_layout
10235
10236 \end_inset
10237
10238  combo box.
10239  Then add a Bib(la)\SpecialChar TeX
10240  bibliography to each unit (e.
10241 \begin_inset space \thinspace{}
10242 \end_inset
10243
10244 g., section) of your document.
10245  In the output, a separate bibliography, containing only the references
10246  done in the current unit is generated.
10247 \end_layout
10248
10249 \begin_layout Standard
10250 If you use Bib\SpecialChar TeX
10251 , either the 
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 chapterbib
10257 \end_layout
10258
10259 \end_inset
10260
10261  or the 
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 bibtopic
10267 \end_layout
10268
10269 \end_inset
10270
10271  package is used to create multiple bibliographies.
10272  The former package is used if you select 
10273 \begin_inset Quotes eld
10274 \end_inset
10275
10276 per child document
10277 \begin_inset Quotes erd
10278 \end_inset
10279
10280  and do 
10281 \emph on
10282 not
10283 \emph default
10284  check 
10285 \begin_inset Flex Noun
10286 status collapsed
10287
10288 \begin_layout Plain Layout
10289 Sectioned Bibliography
10290 \end_layout
10291
10292 \end_inset
10293
10294 .
10295  In all other cases, 
10296 \begin_inset Flex Code
10297 status collapsed
10298
10299 \begin_layout Plain Layout
10300 bibtopic
10301 \end_layout
10302
10303 \end_inset
10304
10305  is used.
10306 \begin_inset Foot
10307 status collapsed
10308
10309 \begin_layout Plain Layout
10310 An alternative approach, if you are willing to use some 
10311 \begin_inset Flex Noun
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315 \SpecialChar TeX
10316  Code
10317 \end_layout
10318
10319 \end_inset
10320
10321  (see section
10322 \begin_inset space ~
10323 \end_inset
10324
10325
10326 \begin_inset CommandInset ref
10327 LatexCommand ref
10328 reference "sec:Inserting-TeX-Code"
10329
10330 \end_inset
10331
10332 ), is to use the 
10333 \begin_inset Flex Code
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337 bibunits
10338 \end_layout
10339
10340 \end_inset
10341
10342  package.
10343 \end_layout
10344
10345 \end_inset
10346
10347  If 
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 bibtopic
10353 \end_layout
10354
10355 \end_inset
10356
10357  is used, \SpecialChar LyX
10358  encloses the specified units in 
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 bibtopic
10364 \end_layout
10365
10366 \end_inset
10367
10368 's 
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373
10374 \backslash
10375 begin{btUnit}
10376 \end_layout
10377
10378 \end_inset
10379
10380  and 
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385
10386 \backslash
10387 end{btUnit}
10388 \end_layout
10389
10390 \end_inset
10391
10392  in order to create the units.
10393  Note that this approach has some limitations.
10394  First, every citation reference has to be inside some 
10395 \begin_inset Flex Code
10396 status collapsed
10397
10398 \begin_layout Plain Layout
10399 btUnit
10400 \end_layout
10401
10402 \end_inset
10403
10404 .
10405  So citations outside a defined unit (e.
10406 \begin_inset space \thinspace{}
10407 \end_inset
10408
10409 g., before the first section if you use 
10410 \begin_inset Quotes eld
10411 \end_inset
10412
10413 by section
10414 \begin_inset Quotes erd
10415 \end_inset
10416
10417 ) will appear as 
10418 \begin_inset Quotes eld
10419 \end_inset
10420
10421 ???
10422 \begin_inset Quotes erd
10423 \end_inset
10424
10425 .
10426  You can also create your own units by entering 
10427 \begin_inset Flex Code
10428 status collapsed
10429
10430 \begin_layout Plain Layout
10431
10432 \backslash
10433 begin{btUnit}
10434 \end_layout
10435
10436 \end_inset
10437
10438  and 
10439 \begin_inset Flex Code
10440 status collapsed
10441
10442 \begin_layout Plain Layout
10443
10444 \backslash
10445 end{btUnit}
10446 \end_layout
10447
10448 \end_inset
10449
10450  as \SpecialChar TeX
10451  code (for instance to work around the mentioned limitation).
10452  Note, though, that 
10453 \begin_inset Flex Code
10454 status collapsed
10455
10456 \begin_layout Plain Layout
10457 btUnit
10458 \end_layout
10459
10460 \end_inset
10461
10462 s cannot be nested.
10463  A second limitation is that 
10464 \begin_inset Flex Code
10465 status collapsed
10466
10467 \begin_layout Plain Layout
10468 bibtopic
10469 \end_layout
10470
10471 \end_inset
10472
10473  always processes all references of a bibliography database, even if they
10474  are not cited.
10475  This can result in odd labels (e.
10476 \begin_inset space \thinspace{}
10477 \end_inset
10478
10479 g.
10480  
10481 \begin_inset Quotes eld
10482 \end_inset
10483
10484 Miller 2014b
10485 \begin_inset Quotes erd
10486 \end_inset
10487
10488  if two works of this author from 2014 are in the database, even if only
10489  one is cited).
10490 \end_layout
10491
10492 \begin_layout Standard
10493 If you use 
10494 \family sans
10495 Biblatex
10496 \family default
10497 , the 
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 refsection
10503 \end_layout
10504
10505 \end_inset
10506
10507  option is used instead.
10508  If you need specific units, you can start them with the \SpecialChar TeX
10509  code 
10510 \begin_inset Flex Code
10511 status collapsed
10512
10513 \begin_layout Plain Layout
10514
10515 \backslash
10516 newrefsection
10517 \end_layout
10518
10519 \end_inset
10520
10521  or 
10522 \begin_inset Flex Code
10523 status collapsed
10524
10525 \begin_layout Plain Layout
10526
10527 \backslash
10528 newrefsegment
10529 \end_layout
10530
10531 \end_inset
10532
10533 , respectively.
10534  If you also want to control the end of the unit, use the environment 
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539
10540 \backslash
10541 begin{refsection}
10542 \end_layout
10543
10544 \end_inset
10545
10546  \SpecialChar ldots
10547  
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552
10553 \backslash
10554 end{refsection}
10555 \end_layout
10556
10557 \end_inset
10558
10559  instead.
10560  Note, though, that 
10561 \begin_inset Flex Code
10562 status collapsed
10563
10564 \begin_layout Plain Layout
10565 refsection
10566 \end_layout
10567
10568 \end_inset
10569
10570 s cannot be nested.
10571  In addition to the individual bibliography of the current unit, 
10572 \family sans
10573 Biblatex
10574 \family default
10575  also provides an easy way to output all bibliographies, subsequently, at
10576  one place (e.
10577 \begin_inset space \thinspace{}
10578 \end_inset
10579
10580 g., at the end of the document).
10581  Select 
10582 \begin_inset Quotes eld
10583 \end_inset
10584
10585 all reference units
10586 \begin_inset Quotes erd
10587 \end_inset
10588
10589  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
10590  this.
10591  Please refer to the 
10592 \family sans
10593 Biblatex
10594 \family default
10595  manual for more information on this topic.
10596 \end_layout
10597
10598 \begin_layout Section
10599 Multipart Documents
10600 \end_layout
10601
10602 \begin_layout Subsection
10603 General Operation
10604 \end_layout
10605
10606 \begin_layout Standard
10607 When you are working on a large file with many sections, it is often convenient
10608  to break up the document into several files, or perhaps you have something
10609  where a table may change from time to time, but the preceding text does
10610  not.
10611  In these cases, you should seriously consider using multipart documents.
10612  For example, scientific papers often have five major sections: the introduction
10613 , observations, results, discussion, and conclusion.
10614  Each of these could be its own separate \SpecialChar LyX
10615  file, with one 
10616 \begin_inset Quotes eld
10617 \end_inset
10618
10619 master
10620 \begin_inset Quotes erd
10621 \end_inset
10622
10623  file which contains the title, authors, abstract, references, etc., plus
10624  the five included files.
10625  It is important to note that each of these files is a full \SpecialChar LyX
10626  file which
10627  can be formatted and printed on its own, as well as included in a master
10628  file.
10629  Each of these files must have the same document class, however—don't attempt
10630  to mix book classes with article classes.
10631  You may also include \SpecialChar LaTeX
10632  files; however, these files must not have their own
10633  preamble (i.
10634 \begin_inset space \thinspace{}
10635 \end_inset
10636
10637 e.
10638 \begin_inset space \space{}
10639 \end_inset
10640
10641 everything up to and including the 
10642 \begin_inset Flex Code
10643 status collapsed
10644
10645 \begin_layout Plain Layout
10646
10647 \backslash
10648 begin{document}
10649 \end_layout
10650
10651 \end_inset
10652
10653  line as well as the 
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658
10659 \backslash
10660 end{document}
10661 \end_layout
10662
10663 \end_inset
10664
10665  line must be deleted) or else errors will be generated when you try to
10666  make a DVI file.
10667 \end_layout
10668
10669 \begin_layout Standard
10670 \SpecialChar LyX
10671  allows you to include files quite easily with 
10672 \begin_inset Flex Noun
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 Insert\SpecialChar menuseparator
10677 Child
10678 \begin_inset space ~
10679 \end_inset
10680
10681 Document
10682 \end_layout
10683
10684 \end_inset
10685
10686 .
10687  When you click on this selection a small box is inserted into the file
10688  at the current cursor location.
10689  Clicking on the box raises a dialog which allows you to select the file
10690  to be included, and the method of its inclusion.
10691  
10692 \end_layout
10693
10694 \begin_layout Standard
10695 The file selection box should by now be obvious.
10696  The three inclusion methods are 
10697 \begin_inset Quotes eld
10698 \end_inset
10699
10700 include
10701 \begin_inset Quotes erd
10702 \end_inset
10703
10704
10705 \begin_inset Quotes eld
10706 \end_inset
10707
10708 input
10709 \begin_inset Quotes erd
10710 \end_inset
10711
10712 , and 
10713 \begin_inset Quotes eld
10714 \end_inset
10715
10716 verbatim
10717 \begin_inset Quotes erd
10718 \end_inset
10719
10720 .
10721  The methods 
10722 \begin_inset Quotes eld
10723 \end_inset
10724
10725 include
10726 \begin_inset Quotes erd
10727 \end_inset
10728
10729  and 
10730 \begin_inset Quotes eld
10731 \end_inset
10732
10733 input
10734 \begin_inset Quotes erd
10735 \end_inset
10736
10737  are similar in many ways, but there are also some notable differences:
10738 \end_layout
10739
10740 \begin_layout Enumerate
10741 Files that are 
10742 \begin_inset Quotes eld
10743 \end_inset
10744
10745 included
10746 \begin_inset Quotes erd
10747 \end_inset
10748
10749  are typeset beginning on a new page, while files that are 
10750 \begin_inset Quotes eld
10751 \end_inset
10752
10753 inputted
10754 \begin_inset Quotes erd
10755 \end_inset
10756
10757  are typeset starting on the current page.
10758 \end_layout
10759
10760 \begin_layout Enumerate
10761 \begin_inset Quotes eld
10762 \end_inset
10763
10764 Included
10765 \begin_inset Quotes erd
10766 \end_inset
10767
10768  files cannot themselves 
10769 \begin_inset Quotes eld
10770 \end_inset
10771
10772 include
10773 \begin_inset Quotes erd
10774 \end_inset
10775
10776  further files (
10777 \begin_inset Quotes eld
10778 \end_inset
10779
10780 grandchilds
10781 \begin_inset Quotes erd
10782 \end_inset
10783
10784 ).
10785  With 
10786 \begin_inset Quotes eld
10787 \end_inset
10788
10789 input
10790 \begin_inset Quotes erd
10791 \end_inset
10792
10793 , on the other hand, infinite sub-inputting is possible.
10794 \end_layout
10795
10796 \begin_layout Enumerate
10797 \begin_inset Quotes eld
10798 \end_inset
10799
10800 Include
10801 \begin_inset Quotes erd
10802 \end_inset
10803
10804  allow for the output of only selected 
10805 \begin_inset Quotes eld
10806 \end_inset
10807
10808 included
10809 \begin_inset Quotes erd
10810 \end_inset
10811
10812  files, while maintaining the actual counters (pagination etc.) and references
10813  (please refer to the section 
10814 \emph on
10815 Child
10816 \begin_inset space ~
10817 \end_inset
10818
10819 Documents
10820 \emph default
10821  of the 
10822 \emph on
10823 Embedded
10824 \begin_inset space ~
10825 \end_inset
10826
10827 Objects
10828 \emph default
10829  manual for details).
10830 \end_layout
10831
10832 \begin_layout Standard
10833 Hence, 
10834 \begin_inset Quotes eld
10835 \end_inset
10836
10837 include
10838 \begin_inset Quotes erd
10839 \end_inset
10840
10841  is the preferred method for chapters that are outsourced to child documents,
10842  while 
10843 \begin_inset Quotes eld
10844 \end_inset
10845
10846 input
10847 \begin_inset Quotes erd
10848 \end_inset
10849
10850  is more suitable for arbitrary file inheritance.
10851 \end_layout
10852
10853 \begin_layout Standard
10854
10855 \begin_inset Quotes eld
10856 \end_inset
10857
10858 verbatim
10859 \begin_inset Quotes erd
10860 \end_inset
10861
10862  included file allows you to include a file typeset exactly as it appears
10863  in the file, i.
10864 \begin_inset space \thinspace{}
10865 \end_inset
10866
10867 e.
10868 \begin_inset space \space{}
10869 \end_inset
10870
10871 in 
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 verbatim
10877 \end_layout
10878
10879 \end_inset
10880
10881  mode, with the characters set in a fixed-width typewriter font.
10882  Normally, spaces in this file are invisible, though two consecutive spaces
10883  are conserved, unlike \SpecialChar LyX
10884 's normal treatment of spaces.
10885  However, setting the 
10886 \begin_inset Flex Noun
10887 status collapsed
10888
10889 \begin_layout Plain Layout
10890 Mark
10891 \begin_inset space ~
10892 \end_inset
10893
10894 spaces
10895 \begin_inset space ~
10896 \end_inset
10897
10898 in
10899 \begin_inset space ~
10900 \end_inset
10901
10902 output
10903 \end_layout
10904
10905 \end_inset
10906
10907  checkbox typesets a mark to unambiguously define the presence of a space.
10908  
10909 \end_layout
10910
10911 \begin_layout Standard
10912 Generally, the master file is converted into a full \SpecialChar LaTeX
10913  file before typesetting,
10914  while the included files are converted to \SpecialChar LaTeX
10915  files that do not have all the
10916  preamble information.
10917 \end_layout
10918
10919 \begin_layout Subsection
10920 Cross-References Between Files
10921 \end_layout
10922
10923 \begin_layout Standard
10924 \begin_inset Box Shadowbox
10925 position "t"
10926 hor_pos "c"
10927 has_inner_box 1
10928 inner_pos "t"
10929 use_parbox 0
10930 use_makebox 0
10931 width "100col%"
10932 special "none"
10933 height "1in"
10934 height_special "totalheight"
10935 thickness "0.4pt"
10936 separation "3pt"
10937 shadowsize "4pt"
10938 framecolor "black"
10939 backgroundcolor "none"
10940 status open
10941
10942 \begin_layout Plain Layout
10943 This section is somewhat out of date.
10944  Need to describe default master documents and how children are opened when
10945  the master is.
10946  [[FIXME]]
10947 \end_layout
10948
10949 \end_inset
10950
10951
10952 \end_layout
10953
10954 \begin_layout Standard
10955 It is possible to set up cross-references between the different files.
10956  First, open all the files in question: let's call them A and B in a two
10957  file example, where B is included in A.
10958  Let's say you insert a label in A, then want to reference it in B.
10959  Open the cross-reference dialog whilst in document B, and you can select
10960  the 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964 buffer
10965 \begin_inset Quotes erd
10966 \end_inset
10967
10968  to use.
10969 \end_layout
10970
10971 \begin_layout Subsection
10972 Bibliography Lists in all Subdocuments
10973 \end_layout
10974
10975 \begin_layout Standard
10976 If you work with child documents, you might want to have only one main bibliogra
10977 phy at the end, but still be able to have a selected bibliography for the
10978  child if you output it on its own.
10979  Here is how to achieve this.
10980 \end_layout
10981
10982 \begin_layout Standard
10983 For the main document, you just insert a bibliography inset at the place
10984  where the main bibliography has to appear (within the master file or within
10985  a child).
10986  If the bibliography inset is in the master file, the references will be
10987  inherited by all children, so they are available in the citation dialog
10988  within each child.
10989 \end_layout
10990
10991 \begin_layout Standard
10992 For child-specific bibliographies, insert bibliography insets within the
10993  child documents, at the place where the bibliography should appear when
10994  the child is compiled separately.
10995  However, the trick is to insert them into a branch (
10996 \family sans
10997 Insert\SpecialChar menuseparator
10998 Branch\SpecialChar menuseparator
10999 Insert New Branch...
11000 \family default
11001 ), e.
11002 \begin_inset space \thinspace{}
11003 \end_inset
11004
11005 g.
11006  called 
11007 \begin_inset Quotes eld
11008 \end_inset
11009
11010 Childonly
11011 \begin_inset Quotes erd
11012 \end_inset
11013
11014 .
11015  Within the children, activate the branch (
11016 \family sans
11017 Document\SpecialChar menuseparator
11018 Settings...\SpecialChar menuseparator
11019 Branches
11020 \family default
11021 ).
11022  Within the master, deactivate the branch (
11023 \family sans
11024 Document\SpecialChar menuseparator
11025 Settings...\SpecialChar menuseparator
11026 Branches
11027 \family default
11028 ).
11029  Now the child's bibliography will be ignored by the master, but considered
11030  by the child.
11031 \end_layout
11032
11033 \begin_layout Standard
11034 If you need multiple bibliographies (e.
11035 \begin_inset space \thinspace{}
11036 \end_inset
11037
11038 g., one per child in the 
11039 \emph on
11040 main document
11041 \emph default
11042 ), please refer to sec.
11043 \begin_inset space ~
11044 \end_inset
11045
11046
11047 \begin_inset CommandInset ref
11048 LatexCommand ref
11049 reference "subsec:Multiple-Bibliographies"
11050
11051 \end_inset
11052
11053 .
11054 \end_layout
11055
11056 \begin_layout Section
11057 \SpecialChar LyX
11058  Archives
11059 \end_layout
11060
11061 \begin_layout Standard
11062 Users sometimes need to be able to 
11063 \begin_inset Quotes eld
11064 \end_inset
11065
11066 bundle
11067 \begin_inset Quotes erd
11068 \end_inset
11069
11070  a \SpecialChar LyX
11071  file together with all the images (and other files) on which it depends,
11072  either for sending to a publisher or for sharing with a co-author.
11073  \SpecialChar LyX
11074  includes a Python script (
11075 \begin_inset Flex Code
11076 status collapsed
11077
11078 \begin_layout Plain Layout
11079 lyxpak.py
11080 \end_layout
11081
11082 \end_inset
11083
11084 ) that automates this process.
11085  To use it, you must have either the 
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 zipfile
11091 \end_layout
11092
11093 \end_inset
11094
11095  or 
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 tarfile
11101 \end_layout
11102
11103 \end_inset
11104
11105  python modules installed on your system.
11106  By default, the script prefers the 
11107 \begin_inset Flex Code
11108 status collapsed
11109
11110 \begin_layout Plain Layout
11111 gzip
11112 \end_layout
11113
11114 \end_inset
11115
11116 -compressed 
11117 \begin_inset Flex Code
11118 status collapsed
11119
11120 \begin_layout Plain Layout
11121 tar
11122 \end_layout
11123
11124 \end_inset
11125
11126  format on Unix-like systems and the 
11127 \begin_inset Flex Code
11128 status collapsed
11129
11130 \begin_layout Plain Layout
11131 zip
11132 \end_layout
11133
11134 \end_inset
11135
11136  format on Windows.
11137 \end_layout
11138
11139 \begin_layout Standard
11140 \SpecialChar LyX
11141 's configuration process will set the script up to export a `\SpecialChar LyX
11142  Archive',
11143  and this format will then be available under 
11144 \begin_inset Flex Code
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148 File\SpecialChar menuseparator
11149 Export
11150 \end_layout
11151
11152 \end_inset
11153
11154 .
11155 \end_layout
11156
11157 \begin_layout Standard
11158 Independently of the platform, the generation of a particular archive format
11159  can be forced by adding either the 
11160 \begin_inset Flex Code
11161 status collapsed
11162
11163 \begin_layout Plain Layout
11164 -t
11165 \end_layout
11166
11167 \end_inset
11168
11169  (for the 
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 tar
11175 \end_layout
11176
11177 \end_inset
11178
11179  format) or 
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 -z
11185 \end_layout
11186
11187 \end_inset
11188
11189  (for the 
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194 zip
11195 \end_layout
11196
11197 \end_inset
11198
11199  format) switch to the 
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 \SpecialChar LyX
11205 \SpecialChar menuseparator
11206 \SpecialChar LyX
11207  Archive
11208 \end_layout
11209
11210 \end_inset
11211
11212  converter in 
11213 \begin_inset Flex Code
11214 status collapsed
11215
11216 \begin_layout Plain Layout
11217 Tools\SpecialChar menuseparator
11218 Preferences\SpecialChar menuseparator
11219 File Handling\SpecialChar menuseparator
11220 Converters
11221 \end_layout
11222
11223 \end_inset
11224
11225 .
11226  (Make sure you add the switch after the script name, not before it.)
11227 \end_layout
11228
11229 \begin_layout Section
11230 Fancy Headers and Footers
11231 \end_layout
11232
11233 \begin_layout Standard
11234 The default page layout is rather plain; for an 
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 article
11240 \end_layout
11241
11242 \end_inset
11243
11244  document class, all you get is a centered page number at the bottom of
11245  the page.
11246  This document uses KOMA-script's book class, so it appears to be a bit
11247  fancier.
11248  But to really put on a show, you need to set the document page style to
11249  
11250 \begin_inset Quotes eld
11251 \end_inset
11252
11253 fancy
11254 \begin_inset Quotes erd
11255 \end_inset
11256
11257 , as mentioned in the 
11258 \emph on
11259 User Guide
11260 \emph default
11261 .
11262  This section describes the \SpecialChar LaTeX
11263  code you need to insert in your \SpecialChar LaTeX
11264  preamble in
11265  order to get the desired effects.
11266 \end_layout
11267
11268 \begin_layout Standard
11269 For more information on fancy headers, see the 
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274 fancyhdr
11275 \end_layout
11276
11277 \end_inset
11278
11279  package documentation.
11280  (
11281 \begin_inset Flex URL
11282 status collapsed
11283
11284 \begin_layout Plain Layout
11285
11286 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
11287 \end_layout
11288
11289 \end_inset
11290
11291 )
11292 \end_layout
11293
11294 \begin_layout Standard
11295 The page header is divided into three fields, not surprisingly labeled 
11296 \begin_inset Quotes eld
11297 \end_inset
11298
11299 left
11300 \begin_inset Quotes erd
11301 \end_inset
11302
11303
11304 \begin_inset Quotes eld
11305 \end_inset
11306
11307 center
11308 \begin_inset Quotes erd
11309 \end_inset
11310
11311 , and 
11312 \begin_inset Quotes eld
11313 \end_inset
11314
11315 right
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319 .
11320  The footer is also divided into these three fields.
11321  The \SpecialChar LaTeX
11322  commands to set these fields in the simplest manner are 
11323 \begin_inset Flex Code
11324 status collapsed
11325
11326 \begin_layout Plain Layout
11327
11328 \backslash
11329 lhead
11330 \end_layout
11331
11332 \end_inset
11333
11334
11335 \begin_inset Flex Code
11336 status collapsed
11337
11338 \begin_layout Plain Layout
11339
11340 \backslash
11341 chead
11342 \end_layout
11343
11344 \end_inset
11345
11346
11347 \begin_inset Flex Code
11348 status collapsed
11349
11350 \begin_layout Plain Layout
11351
11352 \backslash
11353 rhead
11354 \end_layout
11355
11356 \end_inset
11357
11358
11359 \begin_inset Flex Code
11360 status collapsed
11361
11362 \begin_layout Plain Layout
11363
11364 \backslash
11365 lfoot
11366 \end_layout
11367
11368 \end_inset
11369
11370 , etc.
11371  Suppose you wish to put your name in the upper left hand corner of each
11372  page.
11373  Simply insert the following command in the preamble: 
11374 \end_layout
11375
11376 \begin_layout Standard
11377
11378 \family typewriter
11379
11380 \backslash
11381 lhead{John Q.
11382  DocWriter}
11383 \end_layout
11384
11385 \begin_layout Standard
11386 You will now see your name in the upper left.
11387  If a field has a default entry that you would like to get rid of (often
11388  the page number appears in the central footer) simply include a command
11389  with a blank argument, e.
11390 \begin_inset space \thinspace{}
11391 \end_inset
11392
11393 g.:
11394 \end_layout
11395
11396 \begin_layout Standard
11397
11398 \family typewriter
11399
11400 \backslash
11401 cfoot{}
11402 \end_layout
11403
11404 \begin_layout Standard
11405 Let's get really fancy: lets put the section number with the word 
11406 \begin_inset Quotes eld
11407 \end_inset
11408
11409 Section
11410 \begin_inset Quotes erd
11411 \end_inset
11412
11413  (e.
11414 \begin_inset space \thinspace{}
11415 \end_inset
11416
11417 g.
11418 \begin_inset space \space{}
11419 \end_inset
11420
11421 Section 3) in the upper left, the page number (e.
11422 \begin_inset space \thinspace{}
11423 \end_inset
11424
11425 g.
11426 \begin_inset space \space{}
11427 \end_inset
11428
11429 Page 4) in the upper right, your name in the lower left, and the date in
11430  the lower right.
11431  The following commands should now appear in the preamble:
11432 \end_layout
11433
11434 \begin_layout Standard
11435
11436 \family typewriter
11437
11438 \backslash
11439 lhead{Section 
11440 \backslash
11441 thesection}
11442 \end_layout
11443
11444 \begin_layout Standard
11445
11446 \family typewriter
11447
11448 \backslash
11449 chead{}
11450 \end_layout
11451
11452 \begin_layout Standard
11453
11454 \family typewriter
11455
11456 \backslash
11457 rhead{Page 
11458 \backslash
11459 thepage}
11460 \end_layout
11461
11462 \begin_layout Standard
11463
11464 \family typewriter
11465
11466 \backslash
11467 lfoot{John Q.
11468  DocWriter}
11469 \end_layout
11470
11471 \begin_layout Standard
11472
11473 \family typewriter
11474
11475 \backslash
11476 cfoot{}
11477 \end_layout
11478
11479 \begin_layout Standard
11480
11481 \family typewriter
11482
11483 \backslash
11484 rfoot{
11485 \backslash
11486 today}
11487 \end_layout
11488
11489 \begin_layout Standard
11490 The commands 
11491 \begin_inset Flex Code
11492 status collapsed
11493
11494 \begin_layout Plain Layout
11495
11496 \backslash
11497 thesection
11498 \end_layout
11499
11500 \end_inset
11501
11502  and 
11503 \begin_inset Flex Code
11504 status collapsed
11505
11506 \begin_layout Plain Layout
11507
11508 \backslash
11509 thepage
11510 \end_layout
11511
11512 \end_inset
11513
11514  access \SpecialChar LaTeX
11515 's section and page counters, and so print out the current section
11516  and page number.
11517  
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522
11523 \backslash
11524 today
11525 \end_layout
11526
11527 \end_inset
11528
11529  simply prints out today's date.
11530 \end_layout
11531
11532 \begin_layout Standard
11533 The thicknesses of the horizontal rules drawn beneath the header and above
11534  the footer can also be modified.
11535  If you don't want one of the rules, set its thickness to 0.
11536  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
11537  Use commands
11538 \family typewriter
11539  
11540 \family default
11541 like 
11542 \begin_inset Flex Code
11543 status collapsed
11544
11545 \begin_layout Plain Layout
11546
11547 \backslash
11548 renewcommand{
11549 \backslash
11550 headrulewidth}{0.4pt}
11551 \end_layout
11552
11553 \end_inset
11554
11555  and 
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560
11561 \backslash
11562 renewcommand{
11563 \backslash
11564 footrulewidth}{0.4pt}
11565 \end_layout
11566
11567 \end_inset
11568
11569  to set the thicknesses.
11570 \end_layout
11571
11572 \begin_layout Standard
11573 You can switch the header/footer settings on and off for individual pages
11574  using commands like 
11575 \begin_inset Flex Code
11576 status collapsed
11577
11578 \begin_layout Plain Layout
11579
11580 \backslash
11581 thispagestyle{empty}
11582 \end_layout
11583
11584 \end_inset
11585
11586
11587 \begin_inset Flex Code
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591
11592 \backslash
11593 thispagestyle{plain}
11594 \end_layout
11595
11596 \end_inset
11597
11598 , and 
11599 \begin_inset Flex Code
11600 status collapsed
11601
11602 \begin_layout Plain Layout
11603
11604 \backslash
11605 thispagestyle{fancy}
11606 \end_layout
11607
11608 \end_inset
11609
11610 .
11611  Simply insert them in the text on the page you want changed and mark them
11612  as \SpecialChar TeX
11613  code.
11614  In fact, title pages are marked as plain by default, while following pages
11615  are marked fancy when using the global fancy setting.
11616 \end_layout
11617
11618 \begin_layout Standard
11619 As a final example, it is possible to include an image in the header or
11620  footer.
11621  Suppose you want to put a company logo in the upper lefthand corner.
11622  You might try something like
11623 \end_layout
11624
11625 \begin_layout Standard
11626
11627 \family typewriter
11628
11629 \backslash
11630 lhead{
11631 \backslash
11632 resizebox{1in}{!}{
11633 \backslash
11634 includegraphics{logo.eps}}}
11635 \end_layout
11636
11637 \begin_layout Standard
11638 \noindent
11639 (you may need to preface this with 
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644
11645 \backslash
11646 usepackage{graphics}
11647 \end_layout
11648
11649 \end_inset
11650
11651  if you don't include graphics elsewhere in your document).
11652 \end_layout
11653
11654 \begin_layout Section
11655 Itemize Bullet Selection
11656 \begin_inset CommandInset label
11657 LatexCommand label
11658 name "sec:bullet"
11659
11660 \end_inset
11661
11662
11663 \end_layout
11664
11665 \begin_layout Standard
11666 by
11667 \noun on
11668  Allan Rae
11669 \end_layout
11670
11671 \begin_layout Subsection
11672 Introduction
11673 \end_layout
11674
11675 \begin_layout Standard
11676 \SpecialChar LyX
11677  provides 216 bullet shapes that can be accessed from a simple dialog.
11678  Using this dialog you can easily specify what bullet shape to use at each
11679  level of an itemized list.
11680  These settings are document-wide so you won't be able to specify different
11681  sets of bullets for different paragraphs.
11682 \begin_inset Foot
11683 status collapsed
11684
11685 \begin_layout Plain Layout
11686 Well, actually you can but you'll have to do it by hand.
11687 \end_layout
11688
11689 \end_inset
11690
11691
11692 \end_layout
11693
11694 \begin_layout Subsection
11695 How it looks
11696 \end_layout
11697
11698 \begin_layout Standard
11699 Open the dialog by selecting the 
11700 \begin_inset Flex Noun
11701 status collapsed
11702
11703 \begin_layout Plain Layout
11704 Document\SpecialChar menuseparator
11705 Settings
11706 \end_layout
11707
11708 \end_inset
11709
11710  menu item and then select the 
11711 \begin_inset Flex Noun
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 Bullets
11716 \end_layout
11717
11718 \end_inset
11719
11720  tab.
11721 \end_layout
11722
11723 \begin_layout Standard
11724 The dialog provides you with a table of bullet shapes.
11725  A column of buttons on the left of the table provides access to the six
11726  different panels of bullet shapes.
11727  The row of buttons across the top is used to select which bullet depth
11728  you are changing.
11729
11730 \change_deleted 244031559 1603875981
11731  A text entry under the table shows the currently selected bullet shape's
11732  \SpecialChar LaTeX
11733  equivalent and this can be edited if desired.
11734  If you do modify the text you will also need to specify any needed packages
11735  in the \SpecialChar LaTeX
11736  preamble.
11737 \change_unchanged
11738
11739 \end_layout
11740
11741 \begin_layout Standard
11742 The six panels are divided up by the packages they require.
11743  The following table shows the mappings from button name to \SpecialChar LaTeX
11744  package.
11745 \end_layout
11746
11747 \begin_layout Standard
11748 \align center
11749 \begin_inset Tabular
11750 <lyxtabular version="3" rows="7" columns="2">
11751 <features tabularvalignment="middle">
11752 <column alignment="center" valignment="top" width="0pt">
11753 <column alignment="center" valignment="top" width="0pt">
11754 <row>
11755 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11756 \begin_inset Text
11757
11758 \begin_layout Plain Layout
11759
11760 \family roman
11761 \series medium
11762 \shape up
11763 \size normal
11764 \emph off
11765 \bar no
11766 \noun off
11767 \color none
11768 Button
11769 \end_layout
11770
11771 \end_inset
11772 </cell>
11773 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11774 \begin_inset Text
11775
11776 \begin_layout Plain Layout
11777
11778 \family roman
11779 \series medium
11780 \shape up
11781 \size normal
11782 \emph off
11783 \bar no
11784 \noun off
11785 \color none
11786 Packages Required
11787 \end_layout
11788
11789 \end_inset
11790 </cell>
11791 </row>
11792 <row>
11793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11794 \begin_inset Text
11795
11796 \begin_layout Plain Layout
11797
11798 \family sans
11799 \series medium
11800 \shape up
11801 \size normal
11802 \emph off
11803 \bar no
11804 \noun off
11805 \color none
11806 Standard
11807 \end_layout
11808
11809 \end_inset
11810 </cell>
11811 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11812 \begin_inset Text
11813
11814 \begin_layout Plain Layout
11815
11816 \series medium
11817 \shape up
11818 \size normal
11819 \emph off
11820 \bar no
11821 \noun off
11822 \color none
11823 base \SpecialChar LaTeX
11824
11825 \end_layout
11826
11827 \end_inset
11828 </cell>
11829 </row>
11830 <row>
11831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11832 \begin_inset Text
11833
11834 \begin_layout Plain Layout
11835
11836 \family sans
11837 \series medium
11838 \shape up
11839 \size normal
11840 \emph off
11841 \bar no
11842 \noun off
11843 \color none
11844 Maths
11845 \end_layout
11846
11847 \end_inset
11848 </cell>
11849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11850 \begin_inset Text
11851
11852 \begin_layout Plain Layout
11853
11854 \family typewriter
11855 \series medium
11856 \shape up
11857 \size normal
11858 \emph off
11859 \bar no
11860 \noun off
11861 \color none
11862 amssymb.sty
11863 \end_layout
11864
11865 \end_inset
11866 </cell>
11867 </row>
11868 <row>
11869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11870 \begin_inset Text
11871
11872 \begin_layout Plain Layout
11873
11874 \family sans
11875 \series medium
11876 \shape up
11877 \size normal
11878 \emph off
11879 \bar no
11880 \noun off
11881 \color none
11882 Ding1
11883 \end_layout
11884
11885 \end_inset
11886 </cell>
11887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11888 \begin_inset Text
11889
11890 \begin_layout Plain Layout
11891
11892 \family typewriter
11893 \series medium
11894 \shape up
11895 \size normal
11896 \emph off
11897 \bar no
11898 \noun off
11899 \color none
11900 pifont.sty
11901 \end_layout
11902
11903 \end_inset
11904 </cell>
11905 </row>
11906 <row>
11907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11908 \begin_inset Text
11909
11910 \begin_layout Plain Layout
11911
11912 \family sans
11913 \series medium
11914 \shape up
11915 \size normal
11916 \emph off
11917 \bar no
11918 \noun off
11919 \color none
11920 Ding2
11921 \end_layout
11922
11923 \end_inset
11924 </cell>
11925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11926 \begin_inset Text
11927
11928 \begin_layout Plain Layout
11929
11930 \family typewriter
11931 \series medium
11932 \shape up
11933 \size normal
11934 \emph off
11935 \bar no
11936 \noun off
11937 \color none
11938 pifont.sty
11939 \end_layout
11940
11941 \end_inset
11942 </cell>
11943 </row>
11944 <row>
11945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11946 \begin_inset Text
11947
11948 \begin_layout Plain Layout
11949
11950 \family sans
11951 \series medium
11952 \shape up
11953 \size normal
11954 \emph off
11955 \bar no
11956 \noun off
11957 \color none
11958 Ding3
11959 \end_layout
11960
11961 \end_inset
11962 </cell>
11963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11964 \begin_inset Text
11965
11966 \begin_layout Plain Layout
11967
11968 \family typewriter
11969 \series medium
11970 \shape up
11971 \size normal
11972 \emph off
11973 \bar no
11974 \noun off
11975 \color none
11976 pifont.sty
11977 \end_layout
11978
11979 \end_inset
11980 </cell>
11981 </row>
11982 <row>
11983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11984 \begin_inset Text
11985
11986 \begin_layout Plain Layout
11987
11988 \family sans
11989 \series medium
11990 \shape up
11991 \size normal
11992 \emph off
11993 \bar no
11994 \noun off
11995 \color none
11996 Ding4
11997 \end_layout
11998
11999 \end_inset
12000 </cell>
12001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12002 \begin_inset Text
12003
12004 \begin_layout Plain Layout
12005
12006 \family typewriter
12007 \series medium
12008 \shape up
12009 \size normal
12010 \emph off
12011 \bar no
12012 \noun off
12013 \color none
12014 pifont.sty
12015 \end_layout
12016
12017 \end_inset
12018 </cell>
12019 </row>
12020 </lyxtabular>
12021
12022 \end_inset
12023
12024
12025 \end_layout
12026
12027 \begin_layout Standard
12028 \SpecialChar LyX
12029  doesn't stop you using bullets from packages you don't have.
12030  If you get errors from \SpecialChar LaTeX
12031  when you try to view or print the file, then it
12032  is likely you are missing a package.
12033 \begin_inset Foot
12034 status collapsed
12035
12036 \begin_layout Plain Layout
12037 \SpecialChar LyX
12038  doesn't restrict your use since you may be editing locally and exporting
12039  elsewhere.
12040 \end_layout
12041
12042 \end_inset
12043
12044
12045 \end_layout
12046
12047 \begin_layout Subsection
12048 How to use it
12049 \end_layout
12050
12051 \begin_layout Standard
12052 Select which bullet depth you want to change then select the bullet shape
12053  and size.
12054  Any changes will not be visible in \SpecialChar LyX
12055 , but are visible when viewing the document.
12056 \end_layout
12057
12058 \begin_layout Standard
12059 You can reset a bullet shape to the default simply by clicking your right
12060  mouse button on the appropriate bullet depth button.
12061 \begin_inset Foot
12062 status open
12063
12064 \begin_layout Plain Layout
12065 If you 
12066 \emph on
12067 really
12068 \emph default
12069  want to have multiple sets of paragraphs with different sets of bullets
12070  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
12071  code.
12072  The bullet selection dialog can help though because it provides you with
12073  the \SpecialChar LaTeX
12074  code for a wide range of bullet shapes.
12075  To make your own custom paragraphs you have the following options:
12076 \end_layout
12077
12078 \begin_layout Plain Layout
12079 \begin_inset ERT
12080 status open
12081
12082 \begin_layout Plain Layout
12083
12084
12085 \backslash
12086 let
12087 \backslash
12088 savelabelitemi=
12089 \backslash
12090 labelitemi
12091 \end_layout
12092
12093 \end_inset
12094
12095
12096 \end_layout
12097
12098 \begin_layout Plain Layout
12099 \begin_inset ERT
12100 status open
12101
12102 \begin_layout Plain Layout
12103
12104
12105 \backslash
12106 renewcommand
12107 \backslash
12108 labelitemi[0]{
12109 \backslash
12110 small
12111 \backslash
12112 (
12113 \backslash
12114 sharp
12115 \backslash
12116 )}
12117 \end_layout
12118
12119 \end_inset
12120
12121
12122 \end_layout
12123
12124 \begin_layout Itemize
12125 Use the \SpecialChar LaTeX
12126  command 
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131
12132 \backslash
12133 renewcommand{}{}
12134 \end_layout
12135
12136 \end_inset
12137
12138  to specify a new bullet shape for a given depth.
12139  You'll also need to save the current bullet shape so you can restore it
12140  again afterwards.
12141  In this itemized list the following \SpecialChar LaTeX
12142  code was used to change the bullet
12143  used for the first depth.
12144 \end_layout
12145
12146 \begin_deeper
12147 \begin_layout LyX-Code
12148
12149 \backslash
12150 let
12151 \backslash
12152 savelabelitemi=
12153 \backslash
12154 labelitemi 
12155 \end_layout
12156
12157 \begin_layout LyX-Code
12158
12159 \backslash
12160 renewcommand
12161 \backslash
12162 labelitemi[0]{
12163 \backslash
12164 small
12165 \backslash
12166 (
12167 \backslash
12168 sharp
12169 \backslash
12170 )}
12171 \end_layout
12172
12173 \end_deeper
12174 \begin_layout Itemize
12175 Note that the itemize depth is specified in Roman numerals as part of the
12176  
12177 \family typewriter
12178
12179 \backslash
12180 labelitem
12181 \family default
12182  command.
12183 \end_layout
12184
12185 \begin_layout Itemize
12186 \begin_inset Argument item:1
12187 status open
12188
12189 \begin_layout Plain Layout
12190 \begin_inset ERT
12191 status open
12192
12193 \begin_layout Plain Layout
12194
12195
12196 \backslash
12197 (
12198 \backslash
12199 star
12200 \backslash
12201 )
12202 \end_layout
12203
12204 \end_inset
12205
12206
12207 \end_layout
12208
12209 \end_inset
12210
12211  Specify each individual entry by starting each item with the bullet shape
12212  enclosed in a 
12213 \begin_inset Quotes eld
12214 \end_inset
12215
12216 Custom Item
12217 \begin_inset Quotes erd
12218 \end_inset
12219
12220  inset (available at 
12221 \family sans
12222 Insert\SpecialChar menuseparator
12223 Custom Item
12224 \family default
12225 ) and set as 
12226 \begin_inset Flex Noun
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 \SpecialChar TeX
12231  Code
12232 \end_layout
12233
12234 \end_inset
12235
12236 .
12237  For example, this item was started with 
12238 \begin_inset Flex Code
12239 status collapsed
12240
12241 \begin_layout Plain Layout
12242
12243 \backslash
12244 (
12245 \backslash
12246 star
12247 \backslash
12248 )
12249 \end_layout
12250
12251 \end_inset
12252
12253 .
12254 \end_layout
12255
12256 \begin_layout Plain Layout
12257 \begin_inset ERT
12258 status open
12259
12260 \begin_layout Plain Layout
12261
12262
12263 \backslash
12264 renewcommand
12265 \backslash
12266 labelitemi[0]{
12267 \backslash
12268 savelabelitemi}
12269 \end_layout
12270
12271 \end_inset
12272
12273
12274 \end_layout
12275
12276 \begin_layout Plain Layout
12277 You'll also need to revert the labelitem back to its previous setting for
12278  the global bullet shape settings to remain in effect.
12279  The way used here was:
12280 \end_layout
12281
12282 \begin_layout LyX-Code
12283
12284 \backslash
12285 renewcommand
12286 \backslash
12287 labelitemi[0]{
12288 \backslash
12289 savelabelitemi}
12290 \end_layout
12291
12292 \end_inset
12293
12294
12295 \end_layout
12296
12297 \begin_layout Chapter
12298 \SpecialChar LyX
12299  and the World Wide Web
12300 \end_layout
12301
12302 \begin_layout Standard
12303 \SpecialChar LyX
12304  has long supported the export of documents to various web-friendly formats,
12305  such as HTML.
12306  Before version 2.0, however, HTML export was always accomplished by the
12307  use of external converters.
12308 \begin_inset Foot
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312 For details on the use of external converters with \SpecialChar LyX
12313 , see the 
12314 \emph on
12315 Converters
12316 \emph default
12317  section of the Customization manual.
12318 \end_layout
12319
12320 \end_inset
12321
12322  These fall into two large groups: there are converters that use \SpecialChar LaTeX
12323  as an
12324  intermediate format, such as 
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 htlatex
12330 \end_layout
12331
12332 \end_inset
12333
12334
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 html2latex
12340 \end_layout
12341
12342 \end_inset
12343
12344 , and 
12345 \begin_inset Flex Code
12346 status collapsed
12347
12348 \begin_layout Plain Layout
12349 plastex
12350 \end_layout
12351
12352 \end_inset
12353
12354 , relying upon \SpecialChar LyX
12355  to produce the \SpecialChar LaTeX
12356 ; and there is a converter that works directly
12357  on \SpecialChar LyX
12358  files, 
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 e\SpecialChar LyX
12364 er
12365 \end_layout
12366
12367 \end_inset
12368
12369 .
12370  All of these have different advantages and disadvantages.
12371  
12372 \end_layout
12373
12374 \begin_layout Standard
12375 The \SpecialChar LaTeX
12376 -based converters have the advantage that, in principle, they know everythin
12377 g about the exported document that \SpecialChar LaTeX
12378  does.
12379  Such converters do not care, for example, if a certain block of code was
12380  produced by \SpecialChar LyX
12381  or was Evil Red Text.
12382  These converters know about 
12383 \begin_inset Flex Code
12384 status collapsed
12385
12386 \begin_layout Plain Layout
12387 aux
12388 \end_layout
12389
12390 \end_inset
12391
12392  files, counters, and references, and can often make use of the 
12393 \begin_inset Flex Code
12394 status collapsed
12395
12396 \begin_layout Plain Layout
12397 bbl
12398 \end_layout
12399
12400 \end_inset
12401
12402  files generated by Bib\SpecialChar TeX
12403 .
12404  On the other hand, \SpecialChar LaTeX
12405  is a very hard language to parse—it is sometimes said
12406  that only \SpecialChar TeX
12407  itself understands \SpecialChar TeX
12408 —and \SpecialChar LaTeX
12409 -based converters will often choke on
12410  what seem to be quite simple constructs; complex ones can throw them completely
12411 , and as of this writing, for example, the 
12412 \emph on
12413 Embedded Objects
12414 \emph default
12415  manual will not export with 
12416 \begin_inset Flex Code
12417 status collapsed
12418
12419 \begin_layout Plain Layout
12420 htlatex
12421 \end_layout
12422
12423 \end_inset
12424
12425 , though the others will.
12426  The other issue concerns how math is handled.
12427  These converters typically convert the formulae into little pictures that
12428  are then linked from the HTML document.
12429  Since these are actually generated by \SpecialChar LaTeX
12430 , they are accurate.
12431  But they do not scale well, and just getting them to look as if they are
12432  actually meant to be in your document—so that the font sizes seem to be
12433  roughly the same—can be a challenge.
12434 \end_layout
12435
12436 \begin_layout Standard
12437 Alex Fernandez's 
12438 \begin_inset Flex Code
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 e\SpecialChar LyX
12443 er
12444 \end_layout
12445
12446 \end_inset
12447
12448  (
12449 \begin_inset CommandInset href
12450 LatexCommand href
12451 name "http://pinchito.es/elyxer/"
12452 target "http://pinchito.es/elyxer/"
12453 literal "false"
12454
12455 \end_inset
12456
12457 ) solves some of these problems.
12458  In particular, the formulae it produces scale perfectly, since it renders
12459  math using a combination of HTML and CSS rather than converting the formulae
12460  to images.
12461  But even moderately complex formula are rendered less well than with 
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466 htlatex
12467 \end_layout
12468
12469 \end_inset
12470
12471 ; this reflects the limitations of HTML.
12472 \begin_inset Foot
12473 status collapsed
12474
12475 \begin_layout Plain Layout
12476 That said, 
12477 \begin_inset Flex Code
12478 status collapsed
12479
12480 \begin_layout Plain Layout
12481 e\SpecialChar LyX
12482 er
12483 \end_layout
12484
12485 \end_inset
12486
12487  can also use jsMath and MathJax for equations, but this setting is only
12488  available globally and requires one to have access to a server that runs
12489  the backend.
12490 \end_layout
12491
12492 \end_inset
12493
12494  More importantly (as of version 1.1.1, at least), 
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 e\SpecialChar LyX
12500 er
12501 \end_layout
12502
12503 \end_inset
12504
12505  has limited support for math macros and no support for user-defined paragraph
12506  or character styles.
12507  These limitations make 
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 e\SpecialChar LyX
12513 er
12514 \end_layout
12515
12516 \end_inset
12517
12518  unsuitable for many of the documents \SpecialChar LyX
12519  users produce.
12520  In principle, of course, these problems could be solved, but the \SpecialChar LyX
12521  developers
12522  have decided to follow a different path and have made \SpecialChar LyX
12523  itself capable of
12524  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
12525 , DocBook, and plaintext.
12526 \end_layout
12527
12528 \begin_layout Standard
12529 As of this writing, XHTML output remains under development and should probably
12530  be regarded as 
12531 \begin_inset Quotes eld
12532 \end_inset
12533
12534 experimental
12535 \begin_inset Quotes erd
12536 \end_inset
12537
12538 .
12539 \begin_inset Foot
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543 The file 
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 development/HTML/HTML.notes
12549 \end_layout
12550
12551 \end_inset
12552
12553 , which can be found in the \SpecialChar LyX
12554  source tree or 
12555 \begin_inset CommandInset href
12556 LatexCommand href
12557 name "accessed online"
12558 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
12559 literal "false"
12560
12561 \end_inset
12562
12563 , usually contains up-to-date information about the state of XHTML output.
12564  See also the list of XHTML bugs on 
12565 \begin_inset CommandInset href
12566 LatexCommand href
12567 name "the bug tracker"
12568 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"
12569 literal "false"
12570
12571 \end_inset
12572
12573 .
12574 \end_layout
12575
12576 \end_inset
12577
12578  Still, the developers have chosen this approach because it has several
12579  potential advantages over the other two.
12580 \end_layout
12581
12582 \begin_layout Standard
12583 These advantages are primarily due to the fact that the XHTML output routines,
12584  since they are part of \SpecialChar LyX
12585 , know everything \SpecialChar LyX
12586  knows about the document being
12587  exported.
12588 \begin_inset Foot
12589 status collapsed
12590
12591 \begin_layout Plain Layout
12592 Another advantage is that, since these routines are internal to \SpecialChar LyX
12593 , they are
12594  immune to changes in \SpecialChar LyX
12595 's file format, or to changes in the semantics of
12596  existing insets.
12597 \end_layout
12598
12599 \end_inset
12600
12601  So they know about the table of contents (as displayed in the outline),
12602  about the counters associated with different paragraph styles, and about
12603  user-defined styles.
12604  The XHTML output routines know what \SpecialChar LyX
12605  knows about internationalization,
12606  too, so they will output 
12607 \begin_inset Quotes eld
12608 \end_inset
12609
12610 Chapter 1
12611 \begin_inset Quotes erd
12612 \end_inset
12613
12614  or 
12615 \begin_inset Quotes eld
12616 \end_inset
12617
12618
12619 \lang ngerman
12620 Kapitel
12621 \lang english
12622  1
12623 \begin_inset Quotes erd
12624 \end_inset
12625
12626 , depending upon the language in effect at the time.
12627  
12628 \end_layout
12629
12630 \begin_layout Standard
12631 Quite generally, the output routines know what \SpecialChar LyX
12632  knows about document layout,
12633  that is, about how the document is to be rendered on screen.
12634  We use this information when we output the document as XHTML.
12635  In particular, \SpecialChar LyX
12636  
12637 \emph on
12638 automatically
12639 \emph default
12640  generates CSS style information corresponding to the layout information
12641  it uses to render the document on screen: if section headings are supposed
12642  to be sans-serif and bold as seen in \SpecialChar LyX
12643 , then (by default) they will be sans-seri
12644 f and bold when viewed in a web browser, too.
12645  And this is true not just for pre-defined styles, like Section, but for
12646  any style, including user-defined styles.
12647  Indeed, the XHTML output routines make no distinction between user-defined
12648  paragraph and 
12649 \change_deleted 244031559 1603876931
12650 character
12651 \change_inserted 244031559 1603876940
12652 text
12653 \change_unchanged
12654  styles and \SpecialChar LyX
12655 's own pre-defined styles: in each case, everything \SpecialChar LyX
12656  knows about
12657  the styles is contained in the layout files.
12658  And much the same is true as regards pre-defined textual insets, such as
12659  footnotes, and various custom insets.
12660  
12661 \end_layout
12662
12663 \begin_layout Standard
12664 The result is that XHTML output can be customized and extended in exactly
12665  the same way \SpecialChar LaTeX
12666  output can be customized and extended: through layout files
12667  and modules.
12668  See chapter five of the 
12669 \emph on
12670 Customization 
12671 \emph default
12672 manual for the details.
12673 \end_layout
12674
12675 \begin_layout Standard
12676 The remainder of this chapter contains more detailed information on XHTML
12677  output, its limitations, and ways to work around those limitations.
12678 \end_layout
12679
12680 \begin_layout Section
12681 Math Output in XHTML
12682 \end_layout
12683
12684 \begin_layout Standard
12685 \SpecialChar LyX
12686  offers four choices for how math is rendered.
12687  These have various advantages and disadvantages:
12688 \end_layout
12689
12690 \begin_layout Itemize
12691 MathML
12692 \begin_inset Newline newline
12693 \end_inset
12694
12695 MathML is a dialect of XML designed specifically for mathematics on the
12696  web, and it typically renders very well in browsers that support it.
12697  The disadvantage is that not all browsers support MathML, and support is
12698  not complete even in the Gecko-based browsers, such as Firefox.
12699 \begin_inset Newline newline
12700 \end_inset
12701
12702 If \SpecialChar LyX
12703  is unable to render a formula as MathML—for example, if the formula
12704  uses the 
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709 xymatrix
12710 \end_layout
12711
12712 \end_inset
12713
12714  package or ERT—then it will instead output the formula as an image.
12715  
12716 \end_layout
12717
12718 \begin_layout Itemize
12719 HTML
12720 \begin_inset Newline newline
12721 \end_inset
12722
12723 As mentioned above, 
12724 \begin_inset Flex Code
12725 status collapsed
12726
12727 \begin_layout Plain Layout
12728 elyxer
12729 \end_layout
12730
12731 \end_inset
12732
12733  outputs math as HTML, styled by CSS.
12734 \begin_inset Foot
12735 status collapsed
12736
12737 \begin_layout Plain Layout
12738 \SpecialChar LyX
12739  has borrowed some of the CSS for its HTML output from 
12740 \begin_inset Flex Code
12741 status collapsed
12742
12743 \begin_layout Plain Layout
12744 elyxer
12745 \end_layout
12746
12747 \end_inset
12748
12749 .
12750 \end_layout
12751
12752 \end_inset
12753
12754  For simple formulae, this can work quite well, though with more complicated
12755  formulae it tends to break down.
12756  Still, this method has the advantage that it is very widely supported and
12757  so it may be appropriate for documents that contain only a little, fairly
12758  simple math.
12759 \begin_inset Newline newline
12760 \end_inset
12761
12762 If Lyx is unable to render a formula as HTML—for example, if the formula
12763  uses the 
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 xymatrix
12769 \end_layout
12770
12771 \end_inset
12772
12773  package or ERT—then it will instead output the formula as an image.
12774  
12775 \end_layout
12776
12777 \begin_layout Itemize
12778 Images
12779 \begin_inset Newline newline
12780 \end_inset
12781
12782 Like 
12783 \begin_inset Flex Code
12784 status collapsed
12785
12786 \begin_layout Plain Layout
12787 htlatex
12788 \end_layout
12789
12790 \end_inset
12791
12792 , \SpecialChar LyX
12793  will output formulae as images, the very same images, in fact, that are
12794  used for instant preview.
12795 \begin_inset Foot
12796 status collapsed
12797
12798 \begin_layout Plain Layout
12799 Instant preview does 
12800 \emph on
12801 not 
12802 \emph default
12803 have to be on for images to be output, however.
12804 \end_layout
12805
12806 \end_inset
12807
12808  The advantage to this method is that the images are simply generated by
12809  \SpecialChar LaTeX
12810 , so they are very accurate.
12811  The disadvantage, as mentioned earlier, is that these are bitmapped images,
12812  so they do not scale terribly well, and one cannot copy them, etc.
12813 \begin_inset Newline newline
12814 \end_inset
12815
12816 The size of the images can be controlled by setting the 
12817 \begin_inset Quotes eld
12818 \end_inset
12819
12820 Math Images Scaling
12821 \begin_inset Quotes erd
12822 \end_inset
12823
12824  parameter under 
12825 \begin_inset Flex Noun
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 Document\SpecialChar menuseparator
12830 Settings\SpecialChar menuseparator
12831 Formats
12832 \end_layout
12833
12834 \end_inset
12835
12836 .
12837 \begin_inset Foot
12838 status collapsed
12839
12840 \begin_layout Plain Layout
12841 For those who want to know, this controls the resolution of the image in
12842  dots per inch and is based upon a default of 75 dpi.
12843 \end_layout
12844
12845 \end_inset
12846
12847
12848 \begin_inset Newline newline
12849 \end_inset
12850
12851 If \SpecialChar LyX
12852  for some reason fails to create an image for a formula (e.g., if a required
12853  \SpecialChar LaTeX
12854  package is not installed), then it will fall back to outputing the raw
12855  \SpecialChar LaTeX
12856 .
12857 \end_layout
12858
12859 \begin_layout Itemize
12860 \SpecialChar LaTeX
12861
12862 \begin_inset Newline newline
12863 \end_inset
12864
12865 Finally, \SpecialChar LyX
12866  will happily output math as \SpecialChar LaTeX
12867 .
12868  As well as being the output of last resort, this method can be used with
12869  such tools as 
12870 \begin_inset CommandInset href
12871 LatexCommand href
12872 name "jsMath"
12873 target "http://www.math.union.edu/~dpvc/jsMath/"
12874 literal "false"
12875
12876 \end_inset
12877
12878 , which uses JavaScript to render \SpecialChar LaTeX
12879  embedded in HTML documents.
12880  \SpecialChar LyX
12881  wraps the \SpecialChar LaTeX
12882  in either a 
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 span
12888 \end_layout
12889
12890 \end_inset
12891
12892  (for inline formulas) or 
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 div
12898 \end_layout
12899
12900 \end_inset
12901
12902  (for displayed formulas) with 
12903 \begin_inset Flex Code
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 class='math'
12908 \end_layout
12909
12910 \end_inset
12911
12912 , as is required for jsMath.
12913 \end_layout
12914
12915 \begin_layout Standard
12916 One of these output methods must be selected under 
12917 \begin_inset Flex Noun
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 Document\SpecialChar menuseparator
12922 Settings\SpecialChar menuseparator
12923 Formats
12924 \end_layout
12925
12926 \end_inset
12927
12928 .
12929  By default, \SpecialChar LyX
12930  outputs MathML.
12931  This is a document-wide setting, therefore.
12932 \end_layout
12933
12934 \begin_layout Standard
12935 Eventually, \SpecialChar LyX
12936  will offer the user the option to select an alternate output
12937  method for a particular inset, say, one that isn't being rendered very
12938  well by MathML.
12939 \begin_inset Foot
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 That said, since \SpecialChar LyX
12944  falls back to images if the inset contains ERT, then one
12945  can force output as an image by putting some harmless ERT into the math,
12946  for example: 
12947 \begin_inset Formula $a=b\relax$
12948 \end_inset
12949
12950 .
12951 \end_layout
12952
12953 \end_inset
12954
12955
12956 \end_layout
12957
12958 \begin_layout Section
12959 Bibliography and Citations
12960 \end_layout
12961
12962 \begin_layout Standard
12963 XHTML output fully supports bibliographies and citations.
12964  
12965 \end_layout
12966
12967 \begin_layout Standard
12968 Citation labels are generated by the same machinery that generates \SpecialChar LyX
12969 's on-screen
12970  labels, so the labels will look in the output much as they do in \SpecialChar LyX
12971 , though
12972  better.
12973  If you are using numerical citations, then \SpecialChar LyX
12974  will output numerical labels,
12975  such as [1] or [17], rather than simply showing the citation key in square
12976  brackets, as it does on-screen.
12977  If you are using author-year citations, then \SpecialChar LyX
12978  will add lowercase letters
12979  to the years, just as Bib\SpecialChar TeX
12980  does, if it finds more than one citation for
12981  a given author-year combination.
12982  The labels will be printed with the bibliography entries.
12983  Note that there is, at present, no way to customize the appearance of the
12984  labels, for example, to choose between square brackets and parentheses.
12985 \end_layout
12986
12987 \begin_layout Standard
12988 Bibliography output is handled by the same machinery that handles the presentati
12989 on of reference information in the citation dialog, so you will see in the
12990  XHTML output pretty much what you would see if you were to look at a given
12991  entry in the citation dialog.
12992  The formatting can be customized in your layout file or, preferably, in
12993  a module.
12994  See the 
12995 \emph on
12996 Customization
12997 \emph default
12998  manual for the details.
12999 \end_layout
13000
13001 \begin_layout Standard
13002 The main defect at present is that cross-referenced information is printed
13003  with every entry with which it is associated.
13004  So you can see things like this:
13005 \end_layout
13006
13007 \begin_layout Quote
13008 Jason Stanley, 
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012 Context and Logical Form
13013 \begin_inset Quotes erd
13014 \end_inset
13015
13016 , in 
13017 \emph on
13018 Language in Context: Selected Essays
13019 \emph default
13020  (Oxford: Oxford University Press, 2007), pp.
13021  30–68.
13022 \end_layout
13023
13024 \begin_layout Quote
13025 Jason Stanley, 
13026 \begin_inset Quotes eld
13027 \end_inset
13028
13029 Semantics in Context
13030 \begin_inset Quotes erd
13031 \end_inset
13032
13033 , in 
13034 \emph on
13035 Language in Context: Selected Essays
13036 \emph default
13037  (Oxford: Oxford University Press, 2007), pp.
13038  201–30.
13039 \end_layout
13040
13041 \begin_layout Standard
13042 This should be fixed before long.
13043 \end_layout
13044
13045 \begin_layout Standard
13046 There is no support at present for sectioned bibliographies.
13047  If you have multiple bibliographies, then \SpecialChar LyX
13048  will print the same bibliography
13049  over and over.
13050 \end_layout
13051
13052 \begin_layout Section
13053 Indexes
13054 \end_layout
13055
13056 \begin_layout Standard
13057 \SpecialChar LyX
13058  will happily export indexes as XHTML, but with certain limitations at the
13059  moment.
13060 \end_layout
13061
13062 \begin_layout Standard
13063 Index export will be most reliable when you do not attempt to use the fancy
13064  constructs that are described in the section on indexes in the 
13065 \emph on
13066 User's Guide
13067 \emph default
13068 .
13069 \begin_inset Foot
13070 status collapsed
13071
13072 \begin_layout Plain Layout
13073 The main issue here is that \SpecialChar LyX
13074  itself does not really handle these.
13075  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
13076 .
13077 \end_layout
13078
13079 \end_inset
13080
13081  We'll describe how they are handled using the subsection headings from
13082  that section.
13083 \end_layout
13084
13085 \begin_layout Itemize
13086 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
13087  makes an effort to support these,
13088  but the entries must be separated by 
13089 \begin_inset Quotes eld
13090 \end_inset
13091
13092  ! 
13093 \begin_inset Quotes erd
13094 \end_inset
13095
13096 , that is, there must be spaces around the exclamation point.
13097  This is because it is otherwise too difficult to check for escaped exclamation
13098  points, ones in math, and so forth.
13099 \end_layout
13100
13101 \begin_layout Itemize
13102 Page Ranges: There is no support at all for page ranges, since these make
13103  no sense with XHMTL.
13104  Instead, you will just get two index entries, one at either end.
13105 \end_layout
13106
13107 \begin_layout Itemize
13108 Cross-referencing: There is no support for cross-referencing.
13109  If \SpecialChar LyX
13110  finds an entry containing the 
13111 \begin_inset Quotes eld
13112 \end_inset
13113
13114 |see\SpecialChar ldots
13115
13116 \begin_inset Quotes erd
13117 \end_inset
13118
13119  construct, it is just dropped, and the rest is treated as an ordinary index
13120  entry.
13121 \end_layout
13122
13123 \begin_layout Itemize
13124 Index Entry Order: \SpecialChar LyX
13125  does support attempts to fix the sorting order.
13126  It will take what is before the first `@' it finds and use that for sorting,
13127  taking what follows the first `@' to be the actual entry.
13128  At present, \SpecialChar LyX
13129  does not check for escaped `@', so do not try to index email
13130  addresses.
13131 \end_layout
13132
13133 \begin_layout Itemize
13134 Index Entry Layout: You can format entries by using the text style dialog,
13135  or by using any other method available within \SpecialChar LyX
13136  itself.
13137  There is no support for constructs like: 
13138 \begin_inset Quotes eld
13139 \end_inset
13140
13141 entry|textbf
13142 \begin_inset Quotes erd
13143 \end_inset
13144
13145 .
13146  Indeed, if \SpecialChar LyX
13147  finds a pipe symbol, `|', in an entry, it will delete it and
13148  everything that follows it.
13149 \end_layout
13150
13151 \begin_layout Itemize
13152 Multiple Indexes: There is no support for multiple indexes.
13153  Rather, all index entries will be printed as one large index.
13154  To avoid our printing several versions of the index, we print only the
13155  main index, so make sure you have one.
13156 \end_layout
13157
13158 \begin_layout Section
13159 Nomenclature and Glossary
13160 \end_layout
13161
13162 \begin_layout Standard
13163 There is at present no support for glossaries.
13164  Adding it would be fairly trivial, and welcome.
13165 \end_layout
13166
13167 \begin_layout Chapter
13168
13169 \change_inserted 1075283030 1616534180
13170 DocBook Output
13171 \end_layout
13172
13173 \begin_layout Standard
13174
13175 \change_inserted 1075283030 1616534386
13176 Apart from HTML, \SpecialChar LyX
13177  can generate documents in the DocBook XML vocabulary.
13178  With versions 2.3 and before, only select templates could be used to generate
13179  DocBook documents (only version 4).
13180  Starting with \SpecialChar LyX
13181  2.4, most \SpecialChar LyX
13182  layouts can generate valid DocBook documents (only
13183  version 5).
13184  This feature is built into \SpecialChar LyX
13185  and does not require the use of external tools.
13186 \end_layout
13187
13188 \begin_layout Standard
13189
13190 \change_inserted 1075283030 1616534437
13191 The result is that the DocBook output can be customized and extended in
13192  exactly the same way \SpecialChar LaTeX
13193  output can be customized and extended: through layout
13194  files and modules.
13195  See chapter five of the 
13196 \emph on
13197 Customization 
13198 \emph default
13199 manual for the details.
13200 \end_layout
13201
13202 \begin_layout Standard
13203
13204 \change_inserted 1075283030 1616534475
13205 Most \SpecialChar LyX
13206  features are supported with DocBook, like math output.
13207 \end_layout
13208
13209 \begin_layout Itemize
13210
13211 \change_inserted 1075283030 1616534741
13212 Math output is performed mostly in MathML (the major exception being constructio
13213 ns not supported by \SpecialChar LyX
13214 , i.e.
13215  ERTs).
13216  All formulae are also available in raw \SpecialChar TeX
13217  in the DocBook output for further
13218  processing.
13219 \end_layout
13220
13221 \begin_layout Itemize
13222
13223 \change_inserted 1075283030 1616534852
13224 Bibliographies and citations are implemented, including with an external
13225  BibTeX file.
13226  Bibliography entries are not prerendered when the detailed information
13227  are available, but rather output with the standard DocBook constructs.
13228  The external DocBook processor is expected to handle the rendering of entries.
13229 \end_layout
13230
13231 \begin_layout Itemize
13232
13233 \change_inserted 1075283030 1616534863
13234 Indexes are supported, including multiple indices.
13235  Grouping (with 
13236 \family typewriter
13237 !
13238 \family default
13239 ), page ranges, and cross-references (
13240 \family typewriter
13241 |see
13242 \family default
13243 ) are supported, with the exception of the same symbols escaped.
13244  Entry order (
13245 \family typewriter
13246 @
13247 \family default
13248 ) and layout (
13249 \family typewriter
13250 |mathbf
13251 \family default
13252 ) are not supported.
13253  There is no support for escaping of index entries.
13254 \end_layout
13255
13256 \begin_layout Itemize
13257
13258 \change_inserted 1075283030 1616534884
13259 Glossaries are implemented.
13260 \end_layout
13261
13262 \begin_layout Standard
13263
13264 \change_inserted 1075283030 1616534894
13265 Two major parameters can be set at the document level.
13266 \end_layout
13267
13268 \begin_layout Itemize
13269
13270 \change_inserted 1075283030 1616534948
13271 Format for tables: \SpecialChar LyX
13272  can generate tables either as HTML (default value) or
13273  CALS, depending on the user's requirements.
13274  Most DocBook processors accept both formats.
13275 \end_layout
13276
13277 \begin_layout Itemize
13278
13279 \change_inserted 1075283030 1616535006
13280 MathML prefix: in DocBook, MathML is included within its own name space,
13281  unlike HTML.
13282  The implication is that there must be an indication of the tags belonging
13283  to the MathML standard.
13284  Three choices are offered: 
13285 \end_layout
13286
13287 \begin_deeper
13288 \begin_layout Itemize
13289
13290 \change_inserted 1075283030 1616535044
13291 Inline: the MathML name space is defined for each formula (using the 
13292 \family typewriter
13293 xmlns
13294 \family default
13295  attribute on each formula)
13296 \end_layout
13297
13298 \begin_layout Itemize
13299
13300 \change_inserted 1075283030 1616535090
13301 With the 
13302 \family typewriter
13303 m
13304 \family default
13305  prefix (default): the MathML name space is defined at the document level
13306  (using the 
13307 \family typewriter
13308 xmlns:m
13309 \family default
13310  attribute on the root element).
13311  Each MathML is prefixed with 
13312 \family typewriter
13313 m
13314 \family default
13315 : for instance, 
13316 \family typewriter
13317 m:math
13318 \end_layout
13319
13320 \begin_layout Itemize
13321
13322 \change_inserted 1075283030 1616620405
13323 With the 
13324 \family typewriter
13325 mml
13326 \family default
13327  prefix: similar to the 
13328 \family typewriter
13329 m
13330 \family default
13331  option, but with 
13332 \family typewriter
13333 mml
13334 \end_layout
13335
13336 \begin_layout Standard
13337
13338 \change_inserted 1075283030 1616620470
13339 This option is especially useful if you want \SpecialChar LyX
13340  to match your personal style
13341  or to work with buggy software that only accepts one prefix for MathML.
13342 \change_unchanged
13343
13344 \end_layout
13345
13346 \end_deeper
13347 \begin_layout Chapter
13348 The \SpecialChar LyX
13349  Server
13350 \end_layout
13351
13352 \begin_layout Section
13353 Introduction
13354 \end_layout
13355
13356 \begin_layout Standard
13357 The `\SpecialChar LyX
13358  server' allows other programs to talk to \SpecialChar LyX
13359 , invoke \SpecialChar LyX
13360  commands, and retrieve
13361  information about the \SpecialChar LyX
13362  internal state.
13363  This is only intended for advanced users, but they should find it useful.
13364  It is by writing to the \SpecialChar LyX
13365  server, for example, that bibliography managers,
13366  such as JabRef, are able to 
13367 \begin_inset Quotes eld
13368 \end_inset
13369
13370 push
13371 \begin_inset Quotes erd
13372 \end_inset
13373
13374  citations to \SpecialChar LyX
13375 .
13376 \end_layout
13377
13378 \begin_layout Section
13379 Starting the \SpecialChar LyX
13380  Server
13381 \begin_inset CommandInset label
13382 LatexCommand label
13383 name "sec:Starting-the-Server"
13384
13385 \end_inset
13386
13387
13388 \end_layout
13389
13390 \begin_layout Standard
13391 The \SpecialChar LyX
13392  server works through the use of a pair of named pipes.
13393  These are usually located in 
13394 \begin_inset Flex Code
13395 status collapsed
13396
13397 \begin_layout Plain Layout
13398 UserDir
13399 \end_layout
13400
13401 \end_inset
13402
13403 , (except on Windows, where 
13404 \emph on
13405 local
13406 \emph default
13407  named pipes are special objects located in 
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412
13413 \backslash
13414
13415 \backslash
13416 .
13417 \backslash
13418 pipe
13419 \end_layout
13420
13421 \end_inset
13422
13423 ) and have the names 
13424 \begin_inset Quotes eld
13425 \end_inset
13426
13427
13428 \begin_inset Flex Code
13429 status collapsed
13430
13431 \begin_layout Plain Layout
13432 lyxpipe.in
13433 \end_layout
13434
13435 \end_inset
13436
13437
13438 \begin_inset Quotes erd
13439 \end_inset
13440
13441  and 
13442 \begin_inset Quotes eld
13443 \end_inset
13444
13445
13446 \begin_inset Flex Code
13447 status collapsed
13448
13449 \begin_layout Plain Layout
13450 lyxpipe.out
13451 \end_layout
13452
13453 \end_inset
13454
13455
13456 \begin_inset Quotes erd
13457 \end_inset
13458
13459 .
13460  External programs write into 
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 lyxpipe.in
13466 \end_layout
13467
13468 \end_inset
13469
13470  and read back data from 
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 lyxpipe.out
13476 \end_layout
13477
13478 \end_inset
13479
13480 .
13481  The stem of the pipe names can be defined in the 
13482 \begin_inset Flex Noun
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486 Tools\SpecialChar menuseparator
13487 Preferences
13488 \end_layout
13489
13490 \end_inset
13491
13492  dialog, for example 
13493 \begin_inset Flex Code
13494 status collapsed
13495
13496 \begin_layout Plain Layout
13497 "/home/myhome/lyxpipe"
13498 \end_layout
13499
13500 \end_inset
13501
13502 , or 
13503 \begin_inset Flex Code
13504 status collapsed
13505
13506 \begin_layout Plain Layout
13507 "
13508 \backslash
13509
13510 \backslash
13511 .
13512 \backslash
13513 pipe
13514 \backslash
13515 lyxpipe"
13516 \end_layout
13517
13518 \end_inset
13519
13520  on Windows (where any working path instead of lyxpipe can be used, for
13521  example 
13522 \begin_inset Flex Code
13523 status collapsed
13524
13525 \begin_layout Plain Layout
13526 "
13527 \backslash
13528
13529 \backslash
13530 .
13531 \backslash
13532 pipe
13533 \backslash
13534 my
13535 \backslash
13536 lyx
13537 \backslash
13538 pipe"
13539 \end_layout
13540
13541 \end_inset
13542
13543  would also work).
13544  You 
13545 \emph on
13546 must
13547 \emph default
13548  configure this manually in order for the server to start.
13549 \end_layout
13550
13551 \begin_layout Standard
13552 \SpecialChar LyX
13553  will add the '
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558 .in
13559 \end_layout
13560
13561 \end_inset
13562
13563 ' and '
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 .out
13569 \end_layout
13570
13571 \end_inset
13572
13573 ' to create the pipes.
13574  If one of the pipes already exists, \SpecialChar LyX
13575  will assume that another \SpecialChar LyX
13576  process
13577  is already running and will not start the server.
13578  On POSIX (Unix like) systems, if for some other reason, an unused 
13579 \begin_inset Quotes eld
13580 \end_inset
13581
13582 stale
13583 \begin_inset Quotes erd
13584 \end_inset
13585
13586  pipe is left in existence when \SpecialChar LyX
13587  closes, then \SpecialChar LyX
13588  will try to delete it.
13589  If this fails for some reason, you will need to delete the pipes manually
13590  and then restart \SpecialChar LyX
13591 .
13592  On Windows, pipes are deleted by the OS on program termination or crash,
13593  so 
13594 \begin_inset Quotes eld
13595 \end_inset
13596
13597 stale
13598 \begin_inset Quotes erd
13599 \end_inset
13600
13601  pipes should not be possible.
13602 \end_layout
13603
13604 \begin_layout Standard
13605 To have several \SpecialChar LyX
13606  processes with servers at the same time, you have to use
13607  different configurations, perhaps by using separate user directories, each
13608  with its own 
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613 preferences
13614 \end_layout
13615
13616 \end_inset
13617
13618  file, for each process.
13619 \end_layout
13620
13621 \begin_layout Standard
13622 If you are developing a client program, you might find it useful to enable
13623  debugging information from the \SpecialChar LyX
13624  server.
13625  Do this by starting \SpecialChar LyX
13626  as 
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631 lyx -dbg lyxserver
13632 \end_layout
13633
13634 \end_inset
13635
13636 .
13637 \end_layout
13638
13639 \begin_layout Standard
13640 You can find a complete example client written in C++ in the source distribution
13641  as 
13642 \begin_inset Flex Code
13643 status collapsed
13644
13645 \begin_layout Plain Layout
13646 development/lyxserver/server_monitor.cpp
13647 \end_layout
13648
13649 \end_inset
13650
13651 .
13652 \end_layout
13653
13654 \begin_layout Standard
13655 Another useful tool is the command-line based client found in 
13656 \begin_inset Flex Code
13657 status collapsed
13658
13659 \begin_layout Plain Layout
13660 src/client/lyxclient
13661 \end_layout
13662
13663 \end_inset
13664
13665 .
13666 \end_layout
13667
13668 \begin_layout Section
13669 Normal communication
13670 \end_layout
13671
13672 \begin_layout Standard
13673 To issue a \SpecialChar LyX
13674  call, the client writes a line of ASCII text into the input
13675  pipe.
13676  This line has the following format:
13677 \end_layout
13678
13679 \begin_layout Quote
13680 LYXCMD:
13681 \emph on
13682 clientname
13683 \emph default
13684 :
13685 \emph on
13686 function
13687 \emph default
13688 :
13689 \emph on
13690 argument
13691 \end_layout
13692
13693 \begin_layout Description
13694 clientname is a name that the client can choose arbitrarily.
13695  Its only use is that \SpecialChar LyX
13696  will echo it if it sends an answer—so a client can
13697  dispatch results from different requesters.
13698 \end_layout
13699
13700 \begin_layout Description
13701 function is the function you want \SpecialChar LyX
13702  to perform.
13703  It is the same as the commands you'd use in the minibuffer.
13704 \end_layout
13705
13706 \begin_layout Description
13707 argument is an optional argument which is meaningful only to some functions
13708  (for instance, the 
13709 \begin_inset Quotes eld
13710 \end_inset
13711
13712 self-insert
13713 \begin_inset Quotes erd
13714 \end_inset
13715
13716  LFUN will insert the argument as text at the cursor position).
13717 \end_layout
13718
13719 \begin_layout Standard
13720 The answer from \SpecialChar LyX
13721  will arrive in the output pipe and be of the form
13722 \end_layout
13723
13724 \begin_layout Quote
13725 INFO:
13726 \emph on
13727 clientname
13728 \emph default
13729 :
13730 \emph on
13731 function
13732 \emph default
13733 :
13734 \emph on
13735 data
13736 \end_layout
13737
13738 \begin_layout Standard
13739 where 
13740 \emph on
13741 clientname
13742 \emph default
13743  and 
13744 \emph on
13745 function
13746 \emph default
13747  are just echoed from the command request, while 
13748 \emph on
13749 data
13750 \emph default
13751  is more or less useful information filled according to how the command
13752  execution worked out.
13753  Some commands, such as 
13754 \begin_inset Quotes eld
13755 \end_inset
13756
13757 font-state
13758 \begin_inset Quotes erd
13759 \end_inset
13760
13761 , will return information about the internal state of \SpecialChar LyX
13762 , while other will
13763  return an empty data-response.
13764  This means that the command execution went fine.
13765 \end_layout
13766
13767 \begin_layout Standard
13768 In case of errors, the response from \SpecialChar LyX
13769  will have this form
13770 \end_layout
13771
13772 \begin_layout Quote
13773 ERROR:
13774 \emph on
13775 clientname
13776 \emph default
13777 :
13778 \emph on
13779 function
13780 \emph default
13781 :
13782 \emph on
13783 error message
13784 \end_layout
13785
13786 \begin_layout Standard
13787 where the 
13788 \emph on
13789 error message
13790 \emph default
13791  should contain an explanation of why the command failed.
13792 \end_layout
13793
13794 \begin_layout Standard
13795 Examples:
13796 \end_layout
13797
13798 \begin_layout LyX-Code
13799 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
13800 \begin_inset Newline newline
13801 \end_inset
13802
13803 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
13804 \begin_inset Newline newline
13805 \end_inset
13806
13807 read a <~/.lyxpipe.out
13808 \begin_inset Newline newline
13809 \end_inset
13810
13811 echo $a
13812 \end_layout
13813
13814 \begin_layout Subsection
13815 AppleScript (Mac OS X)
13816 \end_layout
13817
13818 \begin_layout Standard
13819 Since \SpecialChar LyX
13820  2.1, \SpecialChar LyX
13821  supports basic interactions with AppleScript for normal communicatio
13822 n through the command run.
13823  This command takes a direct argument (the 
13824 \series bold
13825 function
13826 \series default
13827  to perform) and an optional argument.
13828  It either returns the output of the function or triggers an error with
13829  the error message and code.
13830 \end_layout
13831
13832 \begin_layout Standard
13833 Example:
13834 \end_layout
13835
13836 \begin_layout LyX-Code
13837 tell application "\SpecialChar LyX
13838 "
13839 \end_layout
13840
13841 \begin_layout LyX-Code
13842   try
13843 \end_layout
13844
13845 \begin_layout LyX-Code
13846     -- Stores the current file name into f
13847 \end_layout
13848
13849 \begin_layout LyX-Code
13850     set f to (run "server-get-filename" with argument "")
13851 \end_layout
13852
13853 \begin_layout LyX-Code
13854     on error the error_message number the error_number
13855 \end_layout
13856
13857 \begin_layout LyX-Code
13858       display dialog "Error: " & the error_number & ".
13859  " ¬
13860 \end_layout
13861
13862 \begin_layout LyX-Code
13863               & the error_message buttons {"OK"} default button 1
13864 \end_layout
13865
13866 \begin_layout LyX-Code
13867   end try
13868 \end_layout
13869
13870 \begin_layout LyX-Code
13871 end tell
13872 \end_layout
13873
13874 \begin_layout Section
13875 Notification
13876 \end_layout
13877
13878 \begin_layout Standard
13879 \SpecialChar LyX
13880  can notify clients of events going on asynchronously.
13881  Currently it will only do this if the user binds a key sequence with the
13882  function 
13883 \begin_inset Quotes eld
13884 \end_inset
13885
13886 notify
13887 \begin_inset Quotes erd
13888 \end_inset
13889
13890 .
13891  The format of the string \SpecialChar LyX
13892  sends is as follows:
13893 \end_layout
13894
13895 \begin_layout Quote
13896 \begin_inset Flex Code
13897 status collapsed
13898
13899 \begin_layout Plain Layout
13900 NOTIFY:
13901 \end_layout
13902
13903 \end_inset
13904
13905
13906 \emph on
13907 key-sequence
13908 \end_layout
13909
13910 \begin_layout Standard
13911 where 
13912 \emph on
13913 key-sequence
13914 \emph default
13915  is the printed representation of the key sequence that was actually typed
13916  by the user.
13917 \end_layout
13918
13919 \begin_layout Standard
13920 This mechanism can be used to extend \SpecialChar LyX
13921 's command set and implement macros.
13922  Bind some key sequence to 
13923 \begin_inset Quotes eld
13924 \end_inset
13925
13926 notify
13927 \begin_inset Quotes erd
13928 \end_inset
13929
13930 .
13931  Then start a client that listens on the output pipe, dispatches the command
13932  according to the sequence, and starts a function that may use \SpecialChar LyX
13933  calls and
13934  \SpecialChar LyX
13935  requests to issue a command or a series of commands to \SpecialChar LyX
13936 .
13937 \end_layout
13938
13939 \begin_layout Section
13940 The simple \SpecialChar LyX
13941  Server Protocol
13942 \end_layout
13943
13944 \begin_layout Standard
13945 \SpecialChar LyX
13946  implements a simple protocol that can be used for session management.
13947  All messages are of the form
13948 \end_layout
13949
13950 \begin_layout Quote
13951 LYXSRV:
13952 \emph on
13953 clientname
13954 \emph default
13955 :
13956 \emph on
13957 protocol message
13958 \end_layout
13959
13960 \begin_layout Standard
13961 where 
13962 \emph on
13963 protocol message
13964 \emph default
13965  can be 
13966 \begin_inset Quotes eld
13967 \end_inset
13968
13969 hello
13970 \begin_inset Quotes erd
13971 \end_inset
13972
13973  or 
13974 \begin_inset Quotes eld
13975 \end_inset
13976
13977 bye
13978 \begin_inset Quotes erd
13979 \end_inset
13980
13981 .
13982  If 
13983 \begin_inset Quotes eld
13984 \end_inset
13985
13986 hello
13987 \begin_inset Quotes erd
13988 \end_inset
13989
13990  is received from a client, \SpecialChar LyX
13991  will report back to inform the client that
13992  it's listening to it's messages, while 
13993 \begin_inset Quotes eld
13994 \end_inset
13995
13996 bye
13997 \begin_inset Quotes erd
13998 \end_inset
13999
14000  sent from \SpecialChar LyX
14001  will inform clients that \SpecialChar LyX
14002  is closing.
14003 \end_layout
14004
14005 \begin_layout Section
14006 Reverse DVI/PDF search
14007 \end_layout
14008
14009 \begin_layout Standard
14010 Some DVI/PDF viewers
14011 \begin_inset Foot
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
14016  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
14017 \end_layout
14018
14019 \end_inset
14020
14021  provide 
14022 \emph on
14023 reverse search
14024 \emph default
14025  facility (also called 
14026 \emph on
14027 inverse search
14028 \emph default
14029 ).
14030  This means that you can tell \SpecialChar LyX
14031  to put the cursor to a specific line in the
14032  document by clicking at the respective position in the DVI/PDF output.
14033  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
14034 .
14035  This is done via the \SpecialChar LyX
14036  server either by using the named pipe (
14037 \emph on
14038 lyxpipe
14039 \emph default
14040 ), or the UNIX domain socket (
14041 \emph on
14042 lyxsocket
14043 \emph default
14044 ) that \SpecialChar LyX
14045  creates in its temporary directory (this is the way the 
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 lyxclient
14051 \end_layout
14052
14053 \end_inset
14054
14055  program communicates with \SpecialChar LyX
14056 ).
14057  In some cases, you need a helper script that mediates between the viewer
14058  and \SpecialChar LyX
14059 , in others, the viewer can communicate with \SpecialChar LyX
14060  directly.
14061  This depends on the selected viewer and on your operating system.
14062  The same applies to the way viewers need to be configured and the way the
14063  reverse search is actually performed.
14064  In what follows, we will thus describe how to setup reverse search for
14065  specific viewers.
14066  Before we turn to this, though, we will explain what needs to be done generally
14067  to enable reverse search in the DVI/PDF output.
14068 \end_layout
14069
14070 \begin_layout Subsection
14071 Automatic setup
14072 \begin_inset CommandInset label
14073 LatexCommand label
14074 name "subsec:rev-search"
14075
14076 \end_inset
14077
14078
14079 \end_layout
14080
14081 \begin_layout Standard
14082 In most cases \SpecialChar LyX
14083  will do the work for you by pressing the following button
14084  in the toolbar: 
14085 \begin_inset Info
14086 type  "icon"
14087 arg   "buffer-toggle-output-sync"
14088 \end_inset
14089
14090 .
14091  Alternatively, you can also enable the feature by checking 
14092 \family sans
14093 Synchronize with Output
14094 \family default
14095  in 
14096 \begin_inset Flex Noun
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 Document\SpecialChar menuseparator
14101 Settings\SpecialChar menuseparator
14102 Formats
14103 \end_layout
14104
14105 \end_inset
14106
14107 .
14108  In such a case \SpecialChar LyX
14109  will automatically insert the necessary Sync\SpecialChar TeX
14110  macro (for
14111  PDF) or load the srcltx package (for DVI) respectively.
14112  This option can be easily reached also on 
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 View/Update
14118 \end_layout
14119
14120 \end_inset
14121
14122  Toolbar.
14123 \end_layout
14124
14125 \begin_layout Standard
14126 If you need a different setting, you can select or input a custom macro
14127  from the drop down box just below 
14128 \begin_inset Flex Noun
14129 status collapsed
14130
14131 \begin_layout Plain Layout
14132 Document\SpecialChar menuseparator
14133 Settings\SpecialChar menuseparator
14134 Output\SpecialChar menuseparator
14135 Synchronize with Output
14136 \end_layout
14137
14138 \end_inset
14139
14140 .
14141 \end_layout
14142
14143 \begin_layout Standard
14144 Note that the method 
14145 \begin_inset Flex Code
14146 status collapsed
14147
14148 \begin_layout Plain Layout
14149
14150 \backslash
14151 synctex=1
14152 \end_layout
14153
14154 \end_inset
14155
14156  enables gzip compression.
14157  If your viewer does not support it, you should instead use 
14158 \begin_inset Flex Code
14159 status collapsed
14160
14161 \begin_layout Plain Layout
14162
14163 \backslash
14164 synctex=-1
14165 \end_layout
14166
14167 \end_inset
14168
14169 .
14170 \end_layout
14171
14172 \begin_layout Standard
14173 Please also note that including the 
14174 \begin_inset Flex Code
14175 status collapsed
14176
14177 \begin_layout Plain Layout
14178 srcltx
14179 \end_layout
14180
14181 \end_inset
14182
14183  package or 
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188 src-specials
14189 \end_layout
14190
14191 \end_inset
14192
14193  sometimes has an undesired impact on the typesetting.
14194  Thus, you should switch output synchronization off for the final typesetting
14195  if you use the 
14196 \begin_inset Flex Code
14197 status collapsed
14198
14199 \begin_layout Plain Layout
14200 srcltx
14201 \end_layout
14202
14203 \end_inset
14204
14205  package or 
14206 \begin_inset Flex Code
14207 status collapsed
14208
14209 \begin_layout Plain Layout
14210 src-specials
14211 \end_layout
14212
14213 \end_inset
14214
14215 .
14216  
14217 \end_layout
14218
14219 \begin_layout Standard
14220 In case you need some more special settings that are not covered by the
14221  automatic settings, read the next section about how to set up output synchroniz
14222 ation manually.
14223  If the automatic setup suits your needs, you can readily jump to section
14224 \begin_inset space ~
14225 \end_inset
14226
14227
14228 \begin_inset CommandInset ref
14229 LatexCommand ref
14230 reference "subsec:configuring-viewers"
14231
14232 \end_inset
14233
14234 , where the necessary configuration steps in your viewer – needed both with
14235  the automatic and the manual setup – are described.
14236 \end_layout
14237
14238 \begin_layout Subsection
14239 Manual setup
14240 \end_layout
14241
14242 \begin_layout Standard
14243 \SpecialChar LaTeX
14244  provides several different methods for reverse search.
14245  Some are built-in in the 
14246 \begin_inset Flex Code
14247 status collapsed
14248
14249 \begin_layout Plain Layout
14250 latex/pdflatex
14251 \end_layout
14252
14253 \end_inset
14254
14255  program, some are provided by external packages.
14256  Your choice depends on whether your \SpecialChar LaTeX
14257  distribution already provides a given
14258  method (the built-in methods are rather new) and whether your viewer can
14259  cope with it.
14260  The available methods are described in the following.
14261 \end_layout
14262
14263 \begin_layout Subsubsection*
14264 Built-in DVI-search via src-specials (DVI only) 
14265 \end_layout
14266
14267 \begin_layout Standard
14268 This method provides the DVI file with the necessary information for reverse
14269  search.
14270  It is available in \SpecialChar LaTeX
14271  since quite some time (any somewhat recent \SpecialChar LaTeX
14272  distribution
14273  should include it), and it works reliably.
14274  To enable it, change the 
14275 \begin_inset Flex Noun
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 La
14280 \family sans
14281 TeX
14282 \family default
14283  (plain)->DVI
14284 \end_layout
14285
14286 \end_inset
14287
14288  or 
14289 \begin_inset Flex Noun
14290 status collapsed
14291
14292 \begin_layout Plain Layout
14293 La
14294 \family sans
14295 TeX
14296 \family default
14297  (plain)->DraftDVI
14298 \end_layout
14299
14300 \end_inset
14301
14302  converter in 
14303 \begin_inset Flex Noun
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 Preferences\SpecialChar menuseparator
14308 File Handling\SpecialChar menuseparator
14309 Converters
14310 \end_layout
14311
14312 \end_inset
14313
14314  to 
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 latex -src-specials $$i
14320 \end_layout
14321
14322 \end_inset
14323
14324 .
14325  If this doesn't work, check if your \SpecialChar TeX
14326  engine needs different options (the
14327  syntax might differ in some distributions).
14328 \end_layout
14329
14330 \begin_layout Subsubsection*
14331 External Packages (PDFSync and scrltx) 
14332 \end_layout
14333
14334 \begin_layout Standard
14335 The packages 
14336 \emph on
14337 pdfsync
14338 \emph default
14339  and 
14340 \emph on
14341 scrltx
14342 \emph default
14343  provide reverse search facility for PDF output (via pdflatex) and DVI output,
14344  respectively.
14345  In order to enable it, load the packages in the \SpecialChar LyX
14346  preamble: 
14347 \end_layout
14348
14349 \begin_layout Itemize
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354
14355 \backslash
14356 usepackage{pdfsync}
14357 \end_layout
14358
14359 \end_inset
14360
14361  for reverse PDF search,
14362 \end_layout
14363
14364 \begin_layout Itemize
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369
14370 \backslash
14371 usepackage[active]{srcltx}
14372 \end_layout
14373
14374 \end_inset
14375
14376  for reverse DVI search.
14377 \end_layout
14378
14379 \begin_layout Standard
14380 If you want to be able to perform both DVI and PDF reverse searches, you
14381  can also insert in the preamble the following lines
14382 \end_layout
14383
14384 \begin_layout LyX-Code
14385
14386 \backslash
14387 usepackage{ifpdf}
14388 \begin_inset Newline newline
14389 \end_inset
14390
14391
14392 \backslash
14393 ifpdf
14394 \begin_inset Newline newline
14395 \end_inset
14396
14397   
14398 \backslash
14399 usepackage{pdfsync}
14400 \begin_inset Newline newline
14401 \end_inset
14402
14403
14404 \backslash
14405 else
14406 \begin_inset Newline newline
14407 \end_inset
14408
14409   
14410 \backslash
14411 usepackage[active]{srcltx}
14412 \begin_inset Newline newline
14413 \end_inset
14414
14415
14416 \backslash
14417 fi
14418 \end_layout
14419
14420 \begin_layout Standard
14421 This way, you can preview the file as either DVI or PDF (pdflatex) and the
14422  right package will be used.
14423 \end_layout
14424
14425 \begin_layout Standard
14426 Note that PDFSync might affect the output layout of your document.
14427  It is therefore advised to disable PDFsync for final documents.
14428 \end_layout
14429
14430 \begin_layout Subsubsection*
14431 Built-in reverse search via Sync\SpecialChar TeX
14432  (DVI and PDF) 
14433 \end_layout
14434
14435 \begin_layout Standard
14436 Recent versions of 
14437 \begin_inset Flex Code
14438 status collapsed
14439
14440 \begin_layout Plain Layout
14441 (pdf)latex
14442 \end_layout
14443
14444 \end_inset
14445
14446  have built-in support for both PDF and DVI reverse search.
14447  This so-called 
14448 \emph on
14449 Sync\SpecialChar TeX
14450
14451 \emph default
14452  facility is basically the result of the integration of the PDFSync package
14453  to the pdftex program and its merge with the 
14454 \emph on
14455 scr-specials
14456 \emph default
14457  approach.
14458  You need at least \SpecialChar TeX
14459 Live 2008 or a recent Mik\SpecialChar TeX
14460  distribution in order to use
14461  it.
14462 \begin_inset Foot
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 For some reason, Mik\SpecialChar TeX
14467  does not understand/obey the command \SpecialChar LyX
14468  inserts into
14469  the preamble when you check the "Enable Forward/Reverse Search" button
14470  in the toolbar and does not generate the necessary info.
14471 \end_layout
14472
14473 \begin_layout Plain Layout
14474 The generation of the required info can be forced by changing the converter
14475  "\SpecialChar LaTeX
14476  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
14477  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
14478  the -synctex=1 switch).
14479 \end_layout
14480
14481 \end_inset
14482
14483  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
14484  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
14485  already provide Sync\SpecialChar TeX
14486  support.
14487 \end_layout
14488
14489 \begin_layout Standard
14490 To enable Sync\SpecialChar TeX
14491  for DVI output, change the 
14492 \begin_inset Flex Noun
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496 La
14497 \family sans
14498 TeX
14499 \family default
14500  (plain) -> DVI
14501 \end_layout
14502
14503 \end_inset
14504
14505  or 
14506 \begin_inset Flex Noun
14507 status collapsed
14508
14509 \begin_layout Plain Layout
14510 La
14511 \family sans
14512 TeX
14513 \family default
14514  (plain) -> DraftDVI
14515 \end_layout
14516
14517 \end_inset
14518
14519  converter in 
14520 \begin_inset Flex Noun
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 Preferences\SpecialChar menuseparator
14525 File Handling\SpecialChar menuseparator
14526 Converters
14527 \end_layout
14528
14529 \end_inset
14530
14531  to 
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536 latex -synctex=1 $$i
14537 \end_layout
14538
14539 \end_inset
14540
14541 , and for PDF output, change the 
14542 \begin_inset Flex Noun
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 La
14547 \family sans
14548 TeX
14549 \family default
14550  (pdflatex) -> PDF (pdflatex)
14551 \end_layout
14552
14553 \end_inset
14554
14555  converter to 
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560 pdflatex -synctex=1 $$i
14561 \end_layout
14562
14563 \end_inset
14564
14565 .
14566  Should your viewer not be considered in the following description, or in
14567  case of missing success, please check the documentation of your viewer
14568  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
14569 .
14570 \begin_inset Foot
14571 status collapsed
14572
14573 \begin_layout Plain Layout
14574 Note that the option 
14575 \begin_inset Flex Code
14576 status collapsed
14577
14578 \begin_layout Plain Layout
14579 -synctex=1
14580 \end_layout
14581
14582 \end_inset
14583
14584  option enables gzip compression.
14585  If your viewer does not support it, you should instead use 
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 -synctex=-1
14591 \end_layout
14592
14593 \end_inset
14594
14595 .
14596 \end_layout
14597
14598 \end_inset
14599
14600
14601 \end_layout
14602
14603 \begin_layout Subsection
14604 Configuring and using specific viewers
14605 \begin_inset CommandInset label
14606 LatexCommand label
14607 name "subsec:configuring-viewers"
14608
14609 \end_inset
14610
14611
14612 \end_layout
14613
14614 \begin_layout Subsubsection*
14615 Xdvi (all platforms)
14616 \end_layout
14617
14618 \begin_layout Standard
14619 If you use 
14620 \begin_inset Flex Code
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624 xdvi
14625 \end_layout
14626
14627 \end_inset
14628
14629 , you don't need to do anything else for performing a reverse DVI search,
14630  as \SpecialChar LyX
14631  already provides the necessary hooks for automatically using the 
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 lyxclient
14637 \end_layout
14638
14639 \end_inset
14640
14641  program.
14642  Just setup your document as described above (reverse search is triggered
14643  by Ctrl-click or Alt-click on Mac OSX, respectively).
14644 \end_layout
14645
14646 \begin_layout Standard
14647 However, if for whatever reason you want to use the named pipe instead of
14648  the socket for communicating with \SpecialChar LyX
14649 , simply change the DVI viewer in 
14650 \begin_inset Flex Noun
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 Preferences\SpecialChar menuseparator
14655 File Handling\SpecialChar menuseparator
14656 File formats
14657 \end_layout
14658
14659 \end_inset
14660
14661  to
14662 \begin_inset Foot
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 On Mac OSX you have to use 
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
14672 \end_layout
14673
14674 \end_inset
14675
14676
14677 \end_layout
14678
14679 \end_inset
14680
14681  
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 xdvi -editor "lyxeditor.sh %f %l"
14687 \end_layout
14688
14689 \end_inset
14690
14691 , where 
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 lyxeditor.sh
14697 \end_layout
14698
14699 \end_inset
14700
14701  is a suitable script.
14702  For example, a minimal shell script is the following one:
14703 \end_layout
14704
14705 \begin_layout LyX-Code
14706 #!/bin/sh
14707 \begin_inset Newline newline
14708 \end_inset
14709
14710 LYXPIPE="/path/to/lyxpipe"
14711 \begin_inset Newline newline
14712 \end_inset
14713
14714 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
14715 \begin_inset Newline newline
14716 \end_inset
14717
14718 echo "$COMMAND" > "${LYXPIPE}".in || exit
14719 \begin_inset Newline newline
14720 \end_inset
14721
14722 read TMP < "${LYXPIPE}".out || exit
14723 \end_layout
14724
14725 \begin_layout Standard
14726 where 
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731 /path/to/lyxpipe
14732 \end_layout
14733
14734 \end_inset
14735
14736  is the LyXServer pipe path specified in 
14737 \begin_inset Flex Noun
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741 Preferences\SpecialChar menuseparator
14742 Paths
14743 \end_layout
14744
14745 \end_inset
14746
14747 .
14748 \begin_inset Foot
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752 In the 
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 development/tools
14758 \end_layout
14759
14760 \end_inset
14761
14762  folder of a source distribution you can find a 
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 lyxeditor
14768 \end_layout
14769
14770 \end_inset
14771
14772  script which is able to locate the 
14773 \emph on
14774 lyxpipe
14775 \emph default
14776  based on your preferences.
14777 \end_layout
14778
14779 \end_inset
14780
14781
14782 \end_layout
14783
14784 \begin_layout Subsubsection*
14785 MacDviX (Mac OSX)
14786 \end_layout
14787
14788 \begin_layout Standard
14789 At the end of 
14790 \begin_inset Flex Code
14791 status collapsed
14792
14793 \begin_layout Plain Layout
14794 /Applications/MacDviX_Folder/calleditor.script
14795 \end_layout
14796
14797 \end_inset
14798
14799 , add the following lines:
14800 \end_layout
14801
14802 \begin_layout LyX-Code
14803 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
14804 \begin_inset Newline newline
14805 \end_inset
14806
14807 exit 1
14808 \end_layout
14809
14810 \begin_layout Standard
14811 Modify the lines accordingly if you install \SpecialChar LyX
14812  somewhere else than in the
14813  Applications folder.
14814 \end_layout
14815
14816 \begin_layout Standard
14817 Reverse search is triggered by Alt-click (OPTION-click).
14818 \end_layout
14819
14820 \begin_layout Subsubsection*
14821 Skim (Mac OSX)
14822 \end_layout
14823
14824 \begin_layout Standard
14825 Enter 
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 open -a Skim.app $$i
14831 \end_layout
14832
14833 \end_inset
14834
14835  to the viewer setting in 
14836 \begin_inset Flex Noun
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Preferences\SpecialChar menuseparator
14841 File Handling\SpecialChar menuseparator
14842 File formats\SpecialChar menuseparator
14843 PDF (pdflatex)
14844 \end_layout
14845
14846 \end_inset
14847
14848 , and then in 
14849 \begin_inset Flex Noun
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 Skim\SpecialChar menuseparator
14854 Preferences\SpecialChar menuseparator
14855 Sync
14856 \end_layout
14857
14858 \end_inset
14859
14860  choose 
14861 \begin_inset Flex Noun
14862 status collapsed
14863
14864 \begin_layout Plain Layout
14865 custom
14866 \end_layout
14867
14868 \end_inset
14869
14870  preset and enter command 
14871 \begin_inset Flex Noun
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 /Applications/\SpecialChar LyX
14876 .app/Contents/MacOS/lyxeditor
14877 \end_layout
14878
14879 \end_inset
14880
14881 .
14882 \end_layout
14883
14884 \begin_layout Standard
14885 Reverse search is triggered by COMMAND-SHIFT-click
14886 \end_layout
14887
14888 \begin_layout Subsubsection*
14889 Evince (GNOME)
14890 \end_layout
14891
14892 \begin_layout Standard
14893 Reverse search with evince does not work out of the box, but it can be achieved
14894  by means of some third party helper scripts.
14895  Please refer to 
14896 \begin_inset CommandInset href
14897 LatexCommand href
14898 target "https://wiki.lyx.org/LyX/SyncTeX"
14899 literal "false"
14900
14901 \end_inset
14902
14903  for details.
14904 \end_layout
14905
14906 \begin_layout Subsubsection*
14907 Okular (KDE)
14908 \end_layout
14909
14910 \begin_layout Standard
14911 Go to 
14912 \begin_inset Flex Noun
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Settings\SpecialChar menuseparator
14917 Configure Okular\SpecialChar menuseparator
14918 Editor
14919 \end_layout
14920
14921 \end_inset
14922
14923  and select LyX
14924 \begin_inset Quotes erd
14925 \end_inset
14926
14927  as editor.
14928  This inserts the appropriate command (
14929 \begin_inset Flex Code
14930 status collapsed
14931
14932 \begin_layout Plain Layout
14933 lyxclient -g %f %l
14934 \end_layout
14935
14936 \end_inset
14937
14938 ).
14939 \end_layout
14940
14941 \begin_layout Standard
14942 Reverse search is triggered by SHIFT-click.
14943
14944 \change_inserted -712698321 1578211026
14945  Note that this only works if Okular is in 
14946 \begin_inset Quotes eld
14947 \end_inset
14948
14949 Browse
14950 \begin_inset Quotes erd
14951 \end_inset
14952
14953  mode (i.
14954 \begin_inset space \thinspace{}
14955 \end_inset
14956
14957 e., the hand symbol is clicked).
14958 \change_unchanged
14959
14960 \end_layout
14961
14962 \begin_layout Subsubsection*
14963 Qpdfview (Unix)
14964 \end_layout
14965
14966 \begin_layout Standard
14967 Qpdfview supports Sync\SpecialChar TeX
14968  since version 0.3.5.
14969  Go to 
14970 \begin_inset Flex Noun
14971 status collapsed
14972
14973 \begin_layout Plain Layout
14974 Edit\SpecialChar menuseparator
14975 Settings\SpecialChar menuseparator
14976 Behavior
14977 \end_layout
14978
14979 \end_inset
14980
14981 , click on the input field of the 
14982 \begin_inset Quotes eld
14983 \end_inset
14984
14985 Source editor
14986 \begin_inset Quotes erd
14987 \end_inset
14988
14989  item and add the command 
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 lyxclient -g %1 %2
14995 \end_layout
14996
14997 \end_inset
14998
14999 .
15000 \end_layout
15001
15002 \begin_layout Standard
15003 Reverse search is triggered by double-click or, in more recent versions,
15004  by context menu.
15005 \end_layout
15006
15007 \begin_layout Subsubsection*
15008 YAP (Windows)
15009 \end_layout
15010
15011 \begin_layout Standard
15012 Launch yap, choose its 
15013 \begin_inset Flex Noun
15014 status collapsed
15015
15016 \begin_layout Plain Layout
15017 View\SpecialChar menuseparator
15018 Options
15019 \end_layout
15020
15021 \end_inset
15022
15023  menu and select the 
15024 \begin_inset Quotes eld
15025 \end_inset
15026
15027 Inverse DVI Search
15028 \begin_inset Quotes erd
15029 \end_inset
15030
15031  tab.
15032  Click on the 
15033 \begin_inset Quotes eld
15034 \end_inset
15035
15036 New\SpecialChar ldots
15037
15038 \begin_inset Quotes erd
15039 \end_inset
15040
15041  button and, in the window that opens, enter 
15042 \begin_inset Quotes eld
15043 \end_inset
15044
15045 \SpecialChar LyX
15046  Editor
15047 \begin_inset Quotes erd
15048 \end_inset
15049
15050  (or any other name you like) in the 
15051 \begin_inset Quotes eld
15052 \end_inset
15053
15054 Name:
15055 \begin_inset Quotes erd
15056 \end_inset
15057
15058  field.
15059  Now click on the button labeled 
15060 \begin_inset Quotes eld
15061 \end_inset
15062
15063 \SpecialChar ldots
15064
15065 \begin_inset Quotes erd
15066 \end_inset
15067
15068  to open a file dialog and navigate to the directory containing the batch
15069  file 
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 lyxeditor.bat
15075 \end_layout
15076
15077 \end_inset
15078
15079  (see below).
15080  Select 
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 lyxeditor.bat
15086 \end_layout
15087
15088 \end_inset
15089
15090  and then specify the program arguments as 
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 %f %l
15096 \end_layout
15097
15098 \end_inset
15099
15100 .
15101  The 
15102 \begin_inset Flex Code
15103 status collapsed
15104
15105 \begin_layout Plain Layout
15106 lyxeditor.bat
15107 \end_layout
15108
15109 \end_inset
15110
15111  wrapper is used for communicating with \SpecialChar LyX
15112  through the 
15113 \emph on
15114 lyxpipe
15115 \emph default
15116  and is as follows:
15117 \end_layout
15118
15119 \begin_layout LyX-Code
15120 @echo off
15121 \begin_inset Newline newline
15122 \end_inset
15123
15124 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
15125 \backslash
15126
15127 \backslash
15128 .
15129 \backslash
15130 pipe
15131 \backslash
15132 lyxpipe.in
15133 \begin_inset Newline newline
15134 \end_inset
15135
15136 type 
15137 \backslash
15138
15139 \backslash
15140 .
15141 \backslash
15142 pipe
15143 \backslash
15144 lyxpipe.out
15145 \end_layout
15146
15147 \begin_layout Standard
15148 Make sure that the \SpecialChar LyX
15149 Server pipe path you specified in \SpecialChar LyX
15150  is 
15151 \begin_inset Flex Code
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155
15156 \backslash
15157
15158 \backslash
15159 .
15160 \backslash
15161 pipe
15162 \backslash
15163 lyxpipe
15164 \end_layout
15165
15166 \end_inset
15167
15168 , otherwise change the 
15169 \begin_inset Flex Code
15170 status collapsed
15171
15172 \begin_layout Plain Layout
15173 lyxeditor.bat
15174 \end_layout
15175
15176 \end_inset
15177
15178  wrapper accordingly.
15179 \end_layout
15180
15181 \begin_layout Standard
15182 In yap, reverse search is triggered by double-click.
15183 \end_layout
15184
15185 \begin_layout Subsubsection*
15186 SumatraPDF (Windows)
15187 \end_layout
15188
15189 \begin_layout Standard
15190 In order to use SumatraPDF for inverse search, enter 
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
15196 \end_layout
15197
15198 \end_inset
15199
15200  in the viewer setting in 
15201 \begin_inset Flex Noun
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 Preferences\SpecialChar menuseparator
15206 File Handling\SpecialChar menuseparator
15207 File formats\SpecialChar menuseparator
15208 PDF (pdflatex)
15209 \end_layout
15210
15211 \end_inset
15212
15213 , where 
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 lyxeditor.bat
15219 \end_layout
15220
15221 \end_inset
15222
15223  is the previous wrapper.
15224  If SumatraPDF.exe is not in your command PATH, use its full file name.
15225 \end_layout
15226
15227 \begin_layout Standard
15228 Reverse search is triggered by double-click.
15229 \end_layout
15230
15231 \begin_layout Subsubsection*
15232 YAP (Cygwin)
15233 \end_layout
15234
15235 \begin_layout Standard
15236 First of all, make sure that yap is your default DVI viewer in the Windows
15237  environment, then launch it, choose its 
15238 \begin_inset Flex Noun
15239 status collapsed
15240
15241 \begin_layout Plain Layout
15242 View\SpecialChar menuseparator
15243 Options
15244 \end_layout
15245
15246 \end_inset
15247
15248  menu and select the 
15249 \begin_inset Quotes eld
15250 \end_inset
15251
15252 Inverse DVI Search
15253 \begin_inset Quotes erd
15254 \end_inset
15255
15256  tab.
15257  Click on the 
15258 \begin_inset Quotes eld
15259 \end_inset
15260
15261 New\SpecialChar ldots
15262
15263 \begin_inset Quotes erd
15264 \end_inset
15265
15266  button and, in the window that opens, enter 
15267 \begin_inset Quotes eld
15268 \end_inset
15269
15270 \SpecialChar LyX
15271  Editor
15272 \begin_inset Quotes erd
15273 \end_inset
15274
15275  (or any other name you like) in the 
15276 \begin_inset Quotes eld
15277 \end_inset
15278
15279 Name:
15280 \begin_inset Quotes erd
15281 \end_inset
15282
15283  field.
15284  Now click on the button labeled 
15285 \begin_inset Quotes eld
15286 \end_inset
15287
15288 \SpecialChar ldots
15289
15290 \begin_inset Quotes erd
15291 \end_inset
15292
15293  to open a file dialog and navigate to the directory containing the 
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 lyxeditor.exe
15299 \end_layout
15300
15301 \end_inset
15302
15303  program (which is installed by default on Cygwin along with the \SpecialChar LyX
15304  executable).
15305  Select 
15306 \begin_inset Flex Code
15307 status collapsed
15308
15309 \begin_layout Plain Layout
15310 lyxeditor.exe
15311 \end_layout
15312
15313 \end_inset
15314
15315  and then specify the program arguments as 
15316 \begin_inset Flex Code
15317 status collapsed
15318
15319 \begin_layout Plain Layout
15320 -g %f %l
15321 \end_layout
15322
15323 \end_inset
15324
15325 .
15326  In this way, you will be using the 
15327 \emph on
15328 lyxsocket
15329 \emph default
15330  for communicating with \SpecialChar LyX
15331 .
15332  If, for whatever reason, you want to use the 
15333 \emph on
15334 lyxpipe
15335 \emph default
15336 , omit the 
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 -g
15342 \end_layout
15343
15344 \end_inset
15345
15346  option and be sure to specify the \SpecialChar LyX
15347 Server pipe path in the \SpecialChar LyX
15348  preferences.
15349 \end_layout
15350
15351 \begin_layout Standard
15352 In yap, reverse search is triggered by double-click.
15353 \end_layout
15354
15355 \begin_layout Subsubsection*
15356 SumatraPDF (Cygwin)
15357 \end_layout
15358
15359 \begin_layout Standard
15360 In order to use SumatraPDF for inverse search, enter 
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 SumatraPDF -inverse-search "lyxeditor -g %f %l"
15366 \end_layout
15367
15368 \end_inset
15369
15370  in the viewer setting in 
15371 \begin_inset Flex Noun
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 Preferences\SpecialChar menuseparator
15376 File Handling\SpecialChar menuseparator
15377 File formats\SpecialChar menuseparator
15378 PDF (pdflatex)
15379 \end_layout
15380
15381 \end_inset
15382
15383 .
15384  If SumatraPDF.exe is not in your command PATH, use its full posix path.
15385  The 
15386 \begin_inset Flex Code
15387 status collapsed
15388
15389 \begin_layout Plain Layout
15390 -g
15391 \end_layout
15392
15393 \end_inset
15394
15395  enables communication via the 
15396 \emph on
15397 lyxsocket
15398 \emph default
15399 .
15400  Again, omit the 
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 -g
15406 \end_layout
15407
15408 \end_inset
15409
15410  option if you want to use the 
15411 \emph on
15412 lyxpipe
15413 \emph default
15414 , and be sure to specify the \SpecialChar LyX
15415 Server pipe path in the \SpecialChar LyX
15416  preferences.
15417 \end_layout
15418
15419 \begin_layout Standard
15420 Reverse search is triggered by double-click.
15421 \end_layout
15422
15423 \begin_layout Section
15424 Forward search
15425 \end_layout
15426
15427 \begin_layout Standard
15428 Forward search is, as the name implies, in a sense the 
15429 \begin_inset Quotes eld
15430 \end_inset
15431
15432 opposite
15433 \begin_inset Quotes erd
15434 \end_inset
15435
15436  of reverse search.
15437  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
15438 .
15439  If forward search is set up (as described in what follows), you can put
15440  the cursor anywhere in your \SpecialChar LyX
15441  document, and hit 
15442 \begin_inset Flex Noun
15443 status collapsed
15444
15445 \begin_layout Plain Layout
15446 Navigate\SpecialChar menuseparator
15447 Forward search
15448 \end_layout
15449
15450 \end_inset
15451
15452  (or select 
15453 \begin_inset Flex Noun
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 Forward search
15458 \end_layout
15459
15460 \end_inset
15461
15462  in the context menu via right mouse click), and then the viewer will jump
15463  to that position as well.
15464  This implies, of course, that your viewer supports this function.
15465 \end_layout
15466
15467 \begin_layout Standard
15468 To make forward search possible, you first need to provide the generated
15469  output PDF/DVI file with additional information about the \SpecialChar TeX
15470  sources.
15471  This can be done via the methods described in the section 
15472 \begin_inset CommandInset ref
15473 LatexCommand ref
15474 reference "subsec:rev-search"
15475
15476 \end_inset
15477
15478 .
15479 \end_layout
15480
15481 \begin_layout Standard
15482 Additionally, you need to configure \SpecialChar LyX
15483  for using your viewers in 
15484 \begin_inset Flex Noun
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 Tools\SpecialChar menuseparator
15489 Preferences\SpecialChar menuseparator
15490 Output\SpecialChar menuseparator
15491 General
15492 \end_layout
15493
15494 \end_inset
15495
15496 .
15497  We provide a range of tested configurations for some viewers, which you
15498  can select from the drop down list.
15499  If none of these configurations suits you, you have to find out and enter
15500  a suitable configuration yourself.
15501  The definition syntax uses the following placeholders:
15502 \end_layout
15503
15504 \begin_layout Itemize
15505 \noindent
15506 \begin_inset Flex Code
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 $$n
15511 \end_layout
15512
15513 \end_inset
15514
15515 : row number
15516 \end_layout
15517
15518 \begin_layout Itemize
15519 \noindent
15520 \begin_inset Flex Code
15521 status collapsed
15522
15523 \begin_layout Plain Layout
15524 $$t
15525 \end_layout
15526
15527 \end_inset
15528
15529 : name of the (temporary) exported .tex file (without path)
15530 \end_layout
15531
15532 \begin_layout Itemize
15533 \noindent
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 $$f
15539 \end_layout
15540
15541 \end_inset
15542
15543 : name of the (temporary) exported .tex file (including path)
15544 \end_layout
15545
15546 \begin_layout Itemize
15547 \noindent
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 $$o
15553 \end_layout
15554
15555 \end_inset
15556
15557 : name of the exported output file (either dvi or pdf, depending on which
15558  one exists in the temporary directory)
15559 \end_layout
15560
15561 \begin_layout Standard
15562 Note that only some of the viewers provide full and usable forward search
15563  functionality out of the box, among them yap, xdvi, okular
15564 \begin_inset Foot
15565 status collapsed
15566
15567 \begin_layout Plain Layout
15568 You might want to set 
15569 \begin_inset Flex Code
15570 status collapsed
15571
15572 \begin_layout Plain Layout
15573 okular --unique
15574 \end_layout
15575
15576 \end_inset
15577
15578  in 
15579 \begin_inset Flex Noun
15580 status collapsed
15581
15582 \begin_layout Plain Layout
15583 Tools\SpecialChar menuseparator
15584 Preferences\SpecialChar menuseparator
15585 File Handling\SpecialChar menuseparator
15586 File
15587 \begin_inset space ~
15588 \end_inset
15589
15590 Formats
15591 \end_layout
15592
15593 \end_inset
15594
15595
15596 \end_layout
15597
15598 \end_inset
15599
15600 , qpdfview, and SumatraPDF
15601 \begin_inset Foot
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 SumatraPDF can also use DDE commands through the external program CMCDDE
15606  — downloadable from 
15607 \begin_inset CommandInset href
15608 LatexCommand href
15609 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
15610 literal "false"
15611
15612 \end_inset
15613
15614
15615 \end_layout
15616
15617 \end_inset
15618
15619 .
15620  Others, such as evince
15621 \begin_inset Foot
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 Forward search with evince can be achieved by means of third party helper
15626  scripts.
15627  Please refer to 
15628 \begin_inset CommandInset href
15629 LatexCommand href
15630 target "https://wiki.lyx.org/LyX/SyncTeX"
15631 literal "false"
15632
15633 \end_inset
15634
15635  for details.
15636 \end_layout
15637
15638 \end_inset
15639
15640 , require some extra tools in order to use forward search.
15641  While many of the widespread PDF viewers (most notably Adobe Reader) do
15642  not support forward search at all, some other viewers – e.
15643 \begin_inset space \thinspace{}
15644 \end_inset
15645
15646 g.
15647  xpdf – allow at least to reload the document and jump to a specific page
15648  of the file, so you can at least navigate 
15649 \begin_inset Quotes eld
15650 \end_inset
15651
15652 near
15653 \begin_inset Quotes erd
15654 \end_inset
15655
15656 .
15657  This latter functionality is provided by an external call of synctex (see
15658  the predefined example configurations).
15659  
15660 \end_layout
15661
15662 \begin_layout Standard
15663 Forward search works both with DVI and PDF output.
15664  \SpecialChar LyX
15665  simply checks which preview format you have used before (i.
15666 \begin_inset space \thinspace{}
15667 \end_inset
15668
15669 e., which format is already there in the temporary directory) and chooses
15670  the appropriate configuration for the respective format.
15671 \end_layout
15672
15673 \begin_layout Chapter
15674 Special Document Classes
15675 \end_layout
15676
15677 \begin_layout Section
15678
15679 \change_deleted 564990737 1669742044
15680 A&A Paper
15681 \end_layout
15682
15683 \begin_layout Standard
15684
15685 \change_deleted 564990737 1669742044
15686 by 
15687 \noun on
15688 Peter Sütterlin
15689 \end_layout
15690
15691 \begin_layout Subsection
15692
15693 \change_deleted 564990737 1669742044
15694 Introduction
15695 \end_layout
15696
15697 \begin_layout Standard
15698
15699 \change_deleted 564990737 1669742044
15700 This section describes how \SpecialChar LyX
15701  can be used to write articles for submission
15702  to the scientific journal 
15703 \emph on
15704 Astronomy and Astrophysics
15705 \emph default
15706  (
15707 \begin_inset Flex URL
15708 status collapsed
15709
15710 \begin_layout Plain Layout
15711
15712 https://www.aanda.org/
15713 \end_layout
15714
15715 \end_inset
15716
15717 ) using Version 5.01 of the document class 
15718 \family typewriter
15719 aa.cls
15720 \family default
15721 .
15722  This package can be downloaded from the ftp site
15723 \end_layout
15724
15725 \begin_layout Standard
15726
15727 \change_deleted 564990737 1669742044
15728 \begin_inset VSpace medskip
15729 \end_inset
15730
15731
15732 \end_layout
15733
15734 \begin_layout Standard
15735 \align center
15736
15737 \change_deleted 564990737 1669742044
15738 \begin_inset Flex URL
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742
15743 ftp://ftp.edpsciences.org/pub/aa/readme.html
15744 \end_layout
15745
15746 \end_inset
15747
15748
15749 \end_layout
15750
15751 \begin_layout Standard
15752
15753 \change_deleted 564990737 1669742044
15754 \begin_inset VSpace medskip
15755 \end_inset
15756
15757
15758 \end_layout
15759
15760 \begin_layout Standard
15761
15762 \change_deleted 564990737 1669742044
15763 A manual comes together with that package, and this text is not meant to
15764  replace the original manual but is merely a short guide in how to realize
15765  the correct form of your paper.
15766  
15767 \end_layout
15768
15769 \begin_layout Standard
15770
15771 \change_deleted 564990737 1669742044
15772 Please note that the publisher of the journal was changed from Springer
15773  to EDP Sciences starting January 1, 2001.
15774  That change involved also some slight changes to the style files, namely
15775  the removal of the thesaurus command.
15776  The \SpecialChar LyX
15777  class aa supports the newest version of these style files, V 5.01.
15778  If you have an older version installed, please upgrade.
15779  For compatibility, the old (version 4) layout has been kept as 
15780 \family sans
15781 article (A&A V4)
15782 \family default
15783 .
15784  Please refer to the comments in 
15785 \family typewriter
15786 \SpecialChar LyX
15787 Dir/layouts/aapaper.layout
15788 \family default
15789 .
15790 \end_layout
15791
15792 \begin_layout Subsection
15793
15794 \change_deleted 564990737 1669742044
15795 Getting started
15796 \end_layout
15797
15798 \begin_layout Standard
15799
15800 \change_deleted 564990737 1669742044
15801 It is recommended you start from the example template distributed with \SpecialChar LyX
15802 .
15803  If you are not using a template, note the following settings:
15804 \end_layout
15805
15806 \begin_layout Itemize
15807
15808 \change_deleted 564990737 1669742044
15809 Select 
15810 \family sans
15811 article (A&A)
15812 \family default
15813  in the 
15814 \family sans
15815 Document\SpecialChar menuseparator
15816 Settings
15817 \family default
15818  dialog (OK, that one was obvious).
15819 \end_layout
15820
15821 \begin_layout Itemize
15822
15823 \change_deleted 564990737 1669742044
15824 Don't change the option 
15825 \family sans
15826 Page
15827 \begin_inset space ~
15828 \end_inset
15829
15830 style
15831 \family default
15832 : Leave it set to 
15833 \family sans
15834 default
15835 \family default
15836 .
15837  The whole layout is done by the macros, you shouldn't change anything.
15838 \end_layout
15839
15840 \begin_layout Subsection
15841
15842 \change_deleted 564990737 1669742044
15843 The header block
15844 \end_layout
15845
15846 \begin_layout Standard
15847
15848 \change_deleted 564990737 1669742044
15849 First thing to enter is the header information.
15850  It consists of seven entries, of which some are optional.
15851  They are
15852 \end_layout
15853
15854 \begin_layout Itemize
15855
15856 \change_deleted 564990737 1669742044
15857
15858 \family sans
15859 Title
15860 \family default
15861 : [required] 
15862 \end_layout
15863
15864 \begin_layout Itemize
15865
15866 \change_deleted 564990737 1669742044
15867
15868 \family sans
15869 Subtitle
15870 \family default
15871 : [optional] 
15872 \end_layout
15873
15874 \begin_layout Itemize
15875
15876 \change_deleted 564990737 1669742044
15877
15878 \family sans
15879 Author
15880 \family default
15881 : [required]
15882 \end_layout
15883
15884 \begin_layout Itemize
15885
15886 \change_deleted 564990737 1669742044
15887
15888 \family sans
15889 Address
15890 \family default
15891 : [required]
15892 \end_layout
15893
15894 \begin_layout Itemize
15895
15896 \change_deleted 564990737 1669742044
15897
15898 \family sans
15899 Offprints
15900 \family default
15901 : [optional] if more than one author: whom to contact for offprint requests.
15902 \end_layout
15903
15904 \begin_layout Itemize
15905
15906 \change_deleted 564990737 1669742044
15907
15908 \family sans
15909 Mail
15910 \family default
15911 : [optional] mail address for contacts.
15912 \end_layout
15913
15914 \begin_layout Itemize
15915
15916 \change_deleted 564990737 1669742044
15917
15918 \family sans
15919 Date
15920 \family default
15921 : [required].
15922  Suggested format is 
15923 \family typewriter
15924 Received: <date>; Accepted <date> 
15925 \end_layout
15926
15927 \begin_layout Standard
15928
15929 \change_deleted 564990737 1669742044
15930 There is no need to issue the 
15931 \family typewriter
15932
15933 \backslash
15934 maketitle
15935 \family default
15936  command, this is done automatically by \SpecialChar LyX
15937  when the header is finished.
15938  Although the order of the single header entries doesn't matter it is advised
15939  to keep the above sequence, just to get the best optics and meets the layout
15940  of the real document.
15941 \end_layout
15942
15943 \begin_layout Standard
15944
15945 \change_deleted 564990737 1669742044
15946 If you want to place footnotes in the header block, e.
15947 \begin_inset space \thinspace{}
15948 \end_inset
15949
15950 g.
15951 \begin_inset space \space{}
15952 \end_inset
15953
15954 to state your present address, just use the standard footnote via the menu
15955  
15956 \family sans
15957 Insert\SpecialChar menuseparator
15958 Footnote.
15959
15960 \family default
15961  \SpecialChar LyX
15962  will automagically use the term 
15963 \family typewriter
15964
15965 \backslash
15966 thanks{}
15967 \family default
15968  in that case.
15969 \end_layout
15970
15971 \begin_layout Standard
15972
15973 \change_deleted 564990737 1669742044
15974 Under 
15975 \family sans
15976 Edit\SpecialChar menuseparator
15977 Text Style
15978 \family default
15979 , you'll find two insets which are relevant for the titling:
15980 \end_layout
15981
15982 \begin_layout Itemize
15983
15984 \change_deleted 564990737 1669742044
15985
15986 \family sans
15987 Institute
15988 \family typewriter
15989  
15990 \family default
15991 to mark corresponding author\SpecialChar breakableslash
15992 institute pairs.
15993  The institutes are numbered sequentially as they appear in the 
15994 \family sans
15995 Address
15996 \family default
15997  field, so you have to put a marker to each author.
15998 \end_layout
15999
16000 \begin_layout Itemize
16001
16002 \change_deleted 564990737 1669742044
16003
16004 \family sans
16005 Email
16006 \family default
16007  to supply an email address for fast contact.
16008 \end_layout
16009
16010 \begin_layout Standard
16011
16012 \change_deleted 564990737 1669742044
16013 In addition to these topics, the macros use one additional \SpecialChar LaTeX
16014  command that
16015  has no counterpart in \SpecialChar LyX
16016 :
16017 \end_layout
16018
16019 \begin_layout Itemize
16020
16021 \change_deleted 564990737 1669742044
16022
16023 \family typewriter
16024
16025 \backslash
16026 and
16027 \family default
16028  to separate different names for more than one author and institute, respectivel
16029 y.
16030 \end_layout
16031
16032 \begin_layout Standard
16033
16034 \change_deleted 564990737 1669742044
16035 The appropriate command has to be entered in \SpecialChar LyX
16036  and marked as \SpecialChar LaTeX
16037  code.
16038  See the examples.
16039  
16040 \end_layout
16041
16042 \begin_layout Subsection
16043
16044 \change_deleted 564990737 1669742044
16045 The abstract
16046 \end_layout
16047
16048 \begin_layout Standard
16049
16050 \change_deleted 564990737 1669742044
16051 The abstract should immediately follow the header block.
16052  With version 5 the abstract environment was changed to a command, and there
16053  is now a restriction to only one paragraph.
16054  In addition, it should contain an entry with the keywords.
16055  This is done via the paragraph style 
16056 \family sans
16057 Keywords
16058 \family default
16059 .
16060  Refer to the example paper.
16061 \end_layout
16062
16063 \begin_layout Subsection
16064
16065 \change_deleted 564990737 1669742044
16066 Supported environments
16067 \end_layout
16068
16069 \begin_layout Standard
16070
16071 \change_deleted 564990737 1669742044
16072 The A&A paper layout supports the following environments for structuring
16073  your text:
16074 \end_layout
16075
16076 \begin_layout Itemize
16077
16078 \change_deleted 564990737 1669742044
16079
16080 \family sans
16081 Standard
16082 \end_layout
16083
16084 \begin_layout Itemize
16085
16086 \change_deleted 564990737 1669742044
16087
16088 \family sans
16089 Section
16090 \end_layout
16091
16092 \begin_layout Itemize
16093
16094 \change_deleted 564990737 1669742044
16095
16096 \family sans
16097 Subsection
16098 \end_layout
16099
16100 \begin_layout Itemize
16101
16102 \change_deleted 564990737 1669742044
16103
16104 \family sans
16105 Subsubsection
16106 \end_layout
16107
16108 \begin_layout Itemize
16109
16110 \change_deleted 564990737 1669742044
16111
16112 \family sans
16113 Itemize
16114 \end_layout
16115
16116 \begin_layout Itemize
16117
16118 \change_deleted 564990737 1669742044
16119
16120 \family sans
16121 Enumerate
16122 \end_layout
16123
16124 \begin_layout Itemize
16125
16126 \change_deleted 564990737 1669742044
16127
16128 \family sans
16129 Description
16130 \end_layout
16131
16132 \begin_layout Itemize
16133
16134 \change_deleted 564990737 1669742044
16135
16136 \family sans
16137 Caption
16138 \end_layout
16139
16140 \begin_layout Itemize
16141
16142 \change_deleted 564990737 1669742044
16143
16144 \family sans
16145 Abstract
16146 \end_layout
16147
16148 \begin_layout Itemize
16149
16150 \change_deleted 564990737 1669742044
16151
16152 \family sans
16153 Acknowledgment
16154 \end_layout
16155
16156 \begin_layout Itemize
16157
16158 \change_deleted 564990737 1669742044
16159
16160 \family sans
16161 Bibliography
16162 \end_layout
16163
16164 \begin_layout Itemize
16165
16166 \change_deleted 564990737 1669742044
16167
16168 \family sans
16169 \SpecialChar LaTeX
16170
16171 \end_layout
16172
16173 \begin_layout Subsection
16174
16175 \change_deleted 564990737 1669742044
16176 Commands not supported by \SpecialChar LyX
16177
16178 \end_layout
16179
16180 \begin_layout Standard
16181
16182 \change_deleted 564990737 1669742044
16183 Some commands are not yet supported by the 
16184 \family sans
16185 paper (A&A)
16186 \family default
16187  layout for \SpecialChar LyX
16188 .
16189  Some have already been mentioned.
16190  For the sake of completeness, they are listed all together here:
16191 \end_layout
16192
16193 \begin_layout Itemize
16194
16195 \change_deleted 564990737 1669742044
16196
16197 \family typewriter
16198
16199 \backslash
16200 and
16201 \end_layout
16202
16203 \begin_layout Itemize
16204
16205 \change_deleted 564990737 1669742044
16206
16207 \family typewriter
16208
16209 \backslash
16210 authorrunning
16211 \end_layout
16212
16213 \begin_layout Itemize
16214
16215 \change_deleted 564990737 1669742044
16216
16217 \family typewriter
16218
16219 \backslash
16220 object{}
16221 \end_layout
16222
16223 \begin_layout Itemize
16224
16225 \change_deleted 564990737 1669742044
16226
16227 \family typewriter
16228
16229 \backslash
16230 titlerunning{}
16231 \end_layout
16232
16233 \begin_layout Standard
16234
16235 \change_deleted 564990737 1669742044
16236 If you want to use any of these commands, you have to enter them yourself.
16237  
16238 \series bold
16239 Do not forget to mark them as \SpecialChar LaTeX
16240  code!
16241 \end_layout
16242
16243 \begin_layout Subsection
16244
16245 \change_deleted 564990737 1669742044
16246 Figure and Table Floats
16247 \end_layout
16248
16249 \begin_layout Standard
16250
16251 \change_deleted 564990737 1669742044
16252 \SpecialChar LyX
16253  provides support for the necessary float environments 
16254 \family sans
16255 figure, figure*, table
16256 \family default
16257  and 
16258 \family sans
16259 table*
16260 \family default
16261 , therefore we won't tell much about it here.
16262  Refer to the 
16263 \emph on
16264 User's
16265 \begin_inset space ~
16266 \end_inset
16267
16268 Guide
16269 \emph default
16270 .
16271  Just remember that tables should be left-aligned.
16272  For that, select the table and change the alignment in 
16273 \family sans
16274 Edit\SpecialChar menuseparator
16275 Paragraph
16276 \begin_inset space ~
16277 \end_inset
16278
16279 Settings.
16280 \end_layout
16281
16282 \begin_layout Standard
16283
16284 \change_deleted 564990737 1669742044
16285 There is only one special thing: the figures with caption besides the figure.
16286  To create such a figure, you have to do the following:
16287 \end_layout
16288
16289 \begin_layout Enumerate
16290
16291 \change_deleted 564990737 1669742044
16292 Create a wide figure float: 
16293 \family sans
16294 Insert\SpecialChar menuseparator
16295 Float\SpecialChar menuseparator
16296 Figure
16297 \family default
16298 , then right click in the figure and select 
16299 \family sans
16300 Span
16301 \begin_inset space ~
16302 \end_inset
16303
16304 columns
16305 \family default
16306 .
16307 \end_layout
16308
16309 \begin_layout Enumerate
16310
16311 \change_deleted 564990737 1669742044
16312 Enter your caption text.
16313 \end_layout
16314
16315 \begin_layout Enumerate
16316
16317 \change_deleted 564990737 1669742044
16318 Press 
16319 \family sans
16320 Return
16321 \family default
16322  to move the cursor above the caption.
16323 \end_layout
16324
16325 \begin_layout Enumerate
16326
16327 \change_deleted 564990737 1669742044
16328 Insert your figure
16329 \end_layout
16330
16331 \begin_layout Enumerate
16332
16333 \change_deleted 564990737 1669742044
16334 Position the cursor behind the figure and insert a horizontal fill: 
16335 \family sans
16336 Insert\SpecialChar menuseparator
16337 Special
16338 \begin_inset space ~
16339 \end_inset
16340
16341 Character\SpecialChar menuseparator
16342 Horizontal
16343 \begin_inset space ~
16344 \end_inset
16345
16346 Fill
16347 \family default
16348 .
16349 \end_layout
16350
16351 \begin_layout Enumerate
16352
16353 \change_deleted 564990737 1669742044
16354 Switch to \SpecialChar LaTeX
16355  mode: 
16356 \family sans
16357 M-c
16358 \begin_inset space ~
16359 \end_inset
16360
16361 t
16362 \family default
16363 .
16364 \end_layout
16365
16366 \begin_layout Enumerate
16367
16368 \change_deleted 564990737 1669742044
16369 Enter 
16370 \family typewriter
16371
16372 \backslash
16373 parbox[b]{55mm}{
16374 \family default
16375 .
16376  
16377 \series bold
16378 Do not close the brace!
16379 \end_layout
16380
16381 \begin_layout Enumerate
16382
16383 \change_deleted 564990737 1669742044
16384 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
16385  mode and insert
16386  the closing brace: 
16387 \family sans
16388 M-c
16389 \begin_inset space ~
16390 \end_inset
16391
16392 t
16393 \family default
16394  
16395 \family typewriter
16396 }
16397 \family default
16398 .
16399 \end_layout
16400
16401 \begin_layout Standard
16402
16403 \change_deleted 564990737 1669742044
16404 Also, refer to the figures in the example paper.
16405 \end_layout
16406
16407 \begin_layout Subsection
16408
16409 \change_deleted 564990737 1669742044
16410 Referee layout
16411 \end_layout
16412
16413 \begin_layout Standard
16414
16415 \change_deleted 564990737 1669742044
16416 For submission, the paper has to be formated in a special double-spacing
16417  layout.
16418  For this purpose, you have to give the option 
16419 \family typewriter
16420 referee
16421 \family default
16422  to the document class.
16423  This must be done using the custom class options field in the 
16424 \family sans
16425 Document\SpecialChar menuseparator
16426 Settings
16427 \family default
16428  dialog.
16429  Just enter the string 
16430 \family typewriter
16431 referee
16432 \family default
16433  there.
16434 \end_layout
16435
16436 \begin_layout Subsection
16437
16438 \change_deleted 564990737 1669742044
16439 The example paper
16440 \end_layout
16441
16442 \begin_layout Standard
16443
16444 \change_deleted 564990737 1669742044
16445 The 
16446 \family sans
16447 Examples
16448 \family default
16449  directory contains an example paper written with \SpecialChar LyX
16450 .
16451  It is the example paper from the original macro package, translated to
16452  \SpecialChar LyX
16453 .
16454  Use it for inspiration, and compare the original \SpecialChar LaTeX
16455  code with \SpecialChar LyX
16456  way of writing.
16457 \end_layout
16458
16459 \begin_layout Section
16460 Dinbrief
16461 \end_layout
16462
16463 \begin_layout Standard
16464 The document class 
16465 \family sans
16466 dinbrief
16467 \family default
16468  can be used to type letters according to German conventions.
16469  A template file is included in 
16470 \family typewriter
16471 .../lyx/share/templates
16472 \family default
16473  for you to use as a starting point.
16474 \end_layout
16475
16476 \begin_layout Section
16477 Elsevier Journals
16478 \end_layout
16479
16480 \begin_layout Standard
16481 See the \SpecialChar LyX
16482  template file 
16483 \family typewriter
16484 elsarticle.lyx
16485 \family default
16486 .
16487  It contains all infos you need.
16488 \end_layout
16489
16490 \begin_layout Section
16491
16492 \change_deleted 564990737 1669755802
16493 ijmpc and ijmpd
16494 \end_layout
16495
16496 \begin_layout Standard
16497
16498 \change_deleted 564990737 1669755802
16499 by 
16500 \noun on
16501 Panayotis Papasotiriou
16502 \end_layout
16503
16504 \begin_layout Subsection
16505
16506 \change_deleted 564990737 1669755802
16507 Overview
16508 \end_layout
16509
16510 \begin_layout Standard
16511
16512 \change_deleted 564990737 1669755802
16513 The ijmpc package is a set of macros that facilitates electronic manuscript
16514  submission to the 
16515 \emph on
16516 International Journal of Modern Physics C
16517 \emph default
16518 .
16519  Similarly, the ijmpd package is for creating manuscripts to be submitted
16520  to the 
16521 \emph on
16522 International Journal of Modern Physics D
16523 \emph default
16524 .
16525  Both journals are published by World Scientific.
16526  The corresponding document classes are named 
16527 \family typewriter
16528 ws-ijmpc.cls
16529 \family default
16530  and 
16531 \family typewriter
16532 ws-ijmpd.cls
16533 \family default
16534 , respectively.
16535  These files, together with instructions for the authors, can be downloaded
16536  from the sites 
16537 \begin_inset Flex URL
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541
16542 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
16543 \end_layout
16544
16545 \end_inset
16546
16547  and 
16548 \begin_inset Flex URL
16549 status collapsed
16550
16551 \begin_layout Plain Layout
16552
16553 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
16554 \end_layout
16555
16556 \end_inset
16557
16558 .
16559  Both packages are modified versions of the standard 
16560 \begin_inset Quotes eld
16561 \end_inset
16562
16563 article
16564 \begin_inset Quotes erd
16565 \end_inset
16566
16567  package, and they are almost (but not exactly) identical.
16568  Most of their features are supported by \SpecialChar LyX
16569 .
16570  I have used \SpecialChar LyX
16571  successfully to write articles submitted to both journals
16572  without any problem.
16573 \end_layout
16574
16575 \begin_layout Subsection
16576
16577 \change_deleted 564990737 1669755802
16578 Writing a paper
16579 \end_layout
16580
16581 \begin_layout Standard
16582
16583 \change_deleted 564990737 1669755802
16584 As usual, the easiest way to write a paper is to start with a template.
16585  Click on 
16586 \family sans
16587 File\SpecialChar menuseparator
16588 New from
16589 \family default
16590  
16591 \family sans
16592 Template
16593 \family default
16594 , then choose the 
16595 \family typewriter
16596 ijmpc.lyx
16597 \family default
16598  or 
16599 \family typewriter
16600 ijmpd.lyx
16601 \family default
16602  template.
16603  This will give an (almost) empty document that includes the most common
16604  fields found in a manuscript.
16605  Simply overwrite the existing text (including the brackets, 
16606 \family typewriter
16607 <>
16608 \family default
16609 ) with your text.
16610  You should keep in mind the following remarks.
16611 \end_layout
16612
16613 \begin_layout Enumerate
16614
16615 \change_deleted 564990737 1669755802
16616 \SpecialChar LyX
16617  won't let you change the font size and the page style of the document,
16618  because such modifications are not allowed by both packages.
16619 \end_layout
16620
16621 \begin_layout Enumerate
16622
16623 \change_deleted 564990737 1669755802
16624 The language of the document should not be changed.
16625  Before previewing your paper, be sure that the babel package is not used.
16626  To do this, click on 
16627 \begin_inset Info
16628 type  "menu"
16629 arg   "dialog-show document"
16630 \end_inset
16631
16632  
16633 \family sans
16634 \SpecialChar menuseparator
16635 Language
16636 \family default
16637 , and select 
16638 \begin_inset Quotes eld
16639 \end_inset
16640
16641 None
16642 \begin_inset Quotes erd
16643 \end_inset
16644
16645  as 
16646 \family sans
16647 Language Package
16648 \family default
16649 .
16650 \end_layout
16651
16652 \begin_layout Enumerate
16653
16654 \change_deleted 564990737 1669755802
16655 The 
16656 \begin_inset Quotes eld
16657 \end_inset
16658
16659 Keywords
16660 \begin_inset Quotes erd
16661 \end_inset
16662
16663  style must be used to define keywords.
16664 \end_layout
16665
16666 \begin_layout Enumerate
16667
16668 \change_deleted 564990737 1669755802
16669 The ijmpc package provides a style named 
16670 \begin_inset Quotes eld
16671 \end_inset
16672
16673 Classification Codes
16674 \begin_inset Quotes erd
16675 \end_inset
16676
16677 , which can be used to define classification codes, such as PACS numbers.
16678  Note that this facility is not supported by the ijmpd package.
16679 \end_layout
16680
16681 \begin_layout Enumerate
16682
16683 \change_deleted 564990737 1669755802
16684 Several new environments are available: 
16685 \begin_inset Quotes eld
16686 \end_inset
16687
16688 Definition
16689 \begin_inset Quotes erd
16690 \end_inset
16691
16692
16693 \begin_inset Quotes eld
16694 \end_inset
16695
16696 Step
16697 \begin_inset Quotes erd
16698 \end_inset
16699
16700
16701 \begin_inset Quotes eld
16702 \end_inset
16703
16704 Example
16705 \begin_inset Quotes erd
16706 \end_inset
16707
16708
16709 \begin_inset Quotes eld
16710 \end_inset
16711
16712 Remark
16713 \begin_inset Quotes erd
16714 \end_inset
16715
16716
16717 \begin_inset Quotes eld
16718 \end_inset
16719
16720 Notation
16721 \begin_inset Quotes erd
16722 \end_inset
16723
16724
16725 \begin_inset Quotes eld
16726 \end_inset
16727
16728 Theorem
16729 \begin_inset Quotes erd
16730 \end_inset
16731
16732
16733 \begin_inset Quotes eld
16734 \end_inset
16735
16736 Proof
16737 \begin_inset Quotes erd
16738 \end_inset
16739
16740
16741 \begin_inset Quotes eld
16742 \end_inset
16743
16744 Corollary
16745 \begin_inset Quotes erd
16746 \end_inset
16747
16748
16749 \begin_inset Quotes eld
16750 \end_inset
16751
16752 Lemma
16753 \begin_inset Quotes erd
16754 \end_inset
16755
16756
16757 \begin_inset Quotes eld
16758 \end_inset
16759
16760 Proposition
16761 \begin_inset Quotes erd
16762 \end_inset
16763
16764
16765 \begin_inset Quotes eld
16766 \end_inset
16767
16768 Prop
16769 \begin_inset Quotes erd
16770 \end_inset
16771
16772
16773 \begin_inset Quotes eld
16774 \end_inset
16775
16776 Question
16777 \begin_inset Quotes erd
16778 \end_inset
16779
16780
16781 \begin_inset Quotes eld
16782 \end_inset
16783
16784 Claim
16785 \begin_inset Quotes erd
16786 \end_inset
16787
16788 , and 
16789 \begin_inset Quotes eld
16790 \end_inset
16791
16792 Conjecture
16793 \begin_inset Quotes erd
16794 \end_inset
16795
16796 .
16797  Their use is more or less obvious.
16798  \SpecialChar LyX
16799  supports all these environments; it will use the proper label, text style,
16800  and numbering scheme for each of them.
16801 \end_layout
16802
16803 \begin_layout Enumerate
16804
16805 \change_deleted 564990737 1669755802
16806 Both packages use basic citations; the natbib package should not be used.
16807  In \SpecialChar LyX
16808 , citation references are shown as usual; in the output, citations are
16809  shown as superscripts.
16810  If you want to use a citation as normal text, you should use the 
16811 \family typewriter
16812 refcite
16813 \family default
16814  command, e.
16815 \begin_inset space \thinspace{}
16816 \end_inset
16817
16818 g.
16819 \begin_inset space \space{}
16820 \end_inset
16821
16822
16823 \begin_inset Quotes eld
16824 \end_inset
16825
16826 See Ref.
16827 \begin_inset space \space{}
16828 \end_inset
16829
16830
16831 \family typewriter
16832
16833 \backslash
16834 refcite{key}
16835 \family default
16836
16837 \begin_inset Quotes erd
16838 \end_inset
16839
16840 .
16841 \end_layout
16842
16843 \begin_layout Enumerate
16844
16845 \change_deleted 564990737 1669755802
16846 There is no 
16847 \begin_inset Quotes eld
16848 \end_inset
16849
16850 Acknowledgments
16851 \begin_inset Quotes erd
16852 \end_inset
16853
16854  section in both packages.
16855  To put acknowledgments, just use the 
16856 \begin_inset Quotes eld
16857 \end_inset
16858
16859 Section*
16860 \begin_inset Quotes erd
16861 \end_inset
16862
16863  environment.
16864 \end_layout
16865
16866 \begin_layout Enumerate
16867
16868 \change_deleted 564990737 1669755802
16869 Appendices may be added to the paper, 
16870 \emph on
16871 after
16872 \emph default
16873  the Acknowledgments and 
16874 \shape italic
16875 before
16876 \shape default
16877  the References.
16878  \SpecialChar LyX
16879  provides a special environment, called 
16880 \begin_inset Quotes eld
16881 \end_inset
16882
16883 Appendices Section
16884 \begin_inset Quotes erd
16885 \end_inset
16886
16887  which marks the beginning of the appendices.
16888  This environment should be left blank; it just sends a \SpecialChar LaTeX
16889  command, but nothing
16890  is really printed.
16891  In \SpecialChar LyX
16892 , the word 
16893 \begin_inset Quotes eld
16894 \end_inset
16895
16896 Appendix
16897 \begin_inset Quotes erd
16898 \end_inset
16899
16900  is printed with blue letters, as a signal that all sections after that
16901  point are appendices.
16902  To write an appendix, use the 
16903 \begin_inset Quotes eld
16904 \end_inset
16905
16906 Appendix
16907 \begin_inset Quotes erd
16908 \end_inset
16909
16910  environment.
16911  \SpecialChar LyX
16912  will number each appendix with capital letters, as required by both journals.
16913  Note that 
16914 \begin_inset Quotes eld
16915 \end_inset
16916
16917 Appendices Section
16918 \begin_inset Quotes erd
16919 \end_inset
16920
16921  
16922 \emph on
16923 must
16924 \emph default
16925  be present before the first appendix; if not, all appendices will be numbered
16926  as normal sections in the output.
16927 \end_layout
16928
16929 \begin_layout Enumerate
16930
16931 \change_deleted 564990737 1669755802
16932 The ijmpc and the ijmpd packages use the 
16933 \family typewriter
16934 tbl
16935 \family default
16936  command to implement table captions.
16937  As a result, a table created by \SpecialChar LyX
16938  is printed correctly, but its caption
16939  is ignored.
16940  However, you can use some \SpecialChar TeX
16941  code to overcome this problem, so that captions
16942  are printed as expected.
16943  To do so, create a float table as usual, remove the caption, and replace
16944  it with the \SpecialChar TeX
16945  code 
16946 \family typewriter
16947
16948 \backslash
16949 tbl{
16950 \emph on
16951 your table caption
16952 \emph default
16953 }{
16954 \family default
16955  (sic); you must also the \SpecialChar TeX
16956  code 
16957 \family typewriter
16958 }
16959 \family default
16960  immediately after the tabular material.
16961  Study the example table included in the template files to see how this
16962  trick is implemented.
16963  Alternatively, If you need table captions, you should implement the whole
16964  table float in a 
16965 \family typewriter
16966 .tex
16967 \family default
16968  file, then include this file to the \SpecialChar LyX
16969  document (
16970 \family sans
16971 Insert\SpecialChar menuseparator
16972 File\SpecialChar menuseparator
16973 Child
16974 \begin_inset space ~
16975 \end_inset
16976
16977 Document
16978 \family default
16979 ).
16980  Details on how to create a table float can be found in the files 
16981 \family typewriter
16982 ws-ijmpc.tex
16983 \family default
16984  and 
16985 \family typewriter
16986 ws-ijmpd.tex
16987 \family default
16988 , included in the corresponding packages.
16989 \end_layout
16990
16991 \begin_layout Subsection
16992
16993 \change_deleted 564990737 1669755802
16994 Preparing a paper for submission
16995 \end_layout
16996
16997 \begin_layout Standard
16998
16999 \change_deleted 564990737 1669755802
17000 Before you submit your paper you must export the \SpecialChar LyX
17001  document as a \SpecialChar LaTeX
17002  file (
17003 \family sans
17004 File\SpecialChar menuseparator
17005 Export\SpecialChar menuseparator
17006 \SpecialChar LaTeX
17007
17008 \family default
17009 )
17010 \begin_inset Foot
17011 status open
17012
17013 \begin_layout Plain Layout
17014 Actually you have the choice between \SpecialChar LaTeX
17015  (plain) and pdflatex.
17016  If you intend to use pdflatex to prepare the paper, you should use the
17017  pdflatex option so that included graphics are converted to PDF format,
17018  ready for use by pdflatex.
17019 \end_layout
17020
17021 \end_inset
17022
17023 , then make the following changes to the resulting 
17024 \family typewriter
17025 .tex
17026 \family default
17027  file.
17028 \end_layout
17029
17030 \begin_layout Enumerate
17031
17032 \change_deleted 564990737 1669755802
17033 Remove the comment lines before the 
17034 \family typewriter
17035
17036 \backslash
17037 documentclass
17038 \family default
17039  command.
17040 \end_layout
17041
17042 \begin_layout Enumerate
17043
17044 \change_deleted 564990737 1669755802
17045 Remove everything between (and including) the 
17046 \family typewriter
17047
17048 \backslash
17049 makeatletter
17050 \family default
17051  and 
17052 \family typewriter
17053
17054 \backslash
17055 makeatother
17056 \family default
17057  commands, except for any commands you specifically put into the \SpecialChar LaTeX
17058  preamble.
17059 \end_layout
17060
17061 \begin_layout Standard
17062
17063 \change_deleted 564990737 1669755802
17064 The modified 
17065 \family typewriter
17066 .tex
17067 \family default
17068  file should be saved and processed through \SpecialChar LaTeX
17069  as many times as necessary.
17070  You may also want to check the resulting 
17071 \family typewriter
17072 .dvi
17073 \family default
17074  document.
17075 \change_unchanged
17076
17077 \end_layout
17078
17079 \begin_layout Section
17080
17081 \change_deleted 564990737 1669801478
17082 iopart
17083 \end_layout
17084
17085 \begin_layout Standard
17086
17087 \change_deleted 564990737 1669801478
17088 by 
17089 \noun on
17090 Uwe Stöhr
17091 \end_layout
17092
17093 \begin_layout Subsection
17094
17095 \change_deleted 564990737 1669801478
17096 Overview
17097 \end_layout
17098
17099 \begin_layout Standard
17100
17101 \change_deleted 564990737 1669801478
17102 The iopart package provides a document class to create electronic manuscript
17103  submission to the journals published by the Institute of Physics.
17104  Instructions for the authors how to create a paper using the iopart class
17105  can be downloaded together with the iopart package from the site 
17106 \begin_inset Flex URL
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110
17111 ftp://ftp.iop.org/pub/journals/latex2e
17112 \end_layout
17113
17114 \end_inset
17115
17116 .
17117 \end_layout
17118
17119 \begin_layout Subsection
17120
17121 \change_deleted 564990737 1669801478
17122 Writing a paper
17123 \end_layout
17124
17125 \begin_layout Standard
17126
17127 \change_deleted 564990737 1669801478
17128 The easiest way to write a paper is to start with the template 
17129 \emph on
17130 IOP-article.lyx
17131 \emph default
17132  that is available via 
17133 \family sans
17134 File\SpecialChar menuseparator
17135 New From Template
17136 \family default
17137  The template explains how to use the special text environments.
17138  Here are the most important advices:
17139 \end_layout
17140
17141 \begin_layout Itemize
17142
17143 \change_deleted 564990737 1669801478
17144 To be able to compile your document to a PDF, PS, or DVI, ensure that the
17145  no AMS packages are loaded in 
17146 \family sans
17147 Document\SpecialChar menuseparator
17148 Settings\SpecialChar menuseparator
17149 Math Options
17150 \family default
17151 !
17152 \end_layout
17153
17154 \begin_layout Itemize
17155
17156 \change_deleted 564990737 1669801478
17157
17158 \size normal
17159 The title environment defines the kind of your paper.
17160  So use one of the following environments for the title:
17161 \end_layout
17162
17163 \begin_deeper
17164 \begin_layout Itemize
17165
17166 \change_deleted 564990737 1669801478
17167
17168 \family sans
17169 \size normal
17170 Title
17171 \family default
17172  for a Paper
17173 \end_layout
17174
17175 \begin_layout Itemize
17176
17177 \change_deleted 564990737 1669801478
17178
17179 \family sans
17180 \size normal
17181 Review
17182 \family default
17183  for a Review
17184 \end_layout
17185
17186 \begin_layout Itemize
17187
17188 \change_deleted 564990737 1669801478
17189
17190 \family sans
17191 \size normal
17192 Topical
17193 \family default
17194  for a Topical review
17195 \end_layout
17196
17197 \begin_layout Itemize
17198
17199 \change_deleted 564990737 1669801478
17200
17201 \family sans
17202 \size normal
17203 Comment
17204 \family default
17205  for a Comment
17206 \end_layout
17207
17208 \begin_layout Itemize
17209
17210 \change_deleted 564990737 1669801478
17211
17212 \family sans
17213 \size normal
17214 Note
17215 \family default
17216  for a Note
17217 \end_layout
17218
17219 \begin_layout Itemize
17220
17221 \change_deleted 564990737 1669801478
17222
17223 \family sans
17224 \size normal
17225 Paper
17226 \family default
17227  for a Paper (same as Title)
17228 \end_layout
17229
17230 \begin_layout Itemize
17231
17232 \change_deleted 564990737 1669801478
17233
17234 \family sans
17235 \size normal
17236 Prelim
17237 \family default
17238  for a Preliminary communication
17239 \end_layout
17240
17241 \begin_layout Itemize
17242
17243 \change_deleted 564990737 1669801478
17244
17245 \family sans
17246 \size normal
17247 Rapid
17248 \family default
17249  for a Rapid communication
17250 \end_layout
17251
17252 \begin_layout Itemize
17253
17254 \change_deleted 564990737 1669801478
17255
17256 \family sans
17257 \size normal
17258 Letter
17259 \family default
17260  for a Letter to the editor
17261 \end_layout
17262
17263 \end_deeper
17264 \begin_layout Itemize
17265
17266 \change_deleted 564990737 1669801478
17267
17268 \size normal
17269 All title environments except of 
17270 \family sans
17271 Letter
17272 \family default
17273  can have an optional short title.
17274 \end_layout
17275
17276 \begin_layout Itemize
17277
17278 \change_deleted 564990737 1669801478
17279 There is a general title environment 
17280 \family sans
17281 Article
17282 \family default
17283  which is not directly supported by \SpecialChar LyX
17284 .
17285  This can be used as \SpecialChar TeX
17286  code when your document doesn't fit into one of the
17287  other title types.
17288 \end_layout
17289
17290 \begin_layout Standard
17291
17292 \change_deleted 564990737 1669801478
17293 For more informations like hints for special table and formula formatting,
17294  look at the IOP author guidelines.
17295 \change_unchanged
17296
17297 \end_layout
17298
17299 \begin_layout Section
17300
17301 \change_deleted 564990737 1670317155
17302 Kluwer
17303 \end_layout
17304
17305 \begin_layout Standard
17306
17307 \change_deleted 564990737 1670317155
17308 by 
17309 \noun on
17310 Panayotis Papasotiriou
17311 \end_layout
17312
17313 \begin_layout Subsection
17314
17315 \change_deleted 564990737 1670317155
17316 Overview
17317 \end_layout
17318
17319 \begin_layout Standard
17320
17321 \change_deleted 564990737 1670317155
17322 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
17323  that facilitates electronic manuscript submission to the journals they
17324  publish.
17325  Most known of them (at least in my domain of interest) are 
17326 \emph on
17327 Astrophysics and Space Science
17328 \emph default
17329  and 
17330 \emph on
17331 Solar Physics
17332 \emph default
17333 , but there are many others (see a complete list at 
17334 \begin_inset Flex URL
17335 status collapsed
17336
17337 \begin_layout Plain Layout
17338
17339 http://www.wkap.nl/jrnllist.htm/JRNLHOME
17340 \end_layout
17341
17342 \end_inset
17343
17344 ).
17345  The Kluwer package may be downloaded from the site 
17346 \begin_inset Flex URL
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350
17351 http://www.wkap.nl/kaphtml.htm/STYLEFILES
17352 \end_layout
17353
17354 \end_inset
17355
17356 .
17357  A complete user guide is contained in that package (but it can also be
17358  downloaded separately).
17359 \end_layout
17360
17361 \begin_layout Standard
17362
17363 \change_deleted 564990737 1670317155
17364 \SpecialChar LyX
17365  supports many features of the package but not everything.
17366  However, the \SpecialChar TeX
17367  code needed is reduced to some 
17368 \begin_inset Quotes eld
17369 \end_inset
17370
17371 peculiar
17372 \begin_inset Quotes erd
17373 \end_inset
17374
17375  commands of the package (see
17376 \begin_inset space ~
17377 \end_inset
17378
17379
17380 \begin_inset CommandInset ref
17381 LatexCommand ref
17382 reference "subsec:kluwer_peculiarities"
17383
17384 \end_inset
17385
17386 ).
17387  I have recently used \SpecialChar LyX
17388  to write an article submitted to the 
17389 \emph on
17390 Astrophysics and Space Science
17391 \emph default
17392  without any problem.
17393 \end_layout
17394
17395 \begin_layout Subsection
17396
17397 \change_deleted 564990737 1670317155
17398 Writing a paper
17399 \end_layout
17400
17401 \begin_layout Standard
17402
17403 \change_deleted 564990737 1670317155
17404 The easiest way to write a paper is to start with the Kluwer template file.
17405  Click on 
17406 \family sans
17407 File\SpecialChar menuseparator
17408 New from
17409 \family default
17410  
17411 \family sans
17412 Template
17413 \family default
17414 , then choose the 
17415 \family typewriter
17416 kluwer.lyx
17417 \family default
17418  template.
17419  This will give an (almost) empty document that includes the most common
17420  fields found in a manuscript and a short description of their use.
17421  As in most templates, simply overwrite the existing text (including the
17422  brackets, 
17423 \family typewriter
17424 <>
17425 \family default
17426 ) with the correct information.
17427 \end_layout
17428
17429 \begin_layout Subsection
17430
17431 \change_deleted 564990737 1670317155
17432 Preparing a paper for submission
17433 \end_layout
17434
17435 \begin_layout Standard
17436
17437 \change_deleted 564990737 1670317155
17438 As in the AAS\SpecialChar TeX
17439  package, before you submit your paper to a journal you must
17440  
17441 \begin_inset Quotes eld
17442 \end_inset
17443
17444 postprocess
17445 \begin_inset Quotes erd
17446 \end_inset
17447
17448  it as follows.
17449 \end_layout
17450
17451 \begin_layout Enumerate
17452
17453 \change_deleted 564990737 1670317155
17454 Export your paper as a \SpecialChar LaTeX
17455  file.
17456  To do this, click on 
17457 \family sans
17458 File\SpecialChar menuseparator
17459 Export\SpecialChar menuseparator
17460 \SpecialChar LaTeX
17461
17462 \family default
17463 .
17464  
17465 \end_layout
17466
17467 \begin_layout Enumerate
17468
17469 \change_deleted 564990737 1670317155
17470 Edit the resulting 
17471 \family typewriter
17472 .tex
17473 \family default
17474  file with a text editor and make the following changes
17475 \end_layout
17476
17477 \begin_deeper
17478 \begin_layout Enumerate
17479
17480 \change_deleted 564990737 1670317155
17481 remove the comment lines before the 
17482 \family typewriter
17483
17484 \backslash
17485 documentclass
17486 \family default
17487  command,
17488 \end_layout
17489
17490 \begin_layout Enumerate
17491
17492 \change_deleted 564990737 1670317155
17493 remove everything between (and including) the 
17494 \family typewriter
17495
17496 \backslash
17497 makeatletter
17498 \family default
17499  and 
17500 \family typewriter
17501
17502 \backslash
17503 makeatother
17504 \family default
17505  commands, except for any commands you specifically put into the \SpecialChar LaTeX
17506  preamble.
17507 \end_layout
17508
17509 \begin_layout Standard
17510
17511 \change_deleted 564990737 1670317155
17512 Save the resulting 
17513 \family typewriter
17514 .tex
17515 \family default
17516  file.
17517 \end_layout
17518
17519 \end_deeper
17520 \begin_layout Enumerate
17521
17522 \change_deleted 564990737 1670317155
17523 Run the 
17524 \family typewriter
17525 .tex
17526 \family default
17527  file through \SpecialChar LaTeX
17528  as many times as necessary (usually up to three).
17529 \end_layout
17530
17531 \begin_layout Enumerate
17532
17533 \change_deleted 564990737 1670317155
17534 View the resulting 
17535 \family typewriter
17536 .dvi
17537 \family default
17538  document using, e.
17539 \begin_inset space \thinspace{}
17540 \end_inset
17541
17542 g.
17543 \begin_inset space \space{}
17544 \end_inset
17545
17546
17547 \family sans
17548 xdvi
17549 \family default
17550 , and check if everything is OK (it should, if you didn't make any mistake).
17551 \end_layout
17552
17553 \begin_layout Subsection
17554
17555 \change_deleted 564990737 1670317155
17556 \begin_inset Quotes eld
17557 \end_inset
17558
17559 Peculiarities
17560 \begin_inset Quotes erd
17561 \end_inset
17562
17563  of the Kluwer package
17564 \begin_inset CommandInset label
17565 LatexCommand label
17566 name "subsec:kluwer_peculiarities"
17567
17568 \end_inset
17569
17570
17571 \end_layout
17572
17573 \begin_layout Standard
17574
17575 \change_deleted 564990737 1670317155
17576 The Kluwer package has the following 
17577 \begin_inset Quotes eld
17578 \end_inset
17579
17580 peculiarities
17581 \begin_inset Quotes erd
17582 \end_inset
17583
17584 .
17585 \end_layout
17586
17587 \begin_layout Enumerate
17588
17589 \change_deleted 564990737 1670317155
17590 It is possible to write multiple articles in the same \SpecialChar LaTeX
17591  file
17592 \begin_inset Foot
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 I can't imagine any good reason to do this.
17597 \end_layout
17598
17599 \end_inset
17600
17601 .
17602  Each article must be included in the environment 
17603 \begin_inset Quotes eld
17604 \end_inset
17605
17606 article
17607 \begin_inset Quotes erd
17608 \end_inset
17609
17610 .
17611  Unfortunately, this environment cannot be omitted, even if you write just
17612  one article.
17613  Therefore, each article starts with the command 
17614 \family typewriter
17615
17616 \backslash
17617 begin{article}
17618 \family default
17619  and, obviously, ends with the command 
17620 \family typewriter
17621
17622 \backslash
17623 end{article}
17624 \family default
17625 .
17626  Although this can be implemented in \SpecialChar LyX
17627 , I didn't included it, since it looks
17628  ugly and can confuse the novice user.
17629  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
17630  code (the
17631  well-known 
17632 \begin_inset Quotes eld
17633 \end_inset
17634
17635 \SpecialChar TeX
17636  code
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640 ).
17641 \end_layout
17642
17643 \begin_layout Enumerate
17644
17645 \change_deleted 564990737 1670317155
17646 Information given at the beginning of the article (i.
17647 \begin_inset space \thinspace{}
17648 \end_inset
17649
17650 e.
17651 \begin_inset space \space{}
17652 \end_inset
17653
17654 title, subtitle, author, institution, running title, running author, abstract
17655  and keywords) must be included in an environment called 
17656 \begin_inset Quotes eld
17657 \end_inset
17658
17659 opening
17660 \begin_inset Quotes erd
17661 \end_inset
17662
17663 .
17664  This is not implemented in \SpecialChar LyX
17665 , so you must enter title, subtitle etc.
17666 \begin_inset space ~
17667 \end_inset
17668
17669 between two \SpecialChar TeX
17670  code lines (
17671 \family typewriter
17672
17673 \backslash
17674 begin{opening}
17675 \family default
17676  and 
17677 \family typewriter
17678
17679 \backslash
17680 end{opening}
17681 \family default
17682 ).
17683 \end_layout
17684
17685 \begin_layout Enumerate
17686
17687 \change_deleted 564990737 1670317155
17688 According to the user manual, the label of each bibliography item must be
17689  written as 
17690 \family typewriter
17691
17692 \backslash
17693 protect
17694 \backslash
17695 citeauthoryear{
17696 \family default
17697 \emph on
17698 author(s)
17699 \family typewriter
17700 \emph default
17701 }{
17702 \family default
17703 \emph on
17704 year
17705 \family typewriter
17706 \emph default
17707 }
17708 \family default
17709 .
17710 \end_layout
17711
17712 \begin_layout Standard
17713
17714 \change_deleted 564990737 1670317155
17715 The 
17716 \family typewriter
17717 kluwer.lyx
17718 \family default
17719  template takes care of all these 
17720 \begin_inset Quotes eld
17721 \end_inset
17722
17723 peculiarities
17724 \begin_inset Quotes erd
17725 \end_inset
17726
17727 .
17728  If you start a new paper using this template you don't need to do anything
17729  special.
17730  Just 
17731 \end_layout
17732
17733 \begin_layout Enumerate
17734
17735 \change_deleted 564990737 1670317155
17736 don't delete the \SpecialChar TeX
17737  code included in the template, and
17738 \end_layout
17739
17740 \begin_layout Enumerate
17741
17742 \change_deleted 564990737 1670317155
17743 copy the example bibliography item included in the template and modify it
17744  as necessary to enter new bibliography items.
17745 \end_layout
17746
17747 \begin_layout Section
17748 Paper
17749 \end_layout
17750
17751 \begin_layout Standard
17752 The document class 
17753 \family sans
17754 paper
17755 \family default
17756  provides an alternative to the standard 
17757 \family sans
17758 article
17759 \family default
17760  class.
17761  It provides similar functionality, but you might prefer this layout with
17762  sans serif sections, headings, and more.
17763 \end_layout
17764
17765 \begin_layout Section
17766 Rev\SpecialChar TeX
17767 4
17768 \end_layout
17769
17770 \begin_layout Standard
17771 by 
17772 \noun on
17773 Amir Karger
17774 \end_layout
17775
17776 \begin_layout Standard
17777 \begin_inset VSpace bigskip
17778 \end_inset
17779
17780
17781 \end_layout
17782
17783 \begin_layout Standard
17784 \noindent
17785 The 
17786 \family sans
17787 Revtex
17788 \begin_inset space ~
17789 \end_inset
17790
17791 4
17792 \family default
17793  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
17794  4.0 (the 
17795 \begin_inset Formula $\beta$
17796 \end_inset
17797
17798  release of May, 1999) class.
17799 \end_layout
17800
17801 \begin_layout Standard
17802 \SpecialChar LyX
17803  has a 
17804 \family sans
17805 Revtex
17806 \family default
17807  textclass, which works with Rev\SpecialChar TeX
17808  3.1.
17809  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
17810  2.09.
17811  That means that it doesn't interact very well with \SpecialChar LyX
17812 , which requires \SpecialChar LaTeX2e
17813 , although
17814  it has been kludged to work.
17815  Since Rev\SpecialChar TeX
17816  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
17817 , \SpecialChar LyX
17818  with the
17819  
17820 \family sans
17821 Rev\SpecialChar TeX
17822
17823 \begin_inset space ~
17824 \end_inset
17825
17826 4
17827 \family default
17828  textclass should also be pretty easy to use.
17829 \end_layout
17830
17831 \begin_layout Standard
17832 These documents are supposed to be used in 
17833 \emph on
17834 addition
17835 \emph default
17836  to the Rev\SpecialChar TeX
17837  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
17838  macros,
17839  and assume you'll know what to put in the preamble if necessary.
17840 \end_layout
17841
17842 \begin_layout Subsection
17843 Installation
17844 \end_layout
17845
17846 \begin_layout Standard
17847 All you need to do is install Rev\SpecialChar TeX
17848  4, as described in the package's README
17849  file.
17850  The package can be found at The Rev\SpecialChar TeX
17851  4 Web Site 
17852 \begin_inset Flex URL
17853 status collapsed
17854
17855 \begin_layout Plain Layout
17856
17857 http://publish.aps.org/revtex4/
17858 \end_layout
17859
17860 \end_inset
17861
17862 .
17863  Install it somewhere that \SpecialChar LaTeX
17864  can see it.
17865  Test it by trying to \SpecialChar LaTeX
17866  a short Rev\SpecialChar TeX
17867  4 document in some random directory (i.
17868 \begin_inset space \thinspace{}
17869 \end_inset
17870
17871 e.
17872 \begin_inset space \space{}
17873 \end_inset
17874
17875 not the directory where you installed the class file.) Then, if you reconfigure
17876  \SpecialChar LyX
17877 , it will find the class file and let you use the Rev\SpecialChar TeX
17878 4 textclass.
17879 \end_layout
17880
17881 \begin_layout Standard
17882 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
17883  4 document
17884  using 
17885 \family typewriter
17886 tex2lyx
17887 \family default
17888 , or to use the 
17889 \family sans
17890 Revtex
17891 \begin_inset space ~
17892 \end_inset
17893
17894 4
17895 \family default
17896  template, found in the templates directory.
17897 \end_layout
17898
17899 \begin_layout Subsection
17900 Preamble Matter
17901 \end_layout
17902
17903 \begin_layout Standard
17904 Optional arguments to 
17905 \family typewriter
17906
17907 \backslash
17908 documentclass
17909 \family default
17910 , like 
17911 \begin_inset Quotes eld
17912 \end_inset
17913
17914 preprint
17915 \begin_inset Quotes erd
17916 \end_inset
17917
17918  and 
17919 \begin_inset Quotes eld
17920 \end_inset
17921
17922 aps
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926 , go in the 
17927 \family sans
17928 Extra
17929 \begin_inset space ~
17930 \end_inset
17931
17932 Options
17933 \family default
17934  field in the 
17935 \family sans
17936 Document
17937 \begin_inset space ~
17938 \end_inset
17939
17940 Layout
17941 \family default
17942  dialog, as usual.
17943  Remember that in Rev\SpecialChar TeX
17944 , at least one optional argument is required! 
17945 \end_layout
17946
17947 \begin_layout Standard
17948 Other preamble matter, like 
17949 \family typewriter
17950
17951 \backslash
17952 draft
17953 \family default
17954  etc.
17955 \begin_inset space ~
17956 \end_inset
17957
17958 goes in the 
17959 \family sans
17960 \SpecialChar LaTeX
17961
17962 \begin_inset space ~
17963 \end_inset
17964
17965 Preamble
17966 \family default
17967  dialog, also as usual.
17968 \end_layout
17969
17970 \begin_layout Subsection
17971 Layouts
17972 \end_layout
17973
17974 \begin_layout Standard
17975 The layouts basically correspond to the commands in Rev\SpecialChar TeX
17976 4.0.
17977  For example, the Email layout corresponds to 
17978 \family typewriter
17979
17980 \backslash
17981 email{}
17982 \family default
17983 .
17984  Note that (at least as of Rev\SpecialChar TeX
17985  4.0 Beta), the 
17986 \family sans
17987 Address
17988 \family default
17989  and 
17990 \family sans
17991 Affiliation
17992 \family default
17993  layouts are exactly equivalent, so you shouldn't need to use both.
17994 \begin_inset Foot
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 In case you're curious, both were included so that 
17999 \family typewriter
18000 tex2lyx
18001 \family default
18002  would be able to translate both 
18003 \family typewriter
18004
18005 \backslash
18006 address
18007 \family default
18008  and 
18009 \family typewriter
18010
18011 \backslash
18012 affiliation
18013 \family default
18014 .
18015 \end_layout
18016
18017 \end_inset
18018
18019
18020 \end_layout
18021
18022 \begin_layout Subsection
18023 Important Notes
18024 \end_layout
18025
18026 \begin_layout Standard
18027 There are a couple of important unique aspects of Rev\SpecialChar TeX
18028  4 which might cause
18029  bugs that will be even more confusing in \SpecialChar LyX
18030 .
18031 \end_layout
18032
18033 \begin_layout Standard
18034 In Rev\SpecialChar TeX
18035 , the 
18036 \family typewriter
18037
18038 \backslash
18039 thanks
18040 \family default
18041  command goes 
18042 \emph on
18043 outside
18044 \emph default
18045  the 
18046 \family typewriter
18047
18048 \backslash
18049 author
18050 \family default
18051  command.
18052  The \SpecialChar LyX
18053  equivalent is that there is a separate Thanks layout.
18054  Do 
18055 \emph on
18056 not
18057 \emph default
18058  write footnotes in the 
18059 \family sans
18060 Author
18061 \family default
18062  layout, or weird things may happen.
18063  See the Rev\SpecialChar TeX
18064  4 documentation for more details.
18065 \end_layout
18066
18067 \begin_layout Standard
18068 Also, the 
18069 \family sans
18070 Author
18071 \begin_inset space ~
18072 \end_inset
18073
18074 Email
18075 \family default
18076
18077 \family sans
18078 Author
18079 \begin_inset space ~
18080 \end_inset
18081
18082 URL
18083 \family default
18084 , and 
18085 \family sans
18086 Thanks
18087 \family default
18088  layouts must be placed 
18089 \emph on
18090 in between
18091 \emph default
18092  the 
18093 \family sans
18094 Author
18095 \family default
18096  layout and the corresponding 
18097 \family sans
18098 Address
18099 \family default
18100  (or equivalent 
18101 \family sans
18102 Affiliation
18103 \family default
18104 ) layout.
18105  If you put the 
18106 \family sans
18107 Thanks
18108 \family default
18109  after the 
18110 \family sans
18111 Address
18112 \family default
18113 , the \SpecialChar LaTeX
18114  won't compile.
18115 \end_layout
18116
18117 \begin_layout Section
18118 Springer Journals (
18119 \family sans
18120 svjour
18121 \family default
18122 )
18123 \end_layout
18124
18125 \begin_layout Standard
18126 by 
18127 \noun on
18128 Martin Vermeer
18129 \end_layout
18130
18131 \begin_layout Subsection
18132 Description
18133 \end_layout
18134
18135 \begin_layout Standard
18136 These are the layout files for some of the journal formats used by Springer
18137  Verlag and listed on 
18138 \begin_inset Flex URL
18139 status collapsed
18140
18141 \begin_layout Plain Layout
18142
18143 http://www.springer.de/author/tex/help-journals.html
18144 \end_layout
18145
18146 \end_inset
18147
18148 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
18149  now!).
18150  It is a modular system: the things common to all journals are implemented
18151  in 
18152 \family typewriter
18153 svjour.inc
18154 \family default
18155 , which journal-specific layout files (such as, e.
18156 \begin_inset space \thinspace{}
18157 \end_inset
18158
18159 g.
18160 \begin_inset space \space{}
18161 \end_inset
18162
18163
18164 \family typewriter
18165 svjog.layout
18166 \family default
18167  for Journal of Geodesy) can include.
18168 \end_layout
18169
18170 \begin_layout Standard
18171 This means that implementing support for any other Springer journal on this
18172  list is as simple as writing your own 
18173 \family typewriter
18174 sv
18175 \family default
18176 <myjournal>
18177 \family typewriter
18178 .layout
18179 \family default
18180  file following the outline given in 
18181 \family typewriter
18182 svjog.layout
18183 \family default
18184 .
18185  
18186 \end_layout
18187
18188 \begin_layout Standard
18189 It is reasonably well tested only for the Journal of Geodesy.
18190  
18191 \family typewriter
18192 svjour
18193 \family default
18194  and 
18195 \family typewriter
18196 svjog
18197 \family default
18198  come with the standard \SpecialChar LyX
18199  distribution.
18200  Install the relevant class file (downloaded from Springer) in a proper
18201  directory, reconfigure \SpecialChar LaTeX
18202  (in the te\SpecialChar TeX
18203  case by running 
18204 \family typewriter
18205 texhash
18206 \family default
18207 , as root if necessary — doesn't \SpecialChar LyX
18208  take care of this?), reconfigure \SpecialChar LyX
18209  and
18210  it should work.
18211 \end_layout
18212
18213 \begin_layout Subsection
18214 New styles
18215 \end_layout
18216
18217 \begin_layout Standard
18218 A large number of theorem-like styles — 
18219 \family sans
18220 Claim, Conjecture,
18221 \family default
18222  
18223 \family sans
18224 \SpecialChar ldots
18225 Theorem
18226 \family default
18227 .
18228 \end_layout
18229
18230 \begin_layout Standard
18231
18232 \family sans
18233 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
18234 _Title, Author_Running, Institute,
18235  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
18236 \family default
18237 .
18238  See the Springer class file documentation for details.
18239 \end_layout
18240
18241 \begin_layout Subsection
18242 Supported journals
18243 \end_layout
18244
18245 \begin_layout Itemize
18246
18247 \emph on
18248 Journal of Geodesy
18249 \emph default
18250
18251 \family typewriter
18252 svjog.layout
18253 \family default
18254  — Martin Vermeer
18255 \end_layout
18256
18257 \begin_layout Itemize
18258
18259 \emph on
18260 Probability Theory and Related Fields
18261 \emph default
18262
18263 \family typewriter
18264 svprobth.layout
18265 \family default
18266  — Jean-Marc Lasgouttes
18267 \end_layout
18268
18269 \begin_layout Standard
18270 Add your own, it isn't so hard!
18271 \end_layout
18272
18273 \begin_layout Subsection
18274 Credits
18275 \end_layout
18276
18277 \begin_layout Standard
18278 These files are partly based on the older 
18279 \family typewriter
18280 ejour2.layout
18281 \family default
18282 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
18283  2.09 style
18284  file from Springer.
18285  All this, and the 
18286 \family typewriter
18287 ejour2
18288 \family default
18289  layout, are now defunct.
18290  Jean-Marc Lasgouttes helped out big in making me find my way around the
18291  \SpecialChar LyX
18292  layout file mechanism.
18293 \end_layout
18294
18295 \begin_layout Subsection
18296 Bugs
18297 \end_layout
18298
18299 \begin_layout Standard
18300 Probably.
18301  But probably less than in the old hacked-\SpecialChar LaTeX
18302  
18303 \family typewriter
18304 ejour2
18305 \family default
18306 .
18307 \end_layout
18308
18309 \begin_layout Section
18310 Slides [aka 
18311 \noun on
18312 Sli\SpecialChar TeX
18313
18314 \noun default
18315 ]
18316 \begin_inset CommandInset label
18317 LatexCommand label
18318 name "sec:slitex"
18319
18320 \end_inset
18321
18322
18323 \end_layout
18324
18325 \begin_layout Standard
18326 by 
18327 \noun on
18328 John Weiss
18329 \noun default
18330  
18331 \end_layout
18332
18333 \begin_layout Subsection
18334 Introduction
18335 \end_layout
18336
18337 \begin_layout Standard
18338 This section describes how to use \SpecialChar LyX
18339  to make slides for overhead projectors.
18340  There are two document classes that can do this: the default slides class
18341  and the 
18342 \family sans
18343 Foil\SpecialChar TeX
18344
18345 \family default
18346  slides class.
18347  This section documents the former.
18348 \end_layout
18349
18350 \begin_layout Standard
18351 I'm going to say this again, nice and clear, so that there's no misunderstanding
18352 :
18353 \end_layout
18354
18355 \begin_layout Standard
18356 \begin_inset VSpace bigskip
18357 \end_inset
18358
18359
18360 \end_layout
18361
18362 \begin_layout Standard
18363 \align center
18364
18365 \size large
18366 This section documents the class 
18367 \begin_inset Quotes eld
18368 \end_inset
18369
18370
18371 \family sans
18372 slides (default)
18373 \family default
18374
18375 \begin_inset Quotes erd
18376 \end_inset
18377
18378  
18379 \emph on
18380 only.
18381 \end_layout
18382
18383 \begin_layout Standard
18384 \begin_inset VSpace bigskip
18385 \end_inset
18386
18387
18388 \end_layout
18389
18390 \begin_layout Standard
18391 If you're looking for the documentation for 
18392 \begin_inset Quotes eld
18393 \end_inset
18394
18395
18396 \family sans
18397 slides (Foil\SpecialChar TeX
18398 )
18399 \family default
18400
18401 \begin_inset Quotes erd
18402 \end_inset
18403
18404 , check out section
18405 \begin_inset space ~
18406 \end_inset
18407
18408
18409 \begin_inset CommandInset ref
18410 LatexCommand ref
18411 reference "sec:foiltex"
18412
18413 \end_inset
18414
18415 .
18416  The 
18417 \family sans
18418 foils
18419 \family default
18420  class [
18421 \begin_inset Quotes eld
18422 \end_inset
18423
18424
18425 \family sans
18426 slides (Foil\SpecialChar TeX
18427 )
18428 \family default
18429
18430 \begin_inset Quotes erd
18431 \end_inset
18432
18433 ] is actually somewhat better than the default 
18434 \family sans
18435 slides
18436 \family default
18437  class,
18438 \begin_inset Foot
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 \SpecialChar ldots
18443 or so I've been told repeatedly by its advocates.
18444  Having never used it, I have no idea if this claim is true or not.
18445 \end_layout
18446
18447 \end_inset
18448
18449  which this section documents.
18450 \end_layout
18451
18452 \begin_layout Standard
18453 This class is the \SpecialChar LaTeX2e
18454  improvement of the old 
18455 \noun on
18456 Sli\SpecialChar TeX
18457
18458 \noun default
18459  package.
18460  Every \SpecialChar LaTeX2e
18461  distribution includes this class [which I'll just refer to as 
18462 \begin_inset Quotes eld
18463 \end_inset
18464
18465
18466 \family sans
18467 slides
18468 \family default
18469
18470 \begin_inset Quotes erd
18471 \end_inset
18472
18473  from now on], so you're bound to have it.
18474  As I noted earlier, there are other classes, such as 
18475 \family sans
18476 foils
18477 \family default
18478 , which also produce slides for overhead projectors and do a better job
18479  at it.
18480  However, there are some things which 
18481 \family sans
18482 slides
18483 \family default
18484  can do which the others can't, such as generate overlays.
18485  Read on to learn more!
18486 \end_layout
18487
18488 \begin_layout Subsection
18489 Getting Started
18490 \begin_inset CommandInset label
18491 LatexCommand label
18492 name "sec:slidesetup"
18493
18494 \end_inset
18495
18496
18497 \end_layout
18498
18499 \begin_layout Standard
18500 Obviously, to use this document class, you need to select 
18501 \begin_inset Quotes eld
18502 \end_inset
18503
18504
18505 \family sans
18506 slides (default)
18507 \family default
18508
18509 \begin_inset Quotes erd
18510 \end_inset
18511
18512  from the class list in the 
18513 \family sans
18514 Document\SpecialChar menuseparator
18515 Settings
18516 \family default
18517  dialog.
18518  There are some other special things you should know about this class:
18519 \end_layout
18520
18521 \begin_layout Itemize
18522 Don't bother changing the options 
18523 \family sans
18524 Sides and Columns
18525 \family default
18526 .
18527  They're not supported by the 
18528 \family sans
18529 slides
18530 \family default
18531  class, anyways.
18532 \end_layout
18533
18534 \begin_layout Itemize
18535 The option 
18536 \family sans
18537 Page
18538 \begin_inset space ~
18539 \end_inset
18540
18541 style
18542 \family default
18543  behaves a bit differently for this class.
18544  The possible choices and what they do are as follows:
18545 \end_layout
18546
18547 \begin_deeper
18548 \begin_layout Description
18549
18550 \family sans
18551 plain
18552 \family default
18553  The final output contains page numbers in the lower right corner.
18554 \end_layout
18555
18556 \begin_layout Description
18557
18558 \family sans
18559 headings
18560 \family default
18561  Like 
18562 \family sans
18563 plain
18564 \family default
18565 , but also prints out any time markers you've put in.
18566  This is the default.
18567 \end_layout
18568
18569 \begin_layout Description
18570
18571 \family sans
18572 empty
18573 \family default
18574  The final output contains no page numbers, time markers, or alignment markers.
18575 \end_layout
18576
18577 \end_deeper
18578 \begin_layout Itemize
18579 The 
18580 \family sans
18581 slides
18582 \family default
18583  class has an extra option: 
18584 \family typewriter
18585 clock
18586 \family default
18587 .
18588  To use it, put 
18589 \begin_inset Quotes eld
18590 \end_inset
18591
18592
18593 \family typewriter
18594 clock
18595 \family default
18596
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600  in the extra class options.
18601 \end_layout
18602
18603 \begin_deeper
18604 \begin_layout Standard
18605 Using this options allows you to add time markers to 
18606 \family sans
18607 Note
18608 \family default
18609 s.
18610  See section
18611 \begin_inset space ~
18612 \end_inset
18613
18614
18615 \begin_inset CommandInset ref
18616 LatexCommand ref
18617 reference "sec:slideNote"
18618
18619 \end_inset
18620
18621  for more details.
18622 \end_layout
18623
18624 \end_deeper
18625 \begin_layout Standard
18626 You can also use the template file 
18627 \begin_inset Quotes eld
18628 \end_inset
18629
18630
18631 \family typewriter
18632 slides.lyx
18633 \family default
18634
18635 \begin_inset Quotes erd
18636 \end_inset
18637
18638  to automatically set up a document to use the 
18639 \family sans
18640 slides
18641 \family default
18642  class [using 
18643 \family sans
18644 File\SpecialChar menuseparator
18645 New
18646 \begin_inset space ~
18647 \end_inset
18648
18649 from
18650 \begin_inset space ~
18651 \end_inset
18652
18653 Template
18654 \family default
18655  to open your new document].
18656  The template file also contains some examples of the special paragraph
18657  environments used by this class.
18658  I'll describe those next.
18659 \end_layout
18660
18661 \begin_layout Subsection
18662 Paragraph Environments
18663 \end_layout
18664
18665 \begin_layout Subsubsection
18666 Supported Environments
18667 \end_layout
18668
18669 \begin_layout Standard
18670 The first thing you'll notice when you start up a new 
18671 \family sans
18672 slides
18673 \family default
18674  document is the font size and type: it's the equivalent of the size 
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678
18679 \family sans
18680 Largest
18681 \family default
18682
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686  in the 
18687 \family sans
18688 Sans
18689 \begin_inset space ~
18690 \end_inset
18691
18692 Serif
18693 \family default
18694  font.
18695  This is also what's used in the output.
18696  Think of this as a 
18697 \begin_inset Quotes eld
18698 \end_inset
18699
18700 visual cue
18701 \begin_inset Quotes erd
18702 \end_inset
18703
18704  to remind you that this is a slide.
18705  Your final slides will use a larger font; ergo, you'll have less space.
18706  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18707 \end_layout
18708
18709 \begin_layout Standard
18710 The next thing that becomes obvious is the changes to the paragraph environment
18711  pull-down box [at the far-left end of the toolbar].
18712  Most of the paragraph environments you're used to seeing are missing.
18713  There are also five new ones.
18714  That's because the 
18715 \family sans
18716 slides
18717 \family default
18718  class itself only supports certain paragraph environments:
18719 \end_layout
18720
18721 \begin_layout Itemize
18722
18723 \family sans
18724 Standard
18725 \end_layout
18726
18727 \begin_layout Itemize
18728
18729 \family sans
18730 Itemize
18731 \end_layout
18732
18733 \begin_layout Itemize
18734
18735 \family sans
18736 Enumerate
18737 \end_layout
18738
18739 \begin_layout Itemize
18740
18741 \family sans
18742 Description
18743 \end_layout
18744
18745 \begin_layout Itemize
18746
18747 \family sans
18748 List
18749 \end_layout
18750
18751 \begin_layout Itemize
18752
18753 \family sans
18754 Quotation
18755 \end_layout
18756
18757 \begin_layout Itemize
18758
18759 \family sans
18760 Quote
18761 \end_layout
18762
18763 \begin_layout Itemize
18764
18765 \family sans
18766 Verse
18767 \end_layout
18768
18769 \begin_layout Itemize
18770
18771 \family sans
18772 Caption
18773 \end_layout
18774
18775 \begin_layout Itemize
18776
18777 \family sans
18778 \SpecialChar LyX
18779 -Code
18780 \end_layout
18781
18782 \begin_layout Standard
18783 All of the other standard environments, including the section-heading environmen
18784 ts, aren't used in the 
18785 \family sans
18786 slides
18787 \family default
18788  class.
18789 \end_layout
18790
18791 \begin_layout Standard
18792 On the other hand, you'll notice the following new environments:
18793 \end_layout
18794
18795 \begin_layout Itemize
18796
18797 \family sans
18798 Slide
18799 \end_layout
18800
18801 \begin_layout Itemize
18802
18803 \family sans
18804 Overlay
18805 \end_layout
18806
18807 \begin_layout Itemize
18808
18809 \family sans
18810 Note
18811 \end_layout
18812
18813 \begin_layout Itemize
18814
18815 \family sans
18816 InvisibleText
18817 \end_layout
18818
18819 \begin_layout Itemize
18820
18821 \family sans
18822 VisibleText
18823 \end_layout
18824
18825 \begin_layout Standard
18826 These five are kind of quirky, due to a 
18827 \begin_inset Quotes eld
18828 \end_inset
18829
18830 feature
18831 \begin_inset Quotes erd
18832 \end_inset
18833
18834  in \SpecialChar LyX
18835 .
18836  You see, \SpecialChar LyX
18837  doesn't permit you to nest any other paragraph environment into
18838  an empty environment.
18839  Now, that's fine and dandy, but it means that you wouldn't be able to start
18840  a slide with anything except plain text.
18841  To deal with this, I've performed a little 
18842 \begin_inset Quotes eld
18843 \end_inset
18844
18845 \SpecialChar LaTeX
18846  magic.
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850  
18851 \end_layout
18852
18853 \begin_layout Subsubsection
18854 Quirks of the New Environments
18855 \begin_inset CommandInset label
18856 LatexCommand label
18857 name "sec:slideQuirk"
18858
18859 \end_inset
18860
18861
18862 \end_layout
18863
18864 \begin_layout Standard
18865 All five of the new paragraph environments are somewhat quirky due to inherent
18866  limitiations in the current version of \SpecialChar LyX
18867 .
18868  As I just mentioned, \SpecialChar LyX
18869  forbids environments that begin with another environment.
18870  To get around this, the 
18871 \family sans
18872 Slide
18873 \family default
18874  environment isn't a paragraph environment as described in the 
18875 \emph on
18876 User's Guide
18877 \emph default
18878 .
18879  
18880 \end_layout
18881
18882 \begin_layout Standard
18883 You should consider 
18884 \family sans
18885 Slide
18886 \family default
18887
18888 \family sans
18889 Overlay
18890 \family default
18891 , and 
18892 \family sans
18893 Note
18894 \family default
18895  to be 
18896 \begin_inset Quotes eld
18897 \end_inset
18898
18899 pseudo-environments.
18900 \begin_inset Quotes erd
18901 \end_inset
18902
18903  They look like a section heading or a 
18904 \begin_inset Quotes eld
18905 \end_inset
18906
18907
18908 \family sans
18909 Caption
18910 \family default
18911 ,
18912 \begin_inset Quotes erd
18913 \end_inset
18914
18915  but really begin a [and, if necessary, end the previous] paragraph environment.
18916  Likewise, treat 
18917 \family sans
18918 InvisibleText
18919 \family default
18920  and 
18921 \family sans
18922 VisibleText
18923 \family default
18924  as 
18925 \begin_inset Quotes eld
18926 \end_inset
18927
18928 pseudo-commands.
18929 \begin_inset Quotes erd
18930 \end_inset
18931
18932  These two perform some action.
18933 \end_layout
18934
18935 \begin_layout Standard
18936 A common feature of all five environments, 
18937 \family sans
18938 Slide
18939 \family default
18940
18941 \family sans
18942 Overlay
18943 \family default
18944
18945 \family sans
18946 Note
18947 \family default
18948
18949 \family sans
18950 InvisibleText
18951 \family default
18952  and 
18953 \family sans
18954 VisibleText
18955 \family default
18956 , is a rather long-ish label.
18957  The text following this label — ordinarily the contents of the paragraph
18958  environment — is utterly irrelevant for 
18959 \family sans
18960 Slide
18961 \family default
18962
18963 \family sans
18964 Overlay
18965 \family default
18966
18967 \family sans
18968 Note
18969 \family default
18970
18971 \family sans
18972 InvisibleText
18973 \family default
18974  and 
18975 \family sans
18976 VisibleText
18977 \family default
18978 .
18979  \SpecialChar LyX
18980  completely ignores it.
18981  In fact, you can leave these five environments completely empty.
18982  
18983 \end_layout
18984
18985 \begin_layout Standard
18986 While you don't 
18987 \emph on
18988 have
18989 \emph default
18990  to put any text after the rather long-ish label, you might want to.
18991  This could be a short description of the contents of the 
18992 \family sans
18993 Slide
18994 \family default
18995 , for example.
18996  In that case, enter your descriptive comment and hit 
18997 \family sans
18998 Return
18999 \family default
19000  as you normally would.
19001 \end_layout
19002
19003 \begin_layout Standard
19004 If, on the other hand, you don't want to enter any descriptive text, you'll
19005  hit another \SpecialChar LyX
19006  quirk.
19007  \SpecialChar LyX
19008 , like nature, abhors a vacuum, and will not let you start a new paragraph
19009  environment until you put something in the old one.
19010  So, do this:
19011 \end_layout
19012
19013 \begin_layout Itemize
19014 Start entering the text that will 
19015 \emph on
19016 follow
19017 \emph default
19018  the new 
19019 \family sans
19020 Slide
19021 \family default
19022
19023 \family sans
19024 Overlay
19025 \family default
19026
19027 \family sans
19028 Note
19029 \family default
19030
19031 \family sans
19032 InvisibleText
19033 \family default
19034  or 
19035 \family sans
19036 VisibleText
19037 \family default
19038 .
19039  
19040 \end_layout
19041
19042 \begin_layout Itemize
19043 Now move to the beginning of that paragraph.
19044  
19045 \end_layout
19046
19047 \begin_layout Itemize
19048 Next, hit 
19049 \family sans
19050 Return
19051 \family default
19052 .
19053  
19054 \end_layout
19055
19056 \begin_layout Itemize
19057 Finally, change this new, empty paragraph to a 
19058 \family sans
19059 Slide
19060 \family default
19061
19062 \family sans
19063 Overlay
19064 \family default
19065
19066 \family sans
19067 Note
19068 \family default
19069
19070 \family sans
19071 InvisibleText
19072 \family default
19073  or 
19074 \family sans
19075 VisibleText
19076 \family default
19077 .
19078  
19079 \end_layout
19080
19081 \begin_layout Standard
19082 Some future version of \SpecialChar LyX
19083  will, hopefully, resolve this quirkiness\SpecialChar ldots
19084
19085 \end_layout
19086
19087 \begin_layout Subsection
19088 Making a Presentation with 
19089 \family sans
19090 Slide
19091 \family default
19092
19093 \family sans
19094 Overlay
19095 \family default
19096  and 
19097 \family sans
19098 Note
19099 \end_layout
19100
19101 \begin_layout Subsubsection
19102 Using the 
19103 \family sans
19104 Slide
19105 \family default
19106  Environment
19107 \end_layout
19108
19109 \begin_layout Standard
19110 If you're expecting this section to teach you how to actually make a presentatio
19111 n, you'll be sorely disappointed.
19112  Naturally, I'll describe all of the ways the 
19113 \family sans
19114 slides
19115 \family default
19116  class can assist you in preparing the materials for a presentation.
19117  Filling in the contents, however, is up to you.
19118  [Then again, that 
19119 \emph on
19120 is
19121 \emph default
19122  the \SpecialChar LyX
19123  philosophy.]
19124 \end_layout
19125
19126 \begin_layout Standard
19127 Choosing the 
19128 \family sans
19129 Slide
19130 \family default
19131  environment [in the manner described in section
19132 \begin_inset space ~
19133 \end_inset
19134
19135
19136 \begin_inset CommandInset ref
19137 LatexCommand ref
19138 reference "sec:slideQuirk"
19139
19140 \end_inset
19141
19142 ] tells \SpecialChar LyX
19143  to begin a new slide [duh].
19144  The label for this environment/
19145 \begin_inset Quotes erd
19146 \end_inset
19147
19148 pseudo-command
19149 \begin_inset Quotes erd
19150 \end_inset
19151
19152  is an 
19153 \begin_inset Quotes eld
19154 \end_inset
19155
19156 ASCII line,
19157 \begin_inset Quotes erd
19158 \end_inset
19159
19160  in cool blue, followed by the label, 
19161 \begin_inset Quotes eld
19162 \end_inset
19163
19164 NewSlide:
19165 \begin_inset Quotes erd
19166 \end_inset
19167
19168 .
19169  Any text or paragraph environments that follow this one go on the new slide.
19170  It's that simple.
19171 \end_layout
19172
19173 \begin_layout Standard
19174 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
19175
19176  (this can be specified in the 
19177 \family sans
19178 Paragraph Layout
19179 \family default
19180  dialog).
19181  In fact, you'll want to, once you finish entering the contents of one slide.
19182  If you've entered more text than can physically fit on a slide, the extra
19183  overflows onto a new slide.
19184  I don't recommend doing this, however, since the overflow slide won't have
19185  any page number on it.
19186  Furthermore, it may interfere with any 
19187 \family sans
19188 Overlay
19189 \family default
19190  you've made to accompany the oversized 
19191 \family sans
19192 Slide
19193 \family default
19194 .
19195 \end_layout
19196
19197 \begin_layout Standard
19198 The 
19199 \family sans
19200 Overlay
19201 \family default
19202  and 
19203 \family sans
19204 Note
19205 \family default
19206  environments work the same way as the 
19207 \family sans
19208 Slide
19209 \family default
19210  environment.
19211  They both create an 
19212 \begin_inset Quotes eld
19213 \end_inset
19214
19215 ASCII line
19216 \begin_inset Quotes erd
19217 \end_inset
19218
19219  followed by a label [
19220 \begin_inset Quotes eld
19221 \end_inset
19222
19223 NewOverlay:
19224 \begin_inset Quotes erd
19225 \end_inset
19226
19227  and 
19228 \begin_inset Quotes eld
19229 \end_inset
19230
19231 NewNote:
19232 \begin_inset Quotes erd
19233 \end_inset
19234
19235 , respectively].
19236  The color is a stunning magenta instead of blue, and the 
19237 \begin_inset Quotes eld
19238 \end_inset
19239
19240 ASCII line
19241 \begin_inset Quotes erd
19242 \end_inset
19243
19244  will look different, in style and in length.
19245  The label fonts of all three also differ from one another.
19246 \end_layout
19247
19248 \begin_layout Standard
19249 As with a 
19250 \family sans
19251 Slide
19252 \family default
19253 , if the contents of a 
19254 \family sans
19255 Note
19256 \family default
19257  or 
19258 \family sans
19259 Overlay
19260 \family default
19261  exceed the physical size of a slide or sheet of paper, the extra will overflow
19262  onto a new sheet.
19263  Again, you should avoid this.
19264  It defeats the whole purpose of 
19265 \family sans
19266 Note
19267 \family default
19268 s and 
19269 \family sans
19270 Overlay
19271 \family default
19272 s.
19273 \end_layout
19274
19275 \begin_layout Subsubsection
19276 Using 
19277 \family sans
19278 Overlay
19279 \family default
19280  with 
19281 \family sans
19282 Slide
19283 \end_layout
19284
19285 \begin_layout Standard
19286 The idea behind an 
19287 \family sans
19288 Overlay
19289 \family default
19290  is a slide that sits atop another slide.
19291  Perhaps you wish to discuss a figure on the main 
19292 \family sans
19293 Slide
19294 \family default
19295  before displaying the text associated with it.
19296  One way to accomplish this is tape a flap of dark paper over the part of
19297  the 
19298 \family sans
19299 Slide
19300 \family default
19301  you want to display later.
19302  This method fails, however, if you wish to overlap one graph with another,
19303  for example.
19304  You would then have to fumble while speaking to align the two separate,
19305  overlapping 
19306 \family sans
19307 Slide
19308 \family default
19309 s to align the two graphs.
19310  The use of an 
19311 \family sans
19312 Overlay
19313 \family default
19314  environment in both cases makes life much easier.
19315 \end_layout
19316
19317 \begin_layout Standard
19318 Each 
19319 \family sans
19320 Overlay
19321 \family default
19322  receives the page number of its 
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326 parent
19327 \begin_inset Quotes erd
19328 \end_inset
19329
19330  
19331 \family sans
19332 Slide
19333 \family default
19334 , appended by 
19335 \begin_inset Quotes eld
19336 \end_inset
19337
19338
19339 \family typewriter
19340 -a
19341 \family default
19342
19343 \begin_inset Quotes erd
19344 \end_inset
19345
19346 .
19347 \begin_inset Foot
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 Presumably, mutliple 
19352 \family sans
19353 Overlay
19354 \family default
19355 s would have 
19356 \begin_inset Quotes eld
19357 \end_inset
19358
19359
19360 \family typewriter
19361 -a
19362 \family default
19363
19364 \begin_inset Quotes erd
19365 \end_inset
19366
19367
19368 \begin_inset Quotes eld
19369 \end_inset
19370
19371
19372 \family typewriter
19373 -b
19374 \family default
19375
19376 \begin_inset Quotes erd
19377 \end_inset
19378
19379
19380 \begin_inset Quotes eld
19381 \end_inset
19382
19383
19384 \family typewriter
19385 -c
19386 \family default
19387
19388 \begin_inset Quotes erd
19389 \end_inset
19390
19391 , etc.
19392 \begin_inset space ~
19393 \end_inset
19394
19395 appended to the page number of the parent 
19396 \family sans
19397 Slide
19398 \family default
19399 .
19400  
19401 \end_layout
19402
19403 \end_inset
19404
19405  Clearly, you want the contents of both the 
19406 \family sans
19407 Slide
19408 \family default
19409  and the 
19410 \family sans
19411 Overlay
19412 \family default
19413  to each fit on a single physical slide! You should probably consider an
19414  
19415 \family sans
19416 Overlay
19417 \family default
19418  as 
19419 \begin_inset Quotes eld
19420 \end_inset
19421
19422 part of
19423 \begin_inset Quotes erd
19424 \end_inset
19425
19426  a 
19427 \family sans
19428 Slide
19429 \family default
19430 .
19431  Indeed, the \SpecialChar LyX
19432  
19433 \family sans
19434 slides
19435 \family default
19436  class provides a visual cue for this: the label at the start of an 
19437 \family sans
19438 Overlay
19439 \family default
19440  is shorter than that at the start of a 
19441 \family sans
19442 Slide
19443 \family default
19444 .
19445  Lastly, when you generate printable output, you'll find alignment markers
19446  in all four corners of both the 
19447 \family sans
19448 Overlay
19449 \family default
19450  page and its parent 
19451 \family sans
19452 Slide
19453 \family default
19454 .
19455  These will assist you in lining up the two physical slides.
19456 \end_layout
19457
19458 \begin_layout Standard
19459 The major problem in overlaying two slides is aligning the contents of the
19460  two transparencies.
19461  How much space should you leave for that graph on the second slide? Worse
19462  still, what if you want a graph and a sentence on second slide, but there
19463  is text on the main transparency that goes in between them? You could try
19464  and insert vertical space of the right size.
19465  The better way is to use 
19466 \family sans
19467 InvisibleText
19468 \family default
19469  and 
19470 \family sans
19471 VisibleText
19472 \family default
19473 .
19474 \end_layout
19475
19476 \begin_layout Standard
19477 As their names imply, 
19478 \family sans
19479 InvisibleText
19480 \family default
19481  and 
19482 \family sans
19483 VisibleText
19484 \family default
19485  are two command-like paragraph environments that make all subsequent text
19486  invisible and visible, respectively.
19487  Note from section
19488 \begin_inset space ~
19489 \end_inset
19490
19491
19492 \begin_inset CommandInset ref
19493 LatexCommand ref
19494 reference "sec:slideQuirk"
19495
19496 \end_inset
19497
19498  that you don't place anything 
19499 \emph on
19500 into
19501 \emph default
19502  these two environments, however.
19503  When you create an 
19504 \family sans
19505 InvisibleText
19506 \family default
19507 , it inserts a centered, sky-blue label into the page reading 
19508 \begin_inset Quotes eld
19509 \end_inset
19510
19511 <Invisible Text Follows>
19512 \begin_inset Quotes erd
19513 \end_inset
19514
19515 .
19516  For paragraphs following this label, the parts of the 
19517 \family sans
19518 Slide
19519 \family default
19520  [or 
19521 \family sans
19522 Overlay
19523 \family default
19524 ; it doesn't matter which] where they would be contain instead blank space.
19525  
19526 \end_layout
19527
19528 \begin_layout Standard
19529 For 
19530 \family sans
19531 VisibleText
19532 \family default
19533 , the corresponding centered label is 
19534 \begin_inset Quotes eld
19535 \end_inset
19536
19537 <Visible Text Follows>
19538 \begin_inset Quotes erd
19539 \end_inset
19540
19541  in blazing green.
19542  Paragraphs following this label behave normally.
19543  Note that the beginning of a new 
19544 \family sans
19545 Slide
19546 \family default
19547
19548 \family sans
19549 Overlay
19550 \family default
19551 , or 
19552 \family sans
19553 Note
19554 \family default
19555  automatically shuts off an 
19556 \family sans
19557 InvisibleText
19558 \family default
19559 .
19560  It's therefore not necessary to use 
19561 \family sans
19562 VisibleText
19563 \family default
19564  at the end of a 
19565 \family sans
19566 Slide
19567 \family default
19568 .
19569 \end_layout
19570
19571 \begin_layout Standard
19572 By now, it should be obvious how to create overlay transparencies using
19573  the proper combination of 
19574 \family sans
19575 InvisibleText
19576 \family default
19577  and 
19578 \family sans
19579 VisibleText
19580 \family default
19581  on a 
19582 \family sans
19583 Slide
19584 \family default
19585  and 
19586 \family sans
19587 Overlay
19588 \family default
19589 :
19590 \end_layout
19591
19592 \begin_layout Enumerate
19593 Create a 
19594 \family sans
19595 Slide
19596 \family default
19597 , including everything that will appear on it, whether on the main slide
19598  or on the 
19599 \family sans
19600 Overlay
19601 \family default
19602 .
19603 \end_layout
19604
19605 \begin_layout Enumerate
19606 Before each figure or paragraph that will appear only on the 
19607 \family sans
19608 Overlay
19609 \family default
19610 , insert an 
19611 \family sans
19612 InvisibleText
19613 \family default
19614  environment.
19615  If necessary, insert a 
19616 \family sans
19617 VisibleText
19618 \family default
19619  environment after the 
19620 \family sans
19621 Overlay
19622 \family default
19623 -only text.
19624 \end_layout
19625
19626 \begin_layout Enumerate
19627 Start an 
19628 \family sans
19629 Overlay
19630 \family default
19631  immediately following the 
19632 \family sans
19633 Slide
19634 \family default
19635 .
19636 \end_layout
19637
19638 \begin_layout Enumerate
19639 Copy the contents of this 
19640 \family sans
19641 Slide
19642 \family default
19643  into the 
19644 \family sans
19645 Overlay
19646 \family default
19647 .
19648 \end_layout
19649
19650 \begin_layout Enumerate
19651 Within the 
19652 \family sans
19653 Overlay
19654 \family default
19655 , change all of the 
19656 \family sans
19657 InvisibleText
19658 \family default
19659  lines to 
19660 \family sans
19661 VisibleText
19662 \family default
19663  and vice-versa.
19664 \end_layout
19665
19666 \begin_layout Standard
19667 That's it.
19668  You've just made an 
19669 \family sans
19670 Overlay
19671 \family default
19672 .
19673 \end_layout
19674
19675 \begin_layout Standard
19676 There's one problem with the way I've designed the \SpecialChar LyX
19677  
19678 \family sans
19679 slides
19680 \family default
19681  class: you can't make text in the middle of a paragraph invisible, nor
19682  make text in the middle of an invisible paragraph visible again.
19683  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19684  codes.
19685 \begin_inset Foot
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 The commands of interest are: 
19690 \end_layout
19691
19692 \begin_layout Itemize
19693
19694 \family typewriter
19695 {
19696 \backslash
19697 invisible \SpecialChar ldots
19698  }
19699 \end_layout
19700
19701 \begin_layout Itemize
19702
19703 \family typewriter
19704 {
19705 \backslash
19706 visible \SpecialChar ldots
19707  }
19708 \end_layout
19709
19710 \begin_layout Plain Layout
19711 \SpecialChar ldots
19712 and need to be marked as \SpecialChar TeX
19713 .
19714  The text whose 
19715 \begin_inset Quotes eld
19716 \end_inset
19717
19718 visibility
19719 \begin_inset Quotes erd
19720 \end_inset
19721
19722  you wish to change goes in between the brackets [and after the 
19723 \family typewriter
19724
19725 \backslash
19726 invisible
19727 \family default
19728  or 
19729 \family typewriter
19730
19731 \backslash
19732 visible
19733 \family default
19734  command].
19735  If you don't know how to mark text as \SpecialChar TeX
19736 , see the appropriate section of
19737  the 
19738 \emph on
19739 User's Guide
19740 \emph default
19741 .
19742 \end_layout
19743
19744 \end_inset
19745
19746
19747 \end_layout
19748
19749 \begin_layout Subsubsection
19750 Using 
19751 \family sans
19752 Note
19753 \family default
19754  with 
19755 \family sans
19756 Slide
19757 \family default
19758
19759 \begin_inset CommandInset label
19760 LatexCommand label
19761 name "sec:slideNote"
19762
19763 \end_inset
19764
19765
19766 \end_layout
19767
19768 \begin_layout Standard
19769 Like an 
19770 \family sans
19771 Overlay
19772 \family default
19773 , a 
19774 \family sans
19775 Note
19776 \family default
19777  is associated with a 
19778 \begin_inset Quotes eld
19779 \end_inset
19780
19781 parent
19782 \begin_inset Quotes erd
19783 \end_inset
19784
19785  
19786 \family sans
19787 Slide
19788 \family default
19789 .
19790  Here, too, the \SpecialChar LyX
19791  
19792 \family sans
19793 slides
19794 \family default
19795  class provides visual cues.
19796  The label for a 
19797 \family sans
19798 Note
19799 \family default
19800  is shorter than that of a 
19801 \family sans
19802 Slide
19803 \family default
19804  [yet longer than that of an 
19805 \family sans
19806 Overlay
19807 \family default
19808 ] and, like the label of an 
19809 \family sans
19810 Overlay
19811 \family default
19812  is shockingly magenta.
19813  Additionally, the printed 
19814 \family sans
19815 Note
19816 \family default
19817  has the page number of its 
19818 \begin_inset Quotes eld
19819 \end_inset
19820
19821 parent
19822 \begin_inset Quotes erd
19823 \end_inset
19824
19825  
19826 \family sans
19827 Slide
19828 \family default
19829 , appended by 
19830 \begin_inset Quotes eld
19831 \end_inset
19832
19833
19834 \family typewriter
19835 -
19836 \family default
19837 1
19838 \begin_inset Quotes erd
19839 \end_inset
19840
19841
19842 \begin_inset Quotes eld
19843 \end_inset
19844
19845
19846 \family typewriter
19847 -
19848 \family default
19849 2
19850 \begin_inset Quotes erd
19851 \end_inset
19852
19853
19854 \begin_inset Quotes eld
19855 \end_inset
19856
19857
19858 \family typewriter
19859 -
19860 \family default
19861 3
19862 \begin_inset Quotes erd
19863 \end_inset
19864
19865 , etc.
19866  You can have multiple 
19867 \family sans
19868 Note
19869 \family default
19870 s associated with a single 
19871 \family sans
19872 Slide
19873 \family default
19874 , and, as with 
19875 \family sans
19876 Slide
19877 \family default
19878  and 
19879 \family sans
19880 Overlay
19881 \family default
19882 , you'll probably want to break up long 
19883 \family sans
19884 Note
19885 \family default
19886 s so that they fit on a single sheet of paper.
19887 \end_layout
19888
19889 \begin_layout Standard
19890 The purpose of a 
19891 \family sans
19892 Note
19893 \family default
19894  is obvious: it contains anything additional you might want to say about
19895  a 
19896 \family sans
19897 Slide
19898 \family default
19899 .
19900  It could also be used as a sheet of reminders for a particular 
19901 \family sans
19902 Slide
19903 \family default
19904 .
19905  In the case of the latter, you might want to make use of time markers.
19906  Currently, the \SpecialChar LyX
19907  
19908 \family sans
19909 slides
19910 \family default
19911  class has no 
19912 \begin_inset Quotes eld
19913 \end_inset
19914
19915 native
19916 \begin_inset Quotes erd
19917 \end_inset
19918
19919  support for time markers, a 
19920 \noun on
19921 Sli\SpecialChar TeX
19922
19923 \noun default
19924  feature.
19925  So, you'll have to resort to using the \SpecialChar LaTeX
19926  codes.
19927 \end_layout
19928
19929 \begin_layout Standard
19930 To use time markers, you'll need to specify the extra class option 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934
19935 \family typewriter
19936 clock
19937 \family default
19938
19939 \begin_inset Quotes erd
19940 \end_inset
19941
19942  [see section
19943 \begin_inset space ~
19944 \end_inset
19945
19946
19947 \begin_inset CommandInset ref
19948 LatexCommand ref
19949 reference "sec:slidesetup"
19950
19951 \end_inset
19952
19953 ].
19954  This option turns on timing marks, which will appear in the lower-left-hand
19955  corner of every 
19956 \family sans
19957 Note
19958 \family default
19959  you generate.
19960  To set what appears in the time marker, you use the \SpecialChar LaTeX
19961  commands 
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967
19968 \backslash
19969 settime{}
19970 \family default
19971
19972 \begin_inset Quotes erd
19973 \end_inset
19974
19975  and 
19976 \begin_inset Quotes eld
19977 \end_inset
19978
19979
19980 \family typewriter
19981
19982 \backslash
19983 addtime{}
19984 \family default
19985
19986 \begin_inset Quotes erd
19987 \end_inset
19988
19989 .
19990  The arguments of both commands are time measured in seconds.
19991  
19992 \begin_inset Quotes eld
19993 \end_inset
19994
19995
19996 \family typewriter
19997
19998 \backslash
19999 settime{}
20000 \family default
20001
20002 \begin_inset Quotes erd
20003 \end_inset
20004
20005  sets the time marker to a given time.
20006  
20007 \begin_inset Quotes eld
20008 \end_inset
20009
20010
20011 \family typewriter
20012
20013 \backslash
20014 addtime{}
20015 \family default
20016
20017 \begin_inset Quotes erd
20018 \end_inset
20019
20020  increments the time marker by the specified amount.
20021  Using time markers and 
20022 \family sans
20023 Note
20024 \family default
20025 s in this fashion, you can remind yourself how much time to spend on a particula
20026
20027 \family sans
20028 Slide
20029 \family default
20030 .
20031 \end_layout
20032
20033 \begin_layout Standard
20034 There's one last feature to describe.
20035  Clearly, you'd like to print out all of your 
20036 \family sans
20037 Slide
20038 \family default
20039 s and 
20040 \family sans
20041 Overlay
20042 \family default
20043 s on transparencies while printing all of your 
20044 \family sans
20045 Note
20046 \family default
20047 s on plain paper.
20048  However, a 
20049 \family sans
20050 Note
20051 \family default
20052  
20053 \emph on
20054 must
20055 \emph default
20056  follow the 
20057 \family sans
20058 Slide
20059 \family default
20060  with which it is associated.
20061  What's a person to do?
20062 \end_layout
20063
20064 \begin_layout Standard
20065 Luckily, there are two \SpecialChar LaTeX
20066  commands that allow you to select what to print
20067  out.
20068  Both must be placed into the preamble of your document.
20069  The command 
20070 \begin_inset Quotes eld
20071 \end_inset
20072
20073
20074 \family typewriter
20075
20076 \backslash
20077 onlyslides{
20078 \backslash
20079 slides}
20080 \family default
20081
20082 \begin_inset Quotes erd
20083 \end_inset
20084
20085  will cause the output to contain only the 
20086 \family sans
20087 Slide
20088 \family default
20089 s and 
20090 \family sans
20091 Overlay
20092 \family default
20093 s.
20094  Correspondingly, the command 
20095 \begin_inset Quotes eld
20096 \end_inset
20097
20098
20099 \family typewriter
20100
20101 \backslash
20102 onlynotes{
20103 \backslash
20104 notes}
20105 \family default
20106
20107 \begin_inset Quotes erd
20108 \end_inset
20109
20110  prevents the output of anything but 
20111 \family sans
20112 Note
20113 \family default
20114 s.
20115  I'd advise placing both commands in the preamble and initially comment
20116  both out.
20117  You can then preview your entire presentation as you write.
20118  When you're done writing, you can then uncomment one of the two to select
20119  what you want to print.
20120  I like to uncomment 
20121 \begin_inset Quotes eld
20122 \end_inset
20123
20124
20125 \family typewriter
20126
20127 \backslash
20128 onlyslides{
20129 \backslash
20130 slides}
20131 \family default
20132
20133 \begin_inset Quotes erd
20134 \end_inset
20135
20136  , print to a file with 
20137 \begin_inset Quotes eld
20138 \end_inset
20139
20140
20141 \family typewriter
20142 -slides
20143 \family default
20144
20145 \begin_inset Quotes erd
20146 \end_inset
20147
20148  in its name, comment it back out, then uncomment 
20149 \begin_inset Quotes eld
20150 \end_inset
20151
20152
20153 \family typewriter
20154
20155 \backslash
20156 onlynotes{
20157 \backslash
20158 notes}
20159 \family default
20160
20161 \begin_inset Quotes erd
20162 \end_inset
20163
20164  and print to a 
20165 \begin_inset Quotes eld
20166 \end_inset
20167
20168
20169 \family typewriter
20170 *-notes.ps
20171 \family default
20172
20173 \begin_inset Quotes erd
20174 \end_inset
20175
20176  file.
20177  I can then send either file to a printer, loading transparencies or plain
20178  paper as appropriate.
20179 \end_layout
20180
20181 \begin_layout Standard
20182 You can also provide other arguments to the 
20183 \begin_inset Quotes eld
20184 \end_inset
20185
20186
20187 \family typewriter
20188
20189 \backslash
20190 onlyslides{}
20191 \family default
20192
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196  and 
20197 \begin_inset Quotes eld
20198 \end_inset
20199
20200
20201 \family typewriter
20202
20203 \backslash
20204 onlynotes{}
20205 \family default
20206
20207 \begin_inset Quotes erd
20208 \end_inset
20209
20210  commands.
20211  See a good \SpecialChar LaTeX
20212  book for details.
20213 \end_layout
20214
20215 \begin_layout Subsection
20216 The 
20217 \family sans
20218 slides
20219 \family default
20220  Class Template File
20221 \end_layout
20222
20223 \begin_layout Standard
20224 I have also provided a template file, 
20225 \begin_inset Quotes eld
20226 \end_inset
20227
20228
20229 \family typewriter
20230 slides.lyx
20231 \family default
20232
20233 \begin_inset Quotes erd
20234 \end_inset
20235
20236 , with the 
20237 \family sans
20238 slides
20239 \family default
20240  class.
20241  To use it, begin your new presentation with 
20242 \family sans
20243 File\SpecialChar menuseparator
20244 New
20245 \begin_inset space ~
20246 \end_inset
20247
20248 from
20249 \begin_inset space ~
20250 \end_inset
20251
20252 Template
20253 \family default
20254 .
20255  Your new \SpecialChar LyX
20256  presentation file will contain an example 
20257 \family sans
20258 Slide
20259 \family default
20260  – 
20261 \family sans
20262 Overlay
20263 \family default
20264  – 
20265 \family sans
20266 Note
20267 \family default
20268  triplet.
20269  The 
20270 \family sans
20271 Slide
20272 \family default
20273  and 
20274 \family sans
20275 Overlay
20276 \family default
20277  additionally contain an example of the use of 
20278 \family sans
20279 InvisibleText
20280 \family default
20281  and 
20282 \family sans
20283 VisibleText
20284 \family default
20285 .
20286  Lastly, the preamble will contain:
20287 \end_layout
20288
20289 \begin_layout LyX-Code
20290 % Uncomment to print out only slides and overlays
20291 \end_layout
20292
20293 \begin_layout LyX-Code
20294 %
20295 \end_layout
20296
20297 \begin_layout LyX-Code
20298 %
20299 \backslash
20300 onlyslides{
20301 \backslash
20302 slides}
20303 \begin_inset Newline newline
20304 \end_inset
20305
20306  
20307 \end_layout
20308
20309 \begin_layout LyX-Code
20310 % Uncomment to print out only notes
20311 \end_layout
20312
20313 \begin_layout LyX-Code
20314 %
20315 \end_layout
20316
20317 \begin_layout LyX-Code
20318 %
20319 \backslash
20320 onlynotes{
20321 \backslash
20322 notes}
20323 \end_layout
20324
20325 \begin_layout Standard
20326 One final thing: I created this class to support the \SpecialChar LaTeX2e
20327  
20328 \begin_inset Quotes eld
20329 \end_inset
20330
20331
20332 \noun on
20333 Sli\SpecialChar TeX
20334
20335 \noun default
20336  emulation
20337 \begin_inset Quotes erd
20338 \end_inset
20339
20340  class, one of the built-in \SpecialChar LaTeX2e
20341  classes.
20342  Neither I nor the rest of the \SpecialChar LyX
20343  Team endorse or oppose the use of this built-in
20344  slide class.
20345  It's here if you want it or need it.
20346  There exist other \SpecialChar LaTeX2e
20347  classes for creating presentations, such as the 
20348 \family sans
20349 Foils
20350 \family default
20351  class [see section
20352 \begin_inset space ~
20353 \end_inset
20354
20355
20356 \begin_inset CommandInset ref
20357 LatexCommand ref
20358 reference "sec:foiltex"
20359
20360 \end_inset
20361
20362 ] or the 
20363 \begin_inset Quotes eld
20364 \end_inset
20365
20366
20367 \family typewriter
20368 seminar
20369 \family default
20370
20371 \begin_inset Quotes erd
20372 \end_inset
20373
20374  package [present on some \SpecialChar TeX
20375  distributions].
20376  The latter is not yet supported under \SpecialChar LyX
20377 .
20378 \begin_inset Foot
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 Perhaps you can take on the task\SpecialChar ldots
20383
20384 \end_layout
20385
20386 \end_inset
20387
20388  I know nothing about these other classes.
20389  Try them out to see what sort of alternative they provide.
20390 \end_layout
20391
20392 \begin_layout Chapter
20393 \SpecialChar LyX
20394  Features needing Extra Software
20395 \end_layout
20396
20397 \begin_layout Section
20398 Checking \SpecialChar TeX
20399
20400 \end_layout
20401
20402 \begin_layout Standard
20403 by 
20404 \noun on
20405 Asger Alstrup
20406 \end_layout
20407
20408 \begin_layout Subsection
20409 Introduction
20410 \end_layout
20411
20412 \begin_layout Standard
20413 If you have the 
20414 \family typewriter
20415 chktex
20416 \family default
20417  program installed
20418 \begin_inset Foot
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422
20423 \family typewriter
20424 chktex
20425 \family default
20426  is not yet available when you are using the \SpecialChar LaTeX
20427  distribution MiK\SpecialChar TeX
20428 .
20429 \end_layout
20430
20431 \end_inset
20432
20433 , you'll find in the 
20434 \family sans
20435 Tools
20436 \family default
20437  menu the entry: 
20438 \family sans
20439 Check
20440 \begin_inset space ~
20441 \end_inset
20442
20443 TeX
20444 \family default
20445 .
20446  You can get 
20447 \family typewriter
20448 chktex
20449 \family default
20450  from CTAN,
20451 \begin_inset Newline newline
20452 \end_inset
20453
20454
20455 \begin_inset CommandInset href
20456 LatexCommand href
20457 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
20458 literal "false"
20459
20460 \end_inset
20461
20462 .
20463 \end_layout
20464
20465 \begin_layout Standard
20466 The 
20467 \family sans
20468 Chk\SpecialChar TeX
20469
20470 \family default
20471  package is a program that was written by 
20472 \begin_inset Flex Noun
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 Jens T.
20477 \begin_inset space ~
20478 \end_inset
20479
20480 Berger Thielemann
20481 \end_layout
20482
20483 \end_inset
20484
20485  in frustration because some constructs in \SpecialChar LaTeX
20486  are sometimes non-intuitive,
20487  and easy to forget.
20488  The program runs over your \SpecialChar LaTeX
20489  file, checks the integrity of the file, and
20490  flags some common errors.
20491  In other technical words, it is 
20492 \family typewriter
20493 lint
20494 \family default
20495  for \SpecialChar LaTeX
20496 .
20497 \end_layout
20498
20499 \begin_layout Standard
20500 Well, what is a syntax checker doing in \SpecialChar LyX
20501  which is supposed to produce correct
20502  \SpecialChar LaTeX
20503  anyways? The answer is simple: Just as 
20504 \family typewriter
20505 Lint
20506 \family default
20507  not only checks the 
20508 \emph on
20509 syntax
20510 \emph default
20511  of C programs, but also does 
20512 \emph on
20513 semantic
20514 \emph default
20515  checks for type-errors, 
20516 \family sans
20517 Chk\SpecialChar TeX
20518
20519 \family default
20520  catches some common 
20521 \emph on
20522 typographic
20523 \emph default
20524  errors, in addition to the syntactical ones.
20525  Specifically, 
20526 \family sans
20527 Chk\SpecialChar TeX
20528
20529 \family default
20530  is capable of detecting several common errors, such as
20531 \end_layout
20532
20533 \begin_layout Itemize
20534 Ellipsis detection:
20535 \begin_inset Newline newline
20536 \end_inset
20537
20538 Use \SpecialChar ldots
20539  instead of ...
20540 \end_layout
20541
20542 \begin_layout Itemize
20543 No space in front of/after parenthesis:
20544 \begin_inset Newline newline
20545 \end_inset
20546
20547 ( wrong spacing )
20548 \end_layout
20549
20550 \begin_layout Itemize
20551 Enforcement of normal space after common abbreviations:
20552 \begin_inset Newline newline
20553 \end_inset
20554
20555 e.
20556 \begin_inset space \thinspace{}
20557 \end_inset
20558
20559 g.
20560 \begin_inset space \space{}
20561 \end_inset
20562
20563 is too wide spacing.
20564 \end_layout
20565
20566 \begin_layout Itemize
20567 Enforcement of end-of-sentence space when the last sentence ends with a
20568  capital letter:
20569 \begin_inset Newline newline
20570 \end_inset
20571
20572 This is a TEST.
20573  And this is wrong spacing.
20574 \end_layout
20575
20576 \begin_layout Itemize
20577 Space in front of labels and similar commands:
20578 \begin_inset Newline newline
20579 \end_inset
20580
20581 The label should stick right up to the text to avoid falling to a wrong
20582  page.
20583  
20584 \begin_inset CommandInset label
20585 LatexCommand label
20586 name "sec:chktex"
20587
20588 \end_inset
20589
20590  
20591 \begin_inset Foot
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 This footnote is in danger of falling off to a wrong page
20596 \end_layout
20597
20598 \end_inset
20599
20600  The label is separated too much.
20601 \end_layout
20602
20603 \begin_layout Itemize
20604 Space in front of references, instead of hard spaces:
20605 \begin_inset Newline newline
20606 \end_inset
20607
20608 If you have bad luck, the text will break right between the referenced text
20609  and reference number, and that's a pity.
20610  See section 
20611 \begin_inset CommandInset ref
20612 LatexCommand ref
20613 reference "sec:chktex"
20614
20615 \end_inset
20616
20617 .
20618 \end_layout
20619
20620 \begin_layout Itemize
20621 Use of 
20622 \begin_inset Quotes eld
20623 \end_inset
20624
20625 x
20626 \begin_inset Quotes erd
20627 \end_inset
20628
20629  instead of 
20630 \begin_inset Formula $\times$
20631 \end_inset
20632
20633  between numbers:
20634 \begin_inset Newline newline
20635 \end_inset
20636
20637 2x2 looks cheap compared to 
20638 \begin_inset Formula $2\times2$
20639 \end_inset
20640
20641 .
20642 \end_layout
20643
20644 \begin_layout Standard
20645 and more \SpecialChar ldots
20646  It is an invaluable tool when you are 
20647 \begin_inset Quotes eld
20648 \end_inset
20649
20650 finishing up
20651 \begin_inset Quotes erd
20652 \end_inset
20653
20654  your document before printing, and you should run it right after the obligatory
20655  spelling check, and before you go fine tuning the typesetting.
20656 \end_layout
20657
20658 \begin_layout Subsection
20659 How to use it
20660 \end_layout
20661
20662 \begin_layout Standard
20663 If you have the program installed, usage is as simple as choosing 
20664 \family sans
20665 Tools\SpecialChar menuseparator
20666 Check
20667 \begin_inset space ~
20668 \end_inset
20669
20670 TeX
20671 \family default
20672 .
20673  This will make \SpecialChar LyX
20674  generate a \SpecialChar LaTeX
20675  file of your document, start 
20676 \family sans
20677 Chk\SpecialChar TeX
20678
20679 \family default
20680  to check it, and then make \SpecialChar LyX
20681  insert 
20682 \begin_inset Quotes eld
20683 \end_inset
20684
20685 error boxes
20686 \begin_inset Quotes erd
20687 \end_inset
20688
20689  with the warnings from 
20690 \family sans
20691 Chk\SpecialChar TeX
20692
20693 \family default
20694 , if there were any.
20695  The warnings will be placed close to the point of the mistake, and you
20696  can quickly find them by using the 
20697 \family sans
20698 Navigate\SpecialChar menuseparator
20699 Error
20700 \family default
20701  menu item, or the shortcut key 
20702 \family sans
20703 C-g
20704 \family default
20705  from the default 
20706 \family typewriter
20707 cua
20708 \family default
20709  bind file.
20710  Open the error boxes by clicking on them with the mouse, or use the shortcut
20711  key 
20712 \family sans
20713 C-i
20714 \family default
20715  from 
20716 \family typewriter
20717 cua
20718 \family default
20719  bindings, or the corresponding 
20720 \family sans
20721 C-o
20722 \family default
20723  for the alternate 
20724 \family typewriter
20725 emacs
20726 \family default
20727  bind file.
20728  Read the warning and correct the mistake, if it is a mistake.
20729  If you have trouble understanding what the warning is about, you can safely
20730  ignore it.
20731  Remember that there is a hidden layer between the document on screen and
20732  the technical details in invoking 
20733 \family sans
20734 Chk\SpecialChar TeX
20735
20736 \family default
20737 , and this gap can make some warnings seem arcane or just plain silly.
20738 \end_layout
20739
20740 \begin_layout Standard
20741 This document is an excellent testing bed for the feature, and it should
20742  provide quite a few warnings for you to fiddle with.
20743  Since computers are only so smart, expect most of the warnings to be false
20744  alarms, though.
20745 \end_layout
20746
20747 \begin_layout Subsection
20748 How to fine tune it
20749 \end_layout
20750
20751 \begin_layout Standard
20752 Sometimes, you'll find that 
20753 \family sans
20754 Chk\SpecialChar TeX
20755
20756 \family default
20757  makes more noise than suits your mood.
20758  Then you can choose not to use it, wait until your mood changes, or try
20759  to customize 
20760 \family sans
20761 Chk\SpecialChar TeX
20762
20763 \family default
20764  to get better along with you.
20765 \end_layout
20766
20767 \begin_layout Standard
20768 Although 
20769 \family sans
20770 Chk\SpecialChar TeX
20771
20772 \family default
20773  
20774 \emph on
20775 is
20776 \emph default
20777  very configurable and extensible, you should not expect to solve all problems
20778  with 
20779 \family sans
20780 Chk\SpecialChar TeX
20781
20782 \family default
20783  in \SpecialChar LyX
20784  this way.
20785  Since \SpecialChar LyX
20786  has to generate a somewhat special \SpecialChar LaTeX
20787  file to be able to match the
20788  line numbers from the 
20789 \family sans
20790 Chk\SpecialChar TeX
20791
20792 \family default
20793  output
20794 \begin_inset Foot
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 You can inspect the specific output from 
20799 \family sans
20800 chktex
20801 \family default
20802  by using 
20803 \family sans
20804 Document\SpecialChar menuseparator
20805 \SpecialChar LaTeX
20806
20807 \begin_inset space ~
20808 \end_inset
20809
20810 Log
20811 \family default
20812  right after a 
20813 \family sans
20814 chktex
20815 \family default
20816  run.
20817 \end_layout
20818
20819 \end_inset
20820
20821  to the internal document structure, some of the warnings will not appear
20822  correctly.
20823  There are two things you can do about this:
20824 \end_layout
20825
20826 \begin_layout Itemize
20827 Fine tune the 
20828 \family sans
20829 Chk\SpecialChar TeX
20830
20831 \family default
20832  invocation command line in 
20833 \begin_inset Flex Noun
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 Tools\SpecialChar menuseparator
20838 Preferences\SpecialChar menuseparator
20839 Output\SpecialChar menuseparator
20840 LaTeX\SpecialChar menuseparator
20841 CheckTeX command
20842 \end_layout
20843
20844 \end_inset
20845
20846 , or the global 
20847 \family sans
20848 Chk\SpecialChar TeX
20849
20850 \family default
20851  installation configuration file (usually with the file 
20852 \family typewriter
20853 chktexrc
20854 \family default
20855 ).
20856  See below to learn what warnings can be enabled and disabled on the command
20857  line.
20858 \end_layout
20859
20860 \begin_layout Itemize
20861 Export your document as a raw \SpecialChar LaTeX
20862  file using 
20863 \family sans
20864 File\SpecialChar menuseparator
20865 Export\SpecialChar menuseparator
20866 \SpecialChar LaTeX
20867
20868 \family default
20869  and run 
20870 \family typewriter
20871 chktex
20872 \family default
20873  manually on that.
20874  Invoked in this way, it can be a hassle to find the corresponding place
20875  in the document inside \SpecialChar LyX
20876 , but with a little patience, you should be able
20877  to do it.
20878 \end_layout
20879
20880 \begin_layout Standard
20881 Here follows the warning messages that can be enabled and disabled in 
20882 \family sans
20883 Preferences
20884 \family default
20885 .
20886  Use 
20887 \family typewriter
20888 -n#
20889 \family default
20890  to disable a warning, and 
20891 \family typewriter
20892 -w#
20893 \family default
20894  to enable a warning.
20895  The emphasized entries are disabled by default, because the default is
20896  "
20897 \family typewriter
20898 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20899 \family default
20900 ".
20901 \end_layout
20902
20903 \begin_layout Standard
20904 Notice that you should only use the options that enable and disable warnings,
20905  because \SpecialChar LyX
20906  relies on some of the other command line parameters to be set
20907  in a specific way to have a chance to communicate with 
20908 \family typewriter
20909 chktex
20910 \family default
20911 .
20912 \end_layout
20913
20914 \begin_layout Enumerate
20915
20916 \size small
20917 \emph on
20918 Command terminated with space.
20919 \end_layout
20920
20921 \begin_layout Enumerate
20922
20923 \size small
20924 Non-breaking space (
20925 \begin_inset Quotes eld
20926 \end_inset
20927
20928
20929 \family typewriter
20930 ~
20931 \family default
20932
20933 \begin_inset Quotes erd
20934 \end_inset
20935
20936 ) should have been used.
20937 \end_layout
20938
20939 \begin_layout Enumerate
20940
20941 \size small
20942 \emph on
20943 You should enclose the previous parenthesis with 
20944 \begin_inset Quotes eld
20945 \end_inset
20946
20947
20948 \family typewriter
20949 {}
20950 \family default
20951
20952 \begin_inset Quotes erd
20953 \end_inset
20954
20955 .
20956 \end_layout
20957
20958 \begin_layout Enumerate
20959
20960 \size small
20961 Italic correction (
20962 \begin_inset Quotes eld
20963 \end_inset
20964
20965
20966 \family typewriter
20967
20968 \backslash
20969 /
20970 \family default
20971
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975 ) found in non-italic buffer.
20976 \end_layout
20977
20978 \begin_layout Enumerate
20979
20980 \size small
20981 Italic correction (
20982 \begin_inset Quotes eld
20983 \end_inset
20984
20985
20986 \family typewriter
20987
20988 \backslash
20989 /
20990 \family default
20991
20992 \begin_inset Quotes erd
20993 \end_inset
20994
20995 ) found more than once.
20996 \end_layout
20997
20998 \begin_layout Enumerate
20999
21000 \size small
21001 \emph on
21002 No italic correction (
21003 \begin_inset Quotes eld
21004 \end_inset
21005
21006
21007 \family typewriter
21008
21009 \backslash
21010 /
21011 \family default
21012
21013 \begin_inset Quotes erd
21014 \end_inset
21015
21016 ) found.
21017 \end_layout
21018
21019 \begin_layout Enumerate
21020
21021 \size small
21022 Accent command 
21023 \begin_inset Quotes eld
21024 \end_inset
21025
21026
21027 \family typewriter
21028 cmd
21029 \family default
21030
21031 \begin_inset Quotes erd
21032 \end_inset
21033
21034  needs use of 
21035 \begin_inset Quotes eld
21036 \end_inset
21037
21038
21039 \family typewriter
21040 cmd
21041 \family default
21042
21043 \begin_inset Quotes erd
21044 \end_inset
21045
21046 .
21047 \end_layout
21048
21049 \begin_layout Enumerate
21050
21051 \size small
21052 Wrong length of dash may have been used.
21053 \end_layout
21054
21055 \begin_layout Enumerate
21056
21057 \size small
21058 \emph on
21059 \begin_inset Quotes eld
21060 \end_inset
21061
21062
21063 \family typewriter
21064 %s
21065 \family default
21066
21067 \begin_inset Quotes erd
21068 \end_inset
21069
21070  expected, found 
21071 \begin_inset Quotes eld
21072 \end_inset
21073
21074
21075 \family typewriter
21076 %s
21077 \family default
21078
21079 \begin_inset Quotes erd
21080 \end_inset
21081
21082 .
21083 \end_layout
21084
21085 \begin_layout Enumerate
21086
21087 \size small
21088 Solo 
21089 \begin_inset Quotes eld
21090 \end_inset
21091
21092
21093 \family typewriter
21094 %s
21095 \family default
21096
21097 \begin_inset Quotes erd
21098 \end_inset
21099
21100  found.
21101 \end_layout
21102
21103 \begin_layout Enumerate
21104
21105 \size small
21106 You should use 
21107 \begin_inset Quotes eld
21108 \end_inset
21109
21110
21111 \family typewriter
21112 %s
21113 \family default
21114
21115 \begin_inset Quotes erd
21116 \end_inset
21117
21118  to achieve an ellipsis.
21119 \end_layout
21120
21121 \begin_layout Enumerate
21122
21123 \size small
21124 Inter-word spacing (
21125 \begin_inset Quotes eld
21126 \end_inset
21127
21128
21129 \family typewriter
21130
21131 \backslash
21132
21133 \family default
21134  
21135 \begin_inset Quotes eld
21136 \end_inset
21137
21138 ) should perhaps be used.
21139 \end_layout
21140
21141 \begin_layout Enumerate
21142
21143 \size small
21144 Inter-sentence spacing (
21145 \begin_inset Quotes eld
21146 \end_inset
21147
21148
21149 \family typewriter
21150
21151 \backslash
21152 @
21153 \family default
21154
21155 \begin_inset Quotes erd
21156 \end_inset
21157
21158 ) should perhaps be used.
21159 \end_layout
21160
21161 \begin_layout Enumerate
21162
21163 \size small
21164 Could not find argument for command.
21165 \end_layout
21166
21167 \begin_layout Enumerate
21168
21169 \size small
21170 No match found for 
21171 \begin_inset Quotes eld
21172 \end_inset
21173
21174
21175 \family typewriter
21176 %s
21177 \family default
21178
21179 \begin_inset Quotes erd
21180 \end_inset
21181
21182 .
21183 \end_layout
21184
21185 \begin_layout Enumerate
21186
21187 \size small
21188 Math mode still on at end of \SpecialChar LaTeX
21189  file.
21190 \end_layout
21191
21192 \begin_layout Enumerate
21193
21194 \size small
21195 Number of 
21196 \begin_inset Quotes eld
21197 \end_inset
21198
21199
21200 \family typewriter
21201 char
21202 \family default
21203
21204 \begin_inset Quotes erd
21205 \end_inset
21206
21207  doesn't match the number of 
21208 \begin_inset Quotes eld
21209 \end_inset
21210
21211
21212 \family typewriter
21213 char
21214 \family default
21215
21216 \begin_inset Quotes erd
21217 \end_inset
21218
21219 .
21220 \end_layout
21221
21222 \begin_layout Enumerate
21223
21224 \size small
21225 You should use either 
21226 \family typewriter
21227
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231
21232 \family default
21233  or 
21234 \family typewriter
21235
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239
21240 \family default
21241  as an alternative to 
21242 \begin_inset Quotes eld
21243 \end_inset
21244
21245
21246 \family typewriter
21247 "
21248 \family default
21249
21250 \begin_inset Quotes erd
21251 \end_inset
21252
21253 .
21254 \end_layout
21255
21256 \begin_layout Enumerate
21257
21258 \size small
21259 You should use "
21260 \family typewriter
21261 '
21262 \family default
21263 " (ASCII 39) instead of "
21264 \family typewriter
21265 ´
21266 \family default
21267 " (ASCII 180).
21268 \end_layout
21269
21270 \begin_layout Enumerate
21271
21272 \size small
21273 User-specified pattern found.
21274 \end_layout
21275
21276 \begin_layout Enumerate
21277
21278 \size small
21279 This command might not be intended.
21280 \end_layout
21281
21282 \begin_layout Enumerate
21283
21284 \size small
21285 \emph on
21286 Comment displayed.
21287 \end_layout
21288
21289 \begin_layout Enumerate
21290
21291 \size small
21292 Either 
21293 \family typewriter
21294 ''
21295 \backslash
21296 ,'
21297 \family default
21298  or 
21299 \family typewriter
21300 '
21301 \backslash
21302 ,''
21303 \family default
21304  will look better.
21305 \end_layout
21306
21307 \begin_layout Enumerate
21308
21309 \size small
21310 Delete this space to maintain correct page references.
21311 \end_layout
21312
21313 \begin_layout Enumerate
21314
21315 \size small
21316 \emph on
21317 You might wish to put this between a pair of 
21318 \begin_inset Quotes eld
21319 \end_inset
21320
21321
21322 \family typewriter
21323 {}
21324 \family default
21325
21326 \begin_inset Quotes erd
21327 \end_inset
21328
21329 .
21330 \end_layout
21331
21332 \begin_layout Enumerate
21333
21334 \size small
21335 You ought to remove spaces in front of punctuation.
21336 \end_layout
21337
21338 \begin_layout Enumerate
21339
21340 \size small
21341 Could not execute \SpecialChar LaTeX
21342  command.
21343 \end_layout
21344
21345 \begin_layout Enumerate
21346
21347 \size small
21348 Don't use 
21349 \family typewriter
21350
21351 \backslash
21352 /
21353 \family default
21354  in front of small punctuation.
21355 \end_layout
21356
21357 \begin_layout Enumerate
21358
21359 \family typewriter
21360 \size small
21361 $
21362 \backslash
21363 times$
21364 \family default
21365  may look prettier here.
21366 \end_layout
21367
21368 \begin_layout Enumerate
21369
21370 \size small
21371 \emph on
21372 Multiple spaces detected in output.
21373 \end_layout
21374
21375 \begin_layout Enumerate
21376
21377 \size small
21378 This text may be ignored.
21379 \end_layout
21380
21381 \begin_layout Enumerate
21382
21383 \size small
21384 Use 
21385 \family typewriter
21386
21387 \begin_inset Quotes eld
21388 \end_inset
21389
21390
21391 \family default
21392  to begin quotation, not 
21393 \family typewriter
21394 '
21395 \family default
21396 .
21397 \end_layout
21398
21399 \begin_layout Enumerate
21400
21401 \size small
21402 Use 
21403 \family typewriter
21404 '
21405 \family default
21406  to end quotation, not 
21407 \family typewriter
21408
21409 \begin_inset Quotes eld
21410 \end_inset
21411
21412
21413 \family default
21414 .
21415 \end_layout
21416
21417 \begin_layout Enumerate
21418
21419 \size small
21420 Don't mix quotes.
21421 \end_layout
21422
21423 \begin_layout Enumerate
21424
21425 \size small
21426 You should perhaps use 
21427 \begin_inset Quotes eld
21428 \end_inset
21429
21430
21431 \family typewriter
21432 cmd
21433 \family default
21434
21435 \begin_inset Quotes erd
21436 \end_inset
21437
21438  instead.
21439 \end_layout
21440
21441 \begin_layout Enumerate
21442
21443 \size small
21444 You should put a space in front of/after parenthesis.
21445 \end_layout
21446
21447 \begin_layout Enumerate
21448
21449 \size small
21450 You should avoid spaces in front of/after parenthesis.
21451 \end_layout
21452
21453 \begin_layout Enumerate
21454
21455 \size small
21456 \emph on
21457 You should not use punctuation in front of/after quotes.
21458 \end_layout
21459
21460 \begin_layout Enumerate
21461
21462 \size small
21463 Double space found.
21464 \end_layout
21465
21466 \begin_layout Enumerate
21467
21468 \size small
21469 You should put punctuation outside inner/inside display math mode.
21470 \end_layout
21471
21472 \begin_layout Enumerate
21473
21474 \size small
21475 You ought to not use primitive \SpecialChar TeX
21476  in \SpecialChar LaTeX
21477  code.
21478 \end_layout
21479
21480 \begin_layout Enumerate
21481
21482 \size small
21483 You should remove spaces in front of 
21484 \begin_inset Quotes eld
21485 \end_inset
21486
21487
21488 \family typewriter
21489 %s
21490 \family default
21491
21492 \begin_inset Quotes erd
21493 \end_inset
21494
21495
21496 \end_layout
21497
21498 \begin_layout Enumerate
21499
21500 \size small
21501 \begin_inset Quotes eld
21502 \end_inset
21503
21504
21505 \family typewriter
21506 %s
21507 \family default
21508
21509 \begin_inset Quotes erd
21510 \end_inset
21511
21512  is normally not followed by 
21513 \begin_inset Quotes eld
21514 \end_inset
21515
21516
21517 \family typewriter
21518 %c
21519 \family default
21520
21521 \begin_inset Quotes erd
21522 \end_inset
21523
21524 .
21525 \end_layout
21526
21527 \begin_layout Standard
21528 In later versions of \SpecialChar LyX
21529 , we hope to provide a more complete interface to this
21530  tool (and it's smaller cousin 
21531 \family typewriter
21532 lacheck
21533 \family default
21534 ) to exploit the full power of it.
21535  But it's not exactly useless as it is now: go try it on one of your existing
21536  documents of a certain length and be surprised.
21537 \end_layout
21538
21539 \begin_layout Section
21540 Version Control in \SpecialChar LyX
21541
21542 \end_layout
21543
21544 \begin_layout Standard
21545 by
21546 \noun on
21547  Lars Gullik Bjønnes 
21548 \noun default
21549 and 
21550 \noun on
21551 Pavel Sanda
21552 \end_layout
21553
21554 \begin_layout Subsection
21555 Introduction
21556 \end_layout
21557
21558 \begin_layout Standard
21559 \SpecialChar LyX
21560  supports some of the most basic RCS/CVS/SVN/GIT commands.
21561  If you need something a bit more sophisticated you will have to do that
21562  manually in a terminal.
21563 \end_layout
21564
21565 \begin_layout Standard
21566 Also note that CVS support is not as good as subversion support, so we advise
21567  using SVN instead.
21568  A good place to start learning Subversion is the SVN Book
21569 \begin_inset Foot
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 \begin_inset CommandInset href
21574 LatexCommand href
21575 target "http://svnbook.red-bean.com/"
21576 literal "false"
21577
21578 \end_inset
21579
21580
21581 \end_layout
21582
21583 \end_inset
21584
21585 .
21586  In the case of RCS you should read 
21587 \begin_inset Quotes eld
21588 \end_inset
21589
21590 rcsintro
21591 \begin_inset Quotes erd
21592 \end_inset
21593
21594  (a man file, read it with 
21595 \family typewriter
21596 man rcsintro
21597 \family default
21598 ).
21599  This file describes all the basic features of RCS.
21600  You should especially notice the comment about a RCS directory, and the
21601  notion of a master RCS file (the file ending in 
21602 \family typewriter
21603 ,v
21604 \family default
21605 ).
21606 \end_layout
21607
21608 \begin_layout Standard
21609 Before you begin to use the version control features in \SpecialChar LyX
21610 , you should be
21611  familiar with RCS/CVS/SVN/GIT usage.
21612  The implementation in \SpecialChar LyX
21613  assumes a recent version of the GNU RCS or CVS/SVN
21614  package — no guarantees are made for older versions.
21615  Most of the log messages are not currently displayed after operations —
21616  you can check them in the Messages pane if you are unsure.
21617  Regular users of version control will appreciate the VC toolbar, which
21618  can be enabled via 
21619 \family sans
21620 View\SpecialChar menuseparator
21621 Toolbars\SpecialChar menuseparator
21622 Version
21623 \begin_inset space ~
21624 \end_inset
21625
21626 Control
21627 \family default
21628 .
21629 \end_layout
21630
21631 \begin_layout Standard
21632 For introducing your own external commands consult 
21633 \begin_inset Flex Code
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 vc-command
21638 \end_layout
21639
21640 \end_inset
21641
21642  in the manual 
21643 \emph on
21644 \SpecialChar LyX
21645  Functions
21646 \emph default
21647 .
21648 \end_layout
21649
21650 \begin_layout Standard
21651 It is strongly recommended to store documents in uncompressed format if
21652  using version control (uncheck 
21653 \family sans
21654 Document\SpecialChar menuseparator
21655 Compressed
21656 \family default
21657  if it is checked): Uncompressed LyX documents are text files and therefore
21658  for merging two different versions by version control systems.
21659  Compressed LyX documents are binary files, which cannot be merged by version
21660  control systems.
21661 \end_layout
21662
21663 \begin_layout Subsection
21664 RCS commands in \SpecialChar LyX
21665
21666 \end_layout
21667
21668 \begin_layout Standard
21669 The following sections describe the RCS commands supported by \SpecialChar LyX
21670 .
21671  You can find them in the 
21672 \family sans
21673 File\SpecialChar menuseparator
21674 Version
21675 \begin_inset space ~
21676 \end_inset
21677
21678 Control
21679 \family default
21680  submenu.
21681  \SpecialChar LyX
21682  was tested against RCS 5.7/5.8.
21683 \end_layout
21684
21685 \begin_layout Subsubsection
21686
21687 \family sans
21688 Register
21689 \end_layout
21690
21691 \begin_layout Standard
21692 If your document is not under revision control, this is the only item shown
21693  in the menu.
21694  And if it is under revision control, the 
21695 \family sans
21696 Register
21697 \family default
21698  item is not visible.
21699  
21700 \end_layout
21701
21702 \begin_layout Standard
21703 This command registers your document with RCS (unless you are under the
21704  directory managed by CVS)\SpecialChar endofsentence
21705  You are asked interactively to supply an initial
21706  description of the document.
21707  The document is now set in Read-Only mode and you have to 
21708 \family sans
21709 Check
21710 \begin_inset space ~
21711 \end_inset
21712
21713 Out
21714 \begin_inset space ~
21715 \end_inset
21716
21717 For
21718 \begin_inset space ~
21719 \end_inset
21720
21721 Edit
21722 \family default
21723 , before making any changes to it.
21724  A document under revision control has a 
21725 \begin_inset Quotes eld
21726 \end_inset
21727
21728 [RCS:<version> <locker>]
21729 \begin_inset Quotes erd
21730 \end_inset
21731
21732  item tagged to the filename in the minibuffer.
21733 \end_layout
21734
21735 \begin_layout Standard
21736 RCS command that is run:
21737 \end_layout
21738
21739 \begin_layout LyX-Code
21740
21741 \family typewriter
21742 ci -q -u -i -t-"<initial description>" <file-name>
21743 \end_layout
21744
21745 \begin_layout Standard
21746 Read 
21747 \family typewriter
21748 man ci
21749 \family default
21750  to understand the switches.
21751  
21752 \end_layout
21753
21754 \begin_layout Subsubsection
21755
21756 \family sans
21757 Check In Changes
21758 \end_layout
21759
21760 \begin_layout Standard
21761 When you are finished editing a file, you check in your changes.
21762  When you do this, you are asked for a description of the changes.
21763  This is stored in the history log.
21764  The version number is bumped, your changes are applied to the master RCS
21765  file, the document is unlocked and set to Read-Only mode.
21766 \end_layout
21767
21768 \begin_layout Itemize
21769 RCS command: 
21770 \family typewriter
21771 ci -q -u -m"<description>" <file-name>
21772 \end_layout
21773
21774 \begin_layout Subsubsection
21775
21776 \family sans
21777 Check Out For Edit
21778 \end_layout
21779
21780 \begin_layout Standard
21781 By doing this you lock the document so that only you can edit it.
21782  This will also make the document Read-Write only for you.
21783  You will usually continue editing for a while and when you are finished
21784  you check in your changes.
21785  The status line is changed to reflect that you have locked the file.
21786 \end_layout
21787
21788 \begin_layout Itemize
21789 RCS command: 
21790 \family typewriter
21791 co -q -l <file-name>
21792 \end_layout
21793
21794 \begin_layout Subsubsection
21795
21796 \family sans
21797 Revert To Repository Version
21798 \end_layout
21799
21800 \begin_layout Standard
21801 This will discard all changes made to the document since the last check
21802  in.
21803  You get a warning before changes are discarded.
21804 \end_layout
21805
21806 \begin_layout Itemize
21807 RCS command: 
21808 \family typewriter
21809 co -f -u<version> <file-name>
21810 \end_layout
21811
21812 \begin_layout Subsubsection
21813
21814 \family sans
21815 Copy
21816 \end_layout
21817
21818 \begin_layout Standard
21819 This will create a copy of the current document.
21820  Since RCS does not support copy operations natively, the version history
21821  is not preserved, and the copy is added as a new file.
21822  It requires a clean document without any changes since the last checkin.
21823  You are asked for a file name and a description of the copy operation.
21824  After that the copy is created, both locally and in the repository.
21825  If the parent directories of the copied and original document differ, all
21826  relative paths of included files of the copy are adjusted (like in 
21827 \family sans
21828 File\SpecialChar menuseparator
21829 Save As
21830 \family default
21831 \SpecialChar ldots
21832 ).
21833  Finally, the copy is loaded instead of the original document.
21834 \end_layout
21835
21836 \begin_layout Labeling
21837 \labelwidthstring 00.00.0000
21838 RCS
21839 \begin_inset space ~
21840 \end_inset
21841
21842 commands: 
21843 \begin_inset space ~
21844 \end_inset
21845
21846
21847 \begin_inset Newline newline
21848 \end_inset
21849
21850 Copy 
21851 \begin_inset Flex Code
21852 status collapsed
21853
21854 \begin_layout Plain Layout
21855
21856 \family typewriter
21857 \begin_inset Quotes qld
21858 \end_inset
21859
21860 <file-name>
21861 \begin_inset Quotes qld
21862 \end_inset
21863
21864
21865 \end_layout
21866
21867 \end_inset
21868
21869  to 
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874
21875 \family typewriter
21876 \begin_inset Quotes qld
21877 \end_inset
21878
21879 <new-file-name>
21880 \begin_inset Quotes qld
21881 \end_inset
21882
21883
21884 \end_layout
21885
21886 \end_inset
21887
21888
21889 \begin_inset Newline newline
21890 \end_inset
21891
21892
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897 ci -q -u 
21898 \family typewriter
21899 -i 
21900 \begin_inset Quotes qld
21901 \end_inset
21902
21903 <new-file-name>
21904 \begin_inset Quotes qld
21905 \end_inset
21906
21907
21908 \end_layout
21909
21910 \end_inset
21911
21912
21913 \end_layout
21914
21915 \begin_layout Subsubsection
21916
21917 \family sans
21918 Undo Last Checkin
21919 \end_layout
21920
21921 \begin_layout Standard
21922 This makes as if the last check in never happened.
21923  No changes are made to the document loaded into \SpecialChar LyX
21924 , but the last version
21925  is removed from the master RCS file.
21926 \end_layout
21927
21928 \begin_layout Itemize
21929 RCS command: 
21930 \family typewriter
21931 rcs -o<version> <file-name>
21932 \end_layout
21933
21934 \begin_layout Subsubsection
21935
21936 \family sans
21937 Show History
21938 \end_layout
21939
21940 \begin_layout Standard
21941 This shows the complete history of the RCS document.
21942  The output of 
21943 \family typewriter
21944 rlog <file-name>
21945 \family default
21946  is shown in a browser.
21947  See 
21948 \family typewriter
21949 man rlog
21950 \family default
21951  for more info.
21952 \end_layout
21953
21954 \begin_layout Subsubsection
21955 Revision info
21956 \end_layout
21957
21958 \begin_layout Standard
21959 \SpecialChar LyX
21960  supports RCS version number, author name, date and time of last commit.
21961  All those are extracted from 
21962 \family typewriter
21963 rlog -r <file-name>
21964 \family default
21965 .
21966  See 
21967 \begin_inset CommandInset ref
21968 LatexCommand ref
21969 reference "subsec:VCS-Revision-Information"
21970
21971 \end_inset
21972
21973  for details.
21974 \end_layout
21975
21976 \begin_layout Subsection
21977 CVS commands in \SpecialChar LyX
21978
21979 \end_layout
21980
21981 \begin_layout Standard
21982 A subset of CVS operations is supported by \SpecialChar LyX
21983 .
21984  You can find the commands in the 
21985 \family sans
21986 File\SpecialChar menuseparator
21987 Version
21988 \begin_inset space ~
21989 \end_inset
21990
21991 Control
21992 \family default
21993  submenu.
21994  The version control system SVN is more powerful, so please use it instead
21995  of CVS if possible.
21996 \end_layout
21997
21998 \begin_layout Subsubsection
21999
22000 \family sans
22001 General CVS usage
22002 \end_layout
22003
22004 \begin_layout Standard
22005 If you start from scratch with CVS you have to create your repository and
22006  checkout the working copy with external tools.
22007  If you're using a client-server setup you may need to login before doing
22008  the first repository checkout.
22009 \end_layout
22010
22011 \begin_layout Standard
22012 If your documents are under revision control and others are using the same
22013  repository problems arise when different changes to the same document at
22014  the same location happen.
22015  Standard CVS repositories don't operate with a file locking mechanism.
22016  This may be surprising, but conflicts only occur if people disagree on
22017  the proper content of the same part of a document.
22018  So, if co-workers are used to communicate regularly, these conflicts occur
22019  rarely.
22020  If they don't communicate they have a fundamental problem anyway.
22021  Nevertheless some people like to work with so called 
22022 \begin_inset Quotes eld
22023 \end_inset
22024
22025 reserved checkouts
22026 \begin_inset Quotes erd
22027 \end_inset
22028
22029 .
22030  If they do so the working copy of all files is readonly when checked out
22031  first and the user starts editing after using a special command to make
22032  the working copy writable.
22033  When the changes are checked in the working copy returns to readonly state.
22034  With \SpecialChar LyX
22035  one has to edit the 
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 .cvsrc
22041 \end_layout
22042
22043 \end_inset
22044
22045  file and add the line 
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 cvs -r
22051 \end_layout
22052
22053 \end_inset
22054
22055  to work with reserved checkouts.
22056  The benefit is the possibility to see who is using a writable copy of some
22057  document.
22058  It's not guaranteed only one user makes a copy writable.
22059 \end_layout
22060
22061 \begin_layout Standard
22062 \SpecialChar LyX
22063  tries to guess if you're using reserved or non-reserved checkouts.
22064  If your working copy is readonly or it is writable and an additional copy
22065  of your document exists in the CVS/Base sub-directory a reserved otherwise
22066  a non-reserved checkout is assumed.
22067  When a reserved checkout is detected you have to use 
22068 \begin_inset Flex Noun
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 Check Out
22073 \end_layout
22074
22075 \end_inset
22076
22077  to make your working copy writable if it's readonly.
22078  After doing so the 
22079 \begin_inset Flex Noun
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 Check In
22084 \end_layout
22085
22086 \end_inset
22087
22088  operation is possible and that makes your working copy readonly again after
22089  transferring your changes to the repository.
22090 \end_layout
22091
22092 \begin_layout Standard
22093 More information about CVS can be found here 
22094 \begin_inset Flex URL
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098
22099 http://www.nongnu.org/cvs
22100 \end_layout
22101
22102 \end_inset
22103
22104  and here 
22105 \begin_inset Flex URL
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109
22110 http://ximbiot.com/cvs
22111 \end_layout
22112
22113 \end_inset
22114
22115 .
22116 \end_layout
22117
22118 \begin_layout Standard
22119 Read 
22120 \family typewriter
22121 man cvs
22122 \family default
22123  to understand the sub-commands and the switches mentioned below.
22124 \end_layout
22125
22126 \begin_layout Subsubsection
22127
22128 \family sans
22129 Register
22130 \end_layout
22131
22132 \begin_layout Standard
22133 If your document is not under revision control, this is the only item shown
22134  in the menu.
22135  And if it is under revision control, the 
22136 \family sans
22137 Register
22138 \family default
22139  item is not visible.
22140  
22141 \end_layout
22142
22143 \begin_layout Standard
22144 This command registers in CVS your document 
22145 \begin_inset Flex Strong
22146 status collapsed
22147
22148 \begin_layout Plain Layout
22149
22150 \emph on
22151 only
22152 \end_layout
22153
22154 \end_inset
22155
22156  in the case you have already the documents directory under CVS control
22157  (in particular 
22158 \family typewriter
22159 CVS/Entries
22160 \family default
22161  file exists).
22162  This means you have to create or checkout the archive by yourself using
22163  external tools.
22164  (In case you forget that step \SpecialChar LyX
22165  registers the document with RCS.)
22166 \end_layout
22167
22168 \begin_layout Standard
22169 Then you are asked interactively to supply an initial description of the
22170  document.
22171  Don't forget that registered file is not yet checked in.
22172 \end_layout
22173
22174 \begin_layout Standard
22175 CVS command that is run: 
22176 \family typewriter
22177 cvs -q add -m"<entered message>" "<file-name>"
22178 \end_layout
22179
22180 \begin_layout Standard
22181 The term 
22182 \family typewriter
22183 "<file-name>"
22184 \family default
22185  above and for all other CVS commands is an abbreviation for 
22186 \begin_inset Quotes eld
22187 \end_inset
22188
22189 change the current working directory to file location and use the file name
22190  without path component as argument
22191 \begin_inset Quotes erd
22192 \end_inset
22193
22194 .
22195 \end_layout
22196
22197 \begin_layout Subsubsection
22198
22199 \family sans
22200 Check In Changes
22201 \end_layout
22202
22203 \begin_layout Standard
22204 When you are finished editing a file, you commit your changes.
22205  When you do this and you had changed the document, you are asked for a
22206  description of the changes.
22207  After that changes are written to the repository.
22208  In case you didn't change the document and a reserved checkout is detected
22209  the reservation made on 
22210 \begin_inset Flex Noun
22211 status collapsed
22212
22213 \begin_layout Plain Layout
22214 Check Out
22215 \end_layout
22216
22217 \end_inset
22218
22219  is undone.
22220 \end_layout
22221
22222 \begin_layout Labeling
22223 \labelwidthstring 00.00.0000
22224 CVS
22225 \begin_inset space ~
22226 \end_inset
22227
22228 command: 
22229 \begin_inset space ~
22230 \end_inset
22231
22232
22233 \begin_inset Newline newline
22234 \end_inset
22235
22236
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 cvs 
22242 \family typewriter
22243 -q commit -m"<description>" "<file-name>"
22244 \end_layout
22245
22246 \end_inset
22247
22248  or
22249 \begin_inset Newline newline
22250 \end_inset
22251
22252
22253 \begin_inset Flex Code
22254 status collapsed
22255
22256 \begin_layout Plain Layout
22257 cvs -q unedit 
22258 \family typewriter
22259 "<file-name>"
22260 \end_layout
22261
22262 \end_inset
22263
22264
22265 \end_layout
22266
22267 \begin_layout Subsubsection
22268
22269 \family sans
22270 Check Out Changes
22271 \end_layout
22272
22273 \begin_layout Standard
22274 When you are sharing a repository with others, you may have to incorporate
22275  their changes into your working copy.
22276 \end_layout
22277
22278 \begin_layout Standard
22279 CVS command: 
22280 \family typewriter
22281 cvs -q update "<file-name>"
22282 \end_layout
22283
22284 \begin_layout Standard
22285 If a readonly checkout is detected the working copy is made writable and
22286  reserved.
22287 \end_layout
22288
22289 \begin_layout Standard
22290 CVS command: 
22291 \family typewriter
22292 cvs -q edit "<file-name>"
22293 \end_layout
22294
22295 \begin_layout Subsubsection
22296
22297 \family sans
22298 Revert To Repository Version
22299 \end_layout
22300
22301 \begin_layout Standard
22302 This will discard all changes made to the document since the last check
22303  in.
22304  You get a warning before changes are discarded.
22305  Firstly the file is deleted, secondly CVS update command is run.
22306 \end_layout
22307
22308 \begin_layout Standard
22309 CVS command: 
22310 \family typewriter
22311 cvs -q update "<file-name>"
22312 \end_layout
22313
22314 \begin_layout Standard
22315 If a reserved checkout is detected and the working copy has no changes only
22316  the reservation is undone.
22317 \end_layout
22318
22319 \begin_layout Standard
22320 CVS command: 
22321 \family typewriter
22322 cvs -q unedit "<file-name>"
22323 \end_layout
22324
22325 \begin_layout Subsubsection
22326
22327 \family sans
22328 Copy
22329 \end_layout
22330
22331 \begin_layout Standard
22332 This will create a copy of the current document.
22333  Since CVS does not support copy operations natively, the version history
22334  is not preserved, and the copy is added as a new file.
22335  It requires a clean document without any changes since the last checkin.
22336  You are asked for a file name and a description of the copy operation.
22337  After that the copy is created, both locally and in the repository.
22338  If the parent directories of the copied and original document differ, all
22339  relative paths of included files of the copy are adjusted (like in 
22340 \family sans
22341 File\SpecialChar menuseparator
22342 Save As
22343 \family default
22344 \SpecialChar ldots
22345 ).
22346  Finally, the copy is loaded instead of the original document.
22347 \end_layout
22348
22349 \begin_layout Labeling
22350 \labelwidthstring 00.00.0000
22351 CVS
22352 \begin_inset space ~
22353 \end_inset
22354
22355 commands: 
22356 \begin_inset space ~
22357 \end_inset
22358
22359
22360 \begin_inset Newline newline
22361 \end_inset
22362
22363 Copy 
22364 \begin_inset Flex Code
22365 status collapsed
22366
22367 \begin_layout Plain Layout
22368 "<file-name>"
22369 \end_layout
22370
22371 \end_inset
22372
22373  to 
22374 \begin_inset Flex Code
22375 status collapsed
22376
22377 \begin_layout Plain Layout
22378 "<new-file-name>"
22379 \end_layout
22380
22381 \end_inset
22382
22383
22384 \begin_inset Newline newline
22385 \end_inset
22386
22387
22388 \begin_inset Flex Code
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 cvs -q add "<new-file-name>"
22393 \end_layout
22394
22395 \end_inset
22396
22397
22398 \end_layout
22399
22400 \begin_layout Subsubsection
22401
22402 \family sans
22403 Rename
22404 \end_layout
22405
22406 \begin_layout Standard
22407 This will rename the current document.
22408  Since CVS does not support rename operations natively, the version history
22409  is not preserved, the renamed document is added as a new file, and the
22410  original document is deleted.
22411  It requires a clean document without any changes since the last checkin.
22412  You are asked for a file name and a description of the rename operation.
22413  After that the document is renamed, both locally and in the repository.
22414  If the parent directories of the new and old file names differ, all relative
22415  paths of included files are adjusted (like in 
22416 \family sans
22417 File\SpecialChar menuseparator
22418 Save As
22419 \family default
22420 \SpecialChar ldots
22421 ).
22422  Finally, the document is reloaded using the new name.
22423 \end_layout
22424
22425 \begin_layout Labeling
22426 \labelwidthstring 00.00.0000
22427 CVS
22428 \begin_inset space ~
22429 \end_inset
22430
22431 commands: 
22432 \begin_inset space ~
22433 \end_inset
22434
22435
22436 \begin_inset Newline newline
22437 \end_inset
22438
22439 Rename 
22440 \begin_inset Flex Code
22441 status collapsed
22442
22443 \begin_layout Plain Layout
22444 "<file-name>"
22445 \end_layout
22446
22447 \end_inset
22448
22449  to 
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 "<new-file-name>"
22455 \end_layout
22456
22457 \end_inset
22458
22459
22460 \begin_inset Newline newline
22461 \end_inset
22462
22463
22464 \begin_inset Flex Code
22465 status collapsed
22466
22467 \begin_layout Plain Layout
22468 cvs -q add "<new-file-name>"
22469 \end_layout
22470
22471 \end_inset
22472
22473
22474 \begin_inset Newline newline
22475 \end_inset
22476
22477
22478 \begin_inset Flex Code
22479 status collapsed
22480
22481 \begin_layout Plain Layout
22482 cvs -q remove "<file-name>"
22483 \end_layout
22484
22485 \end_inset
22486
22487
22488 \end_layout
22489
22490 \begin_layout Subsubsection
22491 Update of the local directory checkout from repository
22492 \end_layout
22493
22494 \begin_layout Standard
22495 Once your documents gets more complex, containing sub-documents and pictures,
22496  including external 
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 .tex
22502 \end_layout
22503
22504 \end_inset
22505
22506  files and so on using version control becomes more complicated.
22507  \SpecialChar LyX
22508  supports updating the whole tree in which resides the document.
22509  This become especially useful once you cooperate with people which neither
22510  have detailed knowledge about CVS usage nor they have ambition to commit
22511  additional material to the repository.
22512  You have to organize the files structure so that all external files are
22513  in the same directory or subdirectories of the document.
22514  It's good practice anyway to store multipart documents in an extra directory.
22515 \end_layout
22516
22517 \begin_layout Standard
22518 The 
22519 \begin_inset Flex Code
22520 status collapsed
22521
22522 \begin_layout Plain Layout
22523 Update local directory from repository
22524 \end_layout
22525
22526 \end_inset
22527
22528  command updates the whole directory.
22529  If local changes are detected user is warned before update starts.
22530  In case of merge conflicts both versions of the conflicting document parts
22531  are placed in the final document.
22532  You have to review and correct the result of the merge.
22533  You'll find the conflicts enclosed in pairs of 
22534 \begin_inset Flex Code
22535 status collapsed
22536
22537 \begin_layout Plain Layout
22538 <<<<<<<
22539 \end_layout
22540
22541 \end_inset
22542
22543  and 
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548 >>>>>>>
22549 \end_layout
22550
22551 \end_inset
22552
22553  separated by 
22554 \begin_inset Flex Code
22555 status collapsed
22556
22557 \begin_layout Plain Layout
22558 =======
22559 \end_layout
22560
22561 \end_inset
22562
22563 .
22564  The first part is your version as before the update operation with the
22565  document name prepended.
22566  The second one is the repository version with the version number after
22567  the sequence of 
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 >
22573 \end_layout
22574
22575 \end_inset
22576
22577  signs.
22578 \end_layout
22579
22580 \begin_layout Labeling
22581 \labelwidthstring 00.00.0000
22582 CVS
22583 \begin_inset space ~
22584 \end_inset
22585
22586 commands: 
22587 \begin_inset space ~
22588 \end_inset
22589
22590
22591 \begin_inset Newline newline
22592 \end_inset
22593
22594
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599 cd $path; cvs diff 
22600 \family typewriter
22601 "."
22602 \end_layout
22603
22604 \end_inset
22605
22606  (Ask if changes are detected.)
22607 \begin_inset Newline newline
22608 \end_inset
22609
22610
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 cd $path; cvs -q update 
22616 \family typewriter
22617 "."
22618 \end_layout
22619
22620 \end_inset
22621
22622
22623 \end_layout
22624
22625 \begin_layout Standard
22626 where 
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 $path
22632 \end_layout
22633
22634 \end_inset
22635
22636  stands for the path to the document.
22637 \end_layout
22638
22639 \begin_layout Subsubsection
22640
22641 \family sans
22642 Show History
22643 \end_layout
22644
22645 \begin_layout Standard
22646 This shows the complete history of the CVS document.
22647  The output of 
22648 \family typewriter
22649 cvs log "<file-name>"
22650 \family default
22651  is shown in a browser.
22652 \end_layout
22653
22654 \begin_layout Subsubsection
22655 Revision info
22656 \end_layout
22657
22658 \begin_layout Standard
22659 \SpecialChar LyX
22660  supports CVS version number, author name, date and time of last commit.
22661  All those are extracted from 
22662 \family typewriter
22663 cvs log -r <file-name>
22664 \family default
22665 .
22666  See 
22667 \begin_inset CommandInset ref
22668 LatexCommand ref
22669 reference "subsec:VCS-Revision-Information"
22670
22671 \end_inset
22672
22673  for details.
22674 \end_layout
22675
22676 \begin_layout Subsection
22677 SVN commands in \SpecialChar LyX
22678
22679 \end_layout
22680
22681 \begin_layout Standard
22682 SVN is now partially supported by \SpecialChar LyX
22683 .
22684  You can find the commands in the 
22685 \family sans
22686 File\SpecialChar menuseparator
22687 Version
22688 \begin_inset space ~
22689 \end_inset
22690
22691 Control
22692 \family default
22693  submenu.
22694  Please note that if you use password protected access to repository via
22695  ssh, you will be asked in terminal window.
22696  \SpecialChar LyX
22697  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22698 \begin_inset Foot
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 Most of the commands will work with 1.4 too, see 
22703 \begin_inset CommandInset ref
22704 LatexCommand ref
22705 reference "subsec:SVN-Repo-Update"
22706
22707 \end_inset
22708
22709 .
22710  There seems to be currently unresolved permissions problem under SVN 1.8
22711  with reverting changes when file is locked.
22712 \end_layout
22713
22714 \end_inset
22715
22716
22717 \end_layout
22718
22719 \begin_layout Subsubsection
22720
22721 \family sans
22722 Register
22723 \end_layout
22724
22725 \begin_layout Standard
22726 If your document is not under revision control, this is the only item shown
22727  in the menu.
22728  And if it is under revision control, the 
22729 \family sans
22730 Register
22731 \family default
22732  item is not visible.
22733 \end_layout
22734
22735 \begin_layout Standard
22736 This command registers in SVN your document ONLY in case you have already
22737  the documents directory under SVN control (in particular 
22738 \family typewriter
22739 .svn/entries
22740 \family default
22741  file exists).
22742  This means you have to checkout the archive by yourself.
22743 \end_layout
22744
22745 \begin_layout Standard
22746 Then you are asked interactively to supply an initial description of the
22747  document.
22748  Don't forget that registered file is not yet commited.
22749 \end_layout
22750
22751 \begin_layout Standard
22752 SVN command that is run: 
22753 \family typewriter
22754 svn add -q 
22755 \begin_inset Quotes qld
22756 \end_inset
22757
22758 <file-name>
22759 \begin_inset Quotes qld
22760 \end_inset
22761
22762
22763 \end_layout
22764
22765 \begin_layout Standard
22766 Read 
22767 \family typewriter
22768 man svn
22769 \family default
22770  to understand the switches.
22771 \end_layout
22772
22773 \begin_layout Subsubsection
22774
22775 \family sans
22776 Check In Changes
22777 \end_layout
22778
22779 \begin_layout Standard
22780 When you are finished editing a file, you commit your changes.
22781  When you do this, you are asked for a description of the changes.
22782  After that changes are commited.
22783 \end_layout
22784
22785 \begin_layout Standard
22786 SVN command:
22787 \begin_inset Foot
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 In case locking is not enabled.
22792  See Section 
22793 \begin_inset CommandInset ref
22794 LatexCommand ref
22795 reference "subsec:SVN-File-Locking"
22796
22797 \end_inset
22798
22799 .
22800 \end_layout
22801
22802 \end_inset
22803
22804  
22805 \family typewriter
22806 svn commit -q -m"<description>" <file-name>
22807 \end_layout
22808
22809 \begin_layout Subsubsection
22810
22811 \family sans
22812 Check Out For Edit
22813 \end_layout
22814
22815 \begin_layout Standard
22816 Updates the changes of this file from the repository.
22817  Be sure you understand SVN merging and conflicts resolving before using
22818  this function, because all conflicts has to be resolved manually by you!
22819 \end_layout
22820
22821 \begin_layout Standard
22822 SVN command:
22823 \begin_inset Foot
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827 Ditto.
22828 \end_layout
22829
22830 \end_inset
22831
22832  
22833 \family typewriter
22834 svn update --non-interactive 
22835 \begin_inset Quotes qld
22836 \end_inset
22837
22838 <file-name>
22839 \begin_inset Quotes qld
22840 \end_inset
22841
22842
22843 \end_layout
22844
22845 \begin_layout Subsubsection
22846
22847 \family sans
22848 Revert To Repository Version
22849 \end_layout
22850
22851 \begin_layout Standard
22852 This will discard all changes made to the document since the last check
22853  in.
22854  You get a warning before changes are discarded.
22855 \end_layout
22856
22857 \begin_layout Standard
22858 SVN command: 
22859 \family typewriter
22860 svn revert -q 
22861 \begin_inset Quotes qld
22862 \end_inset
22863
22864 <file-name>
22865 \begin_inset Quotes qld
22866 \end_inset
22867
22868
22869 \end_layout
22870
22871 \begin_layout Subsubsection
22872
22873 \family sans
22874 Copy
22875 \end_layout
22876
22877 \begin_layout Standard
22878 This will create a copy of the current document including the version history.
22879  It requires a clean document without any changes since the last checkin.
22880  You are asked for a file name and a description of the copy operation.
22881  After that the copy is created, both locally and in the repository.
22882  If the parent directories of the copied and original document differ, all
22883  relative paths of included files of the copy are adjusted (like in 
22884 \family sans
22885 File\SpecialChar menuseparator
22886 Save As
22887 \family default
22888 \SpecialChar ldots
22889 ).
22890  Finally, the copy is loaded instead of the original document.
22891 \end_layout
22892
22893 \begin_layout Labeling
22894 \labelwidthstring 00.00.0000
22895 SVN
22896 \begin_inset space ~
22897 \end_inset
22898
22899 commands: 
22900 \begin_inset space ~
22901 \end_inset
22902
22903
22904 \begin_inset Newline newline
22905 \end_inset
22906
22907
22908 \begin_inset Flex Code
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 svn copy -q 
22913 \family typewriter
22914
22915 \begin_inset Quotes qld
22916 \end_inset
22917
22918 <file-name>
22919 \begin_inset Quotes qld
22920 \end_inset
22921
22922  
22923 \begin_inset Quotes qld
22924 \end_inset
22925
22926 <new-file-name>
22927 \begin_inset Quotes qld
22928 \end_inset
22929
22930
22931 \end_layout
22932
22933 \end_inset
22934
22935
22936 \begin_inset Newline newline
22937 \end_inset
22938
22939
22940 \begin_inset Flex Code
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944 svn commit
22945 \end_layout
22946
22947 \end_inset
22948
22949
22950 \end_layout
22951
22952 \begin_layout Subsubsection
22953
22954 \family sans
22955 Rename
22956 \end_layout
22957
22958 \begin_layout Standard
22959 This will rename the current document including the version history.
22960  It requires a clean document without any changes since the last checkin.
22961  You are asked for a file name and a description of the rename operation.
22962  After that the document is renamed, both locally and in the repository.
22963  If the parent directories of the new and old file names differ, all relative
22964  paths of included files are adjusted (like in 
22965 \family sans
22966 File\SpecialChar menuseparator
22967 Save As
22968 \family default
22969 \SpecialChar ldots
22970 ).
22971  Finally, the document is reloaded using the new name.
22972 \end_layout
22973
22974 \begin_layout Labeling
22975 \labelwidthstring 00.00.0000
22976 SVN
22977 \begin_inset space ~
22978 \end_inset
22979
22980 commands: 
22981 \begin_inset space ~
22982 \end_inset
22983
22984
22985 \begin_inset Newline newline
22986 \end_inset
22987
22988
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 svn move -q 
22994 \family typewriter
22995
22996 \begin_inset Quotes qld
22997 \end_inset
22998
22999 <file-name>
23000 \begin_inset Quotes qld
23001 \end_inset
23002
23003  
23004 \begin_inset Quotes qld
23005 \end_inset
23006
23007 <new-file-name>
23008 \begin_inset Quotes qld
23009 \end_inset
23010
23011
23012 \end_layout
23013
23014 \end_inset
23015
23016
23017 \begin_inset Newline newline
23018 \end_inset
23019
23020
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 svn commit
23026 \end_layout
23027
23028 \end_inset
23029
23030
23031 \end_layout
23032
23033 \begin_layout Subsubsection
23034 \begin_inset CommandInset label
23035 LatexCommand label
23036 name "subsec:SVN-Repo-Update"
23037
23038 \end_inset
23039
23040 Update of the local directory checkout from repository
23041 \begin_inset Foot
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 Note that this command will work only with subversion 
23046 \begin_inset Formula $\geqq1.5$
23047 \end_inset
23048
23049
23050 \end_layout
23051
23052 \end_inset
23053
23054
23055 \end_layout
23056
23057 \begin_layout Standard
23058 All the commands above have one shortcoming – they deal with the current
23059  document only.
23060  Once your document contains pictures, includes external 
23061 \begin_inset Flex Code
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065 .tex
23066 \end_layout
23067
23068 \end_inset
23069
23070  files and so on administration becomes more complicated.
23071  \SpecialChar LyX
23072  now supports updating the whole tree in which resides the document
23073 \begin_inset Foot
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077 One need to organize the files structure so that all external files are
23078  in the same directory or subdirectories of the document.
23079  
23080 \end_layout
23081
23082 \end_inset
23083
23084 .
23085  This become especially useful once you cooperate with people which neither
23086  know about subversion management nor they have ambition to commit additional
23087  material to the repository.
23088  
23089 \end_layout
23090
23091 \begin_layout Standard
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096 Update local directory from repository
23097 \end_layout
23098
23099 \end_inset
23100
23101  command updates the whole directory and in case of merge conflicts local
23102  version of the files are left, so no unintended data loss occurs.
23103  If local changes are detected user is warned before update starts.
23104 \end_layout
23105
23106 \begin_layout Labeling
23107 \labelwidthstring 00.00.0000
23108 SVN
23109 \begin_inset space ~
23110 \end_inset
23111
23112 commands: 
23113 \begin_inset space ~
23114 \end_inset
23115
23116
23117 \begin_inset Newline newline
23118 \end_inset
23119
23120
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 svn diff $path
23126 \end_layout
23127
23128 \end_inset
23129
23130  (Ask if changes are detected.)
23131 \begin_inset Newline newline
23132 \end_inset
23133
23134
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 svn update --accept mine-full $path
23140 \end_layout
23141
23142 \end_inset
23143
23144
23145 \end_layout
23146
23147 \begin_layout Standard
23148 where 
23149 \begin_inset Flex Code
23150 status collapsed
23151
23152 \begin_layout Plain Layout
23153 $path
23154 \end_layout
23155
23156 \end_inset
23157
23158  stands for the path to the document.
23159 \end_layout
23160
23161 \begin_layout Subsubsection
23162
23163 \family sans
23164 Show History
23165 \end_layout
23166
23167 \begin_layout Standard
23168 This shows the complete history of the SVN document.
23169  The output of 
23170 \family typewriter
23171 svn log 
23172 \begin_inset Quotes qld
23173 \end_inset
23174
23175 <file-name>
23176 \begin_inset Quotes qld
23177 \end_inset
23178
23179
23180 \family default
23181  is shown in a browser.
23182 \end_layout
23183
23184 \begin_layout Subsubsection
23185 File Locking
23186 \begin_inset CommandInset label
23187 LatexCommand label
23188 name "subsec:SVN-File-Locking"
23189
23190 \end_inset
23191
23192
23193 \end_layout
23194
23195 \begin_layout Standard
23196 The file exchange through various revision control systems brings the problem
23197  of merge conflicts in case two different users try to edit the same (parts
23198  of) document.
23199  When such a conflict happens it needs manual resolving and one reasonable
23200  alternative is to provide some kind of locking mechanism, which guarantees
23201  that only one user is allowed to edit file at the given time.
23202 \end_layout
23203
23204 \begin_layout Standard
23205 SVN has two such mechanisms to provide mutual exclusivity for file access
23206  – locks and automatic setting of write permissions (see sec.
23207  
23208 \begin_inset CommandInset ref
23209 LatexCommand ref
23210 reference "subsec:Automatical-Locking-Property"
23211
23212 \end_inset
23213
23214 ) based on 
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219 svn:needs-lock
23220 \end_layout
23221
23222 \end_inset
23223
23224  file svn property
23225 \begin_inset Foot
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 \begin_inset Flex URL
23230 status open
23231
23232 \begin_layout Plain Layout
23233
23234 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23235 \end_layout
23236
23237 \end_inset
23238
23239
23240 \end_layout
23241
23242 \end_inset
23243
23244 .
23245  If this property is detected for a given document \SpecialChar LyX
23246  starts to use SVN locks
23247  for document editing automatically and the whole check-in/out mechanism
23248  switches to the same regimen as for RCS.
23249  This in particular means there are two different modes of file use in \SpecialChar LyX
23250 :
23251 \end_layout
23252
23253 \begin_layout Itemize
23254 Unlocked state.
23255  The loaded file is in the read-only mode.
23256  For editing on needs to check-out.
23257  
23258 \emph on
23259 Check-out
23260 \emph default
23261  consists of updating from the repository and gaining write lock.
23262  If the lock is not possible to obtain, we remain in unlocked state.
23263 \end_layout
23264
23265 \begin_layout Itemize
23266 Locked state.
23267  The loaded file is in the 
23268 \begin_inset Quotes els
23269 \end_inset
23270
23271 normal
23272 \begin_inset Quotes ers
23273 \end_inset
23274
23275  edit mode.
23276  No other user is allowed to edit the file.
23277  
23278 \emph on
23279 Check-in
23280 \emph default
23281  consists of commiting changes and releasing write-lock.
23282  If no changes have been made to the document, no commit will be produced
23283 \begin_inset Foot
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287 Don't be puzzled by the fact that you will be asked for commit message anyway.
23288 \end_layout
23289
23290 \end_inset
23291
23292  and only the write-lock will be released.
23293 \end_layout
23294
23295 \begin_layout Standard
23296 SVN commands:
23297 \end_layout
23298
23299 \begin_layout Labeling
23300 \labelwidthstring 00.00.0000
23301 Check-in:
23302 \family typewriter
23303  svn commit -q -m"<description>" "<file-name>"
23304 \begin_inset Newline newline
23305 \end_inset
23306
23307 svn unlock "<file-name>"
23308 \end_layout
23309
23310 \begin_layout Labeling
23311 \labelwidthstring 00.00.0000
23312 Check-out: 
23313 \family typewriter
23314 svn update "<file-name>"
23315 \begin_inset Newline newline
23316 \end_inset
23317
23318 svn lock "<file-name>"
23319 \end_layout
23320
23321 \begin_layout Subsubsection
23322
23323 \family typewriter
23324 \begin_inset CommandInset label
23325 LatexCommand label
23326 name "subsec:Automatical-Locking-Property"
23327
23328 \end_inset
23329
23330
23331 \family default
23332 Automatic Locking Property
23333 \end_layout
23334
23335 \begin_layout Standard
23336 The above mentioned automatic setting of write permissions of the .lyx file
23337  can be set through
23338 \family sans
23339  File\SpecialChar menuseparator
23340 Version
23341 \begin_inset space ~
23342 \end_inset
23343
23344 Control\SpecialChar menuseparator
23345 Use Locking Property
23346 \family default
23347 .
23348  This command is active only when the file is not locked on the svn server
23349  (i.e.
23350  you need to check-out before proceeding).
23351 \end_layout
23352
23353 \begin_layout Labeling
23354 \labelwidthstring 00.00.0000
23355 SVN
23356 \begin_inset space ~
23357 \end_inset
23358
23359 commands:
23360 \end_layout
23361
23362 \begin_layout Labeling
23363 \labelwidthstring 00.00.0000
23364 Set:
23365 \family typewriter
23366  svn propset svn:needs-lock ON "<file-name>"
23367 \end_layout
23368
23369 \begin_layout Labeling
23370 \labelwidthstring 00.00.0000
23371 Unset: 
23372 \family typewriter
23373 svn propdel svn:needs-lock "<file-name>"
23374 \end_layout
23375
23376 \begin_layout Subsubsection
23377 \begin_inset CommandInset label
23378 LatexCommand label
23379 name "subsec:VCS-Revision-Information"
23380
23381 \end_inset
23382
23383 Revision Information in Documents
23384 \end_layout
23385
23386 \begin_layout Standard
23387 There are more possibilities how to activate revision information in our
23388  document.
23389 \end_layout
23390
23391 \begin_layout Itemize
23392 \SpecialChar LyX
23393  supports directly:
23394 \end_layout
23395
23396 \begin_deeper
23397 \begin_layout Itemize
23398 tree revision information (
23399 \begin_inset Flex Code
23400 status collapsed
23401
23402 \begin_layout Plain Layout
23403 vcs-tree-revision
23404 \end_layout
23405
23406 \end_inset
23407
23408 ).
23409  The result is the output of the 
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414 svnversion
23415 \end_layout
23416
23417 \end_inset
23418
23419  command, the following table gives you an idea, how to read the results.
23420 \end_layout
23421
23422 \begin_layout Standard
23423 \align center
23424 \begin_inset Tabular
23425 <lyxtabular version="3" rows="6" columns="2">
23426 <features tabularvalignment="middle">
23427 <column alignment="left" valignment="top">
23428 <column alignment="left" valignment="top">
23429 <row>
23430 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23431 \begin_inset Text
23432
23433 \begin_layout Plain Layout
23434
23435 \series bold
23436 Output
23437 \end_layout
23438
23439 \end_inset
23440 </cell>
23441 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23442 \begin_inset Text
23443
23444 \begin_layout Plain Layout
23445
23446 \series bold
23447 Meaning
23448 \end_layout
23449
23450 \end_inset
23451 </cell>
23452 </row>
23453 <row>
23454 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23455 \begin_inset Text
23456
23457 \begin_layout Plain Layout
23458 4123:4168
23459 \end_layout
23460
23461 \end_inset
23462 </cell>
23463 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23464 \begin_inset Text
23465
23466 \begin_layout Plain Layout
23467 mixed revision working copy
23468 \end_layout
23469
23470 \end_inset
23471 </cell>
23472 </row>
23473 <row>
23474 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23475 \begin_inset Text
23476
23477 \begin_layout Plain Layout
23478 4168M
23479 \end_layout
23480
23481 \end_inset
23482 </cell>
23483 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23484 \begin_inset Text
23485
23486 \begin_layout Plain Layout
23487 modified working copy
23488 \end_layout
23489
23490 \end_inset
23491 </cell>
23492 </row>
23493 <row>
23494 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23495 \begin_inset Text
23496
23497 \begin_layout Plain Layout
23498 4123S
23499 \end_layout
23500
23501 \end_inset
23502 </cell>
23503 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23504 \begin_inset Text
23505
23506 \begin_layout Plain Layout
23507 switched working copy
23508 \end_layout
23509
23510 \end_inset
23511 </cell>
23512 </row>
23513 <row>
23514 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23515 \begin_inset Text
23516
23517 \begin_layout Plain Layout
23518 4123P
23519 \end_layout
23520
23521 \end_inset
23522 </cell>
23523 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23524 \begin_inset Text
23525
23526 \begin_layout Plain Layout
23527 partial working copy, from a sparse checkout
23528 \end_layout
23529
23530 \end_inset
23531 </cell>
23532 </row>
23533 <row>
23534 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23535 \begin_inset Text
23536
23537 \begin_layout Plain Layout
23538 4123:4168MS
23539 \end_layout
23540
23541 \end_inset
23542 </cell>
23543 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23544 \begin_inset Text
23545
23546 \begin_layout Plain Layout
23547 mixed revision, modified, switched working copy
23548 \end_layout
23549
23550 \end_inset
23551 </cell>
23552 </row>
23553 </lyxtabular>
23554
23555 \end_inset
23556
23557
23558 \end_layout
23559
23560 \begin_layout Itemize
23561 file revision information.
23562  The result comes from parsing the output of 
23563 \begin_inset Flex Code
23564 status collapsed
23565
23566 \begin_layout Plain Layout
23567 svn
23568 \begin_inset space ~
23569 \end_inset
23570
23571 info
23572 \begin_inset space ~
23573 \end_inset
23574
23575 --xml
23576 \begin_inset space ~
23577 \end_inset
23578
23579 file.lyx
23580 \end_layout
23581
23582 \end_inset
23583
23584 .
23585  Supported flags are:
23586 \end_layout
23587
23588 \begin_deeper
23589 \begin_layout Itemize
23590 version number of the last commit (
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 vcs-revision
23596 \end_layout
23597
23598 \end_inset
23599
23600 )
23601 \end_layout
23602
23603 \begin_layout Itemize
23604 author of the last commit (
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 vcs-author
23610 \end_layout
23611
23612 \end_inset
23613
23614 )
23615 \end_layout
23616
23617 \begin_layout Itemize
23618 date of the last commit (
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 vcs-date
23624 \end_layout
23625
23626 \end_inset
23627
23628 )
23629 \end_layout
23630
23631 \begin_layout Itemize
23632 time of the last commit (
23633 \begin_inset Flex Code
23634 status collapsed
23635
23636 \begin_layout Plain Layout
23637 vcs-time
23638 \end_layout
23639
23640 \end_inset
23641
23642 )
23643 \end_layout
23644
23645 \end_deeper
23646 \begin_layout Standard
23647 You can obtain this info via InsetInfo (
23648 \change_inserted 5863208 1564400022
23649
23650 \lang american
23651 Insert\SpecialChar menuseparator
23652 Field\SpecialChar menuseparator
23653 Version Control Revision
23654 \change_deleted 5863208 1564399852
23655
23656 \lang english
23657 e.g.
23658  
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 info-insert buffer vcs-date
23664 \end_layout
23665
23666 \end_inset
23667
23668
23669 \change_unchanged
23670 ).
23671  The information will be available only when you have the file stored under
23672  svn managment (i.e.
23673  the 
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 .svn
23679 \end_layout
23680
23681 \end_inset
23682
23683  directory is available with your document).
23684 \end_layout
23685
23686 \end_deeper
23687 \begin_layout Itemize
23688 Another—a hacking one—possibility is to use svn keywords
23689 \begin_inset Foot
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23694 \end_layout
23695
23696 \end_inset
23697
23698 .
23699  In short – you set file keywords property (e.g.
23700  
23701 \family sans
23702 svn propset svn:keywords 'Rev' file.lyx
23703 \family default
23704 ) and then paste keyword \SpecialChar TeX
23705  code
23706 \begin_inset Foot
23707 status collapsed
23708
23709 \begin_layout Plain Layout
23710 This is an easy way how to ensure that \SpecialChar LyX
23711  won't break the line in the middle
23712  of keyword tag.
23713 \end_layout
23714
23715 \end_inset
23716
23717  tag in your document (e.g.
23718  
23719 \begin_inset Flex Code
23720 status collapsed
23721
23722 \begin_layout Plain Layout
23723 $Rev$
23724 \end_layout
23725
23726 \end_inset
23727
23728 ).
23729  This way svn client will automatically substitute revision number (e.g.
23730  
23731 \begin_inset Flex Code
23732 status collapsed
23733
23734 \begin_layout Plain Layout
23735 $Rev: 59 $
23736 \end_layout
23737
23738 \end_inset
23739
23740 ) after each update and commit.
23741  There are more problems with this approach.
23742  Firstly, the '$' character is used in \SpecialChar TeX
23743  world for math equations, so any
23744  occurence of math formula 
23745 \begin_inset Formula $Rev$
23746 \end_inset
23747
23748  become 
23749 \begin_inset Formula $Rev:59$
23750 \end_inset
23751
23752  in your \SpecialChar LyX
23753  document.
23754  Similarly for other keywords like Id, Date, Author, etc.
23755  Secondly svn output is dependent on your locales, so its very easy that
23756  svn would produce some problematic strings once Date is used.
23757  Thirdly you get the whole 'Rev: 59' string in your document instead of
23758  the plain number.
23759  Until subversion implements user's custom keywords it will be hard to use
23760  this approach reliably or let \SpecialChar LyX
23761  to support it directly.
23762 \end_layout
23763
23764 \begin_layout Subsection
23765 SVN and Windows Environment
23766 \end_layout
23767
23768 \begin_layout Quote
23769 My inclination is to say that if the user cannot figure out the command
23770  line operations on their own fairly quickly, they would be well advised
23771  to use TortoiseSVN.
23772  —P.
23773  A.
23774  Rubin
23775 \end_layout
23776
23777 \begin_layout Subsubsection
23778 Preparation
23779 \end_layout
23780
23781 \begin_layout Standard
23782 In addition to installing \SpecialChar LyX
23783 , and having access to a Subversion repository,
23784  the user will need to install the Subversion client program.
23785  A Windows installer for the client program is available from 
23786 \begin_inset CommandInset href
23787 LatexCommand href
23788 name "CollabNet"
23789 target "http://www.collab.net/nonav/downloads/subversion/"
23790 literal "false"
23791
23792 \end_inset
23793
23794 .
23795  The user may also want to install 
23796 \begin_inset CommandInset href
23797 LatexCommand href
23798 name "TortoiseSVN"
23799 target "http://tortoisesvn.tigris.org/"
23800 literal "false"
23801
23802 \end_inset
23803
23804 , which integrates Subversion operations into the context (rightclick) menu
23805  of Windows Explorer.
23806  Operations done outside \SpecialChar LyX
23807  will typically be more convenient using the Explorer
23808  context menu.
23809  Note that TortoiseSVN is not a replacement for the client program, which
23810  is what \SpecialChar LyX
23811  itself will use.
23812 \end_layout
23813
23814 \begin_layout Subsubsection
23815 Bringing a document under Subversion control
23816 \end_layout
23817
23818 \begin_layout Standard
23819 Before a \SpecialChar LyX
23820  document can be brought under version control in Subversion, its
23821  parent directory needs to be under version control.
23822  If the document is being added to a project already in the repository,
23823  this is accomplished by checking the project out to the directory where
23824  the new document will be placed.
23825  If the project itself is not yet under version control (for instance, if
23826  this document starts a new project), the directory must be imported into
23827  the repository.
23828  This is done outside \SpecialChar LyX
23829 .
23830  Both import and checkout are easily accomplished from the Explorer context
23831  menu using TortoiseSVN, or alternatively can be done using the command
23832  line client at a DOS prompt.
23833  The procedure for importing the project using TortoiseSVN is described
23834  below, assuming an existing repository and a new project being started
23835  in 
23836 \family typewriter
23837 C:
23838 \backslash
23839 new project
23840 \family default
23841 .
23842  For information on using the Subversion client program, run 
23843 \family typewriter
23844 svn --help 
23845 \family default
23846 in a DOS shell.
23847 \end_layout
23848
23849 \begin_layout Enumerate
23850 Locate 
23851 \family typewriter
23852 C:
23853 \backslash
23854 new project 
23855 \family default
23856 in Windows Explorer, right click it, and select 
23857 \family sans
23858 TortoiseSVN\SpecialChar menuseparator
23859 Repo-browser
23860 \family default
23861 .
23862  If necessary, adjust the URL for the repository, then click OK.
23863 \end_layout
23864
23865 \begin_layout Enumerate
23866 Right click the level of the repository under which you want to place the
23867  new project folder (typically the top level) and click 
23868 \family sans
23869 Create folder
23870 \family default
23871  Supply a name for the project folder and click OK.
23872  Add a message for the log file if desired, then click OK again.
23873  The new project folder should appear in the repository.
23874  Finally, click OK again to exit the repository browser.
23875 \end_layout
23876
23877 \begin_layout Enumerate
23878 Once again right click 
23879 \family typewriter
23880 C:
23881 \backslash
23882 new project
23883 \family default
23884 , this time selecting SVN Checkout\SpecialChar ldots
23885  Select the URL of the project folder
23886  you just created in the repository, and set the checkout directory to 
23887 \family typewriter
23888 C:
23889 \backslash
23890 new project.
23891
23892 \family default
23893  Click OK.
23894  You will be warned about a non-empty folder; click OK to proceed.
23895  You should now have a 
23896 \family typewriter
23897 .svn
23898 \family default
23899  directory under 
23900 \family typewriter
23901 C:
23902 \backslash
23903 new project.
23904 \end_layout
23905
23906 \begin_layout Enumerate
23907 Create or open your document in \SpecialChar LyX
23908  and click 
23909 \family sans
23910 File\SpecialChar menuseparator
23911 Version
23912 \begin_inset space ~
23913 \end_inset
23914
23915 Control\SpecialChar menuseparator
23916 Register.
23917  
23918 \family default
23919 Add a log message and click OK to commit the document to version control.
23920 \end_layout
23921
23922 \begin_layout Standard
23923 From this point onward, you should have full functionality in the 
23924 \family sans
23925 File\SpecialChar menuseparator
23926 Version
23927 \begin_inset space ~
23928 \end_inset
23929
23930 Control
23931 \family default
23932  menu.
23933  You also have the option of checking the document in and out, viewing its
23934  history, etc.
23935  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23936  client program from a command prompt.
23937 \end_layout
23938
23939 \begin_layout Subsubsection
23940 SSH tunnel used with SVN under Windows
23941 \end_layout
23942
23943 \begin_layout Standard
23944 Compared with Linux setting up an svn client to communicate over ssh under
23945  Windows is a rather troublesome task.
23946  We will at least offer some hints how to setup the client side but prior
23947  knowledge about ssh and the Windows command line is needed, also be prepared
23948  for a great deal of frustration\SpecialChar ldots
23949
23950 \end_layout
23951
23952 \begin_layout Enumerate
23953 Get an svn client for windows, as described in the previous sections.
23954  When it is a fresh install run some svn command (e.g.
23955  
23956 \begin_inset Flex Code
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 svn --version
23961 \end_layout
23962
23963 \end_inset
23964
23965 ) to create config files, which you will need to change later on.
23966 \end_layout
23967
23968 \begin_layout Enumerate
23969 Choose an ssh client for Windows.
23970  There are several possibilities, we will use the one from Putty tools
23971 \begin_inset Foot
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975 \begin_inset Flex URL
23976 status collapsed
23977
23978 \begin_layout Plain Layout
23979
23980 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23981 \end_layout
23982
23983 \end_inset
23984
23985
23986 \end_layout
23987
23988 \end_inset
23989
23990 .
23991  You will need to set the connection up so that the client doesn't ask for
23992  any password from you.
23993  To keep things easy we will use only keys without any additional password
23994  protection etc.
23995 \end_layout
23996
23997 \begin_deeper
23998 \begin_layout Enumerate
23999 Generate keys by 
24000 \begin_inset Flex Code
24001 status collapsed
24002
24003 \begin_layout Plain Layout
24004 puttygen
24005 \end_layout
24006
24007 \end_inset
24008
24009 .
24010  Save your private .ppk key file and put the public one on the server side.
24011  If the SVN server runs on Linux, note that the format of the public key
24012  is not compatible with Linux openssh and you will need to direcly copy-paste
24013  the key from the 
24014 \begin_inset Quotes eld
24015 \end_inset
24016
24017
24018 \emph on
24019 Public key for pasting into OpenSSH authorized_keys file
24020 \emph default
24021 :
24022 \begin_inset Quotes erd
24023 \end_inset
24024
24025  edit field into the server's 
24026 \begin_inset Flex Code
24027 status collapsed
24028
24029 \begin_layout Plain Layout
24030 ~/.ssh/authorized_keys
24031 \end_layout
24032
24033 \end_inset
24034
24035  / 
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 authorized_keys2
24041 \end_layout
24042
24043 \end_inset
24044
24045  file.
24046 \end_layout
24047
24048 \begin_layout Enumerate
24049 Get the Putty's 
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 plink
24055 \end_layout
24056
24057 \end_inset
24058
24059 .
24060  In the SVN config file
24061 \begin_inset Foot
24062 status collapsed
24063
24064 \begin_layout Plain Layout
24065 Exact path depends on Windows version, usually somewhere around 
24066 \begin_inset Flex Code
24067 status collapsed
24068
24069 \begin_layout Plain Layout
24070 c:
24071 \backslash
24072 Documents and Settings
24073 \backslash
24074 user
24075 \backslash
24076 Application Data
24077 \backslash
24078 Subversion
24079 \backslash
24080 config
24081 \end_layout
24082
24083 \end_inset
24084
24085  / 
24086 \begin_inset Flex Code
24087 status collapsed
24088
24089 \begin_layout Plain Layout
24090 AppData
24091 \backslash
24092 Roaming
24093 \backslash
24094 Subversion
24095 \end_layout
24096
24097 \end_inset
24098
24099 .
24100 \end_layout
24101
24102 \end_inset
24103
24104 , section [tunnels], setup ssh command, e.g.
24105  
24106 \begin_inset Flex Code
24107 status collapsed
24108
24109 \begin_layout Plain Layout
24110 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24111 \end_layout
24112
24113 \end_inset
24114
24115 .
24116 \begin_inset Foot
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120 It will usually take a lot of time to get exact command right and it depends
24121  on many things.
24122  For example do not have some remote server saved as a default session in
24123  Putty etc.
24124  If things fail, try to connect via plink without SVN first.
24125 \end_layout
24126
24127 \end_inset
24128
24129
24130 \end_layout
24131
24132 \end_deeper
24133 \begin_layout Enumerate
24134 Checkout the SVN archive, e.
24135 \begin_inset space \thinspace{}
24136 \end_inset
24137
24138 g.
24139 \begin_inset Newline newline
24140 \end_inset
24141
24142
24143 \begin_inset Flex Code
24144 status collapsed
24145
24146 \begin_layout Plain Layout
24147 svn co svn+ssh://user@server/repository_path
24148 \end_layout
24149
24150 \end_inset
24151
24152 .
24153 \end_layout
24154
24155 \begin_layout Subsubsection
24156 End-of-Line Conversions
24157 \end_layout
24158
24159 \begin_layout Standard
24160 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24161  will
24162  use different line endings inside the .lyx files.
24163  This is not a problem as far as \SpecialChar LyX
24164  functionality is concerned, but the commit
24165  diffs will be huge and merge-conflicts prone.
24166  Fortunately SVN itself knows
24167 \begin_inset Foot
24168 status collapsed
24169
24170 \begin_layout Plain Layout
24171 \begin_inset Flex URL
24172 status collapsed
24173
24174 \begin_layout Plain Layout
24175
24176 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24177 \end_layout
24178
24179 \end_inset
24180
24181
24182 \end_layout
24183
24184 \end_inset
24185
24186  how to deal with CR/LF problems when switching .lyx files to the 
24187 \begin_inset Flex Code
24188 status collapsed
24189
24190 \begin_layout Plain Layout
24191 native
24192 \end_layout
24193
24194 \end_inset
24195
24196  mode.
24197 \begin_inset Foot
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201 For the lazy guys: 
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 svn propset svn:eol-style native FILE_NAME
24207 \end_layout
24208
24209 \end_inset
24210
24211
24212 \end_layout
24213
24214 \end_inset
24215
24216
24217 \end_layout
24218
24219 \begin_layout Subsection
24220 GIT commands in \SpecialChar LyX
24221
24222 \end_layout
24223
24224 \begin_layout Standard
24225 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24226 .
24227  You can find the commands in the 
24228 \family sans
24229 File\SpecialChar menuseparator
24230 Version
24231 \begin_inset space ~
24232 \end_inset
24233
24234 Control
24235 \family default
24236  submenu.
24237  Please note that if you use password protected access to repository via
24238  ssh, you will be asked in terminal window.
24239  \SpecialChar LyX
24240  was tested against GIT 1.7.
24241 \begin_inset Foot
24242 status collapsed
24243
24244 \begin_layout Plain Layout
24245 Windows users please note that you need to ensure that git is on the path.
24246  This can be set from within \SpecialChar LyX
24247  at 
24248 \family sans
24249 Tools\SpecialChar menuseparator
24250 Preferences\SpecialChar menuseparator
24251 Paths\SpecialChar menuseparator
24252 PATH prefix
24253 \family default
24254 .
24255 \end_layout
24256
24257 \end_inset
24258
24259
24260 \end_layout
24261
24262 \begin_layout Standard
24263 One big difference of GIT and the other supported version control systems
24264  is the distributed nature of GIT: With traditional version control systems
24265  there is one central server which hosts the repository.
24266  Users commit their changes to the server, and get updates made by other
24267  users from it.
24268  With GIT, users commit to a local repository.
24269  The local repository can be synchronized with one or more remote repositories
24270  using the 
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 pull
24276 \end_layout
24277
24278 \end_inset
24279
24280  and 
24281 \begin_inset Flex Code
24282 status collapsed
24283
24284 \begin_layout Plain Layout
24285 push
24286 \end_layout
24287
24288 \end_inset
24289
24290  GIT commands.
24291  \SpecialChar LyX
24292  does not interact in any way with remote GIT repositories.
24293  It works exclusively with the local repository in a very similar way as
24294  with a central CVS or SVN repository.
24295  If you use remote GIT repositories you need to do the 
24296 \begin_inset Flex Code
24297 status collapsed
24298
24299 \begin_layout Plain Layout
24300 pull
24301 \end_layout
24302
24303 \end_inset
24304
24305  and 
24306 \begin_inset Flex Code
24307 status collapsed
24308
24309 \begin_layout Plain Layout
24310 push
24311 \end_layout
24312
24313 \end_inset
24314
24315  operations with your favourite GIT client.
24316 \end_layout
24317
24318 \begin_layout Subsubsection
24319
24320 \family sans
24321 Register
24322 \end_layout
24323
24324 \begin_layout Standard
24325 If your document is not under revision control, this is the only item shown
24326  in the menu.
24327  And if it is under revision control, the 
24328 \family sans
24329 Register
24330 \family default
24331  item is not visible.
24332 \end_layout
24333
24334 \begin_layout Standard
24335 This command registers in GIT your document ONLY in case you have already
24336  the documents directory under GIT control (in particular 
24337 \family typewriter
24338 .git/index
24339 \family default
24340  file exists).
24341  This means you have to checkout the archive by yourself.
24342 \end_layout
24343
24344 \begin_layout Standard
24345 Then you are asked interactively to supply an initial description of the
24346  document.
24347  Don't forget that registered file is not yet committed.
24348 \end_layout
24349
24350 \begin_layout Standard
24351 GIT command that is run: 
24352 \family typewriter
24353 git add 
24354 \begin_inset Quotes qld
24355 \end_inset
24356
24357 <file-name>
24358 \begin_inset Quotes qld
24359 \end_inset
24360
24361
24362 \end_layout
24363
24364 \begin_layout Standard
24365 Read 
24366 \family typewriter
24367 man git
24368 \family default
24369  to understand the switches.
24370 \end_layout
24371
24372 \begin_layout Subsubsection
24373
24374 \family sans
24375 Check In Changes
24376 \end_layout
24377
24378 \begin_layout Standard
24379 When you are finished editing a file, you commit your changes.
24380  When you do this, you are asked for a description of the changes.
24381  After that changes are committed.
24382 \end_layout
24383
24384 \begin_layout Standard
24385 GIT command: 
24386 \family typewriter
24387 git commit -q -m"<description>" <file-name>
24388 \end_layout
24389
24390 \begin_layout Subsubsection
24391
24392 \family sans
24393 Revert To Repository Version
24394 \end_layout
24395
24396 \begin_layout Standard
24397 This will discard all changes made to the document since the last check
24398  in.
24399  You get a warning before changes are discarded.
24400 \end_layout
24401
24402 \begin_layout Standard
24403 GIT command: 
24404 \family typewriter
24405 git checkout -q 
24406 \begin_inset Quotes qld
24407 \end_inset
24408
24409 <file-name>
24410 \begin_inset Quotes qld
24411 \end_inset
24412
24413
24414 \end_layout
24415
24416 \begin_layout Subsubsection
24417
24418 \family sans
24419 Rename
24420 \end_layout
24421
24422 \begin_layout Standard
24423 This will rename the current document including the version history.
24424  It requires a clean document without any changes since the last checkin.
24425  You are asked for a file name and a description of the rename operation.
24426  After that the document is renamed, both locally and in the repository.
24427  If the parent directories of the new and old file names differ, all relative
24428  paths of included files are adjusted (like in 
24429 \family sans
24430 File\SpecialChar menuseparator
24431 Save As
24432 \family default
24433 \SpecialChar ldots
24434 ).
24435  Finally, the document is reloaded using the new name.
24436 \end_layout
24437
24438 \begin_layout Labeling
24439 \labelwidthstring 00.00.0000
24440 GIT
24441 \begin_inset space ~
24442 \end_inset
24443
24444 commands: 
24445 \begin_inset space ~
24446 \end_inset
24447
24448
24449 \begin_inset Newline newline
24450 \end_inset
24451
24452
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 git mv 
24458 \family typewriter
24459
24460 \begin_inset Quotes qld
24461 \end_inset
24462
24463 <file-name>
24464 \begin_inset Quotes qld
24465 \end_inset
24466
24467  
24468 \begin_inset Quotes qld
24469 \end_inset
24470
24471 <new-file-name>
24472 \begin_inset Quotes qld
24473 \end_inset
24474
24475
24476 \end_layout
24477
24478 \end_inset
24479
24480
24481 \begin_inset Newline newline
24482 \end_inset
24483
24484
24485 \begin_inset Flex Code
24486 status collapsed
24487
24488 \begin_layout Plain Layout
24489 git commit
24490 \end_layout
24491
24492 \end_inset
24493
24494
24495 \end_layout
24496
24497 \begin_layout Subsubsection
24498
24499 \family sans
24500 Show History
24501 \end_layout
24502
24503 \begin_layout Standard
24504 This shows the complete history of the GIT document.
24505  The output of 
24506 \family typewriter
24507 git log 
24508 \begin_inset Quotes qld
24509 \end_inset
24510
24511 <file-name>
24512 \begin_inset Quotes qld
24513 \end_inset
24514
24515
24516 \family default
24517  is shown in a browser.
24518 \end_layout
24519
24520 \begin_layout Subsubsection
24521 Version Info
24522 \end_layout
24523
24524 \begin_layout Standard
24525 \SpecialChar LyX
24526  supports GIT hash number of the last commit to the file, 
24527 \change_inserted 1119979965 1564297456
24528 its abbreviated form, 
24529 \change_unchanged
24530 author name, date and time of last commit.
24531  All those are extracted from 
24532 \family typewriter
24533 git log -n 1 --pretty=format:%H%n
24534 \change_inserted 1119979965 1564297427
24535 %h%n
24536 \change_unchanged
24537 %an%n%ai
24538 \family default
24539 .
24540  Tree version information is obtained via 
24541 \family typewriter
24542 git describe --abbrev --dirty --long
24543 \family default
24544 .
24545  See 
24546 \begin_inset CommandInset ref
24547 LatexCommand ref
24548 reference "subsec:VCS-Revision-Information"
24549
24550 \end_inset
24551
24552  for other details.
24553 \end_layout
24554
24555 \begin_layout Subsection
24556 Further tuning
24557 \end_layout
24558
24559 \begin_layout Standard
24560 With the recent addition of the 
24561 \begin_inset Flex Code
24562 status collapsed
24563
24564 \begin_layout Plain Layout
24565 vc-command
24566 \end_layout
24567
24568 \end_inset
24569
24570  function \SpecialChar LyX
24571  power users are allowed to create their own commands for revision
24572  control.
24573 \end_layout
24574
24575 \begin_layout Standard
24576 As an example you can see how two TortoiseSVN commands could be integrated
24577  directly:
24578 \end_layout
24579
24580 \begin_layout Description
24581 Commit: 
24582 \begin_inset Flex Code
24583 status collapsed
24584
24585 \begin_layout Plain Layout
24586 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24587 \end_layout
24588
24589 \end_inset
24590
24591
24592 \end_layout
24593
24594 \begin_layout Description
24595 Revert: 
24596 \begin_inset Flex Code
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24601 \end_layout
24602
24603 \end_inset
24604
24605
24606 \end_layout
24607
24608 \begin_layout Subsection
24609 Version control and Document comparison
24610 \end_layout
24611
24612 \begin_layout Standard
24613 One of the typical uses of version control is to inspect the changes between
24614  revisions, usually by creating 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 diff
24620 \end_layout
24621
24622 \end_inset
24623
24624  dumps.
24625  While this is useful for plain text files, it is much less useful in the
24626  case of \SpecialChar LyX
24627  files, which have more a complicated structure.
24628  Hence we provide binding to the Document comparison feature.
24629  There are two ways of calling this feature – either by direct call of 
24630 \begin_inset Flex Code
24631 status collapsed
24632
24633 \begin_layout Plain Layout
24634 vc-compare
24635 \end_layout
24636
24637 \end_inset
24638
24639  \SpecialChar LyX
24640  function (for details see \SpecialChar LyX
24641  functions manual) or by the toolbar icon 
24642 \begin_inset Info
24643 type  "icon"
24644 arg   "vc-compare"
24645 \end_inset
24646
24647  or the menu item 
24648 \begin_inset Info
24649 type  "menu"
24650 arg   "vc-compare"
24651 \end_inset
24652
24653 , respectively.
24654  One can either compare two chosen revisions of the document or he can simply
24655  compare the current version of edited text with older revisions (where
24656  '
24657 \begin_inset Flex Noun
24658 status collapsed
24659
24660 \begin_layout Plain Layout
24661 0
24662 \end_layout
24663
24664 \end_inset
24665
24666 ' revisions back means comparison of the edited file with last commited
24667  revision).
24668  
24669 \end_layout
24670
24671 \begin_layout Standard
24672 This feature is supported for SVN and RCS though due to the more complicated
24673  versioning scheme of RCS there is a constraint – when addressing the revisions
24674  in dialog, numbers always point to the last number in RCS revision number,
24675  i.e.
24676  '35' in '1.2.35'.
24677  We don't currently support GIT addressing of revisions, one can just compare
24678  edited document with its revision X steps backs, where X is addressed as
24679  
24680 \begin_inset Flex Code
24681 status collapsed
24682
24683 \begin_layout Plain Layout
24684 HEAD~X
24685 \end_layout
24686
24687 \end_inset
24688
24689 .
24690 \end_layout
24691
24692 \begin_layout Section
24693 Literate Programming
24694 \end_layout
24695
24696 \begin_layout Standard
24697 Updated by 
24698 \noun on
24699 Kayvan Sylvan 
24700 \noun default
24701 (kayvan@sylvan.com)
24702 \noun on
24703
24704 \noun default
24705 original documentation written by 
24706 \noun on
24707 Edmar Wienskoski Jr.
24708
24709 \noun default
24710  (edmar-w-jr@technologist.com)
24711 \end_layout
24712
24713 \begin_layout Subsection
24714 Introduction
24715 \end_layout
24716
24717 \begin_layout Standard
24718 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24719  for literate
24720  programming, where it is assumed that you are familiar with this programming
24721  technique, and know what 
24722 \begin_inset Quotes eld
24723 \end_inset
24724
24725 tangling
24726 \begin_inset Quotes erd
24727 \end_inset
24728
24729  and 
24730 \begin_inset Quotes eld
24731 \end_inset
24732
24733 weaving
24734 \begin_inset Quotes erd
24735 \end_inset
24736
24737  means.
24738  If that is not the case, please follow the web links provided in the following
24739  sections.
24740  There is a lot of good documentation out there covering old development
24741  history to the latest tools tips.
24742 \end_layout
24743
24744 \begin_layout Standard
24745 It is also assumed that you are familiar with \SpecialChar LyX
24746  itself to a point that you
24747  are comfortable changing your \SpecialChar LyX
24748  preferences, and X resources file.
24749  If that is not the case please refer to other \SpecialChar LyX
24750  documentation to cover your
24751  specific needs.
24752 \end_layout
24753
24754 \begin_layout Subsection
24755 Literate Programming
24756 \end_layout
24757
24758 \begin_layout Standard
24759 From the Literate Programming FAQ: 
24760 \end_layout
24761
24762 \begin_layout Quotation
24763 Literate programming is the combination of documentation and source together
24764  in a fashion suited for reading by human beings.
24765  In fact, literate programs should be enjoyable reading, even inviting!
24766  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24767  and documentation in a single file.
24768  Literate programming tools then parse the file to produce either readable
24769  documentation or compilable source.
24770  The WEB style of literate programming was created by D.
24771 \begin_inset space \thinspace{}
24772 \end_inset
24773
24774 E.
24775  Knuth during the development of his \SpecialChar TeX
24776  typesetting software.
24777  
24778 \end_layout
24779
24780 \begin_layout Standard
24781 Another excerpt says:
24782 \end_layout
24783
24784 \begin_layout Quotation
24785
24786 \emph on
24787 How is literate programming different from verbose commenting?
24788 \end_layout
24789
24790 \begin_layout Quotation
24791 There are three distinguishing characteristics.
24792  In order of importance, they are: 
24793 \end_layout
24794
24795 \begin_deeper
24796 \begin_layout Itemize
24797 flexible order of elaboration 
24798 \end_layout
24799
24800 \begin_layout Itemize
24801 automatic support for browsing 
24802 \end_layout
24803
24804 \begin_layout Itemize
24805 typeset documentation, especially diagrams and mathematics 
24806 \end_layout
24807
24808 \end_deeper
24809 \begin_layout Standard
24810 Now that I sparked your curiosity, take a look in the references.
24811 \end_layout
24812
24813 \begin_layout Subsubsection
24814 References
24815 \end_layout
24816
24817 \begin_layout Standard
24818 The complete Literate Programming FAQ can be found at:
24819 \end_layout
24820
24821 \begin_layout Quote
24822 Literate Programming FAQ 
24823 \begin_inset Flex URL
24824 status open
24825
24826 \begin_layout Plain Layout
24827
24828 http://www.literateprogramming.com/lpfaq.pdf
24829 \end_layout
24830
24831 \end_inset
24832
24833
24834 \end_layout
24835
24836 \begin_layout Standard
24837 The FAQ lists 23 (twenty three!) different literate programming tools.
24838  Where some are specialized or 
24839 \begin_inset Quotes eld
24840 \end_inset
24841
24842 tailored
24843 \begin_inset Quotes erd
24844 \end_inset
24845
24846  for particular programming languages, while other have general scope.
24847  I selected 
24848 \noun on
24849 Noweb
24850 \noun default
24851  for my own use for several reasons:
24852 \end_layout
24853
24854 \begin_layout Itemize
24855 It can generate the documentation either in \SpecialChar LaTeX
24856  or HTML.
24857 \end_layout
24858
24859 \begin_layout Itemize
24860 It has a open architecture, i.
24861 \begin_inset space \thinspace{}
24862 \end_inset
24863
24864 e.
24865 \begin_inset space \space{}
24866 \end_inset
24867
24868 it is easy to plug in new filters
24869 \begin_inset Foot
24870 status collapsed
24871
24872 \begin_layout Plain Layout
24873
24874 \emph on
24875 Filters 
24876 \emph default
24877 are programs that read a given data stream and output a manipulated data
24878  stream.
24879  That way, a WEB file (consisting of literate code) can be turned into a
24880  file consisting only of C program code or \SpecialChar LaTeX
24881  code.
24882 \end_layout
24883
24884 \end_inset
24885
24886  and to perform special processing that you may need.
24887  
24888 \end_layout
24889
24890 \begin_layout Itemize
24891 There is a good selection of filters available already (the HTML is one
24892  of them).
24893 \end_layout
24894
24895 \begin_layout Itemize
24896 It is free.
24897 \end_layout
24898
24899 \begin_layout Standard
24900 The Noweb web page can be found at: 
24901 \end_layout
24902
24903 \begin_layout Quote
24904 Noweb home page 
24905 \begin_inset Flex URL
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909
24910 https://www.cs.tufts.edu/~nr/noweb/
24911 \end_layout
24912
24913 \end_inset
24914
24915
24916 \end_layout
24917
24918 \begin_layout Standard
24919 Starting from there you can reach many other interesting links and even
24920  some literate program examples.
24921 \end_layout
24922
24923 \begin_layout Subsection
24924 \SpecialChar LyX
24925  and Literate Programming with Noweb
24926 \end_layout
24927
24928 \begin_layout Standard
24929 The \SpecialChar LyX
24930  support for Literate Programming is provided by using the generic \SpecialChar LyX
24931
24932  converters mechanism.
24933  This support is provided in a 
24934 \begin_inset Quotes eld
24935 \end_inset
24936
24937 Noweb independent
24938 \begin_inset Quotes erd
24939 \end_inset
24940
24941  way, i.
24942 \begin_inset space \thinspace{}
24943 \end_inset
24944
24945 e.
24946 \begin_inset space \space{}
24947 \end_inset
24948
24949 you will be able to use this new \SpecialChar LyX
24950  feature with some other literate programming
24951  tool of your choice by just changing your \SpecialChar LyX
24952  preferences.
24953 \end_layout
24954
24955 \begin_layout Subsubsection
24956 Generating documents and code (weaving and tangling)
24957 \end_layout
24958
24959 \begin_layout Paragraph
24960 Using the noweb module
24961 \end_layout
24962
24963 \begin_layout Standard
24964 If you have installed Noweb and \SpecialChar LyX
24965  successfully, whenever you open a new document,
24966  after you have chosen its document class, use the 
24967 \family sans
24968 Document\SpecialChar menuseparator
24969 Settings
24970 \family default
24971  menu to add the 
24972 \begin_inset Quotes eld
24973 \end_inset
24974
24975 noweb
24976 \begin_inset Quotes erd
24977 \end_inset
24978
24979  module.
24980  If Noweb is correctly installed, when you click on the 
24981 \begin_inset Quotes eld
24982 \end_inset
24983
24984 Modules
24985 \begin_inset Quotes erd
24986 \end_inset
24987
24988  link, you will see the 
24989 \begin_inset Quotes eld
24990 \end_inset
24991
24992 noweb
24993 \begin_inset Quotes erd
24994 \end_inset
24995
24996  module in the available list and you can add it to your document.
24997 \end_layout
24998
24999 \begin_layout Paragraph
25000 Typing code in
25001 \end_layout
25002
25003 \begin_layout Standard
25004 \SpecialChar LyX
25005  enables you to write code with a custom inset named 
25006 \begin_inset Flex Noun
25007 status collapsed
25008
25009 \begin_layout Plain Layout
25010 Chunk
25011 \end_layout
25012
25013 \end_inset
25014
25015 .
25016  Noweb delimits chunks like this:
25017 \end_layout
25018
25019 \begin_layout LyX-Code
25020 <<My code>>=
25021 \end_layout
25022
25023 \begin_layout LyX-Code
25024   code
25025 \end_layout
25026
25027 \begin_layout LyX-Code
25028   more code
25029 \end_layout
25030
25031 \begin_layout LyX-Code
25032   even more code
25033 \end_layout
25034
25035 \begin_layout LyX-Code
25036   @
25037 \end_layout
25038
25039 \begin_layout Standard
25040 The problem is that whatever is written in between the << and the 
25041 \family typewriter
25042 @
25043 \family default
25044  must be taken literally, i.
25045 \begin_inset space \thinspace{}
25046 \end_inset
25047
25048 e.
25049 \begin_inset space \space{}
25050 \end_inset
25051
25052 \SpecialChar LyX
25053  should be prevented from making any special interpretation of what has
25054  been written.
25055  This is also handled by 
25056 \begin_inset Flex Noun
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 Chunk
25061 \end_layout
25062
25063 \end_inset
25064
25065 , that works like a normal text inset but has a free spacing capability.
25066 \end_layout
25067
25068 \begin_layout Standard
25069 As a special note, you can also use the 
25070 \begin_inset Quotes eld
25071 \end_inset
25072
25073 %def
25074 \begin_inset Quotes erd
25075 \end_inset
25076
25077  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25078 rence:
25079 \end_layout
25080
25081 \begin_layout LyX-Code
25082 <<My chunk>>=
25083 \end_layout
25084
25085 \begin_layout LyX-Code
25086 def some_function(args):
25087 \end_layout
25088
25089 \begin_layout LyX-Code
25090    "This is the doc string for this function."
25091 \end_layout
25092
25093 \begin_layout LyX-Code
25094    print "My args: ", args
25095 \end_layout
25096
25097 \begin_layout LyX-Code
25098 @ %def some_function
25099 \end_layout
25100
25101 \begin_layout Standard
25102 For an example of this usage and the resulting cross-reference output, look
25103  at the Literate python program in 
25104 \emph on
25105 LIBDIR/examples/listerrors.lyx
25106 \emph default
25107  which should make this all clear.
25108 \end_layout
25109
25110 \begin_layout Paragraph
25111 Generating the documentation
25112 \end_layout
25113
25114 \begin_layout Standard
25115 At this point you already have a new document file with a proper document
25116  class, and with some code and text on it.
25117  How do I print it? The answer is simple, you select 
25118 \family sans
25119 View\SpecialChar menuseparator
25120 DVI,
25121 \family default
25122  etc.
25123  Just like you would do for a plain document.
25124  No special procedure is required.
25125 \end_layout
25126
25127 \begin_layout Standard
25128 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25129 :
25130 \end_layout
25131
25132 \begin_layout Enumerate
25133 When the 
25134 \family sans
25135 Update\SpecialChar menuseparator
25136 DVI
25137 \family default
25138  menu option is chosen, a \SpecialChar LaTeX
25139  file is generated.
25140  
25141 \end_layout
25142
25143 \begin_deeper
25144 \begin_layout Standard
25145 If the document is of any literate class the generated file will be named
25146  with an extension name defined by the 
25147 \begin_inset Quotes eld
25148 \end_inset
25149
25150 literate
25151 \begin_inset Quotes erd
25152 \end_inset
25153
25154  format (defined in the Preferences panel), otherwise the file will have
25155  the usual 
25156 \family typewriter
25157 .tex
25158 \family default
25159  extension.
25160 \end_layout
25161
25162 \end_deeper
25163 \begin_layout Enumerate
25164 Note that the only difference so far is in the name of the file, no special
25165  processing is required by \SpecialChar LyX
25166 .
25167  Given that you formatted the code using the 
25168 \begin_inset Flex Noun
25169 status collapsed
25170
25171 \begin_layout Plain Layout
25172 Chunk
25173 \end_layout
25174
25175 \end_inset
25176
25177  inset that, by itself, takes care of the business.
25178 \end_layout
25179
25180 \begin_layout Enumerate
25181 If the document is of any literate class \SpecialChar LyX
25182  will then use the internal \SpecialChar LyX
25183  to
25184  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25185  converter
25186 \begin_inset Foot
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190 The converters are defined in the 
25191 \family sans
25192 Tools\SpecialChar menuseparator
25193 Preferences
25194 \family default
25195  panel, under the 
25196 \begin_inset Quotes eld
25197 \end_inset
25198
25199 Conversion
25200 \begin_inset Quotes erd
25201 \end_inset
25202
25203  tab.
25204  See section 
25205 \emph on
25206 Converters
25207 \emph default
25208  of the 
25209 \emph on
25210 Customization
25211 \emph default
25212  manual for general information about converters.
25213 \end_layout
25214
25215 \end_inset
25216
25217  to generate the \SpecialChar LaTeX
25218  file.
25219 \end_layout
25220
25221 \begin_deeper
25222 \begin_layout Standard
25223 Otherwise it will just skip this step.
25224 \end_layout
25225
25226 \end_deeper
25227 \begin_layout Enumerate
25228 Finally, \SpecialChar LaTeX
25229  is invoked and the regular post processing continues as in a plain
25230  document.
25231 \end_layout
25232
25233 \begin_layout Standard
25234 Independence from a particular 
25235 \begin_inset Quotes eld
25236 \end_inset
25237
25238 literate tool
25239 \begin_inset Quotes erd
25240 \end_inset
25241
25242  is easily achieved by changing the commands that are run by the various
25243  converters.
25244 \end_layout
25245
25246 \begin_layout Paragraph
25247 Generating the code
25248 \end_layout
25249
25250 \begin_layout Standard
25251 When the build menu option is chosen or the corresponding button in the
25252  toolbar is pressed, a \SpecialChar LaTeX
25253  file is generated just like step 1 above.
25254  Next, \SpecialChar LyX
25255  invokes the 
25256 \family typewriter
25257 Noweb->Program
25258 \family default
25259  converter.
25260  This converter needs to be defined by the user and is not installed by
25261  default, though the Program format is.
25262  This converter (like any other converter) will have two parts:
25263 \end_layout
25264
25265 \begin_layout Enumerate
25266 The converter program itself.
25267  This program performs the conversion from the one format to the other (in
25268  this case, from the Noweb format to the Program pseudo-format).
25269 \end_layout
25270
25271 \begin_layout Enumerate
25272 The error log parser.
25273  This is a program whose sole purpose is to rewrite error messages in a
25274  format that \SpecialChar LyX
25275  understands.
25276  This makes it possible for \SpecialChar LyX
25277  to place error boxes in the right places in
25278  the file buffer.
25279 \end_layout
25280
25281 \begin_layout Standard
25282 The first part, the 
25283 \begin_inset Quotes eld
25284 \end_inset
25285
25286 Converter
25287 \begin_inset Quotes erd
25288 \end_inset
25289
25290  setting, should be set to
25291 \end_layout
25292
25293 \begin_layout LyX-Code
25294
25295 \family typewriter
25296 build-script $$i
25297 \family default
25298  $$r
25299 \end_layout
25300
25301 \begin_layout Standard
25302 This basically means that \SpecialChar LyX
25303  will call 
25304 \begin_inset Quotes eld
25305 \end_inset
25306
25307 build-script
25308 \begin_inset Quotes erd
25309 \end_inset
25310
25311  (a program or script) with the name of the Noweb file (normally a file
25312  in the \SpecialChar LyX
25313  temp directory) and the directory path of the original \SpecialChar LyX
25314  file.
25315  
25316 \end_layout
25317
25318 \begin_layout Standard
25319 This is an implementation of 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 build-script
25324 \begin_inset Quotes erd
25325 \end_inset
25326
25327  that you can place in a directory on your path:
25328 \end_layout
25329
25330 \begin_layout LyX-Code
25331
25332 \family sans
25333 #!/bin/sh
25334 \end_layout
25335
25336 \begin_layout LyX-Code
25337
25338 \family sans
25339 #
25340 \end_layout
25341
25342 \begin_layout LyX-Code
25343
25344 \family sans
25345 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25346 \end_layout
25347
25348 \begin_layout Standard
25349 The next part of the converter setting is the 
25350 \begin_inset Quotes eld
25351 \end_inset
25352
25353 Flags
25354 \begin_inset Quotes erd
25355 \end_inset
25356
25357  which is to be set to
25358 \end_layout
25359
25360 \begin_layout LyX-Code
25361
25362 \family typewriter
25363 parselog=$$s/scripts/listerrors
25364 \end_layout
25365
25366 \begin_layout Standard
25367 This will run any errors that are generated by the 
25368 \begin_inset Quotes eld
25369 \end_inset
25370
25371 build-script
25372 \begin_inset Quotes erd
25373 \end_inset
25374
25375  process through the 
25376 \begin_inset Quotes eld
25377 \end_inset
25378
25379 listerrors
25380 \begin_inset Quotes erd
25381 \end_inset
25382
25383  program.
25384 \end_layout
25385
25386 \begin_layout Standard
25387 The build will normally take place in \SpecialChar LyX
25388 's temporary directory, so the files
25389  produced by the conversion will be in that directory.
25390  \SpecialChar LyX
25391  will copy out what it regards as the `main' file, but the 
25392 \family typewriter
25393 Noweb->Program
25394 \family default
25395  conversion may produce several files, and so most of these would then be
25396  deleted when \SpecialChar LyX
25397  was closed.
25398  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25399  the build-script chunk can place the generated files in that location.
25400 \end_layout
25401
25402 \begin_layout Paragraph
25403 Build instructions in the document
25404 \end_layout
25405
25406 \begin_layout Standard
25407 The last piece of the integration between \SpecialChar LyX
25408  and noweb is the 
25409 \begin_inset Quotes eld
25410 \end_inset
25411
25412 build-script
25413 \begin_inset Quotes erd
25414 \end_inset
25415
25416  chunk.
25417  Generally, the instructions for building your program should be embedded
25418  in a chunk of its own.
25419  The noweb-specific 
25420 \begin_inset Quotes eld
25421 \end_inset
25422
25423 build-script
25424 \begin_inset Quotes erd
25425 \end_inset
25426
25427  above uses the notangle command to look for this chunk (called 
25428 \begin_inset Quotes eld
25429 \end_inset
25430
25431 build-script
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435 ) and runs its contents through 
25436 \begin_inset Quotes eld
25437 \end_inset
25438
25439 sh
25440 \begin_inset Quotes erd
25441 \end_inset
25442
25443 .
25444 \end_layout
25445
25446 \begin_layout Standard
25447 Typically, such a chunk would look something like this:
25448 \end_layout
25449
25450 \begin_layout LyX-Code
25451 <<build-script>>=
25452 \end_layout
25453
25454 \begin_layout LyX-Code
25455 #!/bin/sh
25456 \begin_inset Newline newline
25457 \end_inset
25458
25459 if [ -z "${NOWEB_SOURCE}" ]
25460 \begin_inset Newline newline
25461 \end_inset
25462
25463 then
25464 \end_layout
25465
25466 \begin_layout LyX-Code
25467 NOWEB_SOURCE=myfile.nw
25468 \begin_inset Newline newline
25469 \end_inset
25470
25471 fi
25472 \begin_inset Newline newline
25473 \end_inset
25474
25475 [...
25476  code to extract files ...
25477  use NOWEB_OUTPUT_DIR here ...]
25478 \begin_inset Newline newline
25479 \end_inset
25480
25481 [...
25482  code to compile files ...]
25483 \begin_inset Newline newline
25484 \end_inset
25485
25486 @
25487 \end_layout
25488
25489 \begin_layout Standard
25490 Look in 
25491 \emph on
25492 LIBDIR/examples/listerrors.lyx
25493 \emph default
25494  or in 
25495 \emph on
25496 LIBDIR/examples/Literate.lyx
25497 \emph default
25498  which implement two versions of the 
25499 \begin_inset Quotes eld
25500 \end_inset
25501
25502 listerrors
25503 \begin_inset Quotes erd
25504 \end_inset
25505
25506  program for some illustrations of how all of these pieces go together or
25507  in 
25508 \emph on
25509 LIBDIR/examples/noweb2lyx.lyx.
25510
25511 \emph default
25512  Interestingly, these three files show off the language-indepence of the
25513  \SpecialChar LyX
25514  literate programming support since they are written in Python, C and Perl
25515  respectively.
25516 \end_layout
25517
25518 \begin_layout Subsubsection
25519 Configuring \SpecialChar LyX
25520
25521 \end_layout
25522
25523 \begin_layout Standard
25524 All the Literate Programming support is configured by the 
25525 \family sans
25526 Tools\SpecialChar menuseparator
25527 Preferences
25528 \family default
25529  panel in the 
25530 \begin_inset Quotes eld
25531 \end_inset
25532
25533 File Handling
25534 \begin_inset Quotes erd
25535 \end_inset
25536
25537  tab.
25538  The important parts are:
25539 \end_layout
25540
25541 \begin_layout Description
25542 the
25543 \begin_inset space ~
25544 \end_inset
25545
25546
25547 \begin_inset Quotes eld
25548 \end_inset
25549
25550 NoWeb
25551 \begin_inset Quotes erd
25552 \end_inset
25553
25554
25555 \begin_inset space ~
25556 \end_inset
25557
25558 format Set up via the File Formats tab, this is where the Noweb-specific
25559  pieces are set up.
25560  The 
25561 \family sans
25562 GUI Name
25563 \family default
25564  is set to 
25565 \family typewriter
25566 NoWeb
25567 \family default
25568 , the file extension is set to 
25569 \family typewriter
25570 .nw
25571 \family default
25572 .
25573  This tells \SpecialChar LyX
25574  to create a file with a 
25575 \family typewriter
25576 .nw
25577 \family default
25578  extension in the first step of the conversion process.
25579 \end_layout
25580
25581 \begin_layout Description
25582 the
25583 \begin_inset space ~
25584 \end_inset
25585
25586
25587 \family sans
25588 Program
25589 \family default
25590
25591 \begin_inset space ~
25592 \end_inset
25593
25594 format This is an empty format whose sole purpose is to be the endpoint
25595  of a conversion (which then allows us to set up a converter for it).
25596 \end_layout
25597
25598 \begin_layout Description
25599
25600 \family sans
25601 NoWeb
25602 \family default
25603 ->
25604 \family sans
25605 \SpecialChar LaTeX
25606
25607 \family default
25608  This converter performs the 
25609 \begin_inset Quotes eld
25610 \end_inset
25611
25612 weaving
25613 \begin_inset Quotes erd
25614 \end_inset
25615
25616  of the literate document.
25617  For Noweb, it is set to 
25618 \begin_inset Quotes eld
25619 \end_inset
25620
25621
25622 \family typewriter
25623 noweave -delay -index $$i > $$o
25624 \family default
25625
25626 \begin_inset Quotes erd
25627 \end_inset
25628
25629
25630 \end_layout
25631
25632 \begin_layout Description
25633
25634 \family sans
25635 NoWeb
25636 \family default
25637 ->
25638 \family sans
25639 Program
25640 \family default
25641  This performs the 
25642 \begin_inset Quotes eld
25643 \end_inset
25644
25645 tangling step
25646 \begin_inset Quotes erd
25647 \end_inset
25648
25649 .
25650  As stated above, the Converter is set to 
25651 \begin_inset Quotes eld
25652 \end_inset
25653
25654
25655 \family typewriter
25656 build-script $$i
25657 \family default
25658  $$r
25659 \begin_inset Quotes erd
25660 \end_inset
25661
25662 , with Flags set to
25663 \begin_inset Newline newline
25664 \end_inset
25665
25666
25667 \begin_inset Quotes eld
25668 \end_inset
25669
25670
25671 \family typewriter
25672 parselog=$$s/scripts/listerrors
25673 \family default
25674
25675 \begin_inset Quotes erd
25676 \end_inset
25677
25678 .
25679 \end_layout
25680
25681 \begin_layout Subsubsection
25682 Debug extensions
25683 \end_layout
25684
25685 \begin_layout Standard
25686 There is also a new function implemented in the \SpecialChar LyX
25687  server, the 
25688 \begin_inset Quotes eld
25689 \end_inset
25690
25691 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25692  
25693 \end_layout
25694
25695 \begin_layout Standard
25696 When debugging code with ddd/gdb, it is possible to invoke a text editor
25697  at the current execution position with a single key stroke.
25698  The default ddd configuration for that is shift-ctrl-V.
25699  It happens that you can define the editor command line invocation in ddd
25700  by accessing the 
25701 \family sans
25702 Edit\SpecialChar menuseparator
25703 Preferences\SpecialChar menuseparator
25704 Helpers
25705 \family default
25706  dialog and changing the "Edit Sources" entry.
25707 \end_layout
25708
25709 \begin_layout Standard
25710 I take advantage of the newly created \SpecialChar LyX
25711  server function and this ddd feature,
25712  and set 
25713 \begin_inset Quotes eld
25714 \end_inset
25715
25716 Edit Sources
25717 \begin_inset Quotes erd
25718 \end_inset
25719
25720  to:
25721 \end_layout
25722
25723 \begin_layout LyX-Code
25724 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25725 \end_layout
25726
25727 \begin_layout Standard
25728 With this, whenever you are using ddd and find a point in the program that
25729  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25730  ddd will forward this information to \SpecialChar LyX
25731  through the \SpecialChar LyX
25732  server and then the
25733  \SpecialChar LyX
25734  window will show the same file with the cursor at the same position ddd
25735  was pointing to.
25736  No more guessing or long scrolling to locate a point in the program back
25737  from debugging !
25738 \end_layout
25739
25740 \begin_layout Standard
25741 Note however that you must enable the \SpecialChar LyX
25742  server to get this feature working
25743  (it is disabled by default).
25744  Sec.
25745 \begin_inset space ~
25746 \end_inset
25747
25748
25749 \begin_inset CommandInset ref
25750 LatexCommand ref
25751 reference "sec:Starting-the-Server"
25752
25753 \end_inset
25754
25755  explains how to do that.
25756 \end_layout
25757
25758 \begin_layout Subsubsection
25759 Toolbar extensions
25760 \end_layout
25761
25762 \begin_layout Standard
25763 There are six new buttons that can be added to your \SpecialChar LyX
25764  toolbar.
25765  Four of these buttons are short cuts to layout styles: 
25766 \family sans
25767 Standard
25768 \family default
25769
25770 \family sans
25771 Section
25772 \family default
25773
25774 \family sans
25775 \SpecialChar LaTeX
25776
25777 \family default
25778 , and 
25779 \family sans
25780 \SpecialChar LyX
25781 -Code
25782 \family default
25783 , one for the custom inset 
25784 \family sans
25785 Chunk
25786 \family default
25787 .
25788  The last one is a short cut to the 
25789 \begin_inset Quotes eld
25790 \end_inset
25791
25792 Build Program
25793 \begin_inset Quotes erd
25794 \end_inset
25795
25796  File menu entry.
25797  
25798 \end_layout
25799
25800 \begin_layout Standard
25801 \SpecialChar LyX
25802  has a range of buttons that are available for tool bar customization.
25803  In my toolbar I like to combine the six short cuts above with two more:
25804  One for 
25805 \family sans
25806 Document
25807 \family default
25808 \SpecialChar menuseparator
25809
25810 \family sans
25811 Update
25812 \family default
25813 \SpecialChar menuseparator
25814
25815 \family sans
25816 DVI
25817 \family default
25818  and the other for 
25819 \family sans
25820 Document\SpecialChar menuseparator
25821 View\SpecialChar menuseparator
25822 DVI
25823 \family default
25824  File menu entries.
25825  Here is how it looks like:
25826 \end_layout
25827
25828 \begin_layout LyX-Code
25829 Toolbar
25830 \end_layout
25831
25832 \begin_layout LyX-Code
25833   Layouts
25834 \end_layout
25835
25836 \begin_layout LyX-Code
25837   Icon "layout Standard"
25838 \end_layout
25839
25840 \begin_layout LyX-Code
25841   Icon "layout Section"
25842 \end_layout
25843
25844 \begin_layout LyX-Code
25845   Icon "layout \SpecialChar LaTeX
25846 "
25847 \end_layout
25848
25849 \begin_layout LyX-Code
25850   Icon "layout \SpecialChar LyX
25851 -Code"
25852 \end_layout
25853
25854 \begin_layout LyX-Code
25855   Icon "flex.insert Chunk"
25856 \end_layout
25857
25858 \begin_layout LyX-Code
25859   Separator
25860 \end_layout
25861
25862 \begin_layout LyX-Code
25863   Icon "buffer-view"
25864 \end_layout
25865
25866 \begin_layout LyX-Code
25867   Icon "buffer-typeset"
25868 \end_layout
25869
25870 \begin_layout LyX-Code
25871   Icon "build-program"
25872 \end_layout
25873
25874 \begin_layout LyX-Code
25875   Separator
25876 \end_layout
25877
25878 \begin_layout LyX-Code
25879 .
25880 \end_layout
25881
25882 \begin_layout LyX-Code
25883 .
25884 \end_layout
25885
25886 \begin_layout LyX-Code
25887 .
25888 \end_layout
25889
25890 \begin_layout LyX-Code
25891 End
25892 \end_layout
25893
25894 \begin_layout Subsubsection
25895 Colors customization
25896 \end_layout
25897
25898 \begin_layout Standard
25899 There are a number of colors in \SpecialChar LyX
25900  that can be customized in 
25901 \family sans
25902 Preferences
25903 \family default
25904 .
25905  One of the things that bothers people is the \SpecialChar LaTeX
25906  font color.
25907  The default color is red, since the chunks uses \SpecialChar LaTeX
25908  font, and there is a lot
25909  of chunks in literate documents, you may get tired of seeing everything
25910  in red.
25911  You can change it by going to the tabs 
25912 \family sans
25913 Look&Feel
25914 \family default
25915
25916 \family sans
25917 Colors.
25918 \end_layout
25919
25920 \begin_layout Standard
25921 The next thing is the visible presence of the newline character in the screen.
25922  You can choose the color of this particular character and make it blend
25923  in the background.
25924  I recommend you choosing a color that is close to the background but not
25925  equal, that way you still can see it is there, but it is not bothering
25926  you anymore.
25927 \end_layout
25928
25929 \begin_layout Subsection
25930 \SpecialChar LyX
25931  and knitr/Sweave
25932 \end_layout
25933
25934 \begin_layout Standard
25935 Support for 
25936 \family sans
25937 knitr
25938 \family default
25939  and 
25940 \family sans
25941 Sweave
25942 \family default
25943  is documented in the 
25944 \emph on
25945 knitr.lyx
25946 \emph default
25947  example file and in the Sweave manual (menu 
25948 \family sans
25949 Help\SpecialChar menuseparator
25950 Specific Manuals
25951 \family default
25952 ).
25953 \end_layout
25954
25955 \begin_layout Chapter
25956 Special features
25957 \end_layout
25958
25959 \begin_layout Standard
25960 You can do everything with \SpecialChar LyX
25961  that you can do with \SpecialChar LaTeX
25962 .
25963  However, \SpecialChar LyX
25964  cannot support every \SpecialChar LaTeX
25965  feature directly.
25966  But you can always use \SpecialChar TeX
25967  Code.
25968  This chapter shows you some more special things you might want to use.
25969  For other special things you can do with figures, tables, floats, boxes
25970  and notes, have a look at the 
25971 \emph on
25972 Embedded
25973 \begin_inset space ~
25974 \end_inset
25975
25976 Objects
25977 \emph default
25978  manual.
25979 \end_layout
25980
25981 \begin_layout Section
25982 Multiple Text Columns
25983 \end_layout
25984
25985 \begin_layout Standard
25986 This feature is independent of the option 
25987 \family sans
25988 Two-column document
25989 \family default
25990  in the document settings under 
25991 \family sans
25992 Text Layout
25993 \family default
25994 .
25995  If you want to have 2
25996 \begin_inset space ~
25997 \end_inset
25998
25999 columns for the whole document, it is recommended to use the 
26000 \family sans
26001 Two-column document
26002 \family default
26003  option.
26004  For all other cases use this feature.
26005 \end_layout
26006
26007 \begin_layout Standard
26008 To use multiple text columns in your document, you have to load the module
26009  
26010 \family sans
26011 Multiple Columns
26012 \family default
26013  (menu 
26014 \family sans
26015 Document\SpecialChar menuseparator
26016 Settings\SpecialChar menuseparator
26017 Modules
26018 \family default
26019 ) and must have the \SpecialChar LaTeX
26020 -package 
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 multicol
26026 \end_layout
26027
26028 \end_inset
26029
26030  installed.
26031 \end_layout
26032
26033 \begin_layout Standard
26034 Footnotes within multiple columns will be placed at the bottom of the page
26035  and not under each column.
26036  Within the different columns you can use everything, with the limitation
26037  that for floats you need to use the float option 
26038 \family sans
26039 Span columns
26040 \family default
26041 .
26042 \end_layout
26043
26044 \begin_layout Subsection
26045 Basics
26046 \end_layout
26047
26048 \begin_layout Standard
26049 If you want to have 2
26050 \begin_inset space ~
26051 \end_inset
26052
26053 columns in your text, insert a multicolumn inset via the menu 
26054 \family sans
26055 Insert\SpecialChar menuseparator
26056 Custom
26057 \begin_inset space ~
26058 \end_inset
26059
26060 Insets\SpecialChar menuseparator
26061 Multiple
26062 \begin_inset space ~
26063 \end_inset
26064
26065 Columns
26066 \family default
26067  where the columns should start.
26068  Write all text that should be printed in 2
26069 \begin_inset space ~
26070 \end_inset
26071
26072 columns into this inset.
26073 \end_layout
26074
26075 \begin_layout Standard
26076 Here is an example:
26077 \end_layout
26078
26079 \begin_layout Standard
26080 \noindent
26081 \begin_inset Flex Multiple Columns
26082 status open
26083
26084 \begin_layout Plain Layout
26085 \noindent
26086
26087 \series bold
26088 \size small
26089 The Adventure of the Empty House
26090 \series default
26091
26092 \begin_inset Newline newline
26093 \end_inset
26094
26095 by Sir Arthur Conan Doyle
26096 \end_layout
26097
26098 \begin_layout Plain Layout
26099
26100 \size small
26101 It was in the spring of the year 1894 that all London was interested, and
26102  the fashionable world dismayed, by the murder of the Honourable Ronald
26103  Adair under most unusual and inexplicable circumstances.
26104  The public has already learned those particulars of the crime which came
26105  out in the police investigation, but a good deal was suppressed upon that
26106  occasion, since the case for the prosecution was so overwhelmingly strong
26107  that it was not necessary to bring forward all the facts.
26108  Only now, at the end of nearly ten years, am I allowed to supply those
26109  missing links which make up the whole of that remarkable chain.
26110  The crime was of interest in itself, but that interest was as nothing to
26111  me compared to the inconceivable sequel, which afforded me the greatest
26112  shock and surprise of any event in my adventurous life.
26113  Even now, after this long interval, I find myself thrilling as I think
26114  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26115 ty which utterly submerged my mind.
26116  Let me say to that public, which has shown some interest in those glimpses
26117  which I have occasionally given them of the thoughts and actions of a very
26118  remarkable man, that they are not to blame me if I have not shared my knowledge
26119  with them, for I should have considered it my first duty to do so, had
26120  I not been barred by a positive prohibition from his own lips, which was
26121  only withdrawn upon the third of last month.
26122 \end_layout
26123
26124 \end_inset
26125
26126
26127 \end_layout
26128
26129 \begin_layout Standard
26130 To get 3 or more columns, set the cursor into the multicolumn inset and
26131  use the menu 
26132 \family sans
26133 Insert\SpecialChar menuseparator
26134 Number
26135 \begin_inset space ~
26136 \end_inset
26137
26138 of
26139 \begin_inset space ~
26140 \end_inset
26141
26142 Columns
26143 \family default
26144 .
26145  The number of the desired columns is written into that inset (for 3
26146 \begin_inset space ~
26147 \end_inset
26148
26149 columns write 
26150 \begin_inset Quotes eld
26151 \end_inset
26152
26153 3
26154 \begin_inset Quotes erd
26155 \end_inset
26156
26157 ).
26158 \begin_inset Newline newline
26159 \end_inset
26160
26161 Here is an example with 3
26162 \begin_inset space ~
26163 \end_inset
26164
26165 columns:
26166 \end_layout
26167
26168 \begin_layout Standard
26169 \begin_inset Flex Multiple Columns
26170 status open
26171
26172 \begin_layout Plain Layout
26173
26174 \size footnotesize
26175 \begin_inset Argument 1
26176 status open
26177
26178 \begin_layout Plain Layout
26179
26180 3
26181 \end_layout
26182
26183 \end_inset
26184
26185 It can be imagined that my close intimacy with Sherlock Holmes had interested
26186  me deeply in crime, and that after his disappearance I never failed to
26187  read with care the various problems which came before the public.
26188  And I even attempted, more than once, for my own private satisfaction,
26189  to employ his methods in their solution, though with indifferent success.
26190  There was none, however, which appealed to me like this tragedy of Ronald
26191  Adair.
26192  As I read the evidence at the inquest, which led up to a verdict of willful
26193  murder against some person or persons unknown, I realized more clearly
26194  than I had ever done the loss which the community had sustained by the
26195  death of Sherlock Holmes.
26196  There were points about this strange business which would, I was sure,
26197  have specially appealed to him, and the efforts of the police would have
26198  been supplemented, or more probably anticipated, by the trained observation
26199  and the alert mind of the first criminal agent in Europe.
26200  All day, as I drove upon my round, I turned over the case in my mind and
26201  found no explanation which appeared to me to be adequate.
26202  At the risk of telling a twice-told tale, I will recapitulate the facts
26203  as they were known to the public at the conclusion of the inquest.
26204 \end_layout
26205
26206 \end_inset
26207
26208
26209 \end_layout
26210
26211 \begin_layout Standard
26212 You can have up to 10
26213 \begin_inset space ~
26214 \end_inset
26215
26216 columns if you want to, but that might not be very pleasant for the readers
26217  of your document.
26218 \end_layout
26219
26220 \begin_layout Standard
26221 \begin_inset Newpage newpage
26222 \end_inset
26223
26224
26225 \end_layout
26226
26227 \begin_layout Subsection
26228 Columns inside Columns
26229 \end_layout
26230
26231 \begin_layout Standard
26232 You can also have columns inside columns:
26233 \end_layout
26234
26235 \begin_layout Standard
26236 \begin_inset Flex Multiple Columns
26237 status open
26238
26239 \begin_layout Plain Layout
26240
26241 \size footnotesize
26242 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26243  at that time governor of one of the Australian colonies.
26244  Adair's mother had returned from Australia to undergo the operation for
26245  cataract, and she, her son Ronald, and her daughter Hilda were living together
26246  at 427 Park Lane.
26247 \end_layout
26248
26249 \begin_layout Plain Layout
26250 \begin_inset Flex Multiple Columns
26251 status open
26252
26253 \begin_layout Plain Layout
26254
26255 \size footnotesize
26256 The youth moved in the best society
26257 \begin_inset space ~
26258 \end_inset
26259
26260 – had, so far as was known, no enemies and no particular vices.
26261  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26262  had been broken off by mutual consent some months before, and there was
26263  no sign that it had left any very profound feeling behind it.
26264  For the rest {sic} the man's life moved in a narrow and conventional circle,
26265  for his habits were quiet and his nature unemotional.
26266  Yet it was upon this easy-going young aristocrat that death came, in most
26267  strange and unexpected form, between the hours of ten and eleven-twenty
26268  on the night of March 30, 1894.
26269 \end_layout
26270
26271 \end_inset
26272
26273
26274 \end_layout
26275
26276 \begin_layout Plain Layout
26277
26278 \size footnotesize
26279 Ronald Adair was fond of cards
26280 \begin_inset space ~
26281 \end_inset
26282
26283 – playing continually, but never for such stakes as would hurt him.
26284  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26285  It was shown that, after dinner on the day of his death, he had played
26286  a rubber of whist at the latter club.
26287  He had also played there in the afternoon.
26288
26289 \size default
26290  
26291 \size footnotesize
26292 The evidence of those who had played with him
26293 \begin_inset space ~
26294 \end_inset
26295
26296 – Mr.
26297  Murray, Sir John Hardy, and Colonel Moran
26298 \begin_inset space ~
26299 \end_inset
26300
26301 – showed that the game was whist, and that there was a fairly equal fall
26302  of the cards.
26303  Adair might have lost five pounds, but not more.
26304  His fortune was a considerable one, and such a loss could not in any way
26305  affect him.
26306  He had played nearly every day at one club or other, but he was a cautious
26307  player, and usually rose a winner.
26308  It came out in evidence that, in partnership with Colonel Moran, he had
26309  actually won as much as four hundred and twenty pounds in a sitting, some
26310  weeks before, from Godfrey Milner and Lord Balmoral.
26311  So much for his recent history as it came out at the inquest.
26312 \end_layout
26313
26314 \end_inset
26315
26316
26317 \end_layout
26318
26319 \begin_layout Subsection
26320 Advanced Examples
26321 \end_layout
26322
26323 \begin_layout Standard
26324 The examples in this section show some more special features of multiple
26325  columns.
26326 \end_layout
26327
26328 \begin_layout Standard
26329 For more features of multiple columns, have a look at the 
26330 \begin_inset CommandInset href
26331 LatexCommand href
26332 name "documentation"
26333 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26334 literal "false"
26335
26336 \end_inset
26337
26338  of the \SpecialChar LaTeX
26339 -package 
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 multicol
26345 \end_layout
26346
26347 \end_inset
26348
26349 .
26350 \end_layout
26351
26352 \begin_layout Subsubsection
26353 Preface
26354 \end_layout
26355
26356 \begin_layout Standard
26357 To add a preface text for multiple columns, set the cursor into the multicolumn
26358  inset and use the menu 
26359 \family sans
26360 Insert\SpecialChar menuseparator
26361 Preface
26362 \family default
26363 .
26364  Write your preface text into that inset.
26365 \begin_inset Newline newline
26366 \end_inset
26367
26368 This is an example with some preface text:
26369 \end_layout
26370
26371 \begin_layout Standard
26372 \begin_inset VSpace bigskip
26373 \end_inset
26374
26375
26376 \end_layout
26377
26378 \begin_layout Standard
26379 \begin_inset Flex Multiple Columns
26380 status open
26381
26382 \begin_layout Plain Layout
26383 \begin_inset Argument 2
26384 status open
26385
26386 \begin_layout Plain Layout
26387 And the story continues and continues and continues and continues\SpecialChar ldots
26388
26389 \end_layout
26390
26391 \end_inset
26392
26393
26394 \size small
26395 On the evening of the crime, he returned from the club exactly at ten.
26396  His mother and sister were out spending the evening with a relation.
26397  The servant deposed that she heard him enter the front room on the second
26398  floor, generally used as his sitting-room.
26399  She had lit a fire there, and as it smoked she had opened the window.
26400  No sound was heard from the room until eleven-twenty, the hour of the return
26401  of Lady Maynooth and her daughter.
26402  Desiring to say good-night, she attempted to enter her son's room.
26403  The door was locked on the inside, and no answer could be got to their
26404  cries and knocking.
26405  Help was obtained, and the door forced.
26406  The unfortunate young man was found lying near the table.
26407  His head had been horribly mutilated by an expanding revolver bullet, but
26408  no weapon of any sort was to be found in the room.
26409 \end_layout
26410
26411 \end_inset
26412
26413
26414 \end_layout
26415
26416 \begin_layout Standard
26417 You can also use a section heading as the preface if you use a section command
26418  as \SpecialChar TeX
26419  Code.
26420  For example the command
26421 \end_layout
26422
26423 \begin_layout LyX-Code
26424
26425 \backslash
26426 subsection{subsection title}
26427 \end_layout
26428
26429 \begin_layout Standard
26430 creates a subsection.
26431  In this example the preface is a subsubsection:
26432 \end_layout
26433
26434 \begin_layout Standard
26435 \begin_inset Flex Multiple Columns
26436 status open
26437
26438 \begin_layout Plain Layout
26439 \begin_inset Argument 2
26440 status open
26441
26442 \begin_layout Plain Layout
26443 \begin_inset ERT
26444 status collapsed
26445
26446 \begin_layout Plain Layout
26447
26448
26449 \backslash
26450 subsubsection{
26451 \end_layout
26452
26453 \end_inset
26454
26455 This is a subsubsection heading as a preface
26456 \begin_inset ERT
26457 status collapsed
26458
26459 \begin_layout Plain Layout
26460
26461 }
26462 \end_layout
26463
26464 \end_inset
26465
26466
26467 \end_layout
26468
26469 \end_inset
26470
26471
26472 \size small
26473 A minute examination of the circumstances served only to make the case more
26474  complex.
26475  In the first place, no reason could be given why the young man should have
26476  fastened the door upon the inside.
26477  There was the possibility that the murderer had done this, and had afterwards
26478  escaped by the window.
26479  The drop was at least twenty feet, however, and a bed of crocuses in full
26480  bloom lay beneath.
26481  Neither the flowers nor the earth showed any sign of having been disturbed,
26482  nor were there any marks upon the narrow strip of grass which separated
26483  the house from the road.
26484  Apparently, therefore, it was the young man himself who had fastened the
26485  door.
26486  But how did he come by his death? No one could have climbed up to the window
26487  without leaving traces.
26488  Suppose a man had fired through the window, he would indeed be a remarkable
26489  shot who could with a revolver inflict so deadly a wound.
26490  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26491  a hundred yards of the house.
26492  No one had heard a shot.
26493 \end_layout
26494
26495 \end_inset
26496
26497
26498 \end_layout
26499
26500 \begin_layout Standard
26501 If there is less vertical space than 6
26502 \begin_inset space ~
26503 \end_inset
26504
26505 text lines is left on the page at the beginning of the multiple columns,
26506  a page break will be inserted before the multiple columns.
26507  Depending on the number of lines of the preface text, you might want to
26508  change this space.
26509  This is done by setting the cursor into the mulitcolumn inset behind the
26510  preface (if there is any) and using the menu 
26511 \family sans
26512 Insert\SpecialChar menuseparator
26513 Space
26514 \begin_inset space ~
26515 \end_inset
26516
26517 Before
26518 \begin_inset space ~
26519 \end_inset
26520
26521 Page
26522 \begin_inset space ~
26523 \end_inset
26524
26525 Break
26526 \family default
26527 .
26528  Insert into that inset the amount of space like e.
26529 \begin_inset space \thinspace{}
26530 \end_inset
26531
26532 g.
26533 \begin_inset space \space{}
26534 \end_inset
26535
26536
26537 \begin_inset Quotes eld
26538 \end_inset
26539
26540 5cm
26541 \begin_inset Quotes erd
26542 \end_inset
26543
26544 .
26545 \begin_inset Newline newline
26546 \end_inset
26547
26548 In this example the space is set to 7
26549 \begin_inset space ~
26550 \end_inset
26551
26552 text lines by using 
26553 \begin_inset Flex Code
26554 status collapsed
26555
26556 \begin_layout Plain Layout
26557 7
26558 \backslash
26559 baselineskip
26560 \end_layout
26561
26562 \end_inset
26563
26564  (where the command 
26565 \begin_inset Flex Code
26566 status collapsed
26567
26568 \begin_layout Plain Layout
26569
26570 \backslash
26571 baselineskip
26572 \end_layout
26573
26574 \end_inset
26575
26576  needs to be inserted as \SpecialChar TeX
26577  code):
26578 \end_layout
26579
26580 \begin_layout Standard
26581 \begin_inset Flex Multiple Columns
26582 status open
26583
26584 \begin_layout Plain Layout
26585 \begin_inset Argument 3
26586 status open
26587
26588 \begin_layout Plain Layout
26589 7
26590 \begin_inset ERT
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594
26595
26596 \backslash
26597 baselineskip
26598 \end_layout
26599
26600 \end_inset
26601
26602
26603 \end_layout
26604
26605 \end_inset
26606
26607
26608 \size small
26609 On the evening of the crime, he returned from the club exactly at ten.
26610  His mother and sister were out spending the evening with a relation.
26611  The servant deposed that she heard him enter the front room on the second
26612  floor, generally used as his sitting-room.
26613  She had lit a fire there, and as it smoked she had opened the window.
26614  No sound was heard from the room until eleven-twenty, the hour of the return
26615  of Lady Maynooth and her daughter.
26616  Desiring to say good-night, she attempted to enter her son's room.
26617  The door was locked on the inside, and no answer could be got to their
26618  cries and knocking.
26619  Help was obtained, and the door forced.
26620  The unfortunate young man was found lying near the table.
26621  His head had been horribly mutilated by an expanding revolver bullet, but
26622  no weapon of any sort was to be found in the room.
26623 \end_layout
26624
26625 \end_inset
26626
26627
26628 \end_layout
26629
26630 \begin_layout Subsubsection
26631 Surrounding Space
26632 \end_layout
26633
26634 \begin_layout Standard
26635 The amount of space before and after multiple columns can be changed by
26636  changing the length 
26637 \begin_inset Flex Code
26638 status collapsed
26639
26640 \begin_layout Plain Layout
26641
26642 \backslash
26643 multicolsep
26644 \end_layout
26645
26646 \end_inset
26647
26648 .
26649  For example the command
26650 \end_layout
26651
26652 \begin_layout LyX-Code
26653
26654 \backslash
26655 setlength{
26656 \backslash
26657 multicolsep}{3cm}
26658 \end_layout
26659
26660 \begin_layout Standard
26661 in \SpecialChar TeX
26662  Code changes its value to 3
26663 \begin_inset space \thinspace{}
26664 \end_inset
26665
26666 cm.
26667  The change must be made before the multiple columns' start.
26668  The predefined value is 13
26669 \begin_inset space \thinspace{}
26670 \end_inset
26671
26672 pt.
26673 \end_layout
26674
26675 \begin_layout Standard
26676 For this example 
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681
26682 \backslash
26683 multicolsep
26684 \end_layout
26685
26686 \end_inset
26687
26688  was set to 2.5
26689 \begin_inset space \thinspace{}
26690 \end_inset
26691
26692 cm:
26693 \end_layout
26694
26695 \begin_layout Standard
26696 \begin_inset ERT
26697 status open
26698
26699 \begin_layout Plain Layout
26700
26701
26702 \backslash
26703 setlength{
26704 \backslash
26705 multicolsep}{2.5cm}
26706 \end_layout
26707
26708 \end_inset
26709
26710
26711 \end_layout
26712
26713 \begin_layout Standard
26714 \begin_inset Flex Multiple Columns
26715 status open
26716
26717 \begin_layout Plain Layout
26718
26719 \size small
26720 All day I turned these facts over in my mind, endeavouring to hit upon some
26721  theory which could reconcile them all, and to find that line of least resistanc
26722 e which my poor friend had declared to be the starting-point of every investigat
26723 ion.
26724  I confess that I made little progress.
26725  In the evening I strolled across the Park, and found myself about six o'clock
26726  at the Oxford Street end of Park Lane.
26727  A group of loafers upon the pavements, all staring up at a particular window,
26728  directed me to the house which I had come to see.
26729  A tall, thin man with coloured glasses, whom I strongly suspected of being
26730  a plain-clothes detective, was pointing out some theory of his own, while
26731  the others crowded round to listen to what he said.
26732  I got as near him as I could, but his observations seemed to me to be absurd,
26733  so I withdrew again in some disgust.
26734  As I did so I struck against an elderly, deformed man, who had been behind
26735  me, and I knocked down several books which he was carrying.
26736 \end_layout
26737
26738 \end_inset
26739
26740
26741 \end_layout
26742
26743 \begin_layout Standard
26744 \begin_inset Note Greyedout
26745 status open
26746
26747 \begin_layout Plain Layout
26748
26749 \series bold
26750 Note:
26751 \series default
26752  The values you set with 
26753 \begin_inset Flex Code
26754 status collapsed
26755
26756 \begin_layout Plain Layout
26757
26758 \backslash
26759 setlength
26760 \end_layout
26761
26762 \end_inset
26763
26764  will be used for all following multiple columns until you change them again.
26765 \end_layout
26766
26767 \end_inset
26768
26769
26770 \end_layout
26771
26772 \begin_layout Standard
26773 \begin_inset ERT
26774 status collapsed
26775
26776 \begin_layout Plain Layout
26777
26778
26779 \backslash
26780 setlength{
26781 \backslash
26782 multicolsep}{13pt}
26783 \end_layout
26784
26785 \end_inset
26786
26787
26788 \begin_inset Note Note
26789 status collapsed
26790
26791 \begin_layout Plain Layout
26792 go back to the default
26793 \end_layout
26794
26795 \end_inset
26796
26797
26798 \end_layout
26799
26800 \begin_layout Standard
26801 \begin_inset Newpage newpage
26802 \end_inset
26803
26804
26805 \end_layout
26806
26807 \begin_layout Subsubsection
26808 Column Breaks
26809 \end_layout
26810
26811 \begin_layout Standard
26812 A column break can be forced by inserting the command 
26813 \begin_inset Flex Code
26814 status collapsed
26815
26816 \begin_layout Plain Layout
26817
26818 \backslash
26819 columnbreak{}
26820 \end_layout
26821
26822 \end_inset
26823
26824  as \SpecialChar TeX
26825  Code to that position in the text where the column should be broken.
26826  Note that this leads in most cases to whitespace in the text.
26827 \begin_inset Newline newline
26828 \end_inset
26829
26830 Here is an example:
26831 \end_layout
26832
26833 \begin_layout Standard
26834 \begin_inset Flex Multiple Columns
26835 status open
26836
26837 \begin_layout Plain Layout
26838
26839 \size small
26840 \begin_inset Quotes eld
26841 \end_inset
26842
26843 You're surprised to see me, sir,
26844 \begin_inset Quotes erd
26845 \end_inset
26846
26847  said he, in a strange, croaking voice.
26848 \end_layout
26849
26850 \begin_layout Plain Layout
26851
26852 \size small
26853 I acknowledged that I was.
26854 \end_layout
26855
26856 \begin_layout Plain Layout
26857
26858 \size small
26859 \begin_inset Quotes eld
26860 \end_inset
26861
26862 Well, I've a conscience, sir, and when I chanced to see you go into this
26863  house, as I came hobbling after you, I thought to myself, I'll just step
26864  in and see that kind gentleman, and tell him that if I was a bit gruff
26865  in my manner there was not any harm meant, and that I am much obliged to
26866  him for picking up my books.
26867 \begin_inset Quotes erd
26868 \end_inset
26869
26870
26871 \end_layout
26872
26873 \begin_layout Plain Layout
26874
26875 \size small
26876 \begin_inset Quotes eld
26877 \end_inset
26878
26879 You make too much of a trifle,
26880 \begin_inset Quotes erd
26881 \end_inset
26882
26883  said I.
26884  
26885 \begin_inset Quotes eld
26886 \end_inset
26887
26888 May I ask how you knew who I was?
26889 \begin_inset Quotes erd
26890 \end_inset
26891
26892  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
26893 \begin_inset ERT
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897
26898
26899 \backslash
26900 columnbreak{}
26901 \end_layout
26902
26903 \end_inset
26904
26905
26906 \end_layout
26907
26908 \begin_layout Plain Layout
26909
26910 \size small
26911 \begin_inset Quotes eld
26912 \end_inset
26913
26914 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26915  you'll find my little bookshop at the corner of Church Street, and very
26916  happy to see you, I am sure.
26917  Maybe you collect yourself, sir.
26918  Here's 
26919 \noun on
26920 British
26921 \begin_inset space ~
26922 \end_inset
26923
26924 Birds
26925 \noun default
26926 , and 
26927 \noun on
26928 Catullus
26929 \noun default
26930 , and 
26931 \noun on
26932 The Holy War
26933 \noun default
26934
26935 \begin_inset space ~
26936 \end_inset
26937
26938 – a bargain, every one of them.
26939  With five volumes you could just fill that gap on that second shelf.
26940  It looks untidy, does it not, sir?
26941 \begin_inset Quotes erd
26942 \end_inset
26943
26944
26945 \end_layout
26946
26947 \end_inset
26948
26949
26950 \end_layout
26951
26952 \begin_layout Subsubsection
26953 Column Separation
26954 \end_layout
26955
26956 \begin_layout Standard
26957 The width of the columns is automatically calculated, but you can modify
26958  the space between the columns.
26959  This is done by changing the length 
26960 \begin_inset Flex Code
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964
26965 \backslash
26966 columnsep
26967 \end_layout
26968
26969 \end_inset
26970
26971 .
26972  Its predefined value is 10
26973 \begin_inset space \thinspace{}
26974 \end_inset
26975
26976 pt.
26977  Here is an example where 
26978 \begin_inset Flex Code
26979 status collapsed
26980
26981 \begin_layout Plain Layout
26982
26983 \backslash
26984 columnsep
26985 \end_layout
26986
26987 \end_inset
26988
26989  is set to 3
26990 \begin_inset space \thinspace{}
26991 \end_inset
26992
26993 cm:
26994 \end_layout
26995
26996 \begin_layout Standard
26997 \begin_inset ERT
26998 status open
26999
27000 \begin_layout Plain Layout
27001
27002
27003 \backslash
27004 setlength{
27005 \backslash
27006 columnsep}{3cm}
27007 \end_layout
27008
27009 \end_inset
27010
27011
27012 \end_layout
27013
27014 \begin_layout Standard
27015 \begin_inset Flex Multiple Columns
27016 status open
27017
27018 \begin_layout Plain Layout
27019
27020 \size small
27021 My observations of No.
27022 \begin_inset space \space{}
27023 \end_inset
27024
27025 427 Park Lane did little to clear up the problem in which I was interested.
27026  The house was separated from the street by a low wall and railing, the
27027  whole not more than five feet high.
27028  It was perfectly easy, therefore, for anyone to get into the garden, but
27029  the window was entirely inaccessible, since there was no water pipe or
27030  anything which could help the most active man to climb it.
27031  More puzzled than ever, I retraced my steps to Kensington.
27032  I had not been in my study five minutes when the maid entered to say that
27033  a person desired to see me.
27034  To my astonishment it was none other than my strange old book collector,
27035  his sharp, wizened face peering out from a frame of white hair, and his
27036  precious volumes, a dozen of them at least, wedged under his right arm.
27037 \end_layout
27038
27039 \end_inset
27040
27041
27042 \end_layout
27043
27044 \begin_layout Standard
27045 \begin_inset ERT
27046 status collapsed
27047
27048 \begin_layout Plain Layout
27049
27050
27051 \backslash
27052 setlength{
27053 \backslash
27054 columnsep}{10pt}
27055 \end_layout
27056
27057 \end_inset
27058
27059
27060 \begin_inset Note Note
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064 go back to the default
27065 \end_layout
27066
27067 \end_inset
27068
27069
27070 \end_layout
27071
27072 \begin_layout Subsubsection
27073 Vertical Lines
27074 \end_layout
27075
27076 \begin_layout Standard
27077 Between the columns a rule with a width of the length 
27078 \begin_inset Flex Code
27079 status collapsed
27080
27081 \begin_layout Plain Layout
27082
27083 \backslash
27084 columnseprule
27085 \end_layout
27086
27087 \end_inset
27088
27089  is placed.
27090  If this rule width is set to 0
27091 \begin_inset space \thinspace{}
27092 \end_inset
27093
27094 pt (this is the default), the rule is suppressed.
27095  In the following example the rule is 2
27096 \begin_inset space \thinspace{}
27097 \end_inset
27098
27099 pt wide:
27100 \end_layout
27101
27102 \begin_layout Standard
27103 \begin_inset ERT
27104 status open
27105
27106 \begin_layout Plain Layout
27107
27108
27109 \backslash
27110 setlength{
27111 \backslash
27112 columnseprule}{2pt}
27113 \end_layout
27114
27115 \end_inset
27116
27117
27118 \end_layout
27119
27120 \begin_layout Standard
27121 \begin_inset Flex Multiple Columns
27122 status open
27123
27124 \begin_layout Plain Layout
27125
27126 \size small
27127 \begin_inset Quotes eld
27128 \end_inset
27129
27130 You're surprised to see me, sir,
27131 \begin_inset Quotes erd
27132 \end_inset
27133
27134  said he, in a strange, croaking voice.
27135 \end_layout
27136
27137 \begin_layout Plain Layout
27138
27139 \size small
27140 I acknowledged that I was.
27141 \end_layout
27142
27143 \begin_layout Plain Layout
27144
27145 \size small
27146 \begin_inset Quotes eld
27147 \end_inset
27148
27149 Well, I've a conscience, sir, and when I chanced to see you go into this
27150  house, as I came hobbling after you, I thought to myself, I'll just step
27151  in and see that kind gentleman, and tell him that if I was a bit gruff
27152  in my manner there was not any harm meant, and that I am much obliged to
27153  him for picking up my books.
27154 \begin_inset Quotes erd
27155 \end_inset
27156
27157
27158 \end_layout
27159
27160 \begin_layout Plain Layout
27161
27162 \size small
27163 \begin_inset Quotes eld
27164 \end_inset
27165
27166 You make too much of a trifle,
27167 \begin_inset Quotes erd
27168 \end_inset
27169
27170  said I.
27171  
27172 \begin_inset Quotes eld
27173 \end_inset
27174
27175 May I ask how you knew who I was?
27176 \begin_inset Quotes erd
27177 \end_inset
27178
27179
27180 \end_layout
27181
27182 \begin_layout Plain Layout
27183
27184 \size small
27185 \begin_inset Quotes eld
27186 \end_inset
27187
27188 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27189  you'll find my little bookshop at the corner of Church Street, and very
27190  happy to see you, I am sure.
27191  Maybe you collect yourself, sir.
27192  Here's 
27193 \noun on
27194 British
27195 \begin_inset space ~
27196 \end_inset
27197
27198 Birds
27199 \noun default
27200 , and 
27201 \noun on
27202 Catullus
27203 \noun default
27204 , and 
27205 \noun on
27206 The Holy War
27207 \noun default
27208
27209 \begin_inset space ~
27210 \end_inset
27211
27212 – a bargain, every one of them.
27213  With five volumes you could just fill that gap on that second shelf.
27214  It looks untidy, does it not, sir?
27215 \begin_inset Quotes erd
27216 \end_inset
27217
27218
27219 \end_layout
27220
27221 \end_inset
27222
27223
27224 \end_layout
27225
27226 \begin_layout Standard
27227 \begin_inset VSpace defskip
27228 \end_inset
27229
27230
27231 \end_layout
27232
27233 \begin_layout Standard
27234 The rule can be colored by redefining the command 
27235 \begin_inset Flex Code
27236 status collapsed
27237
27238 \begin_layout Plain Layout
27239
27240 \backslash
27241 columnseprulecolor
27242 \end_layout
27243
27244 \end_inset
27245
27246 .
27247  This is done by inserting the command
27248 \end_layout
27249
27250 \begin_layout LyX-Code
27251
27252 \backslash
27253 renewcommand{
27254 \backslash
27255 columnseprulecolor}{
27256 \backslash
27257 color{red}}
27258 \end_layout
27259
27260 \begin_layout Standard
27261 as \SpecialChar TeX
27262  Code before the multicolumn inset.
27263  Replace 
27264 \begin_inset Flex Code
27265 status collapsed
27266
27267 \begin_layout Plain Layout
27268 red
27269 \end_layout
27270
27271 \end_inset
27272
27273  in this command by a color of your choice.
27274  You can use all pre- and self-defined colors.
27275  See the 
27276 \emph on
27277 EmbeddedObjects
27278 \emph default
27279  manual, section 
27280 \emph on
27281 Colored
27282 \begin_inset space ~
27283 \end_inset
27284
27285 Tables
27286 \emph default
27287  for more information about pre- and self-defined colors.
27288  To go back to the default color insert the command
27289 \end_layout
27290
27291 \begin_layout LyX-Code
27292
27293 \backslash
27294 renewcommand{
27295 \backslash
27296 columnseprulecolor}{
27297 \backslash
27298 normalcolor}
27299 \end_layout
27300
27301 \begin_layout Standard
27302 Here is the example with a cyan rule and 1
27303 \begin_inset space \thinspace{}
27304 \end_inset
27305
27306 cm column separation:
27307 \end_layout
27308
27309 \begin_layout Standard
27310 \begin_inset ERT
27311 status open
27312
27313 \begin_layout Plain Layout
27314
27315
27316 \backslash
27317 setlength{
27318 \backslash
27319 columnsep}{1cm}
27320 \end_layout
27321
27322 \begin_layout Plain Layout
27323
27324
27325 \backslash
27326 renewcommand{
27327 \backslash
27328 columnseprulecolor}{
27329 \backslash
27330 color{cyan}}
27331 \end_layout
27332
27333 \end_inset
27334
27335
27336 \end_layout
27337
27338 \begin_layout Standard
27339 \begin_inset Flex Multiple Columns
27340 status open
27341
27342 \begin_layout Plain Layout
27343
27344 \size small
27345 \begin_inset Quotes eld
27346 \end_inset
27347
27348 You're surprised to see me, sir,
27349 \begin_inset Quotes erd
27350 \end_inset
27351
27352  said he, in a strange, croaking voice.
27353 \end_layout
27354
27355 \begin_layout Plain Layout
27356
27357 \size small
27358 I acknowledged that I was.
27359 \end_layout
27360
27361 \begin_layout Plain Layout
27362
27363 \size small
27364 \begin_inset Quotes eld
27365 \end_inset
27366
27367 Well, I've a conscience, sir, and when I chanced to see you go into this
27368  house, as I came hobbling after you, I thought to myself, I'll just step
27369  in and see that kind gentleman, and tell him that if I was a bit gruff
27370  in my manner there was not any harm meant, and that I am much obliged to
27371  him for picking up my books.
27372 \begin_inset Quotes erd
27373 \end_inset
27374
27375
27376 \end_layout
27377
27378 \begin_layout Plain Layout
27379
27380 \size small
27381 \begin_inset Quotes eld
27382 \end_inset
27383
27384 You make too much of a trifle,
27385 \begin_inset Quotes erd
27386 \end_inset
27387
27388  said I.
27389  
27390 \begin_inset Quotes eld
27391 \end_inset
27392
27393 May I ask how you knew who I was?
27394 \begin_inset Quotes erd
27395 \end_inset
27396
27397
27398 \end_layout
27399
27400 \begin_layout Plain Layout
27401
27402 \size small
27403 \begin_inset Quotes eld
27404 \end_inset
27405
27406 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27407  you'll find my little bookshop at the corner of Church Street, and very
27408  happy to see you, I am sure.
27409  Maybe you collect yourself, sir.
27410  Here's 
27411 \noun on
27412 British
27413 \begin_inset space ~
27414 \end_inset
27415
27416 Birds
27417 \noun default
27418 , and 
27419 \noun on
27420 Catullus
27421 \noun default
27422 , and 
27423 \noun on
27424 The Holy War
27425 \noun default
27426
27427 \begin_inset space ~
27428 \end_inset
27429
27430 – a bargain, every one of them.
27431  With five volumes you could just fill that gap on that second shelf.
27432  It looks untidy, does it not, sir?
27433 \begin_inset Quotes erd
27434 \end_inset
27435
27436
27437 \end_layout
27438
27439 \end_inset
27440
27441
27442 \end_layout
27443
27444 \begin_layout Standard
27445 \begin_inset ERT
27446 status collapsed
27447
27448 \begin_layout Plain Layout
27449
27450
27451 \backslash
27452 setlength{
27453 \backslash
27454 columnseprule}{0pt}
27455 \end_layout
27456
27457 \begin_layout Plain Layout
27458
27459
27460 \backslash
27461 renewcommand{
27462 \backslash
27463 columnseprulecolor}{
27464 \backslash
27465 normalcolor}
27466 \end_layout
27467
27468 \end_inset
27469
27470
27471 \begin_inset Note Note
27472 status collapsed
27473
27474 \begin_layout Plain Layout
27475 go back to the default
27476 \end_layout
27477
27478 \end_inset
27479
27480
27481 \end_layout
27482
27483 \begin_layout Section
27484 Non-standard Paragraph Shapes
27485 \end_layout
27486
27487 \begin_layout Standard
27488 \noindent
27489 \SpecialChar LaTeX
27490  as well as any other text processor uses by default rectangular paragraphs.
27491  For special cases like for example posters, invitation cards or poems you
27492  can modify the paragraph shape to one of your choice.
27493  This can be done by using the \SpecialChar LaTeX
27494 -package 
27495 \begin_inset Flex Code
27496 status collapsed
27497
27498 \begin_layout Plain Layout
27499 shapepar
27500 \end_layout
27501
27502 \end_inset
27503
27504  which is loaded by using in the document settings the module 
27505 \family sans
27506 Custom paragraph shapes
27507 \family default
27508 .
27509 \end_layout
27510
27511 \begin_layout Subsection
27512 Predefined shapes
27513 \end_layout
27514
27515 \begin_layout Standard
27516
27517 \series bold
27518 shapepar
27519 \series default
27520  provides the following shapes:
27521 \end_layout
27522
27523 \begin_layout Standard
27524 \begin_inset Tabular
27525 <lyxtabular version="3" rows="13" columns="3">
27526 <features booktabs="true" islongtable="true" longtabularalignment="center">
27527 <column alignment="left" valignment="middle" width="16col%">
27528 <column alignment="left" valignment="middle" width="40col%">
27529 <column alignment="left" valignment="middle" width="35col%">
27530 <row endhead="true">
27531 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27532 \begin_inset Text
27533
27534 \begin_layout Plain Layout
27535
27536 \series bold
27537 \size small
27538 Name
27539 \end_layout
27540
27541 \end_inset
27542 </cell>
27543 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27544 \begin_inset Text
27545
27546 \begin_layout Plain Layout
27547
27548 \series bold
27549 \size small
27550 Description
27551 \end_layout
27552
27553 \end_inset
27554 </cell>
27555 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27556 \begin_inset Text
27557
27558 \begin_layout Plain Layout
27559
27560 \series bold
27561 \size small
27562 Annotation
27563 \end_layout
27564
27565 \end_inset
27566 </cell>
27567 </row>
27568 <row interlinespace="default">
27569 <cell alignment="left" valignment="top" usebox="none">
27570 \begin_inset Text
27571
27572 \begin_layout Plain Layout
27573
27574 \size small
27575 CDlabel
27576 \end_layout
27577
27578 \end_inset
27579 </cell>
27580 <cell alignment="left" valignment="top" usebox="none">
27581 \begin_inset Text
27582
27583 \begin_layout Plain Layout
27584
27585 \size small
27586 Circle with circular hole (in the size of a CD/DVD)
27587 \end_layout
27588
27589 \end_inset
27590 </cell>
27591 <cell alignment="left" valignment="top" usebox="none">
27592 \begin_inset Text
27593
27594 \begin_layout Plain Layout
27595
27596 \size small
27597 Cannot be scaled, take care there is not too much text
27598 \end_layout
27599
27600 \end_inset
27601 </cell>
27602 </row>
27603 <row interlinespace="default">
27604 <cell alignment="left" valignment="top" usebox="none">
27605 \begin_inset Text
27606
27607 \begin_layout Plain Layout
27608
27609 \size small
27610 Circle
27611 \end_layout
27612
27613 \end_inset
27614 </cell>
27615 <cell alignment="left" valignment="top" usebox="none">
27616 \begin_inset Text
27617
27618 \begin_layout Plain Layout
27619
27620 \size small
27621 Circle
27622 \end_layout
27623
27624 \end_inset
27625 </cell>
27626 <cell alignment="left" valignment="top" usebox="none">
27627 \begin_inset Text
27628
27629 \begin_layout Plain Layout
27630
27631 \size small
27632 Fragile, calculation might fail
27633 \end_layout
27634
27635 \end_inset
27636 </cell>
27637 </row>
27638 <row interlinespace="default">
27639 <cell alignment="left" valignment="top" usebox="none">
27640 \begin_inset Text
27641
27642 \begin_layout Plain Layout
27643
27644 \size small
27645 Diamond
27646 \end_layout
27647
27648 \end_inset
27649 </cell>
27650 <cell alignment="left" valignment="top" usebox="none">
27651 \begin_inset Text
27652
27653 \begin_layout Plain Layout
27654
27655 \size small
27656 Rhomboid (symbolizing a 
27657 \begin_inset Quotes eld
27658 \end_inset
27659
27660 diamond
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664 )
27665 \end_layout
27666
27667 \end_inset
27668 </cell>
27669 <cell alignment="left" valignment="top" usebox="none">
27670 \begin_inset Text
27671
27672 \begin_layout Plain Layout
27673
27674 \size small
27675 -
27676 \end_layout
27677
27678 \end_inset
27679 </cell>
27680 </row>
27681 <row interlinespace="default">
27682 <cell alignment="left" valignment="top" usebox="none">
27683 \begin_inset Text
27684
27685 \begin_layout Plain Layout
27686
27687 \size small
27688 Heart
27689 \end_layout
27690
27691 \end_inset
27692 </cell>
27693 <cell alignment="left" valignment="top" usebox="none">
27694 \begin_inset Text
27695
27696 \begin_layout Plain Layout
27697
27698 \size small
27699 Heart-like shape
27700 \end_layout
27701
27702 \end_inset
27703 </cell>
27704 <cell alignment="left" valignment="top" usebox="none">
27705 \begin_inset Text
27706
27707 \begin_layout Plain Layout
27708
27709 \size small
27710 -
27711 \end_layout
27712
27713 \end_inset
27714 </cell>
27715 </row>
27716 <row interlinespace="default">
27717 <cell alignment="left" valignment="top" usebox="none">
27718 \begin_inset Text
27719
27720 \begin_layout Plain Layout
27721
27722 \size small
27723 Hexagon
27724 \end_layout
27725
27726 \end_inset
27727 </cell>
27728 <cell alignment="left" valignment="top" usebox="none">
27729 \begin_inset Text
27730
27731 \begin_layout Plain Layout
27732
27733 \size small
27734 Hexagon
27735 \end_layout
27736
27737 \end_inset
27738 </cell>
27739 <cell alignment="left" valignment="top" usebox="none">
27740 \begin_inset Text
27741
27742 \begin_layout Plain Layout
27743
27744 \size small
27745 -
27746 \end_layout
27747
27748 \end_inset
27749 </cell>
27750 </row>
27751 <row interlinespace="default">
27752 <cell alignment="left" valignment="top" usebox="none">
27753 \begin_inset Text
27754
27755 \begin_layout Plain Layout
27756
27757 \size small
27758 Nut
27759 \end_layout
27760
27761 \end_inset
27762 </cell>
27763 <cell alignment="left" valignment="top" usebox="none">
27764 \begin_inset Text
27765
27766 \begin_layout Plain Layout
27767
27768 \size small
27769 Nut for bolt (hexagon with circular hole)
27770 \end_layout
27771
27772 \end_inset
27773 </cell>
27774 <cell alignment="left" valignment="top" usebox="none">
27775 \begin_inset Text
27776
27777 \begin_layout Plain Layout
27778
27779 \size small
27780 -
27781 \end_layout
27782
27783 \end_inset
27784 </cell>
27785 </row>
27786 <row interlinespace="default">
27787 <cell alignment="left" valignment="top" usebox="none">
27788 \begin_inset Text
27789
27790 \begin_layout Plain Layout
27791
27792 \size small
27793 Square
27794 \end_layout
27795
27796 \end_inset
27797 </cell>
27798 <cell alignment="left" valignment="top" usebox="none">
27799 \begin_inset Text
27800
27801 \begin_layout Plain Layout
27802
27803 \size small
27804 Square
27805 \end_layout
27806
27807 \end_inset
27808 </cell>
27809 <cell alignment="left" valignment="top" usebox="none">
27810 \begin_inset Text
27811
27812 \begin_layout Plain Layout
27813
27814 \size small
27815 -
27816 \end_layout
27817
27818 \end_inset
27819 </cell>
27820 </row>
27821 <row interlinespace="default">
27822 <cell alignment="left" valignment="top" usebox="none">
27823 \begin_inset Text
27824
27825 \begin_layout Plain Layout
27826
27827 \size small
27828 Star
27829 \end_layout
27830
27831 \end_inset
27832 </cell>
27833 <cell alignment="left" valignment="top" usebox="none">
27834 \begin_inset Text
27835
27836 \begin_layout Plain Layout
27837
27838 \size small
27839 Five-point star
27840 \end_layout
27841
27842 \end_inset
27843 </cell>
27844 <cell alignment="left" valignment="top" usebox="none">
27845 \begin_inset Text
27846
27847 \begin_layout Plain Layout
27848
27849 \size small
27850 -
27851 \end_layout
27852
27853 \end_inset
27854 </cell>
27855 </row>
27856 <row interlinespace="default">
27857 <cell alignment="left" valignment="top" usebox="none">
27858 \begin_inset Text
27859
27860 \begin_layout Plain Layout
27861
27862 \size small
27863 Candle
27864 \end_layout
27865
27866 \end_inset
27867 </cell>
27868 <cell alignment="left" valignment="top" usebox="none">
27869 \begin_inset Text
27870
27871 \begin_layout Plain Layout
27872
27873 \size small
27874 Burning candle
27875 \end_layout
27876
27877 \end_inset
27878 </cell>
27879 <cell alignment="left" valignment="top" usebox="none">
27880 \begin_inset Text
27881
27882 \begin_layout Plain Layout
27883
27884 \size small
27885 -
27886 \end_layout
27887
27888 \end_inset
27889 </cell>
27890 </row>
27891 <row interlinespace="default">
27892 <cell alignment="left" valignment="top" usebox="none">
27893 \begin_inset Text
27894
27895 \begin_layout Plain Layout
27896
27897 \size small
27898 Drop down/up
27899 \end_layout
27900
27901 \end_inset
27902 </cell>
27903 <cell alignment="left" valignment="top" usebox="none">
27904 \begin_inset Text
27905
27906 \begin_layout Plain Layout
27907
27908 \size small
27909 Normal/reversed rain drop
27910 \end_layout
27911
27912 \end_inset
27913 </cell>
27914 <cell alignment="left" valignment="top" usebox="none">
27915 \begin_inset Text
27916
27917 \begin_layout Plain Layout
27918
27919 \size small
27920 Fragile, calculation might fail
27921 \end_layout
27922
27923 \end_inset
27924 </cell>
27925 </row>
27926 <row interlinespace="default">
27927 <cell alignment="left" valignment="top" usebox="none">
27928 \begin_inset Text
27929
27930 \begin_layout Plain Layout
27931
27932 \size small
27933 \SpecialChar TeX
27934
27935 \end_layout
27936
27937 \end_inset
27938 </cell>
27939 <cell alignment="left" valignment="top" usebox="none">
27940 \begin_inset Text
27941
27942 \begin_layout Plain Layout
27943
27944 \size small
27945 The \SpecialChar TeX
27946  logo
27947 \end_layout
27948
27949 \end_inset
27950 </cell>
27951 <cell alignment="left" valignment="top" usebox="none">
27952 \begin_inset Text
27953
27954 \begin_layout Plain Layout
27955
27956 \size small
27957 -
27958 \end_layout
27959
27960 \end_inset
27961 </cell>
27962 </row>
27963 <row interlinespace="default">
27964 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27965 \begin_inset Text
27966
27967 \begin_layout Plain Layout
27968
27969 \size small
27970 Triangle up/down/
27971 \begin_inset Newline newline
27972 \end_inset
27973
27974 left/right
27975 \end_layout
27976
27977 \end_inset
27978 </cell>
27979 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27980 \begin_inset Text
27981
27982 \begin_layout Plain Layout
27983
27984 \size small
27985 Triangles in different orientations
27986 \end_layout
27987
27988 \end_inset
27989 </cell>
27990 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
27991 \begin_inset Text
27992
27993 \begin_layout Plain Layout
27994
27995 \size small
27996 -
27997 \end_layout
27998
27999 \end_inset
28000 </cell>
28001 </row>
28002 </lyxtabular>
28003
28004 \end_inset
28005
28006
28007 \end_layout
28008
28009 \begin_layout Standard
28010 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28011 's pull-down box
28012  for environments in the toolbar.
28013 \end_layout
28014
28015 \begin_layout Standard
28016 \begin_inset Newpage newpage
28017 \end_inset
28018
28019
28020 \end_layout
28021
28022 \begin_layout Standard
28023 Here is an example paragraph in the shape of a nut:
28024 \end_layout
28025
28026 \begin_layout Standard
28027 \begin_inset VSpace bigskip
28028 \end_inset
28029
28030
28031 \end_layout
28032
28033 \begin_layout Nut
28034
28035 \lang latin
28036 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28037  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28038  voluptua.
28039  At vero eos et accusam et justo duo dolores et ea rebum.
28040  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28041  sit amet.
28042  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28043  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28044  voluptua.
28045 \end_layout
28046
28047 \begin_layout Standard
28048 \begin_inset VSpace bigskip
28049 \end_inset
28050
28051
28052 \end_layout
28053
28054 \begin_layout Standard
28055 \begin_inset Note Greyedout
28056 status open
28057
28058 \begin_layout Plain Layout
28059
28060 \series bold
28061 Note
28062 \series default
28063
28064 \family sans
28065 shapepar
28066 \family default
28067  paragraphs cannot run over a page break.
28068 \end_layout
28069
28070 \end_inset
28071
28072
28073 \end_layout
28074
28075 \begin_layout Standard
28076 \begin_inset VSpace bigskip
28077 \end_inset
28078
28079
28080 \end_layout
28081
28082 \begin_layout Standard
28083 The package 
28084 \begin_inset Flex Code
28085 status collapsed
28086
28087 \begin_layout Plain Layout
28088 shapepar
28089 \end_layout
28090
28091 \end_inset
28092
28093  takes care that the shape will always be preserved, no matter how much
28094  text is in the paragraph.
28095  Therefore the paragraph size changes with the amount of contained text.
28096  This can lead to paragraph sizes exceeding the page margins.
28097  To demonstrate the size scaling, here is the same example paragraph but
28098  with twice as much text:
28099 \end_layout
28100
28101 \begin_layout Standard
28102 \begin_inset Newpage newpage
28103 \end_inset
28104
28105
28106 \end_layout
28107
28108 \begin_layout Nut
28109
28110 \lang latin
28111 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28112  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28113  voluptua.
28114  At vero eos et accusam et justo duo dolores et ea rebum.
28115  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28116  sit amet.
28117  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28118  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28119  voluptua.
28120  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28121  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28122  voluptua.
28123  At vero eos et accusam et justo duo dolores et ea rebum.
28124  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28125  sit amet.
28126  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28127  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28128  voluptua.
28129 \end_layout
28130
28131 \begin_layout Standard
28132 \begin_inset VSpace bigskip
28133 \end_inset
28134
28135
28136 \end_layout
28137
28138 \begin_layout Standard
28139 An exception is the shape 
28140 \family sans
28141 CDlabel
28142 \family default
28143 .
28144  It cannot be scaled because it must fit the size of a CD/DVD.
28145  Therefore the amount of text that fits into the shape is limited.
28146 \begin_inset Newline newline
28147 \end_inset
28148
28149 The 
28150 \family sans
28151 drop
28152 \family default
28153  shapes and the 
28154 \family sans
28155 circle
28156 \family default
28157  shape are fragile, meaning that the calculation of their size can fail,
28158  depending on the amount of text.
28159  You will then get the \SpecialChar LaTeX
28160  error 
28161 \begin_inset Quotes eld
28162 \end_inset
28163
28164 Arithmetic overflow
28165 \begin_inset Quotes erd
28166 \end_inset
28167
28168 .
28169  In this case one can try to remove or add some text; if nothing works one
28170  has to use another shape.
28171 \end_layout
28172
28173 \begin_layout Standard
28174 \begin_inset VSpace bigskip
28175 \end_inset
28176
28177
28178 \end_layout
28179
28180 \begin_layout Standard
28181 For shapes with tips you will maybe see that \SpecialChar LaTeX
28182 's hyphenation routine fails
28183  for text in the tips.
28184  Therefore it is often necessary to add hyphenation points 
28185 \family sans
28186 (
28187 \begin_inset Info
28188 type  "shortcut"
28189 arg   "specialchar-insert hyphenation"
28190 \end_inset
28191
28192
28193 \family default
28194 ) to the corresponding text parts.
28195 \end_layout
28196
28197 \begin_layout Standard
28198 \begin_inset VSpace bigskip
28199 \end_inset
28200
28201
28202 \end_layout
28203
28204 \begin_layout Standard
28205 Shapepar paragraphs are either always centered or placed on the page so
28206  that their left border touches the left page margin.
28207  You can therefore not use the paragraph dialog to align such paragraphs.
28208  A solution is to put the paragraph into a minipage or parbox and align
28209  the box.
28210  The problem is hereby to find the right width for the box.
28211  Because if it is too wide and you center the box, the paragraph is not
28212  centered too because it sticks at the left side of the box.
28213  So you might have to play a bit with the width until it fits.
28214  Here are two heart-shaped paragraphs, the first one is not aligned, the
28215  second one is right-aligned:
28216 \end_layout
28217
28218 \begin_layout Standard
28219 \begin_inset Newpage newpage
28220 \end_inset
28221
28222
28223 \end_layout
28224
28225 \begin_layout Heart
28226 \noindent
28227
28228 \lang latin
28229 Lo\SpecialChar softhyphen
28230 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28231  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28232  voluptua.
28233  At vero eos et accusam et justo duo dolores et ea rebum.
28234  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28235  sit amet.
28236 \end_layout
28237
28238 \begin_layout Standard
28239 \begin_inset VSpace bigskip
28240 \end_inset
28241
28242
28243 \end_layout
28244
28245 \begin_layout Standard
28246 \noindent
28247 \align right
28248 \begin_inset Box Frameless
28249 position "t"
28250 hor_pos "c"
28251 has_inner_box 1
28252 inner_pos "t"
28253 use_parbox 1
28254 use_makebox 0
28255 width "42col%"
28256 special "none"
28257 height "1in"
28258 height_special "totalheight"
28259 thickness "0.4pt"
28260 separation "3pt"
28261 shadowsize "4pt"
28262 framecolor "black"
28263 backgroundcolor "none"
28264 status open
28265
28266 \begin_layout Heart
28267 \noindent
28268
28269 \lang latin
28270 Lo\SpecialChar softhyphen
28271 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28272  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28273  voluptua.
28274  At vero eos et accusam et justo duo dolores et ea rebum.
28275  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28276  sit amet.
28277 \end_layout
28278
28279 \end_inset
28280
28281
28282 \end_layout
28283
28284 \begin_layout Subsection
28285 Custom shapes
28286 \end_layout
28287
28288 \begin_layout Standard
28289 You can define any shape you want.
28290  Doing this manually is a lot of work because every coordinate must be specified.
28291  But there is a way to let the computer calculate the coordinates:
28292 \end_layout
28293
28294 \begin_layout Enumerate
28295 Install the program 
28296 \begin_inset CommandInset href
28297 LatexCommand href
28298 name "Jpgfdraw"
28299 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
28300 literal "false"
28301
28302 \end_inset
28303
28304 .
28305 \end_layout
28306
28307 \begin_layout Enumerate
28308 In 
28309 \family sans
28310 Jpgfdraw
28311 \family default
28312  go to the menu 
28313 \family sans
28314 TeX/LaTeX\SpecialChar menuseparator
28315 Settings\SpecialChar menuseparator
28316 Set Normal Size
28317 \family default
28318  and select the font size you are using in your document.
28319  For example this document uses the size 12
28320 \begin_inset space \thinspace{}
28321 \end_inset
28322
28323 pt.
28324 \end_layout
28325
28326 \begin_layout Enumerate
28327 Draw a shape.
28328 \end_layout
28329
28330 \begin_layout Enumerate
28331 Use the menu 
28332 \family sans
28333 TeX/LaTeX\SpecialChar menuseparator
28334 Shapepar
28335 \family default
28336  to export the shape to coordinates.
28337  In the appearing dialog use either the outline of your shape for the coordinate
28338 s or the path itself.
28339 \begin_inset Foot
28340 status collapsed
28341
28342 \begin_layout Plain Layout
28343 For more information see 
28344 \begin_inset CommandInset href
28345 LatexCommand href
28346 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28347 literal "false"
28348
28349 \end_inset
28350
28351
28352 \end_layout
28353
28354 \end_inset
28355
28356
28357 \end_layout
28358
28359 \begin_layout Standard
28360 The coordinates are written into a \SpecialChar TeX
28361  file.
28362  To use it for your \SpecialChar LyX
28363  document
28364 \end_layout
28365
28366 \begin_layout Enumerate
28367 Place the cursor before the first character of your paragraph (or into a
28368  new empty one).
28369 \end_layout
28370
28371 \begin_layout Enumerate
28372 Open in \SpecialChar LyX
28373  the menu 
28374 \family sans
28375 Insert\SpecialChar menuseparator
28376 File\SpecialChar menuseparator
28377 Child
28378 \begin_inset space ~
28379 \end_inset
28380
28381 Document
28382 \family default
28383 , select the file and use 
28384 \family sans
28385 Input
28386 \family default
28387  as 
28388 \family sans
28389 Include Type.
28390 \end_layout
28391
28392 \begin_layout Standard
28393 \begin_inset VSpace defskip
28394 \end_inset
28395
28396
28397 \end_layout
28398
28399 \begin_layout Standard
28400 \begin_inset Note Greyedout
28401 status open
28402
28403 \begin_layout Plain Layout
28404
28405 \series bold
28406 Note
28407 \series default
28408 : The changed shape only applies to the current paragraph; everything is
28409  reset to normal for the next paragraph.
28410  Therefore the shape definition file must be input into every paragraph
28411  with the desired shape.
28412 \end_layout
28413
28414 \end_inset
28415
28416
28417 \end_layout
28418
28419 \begin_layout Standard
28420 \begin_inset VSpace bigskip
28421 \end_inset
28422
28423
28424 \end_layout
28425
28426 \begin_layout Standard
28427 Here is an example:
28428 \end_layout
28429
28430 \begin_layout Standard
28431 \begin_inset VSpace bigskip
28432 \end_inset
28433
28434
28435 \end_layout
28436
28437 \begin_layout Standard
28438 \begin_inset CommandInset include
28439 LatexCommand input
28440 filename "SpecialParagraphShape.tex"
28441 literal "true"
28442
28443 \end_inset
28444
28445
28446 \lang latin
28447 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28448  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28449  voluptua.
28450  At vero eos et accusam et justo duo dolores et ea rebum.
28451  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28452  sit amet.
28453  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28454  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28455  voluptua.
28456 \end_layout
28457
28458 \begin_layout Standard
28459 \begin_inset VSpace bigskip
28460 \end_inset
28461
28462
28463 \end_layout
28464
28465 \begin_layout Standard
28466
28467 \series bold
28468 A tip:
28469 \series default
28470  to draw complexer shapes in 
28471 \family sans
28472 Jpgfdraw
28473 \family default
28474  you can draw the shape in a program of your choice and import the resulting
28475  image to 
28476 \family sans
28477 Jpgfdraw
28478 \family default
28479 .
28480  Then you only need to draw a line or spline along the outline of the image.
28481 \end_layout
28482
28483 \begin_layout Standard
28484 \begin_inset VSpace bigskip
28485 \end_inset
28486
28487
28488 \end_layout
28489
28490 \begin_layout Standard
28491 The module 
28492 \family sans
28493 Custom paragraph shapes
28494 \family default
28495  also provides the two commands 
28496 \family sans
28497 shapepar
28498 \family default
28499  and 
28500 \family sans
28501 Shapepar
28502 \family default
28503  which can be used to define custom shapes coordinate by coordinate.
28504 \begin_inset Foot
28505 status collapsed
28506
28507 \begin_layout Plain Layout
28508 These commands are internally used for all shapes described here.
28509 \end_layout
28510
28511 \end_inset
28512
28513  For information how these styles are used and about further customization
28514  possibilities, have a look at the 
28515 \begin_inset CommandInset href
28516 LatexCommand href
28517 name "documentation"
28518 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
28519 literal "false"
28520
28521 \end_inset
28522
28523  of the package 
28524 \begin_inset Flex Code
28525 status collapsed
28526
28527 \begin_layout Plain Layout
28528 shapepar
28529 \end_layout
28530
28531 \end_inset
28532
28533 .
28534 \end_layout
28535
28536 \end_body
28537 \end_document