]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move Non-standard Paragraph Shapes into new Chapter 4 Modules of Additional.lyx 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 Subsection
6894
6895 \change_inserted 564990737 1671042028
6896
6897 \lang american
6898 Elsevier
6899 \end_layout
6900
6901 \begin_layout Standard
6902
6903 \change_inserted 564990737 1671042028
6904
6905 \lang american
6906 The document class 
6907 \family sans
6908 article
6909 \begin_inset space \thinspace{}
6910 \end_inset
6911
6912 (Elsevier)
6913 \family default
6914  provides the 
6915 \family typewriter
6916 elsarticle.cls
6917 \family default
6918  document class.
6919  This provides the following additional environments: 
6920 \family sans
6921 Title
6922 \begin_inset space ~
6923 \end_inset
6924
6925 footnote
6926 \family default
6927
6928 \family sans
6929 Author
6930 \begin_inset space ~
6931 \end_inset
6932
6933 footnote
6934 \family default
6935
6936 \family sans
6937 Corresponding
6938 \begin_inset space ~
6939 \end_inset
6940
6941 author
6942 \family default
6943
6944 \family sans
6945 Address
6946 \family default
6947
6948 \family sans
6949 Email
6950 \family default
6951  and 
6952 \family sans
6953 Keywords
6954 \family default
6955 .
6956  A template 
6957 \family typewriter
6958 elsarticle.lyx
6959 \family default
6960 .
6961  is available in the menu 
6962 \family sans
6963 \bar under
6964 F
6965 \bar default
6966 ile\SpecialChar menuseparator
6967 New
6968 \begin_inset space ~
6969 \end_inset
6970
6971 fro
6972 \bar under
6973 m
6974 \bar default
6975
6976 \begin_inset space ~
6977 \end_inset
6978
6979 Template
6980 \family default
6981 .
6982  It has been customized with further environments and contains all the informati
6983 on you may need.
6984  However, the documentation is also available from 
6985 \begin_inset CommandInset href
6986 LatexCommand href
6987 name "CTAN"
6988 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
6989 literal "false"
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Subsection
6997
6998 \change_inserted 564990737 1671042046
6999
7000 \lang american
7001 Paper
7002 \end_layout
7003
7004 \begin_layout Standard
7005
7006 \change_inserted 564990737 1671042046
7007
7008 \lang american
7009 The document class 
7010 \family sans
7011 article
7012 \begin_inset space \thinspace{}
7013 \end_inset
7014
7015 (paper)
7016 \family default
7017  provides an alternative to the 
7018 \family typewriter
7019 article.cls
7020 \family default
7021  document class.
7022  It provides similar functionality, but you might prefer this layout with
7023  sans serif sections, headings, and more.
7024 \end_layout
7025
7026 \begin_layout Subsection
7027 Rev\SpecialChar TeX
7028 4
7029 \end_layout
7030
7031 \begin_layout Standard
7032 by 
7033 \noun on
7034 Amir Karger
7035 \end_layout
7036
7037 \begin_layout Standard
7038 \begin_inset VSpace bigskip
7039 \end_inset
7040
7041
7042 \end_layout
7043
7044 \begin_layout Standard
7045 \noindent
7046 The 
7047 \family sans
7048 Revtex
7049 \begin_inset space ~
7050 \end_inset
7051
7052 4
7053 \family default
7054  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7055  4.0 (the 
7056 \begin_inset Formula $\beta$
7057 \end_inset
7058
7059  release of May, 1999) class.
7060 \end_layout
7061
7062 \begin_layout Standard
7063 \SpecialChar LyX
7064  has a 
7065 \family sans
7066 Revtex
7067 \family default
7068  textclass, which works with Rev\SpecialChar TeX
7069  3.1.
7070  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7071  2.09.
7072  That means that it doesn't interact very well with \SpecialChar LyX
7073 , which requires \SpecialChar LaTeX2e
7074 , although
7075  it has been kludged to work.
7076  Since Rev\SpecialChar TeX
7077  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7078 , \SpecialChar LyX
7079  with the
7080  
7081 \family sans
7082 Rev\SpecialChar TeX
7083
7084 \begin_inset space ~
7085 \end_inset
7086
7087 4
7088 \family default
7089  textclass should also be pretty easy to use.
7090 \end_layout
7091
7092 \begin_layout Standard
7093 These documents are supposed to be used in 
7094 \emph on
7095 addition
7096 \emph default
7097  to the Rev\SpecialChar TeX
7098  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7099  macros,
7100  and assume you'll know what to put in the preamble if necessary.
7101 \end_layout
7102
7103 \begin_layout Subsubsection
7104 Installation
7105 \end_layout
7106
7107 \begin_layout Standard
7108 All you need to do is install Rev\SpecialChar TeX
7109  4, as described in the package's README
7110  file.
7111  The package can be found at The Rev\SpecialChar TeX
7112  4 Web Site 
7113 \begin_inset Flex URL
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117
7118 http://publish.aps.org/revtex4/
7119 \end_layout
7120
7121 \end_inset
7122
7123 .
7124  Install it somewhere that \SpecialChar LaTeX
7125  can see it.
7126  Test it by trying to \SpecialChar LaTeX
7127  a short Rev\SpecialChar TeX
7128  4 document in some random directory (i.
7129 \begin_inset space \thinspace{}
7130 \end_inset
7131
7132 e.
7133 \begin_inset space \space{}
7134 \end_inset
7135
7136 not the directory where you installed the class file.) Then, if you reconfigure
7137  \SpecialChar LyX
7138 , it will find the class file and let you use the Rev\SpecialChar TeX
7139 4 textclass.
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7144  4 document
7145  using 
7146 \family typewriter
7147 tex2lyx
7148 \family default
7149 , or to use the 
7150 \family sans
7151 Revtex
7152 \begin_inset space ~
7153 \end_inset
7154
7155 4
7156 \family default
7157  template, found in the templates directory.
7158 \end_layout
7159
7160 \begin_layout Subsubsection
7161 Preamble Matter
7162 \end_layout
7163
7164 \begin_layout Standard
7165 Optional arguments to 
7166 \family typewriter
7167
7168 \backslash
7169 documentclass
7170 \family default
7171 , like 
7172 \begin_inset Quotes eld
7173 \end_inset
7174
7175 preprint
7176 \begin_inset Quotes erd
7177 \end_inset
7178
7179  and 
7180 \begin_inset Quotes eld
7181 \end_inset
7182
7183 aps
7184 \begin_inset Quotes erd
7185 \end_inset
7186
7187 , go in the 
7188 \family sans
7189 Extra
7190 \begin_inset space ~
7191 \end_inset
7192
7193 Options
7194 \family default
7195  field in the 
7196 \family sans
7197 Document
7198 \begin_inset space ~
7199 \end_inset
7200
7201 Layout
7202 \family default
7203  dialog, as usual.
7204  Remember that in Rev\SpecialChar TeX
7205 , at least one optional argument is required! 
7206 \end_layout
7207
7208 \begin_layout Standard
7209 Other preamble matter, like 
7210 \family typewriter
7211
7212 \backslash
7213 draft
7214 \family default
7215  etc.
7216 \begin_inset space ~
7217 \end_inset
7218
7219 goes in the 
7220 \family sans
7221 \SpecialChar LaTeX
7222
7223 \begin_inset space ~
7224 \end_inset
7225
7226 Preamble
7227 \family default
7228  dialog, also as usual.
7229 \end_layout
7230
7231 \begin_layout Subsubsection
7232 Layouts
7233 \end_layout
7234
7235 \begin_layout Standard
7236 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7237 4.0.
7238  For example, the Email layout corresponds to 
7239 \family typewriter
7240
7241 \backslash
7242 email{}
7243 \family default
7244 .
7245  Note that (at least as of Rev\SpecialChar TeX
7246  4.0 Beta), the 
7247 \family sans
7248 Address
7249 \family default
7250  and 
7251 \family sans
7252 Affiliation
7253 \family default
7254  layouts are exactly equivalent, so you shouldn't need to use both.
7255 \begin_inset Foot
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 In case you're curious, both were included so that 
7260 \family typewriter
7261 tex2lyx
7262 \family default
7263  would be able to translate both 
7264 \family typewriter
7265
7266 \backslash
7267 address
7268 \family default
7269  and 
7270 \family typewriter
7271
7272 \backslash
7273 affiliation
7274 \family default
7275 .
7276 \end_layout
7277
7278 \end_inset
7279
7280
7281 \end_layout
7282
7283 \begin_layout Subsubsection
7284 Important Notes
7285 \end_layout
7286
7287 \begin_layout Standard
7288 There are a couple of important unique aspects of Rev\SpecialChar TeX
7289  4 which might cause
7290  bugs that will be even more confusing in \SpecialChar LyX
7291 .
7292 \end_layout
7293
7294 \begin_layout Standard
7295 In Rev\SpecialChar TeX
7296 , the 
7297 \family typewriter
7298
7299 \backslash
7300 thanks
7301 \family default
7302  command goes 
7303 \emph on
7304 outside
7305 \emph default
7306  the 
7307 \family typewriter
7308
7309 \backslash
7310 author
7311 \family default
7312  command.
7313  The \SpecialChar LyX
7314  equivalent is that there is a separate Thanks layout.
7315  Do 
7316 \emph on
7317 not
7318 \emph default
7319  write footnotes in the 
7320 \family sans
7321 Author
7322 \family default
7323  layout, or weird things may happen.
7324  See the Rev\SpecialChar TeX
7325  4 documentation for more details.
7326 \end_layout
7327
7328 \begin_layout Standard
7329 Also, the 
7330 \family sans
7331 Author
7332 \begin_inset space ~
7333 \end_inset
7334
7335 Email
7336 \family default
7337
7338 \family sans
7339 Author
7340 \begin_inset space ~
7341 \end_inset
7342
7343 URL
7344 \family default
7345 , and 
7346 \family sans
7347 Thanks
7348 \family default
7349  layouts must be placed 
7350 \emph on
7351 in between
7352 \emph default
7353  the 
7354 \family sans
7355 Author
7356 \family default
7357  layout and the corresponding 
7358 \family sans
7359 Address
7360 \family default
7361  (or equivalent 
7362 \family sans
7363 Affiliation
7364 \family default
7365 ) layout.
7366  If you put the 
7367 \family sans
7368 Thanks
7369 \family default
7370  after the 
7371 \family sans
7372 Address
7373 \family default
7374 , the \SpecialChar LaTeX
7375  won't compile.
7376 \end_layout
7377
7378 \begin_layout Subsection
7379
7380 \change_inserted 564990737 1671042072
7381
7382 \lang american
7383 Springer Journals
7384 \end_layout
7385
7386 \begin_layout Standard
7387
7388 \change_inserted 564990737 1671042072
7389
7390 \lang american
7391 All the 
7392 \family sans
7393 svj*
7394 \family default
7395  classes were replaced in 2013 with a completely new 
7396 \family sans
7397 sr-vorl.cls
7398 \family default
7399 .
7400  This package provides a \SpecialChar LaTeX
7401  class and templates for books to be published
7402  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7403  Research, Springer VS Research, or Springer VS Forschung.
7404  The documentation is available in German from 
7405 \begin_inset CommandInset href
7406 LatexCommand href
7407 name "CTAN"
7408 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7409 literal "false"
7410
7411 \end_inset
7412
7413 .
7414 \end_layout
7415
7416 \begin_layout Section
7417
7418 \change_inserted 564990737 1670439560
7419 Books
7420 \end_layout
7421
7422 \begin_layout Standard
7423
7424 \change_inserted 564990737 1670439581
7425 See also the document classes in the Collections (section
7426 \begin_inset space ~
7427 \end_inset
7428
7429
7430 \begin_inset CommandInset ref
7431 LatexCommand ref
7432 reference "sec:Collections"
7433
7434 \end_inset
7435
7436 ).
7437 \end_layout
7438
7439 \begin_layout Subsection
7440 Memoir
7441 \end_layout
7442
7443 \begin_layout Standard
7444 By 
7445 \noun on
7446 Jürgen Spitzmüller
7447 \end_layout
7448
7449 \begin_layout Subsubsection
7450 Overview
7451 \end_layout
7452
7453 \begin_layout Standard
7454 Memoir is a very powerful and constantly evolving class.
7455  It has been designed with regard to fictional and non-fictional literature.
7456  Its aim is to let the user have maximum control over the typesetting of
7457  his document.
7458  Memoir is based on the standard book class, but it can also emulate the
7459  article class (see below).
7460 \end_layout
7461
7462 \begin_layout Standard
7463 Peter Wilson, the developer of Memoir, is known as the author of lots of
7464  useful packages in the \SpecialChar LaTeX
7465  world.
7466  Most of them have been merged with Memoir.
7467  Therefore, it is much easier to layout the table of contents, appendices,
7468  chapter designs and such.
7469  \SpecialChar LyX
7470 , though, does not support all of these goodies natively.
7471  Some of them might be added to forthcoming releases
7472 \begin_inset Foot
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 You are invited to send suggestions to 
7477 \begin_inset Flex URL
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481
7482 lyx-devel@lists.lyx.org
7483 \end_layout
7484
7485 \end_inset
7486
7487 .
7488 \end_layout
7489
7490 \end_inset
7491
7492 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7493 's framework.
7494  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7495
7496  commands (\SpecialChar TeX
7497  code
7498 \begin_inset Foot
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 Cf.
7503 \begin_inset ERT
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507
7508
7509 \backslash
7510  
7511 \end_layout
7512
7513 \end_inset
7514
7515 section
7516 \begin_inset space ~
7517 \end_inset
7518
7519
7520 \begin_inset CommandInset ref
7521 LatexCommand ref
7522 reference "sec:Inserting-TeX-Code"
7523
7524 \end_inset
7525
7526  for details.
7527 \end_layout
7528
7529 \end_inset
7530
7531 ).
7532  In this section, we can only list those features that are natively supported
7533  by \SpecialChar LyX
7534 .
7535  For detailed descriptions (and for the rest of features) we recommend you
7536  have a look at the detailed manual of the Memoir class
7537 \begin_inset Foot
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 Cf.
7542 \begin_inset ERT
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546
7547
7548 \backslash
7549  
7550 \end_layout
7551
7552 \end_inset
7553
7554
7555 \begin_inset Flex URL
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559
7560 CTAN:/macros/latex/memoir/memman.pdf
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566 \end_layout
7567
7568 \end_inset
7569
7570 , which is not only a user guide for the class, but also both a comprehensive
7571  description on good typesetting and a superb example for good typesetting
7572  itself.
7573 \end_layout
7574
7575 \begin_layout Subsubsection
7576 Basic features and restrictions
7577 \end_layout
7578
7579 \begin_layout Standard
7580 Memoir supports basically all features of the standard book classes.
7581  There are, however, some differences, as follows:
7582 \end_layout
7583
7584 \begin_layout Description
7585 Font
7586 \begin_inset space ~
7587 \end_inset
7588
7589 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7590 \end_layout
7591
7592 \begin_layout Description
7593 Page
7594 \begin_inset space ~
7595 \end_inset
7596
7597 style: The fancy page style is not supported, due to a command clash between
7598  Memoir and the fancyhdr package (they both define a command with the same
7599  name, which confuses \SpecialChar LaTeX
7600 ).
7601  Instead, Memoir comes with a number of its own page styles (see 
7602 \family sans
7603 Document\SpecialChar menuseparator
7604 Settings\SpecialChar menuseparator
7605 Page
7606 \begin_inset space ~
7607 \end_inset
7608
7609 Style
7610 \family default
7611 ).
7612  If you want to use these for the chapter pages, you have to use the command
7613  
7614 \family typewriter
7615
7616 \backslash
7617 chapterstyle
7618 \family default
7619  in the main text or in preamble (e.
7620 \begin_inset space \thinspace{}
7621 \end_inset
7622
7623 g.
7624 \begin_inset space \space{}
7625 \end_inset
7626
7627
7628 \family typewriter
7629
7630 \backslash
7631 chapterstyle{companion}
7632 \family default
7633 ).
7634 \end_layout
7635
7636 \begin_layout Description
7637 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7638  optional argument in the standard classes.
7639  With this, you can specify an alternative version of the title for the
7640  table of contents and the headers (for instance, if the title is too long).
7641  In \SpecialChar LyX
7642 , you can do this via 
7643 \family sans
7644 Insert\SpecialChar menuseparator
7645 Short
7646 \begin_inset space ~
7647 \end_inset
7648
7649 Title
7650 \family default
7651  at the beginning of a chapter/section.
7652  Memoir features a second optional argument and thus separates the table
7653  of contents from the header.
7654  You can define three variants of a title with this: one for the main text,
7655  one for the table of contents, and one for the headers.
7656  \SpecialChar LyX
7657  makes these available in form of specific 
7658 \family sans
7659 Short Title
7660 \family default
7661  variants in the 
7662 \family sans
7663 Insert
7664 \family default
7665  menu.
7666 \end_layout
7667
7668 \begin_layout Description
7669 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7670  of contents, the list of figures and the list of table start a new page
7671  automatically.
7672  Memoir does not follow this route.
7673  You have to insert a page break yourself, if you want to have one.
7674 \end_layout
7675
7676 \begin_layout Description
7677 Titlepage: For some unknown reason, Memoir uses pagination on the title
7678  page (in the standard classes, title pages are 
7679 \begin_inset Quotes eld
7680 \end_inset
7681
7682 empty
7683 \begin_inset Quotes erd
7684 \end_inset
7685
7686 ).
7687  If you want an empty title page, type 
7688 \family typewriter
7689
7690 \backslash
7691 aliaspagestyle{title}{empty}
7692 \family default
7693  in the preamble.
7694 \end_layout
7695
7696 \begin_layout Description
7697 Article: With the class option 
7698 \emph on
7699 article
7700 \emph default
7701  (to be inserted in 
7702 \family sans
7703 Document\SpecialChar menuseparator
7704 Settings\SpecialChar menuseparator
7705 Class Settings\SpecialChar menuseparator
7706 Custom
7707 \begin_inset space ~
7708 \end_inset
7709
7710 Options
7711 \family default
7712 ), you can emulate article style.
7713  That is, counters (footnotes, figures, tables etc.) will not be reset on
7714  new chapters, chapters don't start a new page (but are—in contrary to 
7715 \begin_inset Quotes eld
7716 \end_inset
7717
7718 real
7719 \begin_inset Quotes erd
7720 \end_inset
7721
7722  article classes—still allowed), parts, though, use their own page, as in
7723  book.
7724 \end_layout
7725
7726 \begin_layout Description
7727 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7728  font commands, which have been used in the old \SpecialChar LaTeX
7729  version 2.09 (e.
7730 \begin_inset space \thinspace{}
7731 \end_inset
7732
7733 g.
7734 \begin_inset space \space{}
7735 \end_inset
7736
7737
7738 \family typewriter
7739
7740 \backslash
7741 rm
7742 \family default
7743
7744 \family typewriter
7745
7746 \backslash
7747 it
7748 \family default
7749 ).
7750  It produces an error and stops \SpecialChar LaTeX
7751  whenever such a command appears.
7752  The class option 
7753 \emph on
7754 oldfontcommands
7755 \emph default
7756  reallows the commands and spits out warnings instead (which does at least
7757  not stop \SpecialChar LaTeX
7758 ).
7759  Since a lot of packages and particularly Bib\SpecialChar TeX
7760  style files are still using
7761  those commands, we have decided to use this option by default.
7762 \end_layout
7763
7764 \begin_layout Subsubsection
7765 Extra features
7766 \end_layout
7767
7768 \begin_layout Standard
7769 We will only describe the features supported by \SpecialChar LyX
7770  (which is not much currently).
7771  Please consult the Memoir manual
7772 \begin_inset Foot
7773 status collapsed
7774
7775 \begin_layout Plain Layout
7776 Cf.
7777 \begin_inset ERT
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781
7782
7783 \backslash
7784  
7785 \end_layout
7786
7787 \end_inset
7788
7789
7790 \begin_inset Flex URL
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794
7795 CTAN:/macros/latex/memoir/memman.pdf
7796 \end_layout
7797
7798 \end_inset
7799
7800 .
7801 \end_layout
7802
7803 \end_inset
7804
7805  for details.
7806 \end_layout
7807
7808 \begin_layout Description
7809 Abstract: You may wonder why an abstract is an extra feature.
7810  Well, it is in book class.
7811  Usually books don't have abstracts.
7812  Memoir, however, has.
7813  You can use it wherever and how often you like.
7814 \end_layout
7815
7816 \begin_layout Description
7817 Chapterprecis: You may know this older typesetting style: The contents of
7818  a chapter are summarized below the title and also in the table of contents
7819  (e.
7820 \begin_inset space \thinspace{}
7821 \end_inset
7822
7823 g.
7824 \begin_inset space \space{}
7825 \end_inset
7826
7827
7828 \emph on
7829 Our hero arrives in Troia; he loses some friends; he finds others
7830 \emph default
7831 ).
7832  Chapterprecis does exactly this.
7833  It is therefore only sensible below a chapter.
7834 \end_layout
7835
7836 \begin_layout Description
7837 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
7838  The epigraph environment provides an elegant way of typesetting such a
7839  motto.
7840  The motto itself (text) and its (optional) author (source) are divided
7841  by a short line.
7842  The author (source) can be inserted via 
7843 \family sans
7844 Insert\SpecialChar menuseparator
7845 Epigraph Source
7846 \family default
7847 \emph on
7848 .
7849 \end_layout
7850
7851 \begin_layout Description
7852 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
7853  complex figurative poems).
7854  \SpecialChar LyX
7855  can only support a few of them.
7856  One is poemtitle, which is a centered title for poems, which will also
7857  be added to the table of contents (verse is the standard environment for
7858  poems.
7859  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
7860  code,
7861  because they have to be nested inside regular verse environments, which
7862  is not possible with \SpecialChar LyX
7863 ).
7864 \end_layout
7865
7866 \begin_layout Description
7867 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
7868 \end_layout
7869
7870 \begin_layout Section
7871
7872 \change_inserted 564990737 1670439605
7873 Curricula vitarum
7874 \end_layout
7875
7876 \begin_layout Section
7877
7878 \change_inserted 564990737 1671041968
7879 Letters
7880 \end_layout
7881
7882 \begin_layout Subsection
7883
7884 \change_inserted 564990737 1671041970
7885
7886 \lang american
7887 Din-Brief
7888 \end_layout
7889
7890 \begin_layout Standard
7891
7892 \change_inserted 564990737 1671041970
7893
7894 \lang american
7895 The document class 
7896 \family sans
7897 Din-Brief
7898 \family default
7899  provides the 
7900 \family typewriter
7901 dinbrief.cls
7902 \family default
7903  document class for writing letters according to the 
7904 \emph on
7905 Deutsches Institut für Normung
7906 \emph default
7907  conventions.
7908  The file 
7909 \emph on
7910 dinbrief.lyx
7911 \emph default
7912  in the menu 
7913 \family sans
7914 \bar under
7915 F
7916 \bar default
7917 ile\SpecialChar menuseparator
7918 New
7919 \begin_inset space ~
7920 \end_inset
7921
7922 fro
7923 \bar under
7924 m
7925 \bar default
7926
7927 \begin_inset space ~
7928 \end_inset
7929
7930 Template
7931 \family default
7932  offers guidance on its use.
7933  The documentation is available from 
7934 \begin_inset CommandInset href
7935 LatexCommand href
7936 name "CTAN"
7937 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
7938 literal "false"
7939
7940 \end_inset
7941
7942 .
7943 \end_layout
7944
7945 \begin_layout Section
7946
7947 \change_inserted 564990737 1670439660
7948 Presentations
7949 \end_layout
7950
7951 \begin_layout Subsection
7952 Foils [aka 
7953 \family sans
7954 Foil\SpecialChar TeX
7955
7956 \family default
7957 ]
7958 \begin_inset CommandInset label
7959 LatexCommand label
7960 name "sec:foiltex"
7961
7962 \end_inset
7963
7964
7965 \end_layout
7966
7967 \begin_layout Standard
7968 by 
7969 \noun on
7970 Allan Rae
7971 \end_layout
7972
7973 \begin_layout Subsubsection
7974 Introduction
7975 \end_layout
7976
7977 \begin_layout Standard
7978 This section describes how to use \SpecialChar LyX
7979  to make slides for overhead projectors.
7980  There are two document classes that can do this: the default slides class
7981  and the 
7982 \family sans
7983 Foil\SpecialChar TeX
7984
7985 \family default
7986  slides class.
7987  This section documents the latter.
7988 \end_layout
7989
7990 \begin_layout Standard
7991 I'm going to say this again, nice and clear, so that there's no misunderstanding
7992 :
7993 \end_layout
7994
7995 \begin_layout Standard
7996 \begin_inset VSpace bigskip
7997 \end_inset
7998
7999
8000 \end_layout
8001
8002 \begin_layout Standard
8003 \align center
8004
8005 \size large
8006 This section documents the class 
8007 \begin_inset Quotes eld
8008 \end_inset
8009
8010
8011 \family sans
8012 FoilTeX
8013 \family default
8014
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018  
8019 \emph on
8020 only.
8021 \end_layout
8022
8023 \begin_layout Standard
8024 \begin_inset VSpace bigskip
8025 \end_inset
8026
8027
8028 \end_layout
8029
8030 \begin_layout Standard
8031 If you're looking for the documentation for 
8032 \begin_inset Quotes eld
8033 \end_inset
8034
8035
8036 \family sans
8037 slides (default)
8038 \family default
8039
8040 \begin_inset Quotes erd
8041 \end_inset
8042
8043 , check out section
8044 \begin_inset space ~
8045 \end_inset
8046
8047
8048 \begin_inset CommandInset ref
8049 LatexCommand ref
8050 reference "sec:slitex"
8051
8052 \end_inset
8053
8054 .
8055  If your machine doesn't have the 
8056 \family sans
8057 foils
8058 \family default
8059  class 
8060 \family sans
8061 FoilTeX
8062 \family default
8063  installed, you'll probably have to use the default 
8064 \family sans
8065 slides
8066 \family default
8067  class, which isn't quite as good as 
8068 \family sans
8069 foils.
8070 \end_layout
8071
8072 \begin_layout Standard
8073 The 
8074 \family sans
8075 foils
8076 \family default
8077  class is designed for use with version
8078 \begin_inset space ~
8079 \end_inset
8080
8081 2.1 of the 
8082 \family sans
8083 foils.cls
8084 \family default
8085  \SpecialChar LaTeX
8086  class file which is now an integral part of \SpecialChar LaTeX2e
8087 .
8088 \end_layout
8089
8090 \begin_layout Subsubsection
8091 Getting Started
8092 \end_layout
8093
8094 \begin_layout Standard
8095 Obviously, to use this document class, you need to select 
8096 \family sans
8097 FoilTeX
8098 \family default
8099  from the 
8100 \family sans
8101 Class
8102 \family default
8103  entry in the 
8104 \family sans
8105 Document
8106 \begin_inset space ~
8107 \end_inset
8108
8109 Layout
8110 \family default
8111  dialog.
8112  There are some settings in the 
8113 \family sans
8114 Document
8115 \begin_inset space ~
8116 \end_inset
8117
8118 Layout
8119 \family default
8120  dialog that you should know about that are specific to this class:
8121 \end_layout
8122
8123 \begin_layout Itemize
8124 Don't change the options 
8125 \family sans
8126 Sides
8127 \family default
8128  and 
8129 \family sans
8130 Columns
8131 \family default
8132  on the 
8133 \family sans
8134 Document
8135 \begin_inset space ~
8136 \end_inset
8137
8138 Layout
8139 \family default
8140  dialog.
8141  They're ignored by the 
8142 \family sans
8143 foils
8144 \family default
8145  class.
8146 \end_layout
8147
8148 \begin_layout Itemize
8149 The default font size is 20
8150 \begin_inset space \thinspace{}
8151 \end_inset
8152
8153 pt with the other options being 17
8154 \begin_inset space \thinspace{}
8155 \end_inset
8156
8157 pt, 25
8158 \begin_inset space \thinspace{}
8159 \end_inset
8160
8161 pt and 30
8162 \begin_inset space \thinspace{}
8163 \end_inset
8164
8165 pt.
8166 \end_layout
8167
8168 \begin_layout Itemize
8169 The default font is 
8170 \family sans
8171 sans
8172 \family default
8173  
8174 \family sans
8175 serif
8176 \family default
8177  but all math equations are still typeset in the usual roman font.
8178 \end_layout
8179
8180 \begin_layout Itemize
8181
8182 \family sans
8183 Foil\SpecialChar TeX
8184
8185 \family default
8186  supports A4 and Letter paper sizes as well as a special size for working
8187  with 35
8188 \begin_inset space \thinspace{}
8189 \end_inset
8190
8191 mm slides.
8192  It doesn't support A5, B5, legal or executive paper sizes.
8193 \end_layout
8194
8195 \begin_layout Itemize
8196 Don't bother changing the 
8197 \family sans
8198 Float Placement
8199 \family default
8200  settings because they are ignored anyway.
8201  All floats appear where they are defined in the text.
8202 \end_layout
8203
8204 \begin_layout Itemize
8205 The 
8206 \family sans
8207 Pagestyle
8208 \family default
8209  setting behaves a bit differently for this class.
8210  
8211 \family sans
8212 Foil\SpecialChar TeX
8213
8214 \family default
8215  provides extensive footer and header capabilities including a user-defined
8216  logo.
8217  See section
8218 \begin_inset space ~
8219 \end_inset
8220
8221
8222 \begin_inset CommandInset ref
8223 LatexCommand ref
8224 reference "sec:foilfoot"
8225
8226 \end_inset
8227
8228  for more details.
8229  The title page is treated differently to all other pages in the document
8230  and is 
8231 \emph on
8232 always
8233 \emph default
8234  unnumbered and 
8235 \emph on
8236 always
8237 \emph default
8238  has the logo centered at the bottom of the page (if one is defined).
8239  The possible page style choices and what they do are as follows:
8240 \end_layout
8241
8242 \begin_deeper
8243 \begin_layout Labeling
8244 \labelwidthstring MMMMMMM
8245
8246 \family sans
8247 \series bold
8248 empty
8249 \family default
8250 \series default
8251  The final output contains no page numbers, or other headers or footers
8252  (except footnotes of course).
8253  
8254 \end_layout
8255
8256 \begin_layout Labeling
8257 \labelwidthstring MMMMMMM
8258
8259 \family sans
8260 \series bold
8261 plain
8262 \family default
8263 \series default
8264  The final output contains page numbers centered at the bottom of the page.
8265  No other headings or footers (other than footnotes).
8266 \end_layout
8267
8268 \begin_layout Labeling
8269 \labelwidthstring MMMMMMM
8270
8271 \series bold
8272 foilheadings
8273 \series default
8274  Page numbers in lower right corner.
8275  Additional headers and footers are also shown.
8276  This is also the default.
8277 \end_layout
8278
8279 \begin_layout Labeling
8280 \labelwidthstring MMMMMMM
8281
8282 \series bold
8283 fancy
8284 \series default
8285  Gives you access to the 
8286 \family sans
8287 fancyheadings
8288 \family default
8289  package although its use with 
8290 \family sans
8291 Foil\SpecialChar TeX
8292
8293 \family default
8294  is discouraged by the writer of the 
8295 \family sans
8296 Foil\SpecialChar TeX
8297
8298 \family default
8299  package because of some potential page layout clashes.
8300 \end_layout
8301
8302 \end_deeper
8303 \begin_layout Paragraph
8304 Extra Options
8305 \end_layout
8306
8307 \begin_layout Standard
8308 The following options may be used in the extra class options in the 
8309 \family sans
8310 Document\SpecialChar menuseparator
8311 Settings
8312 \family default
8313  dialog.
8314 \end_layout
8315
8316 \begin_layout Labeling
8317 \labelwidthstring MMMMMMx
8318
8319 \series bold
8320 35mmSlide
8321 \series default
8322  This sets up the page layout for 7.33
8323 \begin_inset space \thinspace{}
8324 \end_inset
8325
8326 in by 11
8327 \begin_inset space \thinspace{}
8328 \end_inset
8329
8330 in paper, which is about the same aspect ratio as a 35
8331 \begin_inset space \thinspace{}
8332 \end_inset
8333
8334 mm slide, making it a bit easier to work with this medium.
8335 \end_layout
8336
8337 \begin_layout Labeling
8338 \labelwidthstring MMMMMMx
8339
8340 \series bold
8341 headrule
8342 \series default
8343  Places a rule across the page below the header on every page except the
8344  title page.
8345 \end_layout
8346
8347 \begin_layout Labeling
8348 \labelwidthstring MMMMMMx
8349
8350 \series bold
8351 footrule
8352 \series default
8353  Places a rule across the page above the footer on every page except the
8354  title page.
8355 \end_layout
8356
8357 \begin_layout Labeling
8358 \labelwidthstring MMMMMMx
8359
8360 \series bold
8361 dvips
8362 \series default
8363  This is automatically set each time you create a new 
8364 \family sans
8365 foils
8366 \family default
8367  document.
8368  This option tells 
8369 \family sans
8370 Foil\SpecialChar TeX
8371
8372 \family default
8373  to use the dvips driver to rotate those pages that are set as landscape
8374  foils.
8375 \end_layout
8376
8377 \begin_layout Labeling
8378 \labelwidthstring MMMMMMx
8379
8380 \series bold
8381 landscape
8382 \series default
8383  Simply changes the page dimensions to those of a landscape page but doesn't
8384  do any rotation.
8385  Thus if you use this option you need to use an external program to rotate
8386  each page or feed your paper through your printer as landscape.
8387  Note that this option effectively reverses the roles of the 
8388 \family sans
8389 Foilhead
8390 \family default
8391  and 
8392 \family sans
8393 Rotatefoilhead
8394 \family default
8395  environments (don't worry these are described in the next section).
8396 \end_layout
8397
8398 \begin_layout Labeling
8399 \labelwidthstring MMMMMMx
8400
8401 \series bold
8402 leqno
8403 \series default
8404  Equation numbers on the left.
8405 \end_layout
8406
8407 \begin_layout Labeling
8408 \labelwidthstring MMMMMMx
8409
8410 \series bold
8411 fleqn
8412 \series default
8413  Flush-left equations.
8414 \end_layout
8415
8416 \begin_layout Subsubsection
8417 Supported Environments
8418 \end_layout
8419
8420 \begin_layout Standard
8421 Most of the environments commonly supported in other classes are also supported
8422  by the 
8423 \family sans
8424 foils
8425 \family default
8426  class.
8427  There are several additional environments provided by 
8428 \family sans
8429 Foil\SpecialChar TeX
8430
8431 \family default
8432  as well as a couple added by \SpecialChar LyX
8433 .
8434  The following environments are shared with other classes:
8435 \end_layout
8436
8437 \begin_layout Standard
8438 \begin_inset Flex Multiple Columns
8439 status open
8440
8441 \begin_layout Itemize
8442
8443 \family sans
8444 Standard
8445 \end_layout
8446
8447 \begin_layout Itemize
8448
8449 \family sans
8450 Itemize
8451 \end_layout
8452
8453 \begin_layout Itemize
8454
8455 \family sans
8456 Enumerate
8457 \end_layout
8458
8459 \begin_layout Itemize
8460
8461 \family sans
8462 Description
8463 \end_layout
8464
8465 \begin_layout Itemize
8466
8467 \family sans
8468 List
8469 \end_layout
8470
8471 \begin_layout Itemize
8472
8473 \family sans
8474 \SpecialChar LyX
8475 -Code
8476 \end_layout
8477
8478 \begin_layout Itemize
8479
8480 \family sans
8481 Verse
8482 \end_layout
8483
8484 \begin_layout Itemize
8485
8486 \family sans
8487 Quote
8488 \end_layout
8489
8490 \begin_layout Itemize
8491
8492 \family sans
8493 Quotation
8494 \end_layout
8495
8496 \begin_layout Itemize
8497
8498 \family sans
8499 TitleAuthor
8500 \end_layout
8501
8502 \begin_layout Itemize
8503
8504 \family sans
8505 Date
8506 \end_layout
8507
8508 \begin_layout Itemize
8509
8510 \family sans
8511 Abstract
8512 \end_layout
8513
8514 \begin_layout Itemize
8515
8516 \family sans
8517 Bibliography
8518 \end_layout
8519
8520 \begin_layout Itemize
8521
8522 \family sans
8523 Address
8524 \end_layout
8525
8526 \begin_layout Itemize
8527
8528 \family sans
8529 RightAddress
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Standard
8538 That is, all the major environments apart from the sectioning environments.
8539  Since foils are essentially self-contained sections, with a title and body,
8540  
8541 \family sans
8542 Foil\SpecialChar TeX
8543
8544 \family default
8545  provides specific commands for starting new foils and these are:
8546 \end_layout
8547
8548 \begin_layout Itemize
8549
8550 \family sans
8551 Foilhead
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family sans
8557 Rotatefoilhead
8558 \end_layout
8559
8560 \begin_layout Standard
8561 \SpecialChar LyX
8562  also provides slightly modified versions of these two environments called:
8563 \end_layout
8564
8565 \begin_layout Itemize
8566
8567 \family sans
8568 ShortFoilhead
8569 \end_layout
8570
8571 \begin_layout Itemize
8572
8573 \family sans
8574 ShortRotatefoilhead
8575 \end_layout
8576
8577 \begin_layout Standard
8578 and the differences will be explained in the next section.
8579 \end_layout
8580
8581 \begin_layout Standard
8582 Since foils are often used in presenting ideas or new theorems and such
8583  
8584 \family sans
8585 Foil\SpecialChar TeX
8586
8587 \family default
8588  also provides a comprehensive box of goodies for presenting them:
8589 \end_layout
8590
8591 \begin_layout Standard
8592 \begin_inset Flex Multiple Columns
8593 status open
8594
8595 \begin_layout Itemize
8596
8597 \family sans
8598 Theorem
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family sans
8604 Lemma
8605 \end_layout
8606
8607 \begin_layout Itemize
8608
8609 \family sans
8610 Corollary
8611 \end_layout
8612
8613 \begin_layout Itemize
8614
8615 \family sans
8616 Proposition
8617 \end_layout
8618
8619 \begin_layout Itemize
8620
8621 \family sans
8622 Definition
8623 \end_layout
8624
8625 \begin_layout Itemize
8626
8627 \family sans
8628 Proof
8629 \end_layout
8630
8631 \begin_layout Itemize
8632
8633 \family sans
8634 Theorem*
8635 \end_layout
8636
8637 \begin_layout Itemize
8638
8639 \family sans
8640 Lemma*
8641 \end_layout
8642
8643 \begin_layout Itemize
8644
8645 \family sans
8646 Corollary*
8647 \end_layout
8648
8649 \begin_layout Itemize
8650
8651 \family sans
8652 Proposition*
8653 \end_layout
8654
8655 \begin_layout Itemize
8656
8657 \family sans
8658 Definition*
8659 \end_layout
8660
8661 \end_inset
8662
8663
8664 \end_layout
8665
8666 \begin_layout Standard
8667 The starred versions are unnumbered while the unstarred versions are numbered.
8668  There are also two list environments added by \SpecialChar LyX
8669  and these are:
8670 \end_layout
8671
8672 \begin_layout Itemize
8673
8674 \family sans
8675 TickList
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \family sans
8681 CrossList
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \family sans
8687 Foil\SpecialChar TeX
8688
8689 \family default
8690  provides some powerful header and footer capabilities that are best set
8691  in the preamble although they may be set at any point in a document.
8692  If you want to change these settings in your document the best place to
8693  do so is at the very top of a foil, i.
8694 \begin_inset space \thinspace{}
8695 \end_inset
8696
8697 e.
8698 \emph on
8699
8700 \begin_inset space \space{}
8701 \end_inset
8702
8703
8704 \emph default
8705 straight after the foilhead.
8706 \end_layout
8707
8708 \begin_layout Standard
8709 For this purpose, the following command styles are provided [
8710 \shape smallcaps
8711 Martin Vermeer
8712 \shape default
8713 ]:
8714 \end_layout
8715
8716 \begin_layout Standard
8717 \begin_inset Flex Multiple Columns
8718 status open
8719
8720 \begin_layout Itemize
8721
8722 \family sans
8723 My
8724 \begin_inset space ~
8725 \end_inset
8726
8727 Logo
8728 \end_layout
8729
8730 \begin_layout Itemize
8731
8732 \family sans
8733 Restriction
8734 \end_layout
8735
8736 \begin_layout Itemize
8737
8738 \family sans
8739 Right
8740 \begin_inset space ~
8741 \end_inset
8742
8743 Footer
8744 \end_layout
8745
8746 \begin_layout Itemize
8747
8748 \family sans
8749 Right
8750 \begin_inset space ~
8751 \end_inset
8752
8753 Header
8754 \end_layout
8755
8756 \begin_layout Itemize
8757
8758 \family sans
8759 Left
8760 \begin_inset space ~
8761 \end_inset
8762
8763 Header
8764 \end_layout
8765
8766 \begin_deeper
8767 \begin_layout Plain Layout
8768 \begin_inset space ~
8769 \end_inset
8770
8771
8772 \end_layout
8773
8774 \end_deeper
8775 \end_inset
8776
8777
8778 \end_layout
8779
8780 \begin_layout Standard
8781 There are also a few commands provided by 
8782 \family sans
8783 Foil\SpecialChar TeX
8784
8785 \family default
8786  that aren't directly supported by \SpecialChar LyX
8787  but I'll tell you what they do and how
8788  to use them in section
8789 \begin_inset space ~
8790 \end_inset
8791
8792
8793 \begin_inset CommandInset ref
8794 LatexCommand ref
8795 reference "sec:unsuppfoils"
8796
8797 \end_inset
8798
8799 .
8800 \end_layout
8801
8802 \begin_layout Subsubsection
8803 Building a Set of Foils
8804 \end_layout
8805
8806 \begin_layout Standard
8807 This section will give a simple introduction to using the different environments
8808  to build a set of foils.
8809  If you want to see an example set of foils, take a look at the 
8810 \family typewriter
8811 Foils.lyx
8812 \family default
8813  file you find in \SpecialChar LyX
8814 's 
8815 \family typewriter
8816 examples
8817 \family default
8818  folder.
8819 \end_layout
8820
8821 \begin_layout Paragraph
8822 Give It a Title Page
8823 \end_layout
8824
8825 \begin_layout Standard
8826 Unlike other classes that provide 
8827 \family sans
8828 Title
8829 \family default
8830
8831 \family sans
8832 Author
8833 \family default
8834
8835 \family sans
8836 Date
8837 \family default
8838  and 
8839 \family sans
8840 Abstract
8841 \family default
8842  environments, 
8843 \family sans
8844 foils
8845 \family default
8846  creates the title on a page of its own.
8847  If you leave out the 
8848 \family sans
8849 Date
8850 \family default
8851  environment \SpecialChar LaTeX
8852  will substitute the current date (every time you regenerate
8853  the output).
8854 \end_layout
8855
8856 \begin_layout Paragraph
8857 Start a New Foil
8858 \end_layout
8859
8860 \begin_layout Standard
8861 As I mentioned earlier, there are four ways of starting a new foil.
8862  For portrait foils you should use 
8863 \family sans
8864 Foilhead
8865 \family default
8866  or 
8867 \family sans
8868 ShortFoilhead.
8869
8870 \family default
8871  The difference between these two environments is the amount of space between
8872  the title of the foil (the foilhead) and the body of the foil.
8873 \end_layout
8874
8875 \begin_layout Standard
8876 Landscape foils are generated using the 
8877 \family sans
8878 Rotatefoilhead
8879 \family default
8880  and 
8881 \family sans
8882 ShortRotatefoilhead
8883 \family default
8884  environments.
8885  Again the only difference is the spacing between foilhead and body.
8886  Both of the short versions have 0.5
8887 \begin_inset space ~
8888 \end_inset
8889
8890 inches less separation between the foilhead and the body.
8891  
8892 \end_layout
8893
8894 \begin_layout Standard
8895 One problem with the support for landscape foils is the requirement that
8896  you have to use the 
8897 \family typewriter
8898 dvips
8899 \family default
8900  driver to generate the PostScript output otherwise the foils won't be rotated.
8901  It is possible to get landscape foils even if you haven't got the 
8902 \family typewriter
8903 dvips
8904 \family default
8905  driver provided you can feed your foils sideways through your printer ;-)
8906 \end_layout
8907
8908 \begin_layout Paragraph
8909 Theorems, Lemmas, Proofs and more
8910 \end_layout
8911
8912 \begin_layout Standard
8913 You can't have two of the same type of these environments directly following
8914  each other.
8915  If you use a normal paragraph break, , you will just be extending the previous
8916  environment as if you had merged the two environments together.
8917  Rather than that, you need to insert a so-called separator.
8918  Please refer to the section entitled 
8919 \emph on
8920 Separate Nestings
8921 \emph default
8922  in the 
8923 \emph on
8924 User's Guide
8925 \emph default
8926 .
8927 \end_layout
8928
8929 \begin_layout Paragraph
8930 Lists
8931 \end_layout
8932
8933 \begin_layout Standard
8934 You get all the commonly supported list styles found in other classes as
8935  well as two new ones.
8936  I'll only describe the new ones here.
8937  If you want to find out more about the other list environments check out
8938  the 
8939 \emph on
8940 User's Guide.
8941
8942 \emph default
8943  If you intend to use itemized lists you might also want to read about the
8944  
8945 \family sans
8946 Itemize
8947 \begin_inset space ~
8948 \end_inset
8949
8950 Bullet
8951 \begin_inset space ~
8952 \end_inset
8953
8954 Selection
8955 \family default
8956  dialog described above in section
8957 \begin_inset space ~
8958 \end_inset
8959
8960
8961 \begin_inset CommandInset ref
8962 LatexCommand ref
8963 reference "sec:bullet"
8964
8965 \end_inset
8966
8967 .
8968 \end_layout
8969
8970 \begin_layout Standard
8971 The two new list styles, 
8972 \family sans
8973 TickList
8974 \family default
8975  and 
8976 \family sans
8977 CrossList
8978 \family default
8979 , are designed to make it easier for you to create lists of do's and don'ts
8980  or right and wrong by providing dedicated environments that use a tick
8981  or a cross as the label of the list.
8982  These lists are in fact dedicated variants of the 
8983 \family sans
8984 Itemize
8985 \family default
8986  environment.
8987  They do however require that you have the 
8988 \family typewriter
8989 psnfss
8990 \family default
8991  packages installed.
8992 \end_layout
8993
8994 \begin_layout Paragraph
8995 Figures and Tables
8996 \end_layout
8997
8998 \begin_layout Standard
8999
9000 \family sans
9001 Foil\SpecialChar TeX
9002
9003 \family default
9004  redefines the floating tables and figures so that they appear exactly where
9005  they are in the text rather than pushing them to the top of the page or
9006  to some user specified location.
9007  In fact if you change the float placement settings they are simply ignored.
9008 \end_layout
9009
9010 \begin_layout Paragraph
9011 Page Headers and Footers
9012 \begin_inset CommandInset label
9013 LatexCommand label
9014 name "sec:foilfoot"
9015
9016 \end_inset
9017
9018
9019 \end_layout
9020
9021 \begin_layout Standard
9022
9023 \family sans
9024 My
9025 \begin_inset space ~
9026 \end_inset
9027
9028 Logo
9029 \family default
9030  and 
9031 \family sans
9032 Restriction
9033 \family default
9034  are two commands used to control the left-footer text string.
9035  The first is meant to allow you to include a graphic logo on your foils
9036  and defaults to 
9037 \begin_inset Quotes eld
9038 \end_inset
9039
9040 -Typeset by 
9041 \family sans
9042 Foil\SpecialChar TeX
9043
9044 \family default
9045 -
9046 \begin_inset Quotes erd
9047 \end_inset
9048
9049 .
9050  While the second is meant to provide a classification for the audience,
9051  
9052 \emph on
9053 e.
9054 \begin_inset space \thinspace{}
9055 \end_inset
9056
9057 g.
9058 \emph default
9059
9060 \begin_inset space \space{}
9061 \end_inset
9062
9063 Confidential.
9064  It is empty by default.
9065 \end_layout
9066
9067 \begin_layout Standard
9068 The remaining page corners can be filled by 
9069 \family sans
9070 Right
9071 \begin_inset space ~
9072 \end_inset
9073
9074 Footer
9075 \family default
9076  (which defaults to page numbers), 
9077 \family sans
9078 Right
9079 \begin_inset space ~
9080 \end_inset
9081
9082 Header
9083 \family default
9084  (top right) and 
9085 \family sans
9086 Left
9087 \begin_inset space ~
9088 \end_inset
9089
9090 Header
9091 \family default
9092  (top left).
9093 \end_layout
9094
9095 \begin_layout Subsubsection
9096 Unsupported 
9097 \family sans
9098 Foil\SpecialChar TeX
9099
9100 \family default
9101  Goodies
9102 \begin_inset CommandInset label
9103 LatexCommand label
9104 name "sec:unsuppfoils"
9105
9106 \end_inset
9107
9108
9109 \end_layout
9110
9111 \begin_layout Standard
9112 All the commands mentioned below need to be set in a 
9113 \family sans
9114 \SpecialChar LaTeX
9115
9116 \family default
9117  environment or as 
9118 \family sans
9119 \SpecialChar TeX
9120
9121 \family default
9122  within another environment.
9123 \end_layout
9124
9125 \begin_layout Paragraph
9126 Lengths
9127 \end_layout
9128
9129 \begin_layout Standard
9130 All lengths are adjusted using the 
9131 \family typewriter
9132
9133 \backslash
9134 setlength{
9135 \family default
9136 \emph on
9137 lengthname
9138 \family typewriter
9139 \emph default
9140 }{
9141 \family default
9142 \emph on
9143 newlength
9144 \family typewriter
9145 \emph default
9146 }
9147 \family default
9148  command.
9149  Where 
9150 \emph on
9151 lengthname
9152 \emph default
9153  should be replaced by the name given to the length you want to change and
9154  
9155 \emph on
9156 newlength
9157 \emph default
9158  is the length value.
9159  All lengths should be specified in units of length such as inches (
9160 \family typewriter
9161 in
9162 \family default
9163 ), millimeters (
9164 \family typewriter
9165 mm
9166 \family default
9167 ) or points (
9168 \family typewriter
9169 pt
9170 \family default
9171 ) or relative to some document or font-based length such as 
9172 \family typewriter
9173
9174 \backslash
9175 textwidth
9176 \family default
9177 .
9178  
9179 \end_layout
9180
9181 \begin_layout Standard
9182 It's possible to change the spacing between a foilhead and the body of the
9183  foil by adjusting the length specified by 
9184 \family typewriter
9185
9186 \backslash
9187 foilheadskip
9188 \family default
9189 .
9190  For example, to make 
9191 \emph on
9192 all
9193 \emph default
9194  foilheads 0.5
9195 \begin_inset space \space{}
9196 \end_inset
9197
9198 in closer to their bodies put the following in the preamble: 
9199 \family typewriter
9200
9201 \backslash
9202 setlength{
9203 \backslash
9204 foilheadskip}{-0.5in}
9205 \end_layout
9206
9207 \begin_layout Standard
9208 The spacings around floats can be adjusted by setting these lengths:
9209 \end_layout
9210
9211 \begin_layout Labeling
9212 \labelwidthstring MMMMMMMMMMM
9213
9214 \family typewriter
9215
9216 \backslash
9217 abovefloatskip
9218 \family default
9219  Separation between the text and the top of the float
9220 \end_layout
9221
9222 \begin_layout Labeling
9223 \labelwidthstring MMMMMMMMMMM
9224
9225 \family typewriter
9226
9227 \backslash
9228 abovecaptionskip
9229 \family default
9230  Separation between the float and the caption
9231 \end_layout
9232
9233 \begin_layout Labeling
9234 \labelwidthstring MMMMMMMMMMM
9235
9236 \family typewriter
9237
9238 \backslash
9239 belowcaptionskip
9240 \family default
9241  Separation between the caption and the following text
9242 \end_layout
9243
9244 \begin_layout Labeling
9245 \labelwidthstring MMMMMMMMMMM
9246
9247 \family typewriter
9248
9249 \backslash
9250 captionwidth
9251 \family default
9252  You can make the captions narrower than the surrounding text by adjusting
9253  this length.
9254  Best done relative to 
9255 \family typewriter
9256
9257 \backslash
9258 textwidth
9259 \family default
9260 .
9261 \end_layout
9262
9263 \begin_layout Standard
9264 There are also several title page related lengths that you may find useful
9265  if you have a long title or several authors:
9266 \end_layout
9267
9268 \begin_layout Labeling
9269 \labelwidthstring MMMMMMMMMMM
9270
9271 \family typewriter
9272
9273 \backslash
9274 abovetitleskip
9275 \family default
9276  Separation from headers to 
9277 \family sans
9278 Title
9279 \end_layout
9280
9281 \begin_layout Labeling
9282 \labelwidthstring MMMMMMMMMMM
9283
9284 \family typewriter
9285
9286 \backslash
9287 titleauthorskip
9288 \family default
9289  between 
9290 \family sans
9291 Title
9292 \family default
9293  and 
9294 \family sans
9295 Author
9296 \family default
9297  environments
9298 \end_layout
9299
9300 \begin_layout Labeling
9301 \labelwidthstring MMMMMMMMMMM
9302
9303 \family typewriter
9304
9305 \backslash
9306 authorauthorskip
9307 \family default
9308  between multiple 
9309 \family sans
9310 Author
9311 \family default
9312  lines
9313 \end_layout
9314
9315 \begin_layout Labeling
9316 \labelwidthstring MMMMMMMMMMM
9317
9318 \family typewriter
9319
9320 \backslash
9321 authordateskip
9322 \family default
9323  between the 
9324 \family sans
9325 Author
9326 \family default
9327  and the 
9328 \family sans
9329 Date
9330 \end_layout
9331
9332 \begin_layout Labeling
9333 \labelwidthstring MMMMMMMMMMM
9334
9335 \family typewriter
9336
9337 \backslash
9338 dateabstractskip
9339 \family default
9340  between the 
9341 \family sans
9342 Date
9343 \family default
9344  and the 
9345 \family sans
9346 Abstract
9347 \end_layout
9348
9349 \begin_layout Standard
9350 The last length related command affects all the list environments.
9351  If you place 
9352 \family typewriter
9353
9354 \backslash
9355 zerolistvertdimens
9356 \family default
9357  
9358 \emph on
9359 inside
9360 \emph default
9361  a list environment then all the vertical spacing between the list items
9362  is removed.
9363  Note that this is a command not a length so it doesn't require 
9364 \family typewriter
9365
9366 \backslash
9367 setlength
9368 \family default
9369  like the stuff mentioned above.
9370 \end_layout
9371
9372 \begin_layout Paragraph
9373 Headers and Footers
9374 \end_layout
9375
9376 \begin_layout Standard
9377 The 
9378 \family typewriter
9379
9380 \backslash
9381 LogoOn
9382 \family default
9383  and 
9384 \family typewriter
9385
9386 \backslash
9387 LogoOff
9388 \family default
9389  commands control whether the logo in the 
9390 \family sans
9391 MyLogo
9392 \family default
9393  definition appear on a given page.
9394  If you put 
9395 \family typewriter
9396
9397 \backslash
9398 LogoOff
9399 \family default
9400  in the preamble then none of the foils will have the logo on them.
9401  If you don't want the logo on a particular page place the 
9402 \family typewriter
9403
9404 \backslash
9405 LogoOff
9406 \family default
9407  directly after the foilhead of that page and the 
9408 \family typewriter
9409
9410 \backslash
9411 LogoOn
9412 \family default
9413  directly after the next foilhead.
9414 \end_layout
9415
9416 \begin_layout Standard
9417 If you decide to use the 
9418 \family sans
9419 fancy
9420 \family default
9421  page style setting in the 
9422 \family sans
9423 Document
9424 \begin_inset space ~
9425 \end_inset
9426
9427 Layout
9428 \family default
9429  dialog you should probably add 
9430 \family typewriter
9431
9432 \backslash
9433 let
9434 \backslash
9435 headwidth
9436 \backslash
9437 textwidth
9438 \family default
9439  to your preamble so headers and footers on landscape pages are correctly
9440  placed when rotated.
9441  This is due to some clashes between the page layouts provided by the 
9442 \family sans
9443 fancyheadings
9444 \family default
9445  package and the 
9446 \family sans
9447 foils
9448 \family default
9449  class.
9450 \end_layout
9451
9452 \begin_layout Subsection
9453 Slides [aka 
9454 \noun on
9455 Sli\SpecialChar TeX
9456
9457 \noun default
9458 ]
9459 \begin_inset CommandInset label
9460 LatexCommand label
9461 name "sec:slitex"
9462
9463 \end_inset
9464
9465
9466 \end_layout
9467
9468 \begin_layout Standard
9469 by 
9470 \noun on
9471 John Weiss
9472 \noun default
9473  
9474 \end_layout
9475
9476 \begin_layout Subsubsection
9477 Introduction
9478 \end_layout
9479
9480 \begin_layout Standard
9481 This section describes how to use \SpecialChar LyX
9482  to make slides for overhead projectors.
9483  There are two document classes that can do this: the default slides class
9484  and the 
9485 \family sans
9486 Foil\SpecialChar TeX
9487
9488 \family default
9489  slides class.
9490  This section documents the former.
9491 \end_layout
9492
9493 \begin_layout Standard
9494 I'm going to say this again, nice and clear, so that there's no misunderstanding
9495 :
9496 \end_layout
9497
9498 \begin_layout Standard
9499 \begin_inset VSpace bigskip
9500 \end_inset
9501
9502
9503 \end_layout
9504
9505 \begin_layout Standard
9506 \align center
9507
9508 \size large
9509 This section documents the class 
9510 \begin_inset Quotes eld
9511 \end_inset
9512
9513
9514 \family sans
9515 slides (default)
9516 \family default
9517
9518 \begin_inset Quotes erd
9519 \end_inset
9520
9521  
9522 \emph on
9523 only.
9524 \end_layout
9525
9526 \begin_layout Standard
9527 \begin_inset VSpace bigskip
9528 \end_inset
9529
9530
9531 \end_layout
9532
9533 \begin_layout Standard
9534 If you're looking for the documentation for 
9535 \begin_inset Quotes eld
9536 \end_inset
9537
9538
9539 \family sans
9540 slides (Foil\SpecialChar TeX
9541 )
9542 \family default
9543
9544 \begin_inset Quotes erd
9545 \end_inset
9546
9547 , check out section
9548 \begin_inset space ~
9549 \end_inset
9550
9551
9552 \begin_inset CommandInset ref
9553 LatexCommand ref
9554 reference "sec:foiltex"
9555
9556 \end_inset
9557
9558 .
9559  The 
9560 \family sans
9561 foils
9562 \family default
9563  class [
9564 \begin_inset Quotes eld
9565 \end_inset
9566
9567
9568 \family sans
9569 slides (Foil\SpecialChar TeX
9570 )
9571 \family default
9572
9573 \begin_inset Quotes erd
9574 \end_inset
9575
9576 ] is actually somewhat better than the default 
9577 \family sans
9578 slides
9579 \family default
9580  class,
9581 \begin_inset Foot
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 \SpecialChar ldots
9586 or so I've been told repeatedly by its advocates.
9587  Having never used it, I have no idea if this claim is true or not.
9588 \end_layout
9589
9590 \end_inset
9591
9592  which this section documents.
9593 \end_layout
9594
9595 \begin_layout Standard
9596 This class is the \SpecialChar LaTeX2e
9597  improvement of the old 
9598 \noun on
9599 Sli\SpecialChar TeX
9600
9601 \noun default
9602  package.
9603  Every \SpecialChar LaTeX2e
9604  distribution includes this class [which I'll just refer to as 
9605 \begin_inset Quotes eld
9606 \end_inset
9607
9608
9609 \family sans
9610 slides
9611 \family default
9612
9613 \begin_inset Quotes erd
9614 \end_inset
9615
9616  from now on], so you're bound to have it.
9617  As I noted earlier, there are other classes, such as 
9618 \family sans
9619 foils
9620 \family default
9621 , which also produce slides for overhead projectors and do a better job
9622  at it.
9623  However, there are some things which 
9624 \family sans
9625 slides
9626 \family default
9627  can do which the others can't, such as generate overlays.
9628  Read on to learn more!
9629 \end_layout
9630
9631 \begin_layout Subsubsection
9632 Getting Started
9633 \begin_inset CommandInset label
9634 LatexCommand label
9635 name "sec:slidesetup"
9636
9637 \end_inset
9638
9639
9640 \end_layout
9641
9642 \begin_layout Standard
9643 Obviously, to use this document class, you need to select 
9644 \begin_inset Quotes eld
9645 \end_inset
9646
9647
9648 \family sans
9649 slides (default)
9650 \family default
9651
9652 \begin_inset Quotes erd
9653 \end_inset
9654
9655  from the class list in the 
9656 \family sans
9657 Document\SpecialChar menuseparator
9658 Settings
9659 \family default
9660  dialog.
9661  There are some other special things you should know about this class:
9662 \end_layout
9663
9664 \begin_layout Itemize
9665 Don't bother changing the options 
9666 \family sans
9667 Sides and Columns
9668 \family default
9669 .
9670  They're not supported by the 
9671 \family sans
9672 slides
9673 \family default
9674  class, anyways.
9675 \end_layout
9676
9677 \begin_layout Itemize
9678 The option 
9679 \family sans
9680 Page
9681 \begin_inset space ~
9682 \end_inset
9683
9684 style
9685 \family default
9686  behaves a bit differently for this class.
9687  The possible choices and what they do are as follows:
9688 \end_layout
9689
9690 \begin_deeper
9691 \begin_layout Description
9692
9693 \family sans
9694 plain
9695 \family default
9696  The final output contains page numbers in the lower right corner.
9697 \end_layout
9698
9699 \begin_layout Description
9700
9701 \family sans
9702 headings
9703 \family default
9704  Like 
9705 \family sans
9706 plain
9707 \family default
9708 , but also prints out any time markers you've put in.
9709  This is the default.
9710 \end_layout
9711
9712 \begin_layout Description
9713
9714 \family sans
9715 empty
9716 \family default
9717  The final output contains no page numbers, time markers, or alignment markers.
9718 \end_layout
9719
9720 \end_deeper
9721 \begin_layout Itemize
9722 The 
9723 \family sans
9724 slides
9725 \family default
9726  class has an extra option: 
9727 \family typewriter
9728 clock
9729 \family default
9730 .
9731  To use it, put 
9732 \begin_inset Quotes eld
9733 \end_inset
9734
9735
9736 \family typewriter
9737 clock
9738 \family default
9739
9740 \begin_inset Quotes erd
9741 \end_inset
9742
9743  in the extra class options.
9744 \end_layout
9745
9746 \begin_deeper
9747 \begin_layout Standard
9748 Using this options allows you to add time markers to 
9749 \family sans
9750 Note
9751 \family default
9752 s.
9753  See section
9754 \begin_inset space ~
9755 \end_inset
9756
9757
9758 \begin_inset CommandInset ref
9759 LatexCommand ref
9760 reference "sec:slideNote"
9761
9762 \end_inset
9763
9764  for more details.
9765 \end_layout
9766
9767 \end_deeper
9768 \begin_layout Standard
9769 You can also use the template file 
9770 \begin_inset Quotes eld
9771 \end_inset
9772
9773
9774 \family typewriter
9775 slides.lyx
9776 \family default
9777
9778 \begin_inset Quotes erd
9779 \end_inset
9780
9781  to automatically set up a document to use the 
9782 \family sans
9783 slides
9784 \family default
9785  class [using 
9786 \family sans
9787 File\SpecialChar menuseparator
9788 New
9789 \begin_inset space ~
9790 \end_inset
9791
9792 from
9793 \begin_inset space ~
9794 \end_inset
9795
9796 Template
9797 \family default
9798  to open your new document].
9799  The template file also contains some examples of the special paragraph
9800  environments used by this class.
9801  I'll describe those next.
9802 \end_layout
9803
9804 \begin_layout Subsubsection
9805 Paragraph Environments
9806 \end_layout
9807
9808 \begin_layout Paragraph
9809 Supported Environments
9810 \end_layout
9811
9812 \begin_layout Standard
9813 The first thing you'll notice when you start up a new 
9814 \family sans
9815 slides
9816 \family default
9817  document is the font size and type: it's the equivalent of the size 
9818 \begin_inset Quotes eld
9819 \end_inset
9820
9821
9822 \family sans
9823 Largest
9824 \family default
9825
9826 \begin_inset Quotes erd
9827 \end_inset
9828
9829  in the 
9830 \family sans
9831 Sans
9832 \begin_inset space ~
9833 \end_inset
9834
9835 Serif
9836 \family default
9837  font.
9838  This is also what's used in the output.
9839  Think of this as a 
9840 \begin_inset Quotes eld
9841 \end_inset
9842
9843 visual cue
9844 \begin_inset Quotes erd
9845 \end_inset
9846
9847  to remind you that this is a slide.
9848  Your final slides will use a larger font; ergo, you'll have less space.
9849  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9850 \end_layout
9851
9852 \begin_layout Standard
9853 The next thing that becomes obvious is the changes to the paragraph environment
9854  pull-down box [at the far-left end of the toolbar].
9855  Most of the paragraph environments you're used to seeing are missing.
9856  There are also five new ones.
9857  That's because the 
9858 \family sans
9859 slides
9860 \family default
9861  class itself only supports certain paragraph environments:
9862 \end_layout
9863
9864 \begin_layout Itemize
9865
9866 \family sans
9867 Standard
9868 \end_layout
9869
9870 \begin_layout Itemize
9871
9872 \family sans
9873 Itemize
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family sans
9879 Enumerate
9880 \end_layout
9881
9882 \begin_layout Itemize
9883
9884 \family sans
9885 Description
9886 \end_layout
9887
9888 \begin_layout Itemize
9889
9890 \family sans
9891 List
9892 \end_layout
9893
9894 \begin_layout Itemize
9895
9896 \family sans
9897 Quotation
9898 \end_layout
9899
9900 \begin_layout Itemize
9901
9902 \family sans
9903 Quote
9904 \end_layout
9905
9906 \begin_layout Itemize
9907
9908 \family sans
9909 Verse
9910 \end_layout
9911
9912 \begin_layout Itemize
9913
9914 \family sans
9915 Caption
9916 \end_layout
9917
9918 \begin_layout Itemize
9919
9920 \family sans
9921 \SpecialChar LyX
9922 -Code
9923 \end_layout
9924
9925 \begin_layout Standard
9926 All of the other standard environments, including the section-heading environmen
9927 ts, aren't used in the 
9928 \family sans
9929 slides
9930 \family default
9931  class.
9932 \end_layout
9933
9934 \begin_layout Standard
9935 On the other hand, you'll notice the following new environments:
9936 \end_layout
9937
9938 \begin_layout Itemize
9939
9940 \family sans
9941 Slide
9942 \end_layout
9943
9944 \begin_layout Itemize
9945
9946 \family sans
9947 Overlay
9948 \end_layout
9949
9950 \begin_layout Itemize
9951
9952 \family sans
9953 Note
9954 \end_layout
9955
9956 \begin_layout Itemize
9957
9958 \family sans
9959 InvisibleText
9960 \end_layout
9961
9962 \begin_layout Itemize
9963
9964 \family sans
9965 VisibleText
9966 \end_layout
9967
9968 \begin_layout Standard
9969 These five are kind of quirky, due to a 
9970 \begin_inset Quotes eld
9971 \end_inset
9972
9973 feature
9974 \begin_inset Quotes erd
9975 \end_inset
9976
9977  in \SpecialChar LyX
9978 .
9979  You see, \SpecialChar LyX
9980  doesn't permit you to nest any other paragraph environment into
9981  an empty environment.
9982  Now, that's fine and dandy, but it means that you wouldn't be able to start
9983  a slide with anything except plain text.
9984  To deal with this, I've performed a little 
9985 \begin_inset Quotes eld
9986 \end_inset
9987
9988 \SpecialChar LaTeX
9989  magic.
9990 \begin_inset Quotes erd
9991 \end_inset
9992
9993  
9994 \end_layout
9995
9996 \begin_layout Paragraph
9997 Quirks of the New Environments
9998 \begin_inset CommandInset label
9999 LatexCommand label
10000 name "sec:slideQuirk"
10001
10002 \end_inset
10003
10004
10005 \end_layout
10006
10007 \begin_layout Standard
10008 All five of the new paragraph environments are somewhat quirky due to inherent
10009  limitiations in the current version of \SpecialChar LyX
10010 .
10011  As I just mentioned, \SpecialChar LyX
10012  forbids environments that begin with another environment.
10013  To get around this, the 
10014 \family sans
10015 Slide
10016 \family default
10017  environment isn't a paragraph environment as described in the 
10018 \emph on
10019 User's Guide
10020 \emph default
10021 .
10022  
10023 \end_layout
10024
10025 \begin_layout Standard
10026 You should consider 
10027 \family sans
10028 Slide
10029 \family default
10030
10031 \family sans
10032 Overlay
10033 \family default
10034 , and 
10035 \family sans
10036 Note
10037 \family default
10038  to be 
10039 \begin_inset Quotes eld
10040 \end_inset
10041
10042 pseudo-environments.
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046  They look like a section heading or a 
10047 \begin_inset Quotes eld
10048 \end_inset
10049
10050
10051 \family sans
10052 Caption
10053 \family default
10054 ,
10055 \begin_inset Quotes erd
10056 \end_inset
10057
10058  but really begin a [and, if necessary, end the previous] paragraph environment.
10059  Likewise, treat 
10060 \family sans
10061 InvisibleText
10062 \family default
10063  and 
10064 \family sans
10065 VisibleText
10066 \family default
10067  as 
10068 \begin_inset Quotes eld
10069 \end_inset
10070
10071 pseudo-commands.
10072 \begin_inset Quotes erd
10073 \end_inset
10074
10075  These two perform some action.
10076 \end_layout
10077
10078 \begin_layout Standard
10079 A common feature of all five environments, 
10080 \family sans
10081 Slide
10082 \family default
10083
10084 \family sans
10085 Overlay
10086 \family default
10087
10088 \family sans
10089 Note
10090 \family default
10091
10092 \family sans
10093 InvisibleText
10094 \family default
10095  and 
10096 \family sans
10097 VisibleText
10098 \family default
10099 , is a rather long-ish label.
10100  The text following this label — ordinarily the contents of the paragraph
10101  environment — is utterly irrelevant for 
10102 \family sans
10103 Slide
10104 \family default
10105
10106 \family sans
10107 Overlay
10108 \family default
10109
10110 \family sans
10111 Note
10112 \family default
10113
10114 \family sans
10115 InvisibleText
10116 \family default
10117  and 
10118 \family sans
10119 VisibleText
10120 \family default
10121 .
10122  \SpecialChar LyX
10123  completely ignores it.
10124  In fact, you can leave these five environments completely empty.
10125  
10126 \end_layout
10127
10128 \begin_layout Standard
10129 While you don't 
10130 \emph on
10131 have
10132 \emph default
10133  to put any text after the rather long-ish label, you might want to.
10134  This could be a short description of the contents of the 
10135 \family sans
10136 Slide
10137 \family default
10138 , for example.
10139  In that case, enter your descriptive comment and hit 
10140 \family sans
10141 Return
10142 \family default
10143  as you normally would.
10144 \end_layout
10145
10146 \begin_layout Standard
10147 If, on the other hand, you don't want to enter any descriptive text, you'll
10148  hit another \SpecialChar LyX
10149  quirk.
10150  \SpecialChar LyX
10151 , like nature, abhors a vacuum, and will not let you start a new paragraph
10152  environment until you put something in the old one.
10153  So, do this:
10154 \end_layout
10155
10156 \begin_layout Itemize
10157 Start entering the text that will 
10158 \emph on
10159 follow
10160 \emph default
10161  the new 
10162 \family sans
10163 Slide
10164 \family default
10165
10166 \family sans
10167 Overlay
10168 \family default
10169
10170 \family sans
10171 Note
10172 \family default
10173
10174 \family sans
10175 InvisibleText
10176 \family default
10177  or 
10178 \family sans
10179 VisibleText
10180 \family default
10181 .
10182  
10183 \end_layout
10184
10185 \begin_layout Itemize
10186 Now move to the beginning of that paragraph.
10187  
10188 \end_layout
10189
10190 \begin_layout Itemize
10191 Next, hit 
10192 \family sans
10193 Return
10194 \family default
10195 .
10196  
10197 \end_layout
10198
10199 \begin_layout Itemize
10200 Finally, change this new, empty paragraph to a 
10201 \family sans
10202 Slide
10203 \family default
10204
10205 \family sans
10206 Overlay
10207 \family default
10208
10209 \family sans
10210 Note
10211 \family default
10212
10213 \family sans
10214 InvisibleText
10215 \family default
10216  or 
10217 \family sans
10218 VisibleText
10219 \family default
10220 .
10221  
10222 \end_layout
10223
10224 \begin_layout Standard
10225 Some future version of \SpecialChar LyX
10226  will, hopefully, resolve this quirkiness\SpecialChar ldots
10227
10228 \end_layout
10229
10230 \begin_layout Subsubsection
10231 Making a Presentation with 
10232 \family sans
10233 Slide
10234 \family default
10235
10236 \family sans
10237 Overlay
10238 \family default
10239  and 
10240 \family sans
10241 Note
10242 \end_layout
10243
10244 \begin_layout Paragraph
10245 Using the 
10246 \family sans
10247 Slide
10248 \family default
10249  Environment
10250 \end_layout
10251
10252 \begin_layout Standard
10253 If you're expecting this section to teach you how to actually make a presentatio
10254 n, you'll be sorely disappointed.
10255  Naturally, I'll describe all of the ways the 
10256 \family sans
10257 slides
10258 \family default
10259  class can assist you in preparing the materials for a presentation.
10260  Filling in the contents, however, is up to you.
10261  [Then again, that 
10262 \emph on
10263 is
10264 \emph default
10265  the \SpecialChar LyX
10266  philosophy.]
10267 \end_layout
10268
10269 \begin_layout Standard
10270 Choosing the 
10271 \family sans
10272 Slide
10273 \family default
10274  environment [in the manner described in section
10275 \begin_inset space ~
10276 \end_inset
10277
10278
10279 \begin_inset CommandInset ref
10280 LatexCommand ref
10281 reference "sec:slideQuirk"
10282
10283 \end_inset
10284
10285 ] tells \SpecialChar LyX
10286  to begin a new slide [duh].
10287  The label for this environment/
10288 \begin_inset Quotes erd
10289 \end_inset
10290
10291 pseudo-command
10292 \begin_inset Quotes erd
10293 \end_inset
10294
10295  is an 
10296 \begin_inset Quotes eld
10297 \end_inset
10298
10299 ASCII line,
10300 \begin_inset Quotes erd
10301 \end_inset
10302
10303  in cool blue, followed by the label, 
10304 \begin_inset Quotes eld
10305 \end_inset
10306
10307 NewSlide:
10308 \begin_inset Quotes erd
10309 \end_inset
10310
10311 .
10312  Any text or paragraph environments that follow this one go on the new slide.
10313  It's that simple.
10314 \end_layout
10315
10316 \begin_layout Standard
10317 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10318
10319  (this can be specified in the 
10320 \family sans
10321 Paragraph Layout
10322 \family default
10323  dialog).
10324  In fact, you'll want to, once you finish entering the contents of one slide.
10325  If you've entered more text than can physically fit on a slide, the extra
10326  overflows onto a new slide.
10327  I don't recommend doing this, however, since the overflow slide won't have
10328  any page number on it.
10329  Furthermore, it may interfere with any 
10330 \family sans
10331 Overlay
10332 \family default
10333  you've made to accompany the oversized 
10334 \family sans
10335 Slide
10336 \family default
10337 .
10338 \end_layout
10339
10340 \begin_layout Standard
10341 The 
10342 \family sans
10343 Overlay
10344 \family default
10345  and 
10346 \family sans
10347 Note
10348 \family default
10349  environments work the same way as the 
10350 \family sans
10351 Slide
10352 \family default
10353  environment.
10354  They both create an 
10355 \begin_inset Quotes eld
10356 \end_inset
10357
10358 ASCII line
10359 \begin_inset Quotes erd
10360 \end_inset
10361
10362  followed by a label [
10363 \begin_inset Quotes eld
10364 \end_inset
10365
10366 NewOverlay:
10367 \begin_inset Quotes erd
10368 \end_inset
10369
10370  and 
10371 \begin_inset Quotes eld
10372 \end_inset
10373
10374 NewNote:
10375 \begin_inset Quotes erd
10376 \end_inset
10377
10378 , respectively].
10379  The color is a stunning magenta instead of blue, and the 
10380 \begin_inset Quotes eld
10381 \end_inset
10382
10383 ASCII line
10384 \begin_inset Quotes erd
10385 \end_inset
10386
10387  will look different, in style and in length.
10388  The label fonts of all three also differ from one another.
10389 \end_layout
10390
10391 \begin_layout Standard
10392 As with a 
10393 \family sans
10394 Slide
10395 \family default
10396 , if the contents of a 
10397 \family sans
10398 Note
10399 \family default
10400  or 
10401 \family sans
10402 Overlay
10403 \family default
10404  exceed the physical size of a slide or sheet of paper, the extra will overflow
10405  onto a new sheet.
10406  Again, you should avoid this.
10407  It defeats the whole purpose of 
10408 \family sans
10409 Note
10410 \family default
10411 s and 
10412 \family sans
10413 Overlay
10414 \family default
10415 s.
10416 \end_layout
10417
10418 \begin_layout Paragraph
10419 Using 
10420 \family sans
10421 Overlay
10422 \family default
10423  with 
10424 \family sans
10425 Slide
10426 \end_layout
10427
10428 \begin_layout Standard
10429 The idea behind an 
10430 \family sans
10431 Overlay
10432 \family default
10433  is a slide that sits atop another slide.
10434  Perhaps you wish to discuss a figure on the main 
10435 \family sans
10436 Slide
10437 \family default
10438  before displaying the text associated with it.
10439  One way to accomplish this is tape a flap of dark paper over the part of
10440  the 
10441 \family sans
10442 Slide
10443 \family default
10444  you want to display later.
10445  This method fails, however, if you wish to overlap one graph with another,
10446  for example.
10447  You would then have to fumble while speaking to align the two separate,
10448  overlapping 
10449 \family sans
10450 Slide
10451 \family default
10452 s to align the two graphs.
10453  The use of an 
10454 \family sans
10455 Overlay
10456 \family default
10457  environment in both cases makes life much easier.
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Each 
10462 \family sans
10463 Overlay
10464 \family default
10465  receives the page number of its 
10466 \begin_inset Quotes eld
10467 \end_inset
10468
10469 parent
10470 \begin_inset Quotes erd
10471 \end_inset
10472
10473  
10474 \family sans
10475 Slide
10476 \family default
10477 , appended by 
10478 \begin_inset Quotes eld
10479 \end_inset
10480
10481
10482 \family typewriter
10483 -a
10484 \family default
10485
10486 \begin_inset Quotes erd
10487 \end_inset
10488
10489 .
10490 \begin_inset Foot
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 Presumably, mutliple 
10495 \family sans
10496 Overlay
10497 \family default
10498 s would have 
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502
10503 \family typewriter
10504 -a
10505 \family default
10506
10507 \begin_inset Quotes erd
10508 \end_inset
10509
10510
10511 \begin_inset Quotes eld
10512 \end_inset
10513
10514
10515 \family typewriter
10516 -b
10517 \family default
10518
10519 \begin_inset Quotes erd
10520 \end_inset
10521
10522
10523 \begin_inset Quotes eld
10524 \end_inset
10525
10526
10527 \family typewriter
10528 -c
10529 \family default
10530
10531 \begin_inset Quotes erd
10532 \end_inset
10533
10534 , etc.
10535 \begin_inset space ~
10536 \end_inset
10537
10538 appended to the page number of the parent 
10539 \family sans
10540 Slide
10541 \family default
10542 .
10543  
10544 \end_layout
10545
10546 \end_inset
10547
10548  Clearly, you want the contents of both the 
10549 \family sans
10550 Slide
10551 \family default
10552  and the 
10553 \family sans
10554 Overlay
10555 \family default
10556  to each fit on a single physical slide! You should probably consider an
10557  
10558 \family sans
10559 Overlay
10560 \family default
10561  as 
10562 \begin_inset Quotes eld
10563 \end_inset
10564
10565 part of
10566 \begin_inset Quotes erd
10567 \end_inset
10568
10569  a 
10570 \family sans
10571 Slide
10572 \family default
10573 .
10574  Indeed, the \SpecialChar LyX
10575  
10576 \family sans
10577 slides
10578 \family default
10579  class provides a visual cue for this: the label at the start of an 
10580 \family sans
10581 Overlay
10582 \family default
10583  is shorter than that at the start of a 
10584 \family sans
10585 Slide
10586 \family default
10587 .
10588  Lastly, when you generate printable output, you'll find alignment markers
10589  in all four corners of both the 
10590 \family sans
10591 Overlay
10592 \family default
10593  page and its parent 
10594 \family sans
10595 Slide
10596 \family default
10597 .
10598  These will assist you in lining up the two physical slides.
10599 \end_layout
10600
10601 \begin_layout Standard
10602 The major problem in overlaying two slides is aligning the contents of the
10603  two transparencies.
10604  How much space should you leave for that graph on the second slide? Worse
10605  still, what if you want a graph and a sentence on second slide, but there
10606  is text on the main transparency that goes in between them? You could try
10607  and insert vertical space of the right size.
10608  The better way is to use 
10609 \family sans
10610 InvisibleText
10611 \family default
10612  and 
10613 \family sans
10614 VisibleText
10615 \family default
10616 .
10617 \end_layout
10618
10619 \begin_layout Standard
10620 As their names imply, 
10621 \family sans
10622 InvisibleText
10623 \family default
10624  and 
10625 \family sans
10626 VisibleText
10627 \family default
10628  are two command-like paragraph environments that make all subsequent text
10629  invisible and visible, respectively.
10630  Note from section
10631 \begin_inset space ~
10632 \end_inset
10633
10634
10635 \begin_inset CommandInset ref
10636 LatexCommand ref
10637 reference "sec:slideQuirk"
10638
10639 \end_inset
10640
10641  that you don't place anything 
10642 \emph on
10643 into
10644 \emph default
10645  these two environments, however.
10646  When you create an 
10647 \family sans
10648 InvisibleText
10649 \family default
10650 , it inserts a centered, sky-blue label into the page reading 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654 <Invisible Text Follows>
10655 \begin_inset Quotes erd
10656 \end_inset
10657
10658 .
10659  For paragraphs following this label, the parts of the 
10660 \family sans
10661 Slide
10662 \family default
10663  [or 
10664 \family sans
10665 Overlay
10666 \family default
10667 ; it doesn't matter which] where they would be contain instead blank space.
10668  
10669 \end_layout
10670
10671 \begin_layout Standard
10672 For 
10673 \family sans
10674 VisibleText
10675 \family default
10676 , the corresponding centered label is 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680 <Visible Text Follows>
10681 \begin_inset Quotes erd
10682 \end_inset
10683
10684  in blazing green.
10685  Paragraphs following this label behave normally.
10686  Note that the beginning of a new 
10687 \family sans
10688 Slide
10689 \family default
10690
10691 \family sans
10692 Overlay
10693 \family default
10694 , or 
10695 \family sans
10696 Note
10697 \family default
10698  automatically shuts off an 
10699 \family sans
10700 InvisibleText
10701 \family default
10702 .
10703  It's therefore not necessary to use 
10704 \family sans
10705 VisibleText
10706 \family default
10707  at the end of a 
10708 \family sans
10709 Slide
10710 \family default
10711 .
10712 \end_layout
10713
10714 \begin_layout Standard
10715 By now, it should be obvious how to create overlay transparencies using
10716  the proper combination of 
10717 \family sans
10718 InvisibleText
10719 \family default
10720  and 
10721 \family sans
10722 VisibleText
10723 \family default
10724  on a 
10725 \family sans
10726 Slide
10727 \family default
10728  and 
10729 \family sans
10730 Overlay
10731 \family default
10732 :
10733 \end_layout
10734
10735 \begin_layout Enumerate
10736 Create a 
10737 \family sans
10738 Slide
10739 \family default
10740 , including everything that will appear on it, whether on the main slide
10741  or on the 
10742 \family sans
10743 Overlay
10744 \family default
10745 .
10746 \end_layout
10747
10748 \begin_layout Enumerate
10749 Before each figure or paragraph that will appear only on the 
10750 \family sans
10751 Overlay
10752 \family default
10753 , insert an 
10754 \family sans
10755 InvisibleText
10756 \family default
10757  environment.
10758  If necessary, insert a 
10759 \family sans
10760 VisibleText
10761 \family default
10762  environment after the 
10763 \family sans
10764 Overlay
10765 \family default
10766 -only text.
10767 \end_layout
10768
10769 \begin_layout Enumerate
10770 Start an 
10771 \family sans
10772 Overlay
10773 \family default
10774  immediately following the 
10775 \family sans
10776 Slide
10777 \family default
10778 .
10779 \end_layout
10780
10781 \begin_layout Enumerate
10782 Copy the contents of this 
10783 \family sans
10784 Slide
10785 \family default
10786  into the 
10787 \family sans
10788 Overlay
10789 \family default
10790 .
10791 \end_layout
10792
10793 \begin_layout Enumerate
10794 Within the 
10795 \family sans
10796 Overlay
10797 \family default
10798 , change all of the 
10799 \family sans
10800 InvisibleText
10801 \family default
10802  lines to 
10803 \family sans
10804 VisibleText
10805 \family default
10806  and vice-versa.
10807 \end_layout
10808
10809 \begin_layout Standard
10810 That's it.
10811  You've just made an 
10812 \family sans
10813 Overlay
10814 \family default
10815 .
10816 \end_layout
10817
10818 \begin_layout Standard
10819 There's one problem with the way I've designed the \SpecialChar LyX
10820  
10821 \family sans
10822 slides
10823 \family default
10824  class: you can't make text in the middle of a paragraph invisible, nor
10825  make text in the middle of an invisible paragraph visible again.
10826  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
10827  codes.
10828 \begin_inset Foot
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 The commands of interest are: 
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family typewriter
10838 {
10839 \backslash
10840 invisible \SpecialChar ldots
10841  }
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family typewriter
10847 {
10848 \backslash
10849 visible \SpecialChar ldots
10850  }
10851 \end_layout
10852
10853 \begin_layout Plain Layout
10854 \SpecialChar ldots
10855 and need to be marked as \SpecialChar TeX
10856 .
10857  The text whose 
10858 \begin_inset Quotes eld
10859 \end_inset
10860
10861 visibility
10862 \begin_inset Quotes erd
10863 \end_inset
10864
10865  you wish to change goes in between the brackets [and after the 
10866 \family typewriter
10867
10868 \backslash
10869 invisible
10870 \family default
10871  or 
10872 \family typewriter
10873
10874 \backslash
10875 visible
10876 \family default
10877  command].
10878  If you don't know how to mark text as \SpecialChar TeX
10879 , see the appropriate section of
10880  the 
10881 \emph on
10882 User's Guide
10883 \emph default
10884 .
10885 \end_layout
10886
10887 \end_inset
10888
10889
10890 \end_layout
10891
10892 \begin_layout Paragraph
10893 Using 
10894 \family sans
10895 Note
10896 \family default
10897  with 
10898 \family sans
10899 Slide
10900 \family default
10901
10902 \begin_inset CommandInset label
10903 LatexCommand label
10904 name "sec:slideNote"
10905
10906 \end_inset
10907
10908
10909 \end_layout
10910
10911 \begin_layout Standard
10912 Like an 
10913 \family sans
10914 Overlay
10915 \family default
10916 , a 
10917 \family sans
10918 Note
10919 \family default
10920  is associated with a 
10921 \begin_inset Quotes eld
10922 \end_inset
10923
10924 parent
10925 \begin_inset Quotes erd
10926 \end_inset
10927
10928  
10929 \family sans
10930 Slide
10931 \family default
10932 .
10933  Here, too, the \SpecialChar LyX
10934  
10935 \family sans
10936 slides
10937 \family default
10938  class provides visual cues.
10939  The label for a 
10940 \family sans
10941 Note
10942 \family default
10943  is shorter than that of a 
10944 \family sans
10945 Slide
10946 \family default
10947  [yet longer than that of an 
10948 \family sans
10949 Overlay
10950 \family default
10951 ] and, like the label of an 
10952 \family sans
10953 Overlay
10954 \family default
10955  is shockingly magenta.
10956  Additionally, the printed 
10957 \family sans
10958 Note
10959 \family default
10960  has the page number of its 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964 parent
10965 \begin_inset Quotes erd
10966 \end_inset
10967
10968  
10969 \family sans
10970 Slide
10971 \family default
10972 , appended by 
10973 \begin_inset Quotes eld
10974 \end_inset
10975
10976
10977 \family typewriter
10978 -
10979 \family default
10980 1
10981 \begin_inset Quotes erd
10982 \end_inset
10983
10984
10985 \begin_inset Quotes eld
10986 \end_inset
10987
10988
10989 \family typewriter
10990 -
10991 \family default
10992 2
10993 \begin_inset Quotes erd
10994 \end_inset
10995
10996
10997 \begin_inset Quotes eld
10998 \end_inset
10999
11000
11001 \family typewriter
11002 -
11003 \family default
11004 3
11005 \begin_inset Quotes erd
11006 \end_inset
11007
11008 , etc.
11009  You can have multiple 
11010 \family sans
11011 Note
11012 \family default
11013 s associated with a single 
11014 \family sans
11015 Slide
11016 \family default
11017 , and, as with 
11018 \family sans
11019 Slide
11020 \family default
11021  and 
11022 \family sans
11023 Overlay
11024 \family default
11025 , you'll probably want to break up long 
11026 \family sans
11027 Note
11028 \family default
11029 s so that they fit on a single sheet of paper.
11030 \end_layout
11031
11032 \begin_layout Standard
11033 The purpose of a 
11034 \family sans
11035 Note
11036 \family default
11037  is obvious: it contains anything additional you might want to say about
11038  a 
11039 \family sans
11040 Slide
11041 \family default
11042 .
11043  It could also be used as a sheet of reminders for a particular 
11044 \family sans
11045 Slide
11046 \family default
11047 .
11048  In the case of the latter, you might want to make use of time markers.
11049  Currently, the \SpecialChar LyX
11050  
11051 \family sans
11052 slides
11053 \family default
11054  class has no 
11055 \begin_inset Quotes eld
11056 \end_inset
11057
11058 native
11059 \begin_inset Quotes erd
11060 \end_inset
11061
11062  support for time markers, a 
11063 \noun on
11064 Sli\SpecialChar TeX
11065
11066 \noun default
11067  feature.
11068  So, you'll have to resort to using the \SpecialChar LaTeX
11069  codes.
11070 \end_layout
11071
11072 \begin_layout Standard
11073 To use time markers, you'll need to specify the extra class option 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077
11078 \family typewriter
11079 clock
11080 \family default
11081
11082 \begin_inset Quotes erd
11083 \end_inset
11084
11085  [see section
11086 \begin_inset space ~
11087 \end_inset
11088
11089
11090 \begin_inset CommandInset ref
11091 LatexCommand ref
11092 reference "sec:slidesetup"
11093
11094 \end_inset
11095
11096 ].
11097  This option turns on timing marks, which will appear in the lower-left-hand
11098  corner of every 
11099 \family sans
11100 Note
11101 \family default
11102  you generate.
11103  To set what appears in the time marker, you use the \SpecialChar LaTeX
11104  commands 
11105 \begin_inset Quotes eld
11106 \end_inset
11107
11108
11109 \family typewriter
11110
11111 \backslash
11112 settime{}
11113 \family default
11114
11115 \begin_inset Quotes erd
11116 \end_inset
11117
11118  and 
11119 \begin_inset Quotes eld
11120 \end_inset
11121
11122
11123 \family typewriter
11124
11125 \backslash
11126 addtime{}
11127 \family default
11128
11129 \begin_inset Quotes erd
11130 \end_inset
11131
11132 .
11133  The arguments of both commands are time measured in seconds.
11134  
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138
11139 \family typewriter
11140
11141 \backslash
11142 settime{}
11143 \family default
11144
11145 \begin_inset Quotes erd
11146 \end_inset
11147
11148  sets the time marker to a given time.
11149  
11150 \begin_inset Quotes eld
11151 \end_inset
11152
11153
11154 \family typewriter
11155
11156 \backslash
11157 addtime{}
11158 \family default
11159
11160 \begin_inset Quotes erd
11161 \end_inset
11162
11163  increments the time marker by the specified amount.
11164  Using time markers and 
11165 \family sans
11166 Note
11167 \family default
11168 s in this fashion, you can remind yourself how much time to spend on a particula
11169
11170 \family sans
11171 Slide
11172 \family default
11173 .
11174 \end_layout
11175
11176 \begin_layout Standard
11177 There's one last feature to describe.
11178  Clearly, you'd like to print out all of your 
11179 \family sans
11180 Slide
11181 \family default
11182 s and 
11183 \family sans
11184 Overlay
11185 \family default
11186 s on transparencies while printing all of your 
11187 \family sans
11188 Note
11189 \family default
11190 s on plain paper.
11191  However, a 
11192 \family sans
11193 Note
11194 \family default
11195  
11196 \emph on
11197 must
11198 \emph default
11199  follow the 
11200 \family sans
11201 Slide
11202 \family default
11203  with which it is associated.
11204  What's a person to do?
11205 \end_layout
11206
11207 \begin_layout Standard
11208 Luckily, there are two \SpecialChar LaTeX
11209  commands that allow you to select what to print
11210  out.
11211  Both must be placed into the preamble of your document.
11212  The command 
11213 \begin_inset Quotes eld
11214 \end_inset
11215
11216
11217 \family typewriter
11218
11219 \backslash
11220 onlyslides{
11221 \backslash
11222 slides}
11223 \family default
11224
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228  will cause the output to contain only the 
11229 \family sans
11230 Slide
11231 \family default
11232 s and 
11233 \family sans
11234 Overlay
11235 \family default
11236 s.
11237  Correspondingly, the command 
11238 \begin_inset Quotes eld
11239 \end_inset
11240
11241
11242 \family typewriter
11243
11244 \backslash
11245 onlynotes{
11246 \backslash
11247 notes}
11248 \family default
11249
11250 \begin_inset Quotes erd
11251 \end_inset
11252
11253  prevents the output of anything but 
11254 \family sans
11255 Note
11256 \family default
11257 s.
11258  I'd advise placing both commands in the preamble and initially comment
11259  both out.
11260  You can then preview your entire presentation as you write.
11261  When you're done writing, you can then uncomment one of the two to select
11262  what you want to print.
11263  I like to uncomment 
11264 \begin_inset Quotes eld
11265 \end_inset
11266
11267
11268 \family typewriter
11269
11270 \backslash
11271 onlyslides{
11272 \backslash
11273 slides}
11274 \family default
11275
11276 \begin_inset Quotes erd
11277 \end_inset
11278
11279  , print to a file with 
11280 \begin_inset Quotes eld
11281 \end_inset
11282
11283
11284 \family typewriter
11285 -slides
11286 \family default
11287
11288 \begin_inset Quotes erd
11289 \end_inset
11290
11291  in its name, comment it back out, then uncomment 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295
11296 \family typewriter
11297
11298 \backslash
11299 onlynotes{
11300 \backslash
11301 notes}
11302 \family default
11303
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and print to a 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311
11312 \family typewriter
11313 *-notes.ps
11314 \family default
11315
11316 \begin_inset Quotes erd
11317 \end_inset
11318
11319  file.
11320  I can then send either file to a printer, loading transparencies or plain
11321  paper as appropriate.
11322 \end_layout
11323
11324 \begin_layout Standard
11325 You can also provide other arguments to the 
11326 \begin_inset Quotes eld
11327 \end_inset
11328
11329
11330 \family typewriter
11331
11332 \backslash
11333 onlyslides{}
11334 \family default
11335
11336 \begin_inset Quotes erd
11337 \end_inset
11338
11339  and 
11340 \begin_inset Quotes eld
11341 \end_inset
11342
11343
11344 \family typewriter
11345
11346 \backslash
11347 onlynotes{}
11348 \family default
11349
11350 \begin_inset Quotes erd
11351 \end_inset
11352
11353  commands.
11354  See a good \SpecialChar LaTeX
11355  book for details.
11356 \end_layout
11357
11358 \begin_layout Subsubsection
11359 The 
11360 \family sans
11361 slides
11362 \family default
11363  Class Template File
11364 \end_layout
11365
11366 \begin_layout Standard
11367 I have also provided a template file, 
11368 \begin_inset Quotes eld
11369 \end_inset
11370
11371
11372 \family typewriter
11373 slides.lyx
11374 \family default
11375
11376 \begin_inset Quotes erd
11377 \end_inset
11378
11379 , with the 
11380 \family sans
11381 slides
11382 \family default
11383  class.
11384  To use it, begin your new presentation with 
11385 \family sans
11386 File\SpecialChar menuseparator
11387 New
11388 \begin_inset space ~
11389 \end_inset
11390
11391 from
11392 \begin_inset space ~
11393 \end_inset
11394
11395 Template
11396 \family default
11397 .
11398  Your new \SpecialChar LyX
11399  presentation file will contain an example 
11400 \family sans
11401 Slide
11402 \family default
11403  – 
11404 \family sans
11405 Overlay
11406 \family default
11407  – 
11408 \family sans
11409 Note
11410 \family default
11411  triplet.
11412  The 
11413 \family sans
11414 Slide
11415 \family default
11416  and 
11417 \family sans
11418 Overlay
11419 \family default
11420  additionally contain an example of the use of 
11421 \family sans
11422 InvisibleText
11423 \family default
11424  and 
11425 \family sans
11426 VisibleText
11427 \family default
11428 .
11429  Lastly, the preamble will contain:
11430 \end_layout
11431
11432 \begin_layout LyX-Code
11433 % Uncomment to print out only slides and overlays
11434 \end_layout
11435
11436 \begin_layout LyX-Code
11437 %
11438 \end_layout
11439
11440 \begin_layout LyX-Code
11441 %
11442 \backslash
11443 onlyslides{
11444 \backslash
11445 slides}
11446 \begin_inset Newline newline
11447 \end_inset
11448
11449  
11450 \end_layout
11451
11452 \begin_layout LyX-Code
11453 % Uncomment to print out only notes
11454 \end_layout
11455
11456 \begin_layout LyX-Code
11457 %
11458 \end_layout
11459
11460 \begin_layout LyX-Code
11461 %
11462 \backslash
11463 onlynotes{
11464 \backslash
11465 notes}
11466 \end_layout
11467
11468 \begin_layout Standard
11469 One final thing: I created this class to support the \SpecialChar LaTeX2e
11470  
11471 \begin_inset Quotes eld
11472 \end_inset
11473
11474
11475 \noun on
11476 Sli\SpecialChar TeX
11477
11478 \noun default
11479  emulation
11480 \begin_inset Quotes erd
11481 \end_inset
11482
11483  class, one of the built-in \SpecialChar LaTeX2e
11484  classes.
11485  Neither I nor the rest of the \SpecialChar LyX
11486  Team endorse or oppose the use of this built-in
11487  slide class.
11488  It's here if you want it or need it.
11489  There exist other \SpecialChar LaTeX2e
11490  classes for creating presentations, such as the 
11491 \family sans
11492 Foils
11493 \family default
11494  class [see section
11495 \begin_inset space ~
11496 \end_inset
11497
11498
11499 \begin_inset CommandInset ref
11500 LatexCommand ref
11501 reference "sec:foiltex"
11502
11503 \end_inset
11504
11505 ] or the 
11506 \begin_inset Quotes eld
11507 \end_inset
11508
11509
11510 \family typewriter
11511 seminar
11512 \family default
11513
11514 \begin_inset Quotes erd
11515 \end_inset
11516
11517  package [present on some \SpecialChar TeX
11518  distributions].
11519  The latter is not yet supported under \SpecialChar LyX
11520 .
11521 \begin_inset Foot
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 Perhaps you can take on the task\SpecialChar ldots
11526
11527 \end_layout
11528
11529 \end_inset
11530
11531  I know nothing about these other classes.
11532  Try them out to see what sort of alternative they provide.
11533 \end_layout
11534
11535 \begin_layout Section
11536
11537 \change_inserted 564990737 1670439661
11538 Reports
11539 \end_layout
11540
11541 \begin_layout Subsection
11542
11543 \change_inserted 564990737 1670439661
11544 report
11545 \end_layout
11546
11547 \begin_layout Standard
11548
11549 \change_inserted 564990737 1670439661
11550 The document class 
11551 \family sans
11552 report
11553 \family default
11554  provides the 
11555 \family sans
11556 report.cls
11557 \family default
11558  document class for preparing reports.
11559  Like the 
11560 \family sans
11561 book
11562 \family default
11563  document class, this provides parts, chapters and sections but does not
11564  provide the paragraph styles needed for a book; like the 
11565 \family sans
11566 article
11567 \family default
11568  document class, it provides the abstract paragraph style.
11569  In two-sided mode, it does not start a new chapter on the right hand page.
11570 \end_layout
11571
11572 \begin_layout Standard
11573
11574 \change_inserted 564990737 1670439674
11575 The remaining 
11576 \family sans
11577 report
11578 \family default
11579  document classes are described in the Collections (section
11580 \begin_inset space ~
11581 \end_inset
11582
11583
11584 \begin_inset CommandInset ref
11585 LatexCommand ref
11586 reference "sec:Collections"
11587
11588 \end_inset
11589
11590 ).
11591 \end_layout
11592
11593 \begin_layout Section
11594
11595 \change_inserted 564990737 1670439674
11596 Scripts (drama)
11597 \end_layout
11598
11599 \begin_layout Subsection
11600 Broadway
11601 \end_layout
11602
11603 \begin_layout Standard
11604 by 
11605 \shape smallcaps
11606 Garst Reese
11607 \end_layout
11608
11609 \begin_layout Subsubsection
11610 Introduction
11611 \end_layout
11612
11613 \begin_layout Standard
11614 Broadway is for writing plays.
11615  The format is more decorative than Hollywood, and much less standardized.
11616  This format should be suitable for workshops.
11617 \end_layout
11618
11619 \begin_layout Subsubsection
11620 Special problems
11621 \end_layout
11622
11623 \begin_layout Standard
11624 The same as in Hollywood.
11625 \end_layout
11626
11627 \begin_layout Subsubsection
11628 Special features
11629 \end_layout
11630
11631 \begin_layout Standard
11632 Insert the 
11633 \family sans
11634 Speaker
11635 \family default
11636  names as labels then cross-reference the label to insert the name.
11637  The cross-reference dialog will show the current cast of characters.
11638 \end_layout
11639
11640 \begin_layout Subsubsection
11641 Paper size and Margins
11642 \end_layout
11643
11644 \begin_layout Standard
11645 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11646 \end_layout
11647
11648 \begin_layout Subsubsection
11649 Environments
11650 \end_layout
11651
11652 \begin_layout Standard
11653 The following environments are available.
11654  You can use broadway.bind to get the bind keys shown at the right.
11655 \end_layout
11656
11657 \begin_layout Itemize
11658
11659 \family sans
11660 Standard
11661 \begin_inset Newline newline
11662 \end_inset
11663
11664
11665 \family default
11666 You should not have to use this, but it is here for anything that does not
11667  fit otherwise.
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 Narrative
11674 \begin_inset space \hfill{}
11675 \end_inset
11676
11677 M-z n
11678 \begin_inset Newline newline
11679 \end_inset
11680
11681
11682 \family default
11683 Used to describe stage setting and the action.
11684  First use of speaker names in all CAPs.
11685 \end_layout
11686
11687 \begin_layout Itemize
11688
11689 \family sans
11690 ACT
11691 \begin_inset space \hfill{}
11692 \end_inset
11693
11694 M-z a
11695 \begin_inset Newline newline
11696 \end_inset
11697
11698
11699 \family default
11700 Automatically numbered.
11701  On screen it will be arabic, but will print as Roman.
11702 \end_layout
11703
11704 \begin_layout Itemize
11705
11706 \family sans
11707 ACT*
11708 \begin_inset space \hfill{}
11709 \end_inset
11710
11711 M-z S at
11712 \begin_inset Newline newline
11713 \end_inset
11714
11715
11716 \family default
11717 Subtitle for 
11718 \family sans
11719 ACT.
11720
11721 \family default
11722  It is just centered text.
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 SCENE
11729 \begin_inset space \hfill{}
11730 \end_inset
11731
11732 M-z S-S
11733 \begin_inset Newline newline
11734 \end_inset
11735
11736
11737 \family default
11738 Not automatically numbered.
11739  You supply the number.
11740  This is because I couldn't figure out how.
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 AT_RISE:
11747 \begin_inset space \hfill{}
11748 \end_inset
11749
11750 M-z S-R
11751 \begin_inset Newline newline
11752 \end_inset
11753
11754
11755 \family default
11756 A special case of Narrative to describe the setting and action as the curtain
11757  rises.
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 Speaker
11764 \begin_inset space \hfill{}
11765 \end_inset
11766
11767 M-z s
11768 \begin_inset Newline newline
11769 \end_inset
11770
11771
11772 \family default
11773 The speaker's (actor's) title, centered in all CAPS.
11774 \end_layout
11775
11776 \begin_layout Itemize
11777
11778 \family sans
11779 Parenthetical
11780 \begin_inset space \hfill{}
11781 \end_inset
11782
11783 M-z p
11784 \begin_inset Newline newline
11785 \end_inset
11786
11787
11788 \family default
11789 Instructions to the speaker.
11790  The parentheses are automatically inserted.
11791  The ( will appear on screen, but both will be in the printed play.
11792  This environment is only used within 
11793 \family sans
11794 Dialogue
11795 \family default
11796 .
11797 \end_layout
11798
11799 \begin_layout Itemize
11800
11801 \family sans
11802 Dialogue
11803 \begin_inset space \hfill{}
11804 \end_inset
11805
11806 M-z d
11807 \begin_inset Newline newline
11808 \end_inset
11809
11810
11811 \family default
11812 What the Speaker says.
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \family sans
11818 CURTAIN
11819 \begin_inset space \hfill{}
11820 \end_inset
11821
11822 M-z S-C
11823 \begin_inset Newline newline
11824 \end_inset
11825
11826
11827 \family default
11828 The curtain comes down.
11829 \end_layout
11830
11831 \begin_layout Itemize
11832
11833 \family sans
11834 Title
11835 \begin_inset space \hfill{}
11836 \end_inset
11837
11838 M-z S-T
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Author
11845 \begin_inset space \hfill{}
11846 \end_inset
11847
11848 M-z S-A
11849 \end_layout
11850
11851 \begin_layout Itemize
11852
11853 \family sans
11854 Right_Address
11855 \begin_inset space \hfill{}
11856 \end_inset
11857
11858 M-z r
11859 \end_layout
11860
11861 \begin_layout Standard
11862 Hello there.
11863 \end_layout
11864
11865 \begin_layout Subsection
11866 Hollywood (Hollywood spec scripts)
11867 \end_layout
11868
11869 \begin_layout Standard
11870 by 
11871 \shape smallcaps
11872 Garst Reese
11873 \end_layout
11874
11875 \begin_layout Subsubsection
11876 Introduction
11877 \end_layout
11878
11879 \begin_layout Standard
11880 Getting the format of a Hollywood script right is a 
11881 \begin_inset Quotes eld
11882 \end_inset
11883
11884 rite of passage.
11885 \begin_inset Quotes erd
11886 \end_inset
11887
11888  It is designed to make the readers focus on content and to be easy and
11889  familiar for the actors to read.
11890  Each page of a script should be one minute of film.
11891  Nothing goes in a script that you cannot see or hear on screen.
11892  The courier 12 pt font should be used throughout.
11893  No italics.
11894 \end_layout
11895
11896 \begin_layout Subsubsection
11897 Special problems
11898 \end_layout
11899
11900 \begin_layout Standard
11901 Speakers' lines should NEVER break in mid-sentence.
11902  If a speaker's lines continue over a page break, repeat the 
11903 \family sans
11904 Speaker
11905 \family default
11906  title followed by (Cont'd).
11907 \end_layout
11908
11909 \begin_layout Subsubsection
11910 Special features
11911 \end_layout
11912
11913 \begin_layout Standard
11914 Insert the 
11915 \family sans
11916 Speaker
11917 \family default
11918  names as labels then cross-reference the label to insert the name.
11919  The cross-reference dialog will show the current cast of characters.
11920  You can use this to insert the speaker name in narratives also.
11921 \end_layout
11922
11923 \begin_layout Subsubsection
11924 Paper size and Margins
11925 \end_layout
11926
11927 \begin_layout Standard
11928 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11929 \end_layout
11930
11931 \begin_layout Subsubsection
11932 Environments
11933 \end_layout
11934
11935 \begin_layout Standard
11936 The following environments are available.
11937  You can use hollywood.bind to get the bind keys shown at the right.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941
11942 \family sans
11943 Standard
11944 \begin_inset Newline newline
11945 \end_inset
11946
11947
11948 \family default
11949 Used where nothing else works.
11950  Try to avoid it.
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 FADE_IN
11957 \family default
11958 :
11959 \begin_inset space \hfill{}
11960 \end_inset
11961
11962
11963 \family sans
11964 M-z S-I
11965 \family default
11966
11967 \begin_inset Newline newline
11968 \end_inset
11969
11970 Usually followed by something like 
11971 \begin_inset Quotes eld
11972 \end_inset
11973
11974 on Sally waking up.
11975 \begin_inset Quotes erd
11976 \end_inset
11977
11978
11979 \end_layout
11980
11981 \begin_layout Itemize
11982
11983 \family sans
11984 INT:
11985 \begin_inset space \hfill{}
11986 \end_inset
11987
11988 M-z i
11989 \begin_inset Newline newline
11990 \end_inset
11991
11992
11993 \family default
11994 Introduces a new INTERIOR camera set-up.
11995  Always followed by DAY or NIGHT, or something similar to define the lighting
11996  required.
11997  Everthing on this line in CAPS.
11998 \end_layout
11999
12000 \begin_layout Itemize
12001
12002 \family sans
12003 EXT:
12004 \begin_inset space \hfill{}
12005 \end_inset
12006
12007 M-z e
12008 \begin_inset Newline newline
12009 \end_inset
12010
12011
12012 \family default
12013 Introduces a new EXTERIOR camera set-up.
12014  Everthing on this line in CAPS.
12015 \end_layout
12016
12017 \begin_layout Itemize
12018
12019 \family sans
12020 Speaker
12021 \begin_inset space \hfill{}
12022 \end_inset
12023
12024 M-z s
12025 \begin_inset Newline newline
12026 \end_inset
12027
12028
12029 \family default
12030 The character speaking.
12031 \end_layout
12032
12033 \begin_layout Itemize
12034
12035 \family sans
12036 Parenthetical
12037 \begin_inset space \hfill{}
12038 \end_inset
12039
12040 M-z p
12041 \begin_inset Newline newline
12042 \end_inset
12043
12044
12045 \family default
12046 Instructions to the speaker.
12047  The () are automatically inserted.
12048 \end_layout
12049
12050 \begin_layout Itemize
12051
12052 \family sans
12053 Dialogue
12054 \begin_inset space \hfill{}
12055 \end_inset
12056
12057 M-z d
12058 \begin_inset Newline newline
12059 \end_inset
12060
12061
12062 \family default
12063 What the 
12064 \family sans
12065 Speaker
12066 \family default
12067  says.
12068 \end_layout
12069
12070 \begin_layout Itemize
12071
12072 \family sans
12073 Transition
12074 \begin_inset space \hfill{}
12075 \end_inset
12076
12077 M-z t
12078 \begin_inset Newline newline
12079 \end_inset
12080
12081
12082 \family default
12083 Camera movement instruction.
12084  e.
12085 \begin_inset space \thinspace{}
12086 \end_inset
12087
12088 g.
12089 \begin_inset space \space{}
12090 \end_inset
12091
12092 CUT TO:
12093 \end_layout
12094
12095 \begin_layout Itemize
12096
12097 \family sans
12098 FADE OUT:
12099 \begin_inset space \hfill{}
12100 \end_inset
12101
12102 M-z S-I
12103 \end_layout
12104
12105 \begin_layout Itemize
12106
12107 \family sans
12108 Author
12109 \begin_inset space \hfill{}
12110 \end_inset
12111
12112 M-z S-A
12113 \end_layout
12114
12115 \begin_layout Itemize
12116
12117 \family sans
12118 Title
12119 \begin_inset space \hfill{}
12120 \end_inset
12121
12122 M-z S-T
12123 \end_layout
12124
12125 \begin_layout Itemize
12126
12127 \family sans
12128 Right_Address
12129 \begin_inset space \hfill{}
12130 \end_inset
12131
12132 M-z r
12133 \end_layout
12134
12135 \begin_layout Subsubsection
12136 Script jargon
12137 \end_layout
12138
12139 \begin_layout Itemize
12140 (O.S) — off screen
12141 \end_layout
12142
12143 \begin_layout Itemize
12144 (V.0) — voice over
12145 \end_layout
12146
12147 \begin_layout Itemize
12148 b.
12149 \begin_inset space \thinspace{}
12150 \end_inset
12151
12152 g.
12153  — background
12154 \end_layout
12155
12156 \begin_layout Itemize
12157 C.U.
12158  — close-up
12159 \end_layout
12160
12161 \begin_layout Itemize
12162 PAN — camera movement
12163 \end_layout
12164
12165 \begin_layout Itemize
12166 INSERT — cut to close-up of
12167 \end_layout
12168
12169 \begin_layout Chapter
12170
12171 \change_inserted 564990737 1671185876
12172 Modules
12173 \end_layout
12174
12175 \begin_layout Section
12176 Multiple Text Columns
12177 \end_layout
12178
12179 \begin_layout Standard
12180 This feature is independent of the option 
12181 \family sans
12182 Two-column document
12183 \family default
12184  in the document settings under 
12185 \family sans
12186 Text Layout
12187 \family default
12188 .
12189  If you want to have 2
12190 \begin_inset space ~
12191 \end_inset
12192
12193 columns for the whole document, it is recommended to use the 
12194 \family sans
12195 Two-column document
12196 \family default
12197  option.
12198  For all other cases use this feature.
12199 \end_layout
12200
12201 \begin_layout Standard
12202 To use multiple text columns in your document, you have to load the module
12203  
12204 \family sans
12205 Multiple Columns
12206 \family default
12207  (menu 
12208 \family sans
12209 Document\SpecialChar menuseparator
12210 Settings\SpecialChar menuseparator
12211 Modules
12212 \family default
12213 ) and must have the \SpecialChar LaTeX
12214 -package 
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 multicol
12220 \end_layout
12221
12222 \end_inset
12223
12224  installed.
12225 \end_layout
12226
12227 \begin_layout Standard
12228 Footnotes within multiple columns will be placed at the bottom of the page
12229  and not under each column.
12230  Within the different columns you can use everything, with the limitation
12231  that for floats you need to use the float option 
12232 \family sans
12233 Span columns
12234 \family default
12235 .
12236 \end_layout
12237
12238 \begin_layout Subsection
12239 Basics
12240 \end_layout
12241
12242 \begin_layout Standard
12243 If you want to have 2
12244 \begin_inset space ~
12245 \end_inset
12246
12247 columns in your text, insert a multicolumn inset via the menu 
12248 \family sans
12249 Insert\SpecialChar menuseparator
12250 Custom
12251 \begin_inset space ~
12252 \end_inset
12253
12254 Insets\SpecialChar menuseparator
12255 Multiple
12256 \begin_inset space ~
12257 \end_inset
12258
12259 Columns
12260 \family default
12261  where the columns should start.
12262  Write all text that should be printed in 2
12263 \begin_inset space ~
12264 \end_inset
12265
12266 columns into this inset.
12267 \end_layout
12268
12269 \begin_layout Standard
12270 Here is an example:
12271 \end_layout
12272
12273 \begin_layout Standard
12274 \noindent
12275 \begin_inset Flex Multiple Columns
12276 status open
12277
12278 \begin_layout Plain Layout
12279 \noindent
12280
12281 \series bold
12282 \size small
12283 The Adventure of the Empty House
12284 \series default
12285
12286 \begin_inset Newline newline
12287 \end_inset
12288
12289 by Sir Arthur Conan Doyle
12290 \end_layout
12291
12292 \begin_layout Plain Layout
12293
12294 \size small
12295 It was in the spring of the year 1894 that all London was interested, and
12296  the fashionable world dismayed, by the murder of the Honourable Ronald
12297  Adair under most unusual and inexplicable circumstances.
12298  The public has already learned those particulars of the crime which came
12299  out in the police investigation, but a good deal was suppressed upon that
12300  occasion, since the case for the prosecution was so overwhelmingly strong
12301  that it was not necessary to bring forward all the facts.
12302  Only now, at the end of nearly ten years, am I allowed to supply those
12303  missing links which make up the whole of that remarkable chain.
12304  The crime was of interest in itself, but that interest was as nothing to
12305  me compared to the inconceivable sequel, which afforded me the greatest
12306  shock and surprise of any event in my adventurous life.
12307  Even now, after this long interval, I find myself thrilling as I think
12308  of it, and feeling once more that sudden flood of joy, amazement, and increduli
12309 ty which utterly submerged my mind.
12310  Let me say to that public, which has shown some interest in those glimpses
12311  which I have occasionally given them of the thoughts and actions of a very
12312  remarkable man, that they are not to blame me if I have not shared my knowledge
12313  with them, for I should have considered it my first duty to do so, had
12314  I not been barred by a positive prohibition from his own lips, which was
12315  only withdrawn upon the third of last month.
12316 \end_layout
12317
12318 \end_inset
12319
12320
12321 \end_layout
12322
12323 \begin_layout Standard
12324 To get 3 or more columns, set the cursor into the multicolumn inset and
12325  use the menu 
12326 \family sans
12327 Insert\SpecialChar menuseparator
12328 Number
12329 \begin_inset space ~
12330 \end_inset
12331
12332 of
12333 \begin_inset space ~
12334 \end_inset
12335
12336 Columns
12337 \family default
12338 .
12339  The number of the desired columns is written into that inset (for 3
12340 \begin_inset space ~
12341 \end_inset
12342
12343 columns write 
12344 \begin_inset Quotes eld
12345 \end_inset
12346
12347 3
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351 ).
12352 \begin_inset Newline newline
12353 \end_inset
12354
12355 Here is an example with 3
12356 \begin_inset space ~
12357 \end_inset
12358
12359 columns:
12360 \end_layout
12361
12362 \begin_layout Standard
12363 \begin_inset Flex Multiple Columns
12364 status open
12365
12366 \begin_layout Plain Layout
12367
12368 \size footnotesize
12369 \begin_inset Argument 1
12370 status open
12371
12372 \begin_layout Plain Layout
12373
12374 3
12375 \end_layout
12376
12377 \end_inset
12378
12379 It can be imagined that my close intimacy with Sherlock Holmes had interested
12380  me deeply in crime, and that after his disappearance I never failed to
12381  read with care the various problems which came before the public.
12382  And I even attempted, more than once, for my own private satisfaction,
12383  to employ his methods in their solution, though with indifferent success.
12384  There was none, however, which appealed to me like this tragedy of Ronald
12385  Adair.
12386  As I read the evidence at the inquest, which led up to a verdict of willful
12387  murder against some person or persons unknown, I realized more clearly
12388  than I had ever done the loss which the community had sustained by the
12389  death of Sherlock Holmes.
12390  There were points about this strange business which would, I was sure,
12391  have specially appealed to him, and the efforts of the police would have
12392  been supplemented, or more probably anticipated, by the trained observation
12393  and the alert mind of the first criminal agent in Europe.
12394  All day, as I drove upon my round, I turned over the case in my mind and
12395  found no explanation which appeared to me to be adequate.
12396  At the risk of telling a twice-told tale, I will recapitulate the facts
12397  as they were known to the public at the conclusion of the inquest.
12398 \end_layout
12399
12400 \end_inset
12401
12402
12403 \end_layout
12404
12405 \begin_layout Standard
12406 You can have up to 10
12407 \begin_inset space ~
12408 \end_inset
12409
12410 columns if you want to, but that might not be very pleasant for the readers
12411  of your document.
12412 \end_layout
12413
12414 \begin_layout Standard
12415 \begin_inset Newpage newpage
12416 \end_inset
12417
12418
12419 \end_layout
12420
12421 \begin_layout Subsection
12422 Columns inside Columns
12423 \end_layout
12424
12425 \begin_layout Standard
12426 You can also have columns inside columns:
12427 \end_layout
12428
12429 \begin_layout Standard
12430 \begin_inset Flex Multiple Columns
12431 status open
12432
12433 \begin_layout Plain Layout
12434
12435 \size footnotesize
12436 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
12437  at that time governor of one of the Australian colonies.
12438  Adair's mother had returned from Australia to undergo the operation for
12439  cataract, and she, her son Ronald, and her daughter Hilda were living together
12440  at 427 Park Lane.
12441 \end_layout
12442
12443 \begin_layout Plain Layout
12444 \begin_inset Flex Multiple Columns
12445 status open
12446
12447 \begin_layout Plain Layout
12448
12449 \size footnotesize
12450 The youth moved in the best society
12451 \begin_inset space ~
12452 \end_inset
12453
12454 – had, so far as was known, no enemies and no particular vices.
12455  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
12456  had been broken off by mutual consent some months before, and there was
12457  no sign that it had left any very profound feeling behind it.
12458  For the rest {sic} the man's life moved in a narrow and conventional circle,
12459  for his habits were quiet and his nature unemotional.
12460  Yet it was upon this easy-going young aristocrat that death came, in most
12461  strange and unexpected form, between the hours of ten and eleven-twenty
12462  on the night of March 30, 1894.
12463 \end_layout
12464
12465 \end_inset
12466
12467
12468 \end_layout
12469
12470 \begin_layout Plain Layout
12471
12472 \size footnotesize
12473 Ronald Adair was fond of cards
12474 \begin_inset space ~
12475 \end_inset
12476
12477 – playing continually, but never for such stakes as would hurt him.
12478  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
12479  It was shown that, after dinner on the day of his death, he had played
12480  a rubber of whist at the latter club.
12481  He had also played there in the afternoon.
12482
12483 \size default
12484  
12485 \size footnotesize
12486 The evidence of those who had played with him
12487 \begin_inset space ~
12488 \end_inset
12489
12490 – Mr.
12491  Murray, Sir John Hardy, and Colonel Moran
12492 \begin_inset space ~
12493 \end_inset
12494
12495 – showed that the game was whist, and that there was a fairly equal fall
12496  of the cards.
12497  Adair might have lost five pounds, but not more.
12498  His fortune was a considerable one, and such a loss could not in any way
12499  affect him.
12500  He had played nearly every day at one club or other, but he was a cautious
12501  player, and usually rose a winner.
12502  It came out in evidence that, in partnership with Colonel Moran, he had
12503  actually won as much as four hundred and twenty pounds in a sitting, some
12504  weeks before, from Godfrey Milner and Lord Balmoral.
12505  So much for his recent history as it came out at the inquest.
12506 \end_layout
12507
12508 \end_inset
12509
12510
12511 \end_layout
12512
12513 \begin_layout Subsection
12514 Advanced Examples
12515 \end_layout
12516
12517 \begin_layout Standard
12518 The examples in this section show some more special features of multiple
12519  columns.
12520 \end_layout
12521
12522 \begin_layout Standard
12523 For more features of multiple columns, have a look at the 
12524 \begin_inset CommandInset href
12525 LatexCommand href
12526 name "documentation"
12527 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
12528 literal "false"
12529
12530 \end_inset
12531
12532  of the \SpecialChar LaTeX
12533 -package 
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 multicol
12539 \end_layout
12540
12541 \end_inset
12542
12543 .
12544 \end_layout
12545
12546 \begin_layout Subsubsection
12547 Preface
12548 \end_layout
12549
12550 \begin_layout Standard
12551 To add a preface text for multiple columns, set the cursor into the multicolumn
12552  inset and use the menu 
12553 \family sans
12554 Insert\SpecialChar menuseparator
12555 Preface
12556 \family default
12557 .
12558  Write your preface text into that inset.
12559 \begin_inset Newline newline
12560 \end_inset
12561
12562 This is an example with some preface text:
12563 \end_layout
12564
12565 \begin_layout Standard
12566 \begin_inset VSpace bigskip
12567 \end_inset
12568
12569
12570 \end_layout
12571
12572 \begin_layout Standard
12573 \begin_inset Flex Multiple Columns
12574 status open
12575
12576 \begin_layout Plain Layout
12577 \begin_inset Argument 2
12578 status open
12579
12580 \begin_layout Plain Layout
12581 And the story continues and continues and continues and continues\SpecialChar ldots
12582
12583 \end_layout
12584
12585 \end_inset
12586
12587
12588 \size small
12589 On the evening of the crime, he returned from the club exactly at ten.
12590  His mother and sister were out spending the evening with a relation.
12591  The servant deposed that she heard him enter the front room on the second
12592  floor, generally used as his sitting-room.
12593  She had lit a fire there, and as it smoked she had opened the window.
12594  No sound was heard from the room until eleven-twenty, the hour of the return
12595  of Lady Maynooth and her daughter.
12596  Desiring to say good-night, she attempted to enter her son's room.
12597  The door was locked on the inside, and no answer could be got to their
12598  cries and knocking.
12599  Help was obtained, and the door forced.
12600  The unfortunate young man was found lying near the table.
12601  His head had been horribly mutilated by an expanding revolver bullet, but
12602  no weapon of any sort was to be found in the room.
12603 \end_layout
12604
12605 \end_inset
12606
12607
12608 \end_layout
12609
12610 \begin_layout Standard
12611 You can also use a section heading as the preface if you use a section command
12612  as \SpecialChar TeX
12613  Code.
12614  For example the command
12615 \end_layout
12616
12617 \begin_layout LyX-Code
12618
12619 \backslash
12620 subsection{subsection title}
12621 \end_layout
12622
12623 \begin_layout Standard
12624 creates a subsection.
12625  In this example the preface is a subsubsection:
12626 \end_layout
12627
12628 \begin_layout Standard
12629 \begin_inset Flex Multiple Columns
12630 status open
12631
12632 \begin_layout Plain Layout
12633 \begin_inset Argument 2
12634 status open
12635
12636 \begin_layout Plain Layout
12637 \begin_inset ERT
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641
12642
12643 \backslash
12644 subsubsection{
12645 \end_layout
12646
12647 \end_inset
12648
12649 This is a subsubsection heading as a preface
12650 \begin_inset ERT
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654
12655 }
12656 \end_layout
12657
12658 \end_inset
12659
12660
12661 \end_layout
12662
12663 \end_inset
12664
12665
12666 \size small
12667 A minute examination of the circumstances served only to make the case more
12668  complex.
12669  In the first place, no reason could be given why the young man should have
12670  fastened the door upon the inside.
12671  There was the possibility that the murderer had done this, and had afterwards
12672  escaped by the window.
12673  The drop was at least twenty feet, however, and a bed of crocuses in full
12674  bloom lay beneath.
12675  Neither the flowers nor the earth showed any sign of having been disturbed,
12676  nor were there any marks upon the narrow strip of grass which separated
12677  the house from the road.
12678  Apparently, therefore, it was the young man himself who had fastened the
12679  door.
12680  But how did he come by his death? No one could have climbed up to the window
12681  without leaving traces.
12682  Suppose a man had fired through the window, he would indeed be a remarkable
12683  shot who could with a revolver inflict so deadly a wound.
12684  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
12685  a hundred yards of the house.
12686  No one had heard a shot.
12687 \end_layout
12688
12689 \end_inset
12690
12691
12692 \end_layout
12693
12694 \begin_layout Standard
12695 If there is less vertical space than 6
12696 \begin_inset space ~
12697 \end_inset
12698
12699 text lines is left on the page at the beginning of the multiple columns,
12700  a page break will be inserted before the multiple columns.
12701  Depending on the number of lines of the preface text, you might want to
12702  change this space.
12703  This is done by setting the cursor into the mulitcolumn inset behind the
12704  preface (if there is any) and using the menu 
12705 \family sans
12706 Insert\SpecialChar menuseparator
12707 Space
12708 \begin_inset space ~
12709 \end_inset
12710
12711 Before
12712 \begin_inset space ~
12713 \end_inset
12714
12715 Page
12716 \begin_inset space ~
12717 \end_inset
12718
12719 Break
12720 \family default
12721 .
12722  Insert into that inset the amount of space like e.
12723 \begin_inset space \thinspace{}
12724 \end_inset
12725
12726 g.
12727 \begin_inset space \space{}
12728 \end_inset
12729
12730
12731 \begin_inset Quotes eld
12732 \end_inset
12733
12734 5cm
12735 \begin_inset Quotes erd
12736 \end_inset
12737
12738 .
12739 \begin_inset Newline newline
12740 \end_inset
12741
12742 In this example the space is set to 7
12743 \begin_inset space ~
12744 \end_inset
12745
12746 text lines by using 
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751 7
12752 \backslash
12753 baselineskip
12754 \end_layout
12755
12756 \end_inset
12757
12758  (where the command 
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763
12764 \backslash
12765 baselineskip
12766 \end_layout
12767
12768 \end_inset
12769
12770  needs to be inserted as \SpecialChar TeX
12771  code):
12772 \end_layout
12773
12774 \begin_layout Standard
12775 \begin_inset Flex Multiple Columns
12776 status open
12777
12778 \begin_layout Plain Layout
12779 \begin_inset Argument 3
12780 status open
12781
12782 \begin_layout Plain Layout
12783 7
12784 \begin_inset ERT
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788
12789
12790 \backslash
12791 baselineskip
12792 \end_layout
12793
12794 \end_inset
12795
12796
12797 \end_layout
12798
12799 \end_inset
12800
12801
12802 \size small
12803 On the evening of the crime, he returned from the club exactly at ten.
12804  His mother and sister were out spending the evening with a relation.
12805  The servant deposed that she heard him enter the front room on the second
12806  floor, generally used as his sitting-room.
12807  She had lit a fire there, and as it smoked she had opened the window.
12808  No sound was heard from the room until eleven-twenty, the hour of the return
12809  of Lady Maynooth and her daughter.
12810  Desiring to say good-night, she attempted to enter her son's room.
12811  The door was locked on the inside, and no answer could be got to their
12812  cries and knocking.
12813  Help was obtained, and the door forced.
12814  The unfortunate young man was found lying near the table.
12815  His head had been horribly mutilated by an expanding revolver bullet, but
12816  no weapon of any sort was to be found in the room.
12817 \end_layout
12818
12819 \end_inset
12820
12821
12822 \end_layout
12823
12824 \begin_layout Subsubsection
12825 Surrounding Space
12826 \end_layout
12827
12828 \begin_layout Standard
12829 The amount of space before and after multiple columns can be changed by
12830  changing the length 
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835
12836 \backslash
12837 multicolsep
12838 \end_layout
12839
12840 \end_inset
12841
12842 .
12843  For example the command
12844 \end_layout
12845
12846 \begin_layout LyX-Code
12847
12848 \backslash
12849 setlength{
12850 \backslash
12851 multicolsep}{3cm}
12852 \end_layout
12853
12854 \begin_layout Standard
12855 in \SpecialChar TeX
12856  Code changes its value to 3
12857 \begin_inset space \thinspace{}
12858 \end_inset
12859
12860 cm.
12861  The change must be made before the multiple columns' start.
12862  The predefined value is 13
12863 \begin_inset space \thinspace{}
12864 \end_inset
12865
12866 pt.
12867 \end_layout
12868
12869 \begin_layout Standard
12870 For this example 
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875
12876 \backslash
12877 multicolsep
12878 \end_layout
12879
12880 \end_inset
12881
12882  was set to 2.5
12883 \begin_inset space \thinspace{}
12884 \end_inset
12885
12886 cm:
12887 \end_layout
12888
12889 \begin_layout Standard
12890 \begin_inset ERT
12891 status open
12892
12893 \begin_layout Plain Layout
12894
12895
12896 \backslash
12897 setlength{
12898 \backslash
12899 multicolsep}{2.5cm}
12900 \end_layout
12901
12902 \end_inset
12903
12904
12905 \end_layout
12906
12907 \begin_layout Standard
12908 \begin_inset Flex Multiple Columns
12909 status open
12910
12911 \begin_layout Plain Layout
12912
12913 \size small
12914 All day I turned these facts over in my mind, endeavouring to hit upon some
12915  theory which could reconcile them all, and to find that line of least resistanc
12916 e which my poor friend had declared to be the starting-point of every investigat
12917 ion.
12918  I confess that I made little progress.
12919  In the evening I strolled across the Park, and found myself about six o'clock
12920  at the Oxford Street end of Park Lane.
12921  A group of loafers upon the pavements, all staring up at a particular window,
12922  directed me to the house which I had come to see.
12923  A tall, thin man with coloured glasses, whom I strongly suspected of being
12924  a plain-clothes detective, was pointing out some theory of his own, while
12925  the others crowded round to listen to what he said.
12926  I got as near him as I could, but his observations seemed to me to be absurd,
12927  so I withdrew again in some disgust.
12928  As I did so I struck against an elderly, deformed man, who had been behind
12929  me, and I knocked down several books which he was carrying.
12930 \end_layout
12931
12932 \end_inset
12933
12934
12935 \end_layout
12936
12937 \begin_layout Standard
12938 \begin_inset Note Greyedout
12939 status open
12940
12941 \begin_layout Plain Layout
12942
12943 \series bold
12944 Note:
12945 \series default
12946  The values you set with 
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951
12952 \backslash
12953 setlength
12954 \end_layout
12955
12956 \end_inset
12957
12958  will be used for all following multiple columns until you change them again.
12959 \end_layout
12960
12961 \end_inset
12962
12963
12964 \end_layout
12965
12966 \begin_layout Standard
12967 \begin_inset ERT
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971
12972
12973 \backslash
12974 setlength{
12975 \backslash
12976 multicolsep}{13pt}
12977 \end_layout
12978
12979 \end_inset
12980
12981
12982 \begin_inset Note Note
12983 status collapsed
12984
12985 \begin_layout Plain Layout
12986 go back to the default
12987 \end_layout
12988
12989 \end_inset
12990
12991
12992 \end_layout
12993
12994 \begin_layout Standard
12995 \begin_inset Newpage newpage
12996 \end_inset
12997
12998
12999 \end_layout
13000
13001 \begin_layout Subsubsection
13002 Column Breaks
13003 \end_layout
13004
13005 \begin_layout Standard
13006 A column break can be forced by inserting the command 
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011
13012 \backslash
13013 columnbreak{}
13014 \end_layout
13015
13016 \end_inset
13017
13018  as \SpecialChar TeX
13019  Code to that position in the text where the column should be broken.
13020  Note that this leads in most cases to whitespace in the text.
13021 \begin_inset Newline newline
13022 \end_inset
13023
13024 Here is an example:
13025 \end_layout
13026
13027 \begin_layout Standard
13028 \begin_inset Flex Multiple Columns
13029 status open
13030
13031 \begin_layout Plain Layout
13032
13033 \size small
13034 \begin_inset Quotes eld
13035 \end_inset
13036
13037 You're surprised to see me, sir,
13038 \begin_inset Quotes erd
13039 \end_inset
13040
13041  said he, in a strange, croaking voice.
13042 \end_layout
13043
13044 \begin_layout Plain Layout
13045
13046 \size small
13047 I acknowledged that I was.
13048 \end_layout
13049
13050 \begin_layout Plain Layout
13051
13052 \size small
13053 \begin_inset Quotes eld
13054 \end_inset
13055
13056 Well, I've a conscience, sir, and when I chanced to see you go into this
13057  house, as I came hobbling after you, I thought to myself, I'll just step
13058  in and see that kind gentleman, and tell him that if I was a bit gruff
13059  in my manner there was not any harm meant, and that I am much obliged to
13060  him for picking up my books.
13061 \begin_inset Quotes erd
13062 \end_inset
13063
13064
13065 \end_layout
13066
13067 \begin_layout Plain Layout
13068
13069 \size small
13070 \begin_inset Quotes eld
13071 \end_inset
13072
13073 You make too much of a trifle,
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077  said I.
13078  
13079 \begin_inset Quotes eld
13080 \end_inset
13081
13082 May I ask how you knew who I was?
13083 \begin_inset Quotes erd
13084 \end_inset
13085
13086  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
13087 \begin_inset ERT
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091
13092
13093 \backslash
13094 columnbreak{}
13095 \end_layout
13096
13097 \end_inset
13098
13099
13100 \end_layout
13101
13102 \begin_layout Plain Layout
13103
13104 \size small
13105 \begin_inset Quotes eld
13106 \end_inset
13107
13108 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13109  you'll find my little bookshop at the corner of Church Street, and very
13110  happy to see you, I am sure.
13111  Maybe you collect yourself, sir.
13112  Here's 
13113 \noun on
13114 British
13115 \begin_inset space ~
13116 \end_inset
13117
13118 Birds
13119 \noun default
13120 , and 
13121 \noun on
13122 Catullus
13123 \noun default
13124 , and 
13125 \noun on
13126 The Holy War
13127 \noun default
13128
13129 \begin_inset space ~
13130 \end_inset
13131
13132 – a bargain, every one of them.
13133  With five volumes you could just fill that gap on that second shelf.
13134  It looks untidy, does it not, sir?
13135 \begin_inset Quotes erd
13136 \end_inset
13137
13138
13139 \end_layout
13140
13141 \end_inset
13142
13143
13144 \end_layout
13145
13146 \begin_layout Subsubsection
13147 Column Separation
13148 \end_layout
13149
13150 \begin_layout Standard
13151 The width of the columns is automatically calculated, but you can modify
13152  the space between the columns.
13153  This is done by changing the length 
13154 \begin_inset Flex Code
13155 status collapsed
13156
13157 \begin_layout Plain Layout
13158
13159 \backslash
13160 columnsep
13161 \end_layout
13162
13163 \end_inset
13164
13165 .
13166  Its predefined value is 10
13167 \begin_inset space \thinspace{}
13168 \end_inset
13169
13170 pt.
13171  Here is an example where 
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176
13177 \backslash
13178 columnsep
13179 \end_layout
13180
13181 \end_inset
13182
13183  is set to 3
13184 \begin_inset space \thinspace{}
13185 \end_inset
13186
13187 cm:
13188 \end_layout
13189
13190 \begin_layout Standard
13191 \begin_inset ERT
13192 status open
13193
13194 \begin_layout Plain Layout
13195
13196
13197 \backslash
13198 setlength{
13199 \backslash
13200 columnsep}{3cm}
13201 \end_layout
13202
13203 \end_inset
13204
13205
13206 \end_layout
13207
13208 \begin_layout Standard
13209 \begin_inset Flex Multiple Columns
13210 status open
13211
13212 \begin_layout Plain Layout
13213
13214 \size small
13215 My observations of No.
13216 \begin_inset space \space{}
13217 \end_inset
13218
13219 427 Park Lane did little to clear up the problem in which I was interested.
13220  The house was separated from the street by a low wall and railing, the
13221  whole not more than five feet high.
13222  It was perfectly easy, therefore, for anyone to get into the garden, but
13223  the window was entirely inaccessible, since there was no water pipe or
13224  anything which could help the most active man to climb it.
13225  More puzzled than ever, I retraced my steps to Kensington.
13226  I had not been in my study five minutes when the maid entered to say that
13227  a person desired to see me.
13228  To my astonishment it was none other than my strange old book collector,
13229  his sharp, wizened face peering out from a frame of white hair, and his
13230  precious volumes, a dozen of them at least, wedged under his right arm.
13231 \end_layout
13232
13233 \end_inset
13234
13235
13236 \end_layout
13237
13238 \begin_layout Standard
13239 \begin_inset ERT
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243
13244
13245 \backslash
13246 setlength{
13247 \backslash
13248 columnsep}{10pt}
13249 \end_layout
13250
13251 \end_inset
13252
13253
13254 \begin_inset Note Note
13255 status collapsed
13256
13257 \begin_layout Plain Layout
13258 go back to the default
13259 \end_layout
13260
13261 \end_inset
13262
13263
13264 \end_layout
13265
13266 \begin_layout Subsubsection
13267 Vertical Lines
13268 \end_layout
13269
13270 \begin_layout Standard
13271 Between the columns a rule with a width of the length 
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276
13277 \backslash
13278 columnseprule
13279 \end_layout
13280
13281 \end_inset
13282
13283  is placed.
13284  If this rule width is set to 0
13285 \begin_inset space \thinspace{}
13286 \end_inset
13287
13288 pt (this is the default), the rule is suppressed.
13289  In the following example the rule is 2
13290 \begin_inset space \thinspace{}
13291 \end_inset
13292
13293 pt wide:
13294 \end_layout
13295
13296 \begin_layout Standard
13297 \begin_inset ERT
13298 status open
13299
13300 \begin_layout Plain Layout
13301
13302
13303 \backslash
13304 setlength{
13305 \backslash
13306 columnseprule}{2pt}
13307 \end_layout
13308
13309 \end_inset
13310
13311
13312 \end_layout
13313
13314 \begin_layout Standard
13315 \begin_inset Flex Multiple Columns
13316 status open
13317
13318 \begin_layout Plain Layout
13319
13320 \size small
13321 \begin_inset Quotes eld
13322 \end_inset
13323
13324 You're surprised to see me, sir,
13325 \begin_inset Quotes erd
13326 \end_inset
13327
13328  said he, in a strange, croaking voice.
13329 \end_layout
13330
13331 \begin_layout Plain Layout
13332
13333 \size small
13334 I acknowledged that I was.
13335 \end_layout
13336
13337 \begin_layout Plain Layout
13338
13339 \size small
13340 \begin_inset Quotes eld
13341 \end_inset
13342
13343 Well, I've a conscience, sir, and when I chanced to see you go into this
13344  house, as I came hobbling after you, I thought to myself, I'll just step
13345  in and see that kind gentleman, and tell him that if I was a bit gruff
13346  in my manner there was not any harm meant, and that I am much obliged to
13347  him for picking up my books.
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351
13352 \end_layout
13353
13354 \begin_layout Plain Layout
13355
13356 \size small
13357 \begin_inset Quotes eld
13358 \end_inset
13359
13360 You make too much of a trifle,
13361 \begin_inset Quotes erd
13362 \end_inset
13363
13364  said I.
13365  
13366 \begin_inset Quotes eld
13367 \end_inset
13368
13369 May I ask how you knew who I was?
13370 \begin_inset Quotes erd
13371 \end_inset
13372
13373
13374 \end_layout
13375
13376 \begin_layout Plain Layout
13377
13378 \size small
13379 \begin_inset Quotes eld
13380 \end_inset
13381
13382 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13383  you'll find my little bookshop at the corner of Church Street, and very
13384  happy to see you, I am sure.
13385  Maybe you collect yourself, sir.
13386  Here's 
13387 \noun on
13388 British
13389 \begin_inset space ~
13390 \end_inset
13391
13392 Birds
13393 \noun default
13394 , and 
13395 \noun on
13396 Catullus
13397 \noun default
13398 , and 
13399 \noun on
13400 The Holy War
13401 \noun default
13402
13403 \begin_inset space ~
13404 \end_inset
13405
13406 – a bargain, every one of them.
13407  With five volumes you could just fill that gap on that second shelf.
13408  It looks untidy, does it not, sir?
13409 \begin_inset Quotes erd
13410 \end_inset
13411
13412
13413 \end_layout
13414
13415 \end_inset
13416
13417
13418 \end_layout
13419
13420 \begin_layout Standard
13421 \begin_inset VSpace defskip
13422 \end_inset
13423
13424
13425 \end_layout
13426
13427 \begin_layout Standard
13428 The rule can be colored by redefining the command 
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433
13434 \backslash
13435 columnseprulecolor
13436 \end_layout
13437
13438 \end_inset
13439
13440 .
13441  This is done by inserting the command
13442 \end_layout
13443
13444 \begin_layout LyX-Code
13445
13446 \backslash
13447 renewcommand{
13448 \backslash
13449 columnseprulecolor}{
13450 \backslash
13451 color{red}}
13452 \end_layout
13453
13454 \begin_layout Standard
13455 as \SpecialChar TeX
13456  Code before the multicolumn inset.
13457  Replace 
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 red
13463 \end_layout
13464
13465 \end_inset
13466
13467  in this command by a color of your choice.
13468  You can use all pre- and self-defined colors.
13469  See the 
13470 \emph on
13471 EmbeddedObjects
13472 \emph default
13473  manual, section 
13474 \emph on
13475 Colored
13476 \begin_inset space ~
13477 \end_inset
13478
13479 Tables
13480 \emph default
13481  for more information about pre- and self-defined colors.
13482  To go back to the default color insert the command
13483 \end_layout
13484
13485 \begin_layout LyX-Code
13486
13487 \backslash
13488 renewcommand{
13489 \backslash
13490 columnseprulecolor}{
13491 \backslash
13492 normalcolor}
13493 \end_layout
13494
13495 \begin_layout Standard
13496 Here is the example with a cyan rule and 1
13497 \begin_inset space \thinspace{}
13498 \end_inset
13499
13500 cm column separation:
13501 \end_layout
13502
13503 \begin_layout Standard
13504 \begin_inset ERT
13505 status open
13506
13507 \begin_layout Plain Layout
13508
13509
13510 \backslash
13511 setlength{
13512 \backslash
13513 columnsep}{1cm}
13514 \end_layout
13515
13516 \begin_layout Plain Layout
13517
13518
13519 \backslash
13520 renewcommand{
13521 \backslash
13522 columnseprulecolor}{
13523 \backslash
13524 color{cyan}}
13525 \end_layout
13526
13527 \end_inset
13528
13529
13530 \end_layout
13531
13532 \begin_layout Standard
13533 \begin_inset Flex Multiple Columns
13534 status open
13535
13536 \begin_layout Plain Layout
13537
13538 \size small
13539 \begin_inset Quotes eld
13540 \end_inset
13541
13542 You're surprised to see me, sir,
13543 \begin_inset Quotes erd
13544 \end_inset
13545
13546  said he, in a strange, croaking voice.
13547 \end_layout
13548
13549 \begin_layout Plain Layout
13550
13551 \size small
13552 I acknowledged that I was.
13553 \end_layout
13554
13555 \begin_layout Plain Layout
13556
13557 \size small
13558 \begin_inset Quotes eld
13559 \end_inset
13560
13561 Well, I've a conscience, sir, and when I chanced to see you go into this
13562  house, as I came hobbling after you, I thought to myself, I'll just step
13563  in and see that kind gentleman, and tell him that if I was a bit gruff
13564  in my manner there was not any harm meant, and that I am much obliged to
13565  him for picking up my books.
13566 \begin_inset Quotes erd
13567 \end_inset
13568
13569
13570 \end_layout
13571
13572 \begin_layout Plain Layout
13573
13574 \size small
13575 \begin_inset Quotes eld
13576 \end_inset
13577
13578 You make too much of a trifle,
13579 \begin_inset Quotes erd
13580 \end_inset
13581
13582  said I.
13583  
13584 \begin_inset Quotes eld
13585 \end_inset
13586
13587 May I ask how you knew who I was?
13588 \begin_inset Quotes erd
13589 \end_inset
13590
13591
13592 \end_layout
13593
13594 \begin_layout Plain Layout
13595
13596 \size small
13597 \begin_inset Quotes eld
13598 \end_inset
13599
13600 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13601  you'll find my little bookshop at the corner of Church Street, and very
13602  happy to see you, I am sure.
13603  Maybe you collect yourself, sir.
13604  Here's 
13605 \noun on
13606 British
13607 \begin_inset space ~
13608 \end_inset
13609
13610 Birds
13611 \noun default
13612 , and 
13613 \noun on
13614 Catullus
13615 \noun default
13616 , and 
13617 \noun on
13618 The Holy War
13619 \noun default
13620
13621 \begin_inset space ~
13622 \end_inset
13623
13624 – a bargain, every one of them.
13625  With five volumes you could just fill that gap on that second shelf.
13626  It looks untidy, does it not, sir?
13627 \begin_inset Quotes erd
13628 \end_inset
13629
13630
13631 \end_layout
13632
13633 \end_inset
13634
13635
13636 \end_layout
13637
13638 \begin_layout Standard
13639 \begin_inset ERT
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643
13644
13645 \backslash
13646 setlength{
13647 \backslash
13648 columnseprule}{0pt}
13649 \end_layout
13650
13651 \begin_layout Plain Layout
13652
13653
13654 \backslash
13655 renewcommand{
13656 \backslash
13657 columnseprulecolor}{
13658 \backslash
13659 normalcolor}
13660 \end_layout
13661
13662 \end_inset
13663
13664
13665 \begin_inset Note Note
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 go back to the default
13670 \end_layout
13671
13672 \end_inset
13673
13674
13675 \end_layout
13676
13677 \begin_layout Section
13678
13679 \change_inserted 564990737 1671270380
13680 Paragraph Styles
13681 \end_layout
13682
13683 \begin_layout Subsection
13684
13685 \change_inserted 564990737 1671270398
13686 Custom
13687 \change_deleted 564990737 1671270396
13688 Non-standard
13689 \change_unchanged
13690  Paragraph Shapes
13691 \end_layout
13692
13693 \begin_layout Standard
13694 \noindent
13695 \SpecialChar LaTeX
13696  as well as any other text processor uses by default rectangular paragraphs.
13697  For special cases like for example posters, invitation cards or poems you
13698  can modify the paragraph shape to one of your choice.
13699  This can be done by using the \SpecialChar LaTeX
13700 -package 
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 shapepar
13706 \end_layout
13707
13708 \end_inset
13709
13710  which is loaded by using in the document settings the module 
13711 \family sans
13712 Custom paragraph shapes
13713 \family default
13714 .
13715 \end_layout
13716
13717 \begin_layout Subsubsection
13718 Predefined shapes
13719 \end_layout
13720
13721 \begin_layout Standard
13722
13723 \series bold
13724 shapepar
13725 \series default
13726  provides the following shapes:
13727 \end_layout
13728
13729 \begin_layout Standard
13730 \begin_inset Tabular
13731 <lyxtabular version="3" rows="13" columns="3">
13732 <features booktabs="true" islongtable="true" longtabularalignment="center">
13733 <column alignment="left" valignment="middle" width="16col%">
13734 <column alignment="left" valignment="middle" width="40col%">
13735 <column alignment="left" valignment="middle" width="35col%">
13736 <row endhead="true">
13737 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13738 \begin_inset Text
13739
13740 \begin_layout Plain Layout
13741
13742 \series bold
13743 \size small
13744 Name
13745 \end_layout
13746
13747 \end_inset
13748 </cell>
13749 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13750 \begin_inset Text
13751
13752 \begin_layout Plain Layout
13753
13754 \series bold
13755 \size small
13756 Description
13757 \end_layout
13758
13759 \end_inset
13760 </cell>
13761 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13762 \begin_inset Text
13763
13764 \begin_layout Plain Layout
13765
13766 \series bold
13767 \size small
13768 Annotation
13769 \end_layout
13770
13771 \end_inset
13772 </cell>
13773 </row>
13774 <row interlinespace="default">
13775 <cell alignment="left" valignment="top" usebox="none">
13776 \begin_inset Text
13777
13778 \begin_layout Plain Layout
13779
13780 \size small
13781 CDlabel
13782 \end_layout
13783
13784 \end_inset
13785 </cell>
13786 <cell alignment="left" valignment="top" usebox="none">
13787 \begin_inset Text
13788
13789 \begin_layout Plain Layout
13790
13791 \size small
13792 Circle with circular hole (in the size of a CD/DVD)
13793 \end_layout
13794
13795 \end_inset
13796 </cell>
13797 <cell alignment="left" valignment="top" usebox="none">
13798 \begin_inset Text
13799
13800 \begin_layout Plain Layout
13801
13802 \size small
13803 Cannot be scaled, take care there is not too much text
13804 \end_layout
13805
13806 \end_inset
13807 </cell>
13808 </row>
13809 <row interlinespace="default">
13810 <cell alignment="left" valignment="top" usebox="none">
13811 \begin_inset Text
13812
13813 \begin_layout Plain Layout
13814
13815 \size small
13816 Circle
13817 \end_layout
13818
13819 \end_inset
13820 </cell>
13821 <cell alignment="left" valignment="top" usebox="none">
13822 \begin_inset Text
13823
13824 \begin_layout Plain Layout
13825
13826 \size small
13827 Circle
13828 \end_layout
13829
13830 \end_inset
13831 </cell>
13832 <cell alignment="left" valignment="top" usebox="none">
13833 \begin_inset Text
13834
13835 \begin_layout Plain Layout
13836
13837 \size small
13838 Fragile, calculation might fail
13839 \end_layout
13840
13841 \end_inset
13842 </cell>
13843 </row>
13844 <row interlinespace="default">
13845 <cell alignment="left" valignment="top" usebox="none">
13846 \begin_inset Text
13847
13848 \begin_layout Plain Layout
13849
13850 \size small
13851 Diamond
13852 \end_layout
13853
13854 \end_inset
13855 </cell>
13856 <cell alignment="left" valignment="top" usebox="none">
13857 \begin_inset Text
13858
13859 \begin_layout Plain Layout
13860
13861 \size small
13862 Rhomboid (symbolizing a 
13863 \begin_inset Quotes eld
13864 \end_inset
13865
13866 diamond
13867 \begin_inset Quotes erd
13868 \end_inset
13869
13870 )
13871 \end_layout
13872
13873 \end_inset
13874 </cell>
13875 <cell alignment="left" valignment="top" usebox="none">
13876 \begin_inset Text
13877
13878 \begin_layout Plain Layout
13879
13880 \size small
13881 -
13882 \end_layout
13883
13884 \end_inset
13885 </cell>
13886 </row>
13887 <row interlinespace="default">
13888 <cell alignment="left" valignment="top" usebox="none">
13889 \begin_inset Text
13890
13891 \begin_layout Plain Layout
13892
13893 \size small
13894 Heart
13895 \end_layout
13896
13897 \end_inset
13898 </cell>
13899 <cell alignment="left" valignment="top" usebox="none">
13900 \begin_inset Text
13901
13902 \begin_layout Plain Layout
13903
13904 \size small
13905 Heart-like shape
13906 \end_layout
13907
13908 \end_inset
13909 </cell>
13910 <cell alignment="left" valignment="top" usebox="none">
13911 \begin_inset Text
13912
13913 \begin_layout Plain Layout
13914
13915 \size small
13916 -
13917 \end_layout
13918
13919 \end_inset
13920 </cell>
13921 </row>
13922 <row interlinespace="default">
13923 <cell alignment="left" valignment="top" usebox="none">
13924 \begin_inset Text
13925
13926 \begin_layout Plain Layout
13927
13928 \size small
13929 Hexagon
13930 \end_layout
13931
13932 \end_inset
13933 </cell>
13934 <cell alignment="left" valignment="top" usebox="none">
13935 \begin_inset Text
13936
13937 \begin_layout Plain Layout
13938
13939 \size small
13940 Hexagon
13941 \end_layout
13942
13943 \end_inset
13944 </cell>
13945 <cell alignment="left" valignment="top" usebox="none">
13946 \begin_inset Text
13947
13948 \begin_layout Plain Layout
13949
13950 \size small
13951 -
13952 \end_layout
13953
13954 \end_inset
13955 </cell>
13956 </row>
13957 <row interlinespace="default">
13958 <cell alignment="left" valignment="top" usebox="none">
13959 \begin_inset Text
13960
13961 \begin_layout Plain Layout
13962
13963 \size small
13964 Nut
13965 \end_layout
13966
13967 \end_inset
13968 </cell>
13969 <cell alignment="left" valignment="top" usebox="none">
13970 \begin_inset Text
13971
13972 \begin_layout Plain Layout
13973
13974 \size small
13975 Nut for bolt (hexagon with circular hole)
13976 \end_layout
13977
13978 \end_inset
13979 </cell>
13980 <cell alignment="left" valignment="top" usebox="none">
13981 \begin_inset Text
13982
13983 \begin_layout Plain Layout
13984
13985 \size small
13986 -
13987 \end_layout
13988
13989 \end_inset
13990 </cell>
13991 </row>
13992 <row interlinespace="default">
13993 <cell alignment="left" valignment="top" usebox="none">
13994 \begin_inset Text
13995
13996 \begin_layout Plain Layout
13997
13998 \size small
13999 Square
14000 \end_layout
14001
14002 \end_inset
14003 </cell>
14004 <cell alignment="left" valignment="top" usebox="none">
14005 \begin_inset Text
14006
14007 \begin_layout Plain Layout
14008
14009 \size small
14010 Square
14011 \end_layout
14012
14013 \end_inset
14014 </cell>
14015 <cell alignment="left" valignment="top" usebox="none">
14016 \begin_inset Text
14017
14018 \begin_layout Plain Layout
14019
14020 \size small
14021 -
14022 \end_layout
14023
14024 \end_inset
14025 </cell>
14026 </row>
14027 <row interlinespace="default">
14028 <cell alignment="left" valignment="top" usebox="none">
14029 \begin_inset Text
14030
14031 \begin_layout Plain Layout
14032
14033 \size small
14034 Star
14035 \end_layout
14036
14037 \end_inset
14038 </cell>
14039 <cell alignment="left" valignment="top" usebox="none">
14040 \begin_inset Text
14041
14042 \begin_layout Plain Layout
14043
14044 \size small
14045 Five-point star
14046 \end_layout
14047
14048 \end_inset
14049 </cell>
14050 <cell alignment="left" valignment="top" usebox="none">
14051 \begin_inset Text
14052
14053 \begin_layout Plain Layout
14054
14055 \size small
14056 -
14057 \end_layout
14058
14059 \end_inset
14060 </cell>
14061 </row>
14062 <row interlinespace="default">
14063 <cell alignment="left" valignment="top" usebox="none">
14064 \begin_inset Text
14065
14066 \begin_layout Plain Layout
14067
14068 \size small
14069 Candle
14070 \end_layout
14071
14072 \end_inset
14073 </cell>
14074 <cell alignment="left" valignment="top" usebox="none">
14075 \begin_inset Text
14076
14077 \begin_layout Plain Layout
14078
14079 \size small
14080 Burning candle
14081 \end_layout
14082
14083 \end_inset
14084 </cell>
14085 <cell alignment="left" valignment="top" usebox="none">
14086 \begin_inset Text
14087
14088 \begin_layout Plain Layout
14089
14090 \size small
14091 -
14092 \end_layout
14093
14094 \end_inset
14095 </cell>
14096 </row>
14097 <row interlinespace="default">
14098 <cell alignment="left" valignment="top" usebox="none">
14099 \begin_inset Text
14100
14101 \begin_layout Plain Layout
14102
14103 \size small
14104 Drop down/up
14105 \end_layout
14106
14107 \end_inset
14108 </cell>
14109 <cell alignment="left" valignment="top" usebox="none">
14110 \begin_inset Text
14111
14112 \begin_layout Plain Layout
14113
14114 \size small
14115 Normal/reversed rain drop
14116 \end_layout
14117
14118 \end_inset
14119 </cell>
14120 <cell alignment="left" valignment="top" usebox="none">
14121 \begin_inset Text
14122
14123 \begin_layout Plain Layout
14124
14125 \size small
14126 Fragile, calculation might fail
14127 \end_layout
14128
14129 \end_inset
14130 </cell>
14131 </row>
14132 <row interlinespace="default">
14133 <cell alignment="left" valignment="top" usebox="none">
14134 \begin_inset Text
14135
14136 \begin_layout Plain Layout
14137
14138 \size small
14139 \SpecialChar TeX
14140
14141 \end_layout
14142
14143 \end_inset
14144 </cell>
14145 <cell alignment="left" valignment="top" usebox="none">
14146 \begin_inset Text
14147
14148 \begin_layout Plain Layout
14149
14150 \size small
14151 The \SpecialChar TeX
14152  logo
14153 \end_layout
14154
14155 \end_inset
14156 </cell>
14157 <cell alignment="left" valignment="top" usebox="none">
14158 \begin_inset Text
14159
14160 \begin_layout Plain Layout
14161
14162 \size small
14163 -
14164 \end_layout
14165
14166 \end_inset
14167 </cell>
14168 </row>
14169 <row interlinespace="default">
14170 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14171 \begin_inset Text
14172
14173 \begin_layout Plain Layout
14174
14175 \size small
14176 Triangle up/down/
14177 \begin_inset Newline newline
14178 \end_inset
14179
14180 left/right
14181 \end_layout
14182
14183 \end_inset
14184 </cell>
14185 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14186 \begin_inset Text
14187
14188 \begin_layout Plain Layout
14189
14190 \size small
14191 Triangles in different orientations
14192 \end_layout
14193
14194 \end_inset
14195 </cell>
14196 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14197 \begin_inset Text
14198
14199 \begin_layout Plain Layout
14200
14201 \size small
14202 -
14203 \end_layout
14204
14205 \end_inset
14206 </cell>
14207 </row>
14208 </lyxtabular>
14209
14210 \end_inset
14211
14212
14213 \end_layout
14214
14215 \begin_layout Standard
14216 To use a shape for your paragraph, simply select it in \SpecialChar LyX
14217 's pull-down box
14218  for environments in the toolbar.
14219 \end_layout
14220
14221 \begin_layout Standard
14222 \begin_inset Newpage newpage
14223 \end_inset
14224
14225
14226 \end_layout
14227
14228 \begin_layout Standard
14229 Here is an example paragraph in the shape of a nut:
14230 \end_layout
14231
14232 \begin_layout Standard
14233 \begin_inset VSpace bigskip
14234 \end_inset
14235
14236
14237 \end_layout
14238
14239 \begin_layout Nut
14240
14241 \lang latin
14242 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14243  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14244  voluptua.
14245  At vero eos et accusam et justo duo dolores et ea rebum.
14246  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14247  sit amet.
14248  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14249  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14250  voluptua.
14251 \end_layout
14252
14253 \begin_layout Standard
14254 \begin_inset VSpace bigskip
14255 \end_inset
14256
14257
14258 \end_layout
14259
14260 \begin_layout Standard
14261 \begin_inset Note Greyedout
14262 status open
14263
14264 \begin_layout Plain Layout
14265
14266 \series bold
14267 Note
14268 \series default
14269
14270 \family sans
14271 shapepar
14272 \family default
14273  paragraphs cannot run over a page break.
14274 \end_layout
14275
14276 \end_inset
14277
14278
14279 \end_layout
14280
14281 \begin_layout Standard
14282 \begin_inset VSpace bigskip
14283 \end_inset
14284
14285
14286 \end_layout
14287
14288 \begin_layout Standard
14289 The package 
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 shapepar
14295 \end_layout
14296
14297 \end_inset
14298
14299  takes care that the shape will always be preserved, no matter how much
14300  text is in the paragraph.
14301  Therefore the paragraph size changes with the amount of contained text.
14302  This can lead to paragraph sizes exceeding the page margins.
14303  To demonstrate the size scaling, here is the same example paragraph but
14304  with twice as much text:
14305 \end_layout
14306
14307 \begin_layout Standard
14308 \begin_inset Newpage newpage
14309 \end_inset
14310
14311
14312 \end_layout
14313
14314 \begin_layout Nut
14315
14316 \lang latin
14317 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14318  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14319  voluptua.
14320  At vero eos et accusam et justo duo dolores et ea rebum.
14321  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14322  sit amet.
14323  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14324  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14325  voluptua.
14326  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14327  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14328  voluptua.
14329  At vero eos et accusam et justo duo dolores et ea rebum.
14330  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14331  sit amet.
14332  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14333  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14334  voluptua.
14335 \end_layout
14336
14337 \begin_layout Standard
14338 \begin_inset VSpace bigskip
14339 \end_inset
14340
14341
14342 \end_layout
14343
14344 \begin_layout Standard
14345 An exception is the shape 
14346 \family sans
14347 CDlabel
14348 \family default
14349 .
14350  It cannot be scaled because it must fit the size of a CD/DVD.
14351  Therefore the amount of text that fits into the shape is limited.
14352 \begin_inset Newline newline
14353 \end_inset
14354
14355 The 
14356 \family sans
14357 drop
14358 \family default
14359  shapes and the 
14360 \family sans
14361 circle
14362 \family default
14363  shape are fragile, meaning that the calculation of their size can fail,
14364  depending on the amount of text.
14365  You will then get the \SpecialChar LaTeX
14366  error 
14367 \begin_inset Quotes eld
14368 \end_inset
14369
14370 Arithmetic overflow
14371 \begin_inset Quotes erd
14372 \end_inset
14373
14374 .
14375  In this case one can try to remove or add some text; if nothing works one
14376  has to use another shape.
14377 \end_layout
14378
14379 \begin_layout Standard
14380 \begin_inset VSpace bigskip
14381 \end_inset
14382
14383
14384 \end_layout
14385
14386 \begin_layout Standard
14387 For shapes with tips you will maybe see that \SpecialChar LaTeX
14388 's hyphenation routine fails
14389  for text in the tips.
14390  Therefore it is often necessary to add hyphenation points 
14391 \family sans
14392 (
14393 \begin_inset Info
14394 type  "shortcut"
14395 arg   "specialchar-insert hyphenation"
14396 \end_inset
14397
14398
14399 \family default
14400 ) to the corresponding text parts.
14401 \end_layout
14402
14403 \begin_layout Standard
14404 \begin_inset VSpace bigskip
14405 \end_inset
14406
14407
14408 \end_layout
14409
14410 \begin_layout Standard
14411 Shapepar paragraphs are either always centered or placed on the page so
14412  that their left border touches the left page margin.
14413  You can therefore not use the paragraph dialog to align such paragraphs.
14414  A solution is to put the paragraph into a minipage or parbox and align
14415  the box.
14416  The problem is hereby to find the right width for the box.
14417  Because if it is too wide and you center the box, the paragraph is not
14418  centered too because it sticks at the left side of the box.
14419  So you might have to play a bit with the width until it fits.
14420  Here are two heart-shaped paragraphs, the first one is not aligned, the
14421  second one is right-aligned:
14422 \end_layout
14423
14424 \begin_layout Standard
14425 \begin_inset Newpage newpage
14426 \end_inset
14427
14428
14429 \end_layout
14430
14431 \begin_layout Heart
14432 \noindent
14433
14434 \lang latin
14435 Lo\SpecialChar softhyphen
14436 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14437  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14438  voluptua.
14439  At vero eos et accusam et justo duo dolores et ea rebum.
14440  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14441  sit amet.
14442 \end_layout
14443
14444 \begin_layout Standard
14445 \begin_inset VSpace bigskip
14446 \end_inset
14447
14448
14449 \end_layout
14450
14451 \begin_layout Standard
14452 \noindent
14453 \align right
14454 \begin_inset Box Frameless
14455 position "t"
14456 hor_pos "c"
14457 has_inner_box 1
14458 inner_pos "t"
14459 use_parbox 1
14460 use_makebox 0
14461 width "42col%"
14462 special "none"
14463 height "1in"
14464 height_special "totalheight"
14465 thickness "0.4pt"
14466 separation "3pt"
14467 shadowsize "4pt"
14468 framecolor "black"
14469 backgroundcolor "none"
14470 status open
14471
14472 \begin_layout Heart
14473 \noindent
14474
14475 \lang latin
14476 Lo\SpecialChar softhyphen
14477 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14478  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14479  voluptua.
14480  At vero eos et accusam et justo duo dolores et ea rebum.
14481  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14482  sit amet.
14483 \end_layout
14484
14485 \end_inset
14486
14487
14488 \end_layout
14489
14490 \begin_layout Subsubsection
14491 Custom shapes
14492 \end_layout
14493
14494 \begin_layout Standard
14495 You can define any shape you want.
14496  Doing this manually is a lot of work because every coordinate must be specified.
14497  But there is a way to let the computer calculate the coordinates:
14498 \end_layout
14499
14500 \begin_layout Enumerate
14501 Install the program 
14502 \begin_inset CommandInset href
14503 LatexCommand href
14504 name "Jpgfdraw"
14505 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
14506 literal "false"
14507
14508 \end_inset
14509
14510 .
14511 \end_layout
14512
14513 \begin_layout Enumerate
14514 In 
14515 \family sans
14516 Jpgfdraw
14517 \family default
14518  go to the menu 
14519 \family sans
14520 TeX/LaTeX\SpecialChar menuseparator
14521 Settings\SpecialChar menuseparator
14522 Set Normal Size
14523 \family default
14524  and select the font size you are using in your document.
14525  For example this document uses the size 12
14526 \begin_inset space \thinspace{}
14527 \end_inset
14528
14529 pt.
14530 \end_layout
14531
14532 \begin_layout Enumerate
14533 Draw a shape.
14534 \end_layout
14535
14536 \begin_layout Enumerate
14537 Use the menu 
14538 \family sans
14539 TeX/LaTeX\SpecialChar menuseparator
14540 Shapepar
14541 \family default
14542  to export the shape to coordinates.
14543  In the appearing dialog use either the outline of your shape for the coordinate
14544 s or the path itself.
14545 \begin_inset Foot
14546 status collapsed
14547
14548 \begin_layout Plain Layout
14549 For more information see 
14550 \begin_inset CommandInset href
14551 LatexCommand href
14552 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
14553 literal "false"
14554
14555 \end_inset
14556
14557
14558 \end_layout
14559
14560 \end_inset
14561
14562
14563 \end_layout
14564
14565 \begin_layout Standard
14566 The coordinates are written into a \SpecialChar TeX
14567  file.
14568  To use it for your \SpecialChar LyX
14569  document
14570 \end_layout
14571
14572 \begin_layout Enumerate
14573 Place the cursor before the first character of your paragraph (or into a
14574  new empty one).
14575 \end_layout
14576
14577 \begin_layout Enumerate
14578 Open in \SpecialChar LyX
14579  the menu 
14580 \family sans
14581 Insert\SpecialChar menuseparator
14582 File\SpecialChar menuseparator
14583 Child
14584 \begin_inset space ~
14585 \end_inset
14586
14587 Document
14588 \family default
14589 , select the file and use 
14590 \family sans
14591 Input
14592 \family default
14593  as 
14594 \family sans
14595 Include Type.
14596 \end_layout
14597
14598 \begin_layout Standard
14599 \begin_inset VSpace defskip
14600 \end_inset
14601
14602
14603 \end_layout
14604
14605 \begin_layout Standard
14606 \begin_inset Note Greyedout
14607 status open
14608
14609 \begin_layout Plain Layout
14610
14611 \series bold
14612 Note
14613 \series default
14614 : The changed shape only applies to the current paragraph; everything is
14615  reset to normal for the next paragraph.
14616  Therefore the shape definition file must be input into every paragraph
14617  with the desired shape.
14618 \end_layout
14619
14620 \end_inset
14621
14622
14623 \end_layout
14624
14625 \begin_layout Standard
14626 \begin_inset VSpace bigskip
14627 \end_inset
14628
14629
14630 \end_layout
14631
14632 \begin_layout Standard
14633 Here is an example:
14634 \end_layout
14635
14636 \begin_layout Standard
14637 \begin_inset VSpace bigskip
14638 \end_inset
14639
14640
14641 \end_layout
14642
14643 \begin_layout Standard
14644 \begin_inset CommandInset include
14645 LatexCommand input
14646 filename "SpecialParagraphShape.tex"
14647 literal "true"
14648
14649 \end_inset
14650
14651
14652 \lang latin
14653 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14654  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14655  voluptua.
14656  At vero eos et accusam et justo duo dolores et ea rebum.
14657  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14658  sit amet.
14659  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14660  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14661  voluptua.
14662 \end_layout
14663
14664 \begin_layout Standard
14665 \begin_inset VSpace bigskip
14666 \end_inset
14667
14668
14669 \end_layout
14670
14671 \begin_layout Standard
14672
14673 \series bold
14674 A tip:
14675 \series default
14676  to draw complexer shapes in 
14677 \family sans
14678 Jpgfdraw
14679 \family default
14680  you can draw the shape in a program of your choice and import the resulting
14681  image to 
14682 \family sans
14683 Jpgfdraw
14684 \family default
14685 .
14686  Then you only need to draw a line or spline along the outline of the image.
14687 \end_layout
14688
14689 \begin_layout Standard
14690 \begin_inset VSpace bigskip
14691 \end_inset
14692
14693
14694 \end_layout
14695
14696 \begin_layout Standard
14697 The module 
14698 \family sans
14699 Custom paragraph shapes
14700 \family default
14701  also provides the two commands 
14702 \family sans
14703 shapepar
14704 \family default
14705  and 
14706 \family sans
14707 Shapepar
14708 \family default
14709  which can be used to define custom shapes coordinate by coordinate.
14710 \begin_inset Foot
14711 status collapsed
14712
14713 \begin_layout Plain Layout
14714 These commands are internally used for all shapes described here.
14715 \end_layout
14716
14717 \end_inset
14718
14719  For information how these styles are used and about further customization
14720  possibilities, have a look at the 
14721 \begin_inset CommandInset href
14722 LatexCommand href
14723 name "documentation"
14724 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
14725 literal "false"
14726
14727 \end_inset
14728
14729  of the package 
14730 \begin_inset Flex Code
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734 shapepar
14735 \end_layout
14736
14737 \end_inset
14738
14739 .
14740 \end_layout
14741
14742 \begin_layout Chapter
14743 Supplemental Tools
14744 \end_layout
14745
14746 \begin_layout Section
14747 Customizing Bibliographies with Bib\SpecialChar TeX
14748  or Biblatex
14749 \end_layout
14750
14751 \begin_layout Standard
14752 The most basic information about how to use Bib\SpecialChar TeX
14753  or 
14754 \family sans
14755 Biblatex
14756 \family default
14757  with \SpecialChar LyX
14758  is contained in the section 
14759 \emph on
14760 Bibliography databases
14761 \emph default
14762  of the 
14763 \emph on
14764 User's Guide
14765 \emph default
14766 .
14767  The following subsections explain special bibliography features supported
14768  by \SpecialChar LyX
14769 .
14770 \end_layout
14771
14772 \begin_layout Subsection
14773 Alternative Citation Styles
14774 \end_layout
14775
14776 \begin_layout Standard
14777 Standard Bib\SpecialChar TeX
14778  uses numbers (e.
14779 \begin_inset space \thinspace{}
14780 \end_inset
14781
14782 g.
14783 \begin_inset space \space{}
14784 \end_inset
14785
14786
14787 \begin_inset Quotes eld
14788 \end_inset
14789
14790 [12]
14791 \begin_inset Quotes erd
14792 \end_inset
14793
14794 ) to refer to a cited work.
14795  However, in many scientific disciplines, other citation styles are in use.
14796  The most common one is the author-year style (e.
14797 \begin_inset space \thinspace{}
14798 \end_inset
14799
14800 g.
14801 \begin_inset space \space{}
14802 \end_inset
14803
14804
14805 \begin_inset Quotes eld
14806 \end_inset
14807
14808 Knuth 1984a
14809 \begin_inset Quotes erd
14810 \end_inset
14811
14812 ).
14813  \SpecialChar LyX
14814  supports three packages that provide this style, 
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 biblatex
14820 \end_layout
14821
14822 \end_inset
14823
14824
14825 \begin_inset Flex Code
14826 status collapsed
14827
14828 \begin_layout Plain Layout
14829 natbib
14830 \end_layout
14831
14832 \end_inset
14833
14834 , and 
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 jurabib
14840 \end_layout
14841
14842 \end_inset
14843
14844 .
14845  Each of these packages has their pros and cons, which cannot be listed
14846  in detail.
14847  If you only want to have simple author-year (or author-numerical) style,
14848  or if you want to use one of the countless style files for 
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 natbib
14854 \end_layout
14855
14856 \end_inset
14857
14858 , then the established 
14859 \begin_inset Flex Code
14860 status collapsed
14861
14862 \begin_layout Plain Layout
14863 natbib
14864 \end_layout
14865
14866 \end_inset
14867
14868  package is probably your choice.
14869  If you look for specific citation styles common in law studies, you might
14870  consider the 
14871 \begin_inset Flex Code
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 jurabib
14876 \end_layout
14877
14878 \end_inset
14879
14880  package.
14881  If you want to have full control over the formatting or look for advanced
14882  features such as ibidem, footnote citations, full title citations, advanced
14883  date formats (such as 400 BC) or full localization to other languages than
14884  English, you should definitely consider 
14885 \begin_inset Flex Code
14886 status collapsed
14887
14888 \begin_layout Plain Layout
14889 biblatex
14890 \end_layout
14891
14892 \end_inset
14893
14894 , which exceeds all other packages in terms of features, but is also quite
14895  heavy and more resource-hungry.
14896 \end_layout
14897
14898 \begin_layout Standard
14899 The handling of these packages in \SpecialChar LyX
14900  is basically the same.
14901  Go to 
14902 \begin_inset Flex Noun
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906 Document\SpecialChar menuseparator
14907 Settings
14908 \end_layout
14909
14910 \end_inset
14911
14912  and select under 
14913 \begin_inset Flex Noun
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917 Bibliography
14918 \end_layout
14919
14920 \end_inset
14921
14922  the 
14923 \begin_inset Flex Noun
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 Style Format
14928 \end_layout
14929
14930 \end_inset
14931
14932  
14933 \begin_inset Flex Noun
14934 status collapsed
14935
14936 \begin_layout Plain Layout
14937 Basic (BibTeX)
14938 \end_layout
14939
14940 \end_inset
14941
14942
14943 \begin_inset Flex Noun
14944 status collapsed
14945
14946 \begin_layout Plain Layout
14947 Biblatex
14948 \end_layout
14949
14950 \end_inset
14951
14952
14953 \begin_inset Flex Noun
14954 status collapsed
14955
14956 \begin_layout Plain Layout
14957 Biblatex (Natbib mode)
14958 \end_layout
14959
14960 \end_inset
14961
14962
14963 \begin_inset Flex Noun
14964 status collapsed
14965
14966 \begin_layout Plain Layout
14967 Natbib (BibTeX)
14968 \end_layout
14969
14970 \end_inset
14971
14972  or 
14973 \begin_inset Flex Noun
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 Jurabib (BibTeX)
14978 \end_layout
14979
14980 \end_inset
14981
14982  (see sec.
14983 \begin_inset space ~
14984 \end_inset
14985
14986 6.5.3 in the User's Guide for more information on these choices).
14987  With all these packages, you will get some extra features in the citation
14988  dialog and you can select the style of the reference (
14989 \begin_inset Quotes eld
14990 \end_inset
14991
14992 Knuth 1984
14993 \begin_inset Quotes erd
14994 \end_inset
14995
14996
14997 \begin_inset Quotes eld
14998 \end_inset
14999
15000 Knuth (1984)
15001 \begin_inset Quotes erd
15002 \end_inset
15003
15004
15005 \begin_inset Quotes eld
15006 \end_inset
15007
15008 Knuth, 1984
15009 \begin_inset Quotes erd
15010 \end_inset
15011
15012
15013 \begin_inset Quotes eld
15014 \end_inset
15015
15016 1984
15017 \begin_inset Quotes erd
15018 \end_inset
15019
15020  etc.).
15021  Note that either package needs specifically designed style files.
15022  They all ship their own, but there are lots of additional style files,
15023  and there is even an interactive style file builder
15024 \begin_inset Foot
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 See 
15029 \begin_inset Flex URL
15030 status open
15031
15032 \begin_layout Plain Layout
15033
15034 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
15035 \end_layout
15036
15037 \end_inset
15038
15039
15040 \end_layout
15041
15042 \end_inset
15043
15044  for 
15045 \begin_inset Flex Code
15046 status collapsed
15047
15048 \begin_layout Plain Layout
15049 natbib
15050 \end_layout
15051
15052 \end_inset
15053
15054 .
15055 \end_layout
15056
15057 \begin_layout Subsection
15058 Subdivided Bibliographies
15059 \end_layout
15060
15061 \begin_layout Standard
15062 Sometimes you might need to divide your bibliography into several sections.
15063  If you are for instance a historian, the possibility to separate sources
15064  and scientific works is most likely a 
15065 \begin_inset Quotes eld
15066 \end_inset
15067
15068 must have
15069 \begin_inset Quotes erd
15070 \end_inset
15071
15072 .
15073  Unfortunately, Bib\SpecialChar TeX
15074  itself does not allow you to do this.
15075  But with the help of some \SpecialChar LaTeX
15076  packages, Bib\SpecialChar TeX
15077  can be extended to fit your needs.
15078 \end_layout
15079
15080 \begin_layout Standard
15081 \SpecialChar LyX
15082  provides native support for one of these packages, 
15083 \family typewriter
15084 bibtopic
15085 \family default
15086 .
15087 \begin_inset Foot
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 Available from 
15092 \begin_inset Flex URL
15093 status open
15094
15095 \begin_layout Plain Layout
15096
15097 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
15098 \end_layout
15099
15100 \end_inset
15101
15102
15103 \end_layout
15104
15105 \end_inset
15106
15107  The advantage of this package (compared to other packages such as 
15108 \family typewriter
15109 multibib
15110 \family default
15111 ) is that you don't need to define new citation commands.
15112  Instead, you need to prepare different bibliographic databases which include
15113  the entries for the different sections of the bibliography.
15114  For example: If you want to divide your bibliography into the sections
15115  
15116 \begin_inset Quotes eld
15117 \end_inset
15118
15119 Sources
15120 \begin_inset Quotes erd
15121 \end_inset
15122
15123  and 
15124 \begin_inset Quotes eld
15125 \end_inset
15126
15127 Scientific works
15128 \begin_inset Quotes erd
15129 \end_inset
15130
15131 , you first need to create two bibliographic databases, e.
15132 \begin_inset space \thinspace{}
15133 \end_inset
15134
15135 g.
15136 \begin_inset space \space{}
15137 \end_inset
15138
15139
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 sources.bib
15145 \end_layout
15146
15147 \end_inset
15148
15149  and 
15150 \begin_inset Flex Code
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154 scientific.bib
15155 \end_layout
15156
15157 \end_inset
15158
15159 .
15160  
15161 \end_layout
15162
15163 \begin_layout Standard
15164 Go to 
15165 \begin_inset Flex Noun
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 Document\SpecialChar menuseparator
15170 Settings
15171 \end_layout
15172
15173 \end_inset
15174
15175  and check under 
15176 \begin_inset Flex Noun
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 Bibliography
15181 \end_layout
15182
15183 \end_inset
15184
15185  the option 
15186 \begin_inset Flex Noun
15187 status collapsed
15188
15189 \begin_layout Plain Layout
15190 Subdivided bibliography
15191 \end_layout
15192
15193 \end_inset
15194
15195 .
15196  Now you can insert multiple Bib\SpecialChar TeX
15197  bibliographies, one for each section of
15198  your bibliography.
15199  Returning to our example: Insert the Bib\SpecialChar TeX
15200  bibliography 
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 sources.bib
15206 \end_layout
15207
15208 \end_inset
15209
15210  and a second one for the database 
15211 \begin_inset Flex Code
15212 status collapsed
15213
15214 \begin_layout Plain Layout
15215 scientific.bib
15216 \end_layout
15217
15218 \end_inset
15219
15220 .
15221  You are free to use the same or different styles for each section.
15222  Additionally, you can choose if the bibliography section should contain
15223  
15224 \begin_inset Quotes eld
15225 \end_inset
15226
15227 all cited references
15228 \begin_inset Quotes erd
15229 \end_inset
15230
15231  of the specified database(s) (which is the default), 
15232 \begin_inset Quotes eld
15233 \end_inset
15234
15235 all uncited references
15236 \begin_inset Quotes erd
15237 \end_inset
15238
15239  or even 
15240 \begin_inset Quotes eld
15241 \end_inset
15242
15243 all references
15244 \begin_inset Quotes erd
15245 \end_inset
15246
15247 .
15248  This might be useful if you would like to separate your bibliography into
15249  three sections: 
15250 \begin_inset Quotes eld
15251 \end_inset
15252
15253 Cited sources
15254 \begin_inset Quotes erd
15255 \end_inset
15256
15257
15258 \begin_inset Quotes eld
15259 \end_inset
15260
15261 Uncited sources
15262 \begin_inset Quotes erd
15263 \end_inset
15264
15265 , and 
15266 \begin_inset Quotes eld
15267 \end_inset
15268
15269 Scientific works
15270 \begin_inset Quotes erd
15271 \end_inset
15272
15273 .
15274  The titles for the sections can be added as ordinary sections or subsections.
15275  Since 
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 bibtopic
15281 \end_layout
15282
15283 \end_inset
15284
15285  removes the bibliography title, you have to manually re-add that, too (as
15286  a chapter* or section*, for instance).
15287 \end_layout
15288
15289 \begin_layout Standard
15290 With 
15291 \family sans
15292 Biblatex
15293 \family default
15294 , the procedure is a bit different.
15295  Since 
15296 \family typewriter
15297 bibtopic
15298 \family default
15299  does not work with 
15300 \family sans
15301 Biblatex
15302 \family default
15303 , the aforementioned 
15304 \begin_inset Flex Noun
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 Subdivided bibliography
15309 \end_layout
15310
15311 \end_inset
15312
15313  option is disabled if you use 
15314 \family sans
15315 Biblatex
15316 \family default
15317 .
15318  However, 
15319 \family sans
15320 Biblatex
15321 \family default
15322  provides its own means to generate subdivided bibliographies.
15323  You can either add keywords to bibliography entries via the 
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 keywords
15329 \end_layout
15330
15331 \end_inset
15332
15333  entry option and then filter bibliography sections by keyword (by adding
15334  
15335 \begin_inset Flex Code
15336 status collapsed
15337
15338 \begin_layout Plain Layout
15339 keyword=mykeyword
15340 \end_layout
15341
15342 \end_inset
15343
15344  to the 
15345 \begin_inset Flex Noun
15346 status collapsed
15347
15348 \begin_layout Plain Layout
15349 Options
15350 \end_layout
15351
15352 \end_inset
15353
15354  field of the dialog that opens if you left-click on the 
15355 \begin_inset Flex Noun
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 Biblatex Generated Bibliography
15360 \end_layout
15361
15362 \end_inset
15363
15364  button), or you can filter by entry types (such as 
15365 \emph on
15366 book
15367 \emph default
15368  or 
15369 \emph on
15370 article
15371 \emph default
15372 ) by entering e.
15373 \begin_inset space \thinspace{}
15374 \end_inset
15375
15376 g.
15377  
15378 \begin_inset Flex Code
15379 status collapsed
15380
15381 \begin_layout Plain Layout
15382 type=book
15383 \end_layout
15384
15385 \end_inset
15386
15387  or 
15388 \begin_inset Flex Code
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 nottype=collection
15393 \end_layout
15394
15395 \end_inset
15396
15397  to the mentioned 
15398 \begin_inset Flex Noun
15399 status collapsed
15400
15401 \begin_layout Plain Layout
15402 Options
15403 \end_layout
15404
15405 \end_inset
15406
15407  field, or you can create so-called 
15408 \begin_inset Quotes eld
15409 \end_inset
15410
15411 Bibliography Categories
15412 \begin_inset Quotes erd
15413 \end_inset
15414
15415  to which you can assign individual entries.
15416  Please refer to the Biblatex manual, section 
15417 \emph on
15418 Subdivided Bibliographies
15419 \emph default
15420 , for details.
15421 \end_layout
15422
15423 \begin_layout Subsection
15424 Multiple Bibliographies
15425 \begin_inset CommandInset label
15426 LatexCommand label
15427 name "subsec:Multiple-Bibliographies"
15428
15429 \end_inset
15430
15431
15432 \end_layout
15433
15434 \begin_layout Standard
15435 Multiple bibliographies, e.
15436 \begin_inset space \thinspace{}
15437 \end_inset
15438
15439 g.
15440 \begin_inset space \space{}
15441 \end_inset
15442
15443 a bibliography for each part, chapter, section, subsection or child (sub-documen
15444 t) of the document, are also supported by \SpecialChar LyX
15445 .
15446  In order to enable it, go to 
15447 \begin_inset Flex Noun
15448 status collapsed
15449
15450 \begin_layout Plain Layout
15451 Document\SpecialChar menuseparator
15452 Settings\SpecialChar menuseparator
15453 Bibliography
15454 \end_layout
15455
15456 \end_inset
15457
15458  and select the relevant unit (e.
15459 \begin_inset space \thinspace{}
15460 \end_inset
15461
15462 g., 
15463 \begin_inset Quotes eld
15464 \end_inset
15465
15466 per section
15467 \begin_inset Quotes erd
15468 \end_inset
15469
15470 ) in the 
15471 \begin_inset Flex Noun
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 Multiple Bibliographies
15476 \end_layout
15477
15478 \end_inset
15479
15480  combo box.
15481  Then add a Bib(la)\SpecialChar TeX
15482  bibliography to each unit (e.
15483 \begin_inset space \thinspace{}
15484 \end_inset
15485
15486 g., section) of your document.
15487  In the output, a separate bibliography, containing only the references
15488  done in the current unit is generated.
15489 \end_layout
15490
15491 \begin_layout Standard
15492 If you use Bib\SpecialChar TeX
15493 , either the 
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 chapterbib
15499 \end_layout
15500
15501 \end_inset
15502
15503  or the 
15504 \begin_inset Flex Code
15505 status collapsed
15506
15507 \begin_layout Plain Layout
15508 bibtopic
15509 \end_layout
15510
15511 \end_inset
15512
15513  package is used to create multiple bibliographies.
15514  The former package is used if you select 
15515 \begin_inset Quotes eld
15516 \end_inset
15517
15518 per child document
15519 \begin_inset Quotes erd
15520 \end_inset
15521
15522  and do 
15523 \emph on
15524 not
15525 \emph default
15526  check 
15527 \begin_inset Flex Noun
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531 Sectioned Bibliography
15532 \end_layout
15533
15534 \end_inset
15535
15536 .
15537  In all other cases, 
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 bibtopic
15543 \end_layout
15544
15545 \end_inset
15546
15547  is used.
15548 \begin_inset Foot
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 An alternative approach, if you are willing to use some 
15553 \begin_inset Flex Noun
15554 status collapsed
15555
15556 \begin_layout Plain Layout
15557 \SpecialChar TeX
15558  Code
15559 \end_layout
15560
15561 \end_inset
15562
15563  (see section
15564 \begin_inset space ~
15565 \end_inset
15566
15567
15568 \begin_inset CommandInset ref
15569 LatexCommand ref
15570 reference "sec:Inserting-TeX-Code"
15571
15572 \end_inset
15573
15574 ), is to use the 
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 bibunits
15580 \end_layout
15581
15582 \end_inset
15583
15584  package.
15585 \end_layout
15586
15587 \end_inset
15588
15589  If 
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 bibtopic
15595 \end_layout
15596
15597 \end_inset
15598
15599  is used, \SpecialChar LyX
15600  encloses the specified units in 
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 bibtopic
15606 \end_layout
15607
15608 \end_inset
15609
15610 's 
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615
15616 \backslash
15617 begin{btUnit}
15618 \end_layout
15619
15620 \end_inset
15621
15622  and 
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627
15628 \backslash
15629 end{btUnit}
15630 \end_layout
15631
15632 \end_inset
15633
15634  in order to create the units.
15635  Note that this approach has some limitations.
15636  First, every citation reference has to be inside some 
15637 \begin_inset Flex Code
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 btUnit
15642 \end_layout
15643
15644 \end_inset
15645
15646 .
15647  So citations outside a defined unit (e.
15648 \begin_inset space \thinspace{}
15649 \end_inset
15650
15651 g., before the first section if you use 
15652 \begin_inset Quotes eld
15653 \end_inset
15654
15655 by section
15656 \begin_inset Quotes erd
15657 \end_inset
15658
15659 ) will appear as 
15660 \begin_inset Quotes eld
15661 \end_inset
15662
15663 ???
15664 \begin_inset Quotes erd
15665 \end_inset
15666
15667 .
15668  You can also create your own units by entering 
15669 \begin_inset Flex Code
15670 status collapsed
15671
15672 \begin_layout Plain Layout
15673
15674 \backslash
15675 begin{btUnit}
15676 \end_layout
15677
15678 \end_inset
15679
15680  and 
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685
15686 \backslash
15687 end{btUnit}
15688 \end_layout
15689
15690 \end_inset
15691
15692  as \SpecialChar TeX
15693  code (for instance to work around the mentioned limitation).
15694  Note, though, that 
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 btUnit
15700 \end_layout
15701
15702 \end_inset
15703
15704 s cannot be nested.
15705  A second limitation is that 
15706 \begin_inset Flex Code
15707 status collapsed
15708
15709 \begin_layout Plain Layout
15710 bibtopic
15711 \end_layout
15712
15713 \end_inset
15714
15715  always processes all references of a bibliography database, even if they
15716  are not cited.
15717  This can result in odd labels (e.
15718 \begin_inset space \thinspace{}
15719 \end_inset
15720
15721 g.
15722  
15723 \begin_inset Quotes eld
15724 \end_inset
15725
15726 Miller 2014b
15727 \begin_inset Quotes erd
15728 \end_inset
15729
15730  if two works of this author from 2014 are in the database, even if only
15731  one is cited).
15732 \end_layout
15733
15734 \begin_layout Standard
15735 If you use 
15736 \family sans
15737 Biblatex
15738 \family default
15739 , the 
15740 \begin_inset Flex Code
15741 status collapsed
15742
15743 \begin_layout Plain Layout
15744 refsection
15745 \end_layout
15746
15747 \end_inset
15748
15749  option is used instead.
15750  If you need specific units, you can start them with the \SpecialChar TeX
15751  code 
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756
15757 \backslash
15758 newrefsection
15759 \end_layout
15760
15761 \end_inset
15762
15763  or 
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768
15769 \backslash
15770 newrefsegment
15771 \end_layout
15772
15773 \end_inset
15774
15775 , respectively.
15776  If you also want to control the end of the unit, use the environment 
15777 \begin_inset Flex Code
15778 status collapsed
15779
15780 \begin_layout Plain Layout
15781
15782 \backslash
15783 begin{refsection}
15784 \end_layout
15785
15786 \end_inset
15787
15788  \SpecialChar ldots
15789  
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794
15795 \backslash
15796 end{refsection}
15797 \end_layout
15798
15799 \end_inset
15800
15801  instead.
15802  Note, though, that 
15803 \begin_inset Flex Code
15804 status collapsed
15805
15806 \begin_layout Plain Layout
15807 refsection
15808 \end_layout
15809
15810 \end_inset
15811
15812 s cannot be nested.
15813  In addition to the individual bibliography of the current unit, 
15814 \family sans
15815 Biblatex
15816 \family default
15817  also provides an easy way to output all bibliographies, subsequently, at
15818  one place (e.
15819 \begin_inset space \thinspace{}
15820 \end_inset
15821
15822 g., at the end of the document).
15823  Select 
15824 \begin_inset Quotes eld
15825 \end_inset
15826
15827 all reference units
15828 \begin_inset Quotes erd
15829 \end_inset
15830
15831  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
15832  this.
15833  Please refer to the 
15834 \family sans
15835 Biblatex
15836 \family default
15837  manual for more information on this topic.
15838 \end_layout
15839
15840 \begin_layout Section
15841 Multipart Documents
15842 \end_layout
15843
15844 \begin_layout Subsection
15845 General Operation
15846 \end_layout
15847
15848 \begin_layout Standard
15849 When you are working on a large file with many sections, it is often convenient
15850  to break up the document into several files, or perhaps you have something
15851  where a table may change from time to time, but the preceding text does
15852  not.
15853  In these cases, you should seriously consider using multipart documents.
15854  For example, scientific papers often have five major sections: the introduction
15855 , observations, results, discussion, and conclusion.
15856  Each of these could be its own separate \SpecialChar LyX
15857  file, with one 
15858 \begin_inset Quotes eld
15859 \end_inset
15860
15861 master
15862 \begin_inset Quotes erd
15863 \end_inset
15864
15865  file which contains the title, authors, abstract, references, etc., plus
15866  the five included files.
15867  It is important to note that each of these files is a full \SpecialChar LyX
15868  file which
15869  can be formatted and printed on its own, as well as included in a master
15870  file.
15871  Each of these files must have the same document class, however—don't attempt
15872  to mix book classes with article classes.
15873  You may also include \SpecialChar LaTeX
15874  files; however, these files must not have their own
15875  preamble (i.
15876 \begin_inset space \thinspace{}
15877 \end_inset
15878
15879 e.
15880 \begin_inset space \space{}
15881 \end_inset
15882
15883 everything up to and including the 
15884 \begin_inset Flex Code
15885 status collapsed
15886
15887 \begin_layout Plain Layout
15888
15889 \backslash
15890 begin{document}
15891 \end_layout
15892
15893 \end_inset
15894
15895  line as well as the 
15896 \begin_inset Flex Code
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900
15901 \backslash
15902 end{document}
15903 \end_layout
15904
15905 \end_inset
15906
15907  line must be deleted) or else errors will be generated when you try to
15908  make a DVI file.
15909 \end_layout
15910
15911 \begin_layout Standard
15912 \SpecialChar LyX
15913  allows you to include files quite easily with 
15914 \begin_inset Flex Noun
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918 Insert\SpecialChar menuseparator
15919 Child
15920 \begin_inset space ~
15921 \end_inset
15922
15923 Document
15924 \end_layout
15925
15926 \end_inset
15927
15928 .
15929  When you click on this selection a small box is inserted into the file
15930  at the current cursor location.
15931  Clicking on the box raises a dialog which allows you to select the file
15932  to be included, and the method of its inclusion.
15933  
15934 \end_layout
15935
15936 \begin_layout Standard
15937 The file selection box should by now be obvious.
15938  The three inclusion methods are 
15939 \begin_inset Quotes eld
15940 \end_inset
15941
15942 include
15943 \begin_inset Quotes erd
15944 \end_inset
15945
15946
15947 \begin_inset Quotes eld
15948 \end_inset
15949
15950 input
15951 \begin_inset Quotes erd
15952 \end_inset
15953
15954 , and 
15955 \begin_inset Quotes eld
15956 \end_inset
15957
15958 verbatim
15959 \begin_inset Quotes erd
15960 \end_inset
15961
15962 .
15963  The methods 
15964 \begin_inset Quotes eld
15965 \end_inset
15966
15967 include
15968 \begin_inset Quotes erd
15969 \end_inset
15970
15971  and 
15972 \begin_inset Quotes eld
15973 \end_inset
15974
15975 input
15976 \begin_inset Quotes erd
15977 \end_inset
15978
15979  are similar in many ways, but there are also some notable differences:
15980 \end_layout
15981
15982 \begin_layout Enumerate
15983 Files that are 
15984 \begin_inset Quotes eld
15985 \end_inset
15986
15987 included
15988 \begin_inset Quotes erd
15989 \end_inset
15990
15991  are typeset beginning on a new page, while files that are 
15992 \begin_inset Quotes eld
15993 \end_inset
15994
15995 inputted
15996 \begin_inset Quotes erd
15997 \end_inset
15998
15999  are typeset starting on the current page.
16000 \end_layout
16001
16002 \begin_layout Enumerate
16003 \begin_inset Quotes eld
16004 \end_inset
16005
16006 Included
16007 \begin_inset Quotes erd
16008 \end_inset
16009
16010  files cannot themselves 
16011 \begin_inset Quotes eld
16012 \end_inset
16013
16014 include
16015 \begin_inset Quotes erd
16016 \end_inset
16017
16018  further files (
16019 \begin_inset Quotes eld
16020 \end_inset
16021
16022 grandchilds
16023 \begin_inset Quotes erd
16024 \end_inset
16025
16026 ).
16027  With 
16028 \begin_inset Quotes eld
16029 \end_inset
16030
16031 input
16032 \begin_inset Quotes erd
16033 \end_inset
16034
16035 , on the other hand, infinite sub-inputting is possible.
16036 \end_layout
16037
16038 \begin_layout Enumerate
16039 \begin_inset Quotes eld
16040 \end_inset
16041
16042 Include
16043 \begin_inset Quotes erd
16044 \end_inset
16045
16046  allow for the output of only selected 
16047 \begin_inset Quotes eld
16048 \end_inset
16049
16050 included
16051 \begin_inset Quotes erd
16052 \end_inset
16053
16054  files, while maintaining the actual counters (pagination etc.) and references
16055  (please refer to the section 
16056 \emph on
16057 Child
16058 \begin_inset space ~
16059 \end_inset
16060
16061 Documents
16062 \emph default
16063  of the 
16064 \emph on
16065 Embedded
16066 \begin_inset space ~
16067 \end_inset
16068
16069 Objects
16070 \emph default
16071  manual for details).
16072 \end_layout
16073
16074 \begin_layout Standard
16075 Hence, 
16076 \begin_inset Quotes eld
16077 \end_inset
16078
16079 include
16080 \begin_inset Quotes erd
16081 \end_inset
16082
16083  is the preferred method for chapters that are outsourced to child documents,
16084  while 
16085 \begin_inset Quotes eld
16086 \end_inset
16087
16088 input
16089 \begin_inset Quotes erd
16090 \end_inset
16091
16092  is more suitable for arbitrary file inheritance.
16093 \end_layout
16094
16095 \begin_layout Standard
16096
16097 \begin_inset Quotes eld
16098 \end_inset
16099
16100 verbatim
16101 \begin_inset Quotes erd
16102 \end_inset
16103
16104  included file allows you to include a file typeset exactly as it appears
16105  in the file, i.
16106 \begin_inset space \thinspace{}
16107 \end_inset
16108
16109 e.
16110 \begin_inset space \space{}
16111 \end_inset
16112
16113 in 
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 verbatim
16119 \end_layout
16120
16121 \end_inset
16122
16123  mode, with the characters set in a fixed-width typewriter font.
16124  Normally, spaces in this file are invisible, though two consecutive spaces
16125  are conserved, unlike \SpecialChar LyX
16126 's normal treatment of spaces.
16127  However, setting the 
16128 \begin_inset Flex Noun
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132 Mark
16133 \begin_inset space ~
16134 \end_inset
16135
16136 spaces
16137 \begin_inset space ~
16138 \end_inset
16139
16140 in
16141 \begin_inset space ~
16142 \end_inset
16143
16144 output
16145 \end_layout
16146
16147 \end_inset
16148
16149  checkbox typesets a mark to unambiguously define the presence of a space.
16150  
16151 \end_layout
16152
16153 \begin_layout Standard
16154 Generally, the master file is converted into a full \SpecialChar LaTeX
16155  file before typesetting,
16156  while the included files are converted to \SpecialChar LaTeX
16157  files that do not have all the
16158  preamble information.
16159 \end_layout
16160
16161 \begin_layout Subsection
16162 Cross-References Between Files
16163 \end_layout
16164
16165 \begin_layout Standard
16166 \begin_inset Box Shadowbox
16167 position "t"
16168 hor_pos "c"
16169 has_inner_box 1
16170 inner_pos "t"
16171 use_parbox 0
16172 use_makebox 0
16173 width "100col%"
16174 special "none"
16175 height "1in"
16176 height_special "totalheight"
16177 thickness "0.4pt"
16178 separation "3pt"
16179 shadowsize "4pt"
16180 framecolor "black"
16181 backgroundcolor "none"
16182 status open
16183
16184 \begin_layout Plain Layout
16185 This section is somewhat out of date.
16186  Need to describe default master documents and how children are opened when
16187  the master is.
16188  [[FIXME]]
16189 \end_layout
16190
16191 \end_inset
16192
16193
16194 \end_layout
16195
16196 \begin_layout Standard
16197 It is possible to set up cross-references between the different files.
16198  First, open all the files in question: let's call them A and B in a two
16199  file example, where B is included in A.
16200  Let's say you insert a label in A, then want to reference it in B.
16201  Open the cross-reference dialog whilst in document B, and you can select
16202  the 
16203 \begin_inset Quotes eld
16204 \end_inset
16205
16206 buffer
16207 \begin_inset Quotes erd
16208 \end_inset
16209
16210  to use.
16211 \end_layout
16212
16213 \begin_layout Subsection
16214 Bibliography Lists in all Subdocuments
16215 \end_layout
16216
16217 \begin_layout Standard
16218 If you work with child documents, you might want to have only one main bibliogra
16219 phy at the end, but still be able to have a selected bibliography for the
16220  child if you output it on its own.
16221  Here is how to achieve this.
16222 \end_layout
16223
16224 \begin_layout Standard
16225 For the main document, you just insert a bibliography inset at the place
16226  where the main bibliography has to appear (within the master file or within
16227  a child).
16228  If the bibliography inset is in the master file, the references will be
16229  inherited by all children, so they are available in the citation dialog
16230  within each child.
16231 \end_layout
16232
16233 \begin_layout Standard
16234 For child-specific bibliographies, insert bibliography insets within the
16235  child documents, at the place where the bibliography should appear when
16236  the child is compiled separately.
16237  However, the trick is to insert them into a branch (
16238 \family sans
16239 Insert\SpecialChar menuseparator
16240 Branch\SpecialChar menuseparator
16241 Insert New Branch...
16242 \family default
16243 ), e.
16244 \begin_inset space \thinspace{}
16245 \end_inset
16246
16247 g.
16248  called 
16249 \begin_inset Quotes eld
16250 \end_inset
16251
16252 Childonly
16253 \begin_inset Quotes erd
16254 \end_inset
16255
16256 .
16257  Within the children, activate the branch (
16258 \family sans
16259 Document\SpecialChar menuseparator
16260 Settings...\SpecialChar menuseparator
16261 Branches
16262 \family default
16263 ).
16264  Within the master, deactivate the branch (
16265 \family sans
16266 Document\SpecialChar menuseparator
16267 Settings...\SpecialChar menuseparator
16268 Branches
16269 \family default
16270 ).
16271  Now the child's bibliography will be ignored by the master, but considered
16272  by the child.
16273 \end_layout
16274
16275 \begin_layout Standard
16276 If you need multiple bibliographies (e.
16277 \begin_inset space \thinspace{}
16278 \end_inset
16279
16280 g., one per child in the 
16281 \emph on
16282 main document
16283 \emph default
16284 ), please refer to sec.
16285 \begin_inset space ~
16286 \end_inset
16287
16288
16289 \begin_inset CommandInset ref
16290 LatexCommand ref
16291 reference "subsec:Multiple-Bibliographies"
16292
16293 \end_inset
16294
16295 .
16296 \end_layout
16297
16298 \begin_layout Section
16299 \SpecialChar LyX
16300  Archives
16301 \end_layout
16302
16303 \begin_layout Standard
16304 Users sometimes need to be able to 
16305 \begin_inset Quotes eld
16306 \end_inset
16307
16308 bundle
16309 \begin_inset Quotes erd
16310 \end_inset
16311
16312  a \SpecialChar LyX
16313  file together with all the images (and other files) on which it depends,
16314  either for sending to a publisher or for sharing with a co-author.
16315  \SpecialChar LyX
16316  includes a Python script (
16317 \begin_inset Flex Code
16318 status collapsed
16319
16320 \begin_layout Plain Layout
16321 lyxpak.py
16322 \end_layout
16323
16324 \end_inset
16325
16326 ) that automates this process.
16327  To use it, you must have either the 
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 zipfile
16333 \end_layout
16334
16335 \end_inset
16336
16337  or 
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 tarfile
16343 \end_layout
16344
16345 \end_inset
16346
16347  python modules installed on your system.
16348  By default, the script prefers the 
16349 \begin_inset Flex Code
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 gzip
16354 \end_layout
16355
16356 \end_inset
16357
16358 -compressed 
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 tar
16364 \end_layout
16365
16366 \end_inset
16367
16368  format on Unix-like systems and the 
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 zip
16374 \end_layout
16375
16376 \end_inset
16377
16378  format on Windows.
16379 \end_layout
16380
16381 \begin_layout Standard
16382 \SpecialChar LyX
16383 's configuration process will set the script up to export a `\SpecialChar LyX
16384  Archive',
16385  and this format will then be available under 
16386 \begin_inset Flex Code
16387 status collapsed
16388
16389 \begin_layout Plain Layout
16390 File\SpecialChar menuseparator
16391 Export
16392 \end_layout
16393
16394 \end_inset
16395
16396 .
16397 \end_layout
16398
16399 \begin_layout Standard
16400 Independently of the platform, the generation of a particular archive format
16401  can be forced by adding either the 
16402 \begin_inset Flex Code
16403 status collapsed
16404
16405 \begin_layout Plain Layout
16406 -t
16407 \end_layout
16408
16409 \end_inset
16410
16411  (for the 
16412 \begin_inset Flex Code
16413 status collapsed
16414
16415 \begin_layout Plain Layout
16416 tar
16417 \end_layout
16418
16419 \end_inset
16420
16421  format) or 
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426 -z
16427 \end_layout
16428
16429 \end_inset
16430
16431  (for the 
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 zip
16437 \end_layout
16438
16439 \end_inset
16440
16441  format) switch to the 
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446 \SpecialChar LyX
16447 \SpecialChar menuseparator
16448 \SpecialChar LyX
16449  Archive
16450 \end_layout
16451
16452 \end_inset
16453
16454  converter in 
16455 \begin_inset Flex Code
16456 status collapsed
16457
16458 \begin_layout Plain Layout
16459 Tools\SpecialChar menuseparator
16460 Preferences\SpecialChar menuseparator
16461 File Handling\SpecialChar menuseparator
16462 Converters
16463 \end_layout
16464
16465 \end_inset
16466
16467 .
16468  (Make sure you add the switch after the script name, not before it.)
16469 \end_layout
16470
16471 \begin_layout Section
16472 Fancy Headers and Footers
16473 \end_layout
16474
16475 \begin_layout Standard
16476 The default page layout is rather plain; for an 
16477 \begin_inset Flex Code
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481 article
16482 \end_layout
16483
16484 \end_inset
16485
16486  document class, all you get is a centered page number at the bottom of
16487  the page.
16488  This document uses KOMA-script's book class, so it appears to be a bit
16489  fancier.
16490  But to really put on a show, you need to set the document page style to
16491  
16492 \begin_inset Quotes eld
16493 \end_inset
16494
16495 fancy
16496 \begin_inset Quotes erd
16497 \end_inset
16498
16499 , as mentioned in the 
16500 \emph on
16501 User Guide
16502 \emph default
16503 .
16504  This section describes the \SpecialChar LaTeX
16505  code you need to insert in your \SpecialChar LaTeX
16506  preamble in
16507  order to get the desired effects.
16508 \end_layout
16509
16510 \begin_layout Standard
16511 For more information on fancy headers, see the 
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 fancyhdr
16517 \end_layout
16518
16519 \end_inset
16520
16521  package documentation.
16522  (
16523 \begin_inset Flex URL
16524 status collapsed
16525
16526 \begin_layout Plain Layout
16527
16528 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
16529 \end_layout
16530
16531 \end_inset
16532
16533 )
16534 \end_layout
16535
16536 \begin_layout Standard
16537 The page header is divided into three fields, not surprisingly labeled 
16538 \begin_inset Quotes eld
16539 \end_inset
16540
16541 left
16542 \begin_inset Quotes erd
16543 \end_inset
16544
16545
16546 \begin_inset Quotes eld
16547 \end_inset
16548
16549 center
16550 \begin_inset Quotes erd
16551 \end_inset
16552
16553 , and 
16554 \begin_inset Quotes eld
16555 \end_inset
16556
16557 right
16558 \begin_inset Quotes erd
16559 \end_inset
16560
16561 .
16562  The footer is also divided into these three fields.
16563  The \SpecialChar LaTeX
16564  commands to set these fields in the simplest manner are 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569
16570 \backslash
16571 lhead
16572 \end_layout
16573
16574 \end_inset
16575
16576
16577 \begin_inset Flex Code
16578 status collapsed
16579
16580 \begin_layout Plain Layout
16581
16582 \backslash
16583 chead
16584 \end_layout
16585
16586 \end_inset
16587
16588
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593
16594 \backslash
16595 rhead
16596 \end_layout
16597
16598 \end_inset
16599
16600
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605
16606 \backslash
16607 lfoot
16608 \end_layout
16609
16610 \end_inset
16611
16612 , etc.
16613  Suppose you wish to put your name in the upper left hand corner of each
16614  page.
16615  Simply insert the following command in the preamble: 
16616 \end_layout
16617
16618 \begin_layout Standard
16619
16620 \family typewriter
16621
16622 \backslash
16623 lhead{John Q.
16624  DocWriter}
16625 \end_layout
16626
16627 \begin_layout Standard
16628 You will now see your name in the upper left.
16629  If a field has a default entry that you would like to get rid of (often
16630  the page number appears in the central footer) simply include a command
16631  with a blank argument, e.
16632 \begin_inset space \thinspace{}
16633 \end_inset
16634
16635 g.:
16636 \end_layout
16637
16638 \begin_layout Standard
16639
16640 \family typewriter
16641
16642 \backslash
16643 cfoot{}
16644 \end_layout
16645
16646 \begin_layout Standard
16647 Let's get really fancy: lets put the section number with the word 
16648 \begin_inset Quotes eld
16649 \end_inset
16650
16651 Section
16652 \begin_inset Quotes erd
16653 \end_inset
16654
16655  (e.
16656 \begin_inset space \thinspace{}
16657 \end_inset
16658
16659 g.
16660 \begin_inset space \space{}
16661 \end_inset
16662
16663 Section 3) in the upper left, the page number (e.
16664 \begin_inset space \thinspace{}
16665 \end_inset
16666
16667 g.
16668 \begin_inset space \space{}
16669 \end_inset
16670
16671 Page 4) in the upper right, your name in the lower left, and the date in
16672  the lower right.
16673  The following commands should now appear in the preamble:
16674 \end_layout
16675
16676 \begin_layout Standard
16677
16678 \family typewriter
16679
16680 \backslash
16681 lhead{Section 
16682 \backslash
16683 thesection}
16684 \end_layout
16685
16686 \begin_layout Standard
16687
16688 \family typewriter
16689
16690 \backslash
16691 chead{}
16692 \end_layout
16693
16694 \begin_layout Standard
16695
16696 \family typewriter
16697
16698 \backslash
16699 rhead{Page 
16700 \backslash
16701 thepage}
16702 \end_layout
16703
16704 \begin_layout Standard
16705
16706 \family typewriter
16707
16708 \backslash
16709 lfoot{John Q.
16710  DocWriter}
16711 \end_layout
16712
16713 \begin_layout Standard
16714
16715 \family typewriter
16716
16717 \backslash
16718 cfoot{}
16719 \end_layout
16720
16721 \begin_layout Standard
16722
16723 \family typewriter
16724
16725 \backslash
16726 rfoot{
16727 \backslash
16728 today}
16729 \end_layout
16730
16731 \begin_layout Standard
16732 The commands 
16733 \begin_inset Flex Code
16734 status collapsed
16735
16736 \begin_layout Plain Layout
16737
16738 \backslash
16739 thesection
16740 \end_layout
16741
16742 \end_inset
16743
16744  and 
16745 \begin_inset Flex Code
16746 status collapsed
16747
16748 \begin_layout Plain Layout
16749
16750 \backslash
16751 thepage
16752 \end_layout
16753
16754 \end_inset
16755
16756  access \SpecialChar LaTeX
16757 's section and page counters, and so print out the current section
16758  and page number.
16759  
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764
16765 \backslash
16766 today
16767 \end_layout
16768
16769 \end_inset
16770
16771  simply prints out today's date.
16772 \end_layout
16773
16774 \begin_layout Standard
16775 The thicknesses of the horizontal rules drawn beneath the header and above
16776  the footer can also be modified.
16777  If you don't want one of the rules, set its thickness to 0.
16778  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
16779  Use commands
16780 \family typewriter
16781  
16782 \family default
16783 like 
16784 \begin_inset Flex Code
16785 status collapsed
16786
16787 \begin_layout Plain Layout
16788
16789 \backslash
16790 renewcommand{
16791 \backslash
16792 headrulewidth}{0.4pt}
16793 \end_layout
16794
16795 \end_inset
16796
16797  and 
16798 \begin_inset Flex Code
16799 status collapsed
16800
16801 \begin_layout Plain Layout
16802
16803 \backslash
16804 renewcommand{
16805 \backslash
16806 footrulewidth}{0.4pt}
16807 \end_layout
16808
16809 \end_inset
16810
16811  to set the thicknesses.
16812 \end_layout
16813
16814 \begin_layout Standard
16815 You can switch the header/footer settings on and off for individual pages
16816  using commands like 
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821
16822 \backslash
16823 thispagestyle{empty}
16824 \end_layout
16825
16826 \end_inset
16827
16828
16829 \begin_inset Flex Code
16830 status collapsed
16831
16832 \begin_layout Plain Layout
16833
16834 \backslash
16835 thispagestyle{plain}
16836 \end_layout
16837
16838 \end_inset
16839
16840 , and 
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845
16846 \backslash
16847 thispagestyle{fancy}
16848 \end_layout
16849
16850 \end_inset
16851
16852 .
16853  Simply insert them in the text on the page you want changed and mark them
16854  as \SpecialChar TeX
16855  code.
16856  In fact, title pages are marked as plain by default, while following pages
16857  are marked fancy when using the global fancy setting.
16858 \end_layout
16859
16860 \begin_layout Standard
16861 As a final example, it is possible to include an image in the header or
16862  footer.
16863  Suppose you want to put a company logo in the upper lefthand corner.
16864  You might try something like
16865 \end_layout
16866
16867 \begin_layout Standard
16868
16869 \family typewriter
16870
16871 \backslash
16872 lhead{
16873 \backslash
16874 resizebox{1in}{!}{
16875 \backslash
16876 includegraphics{logo.eps}}}
16877 \end_layout
16878
16879 \begin_layout Standard
16880 \noindent
16881 (you may need to preface this with 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886
16887 \backslash
16888 usepackage{graphics}
16889 \end_layout
16890
16891 \end_inset
16892
16893  if you don't include graphics elsewhere in your document).
16894 \end_layout
16895
16896 \begin_layout Section
16897 Itemize Bullet Selection
16898 \begin_inset CommandInset label
16899 LatexCommand label
16900 name "sec:bullet"
16901
16902 \end_inset
16903
16904
16905 \end_layout
16906
16907 \begin_layout Standard
16908 by
16909 \noun on
16910  Allan Rae
16911 \end_layout
16912
16913 \begin_layout Subsection
16914 Introduction
16915 \end_layout
16916
16917 \begin_layout Standard
16918 \SpecialChar LyX
16919  provides 216 bullet shapes that can be accessed from a simple dialog.
16920  Using this dialog you can easily specify what bullet shape to use at each
16921  level of an itemized list.
16922  These settings are document-wide so you won't be able to specify different
16923  sets of bullets for different paragraphs.
16924 \begin_inset Foot
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 Well, actually you can but you'll have to do it by hand.
16929 \end_layout
16930
16931 \end_inset
16932
16933
16934 \end_layout
16935
16936 \begin_layout Subsection
16937 How it looks
16938 \end_layout
16939
16940 \begin_layout Standard
16941 Open the dialog by selecting the 
16942 \begin_inset Flex Noun
16943 status collapsed
16944
16945 \begin_layout Plain Layout
16946 Document\SpecialChar menuseparator
16947 Settings
16948 \end_layout
16949
16950 \end_inset
16951
16952  menu item and then select the 
16953 \begin_inset Flex Noun
16954 status collapsed
16955
16956 \begin_layout Plain Layout
16957 Bullets
16958 \end_layout
16959
16960 \end_inset
16961
16962  tab.
16963 \end_layout
16964
16965 \begin_layout Standard
16966 The dialog provides you with a table of bullet shapes.
16967  A column of buttons on the left of the table provides access to the six
16968  different panels of bullet shapes.
16969  The row of buttons across the top is used to select which bullet depth
16970  you are changing.
16971
16972 \change_deleted 244031559 1603875981
16973  A text entry under the table shows the currently selected bullet shape's
16974  \SpecialChar LaTeX
16975  equivalent and this can be edited if desired.
16976  If you do modify the text you will also need to specify any needed packages
16977  in the \SpecialChar LaTeX
16978  preamble.
16979 \change_unchanged
16980
16981 \end_layout
16982
16983 \begin_layout Standard
16984 The six panels are divided up by the packages they require.
16985  The following table shows the mappings from button name to \SpecialChar LaTeX
16986  package.
16987 \end_layout
16988
16989 \begin_layout Standard
16990 \align center
16991 \begin_inset Tabular
16992 <lyxtabular version="3" rows="7" columns="2">
16993 <features tabularvalignment="middle">
16994 <column alignment="center" valignment="top" width="0pt">
16995 <column alignment="center" valignment="top" width="0pt">
16996 <row>
16997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16998 \begin_inset Text
16999
17000 \begin_layout Plain Layout
17001
17002 \family roman
17003 \series medium
17004 \shape up
17005 \size normal
17006 \emph off
17007 \bar no
17008 \noun off
17009 \color none
17010 Button
17011 \end_layout
17012
17013 \end_inset
17014 </cell>
17015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17016 \begin_inset Text
17017
17018 \begin_layout Plain Layout
17019
17020 \family roman
17021 \series medium
17022 \shape up
17023 \size normal
17024 \emph off
17025 \bar no
17026 \noun off
17027 \color none
17028 Packages Required
17029 \end_layout
17030
17031 \end_inset
17032 </cell>
17033 </row>
17034 <row>
17035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17036 \begin_inset Text
17037
17038 \begin_layout Plain Layout
17039
17040 \family sans
17041 \series medium
17042 \shape up
17043 \size normal
17044 \emph off
17045 \bar no
17046 \noun off
17047 \color none
17048 Standard
17049 \end_layout
17050
17051 \end_inset
17052 </cell>
17053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17054 \begin_inset Text
17055
17056 \begin_layout Plain Layout
17057
17058 \series medium
17059 \shape up
17060 \size normal
17061 \emph off
17062 \bar no
17063 \noun off
17064 \color none
17065 base \SpecialChar LaTeX
17066
17067 \end_layout
17068
17069 \end_inset
17070 </cell>
17071 </row>
17072 <row>
17073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17074 \begin_inset Text
17075
17076 \begin_layout Plain Layout
17077
17078 \family sans
17079 \series medium
17080 \shape up
17081 \size normal
17082 \emph off
17083 \bar no
17084 \noun off
17085 \color none
17086 Maths
17087 \end_layout
17088
17089 \end_inset
17090 </cell>
17091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17092 \begin_inset Text
17093
17094 \begin_layout Plain Layout
17095
17096 \family typewriter
17097 \series medium
17098 \shape up
17099 \size normal
17100 \emph off
17101 \bar no
17102 \noun off
17103 \color none
17104 amssymb.sty
17105 \end_layout
17106
17107 \end_inset
17108 </cell>
17109 </row>
17110 <row>
17111 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17112 \begin_inset Text
17113
17114 \begin_layout Plain Layout
17115
17116 \family sans
17117 \series medium
17118 \shape up
17119 \size normal
17120 \emph off
17121 \bar no
17122 \noun off
17123 \color none
17124 Ding1
17125 \end_layout
17126
17127 \end_inset
17128 </cell>
17129 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17130 \begin_inset Text
17131
17132 \begin_layout Plain Layout
17133
17134 \family typewriter
17135 \series medium
17136 \shape up
17137 \size normal
17138 \emph off
17139 \bar no
17140 \noun off
17141 \color none
17142 pifont.sty
17143 \end_layout
17144
17145 \end_inset
17146 </cell>
17147 </row>
17148 <row>
17149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17150 \begin_inset Text
17151
17152 \begin_layout Plain Layout
17153
17154 \family sans
17155 \series medium
17156 \shape up
17157 \size normal
17158 \emph off
17159 \bar no
17160 \noun off
17161 \color none
17162 Ding2
17163 \end_layout
17164
17165 \end_inset
17166 </cell>
17167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17168 \begin_inset Text
17169
17170 \begin_layout Plain Layout
17171
17172 \family typewriter
17173 \series medium
17174 \shape up
17175 \size normal
17176 \emph off
17177 \bar no
17178 \noun off
17179 \color none
17180 pifont.sty
17181 \end_layout
17182
17183 \end_inset
17184 </cell>
17185 </row>
17186 <row>
17187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17188 \begin_inset Text
17189
17190 \begin_layout Plain Layout
17191
17192 \family sans
17193 \series medium
17194 \shape up
17195 \size normal
17196 \emph off
17197 \bar no
17198 \noun off
17199 \color none
17200 Ding3
17201 \end_layout
17202
17203 \end_inset
17204 </cell>
17205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17206 \begin_inset Text
17207
17208 \begin_layout Plain Layout
17209
17210 \family typewriter
17211 \series medium
17212 \shape up
17213 \size normal
17214 \emph off
17215 \bar no
17216 \noun off
17217 \color none
17218 pifont.sty
17219 \end_layout
17220
17221 \end_inset
17222 </cell>
17223 </row>
17224 <row>
17225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17226 \begin_inset Text
17227
17228 \begin_layout Plain Layout
17229
17230 \family sans
17231 \series medium
17232 \shape up
17233 \size normal
17234 \emph off
17235 \bar no
17236 \noun off
17237 \color none
17238 Ding4
17239 \end_layout
17240
17241 \end_inset
17242 </cell>
17243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17244 \begin_inset Text
17245
17246 \begin_layout Plain Layout
17247
17248 \family typewriter
17249 \series medium
17250 \shape up
17251 \size normal
17252 \emph off
17253 \bar no
17254 \noun off
17255 \color none
17256 pifont.sty
17257 \end_layout
17258
17259 \end_inset
17260 </cell>
17261 </row>
17262 </lyxtabular>
17263
17264 \end_inset
17265
17266
17267 \end_layout
17268
17269 \begin_layout Standard
17270 \SpecialChar LyX
17271  doesn't stop you using bullets from packages you don't have.
17272  If you get errors from \SpecialChar LaTeX
17273  when you try to view or print the file, then it
17274  is likely you are missing a package.
17275 \begin_inset Foot
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279 \SpecialChar LyX
17280  doesn't restrict your use since you may be editing locally and exporting
17281  elsewhere.
17282 \end_layout
17283
17284 \end_inset
17285
17286
17287 \end_layout
17288
17289 \begin_layout Subsection
17290 How to use it
17291 \end_layout
17292
17293 \begin_layout Standard
17294 Select which bullet depth you want to change then select the bullet shape
17295  and size.
17296  Any changes will not be visible in \SpecialChar LyX
17297 , but are visible when viewing the document.
17298 \end_layout
17299
17300 \begin_layout Standard
17301 You can reset a bullet shape to the default simply by clicking your right
17302  mouse button on the appropriate bullet depth button.
17303 \begin_inset Foot
17304 status open
17305
17306 \begin_layout Plain Layout
17307 If you 
17308 \emph on
17309 really
17310 \emph default
17311  want to have multiple sets of paragraphs with different sets of bullets
17312  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17313  code.
17314  The bullet selection dialog can help though because it provides you with
17315  the \SpecialChar LaTeX
17316  code for a wide range of bullet shapes.
17317  To make your own custom paragraphs you have the following options:
17318 \end_layout
17319
17320 \begin_layout Plain Layout
17321 \begin_inset ERT
17322 status open
17323
17324 \begin_layout Plain Layout
17325
17326
17327 \backslash
17328 let
17329 \backslash
17330 savelabelitemi=
17331 \backslash
17332 labelitemi
17333 \end_layout
17334
17335 \end_inset
17336
17337
17338 \end_layout
17339
17340 \begin_layout Plain Layout
17341 \begin_inset ERT
17342 status open
17343
17344 \begin_layout Plain Layout
17345
17346
17347 \backslash
17348 renewcommand
17349 \backslash
17350 labelitemi[0]{
17351 \backslash
17352 small
17353 \backslash
17354 (
17355 \backslash
17356 sharp
17357 \backslash
17358 )}
17359 \end_layout
17360
17361 \end_inset
17362
17363
17364 \end_layout
17365
17366 \begin_layout Itemize
17367 Use the \SpecialChar LaTeX
17368  command 
17369 \begin_inset Flex Code
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373
17374 \backslash
17375 renewcommand{}{}
17376 \end_layout
17377
17378 \end_inset
17379
17380  to specify a new bullet shape for a given depth.
17381  You'll also need to save the current bullet shape so you can restore it
17382  again afterwards.
17383  In this itemized list the following \SpecialChar LaTeX
17384  code was used to change the bullet
17385  used for the first depth.
17386 \end_layout
17387
17388 \begin_deeper
17389 \begin_layout LyX-Code
17390
17391 \backslash
17392 let
17393 \backslash
17394 savelabelitemi=
17395 \backslash
17396 labelitemi 
17397 \end_layout
17398
17399 \begin_layout LyX-Code
17400
17401 \backslash
17402 renewcommand
17403 \backslash
17404 labelitemi[0]{
17405 \backslash
17406 small
17407 \backslash
17408 (
17409 \backslash
17410 sharp
17411 \backslash
17412 )}
17413 \end_layout
17414
17415 \end_deeper
17416 \begin_layout Itemize
17417 Note that the itemize depth is specified in Roman numerals as part of the
17418  
17419 \family typewriter
17420
17421 \backslash
17422 labelitem
17423 \family default
17424  command.
17425 \end_layout
17426
17427 \begin_layout Itemize
17428 \begin_inset Argument item:1
17429 status open
17430
17431 \begin_layout Plain Layout
17432 \begin_inset ERT
17433 status open
17434
17435 \begin_layout Plain Layout
17436
17437
17438 \backslash
17439 (
17440 \backslash
17441 star
17442 \backslash
17443 )
17444 \end_layout
17445
17446 \end_inset
17447
17448
17449 \end_layout
17450
17451 \end_inset
17452
17453  Specify each individual entry by starting each item with the bullet shape
17454  enclosed in a 
17455 \begin_inset Quotes eld
17456 \end_inset
17457
17458 Custom Item
17459 \begin_inset Quotes erd
17460 \end_inset
17461
17462  inset (available at 
17463 \family sans
17464 Insert\SpecialChar menuseparator
17465 Custom Item
17466 \family default
17467 ) and set as 
17468 \begin_inset Flex Noun
17469 status collapsed
17470
17471 \begin_layout Plain Layout
17472 \SpecialChar TeX
17473  Code
17474 \end_layout
17475
17476 \end_inset
17477
17478 .
17479  For example, this item was started with 
17480 \begin_inset Flex Code
17481 status collapsed
17482
17483 \begin_layout Plain Layout
17484
17485 \backslash
17486 (
17487 \backslash
17488 star
17489 \backslash
17490 )
17491 \end_layout
17492
17493 \end_inset
17494
17495 .
17496 \end_layout
17497
17498 \begin_layout Plain Layout
17499 \begin_inset ERT
17500 status open
17501
17502 \begin_layout Plain Layout
17503
17504
17505 \backslash
17506 renewcommand
17507 \backslash
17508 labelitemi[0]{
17509 \backslash
17510 savelabelitemi}
17511 \end_layout
17512
17513 \end_inset
17514
17515
17516 \end_layout
17517
17518 \begin_layout Plain Layout
17519 You'll also need to revert the labelitem back to its previous setting for
17520  the global bullet shape settings to remain in effect.
17521  The way used here was:
17522 \end_layout
17523
17524 \begin_layout LyX-Code
17525
17526 \backslash
17527 renewcommand
17528 \backslash
17529 labelitemi[0]{
17530 \backslash
17531 savelabelitemi}
17532 \end_layout
17533
17534 \end_inset
17535
17536
17537 \end_layout
17538
17539 \begin_layout Chapter
17540 \SpecialChar LyX
17541  and the World Wide Web
17542 \end_layout
17543
17544 \begin_layout Standard
17545 \SpecialChar LyX
17546  has long supported the export of documents to various web-friendly formats,
17547  such as HTML.
17548  Before version 2.0, however, HTML export was always accomplished by the
17549  use of external converters.
17550 \begin_inset Foot
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 For details on the use of external converters with \SpecialChar LyX
17555 , see the 
17556 \emph on
17557 Converters
17558 \emph default
17559  section of the Customization manual.
17560 \end_layout
17561
17562 \end_inset
17563
17564  These fall into two large groups: there are converters that use \SpecialChar LaTeX
17565  as an
17566  intermediate format, such as 
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 htlatex
17572 \end_layout
17573
17574 \end_inset
17575
17576
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581 html2latex
17582 \end_layout
17583
17584 \end_inset
17585
17586 , and 
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 plastex
17592 \end_layout
17593
17594 \end_inset
17595
17596 , relying upon \SpecialChar LyX
17597  to produce the \SpecialChar LaTeX
17598 ; and there is a converter that works directly
17599  on \SpecialChar LyX
17600  files, 
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 e\SpecialChar LyX
17606 er
17607 \end_layout
17608
17609 \end_inset
17610
17611 .
17612  All of these have different advantages and disadvantages.
17613  
17614 \end_layout
17615
17616 \begin_layout Standard
17617 The \SpecialChar LaTeX
17618 -based converters have the advantage that, in principle, they know everythin
17619 g about the exported document that \SpecialChar LaTeX
17620  does.
17621  Such converters do not care, for example, if a certain block of code was
17622  produced by \SpecialChar LyX
17623  or was Evil Red Text.
17624  These converters know about 
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 aux
17630 \end_layout
17631
17632 \end_inset
17633
17634  files, counters, and references, and can often make use of the 
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 bbl
17640 \end_layout
17641
17642 \end_inset
17643
17644  files generated by Bib\SpecialChar TeX
17645 .
17646  On the other hand, \SpecialChar LaTeX
17647  is a very hard language to parse—it is sometimes said
17648  that only \SpecialChar TeX
17649  itself understands \SpecialChar TeX
17650 —and \SpecialChar LaTeX
17651 -based converters will often choke on
17652  what seem to be quite simple constructs; complex ones can throw them completely
17653 , and as of this writing, for example, the 
17654 \emph on
17655 Embedded Objects
17656 \emph default
17657  manual will not export with 
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 htlatex
17663 \end_layout
17664
17665 \end_inset
17666
17667 , though the others will.
17668  The other issue concerns how math is handled.
17669  These converters typically convert the formulae into little pictures that
17670  are then linked from the HTML document.
17671  Since these are actually generated by \SpecialChar LaTeX
17672 , they are accurate.
17673  But they do not scale well, and just getting them to look as if they are
17674  actually meant to be in your document—so that the font sizes seem to be
17675  roughly the same—can be a challenge.
17676 \end_layout
17677
17678 \begin_layout Standard
17679 Alex Fernandez's 
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 e\SpecialChar LyX
17685 er
17686 \end_layout
17687
17688 \end_inset
17689
17690  (
17691 \begin_inset CommandInset href
17692 LatexCommand href
17693 name "http://pinchito.es/elyxer/"
17694 target "http://pinchito.es/elyxer/"
17695 literal "false"
17696
17697 \end_inset
17698
17699 ) solves some of these problems.
17700  In particular, the formulae it produces scale perfectly, since it renders
17701  math using a combination of HTML and CSS rather than converting the formulae
17702  to images.
17703  But even moderately complex formula are rendered less well than with 
17704 \begin_inset Flex Code
17705 status collapsed
17706
17707 \begin_layout Plain Layout
17708 htlatex
17709 \end_layout
17710
17711 \end_inset
17712
17713 ; this reflects the limitations of HTML.
17714 \begin_inset Foot
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 That said, 
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 e\SpecialChar LyX
17724 er
17725 \end_layout
17726
17727 \end_inset
17728
17729  can also use jsMath and MathJax for equations, but this setting is only
17730  available globally and requires one to have access to a server that runs
17731  the backend.
17732 \end_layout
17733
17734 \end_inset
17735
17736  More importantly (as of version 1.1.1, at least), 
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 e\SpecialChar LyX
17742 er
17743 \end_layout
17744
17745 \end_inset
17746
17747  has limited support for math macros and no support for user-defined paragraph
17748  or character styles.
17749  These limitations make 
17750 \begin_inset Flex Code
17751 status collapsed
17752
17753 \begin_layout Plain Layout
17754 e\SpecialChar LyX
17755 er
17756 \end_layout
17757
17758 \end_inset
17759
17760  unsuitable for many of the documents \SpecialChar LyX
17761  users produce.
17762  In principle, of course, these problems could be solved, but the \SpecialChar LyX
17763  developers
17764  have decided to follow a different path and have made \SpecialChar LyX
17765  itself capable of
17766  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
17767 , DocBook, and plaintext.
17768 \end_layout
17769
17770 \begin_layout Standard
17771 As of this writing, XHTML output remains under development and should probably
17772  be regarded as 
17773 \begin_inset Quotes eld
17774 \end_inset
17775
17776 experimental
17777 \begin_inset Quotes erd
17778 \end_inset
17779
17780 .
17781 \begin_inset Foot
17782 status collapsed
17783
17784 \begin_layout Plain Layout
17785 The file 
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 development/HTML/HTML.notes
17791 \end_layout
17792
17793 \end_inset
17794
17795 , which can be found in the \SpecialChar LyX
17796  source tree or 
17797 \begin_inset CommandInset href
17798 LatexCommand href
17799 name "accessed online"
17800 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
17801 literal "false"
17802
17803 \end_inset
17804
17805 , usually contains up-to-date information about the state of XHTML output.
17806  See also the list of XHTML bugs on 
17807 \begin_inset CommandInset href
17808 LatexCommand href
17809 name "the bug tracker"
17810 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"
17811 literal "false"
17812
17813 \end_inset
17814
17815 .
17816 \end_layout
17817
17818 \end_inset
17819
17820  Still, the developers have chosen this approach because it has several
17821  potential advantages over the other two.
17822 \end_layout
17823
17824 \begin_layout Standard
17825 These advantages are primarily due to the fact that the XHTML output routines,
17826  since they are part of \SpecialChar LyX
17827 , know everything \SpecialChar LyX
17828  knows about the document being
17829  exported.
17830 \begin_inset Foot
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 Another advantage is that, since these routines are internal to \SpecialChar LyX
17835 , they are
17836  immune to changes in \SpecialChar LyX
17837 's file format, or to changes in the semantics of
17838  existing insets.
17839 \end_layout
17840
17841 \end_inset
17842
17843  So they know about the table of contents (as displayed in the outline),
17844  about the counters associated with different paragraph styles, and about
17845  user-defined styles.
17846  The XHTML output routines know what \SpecialChar LyX
17847  knows about internationalization,
17848  too, so they will output 
17849 \begin_inset Quotes eld
17850 \end_inset
17851
17852 Chapter 1
17853 \begin_inset Quotes erd
17854 \end_inset
17855
17856  or 
17857 \begin_inset Quotes eld
17858 \end_inset
17859
17860
17861 \lang ngerman
17862 Kapitel
17863 \lang english
17864  1
17865 \begin_inset Quotes erd
17866 \end_inset
17867
17868 , depending upon the language in effect at the time.
17869  
17870 \end_layout
17871
17872 \begin_layout Standard
17873 Quite generally, the output routines know what \SpecialChar LyX
17874  knows about document layout,
17875  that is, about how the document is to be rendered on screen.
17876  We use this information when we output the document as XHTML.
17877  In particular, \SpecialChar LyX
17878  
17879 \emph on
17880 automatically
17881 \emph default
17882  generates CSS style information corresponding to the layout information
17883  it uses to render the document on screen: if section headings are supposed
17884  to be sans-serif and bold as seen in \SpecialChar LyX
17885 , then (by default) they will be sans-seri
17886 f and bold when viewed in a web browser, too.
17887  And this is true not just for pre-defined styles, like Section, but for
17888  any style, including user-defined styles.
17889  Indeed, the XHTML output routines make no distinction between user-defined
17890  paragraph and 
17891 \change_deleted 244031559 1603876931
17892 character
17893 \change_inserted 244031559 1603876940
17894 text
17895 \change_unchanged
17896  styles and \SpecialChar LyX
17897 's own pre-defined styles: in each case, everything \SpecialChar LyX
17898  knows about
17899  the styles is contained in the layout files.
17900  And much the same is true as regards pre-defined textual insets, such as
17901  footnotes, and various custom insets.
17902  
17903 \end_layout
17904
17905 \begin_layout Standard
17906 The result is that XHTML output can be customized and extended in exactly
17907  the same way \SpecialChar LaTeX
17908  output can be customized and extended: through layout files
17909  and modules.
17910  See chapter five of the 
17911 \emph on
17912 Customization 
17913 \emph default
17914 manual for the details.
17915 \end_layout
17916
17917 \begin_layout Standard
17918 The remainder of this chapter contains more detailed information on XHTML
17919  output, its limitations, and ways to work around those limitations.
17920 \end_layout
17921
17922 \begin_layout Section
17923 Math Output in XHTML
17924 \end_layout
17925
17926 \begin_layout Standard
17927 \SpecialChar LyX
17928  offers four choices for how math is rendered.
17929  These have various advantages and disadvantages:
17930 \end_layout
17931
17932 \begin_layout Itemize
17933 MathML
17934 \begin_inset Newline newline
17935 \end_inset
17936
17937 MathML is a dialect of XML designed specifically for mathematics on the
17938  web, and it typically renders very well in browsers that support it.
17939  The disadvantage is that not all browsers support MathML, and support is
17940  not complete even in the Gecko-based browsers, such as Firefox.
17941 \begin_inset Newline newline
17942 \end_inset
17943
17944 If \SpecialChar LyX
17945  is unable to render a formula as MathML—for example, if the formula
17946  uses the 
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 xymatrix
17952 \end_layout
17953
17954 \end_inset
17955
17956  package or ERT—then it will instead output the formula as an image.
17957  
17958 \end_layout
17959
17960 \begin_layout Itemize
17961 HTML
17962 \begin_inset Newline newline
17963 \end_inset
17964
17965 As mentioned above, 
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970 elyxer
17971 \end_layout
17972
17973 \end_inset
17974
17975  outputs math as HTML, styled by CSS.
17976 \begin_inset Foot
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 \SpecialChar LyX
17981  has borrowed some of the CSS for its HTML output from 
17982 \begin_inset Flex Code
17983 status collapsed
17984
17985 \begin_layout Plain Layout
17986 elyxer
17987 \end_layout
17988
17989 \end_inset
17990
17991 .
17992 \end_layout
17993
17994 \end_inset
17995
17996  For simple formulae, this can work quite well, though with more complicated
17997  formulae it tends to break down.
17998  Still, this method has the advantage that it is very widely supported and
17999  so it may be appropriate for documents that contain only a little, fairly
18000  simple math.
18001 \begin_inset Newline newline
18002 \end_inset
18003
18004 If Lyx is unable to render a formula as HTML—for example, if the formula
18005  uses the 
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010 xymatrix
18011 \end_layout
18012
18013 \end_inset
18014
18015  package or ERT—then it will instead output the formula as an image.
18016  
18017 \end_layout
18018
18019 \begin_layout Itemize
18020 Images
18021 \begin_inset Newline newline
18022 \end_inset
18023
18024 Like 
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029 htlatex
18030 \end_layout
18031
18032 \end_inset
18033
18034 , \SpecialChar LyX
18035  will output formulae as images, the very same images, in fact, that are
18036  used for instant preview.
18037 \begin_inset Foot
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 Instant preview does 
18042 \emph on
18043 not 
18044 \emph default
18045 have to be on for images to be output, however.
18046 \end_layout
18047
18048 \end_inset
18049
18050  The advantage to this method is that the images are simply generated by
18051  \SpecialChar LaTeX
18052 , so they are very accurate.
18053  The disadvantage, as mentioned earlier, is that these are bitmapped images,
18054  so they do not scale terribly well, and one cannot copy them, etc.
18055 \begin_inset Newline newline
18056 \end_inset
18057
18058 The size of the images can be controlled by setting the 
18059 \begin_inset Quotes eld
18060 \end_inset
18061
18062 Math Images Scaling
18063 \begin_inset Quotes erd
18064 \end_inset
18065
18066  parameter under 
18067 \begin_inset Flex Noun
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 Document\SpecialChar menuseparator
18072 Settings\SpecialChar menuseparator
18073 Formats
18074 \end_layout
18075
18076 \end_inset
18077
18078 .
18079 \begin_inset Foot
18080 status collapsed
18081
18082 \begin_layout Plain Layout
18083 For those who want to know, this controls the resolution of the image in
18084  dots per inch and is based upon a default of 75 dpi.
18085 \end_layout
18086
18087 \end_inset
18088
18089
18090 \begin_inset Newline newline
18091 \end_inset
18092
18093 If \SpecialChar LyX
18094  for some reason fails to create an image for a formula (e.g., if a required
18095  \SpecialChar LaTeX
18096  package is not installed), then it will fall back to outputing the raw
18097  \SpecialChar LaTeX
18098 .
18099 \end_layout
18100
18101 \begin_layout Itemize
18102 \SpecialChar LaTeX
18103
18104 \begin_inset Newline newline
18105 \end_inset
18106
18107 Finally, \SpecialChar LyX
18108  will happily output math as \SpecialChar LaTeX
18109 .
18110  As well as being the output of last resort, this method can be used with
18111  such tools as 
18112 \begin_inset CommandInset href
18113 LatexCommand href
18114 name "jsMath"
18115 target "http://www.math.union.edu/~dpvc/jsMath/"
18116 literal "false"
18117
18118 \end_inset
18119
18120 , which uses JavaScript to render \SpecialChar LaTeX
18121  embedded in HTML documents.
18122  \SpecialChar LyX
18123  wraps the \SpecialChar LaTeX
18124  in either a 
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129 span
18130 \end_layout
18131
18132 \end_inset
18133
18134  (for inline formulas) or 
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 div
18140 \end_layout
18141
18142 \end_inset
18143
18144  (for displayed formulas) with 
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 class='math'
18150 \end_layout
18151
18152 \end_inset
18153
18154 , as is required for jsMath.
18155 \end_layout
18156
18157 \begin_layout Standard
18158 One of these output methods must be selected under 
18159 \begin_inset Flex Noun
18160 status collapsed
18161
18162 \begin_layout Plain Layout
18163 Document\SpecialChar menuseparator
18164 Settings\SpecialChar menuseparator
18165 Formats
18166 \end_layout
18167
18168 \end_inset
18169
18170 .
18171  By default, \SpecialChar LyX
18172  outputs MathML.
18173  This is a document-wide setting, therefore.
18174 \end_layout
18175
18176 \begin_layout Standard
18177 Eventually, \SpecialChar LyX
18178  will offer the user the option to select an alternate output
18179  method for a particular inset, say, one that isn't being rendered very
18180  well by MathML.
18181 \begin_inset Foot
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 That said, since \SpecialChar LyX
18186  falls back to images if the inset contains ERT, then one
18187  can force output as an image by putting some harmless ERT into the math,
18188  for example: 
18189 \begin_inset Formula $a=b\relax$
18190 \end_inset
18191
18192 .
18193 \end_layout
18194
18195 \end_inset
18196
18197
18198 \end_layout
18199
18200 \begin_layout Section
18201 Bibliography and Citations
18202 \end_layout
18203
18204 \begin_layout Standard
18205 XHTML output fully supports bibliographies and citations.
18206  
18207 \end_layout
18208
18209 \begin_layout Standard
18210 Citation labels are generated by the same machinery that generates \SpecialChar LyX
18211 's on-screen
18212  labels, so the labels will look in the output much as they do in \SpecialChar LyX
18213 , though
18214  better.
18215  If you are using numerical citations, then \SpecialChar LyX
18216  will output numerical labels,
18217  such as [1] or [17], rather than simply showing the citation key in square
18218  brackets, as it does on-screen.
18219  If you are using author-year citations, then \SpecialChar LyX
18220  will add lowercase letters
18221  to the years, just as Bib\SpecialChar TeX
18222  does, if it finds more than one citation for
18223  a given author-year combination.
18224  The labels will be printed with the bibliography entries.
18225  Note that there is, at present, no way to customize the appearance of the
18226  labels, for example, to choose between square brackets and parentheses.
18227 \end_layout
18228
18229 \begin_layout Standard
18230 Bibliography output is handled by the same machinery that handles the presentati
18231 on of reference information in the citation dialog, so you will see in the
18232  XHTML output pretty much what you would see if you were to look at a given
18233  entry in the citation dialog.
18234  The formatting can be customized in your layout file or, preferably, in
18235  a module.
18236  See the 
18237 \emph on
18238 Customization
18239 \emph default
18240  manual for the details.
18241 \end_layout
18242
18243 \begin_layout Standard
18244 The main defect at present is that cross-referenced information is printed
18245  with every entry with which it is associated.
18246  So you can see things like this:
18247 \end_layout
18248
18249 \begin_layout Quote
18250 Jason Stanley, 
18251 \begin_inset Quotes eld
18252 \end_inset
18253
18254 Context and Logical Form
18255 \begin_inset Quotes erd
18256 \end_inset
18257
18258 , in 
18259 \emph on
18260 Language in Context: Selected Essays
18261 \emph default
18262  (Oxford: Oxford University Press, 2007), pp.
18263  30–68.
18264 \end_layout
18265
18266 \begin_layout Quote
18267 Jason Stanley, 
18268 \begin_inset Quotes eld
18269 \end_inset
18270
18271 Semantics in Context
18272 \begin_inset Quotes erd
18273 \end_inset
18274
18275 , in 
18276 \emph on
18277 Language in Context: Selected Essays
18278 \emph default
18279  (Oxford: Oxford University Press, 2007), pp.
18280  201–30.
18281 \end_layout
18282
18283 \begin_layout Standard
18284 This should be fixed before long.
18285 \end_layout
18286
18287 \begin_layout Standard
18288 There is no support at present for sectioned bibliographies.
18289  If you have multiple bibliographies, then \SpecialChar LyX
18290  will print the same bibliography
18291  over and over.
18292 \end_layout
18293
18294 \begin_layout Section
18295 Indexes
18296 \end_layout
18297
18298 \begin_layout Standard
18299 \SpecialChar LyX
18300  will happily export indexes as XHTML, but with certain limitations at the
18301  moment.
18302 \end_layout
18303
18304 \begin_layout Standard
18305 Index export will be most reliable when you do not attempt to use the fancy
18306  constructs that are described in the section on indexes in the 
18307 \emph on
18308 User's Guide
18309 \emph default
18310 .
18311 \begin_inset Foot
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 The main issue here is that \SpecialChar LyX
18316  itself does not really handle these.
18317  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
18318 .
18319 \end_layout
18320
18321 \end_inset
18322
18323  We'll describe how they are handled using the subsection headings from
18324  that section.
18325 \end_layout
18326
18327 \begin_layout Itemize
18328 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
18329  makes an effort to support these,
18330  but the entries must be separated by 
18331 \begin_inset Quotes eld
18332 \end_inset
18333
18334  ! 
18335 \begin_inset Quotes erd
18336 \end_inset
18337
18338 , that is, there must be spaces around the exclamation point.
18339  This is because it is otherwise too difficult to check for escaped exclamation
18340  points, ones in math, and so forth.
18341 \end_layout
18342
18343 \begin_layout Itemize
18344 Page Ranges: There is no support at all for page ranges, since these make
18345  no sense with XHMTL.
18346  Instead, you will just get two index entries, one at either end.
18347 \end_layout
18348
18349 \begin_layout Itemize
18350 Cross-referencing: There is no support for cross-referencing.
18351  If \SpecialChar LyX
18352  finds an entry containing the 
18353 \begin_inset Quotes eld
18354 \end_inset
18355
18356 |see\SpecialChar ldots
18357
18358 \begin_inset Quotes erd
18359 \end_inset
18360
18361  construct, it is just dropped, and the rest is treated as an ordinary index
18362  entry.
18363 \end_layout
18364
18365 \begin_layout Itemize
18366 Index Entry Order: \SpecialChar LyX
18367  does support attempts to fix the sorting order.
18368  It will take what is before the first `@' it finds and use that for sorting,
18369  taking what follows the first `@' to be the actual entry.
18370  At present, \SpecialChar LyX
18371  does not check for escaped `@', so do not try to index email
18372  addresses.
18373 \end_layout
18374
18375 \begin_layout Itemize
18376 Index Entry Layout: You can format entries by using the text style dialog,
18377  or by using any other method available within \SpecialChar LyX
18378  itself.
18379  There is no support for constructs like: 
18380 \begin_inset Quotes eld
18381 \end_inset
18382
18383 entry|textbf
18384 \begin_inset Quotes erd
18385 \end_inset
18386
18387 .
18388  Indeed, if \SpecialChar LyX
18389  finds a pipe symbol, `|', in an entry, it will delete it and
18390  everything that follows it.
18391 \end_layout
18392
18393 \begin_layout Itemize
18394 Multiple Indexes: There is no support for multiple indexes.
18395  Rather, all index entries will be printed as one large index.
18396  To avoid our printing several versions of the index, we print only the
18397  main index, so make sure you have one.
18398 \end_layout
18399
18400 \begin_layout Section
18401 Nomenclature and Glossary
18402 \end_layout
18403
18404 \begin_layout Standard
18405 There is at present no support for glossaries.
18406  Adding it would be fairly trivial, and welcome.
18407 \end_layout
18408
18409 \begin_layout Chapter
18410
18411 \change_inserted 1075283030 1616534180
18412 DocBook Output
18413 \end_layout
18414
18415 \begin_layout Standard
18416
18417 \change_inserted 1075283030 1616534386
18418 Apart from HTML, \SpecialChar LyX
18419  can generate documents in the DocBook XML vocabulary.
18420  With versions 2.3 and before, only select templates could be used to generate
18421  DocBook documents (only version 4).
18422  Starting with \SpecialChar LyX
18423  2.4, most \SpecialChar LyX
18424  layouts can generate valid DocBook documents (only
18425  version 5).
18426  This feature is built into \SpecialChar LyX
18427  and does not require the use of external tools.
18428 \end_layout
18429
18430 \begin_layout Standard
18431
18432 \change_inserted 1075283030 1616534437
18433 The result is that the DocBook output can be customized and extended in
18434  exactly the same way \SpecialChar LaTeX
18435  output can be customized and extended: through layout
18436  files and modules.
18437  See chapter five of the 
18438 \emph on
18439 Customization 
18440 \emph default
18441 manual for the details.
18442 \end_layout
18443
18444 \begin_layout Standard
18445
18446 \change_inserted 1075283030 1616534475
18447 Most \SpecialChar LyX
18448  features are supported with DocBook, like math output.
18449 \end_layout
18450
18451 \begin_layout Itemize
18452
18453 \change_inserted 1075283030 1616534741
18454 Math output is performed mostly in MathML (the major exception being constructio
18455 ns not supported by \SpecialChar LyX
18456 , i.e.
18457  ERTs).
18458  All formulae are also available in raw \SpecialChar TeX
18459  in the DocBook output for further
18460  processing.
18461 \end_layout
18462
18463 \begin_layout Itemize
18464
18465 \change_inserted 1075283030 1616534852
18466 Bibliographies and citations are implemented, including with an external
18467  BibTeX file.
18468  Bibliography entries are not prerendered when the detailed information
18469  are available, but rather output with the standard DocBook constructs.
18470  The external DocBook processor is expected to handle the rendering of entries.
18471 \end_layout
18472
18473 \begin_layout Itemize
18474
18475 \change_inserted 1075283030 1616534863
18476 Indexes are supported, including multiple indices.
18477  Grouping (with 
18478 \family typewriter
18479 !
18480 \family default
18481 ), page ranges, and cross-references (
18482 \family typewriter
18483 |see
18484 \family default
18485 ) are supported, with the exception of the same symbols escaped.
18486  Entry order (
18487 \family typewriter
18488 @
18489 \family default
18490 ) and layout (
18491 \family typewriter
18492 |mathbf
18493 \family default
18494 ) are not supported.
18495  There is no support for escaping of index entries.
18496 \end_layout
18497
18498 \begin_layout Itemize
18499
18500 \change_inserted 1075283030 1616534884
18501 Glossaries are implemented.
18502 \end_layout
18503
18504 \begin_layout Standard
18505
18506 \change_inserted 1075283030 1616534894
18507 Two major parameters can be set at the document level.
18508 \end_layout
18509
18510 \begin_layout Itemize
18511
18512 \change_inserted 1075283030 1616534948
18513 Format for tables: \SpecialChar LyX
18514  can generate tables either as HTML (default value) or
18515  CALS, depending on the user's requirements.
18516  Most DocBook processors accept both formats.
18517 \end_layout
18518
18519 \begin_layout Itemize
18520
18521 \change_inserted 1075283030 1616535006
18522 MathML prefix: in DocBook, MathML is included within its own name space,
18523  unlike HTML.
18524  The implication is that there must be an indication of the tags belonging
18525  to the MathML standard.
18526  Three choices are offered: 
18527 \end_layout
18528
18529 \begin_deeper
18530 \begin_layout Itemize
18531
18532 \change_inserted 1075283030 1616535044
18533 Inline: the MathML name space is defined for each formula (using the 
18534 \family typewriter
18535 xmlns
18536 \family default
18537  attribute on each formula)
18538 \end_layout
18539
18540 \begin_layout Itemize
18541
18542 \change_inserted 1075283030 1616535090
18543 With the 
18544 \family typewriter
18545 m
18546 \family default
18547  prefix (default): the MathML name space is defined at the document level
18548  (using the 
18549 \family typewriter
18550 xmlns:m
18551 \family default
18552  attribute on the root element).
18553  Each MathML is prefixed with 
18554 \family typewriter
18555 m
18556 \family default
18557 : for instance, 
18558 \family typewriter
18559 m:math
18560 \end_layout
18561
18562 \begin_layout Itemize
18563
18564 \change_inserted 1075283030 1616620405
18565 With the 
18566 \family typewriter
18567 mml
18568 \family default
18569  prefix: similar to the 
18570 \family typewriter
18571 m
18572 \family default
18573  option, but with 
18574 \family typewriter
18575 mml
18576 \end_layout
18577
18578 \begin_layout Standard
18579
18580 \change_inserted 1075283030 1616620470
18581 This option is especially useful if you want \SpecialChar LyX
18582  to match your personal style
18583  or to work with buggy software that only accepts one prefix for MathML.
18584 \change_unchanged
18585
18586 \end_layout
18587
18588 \end_deeper
18589 \begin_layout Chapter
18590 The \SpecialChar LyX
18591  Server
18592 \end_layout
18593
18594 \begin_layout Section
18595 Introduction
18596 \end_layout
18597
18598 \begin_layout Standard
18599 The `\SpecialChar LyX
18600  server' allows other programs to talk to \SpecialChar LyX
18601 , invoke \SpecialChar LyX
18602  commands, and retrieve
18603  information about the \SpecialChar LyX
18604  internal state.
18605  This is only intended for advanced users, but they should find it useful.
18606  It is by writing to the \SpecialChar LyX
18607  server, for example, that bibliography managers,
18608  such as JabRef, are able to 
18609 \begin_inset Quotes eld
18610 \end_inset
18611
18612 push
18613 \begin_inset Quotes erd
18614 \end_inset
18615
18616  citations to \SpecialChar LyX
18617 .
18618 \end_layout
18619
18620 \begin_layout Section
18621 Starting the \SpecialChar LyX
18622  Server
18623 \begin_inset CommandInset label
18624 LatexCommand label
18625 name "sec:Starting-the-Server"
18626
18627 \end_inset
18628
18629
18630 \end_layout
18631
18632 \begin_layout Standard
18633 The \SpecialChar LyX
18634  server works through the use of a pair of named pipes.
18635  These are usually located in 
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 UserDir
18641 \end_layout
18642
18643 \end_inset
18644
18645 , (except on Windows, where 
18646 \emph on
18647 local
18648 \emph default
18649  named pipes are special objects located in 
18650 \begin_inset Flex Code
18651 status collapsed
18652
18653 \begin_layout Plain Layout
18654
18655 \backslash
18656
18657 \backslash
18658 .
18659 \backslash
18660 pipe
18661 \end_layout
18662
18663 \end_inset
18664
18665 ) and have the names 
18666 \begin_inset Quotes eld
18667 \end_inset
18668
18669
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674 lyxpipe.in
18675 \end_layout
18676
18677 \end_inset
18678
18679
18680 \begin_inset Quotes erd
18681 \end_inset
18682
18683  and 
18684 \begin_inset Quotes eld
18685 \end_inset
18686
18687
18688 \begin_inset Flex Code
18689 status collapsed
18690
18691 \begin_layout Plain Layout
18692 lyxpipe.out
18693 \end_layout
18694
18695 \end_inset
18696
18697
18698 \begin_inset Quotes erd
18699 \end_inset
18700
18701 .
18702  External programs write into 
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707 lyxpipe.in
18708 \end_layout
18709
18710 \end_inset
18711
18712  and read back data from 
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717 lyxpipe.out
18718 \end_layout
18719
18720 \end_inset
18721
18722 .
18723  The stem of the pipe names can be defined in the 
18724 \begin_inset Flex Noun
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728 Tools\SpecialChar menuseparator
18729 Preferences
18730 \end_layout
18731
18732 \end_inset
18733
18734  dialog, for example 
18735 \begin_inset Flex Code
18736 status collapsed
18737
18738 \begin_layout Plain Layout
18739 "/home/myhome/lyxpipe"
18740 \end_layout
18741
18742 \end_inset
18743
18744 , or 
18745 \begin_inset Flex Code
18746 status collapsed
18747
18748 \begin_layout Plain Layout
18749 "
18750 \backslash
18751
18752 \backslash
18753 .
18754 \backslash
18755 pipe
18756 \backslash
18757 lyxpipe"
18758 \end_layout
18759
18760 \end_inset
18761
18762  on Windows (where any working path instead of lyxpipe can be used, for
18763  example 
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768 "
18769 \backslash
18770
18771 \backslash
18772 .
18773 \backslash
18774 pipe
18775 \backslash
18776 my
18777 \backslash
18778 lyx
18779 \backslash
18780 pipe"
18781 \end_layout
18782
18783 \end_inset
18784
18785  would also work).
18786  You 
18787 \emph on
18788 must
18789 \emph default
18790  configure this manually in order for the server to start.
18791 \end_layout
18792
18793 \begin_layout Standard
18794 \SpecialChar LyX
18795  will add the '
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800 .in
18801 \end_layout
18802
18803 \end_inset
18804
18805 ' and '
18806 \begin_inset Flex Code
18807 status collapsed
18808
18809 \begin_layout Plain Layout
18810 .out
18811 \end_layout
18812
18813 \end_inset
18814
18815 ' to create the pipes.
18816  If one of the pipes already exists, \SpecialChar LyX
18817  will assume that another \SpecialChar LyX
18818  process
18819  is already running and will not start the server.
18820  On POSIX (Unix like) systems, if for some other reason, an unused 
18821 \begin_inset Quotes eld
18822 \end_inset
18823
18824 stale
18825 \begin_inset Quotes erd
18826 \end_inset
18827
18828  pipe is left in existence when \SpecialChar LyX
18829  closes, then \SpecialChar LyX
18830  will try to delete it.
18831  If this fails for some reason, you will need to delete the pipes manually
18832  and then restart \SpecialChar LyX
18833 .
18834  On Windows, pipes are deleted by the OS on program termination or crash,
18835  so 
18836 \begin_inset Quotes eld
18837 \end_inset
18838
18839 stale
18840 \begin_inset Quotes erd
18841 \end_inset
18842
18843  pipes should not be possible.
18844 \end_layout
18845
18846 \begin_layout Standard
18847 To have several \SpecialChar LyX
18848  processes with servers at the same time, you have to use
18849  different configurations, perhaps by using separate user directories, each
18850  with its own 
18851 \begin_inset Flex Code
18852 status collapsed
18853
18854 \begin_layout Plain Layout
18855 preferences
18856 \end_layout
18857
18858 \end_inset
18859
18860  file, for each process.
18861 \end_layout
18862
18863 \begin_layout Standard
18864 If you are developing a client program, you might find it useful to enable
18865  debugging information from the \SpecialChar LyX
18866  server.
18867  Do this by starting \SpecialChar LyX
18868  as 
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 lyx -dbg lyxserver
18874 \end_layout
18875
18876 \end_inset
18877
18878 .
18879 \end_layout
18880
18881 \begin_layout Standard
18882 You can find a complete example client written in C++ in the source distribution
18883  as 
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 development/lyxserver/server_monitor.cpp
18889 \end_layout
18890
18891 \end_inset
18892
18893 .
18894 \end_layout
18895
18896 \begin_layout Standard
18897 Another useful tool is the command-line based client found in 
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902 src/client/lyxclient
18903 \end_layout
18904
18905 \end_inset
18906
18907 .
18908 \end_layout
18909
18910 \begin_layout Section
18911 Normal communication
18912 \end_layout
18913
18914 \begin_layout Standard
18915 To issue a \SpecialChar LyX
18916  call, the client writes a line of ASCII text into the input
18917  pipe.
18918  This line has the following format:
18919 \end_layout
18920
18921 \begin_layout Quote
18922 LYXCMD:
18923 \emph on
18924 clientname
18925 \emph default
18926 :
18927 \emph on
18928 function
18929 \emph default
18930 :
18931 \emph on
18932 argument
18933 \end_layout
18934
18935 \begin_layout Description
18936 clientname is a name that the client can choose arbitrarily.
18937  Its only use is that \SpecialChar LyX
18938  will echo it if it sends an answer—so a client can
18939  dispatch results from different requesters.
18940 \end_layout
18941
18942 \begin_layout Description
18943 function is the function you want \SpecialChar LyX
18944  to perform.
18945  It is the same as the commands you'd use in the minibuffer.
18946 \end_layout
18947
18948 \begin_layout Description
18949 argument is an optional argument which is meaningful only to some functions
18950  (for instance, the 
18951 \begin_inset Quotes eld
18952 \end_inset
18953
18954 self-insert
18955 \begin_inset Quotes erd
18956 \end_inset
18957
18958  LFUN will insert the argument as text at the cursor position).
18959 \end_layout
18960
18961 \begin_layout Standard
18962 The answer from \SpecialChar LyX
18963  will arrive in the output pipe and be of the form
18964 \end_layout
18965
18966 \begin_layout Quote
18967 INFO:
18968 \emph on
18969 clientname
18970 \emph default
18971 :
18972 \emph on
18973 function
18974 \emph default
18975 :
18976 \emph on
18977 data
18978 \end_layout
18979
18980 \begin_layout Standard
18981 where 
18982 \emph on
18983 clientname
18984 \emph default
18985  and 
18986 \emph on
18987 function
18988 \emph default
18989  are just echoed from the command request, while 
18990 \emph on
18991 data
18992 \emph default
18993  is more or less useful information filled according to how the command
18994  execution worked out.
18995  Some commands, such as 
18996 \begin_inset Quotes eld
18997 \end_inset
18998
18999 font-state
19000 \begin_inset Quotes erd
19001 \end_inset
19002
19003 , will return information about the internal state of \SpecialChar LyX
19004 , while other will
19005  return an empty data-response.
19006  This means that the command execution went fine.
19007 \end_layout
19008
19009 \begin_layout Standard
19010 In case of errors, the response from \SpecialChar LyX
19011  will have this form
19012 \end_layout
19013
19014 \begin_layout Quote
19015 ERROR:
19016 \emph on
19017 clientname
19018 \emph default
19019 :
19020 \emph on
19021 function
19022 \emph default
19023 :
19024 \emph on
19025 error message
19026 \end_layout
19027
19028 \begin_layout Standard
19029 where the 
19030 \emph on
19031 error message
19032 \emph default
19033  should contain an explanation of why the command failed.
19034 \end_layout
19035
19036 \begin_layout Standard
19037 Examples:
19038 \end_layout
19039
19040 \begin_layout LyX-Code
19041 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
19042 \begin_inset Newline newline
19043 \end_inset
19044
19045 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
19046 \begin_inset Newline newline
19047 \end_inset
19048
19049 read a <~/.lyxpipe.out
19050 \begin_inset Newline newline
19051 \end_inset
19052
19053 echo $a
19054 \end_layout
19055
19056 \begin_layout Subsection
19057 AppleScript (Mac OS X)
19058 \end_layout
19059
19060 \begin_layout Standard
19061 Since \SpecialChar LyX
19062  2.1, \SpecialChar LyX
19063  supports basic interactions with AppleScript for normal communicatio
19064 n through the command run.
19065  This command takes a direct argument (the 
19066 \series bold
19067 function
19068 \series default
19069  to perform) and an optional argument.
19070  It either returns the output of the function or triggers an error with
19071  the error message and code.
19072 \end_layout
19073
19074 \begin_layout Standard
19075 Example:
19076 \end_layout
19077
19078 \begin_layout LyX-Code
19079 tell application "\SpecialChar LyX
19080 "
19081 \end_layout
19082
19083 \begin_layout LyX-Code
19084   try
19085 \end_layout
19086
19087 \begin_layout LyX-Code
19088     -- Stores the current file name into f
19089 \end_layout
19090
19091 \begin_layout LyX-Code
19092     set f to (run "server-get-filename" with argument "")
19093 \end_layout
19094
19095 \begin_layout LyX-Code
19096     on error the error_message number the error_number
19097 \end_layout
19098
19099 \begin_layout LyX-Code
19100       display dialog "Error: " & the error_number & ".
19101  " ¬
19102 \end_layout
19103
19104 \begin_layout LyX-Code
19105               & the error_message buttons {"OK"} default button 1
19106 \end_layout
19107
19108 \begin_layout LyX-Code
19109   end try
19110 \end_layout
19111
19112 \begin_layout LyX-Code
19113 end tell
19114 \end_layout
19115
19116 \begin_layout Section
19117 Notification
19118 \end_layout
19119
19120 \begin_layout Standard
19121 \SpecialChar LyX
19122  can notify clients of events going on asynchronously.
19123  Currently it will only do this if the user binds a key sequence with the
19124  function 
19125 \begin_inset Quotes eld
19126 \end_inset
19127
19128 notify
19129 \begin_inset Quotes erd
19130 \end_inset
19131
19132 .
19133  The format of the string \SpecialChar LyX
19134  sends is as follows:
19135 \end_layout
19136
19137 \begin_layout Quote
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 NOTIFY:
19143 \end_layout
19144
19145 \end_inset
19146
19147
19148 \emph on
19149 key-sequence
19150 \end_layout
19151
19152 \begin_layout Standard
19153 where 
19154 \emph on
19155 key-sequence
19156 \emph default
19157  is the printed representation of the key sequence that was actually typed
19158  by the user.
19159 \end_layout
19160
19161 \begin_layout Standard
19162 This mechanism can be used to extend \SpecialChar LyX
19163 's command set and implement macros.
19164  Bind some key sequence to 
19165 \begin_inset Quotes eld
19166 \end_inset
19167
19168 notify
19169 \begin_inset Quotes erd
19170 \end_inset
19171
19172 .
19173  Then start a client that listens on the output pipe, dispatches the command
19174  according to the sequence, and starts a function that may use \SpecialChar LyX
19175  calls and
19176  \SpecialChar LyX
19177  requests to issue a command or a series of commands to \SpecialChar LyX
19178 .
19179 \end_layout
19180
19181 \begin_layout Section
19182 The simple \SpecialChar LyX
19183  Server Protocol
19184 \end_layout
19185
19186 \begin_layout Standard
19187 \SpecialChar LyX
19188  implements a simple protocol that can be used for session management.
19189  All messages are of the form
19190 \end_layout
19191
19192 \begin_layout Quote
19193 LYXSRV:
19194 \emph on
19195 clientname
19196 \emph default
19197 :
19198 \emph on
19199 protocol message
19200 \end_layout
19201
19202 \begin_layout Standard
19203 where 
19204 \emph on
19205 protocol message
19206 \emph default
19207  can be 
19208 \begin_inset Quotes eld
19209 \end_inset
19210
19211 hello
19212 \begin_inset Quotes erd
19213 \end_inset
19214
19215  or 
19216 \begin_inset Quotes eld
19217 \end_inset
19218
19219 bye
19220 \begin_inset Quotes erd
19221 \end_inset
19222
19223 .
19224  If 
19225 \begin_inset Quotes eld
19226 \end_inset
19227
19228 hello
19229 \begin_inset Quotes erd
19230 \end_inset
19231
19232  is received from a client, \SpecialChar LyX
19233  will report back to inform the client that
19234  it's listening to it's messages, while 
19235 \begin_inset Quotes eld
19236 \end_inset
19237
19238 bye
19239 \begin_inset Quotes erd
19240 \end_inset
19241
19242  sent from \SpecialChar LyX
19243  will inform clients that \SpecialChar LyX
19244  is closing.
19245 \end_layout
19246
19247 \begin_layout Section
19248 Reverse DVI/PDF search
19249 \end_layout
19250
19251 \begin_layout Standard
19252 Some DVI/PDF viewers
19253 \begin_inset Foot
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
19258  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
19259 \end_layout
19260
19261 \end_inset
19262
19263  provide 
19264 \emph on
19265 reverse search
19266 \emph default
19267  facility (also called 
19268 \emph on
19269 inverse search
19270 \emph default
19271 ).
19272  This means that you can tell \SpecialChar LyX
19273  to put the cursor to a specific line in the
19274  document by clicking at the respective position in the DVI/PDF output.
19275  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
19276 .
19277  This is done via the \SpecialChar LyX
19278  server either by using the named pipe (
19279 \emph on
19280 lyxpipe
19281 \emph default
19282 ), or the UNIX domain socket (
19283 \emph on
19284 lyxsocket
19285 \emph default
19286 ) that \SpecialChar LyX
19287  creates in its temporary directory (this is the way the 
19288 \begin_inset Flex Code
19289 status collapsed
19290
19291 \begin_layout Plain Layout
19292 lyxclient
19293 \end_layout
19294
19295 \end_inset
19296
19297  program communicates with \SpecialChar LyX
19298 ).
19299  In some cases, you need a helper script that mediates between the viewer
19300  and \SpecialChar LyX
19301 , in others, the viewer can communicate with \SpecialChar LyX
19302  directly.
19303  This depends on the selected viewer and on your operating system.
19304  The same applies to the way viewers need to be configured and the way the
19305  reverse search is actually performed.
19306  In what follows, we will thus describe how to setup reverse search for
19307  specific viewers.
19308  Before we turn to this, though, we will explain what needs to be done generally
19309  to enable reverse search in the DVI/PDF output.
19310 \end_layout
19311
19312 \begin_layout Subsection
19313 Automatic setup
19314 \begin_inset CommandInset label
19315 LatexCommand label
19316 name "subsec:rev-search"
19317
19318 \end_inset
19319
19320
19321 \end_layout
19322
19323 \begin_layout Standard
19324 In most cases \SpecialChar LyX
19325  will do the work for you by pressing the following button
19326  in the toolbar: 
19327 \begin_inset Info
19328 type  "icon"
19329 arg   "buffer-toggle-output-sync"
19330 \end_inset
19331
19332 .
19333  Alternatively, you can also enable the feature by checking 
19334 \family sans
19335 Synchronize with Output
19336 \family default
19337  in 
19338 \begin_inset Flex Noun
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342 Document\SpecialChar menuseparator
19343 Settings\SpecialChar menuseparator
19344 Formats
19345 \end_layout
19346
19347 \end_inset
19348
19349 .
19350  In such a case \SpecialChar LyX
19351  will automatically insert the necessary Sync\SpecialChar TeX
19352  macro (for
19353  PDF) or load the srcltx package (for DVI) respectively.
19354  This option can be easily reached also on 
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 View/Update
19360 \end_layout
19361
19362 \end_inset
19363
19364  Toolbar.
19365 \end_layout
19366
19367 \begin_layout Standard
19368 If you need a different setting, you can select or input a custom macro
19369  from the drop down box just below 
19370 \begin_inset Flex Noun
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 Document\SpecialChar menuseparator
19375 Settings\SpecialChar menuseparator
19376 Output\SpecialChar menuseparator
19377 Synchronize with Output
19378 \end_layout
19379
19380 \end_inset
19381
19382 .
19383 \end_layout
19384
19385 \begin_layout Standard
19386 Note that the method 
19387 \begin_inset Flex Code
19388 status collapsed
19389
19390 \begin_layout Plain Layout
19391
19392 \backslash
19393 synctex=1
19394 \end_layout
19395
19396 \end_inset
19397
19398  enables gzip compression.
19399  If your viewer does not support it, you should instead use 
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404
19405 \backslash
19406 synctex=-1
19407 \end_layout
19408
19409 \end_inset
19410
19411 .
19412 \end_layout
19413
19414 \begin_layout Standard
19415 Please also note that including the 
19416 \begin_inset Flex Code
19417 status collapsed
19418
19419 \begin_layout Plain Layout
19420 srcltx
19421 \end_layout
19422
19423 \end_inset
19424
19425  package or 
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 src-specials
19431 \end_layout
19432
19433 \end_inset
19434
19435  sometimes has an undesired impact on the typesetting.
19436  Thus, you should switch output synchronization off for the final typesetting
19437  if you use the 
19438 \begin_inset Flex Code
19439 status collapsed
19440
19441 \begin_layout Plain Layout
19442 srcltx
19443 \end_layout
19444
19445 \end_inset
19446
19447  package or 
19448 \begin_inset Flex Code
19449 status collapsed
19450
19451 \begin_layout Plain Layout
19452 src-specials
19453 \end_layout
19454
19455 \end_inset
19456
19457 .
19458  
19459 \end_layout
19460
19461 \begin_layout Standard
19462 In case you need some more special settings that are not covered by the
19463  automatic settings, read the next section about how to set up output synchroniz
19464 ation manually.
19465  If the automatic setup suits your needs, you can readily jump to section
19466 \begin_inset space ~
19467 \end_inset
19468
19469
19470 \begin_inset CommandInset ref
19471 LatexCommand ref
19472 reference "subsec:configuring-viewers"
19473
19474 \end_inset
19475
19476 , where the necessary configuration steps in your viewer – needed both with
19477  the automatic and the manual setup – are described.
19478 \end_layout
19479
19480 \begin_layout Subsection
19481 Manual setup
19482 \end_layout
19483
19484 \begin_layout Standard
19485 \SpecialChar LaTeX
19486  provides several different methods for reverse search.
19487  Some are built-in in the 
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 latex/pdflatex
19493 \end_layout
19494
19495 \end_inset
19496
19497  program, some are provided by external packages.
19498  Your choice depends on whether your \SpecialChar LaTeX
19499  distribution already provides a given
19500  method (the built-in methods are rather new) and whether your viewer can
19501  cope with it.
19502  The available methods are described in the following.
19503 \end_layout
19504
19505 \begin_layout Subsubsection*
19506 Built-in DVI-search via src-specials (DVI only) 
19507 \end_layout
19508
19509 \begin_layout Standard
19510 This method provides the DVI file with the necessary information for reverse
19511  search.
19512  It is available in \SpecialChar LaTeX
19513  since quite some time (any somewhat recent \SpecialChar LaTeX
19514  distribution
19515  should include it), and it works reliably.
19516  To enable it, change the 
19517 \begin_inset Flex Noun
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 La
19522 \family sans
19523 TeX
19524 \family default
19525  (plain)->DVI
19526 \end_layout
19527
19528 \end_inset
19529
19530  or 
19531 \begin_inset Flex Noun
19532 status collapsed
19533
19534 \begin_layout Plain Layout
19535 La
19536 \family sans
19537 TeX
19538 \family default
19539  (plain)->DraftDVI
19540 \end_layout
19541
19542 \end_inset
19543
19544  converter in 
19545 \begin_inset Flex Noun
19546 status collapsed
19547
19548 \begin_layout Plain Layout
19549 Preferences\SpecialChar menuseparator
19550 File Handling\SpecialChar menuseparator
19551 Converters
19552 \end_layout
19553
19554 \end_inset
19555
19556  to 
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 latex -src-specials $$i
19562 \end_layout
19563
19564 \end_inset
19565
19566 .
19567  If this doesn't work, check if your \SpecialChar TeX
19568  engine needs different options (the
19569  syntax might differ in some distributions).
19570 \end_layout
19571
19572 \begin_layout Subsubsection*
19573 External Packages (PDFSync and scrltx) 
19574 \end_layout
19575
19576 \begin_layout Standard
19577 The packages 
19578 \emph on
19579 pdfsync
19580 \emph default
19581  and 
19582 \emph on
19583 scrltx
19584 \emph default
19585  provide reverse search facility for PDF output (via pdflatex) and DVI output,
19586  respectively.
19587  In order to enable it, load the packages in the \SpecialChar LyX
19588  preamble: 
19589 \end_layout
19590
19591 \begin_layout Itemize
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596
19597 \backslash
19598 usepackage{pdfsync}
19599 \end_layout
19600
19601 \end_inset
19602
19603  for reverse PDF search,
19604 \end_layout
19605
19606 \begin_layout Itemize
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611
19612 \backslash
19613 usepackage[active]{srcltx}
19614 \end_layout
19615
19616 \end_inset
19617
19618  for reverse DVI search.
19619 \end_layout
19620
19621 \begin_layout Standard
19622 If you want to be able to perform both DVI and PDF reverse searches, you
19623  can also insert in the preamble the following lines
19624 \end_layout
19625
19626 \begin_layout LyX-Code
19627
19628 \backslash
19629 usepackage{ifpdf}
19630 \begin_inset Newline newline
19631 \end_inset
19632
19633
19634 \backslash
19635 ifpdf
19636 \begin_inset Newline newline
19637 \end_inset
19638
19639   
19640 \backslash
19641 usepackage{pdfsync}
19642 \begin_inset Newline newline
19643 \end_inset
19644
19645
19646 \backslash
19647 else
19648 \begin_inset Newline newline
19649 \end_inset
19650
19651   
19652 \backslash
19653 usepackage[active]{srcltx}
19654 \begin_inset Newline newline
19655 \end_inset
19656
19657
19658 \backslash
19659 fi
19660 \end_layout
19661
19662 \begin_layout Standard
19663 This way, you can preview the file as either DVI or PDF (pdflatex) and the
19664  right package will be used.
19665 \end_layout
19666
19667 \begin_layout Standard
19668 Note that PDFSync might affect the output layout of your document.
19669  It is therefore advised to disable PDFsync for final documents.
19670 \end_layout
19671
19672 \begin_layout Subsubsection*
19673 Built-in reverse search via Sync\SpecialChar TeX
19674  (DVI and PDF) 
19675 \end_layout
19676
19677 \begin_layout Standard
19678 Recent versions of 
19679 \begin_inset Flex Code
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 (pdf)latex
19684 \end_layout
19685
19686 \end_inset
19687
19688  have built-in support for both PDF and DVI reverse search.
19689  This so-called 
19690 \emph on
19691 Sync\SpecialChar TeX
19692
19693 \emph default
19694  facility is basically the result of the integration of the PDFSync package
19695  to the pdftex program and its merge with the 
19696 \emph on
19697 scr-specials
19698 \emph default
19699  approach.
19700  You need at least \SpecialChar TeX
19701 Live 2008 or a recent Mik\SpecialChar TeX
19702  distribution in order to use
19703  it.
19704 \begin_inset Foot
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 For some reason, Mik\SpecialChar TeX
19709  does not understand/obey the command \SpecialChar LyX
19710  inserts into
19711  the preamble when you check the "Enable Forward/Reverse Search" button
19712  in the toolbar and does not generate the necessary info.
19713 \end_layout
19714
19715 \begin_layout Plain Layout
19716 The generation of the required info can be forced by changing the converter
19717  "\SpecialChar LaTeX
19718  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
19719  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
19720  the -synctex=1 switch).
19721 \end_layout
19722
19723 \end_inset
19724
19725  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
19726  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
19727  already provide Sync\SpecialChar TeX
19728  support.
19729 \end_layout
19730
19731 \begin_layout Standard
19732 To enable Sync\SpecialChar TeX
19733  for DVI output, change the 
19734 \begin_inset Flex Noun
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 La
19739 \family sans
19740 TeX
19741 \family default
19742  (plain) -> DVI
19743 \end_layout
19744
19745 \end_inset
19746
19747  or 
19748 \begin_inset Flex Noun
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 La
19753 \family sans
19754 TeX
19755 \family default
19756  (plain) -> DraftDVI
19757 \end_layout
19758
19759 \end_inset
19760
19761  converter in 
19762 \begin_inset Flex Noun
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 Preferences\SpecialChar menuseparator
19767 File Handling\SpecialChar menuseparator
19768 Converters
19769 \end_layout
19770
19771 \end_inset
19772
19773  to 
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 latex -synctex=1 $$i
19779 \end_layout
19780
19781 \end_inset
19782
19783 , and for PDF output, change the 
19784 \begin_inset Flex Noun
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 La
19789 \family sans
19790 TeX
19791 \family default
19792  (pdflatex) -> PDF (pdflatex)
19793 \end_layout
19794
19795 \end_inset
19796
19797  converter to 
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 pdflatex -synctex=1 $$i
19803 \end_layout
19804
19805 \end_inset
19806
19807 .
19808  Should your viewer not be considered in the following description, or in
19809  case of missing success, please check the documentation of your viewer
19810  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
19811 .
19812 \begin_inset Foot
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 Note that the option 
19817 \begin_inset Flex Code
19818 status collapsed
19819
19820 \begin_layout Plain Layout
19821 -synctex=1
19822 \end_layout
19823
19824 \end_inset
19825
19826  option enables gzip compression.
19827  If your viewer does not support it, you should instead use 
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 -synctex=-1
19833 \end_layout
19834
19835 \end_inset
19836
19837 .
19838 \end_layout
19839
19840 \end_inset
19841
19842
19843 \end_layout
19844
19845 \begin_layout Subsection
19846 Configuring and using specific viewers
19847 \begin_inset CommandInset label
19848 LatexCommand label
19849 name "subsec:configuring-viewers"
19850
19851 \end_inset
19852
19853
19854 \end_layout
19855
19856 \begin_layout Subsubsection*
19857 Xdvi (all platforms)
19858 \end_layout
19859
19860 \begin_layout Standard
19861 If you use 
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866 xdvi
19867 \end_layout
19868
19869 \end_inset
19870
19871 , you don't need to do anything else for performing a reverse DVI search,
19872  as \SpecialChar LyX
19873  already provides the necessary hooks for automatically using the 
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878 lyxclient
19879 \end_layout
19880
19881 \end_inset
19882
19883  program.
19884  Just setup your document as described above (reverse search is triggered
19885  by Ctrl-click or Alt-click on Mac OSX, respectively).
19886 \end_layout
19887
19888 \begin_layout Standard
19889 However, if for whatever reason you want to use the named pipe instead of
19890  the socket for communicating with \SpecialChar LyX
19891 , simply change the DVI viewer in 
19892 \begin_inset Flex Noun
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 Preferences\SpecialChar menuseparator
19897 File Handling\SpecialChar menuseparator
19898 File formats
19899 \end_layout
19900
19901 \end_inset
19902
19903  to
19904 \begin_inset Foot
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908 On Mac OSX you have to use 
19909 \begin_inset Flex Code
19910 status collapsed
19911
19912 \begin_layout Plain Layout
19913 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
19914 \end_layout
19915
19916 \end_inset
19917
19918
19919 \end_layout
19920
19921 \end_inset
19922
19923  
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 xdvi -editor "lyxeditor.sh %f %l"
19929 \end_layout
19930
19931 \end_inset
19932
19933 , where 
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 lyxeditor.sh
19939 \end_layout
19940
19941 \end_inset
19942
19943  is a suitable script.
19944  For example, a minimal shell script is the following one:
19945 \end_layout
19946
19947 \begin_layout LyX-Code
19948 #!/bin/sh
19949 \begin_inset Newline newline
19950 \end_inset
19951
19952 LYXPIPE="/path/to/lyxpipe"
19953 \begin_inset Newline newline
19954 \end_inset
19955
19956 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
19957 \begin_inset Newline newline
19958 \end_inset
19959
19960 echo "$COMMAND" > "${LYXPIPE}".in || exit
19961 \begin_inset Newline newline
19962 \end_inset
19963
19964 read TMP < "${LYXPIPE}".out || exit
19965 \end_layout
19966
19967 \begin_layout Standard
19968 where 
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 /path/to/lyxpipe
19974 \end_layout
19975
19976 \end_inset
19977
19978  is the LyXServer pipe path specified in 
19979 \begin_inset Flex Noun
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 Preferences\SpecialChar menuseparator
19984 Paths
19985 \end_layout
19986
19987 \end_inset
19988
19989 .
19990 \begin_inset Foot
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 In the 
19995 \begin_inset Flex Code
19996 status collapsed
19997
19998 \begin_layout Plain Layout
19999 development/tools
20000 \end_layout
20001
20002 \end_inset
20003
20004  folder of a source distribution you can find a 
20005 \begin_inset Flex Code
20006 status collapsed
20007
20008 \begin_layout Plain Layout
20009 lyxeditor
20010 \end_layout
20011
20012 \end_inset
20013
20014  script which is able to locate the 
20015 \emph on
20016 lyxpipe
20017 \emph default
20018  based on your preferences.
20019 \end_layout
20020
20021 \end_inset
20022
20023
20024 \end_layout
20025
20026 \begin_layout Subsubsection*
20027 MacDviX (Mac OSX)
20028 \end_layout
20029
20030 \begin_layout Standard
20031 At the end of 
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 /Applications/MacDviX_Folder/calleditor.script
20037 \end_layout
20038
20039 \end_inset
20040
20041 , add the following lines:
20042 \end_layout
20043
20044 \begin_layout LyX-Code
20045 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
20046 \begin_inset Newline newline
20047 \end_inset
20048
20049 exit 1
20050 \end_layout
20051
20052 \begin_layout Standard
20053 Modify the lines accordingly if you install \SpecialChar LyX
20054  somewhere else than in the
20055  Applications folder.
20056 \end_layout
20057
20058 \begin_layout Standard
20059 Reverse search is triggered by Alt-click (OPTION-click).
20060 \end_layout
20061
20062 \begin_layout Subsubsection*
20063 Skim (Mac OSX)
20064 \end_layout
20065
20066 \begin_layout Standard
20067 Enter 
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 open -a Skim.app $$i
20073 \end_layout
20074
20075 \end_inset
20076
20077  to the viewer setting in 
20078 \begin_inset Flex Noun
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 Preferences\SpecialChar menuseparator
20083 File Handling\SpecialChar menuseparator
20084 File formats\SpecialChar menuseparator
20085 PDF (pdflatex)
20086 \end_layout
20087
20088 \end_inset
20089
20090 , and then in 
20091 \begin_inset Flex Noun
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 Skim\SpecialChar menuseparator
20096 Preferences\SpecialChar menuseparator
20097 Sync
20098 \end_layout
20099
20100 \end_inset
20101
20102  choose 
20103 \begin_inset Flex Noun
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 custom
20108 \end_layout
20109
20110 \end_inset
20111
20112  preset and enter command 
20113 \begin_inset Flex Noun
20114 status collapsed
20115
20116 \begin_layout Plain Layout
20117 /Applications/\SpecialChar LyX
20118 .app/Contents/MacOS/lyxeditor
20119 \end_layout
20120
20121 \end_inset
20122
20123 .
20124 \end_layout
20125
20126 \begin_layout Standard
20127 Reverse search is triggered by COMMAND-SHIFT-click
20128 \end_layout
20129
20130 \begin_layout Subsubsection*
20131 Evince (GNOME)
20132 \end_layout
20133
20134 \begin_layout Standard
20135 Reverse search with evince does not work out of the box, but it can be achieved
20136  by means of some third party helper scripts.
20137  Please refer to 
20138 \begin_inset CommandInset href
20139 LatexCommand href
20140 target "https://wiki.lyx.org/LyX/SyncTeX"
20141 literal "false"
20142
20143 \end_inset
20144
20145  for details.
20146 \end_layout
20147
20148 \begin_layout Subsubsection*
20149 Okular (KDE)
20150 \end_layout
20151
20152 \begin_layout Standard
20153 Go to 
20154 \begin_inset Flex Noun
20155 status collapsed
20156
20157 \begin_layout Plain Layout
20158 Settings\SpecialChar menuseparator
20159 Configure Okular\SpecialChar menuseparator
20160 Editor
20161 \end_layout
20162
20163 \end_inset
20164
20165  and select LyX
20166 \begin_inset Quotes erd
20167 \end_inset
20168
20169  as editor.
20170  This inserts the appropriate command (
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 lyxclient -g %f %l
20176 \end_layout
20177
20178 \end_inset
20179
20180 ).
20181 \end_layout
20182
20183 \begin_layout Standard
20184 Reverse search is triggered by SHIFT-click.
20185
20186 \change_inserted -712698321 1578211026
20187  Note that this only works if Okular is in 
20188 \begin_inset Quotes eld
20189 \end_inset
20190
20191 Browse
20192 \begin_inset Quotes erd
20193 \end_inset
20194
20195  mode (i.
20196 \begin_inset space \thinspace{}
20197 \end_inset
20198
20199 e., the hand symbol is clicked).
20200 \change_unchanged
20201
20202 \end_layout
20203
20204 \begin_layout Subsubsection*
20205 Qpdfview (Unix)
20206 \end_layout
20207
20208 \begin_layout Standard
20209 Qpdfview supports Sync\SpecialChar TeX
20210  since version 0.3.5.
20211  Go to 
20212 \begin_inset Flex Noun
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 Edit\SpecialChar menuseparator
20217 Settings\SpecialChar menuseparator
20218 Behavior
20219 \end_layout
20220
20221 \end_inset
20222
20223 , click on the input field of the 
20224 \begin_inset Quotes eld
20225 \end_inset
20226
20227 Source editor
20228 \begin_inset Quotes erd
20229 \end_inset
20230
20231  item and add the command 
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 lyxclient -g %1 %2
20237 \end_layout
20238
20239 \end_inset
20240
20241 .
20242 \end_layout
20243
20244 \begin_layout Standard
20245 Reverse search is triggered by double-click or, in more recent versions,
20246  by context menu.
20247 \end_layout
20248
20249 \begin_layout Subsubsection*
20250 YAP (Windows)
20251 \end_layout
20252
20253 \begin_layout Standard
20254 Launch yap, choose its 
20255 \begin_inset Flex Noun
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 View\SpecialChar menuseparator
20260 Options
20261 \end_layout
20262
20263 \end_inset
20264
20265  menu and select the 
20266 \begin_inset Quotes eld
20267 \end_inset
20268
20269 Inverse DVI Search
20270 \begin_inset Quotes erd
20271 \end_inset
20272
20273  tab.
20274  Click on the 
20275 \begin_inset Quotes eld
20276 \end_inset
20277
20278 New\SpecialChar ldots
20279
20280 \begin_inset Quotes erd
20281 \end_inset
20282
20283  button and, in the window that opens, enter 
20284 \begin_inset Quotes eld
20285 \end_inset
20286
20287 \SpecialChar LyX
20288  Editor
20289 \begin_inset Quotes erd
20290 \end_inset
20291
20292  (or any other name you like) in the 
20293 \begin_inset Quotes eld
20294 \end_inset
20295
20296 Name:
20297 \begin_inset Quotes erd
20298 \end_inset
20299
20300  field.
20301  Now click on the button labeled 
20302 \begin_inset Quotes eld
20303 \end_inset
20304
20305 \SpecialChar ldots
20306
20307 \begin_inset Quotes erd
20308 \end_inset
20309
20310  to open a file dialog and navigate to the directory containing the batch
20311  file 
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 lyxeditor.bat
20317 \end_layout
20318
20319 \end_inset
20320
20321  (see below).
20322  Select 
20323 \begin_inset Flex Code
20324 status collapsed
20325
20326 \begin_layout Plain Layout
20327 lyxeditor.bat
20328 \end_layout
20329
20330 \end_inset
20331
20332  and then specify the program arguments as 
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 %f %l
20338 \end_layout
20339
20340 \end_inset
20341
20342 .
20343  The 
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 lyxeditor.bat
20349 \end_layout
20350
20351 \end_inset
20352
20353  wrapper is used for communicating with \SpecialChar LyX
20354  through the 
20355 \emph on
20356 lyxpipe
20357 \emph default
20358  and is as follows:
20359 \end_layout
20360
20361 \begin_layout LyX-Code
20362 @echo off
20363 \begin_inset Newline newline
20364 \end_inset
20365
20366 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
20367 \backslash
20368
20369 \backslash
20370 .
20371 \backslash
20372 pipe
20373 \backslash
20374 lyxpipe.in
20375 \begin_inset Newline newline
20376 \end_inset
20377
20378 type 
20379 \backslash
20380
20381 \backslash
20382 .
20383 \backslash
20384 pipe
20385 \backslash
20386 lyxpipe.out
20387 \end_layout
20388
20389 \begin_layout Standard
20390 Make sure that the \SpecialChar LyX
20391 Server pipe path you specified in \SpecialChar LyX
20392  is 
20393 \begin_inset Flex Code
20394 status collapsed
20395
20396 \begin_layout Plain Layout
20397
20398 \backslash
20399
20400 \backslash
20401 .
20402 \backslash
20403 pipe
20404 \backslash
20405 lyxpipe
20406 \end_layout
20407
20408 \end_inset
20409
20410 , otherwise change the 
20411 \begin_inset Flex Code
20412 status collapsed
20413
20414 \begin_layout Plain Layout
20415 lyxeditor.bat
20416 \end_layout
20417
20418 \end_inset
20419
20420  wrapper accordingly.
20421 \end_layout
20422
20423 \begin_layout Standard
20424 In yap, reverse search is triggered by double-click.
20425 \end_layout
20426
20427 \begin_layout Subsubsection*
20428 SumatraPDF (Windows)
20429 \end_layout
20430
20431 \begin_layout Standard
20432 In order to use SumatraPDF for inverse search, enter 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
20438 \end_layout
20439
20440 \end_inset
20441
20442  in the viewer setting in 
20443 \begin_inset Flex Noun
20444 status collapsed
20445
20446 \begin_layout Plain Layout
20447 Preferences\SpecialChar menuseparator
20448 File Handling\SpecialChar menuseparator
20449 File formats\SpecialChar menuseparator
20450 PDF (pdflatex)
20451 \end_layout
20452
20453 \end_inset
20454
20455 , where 
20456 \begin_inset Flex Code
20457 status collapsed
20458
20459 \begin_layout Plain Layout
20460 lyxeditor.bat
20461 \end_layout
20462
20463 \end_inset
20464
20465  is the previous wrapper.
20466  If SumatraPDF.exe is not in your command PATH, use its full file name.
20467 \end_layout
20468
20469 \begin_layout Standard
20470 Reverse search is triggered by double-click.
20471 \end_layout
20472
20473 \begin_layout Subsubsection*
20474 YAP (Cygwin)
20475 \end_layout
20476
20477 \begin_layout Standard
20478 First of all, make sure that yap is your default DVI viewer in the Windows
20479  environment, then launch it, choose its 
20480 \begin_inset Flex Noun
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 View\SpecialChar menuseparator
20485 Options
20486 \end_layout
20487
20488 \end_inset
20489
20490  menu and select the 
20491 \begin_inset Quotes eld
20492 \end_inset
20493
20494 Inverse DVI Search
20495 \begin_inset Quotes erd
20496 \end_inset
20497
20498  tab.
20499  Click on the 
20500 \begin_inset Quotes eld
20501 \end_inset
20502
20503 New\SpecialChar ldots
20504
20505 \begin_inset Quotes erd
20506 \end_inset
20507
20508  button and, in the window that opens, enter 
20509 \begin_inset Quotes eld
20510 \end_inset
20511
20512 \SpecialChar LyX
20513  Editor
20514 \begin_inset Quotes erd
20515 \end_inset
20516
20517  (or any other name you like) in the 
20518 \begin_inset Quotes eld
20519 \end_inset
20520
20521 Name:
20522 \begin_inset Quotes erd
20523 \end_inset
20524
20525  field.
20526  Now click on the button labeled 
20527 \begin_inset Quotes eld
20528 \end_inset
20529
20530 \SpecialChar ldots
20531
20532 \begin_inset Quotes erd
20533 \end_inset
20534
20535  to open a file dialog and navigate to the directory containing the 
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 lyxeditor.exe
20541 \end_layout
20542
20543 \end_inset
20544
20545  program (which is installed by default on Cygwin along with the \SpecialChar LyX
20546  executable).
20547  Select 
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 lyxeditor.exe
20553 \end_layout
20554
20555 \end_inset
20556
20557  and then specify the program arguments as 
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562 -g %f %l
20563 \end_layout
20564
20565 \end_inset
20566
20567 .
20568  In this way, you will be using the 
20569 \emph on
20570 lyxsocket
20571 \emph default
20572  for communicating with \SpecialChar LyX
20573 .
20574  If, for whatever reason, you want to use the 
20575 \emph on
20576 lyxpipe
20577 \emph default
20578 , omit the 
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 -g
20584 \end_layout
20585
20586 \end_inset
20587
20588  option and be sure to specify the \SpecialChar LyX
20589 Server pipe path in the \SpecialChar LyX
20590  preferences.
20591 \end_layout
20592
20593 \begin_layout Standard
20594 In yap, reverse search is triggered by double-click.
20595 \end_layout
20596
20597 \begin_layout Subsubsection*
20598 SumatraPDF (Cygwin)
20599 \end_layout
20600
20601 \begin_layout Standard
20602 In order to use SumatraPDF for inverse search, enter 
20603 \begin_inset Flex Code
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 SumatraPDF -inverse-search "lyxeditor -g %f %l"
20608 \end_layout
20609
20610 \end_inset
20611
20612  in the viewer setting in 
20613 \begin_inset Flex Noun
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 Preferences\SpecialChar menuseparator
20618 File Handling\SpecialChar menuseparator
20619 File formats\SpecialChar menuseparator
20620 PDF (pdflatex)
20621 \end_layout
20622
20623 \end_inset
20624
20625 .
20626  If SumatraPDF.exe is not in your command PATH, use its full posix path.
20627  The 
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 -g
20633 \end_layout
20634
20635 \end_inset
20636
20637  enables communication via the 
20638 \emph on
20639 lyxsocket
20640 \emph default
20641 .
20642  Again, omit the 
20643 \begin_inset Flex Code
20644 status collapsed
20645
20646 \begin_layout Plain Layout
20647 -g
20648 \end_layout
20649
20650 \end_inset
20651
20652  option if you want to use the 
20653 \emph on
20654 lyxpipe
20655 \emph default
20656 , and be sure to specify the \SpecialChar LyX
20657 Server pipe path in the \SpecialChar LyX
20658  preferences.
20659 \end_layout
20660
20661 \begin_layout Standard
20662 Reverse search is triggered by double-click.
20663 \end_layout
20664
20665 \begin_layout Section
20666 Forward search
20667 \end_layout
20668
20669 \begin_layout Standard
20670 Forward search is, as the name implies, in a sense the 
20671 \begin_inset Quotes eld
20672 \end_inset
20673
20674 opposite
20675 \begin_inset Quotes erd
20676 \end_inset
20677
20678  of reverse search.
20679  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
20680 .
20681  If forward search is set up (as described in what follows), you can put
20682  the cursor anywhere in your \SpecialChar LyX
20683  document, and hit 
20684 \begin_inset Flex Noun
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 Navigate\SpecialChar menuseparator
20689 Forward search
20690 \end_layout
20691
20692 \end_inset
20693
20694  (or select 
20695 \begin_inset Flex Noun
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 Forward search
20700 \end_layout
20701
20702 \end_inset
20703
20704  in the context menu via right mouse click), and then the viewer will jump
20705  to that position as well.
20706  This implies, of course, that your viewer supports this function.
20707 \end_layout
20708
20709 \begin_layout Standard
20710 To make forward search possible, you first need to provide the generated
20711  output PDF/DVI file with additional information about the \SpecialChar TeX
20712  sources.
20713  This can be done via the methods described in the section 
20714 \begin_inset CommandInset ref
20715 LatexCommand ref
20716 reference "subsec:rev-search"
20717
20718 \end_inset
20719
20720 .
20721 \end_layout
20722
20723 \begin_layout Standard
20724 Additionally, you need to configure \SpecialChar LyX
20725  for using your viewers in 
20726 \begin_inset Flex Noun
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 Tools\SpecialChar menuseparator
20731 Preferences\SpecialChar menuseparator
20732 Output\SpecialChar menuseparator
20733 General
20734 \end_layout
20735
20736 \end_inset
20737
20738 .
20739  We provide a range of tested configurations for some viewers, which you
20740  can select from the drop down list.
20741  If none of these configurations suits you, you have to find out and enter
20742  a suitable configuration yourself.
20743  The definition syntax uses the following placeholders:
20744 \end_layout
20745
20746 \begin_layout Itemize
20747 \noindent
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 $$n
20753 \end_layout
20754
20755 \end_inset
20756
20757 : row number
20758 \end_layout
20759
20760 \begin_layout Itemize
20761 \noindent
20762 \begin_inset Flex Code
20763 status collapsed
20764
20765 \begin_layout Plain Layout
20766 $$t
20767 \end_layout
20768
20769 \end_inset
20770
20771 : name of the (temporary) exported .tex file (without path)
20772 \end_layout
20773
20774 \begin_layout Itemize
20775 \noindent
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 $$f
20781 \end_layout
20782
20783 \end_inset
20784
20785 : name of the (temporary) exported .tex file (including path)
20786 \end_layout
20787
20788 \begin_layout Itemize
20789 \noindent
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 $$o
20795 \end_layout
20796
20797 \end_inset
20798
20799 : name of the exported output file (either dvi or pdf, depending on which
20800  one exists in the temporary directory)
20801 \end_layout
20802
20803 \begin_layout Standard
20804 Note that only some of the viewers provide full and usable forward search
20805  functionality out of the box, among them yap, xdvi, okular
20806 \begin_inset Foot
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 You might want to set 
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 okular --unique
20816 \end_layout
20817
20818 \end_inset
20819
20820  in 
20821 \begin_inset Flex Noun
20822 status collapsed
20823
20824 \begin_layout Plain Layout
20825 Tools\SpecialChar menuseparator
20826 Preferences\SpecialChar menuseparator
20827 File Handling\SpecialChar menuseparator
20828 File
20829 \begin_inset space ~
20830 \end_inset
20831
20832 Formats
20833 \end_layout
20834
20835 \end_inset
20836
20837
20838 \end_layout
20839
20840 \end_inset
20841
20842 , qpdfview, and SumatraPDF
20843 \begin_inset Foot
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847 SumatraPDF can also use DDE commands through the external program CMCDDE
20848  — downloadable from 
20849 \begin_inset CommandInset href
20850 LatexCommand href
20851 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
20852 literal "false"
20853
20854 \end_inset
20855
20856
20857 \end_layout
20858
20859 \end_inset
20860
20861 .
20862  Others, such as evince
20863 \begin_inset Foot
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 Forward search with evince can be achieved by means of third party helper
20868  scripts.
20869  Please refer to 
20870 \begin_inset CommandInset href
20871 LatexCommand href
20872 target "https://wiki.lyx.org/LyX/SyncTeX"
20873 literal "false"
20874
20875 \end_inset
20876
20877  for details.
20878 \end_layout
20879
20880 \end_inset
20881
20882 , require some extra tools in order to use forward search.
20883  While many of the widespread PDF viewers (most notably Adobe Reader) do
20884  not support forward search at all, some other viewers – e.
20885 \begin_inset space \thinspace{}
20886 \end_inset
20887
20888 g.
20889  xpdf – allow at least to reload the document and jump to a specific page
20890  of the file, so you can at least navigate 
20891 \begin_inset Quotes eld
20892 \end_inset
20893
20894 near
20895 \begin_inset Quotes erd
20896 \end_inset
20897
20898 .
20899  This latter functionality is provided by an external call of synctex (see
20900  the predefined example configurations).
20901  
20902 \end_layout
20903
20904 \begin_layout Standard
20905 Forward search works both with DVI and PDF output.
20906  \SpecialChar LyX
20907  simply checks which preview format you have used before (i.
20908 \begin_inset space \thinspace{}
20909 \end_inset
20910
20911 e., which format is already there in the temporary directory) and chooses
20912  the appropriate configuration for the respective format.
20913 \end_layout
20914
20915 \begin_layout Chapter
20916
20917 \change_deleted 564990737 1671097409
20918 Special Document Classes
20919 \change_unchanged
20920
20921 \end_layout
20922
20923 \begin_layout Section
20924
20925 \change_deleted 564990737 1669742044
20926 A&A Paper
20927 \end_layout
20928
20929 \begin_layout Standard
20930
20931 \change_deleted 564990737 1669742044
20932 by 
20933 \noun on
20934 Peter Sütterlin
20935 \end_layout
20936
20937 \begin_layout Subsection
20938
20939 \change_deleted 564990737 1669742044
20940 Introduction
20941 \end_layout
20942
20943 \begin_layout Standard
20944
20945 \change_deleted 564990737 1669742044
20946 This section describes how \SpecialChar LyX
20947  can be used to write articles for submission
20948  to the scientific journal 
20949 \emph on
20950 Astronomy and Astrophysics
20951 \emph default
20952  (
20953 \begin_inset Flex URL
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957
20958 https://www.aanda.org/
20959 \end_layout
20960
20961 \end_inset
20962
20963 ) using Version 5.01 of the document class 
20964 \family typewriter
20965 aa.cls
20966 \family default
20967 .
20968  This package can be downloaded from the ftp site
20969 \end_layout
20970
20971 \begin_layout Standard
20972
20973 \change_deleted 564990737 1669742044
20974 \begin_inset VSpace medskip
20975 \end_inset
20976
20977
20978 \end_layout
20979
20980 \begin_layout Standard
20981 \align center
20982
20983 \change_deleted 564990737 1669742044
20984 \begin_inset Flex URL
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988
20989 ftp://ftp.edpsciences.org/pub/aa/readme.html
20990 \end_layout
20991
20992 \end_inset
20993
20994
20995 \end_layout
20996
20997 \begin_layout Standard
20998
20999 \change_deleted 564990737 1669742044
21000 \begin_inset VSpace medskip
21001 \end_inset
21002
21003
21004 \end_layout
21005
21006 \begin_layout Standard
21007
21008 \change_deleted 564990737 1669742044
21009 A manual comes together with that package, and this text is not meant to
21010  replace the original manual but is merely a short guide in how to realize
21011  the correct form of your paper.
21012  
21013 \end_layout
21014
21015 \begin_layout Standard
21016
21017 \change_deleted 564990737 1669742044
21018 Please note that the publisher of the journal was changed from Springer
21019  to EDP Sciences starting January 1, 2001.
21020  That change involved also some slight changes to the style files, namely
21021  the removal of the thesaurus command.
21022  The \SpecialChar LyX
21023  class aa supports the newest version of these style files, V 5.01.
21024  If you have an older version installed, please upgrade.
21025  For compatibility, the old (version 4) layout has been kept as 
21026 \family sans
21027 article (A&A V4)
21028 \family default
21029 .
21030  Please refer to the comments in 
21031 \family typewriter
21032 \SpecialChar LyX
21033 Dir/layouts/aapaper.layout
21034 \family default
21035 .
21036 \end_layout
21037
21038 \begin_layout Subsection
21039
21040 \change_deleted 564990737 1669742044
21041 Getting started
21042 \end_layout
21043
21044 \begin_layout Standard
21045
21046 \change_deleted 564990737 1669742044
21047 It is recommended you start from the example template distributed with \SpecialChar LyX
21048 .
21049  If you are not using a template, note the following settings:
21050 \end_layout
21051
21052 \begin_layout Itemize
21053
21054 \change_deleted 564990737 1669742044
21055 Select 
21056 \family sans
21057 article (A&A)
21058 \family default
21059  in the 
21060 \family sans
21061 Document\SpecialChar menuseparator
21062 Settings
21063 \family default
21064  dialog (OK, that one was obvious).
21065 \end_layout
21066
21067 \begin_layout Itemize
21068
21069 \change_deleted 564990737 1669742044
21070 Don't change the option 
21071 \family sans
21072 Page
21073 \begin_inset space ~
21074 \end_inset
21075
21076 style
21077 \family default
21078 : Leave it set to 
21079 \family sans
21080 default
21081 \family default
21082 .
21083  The whole layout is done by the macros, you shouldn't change anything.
21084 \end_layout
21085
21086 \begin_layout Subsection
21087
21088 \change_deleted 564990737 1669742044
21089 The header block
21090 \end_layout
21091
21092 \begin_layout Standard
21093
21094 \change_deleted 564990737 1669742044
21095 First thing to enter is the header information.
21096  It consists of seven entries, of which some are optional.
21097  They are
21098 \end_layout
21099
21100 \begin_layout Itemize
21101
21102 \change_deleted 564990737 1669742044
21103
21104 \family sans
21105 Title
21106 \family default
21107 : [required] 
21108 \end_layout
21109
21110 \begin_layout Itemize
21111
21112 \change_deleted 564990737 1669742044
21113
21114 \family sans
21115 Subtitle
21116 \family default
21117 : [optional] 
21118 \end_layout
21119
21120 \begin_layout Itemize
21121
21122 \change_deleted 564990737 1669742044
21123
21124 \family sans
21125 Author
21126 \family default
21127 : [required]
21128 \end_layout
21129
21130 \begin_layout Itemize
21131
21132 \change_deleted 564990737 1669742044
21133
21134 \family sans
21135 Address
21136 \family default
21137 : [required]
21138 \end_layout
21139
21140 \begin_layout Itemize
21141
21142 \change_deleted 564990737 1669742044
21143
21144 \family sans
21145 Offprints
21146 \family default
21147 : [optional] if more than one author: whom to contact for offprint requests.
21148 \end_layout
21149
21150 \begin_layout Itemize
21151
21152 \change_deleted 564990737 1669742044
21153
21154 \family sans
21155 Mail
21156 \family default
21157 : [optional] mail address for contacts.
21158 \end_layout
21159
21160 \begin_layout Itemize
21161
21162 \change_deleted 564990737 1669742044
21163
21164 \family sans
21165 Date
21166 \family default
21167 : [required].
21168  Suggested format is 
21169 \family typewriter
21170 Received: <date>; Accepted <date> 
21171 \end_layout
21172
21173 \begin_layout Standard
21174
21175 \change_deleted 564990737 1669742044
21176 There is no need to issue the 
21177 \family typewriter
21178
21179 \backslash
21180 maketitle
21181 \family default
21182  command, this is done automatically by \SpecialChar LyX
21183  when the header is finished.
21184  Although the order of the single header entries doesn't matter it is advised
21185  to keep the above sequence, just to get the best optics and meets the layout
21186  of the real document.
21187 \end_layout
21188
21189 \begin_layout Standard
21190
21191 \change_deleted 564990737 1669742044
21192 If you want to place footnotes in the header block, e.
21193 \begin_inset space \thinspace{}
21194 \end_inset
21195
21196 g.
21197 \begin_inset space \space{}
21198 \end_inset
21199
21200 to state your present address, just use the standard footnote via the menu
21201  
21202 \family sans
21203 Insert\SpecialChar menuseparator
21204 Footnote.
21205
21206 \family default
21207  \SpecialChar LyX
21208  will automagically use the term 
21209 \family typewriter
21210
21211 \backslash
21212 thanks{}
21213 \family default
21214  in that case.
21215 \end_layout
21216
21217 \begin_layout Standard
21218
21219 \change_deleted 564990737 1669742044
21220 Under 
21221 \family sans
21222 Edit\SpecialChar menuseparator
21223 Text Style
21224 \family default
21225 , you'll find two insets which are relevant for the titling:
21226 \end_layout
21227
21228 \begin_layout Itemize
21229
21230 \change_deleted 564990737 1669742044
21231
21232 \family sans
21233 Institute
21234 \family typewriter
21235  
21236 \family default
21237 to mark corresponding author\SpecialChar breakableslash
21238 institute pairs.
21239  The institutes are numbered sequentially as they appear in the 
21240 \family sans
21241 Address
21242 \family default
21243  field, so you have to put a marker to each author.
21244 \end_layout
21245
21246 \begin_layout Itemize
21247
21248 \change_deleted 564990737 1669742044
21249
21250 \family sans
21251 Email
21252 \family default
21253  to supply an email address for fast contact.
21254 \end_layout
21255
21256 \begin_layout Standard
21257
21258 \change_deleted 564990737 1669742044
21259 In addition to these topics, the macros use one additional \SpecialChar LaTeX
21260  command that
21261  has no counterpart in \SpecialChar LyX
21262 :
21263 \end_layout
21264
21265 \begin_layout Itemize
21266
21267 \change_deleted 564990737 1669742044
21268
21269 \family typewriter
21270
21271 \backslash
21272 and
21273 \family default
21274  to separate different names for more than one author and institute, respectivel
21275 y.
21276 \end_layout
21277
21278 \begin_layout Standard
21279
21280 \change_deleted 564990737 1669742044
21281 The appropriate command has to be entered in \SpecialChar LyX
21282  and marked as \SpecialChar LaTeX
21283  code.
21284  See the examples.
21285  
21286 \end_layout
21287
21288 \begin_layout Subsection
21289
21290 \change_deleted 564990737 1669742044
21291 The abstract
21292 \end_layout
21293
21294 \begin_layout Standard
21295
21296 \change_deleted 564990737 1669742044
21297 The abstract should immediately follow the header block.
21298  With version 5 the abstract environment was changed to a command, and there
21299  is now a restriction to only one paragraph.
21300  In addition, it should contain an entry with the keywords.
21301  This is done via the paragraph style 
21302 \family sans
21303 Keywords
21304 \family default
21305 .
21306  Refer to the example paper.
21307 \end_layout
21308
21309 \begin_layout Subsection
21310
21311 \change_deleted 564990737 1669742044
21312 Supported environments
21313 \end_layout
21314
21315 \begin_layout Standard
21316
21317 \change_deleted 564990737 1669742044
21318 The A&A paper layout supports the following environments for structuring
21319  your text:
21320 \end_layout
21321
21322 \begin_layout Itemize
21323
21324 \change_deleted 564990737 1669742044
21325
21326 \family sans
21327 Standard
21328 \end_layout
21329
21330 \begin_layout Itemize
21331
21332 \change_deleted 564990737 1669742044
21333
21334 \family sans
21335 Section
21336 \end_layout
21337
21338 \begin_layout Itemize
21339
21340 \change_deleted 564990737 1669742044
21341
21342 \family sans
21343 Subsection
21344 \end_layout
21345
21346 \begin_layout Itemize
21347
21348 \change_deleted 564990737 1669742044
21349
21350 \family sans
21351 Subsubsection
21352 \end_layout
21353
21354 \begin_layout Itemize
21355
21356 \change_deleted 564990737 1669742044
21357
21358 \family sans
21359 Itemize
21360 \end_layout
21361
21362 \begin_layout Itemize
21363
21364 \change_deleted 564990737 1669742044
21365
21366 \family sans
21367 Enumerate
21368 \end_layout
21369
21370 \begin_layout Itemize
21371
21372 \change_deleted 564990737 1669742044
21373
21374 \family sans
21375 Description
21376 \end_layout
21377
21378 \begin_layout Itemize
21379
21380 \change_deleted 564990737 1669742044
21381
21382 \family sans
21383 Caption
21384 \end_layout
21385
21386 \begin_layout Itemize
21387
21388 \change_deleted 564990737 1669742044
21389
21390 \family sans
21391 Abstract
21392 \end_layout
21393
21394 \begin_layout Itemize
21395
21396 \change_deleted 564990737 1669742044
21397
21398 \family sans
21399 Acknowledgment
21400 \end_layout
21401
21402 \begin_layout Itemize
21403
21404 \change_deleted 564990737 1669742044
21405
21406 \family sans
21407 Bibliography
21408 \end_layout
21409
21410 \begin_layout Itemize
21411
21412 \change_deleted 564990737 1669742044
21413
21414 \family sans
21415 \SpecialChar LaTeX
21416
21417 \end_layout
21418
21419 \begin_layout Subsection
21420
21421 \change_deleted 564990737 1669742044
21422 Commands not supported by \SpecialChar LyX
21423
21424 \end_layout
21425
21426 \begin_layout Standard
21427
21428 \change_deleted 564990737 1669742044
21429 Some commands are not yet supported by the 
21430 \family sans
21431 paper (A&A)
21432 \family default
21433  layout for \SpecialChar LyX
21434 .
21435  Some have already been mentioned.
21436  For the sake of completeness, they are listed all together here:
21437 \end_layout
21438
21439 \begin_layout Itemize
21440
21441 \change_deleted 564990737 1669742044
21442
21443 \family typewriter
21444
21445 \backslash
21446 and
21447 \end_layout
21448
21449 \begin_layout Itemize
21450
21451 \change_deleted 564990737 1669742044
21452
21453 \family typewriter
21454
21455 \backslash
21456 authorrunning
21457 \end_layout
21458
21459 \begin_layout Itemize
21460
21461 \change_deleted 564990737 1669742044
21462
21463 \family typewriter
21464
21465 \backslash
21466 object{}
21467 \end_layout
21468
21469 \begin_layout Itemize
21470
21471 \change_deleted 564990737 1669742044
21472
21473 \family typewriter
21474
21475 \backslash
21476 titlerunning{}
21477 \end_layout
21478
21479 \begin_layout Standard
21480
21481 \change_deleted 564990737 1669742044
21482 If you want to use any of these commands, you have to enter them yourself.
21483  
21484 \series bold
21485 Do not forget to mark them as \SpecialChar LaTeX
21486  code!
21487 \end_layout
21488
21489 \begin_layout Subsection
21490
21491 \change_deleted 564990737 1669742044
21492 Figure and Table Floats
21493 \end_layout
21494
21495 \begin_layout Standard
21496
21497 \change_deleted 564990737 1669742044
21498 \SpecialChar LyX
21499  provides support for the necessary float environments 
21500 \family sans
21501 figure, figure*, table
21502 \family default
21503  and 
21504 \family sans
21505 table*
21506 \family default
21507 , therefore we won't tell much about it here.
21508  Refer to the 
21509 \emph on
21510 User's
21511 \begin_inset space ~
21512 \end_inset
21513
21514 Guide
21515 \emph default
21516 .
21517  Just remember that tables should be left-aligned.
21518  For that, select the table and change the alignment in 
21519 \family sans
21520 Edit\SpecialChar menuseparator
21521 Paragraph
21522 \begin_inset space ~
21523 \end_inset
21524
21525 Settings.
21526 \end_layout
21527
21528 \begin_layout Standard
21529
21530 \change_deleted 564990737 1669742044
21531 There is only one special thing: the figures with caption besides the figure.
21532  To create such a figure, you have to do the following:
21533 \end_layout
21534
21535 \begin_layout Enumerate
21536
21537 \change_deleted 564990737 1669742044
21538 Create a wide figure float: 
21539 \family sans
21540 Insert\SpecialChar menuseparator
21541 Float\SpecialChar menuseparator
21542 Figure
21543 \family default
21544 , then right click in the figure and select 
21545 \family sans
21546 Span
21547 \begin_inset space ~
21548 \end_inset
21549
21550 columns
21551 \family default
21552 .
21553 \end_layout
21554
21555 \begin_layout Enumerate
21556
21557 \change_deleted 564990737 1669742044
21558 Enter your caption text.
21559 \end_layout
21560
21561 \begin_layout Enumerate
21562
21563 \change_deleted 564990737 1669742044
21564 Press 
21565 \family sans
21566 Return
21567 \family default
21568  to move the cursor above the caption.
21569 \end_layout
21570
21571 \begin_layout Enumerate
21572
21573 \change_deleted 564990737 1669742044
21574 Insert your figure
21575 \end_layout
21576
21577 \begin_layout Enumerate
21578
21579 \change_deleted 564990737 1669742044
21580 Position the cursor behind the figure and insert a horizontal fill: 
21581 \family sans
21582 Insert\SpecialChar menuseparator
21583 Special
21584 \begin_inset space ~
21585 \end_inset
21586
21587 Character\SpecialChar menuseparator
21588 Horizontal
21589 \begin_inset space ~
21590 \end_inset
21591
21592 Fill
21593 \family default
21594 .
21595 \end_layout
21596
21597 \begin_layout Enumerate
21598
21599 \change_deleted 564990737 1669742044
21600 Switch to \SpecialChar LaTeX
21601  mode: 
21602 \family sans
21603 M-c
21604 \begin_inset space ~
21605 \end_inset
21606
21607 t
21608 \family default
21609 .
21610 \end_layout
21611
21612 \begin_layout Enumerate
21613
21614 \change_deleted 564990737 1669742044
21615 Enter 
21616 \family typewriter
21617
21618 \backslash
21619 parbox[b]{55mm}{
21620 \family default
21621 .
21622  
21623 \series bold
21624 Do not close the brace!
21625 \end_layout
21626
21627 \begin_layout Enumerate
21628
21629 \change_deleted 564990737 1669742044
21630 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
21631  mode and insert
21632  the closing brace: 
21633 \family sans
21634 M-c
21635 \begin_inset space ~
21636 \end_inset
21637
21638 t
21639 \family default
21640  
21641 \family typewriter
21642 }
21643 \family default
21644 .
21645 \end_layout
21646
21647 \begin_layout Standard
21648
21649 \change_deleted 564990737 1669742044
21650 Also, refer to the figures in the example paper.
21651 \end_layout
21652
21653 \begin_layout Subsection
21654
21655 \change_deleted 564990737 1669742044
21656 Referee layout
21657 \end_layout
21658
21659 \begin_layout Standard
21660
21661 \change_deleted 564990737 1669742044
21662 For submission, the paper has to be formated in a special double-spacing
21663  layout.
21664  For this purpose, you have to give the option 
21665 \family typewriter
21666 referee
21667 \family default
21668  to the document class.
21669  This must be done using the custom class options field in the 
21670 \family sans
21671 Document\SpecialChar menuseparator
21672 Settings
21673 \family default
21674  dialog.
21675  Just enter the string 
21676 \family typewriter
21677 referee
21678 \family default
21679  there.
21680 \end_layout
21681
21682 \begin_layout Subsection
21683
21684 \change_deleted 564990737 1669742044
21685 The example paper
21686 \end_layout
21687
21688 \begin_layout Standard
21689
21690 \change_deleted 564990737 1669742044
21691 The 
21692 \family sans
21693 Examples
21694 \family default
21695  directory contains an example paper written with \SpecialChar LyX
21696 .
21697  It is the example paper from the original macro package, translated to
21698  \SpecialChar LyX
21699 .
21700  Use it for inspiration, and compare the original \SpecialChar LaTeX
21701  code with \SpecialChar LyX
21702  way of writing.
21703 \end_layout
21704
21705 \begin_layout Section
21706
21707 \change_deleted 564990737 1671097429
21708 Dinbrief
21709 \end_layout
21710
21711 \begin_layout Standard
21712
21713 \change_deleted 564990737 1671097429
21714 The document class 
21715 \family sans
21716 dinbrief
21717 \family default
21718  can be used to type letters according to German conventions.
21719  A template file is included in 
21720 \family typewriter
21721 .../lyx/share/templates
21722 \family default
21723  for you to use as a starting point.
21724 \end_layout
21725
21726 \begin_layout Section
21727
21728 \change_deleted 564990737 1671097429
21729 Elsevier Journals
21730 \end_layout
21731
21732 \begin_layout Standard
21733
21734 \change_deleted 564990737 1671097429
21735 See the \SpecialChar LyX
21736  template file 
21737 \family typewriter
21738 elsarticle.lyx
21739 \family default
21740 .
21741  It contains all infos you need.
21742 \end_layout
21743
21744 \begin_layout Section
21745
21746 \change_deleted 564990737 1669755802
21747 ijmpc and ijmpd
21748 \end_layout
21749
21750 \begin_layout Standard
21751
21752 \change_deleted 564990737 1669755802
21753 by 
21754 \noun on
21755 Panayotis Papasotiriou
21756 \end_layout
21757
21758 \begin_layout Subsection
21759
21760 \change_deleted 564990737 1669755802
21761 Overview
21762 \end_layout
21763
21764 \begin_layout Standard
21765
21766 \change_deleted 564990737 1669755802
21767 The ijmpc package is a set of macros that facilitates electronic manuscript
21768  submission to the 
21769 \emph on
21770 International Journal of Modern Physics C
21771 \emph default
21772 .
21773  Similarly, the ijmpd package is for creating manuscripts to be submitted
21774  to the 
21775 \emph on
21776 International Journal of Modern Physics D
21777 \emph default
21778 .
21779  Both journals are published by World Scientific.
21780  The corresponding document classes are named 
21781 \family typewriter
21782 ws-ijmpc.cls
21783 \family default
21784  and 
21785 \family typewriter
21786 ws-ijmpd.cls
21787 \family default
21788 , respectively.
21789  These files, together with instructions for the authors, can be downloaded
21790  from the sites 
21791 \begin_inset Flex URL
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795
21796 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
21797 \end_layout
21798
21799 \end_inset
21800
21801  and 
21802 \begin_inset Flex URL
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806
21807 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
21808 \end_layout
21809
21810 \end_inset
21811
21812 .
21813  Both packages are modified versions of the standard 
21814 \begin_inset Quotes eld
21815 \end_inset
21816
21817 article
21818 \begin_inset Quotes erd
21819 \end_inset
21820
21821  package, and they are almost (but not exactly) identical.
21822  Most of their features are supported by \SpecialChar LyX
21823 .
21824  I have used \SpecialChar LyX
21825  successfully to write articles submitted to both journals
21826  without any problem.
21827 \end_layout
21828
21829 \begin_layout Subsection
21830
21831 \change_deleted 564990737 1669755802
21832 Writing a paper
21833 \end_layout
21834
21835 \begin_layout Standard
21836
21837 \change_deleted 564990737 1669755802
21838 As usual, the easiest way to write a paper is to start with a template.
21839  Click on 
21840 \family sans
21841 File\SpecialChar menuseparator
21842 New from
21843 \family default
21844  
21845 \family sans
21846 Template
21847 \family default
21848 , then choose the 
21849 \family typewriter
21850 ijmpc.lyx
21851 \family default
21852  or 
21853 \family typewriter
21854 ijmpd.lyx
21855 \family default
21856  template.
21857  This will give an (almost) empty document that includes the most common
21858  fields found in a manuscript.
21859  Simply overwrite the existing text (including the brackets, 
21860 \family typewriter
21861 <>
21862 \family default
21863 ) with your text.
21864  You should keep in mind the following remarks.
21865 \end_layout
21866
21867 \begin_layout Enumerate
21868
21869 \change_deleted 564990737 1669755802
21870 \SpecialChar LyX
21871  won't let you change the font size and the page style of the document,
21872  because such modifications are not allowed by both packages.
21873 \end_layout
21874
21875 \begin_layout Enumerate
21876
21877 \change_deleted 564990737 1669755802
21878 The language of the document should not be changed.
21879  Before previewing your paper, be sure that the babel package is not used.
21880  To do this, click on 
21881 \begin_inset Info
21882 type  "menu"
21883 arg   "dialog-show document"
21884 \end_inset
21885
21886  
21887 \family sans
21888 \SpecialChar menuseparator
21889 Language
21890 \family default
21891 , and select 
21892 \begin_inset Quotes eld
21893 \end_inset
21894
21895 None
21896 \begin_inset Quotes erd
21897 \end_inset
21898
21899  as 
21900 \family sans
21901 Language Package
21902 \family default
21903 .
21904 \end_layout
21905
21906 \begin_layout Enumerate
21907
21908 \change_deleted 564990737 1669755802
21909 The 
21910 \begin_inset Quotes eld
21911 \end_inset
21912
21913 Keywords
21914 \begin_inset Quotes erd
21915 \end_inset
21916
21917  style must be used to define keywords.
21918 \end_layout
21919
21920 \begin_layout Enumerate
21921
21922 \change_deleted 564990737 1669755802
21923 The ijmpc package provides a style named 
21924 \begin_inset Quotes eld
21925 \end_inset
21926
21927 Classification Codes
21928 \begin_inset Quotes erd
21929 \end_inset
21930
21931 , which can be used to define classification codes, such as PACS numbers.
21932  Note that this facility is not supported by the ijmpd package.
21933 \end_layout
21934
21935 \begin_layout Enumerate
21936
21937 \change_deleted 564990737 1669755802
21938 Several new environments are available: 
21939 \begin_inset Quotes eld
21940 \end_inset
21941
21942 Definition
21943 \begin_inset Quotes erd
21944 \end_inset
21945
21946
21947 \begin_inset Quotes eld
21948 \end_inset
21949
21950 Step
21951 \begin_inset Quotes erd
21952 \end_inset
21953
21954
21955 \begin_inset Quotes eld
21956 \end_inset
21957
21958 Example
21959 \begin_inset Quotes erd
21960 \end_inset
21961
21962
21963 \begin_inset Quotes eld
21964 \end_inset
21965
21966 Remark
21967 \begin_inset Quotes erd
21968 \end_inset
21969
21970
21971 \begin_inset Quotes eld
21972 \end_inset
21973
21974 Notation
21975 \begin_inset Quotes erd
21976 \end_inset
21977
21978
21979 \begin_inset Quotes eld
21980 \end_inset
21981
21982 Theorem
21983 \begin_inset Quotes erd
21984 \end_inset
21985
21986
21987 \begin_inset Quotes eld
21988 \end_inset
21989
21990 Proof
21991 \begin_inset Quotes erd
21992 \end_inset
21993
21994
21995 \begin_inset Quotes eld
21996 \end_inset
21997
21998 Corollary
21999 \begin_inset Quotes erd
22000 \end_inset
22001
22002
22003 \begin_inset Quotes eld
22004 \end_inset
22005
22006 Lemma
22007 \begin_inset Quotes erd
22008 \end_inset
22009
22010
22011 \begin_inset Quotes eld
22012 \end_inset
22013
22014 Proposition
22015 \begin_inset Quotes erd
22016 \end_inset
22017
22018
22019 \begin_inset Quotes eld
22020 \end_inset
22021
22022 Prop
22023 \begin_inset Quotes erd
22024 \end_inset
22025
22026
22027 \begin_inset Quotes eld
22028 \end_inset
22029
22030 Question
22031 \begin_inset Quotes erd
22032 \end_inset
22033
22034
22035 \begin_inset Quotes eld
22036 \end_inset
22037
22038 Claim
22039 \begin_inset Quotes erd
22040 \end_inset
22041
22042 , and 
22043 \begin_inset Quotes eld
22044 \end_inset
22045
22046 Conjecture
22047 \begin_inset Quotes erd
22048 \end_inset
22049
22050 .
22051  Their use is more or less obvious.
22052  \SpecialChar LyX
22053  supports all these environments; it will use the proper label, text style,
22054  and numbering scheme for each of them.
22055 \end_layout
22056
22057 \begin_layout Enumerate
22058
22059 \change_deleted 564990737 1669755802
22060 Both packages use basic citations; the natbib package should not be used.
22061  In \SpecialChar LyX
22062 , citation references are shown as usual; in the output, citations are
22063  shown as superscripts.
22064  If you want to use a citation as normal text, you should use the 
22065 \family typewriter
22066 refcite
22067 \family default
22068  command, e.
22069 \begin_inset space \thinspace{}
22070 \end_inset
22071
22072 g.
22073 \begin_inset space \space{}
22074 \end_inset
22075
22076
22077 \begin_inset Quotes eld
22078 \end_inset
22079
22080 See Ref.
22081 \begin_inset space \space{}
22082 \end_inset
22083
22084
22085 \family typewriter
22086
22087 \backslash
22088 refcite{key}
22089 \family default
22090
22091 \begin_inset Quotes erd
22092 \end_inset
22093
22094 .
22095 \end_layout
22096
22097 \begin_layout Enumerate
22098
22099 \change_deleted 564990737 1669755802
22100 There is no 
22101 \begin_inset Quotes eld
22102 \end_inset
22103
22104 Acknowledgments
22105 \begin_inset Quotes erd
22106 \end_inset
22107
22108  section in both packages.
22109  To put acknowledgments, just use the 
22110 \begin_inset Quotes eld
22111 \end_inset
22112
22113 Section*
22114 \begin_inset Quotes erd
22115 \end_inset
22116
22117  environment.
22118 \end_layout
22119
22120 \begin_layout Enumerate
22121
22122 \change_deleted 564990737 1669755802
22123 Appendices may be added to the paper, 
22124 \emph on
22125 after
22126 \emph default
22127  the Acknowledgments and 
22128 \shape italic
22129 before
22130 \shape default
22131  the References.
22132  \SpecialChar LyX
22133  provides a special environment, called 
22134 \begin_inset Quotes eld
22135 \end_inset
22136
22137 Appendices Section
22138 \begin_inset Quotes erd
22139 \end_inset
22140
22141  which marks the beginning of the appendices.
22142  This environment should be left blank; it just sends a \SpecialChar LaTeX
22143  command, but nothing
22144  is really printed.
22145  In \SpecialChar LyX
22146 , the word 
22147 \begin_inset Quotes eld
22148 \end_inset
22149
22150 Appendix
22151 \begin_inset Quotes erd
22152 \end_inset
22153
22154  is printed with blue letters, as a signal that all sections after that
22155  point are appendices.
22156  To write an appendix, use the 
22157 \begin_inset Quotes eld
22158 \end_inset
22159
22160 Appendix
22161 \begin_inset Quotes erd
22162 \end_inset
22163
22164  environment.
22165  \SpecialChar LyX
22166  will number each appendix with capital letters, as required by both journals.
22167  Note that 
22168 \begin_inset Quotes eld
22169 \end_inset
22170
22171 Appendices Section
22172 \begin_inset Quotes erd
22173 \end_inset
22174
22175  
22176 \emph on
22177 must
22178 \emph default
22179  be present before the first appendix; if not, all appendices will be numbered
22180  as normal sections in the output.
22181 \end_layout
22182
22183 \begin_layout Enumerate
22184
22185 \change_deleted 564990737 1669755802
22186 The ijmpc and the ijmpd packages use the 
22187 \family typewriter
22188 tbl
22189 \family default
22190  command to implement table captions.
22191  As a result, a table created by \SpecialChar LyX
22192  is printed correctly, but its caption
22193  is ignored.
22194  However, you can use some \SpecialChar TeX
22195  code to overcome this problem, so that captions
22196  are printed as expected.
22197  To do so, create a float table as usual, remove the caption, and replace
22198  it with the \SpecialChar TeX
22199  code 
22200 \family typewriter
22201
22202 \backslash
22203 tbl{
22204 \emph on
22205 your table caption
22206 \emph default
22207 }{
22208 \family default
22209  (sic); you must also the \SpecialChar TeX
22210  code 
22211 \family typewriter
22212 }
22213 \family default
22214  immediately after the tabular material.
22215  Study the example table included in the template files to see how this
22216  trick is implemented.
22217  Alternatively, If you need table captions, you should implement the whole
22218  table float in a 
22219 \family typewriter
22220 .tex
22221 \family default
22222  file, then include this file to the \SpecialChar LyX
22223  document (
22224 \family sans
22225 Insert\SpecialChar menuseparator
22226 File\SpecialChar menuseparator
22227 Child
22228 \begin_inset space ~
22229 \end_inset
22230
22231 Document
22232 \family default
22233 ).
22234  Details on how to create a table float can be found in the files 
22235 \family typewriter
22236 ws-ijmpc.tex
22237 \family default
22238  and 
22239 \family typewriter
22240 ws-ijmpd.tex
22241 \family default
22242 , included in the corresponding packages.
22243 \end_layout
22244
22245 \begin_layout Subsection
22246
22247 \change_deleted 564990737 1669755802
22248 Preparing a paper for submission
22249 \end_layout
22250
22251 \begin_layout Standard
22252
22253 \change_deleted 564990737 1669755802
22254 Before you submit your paper you must export the \SpecialChar LyX
22255  document as a \SpecialChar LaTeX
22256  file (
22257 \family sans
22258 File\SpecialChar menuseparator
22259 Export\SpecialChar menuseparator
22260 \SpecialChar LaTeX
22261
22262 \family default
22263 )
22264 \begin_inset Foot
22265 status open
22266
22267 \begin_layout Plain Layout
22268 Actually you have the choice between \SpecialChar LaTeX
22269  (plain) and pdflatex.
22270  If you intend to use pdflatex to prepare the paper, you should use the
22271  pdflatex option so that included graphics are converted to PDF format,
22272  ready for use by pdflatex.
22273 \end_layout
22274
22275 \end_inset
22276
22277 , then make the following changes to the resulting 
22278 \family typewriter
22279 .tex
22280 \family default
22281  file.
22282 \end_layout
22283
22284 \begin_layout Enumerate
22285
22286 \change_deleted 564990737 1669755802
22287 Remove the comment lines before the 
22288 \family typewriter
22289
22290 \backslash
22291 documentclass
22292 \family default
22293  command.
22294 \end_layout
22295
22296 \begin_layout Enumerate
22297
22298 \change_deleted 564990737 1669755802
22299 Remove everything between (and including) the 
22300 \family typewriter
22301
22302 \backslash
22303 makeatletter
22304 \family default
22305  and 
22306 \family typewriter
22307
22308 \backslash
22309 makeatother
22310 \family default
22311  commands, except for any commands you specifically put into the \SpecialChar LaTeX
22312  preamble.
22313 \end_layout
22314
22315 \begin_layout Standard
22316
22317 \change_deleted 564990737 1669755802
22318 The modified 
22319 \family typewriter
22320 .tex
22321 \family default
22322  file should be saved and processed through \SpecialChar LaTeX
22323  as many times as necessary.
22324  You may also want to check the resulting 
22325 \family typewriter
22326 .dvi
22327 \family default
22328  document.
22329 \change_unchanged
22330
22331 \end_layout
22332
22333 \begin_layout Section
22334
22335 \change_deleted 564990737 1669801478
22336 iopart
22337 \end_layout
22338
22339 \begin_layout Standard
22340
22341 \change_deleted 564990737 1669801478
22342 by 
22343 \noun on
22344 Uwe Stöhr
22345 \end_layout
22346
22347 \begin_layout Subsection
22348
22349 \change_deleted 564990737 1669801478
22350 Overview
22351 \end_layout
22352
22353 \begin_layout Standard
22354
22355 \change_deleted 564990737 1669801478
22356 The iopart package provides a document class to create electronic manuscript
22357  submission to the journals published by the Institute of Physics.
22358  Instructions for the authors how to create a paper using the iopart class
22359  can be downloaded together with the iopart package from the site 
22360 \begin_inset Flex URL
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364
22365 ftp://ftp.iop.org/pub/journals/latex2e
22366 \end_layout
22367
22368 \end_inset
22369
22370 .
22371 \end_layout
22372
22373 \begin_layout Subsection
22374
22375 \change_deleted 564990737 1669801478
22376 Writing a paper
22377 \end_layout
22378
22379 \begin_layout Standard
22380
22381 \change_deleted 564990737 1669801478
22382 The easiest way to write a paper is to start with the template 
22383 \emph on
22384 IOP-article.lyx
22385 \emph default
22386  that is available via 
22387 \family sans
22388 File\SpecialChar menuseparator
22389 New From Template
22390 \family default
22391  The template explains how to use the special text environments.
22392  Here are the most important advices:
22393 \end_layout
22394
22395 \begin_layout Itemize
22396
22397 \change_deleted 564990737 1669801478
22398 To be able to compile your document to a PDF, PS, or DVI, ensure that the
22399  no AMS packages are loaded in 
22400 \family sans
22401 Document\SpecialChar menuseparator
22402 Settings\SpecialChar menuseparator
22403 Math Options
22404 \family default
22405 !
22406 \end_layout
22407
22408 \begin_layout Itemize
22409
22410 \change_deleted 564990737 1669801478
22411
22412 \size normal
22413 The title environment defines the kind of your paper.
22414  So use one of the following environments for the title:
22415 \end_layout
22416
22417 \begin_deeper
22418 \begin_layout Itemize
22419
22420 \change_deleted 564990737 1669801478
22421
22422 \family sans
22423 \size normal
22424 Title
22425 \family default
22426  for a Paper
22427 \end_layout
22428
22429 \begin_layout Itemize
22430
22431 \change_deleted 564990737 1669801478
22432
22433 \family sans
22434 \size normal
22435 Review
22436 \family default
22437  for a Review
22438 \end_layout
22439
22440 \begin_layout Itemize
22441
22442 \change_deleted 564990737 1669801478
22443
22444 \family sans
22445 \size normal
22446 Topical
22447 \family default
22448  for a Topical review
22449 \end_layout
22450
22451 \begin_layout Itemize
22452
22453 \change_deleted 564990737 1669801478
22454
22455 \family sans
22456 \size normal
22457 Comment
22458 \family default
22459  for a Comment
22460 \end_layout
22461
22462 \begin_layout Itemize
22463
22464 \change_deleted 564990737 1669801478
22465
22466 \family sans
22467 \size normal
22468 Note
22469 \family default
22470  for a Note
22471 \end_layout
22472
22473 \begin_layout Itemize
22474
22475 \change_deleted 564990737 1669801478
22476
22477 \family sans
22478 \size normal
22479 Paper
22480 \family default
22481  for a Paper (same as Title)
22482 \end_layout
22483
22484 \begin_layout Itemize
22485
22486 \change_deleted 564990737 1669801478
22487
22488 \family sans
22489 \size normal
22490 Prelim
22491 \family default
22492  for a Preliminary communication
22493 \end_layout
22494
22495 \begin_layout Itemize
22496
22497 \change_deleted 564990737 1669801478
22498
22499 \family sans
22500 \size normal
22501 Rapid
22502 \family default
22503  for a Rapid communication
22504 \end_layout
22505
22506 \begin_layout Itemize
22507
22508 \change_deleted 564990737 1669801478
22509
22510 \family sans
22511 \size normal
22512 Letter
22513 \family default
22514  for a Letter to the editor
22515 \end_layout
22516
22517 \end_deeper
22518 \begin_layout Itemize
22519
22520 \change_deleted 564990737 1669801478
22521
22522 \size normal
22523 All title environments except of 
22524 \family sans
22525 Letter
22526 \family default
22527  can have an optional short title.
22528 \end_layout
22529
22530 \begin_layout Itemize
22531
22532 \change_deleted 564990737 1669801478
22533 There is a general title environment 
22534 \family sans
22535 Article
22536 \family default
22537  which is not directly supported by \SpecialChar LyX
22538 .
22539  This can be used as \SpecialChar TeX
22540  code when your document doesn't fit into one of the
22541  other title types.
22542 \end_layout
22543
22544 \begin_layout Standard
22545
22546 \change_deleted 564990737 1669801478
22547 For more informations like hints for special table and formula formatting,
22548  look at the IOP author guidelines.
22549 \change_unchanged
22550
22551 \end_layout
22552
22553 \begin_layout Section
22554
22555 \change_deleted 564990737 1670317155
22556 Kluwer
22557 \end_layout
22558
22559 \begin_layout Standard
22560
22561 \change_deleted 564990737 1670317155
22562 by 
22563 \noun on
22564 Panayotis Papasotiriou
22565 \end_layout
22566
22567 \begin_layout Subsection
22568
22569 \change_deleted 564990737 1670317155
22570 Overview
22571 \end_layout
22572
22573 \begin_layout Standard
22574
22575 \change_deleted 564990737 1670317155
22576 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
22577  that facilitates electronic manuscript submission to the journals they
22578  publish.
22579  Most known of them (at least in my domain of interest) are 
22580 \emph on
22581 Astrophysics and Space Science
22582 \emph default
22583  and 
22584 \emph on
22585 Solar Physics
22586 \emph default
22587 , but there are many others (see a complete list at 
22588 \begin_inset Flex URL
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592
22593 http://www.wkap.nl/jrnllist.htm/JRNLHOME
22594 \end_layout
22595
22596 \end_inset
22597
22598 ).
22599  The Kluwer package may be downloaded from the site 
22600 \begin_inset Flex URL
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604
22605 http://www.wkap.nl/kaphtml.htm/STYLEFILES
22606 \end_layout
22607
22608 \end_inset
22609
22610 .
22611  A complete user guide is contained in that package (but it can also be
22612  downloaded separately).
22613 \end_layout
22614
22615 \begin_layout Standard
22616
22617 \change_deleted 564990737 1670317155
22618 \SpecialChar LyX
22619  supports many features of the package but not everything.
22620  However, the \SpecialChar TeX
22621  code needed is reduced to some 
22622 \begin_inset Quotes eld
22623 \end_inset
22624
22625 peculiar
22626 \begin_inset Quotes erd
22627 \end_inset
22628
22629  commands of the package (see
22630 \begin_inset space ~
22631 \end_inset
22632
22633
22634 \begin_inset CommandInset ref
22635 LatexCommand ref
22636 reference "subsec:kluwer_peculiarities"
22637
22638 \end_inset
22639
22640 ).
22641  I have recently used \SpecialChar LyX
22642  to write an article submitted to the 
22643 \emph on
22644 Astrophysics and Space Science
22645 \emph default
22646  without any problem.
22647 \end_layout
22648
22649 \begin_layout Subsection
22650
22651 \change_deleted 564990737 1670317155
22652 Writing a paper
22653 \end_layout
22654
22655 \begin_layout Standard
22656
22657 \change_deleted 564990737 1670317155
22658 The easiest way to write a paper is to start with the Kluwer template file.
22659  Click on 
22660 \family sans
22661 File\SpecialChar menuseparator
22662 New from
22663 \family default
22664  
22665 \family sans
22666 Template
22667 \family default
22668 , then choose the 
22669 \family typewriter
22670 kluwer.lyx
22671 \family default
22672  template.
22673  This will give an (almost) empty document that includes the most common
22674  fields found in a manuscript and a short description of their use.
22675  As in most templates, simply overwrite the existing text (including the
22676  brackets, 
22677 \family typewriter
22678 <>
22679 \family default
22680 ) with the correct information.
22681 \end_layout
22682
22683 \begin_layout Subsection
22684
22685 \change_deleted 564990737 1670317155
22686 Preparing a paper for submission
22687 \end_layout
22688
22689 \begin_layout Standard
22690
22691 \change_deleted 564990737 1670317155
22692 As in the AAS\SpecialChar TeX
22693  package, before you submit your paper to a journal you must
22694  
22695 \begin_inset Quotes eld
22696 \end_inset
22697
22698 postprocess
22699 \begin_inset Quotes erd
22700 \end_inset
22701
22702  it as follows.
22703 \end_layout
22704
22705 \begin_layout Enumerate
22706
22707 \change_deleted 564990737 1670317155
22708 Export your paper as a \SpecialChar LaTeX
22709  file.
22710  To do this, click on 
22711 \family sans
22712 File\SpecialChar menuseparator
22713 Export\SpecialChar menuseparator
22714 \SpecialChar LaTeX
22715
22716 \family default
22717 .
22718  
22719 \end_layout
22720
22721 \begin_layout Enumerate
22722
22723 \change_deleted 564990737 1670317155
22724 Edit the resulting 
22725 \family typewriter
22726 .tex
22727 \family default
22728  file with a text editor and make the following changes
22729 \end_layout
22730
22731 \begin_deeper
22732 \begin_layout Enumerate
22733
22734 \change_deleted 564990737 1670317155
22735 remove the comment lines before the 
22736 \family typewriter
22737
22738 \backslash
22739 documentclass
22740 \family default
22741  command,
22742 \end_layout
22743
22744 \begin_layout Enumerate
22745
22746 \change_deleted 564990737 1670317155
22747 remove everything between (and including) the 
22748 \family typewriter
22749
22750 \backslash
22751 makeatletter
22752 \family default
22753  and 
22754 \family typewriter
22755
22756 \backslash
22757 makeatother
22758 \family default
22759  commands, except for any commands you specifically put into the \SpecialChar LaTeX
22760  preamble.
22761 \end_layout
22762
22763 \begin_layout Standard
22764
22765 \change_deleted 564990737 1670317155
22766 Save the resulting 
22767 \family typewriter
22768 .tex
22769 \family default
22770  file.
22771 \end_layout
22772
22773 \end_deeper
22774 \begin_layout Enumerate
22775
22776 \change_deleted 564990737 1670317155
22777 Run the 
22778 \family typewriter
22779 .tex
22780 \family default
22781  file through \SpecialChar LaTeX
22782  as many times as necessary (usually up to three).
22783 \end_layout
22784
22785 \begin_layout Enumerate
22786
22787 \change_deleted 564990737 1670317155
22788 View the resulting 
22789 \family typewriter
22790 .dvi
22791 \family default
22792  document using, e.
22793 \begin_inset space \thinspace{}
22794 \end_inset
22795
22796 g.
22797 \begin_inset space \space{}
22798 \end_inset
22799
22800
22801 \family sans
22802 xdvi
22803 \family default
22804 , and check if everything is OK (it should, if you didn't make any mistake).
22805 \end_layout
22806
22807 \begin_layout Subsection
22808
22809 \change_deleted 564990737 1670317155
22810 \begin_inset Quotes eld
22811 \end_inset
22812
22813 Peculiarities
22814 \begin_inset Quotes erd
22815 \end_inset
22816
22817  of the Kluwer package
22818 \begin_inset CommandInset label
22819 LatexCommand label
22820 name "subsec:kluwer_peculiarities"
22821
22822 \end_inset
22823
22824
22825 \end_layout
22826
22827 \begin_layout Standard
22828
22829 \change_deleted 564990737 1670317155
22830 The Kluwer package has the following 
22831 \begin_inset Quotes eld
22832 \end_inset
22833
22834 peculiarities
22835 \begin_inset Quotes erd
22836 \end_inset
22837
22838 .
22839 \end_layout
22840
22841 \begin_layout Enumerate
22842
22843 \change_deleted 564990737 1670317155
22844 It is possible to write multiple articles in the same \SpecialChar LaTeX
22845  file
22846 \begin_inset Foot
22847 status collapsed
22848
22849 \begin_layout Plain Layout
22850 I can't imagine any good reason to do this.
22851 \end_layout
22852
22853 \end_inset
22854
22855 .
22856  Each article must be included in the environment 
22857 \begin_inset Quotes eld
22858 \end_inset
22859
22860 article
22861 \begin_inset Quotes erd
22862 \end_inset
22863
22864 .
22865  Unfortunately, this environment cannot be omitted, even if you write just
22866  one article.
22867  Therefore, each article starts with the command 
22868 \family typewriter
22869
22870 \backslash
22871 begin{article}
22872 \family default
22873  and, obviously, ends with the command 
22874 \family typewriter
22875
22876 \backslash
22877 end{article}
22878 \family default
22879 .
22880  Although this can be implemented in \SpecialChar LyX
22881 , I didn't included it, since it looks
22882  ugly and can confuse the novice user.
22883  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
22884  code (the
22885  well-known 
22886 \begin_inset Quotes eld
22887 \end_inset
22888
22889 \SpecialChar TeX
22890  code
22891 \begin_inset Quotes erd
22892 \end_inset
22893
22894 ).
22895 \end_layout
22896
22897 \begin_layout Enumerate
22898
22899 \change_deleted 564990737 1670317155
22900 Information given at the beginning of the article (i.
22901 \begin_inset space \thinspace{}
22902 \end_inset
22903
22904 e.
22905 \begin_inset space \space{}
22906 \end_inset
22907
22908 title, subtitle, author, institution, running title, running author, abstract
22909  and keywords) must be included in an environment called 
22910 \begin_inset Quotes eld
22911 \end_inset
22912
22913 opening
22914 \begin_inset Quotes erd
22915 \end_inset
22916
22917 .
22918  This is not implemented in \SpecialChar LyX
22919 , so you must enter title, subtitle etc.
22920 \begin_inset space ~
22921 \end_inset
22922
22923 between two \SpecialChar TeX
22924  code lines (
22925 \family typewriter
22926
22927 \backslash
22928 begin{opening}
22929 \family default
22930  and 
22931 \family typewriter
22932
22933 \backslash
22934 end{opening}
22935 \family default
22936 ).
22937 \end_layout
22938
22939 \begin_layout Enumerate
22940
22941 \change_deleted 564990737 1670317155
22942 According to the user manual, the label of each bibliography item must be
22943  written as 
22944 \family typewriter
22945
22946 \backslash
22947 protect
22948 \backslash
22949 citeauthoryear{
22950 \family default
22951 \emph on
22952 author(s)
22953 \family typewriter
22954 \emph default
22955 }{
22956 \family default
22957 \emph on
22958 year
22959 \family typewriter
22960 \emph default
22961 }
22962 \family default
22963 .
22964 \end_layout
22965
22966 \begin_layout Standard
22967
22968 \change_deleted 564990737 1670317155
22969 The 
22970 \family typewriter
22971 kluwer.lyx
22972 \family default
22973  template takes care of all these 
22974 \begin_inset Quotes eld
22975 \end_inset
22976
22977 peculiarities
22978 \begin_inset Quotes erd
22979 \end_inset
22980
22981 .
22982  If you start a new paper using this template you don't need to do anything
22983  special.
22984  Just 
22985 \end_layout
22986
22987 \begin_layout Enumerate
22988
22989 \change_deleted 564990737 1670317155
22990 don't delete the \SpecialChar TeX
22991  code included in the template, and
22992 \end_layout
22993
22994 \begin_layout Enumerate
22995
22996 \change_deleted 564990737 1670317155
22997 copy the example bibliography item included in the template and modify it
22998  as necessary to enter new bibliography items.
22999 \end_layout
23000
23001 \begin_layout Section
23002
23003 \change_deleted 564990737 1671097446
23004 Paper
23005 \end_layout
23006
23007 \begin_layout Standard
23008
23009 \change_deleted 564990737 1671097446
23010 The document class 
23011 \family sans
23012 paper
23013 \family default
23014  provides an alternative to the standard 
23015 \family sans
23016 article
23017 \family default
23018  class.
23019  It provides similar functionality, but you might prefer this layout with
23020  sans serif sections, headings, and more.
23021 \end_layout
23022
23023 \begin_layout Section
23024
23025 \change_deleted 564990737 1671097446
23026 Springer Journals (
23027 \family sans
23028 svjour
23029 \family default
23030 )
23031 \end_layout
23032
23033 \begin_layout Standard
23034
23035 \change_deleted 564990737 1671097446
23036 by 
23037 \noun on
23038 Martin Vermeer
23039 \end_layout
23040
23041 \begin_layout Subsection
23042
23043 \change_deleted 564990737 1671097446
23044 Description
23045 \end_layout
23046
23047 \begin_layout Standard
23048
23049 \change_deleted 564990737 1671097446
23050 These are the layout files for some of the journal formats used by Springer
23051  Verlag and listed on 
23052 \begin_inset Flex URL
23053 status collapsed
23054
23055 \begin_layout Plain Layout
23056
23057 http://www.springer.de/author/tex/help-journals.html
23058 \end_layout
23059
23060 \end_inset
23061
23062 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
23063  now!).
23064  It is a modular system: the things common to all journals are implemented
23065  in 
23066 \family typewriter
23067 svjour.inc
23068 \family default
23069 , which journal-specific layout files (such as, e.
23070 \begin_inset space \thinspace{}
23071 \end_inset
23072
23073 g.
23074 \begin_inset space \space{}
23075 \end_inset
23076
23077
23078 \family typewriter
23079 svjog.layout
23080 \family default
23081  for Journal of Geodesy) can include.
23082 \end_layout
23083
23084 \begin_layout Standard
23085
23086 \change_deleted 564990737 1671097446
23087 This means that implementing support for any other Springer journal on this
23088  list is as simple as writing your own 
23089 \family typewriter
23090 sv
23091 \family default
23092 <myjournal>
23093 \family typewriter
23094 .layout
23095 \family default
23096  file following the outline given in 
23097 \family typewriter
23098 svjog.layout
23099 \family default
23100 .
23101  
23102 \end_layout
23103
23104 \begin_layout Standard
23105
23106 \change_deleted 564990737 1671097446
23107 It is reasonably well tested only for the Journal of Geodesy.
23108  
23109 \family typewriter
23110 svjour
23111 \family default
23112  and 
23113 \family typewriter
23114 svjog
23115 \family default
23116  come with the standard \SpecialChar LyX
23117  distribution.
23118  Install the relevant class file (downloaded from Springer) in a proper
23119  directory, reconfigure \SpecialChar LaTeX
23120  (in the te\SpecialChar TeX
23121  case by running 
23122 \family typewriter
23123 texhash
23124 \family default
23125 , as root if necessary — doesn't \SpecialChar LyX
23126  take care of this?), reconfigure \SpecialChar LyX
23127  and
23128  it should work.
23129 \end_layout
23130
23131 \begin_layout Subsection
23132
23133 \change_deleted 564990737 1671097446
23134 New styles
23135 \end_layout
23136
23137 \begin_layout Standard
23138
23139 \change_deleted 564990737 1671097446
23140 A large number of theorem-like styles — 
23141 \family sans
23142 Claim, Conjecture,
23143 \family default
23144  
23145 \family sans
23146 \SpecialChar ldots
23147 Theorem
23148 \family default
23149 .
23150 \end_layout
23151
23152 \begin_layout Standard
23153
23154 \change_deleted 564990737 1671097446
23155
23156 \family sans
23157 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
23158 _Title, Author_Running, Institute,
23159  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
23160 \family default
23161 .
23162  See the Springer class file documentation for details.
23163 \end_layout
23164
23165 \begin_layout Subsection
23166
23167 \change_deleted 564990737 1671097446
23168 Supported journals
23169 \end_layout
23170
23171 \begin_layout Itemize
23172
23173 \change_deleted 564990737 1671097446
23174
23175 \emph on
23176 Journal of Geodesy
23177 \emph default
23178
23179 \family typewriter
23180 svjog.layout
23181 \family default
23182  — Martin Vermeer
23183 \end_layout
23184
23185 \begin_layout Itemize
23186
23187 \change_deleted 564990737 1671097446
23188
23189 \emph on
23190 Probability Theory and Related Fields
23191 \emph default
23192
23193 \family typewriter
23194 svprobth.layout
23195 \family default
23196  — Jean-Marc Lasgouttes
23197 \end_layout
23198
23199 \begin_layout Standard
23200
23201 \change_deleted 564990737 1671097446
23202 Add your own, it isn't so hard!
23203 \end_layout
23204
23205 \begin_layout Subsection
23206
23207 \change_deleted 564990737 1671097446
23208 Credits
23209 \end_layout
23210
23211 \begin_layout Standard
23212
23213 \change_deleted 564990737 1671097446
23214 These files are partly based on the older 
23215 \family typewriter
23216 ejour2.layout
23217 \family default
23218 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
23219  2.09 style
23220  file from Springer.
23221  All this, and the 
23222 \family typewriter
23223 ejour2
23224 \family default
23225  layout, are now defunct.
23226  Jean-Marc Lasgouttes helped out big in making me find my way around the
23227  \SpecialChar LyX
23228  layout file mechanism.
23229 \end_layout
23230
23231 \begin_layout Subsection
23232
23233 \change_deleted 564990737 1671097446
23234 Bugs
23235 \end_layout
23236
23237 \begin_layout Standard
23238
23239 \change_deleted 564990737 1671097446
23240 Probably.
23241  But probably less than in the old hacked-\SpecialChar LaTeX
23242  
23243 \family typewriter
23244 ejour2
23245 \family default
23246 .
23247 \end_layout
23248
23249 \begin_layout Chapter
23250 \SpecialChar LyX
23251  Features needing Extra Software
23252 \end_layout
23253
23254 \begin_layout Section
23255 Checking \SpecialChar TeX
23256
23257 \end_layout
23258
23259 \begin_layout Standard
23260 by 
23261 \noun on
23262 Asger Alstrup
23263 \end_layout
23264
23265 \begin_layout Subsection
23266 Introduction
23267 \end_layout
23268
23269 \begin_layout Standard
23270 If you have the 
23271 \family typewriter
23272 chktex
23273 \family default
23274  program installed
23275 \begin_inset Foot
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279
23280 \family typewriter
23281 chktex
23282 \family default
23283  is not yet available when you are using the \SpecialChar LaTeX
23284  distribution MiK\SpecialChar TeX
23285 .
23286 \end_layout
23287
23288 \end_inset
23289
23290 , you'll find in the 
23291 \family sans
23292 Tools
23293 \family default
23294  menu the entry: 
23295 \family sans
23296 Check
23297 \begin_inset space ~
23298 \end_inset
23299
23300 TeX
23301 \family default
23302 .
23303  You can get 
23304 \family typewriter
23305 chktex
23306 \family default
23307  from CTAN,
23308 \begin_inset Newline newline
23309 \end_inset
23310
23311
23312 \begin_inset CommandInset href
23313 LatexCommand href
23314 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
23315 literal "false"
23316
23317 \end_inset
23318
23319 .
23320 \end_layout
23321
23322 \begin_layout Standard
23323 The 
23324 \family sans
23325 Chk\SpecialChar TeX
23326
23327 \family default
23328  package is a program that was written by 
23329 \begin_inset Flex Noun
23330 status collapsed
23331
23332 \begin_layout Plain Layout
23333 Jens T.
23334 \begin_inset space ~
23335 \end_inset
23336
23337 Berger Thielemann
23338 \end_layout
23339
23340 \end_inset
23341
23342  in frustration because some constructs in \SpecialChar LaTeX
23343  are sometimes non-intuitive,
23344  and easy to forget.
23345  The program runs over your \SpecialChar LaTeX
23346  file, checks the integrity of the file, and
23347  flags some common errors.
23348  In other technical words, it is 
23349 \family typewriter
23350 lint
23351 \family default
23352  for \SpecialChar LaTeX
23353 .
23354 \end_layout
23355
23356 \begin_layout Standard
23357 Well, what is a syntax checker doing in \SpecialChar LyX
23358  which is supposed to produce correct
23359  \SpecialChar LaTeX
23360  anyways? The answer is simple: Just as 
23361 \family typewriter
23362 Lint
23363 \family default
23364  not only checks the 
23365 \emph on
23366 syntax
23367 \emph default
23368  of C programs, but also does 
23369 \emph on
23370 semantic
23371 \emph default
23372  checks for type-errors, 
23373 \family sans
23374 Chk\SpecialChar TeX
23375
23376 \family default
23377  catches some common 
23378 \emph on
23379 typographic
23380 \emph default
23381  errors, in addition to the syntactical ones.
23382  Specifically, 
23383 \family sans
23384 Chk\SpecialChar TeX
23385
23386 \family default
23387  is capable of detecting several common errors, such as
23388 \end_layout
23389
23390 \begin_layout Itemize
23391 Ellipsis detection:
23392 \begin_inset Newline newline
23393 \end_inset
23394
23395 Use \SpecialChar ldots
23396  instead of ...
23397 \end_layout
23398
23399 \begin_layout Itemize
23400 No space in front of/after parenthesis:
23401 \begin_inset Newline newline
23402 \end_inset
23403
23404 ( wrong spacing )
23405 \end_layout
23406
23407 \begin_layout Itemize
23408 Enforcement of normal space after common abbreviations:
23409 \begin_inset Newline newline
23410 \end_inset
23411
23412 e.
23413 \begin_inset space \thinspace{}
23414 \end_inset
23415
23416 g.
23417 \begin_inset space \space{}
23418 \end_inset
23419
23420 is too wide spacing.
23421 \end_layout
23422
23423 \begin_layout Itemize
23424 Enforcement of end-of-sentence space when the last sentence ends with a
23425  capital letter:
23426 \begin_inset Newline newline
23427 \end_inset
23428
23429 This is a TEST.
23430  And this is wrong spacing.
23431 \end_layout
23432
23433 \begin_layout Itemize
23434 Space in front of labels and similar commands:
23435 \begin_inset Newline newline
23436 \end_inset
23437
23438 The label should stick right up to the text to avoid falling to a wrong
23439  page.
23440  
23441 \begin_inset CommandInset label
23442 LatexCommand label
23443 name "sec:chktex"
23444
23445 \end_inset
23446
23447  
23448 \begin_inset Foot
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 This footnote is in danger of falling off to a wrong page
23453 \end_layout
23454
23455 \end_inset
23456
23457  The label is separated too much.
23458 \end_layout
23459
23460 \begin_layout Itemize
23461 Space in front of references, instead of hard spaces:
23462 \begin_inset Newline newline
23463 \end_inset
23464
23465 If you have bad luck, the text will break right between the referenced text
23466  and reference number, and that's a pity.
23467  See section 
23468 \begin_inset CommandInset ref
23469 LatexCommand ref
23470 reference "sec:chktex"
23471
23472 \end_inset
23473
23474 .
23475 \end_layout
23476
23477 \begin_layout Itemize
23478 Use of 
23479 \begin_inset Quotes eld
23480 \end_inset
23481
23482 x
23483 \begin_inset Quotes erd
23484 \end_inset
23485
23486  instead of 
23487 \begin_inset Formula $\times$
23488 \end_inset
23489
23490  between numbers:
23491 \begin_inset Newline newline
23492 \end_inset
23493
23494 2x2 looks cheap compared to 
23495 \begin_inset Formula $2\times2$
23496 \end_inset
23497
23498 .
23499 \end_layout
23500
23501 \begin_layout Standard
23502 and more \SpecialChar ldots
23503  It is an invaluable tool when you are 
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 finishing up
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511  your document before printing, and you should run it right after the obligatory
23512  spelling check, and before you go fine tuning the typesetting.
23513 \end_layout
23514
23515 \begin_layout Subsection
23516 How to use it
23517 \end_layout
23518
23519 \begin_layout Standard
23520 If you have the program installed, usage is as simple as choosing 
23521 \family sans
23522 Tools\SpecialChar menuseparator
23523 Check
23524 \begin_inset space ~
23525 \end_inset
23526
23527 TeX
23528 \family default
23529 .
23530  This will make \SpecialChar LyX
23531  generate a \SpecialChar LaTeX
23532  file of your document, start 
23533 \family sans
23534 Chk\SpecialChar TeX
23535
23536 \family default
23537  to check it, and then make \SpecialChar LyX
23538  insert 
23539 \begin_inset Quotes eld
23540 \end_inset
23541
23542 error boxes
23543 \begin_inset Quotes erd
23544 \end_inset
23545
23546  with the warnings from 
23547 \family sans
23548 Chk\SpecialChar TeX
23549
23550 \family default
23551 , if there were any.
23552  The warnings will be placed close to the point of the mistake, and you
23553  can quickly find them by using the 
23554 \family sans
23555 Navigate\SpecialChar menuseparator
23556 Error
23557 \family default
23558  menu item, or the shortcut key 
23559 \family sans
23560 C-g
23561 \family default
23562  from the default 
23563 \family typewriter
23564 cua
23565 \family default
23566  bind file.
23567  Open the error boxes by clicking on them with the mouse, or use the shortcut
23568  key 
23569 \family sans
23570 C-i
23571 \family default
23572  from 
23573 \family typewriter
23574 cua
23575 \family default
23576  bindings, or the corresponding 
23577 \family sans
23578 C-o
23579 \family default
23580  for the alternate 
23581 \family typewriter
23582 emacs
23583 \family default
23584  bind file.
23585  Read the warning and correct the mistake, if it is a mistake.
23586  If you have trouble understanding what the warning is about, you can safely
23587  ignore it.
23588  Remember that there is a hidden layer between the document on screen and
23589  the technical details in invoking 
23590 \family sans
23591 Chk\SpecialChar TeX
23592
23593 \family default
23594 , and this gap can make some warnings seem arcane or just plain silly.
23595 \end_layout
23596
23597 \begin_layout Standard
23598 This document is an excellent testing bed for the feature, and it should
23599  provide quite a few warnings for you to fiddle with.
23600  Since computers are only so smart, expect most of the warnings to be false
23601  alarms, though.
23602 \end_layout
23603
23604 \begin_layout Subsection
23605 How to fine tune it
23606 \end_layout
23607
23608 \begin_layout Standard
23609 Sometimes, you'll find that 
23610 \family sans
23611 Chk\SpecialChar TeX
23612
23613 \family default
23614  makes more noise than suits your mood.
23615  Then you can choose not to use it, wait until your mood changes, or try
23616  to customize 
23617 \family sans
23618 Chk\SpecialChar TeX
23619
23620 \family default
23621  to get better along with you.
23622 \end_layout
23623
23624 \begin_layout Standard
23625 Although 
23626 \family sans
23627 Chk\SpecialChar TeX
23628
23629 \family default
23630  
23631 \emph on
23632 is
23633 \emph default
23634  very configurable and extensible, you should not expect to solve all problems
23635  with 
23636 \family sans
23637 Chk\SpecialChar TeX
23638
23639 \family default
23640  in \SpecialChar LyX
23641  this way.
23642  Since \SpecialChar LyX
23643  has to generate a somewhat special \SpecialChar LaTeX
23644  file to be able to match the
23645  line numbers from the 
23646 \family sans
23647 Chk\SpecialChar TeX
23648
23649 \family default
23650  output
23651 \begin_inset Foot
23652 status collapsed
23653
23654 \begin_layout Plain Layout
23655 You can inspect the specific output from 
23656 \family sans
23657 chktex
23658 \family default
23659  by using 
23660 \family sans
23661 Document\SpecialChar menuseparator
23662 \SpecialChar LaTeX
23663
23664 \begin_inset space ~
23665 \end_inset
23666
23667 Log
23668 \family default
23669  right after a 
23670 \family sans
23671 chktex
23672 \family default
23673  run.
23674 \end_layout
23675
23676 \end_inset
23677
23678  to the internal document structure, some of the warnings will not appear
23679  correctly.
23680  There are two things you can do about this:
23681 \end_layout
23682
23683 \begin_layout Itemize
23684 Fine tune the 
23685 \family sans
23686 Chk\SpecialChar TeX
23687
23688 \family default
23689  invocation command line in 
23690 \begin_inset Flex Noun
23691 status collapsed
23692
23693 \begin_layout Plain Layout
23694 Tools\SpecialChar menuseparator
23695 Preferences\SpecialChar menuseparator
23696 Output\SpecialChar menuseparator
23697 LaTeX\SpecialChar menuseparator
23698 CheckTeX command
23699 \end_layout
23700
23701 \end_inset
23702
23703 , or the global 
23704 \family sans
23705 Chk\SpecialChar TeX
23706
23707 \family default
23708  installation configuration file (usually with the file 
23709 \family typewriter
23710 chktexrc
23711 \family default
23712 ).
23713  See below to learn what warnings can be enabled and disabled on the command
23714  line.
23715 \end_layout
23716
23717 \begin_layout Itemize
23718 Export your document as a raw \SpecialChar LaTeX
23719  file using 
23720 \family sans
23721 File\SpecialChar menuseparator
23722 Export\SpecialChar menuseparator
23723 \SpecialChar LaTeX
23724
23725 \family default
23726  and run 
23727 \family typewriter
23728 chktex
23729 \family default
23730  manually on that.
23731  Invoked in this way, it can be a hassle to find the corresponding place
23732  in the document inside \SpecialChar LyX
23733 , but with a little patience, you should be able
23734  to do it.
23735 \end_layout
23736
23737 \begin_layout Standard
23738 Here follows the warning messages that can be enabled and disabled in 
23739 \family sans
23740 Preferences
23741 \family default
23742 .
23743  Use 
23744 \family typewriter
23745 -n#
23746 \family default
23747  to disable a warning, and 
23748 \family typewriter
23749 -w#
23750 \family default
23751  to enable a warning.
23752  The emphasized entries are disabled by default, because the default is
23753  "
23754 \family typewriter
23755 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
23756 \family default
23757 ".
23758 \end_layout
23759
23760 \begin_layout Standard
23761 Notice that you should only use the options that enable and disable warnings,
23762  because \SpecialChar LyX
23763  relies on some of the other command line parameters to be set
23764  in a specific way to have a chance to communicate with 
23765 \family typewriter
23766 chktex
23767 \family default
23768 .
23769 \end_layout
23770
23771 \begin_layout Enumerate
23772
23773 \size small
23774 \emph on
23775 Command terminated with space.
23776 \end_layout
23777
23778 \begin_layout Enumerate
23779
23780 \size small
23781 Non-breaking space (
23782 \begin_inset Quotes eld
23783 \end_inset
23784
23785
23786 \family typewriter
23787 ~
23788 \family default
23789
23790 \begin_inset Quotes erd
23791 \end_inset
23792
23793 ) should have been used.
23794 \end_layout
23795
23796 \begin_layout Enumerate
23797
23798 \size small
23799 \emph on
23800 You should enclose the previous parenthesis with 
23801 \begin_inset Quotes eld
23802 \end_inset
23803
23804
23805 \family typewriter
23806 {}
23807 \family default
23808
23809 \begin_inset Quotes erd
23810 \end_inset
23811
23812 .
23813 \end_layout
23814
23815 \begin_layout Enumerate
23816
23817 \size small
23818 Italic correction (
23819 \begin_inset Quotes eld
23820 \end_inset
23821
23822
23823 \family typewriter
23824
23825 \backslash
23826 /
23827 \family default
23828
23829 \begin_inset Quotes erd
23830 \end_inset
23831
23832 ) found in non-italic buffer.
23833 \end_layout
23834
23835 \begin_layout Enumerate
23836
23837 \size small
23838 Italic correction (
23839 \begin_inset Quotes eld
23840 \end_inset
23841
23842
23843 \family typewriter
23844
23845 \backslash
23846 /
23847 \family default
23848
23849 \begin_inset Quotes erd
23850 \end_inset
23851
23852 ) found more than once.
23853 \end_layout
23854
23855 \begin_layout Enumerate
23856
23857 \size small
23858 \emph on
23859 No italic correction (
23860 \begin_inset Quotes eld
23861 \end_inset
23862
23863
23864 \family typewriter
23865
23866 \backslash
23867 /
23868 \family default
23869
23870 \begin_inset Quotes erd
23871 \end_inset
23872
23873 ) found.
23874 \end_layout
23875
23876 \begin_layout Enumerate
23877
23878 \size small
23879 Accent command 
23880 \begin_inset Quotes eld
23881 \end_inset
23882
23883
23884 \family typewriter
23885 cmd
23886 \family default
23887
23888 \begin_inset Quotes erd
23889 \end_inset
23890
23891  needs use of 
23892 \begin_inset Quotes eld
23893 \end_inset
23894
23895
23896 \family typewriter
23897 cmd
23898 \family default
23899
23900 \begin_inset Quotes erd
23901 \end_inset
23902
23903 .
23904 \end_layout
23905
23906 \begin_layout Enumerate
23907
23908 \size small
23909 Wrong length of dash may have been used.
23910 \end_layout
23911
23912 \begin_layout Enumerate
23913
23914 \size small
23915 \emph on
23916 \begin_inset Quotes eld
23917 \end_inset
23918
23919
23920 \family typewriter
23921 %s
23922 \family default
23923
23924 \begin_inset Quotes erd
23925 \end_inset
23926
23927  expected, found 
23928 \begin_inset Quotes eld
23929 \end_inset
23930
23931
23932 \family typewriter
23933 %s
23934 \family default
23935
23936 \begin_inset Quotes erd
23937 \end_inset
23938
23939 .
23940 \end_layout
23941
23942 \begin_layout Enumerate
23943
23944 \size small
23945 Solo 
23946 \begin_inset Quotes eld
23947 \end_inset
23948
23949
23950 \family typewriter
23951 %s
23952 \family default
23953
23954 \begin_inset Quotes erd
23955 \end_inset
23956
23957  found.
23958 \end_layout
23959
23960 \begin_layout Enumerate
23961
23962 \size small
23963 You should use 
23964 \begin_inset Quotes eld
23965 \end_inset
23966
23967
23968 \family typewriter
23969 %s
23970 \family default
23971
23972 \begin_inset Quotes erd
23973 \end_inset
23974
23975  to achieve an ellipsis.
23976 \end_layout
23977
23978 \begin_layout Enumerate
23979
23980 \size small
23981 Inter-word spacing (
23982 \begin_inset Quotes eld
23983 \end_inset
23984
23985
23986 \family typewriter
23987
23988 \backslash
23989
23990 \family default
23991  
23992 \begin_inset Quotes eld
23993 \end_inset
23994
23995 ) should perhaps be used.
23996 \end_layout
23997
23998 \begin_layout Enumerate
23999
24000 \size small
24001 Inter-sentence spacing (
24002 \begin_inset Quotes eld
24003 \end_inset
24004
24005
24006 \family typewriter
24007
24008 \backslash
24009 @
24010 \family default
24011
24012 \begin_inset Quotes erd
24013 \end_inset
24014
24015 ) should perhaps be used.
24016 \end_layout
24017
24018 \begin_layout Enumerate
24019
24020 \size small
24021 Could not find argument for command.
24022 \end_layout
24023
24024 \begin_layout Enumerate
24025
24026 \size small
24027 No match found for 
24028 \begin_inset Quotes eld
24029 \end_inset
24030
24031
24032 \family typewriter
24033 %s
24034 \family default
24035
24036 \begin_inset Quotes erd
24037 \end_inset
24038
24039 .
24040 \end_layout
24041
24042 \begin_layout Enumerate
24043
24044 \size small
24045 Math mode still on at end of \SpecialChar LaTeX
24046  file.
24047 \end_layout
24048
24049 \begin_layout Enumerate
24050
24051 \size small
24052 Number of 
24053 \begin_inset Quotes eld
24054 \end_inset
24055
24056
24057 \family typewriter
24058 char
24059 \family default
24060
24061 \begin_inset Quotes erd
24062 \end_inset
24063
24064  doesn't match the number of 
24065 \begin_inset Quotes eld
24066 \end_inset
24067
24068
24069 \family typewriter
24070 char
24071 \family default
24072
24073 \begin_inset Quotes erd
24074 \end_inset
24075
24076 .
24077 \end_layout
24078
24079 \begin_layout Enumerate
24080
24081 \size small
24082 You should use either 
24083 \family typewriter
24084
24085 \begin_inset Quotes eld
24086 \end_inset
24087
24088
24089 \family default
24090  or 
24091 \family typewriter
24092
24093 \begin_inset Quotes erd
24094 \end_inset
24095
24096
24097 \family default
24098  as an alternative to 
24099 \begin_inset Quotes eld
24100 \end_inset
24101
24102
24103 \family typewriter
24104 "
24105 \family default
24106
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 .
24111 \end_layout
24112
24113 \begin_layout Enumerate
24114
24115 \size small
24116 You should use "
24117 \family typewriter
24118 '
24119 \family default
24120 " (ASCII 39) instead of "
24121 \family typewriter
24122 ´
24123 \family default
24124 " (ASCII 180).
24125 \end_layout
24126
24127 \begin_layout Enumerate
24128
24129 \size small
24130 User-specified pattern found.
24131 \end_layout
24132
24133 \begin_layout Enumerate
24134
24135 \size small
24136 This command might not be intended.
24137 \end_layout
24138
24139 \begin_layout Enumerate
24140
24141 \size small
24142 \emph on
24143 Comment displayed.
24144 \end_layout
24145
24146 \begin_layout Enumerate
24147
24148 \size small
24149 Either 
24150 \family typewriter
24151 ''
24152 \backslash
24153 ,'
24154 \family default
24155  or 
24156 \family typewriter
24157 '
24158 \backslash
24159 ,''
24160 \family default
24161  will look better.
24162 \end_layout
24163
24164 \begin_layout Enumerate
24165
24166 \size small
24167 Delete this space to maintain correct page references.
24168 \end_layout
24169
24170 \begin_layout Enumerate
24171
24172 \size small
24173 \emph on
24174 You might wish to put this between a pair of 
24175 \begin_inset Quotes eld
24176 \end_inset
24177
24178
24179 \family typewriter
24180 {}
24181 \family default
24182
24183 \begin_inset Quotes erd
24184 \end_inset
24185
24186 .
24187 \end_layout
24188
24189 \begin_layout Enumerate
24190
24191 \size small
24192 You ought to remove spaces in front of punctuation.
24193 \end_layout
24194
24195 \begin_layout Enumerate
24196
24197 \size small
24198 Could not execute \SpecialChar LaTeX
24199  command.
24200 \end_layout
24201
24202 \begin_layout Enumerate
24203
24204 \size small
24205 Don't use 
24206 \family typewriter
24207
24208 \backslash
24209 /
24210 \family default
24211  in front of small punctuation.
24212 \end_layout
24213
24214 \begin_layout Enumerate
24215
24216 \family typewriter
24217 \size small
24218 $
24219 \backslash
24220 times$
24221 \family default
24222  may look prettier here.
24223 \end_layout
24224
24225 \begin_layout Enumerate
24226
24227 \size small
24228 \emph on
24229 Multiple spaces detected in output.
24230 \end_layout
24231
24232 \begin_layout Enumerate
24233
24234 \size small
24235 This text may be ignored.
24236 \end_layout
24237
24238 \begin_layout Enumerate
24239
24240 \size small
24241 Use 
24242 \family typewriter
24243
24244 \begin_inset Quotes eld
24245 \end_inset
24246
24247
24248 \family default
24249  to begin quotation, not 
24250 \family typewriter
24251 '
24252 \family default
24253 .
24254 \end_layout
24255
24256 \begin_layout Enumerate
24257
24258 \size small
24259 Use 
24260 \family typewriter
24261 '
24262 \family default
24263  to end quotation, not 
24264 \family typewriter
24265
24266 \begin_inset Quotes eld
24267 \end_inset
24268
24269
24270 \family default
24271 .
24272 \end_layout
24273
24274 \begin_layout Enumerate
24275
24276 \size small
24277 Don't mix quotes.
24278 \end_layout
24279
24280 \begin_layout Enumerate
24281
24282 \size small
24283 You should perhaps use 
24284 \begin_inset Quotes eld
24285 \end_inset
24286
24287
24288 \family typewriter
24289 cmd
24290 \family default
24291
24292 \begin_inset Quotes erd
24293 \end_inset
24294
24295  instead.
24296 \end_layout
24297
24298 \begin_layout Enumerate
24299
24300 \size small
24301 You should put a space in front of/after parenthesis.
24302 \end_layout
24303
24304 \begin_layout Enumerate
24305
24306 \size small
24307 You should avoid spaces in front of/after parenthesis.
24308 \end_layout
24309
24310 \begin_layout Enumerate
24311
24312 \size small
24313 \emph on
24314 You should not use punctuation in front of/after quotes.
24315 \end_layout
24316
24317 \begin_layout Enumerate
24318
24319 \size small
24320 Double space found.
24321 \end_layout
24322
24323 \begin_layout Enumerate
24324
24325 \size small
24326 You should put punctuation outside inner/inside display math mode.
24327 \end_layout
24328
24329 \begin_layout Enumerate
24330
24331 \size small
24332 You ought to not use primitive \SpecialChar TeX
24333  in \SpecialChar LaTeX
24334  code.
24335 \end_layout
24336
24337 \begin_layout Enumerate
24338
24339 \size small
24340 You should remove spaces in front of 
24341 \begin_inset Quotes eld
24342 \end_inset
24343
24344
24345 \family typewriter
24346 %s
24347 \family default
24348
24349 \begin_inset Quotes erd
24350 \end_inset
24351
24352
24353 \end_layout
24354
24355 \begin_layout Enumerate
24356
24357 \size small
24358 \begin_inset Quotes eld
24359 \end_inset
24360
24361
24362 \family typewriter
24363 %s
24364 \family default
24365
24366 \begin_inset Quotes erd
24367 \end_inset
24368
24369  is normally not followed by 
24370 \begin_inset Quotes eld
24371 \end_inset
24372
24373
24374 \family typewriter
24375 %c
24376 \family default
24377
24378 \begin_inset Quotes erd
24379 \end_inset
24380
24381 .
24382 \end_layout
24383
24384 \begin_layout Standard
24385 In later versions of \SpecialChar LyX
24386 , we hope to provide a more complete interface to this
24387  tool (and it's smaller cousin 
24388 \family typewriter
24389 lacheck
24390 \family default
24391 ) to exploit the full power of it.
24392  But it's not exactly useless as it is now: go try it on one of your existing
24393  documents of a certain length and be surprised.
24394 \end_layout
24395
24396 \begin_layout Section
24397 Version Control in \SpecialChar LyX
24398
24399 \end_layout
24400
24401 \begin_layout Standard
24402 by
24403 \noun on
24404  Lars Gullik Bjønnes 
24405 \noun default
24406 and 
24407 \noun on
24408 Pavel Sanda
24409 \end_layout
24410
24411 \begin_layout Subsection
24412 Introduction
24413 \end_layout
24414
24415 \begin_layout Standard
24416 \SpecialChar LyX
24417  supports some of the most basic RCS/CVS/SVN/GIT commands.
24418  If you need something a bit more sophisticated you will have to do that
24419  manually in a terminal.
24420 \end_layout
24421
24422 \begin_layout Standard
24423 Also note that CVS support is not as good as subversion support, so we advise
24424  using SVN instead.
24425  A good place to start learning Subversion is the SVN Book
24426 \begin_inset Foot
24427 status collapsed
24428
24429 \begin_layout Plain Layout
24430 \begin_inset CommandInset href
24431 LatexCommand href
24432 target "http://svnbook.red-bean.com/"
24433 literal "false"
24434
24435 \end_inset
24436
24437
24438 \end_layout
24439
24440 \end_inset
24441
24442 .
24443  In the case of RCS you should read 
24444 \begin_inset Quotes eld
24445 \end_inset
24446
24447 rcsintro
24448 \begin_inset Quotes erd
24449 \end_inset
24450
24451  (a man file, read it with 
24452 \family typewriter
24453 man rcsintro
24454 \family default
24455 ).
24456  This file describes all the basic features of RCS.
24457  You should especially notice the comment about a RCS directory, and the
24458  notion of a master RCS file (the file ending in 
24459 \family typewriter
24460 ,v
24461 \family default
24462 ).
24463 \end_layout
24464
24465 \begin_layout Standard
24466 Before you begin to use the version control features in \SpecialChar LyX
24467 , you should be
24468  familiar with RCS/CVS/SVN/GIT usage.
24469  The implementation in \SpecialChar LyX
24470  assumes a recent version of the GNU RCS or CVS/SVN
24471  package — no guarantees are made for older versions.
24472  Most of the log messages are not currently displayed after operations —
24473  you can check them in the Messages pane if you are unsure.
24474  Regular users of version control will appreciate the VC toolbar, which
24475  can be enabled via 
24476 \family sans
24477 View\SpecialChar menuseparator
24478 Toolbars\SpecialChar menuseparator
24479 Version
24480 \begin_inset space ~
24481 \end_inset
24482
24483 Control
24484 \family default
24485 .
24486 \end_layout
24487
24488 \begin_layout Standard
24489 For introducing your own external commands consult 
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 vc-command
24495 \end_layout
24496
24497 \end_inset
24498
24499  in the manual 
24500 \emph on
24501 \SpecialChar LyX
24502  Functions
24503 \emph default
24504 .
24505 \end_layout
24506
24507 \begin_layout Standard
24508 It is strongly recommended to store documents in uncompressed format if
24509  using version control (uncheck 
24510 \family sans
24511 Document\SpecialChar menuseparator
24512 Compressed
24513 \family default
24514  if it is checked): Uncompressed LyX documents are text files and therefore
24515  for merging two different versions by version control systems.
24516  Compressed LyX documents are binary files, which cannot be merged by version
24517  control systems.
24518 \end_layout
24519
24520 \begin_layout Subsection
24521 RCS commands in \SpecialChar LyX
24522
24523 \end_layout
24524
24525 \begin_layout Standard
24526 The following sections describe the RCS commands supported by \SpecialChar LyX
24527 .
24528  You can find them in the 
24529 \family sans
24530 File\SpecialChar menuseparator
24531 Version
24532 \begin_inset space ~
24533 \end_inset
24534
24535 Control
24536 \family default
24537  submenu.
24538  \SpecialChar LyX
24539  was tested against RCS 5.7/5.8.
24540 \end_layout
24541
24542 \begin_layout Subsubsection
24543
24544 \family sans
24545 Register
24546 \end_layout
24547
24548 \begin_layout Standard
24549 If your document is not under revision control, this is the only item shown
24550  in the menu.
24551  And if it is under revision control, the 
24552 \family sans
24553 Register
24554 \family default
24555  item is not visible.
24556  
24557 \end_layout
24558
24559 \begin_layout Standard
24560 This command registers your document with RCS (unless you are under the
24561  directory managed by CVS)\SpecialChar endofsentence
24562  You are asked interactively to supply an initial
24563  description of the document.
24564  The document is now set in Read-Only mode and you have to 
24565 \family sans
24566 Check
24567 \begin_inset space ~
24568 \end_inset
24569
24570 Out
24571 \begin_inset space ~
24572 \end_inset
24573
24574 For
24575 \begin_inset space ~
24576 \end_inset
24577
24578 Edit
24579 \family default
24580 , before making any changes to it.
24581  A document under revision control has a 
24582 \begin_inset Quotes eld
24583 \end_inset
24584
24585 [RCS:<version> <locker>]
24586 \begin_inset Quotes erd
24587 \end_inset
24588
24589  item tagged to the filename in the minibuffer.
24590 \end_layout
24591
24592 \begin_layout Standard
24593 RCS command that is run:
24594 \end_layout
24595
24596 \begin_layout LyX-Code
24597
24598 \family typewriter
24599 ci -q -u -i -t-"<initial description>" <file-name>
24600 \end_layout
24601
24602 \begin_layout Standard
24603 Read 
24604 \family typewriter
24605 man ci
24606 \family default
24607  to understand the switches.
24608  
24609 \end_layout
24610
24611 \begin_layout Subsubsection
24612
24613 \family sans
24614 Check In Changes
24615 \end_layout
24616
24617 \begin_layout Standard
24618 When you are finished editing a file, you check in your changes.
24619  When you do this, you are asked for a description of the changes.
24620  This is stored in the history log.
24621  The version number is bumped, your changes are applied to the master RCS
24622  file, the document is unlocked and set to Read-Only mode.
24623 \end_layout
24624
24625 \begin_layout Itemize
24626 RCS command: 
24627 \family typewriter
24628 ci -q -u -m"<description>" <file-name>
24629 \end_layout
24630
24631 \begin_layout Subsubsection
24632
24633 \family sans
24634 Check Out For Edit
24635 \end_layout
24636
24637 \begin_layout Standard
24638 By doing this you lock the document so that only you can edit it.
24639  This will also make the document Read-Write only for you.
24640  You will usually continue editing for a while and when you are finished
24641  you check in your changes.
24642  The status line is changed to reflect that you have locked the file.
24643 \end_layout
24644
24645 \begin_layout Itemize
24646 RCS command: 
24647 \family typewriter
24648 co -q -l <file-name>
24649 \end_layout
24650
24651 \begin_layout Subsubsection
24652
24653 \family sans
24654 Revert To Repository Version
24655 \end_layout
24656
24657 \begin_layout Standard
24658 This will discard all changes made to the document since the last check
24659  in.
24660  You get a warning before changes are discarded.
24661 \end_layout
24662
24663 \begin_layout Itemize
24664 RCS command: 
24665 \family typewriter
24666 co -f -u<version> <file-name>
24667 \end_layout
24668
24669 \begin_layout Subsubsection
24670
24671 \family sans
24672 Copy
24673 \end_layout
24674
24675 \begin_layout Standard
24676 This will create a copy of the current document.
24677  Since RCS does not support copy operations natively, the version history
24678  is not preserved, and the copy is added as a new file.
24679  It requires a clean document without any changes since the last checkin.
24680  You are asked for a file name and a description of the copy operation.
24681  After that the copy is created, both locally and in the repository.
24682  If the parent directories of the copied and original document differ, all
24683  relative paths of included files of the copy are adjusted (like in 
24684 \family sans
24685 File\SpecialChar menuseparator
24686 Save As
24687 \family default
24688 \SpecialChar ldots
24689 ).
24690  Finally, the copy is loaded instead of the original document.
24691 \end_layout
24692
24693 \begin_layout Labeling
24694 \labelwidthstring 00.00.0000
24695 RCS
24696 \begin_inset space ~
24697 \end_inset
24698
24699 commands: 
24700 \begin_inset space ~
24701 \end_inset
24702
24703
24704 \begin_inset Newline newline
24705 \end_inset
24706
24707 Copy 
24708 \begin_inset Flex Code
24709 status collapsed
24710
24711 \begin_layout Plain Layout
24712
24713 \family typewriter
24714 \begin_inset Quotes qld
24715 \end_inset
24716
24717 <file-name>
24718 \begin_inset Quotes qld
24719 \end_inset
24720
24721
24722 \end_layout
24723
24724 \end_inset
24725
24726  to 
24727 \begin_inset Flex Code
24728 status collapsed
24729
24730 \begin_layout Plain Layout
24731
24732 \family typewriter
24733 \begin_inset Quotes qld
24734 \end_inset
24735
24736 <new-file-name>
24737 \begin_inset Quotes qld
24738 \end_inset
24739
24740
24741 \end_layout
24742
24743 \end_inset
24744
24745
24746 \begin_inset Newline newline
24747 \end_inset
24748
24749
24750 \begin_inset Flex Code
24751 status collapsed
24752
24753 \begin_layout Plain Layout
24754 ci -q -u 
24755 \family typewriter
24756 -i 
24757 \begin_inset Quotes qld
24758 \end_inset
24759
24760 <new-file-name>
24761 \begin_inset Quotes qld
24762 \end_inset
24763
24764
24765 \end_layout
24766
24767 \end_inset
24768
24769
24770 \end_layout
24771
24772 \begin_layout Subsubsection
24773
24774 \family sans
24775 Undo Last Checkin
24776 \end_layout
24777
24778 \begin_layout Standard
24779 This makes as if the last check in never happened.
24780  No changes are made to the document loaded into \SpecialChar LyX
24781 , but the last version
24782  is removed from the master RCS file.
24783 \end_layout
24784
24785 \begin_layout Itemize
24786 RCS command: 
24787 \family typewriter
24788 rcs -o<version> <file-name>
24789 \end_layout
24790
24791 \begin_layout Subsubsection
24792
24793 \family sans
24794 Show History
24795 \end_layout
24796
24797 \begin_layout Standard
24798 This shows the complete history of the RCS document.
24799  The output of 
24800 \family typewriter
24801 rlog <file-name>
24802 \family default
24803  is shown in a browser.
24804  See 
24805 \family typewriter
24806 man rlog
24807 \family default
24808  for more info.
24809 \end_layout
24810
24811 \begin_layout Subsubsection
24812 Revision info
24813 \end_layout
24814
24815 \begin_layout Standard
24816 \SpecialChar LyX
24817  supports RCS version number, author name, date and time of last commit.
24818  All those are extracted from 
24819 \family typewriter
24820 rlog -r <file-name>
24821 \family default
24822 .
24823  See 
24824 \begin_inset CommandInset ref
24825 LatexCommand ref
24826 reference "subsec:VCS-Revision-Information"
24827
24828 \end_inset
24829
24830  for details.
24831 \end_layout
24832
24833 \begin_layout Subsection
24834 CVS commands in \SpecialChar LyX
24835
24836 \end_layout
24837
24838 \begin_layout Standard
24839 A subset of CVS operations is supported by \SpecialChar LyX
24840 .
24841  You can find the commands in the 
24842 \family sans
24843 File\SpecialChar menuseparator
24844 Version
24845 \begin_inset space ~
24846 \end_inset
24847
24848 Control
24849 \family default
24850  submenu.
24851  The version control system SVN is more powerful, so please use it instead
24852  of CVS if possible.
24853 \end_layout
24854
24855 \begin_layout Subsubsection
24856
24857 \family sans
24858 General CVS usage
24859 \end_layout
24860
24861 \begin_layout Standard
24862 If you start from scratch with CVS you have to create your repository and
24863  checkout the working copy with external tools.
24864  If you're using a client-server setup you may need to login before doing
24865  the first repository checkout.
24866 \end_layout
24867
24868 \begin_layout Standard
24869 If your documents are under revision control and others are using the same
24870  repository problems arise when different changes to the same document at
24871  the same location happen.
24872  Standard CVS repositories don't operate with a file locking mechanism.
24873  This may be surprising, but conflicts only occur if people disagree on
24874  the proper content of the same part of a document.
24875  So, if co-workers are used to communicate regularly, these conflicts occur
24876  rarely.
24877  If they don't communicate they have a fundamental problem anyway.
24878  Nevertheless some people like to work with so called 
24879 \begin_inset Quotes eld
24880 \end_inset
24881
24882 reserved checkouts
24883 \begin_inset Quotes erd
24884 \end_inset
24885
24886 .
24887  If they do so the working copy of all files is readonly when checked out
24888  first and the user starts editing after using a special command to make
24889  the working copy writable.
24890  When the changes are checked in the working copy returns to readonly state.
24891  With \SpecialChar LyX
24892  one has to edit the 
24893 \begin_inset Flex Code
24894 status collapsed
24895
24896 \begin_layout Plain Layout
24897 .cvsrc
24898 \end_layout
24899
24900 \end_inset
24901
24902  file and add the line 
24903 \begin_inset Flex Code
24904 status collapsed
24905
24906 \begin_layout Plain Layout
24907 cvs -r
24908 \end_layout
24909
24910 \end_inset
24911
24912  to work with reserved checkouts.
24913  The benefit is the possibility to see who is using a writable copy of some
24914  document.
24915  It's not guaranteed only one user makes a copy writable.
24916 \end_layout
24917
24918 \begin_layout Standard
24919 \SpecialChar LyX
24920  tries to guess if you're using reserved or non-reserved checkouts.
24921  If your working copy is readonly or it is writable and an additional copy
24922  of your document exists in the CVS/Base sub-directory a reserved otherwise
24923  a non-reserved checkout is assumed.
24924  When a reserved checkout is detected you have to use 
24925 \begin_inset Flex Noun
24926 status collapsed
24927
24928 \begin_layout Plain Layout
24929 Check Out
24930 \end_layout
24931
24932 \end_inset
24933
24934  to make your working copy writable if it's readonly.
24935  After doing so the 
24936 \begin_inset Flex Noun
24937 status collapsed
24938
24939 \begin_layout Plain Layout
24940 Check In
24941 \end_layout
24942
24943 \end_inset
24944
24945  operation is possible and that makes your working copy readonly again after
24946  transferring your changes to the repository.
24947 \end_layout
24948
24949 \begin_layout Standard
24950 More information about CVS can be found here 
24951 \begin_inset Flex URL
24952 status collapsed
24953
24954 \begin_layout Plain Layout
24955
24956 http://www.nongnu.org/cvs
24957 \end_layout
24958
24959 \end_inset
24960
24961  and here 
24962 \begin_inset Flex URL
24963 status collapsed
24964
24965 \begin_layout Plain Layout
24966
24967 http://ximbiot.com/cvs
24968 \end_layout
24969
24970 \end_inset
24971
24972 .
24973 \end_layout
24974
24975 \begin_layout Standard
24976 Read 
24977 \family typewriter
24978 man cvs
24979 \family default
24980  to understand the sub-commands and the switches mentioned below.
24981 \end_layout
24982
24983 \begin_layout Subsubsection
24984
24985 \family sans
24986 Register
24987 \end_layout
24988
24989 \begin_layout Standard
24990 If your document is not under revision control, this is the only item shown
24991  in the menu.
24992  And if it is under revision control, the 
24993 \family sans
24994 Register
24995 \family default
24996  item is not visible.
24997  
24998 \end_layout
24999
25000 \begin_layout Standard
25001 This command registers in CVS your document 
25002 \begin_inset Flex Strong
25003 status collapsed
25004
25005 \begin_layout Plain Layout
25006
25007 \emph on
25008 only
25009 \end_layout
25010
25011 \end_inset
25012
25013  in the case you have already the documents directory under CVS control
25014  (in particular 
25015 \family typewriter
25016 CVS/Entries
25017 \family default
25018  file exists).
25019  This means you have to create or checkout the archive by yourself using
25020  external tools.
25021  (In case you forget that step \SpecialChar LyX
25022  registers the document with RCS.)
25023 \end_layout
25024
25025 \begin_layout Standard
25026 Then you are asked interactively to supply an initial description of the
25027  document.
25028  Don't forget that registered file is not yet checked in.
25029 \end_layout
25030
25031 \begin_layout Standard
25032 CVS command that is run: 
25033 \family typewriter
25034 cvs -q add -m"<entered message>" "<file-name>"
25035 \end_layout
25036
25037 \begin_layout Standard
25038 The term 
25039 \family typewriter
25040 "<file-name>"
25041 \family default
25042  above and for all other CVS commands is an abbreviation for 
25043 \begin_inset Quotes eld
25044 \end_inset
25045
25046 change the current working directory to file location and use the file name
25047  without path component as argument
25048 \begin_inset Quotes erd
25049 \end_inset
25050
25051 .
25052 \end_layout
25053
25054 \begin_layout Subsubsection
25055
25056 \family sans
25057 Check In Changes
25058 \end_layout
25059
25060 \begin_layout Standard
25061 When you are finished editing a file, you commit your changes.
25062  When you do this and you had changed the document, you are asked for a
25063  description of the changes.
25064  After that changes are written to the repository.
25065  In case you didn't change the document and a reserved checkout is detected
25066  the reservation made on 
25067 \begin_inset Flex Noun
25068 status collapsed
25069
25070 \begin_layout Plain Layout
25071 Check Out
25072 \end_layout
25073
25074 \end_inset
25075
25076  is undone.
25077 \end_layout
25078
25079 \begin_layout Labeling
25080 \labelwidthstring 00.00.0000
25081 CVS
25082 \begin_inset space ~
25083 \end_inset
25084
25085 command: 
25086 \begin_inset space ~
25087 \end_inset
25088
25089
25090 \begin_inset Newline newline
25091 \end_inset
25092
25093
25094 \begin_inset Flex Code
25095 status collapsed
25096
25097 \begin_layout Plain Layout
25098 cvs 
25099 \family typewriter
25100 -q commit -m"<description>" "<file-name>"
25101 \end_layout
25102
25103 \end_inset
25104
25105  or
25106 \begin_inset Newline newline
25107 \end_inset
25108
25109
25110 \begin_inset Flex Code
25111 status collapsed
25112
25113 \begin_layout Plain Layout
25114 cvs -q unedit 
25115 \family typewriter
25116 "<file-name>"
25117 \end_layout
25118
25119 \end_inset
25120
25121
25122 \end_layout
25123
25124 \begin_layout Subsubsection
25125
25126 \family sans
25127 Check Out Changes
25128 \end_layout
25129
25130 \begin_layout Standard
25131 When you are sharing a repository with others, you may have to incorporate
25132  their changes into your working copy.
25133 \end_layout
25134
25135 \begin_layout Standard
25136 CVS command: 
25137 \family typewriter
25138 cvs -q update "<file-name>"
25139 \end_layout
25140
25141 \begin_layout Standard
25142 If a readonly checkout is detected the working copy is made writable and
25143  reserved.
25144 \end_layout
25145
25146 \begin_layout Standard
25147 CVS command: 
25148 \family typewriter
25149 cvs -q edit "<file-name>"
25150 \end_layout
25151
25152 \begin_layout Subsubsection
25153
25154 \family sans
25155 Revert To Repository Version
25156 \end_layout
25157
25158 \begin_layout Standard
25159 This will discard all changes made to the document since the last check
25160  in.
25161  You get a warning before changes are discarded.
25162  Firstly the file is deleted, secondly CVS update command is run.
25163 \end_layout
25164
25165 \begin_layout Standard
25166 CVS command: 
25167 \family typewriter
25168 cvs -q update "<file-name>"
25169 \end_layout
25170
25171 \begin_layout Standard
25172 If a reserved checkout is detected and the working copy has no changes only
25173  the reservation is undone.
25174 \end_layout
25175
25176 \begin_layout Standard
25177 CVS command: 
25178 \family typewriter
25179 cvs -q unedit "<file-name>"
25180 \end_layout
25181
25182 \begin_layout Subsubsection
25183
25184 \family sans
25185 Copy
25186 \end_layout
25187
25188 \begin_layout Standard
25189 This will create a copy of the current document.
25190  Since CVS does not support copy operations natively, the version history
25191  is not preserved, and the copy is added as a new file.
25192  It requires a clean document without any changes since the last checkin.
25193  You are asked for a file name and a description of the copy operation.
25194  After that the copy is created, both locally and in the repository.
25195  If the parent directories of the copied and original document differ, all
25196  relative paths of included files of the copy are adjusted (like in 
25197 \family sans
25198 File\SpecialChar menuseparator
25199 Save As
25200 \family default
25201 \SpecialChar ldots
25202 ).
25203  Finally, the copy is loaded instead of the original document.
25204 \end_layout
25205
25206 \begin_layout Labeling
25207 \labelwidthstring 00.00.0000
25208 CVS
25209 \begin_inset space ~
25210 \end_inset
25211
25212 commands: 
25213 \begin_inset space ~
25214 \end_inset
25215
25216
25217 \begin_inset Newline newline
25218 \end_inset
25219
25220 Copy 
25221 \begin_inset Flex Code
25222 status collapsed
25223
25224 \begin_layout Plain Layout
25225 "<file-name>"
25226 \end_layout
25227
25228 \end_inset
25229
25230  to 
25231 \begin_inset Flex Code
25232 status collapsed
25233
25234 \begin_layout Plain Layout
25235 "<new-file-name>"
25236 \end_layout
25237
25238 \end_inset
25239
25240
25241 \begin_inset Newline newline
25242 \end_inset
25243
25244
25245 \begin_inset Flex Code
25246 status collapsed
25247
25248 \begin_layout Plain Layout
25249 cvs -q add "<new-file-name>"
25250 \end_layout
25251
25252 \end_inset
25253
25254
25255 \end_layout
25256
25257 \begin_layout Subsubsection
25258
25259 \family sans
25260 Rename
25261 \end_layout
25262
25263 \begin_layout Standard
25264 This will rename the current document.
25265  Since CVS does not support rename operations natively, the version history
25266  is not preserved, the renamed document is added as a new file, and the
25267  original document is deleted.
25268  It requires a clean document without any changes since the last checkin.
25269  You are asked for a file name and a description of the rename operation.
25270  After that the document is renamed, both locally and in the repository.
25271  If the parent directories of the new and old file names differ, all relative
25272  paths of included files are adjusted (like in 
25273 \family sans
25274 File\SpecialChar menuseparator
25275 Save As
25276 \family default
25277 \SpecialChar ldots
25278 ).
25279  Finally, the document is reloaded using the new name.
25280 \end_layout
25281
25282 \begin_layout Labeling
25283 \labelwidthstring 00.00.0000
25284 CVS
25285 \begin_inset space ~
25286 \end_inset
25287
25288 commands: 
25289 \begin_inset space ~
25290 \end_inset
25291
25292
25293 \begin_inset Newline newline
25294 \end_inset
25295
25296 Rename 
25297 \begin_inset Flex Code
25298 status collapsed
25299
25300 \begin_layout Plain Layout
25301 "<file-name>"
25302 \end_layout
25303
25304 \end_inset
25305
25306  to 
25307 \begin_inset Flex Code
25308 status collapsed
25309
25310 \begin_layout Plain Layout
25311 "<new-file-name>"
25312 \end_layout
25313
25314 \end_inset
25315
25316
25317 \begin_inset Newline newline
25318 \end_inset
25319
25320
25321 \begin_inset Flex Code
25322 status collapsed
25323
25324 \begin_layout Plain Layout
25325 cvs -q add "<new-file-name>"
25326 \end_layout
25327
25328 \end_inset
25329
25330
25331 \begin_inset Newline newline
25332 \end_inset
25333
25334
25335 \begin_inset Flex Code
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339 cvs -q remove "<file-name>"
25340 \end_layout
25341
25342 \end_inset
25343
25344
25345 \end_layout
25346
25347 \begin_layout Subsubsection
25348 Update of the local directory checkout from repository
25349 \end_layout
25350
25351 \begin_layout Standard
25352 Once your documents gets more complex, containing sub-documents and pictures,
25353  including external 
25354 \begin_inset Flex Code
25355 status collapsed
25356
25357 \begin_layout Plain Layout
25358 .tex
25359 \end_layout
25360
25361 \end_inset
25362
25363  files and so on using version control becomes more complicated.
25364  \SpecialChar LyX
25365  supports updating the whole tree in which resides the document.
25366  This become especially useful once you cooperate with people which neither
25367  have detailed knowledge about CVS usage nor they have ambition to commit
25368  additional material to the repository.
25369  You have to organize the files structure so that all external files are
25370  in the same directory or subdirectories of the document.
25371  It's good practice anyway to store multipart documents in an extra directory.
25372 \end_layout
25373
25374 \begin_layout Standard
25375 The 
25376 \begin_inset Flex Code
25377 status collapsed
25378
25379 \begin_layout Plain Layout
25380 Update local directory from repository
25381 \end_layout
25382
25383 \end_inset
25384
25385  command updates the whole directory.
25386  If local changes are detected user is warned before update starts.
25387  In case of merge conflicts both versions of the conflicting document parts
25388  are placed in the final document.
25389  You have to review and correct the result of the merge.
25390  You'll find the conflicts enclosed in pairs of 
25391 \begin_inset Flex Code
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395 <<<<<<<
25396 \end_layout
25397
25398 \end_inset
25399
25400  and 
25401 \begin_inset Flex Code
25402 status collapsed
25403
25404 \begin_layout Plain Layout
25405 >>>>>>>
25406 \end_layout
25407
25408 \end_inset
25409
25410  separated by 
25411 \begin_inset Flex Code
25412 status collapsed
25413
25414 \begin_layout Plain Layout
25415 =======
25416 \end_layout
25417
25418 \end_inset
25419
25420 .
25421  The first part is your version as before the update operation with the
25422  document name prepended.
25423  The second one is the repository version with the version number after
25424  the sequence of 
25425 \begin_inset Flex Code
25426 status collapsed
25427
25428 \begin_layout Plain Layout
25429 >
25430 \end_layout
25431
25432 \end_inset
25433
25434  signs.
25435 \end_layout
25436
25437 \begin_layout Labeling
25438 \labelwidthstring 00.00.0000
25439 CVS
25440 \begin_inset space ~
25441 \end_inset
25442
25443 commands: 
25444 \begin_inset space ~
25445 \end_inset
25446
25447
25448 \begin_inset Newline newline
25449 \end_inset
25450
25451
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 cd $path; cvs diff 
25457 \family typewriter
25458 "."
25459 \end_layout
25460
25461 \end_inset
25462
25463  (Ask if changes are detected.)
25464 \begin_inset Newline newline
25465 \end_inset
25466
25467
25468 \begin_inset Flex Code
25469 status collapsed
25470
25471 \begin_layout Plain Layout
25472 cd $path; cvs -q update 
25473 \family typewriter
25474 "."
25475 \end_layout
25476
25477 \end_inset
25478
25479
25480 \end_layout
25481
25482 \begin_layout Standard
25483 where 
25484 \begin_inset Flex Code
25485 status collapsed
25486
25487 \begin_layout Plain Layout
25488 $path
25489 \end_layout
25490
25491 \end_inset
25492
25493  stands for the path to the document.
25494 \end_layout
25495
25496 \begin_layout Subsubsection
25497
25498 \family sans
25499 Show History
25500 \end_layout
25501
25502 \begin_layout Standard
25503 This shows the complete history of the CVS document.
25504  The output of 
25505 \family typewriter
25506 cvs log "<file-name>"
25507 \family default
25508  is shown in a browser.
25509 \end_layout
25510
25511 \begin_layout Subsubsection
25512 Revision info
25513 \end_layout
25514
25515 \begin_layout Standard
25516 \SpecialChar LyX
25517  supports CVS version number, author name, date and time of last commit.
25518  All those are extracted from 
25519 \family typewriter
25520 cvs log -r <file-name>
25521 \family default
25522 .
25523  See 
25524 \begin_inset CommandInset ref
25525 LatexCommand ref
25526 reference "subsec:VCS-Revision-Information"
25527
25528 \end_inset
25529
25530  for details.
25531 \end_layout
25532
25533 \begin_layout Subsection
25534 SVN commands in \SpecialChar LyX
25535
25536 \end_layout
25537
25538 \begin_layout Standard
25539 SVN is now partially supported by \SpecialChar LyX
25540 .
25541  You can find the commands in the 
25542 \family sans
25543 File\SpecialChar menuseparator
25544 Version
25545 \begin_inset space ~
25546 \end_inset
25547
25548 Control
25549 \family default
25550  submenu.
25551  Please note that if you use password protected access to repository via
25552  ssh, you will be asked in terminal window.
25553  \SpecialChar LyX
25554  was tested against SVN 1.5, 1.6, 1.7 and 1.8
25555 \begin_inset Foot
25556 status collapsed
25557
25558 \begin_layout Plain Layout
25559 Most of the commands will work with 1.4 too, see 
25560 \begin_inset CommandInset ref
25561 LatexCommand ref
25562 reference "subsec:SVN-Repo-Update"
25563
25564 \end_inset
25565
25566 .
25567  There seems to be currently unresolved permissions problem under SVN 1.8
25568  with reverting changes when file is locked.
25569 \end_layout
25570
25571 \end_inset
25572
25573
25574 \end_layout
25575
25576 \begin_layout Subsubsection
25577
25578 \family sans
25579 Register
25580 \end_layout
25581
25582 \begin_layout Standard
25583 If your document is not under revision control, this is the only item shown
25584  in the menu.
25585  And if it is under revision control, the 
25586 \family sans
25587 Register
25588 \family default
25589  item is not visible.
25590 \end_layout
25591
25592 \begin_layout Standard
25593 This command registers in SVN your document ONLY in case you have already
25594  the documents directory under SVN control (in particular 
25595 \family typewriter
25596 .svn/entries
25597 \family default
25598  file exists).
25599  This means you have to checkout the archive by yourself.
25600 \end_layout
25601
25602 \begin_layout Standard
25603 Then you are asked interactively to supply an initial description of the
25604  document.
25605  Don't forget that registered file is not yet commited.
25606 \end_layout
25607
25608 \begin_layout Standard
25609 SVN command that is run: 
25610 \family typewriter
25611 svn add -q 
25612 \begin_inset Quotes qld
25613 \end_inset
25614
25615 <file-name>
25616 \begin_inset Quotes qld
25617 \end_inset
25618
25619
25620 \end_layout
25621
25622 \begin_layout Standard
25623 Read 
25624 \family typewriter
25625 man svn
25626 \family default
25627  to understand the switches.
25628 \end_layout
25629
25630 \begin_layout Subsubsection
25631
25632 \family sans
25633 Check In Changes
25634 \end_layout
25635
25636 \begin_layout Standard
25637 When you are finished editing a file, you commit your changes.
25638  When you do this, you are asked for a description of the changes.
25639  After that changes are commited.
25640 \end_layout
25641
25642 \begin_layout Standard
25643 SVN command:
25644 \begin_inset Foot
25645 status collapsed
25646
25647 \begin_layout Plain Layout
25648 In case locking is not enabled.
25649  See Section 
25650 \begin_inset CommandInset ref
25651 LatexCommand ref
25652 reference "subsec:SVN-File-Locking"
25653
25654 \end_inset
25655
25656 .
25657 \end_layout
25658
25659 \end_inset
25660
25661  
25662 \family typewriter
25663 svn commit -q -m"<description>" <file-name>
25664 \end_layout
25665
25666 \begin_layout Subsubsection
25667
25668 \family sans
25669 Check Out For Edit
25670 \end_layout
25671
25672 \begin_layout Standard
25673 Updates the changes of this file from the repository.
25674  Be sure you understand SVN merging and conflicts resolving before using
25675  this function, because all conflicts has to be resolved manually by you!
25676 \end_layout
25677
25678 \begin_layout Standard
25679 SVN command:
25680 \begin_inset Foot
25681 status collapsed
25682
25683 \begin_layout Plain Layout
25684 Ditto.
25685 \end_layout
25686
25687 \end_inset
25688
25689  
25690 \family typewriter
25691 svn update --non-interactive 
25692 \begin_inset Quotes qld
25693 \end_inset
25694
25695 <file-name>
25696 \begin_inset Quotes qld
25697 \end_inset
25698
25699
25700 \end_layout
25701
25702 \begin_layout Subsubsection
25703
25704 \family sans
25705 Revert To Repository Version
25706 \end_layout
25707
25708 \begin_layout Standard
25709 This will discard all changes made to the document since the last check
25710  in.
25711  You get a warning before changes are discarded.
25712 \end_layout
25713
25714 \begin_layout Standard
25715 SVN command: 
25716 \family typewriter
25717 svn revert -q 
25718 \begin_inset Quotes qld
25719 \end_inset
25720
25721 <file-name>
25722 \begin_inset Quotes qld
25723 \end_inset
25724
25725
25726 \end_layout
25727
25728 \begin_layout Subsubsection
25729
25730 \family sans
25731 Copy
25732 \end_layout
25733
25734 \begin_layout Standard
25735 This will create a copy of the current document including the version history.
25736  It requires a clean document without any changes since the last checkin.
25737  You are asked for a file name and a description of the copy operation.
25738  After that the copy is created, both locally and in the repository.
25739  If the parent directories of the copied and original document differ, all
25740  relative paths of included files of the copy are adjusted (like in 
25741 \family sans
25742 File\SpecialChar menuseparator
25743 Save As
25744 \family default
25745 \SpecialChar ldots
25746 ).
25747  Finally, the copy is loaded instead of the original document.
25748 \end_layout
25749
25750 \begin_layout Labeling
25751 \labelwidthstring 00.00.0000
25752 SVN
25753 \begin_inset space ~
25754 \end_inset
25755
25756 commands: 
25757 \begin_inset space ~
25758 \end_inset
25759
25760
25761 \begin_inset Newline newline
25762 \end_inset
25763
25764
25765 \begin_inset Flex Code
25766 status collapsed
25767
25768 \begin_layout Plain Layout
25769 svn copy -q 
25770 \family typewriter
25771
25772 \begin_inset Quotes qld
25773 \end_inset
25774
25775 <file-name>
25776 \begin_inset Quotes qld
25777 \end_inset
25778
25779  
25780 \begin_inset Quotes qld
25781 \end_inset
25782
25783 <new-file-name>
25784 \begin_inset Quotes qld
25785 \end_inset
25786
25787
25788 \end_layout
25789
25790 \end_inset
25791
25792
25793 \begin_inset Newline newline
25794 \end_inset
25795
25796
25797 \begin_inset Flex Code
25798 status collapsed
25799
25800 \begin_layout Plain Layout
25801 svn commit
25802 \end_layout
25803
25804 \end_inset
25805
25806
25807 \end_layout
25808
25809 \begin_layout Subsubsection
25810
25811 \family sans
25812 Rename
25813 \end_layout
25814
25815 \begin_layout Standard
25816 This will rename the current document including the version history.
25817  It requires a clean document without any changes since the last checkin.
25818  You are asked for a file name and a description of the rename operation.
25819  After that the document is renamed, both locally and in the repository.
25820  If the parent directories of the new and old file names differ, all relative
25821  paths of included files are adjusted (like in 
25822 \family sans
25823 File\SpecialChar menuseparator
25824 Save As
25825 \family default
25826 \SpecialChar ldots
25827 ).
25828  Finally, the document is reloaded using the new name.
25829 \end_layout
25830
25831 \begin_layout Labeling
25832 \labelwidthstring 00.00.0000
25833 SVN
25834 \begin_inset space ~
25835 \end_inset
25836
25837 commands: 
25838 \begin_inset space ~
25839 \end_inset
25840
25841
25842 \begin_inset Newline newline
25843 \end_inset
25844
25845
25846 \begin_inset Flex Code
25847 status collapsed
25848
25849 \begin_layout Plain Layout
25850 svn move -q 
25851 \family typewriter
25852
25853 \begin_inset Quotes qld
25854 \end_inset
25855
25856 <file-name>
25857 \begin_inset Quotes qld
25858 \end_inset
25859
25860  
25861 \begin_inset Quotes qld
25862 \end_inset
25863
25864 <new-file-name>
25865 \begin_inset Quotes qld
25866 \end_inset
25867
25868
25869 \end_layout
25870
25871 \end_inset
25872
25873
25874 \begin_inset Newline newline
25875 \end_inset
25876
25877
25878 \begin_inset Flex Code
25879 status collapsed
25880
25881 \begin_layout Plain Layout
25882 svn commit
25883 \end_layout
25884
25885 \end_inset
25886
25887
25888 \end_layout
25889
25890 \begin_layout Subsubsection
25891 \begin_inset CommandInset label
25892 LatexCommand label
25893 name "subsec:SVN-Repo-Update"
25894
25895 \end_inset
25896
25897 Update of the local directory checkout from repository
25898 \begin_inset Foot
25899 status collapsed
25900
25901 \begin_layout Plain Layout
25902 Note that this command will work only with subversion 
25903 \begin_inset Formula $\geqq1.5$
25904 \end_inset
25905
25906
25907 \end_layout
25908
25909 \end_inset
25910
25911
25912 \end_layout
25913
25914 \begin_layout Standard
25915 All the commands above have one shortcoming – they deal with the current
25916  document only.
25917  Once your document contains pictures, includes external 
25918 \begin_inset Flex Code
25919 status collapsed
25920
25921 \begin_layout Plain Layout
25922 .tex
25923 \end_layout
25924
25925 \end_inset
25926
25927  files and so on administration becomes more complicated.
25928  \SpecialChar LyX
25929  now supports updating the whole tree in which resides the document
25930 \begin_inset Foot
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 One need to organize the files structure so that all external files are
25935  in the same directory or subdirectories of the document.
25936  
25937 \end_layout
25938
25939 \end_inset
25940
25941 .
25942  This become especially useful once you cooperate with people which neither
25943  know about subversion management nor they have ambition to commit additional
25944  material to the repository.
25945  
25946 \end_layout
25947
25948 \begin_layout Standard
25949 \begin_inset Flex Code
25950 status collapsed
25951
25952 \begin_layout Plain Layout
25953 Update local directory from repository
25954 \end_layout
25955
25956 \end_inset
25957
25958  command updates the whole directory and in case of merge conflicts local
25959  version of the files are left, so no unintended data loss occurs.
25960  If local changes are detected user is warned before update starts.
25961 \end_layout
25962
25963 \begin_layout Labeling
25964 \labelwidthstring 00.00.0000
25965 SVN
25966 \begin_inset space ~
25967 \end_inset
25968
25969 commands: 
25970 \begin_inset space ~
25971 \end_inset
25972
25973
25974 \begin_inset Newline newline
25975 \end_inset
25976
25977
25978 \begin_inset Flex Code
25979 status collapsed
25980
25981 \begin_layout Plain Layout
25982 svn diff $path
25983 \end_layout
25984
25985 \end_inset
25986
25987  (Ask if changes are detected.)
25988 \begin_inset Newline newline
25989 \end_inset
25990
25991
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 svn update --accept mine-full $path
25997 \end_layout
25998
25999 \end_inset
26000
26001
26002 \end_layout
26003
26004 \begin_layout Standard
26005 where 
26006 \begin_inset Flex Code
26007 status collapsed
26008
26009 \begin_layout Plain Layout
26010 $path
26011 \end_layout
26012
26013 \end_inset
26014
26015  stands for the path to the document.
26016 \end_layout
26017
26018 \begin_layout Subsubsection
26019
26020 \family sans
26021 Show History
26022 \end_layout
26023
26024 \begin_layout Standard
26025 This shows the complete history of the SVN document.
26026  The output of 
26027 \family typewriter
26028 svn log 
26029 \begin_inset Quotes qld
26030 \end_inset
26031
26032 <file-name>
26033 \begin_inset Quotes qld
26034 \end_inset
26035
26036
26037 \family default
26038  is shown in a browser.
26039 \end_layout
26040
26041 \begin_layout Subsubsection
26042 File Locking
26043 \begin_inset CommandInset label
26044 LatexCommand label
26045 name "subsec:SVN-File-Locking"
26046
26047 \end_inset
26048
26049
26050 \end_layout
26051
26052 \begin_layout Standard
26053 The file exchange through various revision control systems brings the problem
26054  of merge conflicts in case two different users try to edit the same (parts
26055  of) document.
26056  When such a conflict happens it needs manual resolving and one reasonable
26057  alternative is to provide some kind of locking mechanism, which guarantees
26058  that only one user is allowed to edit file at the given time.
26059 \end_layout
26060
26061 \begin_layout Standard
26062 SVN has two such mechanisms to provide mutual exclusivity for file access
26063  – locks and automatic setting of write permissions (see sec.
26064  
26065 \begin_inset CommandInset ref
26066 LatexCommand ref
26067 reference "subsec:Automatical-Locking-Property"
26068
26069 \end_inset
26070
26071 ) based on 
26072 \begin_inset Flex Code
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 svn:needs-lock
26077 \end_layout
26078
26079 \end_inset
26080
26081  file svn property
26082 \begin_inset Foot
26083 status collapsed
26084
26085 \begin_layout Plain Layout
26086 \begin_inset Flex URL
26087 status open
26088
26089 \begin_layout Plain Layout
26090
26091 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
26092 \end_layout
26093
26094 \end_inset
26095
26096
26097 \end_layout
26098
26099 \end_inset
26100
26101 .
26102  If this property is detected for a given document \SpecialChar LyX
26103  starts to use SVN locks
26104  for document editing automatically and the whole check-in/out mechanism
26105  switches to the same regimen as for RCS.
26106  This in particular means there are two different modes of file use in \SpecialChar LyX
26107 :
26108 \end_layout
26109
26110 \begin_layout Itemize
26111 Unlocked state.
26112  The loaded file is in the read-only mode.
26113  For editing on needs to check-out.
26114  
26115 \emph on
26116 Check-out
26117 \emph default
26118  consists of updating from the repository and gaining write lock.
26119  If the lock is not possible to obtain, we remain in unlocked state.
26120 \end_layout
26121
26122 \begin_layout Itemize
26123 Locked state.
26124  The loaded file is in the 
26125 \begin_inset Quotes els
26126 \end_inset
26127
26128 normal
26129 \begin_inset Quotes ers
26130 \end_inset
26131
26132  edit mode.
26133  No other user is allowed to edit the file.
26134  
26135 \emph on
26136 Check-in
26137 \emph default
26138  consists of commiting changes and releasing write-lock.
26139  If no changes have been made to the document, no commit will be produced
26140 \begin_inset Foot
26141 status collapsed
26142
26143 \begin_layout Plain Layout
26144 Don't be puzzled by the fact that you will be asked for commit message anyway.
26145 \end_layout
26146
26147 \end_inset
26148
26149  and only the write-lock will be released.
26150 \end_layout
26151
26152 \begin_layout Standard
26153 SVN commands:
26154 \end_layout
26155
26156 \begin_layout Labeling
26157 \labelwidthstring 00.00.0000
26158 Check-in:
26159 \family typewriter
26160  svn commit -q -m"<description>" "<file-name>"
26161 \begin_inset Newline newline
26162 \end_inset
26163
26164 svn unlock "<file-name>"
26165 \end_layout
26166
26167 \begin_layout Labeling
26168 \labelwidthstring 00.00.0000
26169 Check-out: 
26170 \family typewriter
26171 svn update "<file-name>"
26172 \begin_inset Newline newline
26173 \end_inset
26174
26175 svn lock "<file-name>"
26176 \end_layout
26177
26178 \begin_layout Subsubsection
26179
26180 \family typewriter
26181 \begin_inset CommandInset label
26182 LatexCommand label
26183 name "subsec:Automatical-Locking-Property"
26184
26185 \end_inset
26186
26187
26188 \family default
26189 Automatic Locking Property
26190 \end_layout
26191
26192 \begin_layout Standard
26193 The above mentioned automatic setting of write permissions of the .lyx file
26194  can be set through
26195 \family sans
26196  File\SpecialChar menuseparator
26197 Version
26198 \begin_inset space ~
26199 \end_inset
26200
26201 Control\SpecialChar menuseparator
26202 Use Locking Property
26203 \family default
26204 .
26205  This command is active only when the file is not locked on the svn server
26206  (i.e.
26207  you need to check-out before proceeding).
26208 \end_layout
26209
26210 \begin_layout Labeling
26211 \labelwidthstring 00.00.0000
26212 SVN
26213 \begin_inset space ~
26214 \end_inset
26215
26216 commands:
26217 \end_layout
26218
26219 \begin_layout Labeling
26220 \labelwidthstring 00.00.0000
26221 Set:
26222 \family typewriter
26223  svn propset svn:needs-lock ON "<file-name>"
26224 \end_layout
26225
26226 \begin_layout Labeling
26227 \labelwidthstring 00.00.0000
26228 Unset: 
26229 \family typewriter
26230 svn propdel svn:needs-lock "<file-name>"
26231 \end_layout
26232
26233 \begin_layout Subsubsection
26234 \begin_inset CommandInset label
26235 LatexCommand label
26236 name "subsec:VCS-Revision-Information"
26237
26238 \end_inset
26239
26240 Revision Information in Documents
26241 \end_layout
26242
26243 \begin_layout Standard
26244 There are more possibilities how to activate revision information in our
26245  document.
26246 \end_layout
26247
26248 \begin_layout Itemize
26249 \SpecialChar LyX
26250  supports directly:
26251 \end_layout
26252
26253 \begin_deeper
26254 \begin_layout Itemize
26255 tree revision information (
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260 vcs-tree-revision
26261 \end_layout
26262
26263 \end_inset
26264
26265 ).
26266  The result is the output of the 
26267 \begin_inset Flex Code
26268 status collapsed
26269
26270 \begin_layout Plain Layout
26271 svnversion
26272 \end_layout
26273
26274 \end_inset
26275
26276  command, the following table gives you an idea, how to read the results.
26277 \end_layout
26278
26279 \begin_layout Standard
26280 \align center
26281 \begin_inset Tabular
26282 <lyxtabular version="3" rows="6" columns="2">
26283 <features tabularvalignment="middle">
26284 <column alignment="left" valignment="top">
26285 <column alignment="left" valignment="top">
26286 <row>
26287 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26288 \begin_inset Text
26289
26290 \begin_layout Plain Layout
26291
26292 \series bold
26293 Output
26294 \end_layout
26295
26296 \end_inset
26297 </cell>
26298 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26299 \begin_inset Text
26300
26301 \begin_layout Plain Layout
26302
26303 \series bold
26304 Meaning
26305 \end_layout
26306
26307 \end_inset
26308 </cell>
26309 </row>
26310 <row>
26311 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26312 \begin_inset Text
26313
26314 \begin_layout Plain Layout
26315 4123:4168
26316 \end_layout
26317
26318 \end_inset
26319 </cell>
26320 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26321 \begin_inset Text
26322
26323 \begin_layout Plain Layout
26324 mixed revision working copy
26325 \end_layout
26326
26327 \end_inset
26328 </cell>
26329 </row>
26330 <row>
26331 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26332 \begin_inset Text
26333
26334 \begin_layout Plain Layout
26335 4168M
26336 \end_layout
26337
26338 \end_inset
26339 </cell>
26340 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26341 \begin_inset Text
26342
26343 \begin_layout Plain Layout
26344 modified working copy
26345 \end_layout
26346
26347 \end_inset
26348 </cell>
26349 </row>
26350 <row>
26351 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26352 \begin_inset Text
26353
26354 \begin_layout Plain Layout
26355 4123S
26356 \end_layout
26357
26358 \end_inset
26359 </cell>
26360 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26361 \begin_inset Text
26362
26363 \begin_layout Plain Layout
26364 switched working copy
26365 \end_layout
26366
26367 \end_inset
26368 </cell>
26369 </row>
26370 <row>
26371 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26372 \begin_inset Text
26373
26374 \begin_layout Plain Layout
26375 4123P
26376 \end_layout
26377
26378 \end_inset
26379 </cell>
26380 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26381 \begin_inset Text
26382
26383 \begin_layout Plain Layout
26384 partial working copy, from a sparse checkout
26385 \end_layout
26386
26387 \end_inset
26388 </cell>
26389 </row>
26390 <row>
26391 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26392 \begin_inset Text
26393
26394 \begin_layout Plain Layout
26395 4123:4168MS
26396 \end_layout
26397
26398 \end_inset
26399 </cell>
26400 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26401 \begin_inset Text
26402
26403 \begin_layout Plain Layout
26404 mixed revision, modified, switched working copy
26405 \end_layout
26406
26407 \end_inset
26408 </cell>
26409 </row>
26410 </lyxtabular>
26411
26412 \end_inset
26413
26414
26415 \end_layout
26416
26417 \begin_layout Itemize
26418 file revision information.
26419  The result comes from parsing the output of 
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 svn
26425 \begin_inset space ~
26426 \end_inset
26427
26428 info
26429 \begin_inset space ~
26430 \end_inset
26431
26432 --xml
26433 \begin_inset space ~
26434 \end_inset
26435
26436 file.lyx
26437 \end_layout
26438
26439 \end_inset
26440
26441 .
26442  Supported flags are:
26443 \end_layout
26444
26445 \begin_deeper
26446 \begin_layout Itemize
26447 version number of the last commit (
26448 \begin_inset Flex Code
26449 status collapsed
26450
26451 \begin_layout Plain Layout
26452 vcs-revision
26453 \end_layout
26454
26455 \end_inset
26456
26457 )
26458 \end_layout
26459
26460 \begin_layout Itemize
26461 author of the last commit (
26462 \begin_inset Flex Code
26463 status collapsed
26464
26465 \begin_layout Plain Layout
26466 vcs-author
26467 \end_layout
26468
26469 \end_inset
26470
26471 )
26472 \end_layout
26473
26474 \begin_layout Itemize
26475 date of the last commit (
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 vcs-date
26481 \end_layout
26482
26483 \end_inset
26484
26485 )
26486 \end_layout
26487
26488 \begin_layout Itemize
26489 time of the last commit (
26490 \begin_inset Flex Code
26491 status collapsed
26492
26493 \begin_layout Plain Layout
26494 vcs-time
26495 \end_layout
26496
26497 \end_inset
26498
26499 )
26500 \end_layout
26501
26502 \end_deeper
26503 \begin_layout Standard
26504 You can obtain this info via InsetInfo (
26505 \change_inserted 5863208 1564400022
26506
26507 \lang american
26508 Insert\SpecialChar menuseparator
26509 Field\SpecialChar menuseparator
26510 Version Control Revision
26511 \change_deleted 5863208 1564399852
26512
26513 \lang english
26514 e.g.
26515  
26516 \begin_inset Flex Code
26517 status collapsed
26518
26519 \begin_layout Plain Layout
26520 info-insert buffer vcs-date
26521 \end_layout
26522
26523 \end_inset
26524
26525
26526 \change_unchanged
26527 ).
26528  The information will be available only when you have the file stored under
26529  svn managment (i.e.
26530  the 
26531 \begin_inset Flex Code
26532 status collapsed
26533
26534 \begin_layout Plain Layout
26535 .svn
26536 \end_layout
26537
26538 \end_inset
26539
26540  directory is available with your document).
26541 \end_layout
26542
26543 \end_deeper
26544 \begin_layout Itemize
26545 Another—a hacking one—possibility is to use svn keywords
26546 \begin_inset Foot
26547 status collapsed
26548
26549 \begin_layout Plain Layout
26550 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
26551 \end_layout
26552
26553 \end_inset
26554
26555 .
26556  In short – you set file keywords property (e.g.
26557  
26558 \family sans
26559 svn propset svn:keywords 'Rev' file.lyx
26560 \family default
26561 ) and then paste keyword \SpecialChar TeX
26562  code
26563 \begin_inset Foot
26564 status collapsed
26565
26566 \begin_layout Plain Layout
26567 This is an easy way how to ensure that \SpecialChar LyX
26568  won't break the line in the middle
26569  of keyword tag.
26570 \end_layout
26571
26572 \end_inset
26573
26574  tag in your document (e.g.
26575  
26576 \begin_inset Flex Code
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580 $Rev$
26581 \end_layout
26582
26583 \end_inset
26584
26585 ).
26586  This way svn client will automatically substitute revision number (e.g.
26587  
26588 \begin_inset Flex Code
26589 status collapsed
26590
26591 \begin_layout Plain Layout
26592 $Rev: 59 $
26593 \end_layout
26594
26595 \end_inset
26596
26597 ) after each update and commit.
26598  There are more problems with this approach.
26599  Firstly, the '$' character is used in \SpecialChar TeX
26600  world for math equations, so any
26601  occurence of math formula 
26602 \begin_inset Formula $Rev$
26603 \end_inset
26604
26605  become 
26606 \begin_inset Formula $Rev:59$
26607 \end_inset
26608
26609  in your \SpecialChar LyX
26610  document.
26611  Similarly for other keywords like Id, Date, Author, etc.
26612  Secondly svn output is dependent on your locales, so its very easy that
26613  svn would produce some problematic strings once Date is used.
26614  Thirdly you get the whole 'Rev: 59' string in your document instead of
26615  the plain number.
26616  Until subversion implements user's custom keywords it will be hard to use
26617  this approach reliably or let \SpecialChar LyX
26618  to support it directly.
26619 \end_layout
26620
26621 \begin_layout Subsection
26622 SVN and Windows Environment
26623 \end_layout
26624
26625 \begin_layout Quote
26626 My inclination is to say that if the user cannot figure out the command
26627  line operations on their own fairly quickly, they would be well advised
26628  to use TortoiseSVN.
26629  —P.
26630  A.
26631  Rubin
26632 \end_layout
26633
26634 \begin_layout Subsubsection
26635 Preparation
26636 \end_layout
26637
26638 \begin_layout Standard
26639 In addition to installing \SpecialChar LyX
26640 , and having access to a Subversion repository,
26641  the user will need to install the Subversion client program.
26642  A Windows installer for the client program is available from 
26643 \begin_inset CommandInset href
26644 LatexCommand href
26645 name "CollabNet"
26646 target "http://www.collab.net/nonav/downloads/subversion/"
26647 literal "false"
26648
26649 \end_inset
26650
26651 .
26652  The user may also want to install 
26653 \begin_inset CommandInset href
26654 LatexCommand href
26655 name "TortoiseSVN"
26656 target "http://tortoisesvn.tigris.org/"
26657 literal "false"
26658
26659 \end_inset
26660
26661 , which integrates Subversion operations into the context (rightclick) menu
26662  of Windows Explorer.
26663  Operations done outside \SpecialChar LyX
26664  will typically be more convenient using the Explorer
26665  context menu.
26666  Note that TortoiseSVN is not a replacement for the client program, which
26667  is what \SpecialChar LyX
26668  itself will use.
26669 \end_layout
26670
26671 \begin_layout Subsubsection
26672 Bringing a document under Subversion control
26673 \end_layout
26674
26675 \begin_layout Standard
26676 Before a \SpecialChar LyX
26677  document can be brought under version control in Subversion, its
26678  parent directory needs to be under version control.
26679  If the document is being added to a project already in the repository,
26680  this is accomplished by checking the project out to the directory where
26681  the new document will be placed.
26682  If the project itself is not yet under version control (for instance, if
26683  this document starts a new project), the directory must be imported into
26684  the repository.
26685  This is done outside \SpecialChar LyX
26686 .
26687  Both import and checkout are easily accomplished from the Explorer context
26688  menu using TortoiseSVN, or alternatively can be done using the command
26689  line client at a DOS prompt.
26690  The procedure for importing the project using TortoiseSVN is described
26691  below, assuming an existing repository and a new project being started
26692  in 
26693 \family typewriter
26694 C:
26695 \backslash
26696 new project
26697 \family default
26698 .
26699  For information on using the Subversion client program, run 
26700 \family typewriter
26701 svn --help 
26702 \family default
26703 in a DOS shell.
26704 \end_layout
26705
26706 \begin_layout Enumerate
26707 Locate 
26708 \family typewriter
26709 C:
26710 \backslash
26711 new project 
26712 \family default
26713 in Windows Explorer, right click it, and select 
26714 \family sans
26715 TortoiseSVN\SpecialChar menuseparator
26716 Repo-browser
26717 \family default
26718 .
26719  If necessary, adjust the URL for the repository, then click OK.
26720 \end_layout
26721
26722 \begin_layout Enumerate
26723 Right click the level of the repository under which you want to place the
26724  new project folder (typically the top level) and click 
26725 \family sans
26726 Create folder
26727 \family default
26728  Supply a name for the project folder and click OK.
26729  Add a message for the log file if desired, then click OK again.
26730  The new project folder should appear in the repository.
26731  Finally, click OK again to exit the repository browser.
26732 \end_layout
26733
26734 \begin_layout Enumerate
26735 Once again right click 
26736 \family typewriter
26737 C:
26738 \backslash
26739 new project
26740 \family default
26741 , this time selecting SVN Checkout\SpecialChar ldots
26742  Select the URL of the project folder
26743  you just created in the repository, and set the checkout directory to 
26744 \family typewriter
26745 C:
26746 \backslash
26747 new project.
26748
26749 \family default
26750  Click OK.
26751  You will be warned about a non-empty folder; click OK to proceed.
26752  You should now have a 
26753 \family typewriter
26754 .svn
26755 \family default
26756  directory under 
26757 \family typewriter
26758 C:
26759 \backslash
26760 new project.
26761 \end_layout
26762
26763 \begin_layout Enumerate
26764 Create or open your document in \SpecialChar LyX
26765  and click 
26766 \family sans
26767 File\SpecialChar menuseparator
26768 Version
26769 \begin_inset space ~
26770 \end_inset
26771
26772 Control\SpecialChar menuseparator
26773 Register.
26774  
26775 \family default
26776 Add a log message and click OK to commit the document to version control.
26777 \end_layout
26778
26779 \begin_layout Standard
26780 From this point onward, you should have full functionality in the 
26781 \family sans
26782 File\SpecialChar menuseparator
26783 Version
26784 \begin_inset space ~
26785 \end_inset
26786
26787 Control
26788 \family default
26789  menu.
26790  You also have the option of checking the document in and out, viewing its
26791  history, etc.
26792  using the TortoiseSVN context menu in Windows Explorer or the Subversion
26793  client program from a command prompt.
26794 \end_layout
26795
26796 \begin_layout Subsubsection
26797 SSH tunnel used with SVN under Windows
26798 \end_layout
26799
26800 \begin_layout Standard
26801 Compared with Linux setting up an svn client to communicate over ssh under
26802  Windows is a rather troublesome task.
26803  We will at least offer some hints how to setup the client side but prior
26804  knowledge about ssh and the Windows command line is needed, also be prepared
26805  for a great deal of frustration\SpecialChar ldots
26806
26807 \end_layout
26808
26809 \begin_layout Enumerate
26810 Get an svn client for windows, as described in the previous sections.
26811  When it is a fresh install run some svn command (e.g.
26812  
26813 \begin_inset Flex Code
26814 status collapsed
26815
26816 \begin_layout Plain Layout
26817 svn --version
26818 \end_layout
26819
26820 \end_inset
26821
26822 ) to create config files, which you will need to change later on.
26823 \end_layout
26824
26825 \begin_layout Enumerate
26826 Choose an ssh client for Windows.
26827  There are several possibilities, we will use the one from Putty tools
26828 \begin_inset Foot
26829 status collapsed
26830
26831 \begin_layout Plain Layout
26832 \begin_inset Flex URL
26833 status collapsed
26834
26835 \begin_layout Plain Layout
26836
26837 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
26838 \end_layout
26839
26840 \end_inset
26841
26842
26843 \end_layout
26844
26845 \end_inset
26846
26847 .
26848  You will need to set the connection up so that the client doesn't ask for
26849  any password from you.
26850  To keep things easy we will use only keys without any additional password
26851  protection etc.
26852 \end_layout
26853
26854 \begin_deeper
26855 \begin_layout Enumerate
26856 Generate keys by 
26857 \begin_inset Flex Code
26858 status collapsed
26859
26860 \begin_layout Plain Layout
26861 puttygen
26862 \end_layout
26863
26864 \end_inset
26865
26866 .
26867  Save your private .ppk key file and put the public one on the server side.
26868  If the SVN server runs on Linux, note that the format of the public key
26869  is not compatible with Linux openssh and you will need to direcly copy-paste
26870  the key from the 
26871 \begin_inset Quotes eld
26872 \end_inset
26873
26874
26875 \emph on
26876 Public key for pasting into OpenSSH authorized_keys file
26877 \emph default
26878 :
26879 \begin_inset Quotes erd
26880 \end_inset
26881
26882  edit field into the server's 
26883 \begin_inset Flex Code
26884 status collapsed
26885
26886 \begin_layout Plain Layout
26887 ~/.ssh/authorized_keys
26888 \end_layout
26889
26890 \end_inset
26891
26892  / 
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 authorized_keys2
26898 \end_layout
26899
26900 \end_inset
26901
26902  file.
26903 \end_layout
26904
26905 \begin_layout Enumerate
26906 Get the Putty's 
26907 \begin_inset Flex Code
26908 status collapsed
26909
26910 \begin_layout Plain Layout
26911 plink
26912 \end_layout
26913
26914 \end_inset
26915
26916 .
26917  In the SVN config file
26918 \begin_inset Foot
26919 status collapsed
26920
26921 \begin_layout Plain Layout
26922 Exact path depends on Windows version, usually somewhere around 
26923 \begin_inset Flex Code
26924 status collapsed
26925
26926 \begin_layout Plain Layout
26927 c:
26928 \backslash
26929 Documents and Settings
26930 \backslash
26931 user
26932 \backslash
26933 Application Data
26934 \backslash
26935 Subversion
26936 \backslash
26937 config
26938 \end_layout
26939
26940 \end_inset
26941
26942  / 
26943 \begin_inset Flex Code
26944 status collapsed
26945
26946 \begin_layout Plain Layout
26947 AppData
26948 \backslash
26949 Roaming
26950 \backslash
26951 Subversion
26952 \end_layout
26953
26954 \end_inset
26955
26956 .
26957 \end_layout
26958
26959 \end_inset
26960
26961 , section [tunnels], setup ssh command, e.g.
26962  
26963 \begin_inset Flex Code
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
26968 \end_layout
26969
26970 \end_inset
26971
26972 .
26973 \begin_inset Foot
26974 status collapsed
26975
26976 \begin_layout Plain Layout
26977 It will usually take a lot of time to get exact command right and it depends
26978  on many things.
26979  For example do not have some remote server saved as a default session in
26980  Putty etc.
26981  If things fail, try to connect via plink without SVN first.
26982 \end_layout
26983
26984 \end_inset
26985
26986
26987 \end_layout
26988
26989 \end_deeper
26990 \begin_layout Enumerate
26991 Checkout the SVN archive, e.
26992 \begin_inset space \thinspace{}
26993 \end_inset
26994
26995 g.
26996 \begin_inset Newline newline
26997 \end_inset
26998
26999
27000 \begin_inset Flex Code
27001 status collapsed
27002
27003 \begin_layout Plain Layout
27004 svn co svn+ssh://user@server/repository_path
27005 \end_layout
27006
27007 \end_inset
27008
27009 .
27010 \end_layout
27011
27012 \begin_layout Subsubsection
27013 End-of-Line Conversions
27014 \end_layout
27015
27016 \begin_layout Standard
27017 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
27018  will
27019  use different line endings inside the .lyx files.
27020  This is not a problem as far as \SpecialChar LyX
27021  functionality is concerned, but the commit
27022  diffs will be huge and merge-conflicts prone.
27023  Fortunately SVN itself knows
27024 \begin_inset Foot
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 \begin_inset Flex URL
27029 status collapsed
27030
27031 \begin_layout Plain Layout
27032
27033 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
27034 \end_layout
27035
27036 \end_inset
27037
27038
27039 \end_layout
27040
27041 \end_inset
27042
27043  how to deal with CR/LF problems when switching .lyx files to the 
27044 \begin_inset Flex Code
27045 status collapsed
27046
27047 \begin_layout Plain Layout
27048 native
27049 \end_layout
27050
27051 \end_inset
27052
27053  mode.
27054 \begin_inset Foot
27055 status collapsed
27056
27057 \begin_layout Plain Layout
27058 For the lazy guys: 
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 svn propset svn:eol-style native FILE_NAME
27064 \end_layout
27065
27066 \end_inset
27067
27068
27069 \end_layout
27070
27071 \end_inset
27072
27073
27074 \end_layout
27075
27076 \begin_layout Subsection
27077 GIT commands in \SpecialChar LyX
27078
27079 \end_layout
27080
27081 \begin_layout Standard
27082 A minimal subset of GIT commands is now supported by \SpecialChar LyX
27083 .
27084  You can find the commands in the 
27085 \family sans
27086 File\SpecialChar menuseparator
27087 Version
27088 \begin_inset space ~
27089 \end_inset
27090
27091 Control
27092 \family default
27093  submenu.
27094  Please note that if you use password protected access to repository via
27095  ssh, you will be asked in terminal window.
27096  \SpecialChar LyX
27097  was tested against GIT 1.7.
27098 \begin_inset Foot
27099 status collapsed
27100
27101 \begin_layout Plain Layout
27102 Windows users please note that you need to ensure that git is on the path.
27103  This can be set from within \SpecialChar LyX
27104  at 
27105 \family sans
27106 Tools\SpecialChar menuseparator
27107 Preferences\SpecialChar menuseparator
27108 Paths\SpecialChar menuseparator
27109 PATH prefix
27110 \family default
27111 .
27112 \end_layout
27113
27114 \end_inset
27115
27116
27117 \end_layout
27118
27119 \begin_layout Standard
27120 One big difference of GIT and the other supported version control systems
27121  is the distributed nature of GIT: With traditional version control systems
27122  there is one central server which hosts the repository.
27123  Users commit their changes to the server, and get updates made by other
27124  users from it.
27125  With GIT, users commit to a local repository.
27126  The local repository can be synchronized with one or more remote repositories
27127  using the 
27128 \begin_inset Flex Code
27129 status collapsed
27130
27131 \begin_layout Plain Layout
27132 pull
27133 \end_layout
27134
27135 \end_inset
27136
27137  and 
27138 \begin_inset Flex Code
27139 status collapsed
27140
27141 \begin_layout Plain Layout
27142 push
27143 \end_layout
27144
27145 \end_inset
27146
27147  GIT commands.
27148  \SpecialChar LyX
27149  does not interact in any way with remote GIT repositories.
27150  It works exclusively with the local repository in a very similar way as
27151  with a central CVS or SVN repository.
27152  If you use remote GIT repositories you need to do the 
27153 \begin_inset Flex Code
27154 status collapsed
27155
27156 \begin_layout Plain Layout
27157 pull
27158 \end_layout
27159
27160 \end_inset
27161
27162  and 
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 push
27168 \end_layout
27169
27170 \end_inset
27171
27172  operations with your favourite GIT client.
27173 \end_layout
27174
27175 \begin_layout Subsubsection
27176
27177 \family sans
27178 Register
27179 \end_layout
27180
27181 \begin_layout Standard
27182 If your document is not under revision control, this is the only item shown
27183  in the menu.
27184  And if it is under revision control, the 
27185 \family sans
27186 Register
27187 \family default
27188  item is not visible.
27189 \end_layout
27190
27191 \begin_layout Standard
27192 This command registers in GIT your document ONLY in case you have already
27193  the documents directory under GIT control (in particular 
27194 \family typewriter
27195 .git/index
27196 \family default
27197  file exists).
27198  This means you have to checkout the archive by yourself.
27199 \end_layout
27200
27201 \begin_layout Standard
27202 Then you are asked interactively to supply an initial description of the
27203  document.
27204  Don't forget that registered file is not yet committed.
27205 \end_layout
27206
27207 \begin_layout Standard
27208 GIT command that is run: 
27209 \family typewriter
27210 git add 
27211 \begin_inset Quotes qld
27212 \end_inset
27213
27214 <file-name>
27215 \begin_inset Quotes qld
27216 \end_inset
27217
27218
27219 \end_layout
27220
27221 \begin_layout Standard
27222 Read 
27223 \family typewriter
27224 man git
27225 \family default
27226  to understand the switches.
27227 \end_layout
27228
27229 \begin_layout Subsubsection
27230
27231 \family sans
27232 Check In Changes
27233 \end_layout
27234
27235 \begin_layout Standard
27236 When you are finished editing a file, you commit your changes.
27237  When you do this, you are asked for a description of the changes.
27238  After that changes are committed.
27239 \end_layout
27240
27241 \begin_layout Standard
27242 GIT command: 
27243 \family typewriter
27244 git commit -q -m"<description>" <file-name>
27245 \end_layout
27246
27247 \begin_layout Subsubsection
27248
27249 \family sans
27250 Revert To Repository Version
27251 \end_layout
27252
27253 \begin_layout Standard
27254 This will discard all changes made to the document since the last check
27255  in.
27256  You get a warning before changes are discarded.
27257 \end_layout
27258
27259 \begin_layout Standard
27260 GIT command: 
27261 \family typewriter
27262 git checkout -q 
27263 \begin_inset Quotes qld
27264 \end_inset
27265
27266 <file-name>
27267 \begin_inset Quotes qld
27268 \end_inset
27269
27270
27271 \end_layout
27272
27273 \begin_layout Subsubsection
27274
27275 \family sans
27276 Rename
27277 \end_layout
27278
27279 \begin_layout Standard
27280 This will rename the current document including the version history.
27281  It requires a clean document without any changes since the last checkin.
27282  You are asked for a file name and a description of the rename operation.
27283  After that the document is renamed, both locally and in the repository.
27284  If the parent directories of the new and old file names differ, all relative
27285  paths of included files are adjusted (like in 
27286 \family sans
27287 File\SpecialChar menuseparator
27288 Save As
27289 \family default
27290 \SpecialChar ldots
27291 ).
27292  Finally, the document is reloaded using the new name.
27293 \end_layout
27294
27295 \begin_layout Labeling
27296 \labelwidthstring 00.00.0000
27297 GIT
27298 \begin_inset space ~
27299 \end_inset
27300
27301 commands: 
27302 \begin_inset space ~
27303 \end_inset
27304
27305
27306 \begin_inset Newline newline
27307 \end_inset
27308
27309
27310 \begin_inset Flex Code
27311 status collapsed
27312
27313 \begin_layout Plain Layout
27314 git mv 
27315 \family typewriter
27316
27317 \begin_inset Quotes qld
27318 \end_inset
27319
27320 <file-name>
27321 \begin_inset Quotes qld
27322 \end_inset
27323
27324  
27325 \begin_inset Quotes qld
27326 \end_inset
27327
27328 <new-file-name>
27329 \begin_inset Quotes qld
27330 \end_inset
27331
27332
27333 \end_layout
27334
27335 \end_inset
27336
27337
27338 \begin_inset Newline newline
27339 \end_inset
27340
27341
27342 \begin_inset Flex Code
27343 status collapsed
27344
27345 \begin_layout Plain Layout
27346 git commit
27347 \end_layout
27348
27349 \end_inset
27350
27351
27352 \end_layout
27353
27354 \begin_layout Subsubsection
27355
27356 \family sans
27357 Show History
27358 \end_layout
27359
27360 \begin_layout Standard
27361 This shows the complete history of the GIT document.
27362  The output of 
27363 \family typewriter
27364 git log 
27365 \begin_inset Quotes qld
27366 \end_inset
27367
27368 <file-name>
27369 \begin_inset Quotes qld
27370 \end_inset
27371
27372
27373 \family default
27374  is shown in a browser.
27375 \end_layout
27376
27377 \begin_layout Subsubsection
27378 Version Info
27379 \end_layout
27380
27381 \begin_layout Standard
27382 \SpecialChar LyX
27383  supports GIT hash number of the last commit to the file, 
27384 \change_inserted 1119979965 1564297456
27385 its abbreviated form, 
27386 \change_unchanged
27387 author name, date and time of last commit.
27388  All those are extracted from 
27389 \family typewriter
27390 git log -n 1 --pretty=format:%H%n
27391 \change_inserted 1119979965 1564297427
27392 %h%n
27393 \change_unchanged
27394 %an%n%ai
27395 \family default
27396 .
27397  Tree version information is obtained via 
27398 \family typewriter
27399 git describe --abbrev --dirty --long
27400 \family default
27401 .
27402  See 
27403 \begin_inset CommandInset ref
27404 LatexCommand ref
27405 reference "subsec:VCS-Revision-Information"
27406
27407 \end_inset
27408
27409  for other details.
27410 \end_layout
27411
27412 \begin_layout Subsection
27413 Further tuning
27414 \end_layout
27415
27416 \begin_layout Standard
27417 With the recent addition of the 
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 vc-command
27423 \end_layout
27424
27425 \end_inset
27426
27427  function \SpecialChar LyX
27428  power users are allowed to create their own commands for revision
27429  control.
27430 \end_layout
27431
27432 \begin_layout Standard
27433 As an example you can see how two TortoiseSVN commands could be integrated
27434  directly:
27435 \end_layout
27436
27437 \begin_layout Description
27438 Commit: 
27439 \begin_inset Flex Code
27440 status collapsed
27441
27442 \begin_layout Plain Layout
27443 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
27444 \end_layout
27445
27446 \end_inset
27447
27448
27449 \end_layout
27450
27451 \begin_layout Description
27452 Revert: 
27453 \begin_inset Flex Code
27454 status collapsed
27455
27456 \begin_layout Plain Layout
27457 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
27458 \end_layout
27459
27460 \end_inset
27461
27462
27463 \end_layout
27464
27465 \begin_layout Subsection
27466 Version control and Document comparison
27467 \end_layout
27468
27469 \begin_layout Standard
27470 One of the typical uses of version control is to inspect the changes between
27471  revisions, usually by creating 
27472 \begin_inset Flex Code
27473 status collapsed
27474
27475 \begin_layout Plain Layout
27476 diff
27477 \end_layout
27478
27479 \end_inset
27480
27481  dumps.
27482  While this is useful for plain text files, it is much less useful in the
27483  case of \SpecialChar LyX
27484  files, which have more a complicated structure.
27485  Hence we provide binding to the Document comparison feature.
27486  There are two ways of calling this feature – either by direct call of 
27487 \begin_inset Flex Code
27488 status collapsed
27489
27490 \begin_layout Plain Layout
27491 vc-compare
27492 \end_layout
27493
27494 \end_inset
27495
27496  \SpecialChar LyX
27497  function (for details see \SpecialChar LyX
27498  functions manual) or by the toolbar icon 
27499 \begin_inset Info
27500 type  "icon"
27501 arg   "vc-compare"
27502 \end_inset
27503
27504  or the menu item 
27505 \begin_inset Info
27506 type  "menu"
27507 arg   "vc-compare"
27508 \end_inset
27509
27510 , respectively.
27511  One can either compare two chosen revisions of the document or he can simply
27512  compare the current version of edited text with older revisions (where
27513  '
27514 \begin_inset Flex Noun
27515 status collapsed
27516
27517 \begin_layout Plain Layout
27518 0
27519 \end_layout
27520
27521 \end_inset
27522
27523 ' revisions back means comparison of the edited file with last commited
27524  revision).
27525  
27526 \end_layout
27527
27528 \begin_layout Standard
27529 This feature is supported for SVN and RCS though due to the more complicated
27530  versioning scheme of RCS there is a constraint – when addressing the revisions
27531  in dialog, numbers always point to the last number in RCS revision number,
27532  i.e.
27533  '35' in '1.2.35'.
27534  We don't currently support GIT addressing of revisions, one can just compare
27535  edited document with its revision X steps backs, where X is addressed as
27536  
27537 \begin_inset Flex Code
27538 status collapsed
27539
27540 \begin_layout Plain Layout
27541 HEAD~X
27542 \end_layout
27543
27544 \end_inset
27545
27546 .
27547 \end_layout
27548
27549 \begin_layout Section
27550 Literate Programming
27551 \end_layout
27552
27553 \begin_layout Standard
27554 Updated by 
27555 \noun on
27556 Kayvan Sylvan 
27557 \noun default
27558 (kayvan@sylvan.com)
27559 \noun on
27560
27561 \noun default
27562 original documentation written by 
27563 \noun on
27564 Edmar Wienskoski Jr.
27565
27566 \noun default
27567  (edmar-w-jr@technologist.com)
27568 \end_layout
27569
27570 \begin_layout Subsection
27571 Introduction
27572 \end_layout
27573
27574 \begin_layout Standard
27575 The main purpose of this documentation is to show you how to use \SpecialChar LyX
27576  for literate
27577  programming, where it is assumed that you are familiar with this programming
27578  technique, and know what 
27579 \begin_inset Quotes eld
27580 \end_inset
27581
27582 tangling
27583 \begin_inset Quotes erd
27584 \end_inset
27585
27586  and 
27587 \begin_inset Quotes eld
27588 \end_inset
27589
27590 weaving
27591 \begin_inset Quotes erd
27592 \end_inset
27593
27594  means.
27595  If that is not the case, please follow the web links provided in the following
27596  sections.
27597  There is a lot of good documentation out there covering old development
27598  history to the latest tools tips.
27599 \end_layout
27600
27601 \begin_layout Standard
27602 It is also assumed that you are familiar with \SpecialChar LyX
27603  itself to a point that you
27604  are comfortable changing your \SpecialChar LyX
27605  preferences, and X resources file.
27606  If that is not the case please refer to other \SpecialChar LyX
27607  documentation to cover your
27608  specific needs.
27609 \end_layout
27610
27611 \begin_layout Subsection
27612 Literate Programming
27613 \end_layout
27614
27615 \begin_layout Standard
27616 From the Literate Programming FAQ: 
27617 \end_layout
27618
27619 \begin_layout Quotation
27620 Literate programming is the combination of documentation and source together
27621  in a fashion suited for reading by human beings.
27622  In fact, literate programs should be enjoyable reading, even inviting!
27623  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
27624  and documentation in a single file.
27625  Literate programming tools then parse the file to produce either readable
27626  documentation or compilable source.
27627  The WEB style of literate programming was created by D.
27628 \begin_inset space \thinspace{}
27629 \end_inset
27630
27631 E.
27632  Knuth during the development of his \SpecialChar TeX
27633  typesetting software.
27634  
27635 \end_layout
27636
27637 \begin_layout Standard
27638 Another excerpt says:
27639 \end_layout
27640
27641 \begin_layout Quotation
27642
27643 \emph on
27644 How is literate programming different from verbose commenting?
27645 \end_layout
27646
27647 \begin_layout Quotation
27648 There are three distinguishing characteristics.
27649  In order of importance, they are: 
27650 \end_layout
27651
27652 \begin_deeper
27653 \begin_layout Itemize
27654 flexible order of elaboration 
27655 \end_layout
27656
27657 \begin_layout Itemize
27658 automatic support for browsing 
27659 \end_layout
27660
27661 \begin_layout Itemize
27662 typeset documentation, especially diagrams and mathematics 
27663 \end_layout
27664
27665 \end_deeper
27666 \begin_layout Standard
27667 Now that I sparked your curiosity, take a look in the references.
27668 \end_layout
27669
27670 \begin_layout Subsubsection
27671 References
27672 \end_layout
27673
27674 \begin_layout Standard
27675 The complete Literate Programming FAQ can be found at:
27676 \end_layout
27677
27678 \begin_layout Quote
27679 Literate Programming FAQ 
27680 \begin_inset Flex URL
27681 status open
27682
27683 \begin_layout Plain Layout
27684
27685 http://www.literateprogramming.com/lpfaq.pdf
27686 \end_layout
27687
27688 \end_inset
27689
27690
27691 \end_layout
27692
27693 \begin_layout Standard
27694 The FAQ lists 23 (twenty three!) different literate programming tools.
27695  Where some are specialized or 
27696 \begin_inset Quotes eld
27697 \end_inset
27698
27699 tailored
27700 \begin_inset Quotes erd
27701 \end_inset
27702
27703  for particular programming languages, while other have general scope.
27704  I selected 
27705 \noun on
27706 Noweb
27707 \noun default
27708  for my own use for several reasons:
27709 \end_layout
27710
27711 \begin_layout Itemize
27712 It can generate the documentation either in \SpecialChar LaTeX
27713  or HTML.
27714 \end_layout
27715
27716 \begin_layout Itemize
27717 It has a open architecture, i.
27718 \begin_inset space \thinspace{}
27719 \end_inset
27720
27721 e.
27722 \begin_inset space \space{}
27723 \end_inset
27724
27725 it is easy to plug in new filters
27726 \begin_inset Foot
27727 status collapsed
27728
27729 \begin_layout Plain Layout
27730
27731 \emph on
27732 Filters 
27733 \emph default
27734 are programs that read a given data stream and output a manipulated data
27735  stream.
27736  That way, a WEB file (consisting of literate code) can be turned into a
27737  file consisting only of C program code or \SpecialChar LaTeX
27738  code.
27739 \end_layout
27740
27741 \end_inset
27742
27743  and to perform special processing that you may need.
27744  
27745 \end_layout
27746
27747 \begin_layout Itemize
27748 There is a good selection of filters available already (the HTML is one
27749  of them).
27750 \end_layout
27751
27752 \begin_layout Itemize
27753 It is free.
27754 \end_layout
27755
27756 \begin_layout Standard
27757 The Noweb web page can be found at: 
27758 \end_layout
27759
27760 \begin_layout Quote
27761 Noweb home page 
27762 \begin_inset Flex URL
27763 status collapsed
27764
27765 \begin_layout Plain Layout
27766
27767 https://www.cs.tufts.edu/~nr/noweb/
27768 \end_layout
27769
27770 \end_inset
27771
27772
27773 \end_layout
27774
27775 \begin_layout Standard
27776 Starting from there you can reach many other interesting links and even
27777  some literate program examples.
27778 \end_layout
27779
27780 \begin_layout Subsection
27781 \SpecialChar LyX
27782  and Literate Programming with Noweb
27783 \end_layout
27784
27785 \begin_layout Standard
27786 The \SpecialChar LyX
27787  support for Literate Programming is provided by using the generic \SpecialChar LyX
27788
27789  converters mechanism.
27790  This support is provided in a 
27791 \begin_inset Quotes eld
27792 \end_inset
27793
27794 Noweb independent
27795 \begin_inset Quotes erd
27796 \end_inset
27797
27798  way, i.
27799 \begin_inset space \thinspace{}
27800 \end_inset
27801
27802 e.
27803 \begin_inset space \space{}
27804 \end_inset
27805
27806 you will be able to use this new \SpecialChar LyX
27807  feature with some other literate programming
27808  tool of your choice by just changing your \SpecialChar LyX
27809  preferences.
27810 \end_layout
27811
27812 \begin_layout Subsubsection
27813 Generating documents and code (weaving and tangling)
27814 \end_layout
27815
27816 \begin_layout Paragraph
27817 Using the noweb module
27818 \end_layout
27819
27820 \begin_layout Standard
27821 If you have installed Noweb and \SpecialChar LyX
27822  successfully, whenever you open a new document,
27823  after you have chosen its document class, use the 
27824 \family sans
27825 Document\SpecialChar menuseparator
27826 Settings
27827 \family default
27828  menu to add the 
27829 \begin_inset Quotes eld
27830 \end_inset
27831
27832 noweb
27833 \begin_inset Quotes erd
27834 \end_inset
27835
27836  module.
27837  If Noweb is correctly installed, when you click on the 
27838 \begin_inset Quotes eld
27839 \end_inset
27840
27841 Modules
27842 \begin_inset Quotes erd
27843 \end_inset
27844
27845  link, you will see the 
27846 \begin_inset Quotes eld
27847 \end_inset
27848
27849 noweb
27850 \begin_inset Quotes erd
27851 \end_inset
27852
27853  module in the available list and you can add it to your document.
27854 \end_layout
27855
27856 \begin_layout Paragraph
27857 Typing code in
27858 \end_layout
27859
27860 \begin_layout Standard
27861 \SpecialChar LyX
27862  enables you to write code with a custom inset named 
27863 \begin_inset Flex Noun
27864 status collapsed
27865
27866 \begin_layout Plain Layout
27867 Chunk
27868 \end_layout
27869
27870 \end_inset
27871
27872 .
27873  Noweb delimits chunks like this:
27874 \end_layout
27875
27876 \begin_layout LyX-Code
27877 <<My code>>=
27878 \end_layout
27879
27880 \begin_layout LyX-Code
27881   code
27882 \end_layout
27883
27884 \begin_layout LyX-Code
27885   more code
27886 \end_layout
27887
27888 \begin_layout LyX-Code
27889   even more code
27890 \end_layout
27891
27892 \begin_layout LyX-Code
27893   @
27894 \end_layout
27895
27896 \begin_layout Standard
27897 The problem is that whatever is written in between the << and the 
27898 \family typewriter
27899 @
27900 \family default
27901  must be taken literally, i.
27902 \begin_inset space \thinspace{}
27903 \end_inset
27904
27905 e.
27906 \begin_inset space \space{}
27907 \end_inset
27908
27909 \SpecialChar LyX
27910  should be prevented from making any special interpretation of what has
27911  been written.
27912  This is also handled by 
27913 \begin_inset Flex Noun
27914 status collapsed
27915
27916 \begin_layout Plain Layout
27917 Chunk
27918 \end_layout
27919
27920 \end_inset
27921
27922 , that works like a normal text inset but has a free spacing capability.
27923 \end_layout
27924
27925 \begin_layout Standard
27926 As a special note, you can also use the 
27927 \begin_inset Quotes eld
27928 \end_inset
27929
27930 %def
27931 \begin_inset Quotes erd
27932 \end_inset
27933
27934  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
27935 rence:
27936 \end_layout
27937
27938 \begin_layout LyX-Code
27939 <<My chunk>>=
27940 \end_layout
27941
27942 \begin_layout LyX-Code
27943 def some_function(args):
27944 \end_layout
27945
27946 \begin_layout LyX-Code
27947    "This is the doc string for this function."
27948 \end_layout
27949
27950 \begin_layout LyX-Code
27951    print "My args: ", args
27952 \end_layout
27953
27954 \begin_layout LyX-Code
27955 @ %def some_function
27956 \end_layout
27957
27958 \begin_layout Standard
27959 For an example of this usage and the resulting cross-reference output, look
27960  at the Literate python program in 
27961 \emph on
27962 LIBDIR/examples/listerrors.lyx
27963 \emph default
27964  which should make this all clear.
27965 \end_layout
27966
27967 \begin_layout Paragraph
27968 Generating the documentation
27969 \end_layout
27970
27971 \begin_layout Standard
27972 At this point you already have a new document file with a proper document
27973  class, and with some code and text on it.
27974  How do I print it? The answer is simple, you select 
27975 \family sans
27976 View\SpecialChar menuseparator
27977 DVI,
27978 \family default
27979  etc.
27980  Just like you would do for a plain document.
27981  No special procedure is required.
27982 \end_layout
27983
27984 \begin_layout Standard
27985 To help orientate you, I will now explain what happens inside \SpecialChar LyX
27986 :
27987 \end_layout
27988
27989 \begin_layout Enumerate
27990 When the 
27991 \family sans
27992 Update\SpecialChar menuseparator
27993 DVI
27994 \family default
27995  menu option is chosen, a \SpecialChar LaTeX
27996  file is generated.
27997  
27998 \end_layout
27999
28000 \begin_deeper
28001 \begin_layout Standard
28002 If the document is of any literate class the generated file will be named
28003  with an extension name defined by the 
28004 \begin_inset Quotes eld
28005 \end_inset
28006
28007 literate
28008 \begin_inset Quotes erd
28009 \end_inset
28010
28011  format (defined in the Preferences panel), otherwise the file will have
28012  the usual 
28013 \family typewriter
28014 .tex
28015 \family default
28016  extension.
28017 \end_layout
28018
28019 \end_deeper
28020 \begin_layout Enumerate
28021 Note that the only difference so far is in the name of the file, no special
28022  processing is required by \SpecialChar LyX
28023 .
28024  Given that you formatted the code using the 
28025 \begin_inset Flex Noun
28026 status collapsed
28027
28028 \begin_layout Plain Layout
28029 Chunk
28030 \end_layout
28031
28032 \end_inset
28033
28034  inset that, by itself, takes care of the business.
28035 \end_layout
28036
28037 \begin_layout Enumerate
28038 If the document is of any literate class \SpecialChar LyX
28039  will then use the internal \SpecialChar LyX
28040  to
28041  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
28042  converter
28043 \begin_inset Foot
28044 status collapsed
28045
28046 \begin_layout Plain Layout
28047 The converters are defined in the 
28048 \family sans
28049 Tools\SpecialChar menuseparator
28050 Preferences
28051 \family default
28052  panel, under the 
28053 \begin_inset Quotes eld
28054 \end_inset
28055
28056 Conversion
28057 \begin_inset Quotes erd
28058 \end_inset
28059
28060  tab.
28061  See section 
28062 \emph on
28063 Converters
28064 \emph default
28065  of the 
28066 \emph on
28067 Customization
28068 \emph default
28069  manual for general information about converters.
28070 \end_layout
28071
28072 \end_inset
28073
28074  to generate the \SpecialChar LaTeX
28075  file.
28076 \end_layout
28077
28078 \begin_deeper
28079 \begin_layout Standard
28080 Otherwise it will just skip this step.
28081 \end_layout
28082
28083 \end_deeper
28084 \begin_layout Enumerate
28085 Finally, \SpecialChar LaTeX
28086  is invoked and the regular post processing continues as in a plain
28087  document.
28088 \end_layout
28089
28090 \begin_layout Standard
28091 Independence from a particular 
28092 \begin_inset Quotes eld
28093 \end_inset
28094
28095 literate tool
28096 \begin_inset Quotes erd
28097 \end_inset
28098
28099  is easily achieved by changing the commands that are run by the various
28100  converters.
28101 \end_layout
28102
28103 \begin_layout Paragraph
28104 Generating the code
28105 \end_layout
28106
28107 \begin_layout Standard
28108 When the build menu option is chosen or the corresponding button in the
28109  toolbar is pressed, a \SpecialChar LaTeX
28110  file is generated just like step 1 above.
28111  Next, \SpecialChar LyX
28112  invokes the 
28113 \family typewriter
28114 Noweb->Program
28115 \family default
28116  converter.
28117  This converter needs to be defined by the user and is not installed by
28118  default, though the Program format is.
28119  This converter (like any other converter) will have two parts:
28120 \end_layout
28121
28122 \begin_layout Enumerate
28123 The converter program itself.
28124  This program performs the conversion from the one format to the other (in
28125  this case, from the Noweb format to the Program pseudo-format).
28126 \end_layout
28127
28128 \begin_layout Enumerate
28129 The error log parser.
28130  This is a program whose sole purpose is to rewrite error messages in a
28131  format that \SpecialChar LyX
28132  understands.
28133  This makes it possible for \SpecialChar LyX
28134  to place error boxes in the right places in
28135  the file buffer.
28136 \end_layout
28137
28138 \begin_layout Standard
28139 The first part, the 
28140 \begin_inset Quotes eld
28141 \end_inset
28142
28143 Converter
28144 \begin_inset Quotes erd
28145 \end_inset
28146
28147  setting, should be set to
28148 \end_layout
28149
28150 \begin_layout LyX-Code
28151
28152 \family typewriter
28153 build-script $$i
28154 \family default
28155  $$r
28156 \end_layout
28157
28158 \begin_layout Standard
28159 This basically means that \SpecialChar LyX
28160  will call 
28161 \begin_inset Quotes eld
28162 \end_inset
28163
28164 build-script
28165 \begin_inset Quotes erd
28166 \end_inset
28167
28168  (a program or script) with the name of the Noweb file (normally a file
28169  in the \SpecialChar LyX
28170  temp directory) and the directory path of the original \SpecialChar LyX
28171  file.
28172  
28173 \end_layout
28174
28175 \begin_layout Standard
28176 This is an implementation of 
28177 \begin_inset Quotes eld
28178 \end_inset
28179
28180 build-script
28181 \begin_inset Quotes erd
28182 \end_inset
28183
28184  that you can place in a directory on your path:
28185 \end_layout
28186
28187 \begin_layout LyX-Code
28188
28189 \family sans
28190 #!/bin/sh
28191 \end_layout
28192
28193 \begin_layout LyX-Code
28194
28195 \family sans
28196 #
28197 \end_layout
28198
28199 \begin_layout LyX-Code
28200
28201 \family sans
28202 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
28203 \end_layout
28204
28205 \begin_layout Standard
28206 The next part of the converter setting is the 
28207 \begin_inset Quotes eld
28208 \end_inset
28209
28210 Flags
28211 \begin_inset Quotes erd
28212 \end_inset
28213
28214  which is to be set to
28215 \end_layout
28216
28217 \begin_layout LyX-Code
28218
28219 \family typewriter
28220 parselog=$$s/scripts/listerrors
28221 \end_layout
28222
28223 \begin_layout Standard
28224 This will run any errors that are generated by the 
28225 \begin_inset Quotes eld
28226 \end_inset
28227
28228 build-script
28229 \begin_inset Quotes erd
28230 \end_inset
28231
28232  process through the 
28233 \begin_inset Quotes eld
28234 \end_inset
28235
28236 listerrors
28237 \begin_inset Quotes erd
28238 \end_inset
28239
28240  program.
28241 \end_layout
28242
28243 \begin_layout Standard
28244 The build will normally take place in \SpecialChar LyX
28245 's temporary directory, so the files
28246  produced by the conversion will be in that directory.
28247  \SpecialChar LyX
28248  will copy out what it regards as the `main' file, but the 
28249 \family typewriter
28250 Noweb->Program
28251 \family default
28252  conversion may produce several files, and so most of these would then be
28253  deleted when \SpecialChar LyX
28254  was closed.
28255  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
28256  the build-script chunk can place the generated files in that location.
28257 \end_layout
28258
28259 \begin_layout Paragraph
28260 Build instructions in the document
28261 \end_layout
28262
28263 \begin_layout Standard
28264 The last piece of the integration between \SpecialChar LyX
28265  and noweb is the 
28266 \begin_inset Quotes eld
28267 \end_inset
28268
28269 build-script
28270 \begin_inset Quotes erd
28271 \end_inset
28272
28273  chunk.
28274  Generally, the instructions for building your program should be embedded
28275  in a chunk of its own.
28276  The noweb-specific 
28277 \begin_inset Quotes eld
28278 \end_inset
28279
28280 build-script
28281 \begin_inset Quotes erd
28282 \end_inset
28283
28284  above uses the notangle command to look for this chunk (called 
28285 \begin_inset Quotes eld
28286 \end_inset
28287
28288 build-script
28289 \begin_inset Quotes erd
28290 \end_inset
28291
28292 ) and runs its contents through 
28293 \begin_inset Quotes eld
28294 \end_inset
28295
28296 sh
28297 \begin_inset Quotes erd
28298 \end_inset
28299
28300 .
28301 \end_layout
28302
28303 \begin_layout Standard
28304 Typically, such a chunk would look something like this:
28305 \end_layout
28306
28307 \begin_layout LyX-Code
28308 <<build-script>>=
28309 \end_layout
28310
28311 \begin_layout LyX-Code
28312 #!/bin/sh
28313 \begin_inset Newline newline
28314 \end_inset
28315
28316 if [ -z "${NOWEB_SOURCE}" ]
28317 \begin_inset Newline newline
28318 \end_inset
28319
28320 then
28321 \end_layout
28322
28323 \begin_layout LyX-Code
28324 NOWEB_SOURCE=myfile.nw
28325 \begin_inset Newline newline
28326 \end_inset
28327
28328 fi
28329 \begin_inset Newline newline
28330 \end_inset
28331
28332 [...
28333  code to extract files ...
28334  use NOWEB_OUTPUT_DIR here ...]
28335 \begin_inset Newline newline
28336 \end_inset
28337
28338 [...
28339  code to compile files ...]
28340 \begin_inset Newline newline
28341 \end_inset
28342
28343 @
28344 \end_layout
28345
28346 \begin_layout Standard
28347 Look in 
28348 \emph on
28349 LIBDIR/examples/listerrors.lyx
28350 \emph default
28351  or in 
28352 \emph on
28353 LIBDIR/examples/Literate.lyx
28354 \emph default
28355  which implement two versions of the 
28356 \begin_inset Quotes eld
28357 \end_inset
28358
28359 listerrors
28360 \begin_inset Quotes erd
28361 \end_inset
28362
28363  program for some illustrations of how all of these pieces go together or
28364  in 
28365 \emph on
28366 LIBDIR/examples/noweb2lyx.lyx.
28367
28368 \emph default
28369  Interestingly, these three files show off the language-indepence of the
28370  \SpecialChar LyX
28371  literate programming support since they are written in Python, C and Perl
28372  respectively.
28373 \end_layout
28374
28375 \begin_layout Subsubsection
28376 Configuring \SpecialChar LyX
28377
28378 \end_layout
28379
28380 \begin_layout Standard
28381 All the Literate Programming support is configured by the 
28382 \family sans
28383 Tools\SpecialChar menuseparator
28384 Preferences
28385 \family default
28386  panel in the 
28387 \begin_inset Quotes eld
28388 \end_inset
28389
28390 File Handling
28391 \begin_inset Quotes erd
28392 \end_inset
28393
28394  tab.
28395  The important parts are:
28396 \end_layout
28397
28398 \begin_layout Description
28399 the
28400 \begin_inset space ~
28401 \end_inset
28402
28403
28404 \begin_inset Quotes eld
28405 \end_inset
28406
28407 NoWeb
28408 \begin_inset Quotes erd
28409 \end_inset
28410
28411
28412 \begin_inset space ~
28413 \end_inset
28414
28415 format Set up via the File Formats tab, this is where the Noweb-specific
28416  pieces are set up.
28417  The 
28418 \family sans
28419 GUI Name
28420 \family default
28421  is set to 
28422 \family typewriter
28423 NoWeb
28424 \family default
28425 , the file extension is set to 
28426 \family typewriter
28427 .nw
28428 \family default
28429 .
28430  This tells \SpecialChar LyX
28431  to create a file with a 
28432 \family typewriter
28433 .nw
28434 \family default
28435  extension in the first step of the conversion process.
28436 \end_layout
28437
28438 \begin_layout Description
28439 the
28440 \begin_inset space ~
28441 \end_inset
28442
28443
28444 \family sans
28445 Program
28446 \family default
28447
28448 \begin_inset space ~
28449 \end_inset
28450
28451 format This is an empty format whose sole purpose is to be the endpoint
28452  of a conversion (which then allows us to set up a converter for it).
28453 \end_layout
28454
28455 \begin_layout Description
28456
28457 \family sans
28458 NoWeb
28459 \family default
28460 ->
28461 \family sans
28462 \SpecialChar LaTeX
28463
28464 \family default
28465  This converter performs the 
28466 \begin_inset Quotes eld
28467 \end_inset
28468
28469 weaving
28470 \begin_inset Quotes erd
28471 \end_inset
28472
28473  of the literate document.
28474  For Noweb, it is set to 
28475 \begin_inset Quotes eld
28476 \end_inset
28477
28478
28479 \family typewriter
28480 noweave -delay -index $$i > $$o
28481 \family default
28482
28483 \begin_inset Quotes erd
28484 \end_inset
28485
28486
28487 \end_layout
28488
28489 \begin_layout Description
28490
28491 \family sans
28492 NoWeb
28493 \family default
28494 ->
28495 \family sans
28496 Program
28497 \family default
28498  This performs the 
28499 \begin_inset Quotes eld
28500 \end_inset
28501
28502 tangling step
28503 \begin_inset Quotes erd
28504 \end_inset
28505
28506 .
28507  As stated above, the Converter is set to 
28508 \begin_inset Quotes eld
28509 \end_inset
28510
28511
28512 \family typewriter
28513 build-script $$i
28514 \family default
28515  $$r
28516 \begin_inset Quotes erd
28517 \end_inset
28518
28519 , with Flags set to
28520 \begin_inset Newline newline
28521 \end_inset
28522
28523
28524 \begin_inset Quotes eld
28525 \end_inset
28526
28527
28528 \family typewriter
28529 parselog=$$s/scripts/listerrors
28530 \family default
28531
28532 \begin_inset Quotes erd
28533 \end_inset
28534
28535 .
28536 \end_layout
28537
28538 \begin_layout Subsubsection
28539 Debug extensions
28540 \end_layout
28541
28542 \begin_layout Standard
28543 There is also a new function implemented in the \SpecialChar LyX
28544  server, the 
28545 \begin_inset Quotes eld
28546 \end_inset
28547
28548 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
28549  
28550 \end_layout
28551
28552 \begin_layout Standard
28553 When debugging code with ddd/gdb, it is possible to invoke a text editor
28554  at the current execution position with a single key stroke.
28555  The default ddd configuration for that is shift-ctrl-V.
28556  It happens that you can define the editor command line invocation in ddd
28557  by accessing the 
28558 \family sans
28559 Edit\SpecialChar menuseparator
28560 Preferences\SpecialChar menuseparator
28561 Helpers
28562 \family default
28563  dialog and changing the "Edit Sources" entry.
28564 \end_layout
28565
28566 \begin_layout Standard
28567 I take advantage of the newly created \SpecialChar LyX
28568  server function and this ddd feature,
28569  and set 
28570 \begin_inset Quotes eld
28571 \end_inset
28572
28573 Edit Sources
28574 \begin_inset Quotes erd
28575 \end_inset
28576
28577  to:
28578 \end_layout
28579
28580 \begin_layout LyX-Code
28581 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
28582 \end_layout
28583
28584 \begin_layout Standard
28585 With this, whenever you are using ddd and find a point in the program that
28586  you want to edit, you just press shift-ctrl-V (in the ddd window), and
28587  ddd will forward this information to \SpecialChar LyX
28588  through the \SpecialChar LyX
28589  server and then the
28590  \SpecialChar LyX
28591  window will show the same file with the cursor at the same position ddd
28592  was pointing to.
28593  No more guessing or long scrolling to locate a point in the program back
28594  from debugging !
28595 \end_layout
28596
28597 \begin_layout Standard
28598 Note however that you must enable the \SpecialChar LyX
28599  server to get this feature working
28600  (it is disabled by default).
28601  Sec.
28602 \begin_inset space ~
28603 \end_inset
28604
28605
28606 \begin_inset CommandInset ref
28607 LatexCommand ref
28608 reference "sec:Starting-the-Server"
28609
28610 \end_inset
28611
28612  explains how to do that.
28613 \end_layout
28614
28615 \begin_layout Subsubsection
28616 Toolbar extensions
28617 \end_layout
28618
28619 \begin_layout Standard
28620 There are six new buttons that can be added to your \SpecialChar LyX
28621  toolbar.
28622  Four of these buttons are short cuts to layout styles: 
28623 \family sans
28624 Standard
28625 \family default
28626
28627 \family sans
28628 Section
28629 \family default
28630
28631 \family sans
28632 \SpecialChar LaTeX
28633
28634 \family default
28635 , and 
28636 \family sans
28637 \SpecialChar LyX
28638 -Code
28639 \family default
28640 , one for the custom inset 
28641 \family sans
28642 Chunk
28643 \family default
28644 .
28645  The last one is a short cut to the 
28646 \begin_inset Quotes eld
28647 \end_inset
28648
28649 Build Program
28650 \begin_inset Quotes erd
28651 \end_inset
28652
28653  File menu entry.
28654  
28655 \end_layout
28656
28657 \begin_layout Standard
28658 \SpecialChar LyX
28659  has a range of buttons that are available for tool bar customization.
28660  In my toolbar I like to combine the six short cuts above with two more:
28661  One for 
28662 \family sans
28663 Document
28664 \family default
28665 \SpecialChar menuseparator
28666
28667 \family sans
28668 Update
28669 \family default
28670 \SpecialChar menuseparator
28671
28672 \family sans
28673 DVI
28674 \family default
28675  and the other for 
28676 \family sans
28677 Document\SpecialChar menuseparator
28678 View\SpecialChar menuseparator
28679 DVI
28680 \family default
28681  File menu entries.
28682  Here is how it looks like:
28683 \end_layout
28684
28685 \begin_layout LyX-Code
28686 Toolbar
28687 \end_layout
28688
28689 \begin_layout LyX-Code
28690   Layouts
28691 \end_layout
28692
28693 \begin_layout LyX-Code
28694   Icon "layout Standard"
28695 \end_layout
28696
28697 \begin_layout LyX-Code
28698   Icon "layout Section"
28699 \end_layout
28700
28701 \begin_layout LyX-Code
28702   Icon "layout \SpecialChar LaTeX
28703 "
28704 \end_layout
28705
28706 \begin_layout LyX-Code
28707   Icon "layout \SpecialChar LyX
28708 -Code"
28709 \end_layout
28710
28711 \begin_layout LyX-Code
28712   Icon "flex.insert Chunk"
28713 \end_layout
28714
28715 \begin_layout LyX-Code
28716   Separator
28717 \end_layout
28718
28719 \begin_layout LyX-Code
28720   Icon "buffer-view"
28721 \end_layout
28722
28723 \begin_layout LyX-Code
28724   Icon "buffer-typeset"
28725 \end_layout
28726
28727 \begin_layout LyX-Code
28728   Icon "build-program"
28729 \end_layout
28730
28731 \begin_layout LyX-Code
28732   Separator
28733 \end_layout
28734
28735 \begin_layout LyX-Code
28736 .
28737 \end_layout
28738
28739 \begin_layout LyX-Code
28740 .
28741 \end_layout
28742
28743 \begin_layout LyX-Code
28744 .
28745 \end_layout
28746
28747 \begin_layout LyX-Code
28748 End
28749 \end_layout
28750
28751 \begin_layout Subsubsection
28752 Colors customization
28753 \end_layout
28754
28755 \begin_layout Standard
28756 There are a number of colors in \SpecialChar LyX
28757  that can be customized in 
28758 \family sans
28759 Preferences
28760 \family default
28761 .
28762  One of the things that bothers people is the \SpecialChar LaTeX
28763  font color.
28764  The default color is red, since the chunks uses \SpecialChar LaTeX
28765  font, and there is a lot
28766  of chunks in literate documents, you may get tired of seeing everything
28767  in red.
28768  You can change it by going to the tabs 
28769 \family sans
28770 Look&Feel
28771 \family default
28772
28773 \family sans
28774 Colors.
28775 \end_layout
28776
28777 \begin_layout Standard
28778 The next thing is the visible presence of the newline character in the screen.
28779  You can choose the color of this particular character and make it blend
28780  in the background.
28781  I recommend you choosing a color that is close to the background but not
28782  equal, that way you still can see it is there, but it is not bothering
28783  you anymore.
28784 \end_layout
28785
28786 \begin_layout Subsection
28787 \SpecialChar LyX
28788  and knitr/Sweave
28789 \end_layout
28790
28791 \begin_layout Standard
28792 Support for 
28793 \family sans
28794 knitr
28795 \family default
28796  and 
28797 \family sans
28798 Sweave
28799 \family default
28800  is documented in the 
28801 \emph on
28802 knitr.lyx
28803 \emph default
28804  example file and in the Sweave manual (menu 
28805 \family sans
28806 Help\SpecialChar menuseparator
28807 Specific Manuals
28808 \family default
28809 ).
28810 \end_layout
28811
28812 \begin_layout Chapter
28813 Special features
28814 \end_layout
28815
28816 \begin_layout Standard
28817 You can do everything with \SpecialChar LyX
28818  that you can do with \SpecialChar LaTeX
28819 .
28820  However, \SpecialChar LyX
28821  cannot support every \SpecialChar LaTeX
28822  feature directly.
28823  But you can always use \SpecialChar TeX
28824  Code.
28825  This chapter shows you some more special things you might want to use.
28826  For other special things you can do with figures, tables, floats, boxes
28827  and notes, have a look at the 
28828 \emph on
28829 Embedded
28830 \begin_inset space ~
28831 \end_inset
28832
28833 Objects
28834 \emph default
28835  manual.
28836 \end_layout
28837
28838 \end_body
28839 \end_document