]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Fix LyX version number
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 608
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 5863208 "ab"
133 \author 244031559 "Yuriy"
134 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
135 \author 1075283030 "Thibaut"
136 \author 1119979965 "Joel A. Kulesza"
137 \end_header
138
139 \begin_body
140
141 \begin_layout Title
142 Additional \SpecialChar LyX
143  Features
144 \end_layout
145
146 \begin_layout Subtitle
147 Version 2.
148 \change_deleted 630872221 1622909155
149 3
150 \change_inserted 630872221 1622909155
151 4
152 \change_unchanged
153 .x
154 \end_layout
155
156 \begin_layout Author
157 by the \SpecialChar LyX
158  Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 \noindent
164 Principal maintainer of this file is
165 \noun on
166  Richard Kimberly Heck
167 \noun default
168 .
169  If you have comments or error corrections, please send them to the \SpecialChar LyX
170  Documentati
171 on mailing list, 
172 \begin_inset Flex Code
173 status collapsed
174
175 \begin_layout Plain Layout
176 <lyx-docs@lists.lyx.org>
177 \end_layout
178
179 \end_inset
180
181 .
182 \end_layout
183
184 \end_inset
185
186
187 \end_layout
188
189 \begin_layout Standard
190 \begin_inset CommandInset toc
191 LatexCommand tableofcontents
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Chapter
199 Introduction
200 \end_layout
201
202 \begin_layout Standard
203 This manual is essentially Part II of the 
204 \emph on
205 User's Guide\SpecialChar endofsentence
206
207 \emph default
208  The reason for separating the two documents is simple: the 
209 \emph on
210 User's Guide
211 \emph default
212  is already quite lengthy, and it contains information on all of the basic
213  features one needs to know in order to prepare most documents.
214  However, the \SpecialChar LyX
215  Team has worked to make \SpecialChar LyX
216  extensible through various configuration
217  files and external packages.
218  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
219  package, you can
220  create a layout file (or module) for it without having to alter \SpecialChar LyX
221  itself.
222  We've already had contributions of several new features this way, and some
223  of them are documented here.
224  There are also some more `advanced' features, such as how to control the
225  presentation of bibliographies and how to work with multi-part documents,
226  that are not covered in the 
227 \emph on
228 User's Guide
229 \emph default
230  and are discussed here.
231 \end_layout
232
233 \begin_layout Standard
234 This manual also documents some special features, like fax support
235 \change_deleted 244031559 1603802929
236 ,
237 \change_inserted 244031559 1603802931
238  and
239 \change_unchanged
240  version control
241 \change_deleted 244031559 1603802954
242 , and SGML support
243 \change_unchanged
244 , which require additional software to work properly.
245  There is also a chapter on \SpecialChar LyX
246 's support for HTML.
247  And lastly, there's a chapter of \SpecialChar LaTeX
248  tools and tips, things you can use to
249  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
250 .
251  After all, \SpecialChar LyX
252  
253 \emph on
254 is
255 \emph default
256  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
257  features.
258 \end_layout
259
260 \begin_layout Standard
261 If you haven't read the 
262 \emph on
263 Introduction
264 \emph default
265  yet, you are definitely in the wrong manual.
266  The 
267 \emph on
268 Introduction
269 \emph default
270  is the first place to go, since it describes the notation and format of
271  all of the manuals.
272  You should also be thoroughly familiar with the 
273 \emph on
274 User's Guide
275 \emph default
276  and all of the basic features of \SpecialChar LyX
277  before attempting to read this one.
278 \end_layout
279
280 \begin_layout Standard
281 Since many of the topics in this manual depend heavily on \SpecialChar LyX
282 's interaction
283  with \SpecialChar LaTeX
284 , this first chapter covers the inner workings of \SpecialChar LyX
285  and how to direct
286  \SpecialChar LyX
287  to generate exactly the \SpecialChar LaTeX
288  code you want.
289  It is obviously for more seasoned \SpecialChar LyX
290  users.
291 \end_layout
292
293 \begin_layout Chapter
294 \SpecialChar LyX
295  and \SpecialChar LaTeX
296
297 \end_layout
298
299 \begin_layout Section
300 How \SpecialChar LyX
301  Uses \SpecialChar LaTeX
302
303 \end_layout
304
305 \begin_layout Standard
306 This chapter is for both \SpecialChar TeX
307 -nicians and the \SpecialChar LaTeX
308 -curious.
309  In it, we'll explain how \SpecialChar LyX
310  and \SpecialChar LaTeX
311  work together to produce printable output.
312  This is the only place in any of the manuals where we assume you know something
313  about \SpecialChar LaTeX
314 .
315 \end_layout
316
317 \begin_layout Standard
318 At one time, \SpecialChar LyX
319  was called a 
320 \begin_inset Quotes eld
321 \end_inset
322
323 WYSIWYM frontend to \SpecialChar LaTeX
324 ,
325 \begin_inset Quotes erd
326 \end_inset
327
328  but that's no longer true.
329  There are frontends to \SpecialChar LaTeX
330  out there.
331 \begin_inset Foot
332 status collapsed
333
334 \begin_layout Plain Layout
335 Some familar ones are \SpecialChar TeX
336 maker and kile, on Linux, and \SpecialChar TeX
337 shop, OSX.
338  There are also the \SpecialChar LaTeX
339  modes for vi and emacs, of course.
340 \end_layout
341
342 \end_inset
343
344  These are basically text editors with the ability to run \SpecialChar LaTeX
345  and mark any
346  errors in the file you're editing.
347  Although \SpecialChar LyX
348  
349 \emph on
350 is
351 \emph default
352  an editor, and it 
353 \emph on
354 does
355 \emph default
356  run \SpecialChar LaTeX
357 , and it also indicates errors in the file, it also does much, much
358  more.
359  For one thing, you don't need to know \SpecialChar LaTeX
360  to use \SpecialChar LyX
361  effectively.
362  And \SpecialChar LyX
363  has added its own extensions to \SpecialChar LaTeX
364 .
365  Try the following sometime: select 
366 \begin_inset Flex Noun
367 status collapsed
368
369 \begin_layout Plain Layout
370 Export\SpecialChar menuseparator
371 LaTeX
372 \end_layout
373
374 \end_inset
375
376  from the 
377 \begin_inset Flex Noun
378 status collapsed
379
380 \begin_layout Plain Layout
381 File
382 \end_layout
383
384 \end_inset
385
386  menu (or 
387 \begin_inset Flex Noun
388 status collapsed
389
390 \begin_layout Plain Layout
391 View\SpecialChar menuseparator
392 Source
393 \begin_inset space ~
394 \end_inset
395
396 Pane
397 \end_layout
398
399 \end_inset
400
401 ), then look at the preamble of the resulting 
402 \begin_inset Flex Code
403 status collapsed
404
405 \begin_layout Plain Layout
406 .tex
407 \end_layout
408
409 \end_inset
410
411  file.
412  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
413 .
414  These macros are defined automatically, according to the features you use
415  in the document.
416 \end_layout
417
418 \begin_layout Standard
419 There are several commands that automatically invoke \SpecialChar LaTeX
420 .
421  They are:
422 \end_layout
423
424 \begin_layout Itemize
425 \begin_inset Flex Noun
426 status collapsed
427
428 \begin_layout Plain Layout
429 Document\SpecialChar menuseparator
430 View
431 \end_layout
432
433 \end_inset
434
435
436 \end_layout
437
438 \begin_layout Itemize
439 \begin_inset Flex Noun
440 status collapsed
441
442 \begin_layout Plain Layout
443 Document\SpecialChar menuseparator
444 Update
445 \end_layout
446
447 \end_inset
448
449
450 \end_layout
451
452 \begin_layout Standard
453 They will only invoke \SpecialChar LaTeX
454  if the file has changed since the last time \SpecialChar LaTeX
455  was
456  run.
457  
458 \end_layout
459
460 \begin_layout Standard
461 When \SpecialChar LyX
462  runs \SpecialChar LaTeX
463  on the file you're editing, it performs these steps:
464 \end_layout
465
466 \begin_layout Enumerate
467 Convert the document to \SpecialChar LaTeX
468  and save to a file with the extension 
469 \begin_inset Flex Code
470 status collapsed
471
472 \begin_layout Plain Layout
473 .tex
474 \end_layout
475
476 \end_inset
477
478  in place of 
479 \begin_inset Flex Code
480 status collapsed
481
482 \begin_layout Plain Layout
483 .lyx
484 \end_layout
485
486 \end_inset
487
488 .
489 \end_layout
490
491 \begin_layout Enumerate
492 Run \SpecialChar LaTeX
493  on the 
494 \begin_inset Flex Code
495 status collapsed
496
497 \begin_layout Plain Layout
498 .tex
499 \end_layout
500
501 \end_inset
502
503  file (maybe several times), and run any other commands (such as 
504 \begin_inset Flex Code
505 status collapsed
506
507 \begin_layout Plain Layout
508 bibtex
509 \end_layout
510
511 \end_inset
512
513  or 
514 \begin_inset Flex Code
515 status collapsed
516
517 \begin_layout Plain Layout
518 makeindex
519 \end_layout
520
521 \end_inset
522
523 ) needed to compile the \SpecialChar LaTeX
524  file.
525 \end_layout
526
527 \begin_layout Enumerate
528 If there are any errors, show the error log.
529 \end_layout
530
531 \begin_layout Standard
532 If you have run \SpecialChar LaTeX
533  using 
534 \begin_inset Flex Noun
535 status collapsed
536
537 \begin_layout Plain Layout
538 View\SpecialChar menuseparator
539 DVI
540 \end_layout
541
542 \end_inset
543
544 , \SpecialChar LyX
545  then runs a DVI viewer to display the DVI-file.
546  If you have used 
547 \begin_inset Flex Noun
548 status collapsed
549
550 \begin_layout Plain Layout
551 View\SpecialChar menuseparator
552 PostScript
553 \end_layout
554
555 \end_inset
556
557 , \SpecialChar LyX
558  performs further steps:
559 \end_layout
560
561 \begin_layout Enumerate
562 Run 
563 \begin_inset Flex Code
564 status collapsed
565
566 \begin_layout Plain Layout
567 dvips
568 \end_layout
569
570 \end_inset
571
572  to convert the DVI file to PostScript.
573 \end_layout
574
575 \begin_layout Enumerate
576 Run a PostScript viewer, such as 
577 \begin_inset Flex Code
578 status collapsed
579
580 \begin_layout Plain Layout
581 ghostview
582 \end_layout
583
584 \end_inset
585
586 , to display the PostScript file.
587 \end_layout
588
589 \begin_layout Standard
590 \SpecialChar LyX
591  does similar things when viewing, or exporting, other formats.
592 \end_layout
593
594 \begin_layout Section
595 Translating \SpecialChar LaTeX
596  files into \SpecialChar LyX
597
598 \end_layout
599
600 \begin_layout Standard
601 You can import a \SpecialChar LaTeX
602  file into \SpecialChar LyX
603  by using the 
604 \begin_inset Flex Noun
605 status collapsed
606
607 \begin_layout Plain Layout
608 File\SpecialChar menuseparator
609 Import\SpecialChar menuseparator
610 LaTeX
611 \end_layout
612
613 \end_inset
614
615  command in \SpecialChar LyX
616 .
617  This will call a program named 
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 tex2lyx
623 \end_layout
624
625 \end_inset
626
627  which will create a file 
628 \begin_inset Flex Code
629 status collapsed
630
631 \begin_layout Plain Layout
632 foo.lyx
633 \end_layout
634
635 \end_inset
636
637  from the file 
638 \begin_inset Flex Code
639 status collapsed
640
641 \begin_layout Plain Layout
642 foo.tex
643 \end_layout
644
645 \end_inset
646
647 .
648  \SpecialChar LyX
649  will then open that file.
650 \begin_inset Foot
651 status collapsed
652
653 \begin_layout Plain Layout
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 tex2lyx
659 \end_layout
660
661 \end_inset
662
663  can also be run from the command line, of course.
664 \end_layout
665
666 \end_inset
667
668
669 \end_layout
670
671 \begin_layout Standard
672 \begin_inset Flex Code
673 status collapsed
674
675 \begin_layout Plain Layout
676 tex2lyx
677 \end_layout
678
679 \end_inset
680
681  will translate most legal \SpecialChar LaTeX
682 , but not everything.
683  It will put things it doesn't understand into \SpecialChar TeX
684  code, so after translating
685  a file with 
686 \begin_inset Flex Code
687 status collapsed
688
689 \begin_layout Plain Layout
690 tex2lyx
691 \end_layout
692
693 \end_inset
694
695 , you can look for \SpecialChar TeX
696  code and hand-edit it until it looks right.
697 \end_layout
698
699 \begin_layout Standard
700 If you don't know what \SpecialChar TeX
701  code is, read the next section.
702 \end_layout
703
704 \begin_layout Section
705 \begin_inset CommandInset label
706 LatexCommand label
707 name "sec:Inserting-TeX-Code"
708
709 \end_inset
710
711 Inserting \SpecialChar TeX
712  Code into \SpecialChar LyX
713  Documents 
714 \end_layout
715
716 \begin_layout Standard
717 Anything you can do in \SpecialChar LaTeX
718  you can do in \SpecialChar LyX
719 , for a very simple reason: You can
720  always insert \SpecialChar TeX
721  code into any \SpecialChar LyX
722  document.
723  \SpecialChar LyX
724  cannot, and will never be able to, display every possible \SpecialChar LaTeX
725  construct.
726  If ever you need to insert \SpecialChar LaTeX
727  commands into your \SpecialChar LyX
728  document, you can use the
729  
730 \begin_inset Flex Code
731 status collapsed
732
733 \begin_layout Plain Layout
734 \SpecialChar TeX
735  Code
736 \end_layout
737
738 \end_inset
739
740  box, which you can insert into your document with 
741 \begin_inset Flex Noun
742 status collapsed
743
744 \begin_layout Plain Layout
745 Insert\SpecialChar menuseparator
746
747 \family sans
748 TeX
749 \family default
750  Code
751 \end_layout
752
753 \end_inset
754
755  or the keyboard shortcut 
756 \begin_inset Info
757 type  "shortcut"
758 arg   "ert-insert"
759 \end_inset
760
761 .
762 \end_layout
763
764 \begin_layout Standard
765 Here's an example of inserting \SpecialChar LaTeX
766  commands in a \SpecialChar LyX
767  document.
768  The code looks like this:
769 \end_layout
770
771 \begin_layout LyX-Code
772
773 \backslash
774 begin{tabular}{ll}
775 \begin_inset Newline newline
776 \end_inset
777
778
779 \backslash
780 begin{minipage}{5cm}
781 \begin_inset Newline newline
782 \end_inset
783
784 This is an example of a minipage environment.
785  You 
786 \begin_inset Newline newline
787 \end_inset
788
789 can put nearly everything in it, even (non-floating) 
790 \begin_inset Newline newline
791 \end_inset
792
793 figures and tables.
794  
795 \begin_inset Newline newline
796 \end_inset
797
798
799 \backslash
800 end{minipage}
801 \begin_inset Newline newline
802 \end_inset
803
804 &
805 \begin_inset Newline newline
806 \end_inset
807
808
809 \backslash
810 begin{minipage}{5cm}
811 \begin_inset Newline newline
812 \end_inset
813
814
815 \backslash
816 begin{verbatim}
817 \begin_inset Newline newline
818 \end_inset
819
820
821 \backslash
822 begin{minipage}{5cm}
823 \begin_inset Newline newline
824 \end_inset
825
826 This ...
827  
828 \begin_inset Newline newline
829 \end_inset
830
831
832 \backslash
833 end{minipage}
834 \begin_inset Newline newline
835 \end_inset
836
837
838 \backslash
839 end{verbatim}
840 \begin_inset Newline newline
841 \end_inset
842
843
844 \backslash
845 end{minipage}
846 \begin_inset Newline newline
847 \end_inset
848
849
850 \backslash
851 end{tabular}
852 \end_layout
853
854 \begin_layout LyX-Code
855
856 \end_layout
857
858 \begin_layout Standard
859 The 
860 \begin_inset Flex Code
861 status collapsed
862
863 \begin_layout Plain Layout
864 \SpecialChar TeX
865  Code
866 \end_layout
867
868 \end_inset
869
870  box containing this text is directly after this paragraph.
871  Those of you reading the manual in \SpecialChar LyX
872  will only see the \SpecialChar TeX
873  code inset.
874  Those reading a printed version of the manuals will see the actual results:
875 \begin_inset VSpace bigskip
876 \end_inset
877
878
879 \end_layout
880
881 \begin_layout Standard
882 \begin_inset ERT
883 status open
884
885 \begin_layout Plain Layout
886
887
888 \backslash
889 begin{tabular}{ll}
890 \end_layout
891
892 \begin_layout Plain Layout
893
894
895 \backslash
896 begin{minipage}{5cm}
897 \end_layout
898
899 \begin_layout Plain Layout
900
901 This is an example of a minipage environment.
902  You can put nearly everything in it, even (non-floating) figures and tables.
903  
904 \end_layout
905
906 \begin_layout Plain Layout
907
908
909 \backslash
910 end{minipage}
911 \end_layout
912
913 \begin_layout Plain Layout
914
915 &
916 \end_layout
917
918 \begin_layout Plain Layout
919
920
921 \backslash
922 begin{minipage}{5cm}
923 \end_layout
924
925 \begin_layout Plain Layout
926
927
928 \backslash
929 begin{verbatim}
930 \end_layout
931
932 \begin_layout Plain Layout
933
934
935 \backslash
936 begin{minipage}{5cm}
937 \end_layout
938
939 \begin_layout Plain Layout
940
941 This ...
942  
943 \end_layout
944
945 \begin_layout Plain Layout
946
947
948 \backslash
949 end{minipage}
950 \end_layout
951
952 \begin_layout Plain Layout
953
954
955 \backslash
956 end{verbatim}
957 \end_layout
958
959 \begin_layout Plain Layout
960
961
962 \backslash
963 end{minipage}
964 \end_layout
965
966 \begin_layout Plain Layout
967
968
969 \backslash
970 end{tabular}
971 \end_layout
972
973 \end_inset
974
975
976 \begin_inset VSpace bigskip
977 \end_inset
978
979
980 \end_layout
981
982 \begin_layout Standard
983 In addition to using \SpecialChar TeX
984  code, you can also create a separate file containing
985  some complex \SpecialChar LaTeX
986  structure and then use 
987 \begin_inset Flex Noun
988 status collapsed
989
990 \begin_layout Plain Layout
991 Insert\SpecialChar menuseparator
992 Child
993 \begin_inset space ~
994 \end_inset
995
996 Document
997 \end_layout
998
999 \end_inset
1000
1001  to include your file (you should select the type 
1002 \begin_inset Flex Code
1003 status collapsed
1004
1005 \begin_layout Plain Layout
1006 Input
1007 \end_layout
1008
1009 \end_inset
1010
1011 ).
1012  We recommend that you only do this if you have a 
1013 \begin_inset Flex Code
1014 status collapsed
1015
1016 \begin_layout Plain Layout
1017 .tex
1018 \end_layout
1019
1020 \end_inset
1021
1022  file which you 
1023 \emph on
1024 know
1025 \emph default
1026  works already.
1027  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1028  errors.
1029 \end_layout
1030
1031 \begin_layout Standard
1032 There are a few last points to emphasize:
1033 \end_layout
1034
1035 \begin_layout Itemize
1036 \SpecialChar LyX
1037  
1038 \emph on
1039 does not
1040 \emph default
1041  check if your \SpecialChar LaTeX
1042  code is correct.
1043 \end_layout
1044
1045 \begin_layout Itemize
1046 Beware of reinventing the wheel.
1047 \end_layout
1048
1049 \begin_layout Standard
1050 On that last point, \SpecialChar LyX
1051  does have quite a few features tucked into it, and
1052  more are coming.
1053  Be sure to check the manuals to make sure that \SpecialChar LyX
1054  doesn't have such-and-such
1055  feature before you decide you have to do it by hand.
1056  Moreover, there are numerous \SpecialChar LaTeX
1057  packages out there to do all sorts of things,
1058  from labels to envelopes to fancy multipage tables.
1059  Check out 
1060 \change_inserted 244031559 1603815732
1061
1062 \begin_inset CommandInset href
1063 LatexCommand href
1064 name "CTAN"
1065 target "https://www.ctan.org/"
1066 literal "false"
1067
1068 \end_inset
1069
1070
1071 \change_deleted 244031559 1603815732
1072
1073 \begin_inset CommandInset href
1074 LatexCommand href
1075 name "CTAN"
1076 target "http://www.ctan.org/"
1077 literal "false"
1078
1079 \end_inset
1080
1081
1082 \change_unchanged
1083  for details.
1084 \end_layout
1085
1086 \begin_layout Standard
1087 If you do need to do some wild and fancy things within your document, be
1088  sure to check out a good \SpecialChar LaTeX
1089  book for assistance.
1090  There are a number of them listed in the bibliography of the 
1091 \emph on
1092 User's Guide
1093 \emph default
1094 .
1095 \end_layout
1096
1097 \begin_layout Section
1098 \SpecialChar LyX
1099  and the \SpecialChar LaTeX
1100  Preamble
1101 \end_layout
1102
1103 \begin_layout Subsection
1104 About the \SpecialChar LaTeX
1105  Preamble
1106 \end_layout
1107
1108 \begin_layout Standard
1109 If you already know \SpecialChar LaTeX
1110 , there is no need to explain here what the preamble
1111  is good for.
1112  If you don't, the following will give you some ideas—we recommend again
1113  that you consult a \SpecialChar LaTeX
1114  book for further information.
1115  In any case, you should read the points below, because they explain what
1116  you can do and what you don't need to do in the \SpecialChar LaTeX
1117  preamble of a \SpecialChar LyX
1118  document.
1119 \end_layout
1120
1121 \begin_layout Standard
1122 The \SpecialChar LaTeX
1123  preamble comes at the very beginning of a document, 
1124 \emph on
1125 before
1126 \emph default
1127  the text.
1128  It serves to:
1129 \end_layout
1130
1131 \begin_layout Itemize
1132 Declare the document class.
1133  
1134 \begin_inset Newline newline
1135 \end_inset
1136
1137 \SpecialChar LyX
1138  already does this for you.
1139  If you're a seasoned \SpecialChar LaTeX
1140 -nician, and you have a custom document class you
1141  want to use, check out the 
1142 \emph on
1143 Customization Manual
1144 \emph default
1145  for information on how to make \SpecialChar LyX
1146  interface to it.
1147 \end_layout
1148
1149 \begin_layout Itemize
1150 Declare the usage of packages.
1151  
1152 \begin_inset Newline newline
1153 \end_inset
1154
1155 \SpecialChar LaTeX
1156  packages provide special commands, which are only available within a document
1157  when the package has been declared in the preamble.
1158  In addition to providing special commands, the inclusion of a package can
1159  change the document.
1160  For example, the package 
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165 indentfirst
1166 \end_layout
1167
1168 \end_inset
1169
1170  forces all paragraphs to be indented.
1171  There are other packages for labels, envelopes, margins, etc.
1172  
1173 \end_layout
1174
1175 \begin_layout Itemize
1176 Set counters, variables, lengths and widths.
1177  
1178 \begin_inset Newline newline
1179 \end_inset
1180
1181 There are several \SpecialChar LaTeX
1182  counters and variables that 
1183 \emph on
1184 must
1185 \emph default
1186  be set globally from within the preamble in order to have the desired effect.
1187  (There are variables that you can set and reset inside the document, too.)
1188  Margins are a good example of something that must be set in the preamble.
1189  Another example is the label format for lists.
1190  You can actually set these just about anywhere, but it's best to do it
1191  just once, inside the preamble.
1192 \end_layout
1193
1194 \begin_layout Itemize
1195 Declare user defined commands (with 
1196 \begin_inset Flex Code
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200
1201 \backslash
1202 newcommand
1203 \end_layout
1204
1205 \end_inset
1206
1207  or 
1208 \begin_inset Flex Code
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212
1213 \backslash
1214 renewcommand
1215 \end_layout
1216
1217 \end_inset
1218
1219 ).
1220 \begin_inset Newline newline
1221 \end_inset
1222
1223 These are abbreviations for \SpecialChar LaTeX
1224  commands which appear very often inside a document.
1225  Although the preamble is a good place to declare such commands, they 
1226 \emph on
1227 can
1228 \emph default
1229  be declared anywhere (before they are used for the first time, of course).
1230  This can be useful if there is a lot of raw \SpecialChar LaTeX
1231  code in your document, which
1232  normally should not be the case.
1233 \end_layout
1234
1235 \begin_layout Standard
1236 \SpecialChar LyX
1237  adds its own set of definitions to the preamble of the 
1238 \begin_inset Flex Code
1239 status collapsed
1240
1241 \begin_layout Plain Layout
1242 .tex
1243 \end_layout
1244
1245 \end_inset
1246
1247  file it produces.
1248  This makes \SpecialChar LaTeX
1249  files generated by \SpecialChar LyX
1250  portable.
1251 \end_layout
1252
1253 \begin_layout Subsection
1254 Changing the Preamble
1255 \end_layout
1256
1257 \begin_layout Standard
1258 The commands which \SpecialChar LyX
1259  adds to the preamble of a \SpecialChar LaTeX
1260  file are fixed; you can't
1261  change them without patching \SpecialChar LyX
1262  itself.
1263  You can, however, add your own stuff to the preamble by selecting 
1264 \begin_inset Flex Noun
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268 \SpecialChar LaTeX
1269
1270 \begin_inset space ~
1271 \end_inset
1272
1273 Preamble
1274 \end_layout
1275
1276 \end_inset
1277
1278  in the 
1279 \begin_inset Flex Noun
1280 status collapsed
1281
1282 \begin_layout Plain Layout
1283 Document\SpecialChar menuseparator
1284 Settings
1285 \end_layout
1286
1287 \end_inset
1288
1289  dialog.
1290  \SpecialChar LyX
1291  adds anything in the 
1292 \begin_inset Flex Noun
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 Preamble
1297 \end_layout
1298
1299 \end_inset
1300
1301  dialog to its own built-in preamble.
1302  Before adding your own declarations in the preamble, you should make sure
1303  that \SpecialChar LyX
1304  doesn't already support what you want to do.
1305  (Remember what we said about reinventing the wheel?) Also, 
1306 \emph on
1307 make sure your preamble code is correct
1308 \emph default
1309 .
1310  \SpecialChar LyX
1311  doesn't check it for you.
1312  If there is an error, you're likely to get an error like 
1313 \begin_inset Quotes eld
1314 \end_inset
1315
1316
1317 \begin_inset Flex Code
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321 Missing 
1322 \backslash
1323 begin{document}
1324 \end_layout
1325
1326 \end_inset
1327
1328
1329 \begin_inset Quotes erd
1330 \end_inset
1331
1332 .
1333  If you see this error, check your preamble.
1334 \end_layout
1335
1336 \begin_layout Subsection
1337 Examples
1338 \end_layout
1339
1340 \begin_layout Standard
1341 Here are some examples of what you can add to a preamble, and what they
1342  do.
1343 \end_layout
1344
1345 \begin_layout Subsubsection
1346 Example #1: Offsets
1347 \end_layout
1348
1349 \begin_layout Standard
1350 There are two variables under \SpecialChar LaTeX
1351  that control page position: 
1352 \begin_inset Flex Code
1353 status collapsed
1354
1355 \begin_layout Plain Layout
1356
1357 \backslash
1358 hoffset
1359 \end_layout
1360
1361 \end_inset
1362
1363  and 
1364 \begin_inset Flex Code
1365 status collapsed
1366
1367 \begin_layout Plain Layout
1368
1369 \backslash
1370 voffset
1371 \end_layout
1372
1373 \end_inset
1374
1375 .
1376  Their names should be self-explanatory.
1377  These variables are useful if you think for a moment about computer labels.
1378  Sometimes, the size of a print medium and the area of the medium that you
1379  can actually print on aren't the same.
1380  This is where 
1381 \begin_inset Flex Code
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385
1386 \backslash
1387 hoffset
1388 \end_layout
1389
1390 \end_inset
1391
1392  and 
1393 \begin_inset Flex Code
1394 status collapsed
1395
1396 \begin_layout Plain Layout
1397
1398 \backslash
1399 voffset
1400 \end_layout
1401
1402 \end_inset
1403
1404  come in.
1405 \end_layout
1406
1407 \begin_layout Standard
1408 The default values for 
1409 \begin_inset Flex Code
1410 status collapsed
1411
1412 \begin_layout Plain Layout
1413
1414 \backslash
1415 hoffset
1416 \end_layout
1417
1418 \end_inset
1419
1420  and 
1421 \begin_inset Flex Code
1422 status collapsed
1423
1424 \begin_layout Plain Layout
1425
1426 \backslash
1427 voffset
1428 \end_layout
1429
1430 \end_inset
1431
1432  are both 0
1433 \begin_inset space \thinspace{}
1434 \end_inset
1435
1436 points, i.
1437 \begin_inset space \thinspace{}
1438 \end_inset
1439
1440 e.
1441 \begin_inset space \space{}
1442 \end_inset
1443
1444 the page isn't shifted.
1445  Unfortunately, some DVI drivers always seem to shift the page.
1446  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1447  If you're using \SpecialChar LyX
1448  on a system that you don't personally maintain, and your
1449  sysadmin is a doofus, 
1450 \begin_inset Flex Code
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454
1455 \backslash
1456 hoffset
1457 \end_layout
1458
1459 \end_inset
1460
1461  and 
1462 \begin_inset Flex Code
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466
1467 \backslash
1468 voffset
1469 \end_layout
1470
1471 \end_inset
1472
1473  can save the day.
1474  Suppose your left and top margins are always 0.5
1475 \begin_inset space \thinspace{}
1476 \end_inset
1477
1478 inches too big.
1479  You can add this to the preamble:
1480 \end_layout
1481
1482 \begin_layout LyX-Code
1483
1484 \backslash
1485 setlength{
1486 \backslash
1487 hoffset}{-0.5 in}
1488 \end_layout
1489
1490 \begin_layout LyX-Code
1491
1492 \backslash
1493 setlength{
1494 \backslash
1495 voffset}{-0.5 in}
1496 \end_layout
1497
1498 \begin_layout Standard
1499 and your margins should now be correct.
1500 \end_layout
1501
1502 \begin_layout Subsubsection
1503 Example #2: Labels
1504 \end_layout
1505
1506 \begin_layout Standard
1507 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1508  There's a rather nice package, available at your nearest CTAN archive,
1509  for printing sheets of labels: 
1510 \begin_inset Flex Code
1511 status collapsed
1512
1513 \begin_layout Plain Layout
1514 labels.sty
1515 \end_layout
1516
1517 \end_inset
1518
1519 .
1520  Now, your system may not have this package installed by default.
1521  We leave that up to you to check.
1522  You'll also want to read the documentation for it; we're not going to do
1523  that for you.
1524  Since this is an example, however, we'll give you an example of how you
1525  use this package.
1526 \end_layout
1527
1528 \begin_layout Standard
1529 First, make sure you're using the 
1530 \begin_inset Flex Code
1531 status collapsed
1532
1533 \begin_layout Plain Layout
1534 article
1535 \end_layout
1536
1537 \end_inset
1538
1539  document class.
1540  Next, you need to put the following in your preamble:
1541 \end_layout
1542
1543 \begin_layout LyX-Code
1544
1545 \backslash
1546 usepackage{labels}
1547 \end_layout
1548
1549 \begin_layout LyX-Code
1550
1551 \backslash
1552 LabelCols=3
1553 \end_layout
1554
1555 \begin_layout LyX-Code
1556
1557 \backslash
1558 LabelRows=7
1559 \end_layout
1560
1561 \begin_layout LyX-Code
1562
1563 \backslash
1564 LeftBorder=8mm
1565 \end_layout
1566
1567 \begin_layout LyX-Code
1568
1569 \backslash
1570 RightBorder=8mm
1571 \end_layout
1572
1573 \begin_layout LyX-Code
1574
1575 \backslash
1576 TopBorder=9mm
1577 \end_layout
1578
1579 \begin_layout LyX-Code
1580
1581 \backslash
1582 BottomBorder=2mm
1583 \end_layout
1584
1585 \begin_layout Standard
1586 This sets things up for Avery label sheets, stock #5360.
1587  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1588  code, placing
1589  the commands 
1590 \begin_inset Flex Code
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594
1595 \backslash
1596 begin{labels}
1597 \end_layout
1598
1599 \end_inset
1600
1601  and 
1602 \begin_inset Flex Code
1603 status collapsed
1604
1605 \begin_layout Plain Layout
1606
1607 \backslash
1608 end{labels}
1609 \end_layout
1610
1611 \end_inset
1612
1613  around each label text.
1614  This and other special features of 
1615 \begin_inset Flex Code
1616 status collapsed
1617
1618 \begin_layout Plain Layout
1619 labels.sty
1620 \end_layout
1621
1622 \end_inset
1623
1624  are explained in its documentation.
1625 \end_layout
1626
1627 \begin_layout Standard
1628 Someday, someone may write a \SpecialChar LyX
1629  layout file to support this package directly.
1630  Maybe that someone is you.
1631 \end_layout
1632
1633 \begin_layout Subsubsection
1634 Example #3: Paragraph Indentation
1635 \end_layout
1636
1637 \begin_layout Standard
1638 Americans are trained to indent the first line of 
1639 \emph on
1640 every
1641 \emph default
1642  paragraph.
1643  As with all of their other weird quirks, most Americans will whine and
1644  moan until they can have their way and indent the first line of all paragraphs.
1645  (Yes, we're joking.
1646  (We are?) 
1647 \emph on
1648 Yeah
1649 \emph default
1650 , we are.)
1651 \end_layout
1652
1653 \begin_layout Standard
1654 Of course, this behavior isn't standard typography.
1655  In books, you typically only indent the first line of a paragraph 
1656 \emph on
1657 if
1658 \emph default
1659  it follows another one.
1660  The idea behind indenting the first line of a paragraph is to distinguish
1661  neighboring paragraphs from one another.
1662  If there is no previous paragraph—for example, if it follows a figure or
1663  is the first paragraph in a section—then there is no need for indentation.
1664  
1665 \end_layout
1666
1667 \begin_layout Standard
1668 If you're a typical American (we're still joking!), though, you don't care
1669  about such esoteric things; you want your indentation! Add this to the
1670  preamble:
1671 \end_layout
1672
1673 \begin_layout LyX-Code
1674
1675 \backslash
1676 usepackage{indentfirst}
1677 \end_layout
1678
1679 \begin_layout Standard
1680 If your \SpecialChar TeX
1681  distribution isn't braindead, you'll have this package, and all
1682  of your paragraphs will get the indentation the Founding Fathers intended
1683  they should have.
1684 \end_layout
1685
1686 \begin_layout Subsubsection
1687 Example #4: This Document
1688 \end_layout
1689
1690 \begin_layout Standard
1691 You can also check out the preamble of this document to get an idea of some
1692  of the advanced things you can do.
1693 \end_layout
1694
1695 \begin_layout Section
1696 \SpecialChar LyX
1697  and \SpecialChar LaTeX
1698  Errors
1699 \end_layout
1700
1701 \begin_layout Standard
1702 When \SpecialChar LyX
1703  calls \SpecialChar LaTeX
1704 , it tells \SpecialChar LaTeX
1705  to blithely ignore any errors and keep going.
1706  It then uses the logfile from the \SpecialChar LaTeX
1707  run to do a post-mortem.
1708  After analyzing the logfile, \SpecialChar LyX
1709  displays a dialog listing the errors.
1710  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1711  file
1712  where the error occurred.
1713 \begin_inset Foot
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 Well, usually.
1718  Analyzing the logfile is a tough job, and \SpecialChar LyX
1719  doesn't always go to the right
1720  line.
1721  There are also cases where \SpecialChar LaTeX
1722  reports the error on one line, but the actual
1723  error is earlier.
1724  This is not unlike forgetting a closing brace in a program: You'll get
1725  an error, but only later.
1726 \end_layout
1727
1728 \end_inset
1729
1730
1731 \end_layout
1732
1733 \begin_layout Standard
1734 Some folks also like to look at the log file directly: It is available from
1735  
1736 \begin_inset Flex Noun
1737 status collapsed
1738
1739 \begin_layout Plain Layout
1740 Document\SpecialChar menuseparator
1741 LaTeX
1742 \begin_inset space ~
1743 \end_inset
1744
1745 Log
1746 \end_layout
1747
1748 \end_inset
1749
1750 .
1751  There are some fairly common error messages and warnings.
1752  We'll cover those here.
1753  You should look at a good \SpecialChar LaTeX
1754  book for a complete listing.
1755 \end_layout
1756
1757 \begin_layout Itemize
1758 \begin_inset Flex Code
1759 status collapsed
1760
1761 \begin_layout Plain Layout
1762 LaTeX Warning
1763 \end_layout
1764
1765 \end_inset
1766
1767
1768 \begin_inset Newline newline
1769 \end_inset
1770
1771 Anything beginning with these words is a warning message for the purpose
1772  of 
1773 \begin_inset Quotes eld
1774 \end_inset
1775
1776 debugging
1777 \begin_inset Quotes erd
1778 \end_inset
1779
1780  the \SpecialChar LaTeX
1781  code itself.
1782  You'll get messages like this if you added or changed cross-references
1783  or bibliography entries, in which case, \SpecialChar LaTeX
1784  is trying to tell you that you
1785  need to make another run.
1786  You can by-and-large ignore these.
1787 \end_layout
1788
1789 \begin_layout Itemize
1790 \begin_inset Flex Code
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 LaTeX Font Warning
1795 \end_layout
1796
1797 \end_inset
1798
1799
1800 \begin_inset Newline newline
1801 \end_inset
1802
1803 Another warning message, this time about fonts which \SpecialChar LaTeX
1804  couldn't find.
1805  The rest of the message will often say something about a replacement font
1806  that \SpecialChar LaTeX
1807  used.
1808  You can safely ignore these, too.
1809 \end_layout
1810
1811 \begin_layout Itemize
1812 \begin_inset Flex Code
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Overfull 
1817 \backslash
1818 hbox
1819 \end_layout
1820
1821 \end_inset
1822
1823
1824 \begin_inset Newline newline
1825 \end_inset
1826
1827 \SpecialChar LaTeX
1828  absolutely 
1829 \emph on
1830 loves
1831 \emph default
1832  to spew these out.
1833  It seems to generate at least one of these messages for just about any
1834  document you write.
1835  They are warnings about lines that were too long and run past the right
1836  margin.
1837  This happens if \SpecialChar LaTeX
1838  does not find a reasonable way to break the lines (notoriously
1839  often with typewriter font, since this does not allow for automatic break
1840  points).
1841  In many cases, this is unnoticeable in the final output.
1842  (It can be just a point or two.) Sometimes, however, the lines run rather
1843  visibly into the margin; something you will not want to have in your final
1844  print.
1845  
1846 \begin_inset Newline newline
1847 \end_inset
1848
1849 There are several global ways to try to minimize the overfull lines.
1850  Clicking 
1851 \family sans
1852 Enable micro-typographic extensions
1853 \family default
1854  in 
1855 \family sans
1856 Document\SpecialChar menuseparator
1857 Settings\SpecialChar menuseparator
1858 Fonts
1859 \family default
1860  might already improve things a lot.
1861  Furthermore, \SpecialChar LaTeX
1862  code such as the following in 
1863 \family sans
1864 Document\SpecialChar menuseparator
1865 Settings\SpecialChar menuseparator
1866 Preamble
1867 \family default
1868  usually reduces the overfull lines drastically (we use this in the preamble
1869  of this document):
1870 \end_layout
1871
1872 \begin_deeper
1873 \begin_layout LyX-Code
1874
1875 \backslash
1876 tolerance 1414
1877 \begin_inset Newline newline
1878 \end_inset
1879
1880
1881 \backslash
1882 hbadness 1414
1883 \begin_inset Newline newline
1884 \end_inset
1885
1886
1887 \backslash
1888 emergencystretch 1.5em
1889 \begin_inset Newline newline
1890 \end_inset
1891
1892
1893 \backslash
1894 hfuzz 0.3pt
1895 \end_layout
1896
1897 \begin_layout Standard
1898 In some cases, however, you eventually have to rewrite the text to get the
1899  line breaking right.
1900 \begin_inset Foot
1901 status collapsed
1902
1903 \begin_layout Plain Layout
1904 For more information, see 
1905 \begin_inset Flex URL
1906 status open
1907
1908 \begin_layout Plain Layout
1909
1910 http://www.tex.ac.uk/FAQ-overfull.html
1911 \end_layout
1912
1913 \end_inset
1914
1915
1916 \end_layout
1917
1918 \end_inset
1919
1920
1921 \end_layout
1922
1923 \begin_layout Standard
1924 In any case, you should check the respective lines, at least for the final
1925  version of your document.
1926  Your eyes will tell you if there's a problem with something that's too
1927  wide.
1928 \begin_inset Foot
1929 status collapsed
1930
1931 \begin_layout Plain Layout
1932 You can also enable the `draft' option in 
1933 \begin_inset Flex Noun
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 Document\SpecialChar menuseparator
1938 Settings
1939 \end_layout
1940
1941 \end_inset
1942
1943 , and then \SpecialChar LaTeX
1944  will draw a black box in the margin of lines that are overfull.
1945 \end_layout
1946
1947 \end_inset
1948
1949  
1950 \end_layout
1951
1952 \end_deeper
1953 \begin_layout Itemize
1954 \begin_inset Flex Code
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 Underfull 
1959 \backslash
1960 hbox
1961 \end_layout
1962
1963 \end_inset
1964
1965
1966 \begin_inset Newline newline
1967 \end_inset
1968
1969 Not quite as common as its cousin.
1970  This happens again if \SpecialChar LaTeX
1971  does not find a reasonable break point and consequently
1972  generates too loose lines.
1973  As with the overfull lines, you should check if this is a visible problem.
1974 \end_layout
1975
1976 \begin_layout Itemize
1977 \begin_inset Flex Code
1978 status collapsed
1979
1980 \begin_layout Plain Layout
1981 Overfull 
1982 \backslash
1983 vbox
1984 \end_layout
1985
1986 \end_inset
1987
1988  and 
1989 \begin_inset Flex Code
1990 status collapsed
1991
1992 \begin_layout Plain Layout
1993 Underfull 
1994 \backslash
1995 vbox
1996 \end_layout
1997
1998 \end_inset
1999
2000
2001 \begin_inset Newline newline
2002 \end_inset
2003
2004 Warnings about troubles breaking the page.
2005  Once again, just look at the output.
2006  Your eyes will tell you where something has gone wrong.
2007 \end_layout
2008
2009 \begin_layout Itemize
2010 \begin_inset Flex Code
2011 status collapsed
2012
2013 \begin_layout Plain Layout
2014 LaTeX Error: File 
2015 \begin_inset Quotes els
2016 \end_inset
2017
2018 Xxxx
2019 \begin_inset Quotes ers
2020 \end_inset
2021
2022  not found
2023 \end_layout
2024
2025 \end_inset
2026
2027
2028 \begin_inset Newline newline
2029 \end_inset
2030
2031 The file 
2032 \begin_inset Quotes eld
2033 \end_inset
2034
2035 Xxxx
2036 \begin_inset Quotes erd
2037 \end_inset
2038
2039  isn't installed on this system.
2040  This usually appears because some package your document needs isn't installed.
2041  If you didn't touch the preamble or didn't use the 
2042 \begin_inset Flex Code
2043 status collapsed
2044
2045 \begin_layout Plain Layout
2046
2047 \backslash
2048 usepackage{}
2049 \end_layout
2050
2051 \end_inset
2052
2053  command, then one of the packages \SpecialChar LyX
2054  tried to load is missing.
2055  Use 
2056 \begin_inset Flex Noun
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060 Help\SpecialChar menuseparator
2061 \SpecialChar LaTeX
2062  Configuration
2063 \end_layout
2064
2065 \end_inset
2066
2067  to get a list of packages that \SpecialChar LyX
2068  knows about.
2069  This file is updated whenever you reconfigure \SpecialChar LyX
2070  (using 
2071 \begin_inset Flex Noun
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 Tools\SpecialChar menuseparator
2076 Reconfigure
2077 \end_layout
2078
2079 \end_inset
2080
2081 ) and tells you which packages have been detected and what they do.
2082 \begin_inset Newline newline
2083 \end_inset
2084
2085 If you did use the 
2086 \begin_inset Flex Code
2087 status collapsed
2088
2089 \begin_layout Plain Layout
2090
2091 \backslash
2092 usepackage{}
2093 \end_layout
2094
2095 \end_inset
2096
2097  command and the package in question isn't installed, then you'll need to
2098  install it yourself.
2099 \end_layout
2100
2101 \begin_layout Itemize
2102 \begin_inset Flex Code
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 LaTeX Error: Unknown option
2107 \end_layout
2108
2109 \end_inset
2110
2111
2112 \begin_inset Newline newline
2113 \end_inset
2114
2115 Error messages beginning with this are trying to tell you that you specified
2116  a bad or undefined option to a package.
2117  Check the package's documentation.
2118 \end_layout
2119
2120 \begin_layout Itemize
2121 \begin_inset Flex Code
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 Undefined control sequence
2126 \end_layout
2127
2128 \end_inset
2129
2130
2131 \begin_inset Newline newline
2132 \end_inset
2133
2134 If you've inserted \SpecialChar LaTeX
2135  code into your document, but made a typo, you'll get
2136  one of these.
2137  You may have forgotten to load a package.
2138  In any case, this error message usually means that you used an undefined
2139  command.
2140  
2141 \end_layout
2142
2143 \begin_layout Standard
2144 There are other error and warning messages.
2145  Some are self-explanatory.
2146  These are usually \SpecialChar LaTeX
2147  messages.
2148  Others are downright cryptic.
2149  These are usually \SpecialChar TeX
2150  error messages, and we really have 
2151 \emph on
2152 no clue
2153 \emph default
2154  what they mean or how to decipher them.
2155  No-one does.
2156 \end_layout
2157
2158 \begin_layout Standard
2159 There's a general sequence you should follow if you get error messages:
2160 \end_layout
2161
2162 \begin_layout Enumerate
2163 Look at the \SpecialChar LaTeX
2164  code you inserted for typos.
2165 \end_layout
2166
2167 \begin_layout Enumerate
2168 If there are no typos, check that you used the command(s) correctly.
2169 \end_layout
2170
2171 \begin_layout Enumerate
2172 If you get a bunch of error boxes piled up at the very top of the document—and
2173  especially if you see a 
2174 \begin_inset Quotes eld
2175 \end_inset
2176
2177
2178 \begin_inset Flex Code
2179 status collapsed
2180
2181 \begin_layout Plain Layout
2182 Missing 
2183 \backslash
2184 begin{document}
2185 \end_layout
2186
2187 \end_inset
2188
2189
2190 \begin_inset Quotes erd
2191 \end_inset
2192
2193  error—it means that there are errors in the preamble.
2194  Start debugging your preamble.
2195 \end_layout
2196
2197 \begin_layout Enumerate
2198 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2199  code to the
2200  document, the first suspect is your \SpecialChar LaTeX
2201  distribution itself.
2202  Check for missing packages and install them.
2203 \end_layout
2204
2205 \begin_layout Enumerate
2206 Okay, so there are no missing packages.
2207  Did you use any of the fine-tuning options in \SpecialChar LyX
2208 ? Specifically, did you 
2209 \emph on
2210 misuse
2211 \emph default
2212  any of them, like trying to manually insert lots of 
2213 \begin_inset Flex Code
2214 status collapsed
2215
2216 \begin_layout Plain Layout
2217 Protected
2218 \begin_inset space ~
2219 \end_inset
2220
2221 Blanks
2222 \end_layout
2223
2224 \end_inset
2225
2226
2227 \begin_inset Flex Code
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 Linebreaks
2232 \end_layout
2233
2234 \end_inset
2235
2236 , or 
2237 \begin_inset Flex Code
2238 status collapsed
2239
2240 \begin_layout Plain Layout
2241 Pagebreaks
2242 \end_layout
2243
2244 \end_inset
2245
2246 ? Did you try to kludge something together with these instead of using the
2247  appropriate paragraph environment?
2248 \end_layout
2249
2250 \begin_layout Enumerate
2251 All right, you didn't use any of the fine-tuning options, you played by
2252  the rules.
2253  Did you try to pull a fancy maneuver? Did you do something funky inside
2254  a table or an equation, like inserting a graphic into a table cell?
2255 \end_layout
2256
2257 \begin_layout Enumerate
2258 Do you have long sections of text where \SpecialChar LaTeX
2259  cannot find a place to break a
2260  line? By default, \SpecialChar LaTeX
2261  is rather strict about how much extra inter-word spacing
2262  it will add in order to break a line.
2263  Preferably, you should rework the paragraph to avoid the problem.
2264 \end_layout
2265
2266 \begin_layout Enumerate
2267 Did you go overboard with the nesting? \SpecialChar LyX
2268  (currently) doesn't check to make
2269  sure you're in the limits for nesting environments.
2270  If you nested a bunch of environments to the 
2271 \begin_inset Formula $17^{\mathrm{th}}$
2272 \end_inset
2273
2274  level, that's the problem.
2275  (The limit in \SpecialChar LaTeX
2276  is five.)
2277 \end_layout
2278
2279 \begin_layout Enumerate
2280 Okay, you didn't get any error messages, but your output looks awful.
2281  If you have a table or figure that's too wide or long for the page, you
2282  need to:
2283 \end_layout
2284
2285 \begin_deeper
2286 \begin_layout Enumerate
2287 rescale the figure so it fits.
2288 \end_layout
2289
2290 \begin_layout Enumerate
2291 trim down the table so it fits.
2292 \end_layout
2293
2294 \end_deeper
2295 \begin_layout Enumerate
2296 If something else is wrong with the output, and you didn't try to pull anything
2297  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2298 \end_layout
2299
2300 \begin_layout Standard
2301 If all this doesn't help—well, then 
2302 \emph on
2303 perhaps
2304 \emph default
2305  you might have found a bug in \SpecialChar LyX
2306 \SpecialChar ldots
2307 .
2308 \end_layout
2309
2310 \begin_layout Chapter
2311 Supplemental Tools
2312 \end_layout
2313
2314 \begin_layout Section
2315 Customizing Bibliographies with Bib\SpecialChar TeX
2316  or Biblatex
2317 \end_layout
2318
2319 \begin_layout Standard
2320 The most basic information about how to use Bib\SpecialChar TeX
2321  or 
2322 \family sans
2323 Biblatex
2324 \family default
2325  with \SpecialChar LyX
2326  is contained in the section 
2327 \emph on
2328 Bibliography databases
2329 \emph default
2330  of the 
2331 \emph on
2332 User's Guide
2333 \emph default
2334 .
2335  The following subsections explain special bibliography features supported
2336  by \SpecialChar LyX
2337 .
2338 \end_layout
2339
2340 \begin_layout Subsection
2341 Alternative Citation Styles
2342 \end_layout
2343
2344 \begin_layout Standard
2345 Standard Bib\SpecialChar TeX
2346  uses numbers (e.
2347 \begin_inset space \thinspace{}
2348 \end_inset
2349
2350 g.
2351 \begin_inset space \space{}
2352 \end_inset
2353
2354
2355 \begin_inset Quotes eld
2356 \end_inset
2357
2358 [12]
2359 \begin_inset Quotes erd
2360 \end_inset
2361
2362 ) to refer to a cited work.
2363  However, in many scientific disciplines, other citation styles are in use.
2364  The most common one is the author-year style (e.
2365 \begin_inset space \thinspace{}
2366 \end_inset
2367
2368 g.
2369 \begin_inset space \space{}
2370 \end_inset
2371
2372
2373 \begin_inset Quotes eld
2374 \end_inset
2375
2376 Knuth 1984a
2377 \begin_inset Quotes erd
2378 \end_inset
2379
2380 ).
2381  \SpecialChar LyX
2382  supports three packages that provide this style, 
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 biblatex
2388 \end_layout
2389
2390 \end_inset
2391
2392
2393 \begin_inset Flex Code
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 natbib
2398 \end_layout
2399
2400 \end_inset
2401
2402 , and 
2403 \begin_inset Flex Code
2404 status collapsed
2405
2406 \begin_layout Plain Layout
2407 jurabib
2408 \end_layout
2409
2410 \end_inset
2411
2412 .
2413  Each of these packages has their pros and cons, which cannot be listed
2414  in detail.
2415  If you only want to have simple author-year (or author-numerical) style,
2416  or if you want to use one of the countless style files for 
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421 natbib
2422 \end_layout
2423
2424 \end_inset
2425
2426 , then the established 
2427 \begin_inset Flex Code
2428 status collapsed
2429
2430 \begin_layout Plain Layout
2431 natbib
2432 \end_layout
2433
2434 \end_inset
2435
2436  package is probably your choice.
2437  If you look for specific citation styles common in law studies, you might
2438  consider the 
2439 \begin_inset Flex Code
2440 status collapsed
2441
2442 \begin_layout Plain Layout
2443 jurabib
2444 \end_layout
2445
2446 \end_inset
2447
2448  package.
2449  If you want to have full control over the formatting or look for advanced
2450  features such as ibidem, footnote citations, full title citations, advanced
2451  date formats (such as 400 BC) or full localization to other languages than
2452  English, you should definitely consider 
2453 \begin_inset Flex Code
2454 status collapsed
2455
2456 \begin_layout Plain Layout
2457 biblatex
2458 \end_layout
2459
2460 \end_inset
2461
2462 , which exceeds all other packages in terms of features, but is also quite
2463  heavy and more resource-hungry.
2464 \end_layout
2465
2466 \begin_layout Standard
2467 The handling of these packages in \SpecialChar LyX
2468  is basically the same.
2469  Go to 
2470 \begin_inset Flex Noun
2471 status collapsed
2472
2473 \begin_layout Plain Layout
2474 Document\SpecialChar menuseparator
2475 Settings
2476 \end_layout
2477
2478 \end_inset
2479
2480  and select under 
2481 \begin_inset Flex Noun
2482 status collapsed
2483
2484 \begin_layout Plain Layout
2485 Bibliography
2486 \end_layout
2487
2488 \end_inset
2489
2490  the 
2491 \begin_inset Flex Noun
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Style Format
2496 \end_layout
2497
2498 \end_inset
2499
2500  
2501 \begin_inset Flex Noun
2502 status collapsed
2503
2504 \begin_layout Plain Layout
2505 Basic (BibTeX)
2506 \end_layout
2507
2508 \end_inset
2509
2510
2511 \begin_inset Flex Noun
2512 status collapsed
2513
2514 \begin_layout Plain Layout
2515 Biblatex
2516 \end_layout
2517
2518 \end_inset
2519
2520
2521 \begin_inset Flex Noun
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 Biblatex (Natbib mode)
2526 \end_layout
2527
2528 \end_inset
2529
2530
2531 \begin_inset Flex Noun
2532 status collapsed
2533
2534 \begin_layout Plain Layout
2535 Natbib (BibTeX)
2536 \end_layout
2537
2538 \end_inset
2539
2540  or 
2541 \begin_inset Flex Noun
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545 Jurabib (BibTeX)
2546 \end_layout
2547
2548 \end_inset
2549
2550  (see sec.
2551 \begin_inset space ~
2552 \end_inset
2553
2554 6.5.3 in the User's Guide for more information on these choices).
2555  With all these packages, you will get some extra features in the citation
2556  dialog and you can select the style of the reference (
2557 \begin_inset Quotes eld
2558 \end_inset
2559
2560 Knuth 1984
2561 \begin_inset Quotes erd
2562 \end_inset
2563
2564
2565 \begin_inset Quotes eld
2566 \end_inset
2567
2568 Knuth (1984)
2569 \begin_inset Quotes erd
2570 \end_inset
2571
2572
2573 \begin_inset Quotes eld
2574 \end_inset
2575
2576 Knuth, 1984
2577 \begin_inset Quotes erd
2578 \end_inset
2579
2580
2581 \begin_inset Quotes eld
2582 \end_inset
2583
2584 1984
2585 \begin_inset Quotes erd
2586 \end_inset
2587
2588  etc.).
2589  Note that either package needs specifically designed style files.
2590  They all ship their own, but there are lots of additional style files,
2591  and there is even an interactive style file builder
2592 \begin_inset Foot
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 See 
2597 \begin_inset Flex URL
2598 status open
2599
2600 \begin_layout Plain Layout
2601
2602 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2603 \end_layout
2604
2605 \end_inset
2606
2607
2608 \end_layout
2609
2610 \end_inset
2611
2612  for 
2613 \begin_inset Flex Code
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617 natbib
2618 \end_layout
2619
2620 \end_inset
2621
2622 .
2623 \end_layout
2624
2625 \begin_layout Subsection
2626 Subdivided Bibliographies
2627 \end_layout
2628
2629 \begin_layout Standard
2630 Sometimes you might need to divide your bibliography into several sections.
2631  If you are for instance a historian, the possibility to separate sources
2632  and scientific works is most likely a 
2633 \begin_inset Quotes eld
2634 \end_inset
2635
2636 must have
2637 \begin_inset Quotes erd
2638 \end_inset
2639
2640 .
2641  Unfortunately, Bib\SpecialChar TeX
2642  itself does not allow you to do this.
2643  But with the help of some \SpecialChar LaTeX
2644  packages, Bib\SpecialChar TeX
2645  can be extended to fit your needs.
2646 \end_layout
2647
2648 \begin_layout Standard
2649 \SpecialChar LyX
2650  provides native support for one of these packages, 
2651 \family typewriter
2652 bibtopic
2653 \family default
2654 .
2655 \begin_inset Foot
2656 status collapsed
2657
2658 \begin_layout Plain Layout
2659 Available from 
2660 \begin_inset Flex URL
2661 status open
2662
2663 \begin_layout Plain Layout
2664
2665 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2666 \end_layout
2667
2668 \end_inset
2669
2670
2671 \end_layout
2672
2673 \end_inset
2674
2675  The advantage of this package (compared to other packages such as 
2676 \family typewriter
2677 multibib
2678 \family default
2679 ) is that you don't need to define new citation commands.
2680  Instead, you need to prepare different bibliographic databases which include
2681  the entries for the different sections of the bibliography.
2682  For example: If you want to divide your bibliography into the sections
2683  
2684 \begin_inset Quotes eld
2685 \end_inset
2686
2687 Sources
2688 \begin_inset Quotes erd
2689 \end_inset
2690
2691  and 
2692 \begin_inset Quotes eld
2693 \end_inset
2694
2695 Scientific works
2696 \begin_inset Quotes erd
2697 \end_inset
2698
2699 , you first need to create two bibliographic databases, e.
2700 \begin_inset space \thinspace{}
2701 \end_inset
2702
2703 g.
2704 \begin_inset space \space{}
2705 \end_inset
2706
2707
2708 \begin_inset Flex Code
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712 sources.bib
2713 \end_layout
2714
2715 \end_inset
2716
2717  and 
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 scientific.bib
2723 \end_layout
2724
2725 \end_inset
2726
2727 .
2728  
2729 \end_layout
2730
2731 \begin_layout Standard
2732 Go to 
2733 \begin_inset Flex Noun
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 Document\SpecialChar menuseparator
2738 Settings
2739 \end_layout
2740
2741 \end_inset
2742
2743  and check under 
2744 \begin_inset Flex Noun
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 Bibliography
2749 \end_layout
2750
2751 \end_inset
2752
2753  the option 
2754 \begin_inset Flex Noun
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 Subdivided bibliography
2759 \end_layout
2760
2761 \end_inset
2762
2763 .
2764  Now you can insert multiple Bib\SpecialChar TeX
2765  bibliographies, one for each section of
2766  your bibliography.
2767  Returning to our example: Insert the Bib\SpecialChar TeX
2768  bibliography 
2769 \begin_inset Flex Code
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 sources.bib
2774 \end_layout
2775
2776 \end_inset
2777
2778  and a second one for the database 
2779 \begin_inset Flex Code
2780 status collapsed
2781
2782 \begin_layout Plain Layout
2783 scientific.bib
2784 \end_layout
2785
2786 \end_inset
2787
2788 .
2789  You are free to use the same or different styles for each section.
2790  Additionally, you can choose if the bibliography section should contain
2791  
2792 \begin_inset Quotes eld
2793 \end_inset
2794
2795 all cited references
2796 \begin_inset Quotes erd
2797 \end_inset
2798
2799  of the specified database(s) (which is the default), 
2800 \begin_inset Quotes eld
2801 \end_inset
2802
2803 all uncited references
2804 \begin_inset Quotes erd
2805 \end_inset
2806
2807  or even 
2808 \begin_inset Quotes eld
2809 \end_inset
2810
2811 all references
2812 \begin_inset Quotes erd
2813 \end_inset
2814
2815 .
2816  This might be useful if you would like to separate your bibliography into
2817  three sections: 
2818 \begin_inset Quotes eld
2819 \end_inset
2820
2821 Cited sources
2822 \begin_inset Quotes erd
2823 \end_inset
2824
2825
2826 \begin_inset Quotes eld
2827 \end_inset
2828
2829 Uncited sources
2830 \begin_inset Quotes erd
2831 \end_inset
2832
2833 , and 
2834 \begin_inset Quotes eld
2835 \end_inset
2836
2837 Scientific works
2838 \begin_inset Quotes erd
2839 \end_inset
2840
2841 .
2842  The titles for the sections can be added as ordinary sections or subsections.
2843  Since 
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 bibtopic
2849 \end_layout
2850
2851 \end_inset
2852
2853  removes the bibliography title, you have to manually re-add that, too (as
2854  a chapter* or section*, for instance).
2855 \end_layout
2856
2857 \begin_layout Standard
2858 With 
2859 \family sans
2860 Biblatex
2861 \family default
2862 , the procedure is a bit different.
2863  Since 
2864 \family typewriter
2865 bibtopic
2866 \family default
2867  does not work with 
2868 \family sans
2869 Biblatex
2870 \family default
2871 , the aforementioned 
2872 \begin_inset Flex Noun
2873 status collapsed
2874
2875 \begin_layout Plain Layout
2876 Subdivided bibliography
2877 \end_layout
2878
2879 \end_inset
2880
2881  option is disabled if you use 
2882 \family sans
2883 Biblatex
2884 \family default
2885 .
2886  However, 
2887 \family sans
2888 Biblatex
2889 \family default
2890  provides its own means to generate subdivided bibliographies.
2891  You can either add keywords to bibliography entries via the 
2892 \begin_inset Flex Code
2893 status collapsed
2894
2895 \begin_layout Plain Layout
2896 keywords
2897 \end_layout
2898
2899 \end_inset
2900
2901  entry option and then filter bibliography sections by keyword (by adding
2902  
2903 \begin_inset Flex Code
2904 status collapsed
2905
2906 \begin_layout Plain Layout
2907 keyword=mykeyword
2908 \end_layout
2909
2910 \end_inset
2911
2912  to the 
2913 \begin_inset Flex Noun
2914 status collapsed
2915
2916 \begin_layout Plain Layout
2917 Options
2918 \end_layout
2919
2920 \end_inset
2921
2922  field of the dialog that opens if you left-click on the 
2923 \begin_inset Flex Noun
2924 status collapsed
2925
2926 \begin_layout Plain Layout
2927 Biblatex Generated Bibliography
2928 \end_layout
2929
2930 \end_inset
2931
2932  button), or you can filter by entry types (such as 
2933 \emph on
2934 book
2935 \emph default
2936  or 
2937 \emph on
2938 article
2939 \emph default
2940 ) by entering e.
2941 \begin_inset space \thinspace{}
2942 \end_inset
2943
2944 g.
2945  
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 type=book
2951 \end_layout
2952
2953 \end_inset
2954
2955  or 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 nottype=collection
2961 \end_layout
2962
2963 \end_inset
2964
2965  to the mentioned 
2966 \begin_inset Flex Noun
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 Options
2971 \end_layout
2972
2973 \end_inset
2974
2975  field, or you can create so-called 
2976 \begin_inset Quotes eld
2977 \end_inset
2978
2979 Bibliography Categories
2980 \begin_inset Quotes erd
2981 \end_inset
2982
2983  to which you can assign individual entries.
2984  Please refer to the Biblatex manual, section 
2985 \emph on
2986 Subdivided Bibliographies
2987 \emph default
2988 , for details.
2989 \end_layout
2990
2991 \begin_layout Subsection
2992 Multiple Bibliographies
2993 \begin_inset CommandInset label
2994 LatexCommand label
2995 name "subsec:Multiple-Bibliographies"
2996
2997 \end_inset
2998
2999
3000 \end_layout
3001
3002 \begin_layout Standard
3003 Multiple bibliographies, e.
3004 \begin_inset space \thinspace{}
3005 \end_inset
3006
3007 g.
3008 \begin_inset space \space{}
3009 \end_inset
3010
3011 a bibliography for each part, chapter, section, subsection or child (sub-documen
3012 t) of the document, are also supported by \SpecialChar LyX
3013 .
3014  In order to enable it, go to 
3015 \begin_inset Flex Noun
3016 status collapsed
3017
3018 \begin_layout Plain Layout
3019 Document\SpecialChar menuseparator
3020 Settings\SpecialChar menuseparator
3021 Bibliography
3022 \end_layout
3023
3024 \end_inset
3025
3026  and select the relevant unit (e.
3027 \begin_inset space \thinspace{}
3028 \end_inset
3029
3030 g., 
3031 \begin_inset Quotes eld
3032 \end_inset
3033
3034 per section
3035 \begin_inset Quotes erd
3036 \end_inset
3037
3038 ) in the 
3039 \begin_inset Flex Noun
3040 status collapsed
3041
3042 \begin_layout Plain Layout
3043 Multiple Bibliographies
3044 \end_layout
3045
3046 \end_inset
3047
3048  combo box.
3049  Then add a Bib(la)\SpecialChar TeX
3050  bibliography to each unit (e.
3051 \begin_inset space \thinspace{}
3052 \end_inset
3053
3054 g., section) of your document.
3055  In the output, a separate bibliography, containing only the references
3056  done in the current unit is generated.
3057 \end_layout
3058
3059 \begin_layout Standard
3060 If you use Bib\SpecialChar TeX
3061 , either the 
3062 \begin_inset Flex Code
3063 status collapsed
3064
3065 \begin_layout Plain Layout
3066 chapterbib
3067 \end_layout
3068
3069 \end_inset
3070
3071  or the 
3072 \begin_inset Flex Code
3073 status collapsed
3074
3075 \begin_layout Plain Layout
3076 bibtopic
3077 \end_layout
3078
3079 \end_inset
3080
3081  package is used to create multiple bibliographies.
3082  The former package is used if you select 
3083 \begin_inset Quotes eld
3084 \end_inset
3085
3086 per child document
3087 \begin_inset Quotes erd
3088 \end_inset
3089
3090  and do 
3091 \emph on
3092 not
3093 \emph default
3094  check 
3095 \begin_inset Flex Noun
3096 status collapsed
3097
3098 \begin_layout Plain Layout
3099 Sectioned Bibliography
3100 \end_layout
3101
3102 \end_inset
3103
3104 .
3105  In all other cases, 
3106 \begin_inset Flex Code
3107 status collapsed
3108
3109 \begin_layout Plain Layout
3110 bibtopic
3111 \end_layout
3112
3113 \end_inset
3114
3115  is used.
3116 \begin_inset Foot
3117 status collapsed
3118
3119 \begin_layout Plain Layout
3120 An alternative approach, if you are willing to use some 
3121 \begin_inset Flex Noun
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 \SpecialChar TeX
3126  Code
3127 \end_layout
3128
3129 \end_inset
3130
3131  (see section
3132 \begin_inset space ~
3133 \end_inset
3134
3135
3136 \begin_inset CommandInset ref
3137 LatexCommand ref
3138 reference "sec:Inserting-TeX-Code"
3139
3140 \end_inset
3141
3142 ), is to use the 
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 bibunits
3148 \end_layout
3149
3150 \end_inset
3151
3152  package.
3153 \end_layout
3154
3155 \end_inset
3156
3157  If 
3158 \begin_inset Flex Code
3159 status collapsed
3160
3161 \begin_layout Plain Layout
3162 bibtopic
3163 \end_layout
3164
3165 \end_inset
3166
3167  is used, \SpecialChar LyX
3168  encloses the specified units in 
3169 \begin_inset Flex Code
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173 bibtopic
3174 \end_layout
3175
3176 \end_inset
3177
3178 's 
3179 \begin_inset Flex Code
3180 status collapsed
3181
3182 \begin_layout Plain Layout
3183
3184 \backslash
3185 begin{btUnit}
3186 \end_layout
3187
3188 \end_inset
3189
3190  and 
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195
3196 \backslash
3197 end{btUnit}
3198 \end_layout
3199
3200 \end_inset
3201
3202  in order to create the units.
3203  Note that this approach has some limitations.
3204  First, every citation reference has to be inside some 
3205 \begin_inset Flex Code
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209 btUnit
3210 \end_layout
3211
3212 \end_inset
3213
3214 .
3215  So citations outside a defined unit (e.
3216 \begin_inset space \thinspace{}
3217 \end_inset
3218
3219 g., before the first section if you use 
3220 \begin_inset Quotes eld
3221 \end_inset
3222
3223 by section
3224 \begin_inset Quotes erd
3225 \end_inset
3226
3227 ) will appear as 
3228 \begin_inset Quotes eld
3229 \end_inset
3230
3231 ???
3232 \begin_inset Quotes erd
3233 \end_inset
3234
3235 .
3236  You can also create your own units by entering 
3237 \begin_inset Flex Code
3238 status collapsed
3239
3240 \begin_layout Plain Layout
3241
3242 \backslash
3243 begin{btUnit}
3244 \end_layout
3245
3246 \end_inset
3247
3248  and 
3249 \begin_inset Flex Code
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253
3254 \backslash
3255 end{btUnit}
3256 \end_layout
3257
3258 \end_inset
3259
3260  as \SpecialChar TeX
3261  code (for instance to work around the mentioned limitation).
3262  Note, though, that 
3263 \begin_inset Flex Code
3264 status collapsed
3265
3266 \begin_layout Plain Layout
3267 btUnit
3268 \end_layout
3269
3270 \end_inset
3271
3272 s cannot be nested.
3273  A second limitation is that 
3274 \begin_inset Flex Code
3275 status collapsed
3276
3277 \begin_layout Plain Layout
3278 bibtopic
3279 \end_layout
3280
3281 \end_inset
3282
3283  always processes all references of a bibliography database, even if they
3284  are not cited.
3285  This can result in odd labels (e.
3286 \begin_inset space \thinspace{}
3287 \end_inset
3288
3289 g.
3290  
3291 \begin_inset Quotes eld
3292 \end_inset
3293
3294 Miller 2014b
3295 \begin_inset Quotes erd
3296 \end_inset
3297
3298  if two works of this author from 2014 are in the database, even if only
3299  one is cited).
3300 \end_layout
3301
3302 \begin_layout Standard
3303 If you use 
3304 \family sans
3305 Biblatex
3306 \family default
3307 , the 
3308 \begin_inset Flex Code
3309 status collapsed
3310
3311 \begin_layout Plain Layout
3312 refsection
3313 \end_layout
3314
3315 \end_inset
3316
3317  option is used instead.
3318  If you need specific units, you can start them with the \SpecialChar TeX
3319  code 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324
3325 \backslash
3326 newrefsection
3327 \end_layout
3328
3329 \end_inset
3330
3331  or 
3332 \begin_inset Flex Code
3333 status collapsed
3334
3335 \begin_layout Plain Layout
3336
3337 \backslash
3338 newrefsegment
3339 \end_layout
3340
3341 \end_inset
3342
3343 , respectively.
3344  If you also want to control the end of the unit, use the environment 
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349
3350 \backslash
3351 begin{refsection}
3352 \end_layout
3353
3354 \end_inset
3355
3356  \SpecialChar ldots
3357  
3358 \begin_inset Flex Code
3359 status collapsed
3360
3361 \begin_layout Plain Layout
3362
3363 \backslash
3364 end{refsection}
3365 \end_layout
3366
3367 \end_inset
3368
3369  instead.
3370  Note, though, that 
3371 \begin_inset Flex Code
3372 status collapsed
3373
3374 \begin_layout Plain Layout
3375 refsection
3376 \end_layout
3377
3378 \end_inset
3379
3380 s cannot be nested.
3381  In addition to the individual bibliography of the current unit, 
3382 \family sans
3383 Biblatex
3384 \family default
3385  also provides an easy way to output all bibliographies, subsequently, at
3386  one place (e.
3387 \begin_inset space \thinspace{}
3388 \end_inset
3389
3390 g., at the end of the document).
3391  Select 
3392 \begin_inset Quotes eld
3393 \end_inset
3394
3395 all reference units
3396 \begin_inset Quotes erd
3397 \end_inset
3398
3399  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3400  this.
3401  Please refer to the 
3402 \family sans
3403 Biblatex
3404 \family default
3405  manual for more information on this topic.
3406 \end_layout
3407
3408 \begin_layout Section
3409 Multipart Documents
3410 \end_layout
3411
3412 \begin_layout Subsection
3413 General Operation
3414 \end_layout
3415
3416 \begin_layout Standard
3417 When you are working on a large file with many sections, it is often convenient
3418  to break up the document into several files, or perhaps you have something
3419  where a table may change from time to time, but the preceding text does
3420  not.
3421  In these cases, you should seriously consider using multipart documents.
3422  For example, scientific papers often have five major sections: the introduction
3423 , observations, results, discussion, and conclusion.
3424  Each of these could be its own separate \SpecialChar LyX
3425  file, with one 
3426 \begin_inset Quotes eld
3427 \end_inset
3428
3429 master
3430 \begin_inset Quotes erd
3431 \end_inset
3432
3433  file which contains the title, authors, abstract, references, etc., plus
3434  the five included files.
3435  It is important to note that each of these files is a full \SpecialChar LyX
3436  file which
3437  can be formatted and printed on its own, as well as included in a master
3438  file.
3439  Each of these files must have the same document class, however—don't attempt
3440  to mix book classes with article classes.
3441  You may also include \SpecialChar LaTeX
3442  files; however, these files must not have their own
3443  preamble (i.
3444 \begin_inset space \thinspace{}
3445 \end_inset
3446
3447 e.
3448 \begin_inset space \space{}
3449 \end_inset
3450
3451 everything up to and including the 
3452 \begin_inset Flex Code
3453 status collapsed
3454
3455 \begin_layout Plain Layout
3456
3457 \backslash
3458 begin{document}
3459 \end_layout
3460
3461 \end_inset
3462
3463  line as well as the 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468
3469 \backslash
3470 end{document}
3471 \end_layout
3472
3473 \end_inset
3474
3475  line must be deleted) or else errors will be generated when you try to
3476  make a DVI file.
3477 \end_layout
3478
3479 \begin_layout Standard
3480 \SpecialChar LyX
3481  allows you to include files quite easily with 
3482 \begin_inset Flex Noun
3483 status collapsed
3484
3485 \begin_layout Plain Layout
3486 Insert\SpecialChar menuseparator
3487 Child
3488 \begin_inset space ~
3489 \end_inset
3490
3491 Document
3492 \end_layout
3493
3494 \end_inset
3495
3496 .
3497  When you click on this selection a small box is inserted into the file
3498  at the current cursor location.
3499  Clicking on the box raises a dialog which allows you to select the file
3500  to be included, and the method of its inclusion.
3501  
3502 \end_layout
3503
3504 \begin_layout Standard
3505 The file selection box should by now be obvious.
3506  The three inclusion methods are 
3507 \begin_inset Quotes eld
3508 \end_inset
3509
3510 include
3511 \begin_inset Quotes erd
3512 \end_inset
3513
3514
3515 \begin_inset Quotes eld
3516 \end_inset
3517
3518 input
3519 \begin_inset Quotes erd
3520 \end_inset
3521
3522 , and 
3523 \begin_inset Quotes eld
3524 \end_inset
3525
3526 verbatim
3527 \begin_inset Quotes erd
3528 \end_inset
3529
3530 .
3531  The methods 
3532 \begin_inset Quotes eld
3533 \end_inset
3534
3535 include
3536 \begin_inset Quotes erd
3537 \end_inset
3538
3539  and 
3540 \begin_inset Quotes eld
3541 \end_inset
3542
3543 input
3544 \begin_inset Quotes erd
3545 \end_inset
3546
3547  are similar in many ways, but there are also some notable differences:
3548 \end_layout
3549
3550 \begin_layout Enumerate
3551 Files that are 
3552 \begin_inset Quotes eld
3553 \end_inset
3554
3555 included
3556 \begin_inset Quotes erd
3557 \end_inset
3558
3559  are typeset beginning on a new page, while files that are 
3560 \begin_inset Quotes eld
3561 \end_inset
3562
3563 inputted
3564 \begin_inset Quotes erd
3565 \end_inset
3566
3567  are typeset starting on the current page.
3568 \end_layout
3569
3570 \begin_layout Enumerate
3571 \begin_inset Quotes eld
3572 \end_inset
3573
3574 Included
3575 \begin_inset Quotes erd
3576 \end_inset
3577
3578  files cannot themselves 
3579 \begin_inset Quotes eld
3580 \end_inset
3581
3582 include
3583 \begin_inset Quotes erd
3584 \end_inset
3585
3586  further files (
3587 \begin_inset Quotes eld
3588 \end_inset
3589
3590 grandchilds
3591 \begin_inset Quotes erd
3592 \end_inset
3593
3594 ).
3595  With 
3596 \begin_inset Quotes eld
3597 \end_inset
3598
3599 input
3600 \begin_inset Quotes erd
3601 \end_inset
3602
3603 , on the other hand, infinite sub-inputting is possible.
3604 \end_layout
3605
3606 \begin_layout Enumerate
3607 \begin_inset Quotes eld
3608 \end_inset
3609
3610 Include
3611 \begin_inset Quotes erd
3612 \end_inset
3613
3614  allow for the output of only selected 
3615 \begin_inset Quotes eld
3616 \end_inset
3617
3618 included
3619 \begin_inset Quotes erd
3620 \end_inset
3621
3622  files, while maintaining the actual counters (pagination etc.) and references
3623  (please refer to the section 
3624 \emph on
3625 Child
3626 \begin_inset space ~
3627 \end_inset
3628
3629 Documents
3630 \emph default
3631  of the 
3632 \emph on
3633 Embedded
3634 \begin_inset space ~
3635 \end_inset
3636
3637 Objects
3638 \emph default
3639  manual for details).
3640 \end_layout
3641
3642 \begin_layout Standard
3643 Hence, 
3644 \begin_inset Quotes eld
3645 \end_inset
3646
3647 include
3648 \begin_inset Quotes erd
3649 \end_inset
3650
3651  is the preferred method for chapters that are outsourced to child documents,
3652  while 
3653 \begin_inset Quotes eld
3654 \end_inset
3655
3656 input
3657 \begin_inset Quotes erd
3658 \end_inset
3659
3660  is more suitable for arbitrary file inheritance.
3661 \end_layout
3662
3663 \begin_layout Standard
3664
3665 \begin_inset Quotes eld
3666 \end_inset
3667
3668 verbatim
3669 \begin_inset Quotes erd
3670 \end_inset
3671
3672  included file allows you to include a file typeset exactly as it appears
3673  in the file, i.
3674 \begin_inset space \thinspace{}
3675 \end_inset
3676
3677 e.
3678 \begin_inset space \space{}
3679 \end_inset
3680
3681 in 
3682 \begin_inset Flex Code
3683 status collapsed
3684
3685 \begin_layout Plain Layout
3686 verbatim
3687 \end_layout
3688
3689 \end_inset
3690
3691  mode, with the characters set in a fixed-width typewriter font.
3692  Normally, spaces in this file are invisible, though two consecutive spaces
3693  are conserved, unlike \SpecialChar LyX
3694 's normal treatment of spaces.
3695  However, setting the 
3696 \begin_inset Flex Noun
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700 Mark
3701 \begin_inset space ~
3702 \end_inset
3703
3704 spaces
3705 \begin_inset space ~
3706 \end_inset
3707
3708 in
3709 \begin_inset space ~
3710 \end_inset
3711
3712 output
3713 \end_layout
3714
3715 \end_inset
3716
3717  checkbox typesets a mark to unambiguously define the presence of a space.
3718  
3719 \end_layout
3720
3721 \begin_layout Standard
3722 Generally, the master file is converted into a full \SpecialChar LaTeX
3723  file before typesetting,
3724  while the included files are converted to \SpecialChar LaTeX
3725  files that do not have all the
3726  preamble information.
3727 \end_layout
3728
3729 \begin_layout Subsection
3730 Cross-References Between Files
3731 \end_layout
3732
3733 \begin_layout Standard
3734 \begin_inset Box Shadowbox
3735 position "t"
3736 hor_pos "c"
3737 has_inner_box 1
3738 inner_pos "t"
3739 use_parbox 0
3740 use_makebox 0
3741 width "100col%"
3742 special "none"
3743 height "1in"
3744 height_special "totalheight"
3745 thickness "0.4pt"
3746 separation "3pt"
3747 shadowsize "4pt"
3748 framecolor "black"
3749 backgroundcolor "none"
3750 status open
3751
3752 \begin_layout Plain Layout
3753 This section is somewhat out of date.
3754  Need to describe default master documents and how children are opened when
3755  the master is.
3756  [[FIXME]]
3757 \end_layout
3758
3759 \end_inset
3760
3761
3762 \end_layout
3763
3764 \begin_layout Standard
3765 It is possible to set up cross-references between the different files.
3766  First, open all the files in question: let's call them A and B in a two
3767  file example, where B is included in A.
3768  Let's say you insert a label in A, then want to reference it in B.
3769  Open the cross-reference dialog whilst in document B, and you can select
3770  the 
3771 \begin_inset Quotes eld
3772 \end_inset
3773
3774 buffer
3775 \begin_inset Quotes erd
3776 \end_inset
3777
3778  to use.
3779 \end_layout
3780
3781 \begin_layout Subsection
3782 Bibliography Lists in all Subdocuments
3783 \end_layout
3784
3785 \begin_layout Standard
3786 If you work with child documents, you might want to have only one main bibliogra
3787 phy at the end, but still be able to have a selected bibliography for the
3788  child if you output it on its own.
3789  Here is how to achieve this.
3790 \end_layout
3791
3792 \begin_layout Standard
3793 For the main document, you just insert a bibliography inset at the place
3794  where the main bibliography has to appear (within the master file or within
3795  a child).
3796  If the bibliography inset is in the master file, the references will be
3797  inherited by all children, so they are available in the citation dialog
3798  within each child.
3799 \end_layout
3800
3801 \begin_layout Standard
3802 For child-specific bibliographies, insert bibliography insets within the
3803  child documents, at the place where the bibliography should appear when
3804  the child is compiled separately.
3805  However, the trick is to insert them into a branch (
3806 \family sans
3807 Insert\SpecialChar menuseparator
3808 Branch\SpecialChar menuseparator
3809 Insert New Branch...
3810 \family default
3811 ), e.
3812 \begin_inset space \thinspace{}
3813 \end_inset
3814
3815 g.
3816  called 
3817 \begin_inset Quotes eld
3818 \end_inset
3819
3820 Childonly
3821 \begin_inset Quotes erd
3822 \end_inset
3823
3824 .
3825  Within the children, activate the branch (
3826 \family sans
3827 Document\SpecialChar menuseparator
3828 Settings...\SpecialChar menuseparator
3829 Branches
3830 \family default
3831 ).
3832  Within the master, deactivate the branch (
3833 \family sans
3834 Document\SpecialChar menuseparator
3835 Settings...\SpecialChar menuseparator
3836 Branches
3837 \family default
3838 ).
3839  Now the child's bibliography will be ignored by the master, but considered
3840  by the child.
3841 \end_layout
3842
3843 \begin_layout Standard
3844 If you need multiple bibliographies (e.
3845 \begin_inset space \thinspace{}
3846 \end_inset
3847
3848 g., one per child in the 
3849 \emph on
3850 main document
3851 \emph default
3852 ), please refer to sec.
3853 \begin_inset space ~
3854 \end_inset
3855
3856
3857 \begin_inset CommandInset ref
3858 LatexCommand ref
3859 reference "subsec:Multiple-Bibliographies"
3860
3861 \end_inset
3862
3863 .
3864 \end_layout
3865
3866 \begin_layout Section
3867 \SpecialChar LyX
3868  Archives
3869 \end_layout
3870
3871 \begin_layout Standard
3872 Users sometimes need to be able to 
3873 \begin_inset Quotes eld
3874 \end_inset
3875
3876 bundle
3877 \begin_inset Quotes erd
3878 \end_inset
3879
3880  a \SpecialChar LyX
3881  file together with all the images (and other files) on which it depends,
3882  either for sending to a publisher or for sharing with a co-author.
3883  \SpecialChar LyX
3884  includes a Python script (
3885 \begin_inset Flex Code
3886 status collapsed
3887
3888 \begin_layout Plain Layout
3889 lyxpak.py
3890 \end_layout
3891
3892 \end_inset
3893
3894 ) that automates this process.
3895  To use it, you must have either the 
3896 \begin_inset Flex Code
3897 status collapsed
3898
3899 \begin_layout Plain Layout
3900 zipfile
3901 \end_layout
3902
3903 \end_inset
3904
3905  or 
3906 \begin_inset Flex Code
3907 status collapsed
3908
3909 \begin_layout Plain Layout
3910 tarfile
3911 \end_layout
3912
3913 \end_inset
3914
3915  python modules installed on your system.
3916  By default, the script prefers the 
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 gzip
3922 \end_layout
3923
3924 \end_inset
3925
3926 -compressed 
3927 \begin_inset Flex Code
3928 status collapsed
3929
3930 \begin_layout Plain Layout
3931 tar
3932 \end_layout
3933
3934 \end_inset
3935
3936  format on Unix-like systems and the 
3937 \begin_inset Flex Code
3938 status collapsed
3939
3940 \begin_layout Plain Layout
3941 zip
3942 \end_layout
3943
3944 \end_inset
3945
3946  format on Windows.
3947 \end_layout
3948
3949 \begin_layout Standard
3950 \SpecialChar LyX
3951 's configuration process will set the script up to export a `\SpecialChar LyX
3952  Archive',
3953  and this format will then be available under 
3954 \begin_inset Flex Code
3955 status collapsed
3956
3957 \begin_layout Plain Layout
3958 File\SpecialChar menuseparator
3959 Export
3960 \end_layout
3961
3962 \end_inset
3963
3964 .
3965 \end_layout
3966
3967 \begin_layout Standard
3968 Independently of the platform, the generation of a particular archive format
3969  can be forced by adding either the 
3970 \begin_inset Flex Code
3971 status collapsed
3972
3973 \begin_layout Plain Layout
3974 -t
3975 \end_layout
3976
3977 \end_inset
3978
3979  (for the 
3980 \begin_inset Flex Code
3981 status collapsed
3982
3983 \begin_layout Plain Layout
3984 tar
3985 \end_layout
3986
3987 \end_inset
3988
3989  format) or 
3990 \begin_inset Flex Code
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994 -z
3995 \end_layout
3996
3997 \end_inset
3998
3999  (for the 
4000 \begin_inset Flex Code
4001 status collapsed
4002
4003 \begin_layout Plain Layout
4004 zip
4005 \end_layout
4006
4007 \end_inset
4008
4009  format) switch to the 
4010 \begin_inset Flex Code
4011 status collapsed
4012
4013 \begin_layout Plain Layout
4014 \SpecialChar LyX
4015 \SpecialChar menuseparator
4016 \SpecialChar LyX
4017  Archive
4018 \end_layout
4019
4020 \end_inset
4021
4022  converter in 
4023 \begin_inset Flex Code
4024 status collapsed
4025
4026 \begin_layout Plain Layout
4027 Tools\SpecialChar menuseparator
4028 Preferences\SpecialChar menuseparator
4029 File Handling\SpecialChar menuseparator
4030 Converters
4031 \end_layout
4032
4033 \end_inset
4034
4035 .
4036  (Make sure you add the switch after the script name, not before it.)
4037 \end_layout
4038
4039 \begin_layout Section
4040 Fancy Headers and Footers
4041 \end_layout
4042
4043 \begin_layout Standard
4044 The default page layout is rather plain; for an 
4045 \begin_inset Flex Code
4046 status collapsed
4047
4048 \begin_layout Plain Layout
4049 article
4050 \end_layout
4051
4052 \end_inset
4053
4054  document class, all you get is a centered page number at the bottom of
4055  the page.
4056  This document uses KOMA-script's book class, so it appears to be a bit
4057  fancier.
4058  But to really put on a show, you need to set the document page style to
4059  
4060 \begin_inset Quotes eld
4061 \end_inset
4062
4063 fancy
4064 \begin_inset Quotes erd
4065 \end_inset
4066
4067 , as mentioned in the 
4068 \emph on
4069 User Guide
4070 \emph default
4071 .
4072  This section describes the \SpecialChar LaTeX
4073  code you need to insert in your \SpecialChar LaTeX
4074  preamble in
4075  order to get the desired effects.
4076 \end_layout
4077
4078 \begin_layout Standard
4079 For more information on fancy headers, see the 
4080 \begin_inset Flex Code
4081 status collapsed
4082
4083 \begin_layout Plain Layout
4084 fancyhdr
4085 \end_layout
4086
4087 \end_inset
4088
4089  package documentation.
4090  (
4091 \begin_inset Flex URL
4092 status collapsed
4093
4094 \begin_layout Plain Layout
4095
4096 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4097 \end_layout
4098
4099 \end_inset
4100
4101 )
4102 \end_layout
4103
4104 \begin_layout Standard
4105 The page header is divided into three fields, not surprisingly labeled 
4106 \begin_inset Quotes eld
4107 \end_inset
4108
4109 left
4110 \begin_inset Quotes erd
4111 \end_inset
4112
4113
4114 \begin_inset Quotes eld
4115 \end_inset
4116
4117 center
4118 \begin_inset Quotes erd
4119 \end_inset
4120
4121 , and 
4122 \begin_inset Quotes eld
4123 \end_inset
4124
4125 right
4126 \begin_inset Quotes erd
4127 \end_inset
4128
4129 .
4130  The footer is also divided into these three fields.
4131  The \SpecialChar LaTeX
4132  commands to set these fields in the simplest manner are 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137
4138 \backslash
4139 lhead
4140 \end_layout
4141
4142 \end_inset
4143
4144
4145 \begin_inset Flex Code
4146 status collapsed
4147
4148 \begin_layout Plain Layout
4149
4150 \backslash
4151 chead
4152 \end_layout
4153
4154 \end_inset
4155
4156
4157 \begin_inset Flex Code
4158 status collapsed
4159
4160 \begin_layout Plain Layout
4161
4162 \backslash
4163 rhead
4164 \end_layout
4165
4166 \end_inset
4167
4168
4169 \begin_inset Flex Code
4170 status collapsed
4171
4172 \begin_layout Plain Layout
4173
4174 \backslash
4175 lfoot
4176 \end_layout
4177
4178 \end_inset
4179
4180 , etc.
4181  Suppose you wish to put your name in the upper left hand corner of each
4182  page.
4183  Simply insert the following command in the preamble: 
4184 \end_layout
4185
4186 \begin_layout Standard
4187
4188 \family typewriter
4189
4190 \backslash
4191 lhead{John Q.
4192  DocWriter}
4193 \end_layout
4194
4195 \begin_layout Standard
4196 You will now see your name in the upper left.
4197  If a field has a default entry that you would like to get rid of (often
4198  the page number appears in the central footer) simply include a command
4199  with a blank argument, e.
4200 \begin_inset space \thinspace{}
4201 \end_inset
4202
4203 g.:
4204 \end_layout
4205
4206 \begin_layout Standard
4207
4208 \family typewriter
4209
4210 \backslash
4211 cfoot{}
4212 \end_layout
4213
4214 \begin_layout Standard
4215 Let's get really fancy: lets put the section number with the word 
4216 \begin_inset Quotes eld
4217 \end_inset
4218
4219 Section
4220 \begin_inset Quotes erd
4221 \end_inset
4222
4223  (e.
4224 \begin_inset space \thinspace{}
4225 \end_inset
4226
4227 g.
4228 \begin_inset space \space{}
4229 \end_inset
4230
4231 Section 3) in the upper left, the page number (e.
4232 \begin_inset space \thinspace{}
4233 \end_inset
4234
4235 g.
4236 \begin_inset space \space{}
4237 \end_inset
4238
4239 Page 4) in the upper right, your name in the lower left, and the date in
4240  the lower right.
4241  The following commands should now appear in the preamble:
4242 \end_layout
4243
4244 \begin_layout Standard
4245
4246 \family typewriter
4247
4248 \backslash
4249 lhead{Section 
4250 \backslash
4251 thesection}
4252 \end_layout
4253
4254 \begin_layout Standard
4255
4256 \family typewriter
4257
4258 \backslash
4259 chead{}
4260 \end_layout
4261
4262 \begin_layout Standard
4263
4264 \family typewriter
4265
4266 \backslash
4267 rhead{Page 
4268 \backslash
4269 thepage}
4270 \end_layout
4271
4272 \begin_layout Standard
4273
4274 \family typewriter
4275
4276 \backslash
4277 lfoot{John Q.
4278  DocWriter}
4279 \end_layout
4280
4281 \begin_layout Standard
4282
4283 \family typewriter
4284
4285 \backslash
4286 cfoot{}
4287 \end_layout
4288
4289 \begin_layout Standard
4290
4291 \family typewriter
4292
4293 \backslash
4294 rfoot{
4295 \backslash
4296 today}
4297 \end_layout
4298
4299 \begin_layout Standard
4300 The commands 
4301 \begin_inset Flex Code
4302 status collapsed
4303
4304 \begin_layout Plain Layout
4305
4306 \backslash
4307 thesection
4308 \end_layout
4309
4310 \end_inset
4311
4312  and 
4313 \begin_inset Flex Code
4314 status collapsed
4315
4316 \begin_layout Plain Layout
4317
4318 \backslash
4319 thepage
4320 \end_layout
4321
4322 \end_inset
4323
4324  access \SpecialChar LaTeX
4325 's section and page counters, and so print out the current section
4326  and page number.
4327  
4328 \begin_inset Flex Code
4329 status collapsed
4330
4331 \begin_layout Plain Layout
4332
4333 \backslash
4334 today
4335 \end_layout
4336
4337 \end_inset
4338
4339  simply prints out today's date.
4340 \end_layout
4341
4342 \begin_layout Standard
4343 The thicknesses of the horizontal rules drawn beneath the header and above
4344  the footer can also be modified.
4345  If you don't want one of the rules, set its thickness to 0.
4346  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4347  Use commands
4348 \family typewriter
4349  
4350 \family default
4351 like 
4352 \begin_inset Flex Code
4353 status collapsed
4354
4355 \begin_layout Plain Layout
4356
4357 \backslash
4358 renewcommand{
4359 \backslash
4360 headrulewidth}{0.4pt}
4361 \end_layout
4362
4363 \end_inset
4364
4365  and 
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370
4371 \backslash
4372 renewcommand{
4373 \backslash
4374 footrulewidth}{0.4pt}
4375 \end_layout
4376
4377 \end_inset
4378
4379  to set the thicknesses.
4380 \end_layout
4381
4382 \begin_layout Standard
4383 You can switch the header/footer settings on and off for individual pages
4384  using commands like 
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \backslash
4391 thispagestyle{empty}
4392 \end_layout
4393
4394 \end_inset
4395
4396
4397 \begin_inset Flex Code
4398 status collapsed
4399
4400 \begin_layout Plain Layout
4401
4402 \backslash
4403 thispagestyle{plain}
4404 \end_layout
4405
4406 \end_inset
4407
4408 , and 
4409 \begin_inset Flex Code
4410 status collapsed
4411
4412 \begin_layout Plain Layout
4413
4414 \backslash
4415 thispagestyle{fancy}
4416 \end_layout
4417
4418 \end_inset
4419
4420 .
4421  Simply insert them in the text on the page you want changed and mark them
4422  as \SpecialChar TeX
4423  code.
4424  In fact, title pages are marked as plain by default, while following pages
4425  are marked fancy when using the global fancy setting.
4426 \end_layout
4427
4428 \begin_layout Standard
4429 As a final example, it is possible to include an image in the header or
4430  footer.
4431  Suppose you want to put a company logo in the upper lefthand corner.
4432  You might try something like
4433 \end_layout
4434
4435 \begin_layout Standard
4436
4437 \family typewriter
4438
4439 \backslash
4440 lhead{
4441 \backslash
4442 resizebox{1in}{!}{
4443 \backslash
4444 includegraphics{logo.eps}}}
4445 \end_layout
4446
4447 \begin_layout Standard
4448 \noindent
4449 (you may need to preface this with 
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454
4455 \backslash
4456 usepackage{graphics}
4457 \end_layout
4458
4459 \end_inset
4460
4461  if you don't include graphics elsewhere in your document).
4462 \end_layout
4463
4464 \begin_layout Section
4465 Itemize Bullet Selection
4466 \begin_inset CommandInset label
4467 LatexCommand label
4468 name "sec:bullet"
4469
4470 \end_inset
4471
4472
4473 \end_layout
4474
4475 \begin_layout Standard
4476 by
4477 \noun on
4478  Allan Rae
4479 \end_layout
4480
4481 \begin_layout Subsection
4482 Introduction
4483 \end_layout
4484
4485 \begin_layout Standard
4486 \SpecialChar LyX
4487  provides 216 bullet shapes that can be accessed from a simple dialog.
4488  Using this dialog you can easily specify what bullet shape to use at each
4489  level of an itemized list.
4490  These settings are document-wide so you won't be able to specify different
4491  sets of bullets for different paragraphs.
4492 \begin_inset Foot
4493 status collapsed
4494
4495 \begin_layout Plain Layout
4496 Well, actually you can but you'll have to do it by hand.
4497 \end_layout
4498
4499 \end_inset
4500
4501
4502 \end_layout
4503
4504 \begin_layout Subsection
4505 How it looks
4506 \end_layout
4507
4508 \begin_layout Standard
4509 Open the dialog by selecting the 
4510 \begin_inset Flex Noun
4511 status collapsed
4512
4513 \begin_layout Plain Layout
4514 Document\SpecialChar menuseparator
4515 Settings
4516 \end_layout
4517
4518 \end_inset
4519
4520  menu item and then select the 
4521 \begin_inset Flex Noun
4522 status collapsed
4523
4524 \begin_layout Plain Layout
4525 Bullets
4526 \end_layout
4527
4528 \end_inset
4529
4530  tab.
4531 \end_layout
4532
4533 \begin_layout Standard
4534 The dialog provides you with a table of bullet shapes.
4535  A column of buttons on the left of the table provides access to the six
4536  different panels of bullet shapes.
4537  The row of buttons across the top is used to select which bullet depth
4538  you are changing.
4539
4540 \change_deleted 244031559 1603875981
4541  A text entry under the table shows the currently selected bullet shape's
4542  \SpecialChar LaTeX
4543  equivalent and this can be edited if desired.
4544  If you do modify the text you will also need to specify any needed packages
4545  in the \SpecialChar LaTeX
4546  preamble.
4547 \change_unchanged
4548
4549 \end_layout
4550
4551 \begin_layout Standard
4552 The six panels are divided up by the packages they require.
4553  The following table shows the mappings from button name to \SpecialChar LaTeX
4554  package.
4555 \end_layout
4556
4557 \begin_layout Standard
4558 \align center
4559 \begin_inset Tabular
4560 <lyxtabular version="3" rows="7" columns="2">
4561 <features tabularvalignment="middle">
4562 <column alignment="center" valignment="top" width="0pt">
4563 <column alignment="center" valignment="top" width="0pt">
4564 <row>
4565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4566 \begin_inset Text
4567
4568 \begin_layout Plain Layout
4569
4570 \family roman
4571 \series medium
4572 \shape up
4573 \size normal
4574 \emph off
4575 \bar no
4576 \noun off
4577 \color none
4578 Button
4579 \end_layout
4580
4581 \end_inset
4582 </cell>
4583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4584 \begin_inset Text
4585
4586 \begin_layout Plain Layout
4587
4588 \family roman
4589 \series medium
4590 \shape up
4591 \size normal
4592 \emph off
4593 \bar no
4594 \noun off
4595 \color none
4596 Packages Required
4597 \end_layout
4598
4599 \end_inset
4600 </cell>
4601 </row>
4602 <row>
4603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4604 \begin_inset Text
4605
4606 \begin_layout Plain Layout
4607
4608 \family sans
4609 \series medium
4610 \shape up
4611 \size normal
4612 \emph off
4613 \bar no
4614 \noun off
4615 \color none
4616 Standard
4617 \end_layout
4618
4619 \end_inset
4620 </cell>
4621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4622 \begin_inset Text
4623
4624 \begin_layout Plain Layout
4625
4626 \series medium
4627 \shape up
4628 \size normal
4629 \emph off
4630 \bar no
4631 \noun off
4632 \color none
4633 base \SpecialChar LaTeX
4634
4635 \end_layout
4636
4637 \end_inset
4638 </cell>
4639 </row>
4640 <row>
4641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4642 \begin_inset Text
4643
4644 \begin_layout Plain Layout
4645
4646 \family sans
4647 \series medium
4648 \shape up
4649 \size normal
4650 \emph off
4651 \bar no
4652 \noun off
4653 \color none
4654 Maths
4655 \end_layout
4656
4657 \end_inset
4658 </cell>
4659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4660 \begin_inset Text
4661
4662 \begin_layout Plain Layout
4663
4664 \family typewriter
4665 \series medium
4666 \shape up
4667 \size normal
4668 \emph off
4669 \bar no
4670 \noun off
4671 \color none
4672 amssymb.sty
4673 \end_layout
4674
4675 \end_inset
4676 </cell>
4677 </row>
4678 <row>
4679 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4680 \begin_inset Text
4681
4682 \begin_layout Plain Layout
4683
4684 \family sans
4685 \series medium
4686 \shape up
4687 \size normal
4688 \emph off
4689 \bar no
4690 \noun off
4691 \color none
4692 Ding1
4693 \end_layout
4694
4695 \end_inset
4696 </cell>
4697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4698 \begin_inset Text
4699
4700 \begin_layout Plain Layout
4701
4702 \family typewriter
4703 \series medium
4704 \shape up
4705 \size normal
4706 \emph off
4707 \bar no
4708 \noun off
4709 \color none
4710 pifont.sty
4711 \end_layout
4712
4713 \end_inset
4714 </cell>
4715 </row>
4716 <row>
4717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4718 \begin_inset Text
4719
4720 \begin_layout Plain Layout
4721
4722 \family sans
4723 \series medium
4724 \shape up
4725 \size normal
4726 \emph off
4727 \bar no
4728 \noun off
4729 \color none
4730 Ding2
4731 \end_layout
4732
4733 \end_inset
4734 </cell>
4735 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4736 \begin_inset Text
4737
4738 \begin_layout Plain Layout
4739
4740 \family typewriter
4741 \series medium
4742 \shape up
4743 \size normal
4744 \emph off
4745 \bar no
4746 \noun off
4747 \color none
4748 pifont.sty
4749 \end_layout
4750
4751 \end_inset
4752 </cell>
4753 </row>
4754 <row>
4755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4756 \begin_inset Text
4757
4758 \begin_layout Plain Layout
4759
4760 \family sans
4761 \series medium
4762 \shape up
4763 \size normal
4764 \emph off
4765 \bar no
4766 \noun off
4767 \color none
4768 Ding3
4769 \end_layout
4770
4771 \end_inset
4772 </cell>
4773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4774 \begin_inset Text
4775
4776 \begin_layout Plain Layout
4777
4778 \family typewriter
4779 \series medium
4780 \shape up
4781 \size normal
4782 \emph off
4783 \bar no
4784 \noun off
4785 \color none
4786 pifont.sty
4787 \end_layout
4788
4789 \end_inset
4790 </cell>
4791 </row>
4792 <row>
4793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4794 \begin_inset Text
4795
4796 \begin_layout Plain Layout
4797
4798 \family sans
4799 \series medium
4800 \shape up
4801 \size normal
4802 \emph off
4803 \bar no
4804 \noun off
4805 \color none
4806 Ding4
4807 \end_layout
4808
4809 \end_inset
4810 </cell>
4811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4812 \begin_inset Text
4813
4814 \begin_layout Plain Layout
4815
4816 \family typewriter
4817 \series medium
4818 \shape up
4819 \size normal
4820 \emph off
4821 \bar no
4822 \noun off
4823 \color none
4824 pifont.sty
4825 \end_layout
4826
4827 \end_inset
4828 </cell>
4829 </row>
4830 </lyxtabular>
4831
4832 \end_inset
4833
4834
4835 \end_layout
4836
4837 \begin_layout Standard
4838 \SpecialChar LyX
4839  doesn't stop you using bullets from packages you don't have.
4840  If you get errors from \SpecialChar LaTeX
4841  when you try to view or print the file, then it
4842  is likely you are missing a package.
4843 \begin_inset Foot
4844 status collapsed
4845
4846 \begin_layout Plain Layout
4847 \SpecialChar LyX
4848  doesn't restrict your use since you may be editing locally and exporting
4849  elsewhere.
4850 \end_layout
4851
4852 \end_inset
4853
4854
4855 \end_layout
4856
4857 \begin_layout Subsection
4858 How to use it
4859 \end_layout
4860
4861 \begin_layout Standard
4862 Select which bullet depth you want to change then select the bullet shape
4863  and size.
4864  Any changes will not be visible in \SpecialChar LyX
4865 , but are visible when viewing the document.
4866 \end_layout
4867
4868 \begin_layout Standard
4869 You can reset a bullet shape to the default simply by clicking your right
4870  mouse button on the appropriate bullet depth button.
4871 \begin_inset Foot
4872 status open
4873
4874 \begin_layout Plain Layout
4875 If you 
4876 \emph on
4877 really
4878 \emph default
4879  want to have multiple sets of paragraphs with different sets of bullets
4880  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4881  code.
4882  The bullet selection dialog can help though because it provides you with
4883  the \SpecialChar LaTeX
4884  code for a wide range of bullet shapes.
4885  To make your own custom paragraphs you have the following options:
4886 \end_layout
4887
4888 \begin_layout Plain Layout
4889 \begin_inset ERT
4890 status open
4891
4892 \begin_layout Plain Layout
4893
4894
4895 \backslash
4896 let
4897 \backslash
4898 savelabelitemi=
4899 \backslash
4900 labelitemi
4901 \end_layout
4902
4903 \end_inset
4904
4905
4906 \end_layout
4907
4908 \begin_layout Plain Layout
4909 \begin_inset ERT
4910 status open
4911
4912 \begin_layout Plain Layout
4913
4914
4915 \backslash
4916 renewcommand
4917 \backslash
4918 labelitemi[0]{
4919 \backslash
4920 small
4921 \backslash
4922 (
4923 \backslash
4924 sharp
4925 \backslash
4926 )}
4927 \end_layout
4928
4929 \end_inset
4930
4931
4932 \end_layout
4933
4934 \begin_layout Itemize
4935 Use the \SpecialChar LaTeX
4936  command 
4937 \begin_inset Flex Code
4938 status collapsed
4939
4940 \begin_layout Plain Layout
4941
4942 \backslash
4943 renewcommand{}{}
4944 \end_layout
4945
4946 \end_inset
4947
4948  to specify a new bullet shape for a given depth.
4949  You'll also need to save the current bullet shape so you can restore it
4950  again afterwards.
4951  In this itemized list the following \SpecialChar LaTeX
4952  code was used to change the bullet
4953  used for the first depth.
4954 \end_layout
4955
4956 \begin_deeper
4957 \begin_layout LyX-Code
4958
4959 \backslash
4960 let
4961 \backslash
4962 savelabelitemi=
4963 \backslash
4964 labelitemi 
4965 \end_layout
4966
4967 \begin_layout LyX-Code
4968
4969 \backslash
4970 renewcommand
4971 \backslash
4972 labelitemi[0]{
4973 \backslash
4974 small
4975 \backslash
4976 (
4977 \backslash
4978 sharp
4979 \backslash
4980 )}
4981 \end_layout
4982
4983 \end_deeper
4984 \begin_layout Itemize
4985 Note that the itemize depth is specified in Roman numerals as part of the
4986  
4987 \family typewriter
4988
4989 \backslash
4990 labelitem
4991 \family default
4992  command.
4993 \end_layout
4994
4995 \begin_layout Itemize
4996 \begin_inset Argument item:1
4997 status open
4998
4999 \begin_layout Plain Layout
5000 \begin_inset ERT
5001 status open
5002
5003 \begin_layout Plain Layout
5004
5005
5006 \backslash
5007 (
5008 \backslash
5009 star
5010 \backslash
5011 )
5012 \end_layout
5013
5014 \end_inset
5015
5016
5017 \end_layout
5018
5019 \end_inset
5020
5021  Specify each individual entry by starting each item with the bullet shape
5022  enclosed in a 
5023 \begin_inset Quotes eld
5024 \end_inset
5025
5026 Custom Item
5027 \begin_inset Quotes erd
5028 \end_inset
5029
5030  inset (available at 
5031 \family sans
5032 Insert\SpecialChar menuseparator
5033 Custom Item
5034 \family default
5035 ) and set as 
5036 \begin_inset Flex Noun
5037 status collapsed
5038
5039 \begin_layout Plain Layout
5040 \SpecialChar TeX
5041  Code
5042 \end_layout
5043
5044 \end_inset
5045
5046 .
5047  For example, this item was started with 
5048 \begin_inset Flex Code
5049 status collapsed
5050
5051 \begin_layout Plain Layout
5052
5053 \backslash
5054 (
5055 \backslash
5056 star
5057 \backslash
5058 )
5059 \end_layout
5060
5061 \end_inset
5062
5063 .
5064 \end_layout
5065
5066 \begin_layout Plain Layout
5067 \begin_inset ERT
5068 status open
5069
5070 \begin_layout Plain Layout
5071
5072
5073 \backslash
5074 renewcommand
5075 \backslash
5076 labelitemi[0]{
5077 \backslash
5078 savelabelitemi}
5079 \end_layout
5080
5081 \end_inset
5082
5083
5084 \end_layout
5085
5086 \begin_layout Plain Layout
5087 You'll also need to revert the labelitem back to its previous setting for
5088  the global bullet shape settings to remain in effect.
5089  The way used here was:
5090 \end_layout
5091
5092 \begin_layout LyX-Code
5093
5094 \backslash
5095 renewcommand
5096 \backslash
5097 labelitemi[0]{
5098 \backslash
5099 savelabelitemi}
5100 \end_layout
5101
5102 \end_inset
5103
5104
5105 \end_layout
5106
5107 \begin_layout Chapter
5108 \SpecialChar LyX
5109  and the World Wide Web
5110 \end_layout
5111
5112 \begin_layout Standard
5113 \SpecialChar LyX
5114  has long supported the export of documents to various web-friendly formats,
5115  such as HTML.
5116  Before version 2.0, however, HTML export was always accomplished by the
5117  use of external converters.
5118 \begin_inset Foot
5119 status collapsed
5120
5121 \begin_layout Plain Layout
5122 For details on the use of external converters with \SpecialChar LyX
5123 , see the 
5124 \emph on
5125 Converters
5126 \emph default
5127  section of the Customization manual.
5128 \end_layout
5129
5130 \end_inset
5131
5132  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5133  as an
5134  intermediate format, such as 
5135 \begin_inset Flex Code
5136 status collapsed
5137
5138 \begin_layout Plain Layout
5139 htlatex
5140 \end_layout
5141
5142 \end_inset
5143
5144
5145 \begin_inset Flex Code
5146 status collapsed
5147
5148 \begin_layout Plain Layout
5149 html2latex
5150 \end_layout
5151
5152 \end_inset
5153
5154 , and 
5155 \begin_inset Flex Code
5156 status collapsed
5157
5158 \begin_layout Plain Layout
5159 plastex
5160 \end_layout
5161
5162 \end_inset
5163
5164 , relying upon \SpecialChar LyX
5165  to produce the \SpecialChar LaTeX
5166 ; and there is a converter that works directly
5167  on \SpecialChar LyX
5168  files, 
5169 \begin_inset Flex Code
5170 status collapsed
5171
5172 \begin_layout Plain Layout
5173 e\SpecialChar LyX
5174 er
5175 \end_layout
5176
5177 \end_inset
5178
5179 .
5180  All of these have different advantages and disadvantages.
5181  
5182 \end_layout
5183
5184 \begin_layout Standard
5185 The \SpecialChar LaTeX
5186 -based converters have the advantage that, in principle, they know everythin
5187 g about the exported document that \SpecialChar LaTeX
5188  does.
5189  Such converters do not care, for example, if a certain block of code was
5190  produced by \SpecialChar LyX
5191  or was Evil Red Text.
5192  These converters know about 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197 aux
5198 \end_layout
5199
5200 \end_inset
5201
5202  files, counters, and references, and can often make use of the 
5203 \begin_inset Flex Code
5204 status collapsed
5205
5206 \begin_layout Plain Layout
5207 bbl
5208 \end_layout
5209
5210 \end_inset
5211
5212  files generated by Bib\SpecialChar TeX
5213 .
5214  On the other hand, \SpecialChar LaTeX
5215  is a very hard language to parse—it is sometimes said
5216  that only \SpecialChar TeX
5217  itself understands \SpecialChar TeX
5218 —and \SpecialChar LaTeX
5219 -based converters will often choke on
5220  what seem to be quite simple constructs; complex ones can throw them completely
5221 , and as of this writing, for example, the 
5222 \emph on
5223 Embedded Objects
5224 \emph default
5225  manual will not export with 
5226 \begin_inset Flex Code
5227 status collapsed
5228
5229 \begin_layout Plain Layout
5230 htlatex
5231 \end_layout
5232
5233 \end_inset
5234
5235 , though the others will.
5236  The other issue concerns how math is handled.
5237  These converters typically convert the formulae into little pictures that
5238  are then linked from the HTML document.
5239  Since these are actually generated by \SpecialChar LaTeX
5240 , they are accurate.
5241  But they do not scale well, and just getting them to look as if they are
5242  actually meant to be in your document—so that the font sizes seem to be
5243  roughly the same—can be a challenge.
5244 \end_layout
5245
5246 \begin_layout Standard
5247 Alex Fernandez's 
5248 \begin_inset Flex Code
5249 status collapsed
5250
5251 \begin_layout Plain Layout
5252 e\SpecialChar LyX
5253 er
5254 \end_layout
5255
5256 \end_inset
5257
5258  (
5259 \begin_inset CommandInset href
5260 LatexCommand href
5261 name "http://pinchito.es/elyxer/"
5262 target "http://pinchito.es/elyxer/"
5263 literal "false"
5264
5265 \end_inset
5266
5267 ) solves some of these problems.
5268  In particular, the formulae it produces scale perfectly, since it renders
5269  math using a combination of HTML and CSS rather than converting the formulae
5270  to images.
5271  But even moderately complex formula are rendered less well than with 
5272 \begin_inset Flex Code
5273 status collapsed
5274
5275 \begin_layout Plain Layout
5276 htlatex
5277 \end_layout
5278
5279 \end_inset
5280
5281 ; this reflects the limitations of HTML.
5282 \begin_inset Foot
5283 status collapsed
5284
5285 \begin_layout Plain Layout
5286 That said, 
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 e\SpecialChar LyX
5292 er
5293 \end_layout
5294
5295 \end_inset
5296
5297  can also use jsMath and MathJax for equations, but this setting is only
5298  available globally and requires one to have access to a server that runs
5299  the backend.
5300 \end_layout
5301
5302 \end_inset
5303
5304  More importantly (as of version 1.1.1, at least), 
5305 \begin_inset Flex Code
5306 status collapsed
5307
5308 \begin_layout Plain Layout
5309 e\SpecialChar LyX
5310 er
5311 \end_layout
5312
5313 \end_inset
5314
5315  has limited support for math macros and no support for user-defined paragraph
5316  or character styles.
5317  These limitations make 
5318 \begin_inset Flex Code
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322 e\SpecialChar LyX
5323 er
5324 \end_layout
5325
5326 \end_inset
5327
5328  unsuitable for many of the documents \SpecialChar LyX
5329  users produce.
5330  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5331  developers
5332  have decided to follow a different path and have made \SpecialChar LyX
5333  itself capable of
5334  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5335 , DocBook, and plaintext.
5336 \end_layout
5337
5338 \begin_layout Standard
5339 As of this writing, XHTML output remains under development and should probably
5340  be regarded as 
5341 \begin_inset Quotes eld
5342 \end_inset
5343
5344 experimental
5345 \begin_inset Quotes erd
5346 \end_inset
5347
5348 .
5349 \begin_inset Foot
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353 The file 
5354 \begin_inset Flex Code
5355 status collapsed
5356
5357 \begin_layout Plain Layout
5358 development/HTML/HTML.notes
5359 \end_layout
5360
5361 \end_inset
5362
5363 , which can be found in the \SpecialChar LyX
5364  source tree or 
5365 \begin_inset CommandInset href
5366 LatexCommand href
5367 name "accessed online"
5368 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5369 literal "false"
5370
5371 \end_inset
5372
5373 , usually contains up-to-date information about the state of XHTML output.
5374  See also the list of XHTML bugs on 
5375 \begin_inset CommandInset href
5376 LatexCommand href
5377 name "the bug tracker"
5378 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"
5379 literal "false"
5380
5381 \end_inset
5382
5383 .
5384 \end_layout
5385
5386 \end_inset
5387
5388  Still, the developers have chosen this approach because it has several
5389  potential advantages over the other two.
5390 \end_layout
5391
5392 \begin_layout Standard
5393 These advantages are primarily due to the fact that the XHTML output routines,
5394  since they are part of \SpecialChar LyX
5395 , know everything \SpecialChar LyX
5396  knows about the document being
5397  exported.
5398 \begin_inset Foot
5399 status collapsed
5400
5401 \begin_layout Plain Layout
5402 Another advantage is that, since these routines are internal to \SpecialChar LyX
5403 , they are
5404  immune to changes in \SpecialChar LyX
5405 's file format, or to changes in the semantics of
5406  existing insets.
5407 \end_layout
5408
5409 \end_inset
5410
5411  So they know about the table of contents (as displayed in the outline),
5412  about the counters associated with different paragraph styles, and about
5413  user-defined styles.
5414  The XHTML output routines know what \SpecialChar LyX
5415  knows about internationalization,
5416  too, so they will output 
5417 \begin_inset Quotes eld
5418 \end_inset
5419
5420 Chapter 1
5421 \begin_inset Quotes erd
5422 \end_inset
5423
5424  or 
5425 \begin_inset Quotes eld
5426 \end_inset
5427
5428
5429 \lang ngerman
5430 Kapitel
5431 \lang english
5432  1
5433 \begin_inset Quotes erd
5434 \end_inset
5435
5436 , depending upon the language in effect at the time.
5437  
5438 \end_layout
5439
5440 \begin_layout Standard
5441 Quite generally, the output routines know what \SpecialChar LyX
5442  knows about document layout,
5443  that is, about how the document is to be rendered on screen.
5444  We use this information when we output the document as XHTML.
5445  In particular, \SpecialChar LyX
5446  
5447 \emph on
5448 automatically
5449 \emph default
5450  generates CSS style information corresponding to the layout information
5451  it uses to render the document on screen: if section headings are supposed
5452  to be sans-serif and bold as seen in \SpecialChar LyX
5453 , then (by default) they will be sans-seri
5454 f and bold when viewed in a web browser, too.
5455  And this is true not just for pre-defined styles, like Section, but for
5456  any style, including user-defined styles.
5457  Indeed, the XHTML output routines make no distinction between user-defined
5458  paragraph and 
5459 \change_deleted 244031559 1603876931
5460 character
5461 \change_inserted 244031559 1603876940
5462 text
5463 \change_unchanged
5464  styles and \SpecialChar LyX
5465 's own pre-defined styles: in each case, everything \SpecialChar LyX
5466  knows about
5467  the styles is contained in the layout files.
5468  And much the same is true as regards pre-defined textual insets, such as
5469  footnotes, and various custom insets.
5470  
5471 \end_layout
5472
5473 \begin_layout Standard
5474 The result is that XHTML output can be customized and extended in exactly
5475  the same way \SpecialChar LaTeX
5476  output can be customized and extended: through layout files
5477  and modules.
5478  See chapter five of the 
5479 \emph on
5480 Customization 
5481 \emph default
5482 manual for the details.
5483 \end_layout
5484
5485 \begin_layout Standard
5486 The remainder of this chapter contains more detailed information on XHTML
5487  output, its limitations, and ways to work around those limitations.
5488 \end_layout
5489
5490 \begin_layout Section
5491 Math Output in XHTML
5492 \end_layout
5493
5494 \begin_layout Standard
5495 \SpecialChar LyX
5496  offers four choices for how math is rendered.
5497  These have various advantages and disadvantages:
5498 \end_layout
5499
5500 \begin_layout Itemize
5501 MathML
5502 \begin_inset Newline newline
5503 \end_inset
5504
5505 MathML is a dialect of XML designed specifically for mathematics on the
5506  web, and it typically renders very well in browsers that support it.
5507  The disadvantage is that not all browsers support MathML, and support is
5508  not complete even in the Gecko-based browsers, such as Firefox.
5509 \begin_inset Newline newline
5510 \end_inset
5511
5512 If \SpecialChar LyX
5513  is unable to render a formula as MathML—for example, if the formula
5514  uses the 
5515 \begin_inset Flex Code
5516 status collapsed
5517
5518 \begin_layout Plain Layout
5519 xymatrix
5520 \end_layout
5521
5522 \end_inset
5523
5524  package or ERT—then it will instead output the formula as an image.
5525  
5526 \end_layout
5527
5528 \begin_layout Itemize
5529 HTML
5530 \begin_inset Newline newline
5531 \end_inset
5532
5533 As mentioned above, 
5534 \begin_inset Flex Code
5535 status collapsed
5536
5537 \begin_layout Plain Layout
5538 elyxer
5539 \end_layout
5540
5541 \end_inset
5542
5543  outputs math as HTML, styled by CSS.
5544 \begin_inset Foot
5545 status collapsed
5546
5547 \begin_layout Plain Layout
5548 \SpecialChar LyX
5549  has borrowed some of the CSS for its HTML output from 
5550 \begin_inset Flex Code
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 elyxer
5555 \end_layout
5556
5557 \end_inset
5558
5559 .
5560 \end_layout
5561
5562 \end_inset
5563
5564  For simple formulae, this can work quite well, though with more complicated
5565  formulae it tends to break down.
5566  Still, this method has the advantage that it is very widely supported and
5567  so it may be appropriate for documents that contain only a little, fairly
5568  simple math.
5569 \begin_inset Newline newline
5570 \end_inset
5571
5572 If Lyx is unable to render a formula as HTML—for example, if the formula
5573  uses the 
5574 \begin_inset Flex Code
5575 status collapsed
5576
5577 \begin_layout Plain Layout
5578 xymatrix
5579 \end_layout
5580
5581 \end_inset
5582
5583  package or ERT—then it will instead output the formula as an image.
5584  
5585 \end_layout
5586
5587 \begin_layout Itemize
5588 Images
5589 \begin_inset Newline newline
5590 \end_inset
5591
5592 Like 
5593 \begin_inset Flex Code
5594 status collapsed
5595
5596 \begin_layout Plain Layout
5597 htlatex
5598 \end_layout
5599
5600 \end_inset
5601
5602 , \SpecialChar LyX
5603  will output formulae as images, the very same images, in fact, that are
5604  used for instant preview.
5605 \begin_inset Foot
5606 status collapsed
5607
5608 \begin_layout Plain Layout
5609 Instant preview does 
5610 \emph on
5611 not 
5612 \emph default
5613 have to be on for images to be output, however.
5614 \end_layout
5615
5616 \end_inset
5617
5618  The advantage to this method is that the images are simply generated by
5619  \SpecialChar LaTeX
5620 , so they are very accurate.
5621  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5622  so they do not scale terribly well, and one cannot copy them, etc.
5623 \begin_inset Newline newline
5624 \end_inset
5625
5626 The size of the images can be controlled by setting the 
5627 \begin_inset Quotes eld
5628 \end_inset
5629
5630 Math Images Scaling
5631 \begin_inset Quotes erd
5632 \end_inset
5633
5634  parameter under 
5635 \begin_inset Flex Noun
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 Document\SpecialChar menuseparator
5640 Settings\SpecialChar menuseparator
5641 Formats
5642 \end_layout
5643
5644 \end_inset
5645
5646 .
5647 \begin_inset Foot
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651 For those who want to know, this controls the resolution of the image in
5652  dots per inch and is based upon a default of 75 dpi.
5653 \end_layout
5654
5655 \end_inset
5656
5657
5658 \begin_inset Newline newline
5659 \end_inset
5660
5661 If \SpecialChar LyX
5662  for some reason fails to create an image for a formula (e.g., if a required
5663  \SpecialChar LaTeX
5664  package is not installed), then it will fall back to outputing the raw
5665  \SpecialChar LaTeX
5666 .
5667 \end_layout
5668
5669 \begin_layout Itemize
5670 \SpecialChar LaTeX
5671
5672 \begin_inset Newline newline
5673 \end_inset
5674
5675 Finally, \SpecialChar LyX
5676  will happily output math as \SpecialChar LaTeX
5677 .
5678  As well as being the output of last resort, this method can be used with
5679  such tools as 
5680 \begin_inset CommandInset href
5681 LatexCommand href
5682 name "jsMath"
5683 target "http://www.math.union.edu/~dpvc/jsMath/"
5684 literal "false"
5685
5686 \end_inset
5687
5688 , which uses JavaScript to render \SpecialChar LaTeX
5689  embedded in HTML documents.
5690  \SpecialChar LyX
5691  wraps the \SpecialChar LaTeX
5692  in either a 
5693 \begin_inset Flex Code
5694 status collapsed
5695
5696 \begin_layout Plain Layout
5697 span
5698 \end_layout
5699
5700 \end_inset
5701
5702  (for inline formulas) or 
5703 \begin_inset Flex Code
5704 status collapsed
5705
5706 \begin_layout Plain Layout
5707 div
5708 \end_layout
5709
5710 \end_inset
5711
5712  (for displayed formulas) with 
5713 \begin_inset Flex Code
5714 status collapsed
5715
5716 \begin_layout Plain Layout
5717 class='math'
5718 \end_layout
5719
5720 \end_inset
5721
5722 , as is required for jsMath.
5723 \end_layout
5724
5725 \begin_layout Standard
5726 One of these output methods must be selected under 
5727 \begin_inset Flex Noun
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 Document\SpecialChar menuseparator
5732 Settings\SpecialChar menuseparator
5733 Formats
5734 \end_layout
5735
5736 \end_inset
5737
5738 .
5739  By default, \SpecialChar LyX
5740  outputs MathML.
5741  This is a document-wide setting, therefore.
5742 \end_layout
5743
5744 \begin_layout Standard
5745 Eventually, \SpecialChar LyX
5746  will offer the user the option to select an alternate output
5747  method for a particular inset, say, one that isn't being rendered very
5748  well by MathML.
5749 \begin_inset Foot
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 That said, since \SpecialChar LyX
5754  falls back to images if the inset contains ERT, then one
5755  can force output as an image by putting some harmless ERT into the math,
5756  for example: 
5757 \begin_inset Formula $a=b\relax$
5758 \end_inset
5759
5760 .
5761 \end_layout
5762
5763 \end_inset
5764
5765
5766 \end_layout
5767
5768 \begin_layout Section
5769 Bibliography and Citations
5770 \end_layout
5771
5772 \begin_layout Standard
5773 XHTML output fully supports bibliographies and citations.
5774  
5775 \end_layout
5776
5777 \begin_layout Standard
5778 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5779 's on-screen
5780  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5781 , though
5782  better.
5783  If you are using numerical citations, then \SpecialChar LyX
5784  will output numerical labels,
5785  such as [1] or [17], rather than simply showing the citation key in square
5786  brackets, as it does on-screen.
5787  If you are using author-year citations, then \SpecialChar LyX
5788  will add lowercase letters
5789  to the years, just as Bib\SpecialChar TeX
5790  does, if it finds more than one citation for
5791  a given author-year combination.
5792  The labels will be printed with the bibliography entries.
5793  Note that there is, at present, no way to customize the appearance of the
5794  labels, for example, to choose between square brackets and parentheses.
5795 \end_layout
5796
5797 \begin_layout Standard
5798 Bibliography output is handled by the same machinery that handles the presentati
5799 on of reference information in the citation dialog, so you will see in the
5800  XHTML output pretty much what you would see if you were to look at a given
5801  entry in the citation dialog.
5802  The formatting can be customized in your layout file or, preferably, in
5803  a module.
5804  See the 
5805 \emph on
5806 Customization
5807 \emph default
5808  manual for the details.
5809 \end_layout
5810
5811 \begin_layout Standard
5812 The main defect at present is that cross-referenced information is printed
5813  with every entry with which it is associated.
5814  So you can see things like this:
5815 \end_layout
5816
5817 \begin_layout Quote
5818 Jason Stanley, 
5819 \begin_inset Quotes eld
5820 \end_inset
5821
5822 Context and Logical Form
5823 \begin_inset Quotes erd
5824 \end_inset
5825
5826 , in 
5827 \emph on
5828 Language in Context: Selected Essays
5829 \emph default
5830  (Oxford: Oxford University Press, 2007), pp.
5831  30–68.
5832 \end_layout
5833
5834 \begin_layout Quote
5835 Jason Stanley, 
5836 \begin_inset Quotes eld
5837 \end_inset
5838
5839 Semantics in Context
5840 \begin_inset Quotes erd
5841 \end_inset
5842
5843 , in 
5844 \emph on
5845 Language in Context: Selected Essays
5846 \emph default
5847  (Oxford: Oxford University Press, 2007), pp.
5848  201–30.
5849 \end_layout
5850
5851 \begin_layout Standard
5852 This should be fixed before long.
5853 \end_layout
5854
5855 \begin_layout Standard
5856 There is no support at present for sectioned bibliographies.
5857  If you have multiple bibliographies, then \SpecialChar LyX
5858  will print the same bibliography
5859  over and over.
5860 \end_layout
5861
5862 \begin_layout Section
5863 Indexes
5864 \end_layout
5865
5866 \begin_layout Standard
5867 \SpecialChar LyX
5868  will happily export indexes as XHTML, but with certain limitations at the
5869  moment.
5870 \end_layout
5871
5872 \begin_layout Standard
5873 Index export will be most reliable when you do not attempt to use the fancy
5874  constructs that are described in the section on indexes in the 
5875 \emph on
5876 User's Guide
5877 \emph default
5878 .
5879 \begin_inset Foot
5880 status collapsed
5881
5882 \begin_layout Plain Layout
5883 The main issue here is that \SpecialChar LyX
5884  itself does not really handle these.
5885  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5886 .
5887 \end_layout
5888
5889 \end_inset
5890
5891  We'll describe how they are handled using the subsection headings from
5892  that section.
5893 \end_layout
5894
5895 \begin_layout Itemize
5896 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5897  makes an effort to support these,
5898  but the entries must be separated by 
5899 \begin_inset Quotes eld
5900 \end_inset
5901
5902  ! 
5903 \begin_inset Quotes erd
5904 \end_inset
5905
5906 , that is, there must be spaces around the exclamation point.
5907  This is because it is otherwise too difficult to check for escaped exclamation
5908  points, ones in math, and so forth.
5909 \end_layout
5910
5911 \begin_layout Itemize
5912 Page Ranges: There is no support at all for page ranges, since these make
5913  no sense with XHMTL.
5914  Instead, you will just get two index entries, one at either end.
5915 \end_layout
5916
5917 \begin_layout Itemize
5918 Cross-referencing: There is no support for cross-referencing.
5919  If \SpecialChar LyX
5920  finds an entry containing the 
5921 \begin_inset Quotes eld
5922 \end_inset
5923
5924 |see\SpecialChar ldots
5925
5926 \begin_inset Quotes erd
5927 \end_inset
5928
5929  construct, it is just dropped, and the rest is treated as an ordinary index
5930  entry.
5931 \end_layout
5932
5933 \begin_layout Itemize
5934 Index Entry Order: \SpecialChar LyX
5935  does support attempts to fix the sorting order.
5936  It will take what is before the first `@' it finds and use that for sorting,
5937  taking what follows the first `@' to be the actual entry.
5938  At present, \SpecialChar LyX
5939  does not check for escaped `@', so do not try to index email
5940  addresses.
5941 \end_layout
5942
5943 \begin_layout Itemize
5944 Index Entry Layout: You can format entries by using the text style dialog,
5945  or by using any other method available within \SpecialChar LyX
5946  itself.
5947  There is no support for constructs like: 
5948 \begin_inset Quotes eld
5949 \end_inset
5950
5951 entry|textbf
5952 \begin_inset Quotes erd
5953 \end_inset
5954
5955 .
5956  Indeed, if \SpecialChar LyX
5957  finds a pipe symbol, `|', in an entry, it will delete it and
5958  everything that follows it.
5959 \end_layout
5960
5961 \begin_layout Itemize
5962 Multiple Indexes: There is no support for multiple indexes.
5963  Rather, all index entries will be printed as one large index.
5964  To avoid our printing several versions of the index, we print only the
5965  main index, so make sure you have one.
5966 \end_layout
5967
5968 \begin_layout Section
5969 Nomenclature and Glossary
5970 \end_layout
5971
5972 \begin_layout Standard
5973 There is at present no support for glossaries.
5974  Adding it would be fairly trivial, and welcome.
5975 \end_layout
5976
5977 \begin_layout Chapter
5978
5979 \change_inserted 1075283030 1616534180
5980 DocBook Output
5981 \end_layout
5982
5983 \begin_layout Standard
5984
5985 \change_inserted 1075283030 1616534386
5986 Apart from HTML, \SpecialChar LyX
5987  can generate documents in the DocBook XML vocabulary.
5988  With versions 2.3 and before, only select templates could be used to generate
5989  DocBook documents (only version 4).
5990  Starting with \SpecialChar LyX
5991  2.4, most \SpecialChar LyX
5992  layouts can generate valid DocBook documents (only
5993  version 5).
5994  This feature is built into \SpecialChar LyX
5995  and does not require the use of external tools.
5996 \end_layout
5997
5998 \begin_layout Standard
5999
6000 \change_inserted 1075283030 1616534437
6001 The result is that the DocBook output can be customized and extended in
6002  exactly the same way \SpecialChar LaTeX
6003  output can be customized and extended: through layout
6004  files and modules.
6005  See chapter five of the 
6006 \emph on
6007 Customization 
6008 \emph default
6009 manual for the details.
6010 \end_layout
6011
6012 \begin_layout Standard
6013
6014 \change_inserted 1075283030 1616534475
6015 Most \SpecialChar LyX
6016  features are supported with DocBook, like math output.
6017 \end_layout
6018
6019 \begin_layout Itemize
6020
6021 \change_inserted 1075283030 1616534741
6022 Math output is performed mostly in MathML (the major exception being constructio
6023 ns not supported by \SpecialChar LyX
6024 , i.e.
6025  ERTs).
6026  All formulae are also available in raw \SpecialChar TeX
6027  in the DocBook output for further
6028  processing.
6029 \end_layout
6030
6031 \begin_layout Itemize
6032
6033 \change_inserted 1075283030 1616534852
6034 Bibliographies and citations are implemented, including with an external
6035  BibTeX file.
6036  Bibliography entries are not prerendered when the detailed information
6037  are available, but rather output with the standard DocBook constructs.
6038  The external DocBook processor is expected to handle the rendering of entries.
6039 \end_layout
6040
6041 \begin_layout Itemize
6042
6043 \change_inserted 1075283030 1616534863
6044 Indexes are supported, including multiple indices.
6045  Grouping (with 
6046 \family typewriter
6047 !
6048 \family default
6049 ), page ranges, and cross-references (
6050 \family typewriter
6051 |see
6052 \family default
6053 ) are supported, with the exception of the same symbols escaped.
6054  Entry order (
6055 \family typewriter
6056 @
6057 \family default
6058 ) and layout (
6059 \family typewriter
6060 |mathbf
6061 \family default
6062 ) are not supported.
6063  There is no support for escaping of index entries.
6064 \end_layout
6065
6066 \begin_layout Itemize
6067
6068 \change_inserted 1075283030 1616534884
6069 Glossaries are implemented.
6070 \end_layout
6071
6072 \begin_layout Standard
6073
6074 \change_inserted 1075283030 1616534894
6075 Two major parameters can be set at the document level.
6076 \end_layout
6077
6078 \begin_layout Itemize
6079
6080 \change_inserted 1075283030 1616534948
6081 Format for tables: \SpecialChar LyX
6082  can generate tables either as HTML (default value) or
6083  CALS, depending on the user's requirements.
6084  Most DocBook processors accept both formats.
6085 \end_layout
6086
6087 \begin_layout Itemize
6088
6089 \change_inserted 1075283030 1616535006
6090 MathML prefix: in DocBook, MathML is included within its own name space,
6091  unlike HTML.
6092  The implication is that there must be an indication of the tags belonging
6093  to the MathML standard.
6094  Three choices are offered: 
6095 \end_layout
6096
6097 \begin_deeper
6098 \begin_layout Itemize
6099
6100 \change_inserted 1075283030 1616535044
6101 Inline: the MathML name space is defined for each formula (using the 
6102 \family typewriter
6103 xmlns
6104 \family default
6105  attribute on each formula)
6106 \end_layout
6107
6108 \begin_layout Itemize
6109
6110 \change_inserted 1075283030 1616535090
6111 With the 
6112 \family typewriter
6113 m
6114 \family default
6115  prefix (default): the MathML name space is defined at the document level
6116  (using the 
6117 \family typewriter
6118 xmlns:m
6119 \family default
6120  attribute on the root element).
6121  Each MathML is prefixed with 
6122 \family typewriter
6123 m
6124 \family default
6125 : for instance, 
6126 \family typewriter
6127 m:math
6128 \end_layout
6129
6130 \begin_layout Itemize
6131
6132 \change_inserted 1075283030 1616620405
6133 With the 
6134 \family typewriter
6135 mml
6136 \family default
6137  prefix: similar to the 
6138 \family typewriter
6139 m
6140 \family default
6141  option, but with 
6142 \family typewriter
6143 mml
6144 \end_layout
6145
6146 \begin_layout Standard
6147
6148 \change_inserted 1075283030 1616620470
6149 This option is especially useful if you want \SpecialChar LyX
6150  to match your personal style
6151  or to work with buggy software that only accepts one prefix for MathML.
6152 \change_unchanged
6153
6154 \end_layout
6155
6156 \end_deeper
6157 \begin_layout Chapter
6158 The \SpecialChar LyX
6159  Server
6160 \end_layout
6161
6162 \begin_layout Section
6163 Introduction
6164 \end_layout
6165
6166 \begin_layout Standard
6167 The `\SpecialChar LyX
6168  server' allows other programs to talk to \SpecialChar LyX
6169 , invoke \SpecialChar LyX
6170  commands, and retrieve
6171  information about the \SpecialChar LyX
6172  internal state.
6173  This is only intended for advanced users, but they should find it useful.
6174  It is by writing to the \SpecialChar LyX
6175  server, for example, that bibliography managers,
6176  such as JabRef, are able to 
6177 \begin_inset Quotes eld
6178 \end_inset
6179
6180 push
6181 \begin_inset Quotes erd
6182 \end_inset
6183
6184  citations to \SpecialChar LyX
6185 .
6186 \end_layout
6187
6188 \begin_layout Section
6189 Starting the \SpecialChar LyX
6190  Server
6191 \begin_inset CommandInset label
6192 LatexCommand label
6193 name "sec:Starting-the-Server"
6194
6195 \end_inset
6196
6197
6198 \end_layout
6199
6200 \begin_layout Standard
6201 The \SpecialChar LyX
6202  server works through the use of a pair of named pipes.
6203  These are usually located in 
6204 \begin_inset Flex Code
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 UserDir
6209 \end_layout
6210
6211 \end_inset
6212
6213 , (except on Windows, where 
6214 \emph on
6215 local
6216 \emph default
6217  named pipes are special objects located in 
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222
6223 \backslash
6224
6225 \backslash
6226 .
6227 \backslash
6228 pipe
6229 \end_layout
6230
6231 \end_inset
6232
6233 ) and have the names 
6234 \begin_inset Quotes eld
6235 \end_inset
6236
6237
6238 \begin_inset Flex Code
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 lyxpipe.in
6243 \end_layout
6244
6245 \end_inset
6246
6247
6248 \begin_inset Quotes erd
6249 \end_inset
6250
6251  and 
6252 \begin_inset Quotes eld
6253 \end_inset
6254
6255
6256 \begin_inset Flex Code
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 lyxpipe.out
6261 \end_layout
6262
6263 \end_inset
6264
6265
6266 \begin_inset Quotes erd
6267 \end_inset
6268
6269 .
6270  External programs write into 
6271 \begin_inset Flex Code
6272 status collapsed
6273
6274 \begin_layout Plain Layout
6275 lyxpipe.in
6276 \end_layout
6277
6278 \end_inset
6279
6280  and read back data from 
6281 \begin_inset Flex Code
6282 status collapsed
6283
6284 \begin_layout Plain Layout
6285 lyxpipe.out
6286 \end_layout
6287
6288 \end_inset
6289
6290 .
6291  The stem of the pipe names can be defined in the 
6292 \begin_inset Flex Noun
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 Tools\SpecialChar menuseparator
6297 Preferences
6298 \end_layout
6299
6300 \end_inset
6301
6302  dialog, for example 
6303 \begin_inset Flex Code
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307 "/home/myhome/lyxpipe"
6308 \end_layout
6309
6310 \end_inset
6311
6312 , or 
6313 \begin_inset Flex Code
6314 status collapsed
6315
6316 \begin_layout Plain Layout
6317 "
6318 \backslash
6319
6320 \backslash
6321 .
6322 \backslash
6323 pipe
6324 \backslash
6325 lyxpipe"
6326 \end_layout
6327
6328 \end_inset
6329
6330  on Windows (where any working path instead of lyxpipe can be used, for
6331  example 
6332 \begin_inset Flex Code
6333 status collapsed
6334
6335 \begin_layout Plain Layout
6336 "
6337 \backslash
6338
6339 \backslash
6340 .
6341 \backslash
6342 pipe
6343 \backslash
6344 my
6345 \backslash
6346 lyx
6347 \backslash
6348 pipe"
6349 \end_layout
6350
6351 \end_inset
6352
6353  would also work).
6354  You 
6355 \emph on
6356 must
6357 \emph default
6358  configure this manually in order for the server to start.
6359 \end_layout
6360
6361 \begin_layout Standard
6362 \SpecialChar LyX
6363  will add the '
6364 \begin_inset Flex Code
6365 status collapsed
6366
6367 \begin_layout Plain Layout
6368 .in
6369 \end_layout
6370
6371 \end_inset
6372
6373 ' and '
6374 \begin_inset Flex Code
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 .out
6379 \end_layout
6380
6381 \end_inset
6382
6383 ' to create the pipes.
6384  If one of the pipes already exists, \SpecialChar LyX
6385  will assume that another \SpecialChar LyX
6386  process
6387  is already running and will not start the server.
6388  On POSIX (Unix like) systems, if for some other reason, an unused 
6389 \begin_inset Quotes eld
6390 \end_inset
6391
6392 stale
6393 \begin_inset Quotes erd
6394 \end_inset
6395
6396  pipe is left in existence when \SpecialChar LyX
6397  closes, then \SpecialChar LyX
6398  will try to delete it.
6399  If this fails for some reason, you will need to delete the pipes manually
6400  and then restart \SpecialChar LyX
6401 .
6402  On Windows, pipes are deleted by the OS on program termination or crash,
6403  so 
6404 \begin_inset Quotes eld
6405 \end_inset
6406
6407 stale
6408 \begin_inset Quotes erd
6409 \end_inset
6410
6411  pipes should not be possible.
6412 \end_layout
6413
6414 \begin_layout Standard
6415 To have several \SpecialChar LyX
6416  processes with servers at the same time, you have to use
6417  different configurations, perhaps by using separate user directories, each
6418  with its own 
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 preferences
6424 \end_layout
6425
6426 \end_inset
6427
6428  file, for each process.
6429 \end_layout
6430
6431 \begin_layout Standard
6432 If you are developing a client program, you might find it useful to enable
6433  debugging information from the \SpecialChar LyX
6434  server.
6435  Do this by starting \SpecialChar LyX
6436  as 
6437 \begin_inset Flex Code
6438 status collapsed
6439
6440 \begin_layout Plain Layout
6441 lyx -dbg lyxserver
6442 \end_layout
6443
6444 \end_inset
6445
6446 .
6447 \end_layout
6448
6449 \begin_layout Standard
6450 You can find a complete example client written in C++ in the source distribution
6451  as 
6452 \begin_inset Flex Code
6453 status collapsed
6454
6455 \begin_layout Plain Layout
6456 development/lyxserver/server_monitor.cpp
6457 \end_layout
6458
6459 \end_inset
6460
6461 .
6462 \end_layout
6463
6464 \begin_layout Standard
6465 Another useful tool is the command-line based client found in 
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 src/client/lyxclient
6471 \end_layout
6472
6473 \end_inset
6474
6475 .
6476 \end_layout
6477
6478 \begin_layout Section
6479 Normal communication
6480 \end_layout
6481
6482 \begin_layout Standard
6483 To issue a \SpecialChar LyX
6484  call, the client writes a line of ASCII text into the input
6485  pipe.
6486  This line has the following format:
6487 \end_layout
6488
6489 \begin_layout Quote
6490 LYXCMD:
6491 \emph on
6492 clientname
6493 \emph default
6494 :
6495 \emph on
6496 function
6497 \emph default
6498 :
6499 \emph on
6500 argument
6501 \end_layout
6502
6503 \begin_layout Description
6504 clientname is a name that the client can choose arbitrarily.
6505  Its only use is that \SpecialChar LyX
6506  will echo it if it sends an answer—so a client can
6507  dispatch results from different requesters.
6508 \end_layout
6509
6510 \begin_layout Description
6511 function is the function you want \SpecialChar LyX
6512  to perform.
6513  It is the same as the commands you'd use in the minibuffer.
6514 \end_layout
6515
6516 \begin_layout Description
6517 argument is an optional argument which is meaningful only to some functions
6518  (for instance, the 
6519 \begin_inset Quotes eld
6520 \end_inset
6521
6522 self-insert
6523 \begin_inset Quotes erd
6524 \end_inset
6525
6526  LFUN will insert the argument as text at the cursor position).
6527 \end_layout
6528
6529 \begin_layout Standard
6530 The answer from \SpecialChar LyX
6531  will arrive in the output pipe and be of the form
6532 \end_layout
6533
6534 \begin_layout Quote
6535 INFO:
6536 \emph on
6537 clientname
6538 \emph default
6539 :
6540 \emph on
6541 function
6542 \emph default
6543 :
6544 \emph on
6545 data
6546 \end_layout
6547
6548 \begin_layout Standard
6549 where 
6550 \emph on
6551 clientname
6552 \emph default
6553  and 
6554 \emph on
6555 function
6556 \emph default
6557  are just echoed from the command request, while 
6558 \emph on
6559 data
6560 \emph default
6561  is more or less useful information filled according to how the command
6562  execution worked out.
6563  Some commands, such as 
6564 \begin_inset Quotes eld
6565 \end_inset
6566
6567 font-state
6568 \begin_inset Quotes erd
6569 \end_inset
6570
6571 , will return information about the internal state of \SpecialChar LyX
6572 , while other will
6573  return an empty data-response.
6574  This means that the command execution went fine.
6575 \end_layout
6576
6577 \begin_layout Standard
6578 In case of errors, the response from \SpecialChar LyX
6579  will have this form
6580 \end_layout
6581
6582 \begin_layout Quote
6583 ERROR:
6584 \emph on
6585 clientname
6586 \emph default
6587 :
6588 \emph on
6589 function
6590 \emph default
6591 :
6592 \emph on
6593 error message
6594 \end_layout
6595
6596 \begin_layout Standard
6597 where the 
6598 \emph on
6599 error message
6600 \emph default
6601  should contain an explanation of why the command failed.
6602 \end_layout
6603
6604 \begin_layout Standard
6605 Examples:
6606 \end_layout
6607
6608 \begin_layout LyX-Code
6609 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6610 \begin_inset Newline newline
6611 \end_inset
6612
6613 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6614 \begin_inset Newline newline
6615 \end_inset
6616
6617 read a <~/.lyxpipe.out
6618 \begin_inset Newline newline
6619 \end_inset
6620
6621 echo $a
6622 \end_layout
6623
6624 \begin_layout Subsection
6625 AppleScript (Mac OS X)
6626 \end_layout
6627
6628 \begin_layout Standard
6629 Since \SpecialChar LyX
6630  2.1, \SpecialChar LyX
6631  supports basic interactions with AppleScript for normal communicatio
6632 n through the command run.
6633  This command takes a direct argument (the 
6634 \series bold
6635 function
6636 \series default
6637  to perform) and an optional argument.
6638  It either returns the output of the function or triggers an error with
6639  the error message and code.
6640 \end_layout
6641
6642 \begin_layout Standard
6643 Example:
6644 \end_layout
6645
6646 \begin_layout LyX-Code
6647 tell application "\SpecialChar LyX
6648 "
6649 \end_layout
6650
6651 \begin_layout LyX-Code
6652   try
6653 \end_layout
6654
6655 \begin_layout LyX-Code
6656     -- Stores the current file name into f
6657 \end_layout
6658
6659 \begin_layout LyX-Code
6660     set f to (run "server-get-filename" with argument "")
6661 \end_layout
6662
6663 \begin_layout LyX-Code
6664     on error the error_message number the error_number
6665 \end_layout
6666
6667 \begin_layout LyX-Code
6668       display dialog "Error: " & the error_number & ".
6669  " ¬
6670 \end_layout
6671
6672 \begin_layout LyX-Code
6673               & the error_message buttons {"OK"} default button 1
6674 \end_layout
6675
6676 \begin_layout LyX-Code
6677   end try
6678 \end_layout
6679
6680 \begin_layout LyX-Code
6681 end tell
6682 \end_layout
6683
6684 \begin_layout Section
6685 Notification
6686 \end_layout
6687
6688 \begin_layout Standard
6689 \SpecialChar LyX
6690  can notify clients of events going on asynchronously.
6691  Currently it will only do this if the user binds a key sequence with the
6692  function 
6693 \begin_inset Quotes eld
6694 \end_inset
6695
6696 notify
6697 \begin_inset Quotes erd
6698 \end_inset
6699
6700 .
6701  The format of the string \SpecialChar LyX
6702  sends is as follows:
6703 \end_layout
6704
6705 \begin_layout Quote
6706 \begin_inset Flex Code
6707 status collapsed
6708
6709 \begin_layout Plain Layout
6710 NOTIFY:
6711 \end_layout
6712
6713 \end_inset
6714
6715
6716 \emph on
6717 key-sequence
6718 \end_layout
6719
6720 \begin_layout Standard
6721 where 
6722 \emph on
6723 key-sequence
6724 \emph default
6725  is the printed representation of the key sequence that was actually typed
6726  by the user.
6727 \end_layout
6728
6729 \begin_layout Standard
6730 This mechanism can be used to extend \SpecialChar LyX
6731 's command set and implement macros.
6732  Bind some key sequence to 
6733 \begin_inset Quotes eld
6734 \end_inset
6735
6736 notify
6737 \begin_inset Quotes erd
6738 \end_inset
6739
6740 .
6741  Then start a client that listens on the output pipe, dispatches the command
6742  according to the sequence, and starts a function that may use \SpecialChar LyX
6743  calls and
6744  \SpecialChar LyX
6745  requests to issue a command or a series of commands to \SpecialChar LyX
6746 .
6747 \end_layout
6748
6749 \begin_layout Section
6750 The simple \SpecialChar LyX
6751  Server Protocol
6752 \end_layout
6753
6754 \begin_layout Standard
6755 \SpecialChar LyX
6756  implements a simple protocol that can be used for session management.
6757  All messages are of the form
6758 \end_layout
6759
6760 \begin_layout Quote
6761 LYXSRV:
6762 \emph on
6763 clientname
6764 \emph default
6765 :
6766 \emph on
6767 protocol message
6768 \end_layout
6769
6770 \begin_layout Standard
6771 where 
6772 \emph on
6773 protocol message
6774 \emph default
6775  can be 
6776 \begin_inset Quotes eld
6777 \end_inset
6778
6779 hello
6780 \begin_inset Quotes erd
6781 \end_inset
6782
6783  or 
6784 \begin_inset Quotes eld
6785 \end_inset
6786
6787 bye
6788 \begin_inset Quotes erd
6789 \end_inset
6790
6791 .
6792  If 
6793 \begin_inset Quotes eld
6794 \end_inset
6795
6796 hello
6797 \begin_inset Quotes erd
6798 \end_inset
6799
6800  is received from a client, \SpecialChar LyX
6801  will report back to inform the client that
6802  it's listening to it's messages, while 
6803 \begin_inset Quotes eld
6804 \end_inset
6805
6806 bye
6807 \begin_inset Quotes erd
6808 \end_inset
6809
6810  sent from \SpecialChar LyX
6811  will inform clients that \SpecialChar LyX
6812  is closing.
6813 \end_layout
6814
6815 \begin_layout Section
6816 Reverse DVI/PDF search
6817 \end_layout
6818
6819 \begin_layout Standard
6820 Some DVI/PDF viewers
6821 \begin_inset Foot
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6826  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6827 \end_layout
6828
6829 \end_inset
6830
6831  provide 
6832 \emph on
6833 reverse search
6834 \emph default
6835  facility (also called 
6836 \emph on
6837 inverse search
6838 \emph default
6839 ).
6840  This means that you can tell \SpecialChar LyX
6841  to put the cursor to a specific line in the
6842  document by clicking at the respective position in the DVI/PDF output.
6843  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6844 .
6845  This is done via the \SpecialChar LyX
6846  server either by using the named pipe (
6847 \emph on
6848 lyxpipe
6849 \emph default
6850 ), or the UNIX domain socket (
6851 \emph on
6852 lyxsocket
6853 \emph default
6854 ) that \SpecialChar LyX
6855  creates in its temporary directory (this is the way the 
6856 \begin_inset Flex Code
6857 status collapsed
6858
6859 \begin_layout Plain Layout
6860 lyxclient
6861 \end_layout
6862
6863 \end_inset
6864
6865  program communicates with \SpecialChar LyX
6866 ).
6867  In some cases, you need a helper script that mediates between the viewer
6868  and \SpecialChar LyX
6869 , in others, the viewer can communicate with \SpecialChar LyX
6870  directly.
6871  This depends on the selected viewer and on your operating system.
6872  The same applies to the way viewers need to be configured and the way the
6873  reverse search is actually performed.
6874  In what follows, we will thus describe how to setup reverse search for
6875  specific viewers.
6876  Before we turn to this, though, we will explain what needs to be done generally
6877  to enable reverse search in the DVI/PDF output.
6878 \end_layout
6879
6880 \begin_layout Subsection
6881 Automatic setup
6882 \begin_inset CommandInset label
6883 LatexCommand label
6884 name "subsec:rev-search"
6885
6886 \end_inset
6887
6888
6889 \end_layout
6890
6891 \begin_layout Standard
6892 In most cases \SpecialChar LyX
6893  will do the work for you by pressing the following button
6894  in the toolbar: 
6895 \begin_inset Info
6896 type  "icon"
6897 arg   "buffer-toggle-output-sync"
6898 \end_inset
6899
6900 .
6901  Alternatively, you can also enable the feature by checking 
6902 \family sans
6903 Synchronize with Output
6904 \family default
6905  in 
6906 \begin_inset Flex Noun
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910 Document\SpecialChar menuseparator
6911 Settings\SpecialChar menuseparator
6912 Formats
6913 \end_layout
6914
6915 \end_inset
6916
6917 .
6918  In such a case \SpecialChar LyX
6919  will automatically insert the necessary Sync\SpecialChar TeX
6920  macro (for
6921  PDF) or load the srcltx package (for DVI) respectively.
6922  This option can be easily reached also on 
6923 \begin_inset Flex Code
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927 View/Update
6928 \end_layout
6929
6930 \end_inset
6931
6932  Toolbar.
6933 \end_layout
6934
6935 \begin_layout Standard
6936 If you need a different setting, you can select or input a custom macro
6937  from the drop down box just below 
6938 \begin_inset Flex Noun
6939 status collapsed
6940
6941 \begin_layout Plain Layout
6942 Document\SpecialChar menuseparator
6943 Settings\SpecialChar menuseparator
6944 Output\SpecialChar menuseparator
6945 Synchronize with Output
6946 \end_layout
6947
6948 \end_inset
6949
6950 .
6951 \end_layout
6952
6953 \begin_layout Standard
6954 Note that the method 
6955 \begin_inset Flex Code
6956 status collapsed
6957
6958 \begin_layout Plain Layout
6959
6960 \backslash
6961 synctex=1
6962 \end_layout
6963
6964 \end_inset
6965
6966  enables gzip compression.
6967  If your viewer does not support it, you should instead use 
6968 \begin_inset Flex Code
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972
6973 \backslash
6974 synctex=-1
6975 \end_layout
6976
6977 \end_inset
6978
6979 .
6980 \end_layout
6981
6982 \begin_layout Standard
6983 Please also note that including the 
6984 \begin_inset Flex Code
6985 status collapsed
6986
6987 \begin_layout Plain Layout
6988 srcltx
6989 \end_layout
6990
6991 \end_inset
6992
6993  package or 
6994 \begin_inset Flex Code
6995 status collapsed
6996
6997 \begin_layout Plain Layout
6998 src-specials
6999 \end_layout
7000
7001 \end_inset
7002
7003  sometimes has an undesired impact on the typesetting.
7004  Thus, you should switch output synchronization off for the final typesetting
7005  if you use the 
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 srcltx
7011 \end_layout
7012
7013 \end_inset
7014
7015  package or 
7016 \begin_inset Flex Code
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 src-specials
7021 \end_layout
7022
7023 \end_inset
7024
7025 .
7026  
7027 \end_layout
7028
7029 \begin_layout Standard
7030 In case you need some more special settings that are not covered by the
7031  automatic settings, read the next section about how to set up output synchroniz
7032 ation manually.
7033  If the automatic setup suits your needs, you can readily jump to section
7034 \begin_inset space ~
7035 \end_inset
7036
7037
7038 \begin_inset CommandInset ref
7039 LatexCommand ref
7040 reference "subsec:configuring-viewers"
7041
7042 \end_inset
7043
7044 , where the necessary configuration steps in your viewer – needed both with
7045  the automatic and the manual setup – are described.
7046 \end_layout
7047
7048 \begin_layout Subsection
7049 Manual setup
7050 \end_layout
7051
7052 \begin_layout Standard
7053 \SpecialChar LaTeX
7054  provides several different methods for reverse search.
7055  Some are built-in in the 
7056 \begin_inset Flex Code
7057 status collapsed
7058
7059 \begin_layout Plain Layout
7060 latex/pdflatex
7061 \end_layout
7062
7063 \end_inset
7064
7065  program, some are provided by external packages.
7066  Your choice depends on whether your \SpecialChar LaTeX
7067  distribution already provides a given
7068  method (the built-in methods are rather new) and whether your viewer can
7069  cope with it.
7070  The available methods are described in the following.
7071 \end_layout
7072
7073 \begin_layout Subsubsection*
7074 Built-in DVI-search via src-specials (DVI only) 
7075 \end_layout
7076
7077 \begin_layout Standard
7078 This method provides the DVI file with the necessary information for reverse
7079  search.
7080  It is available in \SpecialChar LaTeX
7081  since quite some time (any somewhat recent \SpecialChar LaTeX
7082  distribution
7083  should include it), and it works reliably.
7084  To enable it, change the 
7085 \begin_inset Flex Noun
7086 status collapsed
7087
7088 \begin_layout Plain Layout
7089 La
7090 \family sans
7091 TeX
7092 \family default
7093  (plain)->DVI
7094 \end_layout
7095
7096 \end_inset
7097
7098  or 
7099 \begin_inset Flex Noun
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 La
7104 \family sans
7105 TeX
7106 \family default
7107  (plain)->DraftDVI
7108 \end_layout
7109
7110 \end_inset
7111
7112  converter in 
7113 \begin_inset Flex Noun
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 Preferences\SpecialChar menuseparator
7118 File Handling\SpecialChar menuseparator
7119 Converters
7120 \end_layout
7121
7122 \end_inset
7123
7124  to 
7125 \begin_inset Flex Code
7126 status collapsed
7127
7128 \begin_layout Plain Layout
7129 latex -src-specials $$i
7130 \end_layout
7131
7132 \end_inset
7133
7134 .
7135  If this doesn't work, check if your \SpecialChar TeX
7136  engine needs different options (the
7137  syntax might differ in some distributions).
7138 \end_layout
7139
7140 \begin_layout Subsubsection*
7141 External Packages (PDFSync and scrltx) 
7142 \end_layout
7143
7144 \begin_layout Standard
7145 The packages 
7146 \emph on
7147 pdfsync
7148 \emph default
7149  and 
7150 \emph on
7151 scrltx
7152 \emph default
7153  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7154  respectively.
7155  In order to enable it, load the packages in the \SpecialChar LyX
7156  preamble: 
7157 \end_layout
7158
7159 \begin_layout Itemize
7160 \begin_inset Flex Code
7161 status collapsed
7162
7163 \begin_layout Plain Layout
7164
7165 \backslash
7166 usepackage{pdfsync}
7167 \end_layout
7168
7169 \end_inset
7170
7171  for reverse PDF search,
7172 \end_layout
7173
7174 \begin_layout Itemize
7175 \begin_inset Flex Code
7176 status collapsed
7177
7178 \begin_layout Plain Layout
7179
7180 \backslash
7181 usepackage[active]{srcltx}
7182 \end_layout
7183
7184 \end_inset
7185
7186  for reverse DVI search.
7187 \end_layout
7188
7189 \begin_layout Standard
7190 If you want to be able to perform both DVI and PDF reverse searches, you
7191  can also insert in the preamble the following lines
7192 \end_layout
7193
7194 \begin_layout LyX-Code
7195
7196 \backslash
7197 usepackage{ifpdf}
7198 \begin_inset Newline newline
7199 \end_inset
7200
7201
7202 \backslash
7203 ifpdf
7204 \begin_inset Newline newline
7205 \end_inset
7206
7207   
7208 \backslash
7209 usepackage{pdfsync}
7210 \begin_inset Newline newline
7211 \end_inset
7212
7213
7214 \backslash
7215 else
7216 \begin_inset Newline newline
7217 \end_inset
7218
7219   
7220 \backslash
7221 usepackage[active]{srcltx}
7222 \begin_inset Newline newline
7223 \end_inset
7224
7225
7226 \backslash
7227 fi
7228 \end_layout
7229
7230 \begin_layout Standard
7231 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7232  right package will be used.
7233 \end_layout
7234
7235 \begin_layout Standard
7236 Note that PDFSync might affect the output layout of your document.
7237  It is therefore advised to disable PDFsync for final documents.
7238 \end_layout
7239
7240 \begin_layout Subsubsection*
7241 Built-in reverse search via Sync\SpecialChar TeX
7242  (DVI and PDF) 
7243 \end_layout
7244
7245 \begin_layout Standard
7246 Recent versions of 
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 (pdf)latex
7252 \end_layout
7253
7254 \end_inset
7255
7256  have built-in support for both PDF and DVI reverse search.
7257  This so-called 
7258 \emph on
7259 Sync\SpecialChar TeX
7260
7261 \emph default
7262  facility is basically the result of the integration of the PDFSync package
7263  to the pdftex program and its merge with the 
7264 \emph on
7265 scr-specials
7266 \emph default
7267  approach.
7268  You need at least \SpecialChar TeX
7269 Live 2008 or a recent Mik\SpecialChar TeX
7270  distribution in order to use
7271  it.
7272 \begin_inset Foot
7273 status collapsed
7274
7275 \begin_layout Plain Layout
7276 For some reason, Mik\SpecialChar TeX
7277  does not understand/obey the command \SpecialChar LyX
7278  inserts into
7279  the preamble when you check the "Enable Forward/Reverse Search" button
7280  in the toolbar and does not generate the necessary info.
7281 \end_layout
7282
7283 \begin_layout Plain Layout
7284 The generation of the required info can be forced by changing the converter
7285  "\SpecialChar LaTeX
7286  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7287  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7288  the -synctex=1 switch).
7289 \end_layout
7290
7291 \end_inset
7292
7293  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7294  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7295  already provide Sync\SpecialChar TeX
7296  support.
7297 \end_layout
7298
7299 \begin_layout Standard
7300 To enable Sync\SpecialChar TeX
7301  for DVI output, change the 
7302 \begin_inset Flex Noun
7303 status collapsed
7304
7305 \begin_layout Plain Layout
7306 La
7307 \family sans
7308 TeX
7309 \family default
7310  (plain) -> DVI
7311 \end_layout
7312
7313 \end_inset
7314
7315  or 
7316 \begin_inset Flex Noun
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320 La
7321 \family sans
7322 TeX
7323 \family default
7324  (plain) -> DraftDVI
7325 \end_layout
7326
7327 \end_inset
7328
7329  converter in 
7330 \begin_inset Flex Noun
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 Preferences\SpecialChar menuseparator
7335 File Handling\SpecialChar menuseparator
7336 Converters
7337 \end_layout
7338
7339 \end_inset
7340
7341  to 
7342 \begin_inset Flex Code
7343 status collapsed
7344
7345 \begin_layout Plain Layout
7346 latex -synctex=1 $$i
7347 \end_layout
7348
7349 \end_inset
7350
7351 , and for PDF output, change the 
7352 \begin_inset Flex Noun
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356 La
7357 \family sans
7358 TeX
7359 \family default
7360  (pdflatex) -> PDF (pdflatex)
7361 \end_layout
7362
7363 \end_inset
7364
7365  converter to 
7366 \begin_inset Flex Code
7367 status collapsed
7368
7369 \begin_layout Plain Layout
7370 pdflatex -synctex=1 $$i
7371 \end_layout
7372
7373 \end_inset
7374
7375 .
7376  Should your viewer not be considered in the following description, or in
7377  case of missing success, please check the documentation of your viewer
7378  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7379 .
7380 \begin_inset Foot
7381 status collapsed
7382
7383 \begin_layout Plain Layout
7384 Note that the option 
7385 \begin_inset Flex Code
7386 status collapsed
7387
7388 \begin_layout Plain Layout
7389 -synctex=1
7390 \end_layout
7391
7392 \end_inset
7393
7394  option enables gzip compression.
7395  If your viewer does not support it, you should instead use 
7396 \begin_inset Flex Code
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 -synctex=-1
7401 \end_layout
7402
7403 \end_inset
7404
7405 .
7406 \end_layout
7407
7408 \end_inset
7409
7410
7411 \end_layout
7412
7413 \begin_layout Subsection
7414 Configuring and using specific viewers
7415 \begin_inset CommandInset label
7416 LatexCommand label
7417 name "subsec:configuring-viewers"
7418
7419 \end_inset
7420
7421
7422 \end_layout
7423
7424 \begin_layout Subsubsection*
7425 Xdvi (all platforms)
7426 \end_layout
7427
7428 \begin_layout Standard
7429 If you use 
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 xdvi
7435 \end_layout
7436
7437 \end_inset
7438
7439 , you don't need to do anything else for performing a reverse DVI search,
7440  as \SpecialChar LyX
7441  already provides the necessary hooks for automatically using the 
7442 \begin_inset Flex Code
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 lyxclient
7447 \end_layout
7448
7449 \end_inset
7450
7451  program.
7452  Just setup your document as described above (reverse search is triggered
7453  by Ctrl-click or Alt-click on Mac OSX, respectively).
7454 \end_layout
7455
7456 \begin_layout Standard
7457 However, if for whatever reason you want to use the named pipe instead of
7458  the socket for communicating with \SpecialChar LyX
7459 , simply change the DVI viewer in 
7460 \begin_inset Flex Noun
7461 status collapsed
7462
7463 \begin_layout Plain Layout
7464 Preferences\SpecialChar menuseparator
7465 File Handling\SpecialChar menuseparator
7466 File formats
7467 \end_layout
7468
7469 \end_inset
7470
7471  to
7472 \begin_inset Foot
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 On Mac OSX you have to use 
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7482 \end_layout
7483
7484 \end_inset
7485
7486
7487 \end_layout
7488
7489 \end_inset
7490
7491  
7492 \begin_inset Flex Code
7493 status collapsed
7494
7495 \begin_layout Plain Layout
7496 xdvi -editor "lyxeditor.sh %f %l"
7497 \end_layout
7498
7499 \end_inset
7500
7501 , where 
7502 \begin_inset Flex Code
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506 lyxeditor.sh
7507 \end_layout
7508
7509 \end_inset
7510
7511  is a suitable script.
7512  For example, a minimal shell script is the following one:
7513 \end_layout
7514
7515 \begin_layout LyX-Code
7516 #!/bin/sh
7517 \begin_inset Newline newline
7518 \end_inset
7519
7520 LYXPIPE="/path/to/lyxpipe"
7521 \begin_inset Newline newline
7522 \end_inset
7523
7524 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7525 \begin_inset Newline newline
7526 \end_inset
7527
7528 echo "$COMMAND" > "${LYXPIPE}".in || exit
7529 \begin_inset Newline newline
7530 \end_inset
7531
7532 read TMP < "${LYXPIPE}".out || exit
7533 \end_layout
7534
7535 \begin_layout Standard
7536 where 
7537 \begin_inset Flex Code
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 /path/to/lyxpipe
7542 \end_layout
7543
7544 \end_inset
7545
7546  is the LyXServer pipe path specified in 
7547 \begin_inset Flex Noun
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551 Preferences\SpecialChar menuseparator
7552 Paths
7553 \end_layout
7554
7555 \end_inset
7556
7557 .
7558 \begin_inset Foot
7559 status collapsed
7560
7561 \begin_layout Plain Layout
7562 In the 
7563 \begin_inset Flex Code
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 development/tools
7568 \end_layout
7569
7570 \end_inset
7571
7572  folder of a source distribution you can find a 
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577 lyxeditor
7578 \end_layout
7579
7580 \end_inset
7581
7582  script which is able to locate the 
7583 \emph on
7584 lyxpipe
7585 \emph default
7586  based on your preferences.
7587 \end_layout
7588
7589 \end_inset
7590
7591
7592 \end_layout
7593
7594 \begin_layout Subsubsection*
7595 MacDviX (Mac OSX)
7596 \end_layout
7597
7598 \begin_layout Standard
7599 At the end of 
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 /Applications/MacDviX_Folder/calleditor.script
7605 \end_layout
7606
7607 \end_inset
7608
7609 , add the following lines:
7610 \end_layout
7611
7612 \begin_layout LyX-Code
7613 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7614 \begin_inset Newline newline
7615 \end_inset
7616
7617 exit 1
7618 \end_layout
7619
7620 \begin_layout Standard
7621 Modify the lines accordingly if you install \SpecialChar LyX
7622  somewhere else than in the
7623  Applications folder.
7624 \end_layout
7625
7626 \begin_layout Standard
7627 Reverse search is triggered by Alt-click (OPTION-click).
7628 \end_layout
7629
7630 \begin_layout Subsubsection*
7631 Skim (Mac OSX)
7632 \end_layout
7633
7634 \begin_layout Standard
7635 Enter 
7636 \begin_inset Flex Code
7637 status collapsed
7638
7639 \begin_layout Plain Layout
7640 open -a Skim.app $$i
7641 \end_layout
7642
7643 \end_inset
7644
7645  to the viewer setting in 
7646 \begin_inset Flex Noun
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 Preferences\SpecialChar menuseparator
7651 File Handling\SpecialChar menuseparator
7652 File formats\SpecialChar menuseparator
7653 PDF (pdflatex)
7654 \end_layout
7655
7656 \end_inset
7657
7658 , and then in 
7659 \begin_inset Flex Noun
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 Skim\SpecialChar menuseparator
7664 Preferences\SpecialChar menuseparator
7665 Sync
7666 \end_layout
7667
7668 \end_inset
7669
7670  choose 
7671 \begin_inset Flex Noun
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 custom
7676 \end_layout
7677
7678 \end_inset
7679
7680  preset and enter command 
7681 \begin_inset Flex Noun
7682 status collapsed
7683
7684 \begin_layout Plain Layout
7685 /Applications/\SpecialChar LyX
7686 .app/Contents/MacOS/lyxeditor
7687 \end_layout
7688
7689 \end_inset
7690
7691 .
7692 \end_layout
7693
7694 \begin_layout Standard
7695 Reverse search is triggered by COMMAND-SHIFT-click
7696 \end_layout
7697
7698 \begin_layout Subsubsection*
7699 Evince (GNOME)
7700 \end_layout
7701
7702 \begin_layout Standard
7703 Reverse search with evince does not work out of the box, but it can be achieved
7704  by means of some third party helper scripts.
7705  Please refer to 
7706 \begin_inset CommandInset href
7707 LatexCommand href
7708 target "https://wiki.lyx.org/LyX/SyncTeX"
7709 literal "false"
7710
7711 \end_inset
7712
7713  for details.
7714 \end_layout
7715
7716 \begin_layout Subsubsection*
7717 Okular (KDE)
7718 \end_layout
7719
7720 \begin_layout Standard
7721 Go to 
7722 \begin_inset Flex Noun
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 Settings\SpecialChar menuseparator
7727 Configure Okular\SpecialChar menuseparator
7728 Editor
7729 \end_layout
7730
7731 \end_inset
7732
7733  and select LyX
7734 \begin_inset Quotes erd
7735 \end_inset
7736
7737  as editor.
7738  This inserts the appropriate command (
7739 \begin_inset Flex Code
7740 status collapsed
7741
7742 \begin_layout Plain Layout
7743 lyxclient -g %f %l
7744 \end_layout
7745
7746 \end_inset
7747
7748 ).
7749 \end_layout
7750
7751 \begin_layout Standard
7752 Reverse search is triggered by SHIFT-click.
7753
7754 \change_inserted -712698321 1578211026
7755  Note that this only works if Okular is in 
7756 \begin_inset Quotes eld
7757 \end_inset
7758
7759 Browse
7760 \begin_inset Quotes erd
7761 \end_inset
7762
7763  mode (i.
7764 \begin_inset space \thinspace{}
7765 \end_inset
7766
7767 e., the hand symbol is clicked).
7768 \change_unchanged
7769
7770 \end_layout
7771
7772 \begin_layout Subsubsection*
7773 Qpdfview (Unix)
7774 \end_layout
7775
7776 \begin_layout Standard
7777 Qpdfview supports Sync\SpecialChar TeX
7778  since version 0.3.5.
7779  Go to 
7780 \begin_inset Flex Noun
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784 Edit\SpecialChar menuseparator
7785 Settings\SpecialChar menuseparator
7786 Behavior
7787 \end_layout
7788
7789 \end_inset
7790
7791 , click on the input field of the 
7792 \begin_inset Quotes eld
7793 \end_inset
7794
7795 Source editor
7796 \begin_inset Quotes erd
7797 \end_inset
7798
7799  item and add the command 
7800 \begin_inset Flex Code
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 lyxclient -g %1 %2
7805 \end_layout
7806
7807 \end_inset
7808
7809 .
7810 \end_layout
7811
7812 \begin_layout Standard
7813 Reverse search is triggered by double-click or, in more recent versions,
7814  by context menu.
7815 \end_layout
7816
7817 \begin_layout Subsubsection*
7818 YAP (Windows)
7819 \end_layout
7820
7821 \begin_layout Standard
7822 Launch yap, choose its 
7823 \begin_inset Flex Noun
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 View\SpecialChar menuseparator
7828 Options
7829 \end_layout
7830
7831 \end_inset
7832
7833  menu and select the 
7834 \begin_inset Quotes eld
7835 \end_inset
7836
7837 Inverse DVI Search
7838 \begin_inset Quotes erd
7839 \end_inset
7840
7841  tab.
7842  Click on the 
7843 \begin_inset Quotes eld
7844 \end_inset
7845
7846 New\SpecialChar ldots
7847
7848 \begin_inset Quotes erd
7849 \end_inset
7850
7851  button and, in the window that opens, enter 
7852 \begin_inset Quotes eld
7853 \end_inset
7854
7855 \SpecialChar LyX
7856  Editor
7857 \begin_inset Quotes erd
7858 \end_inset
7859
7860  (or any other name you like) in the 
7861 \begin_inset Quotes eld
7862 \end_inset
7863
7864 Name:
7865 \begin_inset Quotes erd
7866 \end_inset
7867
7868  field.
7869  Now click on the button labeled 
7870 \begin_inset Quotes eld
7871 \end_inset
7872
7873 \SpecialChar ldots
7874
7875 \begin_inset Quotes erd
7876 \end_inset
7877
7878  to open a file dialog and navigate to the directory containing the batch
7879  file 
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 lyxeditor.bat
7885 \end_layout
7886
7887 \end_inset
7888
7889  (see below).
7890  Select 
7891 \begin_inset Flex Code
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 lyxeditor.bat
7896 \end_layout
7897
7898 \end_inset
7899
7900  and then specify the program arguments as 
7901 \begin_inset Flex Code
7902 status collapsed
7903
7904 \begin_layout Plain Layout
7905 %f %l
7906 \end_layout
7907
7908 \end_inset
7909
7910 .
7911  The 
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 lyxeditor.bat
7917 \end_layout
7918
7919 \end_inset
7920
7921  wrapper is used for communicating with \SpecialChar LyX
7922  through the 
7923 \emph on
7924 lyxpipe
7925 \emph default
7926  and is as follows:
7927 \end_layout
7928
7929 \begin_layout LyX-Code
7930 @echo off
7931 \begin_inset Newline newline
7932 \end_inset
7933
7934 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7935 \backslash
7936
7937 \backslash
7938 .
7939 \backslash
7940 pipe
7941 \backslash
7942 lyxpipe.in
7943 \begin_inset Newline newline
7944 \end_inset
7945
7946 type 
7947 \backslash
7948
7949 \backslash
7950 .
7951 \backslash
7952 pipe
7953 \backslash
7954 lyxpipe.out
7955 \end_layout
7956
7957 \begin_layout Standard
7958 Make sure that the \SpecialChar LyX
7959 Server pipe path you specified in \SpecialChar LyX
7960  is 
7961 \begin_inset Flex Code
7962 status collapsed
7963
7964 \begin_layout Plain Layout
7965
7966 \backslash
7967
7968 \backslash
7969 .
7970 \backslash
7971 pipe
7972 \backslash
7973 lyxpipe
7974 \end_layout
7975
7976 \end_inset
7977
7978 , otherwise change the 
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 lyxeditor.bat
7984 \end_layout
7985
7986 \end_inset
7987
7988  wrapper accordingly.
7989 \end_layout
7990
7991 \begin_layout Standard
7992 In yap, reverse search is triggered by double-click.
7993 \end_layout
7994
7995 \begin_layout Subsubsection*
7996 SumatraPDF (Windows)
7997 \end_layout
7998
7999 \begin_layout Standard
8000 In order to use SumatraPDF for inverse search, enter 
8001 \begin_inset Flex Code
8002 status collapsed
8003
8004 \begin_layout Plain Layout
8005 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8006 \end_layout
8007
8008 \end_inset
8009
8010  in the viewer setting in 
8011 \begin_inset Flex Noun
8012 status collapsed
8013
8014 \begin_layout Plain Layout
8015 Preferences\SpecialChar menuseparator
8016 File Handling\SpecialChar menuseparator
8017 File formats\SpecialChar menuseparator
8018 PDF (pdflatex)
8019 \end_layout
8020
8021 \end_inset
8022
8023 , where 
8024 \begin_inset Flex Code
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028 lyxeditor.bat
8029 \end_layout
8030
8031 \end_inset
8032
8033  is the previous wrapper.
8034  If SumatraPDF.exe is not in your command PATH, use its full file name.
8035 \end_layout
8036
8037 \begin_layout Standard
8038 Reverse search is triggered by double-click.
8039 \end_layout
8040
8041 \begin_layout Subsubsection*
8042 YAP (Cygwin)
8043 \end_layout
8044
8045 \begin_layout Standard
8046 First of all, make sure that yap is your default DVI viewer in the Windows
8047  environment, then launch it, choose its 
8048 \begin_inset Flex Noun
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 View\SpecialChar menuseparator
8053 Options
8054 \end_layout
8055
8056 \end_inset
8057
8058  menu and select the 
8059 \begin_inset Quotes eld
8060 \end_inset
8061
8062 Inverse DVI Search
8063 \begin_inset Quotes erd
8064 \end_inset
8065
8066  tab.
8067  Click on the 
8068 \begin_inset Quotes eld
8069 \end_inset
8070
8071 New\SpecialChar ldots
8072
8073 \begin_inset Quotes erd
8074 \end_inset
8075
8076  button and, in the window that opens, enter 
8077 \begin_inset Quotes eld
8078 \end_inset
8079
8080 \SpecialChar LyX
8081  Editor
8082 \begin_inset Quotes erd
8083 \end_inset
8084
8085  (or any other name you like) in the 
8086 \begin_inset Quotes eld
8087 \end_inset
8088
8089 Name:
8090 \begin_inset Quotes erd
8091 \end_inset
8092
8093  field.
8094  Now click on the button labeled 
8095 \begin_inset Quotes eld
8096 \end_inset
8097
8098 \SpecialChar ldots
8099
8100 \begin_inset Quotes erd
8101 \end_inset
8102
8103  to open a file dialog and navigate to the directory containing the 
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 lyxeditor.exe
8109 \end_layout
8110
8111 \end_inset
8112
8113  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8114  executable).
8115  Select 
8116 \begin_inset Flex Code
8117 status collapsed
8118
8119 \begin_layout Plain Layout
8120 lyxeditor.exe
8121 \end_layout
8122
8123 \end_inset
8124
8125  and then specify the program arguments as 
8126 \begin_inset Flex Code
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 -g %f %l
8131 \end_layout
8132
8133 \end_inset
8134
8135 .
8136  In this way, you will be using the 
8137 \emph on
8138 lyxsocket
8139 \emph default
8140  for communicating with \SpecialChar LyX
8141 .
8142  If, for whatever reason, you want to use the 
8143 \emph on
8144 lyxpipe
8145 \emph default
8146 , omit the 
8147 \begin_inset Flex Code
8148 status collapsed
8149
8150 \begin_layout Plain Layout
8151 -g
8152 \end_layout
8153
8154 \end_inset
8155
8156  option and be sure to specify the \SpecialChar LyX
8157 Server pipe path in the \SpecialChar LyX
8158  preferences.
8159 \end_layout
8160
8161 \begin_layout Standard
8162 In yap, reverse search is triggered by double-click.
8163 \end_layout
8164
8165 \begin_layout Subsubsection*
8166 SumatraPDF (Cygwin)
8167 \end_layout
8168
8169 \begin_layout Standard
8170 In order to use SumatraPDF for inverse search, enter 
8171 \begin_inset Flex Code
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8176 \end_layout
8177
8178 \end_inset
8179
8180  in the viewer setting in 
8181 \begin_inset Flex Noun
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 Preferences\SpecialChar menuseparator
8186 File Handling\SpecialChar menuseparator
8187 File formats\SpecialChar menuseparator
8188 PDF (pdflatex)
8189 \end_layout
8190
8191 \end_inset
8192
8193 .
8194  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8195  The 
8196 \begin_inset Flex Code
8197 status collapsed
8198
8199 \begin_layout Plain Layout
8200 -g
8201 \end_layout
8202
8203 \end_inset
8204
8205  enables communication via the 
8206 \emph on
8207 lyxsocket
8208 \emph default
8209 .
8210  Again, omit the 
8211 \begin_inset Flex Code
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 -g
8216 \end_layout
8217
8218 \end_inset
8219
8220  option if you want to use the 
8221 \emph on
8222 lyxpipe
8223 \emph default
8224 , and be sure to specify the \SpecialChar LyX
8225 Server pipe path in the \SpecialChar LyX
8226  preferences.
8227 \end_layout
8228
8229 \begin_layout Standard
8230 Reverse search is triggered by double-click.
8231 \end_layout
8232
8233 \begin_layout Section
8234 Forward search
8235 \end_layout
8236
8237 \begin_layout Standard
8238 Forward search is, as the name implies, in a sense the 
8239 \begin_inset Quotes eld
8240 \end_inset
8241
8242 opposite
8243 \begin_inset Quotes erd
8244 \end_inset
8245
8246  of reverse search.
8247  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8248 .
8249  If forward search is set up (as described in what follows), you can put
8250  the cursor anywhere in your \SpecialChar LyX
8251  document, and hit 
8252 \begin_inset Flex Noun
8253 status collapsed
8254
8255 \begin_layout Plain Layout
8256 Navigate\SpecialChar menuseparator
8257 Forward search
8258 \end_layout
8259
8260 \end_inset
8261
8262  (or select 
8263 \begin_inset Flex Noun
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 Forward search
8268 \end_layout
8269
8270 \end_inset
8271
8272  in the context menu via right mouse click), and then the viewer will jump
8273  to that position as well.
8274  This implies, of course, that your viewer supports this function.
8275 \end_layout
8276
8277 \begin_layout Standard
8278 To make forward search possible, you first need to provide the generated
8279  output PDF/DVI file with additional information about the \SpecialChar TeX
8280  sources.
8281  This can be done via the methods described in the section 
8282 \begin_inset CommandInset ref
8283 LatexCommand ref
8284 reference "subsec:rev-search"
8285
8286 \end_inset
8287
8288 .
8289 \end_layout
8290
8291 \begin_layout Standard
8292 Additionally, you need to configure \SpecialChar LyX
8293  for using your viewers in 
8294 \begin_inset Flex Noun
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 Tools\SpecialChar menuseparator
8299 Preferences\SpecialChar menuseparator
8300 Output\SpecialChar menuseparator
8301 General
8302 \end_layout
8303
8304 \end_inset
8305
8306 .
8307  We provide a range of tested configurations for some viewers, which you
8308  can select from the drop down list.
8309  If none of these configurations suits you, you have to find out and enter
8310  a suitable configuration yourself.
8311  The definition syntax uses the following placeholders:
8312 \end_layout
8313
8314 \begin_layout Itemize
8315 \noindent
8316 \begin_inset Flex Code
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 $$n
8321 \end_layout
8322
8323 \end_inset
8324
8325 : row number
8326 \end_layout
8327
8328 \begin_layout Itemize
8329 \noindent
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 $$t
8335 \end_layout
8336
8337 \end_inset
8338
8339 : name of the (temporary) exported .tex file (without path)
8340 \end_layout
8341
8342 \begin_layout Itemize
8343 \noindent
8344 \begin_inset Flex Code
8345 status collapsed
8346
8347 \begin_layout Plain Layout
8348 $$f
8349 \end_layout
8350
8351 \end_inset
8352
8353 : name of the (temporary) exported .tex file (including path)
8354 \end_layout
8355
8356 \begin_layout Itemize
8357 \noindent
8358 \begin_inset Flex Code
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362 $$o
8363 \end_layout
8364
8365 \end_inset
8366
8367 : name of the exported output file (either dvi or pdf, depending on which
8368  one exists in the temporary directory)
8369 \end_layout
8370
8371 \begin_layout Standard
8372 Note that only some of the viewers provide full and usable forward search
8373  functionality out of the box, among them yap, xdvi, okular
8374 \begin_inset Foot
8375 status collapsed
8376
8377 \begin_layout Plain Layout
8378 You might want to set 
8379 \begin_inset Flex Code
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 okular --unique
8384 \end_layout
8385
8386 \end_inset
8387
8388  in 
8389 \begin_inset Flex Noun
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 Tools\SpecialChar menuseparator
8394 Preferences\SpecialChar menuseparator
8395 File Handling\SpecialChar menuseparator
8396 File
8397 \begin_inset space ~
8398 \end_inset
8399
8400 Formats
8401 \end_layout
8402
8403 \end_inset
8404
8405
8406 \end_layout
8407
8408 \end_inset
8409
8410 , qpdfview, and SumatraPDF
8411 \begin_inset Foot
8412 status collapsed
8413
8414 \begin_layout Plain Layout
8415 SumatraPDF can also use DDE commands through the external program CMCDDE
8416  — downloadable from 
8417 \begin_inset CommandInset href
8418 LatexCommand href
8419 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8420 literal "false"
8421
8422 \end_inset
8423
8424
8425 \end_layout
8426
8427 \end_inset
8428
8429 .
8430  Others, such as evince
8431 \begin_inset Foot
8432 status collapsed
8433
8434 \begin_layout Plain Layout
8435 Forward search with evince can be achieved by means of third party helper
8436  scripts.
8437  Please refer to 
8438 \begin_inset CommandInset href
8439 LatexCommand href
8440 target "https://wiki.lyx.org/LyX/SyncTeX"
8441 literal "false"
8442
8443 \end_inset
8444
8445  for details.
8446 \end_layout
8447
8448 \end_inset
8449
8450 , require some extra tools in order to use forward search.
8451  While many of the widespread PDF viewers (most notably Adobe Reader) do
8452  not support forward search at all, some other viewers – e.
8453 \begin_inset space \thinspace{}
8454 \end_inset
8455
8456 g.
8457  xpdf – allow at least to reload the document and jump to a specific page
8458  of the file, so you can at least navigate 
8459 \begin_inset Quotes eld
8460 \end_inset
8461
8462 near
8463 \begin_inset Quotes erd
8464 \end_inset
8465
8466 .
8467  This latter functionality is provided by an external call of synctex (see
8468  the predefined example configurations).
8469  
8470 \end_layout
8471
8472 \begin_layout Standard
8473 Forward search works both with DVI and PDF output.
8474  \SpecialChar LyX
8475  simply checks which preview format you have used before (i.
8476 \begin_inset space \thinspace{}
8477 \end_inset
8478
8479 e., which format is already there in the temporary directory) and chooses
8480  the appropriate configuration for the respective format.
8481 \end_layout
8482
8483 \begin_layout Chapter
8484 Special Document Classes
8485 \end_layout
8486
8487 \begin_layout Section
8488 A&A Paper
8489 \end_layout
8490
8491 \begin_layout Standard
8492 by 
8493 \noun on
8494 Peter Sütterlin
8495 \end_layout
8496
8497 \begin_layout Subsection
8498 Introduction
8499 \end_layout
8500
8501 \begin_layout Standard
8502 This section describes how \SpecialChar LyX
8503  can be used to write articles for submission
8504  to the scientific journal 
8505 \emph on
8506 Astronomy and Astrophysics
8507 \emph default
8508  (
8509 \begin_inset Flex URL
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513
8514 https://www.aanda.org/
8515 \end_layout
8516
8517 \end_inset
8518
8519 ) using Version 5.01 of the document class 
8520 \family typewriter
8521 aa.cls
8522 \family default
8523 .
8524  This package can be downloaded from the ftp site
8525 \end_layout
8526
8527 \begin_layout Standard
8528 \begin_inset VSpace medskip
8529 \end_inset
8530
8531
8532 \end_layout
8533
8534 \begin_layout Standard
8535 \align center
8536 \begin_inset Flex URL
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540
8541 ftp://ftp.edpsciences.org/pub/aa/readme.html
8542 \end_layout
8543
8544 \end_inset
8545
8546
8547 \end_layout
8548
8549 \begin_layout Standard
8550 \begin_inset VSpace medskip
8551 \end_inset
8552
8553
8554 \end_layout
8555
8556 \begin_layout Standard
8557 A manual comes together with that package, and this text is not meant to
8558  replace the original manual but is merely a short guide in how to realize
8559  the correct form of your paper.
8560  
8561 \end_layout
8562
8563 \begin_layout Standard
8564 Please note that the publisher of the journal was changed from Springer
8565  to EDP Sciences starting January 1, 2001.
8566  That change involved also some slight changes to the style files, namely
8567  the removal of the thesaurus command.
8568  The \SpecialChar LyX
8569  class aa supports the newest version of these style files, V 5.01.
8570  If you have an older version installed, please upgrade.
8571  For compatibility, the old (version 4) layout has been kept as 
8572 \family sans
8573 article (A&A V4)
8574 \family default
8575 .
8576  Please refer to the comments in 
8577 \family typewriter
8578 \SpecialChar LyX
8579 Dir/layouts/aapaper.layout
8580 \family default
8581 .
8582 \end_layout
8583
8584 \begin_layout Subsection
8585 Getting started
8586 \end_layout
8587
8588 \begin_layout Standard
8589 It is recommended you start from the example template distributed with \SpecialChar LyX
8590 .
8591  If you are not using a template, note the following settings:
8592 \end_layout
8593
8594 \begin_layout Itemize
8595 Select 
8596 \family sans
8597 article (A&A)
8598 \family default
8599  in the 
8600 \family sans
8601 Document\SpecialChar menuseparator
8602 Settings
8603 \family default
8604  dialog (OK, that one was obvious).
8605 \end_layout
8606
8607 \begin_layout Itemize
8608 Don't change the option 
8609 \family sans
8610 Page
8611 \begin_inset space ~
8612 \end_inset
8613
8614 style
8615 \family default
8616 : Leave it set to 
8617 \family sans
8618 default
8619 \family default
8620 .
8621  The whole layout is done by the macros, you shouldn't change anything.
8622 \end_layout
8623
8624 \begin_layout Subsection
8625 The header block
8626 \end_layout
8627
8628 \begin_layout Standard
8629 First thing to enter is the header information.
8630  It consists of seven entries, of which some are optional.
8631  They are
8632 \end_layout
8633
8634 \begin_layout Itemize
8635
8636 \family sans
8637 Title
8638 \family default
8639 : [required] 
8640 \end_layout
8641
8642 \begin_layout Itemize
8643
8644 \family sans
8645 Subtitle
8646 \family default
8647 : [optional] 
8648 \end_layout
8649
8650 \begin_layout Itemize
8651
8652 \family sans
8653 Author
8654 \family default
8655 : [required]
8656 \end_layout
8657
8658 \begin_layout Itemize
8659
8660 \family sans
8661 Address
8662 \family default
8663 : [required]
8664 \end_layout
8665
8666 \begin_layout Itemize
8667
8668 \family sans
8669 Offprints
8670 \family default
8671 : [optional] if more than one author: whom to contact for offprint requests.
8672 \end_layout
8673
8674 \begin_layout Itemize
8675
8676 \family sans
8677 Mail
8678 \family default
8679 : [optional] mail address for contacts.
8680 \end_layout
8681
8682 \begin_layout Itemize
8683
8684 \family sans
8685 Date
8686 \family default
8687 : [required].
8688  Suggested format is 
8689 \family typewriter
8690 Received: <date>; Accepted <date> 
8691 \end_layout
8692
8693 \begin_layout Standard
8694 There is no need to issue the 
8695 \family typewriter
8696
8697 \backslash
8698 maketitle
8699 \family default
8700  command, this is done automatically by \SpecialChar LyX
8701  when the header is finished.
8702  Although the order of the single header entries doesn't matter it is advised
8703  to keep the above sequence, just to get the best optics and meets the layout
8704  of the real document.
8705 \end_layout
8706
8707 \begin_layout Standard
8708 If you want to place footnotes in the header block, e.
8709 \begin_inset space \thinspace{}
8710 \end_inset
8711
8712 g.
8713 \begin_inset space \space{}
8714 \end_inset
8715
8716 to state your present address, just use the standard footnote via the menu
8717  
8718 \family sans
8719 Insert\SpecialChar menuseparator
8720 Footnote.
8721
8722 \family default
8723  \SpecialChar LyX
8724  will automagically use the term 
8725 \family typewriter
8726
8727 \backslash
8728 thanks{}
8729 \family default
8730  in that case.
8731 \end_layout
8732
8733 \begin_layout Standard
8734 Under 
8735 \family sans
8736 Edit\SpecialChar menuseparator
8737 Text Style
8738 \family default
8739 , you'll find two insets which are relevant for the titling:
8740 \end_layout
8741
8742 \begin_layout Itemize
8743
8744 \family sans
8745 Institute
8746 \family typewriter
8747  
8748 \family default
8749 to mark corresponding author\SpecialChar breakableslash
8750 institute pairs.
8751  The institutes are numbered sequentially as they appear in the 
8752 \family sans
8753 Address
8754 \family default
8755  field, so you have to put a marker to each author.
8756 \end_layout
8757
8758 \begin_layout Itemize
8759
8760 \family sans
8761 Email
8762 \family default
8763  to supply an email address for fast contact.
8764 \end_layout
8765
8766 \begin_layout Standard
8767 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8768  command that
8769  has no counterpart in \SpecialChar LyX
8770 :
8771 \end_layout
8772
8773 \begin_layout Itemize
8774
8775 \family typewriter
8776
8777 \backslash
8778 and
8779 \family default
8780  to separate different names for more than one author and institute, respectivel
8781 y.
8782 \end_layout
8783
8784 \begin_layout Standard
8785 The appropriate command has to be entered in \SpecialChar LyX
8786  and marked as \SpecialChar LaTeX
8787  code.
8788  See the examples.
8789  
8790 \end_layout
8791
8792 \begin_layout Subsection
8793 The abstract
8794 \end_layout
8795
8796 \begin_layout Standard
8797 The abstract should immediately follow the header block.
8798  With version 5 the abstract environment was changed to a command, and there
8799  is now a restriction to only one paragraph.
8800  In addition, it should contain an entry with the keywords.
8801  This is done via the paragraph style 
8802 \family sans
8803 Keywords
8804 \family default
8805 .
8806  Refer to the example paper.
8807 \end_layout
8808
8809 \begin_layout Subsection
8810 Supported environments
8811 \end_layout
8812
8813 \begin_layout Standard
8814 The A&A paper layout supports the following environments for structuring
8815  your text:
8816 \end_layout
8817
8818 \begin_layout Itemize
8819
8820 \family sans
8821 Standard
8822 \end_layout
8823
8824 \begin_layout Itemize
8825
8826 \family sans
8827 Section
8828 \end_layout
8829
8830 \begin_layout Itemize
8831
8832 \family sans
8833 Subsection
8834 \end_layout
8835
8836 \begin_layout Itemize
8837
8838 \family sans
8839 Subsubsection
8840 \end_layout
8841
8842 \begin_layout Itemize
8843
8844 \family sans
8845 Itemize
8846 \end_layout
8847
8848 \begin_layout Itemize
8849
8850 \family sans
8851 Enumerate
8852 \end_layout
8853
8854 \begin_layout Itemize
8855
8856 \family sans
8857 Description
8858 \end_layout
8859
8860 \begin_layout Itemize
8861
8862 \family sans
8863 Caption
8864 \end_layout
8865
8866 \begin_layout Itemize
8867
8868 \family sans
8869 Abstract
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family sans
8875 Acknowledgment
8876 \end_layout
8877
8878 \begin_layout Itemize
8879
8880 \family sans
8881 Bibliography
8882 \end_layout
8883
8884 \begin_layout Itemize
8885
8886 \family sans
8887 \SpecialChar LaTeX
8888
8889 \end_layout
8890
8891 \begin_layout Subsection
8892 Commands not supported by \SpecialChar LyX
8893
8894 \end_layout
8895
8896 \begin_layout Standard
8897 Some commands are not yet supported by the 
8898 \family sans
8899 paper (A&A)
8900 \family default
8901  layout for \SpecialChar LyX
8902 .
8903  Some have already been mentioned.
8904  For the sake of completeness, they are listed all together here:
8905 \end_layout
8906
8907 \begin_layout Itemize
8908
8909 \family typewriter
8910
8911 \backslash
8912 and
8913 \end_layout
8914
8915 \begin_layout Itemize
8916
8917 \family typewriter
8918
8919 \backslash
8920 authorrunning
8921 \end_layout
8922
8923 \begin_layout Itemize
8924
8925 \family typewriter
8926
8927 \backslash
8928 object{}
8929 \end_layout
8930
8931 \begin_layout Itemize
8932
8933 \family typewriter
8934
8935 \backslash
8936 titlerunning{}
8937 \end_layout
8938
8939 \begin_layout Standard
8940 If you want to use any of these commands, you have to enter them yourself.
8941  
8942 \series bold
8943 Do not forget to mark them as \SpecialChar LaTeX
8944  code!
8945 \end_layout
8946
8947 \begin_layout Subsection
8948 Figure and Table Floats
8949 \end_layout
8950
8951 \begin_layout Standard
8952 \SpecialChar LyX
8953  provides support for the necessary float environments 
8954 \family sans
8955 figure, figure*, table
8956 \family default
8957  and 
8958 \family sans
8959 table*
8960 \family default
8961 , therefore we won't tell much about it here.
8962  Refer to the 
8963 \emph on
8964 User's
8965 \begin_inset space ~
8966 \end_inset
8967
8968 Guide
8969 \emph default
8970 .
8971  Just remember that tables should be left-aligned.
8972  For that, select the table and change the alignment in 
8973 \family sans
8974 Edit\SpecialChar menuseparator
8975 Paragraph
8976 \begin_inset space ~
8977 \end_inset
8978
8979 Settings.
8980 \end_layout
8981
8982 \begin_layout Standard
8983 There is only one special thing: the figures with caption besides the figure.
8984  To create such a figure, you have to do the following:
8985 \end_layout
8986
8987 \begin_layout Enumerate
8988 Create a wide figure float: 
8989 \family sans
8990 Insert\SpecialChar menuseparator
8991 Float\SpecialChar menuseparator
8992 Figure
8993 \family default
8994 , then right click in the figure and select 
8995 \family sans
8996 Span
8997 \begin_inset space ~
8998 \end_inset
8999
9000 columns
9001 \family default
9002 .
9003 \end_layout
9004
9005 \begin_layout Enumerate
9006 Enter your caption text.
9007 \end_layout
9008
9009 \begin_layout Enumerate
9010 Press 
9011 \family sans
9012 Return
9013 \family default
9014  to move the cursor above the caption.
9015 \end_layout
9016
9017 \begin_layout Enumerate
9018 Insert your figure
9019 \end_layout
9020
9021 \begin_layout Enumerate
9022 Position the cursor behind the figure and insert a horizontal fill: 
9023 \family sans
9024 Insert\SpecialChar menuseparator
9025 Special
9026 \begin_inset space ~
9027 \end_inset
9028
9029 Character\SpecialChar menuseparator
9030 Horizontal
9031 \begin_inset space ~
9032 \end_inset
9033
9034 Fill
9035 \family default
9036 .
9037 \end_layout
9038
9039 \begin_layout Enumerate
9040 Switch to \SpecialChar LaTeX
9041  mode: 
9042 \family sans
9043 M-c
9044 \begin_inset space ~
9045 \end_inset
9046
9047 t
9048 \family default
9049 .
9050 \end_layout
9051
9052 \begin_layout Enumerate
9053 Enter 
9054 \family typewriter
9055
9056 \backslash
9057 parbox[b]{55mm}{
9058 \family default
9059 .
9060  
9061 \series bold
9062 Do not close the brace!
9063 \end_layout
9064
9065 \begin_layout Enumerate
9066 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9067  mode and insert
9068  the closing brace: 
9069 \family sans
9070 M-c
9071 \begin_inset space ~
9072 \end_inset
9073
9074 t
9075 \family default
9076  
9077 \family typewriter
9078 }
9079 \family default
9080 .
9081 \end_layout
9082
9083 \begin_layout Standard
9084 Also, refer to the figures in the example paper.
9085 \end_layout
9086
9087 \begin_layout Subsection
9088 Referee layout
9089 \end_layout
9090
9091 \begin_layout Standard
9092 For submission, the paper has to be formated in a special double-spacing
9093  layout.
9094  For this purpose, you have to give the option 
9095 \family typewriter
9096 referee
9097 \family default
9098  to the document class.
9099  This must be done using the custom class options field in the 
9100 \family sans
9101 Document\SpecialChar menuseparator
9102 Settings
9103 \family default
9104  dialog.
9105  Just enter the string 
9106 \family typewriter
9107 referee
9108 \family default
9109  there.
9110 \end_layout
9111
9112 \begin_layout Subsection
9113 The example paper
9114 \end_layout
9115
9116 \begin_layout Standard
9117 The 
9118 \family sans
9119 Examples
9120 \family default
9121  directory contains an example paper written with \SpecialChar LyX
9122 .
9123  It is the example paper from the original macro package, translated to
9124  \SpecialChar LyX
9125 .
9126  Use it for inspiration, and compare the original \SpecialChar LaTeX
9127  code with \SpecialChar LyX
9128  way of writing.
9129 \end_layout
9130
9131 \begin_layout Section
9132 AAS\SpecialChar TeX
9133
9134 \end_layout
9135
9136 \begin_layout Standard
9137 by 
9138 \noun on
9139 Mike Ressler
9140 \end_layout
9141
9142 \begin_layout Subsection
9143 Introduction
9144 \end_layout
9145
9146 \begin_layout Standard
9147 AAS\SpecialChar TeX
9148  is a set of macros produced by the American Astronomical Society to
9149  facilitate electronic manuscript submission to the three journals they
9150  publish: the Astrophysical Journal (including the Letters and Supplement),
9151  the Astronomical Journal, and the Publications of the Astronomical Society
9152  of the Pacific.
9153  \SpecialChar LyX
9154  has proven to be an excellent tool for generating these documents, especially
9155  given its equation, citation, and figure handling capabilities.
9156  \SpecialChar LyX
9157  requires version 5.0 (or higher) of these macros; preferably 6.0, which
9158  is the version described here, or higher.
9159  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9160 2.09 and are fundamentally
9161  incompatible with \SpecialChar LyX
9162 .
9163  The AAS\SpecialChar TeX
9164  package may be downloaded from the AAS\SpecialChar TeX
9165  Web site
9166 \end_layout
9167
9168 \begin_layout Standard
9169 \begin_inset VSpace medskip
9170 \end_inset
9171
9172
9173 \end_layout
9174
9175 \begin_layout Standard
9176 \align center
9177 \begin_inset Flex URL
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181
9182 https://aas.org/aastex/aastex-downloads
9183 \end_layout
9184
9185 \end_inset
9186
9187
9188 \end_layout
9189
9190 \begin_layout Standard
9191 \begin_inset VSpace medskip
9192 \end_inset
9193
9194
9195 \end_layout
9196
9197 \begin_layout Standard
9198 A complete user guide is contained in that package and you should familiarize
9199  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9200 .
9201  \SpecialChar LyX
9202  will not reduce the need to figure out all the AAS\SpecialChar TeX
9203  commands, it will only
9204  reduce the drudgery of typing everything in.
9205  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9206  document conforms
9207  completely to the requirements of the journal to which you are submitting
9208  your paper.
9209 \end_layout
9210
9211 \begin_layout Subsection
9212 Starting a New Paper
9213 \end_layout
9214
9215 \begin_layout Standard
9216 I strongly suggest that you start with the AAS\SpecialChar TeX
9217  template file.
9218  Click on 
9219 \family sans
9220 File\SpecialChar menuseparator
9221 New from
9222 \family default
9223  
9224 \family sans
9225 Template
9226 \family default
9227 , enter the new file name, then choose the 
9228 \family typewriter
9229 aastex6.lyx
9230 \family default
9231  template.
9232  This will show the most common fields found in a manuscript.
9233  Simply overwrite the existing text (including the brackets, 
9234 \family typewriter
9235 <>
9236 \family default
9237 ) with the correct information.
9238  Many of the AAS\SpecialChar TeX
9239  commands and environments can be implemented directly in
9240  \SpecialChar LyX
9241 , but some cannot.
9242  For commands such as these, the \SpecialChar LaTeX
9243  code must be entered directly and marked
9244  as such.
9245  Such commands are referred to as \SpecialChar TeX
9246  code, or Evil Red Text.
9247  I tried to minimize the amount of \SpecialChar TeX
9248  code needed in an AAS\SpecialChar TeX
9249  document.
9250 \end_layout
9251
9252 \begin_layout Subsection
9253 Finishing Your Paper
9254 \end_layout
9255
9256 \begin_layout Standard
9257 When the paper is finished to your satisfaction and previews/prints correctly,
9258  there are a few 
9259 \begin_inset Quotes eld
9260 \end_inset
9261
9262 postprocessing
9263 \begin_inset Quotes erd
9264 \end_inset
9265
9266  actions which need to be done before you submit it to the journals.
9267  
9268 \end_layout
9269
9270 \begin_layout Enumerate
9271 Export your paper as a \SpecialChar LaTeX
9272  file (
9273 \family sans
9274 File\SpecialChar menuseparator
9275 Export\SpecialChar menuseparator
9276 \SpecialChar LaTeX
9277
9278 \family default
9279 ).
9280  
9281 \end_layout
9282
9283 \begin_layout Enumerate
9284 Edit the resulting 
9285 \family typewriter
9286 .tex
9287 \family default
9288  file with your favorite text editor
9289 \end_layout
9290
9291 \begin_deeper
9292 \begin_layout Enumerate
9293 remove the comment lines before the 
9294 \family typewriter
9295
9296 \backslash
9297 documentclass
9298 \family default
9299  command
9300 \end_layout
9301
9302 \begin_layout Enumerate
9303 remove the 
9304 \family typewriter
9305
9306 \backslash
9307 usepackage...{fontenc}
9308 \family default
9309  line if it appears (usually just after 
9310 \family typewriter
9311
9312 \backslash
9313 documentclass
9314 \family default
9315 }; also remove the 
9316 \family typewriter
9317
9318 \backslash
9319 secnumdepth
9320 \family default
9321  line if it appears.
9322 \end_layout
9323
9324 \begin_layout Enumerate
9325 remove everything between (and including) the 
9326 \family typewriter
9327
9328 \backslash
9329 makeatletter
9330 \family default
9331  and 
9332 \family typewriter
9333
9334 \backslash
9335 makeatother
9336 \family default
9337  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9338  preamble
9339  (which should appear immediately after the 
9340 \begin_inset Quotes eld
9341 \end_inset
9342
9343 User specified \SpecialChar LaTeX
9344  commands
9345 \begin_inset Quotes erd
9346 \end_inset
9347
9348  comment in the 
9349 \family typewriter
9350 .tex
9351 \family default
9352  file).
9353 \end_layout
9354
9355 \end_deeper
9356 \begin_layout Enumerate
9357 Run the resulting file through \SpecialChar LaTeX
9358  to make sure it still processes correctly.
9359 \end_layout
9360
9361 \begin_layout Enumerate
9362 Reread the journal requirements to make sure your filenames and formats
9363  are correct.
9364 \end_layout
9365
9366 \begin_layout Enumerate
9367 Submit it.
9368 \end_layout
9369
9370 \begin_layout Subsection
9371 Comments On Specific Commands
9372 \end_layout
9373
9374 \begin_layout Standard
9375 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9376  commands: the
9377  AAS\SpecialChar TeX
9378  User Guide (
9379 \family typewriter
9380 aasguide.tex
9381 \family default
9382 ) gives a good description of each.
9383  Thus it's probably easiest for me to go down the list as found in the guide
9384  and offer comments where necessary.
9385  So let's begin \SpecialChar ldots
9386
9387 \end_layout
9388
9389 \begin_layout Subsubsection
9390 Things that work as expected
9391 \end_layout
9392
9393 \begin_layout Standard
9394 Because they work as you might expect, I simply list them and the section
9395  they are found in: 
9396 \family typewriter
9397
9398 \backslash
9399 documentclass
9400 \family default
9401  (2.1.1), 
9402 \family typewriter
9403
9404 \backslash
9405 begin{document}
9406 \family default
9407  (2.2), 
9408 \family typewriter
9409
9410 \backslash
9411 title
9412 \family default
9413  (2.3), 
9414 \family typewriter
9415
9416 \backslash
9417 author
9418 \family default
9419  (2.3), 
9420 \family typewriter
9421
9422 \backslash
9423 affil
9424 \family default
9425  (2.3), 
9426 \family typewriter
9427
9428 \backslash
9429 abstract
9430 \family default
9431  (2.4), 
9432 \family typewriter
9433
9434 \backslash
9435 keywords
9436 \family default
9437  (2.5), 
9438 \family typewriter
9439
9440 \backslash
9441 section
9442 \family default
9443  (2.7), 
9444 \family typewriter
9445
9446 \backslash
9447 subsection
9448 \family default
9449  (2.7), 
9450 \family typewriter
9451
9452 \backslash
9453 subsubsection
9454 \family default
9455  (2.7), 
9456 \family typewriter
9457
9458 \backslash
9459 paragraph
9460 \family default
9461  (2.7), 
9462 \family typewriter
9463
9464 \backslash
9465 facility
9466 \family default
9467  (2.10), 
9468 \family typewriter
9469
9470 \backslash
9471 begin{displaymath}
9472 \family default
9473  (2.12), 
9474 \family typewriter
9475
9476 \backslash
9477 begin{equation}
9478 \family default
9479  (2.12), 
9480 \family typewriter
9481
9482 \backslash
9483 begin{eqnarray}
9484 \family default
9485  (2.12), 
9486 \family typewriter
9487
9488 \backslash
9489 begin{mathletters}
9490 \family default
9491  (2.12), 
9492 \family typewriter
9493
9494 \backslash
9495 begin{thebibliography}
9496 \family default
9497  (2.13.1), 
9498 \family typewriter
9499
9500 \backslash
9501 bibitem
9502 \family default
9503  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9504  graphicx figure commands (2.14.1), 
9505 \family typewriter
9506
9507 \backslash
9508 begin{table}
9509 \family default
9510  (2.15.4), 
9511 \family typewriter
9512
9513 \backslash
9514 begin{tabular}
9515 \family default
9516  (2.15.4), 
9517 \family typewriter
9518
9519 \backslash
9520 caption
9521 \family default
9522  (2.15.4), 
9523 \family typewriter
9524
9525 \backslash
9526 label
9527 \family default
9528  (2.15.4, amongst other places), 
9529 \family typewriter
9530
9531 \backslash
9532 tablerefs
9533 \family default
9534  (2.15.5), 
9535 \family typewriter
9536
9537 \backslash
9538 tablecomments
9539 \family default
9540  (2.15.5), 
9541 \family typewriter
9542
9543 \backslash
9544 url
9545 \family default
9546  (2.17.4), 
9547 \family typewriter
9548
9549 \backslash
9550 end{document}
9551 \family default
9552  (2.18).
9553 \end_layout
9554
9555 \begin_layout Standard
9556 The following style options also work correctly: 
9557 \family typewriter
9558 longabstract
9559 \family default
9560  (2.4), 
9561 \family typewriter
9562 preprint
9563 \family default
9564  (3.2.1), 
9565 \family typewriter
9566 preprint2
9567 \family default
9568  (3.2.2), 
9569 \family typewriter
9570 eqsecnum
9571 \family default
9572  (3.3), 
9573 \family typewriter
9574 flushrt
9575 \family default
9576  (3.4).
9577  Simply put them in the 
9578 \family sans
9579 Options
9580 \family default
9581  box in 
9582 \family sans
9583 Layout\SpecialChar menuseparator
9584 Document
9585 \family default
9586 .
9587 \end_layout
9588
9589 \begin_layout Subsubsection
9590 Things that work, but require more comment
9591 \end_layout
9592
9593 \begin_layout Standard
9594 The following items work, but require a little more discussion:
9595 \end_layout
9596
9597 \begin_layout Itemize
9598 These items are reserved for use by the journal editors, but you can put
9599  them into the \SpecialChar LaTeX
9600  preamble if you feel compelled to do so: 
9601 \family typewriter
9602
9603 \backslash
9604 received
9605 \family default
9606
9607 \family typewriter
9608
9609 \backslash
9610 revised
9611 \family default
9612
9613 \family typewriter
9614
9615 \backslash
9616 accepted
9617 \family default
9618
9619 \family typewriter
9620
9621 \backslash
9622 ccc
9623 \family default
9624
9625 \family typewriter
9626
9627 \backslash
9628 cpright
9629 \family default
9630  (all from 2.1.3)
9631 \end_layout
9632
9633 \begin_layout Itemize
9634 These items may be placed in the \SpecialChar LaTeX
9635  preamble, and are included as blanks in
9636  the template file: 
9637 \family typewriter
9638
9639 \backslash
9640 slugcomment
9641 \family default
9642  (2.1.4), 
9643 \family typewriter
9644
9645 \backslash
9646 shorttitle
9647 \family default
9648  (2.1.5), 
9649 \family typewriter
9650
9651 \backslash
9652 shortauthors
9653 \family default
9654  (2.1.5)
9655 \end_layout
9656
9657 \begin_layout Itemize
9658
9659 \family typewriter
9660
9661 \backslash
9662 email
9663 \family default
9664  (2.3) – can only be used 
9665 \begin_inset Quotes eld
9666 \end_inset
9667
9668 standalone
9669 \begin_inset Quotes erd
9670 \end_inset
9671
9672 , not in the middle of a paragraph.
9673  Use \SpecialChar TeX
9674  code if you need to embed it.
9675 \end_layout
9676
9677 \begin_layout Itemize
9678
9679 \family typewriter
9680
9681 \backslash
9682 and
9683 \family default
9684  (2.3) – will have extra {} after it.
9685  This should not cause an error.
9686 \end_layout
9687
9688 \begin_layout Itemize
9689
9690 \family typewriter
9691
9692 \backslash
9693 notetoeditor
9694 \family default
9695  (2.6) – can only be used 
9696 \begin_inset Quotes eld
9697 \end_inset
9698
9699 standalone
9700 \begin_inset Quotes erd
9701 \end_inset
9702
9703 , not in the middle of a paragraph.
9704  Use \SpecialChar TeX
9705  code if you need to embed it.
9706 \end_layout
9707
9708 \begin_layout Itemize
9709
9710 \family typewriter
9711
9712 \backslash
9713 placetable
9714 \family default
9715  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9716  hand
9717 \end_layout
9718
9719 \begin_layout Itemize
9720
9721 \family typewriter
9722
9723 \backslash
9724 placefigure
9725 \family default
9726  (2.8) – same as for 
9727 \family typewriter
9728
9729 \backslash
9730 placetable
9731 \end_layout
9732
9733 \begin_layout Itemize
9734
9735 \family typewriter
9736
9737 \backslash
9738 acknowledgements
9739 \family default
9740  (2.9) – will have extra {} after it.
9741  This should not cause an error.
9742 \end_layout
9743
9744 \begin_layout Itemize
9745
9746 \family typewriter
9747
9748 \backslash
9749 appendix
9750 \family default
9751  (2.11) – will have extra {} after it.
9752  This should not cause an error.
9753 \end_layout
9754
9755 \begin_layout Itemize
9756
9757 \family typewriter
9758
9759 \backslash
9760 figcaption
9761 \family default
9762  (2.14.2) – you can insert an optional filename argument by placing the cursor
9763  at the beginning of the text and selecting 
9764 \family sans
9765 Insert\SpecialChar menuseparator
9766 Short Title
9767 \family default
9768 .
9769  
9770 \begin_inset Quotes eld
9771 \end_inset
9772
9773 Short Title
9774 \begin_inset Quotes erd
9775 \end_inset
9776
9777  inserts an optional argument of the type needed by 
9778 \family typewriter
9779
9780 \backslash
9781 figcaption
9782 \family default
9783 .
9784  Hopefully it will be renamed someday.
9785 \end_layout
9786
9787 \begin_layout Itemize
9788
9789 \family typewriter
9790
9791 \backslash
9792 objectname
9793 \family default
9794  (2.17.1) – same as 
9795 \family typewriter
9796
9797 \backslash
9798 figcaption
9799 \family default
9800  for the catalog ID optional parameter
9801 \end_layout
9802
9803 \begin_layout Itemize
9804
9805 \family typewriter
9806
9807 \backslash
9808 dataset
9809 \family default
9810  (2.17.1) – same as 
9811 \family typewriter
9812
9813 \backslash
9814 figcaption
9815 \family default
9816  for the catalog ID optional parameter
9817 \end_layout
9818
9819 \begin_layout Subsubsection
9820 Things not implemented, use \SpecialChar TeX
9821  code
9822 \end_layout
9823
9824 \begin_layout Standard
9825
9826 \family typewriter
9827
9828 \backslash
9829 eqnum
9830 \family default
9831  (2.12), 
9832 \family typewriter
9833
9834 \backslash
9835 setcounter{equation}
9836 \family default
9837  (2.12), Journal name abbreviations (2.13.4), 
9838 \family typewriter
9839
9840 \backslash
9841 figurenum
9842 \family default
9843  (2.14.1), 
9844 \family typewriter
9845
9846 \backslash
9847 epsscale
9848 \family default
9849  (2.14.1), 
9850 \family typewriter
9851
9852 \backslash
9853 plotone
9854 \family default
9855  (2.14.1), 
9856 \family typewriter
9857
9858 \backslash
9859 plottwo
9860 \family default
9861  (2.14.1), 
9862 \family typewriter
9863
9864 \backslash
9865 tablenum
9866 \family default
9867  (2.15.4), 
9868 \family typewriter
9869
9870 \backslash
9871 tableline
9872 \family default
9873  (2.15.4, insert it as the first element in the lefthand cell after where
9874  you want it.
9875  Don't use any of \SpecialChar LyX
9876 's rules in the table), 
9877 \family typewriter
9878
9879 \backslash
9880 tablenotemark
9881 \family default
9882  (2.15.5), 
9883 \family typewriter
9884
9885 \backslash
9886 tablenotetext
9887 \family default
9888  (2.15.5), much of Misc (2.17, except 
9889 \family typewriter
9890
9891 \backslash
9892 objectname
9893 \family default
9894
9895 \family typewriter
9896
9897 \backslash
9898 dataset
9899 \family default
9900
9901 \family typewriter
9902
9903 \backslash
9904 url
9905 \family default
9906 , and 
9907 \family typewriter
9908
9909 \backslash
9910 email
9911 \family default
9912 ; see above), 
9913 \family typewriter
9914
9915 \backslash
9916 singlespace
9917 \family default
9918  (3.1), 
9919 \family typewriter
9920
9921 \backslash
9922 doublespace
9923 \family default
9924  (3.1), 
9925 \family typewriter
9926
9927 \backslash
9928 onecolumn
9929 \family default
9930  (3.2), 
9931 \family typewriter
9932
9933 \backslash
9934 twocolumn
9935 \family default
9936  (3.2)
9937 \end_layout
9938
9939 \begin_layout Subsubsection
9940 Things that cannot be implemented
9941 \end_layout
9942
9943 \begin_layout Standard
9944 \SpecialChar ldots
9945  at least in any meaningful sort of way, so I suggest ignoring them.
9946  They are the references environment (2.13.3), and the deluxetable environment
9947  (2.15).
9948  If you really, really need to use deluxetable, I suggest editing it in
9949  a separate file with a text editor, then using 
9950 \family sans
9951 Insert\SpecialChar menuseparator
9952 Child
9953 \begin_inset space ~
9954 \end_inset
9955
9956 Document
9957 \family default
9958  to include it in your \SpecialChar LyX
9959  document.
9960  See the 
9961 \family typewriter
9962 aas_sample.lyx
9963 \family default
9964  file to see an example of this.
9965 \end_layout
9966
9967 \begin_layout Subsection
9968 FAQs, Tips, Tricks, and Other Ruminations
9969 \end_layout
9970
9971 \begin_layout Subsubsection
9972 Getting \SpecialChar LyX
9973  and AAS\SpecialChar TeX
9974  to cooperate
9975 \end_layout
9976
9977 \begin_layout Standard
9978 It can be a bit tricky to get \SpecialChar LyX
9979  to recognize a new layout and document class.
9980  When all else fails, do this:
9981 \end_layout
9982
9983 \begin_layout Enumerate
9984 Make certain that \SpecialChar LaTeX
9985  can find AAS\SpecialChar TeX
9986 .
9987  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9988  distribution into a
9989  directory completely unrelated to \SpecialChar LaTeX
9990  or AAS\SpecialChar TeX
9991  and run \SpecialChar LaTeX
9992  on 
9993 \family typewriter
9994 sample.tex
9995 \family default
9996 .
9997 \end_layout
9998
9999 \begin_layout Enumerate
10000 Make certain that 
10001 \family typewriter
10002 aastex.layout
10003 \family default
10004  appears in \SpecialChar LyX
10005 's 
10006 \family typewriter
10007 layouts
10008 \family default
10009  folder
10010 \end_layout
10011
10012 \begin_layout Enumerate
10013 Rerun 
10014 \family sans
10015 Tools\SpecialChar menuseparator
10016 Reconfigure
10017 \family default
10018  in \SpecialChar LyX
10019 , then restart \SpecialChar LyX
10020 .
10021 \end_layout
10022
10023 \begin_layout Enumerate
10024 Open a regular new file, not from a template.
10025  Does AAS\SpecialChar TeX
10026  appear in the class list in 
10027 \family sans
10028 Document\SpecialChar menuseparator
10029 Settings
10030 \family default
10031 ?
10032 \end_layout
10033
10034 \begin_layout Standard
10035 If you get a warning from an existing AAS\SpecialChar TeX
10036  document about not being able
10037  to find the AAS\SpecialChar TeX
10038  layout or a message about 
10039 \begin_inset Quotes eld
10040 \end_inset
10041
10042 You should not mix title layouts with normal ones
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046 , things haven't been installed correctly.
10047 \end_layout
10048
10049 \begin_layout Subsubsection
10050 \SpecialChar LaTeX
10051  error processing a table 
10052 \end_layout
10053
10054 \begin_layout Standard
10055 \SpecialChar LyX
10056 , by default, attempts to center the table caption/title.
10057  This seems to produce a bad interaction in AAS\SpecialChar TeX
10058  so you should click somewhere
10059  in the caption/title, then select 
10060 \family sans
10061 Edit\SpecialChar menuseparator
10062 Paragraph
10063 \begin_inset space ~
10064 \end_inset
10065
10066 Settings
10067 \family default
10068 , then set the 
10069 \family sans
10070 Alignment
10071 \family default
10072  to 
10073 \family sans
10074 Block
10075 \family default
10076 .
10077  This took care of it for me.
10078 \end_layout
10079
10080 \begin_layout Subsubsection
10081 References
10082 \end_layout
10083
10084 \begin_layout Standard
10085 A couple of things: 1) I have noticed some funny spacing in the reference
10086  entries in the text.
10087  When you enter the bibliography item data, make sure their is 
10088 \emph on
10089 no
10090 \emph default
10091  space between the last author and the parenthesis setting off the year;
10092  
10093 \emph on
10094 e.
10095 \begin_inset space \thinspace{}
10096 \end_inset
10097
10098 g.
10099 \begin_inset space \space{}
10100 \end_inset
10101
10102
10103 \emph default
10104 type 
10105 \family typewriter
10106 Ressler(1992)
10107 \family default
10108 , not 
10109 \family typewriter
10110 Ressler (1992)
10111 \family default
10112 .
10113  2) Entering the references at all is not obvious.
10114  The easiest thing is to start typing your first reference at the end of
10115  the document, then mark it as type 
10116 \family sans
10117 References
10118 \family default
10119 .
10120  That will put a small gray box in front of what you just typed.
10121  Click on the box to fill in the rest of the information.
10122  For new references, go to the end of an existing reference and press return.
10123  That will create a new line with its own box, etc.
10124 \end_layout
10125
10126 \begin_layout Subsubsection
10127 Including EPS files
10128 \end_layout
10129
10130 \begin_layout Standard
10131 Even though AAS\SpecialChar TeX
10132  provides its own figure commands (
10133 \family typewriter
10134
10135 \backslash
10136 plotone
10137 \family default
10138 , for example), I much prefer \SpecialChar LaTeX
10139 's standard figure commands (with the default
10140  graphicx).
10141  You can insert the 
10142 \family typewriter
10143
10144 \backslash
10145 plotone
10146 \family default
10147 , etc.
10148 \begin_inset space ~
10149 \end_inset
10150
10151 commands as \SpecialChar TeX
10152  code into a Figure Float box if you desire, but I never have
10153  much luck getting the layout right.
10154  With the standard graphics, \SpecialChar LyX
10155  will insert a 
10156 \family typewriter
10157
10158 \backslash
10159 usepackage{graphicx}
10160 \family default
10161  command into the \SpecialChar LaTeX
10162  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10163  way,
10164  interspersing the figures in the text.
10165  I believe ApJ accepts figures exactly this way now; AJ might still use
10166  the 
10167 \begin_inset Quotes eld
10168 \end_inset
10169
10170 stack everything at the end
10171 \begin_inset Quotes erd
10172 \end_inset
10173
10174  technique.
10175 \end_layout
10176
10177 \begin_layout Subsubsection
10178 Things I could have done, but didn't
10179 \end_layout
10180
10181 \begin_layout Standard
10182 There are a few 
10183 \begin_inset Quotes eld
10184 \end_inset
10185
10186 pretty
10187 \begin_inset Quotes erd
10188 \end_inset
10189
10190  things I could have implemented, but chose not to.
10191  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10192  window,
10193  even though it is double-spaced in the paper manuscript.
10194  Also, I chose not to make separate layouts for the preprint and preprint2
10195  styles.
10196  Since I assume you will spend most of your time in the plain manuscript
10197  mode anyway, I decided not to chew up more disk space with this.
10198  
10199 \end_layout
10200
10201 \begin_layout Subsection
10202 Final Caveat
10203 \end_layout
10204
10205 \begin_layout Standard
10206 Your mileage may vary.
10207  I've now had papers published by both ApJ and AJ that have had 98% of the
10208  effort done in \SpecialChar LyX
10209 ; the last 2% was the \SpecialChar LaTeX
10210  post-processing and a few cleanups.
10211  I have had no trouble with the submission process, and I'm sure the journals
10212  were never aware that there might be a difference.
10213  So, go forth and publish!
10214 \end_layout
10215
10216 \begin_layout Section
10217 AMS \SpecialChar LaTeX
10218
10219 \end_layout
10220
10221 \begin_layout Standard
10222 by 
10223 \noun on
10224 David Johnson
10225 \noun default
10226 ; updated by 
10227 \noun on
10228 Richard Kimberly Heck
10229 \end_layout
10230
10231 \begin_layout Standard
10232 \begin_inset VSpace bigskip
10233 \end_inset
10234
10235
10236 \end_layout
10237
10238 \begin_layout Standard
10239 \noindent
10240 The AMS \SpecialChar LaTeX
10241  layouts are set up to conform to suggested styles for mathematical
10242  papers to be submitted to American Mathematical Society publications.
10243  The layouts are not tailored to a specific journal, but easily can be.
10244  You should refer to the AMS documentation for specific instructions for
10245  each journal (usually it will entail only changing a single line in the
10246  \SpecialChar TeX
10247  output).
10248  That documentation is available on the Web at 
10249 \begin_inset Flex URL
10250 status open
10251
10252 \begin_layout Plain Layout
10253
10254 http://www.ams.org
10255 \end_layout
10256
10257 \end_inset
10258
10259  or by ftp at 
10260 \begin_inset Flex URL
10261 status open
10262
10263 \begin_layout Plain Layout
10264
10265 ftp://ftp.ams.org/pub/tex/amslatex/
10266 \end_layout
10267
10268 \end_inset
10269
10270 .
10271  These layouts are appropriate, and useful, for any mathematical writing.
10272  
10273 \end_layout
10274
10275 \begin_layout Standard
10276 There are two basic AMS \SpecialChar LaTeX
10277  layouts: 
10278 \end_layout
10279
10280 \begin_layout Itemize
10281 amsart: The standard AMS article format.
10282 \end_layout
10283
10284 \begin_layout Itemize
10285 amsbook: the standard AMS book (really, monograph) format.
10286  
10287 \end_layout
10288
10289 \begin_layout Standard
10290 The layouts themselves contain only the minimum necessary to use the AMS
10291  classes.
10292  They do not, in particular, contain any of the `theorem' environments used
10293  for setting theorems, lemmas, and the like.
10294  These are contained, instead, in the 
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299 Theorems (AMS)
10300 \end_layout
10301
10302 \end_inset
10303
10304  module, which is loaded by default when you select one of the AMS classes.
10305  (It can also be used with other classes and can be removed, if you would
10306  rather use something else.) Less commonly used environments are in the 
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311 Theorems (AMS-Extended)
10312 \end_layout
10313
10314 \end_inset
10315
10316  module, which must be loaded manually.
10317 \end_layout
10318
10319 \begin_layout Standard
10320 By default, theorems and the like are numbered consecutively throughout
10321  the document, but this may be modified by loading the module 
10322 \begin_inset Flex Code
10323 status collapsed
10324
10325 \begin_layout Plain Layout
10326 Theorems (Order by Section)
10327 \end_layout
10328
10329 \end_inset
10330
10331  or, if you are using 
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 book (AMS)
10337 \end_layout
10338
10339 \end_inset
10340
10341 , the module 
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 Theorems (Order by Chapter)
10347 \end_layout
10348
10349 \end_inset
10350
10351 .
10352  These will number the results as 
10353 \begin_inset Formula $n.m$
10354 \end_inset
10355
10356 , where the first number refers to the section (or chapter) and the second
10357  refers to the total number of results so far in that section (or chapter).
10358  Many environments are also available unnumbered.
10359  These are indicated by an asterisk at the end.
10360  If you happen to want 
10361 \emph on
10362 only
10363 \emph default
10364  unnumbered results, the module 
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 Theorems (Starred)
10370 \end_layout
10371
10372 \end_inset
10373
10374  provides that option.
10375 \end_layout
10376
10377 \begin_layout Standard
10378 Note that these modules do not 
10379 \emph on
10380 have
10381 \emph default
10382  to be used with the AMS classes.
10383  It is perfectly possible to use the 
10384 \begin_inset Flex Code
10385 status collapsed
10386
10387 \begin_layout Plain Layout
10388 Theorems (AMS)
10389 \end_layout
10390
10391 \end_inset
10392
10393  module, and the others mentioned, with other classes, such as 
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 article
10399 \end_layout
10400
10401 \end_inset
10402
10403
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 report
10409 \end_layout
10410
10411 \end_inset
10412
10413
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 book (KOMA-script)
10419 \end_layout
10420
10421 \end_inset
10422
10423 , and so forth.
10424 \end_layout
10425
10426 \begin_layout Subsection
10427 What these layouts provide
10428 \end_layout
10429
10430 \begin_layout Standard
10431 There is a long list of included environments provided by these layouts.
10432  In AMS-\SpecialChar LaTeX
10433 , there is, in fact, an opportunity to define an unlimited variety
10434  of `theorem' environments.
10435  However, the AMS recommends the environments that are available in \SpecialChar LyX
10436 .
10437  
10438 \end_layout
10439
10440 \begin_layout Standard
10441 The following environments—as well as the standard environments, such as
10442  
10443 \begin_inset Flex Noun
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 section
10448 \end_layout
10449
10450 \end_inset
10451
10452
10453 \begin_inset Flex Noun
10454 status collapsed
10455
10456 \begin_layout Plain Layout
10457 bibliography
10458 \end_layout
10459
10460 \end_inset
10461
10462
10463 \begin_inset Flex Noun
10464 status collapsed
10465
10466 \begin_layout Plain Layout
10467 title
10468 \end_layout
10469
10470 \end_inset
10471
10472
10473 \begin_inset Flex Noun
10474 status collapsed
10475
10476 \begin_layout Plain Layout
10477 author
10478 \end_layout
10479
10480 \end_inset
10481
10482 , and 
10483 \begin_inset Flex Noun
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 date
10488 \end_layout
10489
10490 \end_inset
10491
10492 —are provided by 
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 article (AMS)
10498 \end_layout
10499
10500 \end_inset
10501
10502  and 
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 book (AMS)
10508 \end_layout
10509
10510 \end_inset
10511
10512 :
10513 \end_layout
10514
10515 \begin_layout Description
10516 Address This should be the author's permanent address.
10517 \end_layout
10518
10519 \begin_layout Description
10520 Current
10521 \begin_inset space ~
10522 \end_inset
10523
10524 Address This should be the author's temporary address at the time of submission,
10525  if different from the Address.
10526 \end_layout
10527
10528 \begin_layout Description
10529 Email Author's e-mail address
10530 \end_layout
10531
10532 \begin_layout Description
10533 URL Author's Web address, if desired.
10534 \end_layout
10535
10536 \begin_layout Description
10537 Keywords Key words or phrases used to identify specific topics discussed
10538  in the paper.
10539 \end_layout
10540
10541 \begin_layout Description
10542 Subjectclass These refer to the AMS Subject Classifications, published and
10543  described in 
10544 \emph on
10545 Mathematical Reviews
10546 \emph default
10547 .
10548  These are also available online at the AMS cites listed above.
10549 \end_layout
10550
10551 \begin_layout Description
10552 Thanks
10553 \end_layout
10554
10555 \begin_layout Description
10556 Dedicatory
10557 \end_layout
10558
10559 \begin_layout Description
10560 Translator
10561 \end_layout
10562
10563 \begin_layout Standard
10564 The following environments are provided by both the 
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569 Theorems
10570 \end_layout
10571
10572 \end_inset
10573
10574  and 
10575 \begin_inset Flex Code
10576 status collapsed
10577
10578 \begin_layout Plain Layout
10579 Theorems (AMS)
10580 \end_layout
10581
10582 \end_inset
10583
10584  modules, in the latter case in both starred (unnumbered) and unstarred
10585  (numbered) versions.
10586  These same environments are provided only in the starred versions by the
10587  
10588 \begin_inset Flex Code
10589 status collapsed
10590
10591 \begin_layout Plain Layout
10592 Theorems (Starred)
10593 \end_layout
10594
10595 \end_inset
10596
10597  module:
10598 \end_layout
10599
10600 \begin_layout Theorem
10601 This is typically used for the statements of major results.
10602  
10603 \end_layout
10604
10605 \begin_layout Corollary*
10606 This is used for statements which follow fairly directly from previous statement
10607 s.
10608  Again, these can be major results.
10609  
10610 \end_layout
10611
10612 \begin_layout Lemma
10613 These are smaller results needed to prove other statements.
10614 \end_layout
10615
10616 \begin_layout Proposition
10617 These are less major results which (hopefully) add to the general theory
10618  being discussed.
10619 \end_layout
10620
10621 \begin_layout Conjecture
10622 These are statements provided without justification, which the author does
10623  not know how to prove, but which seem to be true (to the author, at least).
10624 \end_layout
10625
10626 \begin_layout Definition*
10627 Guess what this is for.
10628  The font is different for this environment than for the previous ones.
10629  
10630 \end_layout
10631
10632 \begin_layout Example*
10633 Used for examples illustrating proven results.
10634 \end_layout
10635
10636 \begin_layout Problem
10637 It's not really known what this is for.
10638  You should figure it out.
10639 \end_layout
10640
10641 \begin_layout Exercise*
10642 Write a description for this one.
10643 \end_layout
10644
10645 \begin_layout Remark
10646 This environment is also a type of theorem, usually a lesser sort of observation.
10647 \end_layout
10648
10649 \begin_layout Claim*
10650 Often used in the course of giving a proof of a larger result.
10651 \end_layout
10652
10653 \begin_layout Case
10654 Generally, these are used to break up long arguments, using specific instances
10655  of some condition.
10656  
10657 \end_layout
10658
10659 \begin_layout Case
10660 The numbering scheme for cases is on its own, not together with other numbered
10661  statements.
10662  
10663 \end_layout
10664
10665 \begin_layout Proof
10666 At the end of this environment, a QED symbol (usually a square, but it can
10667  vary with different styles) is placed.
10668  If you want to have other environments within this one—for example, Case
10669  environments—and have the QED symbol appear only after them, then the other
10670  environments need to be nested within the proof environment.
10671  See the section 
10672 \emph on
10673 Nesting Environments
10674 \emph default
10675  of the 
10676 \emph on
10677 User's Guide
10678 \emph default
10679  for information on nesting.
10680 \end_layout
10681
10682 \begin_layout Standard
10683 And these environments are provided by 
10684 \begin_inset Flex Code
10685 status collapsed
10686
10687 \begin_layout Plain Layout
10688 Theorems (AMS-Extended)
10689 \end_layout
10690
10691 \end_inset
10692
10693 :
10694 \end_layout
10695
10696 \begin_layout Criterion*
10697 A required condition.
10698 \end_layout
10699
10700 \begin_layout Algorithm*
10701 A general procedure to be used.
10702 \end_layout
10703
10704 \begin_layout Axiom*
10705 This is a property or statement taken as true within the system being discussed.
10706 \end_layout
10707
10708 \begin_layout Condition*
10709 Sometimes used to state a condition assumed within the present context of
10710  discussion.
10711 \end_layout
10712
10713 \begin_layout Note*
10714 Similar to a Remark.
10715 \end_layout
10716
10717 \begin_layout Notation*
10718 Used for the explanation of, yes, notation.
10719 \end_layout
10720
10721 \begin_layout Summary
10722 Do we really need to tell you? 
10723 \end_layout
10724
10725 \begin_layout Acknowledgement*
10726 Acknowledgement.
10727 \end_layout
10728
10729 \begin_layout Conclusion*
10730 Sometimes used at the end of a long train of argument.
10731 \end_layout
10732
10733 \begin_layout Fact
10734 Used in a way similar to Proposition, though perhaps lower on the scale.
10735 \end_layout
10736
10737 \begin_layout Standard
10738 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10739  and AMS fonts
10740  packages.
10741  They need to be available on your system in order to use these environments.
10742 \end_layout
10743
10744 \begin_layout Section
10745 Broadway
10746 \end_layout
10747
10748 \begin_layout Standard
10749 by 
10750 \shape smallcaps
10751 Garst Reese
10752 \end_layout
10753
10754 \begin_layout Subsection
10755 Introduction
10756 \end_layout
10757
10758 \begin_layout Standard
10759 Broadway is for writing plays.
10760  The format is more decorative than Hollywood, and much less standardized.
10761  This format should be suitable for workshops.
10762 \end_layout
10763
10764 \begin_layout Subsection
10765 Special problems
10766 \end_layout
10767
10768 \begin_layout Standard
10769 The same as in Hollywood.
10770 \end_layout
10771
10772 \begin_layout Subsection
10773 Special features
10774 \end_layout
10775
10776 \begin_layout Standard
10777 Insert the 
10778 \family sans
10779 Speaker
10780 \family default
10781  names as labels then cross-reference the label to insert the name.
10782  The cross-reference dialog will show the current cast of characters.
10783 \end_layout
10784
10785 \begin_layout Subsection
10786 Paper size and Margins
10787 \end_layout
10788
10789 \begin_layout Standard
10790 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10791 \end_layout
10792
10793 \begin_layout Subsection
10794 Environments
10795 \end_layout
10796
10797 \begin_layout Standard
10798 The following environments are available.
10799  You can use broadway.bind to get the bind keys shown at the right.
10800 \end_layout
10801
10802 \begin_layout Itemize
10803
10804 \family sans
10805 Standard
10806 \begin_inset Newline newline
10807 \end_inset
10808
10809
10810 \family default
10811 You should not have to use this, but it is here for anything that does not
10812  fit otherwise.
10813 \end_layout
10814
10815 \begin_layout Itemize
10816
10817 \family sans
10818 Narrative
10819 \begin_inset space \hfill{}
10820 \end_inset
10821
10822 M-z n
10823 \begin_inset Newline newline
10824 \end_inset
10825
10826
10827 \family default
10828 Used to describe stage setting and the action.
10829  First use of speaker names in all CAPs.
10830 \end_layout
10831
10832 \begin_layout Itemize
10833
10834 \family sans
10835 ACT
10836 \begin_inset space \hfill{}
10837 \end_inset
10838
10839 M-z a
10840 \begin_inset Newline newline
10841 \end_inset
10842
10843
10844 \family default
10845 Automatically numbered.
10846  On screen it will be arabic, but will print as Roman.
10847 \end_layout
10848
10849 \begin_layout Itemize
10850
10851 \family sans
10852 ACT*
10853 \begin_inset space \hfill{}
10854 \end_inset
10855
10856 M-z S at
10857 \begin_inset Newline newline
10858 \end_inset
10859
10860
10861 \family default
10862 Subtitle for 
10863 \family sans
10864 ACT.
10865
10866 \family default
10867  It is just centered text.
10868 \end_layout
10869
10870 \begin_layout Itemize
10871
10872 \family sans
10873 SCENE
10874 \begin_inset space \hfill{}
10875 \end_inset
10876
10877 M-z S-S
10878 \begin_inset Newline newline
10879 \end_inset
10880
10881
10882 \family default
10883 Not automatically numbered.
10884  You supply the number.
10885  This is because I couldn't figure out how.
10886 \end_layout
10887
10888 \begin_layout Itemize
10889
10890 \family sans
10891 AT_RISE:
10892 \begin_inset space \hfill{}
10893 \end_inset
10894
10895 M-z S-R
10896 \begin_inset Newline newline
10897 \end_inset
10898
10899
10900 \family default
10901 A special case of Narrative to describe the setting and action as the curtain
10902  rises.
10903 \end_layout
10904
10905 \begin_layout Itemize
10906
10907 \family sans
10908 Speaker
10909 \begin_inset space \hfill{}
10910 \end_inset
10911
10912 M-z s
10913 \begin_inset Newline newline
10914 \end_inset
10915
10916
10917 \family default
10918 The speaker's (actor's) title, centered in all CAPS.
10919 \end_layout
10920
10921 \begin_layout Itemize
10922
10923 \family sans
10924 Parenthetical
10925 \begin_inset space \hfill{}
10926 \end_inset
10927
10928 M-z p
10929 \begin_inset Newline newline
10930 \end_inset
10931
10932
10933 \family default
10934 Instructions to the speaker.
10935  The parentheses are automatically inserted.
10936  The ( will appear on screen, but both will be in the printed play.
10937  This environment is only used within 
10938 \family sans
10939 Dialogue
10940 \family default
10941 .
10942 \end_layout
10943
10944 \begin_layout Itemize
10945
10946 \family sans
10947 Dialogue
10948 \begin_inset space \hfill{}
10949 \end_inset
10950
10951 M-z d
10952 \begin_inset Newline newline
10953 \end_inset
10954
10955
10956 \family default
10957 What the Speaker says.
10958 \end_layout
10959
10960 \begin_layout Itemize
10961
10962 \family sans
10963 CURTAIN
10964 \begin_inset space \hfill{}
10965 \end_inset
10966
10967 M-z S-C
10968 \begin_inset Newline newline
10969 \end_inset
10970
10971
10972 \family default
10973 The curtain comes down.
10974 \end_layout
10975
10976 \begin_layout Itemize
10977
10978 \family sans
10979 Title
10980 \begin_inset space \hfill{}
10981 \end_inset
10982
10983 M-z S-T
10984 \end_layout
10985
10986 \begin_layout Itemize
10987
10988 \family sans
10989 Author
10990 \begin_inset space \hfill{}
10991 \end_inset
10992
10993 M-z S-A
10994 \end_layout
10995
10996 \begin_layout Itemize
10997
10998 \family sans
10999 Right_Address
11000 \begin_inset space \hfill{}
11001 \end_inset
11002
11003 M-z r
11004 \end_layout
11005
11006 \begin_layout Standard
11007 Hello there.
11008 \end_layout
11009
11010 \begin_layout Section
11011 Dinbrief
11012 \end_layout
11013
11014 \begin_layout Standard
11015 The document class 
11016 \family sans
11017 dinbrief
11018 \family default
11019  can be used to type letters according to German conventions.
11020  A template file is included in 
11021 \family typewriter
11022 .../lyx/share/templates
11023 \family default
11024  for you to use as a starting point.
11025 \end_layout
11026
11027 \begin_layout Section
11028 Elsevier Journals
11029 \end_layout
11030
11031 \begin_layout Standard
11032 See the \SpecialChar LyX
11033  template file 
11034 \family typewriter
11035 elsarticle.lyx
11036 \family default
11037 .
11038  It contains all infos you need.
11039 \end_layout
11040
11041 \begin_layout Section
11042 Foils [aka 
11043 \family sans
11044 Foil\SpecialChar TeX
11045
11046 \family default
11047 ]
11048 \begin_inset CommandInset label
11049 LatexCommand label
11050 name "sec:foiltex"
11051
11052 \end_inset
11053
11054
11055 \end_layout
11056
11057 \begin_layout Standard
11058 by 
11059 \noun on
11060 Allan Rae
11061 \end_layout
11062
11063 \begin_layout Subsection
11064 Introduction
11065 \end_layout
11066
11067 \begin_layout Standard
11068 This section describes how to use \SpecialChar LyX
11069  to make slides for overhead projectors.
11070  There are two document classes that can do this: the default slides class
11071  and the 
11072 \family sans
11073 Foil\SpecialChar TeX
11074
11075 \family default
11076  slides class.
11077  This section documents the latter.
11078 \end_layout
11079
11080 \begin_layout Standard
11081 I'm going to say this again, nice and clear, so that there's no misunderstanding
11082 :
11083 \end_layout
11084
11085 \begin_layout Standard
11086 \begin_inset VSpace bigskip
11087 \end_inset
11088
11089
11090 \end_layout
11091
11092 \begin_layout Standard
11093 \align center
11094
11095 \size large
11096 This section documents the class 
11097 \begin_inset Quotes eld
11098 \end_inset
11099
11100
11101 \family sans
11102 FoilTeX
11103 \family default
11104
11105 \begin_inset Quotes erd
11106 \end_inset
11107
11108  
11109 \emph on
11110 only.
11111 \end_layout
11112
11113 \begin_layout Standard
11114 \begin_inset VSpace bigskip
11115 \end_inset
11116
11117
11118 \end_layout
11119
11120 \begin_layout Standard
11121 If you're looking for the documentation for 
11122 \begin_inset Quotes eld
11123 \end_inset
11124
11125
11126 \family sans
11127 slides (default)
11128 \family default
11129
11130 \begin_inset Quotes erd
11131 \end_inset
11132
11133 , check out section
11134 \begin_inset space ~
11135 \end_inset
11136
11137
11138 \begin_inset CommandInset ref
11139 LatexCommand ref
11140 reference "sec:slitex"
11141
11142 \end_inset
11143
11144 .
11145  If your machine doesn't have the 
11146 \family sans
11147 foils
11148 \family default
11149  class 
11150 \family sans
11151 FoilTeX
11152 \family default
11153  installed, you'll probably have to use the default 
11154 \family sans
11155 slides
11156 \family default
11157  class, which isn't quite as good as 
11158 \family sans
11159 foils.
11160 \end_layout
11161
11162 \begin_layout Standard
11163 The 
11164 \family sans
11165 foils
11166 \family default
11167  class is designed for use with version
11168 \begin_inset space ~
11169 \end_inset
11170
11171 2.1 of the 
11172 \family sans
11173 foils.cls
11174 \family default
11175  \SpecialChar LaTeX
11176  class file which is now an integral part of \SpecialChar LaTeX2e
11177 .
11178 \end_layout
11179
11180 \begin_layout Subsection
11181 Getting Started
11182 \end_layout
11183
11184 \begin_layout Standard
11185 Obviously, to use this document class, you need to select 
11186 \family sans
11187 FoilTeX
11188 \family default
11189  from the 
11190 \family sans
11191 Class
11192 \family default
11193  entry in the 
11194 \family sans
11195 Document
11196 \begin_inset space ~
11197 \end_inset
11198
11199 Layout
11200 \family default
11201  dialog.
11202  There are some settings in the 
11203 \family sans
11204 Document
11205 \begin_inset space ~
11206 \end_inset
11207
11208 Layout
11209 \family default
11210  dialog that you should know about that are specific to this class:
11211 \end_layout
11212
11213 \begin_layout Itemize
11214 Don't change the options 
11215 \family sans
11216 Sides
11217 \family default
11218  and 
11219 \family sans
11220 Columns
11221 \family default
11222  on the 
11223 \family sans
11224 Document
11225 \begin_inset space ~
11226 \end_inset
11227
11228 Layout
11229 \family default
11230  dialog.
11231  They're ignored by the 
11232 \family sans
11233 foils
11234 \family default
11235  class.
11236 \end_layout
11237
11238 \begin_layout Itemize
11239 The default font size is 20
11240 \begin_inset space \thinspace{}
11241 \end_inset
11242
11243 pt with the other options being 17
11244 \begin_inset space \thinspace{}
11245 \end_inset
11246
11247 pt, 25
11248 \begin_inset space \thinspace{}
11249 \end_inset
11250
11251 pt and 30
11252 \begin_inset space \thinspace{}
11253 \end_inset
11254
11255 pt.
11256 \end_layout
11257
11258 \begin_layout Itemize
11259 The default font is 
11260 \family sans
11261 sans
11262 \family default
11263  
11264 \family sans
11265 serif
11266 \family default
11267  but all math equations are still typeset in the usual roman font.
11268 \end_layout
11269
11270 \begin_layout Itemize
11271
11272 \family sans
11273 Foil\SpecialChar TeX
11274
11275 \family default
11276  supports A4 and Letter paper sizes as well as a special size for working
11277  with 35
11278 \begin_inset space \thinspace{}
11279 \end_inset
11280
11281 mm slides.
11282  It doesn't support A5, B5, legal or executive paper sizes.
11283 \end_layout
11284
11285 \begin_layout Itemize
11286 Don't bother changing the 
11287 \family sans
11288 Float Placement
11289 \family default
11290  settings because they are ignored anyway.
11291  All floats appear where they are defined in the text.
11292 \end_layout
11293
11294 \begin_layout Itemize
11295 The 
11296 \family sans
11297 Pagestyle
11298 \family default
11299  setting behaves a bit differently for this class.
11300  
11301 \family sans
11302 Foil\SpecialChar TeX
11303
11304 \family default
11305  provides extensive footer and header capabilities including a user-defined
11306  logo.
11307  See section
11308 \begin_inset space ~
11309 \end_inset
11310
11311
11312 \begin_inset CommandInset ref
11313 LatexCommand ref
11314 reference "sec:foilfoot"
11315
11316 \end_inset
11317
11318  for more details.
11319  The title page is treated differently to all other pages in the document
11320  and is 
11321 \emph on
11322 always
11323 \emph default
11324  unnumbered and 
11325 \emph on
11326 always
11327 \emph default
11328  has the logo centered at the bottom of the page (if one is defined).
11329  The possible page style choices and what they do are as follows:
11330 \end_layout
11331
11332 \begin_deeper
11333 \begin_layout Labeling
11334 \labelwidthstring MMMMMMM
11335
11336 \family sans
11337 \series bold
11338 empty
11339 \family default
11340 \series default
11341  The final output contains no page numbers, or other headers or footers
11342  (except footnotes of course).
11343  
11344 \end_layout
11345
11346 \begin_layout Labeling
11347 \labelwidthstring MMMMMMM
11348
11349 \family sans
11350 \series bold
11351 plain
11352 \family default
11353 \series default
11354  The final output contains page numbers centered at the bottom of the page.
11355  No other headings or footers (other than footnotes).
11356 \end_layout
11357
11358 \begin_layout Labeling
11359 \labelwidthstring MMMMMMM
11360
11361 \series bold
11362 foilheadings
11363 \series default
11364  Page numbers in lower right corner.
11365  Additional headers and footers are also shown.
11366  This is also the default.
11367 \end_layout
11368
11369 \begin_layout Labeling
11370 \labelwidthstring MMMMMMM
11371
11372 \series bold
11373 fancy
11374 \series default
11375  Gives you access to the 
11376 \family sans
11377 fancyheadings
11378 \family default
11379  package although its use with 
11380 \family sans
11381 Foil\SpecialChar TeX
11382
11383 \family default
11384  is discouraged by the writer of the 
11385 \family sans
11386 Foil\SpecialChar TeX
11387
11388 \family default
11389  package because of some potential page layout clashes.
11390 \end_layout
11391
11392 \end_deeper
11393 \begin_layout Subsubsection
11394 Extra Options
11395 \end_layout
11396
11397 \begin_layout Standard
11398 The following options may be used in the extra class options in the 
11399 \family sans
11400 Document\SpecialChar menuseparator
11401 Settings
11402 \family default
11403  dialog.
11404 \end_layout
11405
11406 \begin_layout Labeling
11407 \labelwidthstring MMMMMMx
11408
11409 \series bold
11410 35mmSlide
11411 \series default
11412  This sets up the page layout for 7.33
11413 \begin_inset space \thinspace{}
11414 \end_inset
11415
11416 in by 11
11417 \begin_inset space \thinspace{}
11418 \end_inset
11419
11420 in paper, which is about the same aspect ratio as a 35
11421 \begin_inset space \thinspace{}
11422 \end_inset
11423
11424 mm slide, making it a bit easier to work with this medium.
11425 \end_layout
11426
11427 \begin_layout Labeling
11428 \labelwidthstring MMMMMMx
11429
11430 \series bold
11431 headrule
11432 \series default
11433  Places a rule across the page below the header on every page except the
11434  title page.
11435 \end_layout
11436
11437 \begin_layout Labeling
11438 \labelwidthstring MMMMMMx
11439
11440 \series bold
11441 footrule
11442 \series default
11443  Places a rule across the page above the footer on every page except the
11444  title page.
11445 \end_layout
11446
11447 \begin_layout Labeling
11448 \labelwidthstring MMMMMMx
11449
11450 \series bold
11451 dvips
11452 \series default
11453  This is automatically set each time you create a new 
11454 \family sans
11455 foils
11456 \family default
11457  document.
11458  This option tells 
11459 \family sans
11460 Foil\SpecialChar TeX
11461
11462 \family default
11463  to use the dvips driver to rotate those pages that are set as landscape
11464  foils.
11465 \end_layout
11466
11467 \begin_layout Labeling
11468 \labelwidthstring MMMMMMx
11469
11470 \series bold
11471 landscape
11472 \series default
11473  Simply changes the page dimensions to those of a landscape page but doesn't
11474  do any rotation.
11475  Thus if you use this option you need to use an external program to rotate
11476  each page or feed your paper through your printer as landscape.
11477  Note that this option effectively reverses the roles of the 
11478 \family sans
11479 Foilhead
11480 \family default
11481  and 
11482 \family sans
11483 Rotatefoilhead
11484 \family default
11485  environments (don't worry these are described in the next section).
11486 \end_layout
11487
11488 \begin_layout Labeling
11489 \labelwidthstring MMMMMMx
11490
11491 \series bold
11492 leqno
11493 \series default
11494  Equation numbers on the left.
11495 \end_layout
11496
11497 \begin_layout Labeling
11498 \labelwidthstring MMMMMMx
11499
11500 \series bold
11501 fleqn
11502 \series default
11503  Flush-left equations.
11504 \end_layout
11505
11506 \begin_layout Subsection
11507 Supported Environments
11508 \end_layout
11509
11510 \begin_layout Standard
11511 Most of the environments commonly supported in other classes are also supported
11512  by the 
11513 \family sans
11514 foils
11515 \family default
11516  class.
11517  There are several additional environments provided by 
11518 \family sans
11519 Foil\SpecialChar TeX
11520
11521 \family default
11522  as well as a couple added by \SpecialChar LyX
11523 .
11524  The following environments are shared with other classes:
11525 \end_layout
11526
11527 \begin_layout Standard
11528 \begin_inset Flex Multiple Columns
11529 status open
11530
11531 \begin_layout Itemize
11532
11533 \family sans
11534 Standard
11535 \end_layout
11536
11537 \begin_layout Itemize
11538
11539 \family sans
11540 Itemize
11541 \end_layout
11542
11543 \begin_layout Itemize
11544
11545 \family sans
11546 Enumerate
11547 \end_layout
11548
11549 \begin_layout Itemize
11550
11551 \family sans
11552 Description
11553 \end_layout
11554
11555 \begin_layout Itemize
11556
11557 \family sans
11558 List
11559 \end_layout
11560
11561 \begin_layout Itemize
11562
11563 \family sans
11564 \SpecialChar LyX
11565 -Code
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 Verse
11572 \end_layout
11573
11574 \begin_layout Itemize
11575
11576 \family sans
11577 Quote
11578 \end_layout
11579
11580 \begin_layout Itemize
11581
11582 \family sans
11583 Quotation
11584 \end_layout
11585
11586 \begin_layout Itemize
11587
11588 \family sans
11589 TitleAuthor
11590 \end_layout
11591
11592 \begin_layout Itemize
11593
11594 \family sans
11595 Date
11596 \end_layout
11597
11598 \begin_layout Itemize
11599
11600 \family sans
11601 Abstract
11602 \end_layout
11603
11604 \begin_layout Itemize
11605
11606 \family sans
11607 Bibliography
11608 \end_layout
11609
11610 \begin_layout Itemize
11611
11612 \family sans
11613 Address
11614 \end_layout
11615
11616 \begin_layout Itemize
11617
11618 \family sans
11619 RightAddress
11620 \end_layout
11621
11622 \end_inset
11623
11624
11625 \end_layout
11626
11627 \begin_layout Standard
11628 That is, all the major environments apart from the sectioning environments.
11629  Since foils are essentially self-contained sections, with a title and body,
11630  
11631 \family sans
11632 Foil\SpecialChar TeX
11633
11634 \family default
11635  provides specific commands for starting new foils and these are:
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \family sans
11641 Foilhead
11642 \end_layout
11643
11644 \begin_layout Itemize
11645
11646 \family sans
11647 Rotatefoilhead
11648 \end_layout
11649
11650 \begin_layout Standard
11651 \SpecialChar LyX
11652  also provides slightly modified versions of these two environments called:
11653 \end_layout
11654
11655 \begin_layout Itemize
11656
11657 \family sans
11658 ShortFoilhead
11659 \end_layout
11660
11661 \begin_layout Itemize
11662
11663 \family sans
11664 ShortRotatefoilhead
11665 \end_layout
11666
11667 \begin_layout Standard
11668 and the differences will be explained in the next section.
11669 \end_layout
11670
11671 \begin_layout Standard
11672 Since foils are often used in presenting ideas or new theorems and such
11673  
11674 \family sans
11675 Foil\SpecialChar TeX
11676
11677 \family default
11678  also provides a comprehensive box of goodies for presenting them:
11679 \end_layout
11680
11681 \begin_layout Standard
11682 \begin_inset Flex Multiple Columns
11683 status open
11684
11685 \begin_layout Itemize
11686
11687 \family sans
11688 Theorem
11689 \end_layout
11690
11691 \begin_layout Itemize
11692
11693 \family sans
11694 Lemma
11695 \end_layout
11696
11697 \begin_layout Itemize
11698
11699 \family sans
11700 Corollary
11701 \end_layout
11702
11703 \begin_layout Itemize
11704
11705 \family sans
11706 Proposition
11707 \end_layout
11708
11709 \begin_layout Itemize
11710
11711 \family sans
11712 Definition
11713 \end_layout
11714
11715 \begin_layout Itemize
11716
11717 \family sans
11718 Proof
11719 \end_layout
11720
11721 \begin_layout Itemize
11722
11723 \family sans
11724 Theorem*
11725 \end_layout
11726
11727 \begin_layout Itemize
11728
11729 \family sans
11730 Lemma*
11731 \end_layout
11732
11733 \begin_layout Itemize
11734
11735 \family sans
11736 Corollary*
11737 \end_layout
11738
11739 \begin_layout Itemize
11740
11741 \family sans
11742 Proposition*
11743 \end_layout
11744
11745 \begin_layout Itemize
11746
11747 \family sans
11748 Definition*
11749 \end_layout
11750
11751 \end_inset
11752
11753
11754 \end_layout
11755
11756 \begin_layout Standard
11757 The starred versions are unnumbered while the unstarred versions are numbered.
11758  There are also two list environments added by \SpecialChar LyX
11759  and these are:
11760 \end_layout
11761
11762 \begin_layout Itemize
11763
11764 \family sans
11765 TickList
11766 \end_layout
11767
11768 \begin_layout Itemize
11769
11770 \family sans
11771 CrossList
11772 \end_layout
11773
11774 \begin_layout Standard
11775
11776 \family sans
11777 Foil\SpecialChar TeX
11778
11779 \family default
11780  provides some powerful header and footer capabilities that are best set
11781  in the preamble although they may be set at any point in a document.
11782  If you want to change these settings in your document the best place to
11783  do so is at the very top of a foil, i.
11784 \begin_inset space \thinspace{}
11785 \end_inset
11786
11787 e.
11788 \emph on
11789
11790 \begin_inset space \space{}
11791 \end_inset
11792
11793
11794 \emph default
11795 straight after the foilhead.
11796 \end_layout
11797
11798 \begin_layout Standard
11799 For this purpose, the following command styles are provided [
11800 \shape smallcaps
11801 Martin Vermeer
11802 \shape default
11803 ]:
11804 \end_layout
11805
11806 \begin_layout Standard
11807 \begin_inset Flex Multiple Columns
11808 status open
11809
11810 \begin_layout Itemize
11811
11812 \family sans
11813 My
11814 \begin_inset space ~
11815 \end_inset
11816
11817 Logo
11818 \end_layout
11819
11820 \begin_layout Itemize
11821
11822 \family sans
11823 Restriction
11824 \end_layout
11825
11826 \begin_layout Itemize
11827
11828 \family sans
11829 Right
11830 \begin_inset space ~
11831 \end_inset
11832
11833 Footer
11834 \end_layout
11835
11836 \begin_layout Itemize
11837
11838 \family sans
11839 Right
11840 \begin_inset space ~
11841 \end_inset
11842
11843 Header
11844 \end_layout
11845
11846 \begin_layout Itemize
11847
11848 \family sans
11849 Left
11850 \begin_inset space ~
11851 \end_inset
11852
11853 Header
11854 \end_layout
11855
11856 \begin_deeper
11857 \begin_layout Plain Layout
11858 \begin_inset space ~
11859 \end_inset
11860
11861
11862 \end_layout
11863
11864 \end_deeper
11865 \end_inset
11866
11867
11868 \end_layout
11869
11870 \begin_layout Standard
11871 There are also a few commands provided by 
11872 \family sans
11873 Foil\SpecialChar TeX
11874
11875 \family default
11876  that aren't directly supported by \SpecialChar LyX
11877  but I'll tell you what they do and how
11878  to use them in section
11879 \begin_inset space ~
11880 \end_inset
11881
11882
11883 \begin_inset CommandInset ref
11884 LatexCommand ref
11885 reference "sec:unsuppfoils"
11886
11887 \end_inset
11888
11889 .
11890 \end_layout
11891
11892 \begin_layout Subsection
11893 Building a Set of Foils
11894 \end_layout
11895
11896 \begin_layout Standard
11897 This section will give a simple introduction to using the different environments
11898  to build a set of foils.
11899  If you want to see an example set of foils, take a look at the 
11900 \family typewriter
11901 Foils.lyx
11902 \family default
11903  file you find in \SpecialChar LyX
11904 's 
11905 \family typewriter
11906 examples
11907 \family default
11908  folder.
11909 \end_layout
11910
11911 \begin_layout Subsubsection
11912 Give It a Title Page
11913 \end_layout
11914
11915 \begin_layout Standard
11916 Unlike other classes that provide 
11917 \family sans
11918 Title
11919 \family default
11920
11921 \family sans
11922 Author
11923 \family default
11924
11925 \family sans
11926 Date
11927 \family default
11928  and 
11929 \family sans
11930 Abstract
11931 \family default
11932  environments, 
11933 \family sans
11934 foils
11935 \family default
11936  creates the title on a page of its own.
11937  If you leave out the 
11938 \family sans
11939 Date
11940 \family default
11941  environment \SpecialChar LaTeX
11942  will substitute the current date (every time you regenerate
11943  the output).
11944 \end_layout
11945
11946 \begin_layout Subsubsection
11947 Start a New Foil
11948 \end_layout
11949
11950 \begin_layout Standard
11951 As I mentioned earlier, there are four ways of starting a new foil.
11952  For portrait foils you should use 
11953 \family sans
11954 Foilhead
11955 \family default
11956  or 
11957 \family sans
11958 ShortFoilhead.
11959
11960 \family default
11961  The difference between these two environments is the amount of space between
11962  the title of the foil (the foilhead) and the body of the foil.
11963 \end_layout
11964
11965 \begin_layout Standard
11966 Landscape foils are generated using the 
11967 \family sans
11968 Rotatefoilhead
11969 \family default
11970  and 
11971 \family sans
11972 ShortRotatefoilhead
11973 \family default
11974  environments.
11975  Again the only difference is the spacing between foilhead and body.
11976  Both of the short versions have 0.5
11977 \begin_inset space ~
11978 \end_inset
11979
11980 inches less separation between the foilhead and the body.
11981  
11982 \end_layout
11983
11984 \begin_layout Standard
11985 One problem with the support for landscape foils is the requirement that
11986  you have to use the 
11987 \family typewriter
11988 dvips
11989 \family default
11990  driver to generate the PostScript output otherwise the foils won't be rotated.
11991  It is possible to get landscape foils even if you haven't got the 
11992 \family typewriter
11993 dvips
11994 \family default
11995  driver provided you can feed your foils sideways through your printer ;-)
11996 \end_layout
11997
11998 \begin_layout Subsubsection
11999 Theorems, Lemmas, Proofs and more
12000 \end_layout
12001
12002 \begin_layout Standard
12003 You can't have two of the same type of these environments directly following
12004  each other.
12005  If you use a normal paragraph break, , you will just be extending the previous
12006  environment as if you had merged the two environments together.
12007  Rather than that, you need to insert a so-called separator.
12008  Please refer to the section entitled 
12009 \emph on
12010 Separate Nestings
12011 \emph default
12012  in the 
12013 \emph on
12014 User's Guide
12015 \emph default
12016 .
12017 \end_layout
12018
12019 \begin_layout Subsubsection
12020 Lists
12021 \end_layout
12022
12023 \begin_layout Standard
12024 You get all the commonly supported list styles found in other classes as
12025  well as two new ones.
12026  I'll only describe the new ones here.
12027  If you want to find out more about the other list environments check out
12028  the 
12029 \emph on
12030 User's Guide.
12031
12032 \emph default
12033  If you intend to use itemized lists you might also want to read about the
12034  
12035 \family sans
12036 Itemize
12037 \begin_inset space ~
12038 \end_inset
12039
12040 Bullet
12041 \begin_inset space ~
12042 \end_inset
12043
12044 Selection
12045 \family default
12046  dialog described above in section
12047 \begin_inset space ~
12048 \end_inset
12049
12050
12051 \begin_inset CommandInset ref
12052 LatexCommand ref
12053 reference "sec:bullet"
12054
12055 \end_inset
12056
12057 .
12058 \end_layout
12059
12060 \begin_layout Standard
12061 The two new list styles, 
12062 \family sans
12063 TickList
12064 \family default
12065  and 
12066 \family sans
12067 CrossList
12068 \family default
12069 , are designed to make it easier for you to create lists of do's and don'ts
12070  or right and wrong by providing dedicated environments that use a tick
12071  or a cross as the label of the list.
12072  These lists are in fact dedicated variants of the 
12073 \family sans
12074 Itemize
12075 \family default
12076  environment.
12077  They do however require that you have the 
12078 \family typewriter
12079 psnfss
12080 \family default
12081  packages installed.
12082 \end_layout
12083
12084 \begin_layout Subsubsection
12085 Figures and Tables
12086 \end_layout
12087
12088 \begin_layout Standard
12089
12090 \family sans
12091 Foil\SpecialChar TeX
12092
12093 \family default
12094  redefines the floating tables and figures so that they appear exactly where
12095  they are in the text rather than pushing them to the top of the page or
12096  to some user specified location.
12097  In fact if you change the float placement settings they are simply ignored.
12098 \end_layout
12099
12100 \begin_layout Subsubsection
12101 Page Headers and Footers
12102 \begin_inset CommandInset label
12103 LatexCommand label
12104 name "sec:foilfoot"
12105
12106 \end_inset
12107
12108
12109 \end_layout
12110
12111 \begin_layout Standard
12112
12113 \family sans
12114 My
12115 \begin_inset space ~
12116 \end_inset
12117
12118 Logo
12119 \family default
12120  and 
12121 \family sans
12122 Restriction
12123 \family default
12124  are two commands used to control the left-footer text string.
12125  The first is meant to allow you to include a graphic logo on your foils
12126  and defaults to 
12127 \begin_inset Quotes eld
12128 \end_inset
12129
12130 -Typeset by 
12131 \family sans
12132 Foil\SpecialChar TeX
12133
12134 \family default
12135 -
12136 \begin_inset Quotes erd
12137 \end_inset
12138
12139 .
12140  While the second is meant to provide a classification for the audience,
12141  
12142 \emph on
12143 e.
12144 \begin_inset space \thinspace{}
12145 \end_inset
12146
12147 g.
12148 \emph default
12149
12150 \begin_inset space \space{}
12151 \end_inset
12152
12153 Confidential.
12154  It is empty by default.
12155 \end_layout
12156
12157 \begin_layout Standard
12158 The remaining page corners can be filled by 
12159 \family sans
12160 Right
12161 \begin_inset space ~
12162 \end_inset
12163
12164 Footer
12165 \family default
12166  (which defaults to page numbers), 
12167 \family sans
12168 Right
12169 \begin_inset space ~
12170 \end_inset
12171
12172 Header
12173 \family default
12174  (top right) and 
12175 \family sans
12176 Left
12177 \begin_inset space ~
12178 \end_inset
12179
12180 Header
12181 \family default
12182  (top left).
12183 \end_layout
12184
12185 \begin_layout Subsection
12186 Unsupported 
12187 \family sans
12188 Foil\SpecialChar TeX
12189
12190 \family default
12191  Goodies
12192 \begin_inset CommandInset label
12193 LatexCommand label
12194 name "sec:unsuppfoils"
12195
12196 \end_inset
12197
12198
12199 \end_layout
12200
12201 \begin_layout Standard
12202 All the commands mentioned below need to be set in a 
12203 \family sans
12204 \SpecialChar LaTeX
12205
12206 \family default
12207  environment or as 
12208 \family sans
12209 \SpecialChar TeX
12210
12211 \family default
12212  within another environment.
12213 \end_layout
12214
12215 \begin_layout Subsubsection
12216 Lengths
12217 \end_layout
12218
12219 \begin_layout Standard
12220 All lengths are adjusted using the 
12221 \family typewriter
12222
12223 \backslash
12224 setlength{
12225 \family default
12226 \emph on
12227 lengthname
12228 \family typewriter
12229 \emph default
12230 }{
12231 \family default
12232 \emph on
12233 newlength
12234 \family typewriter
12235 \emph default
12236 }
12237 \family default
12238  command.
12239  Where 
12240 \emph on
12241 lengthname
12242 \emph default
12243  should be replaced by the name given to the length you want to change and
12244  
12245 \emph on
12246 newlength
12247 \emph default
12248  is the length value.
12249  All lengths should be specified in units of length such as inches (
12250 \family typewriter
12251 in
12252 \family default
12253 ), millimeters (
12254 \family typewriter
12255 mm
12256 \family default
12257 ) or points (
12258 \family typewriter
12259 pt
12260 \family default
12261 ) or relative to some document or font-based length such as 
12262 \family typewriter
12263
12264 \backslash
12265 textwidth
12266 \family default
12267 .
12268  
12269 \end_layout
12270
12271 \begin_layout Standard
12272 It's possible to change the spacing between a foilhead and the body of the
12273  foil by adjusting the length specified by 
12274 \family typewriter
12275
12276 \backslash
12277 foilheadskip
12278 \family default
12279 .
12280  For example, to make 
12281 \emph on
12282 all
12283 \emph default
12284  foilheads 0.5
12285 \begin_inset space \space{}
12286 \end_inset
12287
12288 in closer to their bodies put the following in the preamble: 
12289 \family typewriter
12290
12291 \backslash
12292 setlength{
12293 \backslash
12294 foilheadskip}{-0.5in}
12295 \end_layout
12296
12297 \begin_layout Standard
12298 The spacings around floats can be adjusted by setting these lengths:
12299 \end_layout
12300
12301 \begin_layout Labeling
12302 \labelwidthstring MMMMMMMMMMM
12303
12304 \family typewriter
12305
12306 \backslash
12307 abovefloatskip
12308 \family default
12309  Separation between the text and the top of the float
12310 \end_layout
12311
12312 \begin_layout Labeling
12313 \labelwidthstring MMMMMMMMMMM
12314
12315 \family typewriter
12316
12317 \backslash
12318 abovecaptionskip
12319 \family default
12320  Separation between the float and the caption
12321 \end_layout
12322
12323 \begin_layout Labeling
12324 \labelwidthstring MMMMMMMMMMM
12325
12326 \family typewriter
12327
12328 \backslash
12329 belowcaptionskip
12330 \family default
12331  Separation between the caption and the following text
12332 \end_layout
12333
12334 \begin_layout Labeling
12335 \labelwidthstring MMMMMMMMMMM
12336
12337 \family typewriter
12338
12339 \backslash
12340 captionwidth
12341 \family default
12342  You can make the captions narrower than the surrounding text by adjusting
12343  this length.
12344  Best done relative to 
12345 \family typewriter
12346
12347 \backslash
12348 textwidth
12349 \family default
12350 .
12351 \end_layout
12352
12353 \begin_layout Standard
12354 There are also several title page related lengths that you may find useful
12355  if you have a long title or several authors:
12356 \end_layout
12357
12358 \begin_layout Labeling
12359 \labelwidthstring MMMMMMMMMMM
12360
12361 \family typewriter
12362
12363 \backslash
12364 abovetitleskip
12365 \family default
12366  Separation from headers to 
12367 \family sans
12368 Title
12369 \end_layout
12370
12371 \begin_layout Labeling
12372 \labelwidthstring MMMMMMMMMMM
12373
12374 \family typewriter
12375
12376 \backslash
12377 titleauthorskip
12378 \family default
12379  between 
12380 \family sans
12381 Title
12382 \family default
12383  and 
12384 \family sans
12385 Author
12386 \family default
12387  environments
12388 \end_layout
12389
12390 \begin_layout Labeling
12391 \labelwidthstring MMMMMMMMMMM
12392
12393 \family typewriter
12394
12395 \backslash
12396 authorauthorskip
12397 \family default
12398  between multiple 
12399 \family sans
12400 Author
12401 \family default
12402  lines
12403 \end_layout
12404
12405 \begin_layout Labeling
12406 \labelwidthstring MMMMMMMMMMM
12407
12408 \family typewriter
12409
12410 \backslash
12411 authordateskip
12412 \family default
12413  between the 
12414 \family sans
12415 Author
12416 \family default
12417  and the 
12418 \family sans
12419 Date
12420 \end_layout
12421
12422 \begin_layout Labeling
12423 \labelwidthstring MMMMMMMMMMM
12424
12425 \family typewriter
12426
12427 \backslash
12428 dateabstractskip
12429 \family default
12430  between the 
12431 \family sans
12432 Date
12433 \family default
12434  and the 
12435 \family sans
12436 Abstract
12437 \end_layout
12438
12439 \begin_layout Standard
12440 The last length related command affects all the list environments.
12441  If you place 
12442 \family typewriter
12443
12444 \backslash
12445 zerolistvertdimens
12446 \family default
12447  
12448 \emph on
12449 inside
12450 \emph default
12451  a list environment then all the vertical spacing between the list items
12452  is removed.
12453  Note that this is a command not a length so it doesn't require 
12454 \family typewriter
12455
12456 \backslash
12457 setlength
12458 \family default
12459  like the stuff mentioned above.
12460 \end_layout
12461
12462 \begin_layout Subsubsection
12463 Headers and Footers
12464 \end_layout
12465
12466 \begin_layout Standard
12467 The 
12468 \family typewriter
12469
12470 \backslash
12471 LogoOn
12472 \family default
12473  and 
12474 \family typewriter
12475
12476 \backslash
12477 LogoOff
12478 \family default
12479  commands control whether the logo in the 
12480 \family sans
12481 MyLogo
12482 \family default
12483  definition appear on a given page.
12484  If you put 
12485 \family typewriter
12486
12487 \backslash
12488 LogoOff
12489 \family default
12490  in the preamble then none of the foils will have the logo on them.
12491  If you don't want the logo on a particular page place the 
12492 \family typewriter
12493
12494 \backslash
12495 LogoOff
12496 \family default
12497  directly after the foilhead of that page and the 
12498 \family typewriter
12499
12500 \backslash
12501 LogoOn
12502 \family default
12503  directly after the next foilhead.
12504 \end_layout
12505
12506 \begin_layout Standard
12507 If you decide to use the 
12508 \family sans
12509 fancy
12510 \family default
12511  page style setting in the 
12512 \family sans
12513 Document
12514 \begin_inset space ~
12515 \end_inset
12516
12517 Layout
12518 \family default
12519  dialog you should probably add 
12520 \family typewriter
12521
12522 \backslash
12523 let
12524 \backslash
12525 headwidth
12526 \backslash
12527 textwidth
12528 \family default
12529  to your preamble so headers and footers on landscape pages are correctly
12530  placed when rotated.
12531  This is due to some clashes between the page layouts provided by the 
12532 \family sans
12533 fancyheadings
12534 \family default
12535  package and the 
12536 \family sans
12537 foils
12538 \family default
12539  class.
12540 \end_layout
12541
12542 \begin_layout Section
12543 Hollywood (Hollywood spec scripts)
12544 \end_layout
12545
12546 \begin_layout Standard
12547 by 
12548 \shape smallcaps
12549 Garst Reese
12550 \end_layout
12551
12552 \begin_layout Subsection
12553 Introduction
12554 \end_layout
12555
12556 \begin_layout Standard
12557 Getting the format of a Hollywood script right is a 
12558 \begin_inset Quotes eld
12559 \end_inset
12560
12561 rite of passage.
12562 \begin_inset Quotes erd
12563 \end_inset
12564
12565  It is designed to make the readers focus on content and to be easy and
12566  familiar for the actors to read.
12567  Each page of a script should be one minute of film.
12568  Nothing goes in a script that you cannot see or hear on screen.
12569  The courier 12 pt font should be used throughout.
12570  No italics.
12571 \end_layout
12572
12573 \begin_layout Subsection
12574 Special problems
12575 \end_layout
12576
12577 \begin_layout Standard
12578 Speakers' lines should NEVER break in mid-sentence.
12579  If a speaker's lines continue over a page break, repeat the 
12580 \family sans
12581 Speaker
12582 \family default
12583  title followed by (Cont'd).
12584 \end_layout
12585
12586 \begin_layout Subsection
12587 Special features
12588 \end_layout
12589
12590 \begin_layout Standard
12591 Insert the 
12592 \family sans
12593 Speaker
12594 \family default
12595  names as labels then cross-reference the label to insert the name.
12596  The cross-reference dialog will show the current cast of characters.
12597  You can use this to insert the speaker name in narratives also.
12598 \end_layout
12599
12600 \begin_layout Subsection
12601 Paper size and Margins
12602 \end_layout
12603
12604 \begin_layout Standard
12605 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12606 \end_layout
12607
12608 \begin_layout Subsection
12609 Environments
12610 \end_layout
12611
12612 \begin_layout Standard
12613 The following environments are available.
12614  You can use hollywood.bind to get the bind keys shown at the right.
12615 \end_layout
12616
12617 \begin_layout Itemize
12618
12619 \family sans
12620 Standard
12621 \begin_inset Newline newline
12622 \end_inset
12623
12624
12625 \family default
12626 Used where nothing else works.
12627  Try to avoid it.
12628 \end_layout
12629
12630 \begin_layout Itemize
12631
12632 \family sans
12633 FADE_IN
12634 \family default
12635 :
12636 \begin_inset space \hfill{}
12637 \end_inset
12638
12639
12640 \family sans
12641 M-z S-I
12642 \family default
12643
12644 \begin_inset Newline newline
12645 \end_inset
12646
12647 Usually followed by something like 
12648 \begin_inset Quotes eld
12649 \end_inset
12650
12651 on Sally waking up.
12652 \begin_inset Quotes erd
12653 \end_inset
12654
12655
12656 \end_layout
12657
12658 \begin_layout Itemize
12659
12660 \family sans
12661 INT:
12662 \begin_inset space \hfill{}
12663 \end_inset
12664
12665 M-z i
12666 \begin_inset Newline newline
12667 \end_inset
12668
12669
12670 \family default
12671 Introduces a new INTERIOR camera set-up.
12672  Always followed by DAY or NIGHT, or something similar to define the lighting
12673  required.
12674  Everthing on this line in CAPS.
12675 \end_layout
12676
12677 \begin_layout Itemize
12678
12679 \family sans
12680 EXT:
12681 \begin_inset space \hfill{}
12682 \end_inset
12683
12684 M-z e
12685 \begin_inset Newline newline
12686 \end_inset
12687
12688
12689 \family default
12690 Introduces a new EXTERIOR camera set-up.
12691  Everthing on this line in CAPS.
12692 \end_layout
12693
12694 \begin_layout Itemize
12695
12696 \family sans
12697 Speaker
12698 \begin_inset space \hfill{}
12699 \end_inset
12700
12701 M-z s
12702 \begin_inset Newline newline
12703 \end_inset
12704
12705
12706 \family default
12707 The character speaking.
12708 \end_layout
12709
12710 \begin_layout Itemize
12711
12712 \family sans
12713 Parenthetical
12714 \begin_inset space \hfill{}
12715 \end_inset
12716
12717 M-z p
12718 \begin_inset Newline newline
12719 \end_inset
12720
12721
12722 \family default
12723 Instructions to the speaker.
12724  The () are automatically inserted.
12725 \end_layout
12726
12727 \begin_layout Itemize
12728
12729 \family sans
12730 Dialogue
12731 \begin_inset space \hfill{}
12732 \end_inset
12733
12734 M-z d
12735 \begin_inset Newline newline
12736 \end_inset
12737
12738
12739 \family default
12740 What the 
12741 \family sans
12742 Speaker
12743 \family default
12744  says.
12745 \end_layout
12746
12747 \begin_layout Itemize
12748
12749 \family sans
12750 Transition
12751 \begin_inset space \hfill{}
12752 \end_inset
12753
12754 M-z t
12755 \begin_inset Newline newline
12756 \end_inset
12757
12758
12759 \family default
12760 Camera movement instruction.
12761  e.
12762 \begin_inset space \thinspace{}
12763 \end_inset
12764
12765 g.
12766 \begin_inset space \space{}
12767 \end_inset
12768
12769 CUT TO:
12770 \end_layout
12771
12772 \begin_layout Itemize
12773
12774 \family sans
12775 FADE OUT:
12776 \begin_inset space \hfill{}
12777 \end_inset
12778
12779 M-z S-I
12780 \end_layout
12781
12782 \begin_layout Itemize
12783
12784 \family sans
12785 Author
12786 \begin_inset space \hfill{}
12787 \end_inset
12788
12789 M-z S-A
12790 \end_layout
12791
12792 \begin_layout Itemize
12793
12794 \family sans
12795 Title
12796 \begin_inset space \hfill{}
12797 \end_inset
12798
12799 M-z S-T
12800 \end_layout
12801
12802 \begin_layout Itemize
12803
12804 \family sans
12805 Right_Address
12806 \begin_inset space \hfill{}
12807 \end_inset
12808
12809 M-z r
12810 \end_layout
12811
12812 \begin_layout Subsection
12813 Script jargon
12814 \end_layout
12815
12816 \begin_layout Itemize
12817 (O.S) — off screen
12818 \end_layout
12819
12820 \begin_layout Itemize
12821 (V.0) — voice over
12822 \end_layout
12823
12824 \begin_layout Itemize
12825 b.
12826 \begin_inset space \thinspace{}
12827 \end_inset
12828
12829 g.
12830  — background
12831 \end_layout
12832
12833 \begin_layout Itemize
12834 C.U.
12835  — close-up
12836 \end_layout
12837
12838 \begin_layout Itemize
12839 PAN — camera movement
12840 \end_layout
12841
12842 \begin_layout Itemize
12843 INSERT — cut to close-up of
12844 \end_layout
12845
12846 \begin_layout Section
12847 ijmpc and ijmpd
12848 \end_layout
12849
12850 \begin_layout Standard
12851 by 
12852 \noun on
12853 Panayotis Papasotiriou
12854 \end_layout
12855
12856 \begin_layout Subsection
12857 Overview
12858 \end_layout
12859
12860 \begin_layout Standard
12861 The ijmpc package is a set of macros that facilitates electronic manuscript
12862  submission to the 
12863 \emph on
12864 International Journal of Modern Physics C
12865 \emph default
12866 .
12867  Similarly, the ijmpd package is for creating manuscripts to be submitted
12868  to the 
12869 \emph on
12870 International Journal of Modern Physics D
12871 \emph default
12872 .
12873  Both journals are published by World Scientific.
12874  The corresponding document classes are named 
12875 \family typewriter
12876 ws-ijmpc.cls
12877 \family default
12878  and 
12879 \family typewriter
12880 ws-ijmpd.cls
12881 \family default
12882 , respectively.
12883  These files, together with instructions for the authors, can be downloaded
12884  from the sites 
12885 \begin_inset Flex URL
12886 status collapsed
12887
12888 \begin_layout Plain Layout
12889
12890 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12891 \end_layout
12892
12893 \end_inset
12894
12895  and 
12896 \begin_inset Flex URL
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900
12901 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12902 \end_layout
12903
12904 \end_inset
12905
12906 .
12907  Both packages are modified versions of the standard 
12908 \begin_inset Quotes eld
12909 \end_inset
12910
12911 article
12912 \begin_inset Quotes erd
12913 \end_inset
12914
12915  package, and they are almost (but not exactly) identical.
12916  Most of their features are supported by \SpecialChar LyX
12917 .
12918  I have used \SpecialChar LyX
12919  successfully to write articles submitted to both journals
12920  without any problem.
12921 \end_layout
12922
12923 \begin_layout Subsection
12924 Writing a paper
12925 \end_layout
12926
12927 \begin_layout Standard
12928 As usual, the easiest way to write a paper is to start with a template.
12929  Click on 
12930 \family sans
12931 File\SpecialChar menuseparator
12932 New from
12933 \family default
12934  
12935 \family sans
12936 Template
12937 \family default
12938 , then choose the 
12939 \family typewriter
12940 ijmpc.lyx
12941 \family default
12942  or 
12943 \family typewriter
12944 ijmpd.lyx
12945 \family default
12946  template.
12947  This will give an (almost) empty document that includes the most common
12948  fields found in a manuscript.
12949  Simply overwrite the existing text (including the brackets, 
12950 \family typewriter
12951 <>
12952 \family default
12953 ) with your text.
12954  You should keep in mind the following remarks.
12955 \end_layout
12956
12957 \begin_layout Enumerate
12958 \SpecialChar LyX
12959  won't let you change the font size and the page style of the document,
12960  because such modifications are not allowed by both packages.
12961 \end_layout
12962
12963 \begin_layout Enumerate
12964 The language of the document should not be changed.
12965  Before previewing your paper, be sure that the babel package is not used.
12966  To do this, click on 
12967 \begin_inset Info
12968 type  "menu"
12969 arg   "dialog-show document"
12970 \end_inset
12971
12972  
12973 \family sans
12974 \SpecialChar menuseparator
12975 Language
12976 \family default
12977 , and select 
12978 \begin_inset Quotes eld
12979 \end_inset
12980
12981 None
12982 \begin_inset Quotes erd
12983 \end_inset
12984
12985  as 
12986 \family sans
12987 Language Package
12988 \family default
12989 .
12990 \end_layout
12991
12992 \begin_layout Enumerate
12993 The 
12994 \begin_inset Quotes eld
12995 \end_inset
12996
12997 Keywords
12998 \begin_inset Quotes erd
12999 \end_inset
13000
13001  style must be used to define keywords.
13002 \end_layout
13003
13004 \begin_layout Enumerate
13005 The ijmpc package provides a style named 
13006 \begin_inset Quotes eld
13007 \end_inset
13008
13009 Classification Codes
13010 \begin_inset Quotes erd
13011 \end_inset
13012
13013 , which can be used to define classification codes, such as PACS numbers.
13014  Note that this facility is not supported by the ijmpd package.
13015 \end_layout
13016
13017 \begin_layout Enumerate
13018 Several new environments are available: 
13019 \begin_inset Quotes eld
13020 \end_inset
13021
13022 Definition
13023 \begin_inset Quotes erd
13024 \end_inset
13025
13026
13027 \begin_inset Quotes eld
13028 \end_inset
13029
13030 Step
13031 \begin_inset Quotes erd
13032 \end_inset
13033
13034
13035 \begin_inset Quotes eld
13036 \end_inset
13037
13038 Example
13039 \begin_inset Quotes erd
13040 \end_inset
13041
13042
13043 \begin_inset Quotes eld
13044 \end_inset
13045
13046 Remark
13047 \begin_inset Quotes erd
13048 \end_inset
13049
13050
13051 \begin_inset Quotes eld
13052 \end_inset
13053
13054 Notation
13055 \begin_inset Quotes erd
13056 \end_inset
13057
13058
13059 \begin_inset Quotes eld
13060 \end_inset
13061
13062 Theorem
13063 \begin_inset Quotes erd
13064 \end_inset
13065
13066
13067 \begin_inset Quotes eld
13068 \end_inset
13069
13070 Proof
13071 \begin_inset Quotes erd
13072 \end_inset
13073
13074
13075 \begin_inset Quotes eld
13076 \end_inset
13077
13078 Corollary
13079 \begin_inset Quotes erd
13080 \end_inset
13081
13082
13083 \begin_inset Quotes eld
13084 \end_inset
13085
13086 Lemma
13087 \begin_inset Quotes erd
13088 \end_inset
13089
13090
13091 \begin_inset Quotes eld
13092 \end_inset
13093
13094 Proposition
13095 \begin_inset Quotes erd
13096 \end_inset
13097
13098
13099 \begin_inset Quotes eld
13100 \end_inset
13101
13102 Prop
13103 \begin_inset Quotes erd
13104 \end_inset
13105
13106
13107 \begin_inset Quotes eld
13108 \end_inset
13109
13110 Question
13111 \begin_inset Quotes erd
13112 \end_inset
13113
13114
13115 \begin_inset Quotes eld
13116 \end_inset
13117
13118 Claim
13119 \begin_inset Quotes erd
13120 \end_inset
13121
13122 , and 
13123 \begin_inset Quotes eld
13124 \end_inset
13125
13126 Conjecture
13127 \begin_inset Quotes erd
13128 \end_inset
13129
13130 .
13131  Their use is more or less obvious.
13132  \SpecialChar LyX
13133  supports all these environments; it will use the proper label, text style,
13134  and numbering scheme for each of them.
13135 \end_layout
13136
13137 \begin_layout Enumerate
13138 Both packages use basic citations; the natbib package should not be used.
13139  In \SpecialChar LyX
13140 , citation references are shown as usual; in the output, citations are
13141  shown as superscripts.
13142  If you want to use a citation as normal text, you should use the 
13143 \family typewriter
13144 refcite
13145 \family default
13146  command, e.
13147 \begin_inset space \thinspace{}
13148 \end_inset
13149
13150 g.
13151 \begin_inset space \space{}
13152 \end_inset
13153
13154
13155 \begin_inset Quotes eld
13156 \end_inset
13157
13158 See Ref.
13159 \begin_inset space \space{}
13160 \end_inset
13161
13162
13163 \family typewriter
13164
13165 \backslash
13166 refcite{key}
13167 \family default
13168
13169 \begin_inset Quotes erd
13170 \end_inset
13171
13172 .
13173 \end_layout
13174
13175 \begin_layout Enumerate
13176 There is no 
13177 \begin_inset Quotes eld
13178 \end_inset
13179
13180 Acknowledgments
13181 \begin_inset Quotes erd
13182 \end_inset
13183
13184  section in both packages.
13185  To put acknowledgments, just use the 
13186 \begin_inset Quotes eld
13187 \end_inset
13188
13189 Section*
13190 \begin_inset Quotes erd
13191 \end_inset
13192
13193  environment.
13194 \end_layout
13195
13196 \begin_layout Enumerate
13197 Appendices may be added to the paper, 
13198 \emph on
13199 after
13200 \emph default
13201  the Acknowledgments and 
13202 \shape italic
13203 before
13204 \shape default
13205  the References.
13206  \SpecialChar LyX
13207  provides a special environment, called 
13208 \begin_inset Quotes eld
13209 \end_inset
13210
13211 Appendices Section
13212 \begin_inset Quotes erd
13213 \end_inset
13214
13215  which marks the beginning of the appendices.
13216  This environment should be left blank; it just sends a \SpecialChar LaTeX
13217  command, but nothing
13218  is really printed.
13219  In \SpecialChar LyX
13220 , the word 
13221 \begin_inset Quotes eld
13222 \end_inset
13223
13224 Appendix
13225 \begin_inset Quotes erd
13226 \end_inset
13227
13228  is printed with blue letters, as a signal that all sections after that
13229  point are appendices.
13230  To write an appendix, use the 
13231 \begin_inset Quotes eld
13232 \end_inset
13233
13234 Appendix
13235 \begin_inset Quotes erd
13236 \end_inset
13237
13238  environment.
13239  \SpecialChar LyX
13240  will number each appendix with capital letters, as required by both journals.
13241  Note that 
13242 \begin_inset Quotes eld
13243 \end_inset
13244
13245 Appendices Section
13246 \begin_inset Quotes erd
13247 \end_inset
13248
13249  
13250 \emph on
13251 must
13252 \emph default
13253  be present before the first appendix; if not, all appendices will be numbered
13254  as normal sections in the output.
13255 \end_layout
13256
13257 \begin_layout Enumerate
13258 The ijmpc and the ijmpd packages use the 
13259 \family typewriter
13260 tbl
13261 \family default
13262  command to implement table captions.
13263  As a result, a table created by \SpecialChar LyX
13264  is printed correctly, but its caption
13265  is ignored.
13266  However, you can use some \SpecialChar TeX
13267  code to overcome this problem, so that captions
13268  are printed as expected.
13269  To do so, create a float table as usual, remove the caption, and replace
13270  it with the \SpecialChar TeX
13271  code 
13272 \family typewriter
13273
13274 \backslash
13275 tbl{
13276 \emph on
13277 your table caption
13278 \emph default
13279 }{
13280 \family default
13281  (sic); you must also the \SpecialChar TeX
13282  code 
13283 \family typewriter
13284 }
13285 \family default
13286  immediately after the tabular material.
13287  Study the example table included in the template files to see how this
13288  trick is implemented.
13289  Alternatively, If you need table captions, you should implement the whole
13290  table float in a 
13291 \family typewriter
13292 .tex
13293 \family default
13294  file, then include this file to the \SpecialChar LyX
13295  document (
13296 \family sans
13297 Insert\SpecialChar menuseparator
13298 File\SpecialChar menuseparator
13299 Child
13300 \begin_inset space ~
13301 \end_inset
13302
13303 Document
13304 \family default
13305 ).
13306  Details on how to create a table float can be found in the files 
13307 \family typewriter
13308 ws-ijmpc.tex
13309 \family default
13310  and 
13311 \family typewriter
13312 ws-ijmpd.tex
13313 \family default
13314 , included in the corresponding packages.
13315 \end_layout
13316
13317 \begin_layout Subsection
13318 Preparing a paper for submission
13319 \end_layout
13320
13321 \begin_layout Standard
13322 Before you submit your paper you must export the \SpecialChar LyX
13323  document as a \SpecialChar LaTeX
13324  file (
13325 \family sans
13326 File\SpecialChar menuseparator
13327 Export\SpecialChar menuseparator
13328 \SpecialChar LaTeX
13329
13330 \family default
13331 )
13332 \begin_inset Foot
13333 status open
13334
13335 \begin_layout Plain Layout
13336 Actually you have the choice between \SpecialChar LaTeX
13337  (plain) and pdflatex.
13338  If you intend to use pdflatex to prepare the paper, you should use the
13339  pdflatex option so that included graphics are converted to PDF format,
13340  ready for use by pdflatex.
13341 \end_layout
13342
13343 \end_inset
13344
13345 , then make the following changes to the resulting 
13346 \family typewriter
13347 .tex
13348 \family default
13349  file.
13350 \end_layout
13351
13352 \begin_layout Enumerate
13353 Remove the comment lines before the 
13354 \family typewriter
13355
13356 \backslash
13357 documentclass
13358 \family default
13359  command.
13360 \end_layout
13361
13362 \begin_layout Enumerate
13363 Remove everything between (and including) the 
13364 \family typewriter
13365
13366 \backslash
13367 makeatletter
13368 \family default
13369  and 
13370 \family typewriter
13371
13372 \backslash
13373 makeatother
13374 \family default
13375  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13376  preamble.
13377 \end_layout
13378
13379 \begin_layout Standard
13380 The modified 
13381 \family typewriter
13382 .tex
13383 \family default
13384  file should be saved and processed through \SpecialChar LaTeX
13385  as many times as necessary.
13386  You may also want to check the resulting 
13387 \family typewriter
13388 .dvi
13389 \family default
13390  document.
13391 \end_layout
13392
13393 \begin_layout Section
13394 iopart
13395 \end_layout
13396
13397 \begin_layout Standard
13398 by 
13399 \noun on
13400 Uwe Stöhr
13401 \end_layout
13402
13403 \begin_layout Subsection
13404 Overview
13405 \end_layout
13406
13407 \begin_layout Standard
13408 The iopart package provides a document class to create electronic manuscript
13409  submission to the journals published by the Institute of Physics.
13410  Instructions for the authors how to create a paper using the iopart class
13411  can be downloaded together with the iopart package from the site 
13412 \begin_inset Flex URL
13413 status collapsed
13414
13415 \begin_layout Plain Layout
13416
13417 ftp://ftp.iop.org/pub/journals/latex2e
13418 \end_layout
13419
13420 \end_inset
13421
13422 .
13423 \end_layout
13424
13425 \begin_layout Subsection
13426 Writing a paper
13427 \end_layout
13428
13429 \begin_layout Standard
13430 The easiest way to write a paper is to start with the template 
13431 \emph on
13432 IOP-article.lyx
13433 \emph default
13434  that is available via 
13435 \family sans
13436 File\SpecialChar menuseparator
13437 New From Template
13438 \family default
13439  The template explains how to use the special text environments.
13440  Here are the most important advices:
13441 \end_layout
13442
13443 \begin_layout Itemize
13444 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13445  no AMS packages are loaded in 
13446 \family sans
13447 Document\SpecialChar menuseparator
13448 Settings\SpecialChar menuseparator
13449 Math Options
13450 \family default
13451 !
13452 \end_layout
13453
13454 \begin_layout Itemize
13455
13456 \size normal
13457 The title environment defines the kind of your paper.
13458  So use one of the following environments for the title:
13459 \end_layout
13460
13461 \begin_deeper
13462 \begin_layout Itemize
13463
13464 \family sans
13465 \size normal
13466 Title
13467 \family default
13468  for a Paper
13469 \end_layout
13470
13471 \begin_layout Itemize
13472
13473 \family sans
13474 \size normal
13475 Review
13476 \family default
13477  for a Review
13478 \end_layout
13479
13480 \begin_layout Itemize
13481
13482 \family sans
13483 \size normal
13484 Topical
13485 \family default
13486  for a Topical review
13487 \end_layout
13488
13489 \begin_layout Itemize
13490
13491 \family sans
13492 \size normal
13493 Comment
13494 \family default
13495  for a Comment
13496 \end_layout
13497
13498 \begin_layout Itemize
13499
13500 \family sans
13501 \size normal
13502 Note
13503 \family default
13504  for a Note
13505 \end_layout
13506
13507 \begin_layout Itemize
13508
13509 \family sans
13510 \size normal
13511 Paper
13512 \family default
13513  for a Paper (same as Title)
13514 \end_layout
13515
13516 \begin_layout Itemize
13517
13518 \family sans
13519 \size normal
13520 Prelim
13521 \family default
13522  for a Preliminary communication
13523 \end_layout
13524
13525 \begin_layout Itemize
13526
13527 \family sans
13528 \size normal
13529 Rapid
13530 \family default
13531  for a Rapid communication
13532 \end_layout
13533
13534 \begin_layout Itemize
13535
13536 \family sans
13537 \size normal
13538 Letter
13539 \family default
13540  for a Letter to the editor
13541 \end_layout
13542
13543 \end_deeper
13544 \begin_layout Itemize
13545
13546 \size normal
13547 All title environments except of 
13548 \family sans
13549 Letter
13550 \family default
13551  can have an optional short title.
13552 \end_layout
13553
13554 \begin_layout Itemize
13555 There is a general title environment 
13556 \family sans
13557 Article
13558 \family default
13559  which is not directly supported by \SpecialChar LyX
13560 .
13561  This can be used as \SpecialChar TeX
13562  code when your document doesn't fit into one of the
13563  other title types.
13564 \end_layout
13565
13566 \begin_layout Standard
13567 For more informations like hints for special table and formula formatting,
13568  look at the IOP author guidelines.
13569 \end_layout
13570
13571 \begin_layout Section
13572 Kluwer
13573 \end_layout
13574
13575 \begin_layout Standard
13576 by 
13577 \noun on
13578 Panayotis Papasotiriou
13579 \end_layout
13580
13581 \begin_layout Subsection
13582 Overview
13583 \end_layout
13584
13585 \begin_layout Standard
13586 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13587  that facilitates electronic manuscript submission to the journals they
13588  publish.
13589  Most known of them (at least in my domain of interest) are 
13590 \emph on
13591 Astrophysics and Space Science
13592 \emph default
13593  and 
13594 \emph on
13595 Solar Physics
13596 \emph default
13597 , but there are many others (see a complete list at 
13598 \begin_inset Flex URL
13599 status collapsed
13600
13601 \begin_layout Plain Layout
13602
13603 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13604 \end_layout
13605
13606 \end_inset
13607
13608 ).
13609  The Kluwer package may be downloaded from the site 
13610 \begin_inset Flex URL
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614
13615 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13616 \end_layout
13617
13618 \end_inset
13619
13620 .
13621  A complete user guide is contained in that package (but it can also be
13622  downloaded separately).
13623 \end_layout
13624
13625 \begin_layout Standard
13626 \SpecialChar LyX
13627  supports many features of the package but not everything.
13628  However, the \SpecialChar TeX
13629  code needed is reduced to some 
13630 \begin_inset Quotes eld
13631 \end_inset
13632
13633 peculiar
13634 \begin_inset Quotes erd
13635 \end_inset
13636
13637  commands of the package (see
13638 \begin_inset space ~
13639 \end_inset
13640
13641
13642 \begin_inset CommandInset ref
13643 LatexCommand ref
13644 reference "subsec:kluwer_peculiarities"
13645
13646 \end_inset
13647
13648 ).
13649  I have recently used \SpecialChar LyX
13650  to write an article submitted to the 
13651 \emph on
13652 Astrophysics and Space Science
13653 \emph default
13654  without any problem.
13655 \end_layout
13656
13657 \begin_layout Subsection
13658 Writing a paper
13659 \end_layout
13660
13661 \begin_layout Standard
13662 The easiest way to write a paper is to start with the Kluwer template file.
13663  Click on 
13664 \family sans
13665 File\SpecialChar menuseparator
13666 New from
13667 \family default
13668  
13669 \family sans
13670 Template
13671 \family default
13672 , then choose the 
13673 \family typewriter
13674 kluwer.lyx
13675 \family default
13676  template.
13677  This will give an (almost) empty document that includes the most common
13678  fields found in a manuscript and a short description of their use.
13679  As in most templates, simply overwrite the existing text (including the
13680  brackets, 
13681 \family typewriter
13682 <>
13683 \family default
13684 ) with the correct information.
13685 \end_layout
13686
13687 \begin_layout Subsection
13688 Preparing a paper for submission
13689 \end_layout
13690
13691 \begin_layout Standard
13692 As in the AAS\SpecialChar TeX
13693  package, before you submit your paper to a journal you must
13694  
13695 \begin_inset Quotes eld
13696 \end_inset
13697
13698 postprocess
13699 \begin_inset Quotes erd
13700 \end_inset
13701
13702  it as follows.
13703 \end_layout
13704
13705 \begin_layout Enumerate
13706 Export your paper as a \SpecialChar LaTeX
13707  file.
13708  To do this, click on 
13709 \family sans
13710 File\SpecialChar menuseparator
13711 Export\SpecialChar menuseparator
13712 \SpecialChar LaTeX
13713
13714 \family default
13715 .
13716  
13717 \end_layout
13718
13719 \begin_layout Enumerate
13720 Edit the resulting 
13721 \family typewriter
13722 .tex
13723 \family default
13724  file with a text editor and make the following changes
13725 \end_layout
13726
13727 \begin_deeper
13728 \begin_layout Enumerate
13729 remove the comment lines before the 
13730 \family typewriter
13731
13732 \backslash
13733 documentclass
13734 \family default
13735  command,
13736 \end_layout
13737
13738 \begin_layout Enumerate
13739 remove everything between (and including) the 
13740 \family typewriter
13741
13742 \backslash
13743 makeatletter
13744 \family default
13745  and 
13746 \family typewriter
13747
13748 \backslash
13749 makeatother
13750 \family default
13751  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13752  preamble.
13753 \end_layout
13754
13755 \begin_layout Standard
13756 Save the resulting 
13757 \family typewriter
13758 .tex
13759 \family default
13760  file.
13761 \end_layout
13762
13763 \end_deeper
13764 \begin_layout Enumerate
13765 Run the 
13766 \family typewriter
13767 .tex
13768 \family default
13769  file through \SpecialChar LaTeX
13770  as many times as necessary (usually up to three).
13771 \end_layout
13772
13773 \begin_layout Enumerate
13774 View the resulting 
13775 \family typewriter
13776 .dvi
13777 \family default
13778  document using, e.
13779 \begin_inset space \thinspace{}
13780 \end_inset
13781
13782 g.
13783 \begin_inset space \space{}
13784 \end_inset
13785
13786
13787 \family sans
13788 xdvi
13789 \family default
13790 , and check if everything is OK (it should, if you didn't make any mistake).
13791 \end_layout
13792
13793 \begin_layout Subsection
13794 \begin_inset Quotes eld
13795 \end_inset
13796
13797 Peculiarities
13798 \begin_inset Quotes erd
13799 \end_inset
13800
13801  of the Kluwer package
13802 \begin_inset CommandInset label
13803 LatexCommand label
13804 name "subsec:kluwer_peculiarities"
13805
13806 \end_inset
13807
13808
13809 \end_layout
13810
13811 \begin_layout Standard
13812 The Kluwer package has the following 
13813 \begin_inset Quotes eld
13814 \end_inset
13815
13816 peculiarities
13817 \begin_inset Quotes erd
13818 \end_inset
13819
13820 .
13821 \end_layout
13822
13823 \begin_layout Enumerate
13824 It is possible to write multiple articles in the same \SpecialChar LaTeX
13825  file
13826 \begin_inset Foot
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 I can't imagine any good reason to do this.
13831 \end_layout
13832
13833 \end_inset
13834
13835 .
13836  Each article must be included in the environment 
13837 \begin_inset Quotes eld
13838 \end_inset
13839
13840 article
13841 \begin_inset Quotes erd
13842 \end_inset
13843
13844 .
13845  Unfortunately, this environment cannot be omitted, even if you write just
13846  one article.
13847  Therefore, each article starts with the command 
13848 \family typewriter
13849
13850 \backslash
13851 begin{article}
13852 \family default
13853  and, obviously, ends with the command 
13854 \family typewriter
13855
13856 \backslash
13857 end{article}
13858 \family default
13859 .
13860  Although this can be implemented in \SpecialChar LyX
13861 , I didn't included it, since it looks
13862  ugly and can confuse the novice user.
13863  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13864  code (the
13865  well-known 
13866 \begin_inset Quotes eld
13867 \end_inset
13868
13869 \SpecialChar TeX
13870  code
13871 \begin_inset Quotes erd
13872 \end_inset
13873
13874 ).
13875 \end_layout
13876
13877 \begin_layout Enumerate
13878 Information given at the beginning of the article (i.
13879 \begin_inset space \thinspace{}
13880 \end_inset
13881
13882 e.
13883 \begin_inset space \space{}
13884 \end_inset
13885
13886 title, subtitle, author, institution, running title, running author, abstract
13887  and keywords) must be included in an environment called 
13888 \begin_inset Quotes eld
13889 \end_inset
13890
13891 opening
13892 \begin_inset Quotes erd
13893 \end_inset
13894
13895 .
13896  This is not implemented in \SpecialChar LyX
13897 , so you must enter title, subtitle etc.
13898 \begin_inset space ~
13899 \end_inset
13900
13901 between two \SpecialChar TeX
13902  code lines (
13903 \family typewriter
13904
13905 \backslash
13906 begin{opening}
13907 \family default
13908  and 
13909 \family typewriter
13910
13911 \backslash
13912 end{opening}
13913 \family default
13914 ).
13915 \end_layout
13916
13917 \begin_layout Enumerate
13918 According to the user manual, the label of each bibliography item must be
13919  written as 
13920 \family typewriter
13921
13922 \backslash
13923 protect
13924 \backslash
13925 citeauthoryear{
13926 \family default
13927 \emph on
13928 author(s)
13929 \family typewriter
13930 \emph default
13931 }{
13932 \family default
13933 \emph on
13934 year
13935 \family typewriter
13936 \emph default
13937 }
13938 \family default
13939 .
13940 \end_layout
13941
13942 \begin_layout Standard
13943 The 
13944 \family typewriter
13945 kluwer.lyx
13946 \family default
13947  template takes care of all these 
13948 \begin_inset Quotes eld
13949 \end_inset
13950
13951 peculiarities
13952 \begin_inset Quotes erd
13953 \end_inset
13954
13955 .
13956  If you start a new paper using this template you don't need to do anything
13957  special.
13958  Just 
13959 \end_layout
13960
13961 \begin_layout Enumerate
13962 don't delete the \SpecialChar TeX
13963  code included in the template, and
13964 \end_layout
13965
13966 \begin_layout Enumerate
13967 copy the example bibliography item included in the template and modify it
13968  as necessary to enter new bibliography items.
13969 \end_layout
13970
13971 \begin_layout Section
13972 Koma-Script
13973 \end_layout
13974
13975 \begin_layout Standard
13976 by 
13977 \noun on
13978 Bernd Rellermeyer
13979 \end_layout
13980
13981 \begin_layout Subsection
13982 Overview
13983 \end_layout
13984
13985 \begin_layout Standard
13986 The \SpecialChar LyX
13987  document classes 
13988 \emph on
13989 article (koma-script)
13990 \emph default
13991
13992 \emph on
13993 report (koma-script)
13994 \emph default
13995
13996 \emph on
13997 book
13998 \emph default
13999  
14000 \emph on
14001 (koma-script)
14002 \emph default
14003 , and 
14004 \emph on
14005 letter
14006 \emph default
14007  
14008 \emph on
14009 (koma-script)
14010 \emph default
14011  correspond to the \SpecialChar LaTeX
14012  document classes 
14013 \family typewriter
14014 scrartcl.cls
14015 \family default
14016
14017 \family typewriter
14018 scrreprt.cls
14019 \family default
14020
14021 \family typewriter
14022 scrbook.cls
14023 \family default
14024 , and 
14025 \family typewriter
14026 scrlettr.cls
14027 \family default
14028 , resp.
14029 \begin_inset space ~
14030 \end_inset
14031
14032 of the Koma-Script family.
14033  They are replacements for the standard document classes 
14034 \family typewriter
14035 article.cls
14036 \family default
14037
14038 \family typewriter
14039 report.cls
14040 \family default
14041
14042 \family typewriter
14043 book.cls
14044 \family default
14045  and 
14046 \family typewriter
14047 letter.cls
14048 \family default
14049 , resp., and fit better to European typography conventions in a number of
14050  points.
14051 \end_layout
14052
14053 \begin_layout Itemize
14054 Standard character size is 11pt in 
14055 \emph on
14056 article (koma-script)
14057 \emph default
14058
14059 \emph on
14060 report (koma-script)
14061 \emph default
14062 , and 
14063 \emph on
14064 book (koma-script)
14065 \emph default
14066 , and 12pt in 
14067 \emph on
14068 letter (koma-script)
14069 \emph default
14070 .
14071 \end_layout
14072
14073 \begin_layout Itemize
14074 Headings, labels of the description environment, and a number of elements
14075  of the 
14076 \emph on
14077 letter (koma-script)
14078 \emph default
14079  document class are set in a bold sans serif font.
14080 \begin_inset Foot
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 There is a big difference between the bold sans serif old cm fonts and new
14085  ec fonts, especially in the appearance of headings.
14086  In comparison, the ec bold sans serif fonts look a bit thin.
14087  Here the \SpecialChar LaTeX
14088  package 
14089 \family typewriter
14090 cmsd.sty by
14091 \family default
14092  
14093 \shape smallcaps
14094 Walter Schmidt
14095 \shape default
14096  helps to produce the 
14097 \begin_inset Quotes eld
14098 \end_inset
14099
14100 usual
14101 \begin_inset Quotes erd
14102 \end_inset
14103
14104  appearance when using the ec fonts.
14105 \end_layout
14106
14107 \end_inset
14108
14109  The numbering of chapter headings is made in the same way as the numbering
14110  of section headings, that is without the extra line 
14111 \begin_inset Quotes eld
14112 \end_inset
14113
14114 Chapter\SpecialChar ldots
14115
14116 \begin_inset Quotes erd
14117 \end_inset
14118
14119 .
14120  In addition, the appearance of the headings can be modified by using a
14121  number of options (in \SpecialChar LyX
14122  to be entered in the field 
14123 \family sans
14124 Extra
14125 \begin_inset space ~
14126 \end_inset
14127
14128 Options
14129 \family default
14130  of the dialog 
14131 \family sans
14132 Layout\SpecialChar menuseparator
14133 Document
14134 \family default
14135 ).
14136  
14137 \end_layout
14138
14139 \begin_layout Itemize
14140 The main means in the Koma-Script document classes to design the type area
14141  are the options 
14142 \family sans
14143 BCOR
14144 \family default
14145  and 
14146 \family sans
14147 DIV
14148 \family default
14149  (in \SpecialChar LyX
14150  to be entered in the extra class options field in the dialog 
14151 \family sans
14152 Document\SpecialChar menuseparator
14153 Settings
14154 \family default
14155 ).
14156  They make a clearer modification of page margins possible as do the options
14157  of the dialog 
14158 \family sans
14159 Document\SpecialChar menuseparator
14160 Settings
14161 \family default
14162 .
14163  
14164 \end_layout
14165
14166 \begin_layout Itemize
14167 The \SpecialChar LaTeX
14168  document classes of the Koma-Script family define a number of additional
14169  commands.
14170  Those part of it which makes sense in \SpecialChar LyX
14171  is implemented in corresponding
14172  paragraph types.
14173 \end_layout
14174
14175 \begin_layout Standard
14176 Detailed descriptions of the \SpecialChar LaTeX
14177  document classes of the Koma-Script family
14178  can be found in the Koma-Script documentation 
14179 \emph on
14180 scrguide
14181 \emph default
14182  (German) and 
14183 \emph on
14184 scrguien
14185 \emph default
14186  (English).
14187 \end_layout
14188
14189 \begin_layout Subsection
14190 article (koma-script), report (koma-script), and book (koma-script)
14191 \end_layout
14192
14193 \begin_layout Standard
14194 The document classes 
14195 \emph on
14196 article (koma-script)
14197 \emph default
14198
14199 \emph on
14200 report (koma-script)
14201 \emph default
14202 , and 
14203 \emph on
14204 book
14205 \emph default
14206  
14207 \emph on
14208 (koma-script)
14209 \emph default
14210  are implemented in the layout files 
14211 \family typewriter
14212 scrartcl.layout
14213 \family default
14214
14215 \family typewriter
14216 scrreprt.layout
14217 \family default
14218 , and 
14219 \family typewriter
14220 scrbook.layout
14221 \family default
14222 , resp.
14223  They contain all the paragraph types of the corresponding standard document
14224  classes 
14225 \emph on
14226 article
14227 \emph default
14228
14229 \emph on
14230 report
14231 \emph default
14232 , and 
14233 \emph on
14234 book
14235 \emph default
14236 , resp., partly modified, with the exception of the \SpecialChar LyX
14237  specific 
14238 \family sans
14239 List
14240 \family default
14241 -type, which is replaced by the new 
14242 \family sans
14243 Labeling
14244 \family default
14245 -type having the same functionality.
14246  Beside the 
14247 \family sans
14248 Labeling
14249 \family default
14250 -Type there is a number of new paragraph types added.
14251  They are 
14252 \emph on
14253 not
14254 \emph default
14255  part of 
14256 \emph on
14257 letter (koma-script)
14258 \emph default
14259 .
14260 \end_layout
14261
14262 \begin_layout Itemize
14263
14264 \family sans
14265 Addpart, Addchap
14266 \family default
14267
14268 \family sans
14269 Addsec
14270 \family default
14271 : are equivalents to 
14272 \family sans
14273 Part*, Chapter*
14274 \family default
14275  and 
14276 \family sans
14277 Section*
14278 \family default
14279 , resp., additionally inserting an entry in the table of contents.
14280  
14281 \family sans
14282 Addpart
14283 \family default
14284  and 
14285 \family sans
14286 Addchap
14287 \family default
14288  are not contained in 
14289 \emph on
14290 article (koma-script)
14291 \emph default
14292 .
14293 \end_layout
14294
14295 \begin_layout Itemize
14296
14297 \family sans
14298 Addchap*
14299 \family default
14300
14301 \family sans
14302 Addsec*
14303 \family default
14304 : behave exactly as 
14305 \family sans
14306 Addchap
14307 \family default
14308  and 
14309 \family sans
14310 Addsec
14311 \family default
14312 , resp., additionally clearing running heads.
14313  
14314 \family sans
14315 Addchap*
14316 \family default
14317  is not contained in 
14318 \emph on
14319 article (koma-script)
14320 \emph default
14321 .
14322 \begin_inset Foot
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326 There is also an 
14327 \family typewriter
14328
14329 \backslash
14330 addpart*
14331 \family default
14332  command in 
14333 \emph on
14334 book (koma-script)
14335 \emph default
14336  and in 
14337 \emph on
14338 report (koma-script)
14339 \emph default
14340 , but since this is identical to 
14341 \family sans
14342 Part*
14343 \family default
14344 , is has not been implemented in \SpecialChar LyX
14345 .
14346 \end_layout
14347
14348 \end_inset
14349
14350
14351 \end_layout
14352
14353 \begin_layout Itemize
14354
14355 \family sans
14356 Minisec
14357 \family default
14358 : generates a heading directly above the following paragraph in the standard
14359  character size without affecting the structure of the document.
14360 \end_layout
14361
14362 \begin_layout Itemize
14363
14364 \family sans
14365 Captionabove
14366 \family default
14367  and 
14368 \family sans
14369 Captionbelow
14370 \family default
14371  are special captions which respect the different space settings needed
14372  for captions placed above or below an element (if you follow strict typographic
14373  rules, you might want to place table captions always above the table).
14374  You can also use the class option 
14375 \family typewriter
14376 tablecaptionsabove
14377 \family default
14378 , which will switch 
14379 \family sans
14380 caption
14381 \family default
14382  to 
14383 \family sans
14384 captionabove
14385 \family default
14386  for tables and 
14387 \family sans
14388 captionbelow
14389 \family default
14390  for figures.
14391  You need at least Koma-Script version 2.8q to use this.
14392 \end_layout
14393
14394 \begin_layout Itemize
14395
14396 \family sans
14397 Dictum
14398 \family default
14399 : can be used to set a bonmot, e.
14400 \begin_inset space \thinspace{}
14401 \end_inset
14402
14403 g.
14404 \begin_inset space \space{}
14405 \end_inset
14406
14407 at the beginning of a chapter.
14408  If you use the optional argument (
14409 \family sans
14410 Insert\SpecialChar menuseparator
14411 Dictum
14412 \begin_inset space ~
14413 \end_inset
14414
14415 Author
14416 \family default
14417 ), you can insert the dictum's author there.
14418  Dictum and author are separated by a line.
14419  You need at least Koma-Script version 2.8q to use this.
14420  
14421 \family sans
14422 Dictum
14423 \family default
14424  is not contained in 
14425 \emph on
14426 article (koma-script)
14427 \emph default
14428 .
14429 \end_layout
14430
14431 \begin_layout Standard
14432 The following types, together with the standard types 
14433 \family sans
14434 Title
14435 \family default
14436
14437 \family sans
14438 Author
14439 \family default
14440 , and 
14441 \family sans
14442 Date
14443 \family default
14444 , form the title area of the document.
14445  They must be entered ahead of the first 
14446 \begin_inset Quotes eld
14447 \end_inset
14448
14449 ordinary
14450 \begin_inset Quotes erd
14451 \end_inset
14452
14453  paragraph.
14454 \begin_inset Foot
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 The corresponding \SpecialChar LaTeX
14459  commands must appear before the 
14460 \family typewriter
14461
14462 \backslash
14463 maketitle
14464 \family default
14465  command.
14466 \end_layout
14467
14468 \end_inset
14469
14470  When such a type is used more than once, the latter usage overwrites the
14471  former one, that means, for every type only the latest usage is valid.
14472  The order of the different types however has, like 
14473 \family sans
14474 Title
14475 \family default
14476
14477 \family sans
14478 Author
14479 \family default
14480 , and 
14481 \family sans
14482 Date
14483 \family default
14484 , no effect on the appearance of the produced document.
14485 \end_layout
14486
14487 \begin_layout Itemize
14488
14489 \family sans
14490 Subject
14491 \family default
14492 : produces a centered paragraph above the ordinary title (
14493 \family sans
14494 Title
14495 \family default
14496
14497 \family sans
14498 Author
14499 \family default
14500
14501 \family sans
14502 Date
14503 \family default
14504 ) for the subject of the document.
14505 \end_layout
14506
14507 \begin_layout Itemize
14508
14509 \family sans
14510 Publishers
14511 \family default
14512 : produces a centered paragraph below the ordinary title (
14513 \family sans
14514 Title
14515 \family default
14516
14517 \family sans
14518 Author
14519 \family default
14520
14521 \family sans
14522 Date
14523 \family default
14524 ) for the publishers' name.
14525 \end_layout
14526
14527 \begin_layout Itemize
14528
14529 \family sans
14530 Dedication
14531 \family default
14532 : in 
14533 \emph on
14534 report (koma-script)
14535 \emph default
14536  and 
14537 \emph on
14538 book (koma-script)
14539 \emph default
14540  produces a centered paragraph on its own page behind the title page, or
14541  in 
14542 \emph on
14543 article (koma-script)
14544 \emph default
14545  produces a centered paragraph below the ordinary title (
14546 \family sans
14547 Title
14548 \family default
14549
14550 \family sans
14551 Author
14552 \family default
14553
14554 \family sans
14555 Date
14556 \family default
14557
14558 \family sans
14559 Publishers
14560 \family default
14561 ) for a dedication.
14562 \end_layout
14563
14564 \begin_layout Itemize
14565
14566 \family sans
14567 Titlehead
14568 \family default
14569 : produces a left aligned paragraph above the ordinary title (
14570 \family sans
14571 Title
14572 \family default
14573
14574 \family sans
14575 Author
14576 \family default
14577
14578 \family sans
14579 Date
14580 \family default
14581
14582 \family sans
14583 Subject
14584 \family default
14585 ) for a document`s head.
14586 \end_layout
14587
14588 \begin_layout Itemize
14589
14590 \family sans
14591 Uppertitleback
14592 \family default
14593 : produces in a double-sided print in 
14594 \emph on
14595 report (koma-script)
14596 \emph default
14597  and 
14598 \emph on
14599 book (koma-script)
14600 \emph default
14601  a left-aligned paragraph at the top of the title page`s back or has no
14602  effect in a single-sided print or in 
14603 \emph on
14604 article (koma-script)
14605 \emph default
14606 .
14607 \end_layout
14608
14609 \begin_layout Itemize
14610
14611 \family sans
14612 Lowertitleback
14613 \family default
14614 : produces in a double-sided print in 
14615 \emph on
14616 report (koma-script)
14617 \emph default
14618  and 
14619 \emph on
14620 book (koma-script)
14621 \emph default
14622  a left-aligned paragraph at the bottom of the title page`s back or has
14623  no effect in a single-sided print or in 
14624 \emph on
14625 article (koma-script)
14626 \emph default
14627 .
14628 \end_layout
14629
14630 \begin_layout Itemize
14631
14632 \family sans
14633 Extratitle
14634 \family default
14635 : produces a special 
14636 \begin_inset Quotes eld
14637 \end_inset
14638
14639 dirty
14640 \begin_inset Quotes erd
14641 \end_inset
14642
14643  page ahead of the actual document containing a paragraph without special
14644  formatting.
14645 \end_layout
14646
14647 \begin_layout Standard
14648 The layout files for the document classes 
14649 \emph on
14650 article (koma-script)
14651 \emph default
14652
14653 \emph on
14654 report (koma-script)
14655 \emph default
14656 , and 
14657 \emph on
14658 book (koma-script)
14659 \emph default
14660  do include the file 
14661 \family typewriter
14662 scrmacros.inc
14663 \family default
14664 .
14665  This is thought of as a place to define your own types.
14666  Copy scrmacros
14667 \family typewriter
14668 .inc
14669 \family default
14670  in your personal layout directory and edit the file!
14671 \end_layout
14672
14673 \begin_layout Subsection
14674 letter (koma-script)
14675 \end_layout
14676
14677 \begin_layout Description
14678 Note: This section discusses the obsolete 
14679 \family sans
14680 KOMA-Script-Letter (v.
14681 \begin_inset space ~
14682 \end_inset
14683
14684 1)
14685 \family default
14686 , which is not even included anymore in recent KOMA releases.
14687  Please refer to the next section for the current KOMA-Script-Letter class
14688  (v.
14689 \begin_inset space ~
14690 \end_inset
14691
14692 2)!
14693 \end_layout
14694
14695 \begin_layout Standard
14696 \noindent
14697 The document class 
14698 \emph on
14699 letter (koma-script)
14700 \emph default
14701  is implemented in the layout file 
14702 \family typewriter
14703 scrlettr.layout
14704 \family default
14705 .
14706  It contains all the paragraph types of the corresponding standard document
14707  class 
14708 \emph on
14709 letter
14710 \emph default
14711 , partly modified, with the exception of the \SpecialChar LyX
14712  specific types 
14713 \family sans
14714 \SpecialChar LyX
14715 -Code
14716 \family default
14717  and 
14718 \family sans
14719 Comment
14720 \family default
14721  and the 
14722 \family sans
14723 List
14724 \family default
14725  type, which is replaced by the new 
14726 \family sans
14727 Labeling
14728 \family default
14729  type.
14730  In addition, it contains, in contrast to the standard document class, the
14731  standard types 
14732 \family sans
14733 \SpecialChar LaTeX
14734
14735 \family default
14736
14737 \family sans
14738 Quotation
14739 \family default
14740
14741 \family sans
14742 Quote
14743 \family default
14744 , and 
14745 \family sans
14746 Verse
14747 \family default
14748 .
14749  Furthermore, there are a number of new letter specific types.
14750 \end_layout
14751
14752 \begin_layout Standard
14753 The appearance of the letter produced by this document class can be controlled
14754  by a number of \SpecialChar LaTeX
14755  commands, which you can put in the \SpecialChar LaTeX
14756  preamble.
14757 \begin_inset Foot
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 For example, the standard appearance of the letter`s heading, consisting
14762  of name and address, is quite self-willed.
14763  An 
14764 \begin_inset Quotes eld
14765 \end_inset
14766
14767 ordinary
14768 \begin_inset Quotes erd
14769 \end_inset
14770
14771  heading is produced by the following \SpecialChar LaTeX
14772  commands in the preamble:
14773 \end_layout
14774
14775 \begin_layout LyX-Code
14776
14777 \backslash
14778 firsthead{
14779 \backslash
14780 parbox[b]{
14781 \backslash
14782 textwidth}
14783 \end_layout
14784
14785 \begin_layout LyX-Code
14786   {
14787 \backslash
14788 ignorespaces 
14789 \backslash
14790 fromname
14791 \backslash
14792
14793 \backslash
14794  
14795 \backslash
14796 ignorespaces 
14797 \backslash
14798 fromaddress}} 
14799 \end_layout
14800
14801 \begin_layout LyX-Code
14802
14803 \backslash
14804 nexthead{
14805 \backslash
14806 parbox[b]{
14807 \backslash
14808 textwidth}
14809 \end_layout
14810
14811 \begin_layout LyX-Code
14812   {
14813 \backslash
14814 ignorespaces 
14815 \backslash
14816 fromname 
14817 \backslash
14818 hfill 
14819 \backslash
14820 ignorespaces 
14821 \backslash
14822 pagename
14823 \backslash
14824  
14825 \backslash
14826 thepage}}
14827 \end_layout
14828
14829 \end_inset
14830
14831  A detailed German description of such \SpecialChar LaTeX
14832  commands can be found in the Koma-Script
14833  documentation 
14834 \emph on
14835 scrguide
14836 \emph default
14837 .
14838  With it, the letter's author can produce his personal letter layout.
14839 \end_layout
14840
14841 \begin_layout Standard
14842 The types 
14843 \family sans
14844 Letter
14845 \family default
14846  and 
14847 \family sans
14848 Opening
14849 \family default
14850  define the beginning of the letter and must be used in every letter.
14851  To emphasize them in the \SpecialChar LyX
14852  document class, they are marked with the letter
14853  
14854 \shape italic
14855 L
14856 \shape default
14857  or 
14858 \shape italic
14859 O
14860 \shape default
14861 , resp.
14862 \begin_inset space ~
14863 \end_inset
14864
14865 in the left margin.
14866  It is possible to write any number of letters in one file.
14867  An 
14868 \family sans
14869 Opening
14870 \family default
14871  type produces a new letter using the same addressee and a 
14872 \family sans
14873 Letter
14874 \family default
14875  type produces a new addressee.
14876  The types 
14877 \family sans
14878 Closing
14879 \family default
14880
14881 \family sans
14882 PS
14883 \family default
14884
14885 \family sans
14886 CC
14887 \family default
14888 , and 
14889 \family sans
14890 Encl
14891 \family default
14892  are ordinary paragraph types and can also be used several times in one
14893  and the same letter.
14894 \end_layout
14895
14896 \begin_layout Itemize
14897
14898 \family sans
14899 Letter
14900 \family default
14901 : produces a paragraph for the addressee and implicitly defines the beginning
14902  of the letter.
14903 \end_layout
14904
14905 \begin_layout Itemize
14906
14907 \family sans
14908 Opening
14909 \family default
14910 : produces a paragraph for the form of address and implicitly produces a
14911  new letter.
14912 \end_layout
14913
14914 \begin_layout Itemize
14915
14916 \family sans
14917 Closing
14918 \family default
14919 : produces a paragraph for a close.
14920 \end_layout
14921
14922 \begin_layout Itemize
14923
14924 \family sans
14925 PS
14926 \family default
14927 : produces a paragraph for a postscript.
14928 \end_layout
14929
14930 \begin_layout Itemize
14931
14932 \family sans
14933 CC
14934 \family default
14935 : produces a paragraph for a distribution list.
14936 \end_layout
14937
14938 \begin_layout Itemize
14939
14940 \family sans
14941 Encl
14942 \family default
14943 : produces a paragraph for enclosures.
14944 \end_layout
14945
14946 \begin_layout Standard
14947 The types 
14948 \family sans
14949 Name
14950 \family default
14951
14952 \family sans
14953 Signature
14954 \family default
14955
14956 \family sans
14957 Address
14958 \family default
14959
14960 \family sans
14961 Telephone
14962 \family default
14963
14964 \family sans
14965 Place
14966 \family default
14967
14968 \family sans
14969 Backaddress
14970 \family default
14971
14972 \family sans
14973 Specialmail
14974 \family default
14975
14976 \family sans
14977 Location
14978 \family default
14979
14980 \family sans
14981 Title
14982 \family default
14983 , and 
14984 \family sans
14985 Subject
14986 \family default
14987  are input types provided with a label to enter information, which will
14988  be processed by the document class.
14989 \begin_inset Foot
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 It could be seen as a matter of inconsequence, that the types 
14994 \family sans
14995 Letter
14996 \family default
14997  and 
14998 \family sans
14999 Opening
15000 \family default
15001  described above are not such input types as well.
15002  Because of the special meaning of those types, however, I have implemented
15003  them as ordinary paragraph types with a one letter mark in the left margin.
15004  Moreover, it would affect my feeling of symmetry, if the 
15005 \family sans
15006 Opening
15007 \family default
15008  type and the 
15009 \family sans
15010 Closing
15011 \family default
15012  type had such a serious different appearance.
15013 \end_layout
15014
15015 \end_inset
15016
15017  The types must be used ahead of the corresponding 
15018 \family sans
15019 Opening
15020 \family default
15021  type.
15022 \end_layout
15023
15024 \begin_layout Standard
15025 An implementation of these types in a WYSIWYG fashion does not seem to make
15026  sense, because the real appearance of the produced letter does not only
15027  depend on the usage of the particular type, but also on other factors.
15028  For example, a signature entered in the 
15029 \family sans
15030 Signature
15031 \family default
15032  type will in the standard behavior appear in the produced letter only,
15033  when in the same letter also a 
15034 \family sans
15035 Closing
15036 \family default
15037  type is used.
15038  The entered value of the 
15039 \family sans
15040 Telephone
15041 \family default
15042  type will in the standard behavior not appear in the produced letter at
15043  all.
15044  The possibility to design the letter`s heading freely is already indicated
15045  in a footnote above.
15046 \end_layout
15047
15048 \begin_layout Standard
15049 The input types can also be used as empty paragraphs.
15050  This makes sense e.
15051 \begin_inset space \thinspace{}
15052 \end_inset
15053
15054 g.
15055 \begin_inset space \space{}
15056 \end_inset
15057
15058 for the 
15059 \family sans
15060 Signature
15061 \family default
15062  type.
15063  If the 
15064 \family sans
15065 Signature
15066 \family default
15067  type is not used at all, in the standard behavior the value of the 
15068 \family sans
15069 Name
15070 \family default
15071  type is used as signature, whereas if an empty 
15072 \family sans
15073 Signature
15074 \family default
15075  type is used, no signature value is defined.
15076 \end_layout
15077
15078 \begin_layout Standard
15079 By using the input types it is possible to write a letter template, containing
15080  filled input types with your personal dates (name, address, etc.) and empty
15081  input types for other dates you want to enter.
15082 \end_layout
15083
15084 \begin_layout Itemize
15085
15086 \family sans
15087 Name
15088 \family default
15089 : sender's name, in the standard behavior appears as a centered paragraph
15090  in small caps in the letter`s heading.
15091 \end_layout
15092
15093 \begin_layout Itemize
15094
15095 \family sans
15096 Signature
15097 \family default
15098 : sender's signature, in the standard behavior appears below the 
15099 \family sans
15100 Closing
15101 \family default
15102  type.
15103  If no 
15104 \family sans
15105 Signature
15106 \family default
15107  type is used, the value of the 
15108 \family sans
15109 Name
15110 \family default
15111  type appears instead.
15112 \end_layout
15113
15114 \begin_layout Itemize
15115
15116 \family sans
15117 Address
15118 \family default
15119 : sender's address, in the standard behavior appears in a centered paragraph
15120  in the letter`s heading below the sender's name.
15121 \end_layout
15122
15123 \begin_layout Itemize
15124
15125 \family sans
15126 Telephone
15127 \family default
15128 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15129  variable
15130  
15131 \family typewriter
15132
15133 \backslash
15134 telephonenum
15135 \family default
15136 .
15137 \end_layout
15138
15139 \begin_layout Itemize
15140
15141 \family sans
15142 Place
15143 \family default
15144 : place of the letter`s making.
15145 \end_layout
15146
15147 \begin_layout Itemize
15148
15149 \family sans
15150 Date
15151 \family default
15152 : date of the letter`s making.
15153  
15154 \family sans
15155 Place
15156 \family default
15157  and 
15158 \family sans
15159 Date
15160 \family default
15161 , in the standard behavior, produce the place and the date in a right-aligned
15162  line below the addressee's field.
15163  If an empty 
15164 \family sans
15165 Date
15166 \family default
15167  type is used, neither place nor date appear, independent of the value of
15168  the 
15169 \family sans
15170 Place
15171 \family default
15172  type.
15173  If no 
15174 \family sans
15175 Date
15176 \family default
15177  type is used, the date of the letter `s production is used.
15178 \end_layout
15179
15180 \begin_layout Itemize
15181
15182 \family sans
15183 Backaddress
15184 \family default
15185 : sender`s back address, in the standard behavior appears above the addressee's
15186  field in a small sans serif font.
15187 \end_layout
15188
15189 \begin_layout Itemize
15190
15191 \family sans
15192 Specialmail
15193 \family default
15194 : special mail information, in the standard behavior appears underlined
15195  above the addressee's field below the back address.
15196 \end_layout
15197
15198 \begin_layout Itemize
15199
15200 \family sans
15201 Location
15202 \family default
15203 : additional information, in the standard behavior appears on right side
15204  below the addressee`s field.
15205 \end_layout
15206
15207 \begin_layout Itemize
15208
15209 \family sans
15210 Title
15211 \family default
15212 : the letter's title, in the standard behavior appears in a big, bold, sans
15213  serif font above the subject.
15214 \end_layout
15215
15216 \begin_layout Itemize
15217
15218 \family sans
15219 Subject
15220 \family default
15221 : the letter's subject, in the standard behavior appears in a bold font
15222  above the 
15223 \family sans
15224 Opening
15225 \family default
15226  paragraph.
15227 \end_layout
15228
15229 \begin_layout Standard
15230 The types 
15231 \family sans
15232 Yourref
15233 \family default
15234
15235 \family sans
15236 Yourmail
15237 \family default
15238
15239 \family sans
15240 Myref
15241 \family default
15242
15243 \family sans
15244 Customer
15245 \family default
15246 , and 
15247 \family sans
15248 Invoice
15249 \family default
15250  produce a business letter like line above the 
15251 \family sans
15252 Title
15253 \family default
15254  line containing the fields 
15255 \begin_inset Quotes eld
15256 \end_inset
15257
15258 Your ref.
15259 \begin_inset Quotes erd
15260 \end_inset
15261
15262
15263 \begin_inset Quotes eld
15264 \end_inset
15265
15266 Your letter of
15267 \begin_inset Quotes erd
15268 \end_inset
15269
15270
15271 \begin_inset Quotes eld
15272 \end_inset
15273
15274 Our ref.
15275 \begin_inset Quotes erd
15276 \end_inset
15277
15278
15279 \begin_inset Quotes eld
15280 \end_inset
15281
15282 Customer no.
15283 \begin_inset Quotes erd
15284 \end_inset
15285
15286
15287 \begin_inset Quotes eld
15288 \end_inset
15289
15290 Invoice no.
15291 \begin_inset Quotes erd
15292 \end_inset
15293
15294 , and 
15295 \begin_inset Quotes eld
15296 \end_inset
15297
15298 Date
15299 \begin_inset Quotes erd
15300 \end_inset
15301
15302 .
15303  For the date field, the value of the 
15304 \family sans
15305 Date
15306 \family default
15307  type is used.
15308  If one of these 
15309 \begin_inset Quotes eld
15310 \end_inset
15311
15312 business letter types
15313 \begin_inset Quotes erd
15314 \end_inset
15315
15316  is used, the value of the 
15317 \family sans
15318 Place
15319 \family default
15320  type however does not appear, but only the \SpecialChar LaTeX
15321  variable 
15322 \family typewriter
15323
15324 \backslash
15325 fromplace
15326 \family default
15327  is set.
15328  The ordinary output of place and date in a right-aligned line below the
15329  addressee`s field is suppressed.
15330  The types are implemented as input types provided with a label and must
15331  be used ahead of the corresponding 
15332 \family sans
15333 Opening
15334 \family default
15335  type.
15336 \end_layout
15337
15338 \begin_layout Itemize
15339
15340 \family sans
15341 Yourref
15342 \family default
15343 : Your ref.
15344 \end_layout
15345
15346 \begin_layout Itemize
15347
15348 \family sans
15349 Yourmail
15350 \family default
15351 : Your letter of.
15352 \end_layout
15353
15354 \begin_layout Itemize
15355
15356 \family sans
15357 Myref
15358 \family default
15359 : Our ref.
15360 \end_layout
15361
15362 \begin_layout Itemize
15363
15364 \family sans
15365 Customer
15366 \family default
15367 : Customer no.
15368 \end_layout
15369
15370 \begin_layout Itemize
15371
15372 \family sans
15373 Invoice
15374 \family default
15375 : Invoice no.
15376 \end_layout
15377
15378 \begin_layout Subsection
15379 The new letter class: letter (koma-script v.2)
15380 \end_layout
15381
15382 \begin_layout Standard
15383 by 
15384 \noun on
15385 Jürgen Spitzmüller
15386 \end_layout
15387
15388 \begin_layout Standard
15389 \begin_inset VSpace medskip
15390 \end_inset
15391
15392
15393 \end_layout
15394
15395 \begin_layout Standard
15396 \noindent
15397 Koma-Script version 2.8 has introduced a new letter class 
15398 \family typewriter
15399 scrlttr2
15400 \family default
15401  which supersedes the now unsupported 
15402 \family typewriter
15403 scrlettr
15404 \family default
15405 .
15406  It has — on the \SpecialChar LaTeX
15407  side — a completely new interface and is not compatible
15408  with the old class.
15409  Therefore, \SpecialChar LyX
15410  supports both, though it is recommended you use the new class.
15411 \end_layout
15412
15413 \begin_layout Standard
15414 This class covers the same functionality as 
15415 \emph on
15416 letter (koma-script),
15417 \emph default
15418  and a few more.
15419  The basic items are 
15420 \family sans
15421 Address
15422 \family default
15423  (receiver's address, same as 
15424 \family sans
15425 Letter
15426 \family default
15427  in the old layout), 
15428 \family sans
15429 Opening
15430 \family default
15431 , and 
15432 \family sans
15433 Closing
15434 \family default
15435 .
15436  
15437 \family sans
15438 NextAddress
15439 \family default
15440  will start a new letter (i.
15441 \begin_inset space \thinspace{}
15442 \end_inset
15443
15444 e.
15445 \begin_inset space \space{}
15446 \end_inset
15447
15448 you can write several letters per document).
15449  New elements are sender's 
15450 \family sans
15451 E-Mail
15452 \family default
15453
15454 \family sans
15455 URL
15456 \family default
15457
15458 \family sans
15459 Fax
15460 \family default
15461
15462 \family sans
15463 Bank
15464 \family default
15465  and the possibility to use a 
15466 \family sans
15467 Logo
15468 \family default
15469  (via 
15470 \family sans
15471 Insert\SpecialChar menuseparator
15472 Graphics
15473 \family default
15474 ) in the header.
15475 \end_layout
15476
15477 \begin_layout Standard
15478 The biggest improvement is, though, that the letter's layout is configurable
15479  to meet almost any needs.
15480  This can be done via the preamble or with a special style file (Letter
15481  Class Option, extension 
15482 \family typewriter
15483 *.lco
15484 \family default
15485 ), that will be read in as a class option.
15486 \begin_inset Foot
15487 status collapsed
15488
15489 \begin_layout Plain Layout
15490 The KOMA package comes with some default 
15491 \family typewriter
15492 *.lco
15493 \family default
15494  files.
15495  There is, for instance, a 
15496 \family typewriter
15497 DIN.lco
15498 \family default
15499  file that follows german typesetting rules, or a 
15500 \family typewriter
15501 KOMAold.lco
15502 \family default
15503  that provides the default layout of the old 
15504 \family typewriter
15505 scrlettr
15506 \family default
15507  class.
15508  The latter can be loaded with the class option 
15509 \family typewriter
15510 KOMAold
15511 \family default
15512 , inserted via the 
15513 \family sans
15514 Layout\SpecialChar menuseparator
15515 Document\SpecialChar menuseparator
15516 Extra Options
15517 \family default
15518  field.
15519 \end_layout
15520
15521 \end_inset
15522
15523  Have a look at the 
15524 \emph on
15525 koma-letter2
15526 \emph default
15527  template that is included in \SpecialChar LyX
15528  for examples.
15529  A detailed description is to be found in the Koma-Script documentation
15530  (
15531 \emph on
15532 scrguide
15533 \emph default
15534 ).
15535 \end_layout
15536
15537 \begin_layout Subsection
15538 Problems
15539 \end_layout
15540
15541 \begin_layout Standard
15542 Visualizing the Koma-Script document classes in \SpecialChar LyX
15543 , the \SpecialChar LyX
15544  internals cause some
15545  problems.
15546 \end_layout
15547
15548 \begin_layout Itemize
15549 The chapter number of a 
15550 \family sans
15551 Chapter
15552 \family default
15553  type appears on a line of its own above the chapter heading instead of
15554  appearing in the same line ahead of it.
15555  The cause for that is the \SpecialChar LyX
15556  internal behavior for the labeltype 
15557 \family sans
15558 Counter_Chapter
15559 \family default
15560  in the layout file.
15561 \end_layout
15562
15563 \begin_layout Itemize
15564 The headings of the types 
15565 \family sans
15566 Addchap
15567 \family default
15568  and 
15569 \family sans
15570 Addsec
15571 \family default
15572  are only put in the 
15573 \begin_inset Quotes eld
15574 \end_inset
15575
15576 true
15577 \begin_inset Quotes erd
15578 \end_inset
15579
15580  \SpecialChar LaTeX
15581  table of contents, but not in the \SpecialChar LyX
15582  table of contents (
15583 \family sans
15584 Document\SpecialChar menuseparator
15585 Table
15586 \begin_inset space ~
15587 \end_inset
15588
15589 of
15590 \begin_inset space ~
15591 \end_inset
15592
15593 Contents
15594 \family default
15595 ).
15596 \end_layout
15597
15598 \begin_layout Itemize
15599 The paragraphs in a 
15600 \emph on
15601 letter
15602 \emph default
15603  document class appear in a skip separation mode, not indented.
15604  This is the standard behavior, no special \SpecialChar LaTeX
15605  commands are needed for that.
15606  But in the 
15607 \family sans
15608 Document\SpecialChar menuseparator
15609 Settings
15610 \family default
15611  dialog the corresponding radio button indicates 
15612 \family sans
15613 Indent
15614 \family default
15615 .
15616  A 
15617 \family sans
15618 Skip
15619 \family default
15620  value always has the effect that extra \SpecialChar LaTeX
15621  commands are inserted in the document
15622  to produce the gap, which is not what is wanted in this case.
15623 \end_layout
15624
15625 \begin_layout Section
15626 Memoir
15627 \end_layout
15628
15629 \begin_layout Standard
15630 By 
15631 \noun on
15632 Jürgen Spitzmüller
15633 \end_layout
15634
15635 \begin_layout Subsection
15636 Overview
15637 \end_layout
15638
15639 \begin_layout Standard
15640 Memoir is a very powerful and constantly evolving class.
15641  It has been designed with regard to fictional and non-fictional literature.
15642  Its aim is to let the user have maximum control over the typesetting of
15643  his document.
15644  Memoir is based on the standard book class, but it can also emulate the
15645  article class (see below).
15646 \end_layout
15647
15648 \begin_layout Standard
15649 Peter Wilson, the developer of Memoir, is known as the author of lots of
15650  useful packages in the \SpecialChar LaTeX
15651  world.
15652  Most of them have been merged with Memoir.
15653  Therefore, it is much easier to layout the table of contents, appendices,
15654  chapter designs and such.
15655  \SpecialChar LyX
15656 , though, does not support all of these goodies natively.
15657  Some of them might be added to forthcoming releases
15658 \begin_inset Foot
15659 status collapsed
15660
15661 \begin_layout Plain Layout
15662 You are invited to send suggestions to 
15663 \begin_inset Flex URL
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667
15668 lyx-devel@lists.lyx.org
15669 \end_layout
15670
15671 \end_inset
15672
15673 .
15674 \end_layout
15675
15676 \end_inset
15677
15678 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15679 's framework.
15680  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15681
15682  commands (\SpecialChar TeX
15683  code
15684 \begin_inset Foot
15685 status collapsed
15686
15687 \begin_layout Plain Layout
15688 Cf.
15689 \begin_inset ERT
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693
15694
15695 \backslash
15696  
15697 \end_layout
15698
15699 \end_inset
15700
15701 section
15702 \begin_inset space ~
15703 \end_inset
15704
15705
15706 \begin_inset CommandInset ref
15707 LatexCommand ref
15708 reference "sec:Inserting-TeX-Code"
15709
15710 \end_inset
15711
15712  for details.
15713 \end_layout
15714
15715 \end_inset
15716
15717 ).
15718  In this section, we can only list those features that are natively supported
15719  by \SpecialChar LyX
15720 .
15721  For detailed descriptions (and for the rest of features) we recommend you
15722  have a look at the detailed manual of the Memoir class
15723 \begin_inset Foot
15724 status collapsed
15725
15726 \begin_layout Plain Layout
15727 Cf.
15728 \begin_inset ERT
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732
15733
15734 \backslash
15735  
15736 \end_layout
15737
15738 \end_inset
15739
15740
15741 \begin_inset Flex URL
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745
15746 CTAN:/macros/latex/memoir/memman.pdf
15747 \end_layout
15748
15749 \end_inset
15750
15751 .
15752 \end_layout
15753
15754 \end_inset
15755
15756 , which is not only a user guide for the class, but also both a comprehensive
15757  description on good typesetting and a superb example for good typesetting
15758  itself.
15759 \end_layout
15760
15761 \begin_layout Subsection
15762 Basic features and restrictions
15763 \end_layout
15764
15765 \begin_layout Standard
15766 Memoir supports basically all features of the standard book classes.
15767  There are, however, some differences, as follows:
15768 \end_layout
15769
15770 \begin_layout Description
15771 Font
15772 \begin_inset space ~
15773 \end_inset
15774
15775 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15776 \end_layout
15777
15778 \begin_layout Description
15779 Page
15780 \begin_inset space ~
15781 \end_inset
15782
15783 style: The fancy page style is not supported, due to a command clash between
15784  Memoir and the fancyhdr package (they both define a command with the same
15785  name, which confuses \SpecialChar LaTeX
15786 ).
15787  Instead, Memoir comes with a number of its own page styles (see 
15788 \family sans
15789 Document\SpecialChar menuseparator
15790 Settings\SpecialChar menuseparator
15791 Page
15792 \begin_inset space ~
15793 \end_inset
15794
15795 Style
15796 \family default
15797 ).
15798  If you want to use these for the chapter pages, you have to use the command
15799  
15800 \family typewriter
15801
15802 \backslash
15803 chapterstyle
15804 \family default
15805  in the main text or in preamble (e.
15806 \begin_inset space \thinspace{}
15807 \end_inset
15808
15809 g.
15810 \begin_inset space \space{}
15811 \end_inset
15812
15813
15814 \family typewriter
15815
15816 \backslash
15817 chapterstyle{companion}
15818 \family default
15819 ).
15820 \end_layout
15821
15822 \begin_layout Description
15823 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15824  optional argument in the standard classes.
15825  With this, you can specify an alternative version of the title for the
15826  table of contents and the headers (for instance, if the title is too long).
15827  In \SpecialChar LyX
15828 , you can do this via 
15829 \family sans
15830 Insert\SpecialChar menuseparator
15831 Short
15832 \begin_inset space ~
15833 \end_inset
15834
15835 Title
15836 \family default
15837  at the beginning of a chapter/section.
15838  Memoir features a second optional argument and thus separates the table
15839  of contents from the header.
15840  You can define three variants of a title with this: one for the main text,
15841  one for the table of contents, and one for the headers.
15842  \SpecialChar LyX
15843  makes these available in form of specific 
15844 \family sans
15845 Short Title
15846 \family default
15847  variants in the 
15848 \family sans
15849 Insert
15850 \family default
15851  menu.
15852 \end_layout
15853
15854 \begin_layout Description
15855 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15856  of contents, the list of figures and the list of table start a new page
15857  automatically.
15858  Memoir does not follow this route.
15859  You have to insert a page break yourself, if you want to have one.
15860 \end_layout
15861
15862 \begin_layout Description
15863 Titlepage: For some unknown reason, Memoir uses pagination on the title
15864  page (in the standard classes, title pages are 
15865 \begin_inset Quotes eld
15866 \end_inset
15867
15868 empty
15869 \begin_inset Quotes erd
15870 \end_inset
15871
15872 ).
15873  If you want an empty title page, type 
15874 \family typewriter
15875
15876 \backslash
15877 aliaspagestyle{title}{empty}
15878 \family default
15879  in the preamble.
15880 \end_layout
15881
15882 \begin_layout Description
15883 Article: With the class option 
15884 \emph on
15885 article
15886 \emph default
15887  (to be inserted in 
15888 \family sans
15889 Document\SpecialChar menuseparator
15890 Settings\SpecialChar menuseparator
15891 Class Settings\SpecialChar menuseparator
15892 Custom
15893 \begin_inset space ~
15894 \end_inset
15895
15896 Options
15897 \family default
15898 ), you can emulate article style.
15899  That is, counters (footnotes, figures, tables etc.) will not be reset on
15900  new chapters, chapters don't start a new page (but are—in contrary to 
15901 \begin_inset Quotes eld
15902 \end_inset
15903
15904 real
15905 \begin_inset Quotes erd
15906 \end_inset
15907
15908  article classes—still allowed), parts, though, use their own page, as in
15909  book.
15910 \end_layout
15911
15912 \begin_layout Description
15913 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15914  font commands, which have been used in the old \SpecialChar LaTeX
15915  version 2.09 (e.
15916 \begin_inset space \thinspace{}
15917 \end_inset
15918
15919 g.
15920 \begin_inset space \space{}
15921 \end_inset
15922
15923
15924 \family typewriter
15925
15926 \backslash
15927 rm
15928 \family default
15929
15930 \family typewriter
15931
15932 \backslash
15933 it
15934 \family default
15935 ).
15936  It produces an error and stops \SpecialChar LaTeX
15937  whenever such a command appears.
15938  The class option 
15939 \emph on
15940 oldfontcommands
15941 \emph default
15942  reallows the commands and spits out warnings instead (which does at least
15943  not stop \SpecialChar LaTeX
15944 ).
15945  Since a lot of packages and particularly Bib\SpecialChar TeX
15946  style files are still using
15947  those commands, we have decided to use this option by default.
15948 \end_layout
15949
15950 \begin_layout Subsection
15951 Extra features
15952 \end_layout
15953
15954 \begin_layout Standard
15955 We will only describe the features supported by \SpecialChar LyX
15956  (which is not much currently).
15957  Please consult the Memoir manual
15958 \begin_inset Foot
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 Cf.
15963 \begin_inset ERT
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967
15968
15969 \backslash
15970  
15971 \end_layout
15972
15973 \end_inset
15974
15975
15976 \begin_inset Flex URL
15977 status collapsed
15978
15979 \begin_layout Plain Layout
15980
15981 CTAN:/macros/latex/memoir/memman.pdf
15982 \end_layout
15983
15984 \end_inset
15985
15986 .
15987 \end_layout
15988
15989 \end_inset
15990
15991  for details.
15992 \end_layout
15993
15994 \begin_layout Description
15995 Abstract: You may wonder why an abstract is an extra feature.
15996  Well, it is in book class.
15997  Usually books don't have abstracts.
15998  Memoir, however, has.
15999  You can use it wherever and how often you like.
16000 \end_layout
16001
16002 \begin_layout Description
16003 Chapterprecis: You may know this older typesetting style: The contents of
16004  a chapter are summarized below the title and also in the table of contents
16005  (e.
16006 \begin_inset space \thinspace{}
16007 \end_inset
16008
16009 g.
16010 \begin_inset space \space{}
16011 \end_inset
16012
16013
16014 \emph on
16015 Our hero arrives in Troia; he loses some friends; he finds others
16016 \emph default
16017 ).
16018  Chapterprecis does exactly this.
16019  It is therefore only sensible below a chapter.
16020 \end_layout
16021
16022 \begin_layout Description
16023 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16024  The epigraph environment provides an elegant way of typesetting such a
16025  motto.
16026  The motto itself (text) and its (optional) author (source) are divided
16027  by a short line.
16028  The author (source) can be inserted via 
16029 \family sans
16030 Insert\SpecialChar menuseparator
16031 Epigraph Source
16032 \family default
16033 \emph on
16034 .
16035 \end_layout
16036
16037 \begin_layout Description
16038 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16039  complex figurative poems).
16040  \SpecialChar LyX
16041  can only support a few of them.
16042  One is poemtitle, which is a centered title for poems, which will also
16043  be added to the table of contents (verse is the standard environment for
16044  poems.
16045  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16046  code,
16047  because they have to be nested inside regular verse environments, which
16048  is not possible with \SpecialChar LyX
16049 ).
16050 \end_layout
16051
16052 \begin_layout Description
16053 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16054 \end_layout
16055
16056 \begin_layout Section
16057 Article (mwart), book (mwbk) and report (mwrep)
16058 \begin_inset Argument status
16059 status collapsed
16060
16061 \begin_layout Plain Layout
16062 The 
16063 \family typewriter
16064 mw
16065 \family default
16066  Classes
16067 \end_layout
16068
16069 \end_inset
16070
16071
16072 \end_layout
16073
16074 \begin_layout Standard
16075 by 
16076 \noun on
16077 Tomasz Luczak
16078 \end_layout
16079
16080 \begin_layout Standard
16081 The \SpecialChar LyX
16082  document classes 
16083 \emph on
16084 article (mwart)
16085 \emph default
16086
16087 \emph on
16088 report (mwrep)
16089 \emph default
16090  and 
16091 \emph on
16092 book
16093 \emph default
16094  
16095 \emph on
16096 (mwbk)
16097 \emph default
16098  correspond to the \SpecialChar LaTeX
16099  document classes 
16100 \family typewriter
16101 mwart.cls
16102 \family default
16103
16104 \family typewriter
16105 mwrep.cls
16106 \family default
16107  and 
16108 \family typewriter
16109 mwbk.cls
16110 \family default
16111 , resp.
16112  They are replacements for the standard document classes 
16113 \family typewriter
16114 article.cls
16115 \family default
16116
16117 \family typewriter
16118 report.cls
16119 \family default
16120  and 
16121 \family typewriter
16122 book.cls
16123 \family default
16124 , resp., and fit better to Polish typography conventions in a number of points.
16125  
16126 \end_layout
16127
16128 \begin_layout Standard
16129 Basic differences:
16130 \end_layout
16131
16132 \begin_layout Itemize
16133 Unnumbered titles (with star, e.
16134 \begin_inset space \thinspace{}
16135 \end_inset
16136
16137 g.
16138 \begin_inset space \space{}
16139 \end_inset
16140
16141
16142 \family sans
16143 Section*
16144 \family default
16145 ) are added into table of contents,
16146 \end_layout
16147
16148 \begin_layout Itemize
16149 Additional page styles:
16150 \end_layout
16151
16152 \begin_deeper
16153 \begin_layout Description
16154 uheadings header with separated lines,
16155 \end_layout
16156
16157 \begin_layout Description
16158 myheadings custom header, contents headers via commands: 
16159 \family typewriter
16160
16161 \backslash
16162 markright
16163 \family default
16164  and 
16165 \family typewriter
16166
16167 \backslash
16168 markboth
16169 \family default
16170 ,
16171 \end_layout
16172
16173 \begin_layout Description
16174 myuheadings custom header with separated lines,
16175 \end_layout
16176
16177 \begin_layout Description
16178 outer page number is placed on outer side of page
16179 \end_layout
16180
16181 \end_deeper
16182 \begin_layout Itemize
16183 Options 
16184 \end_layout
16185
16186 \begin_deeper
16187 \begin_layout Description
16188 rmheadings serif titles — default,
16189 \end_layout
16190
16191 \begin_layout Description
16192 sfheadings sansserif titles,
16193 \end_layout
16194
16195 \begin_layout Description
16196 authortitle on title page first placed is author next title — default,
16197 \end_layout
16198
16199 \begin_layout Description
16200 titleauthor on title page first placed is title next author,
16201 \end_layout
16202
16203 \begin_layout Description
16204 withmarginpar reserve place on page for margins.
16205 \end_layout
16206
16207 \end_deeper
16208 \begin_layout Section
16209 Paper
16210 \end_layout
16211
16212 \begin_layout Standard
16213 The document class 
16214 \family sans
16215 paper
16216 \family default
16217  provides an alternative to the standard 
16218 \family sans
16219 article
16220 \family default
16221  class.
16222  It provides similar functionality, but you might prefer this layout with
16223  sans serif sections, headings, and more.
16224 \end_layout
16225
16226 \begin_layout Section
16227 Rev\SpecialChar TeX
16228 4
16229 \end_layout
16230
16231 \begin_layout Standard
16232 by 
16233 \noun on
16234 Amir Karger
16235 \end_layout
16236
16237 \begin_layout Standard
16238 \begin_inset VSpace bigskip
16239 \end_inset
16240
16241
16242 \end_layout
16243
16244 \begin_layout Standard
16245 \noindent
16246 The 
16247 \family sans
16248 Revtex
16249 \begin_inset space ~
16250 \end_inset
16251
16252 4
16253 \family default
16254  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16255  4.0 (the 
16256 \begin_inset Formula $\beta$
16257 \end_inset
16258
16259  release of May, 1999) class.
16260 \end_layout
16261
16262 \begin_layout Standard
16263 \SpecialChar LyX
16264  has a 
16265 \family sans
16266 Revtex
16267 \family default
16268  textclass, which works with Rev\SpecialChar TeX
16269  3.1.
16270  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16271  2.09.
16272  That means that it doesn't interact very well with \SpecialChar LyX
16273 , which requires \SpecialChar LaTeX2e
16274 , although
16275  it has been kludged to work.
16276  Since Rev\SpecialChar TeX
16277  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16278 , \SpecialChar LyX
16279  with the
16280  
16281 \family sans
16282 Rev\SpecialChar TeX
16283
16284 \begin_inset space ~
16285 \end_inset
16286
16287 4
16288 \family default
16289  textclass should also be pretty easy to use.
16290 \end_layout
16291
16292 \begin_layout Standard
16293 These documents are supposed to be used in 
16294 \emph on
16295 addition
16296 \emph default
16297  to the Rev\SpecialChar TeX
16298  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16299  macros,
16300  and assume you'll know what to put in the preamble if necessary.
16301 \end_layout
16302
16303 \begin_layout Subsection
16304 Installation
16305 \end_layout
16306
16307 \begin_layout Standard
16308 All you need to do is install Rev\SpecialChar TeX
16309  4, as described in the package's README
16310  file.
16311  The package can be found at The Rev\SpecialChar TeX
16312  4 Web Site 
16313 \begin_inset Flex URL
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317
16318 http://publish.aps.org/revtex4/
16319 \end_layout
16320
16321 \end_inset
16322
16323 .
16324  Install it somewhere that \SpecialChar LaTeX
16325  can see it.
16326  Test it by trying to \SpecialChar LaTeX
16327  a short Rev\SpecialChar TeX
16328  4 document in some random directory (i.
16329 \begin_inset space \thinspace{}
16330 \end_inset
16331
16332 e.
16333 \begin_inset space \space{}
16334 \end_inset
16335
16336 not the directory where you installed the class file.) Then, if you reconfigure
16337  \SpecialChar LyX
16338 , it will find the class file and let you use the Rev\SpecialChar TeX
16339 4 textclass.
16340 \end_layout
16341
16342 \begin_layout Standard
16343 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16344  4 document
16345  using 
16346 \family typewriter
16347 tex2lyx
16348 \family default
16349 , or to use the 
16350 \family sans
16351 Revtex
16352 \begin_inset space ~
16353 \end_inset
16354
16355 4
16356 \family default
16357  template, found in the templates directory.
16358 \end_layout
16359
16360 \begin_layout Subsection
16361 Preamble Matter
16362 \end_layout
16363
16364 \begin_layout Standard
16365 Optional arguments to 
16366 \family typewriter
16367
16368 \backslash
16369 documentclass
16370 \family default
16371 , like 
16372 \begin_inset Quotes eld
16373 \end_inset
16374
16375 preprint
16376 \begin_inset Quotes erd
16377 \end_inset
16378
16379  and 
16380 \begin_inset Quotes eld
16381 \end_inset
16382
16383 aps
16384 \begin_inset Quotes erd
16385 \end_inset
16386
16387 , go in the 
16388 \family sans
16389 Extra
16390 \begin_inset space ~
16391 \end_inset
16392
16393 Options
16394 \family default
16395  field in the 
16396 \family sans
16397 Document
16398 \begin_inset space ~
16399 \end_inset
16400
16401 Layout
16402 \family default
16403  dialog, as usual.
16404  Remember that in Rev\SpecialChar TeX
16405 , at least one optional argument is required! 
16406 \end_layout
16407
16408 \begin_layout Standard
16409 Other preamble matter, like 
16410 \family typewriter
16411
16412 \backslash
16413 draft
16414 \family default
16415  etc.
16416 \begin_inset space ~
16417 \end_inset
16418
16419 goes in the 
16420 \family sans
16421 \SpecialChar LaTeX
16422
16423 \begin_inset space ~
16424 \end_inset
16425
16426 Preamble
16427 \family default
16428  dialog, also as usual.
16429 \end_layout
16430
16431 \begin_layout Subsection
16432 Layouts
16433 \end_layout
16434
16435 \begin_layout Standard
16436 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16437 4.0.
16438  For example, the Email layout corresponds to 
16439 \family typewriter
16440
16441 \backslash
16442 email{}
16443 \family default
16444 .
16445  Note that (at least as of Rev\SpecialChar TeX
16446  4.0 Beta), the 
16447 \family sans
16448 Address
16449 \family default
16450  and 
16451 \family sans
16452 Affiliation
16453 \family default
16454  layouts are exactly equivalent, so you shouldn't need to use both.
16455 \begin_inset Foot
16456 status collapsed
16457
16458 \begin_layout Plain Layout
16459 In case you're curious, both were included so that 
16460 \family typewriter
16461 tex2lyx
16462 \family default
16463  would be able to translate both 
16464 \family typewriter
16465
16466 \backslash
16467 address
16468 \family default
16469  and 
16470 \family typewriter
16471
16472 \backslash
16473 affiliation
16474 \family default
16475 .
16476 \end_layout
16477
16478 \end_inset
16479
16480
16481 \end_layout
16482
16483 \begin_layout Subsection
16484 Important Notes
16485 \end_layout
16486
16487 \begin_layout Standard
16488 There are a couple of important unique aspects of Rev\SpecialChar TeX
16489  4 which might cause
16490  bugs that will be even more confusing in \SpecialChar LyX
16491 .
16492 \end_layout
16493
16494 \begin_layout Standard
16495 In Rev\SpecialChar TeX
16496 , the 
16497 \family typewriter
16498
16499 \backslash
16500 thanks
16501 \family default
16502  command goes 
16503 \emph on
16504 outside
16505 \emph default
16506  the 
16507 \family typewriter
16508
16509 \backslash
16510 author
16511 \family default
16512  command.
16513  The \SpecialChar LyX
16514  equivalent is that there is a separate Thanks layout.
16515  Do 
16516 \emph on
16517 not
16518 \emph default
16519  write footnotes in the 
16520 \family sans
16521 Author
16522 \family default
16523  layout, or weird things may happen.
16524  See the Rev\SpecialChar TeX
16525  4 documentation for more details.
16526 \end_layout
16527
16528 \begin_layout Standard
16529 Also, the 
16530 \family sans
16531 Author
16532 \begin_inset space ~
16533 \end_inset
16534
16535 Email
16536 \family default
16537
16538 \family sans
16539 Author
16540 \begin_inset space ~
16541 \end_inset
16542
16543 URL
16544 \family default
16545 , and 
16546 \family sans
16547 Thanks
16548 \family default
16549  layouts must be placed 
16550 \emph on
16551 in between
16552 \emph default
16553  the 
16554 \family sans
16555 Author
16556 \family default
16557  layout and the corresponding 
16558 \family sans
16559 Address
16560 \family default
16561  (or equivalent 
16562 \family sans
16563 Affiliation
16564 \family default
16565 ) layout.
16566  If you put the 
16567 \family sans
16568 Thanks
16569 \family default
16570  after the 
16571 \family sans
16572 Address
16573 \family default
16574 , the \SpecialChar LaTeX
16575  won't compile.
16576 \end_layout
16577
16578 \begin_layout Section
16579 Springer Journals (
16580 \family sans
16581 svjour
16582 \family default
16583 )
16584 \end_layout
16585
16586 \begin_layout Standard
16587 by 
16588 \noun on
16589 Martin Vermeer
16590 \end_layout
16591
16592 \begin_layout Subsection
16593 Description
16594 \end_layout
16595
16596 \begin_layout Standard
16597 These are the layout files for some of the journal formats used by Springer
16598  Verlag and listed on 
16599 \begin_inset Flex URL
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603
16604 http://www.springer.de/author/tex/help-journals.html
16605 \end_layout
16606
16607 \end_inset
16608
16609 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16610  now!).
16611  It is a modular system: the things common to all journals are implemented
16612  in 
16613 \family typewriter
16614 svjour.inc
16615 \family default
16616 , which journal-specific layout files (such as, e.
16617 \begin_inset space \thinspace{}
16618 \end_inset
16619
16620 g.
16621 \begin_inset space \space{}
16622 \end_inset
16623
16624
16625 \family typewriter
16626 svjog.layout
16627 \family default
16628  for Journal of Geodesy) can include.
16629 \end_layout
16630
16631 \begin_layout Standard
16632 This means that implementing support for any other Springer journal on this
16633  list is as simple as writing your own 
16634 \family typewriter
16635 sv
16636 \family default
16637 <myjournal>
16638 \family typewriter
16639 .layout
16640 \family default
16641  file following the outline given in 
16642 \family typewriter
16643 svjog.layout
16644 \family default
16645 .
16646  
16647 \end_layout
16648
16649 \begin_layout Standard
16650 It is reasonably well tested only for the Journal of Geodesy.
16651  
16652 \family typewriter
16653 svjour
16654 \family default
16655  and 
16656 \family typewriter
16657 svjog
16658 \family default
16659  come with the standard \SpecialChar LyX
16660  distribution.
16661  Install the relevant class file (downloaded from Springer) in a proper
16662  directory, reconfigure \SpecialChar LaTeX
16663  (in the te\SpecialChar TeX
16664  case by running 
16665 \family typewriter
16666 texhash
16667 \family default
16668 , as root if necessary — doesn't \SpecialChar LyX
16669  take care of this?), reconfigure \SpecialChar LyX
16670  and
16671  it should work.
16672 \end_layout
16673
16674 \begin_layout Subsection
16675 New styles
16676 \end_layout
16677
16678 \begin_layout Standard
16679 A large number of theorem-like styles — 
16680 \family sans
16681 Claim, Conjecture,
16682 \family default
16683  
16684 \family sans
16685 \SpecialChar ldots
16686 Theorem
16687 \family default
16688 .
16689 \end_layout
16690
16691 \begin_layout Standard
16692
16693 \family sans
16694 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16695 _Title, Author_Running, Institute,
16696  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16697 \family default
16698 .
16699  See the Springer class file documentation for details.
16700 \end_layout
16701
16702 \begin_layout Subsection
16703 Supported journals
16704 \end_layout
16705
16706 \begin_layout Itemize
16707
16708 \emph on
16709 Journal of Geodesy
16710 \emph default
16711
16712 \family typewriter
16713 svjog.layout
16714 \family default
16715  — Martin Vermeer
16716 \end_layout
16717
16718 \begin_layout Itemize
16719
16720 \emph on
16721 Probability Theory and Related Fields
16722 \emph default
16723
16724 \family typewriter
16725 svprobth.layout
16726 \family default
16727  — Jean-Marc Lasgouttes
16728 \end_layout
16729
16730 \begin_layout Standard
16731 Add your own, it isn't so hard!
16732 \end_layout
16733
16734 \begin_layout Subsection
16735 Credits
16736 \end_layout
16737
16738 \begin_layout Standard
16739 These files are partly based on the older 
16740 \family typewriter
16741 ejour2.layout
16742 \family default
16743 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16744  2.09 style
16745  file from Springer.
16746  All this, and the 
16747 \family typewriter
16748 ejour2
16749 \family default
16750  layout, are now defunct.
16751  Jean-Marc Lasgouttes helped out big in making me find my way around the
16752  \SpecialChar LyX
16753  layout file mechanism.
16754 \end_layout
16755
16756 \begin_layout Subsection
16757 Bugs
16758 \end_layout
16759
16760 \begin_layout Standard
16761 Probably.
16762  But probably less than in the old hacked-\SpecialChar LaTeX
16763  
16764 \family typewriter
16765 ejour2
16766 \family default
16767 .
16768 \end_layout
16769
16770 \begin_layout Section
16771 Slides [aka 
16772 \noun on
16773 Sli\SpecialChar TeX
16774
16775 \noun default
16776 ]
16777 \begin_inset CommandInset label
16778 LatexCommand label
16779 name "sec:slitex"
16780
16781 \end_inset
16782
16783
16784 \end_layout
16785
16786 \begin_layout Standard
16787 by 
16788 \noun on
16789 John Weiss
16790 \noun default
16791  
16792 \end_layout
16793
16794 \begin_layout Subsection
16795 Introduction
16796 \end_layout
16797
16798 \begin_layout Standard
16799 This section describes how to use \SpecialChar LyX
16800  to make slides for overhead projectors.
16801  There are two document classes that can do this: the default slides class
16802  and the 
16803 \family sans
16804 Foil\SpecialChar TeX
16805
16806 \family default
16807  slides class.
16808  This section documents the former.
16809 \end_layout
16810
16811 \begin_layout Standard
16812 I'm going to say this again, nice and clear, so that there's no misunderstanding
16813 :
16814 \end_layout
16815
16816 \begin_layout Standard
16817 \begin_inset VSpace bigskip
16818 \end_inset
16819
16820
16821 \end_layout
16822
16823 \begin_layout Standard
16824 \align center
16825
16826 \size large
16827 This section documents the class 
16828 \begin_inset Quotes eld
16829 \end_inset
16830
16831
16832 \family sans
16833 slides (default)
16834 \family default
16835
16836 \begin_inset Quotes erd
16837 \end_inset
16838
16839  
16840 \emph on
16841 only.
16842 \end_layout
16843
16844 \begin_layout Standard
16845 \begin_inset VSpace bigskip
16846 \end_inset
16847
16848
16849 \end_layout
16850
16851 \begin_layout Standard
16852 If you're looking for the documentation for 
16853 \begin_inset Quotes eld
16854 \end_inset
16855
16856
16857 \family sans
16858 slides (Foil\SpecialChar TeX
16859 )
16860 \family default
16861
16862 \begin_inset Quotes erd
16863 \end_inset
16864
16865 , check out section
16866 \begin_inset space ~
16867 \end_inset
16868
16869
16870 \begin_inset CommandInset ref
16871 LatexCommand ref
16872 reference "sec:foiltex"
16873
16874 \end_inset
16875
16876 .
16877  The 
16878 \family sans
16879 foils
16880 \family default
16881  class [
16882 \begin_inset Quotes eld
16883 \end_inset
16884
16885
16886 \family sans
16887 slides (Foil\SpecialChar TeX
16888 )
16889 \family default
16890
16891 \begin_inset Quotes erd
16892 \end_inset
16893
16894 ] is actually somewhat better than the default 
16895 \family sans
16896 slides
16897 \family default
16898  class,
16899 \begin_inset Foot
16900 status collapsed
16901
16902 \begin_layout Plain Layout
16903 \SpecialChar ldots
16904 or so I've been told repeatedly by its advocates.
16905  Having never used it, I have no idea if this claim is true or not.
16906 \end_layout
16907
16908 \end_inset
16909
16910  which this section documents.
16911 \end_layout
16912
16913 \begin_layout Standard
16914 This class is the \SpecialChar LaTeX2e
16915  improvement of the old 
16916 \noun on
16917 Sli\SpecialChar TeX
16918
16919 \noun default
16920  package.
16921  Every \SpecialChar LaTeX2e
16922  distribution includes this class [which I'll just refer to as 
16923 \begin_inset Quotes eld
16924 \end_inset
16925
16926
16927 \family sans
16928 slides
16929 \family default
16930
16931 \begin_inset Quotes erd
16932 \end_inset
16933
16934  from now on], so you're bound to have it.
16935  As I noted earlier, there are other classes, such as 
16936 \family sans
16937 foils
16938 \family default
16939 , which also produce slides for overhead projectors and do a better job
16940  at it.
16941  However, there are some things which 
16942 \family sans
16943 slides
16944 \family default
16945  can do which the others can't, such as generate overlays.
16946  Read on to learn more!
16947 \end_layout
16948
16949 \begin_layout Subsection
16950 Getting Started
16951 \begin_inset CommandInset label
16952 LatexCommand label
16953 name "sec:slidesetup"
16954
16955 \end_inset
16956
16957
16958 \end_layout
16959
16960 \begin_layout Standard
16961 Obviously, to use this document class, you need to select 
16962 \begin_inset Quotes eld
16963 \end_inset
16964
16965
16966 \family sans
16967 slides (default)
16968 \family default
16969
16970 \begin_inset Quotes erd
16971 \end_inset
16972
16973  from the class list in the 
16974 \family sans
16975 Document\SpecialChar menuseparator
16976 Settings
16977 \family default
16978  dialog.
16979  There are some other special things you should know about this class:
16980 \end_layout
16981
16982 \begin_layout Itemize
16983 Don't bother changing the options 
16984 \family sans
16985 Sides and Columns
16986 \family default
16987 .
16988  They're not supported by the 
16989 \family sans
16990 slides
16991 \family default
16992  class, anyways.
16993 \end_layout
16994
16995 \begin_layout Itemize
16996 The option 
16997 \family sans
16998 Page
16999 \begin_inset space ~
17000 \end_inset
17001
17002 style
17003 \family default
17004  behaves a bit differently for this class.
17005  The possible choices and what they do are as follows:
17006 \end_layout
17007
17008 \begin_deeper
17009 \begin_layout Description
17010
17011 \family sans
17012 plain
17013 \family default
17014  The final output contains page numbers in the lower right corner.
17015 \end_layout
17016
17017 \begin_layout Description
17018
17019 \family sans
17020 headings
17021 \family default
17022  Like 
17023 \family sans
17024 plain
17025 \family default
17026 , but also prints out any time markers you've put in.
17027  This is the default.
17028 \end_layout
17029
17030 \begin_layout Description
17031
17032 \family sans
17033 empty
17034 \family default
17035  The final output contains no page numbers, time markers, or alignment markers.
17036 \end_layout
17037
17038 \end_deeper
17039 \begin_layout Itemize
17040 The 
17041 \family sans
17042 slides
17043 \family default
17044  class has an extra option: 
17045 \family typewriter
17046 clock
17047 \family default
17048 .
17049  To use it, put 
17050 \begin_inset Quotes eld
17051 \end_inset
17052
17053
17054 \family typewriter
17055 clock
17056 \family default
17057
17058 \begin_inset Quotes erd
17059 \end_inset
17060
17061  in the extra class options.
17062 \end_layout
17063
17064 \begin_deeper
17065 \begin_layout Standard
17066 Using this options allows you to add time markers to 
17067 \family sans
17068 Note
17069 \family default
17070 s.
17071  See section
17072 \begin_inset space ~
17073 \end_inset
17074
17075
17076 \begin_inset CommandInset ref
17077 LatexCommand ref
17078 reference "sec:slideNote"
17079
17080 \end_inset
17081
17082  for more details.
17083 \end_layout
17084
17085 \end_deeper
17086 \begin_layout Standard
17087 You can also use the template file 
17088 \begin_inset Quotes eld
17089 \end_inset
17090
17091
17092 \family typewriter
17093 slides.lyx
17094 \family default
17095
17096 \begin_inset Quotes erd
17097 \end_inset
17098
17099  to automatically set up a document to use the 
17100 \family sans
17101 slides
17102 \family default
17103  class [using 
17104 \family sans
17105 File\SpecialChar menuseparator
17106 New
17107 \begin_inset space ~
17108 \end_inset
17109
17110 from
17111 \begin_inset space ~
17112 \end_inset
17113
17114 Template
17115 \family default
17116  to open your new document].
17117  The template file also contains some examples of the special paragraph
17118  environments used by this class.
17119  I'll describe those next.
17120 \end_layout
17121
17122 \begin_layout Subsection
17123 Paragraph Environments
17124 \end_layout
17125
17126 \begin_layout Subsubsection
17127 Supported Environments
17128 \end_layout
17129
17130 \begin_layout Standard
17131 The first thing you'll notice when you start up a new 
17132 \family sans
17133 slides
17134 \family default
17135  document is the font size and type: it's the equivalent of the size 
17136 \begin_inset Quotes eld
17137 \end_inset
17138
17139
17140 \family sans
17141 Largest
17142 \family default
17143
17144 \begin_inset Quotes erd
17145 \end_inset
17146
17147  in the 
17148 \family sans
17149 Sans
17150 \begin_inset space ~
17151 \end_inset
17152
17153 Serif
17154 \family default
17155  font.
17156  This is also what's used in the output.
17157  Think of this as a 
17158 \begin_inset Quotes eld
17159 \end_inset
17160
17161 visual cue
17162 \begin_inset Quotes erd
17163 \end_inset
17164
17165  to remind you that this is a slide.
17166  Your final slides will use a larger font; ergo, you'll have less space.
17167  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17168 \end_layout
17169
17170 \begin_layout Standard
17171 The next thing that becomes obvious is the changes to the paragraph environment
17172  pull-down box [at the far-left end of the toolbar].
17173  Most of the paragraph environments you're used to seeing are missing.
17174  There are also five new ones.
17175  That's because the 
17176 \family sans
17177 slides
17178 \family default
17179  class itself only supports certain paragraph environments:
17180 \end_layout
17181
17182 \begin_layout Itemize
17183
17184 \family sans
17185 Standard
17186 \end_layout
17187
17188 \begin_layout Itemize
17189
17190 \family sans
17191 Itemize
17192 \end_layout
17193
17194 \begin_layout Itemize
17195
17196 \family sans
17197 Enumerate
17198 \end_layout
17199
17200 \begin_layout Itemize
17201
17202 \family sans
17203 Description
17204 \end_layout
17205
17206 \begin_layout Itemize
17207
17208 \family sans
17209 List
17210 \end_layout
17211
17212 \begin_layout Itemize
17213
17214 \family sans
17215 Quotation
17216 \end_layout
17217
17218 \begin_layout Itemize
17219
17220 \family sans
17221 Quote
17222 \end_layout
17223
17224 \begin_layout Itemize
17225
17226 \family sans
17227 Verse
17228 \end_layout
17229
17230 \begin_layout Itemize
17231
17232 \family sans
17233 Caption
17234 \end_layout
17235
17236 \begin_layout Itemize
17237
17238 \family sans
17239 \SpecialChar LyX
17240 -Code
17241 \end_layout
17242
17243 \begin_layout Standard
17244 All of the other standard environments, including the section-heading environmen
17245 ts, aren't used in the 
17246 \family sans
17247 slides
17248 \family default
17249  class.
17250 \end_layout
17251
17252 \begin_layout Standard
17253 On the other hand, you'll notice the following new environments:
17254 \end_layout
17255
17256 \begin_layout Itemize
17257
17258 \family sans
17259 Slide
17260 \end_layout
17261
17262 \begin_layout Itemize
17263
17264 \family sans
17265 Overlay
17266 \end_layout
17267
17268 \begin_layout Itemize
17269
17270 \family sans
17271 Note
17272 \end_layout
17273
17274 \begin_layout Itemize
17275
17276 \family sans
17277 InvisibleText
17278 \end_layout
17279
17280 \begin_layout Itemize
17281
17282 \family sans
17283 VisibleText
17284 \end_layout
17285
17286 \begin_layout Standard
17287 These five are kind of quirky, due to a 
17288 \begin_inset Quotes eld
17289 \end_inset
17290
17291 feature
17292 \begin_inset Quotes erd
17293 \end_inset
17294
17295  in \SpecialChar LyX
17296 .
17297  You see, \SpecialChar LyX
17298  doesn't permit you to nest any other paragraph environment into
17299  an empty environment.
17300  Now, that's fine and dandy, but it means that you wouldn't be able to start
17301  a slide with anything except plain text.
17302  To deal with this, I've performed a little 
17303 \begin_inset Quotes eld
17304 \end_inset
17305
17306 \SpecialChar LaTeX
17307  magic.
17308 \begin_inset Quotes erd
17309 \end_inset
17310
17311  
17312 \end_layout
17313
17314 \begin_layout Subsubsection
17315 Quirks of the New Environments
17316 \begin_inset CommandInset label
17317 LatexCommand label
17318 name "sec:slideQuirk"
17319
17320 \end_inset
17321
17322
17323 \end_layout
17324
17325 \begin_layout Standard
17326 All five of the new paragraph environments are somewhat quirky due to inherent
17327  limitiations in the current version of \SpecialChar LyX
17328 .
17329  As I just mentioned, \SpecialChar LyX
17330  forbids environments that begin with another environment.
17331  To get around this, the 
17332 \family sans
17333 Slide
17334 \family default
17335  environment isn't a paragraph environment as described in the 
17336 \emph on
17337 User's Guide
17338 \emph default
17339 .
17340  
17341 \end_layout
17342
17343 \begin_layout Standard
17344 You should consider 
17345 \family sans
17346 Slide
17347 \family default
17348
17349 \family sans
17350 Overlay
17351 \family default
17352 , and 
17353 \family sans
17354 Note
17355 \family default
17356  to be 
17357 \begin_inset Quotes eld
17358 \end_inset
17359
17360 pseudo-environments.
17361 \begin_inset Quotes erd
17362 \end_inset
17363
17364  They look like a section heading or a 
17365 \begin_inset Quotes eld
17366 \end_inset
17367
17368
17369 \family sans
17370 Caption
17371 \family default
17372 ,
17373 \begin_inset Quotes erd
17374 \end_inset
17375
17376  but really begin a [and, if necessary, end the previous] paragraph environment.
17377  Likewise, treat 
17378 \family sans
17379 InvisibleText
17380 \family default
17381  and 
17382 \family sans
17383 VisibleText
17384 \family default
17385  as 
17386 \begin_inset Quotes eld
17387 \end_inset
17388
17389 pseudo-commands.
17390 \begin_inset Quotes erd
17391 \end_inset
17392
17393  These two perform some action.
17394 \end_layout
17395
17396 \begin_layout Standard
17397 A common feature of all five environments, 
17398 \family sans
17399 Slide
17400 \family default
17401
17402 \family sans
17403 Overlay
17404 \family default
17405
17406 \family sans
17407 Note
17408 \family default
17409
17410 \family sans
17411 InvisibleText
17412 \family default
17413  and 
17414 \family sans
17415 VisibleText
17416 \family default
17417 , is a rather long-ish label.
17418  The text following this label — ordinarily the contents of the paragraph
17419  environment — is utterly irrelevant for 
17420 \family sans
17421 Slide
17422 \family default
17423
17424 \family sans
17425 Overlay
17426 \family default
17427
17428 \family sans
17429 Note
17430 \family default
17431
17432 \family sans
17433 InvisibleText
17434 \family default
17435  and 
17436 \family sans
17437 VisibleText
17438 \family default
17439 .
17440  \SpecialChar LyX
17441  completely ignores it.
17442  In fact, you can leave these five environments completely empty.
17443  
17444 \end_layout
17445
17446 \begin_layout Standard
17447 While you don't 
17448 \emph on
17449 have
17450 \emph default
17451  to put any text after the rather long-ish label, you might want to.
17452  This could be a short description of the contents of the 
17453 \family sans
17454 Slide
17455 \family default
17456 , for example.
17457  In that case, enter your descriptive comment and hit 
17458 \family sans
17459 Return
17460 \family default
17461  as you normally would.
17462 \end_layout
17463
17464 \begin_layout Standard
17465 If, on the other hand, you don't want to enter any descriptive text, you'll
17466  hit another \SpecialChar LyX
17467  quirk.
17468  \SpecialChar LyX
17469 , like nature, abhors a vacuum, and will not let you start a new paragraph
17470  environment until you put something in the old one.
17471  So, do this:
17472 \end_layout
17473
17474 \begin_layout Itemize
17475 Start entering the text that will 
17476 \emph on
17477 follow
17478 \emph default
17479  the new 
17480 \family sans
17481 Slide
17482 \family default
17483
17484 \family sans
17485 Overlay
17486 \family default
17487
17488 \family sans
17489 Note
17490 \family default
17491
17492 \family sans
17493 InvisibleText
17494 \family default
17495  or 
17496 \family sans
17497 VisibleText
17498 \family default
17499 .
17500  
17501 \end_layout
17502
17503 \begin_layout Itemize
17504 Now move to the beginning of that paragraph.
17505  
17506 \end_layout
17507
17508 \begin_layout Itemize
17509 Next, hit 
17510 \family sans
17511 Return
17512 \family default
17513 .
17514  
17515 \end_layout
17516
17517 \begin_layout Itemize
17518 Finally, change this new, empty paragraph to a 
17519 \family sans
17520 Slide
17521 \family default
17522
17523 \family sans
17524 Overlay
17525 \family default
17526
17527 \family sans
17528 Note
17529 \family default
17530
17531 \family sans
17532 InvisibleText
17533 \family default
17534  or 
17535 \family sans
17536 VisibleText
17537 \family default
17538 .
17539  
17540 \end_layout
17541
17542 \begin_layout Standard
17543 Some future version of \SpecialChar LyX
17544  will, hopefully, resolve this quirkiness\SpecialChar ldots
17545
17546 \end_layout
17547
17548 \begin_layout Subsection
17549 Making a Presentation with 
17550 \family sans
17551 Slide
17552 \family default
17553
17554 \family sans
17555 Overlay
17556 \family default
17557  and 
17558 \family sans
17559 Note
17560 \end_layout
17561
17562 \begin_layout Subsubsection
17563 Using the 
17564 \family sans
17565 Slide
17566 \family default
17567  Environment
17568 \end_layout
17569
17570 \begin_layout Standard
17571 If you're expecting this section to teach you how to actually make a presentatio
17572 n, you'll be sorely disappointed.
17573  Naturally, I'll describe all of the ways the 
17574 \family sans
17575 slides
17576 \family default
17577  class can assist you in preparing the materials for a presentation.
17578  Filling in the contents, however, is up to you.
17579  [Then again, that 
17580 \emph on
17581 is
17582 \emph default
17583  the \SpecialChar LyX
17584  philosophy.]
17585 \end_layout
17586
17587 \begin_layout Standard
17588 Choosing the 
17589 \family sans
17590 Slide
17591 \family default
17592  environment [in the manner described in section
17593 \begin_inset space ~
17594 \end_inset
17595
17596
17597 \begin_inset CommandInset ref
17598 LatexCommand ref
17599 reference "sec:slideQuirk"
17600
17601 \end_inset
17602
17603 ] tells \SpecialChar LyX
17604  to begin a new slide [duh].
17605  The label for this environment/
17606 \begin_inset Quotes erd
17607 \end_inset
17608
17609 pseudo-command
17610 \begin_inset Quotes erd
17611 \end_inset
17612
17613  is an 
17614 \begin_inset Quotes eld
17615 \end_inset
17616
17617 ASCII line,
17618 \begin_inset Quotes erd
17619 \end_inset
17620
17621  in cool blue, followed by the label, 
17622 \begin_inset Quotes eld
17623 \end_inset
17624
17625 NewSlide:
17626 \begin_inset Quotes erd
17627 \end_inset
17628
17629 .
17630  Any text or paragraph environments that follow this one go on the new slide.
17631  It's that simple.
17632 \end_layout
17633
17634 \begin_layout Standard
17635 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17636
17637  (this can be specified in the 
17638 \family sans
17639 Paragraph Layout
17640 \family default
17641  dialog).
17642  In fact, you'll want to, once you finish entering the contents of one slide.
17643  If you've entered more text than can physically fit on a slide, the extra
17644  overflows onto a new slide.
17645  I don't recommend doing this, however, since the overflow slide won't have
17646  any page number on it.
17647  Furthermore, it may interfere with any 
17648 \family sans
17649 Overlay
17650 \family default
17651  you've made to accompany the oversized 
17652 \family sans
17653 Slide
17654 \family default
17655 .
17656 \end_layout
17657
17658 \begin_layout Standard
17659 The 
17660 \family sans
17661 Overlay
17662 \family default
17663  and 
17664 \family sans
17665 Note
17666 \family default
17667  environments work the same way as the 
17668 \family sans
17669 Slide
17670 \family default
17671  environment.
17672  They both create an 
17673 \begin_inset Quotes eld
17674 \end_inset
17675
17676 ASCII line
17677 \begin_inset Quotes erd
17678 \end_inset
17679
17680  followed by a label [
17681 \begin_inset Quotes eld
17682 \end_inset
17683
17684 NewOverlay:
17685 \begin_inset Quotes erd
17686 \end_inset
17687
17688  and 
17689 \begin_inset Quotes eld
17690 \end_inset
17691
17692 NewNote:
17693 \begin_inset Quotes erd
17694 \end_inset
17695
17696 , respectively].
17697  The color is a stunning magenta instead of blue, and the 
17698 \begin_inset Quotes eld
17699 \end_inset
17700
17701 ASCII line
17702 \begin_inset Quotes erd
17703 \end_inset
17704
17705  will look different, in style and in length.
17706  The label fonts of all three also differ from one another.
17707 \end_layout
17708
17709 \begin_layout Standard
17710 As with a 
17711 \family sans
17712 Slide
17713 \family default
17714 , if the contents of a 
17715 \family sans
17716 Note
17717 \family default
17718  or 
17719 \family sans
17720 Overlay
17721 \family default
17722  exceed the physical size of a slide or sheet of paper, the extra will overflow
17723  onto a new sheet.
17724  Again, you should avoid this.
17725  It defeats the whole purpose of 
17726 \family sans
17727 Note
17728 \family default
17729 s and 
17730 \family sans
17731 Overlay
17732 \family default
17733 s.
17734 \end_layout
17735
17736 \begin_layout Subsubsection
17737 Using 
17738 \family sans
17739 Overlay
17740 \family default
17741  with 
17742 \family sans
17743 Slide
17744 \end_layout
17745
17746 \begin_layout Standard
17747 The idea behind an 
17748 \family sans
17749 Overlay
17750 \family default
17751  is a slide that sits atop another slide.
17752  Perhaps you wish to discuss a figure on the main 
17753 \family sans
17754 Slide
17755 \family default
17756  before displaying the text associated with it.
17757  One way to accomplish this is tape a flap of dark paper over the part of
17758  the 
17759 \family sans
17760 Slide
17761 \family default
17762  you want to display later.
17763  This method fails, however, if you wish to overlap one graph with another,
17764  for example.
17765  You would then have to fumble while speaking to align the two separate,
17766  overlapping 
17767 \family sans
17768 Slide
17769 \family default
17770 s to align the two graphs.
17771  The use of an 
17772 \family sans
17773 Overlay
17774 \family default
17775  environment in both cases makes life much easier.
17776 \end_layout
17777
17778 \begin_layout Standard
17779 Each 
17780 \family sans
17781 Overlay
17782 \family default
17783  receives the page number of its 
17784 \begin_inset Quotes eld
17785 \end_inset
17786
17787 parent
17788 \begin_inset Quotes erd
17789 \end_inset
17790
17791  
17792 \family sans
17793 Slide
17794 \family default
17795 , appended by 
17796 \begin_inset Quotes eld
17797 \end_inset
17798
17799
17800 \family typewriter
17801 -a
17802 \family default
17803
17804 \begin_inset Quotes erd
17805 \end_inset
17806
17807 .
17808 \begin_inset Foot
17809 status collapsed
17810
17811 \begin_layout Plain Layout
17812 Presumably, mutliple 
17813 \family sans
17814 Overlay
17815 \family default
17816 s would have 
17817 \begin_inset Quotes eld
17818 \end_inset
17819
17820
17821 \family typewriter
17822 -a
17823 \family default
17824
17825 \begin_inset Quotes erd
17826 \end_inset
17827
17828
17829 \begin_inset Quotes eld
17830 \end_inset
17831
17832
17833 \family typewriter
17834 -b
17835 \family default
17836
17837 \begin_inset Quotes erd
17838 \end_inset
17839
17840
17841 \begin_inset Quotes eld
17842 \end_inset
17843
17844
17845 \family typewriter
17846 -c
17847 \family default
17848
17849 \begin_inset Quotes erd
17850 \end_inset
17851
17852 , etc.
17853 \begin_inset space ~
17854 \end_inset
17855
17856 appended to the page number of the parent 
17857 \family sans
17858 Slide
17859 \family default
17860 .
17861  
17862 \end_layout
17863
17864 \end_inset
17865
17866  Clearly, you want the contents of both the 
17867 \family sans
17868 Slide
17869 \family default
17870  and the 
17871 \family sans
17872 Overlay
17873 \family default
17874  to each fit on a single physical slide! You should probably consider an
17875  
17876 \family sans
17877 Overlay
17878 \family default
17879  as 
17880 \begin_inset Quotes eld
17881 \end_inset
17882
17883 part of
17884 \begin_inset Quotes erd
17885 \end_inset
17886
17887  a 
17888 \family sans
17889 Slide
17890 \family default
17891 .
17892  Indeed, the \SpecialChar LyX
17893  
17894 \family sans
17895 slides
17896 \family default
17897  class provides a visual cue for this: the label at the start of an 
17898 \family sans
17899 Overlay
17900 \family default
17901  is shorter than that at the start of a 
17902 \family sans
17903 Slide
17904 \family default
17905 .
17906  Lastly, when you generate printable output, you'll find alignment markers
17907  in all four corners of both the 
17908 \family sans
17909 Overlay
17910 \family default
17911  page and its parent 
17912 \family sans
17913 Slide
17914 \family default
17915 .
17916  These will assist you in lining up the two physical slides.
17917 \end_layout
17918
17919 \begin_layout Standard
17920 The major problem in overlaying two slides is aligning the contents of the
17921  two transparencies.
17922  How much space should you leave for that graph on the second slide? Worse
17923  still, what if you want a graph and a sentence on second slide, but there
17924  is text on the main transparency that goes in between them? You could try
17925  and insert vertical space of the right size.
17926  The better way is to use 
17927 \family sans
17928 InvisibleText
17929 \family default
17930  and 
17931 \family sans
17932 VisibleText
17933 \family default
17934 .
17935 \end_layout
17936
17937 \begin_layout Standard
17938 As their names imply, 
17939 \family sans
17940 InvisibleText
17941 \family default
17942  and 
17943 \family sans
17944 VisibleText
17945 \family default
17946  are two command-like paragraph environments that make all subsequent text
17947  invisible and visible, respectively.
17948  Note from section
17949 \begin_inset space ~
17950 \end_inset
17951
17952
17953 \begin_inset CommandInset ref
17954 LatexCommand ref
17955 reference "sec:slideQuirk"
17956
17957 \end_inset
17958
17959  that you don't place anything 
17960 \emph on
17961 into
17962 \emph default
17963  these two environments, however.
17964  When you create an 
17965 \family sans
17966 InvisibleText
17967 \family default
17968 , it inserts a centered, sky-blue label into the page reading 
17969 \begin_inset Quotes eld
17970 \end_inset
17971
17972 <Invisible Text Follows>
17973 \begin_inset Quotes erd
17974 \end_inset
17975
17976 .
17977  For paragraphs following this label, the parts of the 
17978 \family sans
17979 Slide
17980 \family default
17981  [or 
17982 \family sans
17983 Overlay
17984 \family default
17985 ; it doesn't matter which] where they would be contain instead blank space.
17986  
17987 \end_layout
17988
17989 \begin_layout Standard
17990 For 
17991 \family sans
17992 VisibleText
17993 \family default
17994 , the corresponding centered label is 
17995 \begin_inset Quotes eld
17996 \end_inset
17997
17998 <Visible Text Follows>
17999 \begin_inset Quotes erd
18000 \end_inset
18001
18002  in blazing green.
18003  Paragraphs following this label behave normally.
18004  Note that the beginning of a new 
18005 \family sans
18006 Slide
18007 \family default
18008
18009 \family sans
18010 Overlay
18011 \family default
18012 , or 
18013 \family sans
18014 Note
18015 \family default
18016  automatically shuts off an 
18017 \family sans
18018 InvisibleText
18019 \family default
18020 .
18021  It's therefore not necessary to use 
18022 \family sans
18023 VisibleText
18024 \family default
18025  at the end of a 
18026 \family sans
18027 Slide
18028 \family default
18029 .
18030 \end_layout
18031
18032 \begin_layout Standard
18033 By now, it should be obvious how to create overlay transparencies using
18034  the proper combination of 
18035 \family sans
18036 InvisibleText
18037 \family default
18038  and 
18039 \family sans
18040 VisibleText
18041 \family default
18042  on a 
18043 \family sans
18044 Slide
18045 \family default
18046  and 
18047 \family sans
18048 Overlay
18049 \family default
18050 :
18051 \end_layout
18052
18053 \begin_layout Enumerate
18054 Create a 
18055 \family sans
18056 Slide
18057 \family default
18058 , including everything that will appear on it, whether on the main slide
18059  or on the 
18060 \family sans
18061 Overlay
18062 \family default
18063 .
18064 \end_layout
18065
18066 \begin_layout Enumerate
18067 Before each figure or paragraph that will appear only on the 
18068 \family sans
18069 Overlay
18070 \family default
18071 , insert an 
18072 \family sans
18073 InvisibleText
18074 \family default
18075  environment.
18076  If necessary, insert a 
18077 \family sans
18078 VisibleText
18079 \family default
18080  environment after the 
18081 \family sans
18082 Overlay
18083 \family default
18084 -only text.
18085 \end_layout
18086
18087 \begin_layout Enumerate
18088 Start an 
18089 \family sans
18090 Overlay
18091 \family default
18092  immediately following the 
18093 \family sans
18094 Slide
18095 \family default
18096 .
18097 \end_layout
18098
18099 \begin_layout Enumerate
18100 Copy the contents of this 
18101 \family sans
18102 Slide
18103 \family default
18104  into the 
18105 \family sans
18106 Overlay
18107 \family default
18108 .
18109 \end_layout
18110
18111 \begin_layout Enumerate
18112 Within the 
18113 \family sans
18114 Overlay
18115 \family default
18116 , change all of the 
18117 \family sans
18118 InvisibleText
18119 \family default
18120  lines to 
18121 \family sans
18122 VisibleText
18123 \family default
18124  and vice-versa.
18125 \end_layout
18126
18127 \begin_layout Standard
18128 That's it.
18129  You've just made an 
18130 \family sans
18131 Overlay
18132 \family default
18133 .
18134 \end_layout
18135
18136 \begin_layout Standard
18137 There's one problem with the way I've designed the \SpecialChar LyX
18138  
18139 \family sans
18140 slides
18141 \family default
18142  class: you can't make text in the middle of a paragraph invisible, nor
18143  make text in the middle of an invisible paragraph visible again.
18144  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18145  codes.
18146 \begin_inset Foot
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 The commands of interest are: 
18151 \end_layout
18152
18153 \begin_layout Itemize
18154
18155 \family typewriter
18156 {
18157 \backslash
18158 invisible \SpecialChar ldots
18159  }
18160 \end_layout
18161
18162 \begin_layout Itemize
18163
18164 \family typewriter
18165 {
18166 \backslash
18167 visible \SpecialChar ldots
18168  }
18169 \end_layout
18170
18171 \begin_layout Plain Layout
18172 \SpecialChar ldots
18173 and need to be marked as \SpecialChar TeX
18174 .
18175  The text whose 
18176 \begin_inset Quotes eld
18177 \end_inset
18178
18179 visibility
18180 \begin_inset Quotes erd
18181 \end_inset
18182
18183  you wish to change goes in between the brackets [and after the 
18184 \family typewriter
18185
18186 \backslash
18187 invisible
18188 \family default
18189  or 
18190 \family typewriter
18191
18192 \backslash
18193 visible
18194 \family default
18195  command].
18196  If you don't know how to mark text as \SpecialChar TeX
18197 , see the appropriate section of
18198  the 
18199 \emph on
18200 User's Guide
18201 \emph default
18202 .
18203 \end_layout
18204
18205 \end_inset
18206
18207
18208 \end_layout
18209
18210 \begin_layout Subsubsection
18211 Using 
18212 \family sans
18213 Note
18214 \family default
18215  with 
18216 \family sans
18217 Slide
18218 \family default
18219
18220 \begin_inset CommandInset label
18221 LatexCommand label
18222 name "sec:slideNote"
18223
18224 \end_inset
18225
18226
18227 \end_layout
18228
18229 \begin_layout Standard
18230 Like an 
18231 \family sans
18232 Overlay
18233 \family default
18234 , a 
18235 \family sans
18236 Note
18237 \family default
18238  is associated with a 
18239 \begin_inset Quotes eld
18240 \end_inset
18241
18242 parent
18243 \begin_inset Quotes erd
18244 \end_inset
18245
18246  
18247 \family sans
18248 Slide
18249 \family default
18250 .
18251  Here, too, the \SpecialChar LyX
18252  
18253 \family sans
18254 slides
18255 \family default
18256  class provides visual cues.
18257  The label for a 
18258 \family sans
18259 Note
18260 \family default
18261  is shorter than that of a 
18262 \family sans
18263 Slide
18264 \family default
18265  [yet longer than that of an 
18266 \family sans
18267 Overlay
18268 \family default
18269 ] and, like the label of an 
18270 \family sans
18271 Overlay
18272 \family default
18273  is shockingly magenta.
18274  Additionally, the printed 
18275 \family sans
18276 Note
18277 \family default
18278  has the page number of its 
18279 \begin_inset Quotes eld
18280 \end_inset
18281
18282 parent
18283 \begin_inset Quotes erd
18284 \end_inset
18285
18286  
18287 \family sans
18288 Slide
18289 \family default
18290 , appended by 
18291 \begin_inset Quotes eld
18292 \end_inset
18293
18294
18295 \family typewriter
18296 -
18297 \family default
18298 1
18299 \begin_inset Quotes erd
18300 \end_inset
18301
18302
18303 \begin_inset Quotes eld
18304 \end_inset
18305
18306
18307 \family typewriter
18308 -
18309 \family default
18310 2
18311 \begin_inset Quotes erd
18312 \end_inset
18313
18314
18315 \begin_inset Quotes eld
18316 \end_inset
18317
18318
18319 \family typewriter
18320 -
18321 \family default
18322 3
18323 \begin_inset Quotes erd
18324 \end_inset
18325
18326 , etc.
18327  You can have multiple 
18328 \family sans
18329 Note
18330 \family default
18331 s associated with a single 
18332 \family sans
18333 Slide
18334 \family default
18335 , and, as with 
18336 \family sans
18337 Slide
18338 \family default
18339  and 
18340 \family sans
18341 Overlay
18342 \family default
18343 , you'll probably want to break up long 
18344 \family sans
18345 Note
18346 \family default
18347 s so that they fit on a single sheet of paper.
18348 \end_layout
18349
18350 \begin_layout Standard
18351 The purpose of a 
18352 \family sans
18353 Note
18354 \family default
18355  is obvious: it contains anything additional you might want to say about
18356  a 
18357 \family sans
18358 Slide
18359 \family default
18360 .
18361  It could also be used as a sheet of reminders for a particular 
18362 \family sans
18363 Slide
18364 \family default
18365 .
18366  In the case of the latter, you might want to make use of time markers.
18367  Currently, the \SpecialChar LyX
18368  
18369 \family sans
18370 slides
18371 \family default
18372  class has no 
18373 \begin_inset Quotes eld
18374 \end_inset
18375
18376 native
18377 \begin_inset Quotes erd
18378 \end_inset
18379
18380  support for time markers, a 
18381 \noun on
18382 Sli\SpecialChar TeX
18383
18384 \noun default
18385  feature.
18386  So, you'll have to resort to using the \SpecialChar LaTeX
18387  codes.
18388 \end_layout
18389
18390 \begin_layout Standard
18391 To use time markers, you'll need to specify the extra class option 
18392 \begin_inset Quotes eld
18393 \end_inset
18394
18395
18396 \family typewriter
18397 clock
18398 \family default
18399
18400 \begin_inset Quotes erd
18401 \end_inset
18402
18403  [see section
18404 \begin_inset space ~
18405 \end_inset
18406
18407
18408 \begin_inset CommandInset ref
18409 LatexCommand ref
18410 reference "sec:slidesetup"
18411
18412 \end_inset
18413
18414 ].
18415  This option turns on timing marks, which will appear in the lower-left-hand
18416  corner of every 
18417 \family sans
18418 Note
18419 \family default
18420  you generate.
18421  To set what appears in the time marker, you use the \SpecialChar LaTeX
18422  commands 
18423 \begin_inset Quotes eld
18424 \end_inset
18425
18426
18427 \family typewriter
18428
18429 \backslash
18430 settime{}
18431 \family default
18432
18433 \begin_inset Quotes erd
18434 \end_inset
18435
18436  and 
18437 \begin_inset Quotes eld
18438 \end_inset
18439
18440
18441 \family typewriter
18442
18443 \backslash
18444 addtime{}
18445 \family default
18446
18447 \begin_inset Quotes erd
18448 \end_inset
18449
18450 .
18451  The arguments of both commands are time measured in seconds.
18452  
18453 \begin_inset Quotes eld
18454 \end_inset
18455
18456
18457 \family typewriter
18458
18459 \backslash
18460 settime{}
18461 \family default
18462
18463 \begin_inset Quotes erd
18464 \end_inset
18465
18466  sets the time marker to a given time.
18467  
18468 \begin_inset Quotes eld
18469 \end_inset
18470
18471
18472 \family typewriter
18473
18474 \backslash
18475 addtime{}
18476 \family default
18477
18478 \begin_inset Quotes erd
18479 \end_inset
18480
18481  increments the time marker by the specified amount.
18482  Using time markers and 
18483 \family sans
18484 Note
18485 \family default
18486 s in this fashion, you can remind yourself how much time to spend on a particula
18487
18488 \family sans
18489 Slide
18490 \family default
18491 .
18492 \end_layout
18493
18494 \begin_layout Standard
18495 There's one last feature to describe.
18496  Clearly, you'd like to print out all of your 
18497 \family sans
18498 Slide
18499 \family default
18500 s and 
18501 \family sans
18502 Overlay
18503 \family default
18504 s on transparencies while printing all of your 
18505 \family sans
18506 Note
18507 \family default
18508 s on plain paper.
18509  However, a 
18510 \family sans
18511 Note
18512 \family default
18513  
18514 \emph on
18515 must
18516 \emph default
18517  follow the 
18518 \family sans
18519 Slide
18520 \family default
18521  with which it is associated.
18522  What's a person to do?
18523 \end_layout
18524
18525 \begin_layout Standard
18526 Luckily, there are two \SpecialChar LaTeX
18527  commands that allow you to select what to print
18528  out.
18529  Both must be placed into the preamble of your document.
18530  The command 
18531 \begin_inset Quotes eld
18532 \end_inset
18533
18534
18535 \family typewriter
18536
18537 \backslash
18538 onlyslides{
18539 \backslash
18540 slides}
18541 \family default
18542
18543 \begin_inset Quotes erd
18544 \end_inset
18545
18546  will cause the output to contain only the 
18547 \family sans
18548 Slide
18549 \family default
18550 s and 
18551 \family sans
18552 Overlay
18553 \family default
18554 s.
18555  Correspondingly, the command 
18556 \begin_inset Quotes eld
18557 \end_inset
18558
18559
18560 \family typewriter
18561
18562 \backslash
18563 onlynotes{
18564 \backslash
18565 notes}
18566 \family default
18567
18568 \begin_inset Quotes erd
18569 \end_inset
18570
18571  prevents the output of anything but 
18572 \family sans
18573 Note
18574 \family default
18575 s.
18576  I'd advise placing both commands in the preamble and initially comment
18577  both out.
18578  You can then preview your entire presentation as you write.
18579  When you're done writing, you can then uncomment one of the two to select
18580  what you want to print.
18581  I like to uncomment 
18582 \begin_inset Quotes eld
18583 \end_inset
18584
18585
18586 \family typewriter
18587
18588 \backslash
18589 onlyslides{
18590 \backslash
18591 slides}
18592 \family default
18593
18594 \begin_inset Quotes erd
18595 \end_inset
18596
18597  , print to a file with 
18598 \begin_inset Quotes eld
18599 \end_inset
18600
18601
18602 \family typewriter
18603 -slides
18604 \family default
18605
18606 \begin_inset Quotes erd
18607 \end_inset
18608
18609  in its name, comment it back out, then uncomment 
18610 \begin_inset Quotes eld
18611 \end_inset
18612
18613
18614 \family typewriter
18615
18616 \backslash
18617 onlynotes{
18618 \backslash
18619 notes}
18620 \family default
18621
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625  and print to a 
18626 \begin_inset Quotes eld
18627 \end_inset
18628
18629
18630 \family typewriter
18631 *-notes.ps
18632 \family default
18633
18634 \begin_inset Quotes erd
18635 \end_inset
18636
18637  file.
18638  I can then send either file to a printer, loading transparencies or plain
18639  paper as appropriate.
18640 \end_layout
18641
18642 \begin_layout Standard
18643 You can also provide other arguments to the 
18644 \begin_inset Quotes eld
18645 \end_inset
18646
18647
18648 \family typewriter
18649
18650 \backslash
18651 onlyslides{}
18652 \family default
18653
18654 \begin_inset Quotes erd
18655 \end_inset
18656
18657  and 
18658 \begin_inset Quotes eld
18659 \end_inset
18660
18661
18662 \family typewriter
18663
18664 \backslash
18665 onlynotes{}
18666 \family default
18667
18668 \begin_inset Quotes erd
18669 \end_inset
18670
18671  commands.
18672  See a good \SpecialChar LaTeX
18673  book for details.
18674 \end_layout
18675
18676 \begin_layout Subsection
18677 The 
18678 \family sans
18679 slides
18680 \family default
18681  Class Template File
18682 \end_layout
18683
18684 \begin_layout Standard
18685 I have also provided a template file, 
18686 \begin_inset Quotes eld
18687 \end_inset
18688
18689
18690 \family typewriter
18691 slides.lyx
18692 \family default
18693
18694 \begin_inset Quotes erd
18695 \end_inset
18696
18697 , with the 
18698 \family sans
18699 slides
18700 \family default
18701  class.
18702  To use it, begin your new presentation with 
18703 \family sans
18704 File\SpecialChar menuseparator
18705 New
18706 \begin_inset space ~
18707 \end_inset
18708
18709 from
18710 \begin_inset space ~
18711 \end_inset
18712
18713 Template
18714 \family default
18715 .
18716  Your new \SpecialChar LyX
18717  presentation file will contain an example 
18718 \family sans
18719 Slide
18720 \family default
18721  – 
18722 \family sans
18723 Overlay
18724 \family default
18725  – 
18726 \family sans
18727 Note
18728 \family default
18729  triplet.
18730  The 
18731 \family sans
18732 Slide
18733 \family default
18734  and 
18735 \family sans
18736 Overlay
18737 \family default
18738  additionally contain an example of the use of 
18739 \family sans
18740 InvisibleText
18741 \family default
18742  and 
18743 \family sans
18744 VisibleText
18745 \family default
18746 .
18747  Lastly, the preamble will contain:
18748 \end_layout
18749
18750 \begin_layout LyX-Code
18751 % Uncomment to print out only slides and overlays
18752 \end_layout
18753
18754 \begin_layout LyX-Code
18755 %
18756 \end_layout
18757
18758 \begin_layout LyX-Code
18759 %
18760 \backslash
18761 onlyslides{
18762 \backslash
18763 slides}
18764 \begin_inset Newline newline
18765 \end_inset
18766
18767  
18768 \end_layout
18769
18770 \begin_layout LyX-Code
18771 % Uncomment to print out only notes
18772 \end_layout
18773
18774 \begin_layout LyX-Code
18775 %
18776 \end_layout
18777
18778 \begin_layout LyX-Code
18779 %
18780 \backslash
18781 onlynotes{
18782 \backslash
18783 notes}
18784 \end_layout
18785
18786 \begin_layout Standard
18787 One final thing: I created this class to support the \SpecialChar LaTeX2e
18788  
18789 \begin_inset Quotes eld
18790 \end_inset
18791
18792
18793 \noun on
18794 Sli\SpecialChar TeX
18795
18796 \noun default
18797  emulation
18798 \begin_inset Quotes erd
18799 \end_inset
18800
18801  class, one of the built-in \SpecialChar LaTeX2e
18802  classes.
18803  Neither I nor the rest of the \SpecialChar LyX
18804  Team endorse or oppose the use of this built-in
18805  slide class.
18806  It's here if you want it or need it.
18807  There exist other \SpecialChar LaTeX2e
18808  classes for creating presentations, such as the 
18809 \family sans
18810 Foils
18811 \family default
18812  class [see section
18813 \begin_inset space ~
18814 \end_inset
18815
18816
18817 \begin_inset CommandInset ref
18818 LatexCommand ref
18819 reference "sec:foiltex"
18820
18821 \end_inset
18822
18823 ] or the 
18824 \begin_inset Quotes eld
18825 \end_inset
18826
18827
18828 \family typewriter
18829 seminar
18830 \family default
18831
18832 \begin_inset Quotes erd
18833 \end_inset
18834
18835  package [present on some \SpecialChar TeX
18836  distributions].
18837  The latter is not yet supported under \SpecialChar LyX
18838 .
18839 \begin_inset Foot
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 Perhaps you can take on the task\SpecialChar ldots
18844
18845 \end_layout
18846
18847 \end_inset
18848
18849  I know nothing about these other classes.
18850  Try them out to see what sort of alternative they provide.
18851 \end_layout
18852
18853 \begin_layout Chapter
18854 \SpecialChar LyX
18855  Features needing Extra Software
18856 \end_layout
18857
18858 \begin_layout Section
18859 Checking \SpecialChar TeX
18860
18861 \end_layout
18862
18863 \begin_layout Standard
18864 by 
18865 \noun on
18866 Asger Alstrup
18867 \end_layout
18868
18869 \begin_layout Subsection
18870 Introduction
18871 \end_layout
18872
18873 \begin_layout Standard
18874 If you have the 
18875 \family typewriter
18876 chktex
18877 \family default
18878  program installed
18879 \begin_inset Foot
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883
18884 \family typewriter
18885 chktex
18886 \family default
18887  is not yet available when you are using the \SpecialChar LaTeX
18888  distribution MiK\SpecialChar TeX
18889 .
18890 \end_layout
18891
18892 \end_inset
18893
18894 , you'll find in the 
18895 \family sans
18896 Tools
18897 \family default
18898  menu the entry: 
18899 \family sans
18900 Check
18901 \begin_inset space ~
18902 \end_inset
18903
18904 TeX
18905 \family default
18906 .
18907  You can get 
18908 \family typewriter
18909 chktex
18910 \family default
18911  from CTAN,
18912 \begin_inset Newline newline
18913 \end_inset
18914
18915
18916 \begin_inset CommandInset href
18917 LatexCommand href
18918 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18919 literal "false"
18920
18921 \end_inset
18922
18923 .
18924 \end_layout
18925
18926 \begin_layout Standard
18927 The 
18928 \family sans
18929 Chk\SpecialChar TeX
18930
18931 \family default
18932  package is a program that was written by 
18933 \begin_inset Flex Noun
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 Jens T.
18938 \begin_inset space ~
18939 \end_inset
18940
18941 Berger Thielemann
18942 \end_layout
18943
18944 \end_inset
18945
18946  in frustration because some constructs in \SpecialChar LaTeX
18947  are sometimes non-intuitive,
18948  and easy to forget.
18949  The program runs over your \SpecialChar LaTeX
18950  file, checks the integrity of the file, and
18951  flags some common errors.
18952  In other technical words, it is 
18953 \family typewriter
18954 lint
18955 \family default
18956  for \SpecialChar LaTeX
18957 .
18958 \end_layout
18959
18960 \begin_layout Standard
18961 Well, what is a syntax checker doing in \SpecialChar LyX
18962  which is supposed to produce correct
18963  \SpecialChar LaTeX
18964  anyways? The answer is simple: Just as 
18965 \family typewriter
18966 Lint
18967 \family default
18968  not only checks the 
18969 \emph on
18970 syntax
18971 \emph default
18972  of C programs, but also does 
18973 \emph on
18974 semantic
18975 \emph default
18976  checks for type-errors, 
18977 \family sans
18978 Chk\SpecialChar TeX
18979
18980 \family default
18981  catches some common 
18982 \emph on
18983 typographic
18984 \emph default
18985  errors, in addition to the syntactical ones.
18986  Specifically, 
18987 \family sans
18988 Chk\SpecialChar TeX
18989
18990 \family default
18991  is capable of detecting several common errors, such as
18992 \end_layout
18993
18994 \begin_layout Itemize
18995 Ellipsis detection:
18996 \begin_inset Newline newline
18997 \end_inset
18998
18999 Use \SpecialChar ldots
19000  instead of ...
19001 \end_layout
19002
19003 \begin_layout Itemize
19004 No space in front of/after parenthesis:
19005 \begin_inset Newline newline
19006 \end_inset
19007
19008 ( wrong spacing )
19009 \end_layout
19010
19011 \begin_layout Itemize
19012 Enforcement of normal space after common abbreviations:
19013 \begin_inset Newline newline
19014 \end_inset
19015
19016 e.
19017 \begin_inset space \thinspace{}
19018 \end_inset
19019
19020 g.
19021 \begin_inset space \space{}
19022 \end_inset
19023
19024 is too wide spacing.
19025 \end_layout
19026
19027 \begin_layout Itemize
19028 Enforcement of end-of-sentence space when the last sentence ends with a
19029  capital letter:
19030 \begin_inset Newline newline
19031 \end_inset
19032
19033 This is a TEST.
19034  And this is wrong spacing.
19035 \end_layout
19036
19037 \begin_layout Itemize
19038 Space in front of labels and similar commands:
19039 \begin_inset Newline newline
19040 \end_inset
19041
19042 The label should stick right up to the text to avoid falling to a wrong
19043  page.
19044  
19045 \begin_inset CommandInset label
19046 LatexCommand label
19047 name "sec:chktex"
19048
19049 \end_inset
19050
19051  
19052 \begin_inset Foot
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 This footnote is in danger of falling off to a wrong page
19057 \end_layout
19058
19059 \end_inset
19060
19061  The label is separated too much.
19062 \end_layout
19063
19064 \begin_layout Itemize
19065 Space in front of references, instead of hard spaces:
19066 \begin_inset Newline newline
19067 \end_inset
19068
19069 If you have bad luck, the text will break right between the referenced text
19070  and reference number, and that's a pity.
19071  See section 
19072 \begin_inset CommandInset ref
19073 LatexCommand ref
19074 reference "sec:chktex"
19075
19076 \end_inset
19077
19078 .
19079 \end_layout
19080
19081 \begin_layout Itemize
19082 Use of 
19083 \begin_inset Quotes eld
19084 \end_inset
19085
19086 x
19087 \begin_inset Quotes erd
19088 \end_inset
19089
19090  instead of 
19091 \begin_inset Formula $\times$
19092 \end_inset
19093
19094  between numbers:
19095 \begin_inset Newline newline
19096 \end_inset
19097
19098 2x2 looks cheap compared to 
19099 \begin_inset Formula $2\times2$
19100 \end_inset
19101
19102 .
19103 \end_layout
19104
19105 \begin_layout Standard
19106 and more \SpecialChar ldots
19107  It is an invaluable tool when you are 
19108 \begin_inset Quotes eld
19109 \end_inset
19110
19111 finishing up
19112 \begin_inset Quotes erd
19113 \end_inset
19114
19115  your document before printing, and you should run it right after the obligatory
19116  spelling check, and before you go fine tuning the typesetting.
19117 \end_layout
19118
19119 \begin_layout Subsection
19120 How to use it
19121 \end_layout
19122
19123 \begin_layout Standard
19124 If you have the program installed, usage is as simple as choosing 
19125 \family sans
19126 Tools\SpecialChar menuseparator
19127 Check
19128 \begin_inset space ~
19129 \end_inset
19130
19131 TeX
19132 \family default
19133 .
19134  This will make \SpecialChar LyX
19135  generate a \SpecialChar LaTeX
19136  file of your document, start 
19137 \family sans
19138 Chk\SpecialChar TeX
19139
19140 \family default
19141  to check it, and then make \SpecialChar LyX
19142  insert 
19143 \begin_inset Quotes eld
19144 \end_inset
19145
19146 error boxes
19147 \begin_inset Quotes erd
19148 \end_inset
19149
19150  with the warnings from 
19151 \family sans
19152 Chk\SpecialChar TeX
19153
19154 \family default
19155 , if there were any.
19156  The warnings will be placed close to the point of the mistake, and you
19157  can quickly find them by using the 
19158 \family sans
19159 Navigate\SpecialChar menuseparator
19160 Error
19161 \family default
19162  menu item, or the shortcut key 
19163 \family sans
19164 C-g
19165 \family default
19166  from the default 
19167 \family typewriter
19168 cua
19169 \family default
19170  bind file.
19171  Open the error boxes by clicking on them with the mouse, or use the shortcut
19172  key 
19173 \family sans
19174 C-i
19175 \family default
19176  from 
19177 \family typewriter
19178 cua
19179 \family default
19180  bindings, or the corresponding 
19181 \family sans
19182 C-o
19183 \family default
19184  for the alternate 
19185 \family typewriter
19186 emacs
19187 \family default
19188  bind file.
19189  Read the warning and correct the mistake, if it is a mistake.
19190  If you have trouble understanding what the warning is about, you can safely
19191  ignore it.
19192  Remember that there is a hidden layer between the document on screen and
19193  the technical details in invoking 
19194 \family sans
19195 Chk\SpecialChar TeX
19196
19197 \family default
19198 , and this gap can make some warnings seem arcane or just plain silly.
19199 \end_layout
19200
19201 \begin_layout Standard
19202 This document is an excellent testing bed for the feature, and it should
19203  provide quite a few warnings for you to fiddle with.
19204  Since computers are only so smart, expect most of the warnings to be false
19205  alarms, though.
19206 \end_layout
19207
19208 \begin_layout Subsection
19209 How to fine tune it
19210 \end_layout
19211
19212 \begin_layout Standard
19213 Sometimes, you'll find that 
19214 \family sans
19215 Chk\SpecialChar TeX
19216
19217 \family default
19218  makes more noise than suits your mood.
19219  Then you can choose not to use it, wait until your mood changes, or try
19220  to customize 
19221 \family sans
19222 Chk\SpecialChar TeX
19223
19224 \family default
19225  to get better along with you.
19226 \end_layout
19227
19228 \begin_layout Standard
19229 Although 
19230 \family sans
19231 Chk\SpecialChar TeX
19232
19233 \family default
19234  
19235 \emph on
19236 is
19237 \emph default
19238  very configurable and extensible, you should not expect to solve all problems
19239  with 
19240 \family sans
19241 Chk\SpecialChar TeX
19242
19243 \family default
19244  in \SpecialChar LyX
19245  this way.
19246  Since \SpecialChar LyX
19247  has to generate a somewhat special \SpecialChar LaTeX
19248  file to be able to match the
19249  line numbers from the 
19250 \family sans
19251 Chk\SpecialChar TeX
19252
19253 \family default
19254  output
19255 \begin_inset Foot
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 You can inspect the specific output from 
19260 \family sans
19261 chktex
19262 \family default
19263  by using 
19264 \family sans
19265 Document\SpecialChar menuseparator
19266 \SpecialChar LaTeX
19267
19268 \begin_inset space ~
19269 \end_inset
19270
19271 Log
19272 \family default
19273  right after a 
19274 \family sans
19275 chktex
19276 \family default
19277  run.
19278 \end_layout
19279
19280 \end_inset
19281
19282  to the internal document structure, some of the warnings will not appear
19283  correctly.
19284  There are two things you can do about this:
19285 \end_layout
19286
19287 \begin_layout Itemize
19288 Fine tune the 
19289 \family sans
19290 Chk\SpecialChar TeX
19291
19292 \family default
19293  invocation command line in 
19294 \begin_inset Flex Noun
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 Tools\SpecialChar menuseparator
19299 Preferences\SpecialChar menuseparator
19300 Output\SpecialChar menuseparator
19301 LaTeX\SpecialChar menuseparator
19302 CheckTeX command
19303 \end_layout
19304
19305 \end_inset
19306
19307 , or the global 
19308 \family sans
19309 Chk\SpecialChar TeX
19310
19311 \family default
19312  installation configuration file (usually with the file 
19313 \family typewriter
19314 chktexrc
19315 \family default
19316 ).
19317  See below to learn what warnings can be enabled and disabled on the command
19318  line.
19319 \end_layout
19320
19321 \begin_layout Itemize
19322 Export your document as a raw \SpecialChar LaTeX
19323  file using 
19324 \family sans
19325 File\SpecialChar menuseparator
19326 Export\SpecialChar menuseparator
19327 \SpecialChar LaTeX
19328
19329 \family default
19330  and run 
19331 \family typewriter
19332 chktex
19333 \family default
19334  manually on that.
19335  Invoked in this way, it can be a hassle to find the corresponding place
19336  in the document inside \SpecialChar LyX
19337 , but with a little patience, you should be able
19338  to do it.
19339 \end_layout
19340
19341 \begin_layout Standard
19342 Here follows the warning messages that can be enabled and disabled in 
19343 \family sans
19344 Preferences
19345 \family default
19346 .
19347  Use 
19348 \family typewriter
19349 -n#
19350 \family default
19351  to disable a warning, and 
19352 \family typewriter
19353 -w#
19354 \family default
19355  to enable a warning.
19356  The emphasized entries are disabled by default, because the default is
19357  "
19358 \family typewriter
19359 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19360 \family default
19361 ".
19362 \end_layout
19363
19364 \begin_layout Standard
19365 Notice that you should only use the options that enable and disable warnings,
19366  because \SpecialChar LyX
19367  relies on some of the other command line parameters to be set
19368  in a specific way to have a chance to communicate with 
19369 \family typewriter
19370 chktex
19371 \family default
19372 .
19373 \end_layout
19374
19375 \begin_layout Enumerate
19376
19377 \size small
19378 \emph on
19379 Command terminated with space.
19380 \end_layout
19381
19382 \begin_layout Enumerate
19383
19384 \size small
19385 Non-breaking space (
19386 \begin_inset Quotes eld
19387 \end_inset
19388
19389
19390 \family typewriter
19391 ~
19392 \family default
19393
19394 \begin_inset Quotes erd
19395 \end_inset
19396
19397 ) should have been used.
19398 \end_layout
19399
19400 \begin_layout Enumerate
19401
19402 \size small
19403 \emph on
19404 You should enclose the previous parenthesis with 
19405 \begin_inset Quotes eld
19406 \end_inset
19407
19408
19409 \family typewriter
19410 {}
19411 \family default
19412
19413 \begin_inset Quotes erd
19414 \end_inset
19415
19416 .
19417 \end_layout
19418
19419 \begin_layout Enumerate
19420
19421 \size small
19422 Italic correction (
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426
19427 \family typewriter
19428
19429 \backslash
19430 /
19431 \family default
19432
19433 \begin_inset Quotes erd
19434 \end_inset
19435
19436 ) found in non-italic buffer.
19437 \end_layout
19438
19439 \begin_layout Enumerate
19440
19441 \size small
19442 Italic correction (
19443 \begin_inset Quotes eld
19444 \end_inset
19445
19446
19447 \family typewriter
19448
19449 \backslash
19450 /
19451 \family default
19452
19453 \begin_inset Quotes erd
19454 \end_inset
19455
19456 ) found more than once.
19457 \end_layout
19458
19459 \begin_layout Enumerate
19460
19461 \size small
19462 \emph on
19463 No italic correction (
19464 \begin_inset Quotes eld
19465 \end_inset
19466
19467
19468 \family typewriter
19469
19470 \backslash
19471 /
19472 \family default
19473
19474 \begin_inset Quotes erd
19475 \end_inset
19476
19477 ) found.
19478 \end_layout
19479
19480 \begin_layout Enumerate
19481
19482 \size small
19483 Accent command 
19484 \begin_inset Quotes eld
19485 \end_inset
19486
19487
19488 \family typewriter
19489 cmd
19490 \family default
19491
19492 \begin_inset Quotes erd
19493 \end_inset
19494
19495  needs use of 
19496 \begin_inset Quotes eld
19497 \end_inset
19498
19499
19500 \family typewriter
19501 cmd
19502 \family default
19503
19504 \begin_inset Quotes erd
19505 \end_inset
19506
19507 .
19508 \end_layout
19509
19510 \begin_layout Enumerate
19511
19512 \size small
19513 Wrong length of dash may have been used.
19514 \end_layout
19515
19516 \begin_layout Enumerate
19517
19518 \size small
19519 \emph on
19520 \begin_inset Quotes eld
19521 \end_inset
19522
19523
19524 \family typewriter
19525 %s
19526 \family default
19527
19528 \begin_inset Quotes erd
19529 \end_inset
19530
19531  expected, found 
19532 \begin_inset Quotes eld
19533 \end_inset
19534
19535
19536 \family typewriter
19537 %s
19538 \family default
19539
19540 \begin_inset Quotes erd
19541 \end_inset
19542
19543 .
19544 \end_layout
19545
19546 \begin_layout Enumerate
19547
19548 \size small
19549 Solo 
19550 \begin_inset Quotes eld
19551 \end_inset
19552
19553
19554 \family typewriter
19555 %s
19556 \family default
19557
19558 \begin_inset Quotes erd
19559 \end_inset
19560
19561  found.
19562 \end_layout
19563
19564 \begin_layout Enumerate
19565
19566 \size small
19567 You should use 
19568 \begin_inset Quotes eld
19569 \end_inset
19570
19571
19572 \family typewriter
19573 %s
19574 \family default
19575
19576 \begin_inset Quotes erd
19577 \end_inset
19578
19579  to achieve an ellipsis.
19580 \end_layout
19581
19582 \begin_layout Enumerate
19583
19584 \size small
19585 Inter-word spacing (
19586 \begin_inset Quotes eld
19587 \end_inset
19588
19589
19590 \family typewriter
19591
19592 \backslash
19593
19594 \family default
19595  
19596 \begin_inset Quotes eld
19597 \end_inset
19598
19599 ) should perhaps be used.
19600 \end_layout
19601
19602 \begin_layout Enumerate
19603
19604 \size small
19605 Inter-sentence spacing (
19606 \begin_inset Quotes eld
19607 \end_inset
19608
19609
19610 \family typewriter
19611
19612 \backslash
19613 @
19614 \family default
19615
19616 \begin_inset Quotes erd
19617 \end_inset
19618
19619 ) should perhaps be used.
19620 \end_layout
19621
19622 \begin_layout Enumerate
19623
19624 \size small
19625 Could not find argument for command.
19626 \end_layout
19627
19628 \begin_layout Enumerate
19629
19630 \size small
19631 No match found for 
19632 \begin_inset Quotes eld
19633 \end_inset
19634
19635
19636 \family typewriter
19637 %s
19638 \family default
19639
19640 \begin_inset Quotes erd
19641 \end_inset
19642
19643 .
19644 \end_layout
19645
19646 \begin_layout Enumerate
19647
19648 \size small
19649 Math mode still on at end of \SpecialChar LaTeX
19650  file.
19651 \end_layout
19652
19653 \begin_layout Enumerate
19654
19655 \size small
19656 Number of 
19657 \begin_inset Quotes eld
19658 \end_inset
19659
19660
19661 \family typewriter
19662 char
19663 \family default
19664
19665 \begin_inset Quotes erd
19666 \end_inset
19667
19668  doesn't match the number of 
19669 \begin_inset Quotes eld
19670 \end_inset
19671
19672
19673 \family typewriter
19674 char
19675 \family default
19676
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680 .
19681 \end_layout
19682
19683 \begin_layout Enumerate
19684
19685 \size small
19686 You should use either 
19687 \family typewriter
19688
19689 \begin_inset Quotes eld
19690 \end_inset
19691
19692
19693 \family default
19694  or 
19695 \family typewriter
19696
19697 \begin_inset Quotes erd
19698 \end_inset
19699
19700
19701 \family default
19702  as an alternative to 
19703 \begin_inset Quotes eld
19704 \end_inset
19705
19706
19707 \family typewriter
19708 "
19709 \family default
19710
19711 \begin_inset Quotes erd
19712 \end_inset
19713
19714 .
19715 \end_layout
19716
19717 \begin_layout Enumerate
19718
19719 \size small
19720 You should use "
19721 \family typewriter
19722 '
19723 \family default
19724 " (ASCII 39) instead of "
19725 \family typewriter
19726 ´
19727 \family default
19728 " (ASCII 180).
19729 \end_layout
19730
19731 \begin_layout Enumerate
19732
19733 \size small
19734 User-specified pattern found.
19735 \end_layout
19736
19737 \begin_layout Enumerate
19738
19739 \size small
19740 This command might not be intended.
19741 \end_layout
19742
19743 \begin_layout Enumerate
19744
19745 \size small
19746 \emph on
19747 Comment displayed.
19748 \end_layout
19749
19750 \begin_layout Enumerate
19751
19752 \size small
19753 Either 
19754 \family typewriter
19755 ''
19756 \backslash
19757 ,'
19758 \family default
19759  or 
19760 \family typewriter
19761 '
19762 \backslash
19763 ,''
19764 \family default
19765  will look better.
19766 \end_layout
19767
19768 \begin_layout Enumerate
19769
19770 \size small
19771 Delete this space to maintain correct page references.
19772 \end_layout
19773
19774 \begin_layout Enumerate
19775
19776 \size small
19777 \emph on
19778 You might wish to put this between a pair of 
19779 \begin_inset Quotes eld
19780 \end_inset
19781
19782
19783 \family typewriter
19784 {}
19785 \family default
19786
19787 \begin_inset Quotes erd
19788 \end_inset
19789
19790 .
19791 \end_layout
19792
19793 \begin_layout Enumerate
19794
19795 \size small
19796 You ought to remove spaces in front of punctuation.
19797 \end_layout
19798
19799 \begin_layout Enumerate
19800
19801 \size small
19802 Could not execute \SpecialChar LaTeX
19803  command.
19804 \end_layout
19805
19806 \begin_layout Enumerate
19807
19808 \size small
19809 Don't use 
19810 \family typewriter
19811
19812 \backslash
19813 /
19814 \family default
19815  in front of small punctuation.
19816 \end_layout
19817
19818 \begin_layout Enumerate
19819
19820 \family typewriter
19821 \size small
19822 $
19823 \backslash
19824 times$
19825 \family default
19826  may look prettier here.
19827 \end_layout
19828
19829 \begin_layout Enumerate
19830
19831 \size small
19832 \emph on
19833 Multiple spaces detected in output.
19834 \end_layout
19835
19836 \begin_layout Enumerate
19837
19838 \size small
19839 This text may be ignored.
19840 \end_layout
19841
19842 \begin_layout Enumerate
19843
19844 \size small
19845 Use 
19846 \family typewriter
19847
19848 \begin_inset Quotes eld
19849 \end_inset
19850
19851
19852 \family default
19853  to begin quotation, not 
19854 \family typewriter
19855 '
19856 \family default
19857 .
19858 \end_layout
19859
19860 \begin_layout Enumerate
19861
19862 \size small
19863 Use 
19864 \family typewriter
19865 '
19866 \family default
19867  to end quotation, not 
19868 \family typewriter
19869
19870 \begin_inset Quotes eld
19871 \end_inset
19872
19873
19874 \family default
19875 .
19876 \end_layout
19877
19878 \begin_layout Enumerate
19879
19880 \size small
19881 Don't mix quotes.
19882 \end_layout
19883
19884 \begin_layout Enumerate
19885
19886 \size small
19887 You should perhaps use 
19888 \begin_inset Quotes eld
19889 \end_inset
19890
19891
19892 \family typewriter
19893 cmd
19894 \family default
19895
19896 \begin_inset Quotes erd
19897 \end_inset
19898
19899  instead.
19900 \end_layout
19901
19902 \begin_layout Enumerate
19903
19904 \size small
19905 You should put a space in front of/after parenthesis.
19906 \end_layout
19907
19908 \begin_layout Enumerate
19909
19910 \size small
19911 You should avoid spaces in front of/after parenthesis.
19912 \end_layout
19913
19914 \begin_layout Enumerate
19915
19916 \size small
19917 \emph on
19918 You should not use punctuation in front of/after quotes.
19919 \end_layout
19920
19921 \begin_layout Enumerate
19922
19923 \size small
19924 Double space found.
19925 \end_layout
19926
19927 \begin_layout Enumerate
19928
19929 \size small
19930 You should put punctuation outside inner/inside display math mode.
19931 \end_layout
19932
19933 \begin_layout Enumerate
19934
19935 \size small
19936 You ought to not use primitive \SpecialChar TeX
19937  in \SpecialChar LaTeX
19938  code.
19939 \end_layout
19940
19941 \begin_layout Enumerate
19942
19943 \size small
19944 You should remove spaces in front of 
19945 \begin_inset Quotes eld
19946 \end_inset
19947
19948
19949 \family typewriter
19950 %s
19951 \family default
19952
19953 \begin_inset Quotes erd
19954 \end_inset
19955
19956
19957 \end_layout
19958
19959 \begin_layout Enumerate
19960
19961 \size small
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967 %s
19968 \family default
19969
19970 \begin_inset Quotes erd
19971 \end_inset
19972
19973  is normally not followed by 
19974 \begin_inset Quotes eld
19975 \end_inset
19976
19977
19978 \family typewriter
19979 %c
19980 \family default
19981
19982 \begin_inset Quotes erd
19983 \end_inset
19984
19985 .
19986 \end_layout
19987
19988 \begin_layout Standard
19989 In later versions of \SpecialChar LyX
19990 , we hope to provide a more complete interface to this
19991  tool (and it's smaller cousin 
19992 \family typewriter
19993 lacheck
19994 \family default
19995 ) to exploit the full power of it.
19996  But it's not exactly useless as it is now: go try it on one of your existing
19997  documents of a certain length and be surprised.
19998 \end_layout
19999
20000 \begin_layout Section
20001 Version Control in \SpecialChar LyX
20002
20003 \end_layout
20004
20005 \begin_layout Standard
20006 by
20007 \noun on
20008  Lars Gullik Bjønnes 
20009 \noun default
20010 and 
20011 \noun on
20012 Pavel Sanda
20013 \end_layout
20014
20015 \begin_layout Subsection
20016 Introduction
20017 \end_layout
20018
20019 \begin_layout Standard
20020 \SpecialChar LyX
20021  supports some of the most basic RCS/CVS/SVN/GIT commands.
20022  If you need something a bit more sophisticated you will have to do that
20023  manually in a terminal.
20024 \end_layout
20025
20026 \begin_layout Standard
20027 Also note that CVS support is not as good as subversion support, so we advise
20028  using SVN instead.
20029  A good place to start learning Subversion is the SVN Book
20030 \begin_inset Foot
20031 status collapsed
20032
20033 \begin_layout Plain Layout
20034 \begin_inset CommandInset href
20035 LatexCommand href
20036 target "http://svnbook.red-bean.com/"
20037 literal "false"
20038
20039 \end_inset
20040
20041
20042 \end_layout
20043
20044 \end_inset
20045
20046 .
20047  In the case of RCS you should read 
20048 \begin_inset Quotes eld
20049 \end_inset
20050
20051 rcsintro
20052 \begin_inset Quotes erd
20053 \end_inset
20054
20055  (a man file, read it with 
20056 \family typewriter
20057 man rcsintro
20058 \family default
20059 ).
20060  This file describes all the basic features of RCS.
20061  You should especially notice the comment about a RCS directory, and the
20062  notion of a master RCS file (the file ending in 
20063 \family typewriter
20064 ,v
20065 \family default
20066 ).
20067 \end_layout
20068
20069 \begin_layout Standard
20070 Before you begin to use the version control features in \SpecialChar LyX
20071 , you should be
20072  familiar with RCS/CVS/SVN/GIT usage.
20073  The implementation in \SpecialChar LyX
20074  assumes a recent version of the GNU RCS or CVS/SVN
20075  package — no guarantees are made for older versions.
20076  Most of the log messages are not currently displayed after operations —
20077  you can check them in the Messages pane if you are unsure.
20078  Regular users of version control will appreciate the VC toolbar, which
20079  can be enabled via 
20080 \family sans
20081 View\SpecialChar menuseparator
20082 Toolbars\SpecialChar menuseparator
20083 Version
20084 \begin_inset space ~
20085 \end_inset
20086
20087 Control
20088 \family default
20089 .
20090 \end_layout
20091
20092 \begin_layout Standard
20093 For introducing your own external commands consult 
20094 \begin_inset Flex Code
20095 status collapsed
20096
20097 \begin_layout Plain Layout
20098 vc-command
20099 \end_layout
20100
20101 \end_inset
20102
20103  in the manual 
20104 \emph on
20105 \SpecialChar LyX
20106  Functions
20107 \emph default
20108 .
20109 \end_layout
20110
20111 \begin_layout Standard
20112 It is strongly recommended to store documents in uncompressed format if
20113  using version control (uncheck 
20114 \family sans
20115 Document\SpecialChar menuseparator
20116 Compressed
20117 \family default
20118  if it is checked): Uncompressed LyX documents are text files and therefore
20119  for merging two different versions by version control systems.
20120  Compressed LyX documents are binary files, which cannot be merged by version
20121  control systems.
20122 \end_layout
20123
20124 \begin_layout Subsection
20125 RCS commands in \SpecialChar LyX
20126
20127 \end_layout
20128
20129 \begin_layout Standard
20130 The following sections describe the RCS commands supported by \SpecialChar LyX
20131 .
20132  You can find them in the 
20133 \family sans
20134 File\SpecialChar menuseparator
20135 Version
20136 \begin_inset space ~
20137 \end_inset
20138
20139 Control
20140 \family default
20141  submenu.
20142  \SpecialChar LyX
20143  was tested against RCS 5.7/5.8.
20144 \end_layout
20145
20146 \begin_layout Subsubsection
20147
20148 \family sans
20149 Register
20150 \end_layout
20151
20152 \begin_layout Standard
20153 If your document is not under revision control, this is the only item shown
20154  in the menu.
20155  And if it is under revision control, the 
20156 \family sans
20157 Register
20158 \family default
20159  item is not visible.
20160  
20161 \end_layout
20162
20163 \begin_layout Standard
20164 This command registers your document with RCS (unless you are under the
20165  directory managed by CVS)\SpecialChar endofsentence
20166  You are asked interactively to supply an initial
20167  description of the document.
20168  The document is now set in Read-Only mode and you have to 
20169 \family sans
20170 Check
20171 \begin_inset space ~
20172 \end_inset
20173
20174 Out
20175 \begin_inset space ~
20176 \end_inset
20177
20178 For
20179 \begin_inset space ~
20180 \end_inset
20181
20182 Edit
20183 \family default
20184 , before making any changes to it.
20185  A document under revision control has a 
20186 \begin_inset Quotes eld
20187 \end_inset
20188
20189 [RCS:<version> <locker>]
20190 \begin_inset Quotes erd
20191 \end_inset
20192
20193  item tagged to the filename in the minibuffer.
20194 \end_layout
20195
20196 \begin_layout Standard
20197 RCS command that is run:
20198 \end_layout
20199
20200 \begin_layout LyX-Code
20201
20202 \family typewriter
20203 ci -q -u -i -t-"<initial description>" <file-name>
20204 \end_layout
20205
20206 \begin_layout Standard
20207 Read 
20208 \family typewriter
20209 man ci
20210 \family default
20211  to understand the switches.
20212  
20213 \end_layout
20214
20215 \begin_layout Subsubsection
20216
20217 \family sans
20218 Check In Changes
20219 \end_layout
20220
20221 \begin_layout Standard
20222 When you are finished editing a file, you check in your changes.
20223  When you do this, you are asked for a description of the changes.
20224  This is stored in the history log.
20225  The version number is bumped, your changes are applied to the master RCS
20226  file, the document is unlocked and set to Read-Only mode.
20227 \end_layout
20228
20229 \begin_layout Itemize
20230 RCS command: 
20231 \family typewriter
20232 ci -q -u -m"<description>" <file-name>
20233 \end_layout
20234
20235 \begin_layout Subsubsection
20236
20237 \family sans
20238 Check Out For Edit
20239 \end_layout
20240
20241 \begin_layout Standard
20242 By doing this you lock the document so that only you can edit it.
20243  This will also make the document Read-Write only for you.
20244  You will usually continue editing for a while and when you are finished
20245  you check in your changes.
20246  The status line is changed to reflect that you have locked the file.
20247 \end_layout
20248
20249 \begin_layout Itemize
20250 RCS command: 
20251 \family typewriter
20252 co -q -l <file-name>
20253 \end_layout
20254
20255 \begin_layout Subsubsection
20256
20257 \family sans
20258 Revert To Repository Version
20259 \end_layout
20260
20261 \begin_layout Standard
20262 This will discard all changes made to the document since the last check
20263  in.
20264  You get a warning before changes are discarded.
20265 \end_layout
20266
20267 \begin_layout Itemize
20268 RCS command: 
20269 \family typewriter
20270 co -f -u<version> <file-name>
20271 \end_layout
20272
20273 \begin_layout Subsubsection
20274
20275 \family sans
20276 Copy
20277 \end_layout
20278
20279 \begin_layout Standard
20280 This will create a copy of the current document.
20281  Since RCS does not support copy operations natively, the version history
20282  is not preserved, and the copy is added as a new file.
20283  It requires a clean document without any changes since the last checkin.
20284  You are asked for a file name and a description of the copy operation.
20285  After that the copy is created, both locally and in the repository.
20286  If the parent directories of the copied and original document differ, all
20287  relative paths of included files of the copy are adjusted (like in 
20288 \family sans
20289 File\SpecialChar menuseparator
20290 Save As
20291 \family default
20292 \SpecialChar ldots
20293 ).
20294  Finally, the copy is loaded instead of the original document.
20295 \end_layout
20296
20297 \begin_layout Labeling
20298 \labelwidthstring 00.00.0000
20299 RCS
20300 \begin_inset space ~
20301 \end_inset
20302
20303 commands: 
20304 \begin_inset space ~
20305 \end_inset
20306
20307
20308 \begin_inset Newline newline
20309 \end_inset
20310
20311 Copy 
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316
20317 \family typewriter
20318 \begin_inset Quotes qld
20319 \end_inset
20320
20321 <file-name>
20322 \begin_inset Quotes qld
20323 \end_inset
20324
20325
20326 \end_layout
20327
20328 \end_inset
20329
20330  to 
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335
20336 \family typewriter
20337 \begin_inset Quotes qld
20338 \end_inset
20339
20340 <new-file-name>
20341 \begin_inset Quotes qld
20342 \end_inset
20343
20344
20345 \end_layout
20346
20347 \end_inset
20348
20349
20350 \begin_inset Newline newline
20351 \end_inset
20352
20353
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 ci -q -u 
20359 \family typewriter
20360 -i 
20361 \begin_inset Quotes qld
20362 \end_inset
20363
20364 <new-file-name>
20365 \begin_inset Quotes qld
20366 \end_inset
20367
20368
20369 \end_layout
20370
20371 \end_inset
20372
20373
20374 \end_layout
20375
20376 \begin_layout Subsubsection
20377
20378 \family sans
20379 Undo Last Checkin
20380 \end_layout
20381
20382 \begin_layout Standard
20383 This makes as if the last check in never happened.
20384  No changes are made to the document loaded into \SpecialChar LyX
20385 , but the last version
20386  is removed from the master RCS file.
20387 \end_layout
20388
20389 \begin_layout Itemize
20390 RCS command: 
20391 \family typewriter
20392 rcs -o<version> <file-name>
20393 \end_layout
20394
20395 \begin_layout Subsubsection
20396
20397 \family sans
20398 Show History
20399 \end_layout
20400
20401 \begin_layout Standard
20402 This shows the complete history of the RCS document.
20403  The output of 
20404 \family typewriter
20405 rlog <file-name>
20406 \family default
20407  is shown in a browser.
20408  See 
20409 \family typewriter
20410 man rlog
20411 \family default
20412  for more info.
20413 \end_layout
20414
20415 \begin_layout Subsubsection
20416 Revision info
20417 \end_layout
20418
20419 \begin_layout Standard
20420 \SpecialChar LyX
20421  supports RCS version number, author name, date and time of last commit.
20422  All those are extracted from 
20423 \family typewriter
20424 rlog -r <file-name>
20425 \family default
20426 .
20427  See 
20428 \begin_inset CommandInset ref
20429 LatexCommand ref
20430 reference "subsec:VCS-Revision-Information"
20431
20432 \end_inset
20433
20434  for details.
20435 \end_layout
20436
20437 \begin_layout Subsection
20438 CVS commands in \SpecialChar LyX
20439
20440 \end_layout
20441
20442 \begin_layout Standard
20443 A subset of CVS operations is supported by \SpecialChar LyX
20444 .
20445  You can find the commands in the 
20446 \family sans
20447 File\SpecialChar menuseparator
20448 Version
20449 \begin_inset space ~
20450 \end_inset
20451
20452 Control
20453 \family default
20454  submenu.
20455  The version control system SVN is more powerful, so please use it instead
20456  of CVS if possible.
20457 \end_layout
20458
20459 \begin_layout Subsubsection
20460
20461 \family sans
20462 General CVS usage
20463 \end_layout
20464
20465 \begin_layout Standard
20466 If you start from scratch with CVS you have to create your repository and
20467  checkout the working copy with external tools.
20468  If you're using a client-server setup you may need to login before doing
20469  the first repository checkout.
20470 \end_layout
20471
20472 \begin_layout Standard
20473 If your documents are under revision control and others are using the same
20474  repository problems arise when different changes to the same document at
20475  the same location happen.
20476  Standard CVS repositories don't operate with a file locking mechanism.
20477  This may be surprising, but conflicts only occur if people disagree on
20478  the proper content of the same part of a document.
20479  So, if co-workers are used to communicate regularly, these conflicts occur
20480  rarely.
20481  If they don't communicate they have a fundamental problem anyway.
20482  Nevertheless some people like to work with so called 
20483 \begin_inset Quotes eld
20484 \end_inset
20485
20486 reserved checkouts
20487 \begin_inset Quotes erd
20488 \end_inset
20489
20490 .
20491  If they do so the working copy of all files is readonly when checked out
20492  first and the user starts editing after using a special command to make
20493  the working copy writable.
20494  When the changes are checked in the working copy returns to readonly state.
20495  With \SpecialChar LyX
20496  one has to edit the 
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 .cvsrc
20502 \end_layout
20503
20504 \end_inset
20505
20506  file and add the line 
20507 \begin_inset Flex Code
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 cvs -r
20512 \end_layout
20513
20514 \end_inset
20515
20516  to work with reserved checkouts.
20517  The benefit is the possibility to see who is using a writable copy of some
20518  document.
20519  It's not guaranteed only one user makes a copy writable.
20520 \end_layout
20521
20522 \begin_layout Standard
20523 \SpecialChar LyX
20524  tries to guess if you're using reserved or non-reserved checkouts.
20525  If your working copy is readonly or it is writable and an additional copy
20526  of your document exists in the CVS/Base sub-directory a reserved otherwise
20527  a non-reserved checkout is assumed.
20528  When a reserved checkout is detected you have to use 
20529 \begin_inset Flex Noun
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 Check Out
20534 \end_layout
20535
20536 \end_inset
20537
20538  to make your working copy writable if it's readonly.
20539  After doing so the 
20540 \begin_inset Flex Noun
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 Check In
20545 \end_layout
20546
20547 \end_inset
20548
20549  operation is possible and that makes your working copy readonly again after
20550  transferring your changes to the repository.
20551 \end_layout
20552
20553 \begin_layout Standard
20554 More information about CVS can be found here 
20555 \begin_inset Flex URL
20556 status collapsed
20557
20558 \begin_layout Plain Layout
20559
20560 http://www.nongnu.org/cvs
20561 \end_layout
20562
20563 \end_inset
20564
20565  and here 
20566 \begin_inset Flex URL
20567 status collapsed
20568
20569 \begin_layout Plain Layout
20570
20571 http://ximbiot.com/cvs
20572 \end_layout
20573
20574 \end_inset
20575
20576 .
20577 \end_layout
20578
20579 \begin_layout Standard
20580 Read 
20581 \family typewriter
20582 man cvs
20583 \family default
20584  to understand the sub-commands and the switches mentioned below.
20585 \end_layout
20586
20587 \begin_layout Subsubsection
20588
20589 \family sans
20590 Register
20591 \end_layout
20592
20593 \begin_layout Standard
20594 If your document is not under revision control, this is the only item shown
20595  in the menu.
20596  And if it is under revision control, the 
20597 \family sans
20598 Register
20599 \family default
20600  item is not visible.
20601  
20602 \end_layout
20603
20604 \begin_layout Standard
20605 This command registers in CVS your document 
20606 \begin_inset Flex Strong
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610
20611 \emph on
20612 only
20613 \end_layout
20614
20615 \end_inset
20616
20617  in the case you have already the documents directory under CVS control
20618  (in particular 
20619 \family typewriter
20620 CVS/Entries
20621 \family default
20622  file exists).
20623  This means you have to create or checkout the archive by yourself using
20624  external tools.
20625  (In case you forget that step \SpecialChar LyX
20626  registers the document with RCS.)
20627 \end_layout
20628
20629 \begin_layout Standard
20630 Then you are asked interactively to supply an initial description of the
20631  document.
20632  Don't forget that registered file is not yet checked in.
20633 \end_layout
20634
20635 \begin_layout Standard
20636 CVS command that is run: 
20637 \family typewriter
20638 cvs -q add -m"<entered message>" "<file-name>"
20639 \end_layout
20640
20641 \begin_layout Standard
20642 The term 
20643 \family typewriter
20644 "<file-name>"
20645 \family default
20646  above and for all other CVS commands is an abbreviation for 
20647 \begin_inset Quotes eld
20648 \end_inset
20649
20650 change the current working directory to file location and use the file name
20651  without path component as argument
20652 \begin_inset Quotes erd
20653 \end_inset
20654
20655 .
20656 \end_layout
20657
20658 \begin_layout Subsubsection
20659
20660 \family sans
20661 Check In Changes
20662 \end_layout
20663
20664 \begin_layout Standard
20665 When you are finished editing a file, you commit your changes.
20666  When you do this and you had changed the document, you are asked for a
20667  description of the changes.
20668  After that changes are written to the repository.
20669  In case you didn't change the document and a reserved checkout is detected
20670  the reservation made on 
20671 \begin_inset Flex Noun
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 Check Out
20676 \end_layout
20677
20678 \end_inset
20679
20680  is undone.
20681 \end_layout
20682
20683 \begin_layout Labeling
20684 \labelwidthstring 00.00.0000
20685 CVS
20686 \begin_inset space ~
20687 \end_inset
20688
20689 command: 
20690 \begin_inset space ~
20691 \end_inset
20692
20693
20694 \begin_inset Newline newline
20695 \end_inset
20696
20697
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 cvs 
20703 \family typewriter
20704 -q commit -m"<description>" "<file-name>"
20705 \end_layout
20706
20707 \end_inset
20708
20709  or
20710 \begin_inset Newline newline
20711 \end_inset
20712
20713
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 cvs -q unedit 
20719 \family typewriter
20720 "<file-name>"
20721 \end_layout
20722
20723 \end_inset
20724
20725
20726 \end_layout
20727
20728 \begin_layout Subsubsection
20729
20730 \family sans
20731 Check Out Changes
20732 \end_layout
20733
20734 \begin_layout Standard
20735 When you are sharing a repository with others, you may have to incorporate
20736  their changes into your working copy.
20737 \end_layout
20738
20739 \begin_layout Standard
20740 CVS command: 
20741 \family typewriter
20742 cvs -q update "<file-name>"
20743 \end_layout
20744
20745 \begin_layout Standard
20746 If a readonly checkout is detected the working copy is made writable and
20747  reserved.
20748 \end_layout
20749
20750 \begin_layout Standard
20751 CVS command: 
20752 \family typewriter
20753 cvs -q edit "<file-name>"
20754 \end_layout
20755
20756 \begin_layout Subsubsection
20757
20758 \family sans
20759 Revert To Repository Version
20760 \end_layout
20761
20762 \begin_layout Standard
20763 This will discard all changes made to the document since the last check
20764  in.
20765  You get a warning before changes are discarded.
20766  Firstly the file is deleted, secondly CVS update command is run.
20767 \end_layout
20768
20769 \begin_layout Standard
20770 CVS command: 
20771 \family typewriter
20772 cvs -q update "<file-name>"
20773 \end_layout
20774
20775 \begin_layout Standard
20776 If a reserved checkout is detected and the working copy has no changes only
20777  the reservation is undone.
20778 \end_layout
20779
20780 \begin_layout Standard
20781 CVS command: 
20782 \family typewriter
20783 cvs -q unedit "<file-name>"
20784 \end_layout
20785
20786 \begin_layout Subsubsection
20787
20788 \family sans
20789 Copy
20790 \end_layout
20791
20792 \begin_layout Standard
20793 This will create a copy of the current document.
20794  Since CVS does not support copy operations natively, the version history
20795  is not preserved, and the copy is added as a new file.
20796  It requires a clean document without any changes since the last checkin.
20797  You are asked for a file name and a description of the copy operation.
20798  After that the copy is created, both locally and in the repository.
20799  If the parent directories of the copied and original document differ, all
20800  relative paths of included files of the copy are adjusted (like in 
20801 \family sans
20802 File\SpecialChar menuseparator
20803 Save As
20804 \family default
20805 \SpecialChar ldots
20806 ).
20807  Finally, the copy is loaded instead of the original document.
20808 \end_layout
20809
20810 \begin_layout Labeling
20811 \labelwidthstring 00.00.0000
20812 CVS
20813 \begin_inset space ~
20814 \end_inset
20815
20816 commands: 
20817 \begin_inset space ~
20818 \end_inset
20819
20820
20821 \begin_inset Newline newline
20822 \end_inset
20823
20824 Copy 
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 "<file-name>"
20830 \end_layout
20831
20832 \end_inset
20833
20834  to 
20835 \begin_inset Flex Code
20836 status collapsed
20837
20838 \begin_layout Plain Layout
20839 "<new-file-name>"
20840 \end_layout
20841
20842 \end_inset
20843
20844
20845 \begin_inset Newline newline
20846 \end_inset
20847
20848
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 cvs -q add "<new-file-name>"
20854 \end_layout
20855
20856 \end_inset
20857
20858
20859 \end_layout
20860
20861 \begin_layout Subsubsection
20862
20863 \family sans
20864 Rename
20865 \end_layout
20866
20867 \begin_layout Standard
20868 This will rename the current document.
20869  Since CVS does not support rename operations natively, the version history
20870  is not preserved, the renamed document is added as a new file, and the
20871  original document is deleted.
20872  It requires a clean document without any changes since the last checkin.
20873  You are asked for a file name and a description of the rename operation.
20874  After that the document is renamed, both locally and in the repository.
20875  If the parent directories of the new and old file names differ, all relative
20876  paths of included files are adjusted (like in 
20877 \family sans
20878 File\SpecialChar menuseparator
20879 Save As
20880 \family default
20881 \SpecialChar ldots
20882 ).
20883  Finally, the document is reloaded using the new name.
20884 \end_layout
20885
20886 \begin_layout Labeling
20887 \labelwidthstring 00.00.0000
20888 CVS
20889 \begin_inset space ~
20890 \end_inset
20891
20892 commands: 
20893 \begin_inset space ~
20894 \end_inset
20895
20896
20897 \begin_inset Newline newline
20898 \end_inset
20899
20900 Rename 
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905 "<file-name>"
20906 \end_layout
20907
20908 \end_inset
20909
20910  to 
20911 \begin_inset Flex Code
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 "<new-file-name>"
20916 \end_layout
20917
20918 \end_inset
20919
20920
20921 \begin_inset Newline newline
20922 \end_inset
20923
20924
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 cvs -q add "<new-file-name>"
20930 \end_layout
20931
20932 \end_inset
20933
20934
20935 \begin_inset Newline newline
20936 \end_inset
20937
20938
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 cvs -q remove "<file-name>"
20944 \end_layout
20945
20946 \end_inset
20947
20948
20949 \end_layout
20950
20951 \begin_layout Subsubsection
20952 Update of the local directory checkout from repository
20953 \end_layout
20954
20955 \begin_layout Standard
20956 Once your documents gets more complex, containing sub-documents and pictures,
20957  including external 
20958 \begin_inset Flex Code
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962 .tex
20963 \end_layout
20964
20965 \end_inset
20966
20967  files and so on using version control becomes more complicated.
20968  \SpecialChar LyX
20969  supports updating the whole tree in which resides the document.
20970  This become especially useful once you cooperate with people which neither
20971  have detailed knowledge about CVS usage nor they have ambition to commit
20972  additional material to the repository.
20973  You have to organize the files structure so that all external files are
20974  in the same directory or subdirectories of the document.
20975  It's good practice anyway to store multipart documents in an extra directory.
20976 \end_layout
20977
20978 \begin_layout Standard
20979 The 
20980 \begin_inset Flex Code
20981 status collapsed
20982
20983 \begin_layout Plain Layout
20984 Update local directory from repository
20985 \end_layout
20986
20987 \end_inset
20988
20989  command updates the whole directory.
20990  If local changes are detected user is warned before update starts.
20991  In case of merge conflicts both versions of the conflicting document parts
20992  are placed in the final document.
20993  You have to review and correct the result of the merge.
20994  You'll find the conflicts enclosed in pairs of 
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 <<<<<<<
21000 \end_layout
21001
21002 \end_inset
21003
21004  and 
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 >>>>>>>
21010 \end_layout
21011
21012 \end_inset
21013
21014  separated by 
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 =======
21020 \end_layout
21021
21022 \end_inset
21023
21024 .
21025  The first part is your version as before the update operation with the
21026  document name prepended.
21027  The second one is the repository version with the version number after
21028  the sequence of 
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 >
21034 \end_layout
21035
21036 \end_inset
21037
21038  signs.
21039 \end_layout
21040
21041 \begin_layout Labeling
21042 \labelwidthstring 00.00.0000
21043 CVS
21044 \begin_inset space ~
21045 \end_inset
21046
21047 commands: 
21048 \begin_inset space ~
21049 \end_inset
21050
21051
21052 \begin_inset Newline newline
21053 \end_inset
21054
21055
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 cd $path; cvs diff 
21061 \family typewriter
21062 "."
21063 \end_layout
21064
21065 \end_inset
21066
21067  (Ask if changes are detected.)
21068 \begin_inset Newline newline
21069 \end_inset
21070
21071
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 cd $path; cvs -q update 
21077 \family typewriter
21078 "."
21079 \end_layout
21080
21081 \end_inset
21082
21083
21084 \end_layout
21085
21086 \begin_layout Standard
21087 where 
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 $path
21093 \end_layout
21094
21095 \end_inset
21096
21097  stands for the path to the document.
21098 \end_layout
21099
21100 \begin_layout Subsubsection
21101
21102 \family sans
21103 Show History
21104 \end_layout
21105
21106 \begin_layout Standard
21107 This shows the complete history of the CVS document.
21108  The output of 
21109 \family typewriter
21110 cvs log "<file-name>"
21111 \family default
21112  is shown in a browser.
21113 \end_layout
21114
21115 \begin_layout Subsubsection
21116 Revision info
21117 \end_layout
21118
21119 \begin_layout Standard
21120 \SpecialChar LyX
21121  supports CVS version number, author name, date and time of last commit.
21122  All those are extracted from 
21123 \family typewriter
21124 cvs log -r <file-name>
21125 \family default
21126 .
21127  See 
21128 \begin_inset CommandInset ref
21129 LatexCommand ref
21130 reference "subsec:VCS-Revision-Information"
21131
21132 \end_inset
21133
21134  for details.
21135 \end_layout
21136
21137 \begin_layout Subsection
21138 SVN commands in \SpecialChar LyX
21139
21140 \end_layout
21141
21142 \begin_layout Standard
21143 SVN is now partially supported by \SpecialChar LyX
21144 .
21145  You can find the commands in the 
21146 \family sans
21147 File\SpecialChar menuseparator
21148 Version
21149 \begin_inset space ~
21150 \end_inset
21151
21152 Control
21153 \family default
21154  submenu.
21155  Please note that if you use password protected access to repository via
21156  ssh, you will be asked in terminal window.
21157  \SpecialChar LyX
21158  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21159 \begin_inset Foot
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 Most of the commands will work with 1.4 too, see 
21164 \begin_inset CommandInset ref
21165 LatexCommand ref
21166 reference "subsec:SVN-Repo-Update"
21167
21168 \end_inset
21169
21170 .
21171  There seems to be currently unresolved permissions problem under SVN 1.8
21172  with reverting changes when file is locked.
21173 \end_layout
21174
21175 \end_inset
21176
21177
21178 \end_layout
21179
21180 \begin_layout Subsubsection
21181
21182 \family sans
21183 Register
21184 \end_layout
21185
21186 \begin_layout Standard
21187 If your document is not under revision control, this is the only item shown
21188  in the menu.
21189  And if it is under revision control, the 
21190 \family sans
21191 Register
21192 \family default
21193  item is not visible.
21194 \end_layout
21195
21196 \begin_layout Standard
21197 This command registers in SVN your document ONLY in case you have already
21198  the documents directory under SVN control (in particular 
21199 \family typewriter
21200 .svn/entries
21201 \family default
21202  file exists).
21203  This means you have to checkout the archive by yourself.
21204 \end_layout
21205
21206 \begin_layout Standard
21207 Then you are asked interactively to supply an initial description of the
21208  document.
21209  Don't forget that registered file is not yet commited.
21210 \end_layout
21211
21212 \begin_layout Standard
21213 SVN command that is run: 
21214 \family typewriter
21215 svn add -q 
21216 \begin_inset Quotes qld
21217 \end_inset
21218
21219 <file-name>
21220 \begin_inset Quotes qld
21221 \end_inset
21222
21223
21224 \end_layout
21225
21226 \begin_layout Standard
21227 Read 
21228 \family typewriter
21229 man svn
21230 \family default
21231  to understand the switches.
21232 \end_layout
21233
21234 \begin_layout Subsubsection
21235
21236 \family sans
21237 Check In Changes
21238 \end_layout
21239
21240 \begin_layout Standard
21241 When you are finished editing a file, you commit your changes.
21242  When you do this, you are asked for a description of the changes.
21243  After that changes are commited.
21244 \end_layout
21245
21246 \begin_layout Standard
21247 SVN command:
21248 \begin_inset Foot
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 In case locking is not enabled.
21253  See Section 
21254 \begin_inset CommandInset ref
21255 LatexCommand ref
21256 reference "subsec:SVN-File-Locking"
21257
21258 \end_inset
21259
21260 .
21261 \end_layout
21262
21263 \end_inset
21264
21265  
21266 \family typewriter
21267 svn commit -q -m"<description>" <file-name>
21268 \end_layout
21269
21270 \begin_layout Subsubsection
21271
21272 \family sans
21273 Check Out For Edit
21274 \end_layout
21275
21276 \begin_layout Standard
21277 Updates the changes of this file from the repository.
21278  Be sure you understand SVN merging and conflicts resolving before using
21279  this function, because all conflicts has to be resolved manually by you!
21280 \end_layout
21281
21282 \begin_layout Standard
21283 SVN command:
21284 \begin_inset Foot
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 Ditto.
21289 \end_layout
21290
21291 \end_inset
21292
21293  
21294 \family typewriter
21295 svn update --non-interactive 
21296 \begin_inset Quotes qld
21297 \end_inset
21298
21299 <file-name>
21300 \begin_inset Quotes qld
21301 \end_inset
21302
21303
21304 \end_layout
21305
21306 \begin_layout Subsubsection
21307
21308 \family sans
21309 Revert To Repository Version
21310 \end_layout
21311
21312 \begin_layout Standard
21313 This will discard all changes made to the document since the last check
21314  in.
21315  You get a warning before changes are discarded.
21316 \end_layout
21317
21318 \begin_layout Standard
21319 SVN command: 
21320 \family typewriter
21321 svn revert -q 
21322 \begin_inset Quotes qld
21323 \end_inset
21324
21325 <file-name>
21326 \begin_inset Quotes qld
21327 \end_inset
21328
21329
21330 \end_layout
21331
21332 \begin_layout Subsubsection
21333
21334 \family sans
21335 Copy
21336 \end_layout
21337
21338 \begin_layout Standard
21339 This will create a copy of the current document including the version history.
21340  It requires a clean document without any changes since the last checkin.
21341  You are asked for a file name and a description of the copy operation.
21342  After that the copy is created, both locally and in the repository.
21343  If the parent directories of the copied and original document differ, all
21344  relative paths of included files of the copy are adjusted (like in 
21345 \family sans
21346 File\SpecialChar menuseparator
21347 Save As
21348 \family default
21349 \SpecialChar ldots
21350 ).
21351  Finally, the copy is loaded instead of the original document.
21352 \end_layout
21353
21354 \begin_layout Labeling
21355 \labelwidthstring 00.00.0000
21356 SVN
21357 \begin_inset space ~
21358 \end_inset
21359
21360 commands: 
21361 \begin_inset space ~
21362 \end_inset
21363
21364
21365 \begin_inset Newline newline
21366 \end_inset
21367
21368
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 svn copy -q 
21374 \family typewriter
21375
21376 \begin_inset Quotes qld
21377 \end_inset
21378
21379 <file-name>
21380 \begin_inset Quotes qld
21381 \end_inset
21382
21383  
21384 \begin_inset Quotes qld
21385 \end_inset
21386
21387 <new-file-name>
21388 \begin_inset Quotes qld
21389 \end_inset
21390
21391
21392 \end_layout
21393
21394 \end_inset
21395
21396
21397 \begin_inset Newline newline
21398 \end_inset
21399
21400
21401 \begin_inset Flex Code
21402 status collapsed
21403
21404 \begin_layout Plain Layout
21405 svn commit
21406 \end_layout
21407
21408 \end_inset
21409
21410
21411 \end_layout
21412
21413 \begin_layout Subsubsection
21414
21415 \family sans
21416 Rename
21417 \end_layout
21418
21419 \begin_layout Standard
21420 This will rename the current document including the version history.
21421  It requires a clean document without any changes since the last checkin.
21422  You are asked for a file name and a description of the rename operation.
21423  After that the document is renamed, both locally and in the repository.
21424  If the parent directories of the new and old file names differ, all relative
21425  paths of included files are adjusted (like in 
21426 \family sans
21427 File\SpecialChar menuseparator
21428 Save As
21429 \family default
21430 \SpecialChar ldots
21431 ).
21432  Finally, the document is reloaded using the new name.
21433 \end_layout
21434
21435 \begin_layout Labeling
21436 \labelwidthstring 00.00.0000
21437 SVN
21438 \begin_inset space ~
21439 \end_inset
21440
21441 commands: 
21442 \begin_inset space ~
21443 \end_inset
21444
21445
21446 \begin_inset Newline newline
21447 \end_inset
21448
21449
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 svn move -q 
21455 \family typewriter
21456
21457 \begin_inset Quotes qld
21458 \end_inset
21459
21460 <file-name>
21461 \begin_inset Quotes qld
21462 \end_inset
21463
21464  
21465 \begin_inset Quotes qld
21466 \end_inset
21467
21468 <new-file-name>
21469 \begin_inset Quotes qld
21470 \end_inset
21471
21472
21473 \end_layout
21474
21475 \end_inset
21476
21477
21478 \begin_inset Newline newline
21479 \end_inset
21480
21481
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 svn commit
21487 \end_layout
21488
21489 \end_inset
21490
21491
21492 \end_layout
21493
21494 \begin_layout Subsubsection
21495 \begin_inset CommandInset label
21496 LatexCommand label
21497 name "subsec:SVN-Repo-Update"
21498
21499 \end_inset
21500
21501 Update of the local directory checkout from repository
21502 \begin_inset Foot
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 Note that this command will work only with subversion 
21507 \begin_inset Formula $\geqq1.5$
21508 \end_inset
21509
21510
21511 \end_layout
21512
21513 \end_inset
21514
21515
21516 \end_layout
21517
21518 \begin_layout Standard
21519 All the commands above have one shortcoming – they deal with the current
21520  document only.
21521  Once your document contains pictures, includes external 
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 .tex
21527 \end_layout
21528
21529 \end_inset
21530
21531  files and so on administration becomes more complicated.
21532  \SpecialChar LyX
21533  now supports updating the whole tree in which resides the document
21534 \begin_inset Foot
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 One need to organize the files structure so that all external files are
21539  in the same directory or subdirectories of the document.
21540  
21541 \end_layout
21542
21543 \end_inset
21544
21545 .
21546  This become especially useful once you cooperate with people which neither
21547  know about subversion management nor they have ambition to commit additional
21548  material to the repository.
21549  
21550 \end_layout
21551
21552 \begin_layout Standard
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 Update local directory from repository
21558 \end_layout
21559
21560 \end_inset
21561
21562  command updates the whole directory and in case of merge conflicts local
21563  version of the files are left, so no unintended data loss occurs.
21564  If local changes are detected user is warned before update starts.
21565 \end_layout
21566
21567 \begin_layout Labeling
21568 \labelwidthstring 00.00.0000
21569 SVN
21570 \begin_inset space ~
21571 \end_inset
21572
21573 commands: 
21574 \begin_inset space ~
21575 \end_inset
21576
21577
21578 \begin_inset Newline newline
21579 \end_inset
21580
21581
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586 svn diff $path
21587 \end_layout
21588
21589 \end_inset
21590
21591  (Ask if changes are detected.)
21592 \begin_inset Newline newline
21593 \end_inset
21594
21595
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 svn update --accept mine-full $path
21601 \end_layout
21602
21603 \end_inset
21604
21605
21606 \end_layout
21607
21608 \begin_layout Standard
21609 where 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 $path
21615 \end_layout
21616
21617 \end_inset
21618
21619  stands for the path to the document.
21620 \end_layout
21621
21622 \begin_layout Subsubsection
21623
21624 \family sans
21625 Show History
21626 \end_layout
21627
21628 \begin_layout Standard
21629 This shows the complete history of the SVN document.
21630  The output of 
21631 \family typewriter
21632 svn log 
21633 \begin_inset Quotes qld
21634 \end_inset
21635
21636 <file-name>
21637 \begin_inset Quotes qld
21638 \end_inset
21639
21640
21641 \family default
21642  is shown in a browser.
21643 \end_layout
21644
21645 \begin_layout Subsubsection
21646 File Locking
21647 \begin_inset CommandInset label
21648 LatexCommand label
21649 name "subsec:SVN-File-Locking"
21650
21651 \end_inset
21652
21653
21654 \end_layout
21655
21656 \begin_layout Standard
21657 The file exchange through various revision control systems brings the problem
21658  of merge conflicts in case two different users try to edit the same (parts
21659  of) document.
21660  When such a conflict happens it needs manual resolving and one reasonable
21661  alternative is to provide some kind of locking mechanism, which guarantees
21662  that only one user is allowed to edit file at the given time.
21663 \end_layout
21664
21665 \begin_layout Standard
21666 SVN has two such mechanisms to provide mutual exclusivity for file access
21667  – locks and automatic setting of write permissions (see sec.
21668  
21669 \begin_inset CommandInset ref
21670 LatexCommand ref
21671 reference "subsec:Automatical-Locking-Property"
21672
21673 \end_inset
21674
21675 ) based on 
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 svn:needs-lock
21681 \end_layout
21682
21683 \end_inset
21684
21685  file svn property
21686 \begin_inset Foot
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 \begin_inset Flex URL
21691 status open
21692
21693 \begin_layout Plain Layout
21694
21695 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21696 \end_layout
21697
21698 \end_inset
21699
21700
21701 \end_layout
21702
21703 \end_inset
21704
21705 .
21706  If this property is detected for a given document \SpecialChar LyX
21707  starts to use SVN locks
21708  for document editing automatically and the whole check-in/out mechanism
21709  switches to the same regimen as for RCS.
21710  This in particular means there are two different modes of file use in \SpecialChar LyX
21711 :
21712 \end_layout
21713
21714 \begin_layout Itemize
21715 Unlocked state.
21716  The loaded file is in the read-only mode.
21717  For editing on needs to check-out.
21718  
21719 \emph on
21720 Check-out
21721 \emph default
21722  consists of updating from the repository and gaining write lock.
21723  If the lock is not possible to obtain, we remain in unlocked state.
21724 \end_layout
21725
21726 \begin_layout Itemize
21727 Locked state.
21728  The loaded file is in the 
21729 \begin_inset Quotes els
21730 \end_inset
21731
21732 normal
21733 \begin_inset Quotes ers
21734 \end_inset
21735
21736  edit mode.
21737  No other user is allowed to edit the file.
21738  
21739 \emph on
21740 Check-in
21741 \emph default
21742  consists of commiting changes and releasing write-lock.
21743  If no changes have been made to the document, no commit will be produced
21744 \begin_inset Foot
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 Don't be puzzled by the fact that you will be asked for commit message anyway.
21749 \end_layout
21750
21751 \end_inset
21752
21753  and only the write-lock will be released.
21754 \end_layout
21755
21756 \begin_layout Standard
21757 SVN commands:
21758 \end_layout
21759
21760 \begin_layout Labeling
21761 \labelwidthstring 00.00.0000
21762 Check-in:
21763 \family typewriter
21764  svn commit -q -m"<description>" "<file-name>"
21765 \begin_inset Newline newline
21766 \end_inset
21767
21768 svn unlock "<file-name>"
21769 \end_layout
21770
21771 \begin_layout Labeling
21772 \labelwidthstring 00.00.0000
21773 Check-out: 
21774 \family typewriter
21775 svn update "<file-name>"
21776 \begin_inset Newline newline
21777 \end_inset
21778
21779 svn lock "<file-name>"
21780 \end_layout
21781
21782 \begin_layout Subsubsection
21783
21784 \family typewriter
21785 \begin_inset CommandInset label
21786 LatexCommand label
21787 name "subsec:Automatical-Locking-Property"
21788
21789 \end_inset
21790
21791
21792 \family default
21793 Automatic Locking Property
21794 \end_layout
21795
21796 \begin_layout Standard
21797 The above mentioned automatic setting of write permissions of the .lyx file
21798  can be set through
21799 \family sans
21800  File\SpecialChar menuseparator
21801 Version
21802 \begin_inset space ~
21803 \end_inset
21804
21805 Control\SpecialChar menuseparator
21806 Use Locking Property
21807 \family default
21808 .
21809  This command is active only when the file is not locked on the svn server
21810  (i.e.
21811  you need to check-out before proceeding).
21812 \end_layout
21813
21814 \begin_layout Labeling
21815 \labelwidthstring 00.00.0000
21816 SVN
21817 \begin_inset space ~
21818 \end_inset
21819
21820 commands:
21821 \end_layout
21822
21823 \begin_layout Labeling
21824 \labelwidthstring 00.00.0000
21825 Set:
21826 \family typewriter
21827  svn propset svn:needs-lock ON "<file-name>"
21828 \end_layout
21829
21830 \begin_layout Labeling
21831 \labelwidthstring 00.00.0000
21832 Unset: 
21833 \family typewriter
21834 svn propdel svn:needs-lock "<file-name>"
21835 \end_layout
21836
21837 \begin_layout Subsubsection
21838 \begin_inset CommandInset label
21839 LatexCommand label
21840 name "subsec:VCS-Revision-Information"
21841
21842 \end_inset
21843
21844 Revision Information in Documents
21845 \end_layout
21846
21847 \begin_layout Standard
21848 There are more possibilities how to activate revision information in our
21849  document.
21850 \end_layout
21851
21852 \begin_layout Itemize
21853 \SpecialChar LyX
21854  supports directly:
21855 \end_layout
21856
21857 \begin_deeper
21858 \begin_layout Itemize
21859 tree revision information (
21860 \begin_inset Flex Code
21861 status collapsed
21862
21863 \begin_layout Plain Layout
21864 vcs-tree-revision
21865 \end_layout
21866
21867 \end_inset
21868
21869 ).
21870  The result is the output of the 
21871 \begin_inset Flex Code
21872 status collapsed
21873
21874 \begin_layout Plain Layout
21875 svnversion
21876 \end_layout
21877
21878 \end_inset
21879
21880  command, the following table gives you an idea, how to read the results.
21881 \end_layout
21882
21883 \begin_layout Standard
21884 \align center
21885 \begin_inset Tabular
21886 <lyxtabular version="3" rows="6" columns="2">
21887 <features tabularvalignment="middle">
21888 <column alignment="left" valignment="top">
21889 <column alignment="left" valignment="top">
21890 <row>
21891 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21892 \begin_inset Text
21893
21894 \begin_layout Plain Layout
21895
21896 \series bold
21897 Output
21898 \end_layout
21899
21900 \end_inset
21901 </cell>
21902 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21903 \begin_inset Text
21904
21905 \begin_layout Plain Layout
21906
21907 \series bold
21908 Meaning
21909 \end_layout
21910
21911 \end_inset
21912 </cell>
21913 </row>
21914 <row>
21915 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21916 \begin_inset Text
21917
21918 \begin_layout Plain Layout
21919 4123:4168
21920 \end_layout
21921
21922 \end_inset
21923 </cell>
21924 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21925 \begin_inset Text
21926
21927 \begin_layout Plain Layout
21928 mixed revision working copy
21929 \end_layout
21930
21931 \end_inset
21932 </cell>
21933 </row>
21934 <row>
21935 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21936 \begin_inset Text
21937
21938 \begin_layout Plain Layout
21939 4168M
21940 \end_layout
21941
21942 \end_inset
21943 </cell>
21944 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21945 \begin_inset Text
21946
21947 \begin_layout Plain Layout
21948 modified working copy
21949 \end_layout
21950
21951 \end_inset
21952 </cell>
21953 </row>
21954 <row>
21955 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21956 \begin_inset Text
21957
21958 \begin_layout Plain Layout
21959 4123S
21960 \end_layout
21961
21962 \end_inset
21963 </cell>
21964 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21965 \begin_inset Text
21966
21967 \begin_layout Plain Layout
21968 switched working copy
21969 \end_layout
21970
21971 \end_inset
21972 </cell>
21973 </row>
21974 <row>
21975 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21976 \begin_inset Text
21977
21978 \begin_layout Plain Layout
21979 4123P
21980 \end_layout
21981
21982 \end_inset
21983 </cell>
21984 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21985 \begin_inset Text
21986
21987 \begin_layout Plain Layout
21988 partial working copy, from a sparse checkout
21989 \end_layout
21990
21991 \end_inset
21992 </cell>
21993 </row>
21994 <row>
21995 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21996 \begin_inset Text
21997
21998 \begin_layout Plain Layout
21999 4123:4168MS
22000 \end_layout
22001
22002 \end_inset
22003 </cell>
22004 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22005 \begin_inset Text
22006
22007 \begin_layout Plain Layout
22008 mixed revision, modified, switched working copy
22009 \end_layout
22010
22011 \end_inset
22012 </cell>
22013 </row>
22014 </lyxtabular>
22015
22016 \end_inset
22017
22018
22019 \end_layout
22020
22021 \begin_layout Itemize
22022 file revision information.
22023  The result comes from parsing the output of 
22024 \begin_inset Flex Code
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028 svn
22029 \begin_inset space ~
22030 \end_inset
22031
22032 info
22033 \begin_inset space ~
22034 \end_inset
22035
22036 --xml
22037 \begin_inset space ~
22038 \end_inset
22039
22040 file.lyx
22041 \end_layout
22042
22043 \end_inset
22044
22045 .
22046  Supported flags are:
22047 \end_layout
22048
22049 \begin_deeper
22050 \begin_layout Itemize
22051 version number of the last commit (
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 vcs-revision
22057 \end_layout
22058
22059 \end_inset
22060
22061 )
22062 \end_layout
22063
22064 \begin_layout Itemize
22065 author of the last commit (
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 vcs-author
22071 \end_layout
22072
22073 \end_inset
22074
22075 )
22076 \end_layout
22077
22078 \begin_layout Itemize
22079 date of the last commit (
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084 vcs-date
22085 \end_layout
22086
22087 \end_inset
22088
22089 )
22090 \end_layout
22091
22092 \begin_layout Itemize
22093 time of the last commit (
22094 \begin_inset Flex Code
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098 vcs-time
22099 \end_layout
22100
22101 \end_inset
22102
22103 )
22104 \end_layout
22105
22106 \end_deeper
22107 \begin_layout Standard
22108 You can obtain this info via InsetInfo (
22109 \change_inserted 5863208 1564400022
22110
22111 \lang american
22112 Insert\SpecialChar menuseparator
22113 Field\SpecialChar menuseparator
22114 Version Control Revision
22115 \change_deleted 5863208 1564399852
22116
22117 \lang english
22118 e.g.
22119  
22120 \begin_inset Flex Code
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124 info-insert buffer vcs-date
22125 \end_layout
22126
22127 \end_inset
22128
22129
22130 \change_unchanged
22131 ).
22132  The information will be available only when you have the file stored under
22133  svn managment (i.e.
22134  the 
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139 .svn
22140 \end_layout
22141
22142 \end_inset
22143
22144  directory is available with your document).
22145 \end_layout
22146
22147 \end_deeper
22148 \begin_layout Itemize
22149 Another—a hacking one—possibility is to use svn keywords
22150 \begin_inset Foot
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22155 \end_layout
22156
22157 \end_inset
22158
22159 .
22160  In short – you set file keywords property (e.g.
22161  
22162 \family sans
22163 svn propset svn:keywords 'Rev' file.lyx
22164 \family default
22165 ) and then paste keyword \SpecialChar TeX
22166  code
22167 \begin_inset Foot
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 This is an easy way how to ensure that \SpecialChar LyX
22172  won't break the line in the middle
22173  of keyword tag.
22174 \end_layout
22175
22176 \end_inset
22177
22178  tag in your document (e.g.
22179  
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184 $Rev$
22185 \end_layout
22186
22187 \end_inset
22188
22189 ).
22190  This way svn client will automatically substitute revision number (e.g.
22191  
22192 \begin_inset Flex Code
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 $Rev: 59 $
22197 \end_layout
22198
22199 \end_inset
22200
22201 ) after each update and commit.
22202  There are more problems with this approach.
22203  Firstly, the '$' character is used in \SpecialChar TeX
22204  world for math equations, so any
22205  occurence of math formula 
22206 \begin_inset Formula $Rev$
22207 \end_inset
22208
22209  become 
22210 \begin_inset Formula $Rev:59$
22211 \end_inset
22212
22213  in your \SpecialChar LyX
22214  document.
22215  Similarly for other keywords like Id, Date, Author, etc.
22216  Secondly svn output is dependent on your locales, so its very easy that
22217  svn would produce some problematic strings once Date is used.
22218  Thirdly you get the whole 'Rev: 59' string in your document instead of
22219  the plain number.
22220  Until subversion implements user's custom keywords it will be hard to use
22221  this approach reliably or let \SpecialChar LyX
22222  to support it directly.
22223 \end_layout
22224
22225 \begin_layout Subsection
22226 SVN and Windows Environment
22227 \end_layout
22228
22229 \begin_layout Quote
22230 My inclination is to say that if the user cannot figure out the command
22231  line operations on their own fairly quickly, they would be well advised
22232  to use TortoiseSVN.
22233  —P.
22234  A.
22235  Rubin
22236 \end_layout
22237
22238 \begin_layout Subsubsection
22239 Preparation
22240 \end_layout
22241
22242 \begin_layout Standard
22243 In addition to installing \SpecialChar LyX
22244 , and having access to a Subversion repository,
22245  the user will need to install the Subversion client program.
22246  A Windows installer for the client program is available from 
22247 \begin_inset CommandInset href
22248 LatexCommand href
22249 name "CollabNet"
22250 target "http://www.collab.net/nonav/downloads/subversion/"
22251 literal "false"
22252
22253 \end_inset
22254
22255 .
22256  The user may also want to install 
22257 \begin_inset CommandInset href
22258 LatexCommand href
22259 name "TortoiseSVN"
22260 target "http://tortoisesvn.tigris.org/"
22261 literal "false"
22262
22263 \end_inset
22264
22265 , which integrates Subversion operations into the context (rightclick) menu
22266  of Windows Explorer.
22267  Operations done outside \SpecialChar LyX
22268  will typically be more convenient using the Explorer
22269  context menu.
22270  Note that TortoiseSVN is not a replacement for the client program, which
22271  is what \SpecialChar LyX
22272  itself will use.
22273 \end_layout
22274
22275 \begin_layout Subsubsection
22276 Bringing a document under Subversion control
22277 \end_layout
22278
22279 \begin_layout Standard
22280 Before a \SpecialChar LyX
22281  document can be brought under version control in Subversion, its
22282  parent directory needs to be under version control.
22283  If the document is being added to a project already in the repository,
22284  this is accomplished by checking the project out to the directory where
22285  the new document will be placed.
22286  If the project itself is not yet under version control (for instance, if
22287  this document starts a new project), the directory must be imported into
22288  the repository.
22289  This is done outside \SpecialChar LyX
22290 .
22291  Both import and checkout are easily accomplished from the Explorer context
22292  menu using TortoiseSVN, or alternatively can be done using the command
22293  line client at a DOS prompt.
22294  The procedure for importing the project using TortoiseSVN is described
22295  below, assuming an existing repository and a new project being started
22296  in 
22297 \family typewriter
22298 C:
22299 \backslash
22300 new project
22301 \family default
22302 .
22303  For information on using the Subversion client program, run 
22304 \family typewriter
22305 svn --help 
22306 \family default
22307 in a DOS shell.
22308 \end_layout
22309
22310 \begin_layout Enumerate
22311 Locate 
22312 \family typewriter
22313 C:
22314 \backslash
22315 new project 
22316 \family default
22317 in Windows Explorer, right click it, and select 
22318 \family sans
22319 TortoiseSVN\SpecialChar menuseparator
22320 Repo-browser
22321 \family default
22322 .
22323  If necessary, adjust the URL for the repository, then click OK.
22324 \end_layout
22325
22326 \begin_layout Enumerate
22327 Right click the level of the repository under which you want to place the
22328  new project folder (typically the top level) and click 
22329 \family sans
22330 Create folder
22331 \family default
22332  Supply a name for the project folder and click OK.
22333  Add a message for the log file if desired, then click OK again.
22334  The new project folder should appear in the repository.
22335  Finally, click OK again to exit the repository browser.
22336 \end_layout
22337
22338 \begin_layout Enumerate
22339 Once again right click 
22340 \family typewriter
22341 C:
22342 \backslash
22343 new project
22344 \family default
22345 , this time selecting SVN Checkout\SpecialChar ldots
22346  Select the URL of the project folder
22347  you just created in the repository, and set the checkout directory to 
22348 \family typewriter
22349 C:
22350 \backslash
22351 new project.
22352
22353 \family default
22354  Click OK.
22355  You will be warned about a non-empty folder; click OK to proceed.
22356  You should now have a 
22357 \family typewriter
22358 .svn
22359 \family default
22360  directory under 
22361 \family typewriter
22362 C:
22363 \backslash
22364 new project.
22365 \end_layout
22366
22367 \begin_layout Enumerate
22368 Create or open your document in \SpecialChar LyX
22369  and click 
22370 \family sans
22371 File\SpecialChar menuseparator
22372 Version
22373 \begin_inset space ~
22374 \end_inset
22375
22376 Control\SpecialChar menuseparator
22377 Register.
22378  
22379 \family default
22380 Add a log message and click OK to commit the document to version control.
22381 \end_layout
22382
22383 \begin_layout Standard
22384 From this point onward, you should have full functionality in the 
22385 \family sans
22386 File\SpecialChar menuseparator
22387 Version
22388 \begin_inset space ~
22389 \end_inset
22390
22391 Control
22392 \family default
22393  menu.
22394  You also have the option of checking the document in and out, viewing its
22395  history, etc.
22396  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22397  client program from a command prompt.
22398 \end_layout
22399
22400 \begin_layout Subsubsection
22401 SSH tunnel used with SVN under Windows
22402 \end_layout
22403
22404 \begin_layout Standard
22405 Compared with Linux setting up an svn client to communicate over ssh under
22406  Windows is a rather troublesome task.
22407  We will at least offer some hints how to setup the client side but prior
22408  knowledge about ssh and the Windows command line is needed, also be prepared
22409  for a great deal of frustration\SpecialChar ldots
22410
22411 \end_layout
22412
22413 \begin_layout Enumerate
22414 Get an svn client for windows, as described in the previous sections.
22415  When it is a fresh install run some svn command (e.g.
22416  
22417 \begin_inset Flex Code
22418 status collapsed
22419
22420 \begin_layout Plain Layout
22421 svn --version
22422 \end_layout
22423
22424 \end_inset
22425
22426 ) to create config files, which you will need to change later on.
22427 \end_layout
22428
22429 \begin_layout Enumerate
22430 Choose an ssh client for Windows.
22431  There are several possibilities, we will use the one from Putty tools
22432 \begin_inset Foot
22433 status collapsed
22434
22435 \begin_layout Plain Layout
22436 \begin_inset Flex URL
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440
22441 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \end_layout
22448
22449 \end_inset
22450
22451 .
22452  You will need to set the connection up so that the client doesn't ask for
22453  any password from you.
22454  To keep things easy we will use only keys without any additional password
22455  protection etc.
22456 \end_layout
22457
22458 \begin_deeper
22459 \begin_layout Enumerate
22460 Generate keys by 
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 puttygen
22466 \end_layout
22467
22468 \end_inset
22469
22470 .
22471  Save your private .ppk key file and put the public one on the server side.
22472  If the SVN server runs on Linux, note that the format of the public key
22473  is not compatible with Linux openssh and you will need to direcly copy-paste
22474  the key from the 
22475 \begin_inset Quotes eld
22476 \end_inset
22477
22478
22479 \emph on
22480 Public key for pasting into OpenSSH authorized_keys file
22481 \emph default
22482 :
22483 \begin_inset Quotes erd
22484 \end_inset
22485
22486  edit field into the server's 
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 ~/.ssh/authorized_keys
22492 \end_layout
22493
22494 \end_inset
22495
22496  / 
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 authorized_keys2
22502 \end_layout
22503
22504 \end_inset
22505
22506  file.
22507 \end_layout
22508
22509 \begin_layout Enumerate
22510 Get the Putty's 
22511 \begin_inset Flex Code
22512 status collapsed
22513
22514 \begin_layout Plain Layout
22515 plink
22516 \end_layout
22517
22518 \end_inset
22519
22520 .
22521  In the SVN config file
22522 \begin_inset Foot
22523 status collapsed
22524
22525 \begin_layout Plain Layout
22526 Exact path depends on Windows version, usually somewhere around 
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 c:
22532 \backslash
22533 Documents and Settings
22534 \backslash
22535 user
22536 \backslash
22537 Application Data
22538 \backslash
22539 Subversion
22540 \backslash
22541 config
22542 \end_layout
22543
22544 \end_inset
22545
22546  / 
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 AppData
22552 \backslash
22553 Roaming
22554 \backslash
22555 Subversion
22556 \end_layout
22557
22558 \end_inset
22559
22560 .
22561 \end_layout
22562
22563 \end_inset
22564
22565 , section [tunnels], setup ssh command, e.g.
22566  
22567 \begin_inset Flex Code
22568 status collapsed
22569
22570 \begin_layout Plain Layout
22571 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22572 \end_layout
22573
22574 \end_inset
22575
22576 .
22577 \begin_inset Foot
22578 status collapsed
22579
22580 \begin_layout Plain Layout
22581 It will usually take a lot of time to get exact command right and it depends
22582  on many things.
22583  For example do not have some remote server saved as a default session in
22584  Putty etc.
22585  If things fail, try to connect via plink without SVN first.
22586 \end_layout
22587
22588 \end_inset
22589
22590
22591 \end_layout
22592
22593 \end_deeper
22594 \begin_layout Enumerate
22595 Checkout the SVN archive, e.
22596 \begin_inset space \thinspace{}
22597 \end_inset
22598
22599 g.
22600 \begin_inset Newline newline
22601 \end_inset
22602
22603
22604 \begin_inset Flex Code
22605 status collapsed
22606
22607 \begin_layout Plain Layout
22608 svn co svn+ssh://user@server/repository_path
22609 \end_layout
22610
22611 \end_inset
22612
22613 .
22614 \end_layout
22615
22616 \begin_layout Subsubsection
22617 End-of-Line Conversions
22618 \end_layout
22619
22620 \begin_layout Standard
22621 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22622  will
22623  use different line endings inside the .lyx files.
22624  This is not a problem as far as \SpecialChar LyX
22625  functionality is concerned, but the commit
22626  diffs will be huge and merge-conflicts prone.
22627  Fortunately SVN itself knows
22628 \begin_inset Foot
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 \begin_inset Flex URL
22633 status collapsed
22634
22635 \begin_layout Plain Layout
22636
22637 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22638 \end_layout
22639
22640 \end_inset
22641
22642
22643 \end_layout
22644
22645 \end_inset
22646
22647  how to deal with CR/LF problems when switching .lyx files to the 
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 native
22653 \end_layout
22654
22655 \end_inset
22656
22657  mode.
22658 \begin_inset Foot
22659 status collapsed
22660
22661 \begin_layout Plain Layout
22662 For the lazy guys: 
22663 \begin_inset Flex Code
22664 status collapsed
22665
22666 \begin_layout Plain Layout
22667 svn propset svn:eol-style native FILE_NAME
22668 \end_layout
22669
22670 \end_inset
22671
22672
22673 \end_layout
22674
22675 \end_inset
22676
22677
22678 \end_layout
22679
22680 \begin_layout Subsection
22681 GIT commands in \SpecialChar LyX
22682
22683 \end_layout
22684
22685 \begin_layout Standard
22686 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22687 .
22688  You can find the commands in the 
22689 \family sans
22690 File\SpecialChar menuseparator
22691 Version
22692 \begin_inset space ~
22693 \end_inset
22694
22695 Control
22696 \family default
22697  submenu.
22698  Please note that if you use password protected access to repository via
22699  ssh, you will be asked in terminal window.
22700  \SpecialChar LyX
22701  was tested against GIT 1.7.
22702 \begin_inset Foot
22703 status collapsed
22704
22705 \begin_layout Plain Layout
22706 Windows users please note that you need to ensure that git is on the path.
22707  This can be set from within \SpecialChar LyX
22708  at 
22709 \family sans
22710 Tools\SpecialChar menuseparator
22711 Preferences\SpecialChar menuseparator
22712 Paths\SpecialChar menuseparator
22713 PATH prefix
22714 \family default
22715 .
22716 \end_layout
22717
22718 \end_inset
22719
22720
22721 \end_layout
22722
22723 \begin_layout Standard
22724 One big difference of GIT and the other supported version control systems
22725  is the distributed nature of GIT: With traditional version control systems
22726  there is one central server which hosts the repository.
22727  Users commit their changes to the server, and get updates made by other
22728  users from it.
22729  With GIT, users commit to a local repository.
22730  The local repository can be synchronized with one or more remote repositories
22731  using the 
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 pull
22737 \end_layout
22738
22739 \end_inset
22740
22741  and 
22742 \begin_inset Flex Code
22743 status collapsed
22744
22745 \begin_layout Plain Layout
22746 push
22747 \end_layout
22748
22749 \end_inset
22750
22751  GIT commands.
22752  \SpecialChar LyX
22753  does not interact in any way with remote GIT repositories.
22754  It works exclusively with the local repository in a very similar way as
22755  with a central CVS or SVN repository.
22756  If you use remote GIT repositories you need to do the 
22757 \begin_inset Flex Code
22758 status collapsed
22759
22760 \begin_layout Plain Layout
22761 pull
22762 \end_layout
22763
22764 \end_inset
22765
22766  and 
22767 \begin_inset Flex Code
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771 push
22772 \end_layout
22773
22774 \end_inset
22775
22776  operations with your favourite GIT client.
22777 \end_layout
22778
22779 \begin_layout Subsubsection
22780
22781 \family sans
22782 Register
22783 \end_layout
22784
22785 \begin_layout Standard
22786 If your document is not under revision control, this is the only item shown
22787  in the menu.
22788  And if it is under revision control, the 
22789 \family sans
22790 Register
22791 \family default
22792  item is not visible.
22793 \end_layout
22794
22795 \begin_layout Standard
22796 This command registers in GIT your document ONLY in case you have already
22797  the documents directory under GIT control (in particular 
22798 \family typewriter
22799 .git/index
22800 \family default
22801  file exists).
22802  This means you have to checkout the archive by yourself.
22803 \end_layout
22804
22805 \begin_layout Standard
22806 Then you are asked interactively to supply an initial description of the
22807  document.
22808  Don't forget that registered file is not yet committed.
22809 \end_layout
22810
22811 \begin_layout Standard
22812 GIT command that is run: 
22813 \family typewriter
22814 git add 
22815 \begin_inset Quotes qld
22816 \end_inset
22817
22818 <file-name>
22819 \begin_inset Quotes qld
22820 \end_inset
22821
22822
22823 \end_layout
22824
22825 \begin_layout Standard
22826 Read 
22827 \family typewriter
22828 man git
22829 \family default
22830  to understand the switches.
22831 \end_layout
22832
22833 \begin_layout Subsubsection
22834
22835 \family sans
22836 Check In Changes
22837 \end_layout
22838
22839 \begin_layout Standard
22840 When you are finished editing a file, you commit your changes.
22841  When you do this, you are asked for a description of the changes.
22842  After that changes are committed.
22843 \end_layout
22844
22845 \begin_layout Standard
22846 GIT command: 
22847 \family typewriter
22848 git commit -q -m"<description>" <file-name>
22849 \end_layout
22850
22851 \begin_layout Subsubsection
22852
22853 \family sans
22854 Revert To Repository Version
22855 \end_layout
22856
22857 \begin_layout Standard
22858 This will discard all changes made to the document since the last check
22859  in.
22860  You get a warning before changes are discarded.
22861 \end_layout
22862
22863 \begin_layout Standard
22864 GIT command: 
22865 \family typewriter
22866 git checkout -q 
22867 \begin_inset Quotes qld
22868 \end_inset
22869
22870 <file-name>
22871 \begin_inset Quotes qld
22872 \end_inset
22873
22874
22875 \end_layout
22876
22877 \begin_layout Subsubsection
22878
22879 \family sans
22880 Rename
22881 \end_layout
22882
22883 \begin_layout Standard
22884 This will rename the current document including the version history.
22885  It requires a clean document without any changes since the last checkin.
22886  You are asked for a file name and a description of the rename operation.
22887  After that the document is renamed, both locally and in the repository.
22888  If the parent directories of the new and old file names differ, all relative
22889  paths of included files are adjusted (like in 
22890 \family sans
22891 File\SpecialChar menuseparator
22892 Save As
22893 \family default
22894 \SpecialChar ldots
22895 ).
22896  Finally, the document is reloaded using the new name.
22897 \end_layout
22898
22899 \begin_layout Labeling
22900 \labelwidthstring 00.00.0000
22901 GIT
22902 \begin_inset space ~
22903 \end_inset
22904
22905 commands: 
22906 \begin_inset space ~
22907 \end_inset
22908
22909
22910 \begin_inset Newline newline
22911 \end_inset
22912
22913
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 git mv 
22919 \family typewriter
22920
22921 \begin_inset Quotes qld
22922 \end_inset
22923
22924 <file-name>
22925 \begin_inset Quotes qld
22926 \end_inset
22927
22928  
22929 \begin_inset Quotes qld
22930 \end_inset
22931
22932 <new-file-name>
22933 \begin_inset Quotes qld
22934 \end_inset
22935
22936
22937 \end_layout
22938
22939 \end_inset
22940
22941
22942 \begin_inset Newline newline
22943 \end_inset
22944
22945
22946 \begin_inset Flex Code
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950 git commit
22951 \end_layout
22952
22953 \end_inset
22954
22955
22956 \end_layout
22957
22958 \begin_layout Subsubsection
22959
22960 \family sans
22961 Show History
22962 \end_layout
22963
22964 \begin_layout Standard
22965 This shows the complete history of the GIT document.
22966  The output of 
22967 \family typewriter
22968 git log 
22969 \begin_inset Quotes qld
22970 \end_inset
22971
22972 <file-name>
22973 \begin_inset Quotes qld
22974 \end_inset
22975
22976
22977 \family default
22978  is shown in a browser.
22979 \end_layout
22980
22981 \begin_layout Subsubsection
22982 Version Info
22983 \end_layout
22984
22985 \begin_layout Standard
22986 \SpecialChar LyX
22987  supports GIT hash number of the last commit to the file, 
22988 \change_inserted 1119979965 1564297456
22989 its abbreviated form, 
22990 \change_unchanged
22991 author name, date and time of last commit.
22992  All those are extracted from 
22993 \family typewriter
22994 git log -n 1 --pretty=format:%H%n
22995 \change_inserted 1119979965 1564297427
22996 %h%n
22997 \change_unchanged
22998 %an%n%ai
22999 \family default
23000 .
23001  Tree version information is obtained via 
23002 \family typewriter
23003 git describe --abbrev --dirty --long
23004 \family default
23005 .
23006  See 
23007 \begin_inset CommandInset ref
23008 LatexCommand ref
23009 reference "subsec:VCS-Revision-Information"
23010
23011 \end_inset
23012
23013  for other details.
23014 \end_layout
23015
23016 \begin_layout Subsection
23017 Further tuning
23018 \end_layout
23019
23020 \begin_layout Standard
23021 With the recent addition of the 
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 vc-command
23027 \end_layout
23028
23029 \end_inset
23030
23031  function \SpecialChar LyX
23032  power users are allowed to create their own commands for revision
23033  control.
23034 \end_layout
23035
23036 \begin_layout Standard
23037 As an example you can see how two TortoiseSVN commands could be integrated
23038  directly:
23039 \end_layout
23040
23041 \begin_layout Description
23042 Commit: 
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23048 \end_layout
23049
23050 \end_inset
23051
23052
23053 \end_layout
23054
23055 \begin_layout Description
23056 Revert: 
23057 \begin_inset Flex Code
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23062 \end_layout
23063
23064 \end_inset
23065
23066
23067 \end_layout
23068
23069 \begin_layout Subsection
23070 Version control and Document comparison
23071 \end_layout
23072
23073 \begin_layout Standard
23074 One of the typical uses of version control is to inspect the changes between
23075  revisions, usually by creating 
23076 \begin_inset Flex Code
23077 status collapsed
23078
23079 \begin_layout Plain Layout
23080 diff
23081 \end_layout
23082
23083 \end_inset
23084
23085  dumps.
23086  While this is useful for plain text files, it is much less useful in the
23087  case of \SpecialChar LyX
23088  files, which have more a complicated structure.
23089  Hence we provide binding to the Document comparison feature.
23090  There are two ways of calling this feature – either by direct call of 
23091 \begin_inset Flex Code
23092 status collapsed
23093
23094 \begin_layout Plain Layout
23095 vc-compare
23096 \end_layout
23097
23098 \end_inset
23099
23100  \SpecialChar LyX
23101  function (for details see \SpecialChar LyX
23102  functions manual) or by the toolbar icon 
23103 \begin_inset Info
23104 type  "icon"
23105 arg   "vc-compare"
23106 \end_inset
23107
23108  or the menu item 
23109 \begin_inset Info
23110 type  "menu"
23111 arg   "vc-compare"
23112 \end_inset
23113
23114 , respectively.
23115  One can either compare two chosen revisions of the document or he can simply
23116  compare the current version of edited text with older revisions (where
23117  '
23118 \begin_inset Flex Noun
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 0
23123 \end_layout
23124
23125 \end_inset
23126
23127 ' revisions back means comparison of the edited file with last commited
23128  revision).
23129  
23130 \end_layout
23131
23132 \begin_layout Standard
23133 This feature is supported for SVN and RCS though due to the more complicated
23134  versioning scheme of RCS there is a constraint – when addressing the revisions
23135  in dialog, numbers always point to the last number in RCS revision number,
23136  i.e.
23137  '35' in '1.2.35'.
23138  We don't currently support GIT addressing of revisions, one can just compare
23139  edited document with its revision X steps backs, where X is addressed as
23140  
23141 \begin_inset Flex Code
23142 status collapsed
23143
23144 \begin_layout Plain Layout
23145 HEAD~X
23146 \end_layout
23147
23148 \end_inset
23149
23150 .
23151 \end_layout
23152
23153 \begin_layout Section
23154 Literate Programming
23155 \end_layout
23156
23157 \begin_layout Standard
23158 Updated by 
23159 \noun on
23160 Kayvan Sylvan 
23161 \noun default
23162 (kayvan@sylvan.com)
23163 \noun on
23164
23165 \noun default
23166 original documentation written by 
23167 \noun on
23168 Edmar Wienskoski Jr.
23169
23170 \noun default
23171  (edmar-w-jr@technologist.com)
23172 \end_layout
23173
23174 \begin_layout Subsection
23175 Introduction
23176 \end_layout
23177
23178 \begin_layout Standard
23179 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23180  for literate
23181  programming, where it is assumed that you are familiar with this programming
23182  technique, and know what 
23183 \begin_inset Quotes eld
23184 \end_inset
23185
23186 tangling
23187 \begin_inset Quotes erd
23188 \end_inset
23189
23190  and 
23191 \begin_inset Quotes eld
23192 \end_inset
23193
23194 weaving
23195 \begin_inset Quotes erd
23196 \end_inset
23197
23198  means.
23199  If that is not the case, please follow the web links provided in the following
23200  sections.
23201  There is a lot of good documentation out there covering old development
23202  history to the latest tools tips.
23203 \end_layout
23204
23205 \begin_layout Standard
23206 It is also assumed that you are familiar with \SpecialChar LyX
23207  itself to a point that you
23208  are comfortable changing your \SpecialChar LyX
23209  preferences, and X resources file.
23210  If that is not the case please refer to other \SpecialChar LyX
23211  documentation to cover your
23212  specific needs.
23213 \end_layout
23214
23215 \begin_layout Subsection
23216 Literate Programming
23217 \end_layout
23218
23219 \begin_layout Standard
23220 From the Literate Programming FAQ: 
23221 \end_layout
23222
23223 \begin_layout Quotation
23224 Literate programming is the combination of documentation and source together
23225  in a fashion suited for reading by human beings.
23226  In fact, literate programs should be enjoyable reading, even inviting!
23227  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23228  and documentation in a single file.
23229  Literate programming tools then parse the file to produce either readable
23230  documentation or compilable source.
23231  The WEB style of literate programming was created by D.
23232 \begin_inset space \thinspace{}
23233 \end_inset
23234
23235 E.
23236  Knuth during the development of his \SpecialChar TeX
23237  typesetting software.
23238  
23239 \end_layout
23240
23241 \begin_layout Standard
23242 Another excerpt says:
23243 \end_layout
23244
23245 \begin_layout Quotation
23246
23247 \emph on
23248 How is literate programming different from verbose commenting?
23249 \end_layout
23250
23251 \begin_layout Quotation
23252 There are three distinguishing characteristics.
23253  In order of importance, they are: 
23254 \end_layout
23255
23256 \begin_deeper
23257 \begin_layout Itemize
23258 flexible order of elaboration 
23259 \end_layout
23260
23261 \begin_layout Itemize
23262 automatic support for browsing 
23263 \end_layout
23264
23265 \begin_layout Itemize
23266 typeset documentation, especially diagrams and mathematics 
23267 \end_layout
23268
23269 \end_deeper
23270 \begin_layout Standard
23271 Now that I sparked your curiosity, take a look in the references.
23272 \end_layout
23273
23274 \begin_layout Subsubsection
23275 References
23276 \end_layout
23277
23278 \begin_layout Standard
23279 The complete Literate Programming FAQ can be found at:
23280 \end_layout
23281
23282 \begin_layout Quote
23283 Literate Programming FAQ 
23284 \begin_inset Flex URL
23285 status open
23286
23287 \begin_layout Plain Layout
23288
23289 http://www.literateprogramming.com/lpfaq.pdf
23290 \end_layout
23291
23292 \end_inset
23293
23294
23295 \end_layout
23296
23297 \begin_layout Standard
23298 The FAQ lists 23 (twenty three!) different literate programming tools.
23299  Where some are specialized or 
23300 \begin_inset Quotes eld
23301 \end_inset
23302
23303 tailored
23304 \begin_inset Quotes erd
23305 \end_inset
23306
23307  for particular programming languages, while other have general scope.
23308  I selected 
23309 \noun on
23310 Noweb
23311 \noun default
23312  for my own use for several reasons:
23313 \end_layout
23314
23315 \begin_layout Itemize
23316 It can generate the documentation either in \SpecialChar LaTeX
23317  or HTML.
23318 \end_layout
23319
23320 \begin_layout Itemize
23321 It has a open architecture, i.
23322 \begin_inset space \thinspace{}
23323 \end_inset
23324
23325 e.
23326 \begin_inset space \space{}
23327 \end_inset
23328
23329 it is easy to plug in new filters
23330 \begin_inset Foot
23331 status collapsed
23332
23333 \begin_layout Plain Layout
23334
23335 \emph on
23336 Filters 
23337 \emph default
23338 are programs that read a given data stream and output a manipulated data
23339  stream.
23340  That way, a WEB file (consisting of literate code) can be turned into a
23341  file consisting only of C program code or \SpecialChar LaTeX
23342  code.
23343 \end_layout
23344
23345 \end_inset
23346
23347  and to perform special processing that you may need.
23348  
23349 \end_layout
23350
23351 \begin_layout Itemize
23352 There is a good selection of filters available already (the HTML is one
23353  of them).
23354 \end_layout
23355
23356 \begin_layout Itemize
23357 It is free.
23358 \end_layout
23359
23360 \begin_layout Standard
23361 The Noweb web page can be found at: 
23362 \end_layout
23363
23364 \begin_layout Quote
23365 Noweb home page 
23366 \begin_inset Flex URL
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370
23371 https://www.cs.tufts.edu/~nr/noweb/
23372 \end_layout
23373
23374 \end_inset
23375
23376
23377 \end_layout
23378
23379 \begin_layout Standard
23380 Starting from there you can reach many other interesting links and even
23381  some literate program examples.
23382 \end_layout
23383
23384 \begin_layout Subsection
23385 \SpecialChar LyX
23386  and Literate Programming with Noweb
23387 \end_layout
23388
23389 \begin_layout Standard
23390 The \SpecialChar LyX
23391  support for Literate Programming is provided by using the generic \SpecialChar LyX
23392
23393  converters mechanism.
23394  This support is provided in a 
23395 \begin_inset Quotes eld
23396 \end_inset
23397
23398 Noweb independent
23399 \begin_inset Quotes erd
23400 \end_inset
23401
23402  way, i.
23403 \begin_inset space \thinspace{}
23404 \end_inset
23405
23406 e.
23407 \begin_inset space \space{}
23408 \end_inset
23409
23410 you will be able to use this new \SpecialChar LyX
23411  feature with some other literate programming
23412  tool of your choice by just changing your \SpecialChar LyX
23413  preferences.
23414 \end_layout
23415
23416 \begin_layout Subsubsection
23417 Generating documents and code (weaving and tangling)
23418 \end_layout
23419
23420 \begin_layout Paragraph
23421 Using the noweb module
23422 \end_layout
23423
23424 \begin_layout Standard
23425 If you have installed Noweb and \SpecialChar LyX
23426  successfully, whenever you open a new document,
23427  after you have chosen its document class, use the 
23428 \family sans
23429 Document\SpecialChar menuseparator
23430 Settings
23431 \family default
23432  menu to add the 
23433 \begin_inset Quotes eld
23434 \end_inset
23435
23436 noweb
23437 \begin_inset Quotes erd
23438 \end_inset
23439
23440  module.
23441  If Noweb is correctly installed, when you click on the 
23442 \begin_inset Quotes eld
23443 \end_inset
23444
23445 Modules
23446 \begin_inset Quotes erd
23447 \end_inset
23448
23449  link, you will see the 
23450 \begin_inset Quotes eld
23451 \end_inset
23452
23453 noweb
23454 \begin_inset Quotes erd
23455 \end_inset
23456
23457  module in the available list and you can add it to your document.
23458 \end_layout
23459
23460 \begin_layout Paragraph
23461 Typing code in
23462 \end_layout
23463
23464 \begin_layout Standard
23465 \SpecialChar LyX
23466  enables you to write code with a custom inset named 
23467 \begin_inset Flex Noun
23468 status collapsed
23469
23470 \begin_layout Plain Layout
23471 Chunk
23472 \end_layout
23473
23474 \end_inset
23475
23476 .
23477  Noweb delimits chunks like this:
23478 \end_layout
23479
23480 \begin_layout LyX-Code
23481 <<My code>>=
23482 \end_layout
23483
23484 \begin_layout LyX-Code
23485   code
23486 \end_layout
23487
23488 \begin_layout LyX-Code
23489   more code
23490 \end_layout
23491
23492 \begin_layout LyX-Code
23493   even more code
23494 \end_layout
23495
23496 \begin_layout LyX-Code
23497   @
23498 \end_layout
23499
23500 \begin_layout Standard
23501 The problem is that whatever is written in between the << and the 
23502 \family typewriter
23503 @
23504 \family default
23505  must be taken literally, i.
23506 \begin_inset space \thinspace{}
23507 \end_inset
23508
23509 e.
23510 \begin_inset space \space{}
23511 \end_inset
23512
23513 \SpecialChar LyX
23514  should be prevented from making any special interpretation of what has
23515  been written.
23516  This is also handled by 
23517 \begin_inset Flex Noun
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521 Chunk
23522 \end_layout
23523
23524 \end_inset
23525
23526 , that works like a normal text inset but has a free spacing capability.
23527 \end_layout
23528
23529 \begin_layout Standard
23530 As a special note, you can also use the 
23531 \begin_inset Quotes eld
23532 \end_inset
23533
23534 %def
23535 \begin_inset Quotes erd
23536 \end_inset
23537
23538  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23539 rence:
23540 \end_layout
23541
23542 \begin_layout LyX-Code
23543 <<My chunk>>=
23544 \end_layout
23545
23546 \begin_layout LyX-Code
23547 def some_function(args):
23548 \end_layout
23549
23550 \begin_layout LyX-Code
23551    "This is the doc string for this function."
23552 \end_layout
23553
23554 \begin_layout LyX-Code
23555    print "My args: ", args
23556 \end_layout
23557
23558 \begin_layout LyX-Code
23559 @ %def some_function
23560 \end_layout
23561
23562 \begin_layout Standard
23563 For an example of this usage and the resulting cross-reference output, look
23564  at the Literate python program in 
23565 \emph on
23566 LIBDIR/examples/listerrors.lyx
23567 \emph default
23568  which should make this all clear.
23569 \end_layout
23570
23571 \begin_layout Paragraph
23572 Generating the documentation
23573 \end_layout
23574
23575 \begin_layout Standard
23576 At this point you already have a new document file with a proper document
23577  class, and with some code and text on it.
23578  How do I print it? The answer is simple, you select 
23579 \family sans
23580 View\SpecialChar menuseparator
23581 DVI,
23582 \family default
23583  etc.
23584  Just like you would do for a plain document.
23585  No special procedure is required.
23586 \end_layout
23587
23588 \begin_layout Standard
23589 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23590 :
23591 \end_layout
23592
23593 \begin_layout Enumerate
23594 When the 
23595 \family sans
23596 Update\SpecialChar menuseparator
23597 DVI
23598 \family default
23599  menu option is chosen, a \SpecialChar LaTeX
23600  file is generated.
23601  
23602 \end_layout
23603
23604 \begin_deeper
23605 \begin_layout Standard
23606 If the document is of any literate class the generated file will be named
23607  with an extension name defined by the 
23608 \begin_inset Quotes eld
23609 \end_inset
23610
23611 literate
23612 \begin_inset Quotes erd
23613 \end_inset
23614
23615  format (defined in the Preferences panel), otherwise the file will have
23616  the usual 
23617 \family typewriter
23618 .tex
23619 \family default
23620  extension.
23621 \end_layout
23622
23623 \end_deeper
23624 \begin_layout Enumerate
23625 Note that the only difference so far is in the name of the file, no special
23626  processing is required by \SpecialChar LyX
23627 .
23628  Given that you formatted the code using the 
23629 \begin_inset Flex Noun
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 Chunk
23634 \end_layout
23635
23636 \end_inset
23637
23638  inset that, by itself, takes care of the business.
23639 \end_layout
23640
23641 \begin_layout Enumerate
23642 If the document is of any literate class \SpecialChar LyX
23643  will then use the internal \SpecialChar LyX
23644  to
23645  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23646  converter
23647 \begin_inset Foot
23648 status collapsed
23649
23650 \begin_layout Plain Layout
23651 The converters are defined in the 
23652 \family sans
23653 Tools\SpecialChar menuseparator
23654 Preferences
23655 \family default
23656  panel, under the 
23657 \begin_inset Quotes eld
23658 \end_inset
23659
23660 Conversion
23661 \begin_inset Quotes erd
23662 \end_inset
23663
23664  tab.
23665  See section 
23666 \emph on
23667 Converters
23668 \emph default
23669  of the 
23670 \emph on
23671 Customization
23672 \emph default
23673  manual for general information about converters.
23674 \end_layout
23675
23676 \end_inset
23677
23678  to generate the \SpecialChar LaTeX
23679  file.
23680 \end_layout
23681
23682 \begin_deeper
23683 \begin_layout Standard
23684 Otherwise it will just skip this step.
23685 \end_layout
23686
23687 \end_deeper
23688 \begin_layout Enumerate
23689 Finally, \SpecialChar LaTeX
23690  is invoked and the regular post processing continues as in a plain
23691  document.
23692 \end_layout
23693
23694 \begin_layout Standard
23695 Independence from a particular 
23696 \begin_inset Quotes eld
23697 \end_inset
23698
23699 literate tool
23700 \begin_inset Quotes erd
23701 \end_inset
23702
23703  is easily achieved by changing the commands that are run by the various
23704  converters.
23705 \end_layout
23706
23707 \begin_layout Paragraph
23708 Generating the code
23709 \end_layout
23710
23711 \begin_layout Standard
23712 When the build menu option is chosen or the corresponding button in the
23713  toolbar is pressed, a \SpecialChar LaTeX
23714  file is generated just like step 1 above.
23715  Next, \SpecialChar LyX
23716  invokes the 
23717 \family typewriter
23718 Noweb->Program
23719 \family default
23720  converter.
23721  This converter needs to be defined by the user and is not installed by
23722  default, though the Program format is.
23723  This converter (like any other converter) will have two parts:
23724 \end_layout
23725
23726 \begin_layout Enumerate
23727 The converter program itself.
23728  This program performs the conversion from the one format to the other (in
23729  this case, from the Noweb format to the Program pseudo-format).
23730 \end_layout
23731
23732 \begin_layout Enumerate
23733 The error log parser.
23734  This is a program whose sole purpose is to rewrite error messages in a
23735  format that \SpecialChar LyX
23736  understands.
23737  This makes it possible for \SpecialChar LyX
23738  to place error boxes in the right places in
23739  the file buffer.
23740 \end_layout
23741
23742 \begin_layout Standard
23743 The first part, the 
23744 \begin_inset Quotes eld
23745 \end_inset
23746
23747 Converter
23748 \begin_inset Quotes erd
23749 \end_inset
23750
23751  setting, should be set to
23752 \end_layout
23753
23754 \begin_layout LyX-Code
23755
23756 \family typewriter
23757 build-script $$i
23758 \family default
23759  $$r
23760 \end_layout
23761
23762 \begin_layout Standard
23763 This basically means that \SpecialChar LyX
23764  will call 
23765 \begin_inset Quotes eld
23766 \end_inset
23767
23768 build-script
23769 \begin_inset Quotes erd
23770 \end_inset
23771
23772  (a program or script) with the name of the Noweb file (normally a file
23773  in the \SpecialChar LyX
23774  temp directory) and the directory path of the original \SpecialChar LyX
23775  file.
23776  
23777 \end_layout
23778
23779 \begin_layout Standard
23780 This is an implementation of 
23781 \begin_inset Quotes eld
23782 \end_inset
23783
23784 build-script
23785 \begin_inset Quotes erd
23786 \end_inset
23787
23788  that you can place in a directory on your path:
23789 \end_layout
23790
23791 \begin_layout LyX-Code
23792
23793 \family sans
23794 #!/bin/sh
23795 \end_layout
23796
23797 \begin_layout LyX-Code
23798
23799 \family sans
23800 #
23801 \end_layout
23802
23803 \begin_layout LyX-Code
23804
23805 \family sans
23806 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23807 \end_layout
23808
23809 \begin_layout Standard
23810 The next part of the converter setting is the 
23811 \begin_inset Quotes eld
23812 \end_inset
23813
23814 Flags
23815 \begin_inset Quotes erd
23816 \end_inset
23817
23818  which is to be set to
23819 \end_layout
23820
23821 \begin_layout LyX-Code
23822
23823 \family typewriter
23824 parselog=$$s/scripts/listerrors
23825 \end_layout
23826
23827 \begin_layout Standard
23828 This will run any errors that are generated by the 
23829 \begin_inset Quotes eld
23830 \end_inset
23831
23832 build-script
23833 \begin_inset Quotes erd
23834 \end_inset
23835
23836  process through the 
23837 \begin_inset Quotes eld
23838 \end_inset
23839
23840 listerrors
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844  program.
23845 \end_layout
23846
23847 \begin_layout Standard
23848 The build will normally take place in \SpecialChar LyX
23849 's temporary directory, so the files
23850  produced by the conversion will be in that directory.
23851  \SpecialChar LyX
23852  will copy out what it regards as the `main' file, but the 
23853 \family typewriter
23854 Noweb->Program
23855 \family default
23856  conversion may produce several files, and so most of these would then be
23857  deleted when \SpecialChar LyX
23858  was closed.
23859  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23860  the build-script chunk can place the generated files in that location.
23861 \end_layout
23862
23863 \begin_layout Paragraph
23864 Build instructions in the document
23865 \end_layout
23866
23867 \begin_layout Standard
23868 The last piece of the integration between \SpecialChar LyX
23869  and noweb is the 
23870 \begin_inset Quotes eld
23871 \end_inset
23872
23873 build-script
23874 \begin_inset Quotes erd
23875 \end_inset
23876
23877  chunk.
23878  Generally, the instructions for building your program should be embedded
23879  in a chunk of its own.
23880  The noweb-specific 
23881 \begin_inset Quotes eld
23882 \end_inset
23883
23884 build-script
23885 \begin_inset Quotes erd
23886 \end_inset
23887
23888  above uses the notangle command to look for this chunk (called 
23889 \begin_inset Quotes eld
23890 \end_inset
23891
23892 build-script
23893 \begin_inset Quotes erd
23894 \end_inset
23895
23896 ) and runs its contents through 
23897 \begin_inset Quotes eld
23898 \end_inset
23899
23900 sh
23901 \begin_inset Quotes erd
23902 \end_inset
23903
23904 .
23905 \end_layout
23906
23907 \begin_layout Standard
23908 Typically, such a chunk would look something like this:
23909 \end_layout
23910
23911 \begin_layout LyX-Code
23912 <<build-script>>=
23913 \end_layout
23914
23915 \begin_layout LyX-Code
23916 #!/bin/sh
23917 \begin_inset Newline newline
23918 \end_inset
23919
23920 if [ -z "${NOWEB_SOURCE}" ]
23921 \begin_inset Newline newline
23922 \end_inset
23923
23924 then
23925 \end_layout
23926
23927 \begin_layout LyX-Code
23928 NOWEB_SOURCE=myfile.nw
23929 \begin_inset Newline newline
23930 \end_inset
23931
23932 fi
23933 \begin_inset Newline newline
23934 \end_inset
23935
23936 [...
23937  code to extract files ...
23938  use NOWEB_OUTPUT_DIR here ...]
23939 \begin_inset Newline newline
23940 \end_inset
23941
23942 [...
23943  code to compile files ...]
23944 \begin_inset Newline newline
23945 \end_inset
23946
23947 @
23948 \end_layout
23949
23950 \begin_layout Standard
23951 Look in 
23952 \emph on
23953 LIBDIR/examples/listerrors.lyx
23954 \emph default
23955  or in 
23956 \emph on
23957 LIBDIR/examples/Literate.lyx
23958 \emph default
23959  which implement two versions of the 
23960 \begin_inset Quotes eld
23961 \end_inset
23962
23963 listerrors
23964 \begin_inset Quotes erd
23965 \end_inset
23966
23967  program for some illustrations of how all of these pieces go together or
23968  in 
23969 \emph on
23970 LIBDIR/examples/noweb2lyx.lyx.
23971
23972 \emph default
23973  Interestingly, these three files show off the language-indepence of the
23974  \SpecialChar LyX
23975  literate programming support since they are written in Python, C and Perl
23976  respectively.
23977 \end_layout
23978
23979 \begin_layout Subsubsection
23980 Configuring \SpecialChar LyX
23981
23982 \end_layout
23983
23984 \begin_layout Standard
23985 All the Literate Programming support is configured by the 
23986 \family sans
23987 Tools\SpecialChar menuseparator
23988 Preferences
23989 \family default
23990  panel in the 
23991 \begin_inset Quotes eld
23992 \end_inset
23993
23994 File Handling
23995 \begin_inset Quotes erd
23996 \end_inset
23997
23998  tab.
23999  The important parts are:
24000 \end_layout
24001
24002 \begin_layout Description
24003 the
24004 \begin_inset space ~
24005 \end_inset
24006
24007
24008 \begin_inset Quotes eld
24009 \end_inset
24010
24011 NoWeb
24012 \begin_inset Quotes erd
24013 \end_inset
24014
24015
24016 \begin_inset space ~
24017 \end_inset
24018
24019 format Set up via the File Formats tab, this is where the Noweb-specific
24020  pieces are set up.
24021  The 
24022 \family sans
24023 GUI Name
24024 \family default
24025  is set to 
24026 \family typewriter
24027 NoWeb
24028 \family default
24029 , the file extension is set to 
24030 \family typewriter
24031 .nw
24032 \family default
24033 .
24034  This tells \SpecialChar LyX
24035  to create a file with a 
24036 \family typewriter
24037 .nw
24038 \family default
24039  extension in the first step of the conversion process.
24040 \end_layout
24041
24042 \begin_layout Description
24043 the
24044 \begin_inset space ~
24045 \end_inset
24046
24047
24048 \family sans
24049 Program
24050 \family default
24051
24052 \begin_inset space ~
24053 \end_inset
24054
24055 format This is an empty format whose sole purpose is to be the endpoint
24056  of a conversion (which then allows us to set up a converter for it).
24057 \end_layout
24058
24059 \begin_layout Description
24060
24061 \family sans
24062 NoWeb
24063 \family default
24064 ->
24065 \family sans
24066 \SpecialChar LaTeX
24067
24068 \family default
24069  This converter performs the 
24070 \begin_inset Quotes eld
24071 \end_inset
24072
24073 weaving
24074 \begin_inset Quotes erd
24075 \end_inset
24076
24077  of the literate document.
24078  For Noweb, it is set to 
24079 \begin_inset Quotes eld
24080 \end_inset
24081
24082
24083 \family typewriter
24084 noweave -delay -index $$i > $$o
24085 \family default
24086
24087 \begin_inset Quotes erd
24088 \end_inset
24089
24090
24091 \end_layout
24092
24093 \begin_layout Description
24094
24095 \family sans
24096 NoWeb
24097 \family default
24098 ->
24099 \family sans
24100 Program
24101 \family default
24102  This performs the 
24103 \begin_inset Quotes eld
24104 \end_inset
24105
24106 tangling step
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 .
24111  As stated above, the Converter is set to 
24112 \begin_inset Quotes eld
24113 \end_inset
24114
24115
24116 \family typewriter
24117 build-script $$i
24118 \family default
24119  $$r
24120 \begin_inset Quotes erd
24121 \end_inset
24122
24123 , with Flags set to
24124 \begin_inset Newline newline
24125 \end_inset
24126
24127
24128 \begin_inset Quotes eld
24129 \end_inset
24130
24131
24132 \family typewriter
24133 parselog=$$s/scripts/listerrors
24134 \family default
24135
24136 \begin_inset Quotes erd
24137 \end_inset
24138
24139 .
24140 \end_layout
24141
24142 \begin_layout Subsubsection
24143 Debug extensions
24144 \end_layout
24145
24146 \begin_layout Standard
24147 There is also a new function implemented in the \SpecialChar LyX
24148  server, the 
24149 \begin_inset Quotes eld
24150 \end_inset
24151
24152 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24153  
24154 \end_layout
24155
24156 \begin_layout Standard
24157 When debugging code with ddd/gdb, it is possible to invoke a text editor
24158  at the current execution position with a single key stroke.
24159  The default ddd configuration for that is shift-ctrl-V.
24160  It happens that you can define the editor command line invocation in ddd
24161  by accessing the 
24162 \family sans
24163 Edit\SpecialChar menuseparator
24164 Preferences\SpecialChar menuseparator
24165 Helpers
24166 \family default
24167  dialog and changing the "Edit Sources" entry.
24168 \end_layout
24169
24170 \begin_layout Standard
24171 I take advantage of the newly created \SpecialChar LyX
24172  server function and this ddd feature,
24173  and set 
24174 \begin_inset Quotes eld
24175 \end_inset
24176
24177 Edit Sources
24178 \begin_inset Quotes erd
24179 \end_inset
24180
24181  to:
24182 \end_layout
24183
24184 \begin_layout LyX-Code
24185 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24186 \end_layout
24187
24188 \begin_layout Standard
24189 With this, whenever you are using ddd and find a point in the program that
24190  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24191  ddd will forward this information to \SpecialChar LyX
24192  through the \SpecialChar LyX
24193  server and then the
24194  \SpecialChar LyX
24195  window will show the same file with the cursor at the same position ddd
24196  was pointing to.
24197  No more guessing or long scrolling to locate a point in the program back
24198  from debugging !
24199 \end_layout
24200
24201 \begin_layout Standard
24202 Note however that you must enable the \SpecialChar LyX
24203  server to get this feature working
24204  (it is disabled by default).
24205  Sec.
24206 \begin_inset space ~
24207 \end_inset
24208
24209
24210 \begin_inset CommandInset ref
24211 LatexCommand ref
24212 reference "sec:Starting-the-Server"
24213
24214 \end_inset
24215
24216  explains how to do that.
24217 \end_layout
24218
24219 \begin_layout Subsubsection
24220 Toolbar extensions
24221 \end_layout
24222
24223 \begin_layout Standard
24224 There are six new buttons that can be added to your \SpecialChar LyX
24225  toolbar.
24226  Four of these buttons are short cuts to layout styles: 
24227 \family sans
24228 Standard
24229 \family default
24230
24231 \family sans
24232 Section
24233 \family default
24234
24235 \family sans
24236 \SpecialChar LaTeX
24237
24238 \family default
24239 , and 
24240 \family sans
24241 \SpecialChar LyX
24242 -Code
24243 \family default
24244 , one for the custom inset 
24245 \family sans
24246 Chunk
24247 \family default
24248 .
24249  The last one is a short cut to the 
24250 \begin_inset Quotes eld
24251 \end_inset
24252
24253 Build Program
24254 \begin_inset Quotes erd
24255 \end_inset
24256
24257  File menu entry.
24258  
24259 \end_layout
24260
24261 \begin_layout Standard
24262 \SpecialChar LyX
24263  has a range of buttons that are available for tool bar customization.
24264  In my toolbar I like to combine the six short cuts above with two more:
24265  One for 
24266 \family sans
24267 Document
24268 \family default
24269 \SpecialChar menuseparator
24270
24271 \family sans
24272 Update
24273 \family default
24274 \SpecialChar menuseparator
24275
24276 \family sans
24277 DVI
24278 \family default
24279  and the other for 
24280 \family sans
24281 Document\SpecialChar menuseparator
24282 View\SpecialChar menuseparator
24283 DVI
24284 \family default
24285  File menu entries.
24286  Here is how it looks like:
24287 \end_layout
24288
24289 \begin_layout LyX-Code
24290 Toolbar
24291 \end_layout
24292
24293 \begin_layout LyX-Code
24294   Layouts
24295 \end_layout
24296
24297 \begin_layout LyX-Code
24298   Icon "layout Standard"
24299 \end_layout
24300
24301 \begin_layout LyX-Code
24302   Icon "layout Section"
24303 \end_layout
24304
24305 \begin_layout LyX-Code
24306   Icon "layout \SpecialChar LaTeX
24307 "
24308 \end_layout
24309
24310 \begin_layout LyX-Code
24311   Icon "layout \SpecialChar LyX
24312 -Code"
24313 \end_layout
24314
24315 \begin_layout LyX-Code
24316   Icon "flex.insert Chunk"
24317 \end_layout
24318
24319 \begin_layout LyX-Code
24320   Separator
24321 \end_layout
24322
24323 \begin_layout LyX-Code
24324   Icon "buffer-view"
24325 \end_layout
24326
24327 \begin_layout LyX-Code
24328   Icon "buffer-typeset"
24329 \end_layout
24330
24331 \begin_layout LyX-Code
24332   Icon "build-program"
24333 \end_layout
24334
24335 \begin_layout LyX-Code
24336   Separator
24337 \end_layout
24338
24339 \begin_layout LyX-Code
24340 .
24341 \end_layout
24342
24343 \begin_layout LyX-Code
24344 .
24345 \end_layout
24346
24347 \begin_layout LyX-Code
24348 .
24349 \end_layout
24350
24351 \begin_layout LyX-Code
24352 End
24353 \end_layout
24354
24355 \begin_layout Subsubsection
24356 Colors customization
24357 \end_layout
24358
24359 \begin_layout Standard
24360 There are a number of colors in \SpecialChar LyX
24361  that can be customized in 
24362 \family sans
24363 Preferences
24364 \family default
24365 .
24366  One of the things that bothers people is the \SpecialChar LaTeX
24367  font color.
24368  The default color is red, since the chunks uses \SpecialChar LaTeX
24369  font, and there is a lot
24370  of chunks in literate documents, you may get tired of seeing everything
24371  in red.
24372  You can change it by going to the tabs 
24373 \family sans
24374 Look&Feel
24375 \family default
24376
24377 \family sans
24378 Colors.
24379 \end_layout
24380
24381 \begin_layout Standard
24382 The next thing is the visible presence of the newline character in the screen.
24383  You can choose the color of this particular character and make it blend
24384  in the background.
24385  I recommend you choosing a color that is close to the background but not
24386  equal, that way you still can see it is there, but it is not bothering
24387  you anymore.
24388 \end_layout
24389
24390 \begin_layout Subsection
24391 \SpecialChar LyX
24392  and knitr/Sweave
24393 \end_layout
24394
24395 \begin_layout Standard
24396 Support for 
24397 \family sans
24398 knitr
24399 \family default
24400  and 
24401 \family sans
24402 Sweave
24403 \family default
24404  is documented in the 
24405 \emph on
24406 knitr.lyx
24407 \emph default
24408  example file and in the Sweave manual (menu 
24409 \family sans
24410 Help\SpecialChar menuseparator
24411 Specific Manuals
24412 \family default
24413 ).
24414 \end_layout
24415
24416 \begin_layout Chapter
24417 Special features
24418 \end_layout
24419
24420 \begin_layout Standard
24421 You can do everything with \SpecialChar LyX
24422  that you can do with \SpecialChar LaTeX
24423 .
24424  However, \SpecialChar LyX
24425  cannot support every \SpecialChar LaTeX
24426  feature directly.
24427  But you can always use \SpecialChar TeX
24428  Code.
24429  This chapter shows you some more special things you might want to use.
24430  For other special things you can do with figures, tables, floats, boxes
24431  and notes, have a look at the 
24432 \emph on
24433 Embedded
24434 \begin_inset space ~
24435 \end_inset
24436
24437 Objects
24438 \emph default
24439  manual.
24440 \end_layout
24441
24442 \begin_layout Section
24443 Multiple Text Columns
24444 \end_layout
24445
24446 \begin_layout Standard
24447 This feature is independent of the option 
24448 \family sans
24449 Two-column document
24450 \family default
24451  in the document settings under 
24452 \family sans
24453 Text Layout
24454 \family default
24455 .
24456  If you want to have 2
24457 \begin_inset space ~
24458 \end_inset
24459
24460 columns for the whole document, it is recommended to use the 
24461 \family sans
24462 Two-column document
24463 \family default
24464  option.
24465  For all other cases use this feature.
24466 \end_layout
24467
24468 \begin_layout Standard
24469 To use multiple text columns in your document, you have to load the module
24470  
24471 \family sans
24472 Multiple Columns
24473 \family default
24474  (menu 
24475 \family sans
24476 Document\SpecialChar menuseparator
24477 Settings\SpecialChar menuseparator
24478 Modules
24479 \family default
24480 ) and must have the \SpecialChar LaTeX
24481 -package 
24482 \begin_inset Flex Code
24483 status collapsed
24484
24485 \begin_layout Plain Layout
24486 multicol
24487 \end_layout
24488
24489 \end_inset
24490
24491  installed.
24492 \end_layout
24493
24494 \begin_layout Standard
24495 Footnotes within multiple columns will be placed at the bottom of the page
24496  and not under each column.
24497  Within the different columns you can use everything, with the limitation
24498  that for floats you need to use the float option 
24499 \family sans
24500 Span columns
24501 \family default
24502 .
24503 \end_layout
24504
24505 \begin_layout Subsection
24506 Basics
24507 \end_layout
24508
24509 \begin_layout Standard
24510 If you want to have 2
24511 \begin_inset space ~
24512 \end_inset
24513
24514 columns in your text, insert a multicolumn inset via the menu 
24515 \family sans
24516 Insert\SpecialChar menuseparator
24517 Custom
24518 \begin_inset space ~
24519 \end_inset
24520
24521 Insets\SpecialChar menuseparator
24522 Multiple
24523 \begin_inset space ~
24524 \end_inset
24525
24526 Columns
24527 \family default
24528  where the columns should start.
24529  Write all text that should be printed in 2
24530 \begin_inset space ~
24531 \end_inset
24532
24533 columns into this inset.
24534 \end_layout
24535
24536 \begin_layout Standard
24537 Here is an example:
24538 \end_layout
24539
24540 \begin_layout Standard
24541 \noindent
24542 \begin_inset Flex Multiple Columns
24543 status open
24544
24545 \begin_layout Plain Layout
24546 \noindent
24547
24548 \series bold
24549 \size small
24550 The Adventure of the Empty House
24551 \series default
24552
24553 \begin_inset Newline newline
24554 \end_inset
24555
24556 by Sir Arthur Conan Doyle
24557 \end_layout
24558
24559 \begin_layout Plain Layout
24560
24561 \size small
24562 It was in the spring of the year 1894 that all London was interested, and
24563  the fashionable world dismayed, by the murder of the Honourable Ronald
24564  Adair under most unusual and inexplicable circumstances.
24565  The public has already learned those particulars of the crime which came
24566  out in the police investigation, but a good deal was suppressed upon that
24567  occasion, since the case for the prosecution was so overwhelmingly strong
24568  that it was not necessary to bring forward all the facts.
24569  Only now, at the end of nearly ten years, am I allowed to supply those
24570  missing links which make up the whole of that remarkable chain.
24571  The crime was of interest in itself, but that interest was as nothing to
24572  me compared to the inconceivable sequel, which afforded me the greatest
24573  shock and surprise of any event in my adventurous life.
24574  Even now, after this long interval, I find myself thrilling as I think
24575  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24576 ty which utterly submerged my mind.
24577  Let me say to that public, which has shown some interest in those glimpses
24578  which I have occasionally given them of the thoughts and actions of a very
24579  remarkable man, that they are not to blame me if I have not shared my knowledge
24580  with them, for I should have considered it my first duty to do so, had
24581  I not been barred by a positive prohibition from his own lips, which was
24582  only withdrawn upon the third of last month.
24583 \end_layout
24584
24585 \end_inset
24586
24587
24588 \end_layout
24589
24590 \begin_layout Standard
24591 To get 3 or more columns, set the cursor into the multicolumn inset and
24592  use the menu 
24593 \family sans
24594 Insert\SpecialChar menuseparator
24595 Number
24596 \begin_inset space ~
24597 \end_inset
24598
24599 of
24600 \begin_inset space ~
24601 \end_inset
24602
24603 Columns
24604 \family default
24605 .
24606  The number of the desired columns is written into that inset (for 3
24607 \begin_inset space ~
24608 \end_inset
24609
24610 columns write 
24611 \begin_inset Quotes eld
24612 \end_inset
24613
24614 3
24615 \begin_inset Quotes erd
24616 \end_inset
24617
24618 ).
24619 \begin_inset Newline newline
24620 \end_inset
24621
24622 Here is an example with 3
24623 \begin_inset space ~
24624 \end_inset
24625
24626 columns:
24627 \end_layout
24628
24629 \begin_layout Standard
24630 \begin_inset Flex Multiple Columns
24631 status open
24632
24633 \begin_layout Plain Layout
24634
24635 \size footnotesize
24636 \begin_inset Argument 1
24637 status open
24638
24639 \begin_layout Plain Layout
24640
24641 3
24642 \end_layout
24643
24644 \end_inset
24645
24646 It can be imagined that my close intimacy with Sherlock Holmes had interested
24647  me deeply in crime, and that after his disappearance I never failed to
24648  read with care the various problems which came before the public.
24649  And I even attempted, more than once, for my own private satisfaction,
24650  to employ his methods in their solution, though with indifferent success.
24651  There was none, however, which appealed to me like this tragedy of Ronald
24652  Adair.
24653  As I read the evidence at the inquest, which led up to a verdict of willful
24654  murder against some person or persons unknown, I realized more clearly
24655  than I had ever done the loss which the community had sustained by the
24656  death of Sherlock Holmes.
24657  There were points about this strange business which would, I was sure,
24658  have specially appealed to him, and the efforts of the police would have
24659  been supplemented, or more probably anticipated, by the trained observation
24660  and the alert mind of the first criminal agent in Europe.
24661  All day, as I drove upon my round, I turned over the case in my mind and
24662  found no explanation which appeared to me to be adequate.
24663  At the risk of telling a twice-told tale, I will recapitulate the facts
24664  as they were known to the public at the conclusion of the inquest.
24665 \end_layout
24666
24667 \end_inset
24668
24669
24670 \end_layout
24671
24672 \begin_layout Standard
24673 You can have up to 10
24674 \begin_inset space ~
24675 \end_inset
24676
24677 columns if you want to, but that might not be very pleasant for the readers
24678  of your document.
24679 \end_layout
24680
24681 \begin_layout Standard
24682 \begin_inset Newpage newpage
24683 \end_inset
24684
24685
24686 \end_layout
24687
24688 \begin_layout Subsection
24689 Columns inside Columns
24690 \end_layout
24691
24692 \begin_layout Standard
24693 You can also have columns inside columns:
24694 \end_layout
24695
24696 \begin_layout Standard
24697 \begin_inset Flex Multiple Columns
24698 status open
24699
24700 \begin_layout Plain Layout
24701
24702 \size footnotesize
24703 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24704  at that time governor of one of the Australian colonies.
24705  Adair's mother had returned from Australia to undergo the operation for
24706  cataract, and she, her son Ronald, and her daughter Hilda were living together
24707  at 427 Park Lane.
24708 \end_layout
24709
24710 \begin_layout Plain Layout
24711 \begin_inset Flex Multiple Columns
24712 status open
24713
24714 \begin_layout Plain Layout
24715
24716 \size footnotesize
24717 The youth moved in the best society
24718 \begin_inset space ~
24719 \end_inset
24720
24721 – had, so far as was known, no enemies and no particular vices.
24722  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24723  had been broken off by mutual consent some months before, and there was
24724  no sign that it had left any very profound feeling behind it.
24725  For the rest {sic} the man's life moved in a narrow and conventional circle,
24726  for his habits were quiet and his nature unemotional.
24727  Yet it was upon this easy-going young aristocrat that death came, in most
24728  strange and unexpected form, between the hours of ten and eleven-twenty
24729  on the night of March 30, 1894.
24730 \end_layout
24731
24732 \end_inset
24733
24734
24735 \end_layout
24736
24737 \begin_layout Plain Layout
24738
24739 \size footnotesize
24740 Ronald Adair was fond of cards
24741 \begin_inset space ~
24742 \end_inset
24743
24744 – playing continually, but never for such stakes as would hurt him.
24745  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24746  It was shown that, after dinner on the day of his death, he had played
24747  a rubber of whist at the latter club.
24748  He had also played there in the afternoon.
24749
24750 \size default
24751  
24752 \size footnotesize
24753 The evidence of those who had played with him
24754 \begin_inset space ~
24755 \end_inset
24756
24757 – Mr.
24758  Murray, Sir John Hardy, and Colonel Moran
24759 \begin_inset space ~
24760 \end_inset
24761
24762 – showed that the game was whist, and that there was a fairly equal fall
24763  of the cards.
24764  Adair might have lost five pounds, but not more.
24765  His fortune was a considerable one, and such a loss could not in any way
24766  affect him.
24767  He had played nearly every day at one club or other, but he was a cautious
24768  player, and usually rose a winner.
24769  It came out in evidence that, in partnership with Colonel Moran, he had
24770  actually won as much as four hundred and twenty pounds in a sitting, some
24771  weeks before, from Godfrey Milner and Lord Balmoral.
24772  So much for his recent history as it came out at the inquest.
24773 \end_layout
24774
24775 \end_inset
24776
24777
24778 \end_layout
24779
24780 \begin_layout Subsection
24781 Advanced Examples
24782 \end_layout
24783
24784 \begin_layout Standard
24785 The examples in this section show some more special features of multiple
24786  columns.
24787 \end_layout
24788
24789 \begin_layout Standard
24790 For more features of multiple columns, have a look at the 
24791 \begin_inset CommandInset href
24792 LatexCommand href
24793 name "documentation"
24794 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24795 literal "false"
24796
24797 \end_inset
24798
24799  of the \SpecialChar LaTeX
24800 -package 
24801 \begin_inset Flex Code
24802 status collapsed
24803
24804 \begin_layout Plain Layout
24805 multicol
24806 \end_layout
24807
24808 \end_inset
24809
24810 .
24811 \end_layout
24812
24813 \begin_layout Subsubsection
24814 Preface
24815 \end_layout
24816
24817 \begin_layout Standard
24818 To add a preface text for multiple columns, set the cursor into the multicolumn
24819  inset and use the menu 
24820 \family sans
24821 Insert\SpecialChar menuseparator
24822 Preface
24823 \family default
24824 .
24825  Write your preface text into that inset.
24826 \begin_inset Newline newline
24827 \end_inset
24828
24829 This is an example with some preface text:
24830 \end_layout
24831
24832 \begin_layout Standard
24833 \begin_inset VSpace bigskip
24834 \end_inset
24835
24836
24837 \end_layout
24838
24839 \begin_layout Standard
24840 \begin_inset Flex Multiple Columns
24841 status open
24842
24843 \begin_layout Plain Layout
24844 \begin_inset Argument 2
24845 status open
24846
24847 \begin_layout Plain Layout
24848 And the story continues and continues and continues and continues\SpecialChar ldots
24849
24850 \end_layout
24851
24852 \end_inset
24853
24854
24855 \size small
24856 On the evening of the crime, he returned from the club exactly at ten.
24857  His mother and sister were out spending the evening with a relation.
24858  The servant deposed that she heard him enter the front room on the second
24859  floor, generally used as his sitting-room.
24860  She had lit a fire there, and as it smoked she had opened the window.
24861  No sound was heard from the room until eleven-twenty, the hour of the return
24862  of Lady Maynooth and her daughter.
24863  Desiring to say good-night, she attempted to enter her son's room.
24864  The door was locked on the inside, and no answer could be got to their
24865  cries and knocking.
24866  Help was obtained, and the door forced.
24867  The unfortunate young man was found lying near the table.
24868  His head had been horribly mutilated by an expanding revolver bullet, but
24869  no weapon of any sort was to be found in the room.
24870 \end_layout
24871
24872 \end_inset
24873
24874
24875 \end_layout
24876
24877 \begin_layout Standard
24878 You can also use a section heading as the preface if you use a section command
24879  as \SpecialChar TeX
24880  Code.
24881  For example the command
24882 \end_layout
24883
24884 \begin_layout LyX-Code
24885
24886 \backslash
24887 subsection{subsection title}
24888 \end_layout
24889
24890 \begin_layout Standard
24891 creates a subsection.
24892  In this example the preface is a subsubsection:
24893 \end_layout
24894
24895 \begin_layout Standard
24896 \begin_inset Flex Multiple Columns
24897 status open
24898
24899 \begin_layout Plain Layout
24900 \begin_inset Argument 2
24901 status open
24902
24903 \begin_layout Plain Layout
24904 \begin_inset ERT
24905 status collapsed
24906
24907 \begin_layout Plain Layout
24908
24909
24910 \backslash
24911 subsubsection{
24912 \end_layout
24913
24914 \end_inset
24915
24916 This is a subsubsection heading as a preface
24917 \begin_inset ERT
24918 status collapsed
24919
24920 \begin_layout Plain Layout
24921
24922 }
24923 \end_layout
24924
24925 \end_inset
24926
24927
24928 \end_layout
24929
24930 \end_inset
24931
24932
24933 \size small
24934 A minute examination of the circumstances served only to make the case more
24935  complex.
24936  In the first place, no reason could be given why the young man should have
24937  fastened the door upon the inside.
24938  There was the possibility that the murderer had done this, and had afterwards
24939  escaped by the window.
24940  The drop was at least twenty feet, however, and a bed of crocuses in full
24941  bloom lay beneath.
24942  Neither the flowers nor the earth showed any sign of having been disturbed,
24943  nor were there any marks upon the narrow strip of grass which separated
24944  the house from the road.
24945  Apparently, therefore, it was the young man himself who had fastened the
24946  door.
24947  But how did he come by his death? No one could have climbed up to the window
24948  without leaving traces.
24949  Suppose a man had fired through the window, he would indeed be a remarkable
24950  shot who could with a revolver inflict so deadly a wound.
24951  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24952  a hundred yards of the house.
24953  No one had heard a shot.
24954 \end_layout
24955
24956 \end_inset
24957
24958
24959 \end_layout
24960
24961 \begin_layout Standard
24962 If there is less vertical space than 6
24963 \begin_inset space ~
24964 \end_inset
24965
24966 text lines is left on the page at the beginning of the multiple columns,
24967  a page break will be inserted before the multiple columns.
24968  Depending on the number of lines of the preface text, you might want to
24969  change this space.
24970  This is done by setting the cursor into the mulitcolumn inset behind the
24971  preface (if there is any) and using the menu 
24972 \family sans
24973 Insert\SpecialChar menuseparator
24974 Space
24975 \begin_inset space ~
24976 \end_inset
24977
24978 Before
24979 \begin_inset space ~
24980 \end_inset
24981
24982 Page
24983 \begin_inset space ~
24984 \end_inset
24985
24986 Break
24987 \family default
24988 .
24989  Insert into that inset the amount of space like e.
24990 \begin_inset space \thinspace{}
24991 \end_inset
24992
24993 g.
24994 \begin_inset space \space{}
24995 \end_inset
24996
24997
24998 \begin_inset Quotes eld
24999 \end_inset
25000
25001 5cm
25002 \begin_inset Quotes erd
25003 \end_inset
25004
25005 .
25006 \begin_inset Newline newline
25007 \end_inset
25008
25009 In this example the space is set to 7
25010 \begin_inset space ~
25011 \end_inset
25012
25013 text lines by using 
25014 \begin_inset Flex Code
25015 status collapsed
25016
25017 \begin_layout Plain Layout
25018 7
25019 \backslash
25020 baselineskip
25021 \end_layout
25022
25023 \end_inset
25024
25025  (where the command 
25026 \begin_inset Flex Code
25027 status collapsed
25028
25029 \begin_layout Plain Layout
25030
25031 \backslash
25032 baselineskip
25033 \end_layout
25034
25035 \end_inset
25036
25037  needs to be inserted as \SpecialChar TeX
25038  code):
25039 \end_layout
25040
25041 \begin_layout Standard
25042 \begin_inset Flex Multiple Columns
25043 status open
25044
25045 \begin_layout Plain Layout
25046 \begin_inset Argument 3
25047 status open
25048
25049 \begin_layout Plain Layout
25050 7
25051 \begin_inset ERT
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055
25056
25057 \backslash
25058 baselineskip
25059 \end_layout
25060
25061 \end_inset
25062
25063
25064 \end_layout
25065
25066 \end_inset
25067
25068
25069 \size small
25070 On the evening of the crime, he returned from the club exactly at ten.
25071  His mother and sister were out spending the evening with a relation.
25072  The servant deposed that she heard him enter the front room on the second
25073  floor, generally used as his sitting-room.
25074  She had lit a fire there, and as it smoked she had opened the window.
25075  No sound was heard from the room until eleven-twenty, the hour of the return
25076  of Lady Maynooth and her daughter.
25077  Desiring to say good-night, she attempted to enter her son's room.
25078  The door was locked on the inside, and no answer could be got to their
25079  cries and knocking.
25080  Help was obtained, and the door forced.
25081  The unfortunate young man was found lying near the table.
25082  His head had been horribly mutilated by an expanding revolver bullet, but
25083  no weapon of any sort was to be found in the room.
25084 \end_layout
25085
25086 \end_inset
25087
25088
25089 \end_layout
25090
25091 \begin_layout Subsubsection
25092 Surrounding Space
25093 \end_layout
25094
25095 \begin_layout Standard
25096 The amount of space before and after multiple columns can be changed by
25097  changing the length 
25098 \begin_inset Flex Code
25099 status collapsed
25100
25101 \begin_layout Plain Layout
25102
25103 \backslash
25104 multicolsep
25105 \end_layout
25106
25107 \end_inset
25108
25109 .
25110  For example the command
25111 \end_layout
25112
25113 \begin_layout LyX-Code
25114
25115 \backslash
25116 setlength{
25117 \backslash
25118 multicolsep}{3cm}
25119 \end_layout
25120
25121 \begin_layout Standard
25122 in \SpecialChar TeX
25123  Code changes its value to 3
25124 \begin_inset space \thinspace{}
25125 \end_inset
25126
25127 cm.
25128  The change must be made before the multiple columns' start.
25129  The predefined value is 13
25130 \begin_inset space \thinspace{}
25131 \end_inset
25132
25133 pt.
25134 \end_layout
25135
25136 \begin_layout Standard
25137 For this example 
25138 \begin_inset Flex Code
25139 status collapsed
25140
25141 \begin_layout Plain Layout
25142
25143 \backslash
25144 multicolsep
25145 \end_layout
25146
25147 \end_inset
25148
25149  was set to 2.5
25150 \begin_inset space \thinspace{}
25151 \end_inset
25152
25153 cm:
25154 \end_layout
25155
25156 \begin_layout Standard
25157 \begin_inset ERT
25158 status open
25159
25160 \begin_layout Plain Layout
25161
25162
25163 \backslash
25164 setlength{
25165 \backslash
25166 multicolsep}{2.5cm}
25167 \end_layout
25168
25169 \end_inset
25170
25171
25172 \end_layout
25173
25174 \begin_layout Standard
25175 \begin_inset Flex Multiple Columns
25176 status open
25177
25178 \begin_layout Plain Layout
25179
25180 \size small
25181 All day I turned these facts over in my mind, endeavouring to hit upon some
25182  theory which could reconcile them all, and to find that line of least resistanc
25183 e which my poor friend had declared to be the starting-point of every investigat
25184 ion.
25185  I confess that I made little progress.
25186  In the evening I strolled across the Park, and found myself about six o'clock
25187  at the Oxford Street end of Park Lane.
25188  A group of loafers upon the pavements, all staring up at a particular window,
25189  directed me to the house which I had come to see.
25190  A tall, thin man with coloured glasses, whom I strongly suspected of being
25191  a plain-clothes detective, was pointing out some theory of his own, while
25192  the others crowded round to listen to what he said.
25193  I got as near him as I could, but his observations seemed to me to be absurd,
25194  so I withdrew again in some disgust.
25195  As I did so I struck against an elderly, deformed man, who had been behind
25196  me, and I knocked down several books which he was carrying.
25197 \end_layout
25198
25199 \end_inset
25200
25201
25202 \end_layout
25203
25204 \begin_layout Standard
25205 \begin_inset Note Greyedout
25206 status open
25207
25208 \begin_layout Plain Layout
25209
25210 \series bold
25211 Note:
25212 \series default
25213  The values you set with 
25214 \begin_inset Flex Code
25215 status collapsed
25216
25217 \begin_layout Plain Layout
25218
25219 \backslash
25220 setlength
25221 \end_layout
25222
25223 \end_inset
25224
25225  will be used for all following multiple columns until you change them again.
25226 \end_layout
25227
25228 \end_inset
25229
25230
25231 \end_layout
25232
25233 \begin_layout Standard
25234 \begin_inset ERT
25235 status collapsed
25236
25237 \begin_layout Plain Layout
25238
25239
25240 \backslash
25241 setlength{
25242 \backslash
25243 multicolsep}{13pt}
25244 \end_layout
25245
25246 \end_inset
25247
25248
25249 \begin_inset Note Note
25250 status collapsed
25251
25252 \begin_layout Plain Layout
25253 go back to the default
25254 \end_layout
25255
25256 \end_inset
25257
25258
25259 \end_layout
25260
25261 \begin_layout Standard
25262 \begin_inset Newpage newpage
25263 \end_inset
25264
25265
25266 \end_layout
25267
25268 \begin_layout Subsubsection
25269 Column Breaks
25270 \end_layout
25271
25272 \begin_layout Standard
25273 A column break can be forced by inserting the command 
25274 \begin_inset Flex Code
25275 status collapsed
25276
25277 \begin_layout Plain Layout
25278
25279 \backslash
25280 columnbreak{}
25281 \end_layout
25282
25283 \end_inset
25284
25285  as \SpecialChar TeX
25286  Code to that position in the text where the column should be broken.
25287  Note that this leads in most cases to whitespace in the text.
25288 \begin_inset Newline newline
25289 \end_inset
25290
25291 Here is an example:
25292 \end_layout
25293
25294 \begin_layout Standard
25295 \begin_inset Flex Multiple Columns
25296 status open
25297
25298 \begin_layout Plain Layout
25299
25300 \size small
25301 \begin_inset Quotes eld
25302 \end_inset
25303
25304 You're surprised to see me, sir,
25305 \begin_inset Quotes erd
25306 \end_inset
25307
25308  said he, in a strange, croaking voice.
25309 \end_layout
25310
25311 \begin_layout Plain Layout
25312
25313 \size small
25314 I acknowledged that I was.
25315 \end_layout
25316
25317 \begin_layout Plain Layout
25318
25319 \size small
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 Well, I've a conscience, sir, and when I chanced to see you go into this
25324  house, as I came hobbling after you, I thought to myself, I'll just step
25325  in and see that kind gentleman, and tell him that if I was a bit gruff
25326  in my manner there was not any harm meant, and that I am much obliged to
25327  him for picking up my books.
25328 \begin_inset Quotes erd
25329 \end_inset
25330
25331
25332 \end_layout
25333
25334 \begin_layout Plain Layout
25335
25336 \size small
25337 \begin_inset Quotes eld
25338 \end_inset
25339
25340 You make too much of a trifle,
25341 \begin_inset Quotes erd
25342 \end_inset
25343
25344  said I.
25345  
25346 \begin_inset Quotes eld
25347 \end_inset
25348
25349 May I ask how you knew who I was?
25350 \begin_inset Quotes erd
25351 \end_inset
25352
25353  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25354 \begin_inset ERT
25355 status collapsed
25356
25357 \begin_layout Plain Layout
25358
25359
25360 \backslash
25361 columnbreak{}
25362 \end_layout
25363
25364 \end_inset
25365
25366
25367 \end_layout
25368
25369 \begin_layout Plain Layout
25370
25371 \size small
25372 \begin_inset Quotes eld
25373 \end_inset
25374
25375 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25376  you'll find my little bookshop at the corner of Church Street, and very
25377  happy to see you, I am sure.
25378  Maybe you collect yourself, sir.
25379  Here's 
25380 \noun on
25381 British
25382 \begin_inset space ~
25383 \end_inset
25384
25385 Birds
25386 \noun default
25387 , and 
25388 \noun on
25389 Catullus
25390 \noun default
25391 , and 
25392 \noun on
25393 The Holy War
25394 \noun default
25395
25396 \begin_inset space ~
25397 \end_inset
25398
25399 – a bargain, every one of them.
25400  With five volumes you could just fill that gap on that second shelf.
25401  It looks untidy, does it not, sir?
25402 \begin_inset Quotes erd
25403 \end_inset
25404
25405
25406 \end_layout
25407
25408 \end_inset
25409
25410
25411 \end_layout
25412
25413 \begin_layout Subsubsection
25414 Column Separation
25415 \end_layout
25416
25417 \begin_layout Standard
25418 The width of the columns is automatically calculated, but you can modify
25419  the space between the columns.
25420  This is done by changing the length 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425
25426 \backslash
25427 columnsep
25428 \end_layout
25429
25430 \end_inset
25431
25432 .
25433  Its predefined value is 10
25434 \begin_inset space \thinspace{}
25435 \end_inset
25436
25437 pt.
25438  Here is an example where 
25439 \begin_inset Flex Code
25440 status collapsed
25441
25442 \begin_layout Plain Layout
25443
25444 \backslash
25445 columnsep
25446 \end_layout
25447
25448 \end_inset
25449
25450  is set to 3
25451 \begin_inset space \thinspace{}
25452 \end_inset
25453
25454 cm:
25455 \end_layout
25456
25457 \begin_layout Standard
25458 \begin_inset ERT
25459 status open
25460
25461 \begin_layout Plain Layout
25462
25463
25464 \backslash
25465 setlength{
25466 \backslash
25467 columnsep}{3cm}
25468 \end_layout
25469
25470 \end_inset
25471
25472
25473 \end_layout
25474
25475 \begin_layout Standard
25476 \begin_inset Flex Multiple Columns
25477 status open
25478
25479 \begin_layout Plain Layout
25480
25481 \size small
25482 My observations of No.
25483 \begin_inset space \space{}
25484 \end_inset
25485
25486 427 Park Lane did little to clear up the problem in which I was interested.
25487  The house was separated from the street by a low wall and railing, the
25488  whole not more than five feet high.
25489  It was perfectly easy, therefore, for anyone to get into the garden, but
25490  the window was entirely inaccessible, since there was no water pipe or
25491  anything which could help the most active man to climb it.
25492  More puzzled than ever, I retraced my steps to Kensington.
25493  I had not been in my study five minutes when the maid entered to say that
25494  a person desired to see me.
25495  To my astonishment it was none other than my strange old book collector,
25496  his sharp, wizened face peering out from a frame of white hair, and his
25497  precious volumes, a dozen of them at least, wedged under his right arm.
25498 \end_layout
25499
25500 \end_inset
25501
25502
25503 \end_layout
25504
25505 \begin_layout Standard
25506 \begin_inset ERT
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510
25511
25512 \backslash
25513 setlength{
25514 \backslash
25515 columnsep}{10pt}
25516 \end_layout
25517
25518 \end_inset
25519
25520
25521 \begin_inset Note Note
25522 status collapsed
25523
25524 \begin_layout Plain Layout
25525 go back to the default
25526 \end_layout
25527
25528 \end_inset
25529
25530
25531 \end_layout
25532
25533 \begin_layout Subsubsection
25534 Vertical Lines
25535 \end_layout
25536
25537 \begin_layout Standard
25538 Between the columns a rule with a width of the length 
25539 \begin_inset Flex Code
25540 status collapsed
25541
25542 \begin_layout Plain Layout
25543
25544 \backslash
25545 columnseprule
25546 \end_layout
25547
25548 \end_inset
25549
25550  is placed.
25551  If this rule width is set to 0
25552 \begin_inset space \thinspace{}
25553 \end_inset
25554
25555 pt (this is the default), the rule is suppressed.
25556  In the following example the rule is 2
25557 \begin_inset space \thinspace{}
25558 \end_inset
25559
25560 pt wide:
25561 \end_layout
25562
25563 \begin_layout Standard
25564 \begin_inset ERT
25565 status open
25566
25567 \begin_layout Plain Layout
25568
25569
25570 \backslash
25571 setlength{
25572 \backslash
25573 columnseprule}{2pt}
25574 \end_layout
25575
25576 \end_inset
25577
25578
25579 \end_layout
25580
25581 \begin_layout Standard
25582 \begin_inset Flex Multiple Columns
25583 status open
25584
25585 \begin_layout Plain Layout
25586
25587 \size small
25588 \begin_inset Quotes eld
25589 \end_inset
25590
25591 You're surprised to see me, sir,
25592 \begin_inset Quotes erd
25593 \end_inset
25594
25595  said he, in a strange, croaking voice.
25596 \end_layout
25597
25598 \begin_layout Plain Layout
25599
25600 \size small
25601 I acknowledged that I was.
25602 \end_layout
25603
25604 \begin_layout Plain Layout
25605
25606 \size small
25607 \begin_inset Quotes eld
25608 \end_inset
25609
25610 Well, I've a conscience, sir, and when I chanced to see you go into this
25611  house, as I came hobbling after you, I thought to myself, I'll just step
25612  in and see that kind gentleman, and tell him that if I was a bit gruff
25613  in my manner there was not any harm meant, and that I am much obliged to
25614  him for picking up my books.
25615 \begin_inset Quotes erd
25616 \end_inset
25617
25618
25619 \end_layout
25620
25621 \begin_layout Plain Layout
25622
25623 \size small
25624 \begin_inset Quotes eld
25625 \end_inset
25626
25627 You make too much of a trifle,
25628 \begin_inset Quotes erd
25629 \end_inset
25630
25631  said I.
25632  
25633 \begin_inset Quotes eld
25634 \end_inset
25635
25636 May I ask how you knew who I was?
25637 \begin_inset Quotes erd
25638 \end_inset
25639
25640
25641 \end_layout
25642
25643 \begin_layout Plain Layout
25644
25645 \size small
25646 \begin_inset Quotes eld
25647 \end_inset
25648
25649 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25650  you'll find my little bookshop at the corner of Church Street, and very
25651  happy to see you, I am sure.
25652  Maybe you collect yourself, sir.
25653  Here's 
25654 \noun on
25655 British
25656 \begin_inset space ~
25657 \end_inset
25658
25659 Birds
25660 \noun default
25661 , and 
25662 \noun on
25663 Catullus
25664 \noun default
25665 , and 
25666 \noun on
25667 The Holy War
25668 \noun default
25669
25670 \begin_inset space ~
25671 \end_inset
25672
25673 – a bargain, every one of them.
25674  With five volumes you could just fill that gap on that second shelf.
25675  It looks untidy, does it not, sir?
25676 \begin_inset Quotes erd
25677 \end_inset
25678
25679
25680 \end_layout
25681
25682 \end_inset
25683
25684
25685 \end_layout
25686
25687 \begin_layout Standard
25688 \begin_inset VSpace defskip
25689 \end_inset
25690
25691
25692 \end_layout
25693
25694 \begin_layout Standard
25695 The rule can be colored by redefining the command 
25696 \begin_inset Flex Code
25697 status collapsed
25698
25699 \begin_layout Plain Layout
25700
25701 \backslash
25702 columnseprulecolor
25703 \end_layout
25704
25705 \end_inset
25706
25707 .
25708  This is done by inserting the command
25709 \end_layout
25710
25711 \begin_layout LyX-Code
25712
25713 \backslash
25714 renewcommand{
25715 \backslash
25716 columnseprulecolor}{
25717 \backslash
25718 color{red}}
25719 \end_layout
25720
25721 \begin_layout Standard
25722 as \SpecialChar TeX
25723  Code before the multicolumn inset.
25724  Replace 
25725 \begin_inset Flex Code
25726 status collapsed
25727
25728 \begin_layout Plain Layout
25729 red
25730 \end_layout
25731
25732 \end_inset
25733
25734  in this command by a color of your choice.
25735  You can use all pre- and self-defined colors.
25736  See the 
25737 \emph on
25738 EmbeddedObjects
25739 \emph default
25740  manual, section 
25741 \emph on
25742 Colored
25743 \begin_inset space ~
25744 \end_inset
25745
25746 Tables
25747 \emph default
25748  for more information about pre- and self-defined colors.
25749  To go back to the default color insert the command
25750 \end_layout
25751
25752 \begin_layout LyX-Code
25753
25754 \backslash
25755 renewcommand{
25756 \backslash
25757 columnseprulecolor}{
25758 \backslash
25759 normalcolor}
25760 \end_layout
25761
25762 \begin_layout Standard
25763 Here is the example with a cyan rule and 1
25764 \begin_inset space \thinspace{}
25765 \end_inset
25766
25767 cm column separation:
25768 \end_layout
25769
25770 \begin_layout Standard
25771 \begin_inset ERT
25772 status open
25773
25774 \begin_layout Plain Layout
25775
25776
25777 \backslash
25778 setlength{
25779 \backslash
25780 columnsep}{1cm}
25781 \end_layout
25782
25783 \begin_layout Plain Layout
25784
25785
25786 \backslash
25787 renewcommand{
25788 \backslash
25789 columnseprulecolor}{
25790 \backslash
25791 color{cyan}}
25792 \end_layout
25793
25794 \end_inset
25795
25796
25797 \end_layout
25798
25799 \begin_layout Standard
25800 \begin_inset Flex Multiple Columns
25801 status open
25802
25803 \begin_layout Plain Layout
25804
25805 \size small
25806 \begin_inset Quotes eld
25807 \end_inset
25808
25809 You're surprised to see me, sir,
25810 \begin_inset Quotes erd
25811 \end_inset
25812
25813  said he, in a strange, croaking voice.
25814 \end_layout
25815
25816 \begin_layout Plain Layout
25817
25818 \size small
25819 I acknowledged that I was.
25820 \end_layout
25821
25822 \begin_layout Plain Layout
25823
25824 \size small
25825 \begin_inset Quotes eld
25826 \end_inset
25827
25828 Well, I've a conscience, sir, and when I chanced to see you go into this
25829  house, as I came hobbling after you, I thought to myself, I'll just step
25830  in and see that kind gentleman, and tell him that if I was a bit gruff
25831  in my manner there was not any harm meant, and that I am much obliged to
25832  him for picking up my books.
25833 \begin_inset Quotes erd
25834 \end_inset
25835
25836
25837 \end_layout
25838
25839 \begin_layout Plain Layout
25840
25841 \size small
25842 \begin_inset Quotes eld
25843 \end_inset
25844
25845 You make too much of a trifle,
25846 \begin_inset Quotes erd
25847 \end_inset
25848
25849  said I.
25850  
25851 \begin_inset Quotes eld
25852 \end_inset
25853
25854 May I ask how you knew who I was?
25855 \begin_inset Quotes erd
25856 \end_inset
25857
25858
25859 \end_layout
25860
25861 \begin_layout Plain Layout
25862
25863 \size small
25864 \begin_inset Quotes eld
25865 \end_inset
25866
25867 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25868  you'll find my little bookshop at the corner of Church Street, and very
25869  happy to see you, I am sure.
25870  Maybe you collect yourself, sir.
25871  Here's 
25872 \noun on
25873 British
25874 \begin_inset space ~
25875 \end_inset
25876
25877 Birds
25878 \noun default
25879 , and 
25880 \noun on
25881 Catullus
25882 \noun default
25883 , and 
25884 \noun on
25885 The Holy War
25886 \noun default
25887
25888 \begin_inset space ~
25889 \end_inset
25890
25891 – a bargain, every one of them.
25892  With five volumes you could just fill that gap on that second shelf.
25893  It looks untidy, does it not, sir?
25894 \begin_inset Quotes erd
25895 \end_inset
25896
25897
25898 \end_layout
25899
25900 \end_inset
25901
25902
25903 \end_layout
25904
25905 \begin_layout Standard
25906 \begin_inset ERT
25907 status collapsed
25908
25909 \begin_layout Plain Layout
25910
25911
25912 \backslash
25913 setlength{
25914 \backslash
25915 columnseprule}{0pt}
25916 \end_layout
25917
25918 \begin_layout Plain Layout
25919
25920
25921 \backslash
25922 renewcommand{
25923 \backslash
25924 columnseprulecolor}{
25925 \backslash
25926 normalcolor}
25927 \end_layout
25928
25929 \end_inset
25930
25931
25932 \begin_inset Note Note
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936 go back to the default
25937 \end_layout
25938
25939 \end_inset
25940
25941
25942 \end_layout
25943
25944 \begin_layout Section
25945 Non-standard Paragraph Shapes
25946 \end_layout
25947
25948 \begin_layout Standard
25949 \noindent
25950 \SpecialChar LaTeX
25951  as well as any other text processor uses by default rectangular paragraphs.
25952  For special cases like for example posters, invitation cards or poems you
25953  can modify the paragraph shape to one of your choice.
25954  This can be done by using the \SpecialChar LaTeX
25955 -package 
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960 shapepar
25961 \end_layout
25962
25963 \end_inset
25964
25965  which is loaded by using in the document settings the module 
25966 \family sans
25967 Custom paragraph shapes
25968 \family default
25969 .
25970 \end_layout
25971
25972 \begin_layout Subsection
25973 Predefined shapes
25974 \end_layout
25975
25976 \begin_layout Standard
25977
25978 \series bold
25979 shapepar
25980 \series default
25981  provides the following shapes:
25982 \end_layout
25983
25984 \begin_layout Standard
25985 \begin_inset Tabular
25986 <lyxtabular version="3" rows="13" columns="3">
25987 <features booktabs="true" islongtable="true" longtabularalignment="center">
25988 <column alignment="left" valignment="middle" width="16col%">
25989 <column alignment="left" valignment="middle" width="40col%">
25990 <column alignment="left" valignment="middle" width="35col%">
25991 <row endhead="true">
25992 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25993 \begin_inset Text
25994
25995 \begin_layout Plain Layout
25996
25997 \series bold
25998 \size small
25999 Name
26000 \end_layout
26001
26002 \end_inset
26003 </cell>
26004 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26005 \begin_inset Text
26006
26007 \begin_layout Plain Layout
26008
26009 \series bold
26010 \size small
26011 Description
26012 \end_layout
26013
26014 \end_inset
26015 </cell>
26016 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26017 \begin_inset Text
26018
26019 \begin_layout Plain Layout
26020
26021 \series bold
26022 \size small
26023 Annotation
26024 \end_layout
26025
26026 \end_inset
26027 </cell>
26028 </row>
26029 <row interlinespace="default">
26030 <cell alignment="left" valignment="top" usebox="none">
26031 \begin_inset Text
26032
26033 \begin_layout Plain Layout
26034
26035 \size small
26036 CDlabel
26037 \end_layout
26038
26039 \end_inset
26040 </cell>
26041 <cell alignment="left" valignment="top" usebox="none">
26042 \begin_inset Text
26043
26044 \begin_layout Plain Layout
26045
26046 \size small
26047 Circle with circular hole (in the size of a CD/DVD)
26048 \end_layout
26049
26050 \end_inset
26051 </cell>
26052 <cell alignment="left" valignment="top" usebox="none">
26053 \begin_inset Text
26054
26055 \begin_layout Plain Layout
26056
26057 \size small
26058 Cannot be scaled, take care there is not too much text
26059 \end_layout
26060
26061 \end_inset
26062 </cell>
26063 </row>
26064 <row interlinespace="default">
26065 <cell alignment="left" valignment="top" usebox="none">
26066 \begin_inset Text
26067
26068 \begin_layout Plain Layout
26069
26070 \size small
26071 Circle
26072 \end_layout
26073
26074 \end_inset
26075 </cell>
26076 <cell alignment="left" valignment="top" usebox="none">
26077 \begin_inset Text
26078
26079 \begin_layout Plain Layout
26080
26081 \size small
26082 Circle
26083 \end_layout
26084
26085 \end_inset
26086 </cell>
26087 <cell alignment="left" valignment="top" usebox="none">
26088 \begin_inset Text
26089
26090 \begin_layout Plain Layout
26091
26092 \size small
26093 Fragile, calculation might fail
26094 \end_layout
26095
26096 \end_inset
26097 </cell>
26098 </row>
26099 <row interlinespace="default">
26100 <cell alignment="left" valignment="top" usebox="none">
26101 \begin_inset Text
26102
26103 \begin_layout Plain Layout
26104
26105 \size small
26106 Diamond
26107 \end_layout
26108
26109 \end_inset
26110 </cell>
26111 <cell alignment="left" valignment="top" usebox="none">
26112 \begin_inset Text
26113
26114 \begin_layout Plain Layout
26115
26116 \size small
26117 Rhomboid (symbolizing a 
26118 \begin_inset Quotes eld
26119 \end_inset
26120
26121 diamond
26122 \begin_inset Quotes erd
26123 \end_inset
26124
26125 )
26126 \end_layout
26127
26128 \end_inset
26129 </cell>
26130 <cell alignment="left" valignment="top" usebox="none">
26131 \begin_inset Text
26132
26133 \begin_layout Plain Layout
26134
26135 \size small
26136 -
26137 \end_layout
26138
26139 \end_inset
26140 </cell>
26141 </row>
26142 <row interlinespace="default">
26143 <cell alignment="left" valignment="top" usebox="none">
26144 \begin_inset Text
26145
26146 \begin_layout Plain Layout
26147
26148 \size small
26149 Heart
26150 \end_layout
26151
26152 \end_inset
26153 </cell>
26154 <cell alignment="left" valignment="top" usebox="none">
26155 \begin_inset Text
26156
26157 \begin_layout Plain Layout
26158
26159 \size small
26160 Heart-like shape
26161 \end_layout
26162
26163 \end_inset
26164 </cell>
26165 <cell alignment="left" valignment="top" usebox="none">
26166 \begin_inset Text
26167
26168 \begin_layout Plain Layout
26169
26170 \size small
26171 -
26172 \end_layout
26173
26174 \end_inset
26175 </cell>
26176 </row>
26177 <row interlinespace="default">
26178 <cell alignment="left" valignment="top" usebox="none">
26179 \begin_inset Text
26180
26181 \begin_layout Plain Layout
26182
26183 \size small
26184 Hexagon
26185 \end_layout
26186
26187 \end_inset
26188 </cell>
26189 <cell alignment="left" valignment="top" usebox="none">
26190 \begin_inset Text
26191
26192 \begin_layout Plain Layout
26193
26194 \size small
26195 Hexagon
26196 \end_layout
26197
26198 \end_inset
26199 </cell>
26200 <cell alignment="left" valignment="top" usebox="none">
26201 \begin_inset Text
26202
26203 \begin_layout Plain Layout
26204
26205 \size small
26206 -
26207 \end_layout
26208
26209 \end_inset
26210 </cell>
26211 </row>
26212 <row interlinespace="default">
26213 <cell alignment="left" valignment="top" usebox="none">
26214 \begin_inset Text
26215
26216 \begin_layout Plain Layout
26217
26218 \size small
26219 Nut
26220 \end_layout
26221
26222 \end_inset
26223 </cell>
26224 <cell alignment="left" valignment="top" usebox="none">
26225 \begin_inset Text
26226
26227 \begin_layout Plain Layout
26228
26229 \size small
26230 Nut for bolt (hexagon with circular hole)
26231 \end_layout
26232
26233 \end_inset
26234 </cell>
26235 <cell alignment="left" valignment="top" usebox="none">
26236 \begin_inset Text
26237
26238 \begin_layout Plain Layout
26239
26240 \size small
26241 -
26242 \end_layout
26243
26244 \end_inset
26245 </cell>
26246 </row>
26247 <row interlinespace="default">
26248 <cell alignment="left" valignment="top" usebox="none">
26249 \begin_inset Text
26250
26251 \begin_layout Plain Layout
26252
26253 \size small
26254 Square
26255 \end_layout
26256
26257 \end_inset
26258 </cell>
26259 <cell alignment="left" valignment="top" usebox="none">
26260 \begin_inset Text
26261
26262 \begin_layout Plain Layout
26263
26264 \size small
26265 Square
26266 \end_layout
26267
26268 \end_inset
26269 </cell>
26270 <cell alignment="left" valignment="top" usebox="none">
26271 \begin_inset Text
26272
26273 \begin_layout Plain Layout
26274
26275 \size small
26276 -
26277 \end_layout
26278
26279 \end_inset
26280 </cell>
26281 </row>
26282 <row interlinespace="default">
26283 <cell alignment="left" valignment="top" usebox="none">
26284 \begin_inset Text
26285
26286 \begin_layout Plain Layout
26287
26288 \size small
26289 Star
26290 \end_layout
26291
26292 \end_inset
26293 </cell>
26294 <cell alignment="left" valignment="top" usebox="none">
26295 \begin_inset Text
26296
26297 \begin_layout Plain Layout
26298
26299 \size small
26300 Five-point star
26301 \end_layout
26302
26303 \end_inset
26304 </cell>
26305 <cell alignment="left" valignment="top" usebox="none">
26306 \begin_inset Text
26307
26308 \begin_layout Plain Layout
26309
26310 \size small
26311 -
26312 \end_layout
26313
26314 \end_inset
26315 </cell>
26316 </row>
26317 <row interlinespace="default">
26318 <cell alignment="left" valignment="top" usebox="none">
26319 \begin_inset Text
26320
26321 \begin_layout Plain Layout
26322
26323 \size small
26324 Candle
26325 \end_layout
26326
26327 \end_inset
26328 </cell>
26329 <cell alignment="left" valignment="top" usebox="none">
26330 \begin_inset Text
26331
26332 \begin_layout Plain Layout
26333
26334 \size small
26335 Burning candle
26336 \end_layout
26337
26338 \end_inset
26339 </cell>
26340 <cell alignment="left" valignment="top" usebox="none">
26341 \begin_inset Text
26342
26343 \begin_layout Plain Layout
26344
26345 \size small
26346 -
26347 \end_layout
26348
26349 \end_inset
26350 </cell>
26351 </row>
26352 <row interlinespace="default">
26353 <cell alignment="left" valignment="top" usebox="none">
26354 \begin_inset Text
26355
26356 \begin_layout Plain Layout
26357
26358 \size small
26359 Drop down/up
26360 \end_layout
26361
26362 \end_inset
26363 </cell>
26364 <cell alignment="left" valignment="top" usebox="none">
26365 \begin_inset Text
26366
26367 \begin_layout Plain Layout
26368
26369 \size small
26370 Normal/reversed rain drop
26371 \end_layout
26372
26373 \end_inset
26374 </cell>
26375 <cell alignment="left" valignment="top" usebox="none">
26376 \begin_inset Text
26377
26378 \begin_layout Plain Layout
26379
26380 \size small
26381 Fragile, calculation might fail
26382 \end_layout
26383
26384 \end_inset
26385 </cell>
26386 </row>
26387 <row interlinespace="default">
26388 <cell alignment="left" valignment="top" usebox="none">
26389 \begin_inset Text
26390
26391 \begin_layout Plain Layout
26392
26393 \size small
26394 \SpecialChar TeX
26395
26396 \end_layout
26397
26398 \end_inset
26399 </cell>
26400 <cell alignment="left" valignment="top" usebox="none">
26401 \begin_inset Text
26402
26403 \begin_layout Plain Layout
26404
26405 \size small
26406 The \SpecialChar TeX
26407  logo
26408 \end_layout
26409
26410 \end_inset
26411 </cell>
26412 <cell alignment="left" valignment="top" usebox="none">
26413 \begin_inset Text
26414
26415 \begin_layout Plain Layout
26416
26417 \size small
26418 -
26419 \end_layout
26420
26421 \end_inset
26422 </cell>
26423 </row>
26424 <row interlinespace="default">
26425 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26426 \begin_inset Text
26427
26428 \begin_layout Plain Layout
26429
26430 \size small
26431 Triangle up/down/
26432 \begin_inset Newline newline
26433 \end_inset
26434
26435 left/right
26436 \end_layout
26437
26438 \end_inset
26439 </cell>
26440 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26441 \begin_inset Text
26442
26443 \begin_layout Plain Layout
26444
26445 \size small
26446 Triangles in different orientations
26447 \end_layout
26448
26449 \end_inset
26450 </cell>
26451 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26452 \begin_inset Text
26453
26454 \begin_layout Plain Layout
26455
26456 \size small
26457 -
26458 \end_layout
26459
26460 \end_inset
26461 </cell>
26462 </row>
26463 </lyxtabular>
26464
26465 \end_inset
26466
26467
26468 \end_layout
26469
26470 \begin_layout Standard
26471 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26472 's pull-down box
26473  for environments in the toolbar.
26474 \end_layout
26475
26476 \begin_layout Standard
26477 \begin_inset Newpage newpage
26478 \end_inset
26479
26480
26481 \end_layout
26482
26483 \begin_layout Standard
26484 Here is an example paragraph in the shape of a nut:
26485 \end_layout
26486
26487 \begin_layout Standard
26488 \begin_inset VSpace bigskip
26489 \end_inset
26490
26491
26492 \end_layout
26493
26494 \begin_layout Nut
26495
26496 \lang latin
26497 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26498  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26499  voluptua.
26500  At vero eos et accusam et justo duo dolores et ea rebum.
26501  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26502  sit amet.
26503  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26504  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26505  voluptua.
26506 \end_layout
26507
26508 \begin_layout Standard
26509 \begin_inset VSpace bigskip
26510 \end_inset
26511
26512
26513 \end_layout
26514
26515 \begin_layout Standard
26516 \begin_inset Note Greyedout
26517 status open
26518
26519 \begin_layout Plain Layout
26520
26521 \series bold
26522 Note
26523 \series default
26524
26525 \family sans
26526 shapepar
26527 \family default
26528  paragraphs cannot run over a page break.
26529 \end_layout
26530
26531 \end_inset
26532
26533
26534 \end_layout
26535
26536 \begin_layout Standard
26537 \begin_inset VSpace bigskip
26538 \end_inset
26539
26540
26541 \end_layout
26542
26543 \begin_layout Standard
26544 The package 
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549 shapepar
26550 \end_layout
26551
26552 \end_inset
26553
26554  takes care that the shape will always be preserved, no matter how much
26555  text is in the paragraph.
26556  Therefore the paragraph size changes with the amount of contained text.
26557  This can lead to paragraph sizes exceeding the page margins.
26558  To demonstrate the size scaling, here is the same example paragraph but
26559  with twice as much text:
26560 \end_layout
26561
26562 \begin_layout Standard
26563 \begin_inset Newpage newpage
26564 \end_inset
26565
26566
26567 \end_layout
26568
26569 \begin_layout Nut
26570
26571 \lang latin
26572 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26573  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26574  voluptua.
26575  At vero eos et accusam et justo duo dolores et ea rebum.
26576  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26577  sit amet.
26578  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26579  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26580  voluptua.
26581  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26582  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26583  voluptua.
26584  At vero eos et accusam et justo duo dolores et ea rebum.
26585  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26586  sit amet.
26587  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26588  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26589  voluptua.
26590 \end_layout
26591
26592 \begin_layout Standard
26593 \begin_inset VSpace bigskip
26594 \end_inset
26595
26596
26597 \end_layout
26598
26599 \begin_layout Standard
26600 An exception is the shape 
26601 \family sans
26602 CDlabel
26603 \family default
26604 .
26605  It cannot be scaled because it must fit the size of a CD/DVD.
26606  Therefore the amount of text that fits into the shape is limited.
26607 \begin_inset Newline newline
26608 \end_inset
26609
26610 The 
26611 \family sans
26612 drop
26613 \family default
26614  shapes and the 
26615 \family sans
26616 circle
26617 \family default
26618  shape are fragile, meaning that the calculation of their size can fail,
26619  depending on the amount of text.
26620  You will then get the \SpecialChar LaTeX
26621  error 
26622 \begin_inset Quotes eld
26623 \end_inset
26624
26625 Arithmetic overflow
26626 \begin_inset Quotes erd
26627 \end_inset
26628
26629 .
26630  In this case one can try to remove or add some text; if nothing works one
26631  has to use another shape.
26632 \end_layout
26633
26634 \begin_layout Standard
26635 \begin_inset VSpace bigskip
26636 \end_inset
26637
26638
26639 \end_layout
26640
26641 \begin_layout Standard
26642 For shapes with tips you will maybe see that \SpecialChar LaTeX
26643 's hyphenation routine fails
26644  for text in the tips.
26645  Therefore it is often necessary to add hyphenation points 
26646 \family sans
26647 (
26648 \begin_inset Info
26649 type  "shortcut"
26650 arg   "specialchar-insert hyphenation"
26651 \end_inset
26652
26653
26654 \family default
26655 ) to the corresponding text parts.
26656 \end_layout
26657
26658 \begin_layout Standard
26659 \begin_inset VSpace bigskip
26660 \end_inset
26661
26662
26663 \end_layout
26664
26665 \begin_layout Standard
26666 Shapepar paragraphs are either always centered or placed on the page so
26667  that their left border touches the left page margin.
26668  You can therefore not use the paragraph dialog to align such paragraphs.
26669  A solution is to put the paragraph into a minipage or parbox and align
26670  the box.
26671  The problem is hereby to find the right width for the box.
26672  Because if it is too wide and you center the box, the paragraph is not
26673  centered too because it sticks at the left side of the box.
26674  So you might have to play a bit with the width until it fits.
26675  Here are two heart-shaped paragraphs, the first one is not aligned, the
26676  second one is right-aligned:
26677 \end_layout
26678
26679 \begin_layout Standard
26680 \begin_inset Newpage newpage
26681 \end_inset
26682
26683
26684 \end_layout
26685
26686 \begin_layout Heart
26687 \noindent
26688
26689 \lang latin
26690 Lo\SpecialChar softhyphen
26691 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26692  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26693  voluptua.
26694  At vero eos et accusam et justo duo dolores et ea rebum.
26695  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26696  sit amet.
26697 \end_layout
26698
26699 \begin_layout Standard
26700 \begin_inset VSpace bigskip
26701 \end_inset
26702
26703
26704 \end_layout
26705
26706 \begin_layout Standard
26707 \noindent
26708 \align right
26709 \begin_inset Box Frameless
26710 position "t"
26711 hor_pos "c"
26712 has_inner_box 1
26713 inner_pos "t"
26714 use_parbox 1
26715 use_makebox 0
26716 width "42col%"
26717 special "none"
26718 height "1in"
26719 height_special "totalheight"
26720 thickness "0.4pt"
26721 separation "3pt"
26722 shadowsize "4pt"
26723 framecolor "black"
26724 backgroundcolor "none"
26725 status open
26726
26727 \begin_layout Heart
26728 \noindent
26729
26730 \lang latin
26731 Lo\SpecialChar softhyphen
26732 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26733  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26734  voluptua.
26735  At vero eos et accusam et justo duo dolores et ea rebum.
26736  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26737  sit amet.
26738 \end_layout
26739
26740 \end_inset
26741
26742
26743 \end_layout
26744
26745 \begin_layout Subsection
26746 Custom shapes
26747 \end_layout
26748
26749 \begin_layout Standard
26750 You can define any shape you want.
26751  Doing this manually is a lot of work because every coordinate must be specified.
26752  But there is a way to let the computer calculate the coordinates:
26753 \end_layout
26754
26755 \begin_layout Enumerate
26756 Install the program 
26757 \begin_inset CommandInset href
26758 LatexCommand href
26759 name "Jpgfdraw"
26760 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26761 literal "false"
26762
26763 \end_inset
26764
26765 .
26766 \end_layout
26767
26768 \begin_layout Enumerate
26769 In 
26770 \family sans
26771 Jpgfdraw
26772 \family default
26773  go to the menu 
26774 \family sans
26775 TeX/LaTeX\SpecialChar menuseparator
26776 Settings\SpecialChar menuseparator
26777 Set Normal Size
26778 \family default
26779  and select the font size you are using in your document.
26780  For example this document uses the size 12
26781 \begin_inset space \thinspace{}
26782 \end_inset
26783
26784 pt.
26785 \end_layout
26786
26787 \begin_layout Enumerate
26788 Draw a shape.
26789 \end_layout
26790
26791 \begin_layout Enumerate
26792 Use the menu 
26793 \family sans
26794 TeX/LaTeX\SpecialChar menuseparator
26795 Shapepar
26796 \family default
26797  to export the shape to coordinates.
26798  In the appearing dialog use either the outline of your shape for the coordinate
26799 s or the path itself.
26800 \begin_inset Foot
26801 status collapsed
26802
26803 \begin_layout Plain Layout
26804 For more information see 
26805 \begin_inset CommandInset href
26806 LatexCommand href
26807 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26808 literal "false"
26809
26810 \end_inset
26811
26812
26813 \end_layout
26814
26815 \end_inset
26816
26817
26818 \end_layout
26819
26820 \begin_layout Standard
26821 The coordinates are written into a \SpecialChar TeX
26822  file.
26823  To use it for your \SpecialChar LyX
26824  document
26825 \end_layout
26826
26827 \begin_layout Enumerate
26828 Place the cursor before the first character of your paragraph (or into a
26829  new empty one).
26830 \end_layout
26831
26832 \begin_layout Enumerate
26833 Open in \SpecialChar LyX
26834  the menu 
26835 \family sans
26836 Insert\SpecialChar menuseparator
26837 File\SpecialChar menuseparator
26838 Child
26839 \begin_inset space ~
26840 \end_inset
26841
26842 Document
26843 \family default
26844 , select the file and use 
26845 \family sans
26846 Input
26847 \family default
26848  as 
26849 \family sans
26850 Include Type.
26851 \end_layout
26852
26853 \begin_layout Standard
26854 \begin_inset VSpace defskip
26855 \end_inset
26856
26857
26858 \end_layout
26859
26860 \begin_layout Standard
26861 \begin_inset Note Greyedout
26862 status open
26863
26864 \begin_layout Plain Layout
26865
26866 \series bold
26867 Note
26868 \series default
26869 : The changed shape only applies to the current paragraph; everything is
26870  reset to normal for the next paragraph.
26871  Therefore the shape definition file must be input into every paragraph
26872  with the desired shape.
26873 \end_layout
26874
26875 \end_inset
26876
26877
26878 \end_layout
26879
26880 \begin_layout Standard
26881 \begin_inset VSpace bigskip
26882 \end_inset
26883
26884
26885 \end_layout
26886
26887 \begin_layout Standard
26888 Here is an example:
26889 \end_layout
26890
26891 \begin_layout Standard
26892 \begin_inset VSpace bigskip
26893 \end_inset
26894
26895
26896 \end_layout
26897
26898 \begin_layout Standard
26899 \begin_inset CommandInset include
26900 LatexCommand input
26901 filename "SpecialParagraphShape.tex"
26902 literal "true"
26903
26904 \end_inset
26905
26906
26907 \lang latin
26908 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26909  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26910  voluptua.
26911  At vero eos et accusam et justo duo dolores et ea rebum.
26912  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26913  sit amet.
26914  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26915  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26916  voluptua.
26917 \end_layout
26918
26919 \begin_layout Standard
26920 \begin_inset VSpace bigskip
26921 \end_inset
26922
26923
26924 \end_layout
26925
26926 \begin_layout Standard
26927
26928 \series bold
26929 A tip:
26930 \series default
26931  to draw complexer shapes in 
26932 \family sans
26933 Jpgfdraw
26934 \family default
26935  you can draw the shape in a program of your choice and import the resulting
26936  image to 
26937 \family sans
26938 Jpgfdraw
26939 \family default
26940 .
26941  Then you only need to draw a line or spline along the outline of the image.
26942 \end_layout
26943
26944 \begin_layout Standard
26945 \begin_inset VSpace bigskip
26946 \end_inset
26947
26948
26949 \end_layout
26950
26951 \begin_layout Standard
26952 The module 
26953 \family sans
26954 Custom paragraph shapes
26955 \family default
26956  also provides the two commands 
26957 \family sans
26958 shapepar
26959 \family default
26960  and 
26961 \family sans
26962 Shapepar
26963 \family default
26964  which can be used to define custom shapes coordinate by coordinate.
26965 \begin_inset Foot
26966 status collapsed
26967
26968 \begin_layout Plain Layout
26969 These commands are internally used for all shapes described here.
26970 \end_layout
26971
26972 \end_inset
26973
26974  For information how these styles are used and about further customization
26975  possibilities, have a look at the 
26976 \begin_inset CommandInset href
26977 LatexCommand href
26978 name "documentation"
26979 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
26980 literal "false"
26981
26982 \end_inset
26983
26984  of the package 
26985 \begin_inset Flex Code
26986 status collapsed
26987
26988 \begin_layout Plain Layout
26989 shapepar
26990 \end_layout
26991
26992 \end_inset
26993
26994 .
26995 \end_layout
26996
26997 \end_body
26998 \end_document