]> git.lyx.org Git - features.git/blob - lib/doc/Additional.lyx
Amend bbb631873 once more
[features.git] / lib / doc / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
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 false
41 \language english
42 \language_package default
43 \inputencoding auto
44 \fontencoding global
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_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \use_microtype false
56 \use_dash_ligatures true
57 \graphics default
58 \default_output_format pdf2
59 \output_sync 0
60 \bibtex_command default
61 \index_command default
62 \paperfontsize 12
63 \spacing single
64 \use_hyperref true
65 \pdf_title "LyX's Additional Features manual"
66 \pdf_author "LyX Team"
67 \pdf_subject "LyX's additional features documentation"
68 \pdf_keywords "LyX, Documentation, Additional"
69 \pdf_bookmarks true
70 \pdf_bookmarksnumbered true
71 \pdf_bookmarksopen false
72 \pdf_bookmarksopenlevel 1
73 \pdf_breaklinks false
74 \pdf_pdfborder false
75 \pdf_colorlinks true
76 \pdf_backref false
77 \pdf_pdfusetitle false
78 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
79 \papersize a4paper
80 \use_geometry false
81 \use_package amsmath 1
82 \use_package amssymb 1
83 \use_package cancel 0
84 \use_package esint 0
85 \use_package mathdots 1
86 \use_package mathtools 0
87 \use_package mhchem 1
88 \use_package stackrel 0
89 \use_package stmaryrd 0
90 \use_package undertilde 0
91 \cite_engine basic
92 \cite_engine_type default
93 \biblio_style plain
94 \use_bibtopic false
95 \use_indices false
96 \paperorientation portrait
97 \suppress_date false
98 \justification true
99 \use_refstyle 0
100 \use_minted 0
101 \notefontcolor #0000ff
102 \index Index
103 \shortcut idx
104 \color #008000
105 \end_index
106 \secnumdepth 3
107 \tocdepth 3
108 \paragraph_separation indent
109 \paragraph_indentation default
110 \is_math_indent 1
111 \math_indentation default
112 \math_numbering_side default
113 \quotes_style english
114 \dynamic_quotes 0
115 \papercolumns 1
116 \papersides 2
117 \paperpagestyle headings
118 \tracking_changes true
119 \output_changes false
120 \html_math_output 0
121 \html_css_as_file 0
122 \html_be_strict true
123 \author -712698321 "Jürgen Spitzmüller"
124 \end_header
125
126 \begin_body
127
128 \begin_layout Title
129 Additional \SpecialChar LyX
130  Features
131 \end_layout
132
133 \begin_layout Subtitle
134 Version 2.3.x
135 \end_layout
136
137 \begin_layout Author
138 by the \SpecialChar LyX
139  Team
140 \begin_inset Foot
141 status collapsed
142
143 \begin_layout Plain Layout
144 \noindent
145 Principal maintainer of this file is
146 \noun on
147  Richard Heck
148 \noun default
149 .
150  If you have comments or error corrections, please send them to the \SpecialChar LyX
151  Documentati
152 on mailing list, 
153 \begin_inset Flex Code
154 status collapsed
155
156 \begin_layout Plain Layout
157 \noindent
158 <lyx-docs@lists.lyx.org>
159 \end_layout
160
161 \end_inset
162
163 .
164 \end_layout
165
166 \end_inset
167
168
169 \end_layout
170
171 \begin_layout Standard
172 \begin_inset CommandInset toc
173 LatexCommand tableofcontents
174
175 \end_inset
176
177
178 \end_layout
179
180 \begin_layout Chapter
181 Introduction
182 \end_layout
183
184 \begin_layout Standard
185 This manual is essentially Part II of the 
186 \emph on
187 User's Guide\SpecialChar endofsentence
188
189 \emph default
190  The reason for separating the two documents is simple: the 
191 \emph on
192 User's Guide
193 \emph default
194  is already quite lengthy, and it contains information on all of the basic
195  features one needs to know in order to prepare most documents.
196  However, the \SpecialChar LyX
197  Team has worked to make \SpecialChar LyX
198  extensible through various configuration
199  files and external packages.
200  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
201  package, you can
202  create a layout file (or module) for it without having to alter \SpecialChar LyX
203  itself.
204  We've already had contributions of several new features this way, and some
205  of them are documented here.
206  There are also some more `advanced' features, such as how to control the
207  presentation of bibliographies and how to work with multi-part documents,
208  that are not covered in the 
209 \emph on
210 User's Guide
211 \emph default
212  and are discussed here.
213 \end_layout
214
215 \begin_layout Standard
216 This manual also documents some special features, like fax support, version
217  control, and SGML support, which require additional software to work properly.
218  There is also a chapter on \SpecialChar LyX
219 's support for HTML.
220  And lastly, there's a chapter of \SpecialChar LaTeX
221  tools and tips, things you can use to
222  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
223 .
224  After all, \SpecialChar LyX
225  
226 \emph on
227 is
228 \emph default
229  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
230  features.
231 \end_layout
232
233 \begin_layout Standard
234 If you haven't read the 
235 \emph on
236 Introduction
237 \emph default
238  yet, you are definitely in the wrong manual.
239  The 
240 \emph on
241 Introduction
242 \emph default
243  is the first place to go, since it describes the notation and format of
244  all of the manuals.
245  You should also be thoroughly familiar with the 
246 \emph on
247 User's Guide
248 \emph default
249  and all of the basic features of \SpecialChar LyX
250  before attempting to read this one.
251 \end_layout
252
253 \begin_layout Standard
254 Since many of the topics in this manual depend heavily on \SpecialChar LyX
255 's interaction
256  with \SpecialChar LaTeX
257 , this first chapter covers the inner workings of \SpecialChar LyX
258  and how to direct
259  \SpecialChar LyX
260  to generate exactly the \SpecialChar LaTeX
261  code you want.
262  It is obviously for more seasoned \SpecialChar LyX
263  users.
264 \end_layout
265
266 \begin_layout Chapter
267 \SpecialChar LyX
268  and \SpecialChar LaTeX
269
270 \end_layout
271
272 \begin_layout Section
273 How \SpecialChar LyX
274  Uses \SpecialChar LaTeX
275
276 \end_layout
277
278 \begin_layout Standard
279 This chapter is for both \SpecialChar TeX
280 -nicians and the \SpecialChar LaTeX
281 -curious.
282  In it, we'll explain how \SpecialChar LyX
283  and \SpecialChar LaTeX
284  work together to produce printable output.
285  This is the only place in any of the manuals where we assume you know something
286  about \SpecialChar LaTeX
287 .
288 \end_layout
289
290 \begin_layout Standard
291 At one time, \SpecialChar LyX
292  was called a 
293 \begin_inset Quotes eld
294 \end_inset
295
296 WYSIWYM frontend to \SpecialChar LaTeX
297 ,
298 \begin_inset Quotes erd
299 \end_inset
300
301  but that's no longer true.
302  There are frontends to \SpecialChar LaTeX
303  out there.
304 \begin_inset Foot
305 status collapsed
306
307 \begin_layout Plain Layout
308 Some familar ones are \SpecialChar TeX
309 maker and kile, on Linux, and \SpecialChar TeX
310 shop, OSX.
311  There are also the \SpecialChar LaTeX
312  modes for vi and emacs, of course.
313 \end_layout
314
315 \end_inset
316
317  These are basically text editors with the ability to run \SpecialChar LaTeX
318  and mark any
319  errors in the file you're editing.
320  Although \SpecialChar LyX
321  
322 \emph on
323 is
324 \emph default
325  an editor, and it 
326 \emph on
327 does
328 \emph default
329  run \SpecialChar LaTeX
330 , and it also indicates errors in the file, it also does much, much
331  more.
332  For one thing, you don't need to know \SpecialChar LaTeX
333  to use \SpecialChar LyX
334  effectively.
335  And \SpecialChar LyX
336  has added its own extensions to \SpecialChar LaTeX
337 .
338  Try the following sometime: select 
339 \begin_inset Flex Noun
340 status collapsed
341
342 \begin_layout Plain Layout
343 Export\SpecialChar menuseparator
344 LaTeX
345 \end_layout
346
347 \end_inset
348
349  from the 
350 \begin_inset Flex Noun
351 status collapsed
352
353 \begin_layout Plain Layout
354 File
355 \end_layout
356
357 \end_inset
358
359  menu (or 
360 \begin_inset Flex Noun
361 status collapsed
362
363 \begin_layout Plain Layout
364 View\SpecialChar menuseparator
365 Source
366 \begin_inset space ~
367 \end_inset
368
369 Pane
370 \end_layout
371
372 \end_inset
373
374 ), then look at the preamble of the resulting 
375 \begin_inset Flex Code
376 status collapsed
377
378 \begin_layout Plain Layout
379 .tex
380 \end_layout
381
382 \end_inset
383
384  file.
385  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
386 .
387  These macros are defined automatically, according to the features you use
388  in the document.
389 \end_layout
390
391 \begin_layout Standard
392 There are several commands that automatically invoke \SpecialChar LaTeX
393 .
394  They are:
395 \end_layout
396
397 \begin_layout Itemize
398 \begin_inset Flex Noun
399 status collapsed
400
401 \begin_layout Plain Layout
402 Document\SpecialChar menuseparator
403 View
404 \end_layout
405
406 \end_inset
407
408
409 \end_layout
410
411 \begin_layout Itemize
412 \begin_inset Flex Noun
413 status collapsed
414
415 \begin_layout Plain Layout
416 Document\SpecialChar menuseparator
417 Update
418 \end_layout
419
420 \end_inset
421
422
423 \end_layout
424
425 \begin_layout Standard
426 They will only invoke \SpecialChar LaTeX
427  if the file has changed since the last time \SpecialChar LaTeX
428  was
429  run.
430  
431 \end_layout
432
433 \begin_layout Standard
434 When \SpecialChar LyX
435  runs \SpecialChar LaTeX
436  on the file you're editing, it performs these steps:
437 \end_layout
438
439 \begin_layout Enumerate
440 Convert the document to \SpecialChar LaTeX
441  and save to a file with the extension 
442 \begin_inset Flex Code
443 status collapsed
444
445 \begin_layout Plain Layout
446 .tex
447 \end_layout
448
449 \end_inset
450
451  in place of 
452 \begin_inset Flex Code
453 status collapsed
454
455 \begin_layout Plain Layout
456 .lyx
457 \end_layout
458
459 \end_inset
460
461 .
462 \end_layout
463
464 \begin_layout Enumerate
465 Run \SpecialChar LaTeX
466  on the 
467 \begin_inset Flex Code
468 status collapsed
469
470 \begin_layout Plain Layout
471 .tex
472 \end_layout
473
474 \end_inset
475
476  file (maybe several times), and run any other commands (such as 
477 \begin_inset Flex Code
478 status collapsed
479
480 \begin_layout Plain Layout
481 bibtex
482 \end_layout
483
484 \end_inset
485
486  or 
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 makeindex
492 \end_layout
493
494 \end_inset
495
496 ) needed to compile the \SpecialChar LaTeX
497  file.
498 \end_layout
499
500 \begin_layout Enumerate
501 If there are any errors, show the error log.
502 \end_layout
503
504 \begin_layout Standard
505 If you have run \SpecialChar LaTeX
506  using 
507 \begin_inset Flex Noun
508 status collapsed
509
510 \begin_layout Plain Layout
511 View\SpecialChar menuseparator
512 DVI
513 \end_layout
514
515 \end_inset
516
517 , \SpecialChar LyX
518  then runs a DVI viewer to display the DVI-file.
519  If you have used 
520 \begin_inset Flex Noun
521 status collapsed
522
523 \begin_layout Plain Layout
524 View\SpecialChar menuseparator
525 PostScript
526 \end_layout
527
528 \end_inset
529
530 , \SpecialChar LyX
531  performs further steps:
532 \end_layout
533
534 \begin_layout Itemize
535 Run 
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 dvips
541 \end_layout
542
543 \end_inset
544
545  to convert the DVI file to PostScript.
546 \end_layout
547
548 \begin_layout Itemize
549 Run a PostScript viewer, such as 
550 \begin_inset Flex Code
551 status collapsed
552
553 \begin_layout Plain Layout
554 ghostview
555 \end_layout
556
557 \end_inset
558
559 , to display the PostScript file.
560 \end_layout
561
562 \begin_layout Standard
563 \SpecialChar LyX
564  does similar things when viewing, or exporting, other formats.
565 \end_layout
566
567 \begin_layout Section
568 Translating \SpecialChar LaTeX
569  files into \SpecialChar LyX
570
571 \end_layout
572
573 \begin_layout Standard
574 You can import a \SpecialChar LaTeX
575  file into \SpecialChar LyX
576  by using the 
577 \begin_inset Flex Noun
578 status collapsed
579
580 \begin_layout Plain Layout
581 File\SpecialChar menuseparator
582 Import\SpecialChar menuseparator
583 LaTeX
584 \end_layout
585
586 \end_inset
587
588  command in \SpecialChar LyX
589 .
590  This will call a program named 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 tex2lyx
596 \end_layout
597
598 \end_inset
599
600  which will create a file 
601 \begin_inset Flex Code
602 status collapsed
603
604 \begin_layout Plain Layout
605 foo.lyx
606 \end_layout
607
608 \end_inset
609
610  from the file 
611 \begin_inset Flex Code
612 status collapsed
613
614 \begin_layout Plain Layout
615 foo.tex
616 \end_layout
617
618 \end_inset
619
620 .
621  \SpecialChar LyX
622  will then open that file.
623 \begin_inset Foot
624 status collapsed
625
626 \begin_layout Plain Layout
627 \begin_inset Flex Code
628 status collapsed
629
630 \begin_layout Plain Layout
631 tex2lyx
632 \end_layout
633
634 \end_inset
635
636  can also be run from the command line, of course.
637 \end_layout
638
639 \end_inset
640
641
642 \end_layout
643
644 \begin_layout Standard
645 \begin_inset Flex Code
646 status collapsed
647
648 \begin_layout Plain Layout
649 tex2lyx
650 \end_layout
651
652 \end_inset
653
654  will translate most legal \SpecialChar LaTeX
655 , but not everything.
656  It will put things it doesn't understand into \SpecialChar TeX
657  code, so after translating
658  a file with 
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663 tex2lyx
664 \end_layout
665
666 \end_inset
667
668 , you can look for \SpecialChar TeX
669  code and hand-edit it until it looks right.
670 \end_layout
671
672 \begin_layout Standard
673 If you don't know what \SpecialChar TeX
674  code is, read the next section.
675 \end_layout
676
677 \begin_layout Section
678 \begin_inset CommandInset label
679 LatexCommand label
680 name "sec:Inserting-TeX-Code"
681
682 \end_inset
683
684 Inserting \SpecialChar TeX
685  Code into \SpecialChar LyX
686  Documents 
687 \end_layout
688
689 \begin_layout Standard
690 Anything you can do in \SpecialChar LaTeX
691  you can do in \SpecialChar LyX
692 , for a very simple reason: You can
693  always insert \SpecialChar TeX
694  code into any \SpecialChar LyX
695  document.
696  \SpecialChar LyX
697  cannot, and will never be able to, display every possible \SpecialChar LaTeX
698  construct.
699  If ever you need to insert \SpecialChar LaTeX
700  commands into your \SpecialChar LyX
701  document, you can use the
702  
703 \begin_inset Flex Code
704 status collapsed
705
706 \begin_layout Plain Layout
707 \SpecialChar TeX
708  Code
709 \end_layout
710
711 \end_inset
712
713  box, which you can insert into your document with 
714 \begin_inset Flex Noun
715 status collapsed
716
717 \begin_layout Plain Layout
718 Insert\SpecialChar menuseparator
719
720 \family sans
721 TeX
722 \family default
723  Code
724 \end_layout
725
726 \end_inset
727
728  or the keyboard shortcut 
729 \begin_inset Info
730 type  "shortcut"
731 arg   "ert-insert"
732 \end_inset
733
734 .
735 \end_layout
736
737 \begin_layout Standard
738 Here's an example of inserting \SpecialChar LaTeX
739  commands in a \SpecialChar LyX
740  document.
741  The code looks like this:
742 \end_layout
743
744 \begin_layout LyX-Code
745
746 \backslash
747 begin{tabular}{ll}
748 \begin_inset Newline newline
749 \end_inset
750
751
752 \backslash
753 begin{minipage}{5cm}
754 \begin_inset Newline newline
755 \end_inset
756
757 This is an example of a minipage environment.
758  You 
759 \begin_inset Newline newline
760 \end_inset
761
762 can put nearly everything in it, even (non-floating) 
763 \begin_inset Newline newline
764 \end_inset
765
766 figures and tables.
767  
768 \begin_inset Newline newline
769 \end_inset
770
771
772 \backslash
773 end{minipage}
774 \begin_inset Newline newline
775 \end_inset
776
777 &
778 \begin_inset Newline newline
779 \end_inset
780
781
782 \backslash
783 begin{minipage}{5cm}
784 \begin_inset Newline newline
785 \end_inset
786
787
788 \backslash
789 begin{verbatim}
790 \begin_inset Newline newline
791 \end_inset
792
793
794 \backslash
795 begin{minipage}{5cm}
796 \begin_inset Newline newline
797 \end_inset
798
799 This ...
800  
801 \begin_inset Newline newline
802 \end_inset
803
804
805 \backslash
806 end{minipage}
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 end{verbatim}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 end{minipage}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 end{tabular}
825 \end_layout
826
827 \begin_layout LyX-Code
828
829 \end_layout
830
831 \begin_layout Standard
832 The 
833 \begin_inset Flex Code
834 status collapsed
835
836 \begin_layout Plain Layout
837 \SpecialChar TeX
838  Code
839 \end_layout
840
841 \end_inset
842
843  box containing this text is directly after this paragraph.
844  Those of you reading the manual in \SpecialChar LyX
845  will only see the \SpecialChar TeX
846  code inset.
847  Those reading a printed version of the manuals will see the actual results:
848 \begin_inset VSpace bigskip
849 \end_inset
850
851
852 \end_layout
853
854 \begin_layout Standard
855 \begin_inset ERT
856 status open
857
858 \begin_layout Plain Layout
859
860
861 \backslash
862 begin{tabular}{ll}
863 \end_layout
864
865 \begin_layout Plain Layout
866
867
868 \backslash
869 begin{minipage}{5cm}
870 \end_layout
871
872 \begin_layout Plain Layout
873
874 This is an example of a minipage environment.
875  You can put nearly everything in it, even (non-floating) figures and tables.
876  
877 \end_layout
878
879 \begin_layout Plain Layout
880
881
882 \backslash
883 end{minipage}
884 \end_layout
885
886 \begin_layout Plain Layout
887
888 &
889 \end_layout
890
891 \begin_layout Plain Layout
892
893
894 \backslash
895 begin{minipage}{5cm}
896 \end_layout
897
898 \begin_layout Plain Layout
899
900
901 \backslash
902 begin{verbatim}
903 \end_layout
904
905 \begin_layout Plain Layout
906
907
908 \backslash
909 begin{minipage}{5cm}
910 \end_layout
911
912 \begin_layout Plain Layout
913
914 This ...
915  
916 \end_layout
917
918 \begin_layout Plain Layout
919
920
921 \backslash
922 end{minipage}
923 \end_layout
924
925 \begin_layout Plain Layout
926
927
928 \backslash
929 end{verbatim}
930 \end_layout
931
932 \begin_layout Plain Layout
933
934
935 \backslash
936 end{minipage}
937 \end_layout
938
939 \begin_layout Plain Layout
940
941
942 \backslash
943 end{tabular}
944 \end_layout
945
946 \end_inset
947
948
949 \begin_inset VSpace bigskip
950 \end_inset
951
952
953 \end_layout
954
955 \begin_layout Standard
956 In addition to using \SpecialChar TeX
957  code, you can also create a separate file containing
958  some complex \SpecialChar LaTeX
959  structure and then use 
960 \begin_inset Flex Noun
961 status collapsed
962
963 \begin_layout Plain Layout
964 Insert\SpecialChar menuseparator
965 Child
966 \begin_inset space ~
967 \end_inset
968
969 Document
970 \end_layout
971
972 \end_inset
973
974  to include your file (you should select the type 
975 \begin_inset Flex Code
976 status collapsed
977
978 \begin_layout Plain Layout
979 Input
980 \end_layout
981
982 \end_inset
983
984 ).
985  We recommend that you only do this if you have a 
986 \begin_inset Flex Code
987 status collapsed
988
989 \begin_layout Plain Layout
990 .tex
991 \end_layout
992
993 \end_inset
994
995  file which you 
996 \emph on
997 know
998 \emph default
999  works already.
1000  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1001  errors.
1002 \end_layout
1003
1004 \begin_layout Standard
1005 There are a few last points to emphasize:
1006 \end_layout
1007
1008 \begin_layout Itemize
1009 \SpecialChar LyX
1010  
1011 \emph on
1012 does not
1013 \emph default
1014  check if your \SpecialChar LaTeX
1015  code is correct.
1016 \end_layout
1017
1018 \begin_layout Itemize
1019 Beware of reinventing the wheel.
1020 \end_layout
1021
1022 \begin_layout Standard
1023 On that last point, \SpecialChar LyX
1024  does have quite a few features tucked into it, and
1025  more are coming.
1026  Be sure to check the manuals to make sure that \SpecialChar LyX
1027  doesn't have such-and-such
1028  feature before you decide you have to do it by hand.
1029  Moreover, there are numerous \SpecialChar LaTeX
1030  packages out there to do all sorts of things,
1031  from labels to envelopes to fancy multipage tables.
1032  Check out 
1033 \begin_inset CommandInset href
1034 LatexCommand href
1035 name "CTAN"
1036 target "http://www.ctan.org/"
1037 literal "false"
1038
1039 \end_inset
1040
1041  for details.
1042 \end_layout
1043
1044 \begin_layout Standard
1045 If you do need to do some wild and fancy things within your document, be
1046  sure to check out a good \SpecialChar LaTeX
1047  book for assistance.
1048  There are a number of them listed in the bibliography of the 
1049 \emph on
1050 User's Guide
1051 \emph default
1052 .
1053 \end_layout
1054
1055 \begin_layout Section
1056 \SpecialChar LyX
1057  and the \SpecialChar LaTeX
1058  Preamble
1059 \end_layout
1060
1061 \begin_layout Subsection
1062 About the \SpecialChar LaTeX
1063  Preamble
1064 \end_layout
1065
1066 \begin_layout Standard
1067 If you already know \SpecialChar LaTeX
1068 , there is no need to explain here what the preamble
1069  is good for.
1070  If you don't, the following will give you some ideas—we recommend again
1071  that you consult a \SpecialChar LaTeX
1072  book for further information.
1073  In any case, you should read the points below, because they explain what
1074  you can do and what you don't need to do in the \SpecialChar LaTeX
1075  preamble of a \SpecialChar LyX
1076  document.
1077 \end_layout
1078
1079 \begin_layout Standard
1080 The \SpecialChar LaTeX
1081  preamble comes at the very beginning of a document, 
1082 \emph on
1083 before
1084 \emph default
1085  the text.
1086  It serves to:
1087 \end_layout
1088
1089 \begin_layout Itemize
1090 Declare the document class.
1091  
1092 \begin_inset Newline newline
1093 \end_inset
1094
1095 \SpecialChar LyX
1096  already does this for you.
1097  If you're a seasoned \SpecialChar LaTeX
1098 -nician, and you have a custom document class you
1099  want to use, check out the 
1100 \emph on
1101 Customization Manual
1102 \emph default
1103  for information on how to make \SpecialChar LyX
1104  interface to it.
1105 \end_layout
1106
1107 \begin_layout Itemize
1108 Declare the usage of packages.
1109  
1110 \begin_inset Newline newline
1111 \end_inset
1112
1113 \SpecialChar LaTeX
1114  packages provide special commands, which are only available within a document
1115  when the package has been declared in the preamble.
1116  In addition to providing special commands, the inclusion of a package can
1117  change the document.
1118  For example, the package 
1119 \begin_inset Flex Code
1120 status collapsed
1121
1122 \begin_layout Plain Layout
1123 indentfirst
1124 \end_layout
1125
1126 \end_inset
1127
1128  forces all paragraphs to be indented.
1129  There are other packages for labels, envelopes, margins, etc.
1130  
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Set counters, variables, lengths and widths.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 There are several \SpecialChar LaTeX
1140  counters and variables that 
1141 \emph on
1142 must
1143 \emph default
1144  be set globally from within the preamble in order to have the desired effect.
1145  (There are variables that you can set and reset inside the document, too.)
1146  Margins are a good example of something that must be set in the preamble.
1147  Another example is the label format for lists.
1148  You can actually set these just about anywhere, but it's best to do it
1149  just once, inside the preamble.
1150 \end_layout
1151
1152 \begin_layout Itemize
1153 Declare user defined commands (with 
1154 \begin_inset Flex Code
1155 status collapsed
1156
1157 \begin_layout Plain Layout
1158
1159 \backslash
1160 newcommand
1161 \end_layout
1162
1163 \end_inset
1164
1165  or 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170
1171 \backslash
1172 renewcommand
1173 \end_layout
1174
1175 \end_inset
1176
1177 ).
1178 \begin_inset Newline newline
1179 \end_inset
1180
1181 These are abbreviations for \SpecialChar LaTeX
1182  commands which appear very often inside a document.
1183  Although the preamble is a good place to declare such commands, they 
1184 \emph on
1185 can
1186 \emph default
1187  be declared anywhere (before they are used for the first time, of course).
1188  This can be useful if there is a lot of raw \SpecialChar LaTeX
1189  code in your document, which
1190  normally should not be the case.
1191 \end_layout
1192
1193 \begin_layout Standard
1194 \SpecialChar LyX
1195  adds its own set of definitions to the preamble of the 
1196 \begin_inset Flex Code
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 .tex
1201 \end_layout
1202
1203 \end_inset
1204
1205  file it produces.
1206  This makes \SpecialChar LaTeX
1207  files generated by \SpecialChar LyX
1208  portable.
1209 \end_layout
1210
1211 \begin_layout Subsection
1212 Changing the Preamble
1213 \end_layout
1214
1215 \begin_layout Standard
1216 The commands which \SpecialChar LyX
1217  adds to the preamble of a \SpecialChar LaTeX
1218  file are fixed; you can't
1219  change them without patching \SpecialChar LyX
1220  itself.
1221  You can, however, add your own stuff to the preamble by selecting 
1222 \begin_inset Flex Noun
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 \SpecialChar LaTeX
1227
1228 \begin_inset space ~
1229 \end_inset
1230
1231 Preamble
1232 \end_layout
1233
1234 \end_inset
1235
1236  in the 
1237 \begin_inset Flex Noun
1238 status collapsed
1239
1240 \begin_layout Plain Layout
1241 Document\SpecialChar menuseparator
1242 Settings
1243 \end_layout
1244
1245 \end_inset
1246
1247  dialog.
1248  \SpecialChar LyX
1249  adds anything in the 
1250 \begin_inset Flex Noun
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 Preamble
1255 \end_layout
1256
1257 \end_inset
1258
1259  dialog to its own built-in preamble.
1260  Before adding your own declarations in the preamble, you should make sure
1261  that \SpecialChar LyX
1262  doesn't already support what you want to do.
1263  (Remember what we said about reinventing the wheel?) Also, 
1264 \emph on
1265 make sure your preamble code is correct
1266 \emph default
1267 .
1268  \SpecialChar LyX
1269  doesn't check it for you.
1270  If there is an error, you're likely to get an error like 
1271 \begin_inset Quotes eld
1272 \end_inset
1273
1274
1275 \begin_inset Flex Code
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 Missing 
1280 \backslash
1281 begin{document}
1282 \end_layout
1283
1284 \end_inset
1285
1286
1287 \begin_inset Quotes erd
1288 \end_inset
1289
1290 .
1291  If you see this error, check your preamble.
1292 \end_layout
1293
1294 \begin_layout Subsection
1295 Examples
1296 \end_layout
1297
1298 \begin_layout Standard
1299 Here are some examples of what you can add to a preamble, and what they
1300  do.
1301 \end_layout
1302
1303 \begin_layout Subsubsection
1304 Example #1: Offsets
1305 \end_layout
1306
1307 \begin_layout Standard
1308 There are two variables under \SpecialChar LaTeX
1309  that control page position: 
1310 \begin_inset Flex Code
1311 status collapsed
1312
1313 \begin_layout Plain Layout
1314
1315 \backslash
1316 hoffset
1317 \end_layout
1318
1319 \end_inset
1320
1321  and 
1322 \begin_inset Flex Code
1323 status collapsed
1324
1325 \begin_layout Plain Layout
1326
1327 \backslash
1328 voffset
1329 \end_layout
1330
1331 \end_inset
1332
1333 .
1334  Their names should be self-explanatory.
1335  These variables are useful if you think for a moment about computer labels.
1336  Sometimes, the size of a print medium and the area of the medium that you
1337  can actually print on aren't the same.
1338  This is where 
1339 \begin_inset Flex Code
1340 status collapsed
1341
1342 \begin_layout Plain Layout
1343
1344 \backslash
1345 hoffset
1346 \end_layout
1347
1348 \end_inset
1349
1350  and 
1351 \begin_inset Flex Code
1352 status collapsed
1353
1354 \begin_layout Plain Layout
1355
1356 \backslash
1357 voffset
1358 \end_layout
1359
1360 \end_inset
1361
1362  come in.
1363 \end_layout
1364
1365 \begin_layout Standard
1366 The default values for 
1367 \begin_inset Flex Code
1368 status collapsed
1369
1370 \begin_layout Plain Layout
1371
1372 \backslash
1373 hoffset
1374 \end_layout
1375
1376 \end_inset
1377
1378  and 
1379 \begin_inset Flex Code
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383
1384 \backslash
1385 voffset
1386 \end_layout
1387
1388 \end_inset
1389
1390  are both 0
1391 \begin_inset space \thinspace{}
1392 \end_inset
1393
1394 points, i.
1395 \begin_inset space \thinspace{}
1396 \end_inset
1397
1398 e.
1399 \begin_inset space \space{}
1400 \end_inset
1401
1402 the page isn't shifted.
1403  Unfortunately, some DVI drivers always seem to shift the page.
1404  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1405  If you're using \SpecialChar LyX
1406  on a system that you don't personally maintain, and your
1407  sysadmin is a doofus, 
1408 \begin_inset Flex Code
1409 status collapsed
1410
1411 \begin_layout Plain Layout
1412
1413 \backslash
1414 hoffset
1415 \end_layout
1416
1417 \end_inset
1418
1419  and 
1420 \begin_inset Flex Code
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424
1425 \backslash
1426 voffset
1427 \end_layout
1428
1429 \end_inset
1430
1431  can save the day.
1432  Suppose your left and top margins are always 0.5
1433 \begin_inset space \thinspace{}
1434 \end_inset
1435
1436 inches too big.
1437  You can add this to the preamble:
1438 \end_layout
1439
1440 \begin_layout LyX-Code
1441
1442 \backslash
1443 setlength{
1444 \backslash
1445 hoffset}{-0.5 in}
1446 \end_layout
1447
1448 \begin_layout LyX-Code
1449
1450 \backslash
1451 setlength{
1452 \backslash
1453 voffset}{-0.5 in}
1454 \end_layout
1455
1456 \begin_layout Standard
1457 and your margins should now be correct.
1458 \end_layout
1459
1460 \begin_layout Subsubsection
1461 Example #2: Labels
1462 \end_layout
1463
1464 \begin_layout Standard
1465 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1466  There's a rather nice package, available at your nearest CTAN archive,
1467  for printing sheets of labels: 
1468 \begin_inset Flex Code
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472 labels.sty
1473 \end_layout
1474
1475 \end_inset
1476
1477 .
1478  Now, your system may not have this package installed by default.
1479  We leave that up to you to check.
1480  You'll also want to read the documentation for it; we're not going to do
1481  that for you.
1482  Since this is an example, however, we'll give you an example of how you
1483  use this package.
1484 \end_layout
1485
1486 \begin_layout Standard
1487 First, make sure you're using the 
1488 \begin_inset Flex Code
1489 status collapsed
1490
1491 \begin_layout Plain Layout
1492 article
1493 \end_layout
1494
1495 \end_inset
1496
1497  document class.
1498  Next, you need to put the following in your preamble:
1499 \end_layout
1500
1501 \begin_layout LyX-Code
1502
1503 \backslash
1504 usepackage{labels}
1505 \end_layout
1506
1507 \begin_layout LyX-Code
1508
1509 \backslash
1510 LabelCols=3
1511 \end_layout
1512
1513 \begin_layout LyX-Code
1514
1515 \backslash
1516 LabelRows=7
1517 \end_layout
1518
1519 \begin_layout LyX-Code
1520
1521 \backslash
1522 LeftBorder=8mm
1523 \end_layout
1524
1525 \begin_layout LyX-Code
1526
1527 \backslash
1528 RightBorder=8mm
1529 \end_layout
1530
1531 \begin_layout LyX-Code
1532
1533 \backslash
1534 TopBorder=9mm
1535 \end_layout
1536
1537 \begin_layout LyX-Code
1538
1539 \backslash
1540 BottomBorder=2mm
1541 \end_layout
1542
1543 \begin_layout Standard
1544 This sets things up for Avery label sheets, stock #5360.
1545  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1546  code, placing
1547  the commands 
1548 \begin_inset Flex Code
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552
1553 \backslash
1554 begin{labels}
1555 \end_layout
1556
1557 \end_inset
1558
1559  and 
1560 \begin_inset Flex Code
1561 status collapsed
1562
1563 \begin_layout Plain Layout
1564
1565 \backslash
1566 end{labels}
1567 \end_layout
1568
1569 \end_inset
1570
1571  around each label text.
1572  This and other special features of 
1573 \begin_inset Flex Code
1574 status collapsed
1575
1576 \begin_layout Plain Layout
1577 labels.sty
1578 \end_layout
1579
1580 \end_inset
1581
1582  are explained in its documentation.
1583 \end_layout
1584
1585 \begin_layout Standard
1586 Someday, someone may write a \SpecialChar LyX
1587  layout file to support this package directly.
1588  Maybe that someone is you.
1589 \end_layout
1590
1591 \begin_layout Subsubsection
1592 Example #3: Paragraph Indentation
1593 \end_layout
1594
1595 \begin_layout Standard
1596 Americans are trained to indent the first line of 
1597 \emph on
1598 every
1599 \emph default
1600  paragraph.
1601  As with all of their other weird quirks, most Americans will whine and
1602  moan until they can have their way and indent the first line of all paragraphs.
1603  (Yes, we're joking.
1604  (We are?) 
1605 \emph on
1606 Yeah
1607 \emph default
1608 , we are.)
1609 \end_layout
1610
1611 \begin_layout Standard
1612 Of course, this behavior isn't standard typography.
1613  In books, you typically only indent the first line of a paragraph 
1614 \emph on
1615 if
1616 \emph default
1617  it follows another one.
1618  The idea behind indenting the first line of a paragraph is to distinguish
1619  neighboring paragraphs from one another.
1620  If there is no previous paragraph—for example, if it follows a figure or
1621  is the first paragraph in a section—then there is no need for indentation.
1622  
1623 \end_layout
1624
1625 \begin_layout Standard
1626 If you're a typical American (we're still joking!), though, you don't care
1627  about such esoteric things; you want your indentation! Add this to the
1628  preamble:
1629 \end_layout
1630
1631 \begin_layout LyX-Code
1632
1633 \backslash
1634 usepackage{indentfirst}
1635 \end_layout
1636
1637 \begin_layout Standard
1638 If your \SpecialChar TeX
1639  distribution isn't braindead, you'll have this package, and all
1640  of your paragraphs will get the indentation the Founding Fathers intended
1641  they should have.
1642 \end_layout
1643
1644 \begin_layout Subsubsection
1645 Example #4: This Document
1646 \end_layout
1647
1648 \begin_layout Standard
1649 You can also check out the preamble of this document to get an idea of some
1650  of the advanced things you can do.
1651 \end_layout
1652
1653 \begin_layout Section
1654 \SpecialChar LyX
1655  and \SpecialChar LaTeX
1656  Errors
1657 \end_layout
1658
1659 \begin_layout Standard
1660 When \SpecialChar LyX
1661  calls \SpecialChar LaTeX
1662 , it tells \SpecialChar LaTeX
1663  to blithely ignore any errors and keep going.
1664  It then uses the logfile from the \SpecialChar LaTeX
1665  run to do a post-mortem.
1666  After analyzing the logfile, \SpecialChar LyX
1667  displays a dialog listing the errors.
1668  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1669  file
1670  where the error occurred.
1671 \begin_inset Foot
1672 status collapsed
1673
1674 \begin_layout Plain Layout
1675 Well, usually.
1676  Analyzing the logfile is a tough job, and \SpecialChar LyX
1677  doesn't always go to the right
1678  line.
1679  There are also cases where \SpecialChar LaTeX
1680  reports the error on one line, but the actual
1681  error is earlier.
1682  This is not unlike forgetting a closing brace in a program: You'll get
1683  an error, but only later.
1684 \end_layout
1685
1686 \end_inset
1687
1688
1689 \end_layout
1690
1691 \begin_layout Standard
1692 Some folks also like to look at the log file directly: It is available from
1693  
1694 \begin_inset Flex Noun
1695 status collapsed
1696
1697 \begin_layout Plain Layout
1698 Document\SpecialChar menuseparator
1699 LaTeX
1700 \begin_inset space ~
1701 \end_inset
1702
1703 Log
1704 \end_layout
1705
1706 \end_inset
1707
1708 .
1709  There are some fairly common error messages and warnings.
1710  We'll cover those here.
1711  You should look at a good \SpecialChar LaTeX
1712  book for a complete listing.
1713 \end_layout
1714
1715 \begin_layout Itemize
1716 \begin_inset Flex Code
1717 status collapsed
1718
1719 \begin_layout Plain Layout
1720 LaTeX Warning
1721 \end_layout
1722
1723 \end_inset
1724
1725
1726 \begin_inset Newline newline
1727 \end_inset
1728
1729 Anything beginning with these words is a warning message for the purpose
1730  of 
1731 \begin_inset Quotes eld
1732 \end_inset
1733
1734 debugging
1735 \begin_inset Quotes erd
1736 \end_inset
1737
1738  the \SpecialChar LaTeX
1739  code itself.
1740  You'll get messages like this if you added or changed cross-references
1741  or bibliography entries, in which case, \SpecialChar LaTeX
1742  is trying to tell you that you
1743  need to make another run.
1744  You can by-and-large ignore these.
1745 \end_layout
1746
1747 \begin_layout Itemize
1748 \begin_inset Flex Code
1749 status collapsed
1750
1751 \begin_layout Plain Layout
1752 LaTeX Font Warning
1753 \end_layout
1754
1755 \end_inset
1756
1757
1758 \begin_inset Newline newline
1759 \end_inset
1760
1761 Another warning message, this time about fonts which \SpecialChar LaTeX
1762  couldn't find.
1763  The rest of the message will often say something about a replacement font
1764  that \SpecialChar LaTeX
1765  used.
1766  You can safely ignore these, too.
1767 \end_layout
1768
1769 \begin_layout Itemize
1770 \begin_inset Flex Code
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 Overfull 
1775 \backslash
1776 hbox
1777 \end_layout
1778
1779 \end_inset
1780
1781
1782 \begin_inset Newline newline
1783 \end_inset
1784
1785 \SpecialChar LaTeX
1786  absolutely 
1787 \emph on
1788 loves
1789 \emph default
1790  to spew these out.
1791  They are warnings about lines that were too long and run past the right
1792  margin.
1793  Almost always, this is unnoticeable in the final output.
1794  (It can be just a point or two.) Or, only one or two characters extend past
1795  the margin.
1796  \SpecialChar LaTeX
1797  seems to generate at least one of these messages for just about any document
1798  you write.
1799 \begin_inset Newline newline
1800 \end_inset
1801
1802 You can ignore these messages.
1803  Your eyes will tell you if there's a problem with something that's too
1804  wide; just look at the output.
1805 \begin_inset Foot
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 You can also enable the `draft' option in 
1810 \begin_inset Flex Noun
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814 Document\SpecialChar menuseparator
1815 Settings
1816 \end_layout
1817
1818 \end_inset
1819
1820 , and then \SpecialChar LaTeX
1821  will draw a black box in the margin of lines that are overfull.
1822 \end_layout
1823
1824 \end_inset
1825
1826
1827 \end_layout
1828
1829 \begin_layout Itemize
1830 \begin_inset Flex Code
1831 status collapsed
1832
1833 \begin_layout Plain Layout
1834 Underfull 
1835 \backslash
1836 hbox
1837 \end_layout
1838
1839 \end_inset
1840
1841
1842 \begin_inset Newline newline
1843 \end_inset
1844
1845 Not quite as common as its cousin.
1846  \SpecialChar LaTeX
1847  seems to like to print lines that are a bit too wide as opposed to ones
1848  that are a bit too narrow.
1849  We have no idea why.
1850 \end_layout
1851
1852 \begin_layout Itemize
1853 \begin_inset Flex Code
1854 status collapsed
1855
1856 \begin_layout Plain Layout
1857 Overfull 
1858 \backslash
1859 vbox
1860 \end_layout
1861
1862 \end_inset
1863
1864  and 
1865 \begin_inset Flex Code
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 Underfull 
1870 \backslash
1871 vbox
1872 \end_layout
1873
1874 \end_inset
1875
1876
1877 \begin_inset Newline newline
1878 \end_inset
1879
1880 Warnings about troubles breaking the page.
1881  Once again, just look at the output.
1882  Your eyes will tell you where something has gone wrong.
1883 \end_layout
1884
1885 \begin_layout Itemize
1886 \begin_inset Flex Code
1887 status collapsed
1888
1889 \begin_layout Plain Layout
1890 LaTeX Error: File 
1891 \begin_inset Quotes els
1892 \end_inset
1893
1894 Xxxx
1895 \begin_inset Quotes ers
1896 \end_inset
1897
1898  not found
1899 \end_layout
1900
1901 \end_inset
1902
1903
1904 \begin_inset Newline newline
1905 \end_inset
1906
1907 The file 
1908 \begin_inset Quotes eld
1909 \end_inset
1910
1911 Xxxx
1912 \begin_inset Quotes erd
1913 \end_inset
1914
1915  isn't installed on this system.
1916  This usually appears because some package your document needs isn't installed.
1917  If you didn't touch the preamble or didn't use the 
1918 \begin_inset Flex Code
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922
1923 \backslash
1924 usepackage{}
1925 \end_layout
1926
1927 \end_inset
1928
1929  command, then one of the packages \SpecialChar LyX
1930  tried to load is missing.
1931  Use 
1932 \begin_inset Flex Noun
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 Help\SpecialChar menuseparator
1937 \SpecialChar LaTeX
1938  Configuration
1939 \end_layout
1940
1941 \end_inset
1942
1943  to get a list of packages that \SpecialChar LyX
1944  knows about.
1945  This file is updated whenever you reconfigure \SpecialChar LyX
1946  (using 
1947 \begin_inset Flex Noun
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 Tools\SpecialChar menuseparator
1952 Reconfigure
1953 \end_layout
1954
1955 \end_inset
1956
1957 ) and tells you which packages have been detected and what they do.
1958 \begin_inset Newline newline
1959 \end_inset
1960
1961 If you did use the 
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966
1967 \backslash
1968 usepackage{}
1969 \end_layout
1970
1971 \end_inset
1972
1973  command and the package in question isn't installed, then you'll need to
1974  install it yourself.
1975 \end_layout
1976
1977 \begin_layout Itemize
1978 \begin_inset Flex Code
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982 LaTeX Error: Unknown option
1983 \end_layout
1984
1985 \end_inset
1986
1987
1988 \begin_inset Newline newline
1989 \end_inset
1990
1991 Error messages beginning with this are trying to tell you that you specified
1992  a bad or undefined option to a package.
1993  Check the package's documentation.
1994 \end_layout
1995
1996 \begin_layout Itemize
1997 \begin_inset Flex Code
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 Undefined control sequence
2002 \end_layout
2003
2004 \end_inset
2005
2006
2007 \begin_inset Newline newline
2008 \end_inset
2009
2010 If you've inserted \SpecialChar LaTeX
2011  code into your document, but made a typo, you'll get
2012  one of these.
2013  You may have forgotten to load a package.
2014  In any case, this error message usually means that you used an undefined
2015  command.
2016  
2017 \end_layout
2018
2019 \begin_layout Standard
2020 There are other error and warning messages.
2021  Some are self-explanatory.
2022  These are usually \SpecialChar LaTeX
2023  messages.
2024  Others are downright cryptic.
2025  These are usually \SpecialChar TeX
2026  error messages, and we really have 
2027 \emph on
2028 no clue
2029 \emph default
2030  what they mean or how to decipher them.
2031  No-one does.
2032 \end_layout
2033
2034 \begin_layout Standard
2035 There's a general sequence you should follow if you get error messages:
2036 \end_layout
2037
2038 \begin_layout Enumerate
2039 Look at the \SpecialChar LaTeX
2040  code you inserted for typos.
2041 \end_layout
2042
2043 \begin_layout Enumerate
2044 If there are no typos, check that you used the command(s) correctly.
2045 \end_layout
2046
2047 \begin_layout Enumerate
2048 If you get a bunch of error boxes piled up at the very top of the document—and
2049  especially if you see a 
2050 \begin_inset Quotes eld
2051 \end_inset
2052
2053
2054 \begin_inset Flex Code
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 Missing 
2059 \backslash
2060 begin{document}
2061 \end_layout
2062
2063 \end_inset
2064
2065
2066 \begin_inset Quotes erd
2067 \end_inset
2068
2069  error—it means that there are errors in the preamble.
2070  Start debugging your preamble.
2071 \end_layout
2072
2073 \begin_layout Enumerate
2074 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2075  code to the
2076  document, the first suspect is your \SpecialChar LaTeX
2077  distribution itself.
2078  Check for missing packages and install them.
2079 \end_layout
2080
2081 \begin_layout Enumerate
2082 Okay, so there are no missing packages.
2083  Did you use any of the fine-tuning options in \SpecialChar LyX
2084 ? Specifically, did you 
2085 \emph on
2086 misuse
2087 \emph default
2088  any of them, like trying to manually insert lots of 
2089 \begin_inset Flex Code
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 Protected
2094 \begin_inset space ~
2095 \end_inset
2096
2097 Blanks
2098 \end_layout
2099
2100 \end_inset
2101
2102
2103 \begin_inset Flex Code
2104 status collapsed
2105
2106 \begin_layout Plain Layout
2107 Linebreaks
2108 \end_layout
2109
2110 \end_inset
2111
2112 , or 
2113 \begin_inset Flex Code
2114 status collapsed
2115
2116 \begin_layout Plain Layout
2117 Pagebreaks
2118 \end_layout
2119
2120 \end_inset
2121
2122 ? Did you try to kludge something together with these instead of using the
2123  appropriate paragraph environment?
2124 \end_layout
2125
2126 \begin_layout Enumerate
2127 All right, you didn't use any of the fine-tuning options, you played by
2128  the rules.
2129  Did you try to pull a fancy maneuver? Did you do something funky inside
2130  a table or an equation, like inserting a graphic into a table cell?
2131 \end_layout
2132
2133 \begin_layout Enumerate
2134 Do you have long sections of text where \SpecialChar LaTeX
2135  cannot find a place to break a
2136  line? By default, \SpecialChar LaTeX
2137  is rather strict about how much extra inter-word spacing
2138  it will add in order to break a line.
2139  Preferably, you should rework the paragraph to avoid the problem.
2140 \end_layout
2141
2142 \begin_layout Enumerate
2143 Did you go overboard with the nesting? \SpecialChar LyX
2144  (currently) doesn't check to make
2145  sure you're in the limits for nesting environments.
2146  If you nested a bunch of environments to the 
2147 \begin_inset Formula $17^{\mathrm{th}}$
2148 \end_inset
2149
2150  level, that's the problem.
2151  (The limit in \SpecialChar LaTeX
2152  is five.)
2153 \end_layout
2154
2155 \begin_layout Enumerate
2156 Okay, you didn't get any error messages, but your output looks awful.
2157  If you have a table or figure that's too wide or long for the page, you
2158  need to:
2159 \end_layout
2160
2161 \begin_deeper
2162 \begin_layout Enumerate
2163 rescale the figure so it fits.
2164 \end_layout
2165
2166 \begin_layout Enumerate
2167 trim down the table so it fits.
2168 \end_layout
2169
2170 \end_deeper
2171 \begin_layout Enumerate
2172 If something else is wrong with the output, and you didn't try to pull anything
2173  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2174 \end_layout
2175
2176 \begin_layout Standard
2177 If all this doesn't help—well, then 
2178 \emph on
2179 perhaps
2180 \emph default
2181  you might have found a bug in \SpecialChar LyX
2182 \SpecialChar ldots
2183 .
2184 \end_layout
2185
2186 \begin_layout Chapter
2187 Supplemental Tools
2188 \end_layout
2189
2190 \begin_layout Section
2191 Customizing Bibliographies with Bib\SpecialChar TeX
2192  or Biblatex
2193 \end_layout
2194
2195 \begin_layout Standard
2196 The most basic information about how to use Bib\SpecialChar TeX
2197  or 
2198 \family sans
2199 Biblatex
2200 \family default
2201  with \SpecialChar LyX
2202  is contained in the section 
2203 \emph on
2204 Bibliography databases
2205 \emph default
2206  of the 
2207 \emph on
2208 User's Guide
2209 \emph default
2210 .
2211  The following subsections explain special bibliography features supported
2212  by \SpecialChar LyX
2213 .
2214 \end_layout
2215
2216 \begin_layout Subsection
2217 Alternative Citation Styles
2218 \end_layout
2219
2220 \begin_layout Standard
2221 Standard Bib\SpecialChar TeX
2222  uses numbers (e.
2223 \begin_inset space \thinspace{}
2224 \end_inset
2225
2226 g.
2227 \begin_inset space \space{}
2228 \end_inset
2229
2230
2231 \begin_inset Quotes eld
2232 \end_inset
2233
2234 [12]
2235 \begin_inset Quotes erd
2236 \end_inset
2237
2238 ) to refer to a cited work.
2239  However, in many scientific disciplines, other citation styles are in use.
2240  The most common one is the author-year style (e.
2241 \begin_inset space \thinspace{}
2242 \end_inset
2243
2244 g.
2245 \begin_inset space \space{}
2246 \end_inset
2247
2248
2249 \begin_inset Quotes eld
2250 \end_inset
2251
2252 Knuth 1984a
2253 \begin_inset Quotes erd
2254 \end_inset
2255
2256 ).
2257  \SpecialChar LyX
2258  supports three packages that provide this style, 
2259 \begin_inset Flex Code
2260 status collapsed
2261
2262 \begin_layout Plain Layout
2263 biblatex
2264 \end_layout
2265
2266 \end_inset
2267
2268
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 natbib
2274 \end_layout
2275
2276 \end_inset
2277
2278 , and 
2279 \begin_inset Flex Code
2280 status collapsed
2281
2282 \begin_layout Plain Layout
2283 jurabib
2284 \end_layout
2285
2286 \end_inset
2287
2288 .
2289  Each of these packages has their pros and cons, which cannot be listed
2290  in detail.
2291  If you only want to have simple author-year (or author-numerical) style,
2292  or if you want to use one of the countless style files for 
2293 \begin_inset Flex Code
2294 status collapsed
2295
2296 \begin_layout Plain Layout
2297 natbib
2298 \end_layout
2299
2300 \end_inset
2301
2302 , then the established 
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 natbib
2308 \end_layout
2309
2310 \end_inset
2311
2312  package is probably your choice.
2313  If you look for specific citation styles common in law studies, you might
2314  consider the 
2315 \begin_inset Flex Code
2316 status collapsed
2317
2318 \begin_layout Plain Layout
2319 jurabib
2320 \end_layout
2321
2322 \end_inset
2323
2324  package.
2325  If you want to have full control over the formatting or look for advanced
2326  features such as ibidem, footnote citations, full title citations, advanced
2327  date formats (such as 400 BC) or full localization to other languages than
2328  English, you should definitely consider 
2329 \begin_inset Flex Code
2330 status collapsed
2331
2332 \begin_layout Plain Layout
2333 biblatex
2334 \end_layout
2335
2336 \end_inset
2337
2338 , which exceeds all other packages in terms of features, but is also quite
2339  heavy and more resource-hungry.
2340 \end_layout
2341
2342 \begin_layout Standard
2343 The handling of these packages in \SpecialChar LyX
2344  is basically the same.
2345  Go to 
2346 \begin_inset Flex Noun
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 Document\SpecialChar menuseparator
2351 Settings
2352 \end_layout
2353
2354 \end_inset
2355
2356  and select under 
2357 \begin_inset Flex Noun
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 Bibliography
2362 \end_layout
2363
2364 \end_inset
2365
2366  the 
2367 \begin_inset Flex Noun
2368 status collapsed
2369
2370 \begin_layout Plain Layout
2371 Style Format
2372 \end_layout
2373
2374 \end_inset
2375
2376  
2377 \begin_inset Flex Noun
2378 status collapsed
2379
2380 \begin_layout Plain Layout
2381 Biblatex
2382 \end_layout
2383
2384 \end_inset
2385
2386
2387 \begin_inset Flex Noun
2388 status collapsed
2389
2390 \begin_layout Plain Layout
2391 Biblatex (Natbib mode)
2392 \end_layout
2393
2394 \end_inset
2395
2396
2397 \begin_inset Flex Noun
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 Natbib (BibTeX)
2402 \end_layout
2403
2404 \end_inset
2405
2406  or 
2407 \begin_inset Flex Noun
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 Jurabib (BibTeX)
2412 \end_layout
2413
2414 \end_inset
2415
2416  (see sec.
2417 \begin_inset space ~
2418 \end_inset
2419
2420 6.5.3 in the User's Guide for more information on these choices).
2421  With all these packages, you will get some extra features in the citation
2422  dialog and you can select the style of the reference (
2423 \begin_inset Quotes eld
2424 \end_inset
2425
2426 Knuth 1984
2427 \begin_inset Quotes erd
2428 \end_inset
2429
2430
2431 \begin_inset Quotes eld
2432 \end_inset
2433
2434 Knuth (1984)
2435 \begin_inset Quotes erd
2436 \end_inset
2437
2438
2439 \begin_inset Quotes eld
2440 \end_inset
2441
2442 Knuth, 1984
2443 \begin_inset Quotes erd
2444 \end_inset
2445
2446
2447 \begin_inset Quotes eld
2448 \end_inset
2449
2450 1984
2451 \begin_inset Quotes erd
2452 \end_inset
2453
2454  etc.).
2455  Note that either package needs specifically designed style files.
2456  They all ship their own, but there are lots of additional style files,
2457  and there is even an interactive style file builder
2458 \begin_inset Foot
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 See 
2463 \begin_inset Flex URL
2464 status open
2465
2466 \begin_layout Plain Layout
2467
2468 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2469 \end_layout
2470
2471 \end_inset
2472
2473
2474 \end_layout
2475
2476 \end_inset
2477
2478  for 
2479 \begin_inset Flex Code
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 natbib
2484 \end_layout
2485
2486 \end_inset
2487
2488 .
2489 \end_layout
2490
2491 \begin_layout Subsection
2492 Subdivided Bibliographies
2493 \end_layout
2494
2495 \begin_layout Standard
2496 Sometimes you might need to divide your bibliography into several sections.
2497  If you are for instance a historian, the possibility to separate sources
2498  and scientific works is most likely a 
2499 \begin_inset Quotes eld
2500 \end_inset
2501
2502 must have
2503 \begin_inset Quotes erd
2504 \end_inset
2505
2506 .
2507  Unfortunately, Bib\SpecialChar TeX
2508  itself does not allow you to do this.
2509  But with the help of some \SpecialChar LaTeX
2510  packages, Bib\SpecialChar TeX
2511  can be extended to fit your needs.
2512 \end_layout
2513
2514 \begin_layout Standard
2515 \SpecialChar LyX
2516  provides native support for one of these packages, 
2517 \family typewriter
2518 bibtopic
2519 \family default
2520 .
2521 \begin_inset Foot
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 Available from 
2526 \begin_inset Flex URL
2527 status open
2528
2529 \begin_layout Plain Layout
2530
2531 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2532 \end_layout
2533
2534 \end_inset
2535
2536
2537 \end_layout
2538
2539 \end_inset
2540
2541  The advantage of this package (compared to other packages such as 
2542 \family typewriter
2543 multibib
2544 \family default
2545 ) is that you don't need to define new citation commands.
2546  Instead, you need to prepare different bibliographic databases which include
2547  the entries for the different sections of the bibliography.
2548  For example: If you want to divide your bibliography into the sections
2549  
2550 \begin_inset Quotes eld
2551 \end_inset
2552
2553 Sources
2554 \begin_inset Quotes erd
2555 \end_inset
2556
2557  and 
2558 \begin_inset Quotes eld
2559 \end_inset
2560
2561 Scientific works
2562 \begin_inset Quotes erd
2563 \end_inset
2564
2565 , you first need to create two bibliographic databases, e.
2566 \begin_inset space \thinspace{}
2567 \end_inset
2568
2569 g.
2570 \begin_inset space \space{}
2571 \end_inset
2572
2573
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 sources.bib
2579 \end_layout
2580
2581 \end_inset
2582
2583  and 
2584 \begin_inset Flex Code
2585 status collapsed
2586
2587 \begin_layout Plain Layout
2588 scientific.bib
2589 \end_layout
2590
2591 \end_inset
2592
2593 .
2594  
2595 \end_layout
2596
2597 \begin_layout Standard
2598 Go to 
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 Document\SpecialChar menuseparator
2604 Settings
2605 \end_layout
2606
2607 \end_inset
2608
2609  and check under 
2610 \begin_inset Flex Noun
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614 Bibliography
2615 \end_layout
2616
2617 \end_inset
2618
2619  the option 
2620 \begin_inset Flex Noun
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 Subdivided bibliography
2625 \end_layout
2626
2627 \end_inset
2628
2629 .
2630  Now you can insert multiple Bib\SpecialChar TeX
2631  bibliographies, one for each section of
2632  your bibliography.
2633  Returning to our example: Insert the Bib\SpecialChar TeX
2634  bibliography 
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 sources.bib
2640 \end_layout
2641
2642 \end_inset
2643
2644  and a second one for the database 
2645 \begin_inset Flex Code
2646 status collapsed
2647
2648 \begin_layout Plain Layout
2649 scientific.bib
2650 \end_layout
2651
2652 \end_inset
2653
2654 .
2655  You are free to use the same or different styles for each section.
2656  Additionally, you can choose if the bibliography section should contain
2657  
2658 \begin_inset Quotes eld
2659 \end_inset
2660
2661 all cited references
2662 \begin_inset Quotes erd
2663 \end_inset
2664
2665  of the specified database(s) (which is the default), 
2666 \begin_inset Quotes eld
2667 \end_inset
2668
2669 all uncited references
2670 \begin_inset Quotes erd
2671 \end_inset
2672
2673  or even 
2674 \begin_inset Quotes eld
2675 \end_inset
2676
2677 all references
2678 \begin_inset Quotes erd
2679 \end_inset
2680
2681 .
2682  This might be useful if you would like to separate your bibliography into
2683  three sections: 
2684 \begin_inset Quotes eld
2685 \end_inset
2686
2687 Cited sources
2688 \begin_inset Quotes erd
2689 \end_inset
2690
2691
2692 \begin_inset Quotes eld
2693 \end_inset
2694
2695 Uncited sources
2696 \begin_inset Quotes erd
2697 \end_inset
2698
2699 , and 
2700 \begin_inset Quotes eld
2701 \end_inset
2702
2703 Scientific works
2704 \begin_inset Quotes erd
2705 \end_inset
2706
2707 .
2708  The titles for the sections can be added as ordinary sections or subsections.
2709  Since 
2710 \begin_inset Flex Code
2711 status collapsed
2712
2713 \begin_layout Plain Layout
2714 bibtopic
2715 \end_layout
2716
2717 \end_inset
2718
2719  removes the bibliography title, you have to manually re-add that, too (as
2720  a chapter* or section*, for instance).
2721 \end_layout
2722
2723 \begin_layout Standard
2724 With 
2725 \family sans
2726 Biblatex
2727 \family default
2728 , the procedure is a bit different.
2729  Since 
2730 \family typewriter
2731 bibtopic
2732 \family default
2733  does not work with 
2734 \family sans
2735 Biblatex
2736 \family default
2737 , the aforementioned 
2738 \begin_inset Flex Noun
2739 status collapsed
2740
2741 \begin_layout Plain Layout
2742 Subdivided bibliography
2743 \end_layout
2744
2745 \end_inset
2746
2747  option is disabled if you use 
2748 \family sans
2749 Biblatex
2750 \family default
2751 .
2752  However, 
2753 \family sans
2754 Biblatex
2755 \family default
2756  provides its own means to generate subdivided bibliographies.
2757  You can either add keywords to bibliography entries via the 
2758 \begin_inset Flex Code
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 keywords
2763 \end_layout
2764
2765 \end_inset
2766
2767  entry option and then filter bibliography sections by keyword (by adding
2768  
2769 \begin_inset Flex Code
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 keyword=mykeyword
2774 \end_layout
2775
2776 \end_inset
2777
2778  to the 
2779 \begin_inset Flex Noun
2780 status collapsed
2781
2782 \begin_layout Plain Layout
2783 Options
2784 \end_layout
2785
2786 \end_inset
2787
2788  field of the dialog that opens if you right-click on the 
2789 \begin_inset Flex Noun
2790 status collapsed
2791
2792 \begin_layout Plain Layout
2793 Biblatex Generated Bibliography
2794 \end_layout
2795
2796 \end_inset
2797
2798  button), or you can filter by entry types (such as 
2799 \emph on
2800 book
2801 \emph default
2802  or 
2803 \emph on
2804 article
2805 \emph default
2806 ) by entering e.
2807 \begin_inset space \thinspace{}
2808 \end_inset
2809
2810 g.
2811  
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 type=book
2817 \end_layout
2818
2819 \end_inset
2820
2821  or 
2822 \begin_inset Flex Code
2823 status collapsed
2824
2825 \begin_layout Plain Layout
2826 nottype=collection
2827 \end_layout
2828
2829 \end_inset
2830
2831  to the mentioned 
2832 \begin_inset Flex Noun
2833 status collapsed
2834
2835 \begin_layout Plain Layout
2836 Options
2837 \end_layout
2838
2839 \end_inset
2840
2841  field, or you can create so-called 
2842 \begin_inset Quotes eld
2843 \end_inset
2844
2845 Bibliography Categories
2846 \begin_inset Quotes erd
2847 \end_inset
2848
2849  to which you can assign individual entries.
2850  Please refer to the Biblatex manual, section 
2851 \emph on
2852 Subdivided Bibliographies
2853 \emph default
2854 , for details.
2855 \end_layout
2856
2857 \begin_layout Subsection
2858 Multiple Bibliographies
2859 \end_layout
2860
2861 \begin_layout Standard
2862 Multiple bibliographies, e.
2863 \begin_inset space \thinspace{}
2864 \end_inset
2865
2866 g.
2867 \begin_inset space \space{}
2868 \end_inset
2869
2870 a bibliography for each part, chapter, section, subsection or child (sub-documen
2871 t) of the document, are also supported by \SpecialChar LyX
2872 .
2873  In order to enable it, go to 
2874 \begin_inset Flex Noun
2875 status collapsed
2876
2877 \begin_layout Plain Layout
2878 Document\SpecialChar menuseparator
2879 Settings\SpecialChar menuseparator
2880 Bibliography
2881 \end_layout
2882
2883 \end_inset
2884
2885  and select the relevant unit (e.
2886 \begin_inset space \thinspace{}
2887 \end_inset
2888
2889 g., 
2890 \begin_inset Quotes eld
2891 \end_inset
2892
2893 per section
2894 \begin_inset Quotes erd
2895 \end_inset
2896
2897 ) in the 
2898 \begin_inset Flex Noun
2899 status collapsed
2900
2901 \begin_layout Plain Layout
2902 Multiple Bibliographies
2903 \end_layout
2904
2905 \end_inset
2906
2907  combo box.
2908  Then add a Bib(la)\SpecialChar TeX
2909  bibliography to each unit (e.
2910 \begin_inset space \thinspace{}
2911 \end_inset
2912
2913 g., section) of your document.
2914  In the output, a separate bibliography, containing only the references
2915  done in the current unit is generated.
2916 \end_layout
2917
2918 \begin_layout Standard
2919 If you use Bib\SpecialChar TeX
2920 , either the 
2921 \begin_inset Flex Code
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925 chapterbib
2926 \end_layout
2927
2928 \end_inset
2929
2930  of the 
2931 \begin_inset Flex Code
2932 status collapsed
2933
2934 \begin_layout Plain Layout
2935 bibtopic
2936 \end_layout
2937
2938 \end_inset
2939
2940  package is used to create multiple bibliographies.
2941  The former package is used if you select 
2942 \begin_inset Quotes eld
2943 \end_inset
2944
2945 per child document
2946 \begin_inset Quotes erd
2947 \end_inset
2948
2949  and do 
2950 \emph on
2951 not
2952 \emph default
2953  check 
2954 \begin_inset Flex Noun
2955 status collapsed
2956
2957 \begin_layout Plain Layout
2958 Sectioned Bibliography
2959 \end_layout
2960
2961 \end_inset
2962
2963 .
2964  In all other cases, 
2965 \begin_inset Flex Code
2966 status collapsed
2967
2968 \begin_layout Plain Layout
2969 bibtopic
2970 \end_layout
2971
2972 \end_inset
2973
2974  is used.
2975 \begin_inset Foot
2976 status collapsed
2977
2978 \begin_layout Plain Layout
2979 An alternative approach, if you are willing to use some 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 \SpecialChar TeX
2985  Code
2986 \end_layout
2987
2988 \end_inset
2989
2990  (see section
2991 \begin_inset space ~
2992 \end_inset
2993
2994
2995 \begin_inset CommandInset ref
2996 LatexCommand ref
2997 reference "sec:Inserting-TeX-Code"
2998
2999 \end_inset
3000
3001 ), is to use the 
3002 \begin_inset Flex Code
3003 status collapsed
3004
3005 \begin_layout Plain Layout
3006 bibunits
3007 \end_layout
3008
3009 \end_inset
3010
3011  package.
3012 \end_layout
3013
3014 \end_inset
3015
3016  If 
3017 \begin_inset Flex Code
3018 status collapsed
3019
3020 \begin_layout Plain Layout
3021 bibtopic
3022 \end_layout
3023
3024 \end_inset
3025
3026  is used, \SpecialChar LyX
3027  encloses the specified units in 
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 bibtopic
3033 \end_layout
3034
3035 \end_inset
3036
3037 's 
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042
3043 \backslash
3044 begin{btUnit}
3045 \end_layout
3046
3047 \end_inset
3048
3049  and 
3050 \begin_inset Flex Code
3051 status collapsed
3052
3053 \begin_layout Plain Layout
3054
3055 \backslash
3056 end{btUnit}
3057 \end_layout
3058
3059 \end_inset
3060
3061  in order to create the units.
3062  Note that this approach has some limitations.
3063  First, every citation reference has to be inside some 
3064 \begin_inset Flex Code
3065 status collapsed
3066
3067 \begin_layout Plain Layout
3068 btUnit
3069 \end_layout
3070
3071 \end_inset
3072
3073 .
3074  So citations outside a defined unit (e.
3075 \begin_inset space \thinspace{}
3076 \end_inset
3077
3078 g., before the first section if you use 
3079 \begin_inset Quotes eld
3080 \end_inset
3081
3082 by section
3083 \begin_inset Quotes erd
3084 \end_inset
3085
3086 ) will appear as 
3087 \begin_inset Quotes eld
3088 \end_inset
3089
3090 ???
3091 \begin_inset Quotes erd
3092 \end_inset
3093
3094 .
3095  You can also create your own units by entering 
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100
3101 \backslash
3102 begin{btUnit}
3103 \end_layout
3104
3105 \end_inset
3106
3107  and 
3108 \begin_inset Flex Code
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112
3113 \backslash
3114 end{btUnit}
3115 \end_layout
3116
3117 \end_inset
3118
3119  as \SpecialChar TeX
3120  code (for instance to work around the mentioned limitation).
3121  Note, though, that 
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 btUnit
3127 \end_layout
3128
3129 \end_inset
3130
3131 s cannot be nested.
3132  A second limitation is that 
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 bibtopic
3138 \end_layout
3139
3140 \end_inset
3141
3142  always processes all references of a bibliography database, even if they
3143  are not cited.
3144  This can result in odd labels (e.
3145 \begin_inset space \thinspace{}
3146 \end_inset
3147
3148 g.
3149  
3150 \begin_inset Quotes eld
3151 \end_inset
3152
3153 Miller 2014b
3154 \begin_inset Quotes erd
3155 \end_inset
3156
3157  if two works of this author from 2014 are in the database, even if only
3158  one is cited).
3159 \end_layout
3160
3161 \begin_layout Standard
3162 If you use 
3163 \family sans
3164 Biblatex
3165 \family default
3166 , the 
3167 \begin_inset Flex Code
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 refsection
3172 \end_layout
3173
3174 \end_inset
3175
3176  option is used instead.
3177  If you need specific units, you can start them with the \SpecialChar TeX
3178  code 
3179 \begin_inset Flex Code
3180 status collapsed
3181
3182 \begin_layout Plain Layout
3183
3184 \backslash
3185 newrefsection
3186 \end_layout
3187
3188 \end_inset
3189
3190  or 
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195
3196 \backslash
3197 newrefsegment
3198 \end_layout
3199
3200 \end_inset
3201
3202 , respectively.
3203  If you also want to control the end of the unit, use the environment 
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208
3209 \backslash
3210 begin{refsection}
3211 \end_layout
3212
3213 \end_inset
3214
3215  \SpecialChar ldots
3216  
3217 \begin_inset Flex Code
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221
3222 \backslash
3223 end{refsection}
3224 \end_layout
3225
3226 \end_inset
3227
3228  instead.
3229  Note, though, that 
3230 \begin_inset Flex Code
3231 status collapsed
3232
3233 \begin_layout Plain Layout
3234 refsection
3235 \end_layout
3236
3237 \end_inset
3238
3239 s cannot be nested.
3240  In addition to the individual bibliography of the current unit, 
3241 \family sans
3242 Biblatex
3243 \family default
3244  also provides an easy way to output all bibliographies, subsequently, at
3245  one place (e.
3246 \begin_inset space \thinspace{}
3247 \end_inset
3248
3249 g., at the end of the document).
3250  Select 
3251 \begin_inset Quotes eld
3252 \end_inset
3253
3254 all reference units
3255 \begin_inset Quotes erd
3256 \end_inset
3257
3258  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3259  this.
3260  Please refer to the 
3261 \family sans
3262 Biblatex
3263 \family default
3264  manual for more information on this topic.
3265 \end_layout
3266
3267 \begin_layout Section
3268 Multipart Documents
3269 \end_layout
3270
3271 \begin_layout Subsection
3272 General Operation
3273 \end_layout
3274
3275 \begin_layout Standard
3276 When you are working on a large file with many sections, it is often convenient
3277  to break up the document into several files, or perhaps you have something
3278  where a table may change from time to time, but the preceding text does
3279  not.
3280  In these cases, you should seriously consider using multipart documents.
3281  For example, scientific papers often have five major sections: the introduction
3282 , observations, results, discussion, and conclusion.
3283  Each of these could be its own separate \SpecialChar LyX
3284  file, with one 
3285 \begin_inset Quotes eld
3286 \end_inset
3287
3288 master
3289 \begin_inset Quotes erd
3290 \end_inset
3291
3292  file which contains the title, authors, abstract, references, etc., plus
3293  the five included files.
3294  It is important to note that each of these files is a full \SpecialChar LyX
3295  file which
3296  can be formatted and printed on its own, as well as included in a master
3297  file.
3298  Each of these files must have the same document class, however—don't attempt
3299  to mix book classes with article classes.
3300  You may also include \SpecialChar LaTeX
3301  files; however, these files must not have their own
3302  preamble (i.
3303 \begin_inset space \thinspace{}
3304 \end_inset
3305
3306 e.
3307 \begin_inset space \space{}
3308 \end_inset
3309
3310 everything up to and including the 
3311 \begin_inset Flex Code
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315
3316 \backslash
3317 begin{document}
3318 \end_layout
3319
3320 \end_inset
3321
3322  line as well as the 
3323 \begin_inset Flex Code
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327
3328 \backslash
3329 end{document}
3330 \end_layout
3331
3332 \end_inset
3333
3334  line must be deleted) or else errors will be generated when you try to
3335  make a DVI file.
3336 \end_layout
3337
3338 \begin_layout Standard
3339 \SpecialChar LyX
3340  allows you to include files quite easily with 
3341 \begin_inset Flex Noun
3342 status collapsed
3343
3344 \begin_layout Plain Layout
3345 Insert\SpecialChar menuseparator
3346 ChiId
3347 \begin_inset space ~
3348 \end_inset
3349
3350 Document
3351 \end_layout
3352
3353 \end_inset
3354
3355 .
3356  When you click on this selection a small box is inserted into the file
3357  at the current cursor location.
3358  Clicking on the box raises a dialog which allows you to select the file
3359  to be included, and the method of its inclusion.
3360  
3361 \end_layout
3362
3363 \begin_layout Standard
3364 The file selection box should by now be obvious.
3365  The three inclusion methods are 
3366 \begin_inset Quotes eld
3367 \end_inset
3368
3369 include
3370 \begin_inset Quotes erd
3371 \end_inset
3372
3373
3374 \begin_inset Quotes eld
3375 \end_inset
3376
3377 input
3378 \begin_inset Quotes erd
3379 \end_inset
3380
3381 , and 
3382 \begin_inset Quotes eld
3383 \end_inset
3384
3385 verbatim
3386 \begin_inset Quotes erd
3387 \end_inset
3388
3389 .
3390  The difference between 
3391 \begin_inset Quotes eld
3392 \end_inset
3393
3394 include
3395 \begin_inset Quotes erd
3396 \end_inset
3397
3398  and 
3399 \begin_inset Quotes eld
3400 \end_inset
3401
3402 input
3403 \begin_inset Quotes erd
3404 \end_inset
3405
3406  is really only meaningful to \SpecialChar LaTeX
3407 perts, but the practical difference is that
3408  files that are 
3409 \begin_inset Quotes eld
3410 \end_inset
3411
3412 included
3413 \begin_inset Quotes erd
3414 \end_inset
3415
3416  are typeset beginning on a new page, while files that are 
3417 \begin_inset Quotes eld
3418 \end_inset
3419
3420 inputted
3421 \begin_inset Quotes erd
3422 \end_inset
3423
3424  are typeset starting on the current page.
3425 \end_layout
3426
3427 \begin_layout Standard
3428 Generally, the master file is converted into a full \SpecialChar LaTeX
3429  file before typesetting,
3430  while the included files are converted to \SpecialChar LaTeX
3431  files that do not have all the
3432  preamble information.
3433 \end_layout
3434
3435 \begin_layout Standard
3436
3437 \begin_inset Quotes eld
3438 \end_inset
3439
3440 verbatim
3441 \begin_inset Quotes erd
3442 \end_inset
3443
3444  included file allows you to include a file typeset exactly as it appears
3445  in the file, i.
3446 \begin_inset space \thinspace{}
3447 \end_inset
3448
3449 e.
3450 \begin_inset space \space{}
3451 \end_inset
3452
3453 in 
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458 verbatim
3459 \end_layout
3460
3461 \end_inset
3462
3463  mode, with the characters set in a fixed-width typewriter font.
3464  Normally, spaces in this file are invisible, though two consecutive spaces
3465  are conserved, unlike \SpecialChar LyX
3466 's normal treatment of spaces.
3467  However, setting the 
3468 \begin_inset Flex Noun
3469 status collapsed
3470
3471 \begin_layout Plain Layout
3472 Mark
3473 \begin_inset space ~
3474 \end_inset
3475
3476 spaces
3477 \begin_inset space ~
3478 \end_inset
3479
3480 in
3481 \begin_inset space ~
3482 \end_inset
3483
3484 output
3485 \end_layout
3486
3487 \end_inset
3488
3489  checkbox typesets a mark to unambiguously define the presence of a space.
3490  
3491 \end_layout
3492
3493 \begin_layout Subsection
3494 Cross-References Between Files
3495 \end_layout
3496
3497 \begin_layout Standard
3498 \begin_inset Box Shadowbox
3499 position "t"
3500 hor_pos "c"
3501 has_inner_box 1
3502 inner_pos "t"
3503 use_parbox 0
3504 use_makebox 0
3505 width "100col%"
3506 special "none"
3507 height "1in"
3508 height_special "totalheight"
3509 thickness "0.4pt"
3510 separation "3pt"
3511 shadowsize "4pt"
3512 framecolor "black"
3513 backgroundcolor "none"
3514 status open
3515
3516 \begin_layout Plain Layout
3517 This section is somewhat out of date.
3518  Need to describe default master documents and how children are opened when
3519  the master is.
3520  [[FIXME]]
3521 \end_layout
3522
3523 \end_inset
3524
3525
3526 \end_layout
3527
3528 \begin_layout Standard
3529 It is possible to set up cross-references between the different files.
3530  First, open all the files in question: let's call them A and B in a two
3531  file example, where B is included in A.
3532  Let's say you insert a label in A, then want to reference it in B.
3533  Open the cross-reference dialog whilst in document B, and you can select
3534  the 
3535 \begin_inset Quotes eld
3536 \end_inset
3537
3538 buffer
3539 \begin_inset Quotes erd
3540 \end_inset
3541
3542  to use.
3543 \end_layout
3544
3545 \begin_layout Subsection
3546 Bibliography Lists in all Subdocuments
3547 \end_layout
3548
3549 \begin_layout Standard
3550 \begin_inset Box Frameless
3551 position "t"
3552 hor_pos "c"
3553 has_inner_box 1
3554 inner_pos "t"
3555 use_parbox 0
3556 use_makebox 0
3557 width "100col%"
3558 special "none"
3559 height "1in"
3560 height_special "totalheight"
3561 thickness "0.4pt"
3562 separation "3pt"
3563 shadowsize "4pt"
3564 framecolor "black"
3565 backgroundcolor "none"
3566 status open
3567
3568 \begin_layout Plain Layout
3569 This section also needs updating.
3570  There is now material about this on the wiki, and it could be copied here.
3571 \end_layout
3572
3573 \end_inset
3574
3575
3576 \end_layout
3577
3578 \begin_layout Standard
3579 Copy the bibliography list with all entries to all subdocuments and transform
3580  them to a comment.
3581  This way \SpecialChar LyX
3582  will find the 
3583 \begin_inset Flex Code
3584 status collapsed
3585
3586 \begin_layout Plain Layout
3587 .bib
3588 \end_layout
3589
3590 \end_inset
3591
3592 -files and you can easily insert references without making the bibliography
3593  list visible.
3594 \end_layout
3595
3596 \begin_layout Standard
3597 As the bibliography list is in a comment, \SpecialChar LaTeX
3598  won't use it and the references
3599  will look like this: [?], instead of like this: [1].
3600  One solution is to use the \SpecialChar LaTeX
3601 -package 
3602 \begin_inset Flex Code
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606 comment
3607 \end_layout
3608
3609 \end_inset
3610
3611  that will only include comments by processing the files separately.
3612  To do this, add in the \SpecialChar LaTeX
3613  preamble of every subdocument the following:
3614 \end_layout
3615
3616 \begin_layout LyX-Code
3617
3618 \backslash
3619 usepackage{comment}
3620 \end_layout
3621
3622 \begin_layout LyX-Code
3623
3624 \backslash
3625 includecomment{comment}
3626 \end_layout
3627
3628 \begin_layout Standard
3629 See also 
3630 \begin_inset Flex URL
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634
3635 http://wiki.lyx.org/FAQ/Unsorted#toc31
3636 \end_layout
3637
3638 \end_inset
3639
3640 .
3641 \end_layout
3642
3643 \begin_layout Section
3644 \SpecialChar LyX
3645  Archives
3646 \end_layout
3647
3648 \begin_layout Standard
3649 Users sometimes need to be able to 
3650 \begin_inset Quotes eld
3651 \end_inset
3652
3653 bundle
3654 \begin_inset Quotes erd
3655 \end_inset
3656
3657  a \SpecialChar LyX
3658  file together with all the images (and other files) on which it depends,
3659  either for sending to a publisher or for sharing with a co-author.
3660  \SpecialChar LyX
3661  2.0 includes a Python script (
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 lyxpak.py
3667 \end_layout
3668
3669 \end_inset
3670
3671 ) that automates this process.
3672  To use it, you must have either the 
3673 \begin_inset Flex Code
3674 status collapsed
3675
3676 \begin_layout Plain Layout
3677 zipfile
3678 \end_layout
3679
3680 \end_inset
3681
3682  or 
3683 \begin_inset Flex Code
3684 status collapsed
3685
3686 \begin_layout Plain Layout
3687 tarfile
3688 \end_layout
3689
3690 \end_inset
3691
3692  python modules installed on your system.
3693  By default, the script prefers the 
3694 \begin_inset Flex Code
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698 gzip
3699 \end_layout
3700
3701 \end_inset
3702
3703 -compressed 
3704 \begin_inset Flex Code
3705 status collapsed
3706
3707 \begin_layout Plain Layout
3708 tar
3709 \end_layout
3710
3711 \end_inset
3712
3713  format on Unix-like systems and the 
3714 \begin_inset Flex Code
3715 status collapsed
3716
3717 \begin_layout Plain Layout
3718 zip
3719 \end_layout
3720
3721 \end_inset
3722
3723  format on Windows.
3724 \end_layout
3725
3726 \begin_layout Standard
3727 \SpecialChar LyX
3728 's configuration process will set the script up to export a `\SpecialChar LyX
3729  Archive',
3730  and this format will then be available under 
3731 \begin_inset Flex Code
3732 status collapsed
3733
3734 \begin_layout Plain Layout
3735 File\SpecialChar menuseparator
3736 Export
3737 \end_layout
3738
3739 \end_inset
3740
3741 .
3742 \end_layout
3743
3744 \begin_layout Standard
3745 Independently of the platform, the generation of a particular archive format
3746  can be forced by adding either the 
3747 \begin_inset Flex Code
3748 status collapsed
3749
3750 \begin_layout Plain Layout
3751 -t
3752 \end_layout
3753
3754 \end_inset
3755
3756  (for the 
3757 \begin_inset Flex Code
3758 status collapsed
3759
3760 \begin_layout Plain Layout
3761 tar
3762 \end_layout
3763
3764 \end_inset
3765
3766  format) or 
3767 \begin_inset Flex Code
3768 status collapsed
3769
3770 \begin_layout Plain Layout
3771 -z
3772 \end_layout
3773
3774 \end_inset
3775
3776  (for the 
3777 \begin_inset Flex Code
3778 status collapsed
3779
3780 \begin_layout Plain Layout
3781 zip
3782 \end_layout
3783
3784 \end_inset
3785
3786  format) switch to the 
3787 \begin_inset Flex Code
3788 status collapsed
3789
3790 \begin_layout Plain Layout
3791 \SpecialChar LyX
3792 \SpecialChar menuseparator
3793 \SpecialChar LyX
3794  Archive
3795 \end_layout
3796
3797 \end_inset
3798
3799  converter in 
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 Tools\SpecialChar menuseparator
3805 Preferences\SpecialChar menuseparator
3806 File Handling\SpecialChar menuseparator
3807 Converters
3808 \end_layout
3809
3810 \end_inset
3811
3812 .
3813  (Make sure you add the switch after the script name, not before it.)
3814 \end_layout
3815
3816 \begin_layout Section
3817 Fancy Headers and Footers
3818 \end_layout
3819
3820 \begin_layout Standard
3821 The default page layout is rather plain; for an 
3822 \begin_inset Flex Code
3823 status collapsed
3824
3825 \begin_layout Plain Layout
3826 article
3827 \end_layout
3828
3829 \end_inset
3830
3831  document class, all you get is a centered page number at the bottom of
3832  the page.
3833  This document uses KOMA-script's book class, so it appears to be a bit
3834  fancier.
3835  But to really put on a show, you need to set the document page style to
3836  
3837 \begin_inset Quotes eld
3838 \end_inset
3839
3840 fancy
3841 \begin_inset Quotes erd
3842 \end_inset
3843
3844 , as mentioned in the 
3845 \emph on
3846 User Guide
3847 \emph default
3848 .
3849  This section describes the \SpecialChar LaTeX
3850  code you need to insert in your \SpecialChar LaTeX
3851  preamble in
3852  order to get the desired effects.
3853 \end_layout
3854
3855 \begin_layout Standard
3856 For more information on fancy headers, see the 
3857 \begin_inset Flex Code
3858 status collapsed
3859
3860 \begin_layout Plain Layout
3861 fancyhdr
3862 \end_layout
3863
3864 \end_inset
3865
3866  package documentation.
3867  (
3868 \begin_inset Flex URL
3869 status collapsed
3870
3871 \begin_layout Plain Layout
3872
3873 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3874 \end_layout
3875
3876 \end_inset
3877
3878 )
3879 \end_layout
3880
3881 \begin_layout Standard
3882 The page header is divided into three fields, not surprisingly labeled 
3883 \begin_inset Quotes eld
3884 \end_inset
3885
3886 left
3887 \begin_inset Quotes erd
3888 \end_inset
3889
3890
3891 \begin_inset Quotes eld
3892 \end_inset
3893
3894 center
3895 \begin_inset Quotes erd
3896 \end_inset
3897
3898 , and 
3899 \begin_inset Quotes eld
3900 \end_inset
3901
3902 right
3903 \begin_inset Quotes erd
3904 \end_inset
3905
3906 .
3907  The footer is also divided into these three fields.
3908  The \SpecialChar LaTeX
3909  commands to set these fields in the simplest manner are 
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914
3915 \backslash
3916 lhead
3917 \end_layout
3918
3919 \end_inset
3920
3921
3922 \begin_inset Flex Code
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926
3927 \backslash
3928 chead
3929 \end_layout
3930
3931 \end_inset
3932
3933
3934 \begin_inset Flex Code
3935 status collapsed
3936
3937 \begin_layout Plain Layout
3938
3939 \backslash
3940 rhead
3941 \end_layout
3942
3943 \end_inset
3944
3945
3946 \begin_inset Flex Code
3947 status collapsed
3948
3949 \begin_layout Plain Layout
3950
3951 \backslash
3952 lfoot
3953 \end_layout
3954
3955 \end_inset
3956
3957 , etc.
3958  Suppose you wish to put your name in the upper left hand corner of each
3959  page.
3960  Simply insert the following command in the preamble: 
3961 \end_layout
3962
3963 \begin_layout Standard
3964
3965 \family typewriter
3966
3967 \backslash
3968 lhead{John Q.
3969  DocWriter}
3970 \end_layout
3971
3972 \begin_layout Standard
3973 You will now see your name in the upper left.
3974  If a field has a default entry that you would like to get rid of (often
3975  the page number appears in the central footer) simply include a command
3976  with a blank argument, e.
3977 \begin_inset space \thinspace{}
3978 \end_inset
3979
3980 g.:
3981 \end_layout
3982
3983 \begin_layout Standard
3984
3985 \family typewriter
3986
3987 \backslash
3988 cfoot{}
3989 \end_layout
3990
3991 \begin_layout Standard
3992 Let's get really fancy: lets put the section number with the word 
3993 \begin_inset Quotes eld
3994 \end_inset
3995
3996 Section
3997 \begin_inset Quotes erd
3998 \end_inset
3999
4000  (e.
4001 \begin_inset space \thinspace{}
4002 \end_inset
4003
4004 g.
4005 \begin_inset space \space{}
4006 \end_inset
4007
4008 Section 3) in the upper left, the page number (e.
4009 \begin_inset space \thinspace{}
4010 \end_inset
4011
4012 g.
4013 \begin_inset space \space{}
4014 \end_inset
4015
4016 Page 4) in the upper right, your name in the lower left, and the date in
4017  the lower right.
4018  The following commands should now appear in the preamble:
4019 \end_layout
4020
4021 \begin_layout Standard
4022
4023 \family typewriter
4024
4025 \backslash
4026 lhead{Section 
4027 \backslash
4028 thesection}
4029 \end_layout
4030
4031 \begin_layout Standard
4032
4033 \family typewriter
4034
4035 \backslash
4036 chead{}
4037 \end_layout
4038
4039 \begin_layout Standard
4040
4041 \family typewriter
4042
4043 \backslash
4044 rhead{Page 
4045 \backslash
4046 thepage}
4047 \end_layout
4048
4049 \begin_layout Standard
4050
4051 \family typewriter
4052
4053 \backslash
4054 lfoot{John Q.
4055  DocWriter}
4056 \end_layout
4057
4058 \begin_layout Standard
4059
4060 \family typewriter
4061
4062 \backslash
4063 cfoot{}
4064 \end_layout
4065
4066 \begin_layout Standard
4067
4068 \family typewriter
4069
4070 \backslash
4071 rfoot{
4072 \backslash
4073 today}
4074 \end_layout
4075
4076 \begin_layout Standard
4077 The commands 
4078 \begin_inset Flex Code
4079 status collapsed
4080
4081 \begin_layout Plain Layout
4082
4083 \backslash
4084 thesection
4085 \end_layout
4086
4087 \end_inset
4088
4089  and 
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094
4095 \backslash
4096 thepage
4097 \end_layout
4098
4099 \end_inset
4100
4101  access \SpecialChar LaTeX
4102 's section and page counters, and so print out the current section
4103  and page numbers.
4104  
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 \backslash
4111 today
4112 \end_layout
4113
4114 \end_inset
4115
4116  simply prints out today's date.
4117 \end_layout
4118
4119 \begin_layout Standard
4120 The thicknesses of the horizontal rules drawn beneath the header and above
4121  the footer can also be modified.
4122  If you don't want one of the rules, set its thickness to 0.
4123  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4124  Use commands
4125 \family typewriter
4126  
4127 \family default
4128 like 
4129 \begin_inset Flex Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133
4134 \backslash
4135 renewcommand{
4136 \backslash
4137 headrulewidth}{0.4pt}
4138 \end_layout
4139
4140 \end_inset
4141
4142  and 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147
4148 \backslash
4149 renewcommand{
4150 \backslash
4151 footrulewidth}{0.4pt}
4152 \end_layout
4153
4154 \end_inset
4155
4156  to set the thicknesses.
4157 \end_layout
4158
4159 \begin_layout Standard
4160 You can switch the header/footer settings on and off for individual pages
4161  using commands like 
4162 \begin_inset Flex Code
4163 status collapsed
4164
4165 \begin_layout Plain Layout
4166
4167 \backslash
4168 thispagestyle{empty}
4169 \end_layout
4170
4171 \end_inset
4172
4173
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178
4179 \backslash
4180 thispagestyle{plain}
4181 \end_layout
4182
4183 \end_inset
4184
4185 , and 
4186 \begin_inset Flex Code
4187 status collapsed
4188
4189 \begin_layout Plain Layout
4190
4191 \backslash
4192 thispagestyle{fancy}
4193 \end_layout
4194
4195 \end_inset
4196
4197 .
4198  Simply insert them in the text on the page you want changed and mark them
4199  as \SpecialChar TeX
4200  code.
4201  In fact, title pages are marked as plain by default, while following pages
4202  are marked fancy when using the global fancy setting.
4203 \end_layout
4204
4205 \begin_layout Standard
4206 As a final example, it is possible to include an image in the header or
4207  footer.
4208  Suppose you want to put a company logo in the upper lefthand corner.
4209  You might try something like
4210 \end_layout
4211
4212 \begin_layout Standard
4213
4214 \family typewriter
4215
4216 \backslash
4217 lhead{
4218 \backslash
4219 resizebox{1in}{!}{
4220 \backslash
4221 includegraphics{logo.eps}}}
4222 \end_layout
4223
4224 \begin_layout Standard
4225 \noindent
4226 (you may need to preface this with 
4227 \begin_inset Flex Code
4228 status collapsed
4229
4230 \begin_layout Plain Layout
4231 \noindent
4232
4233 \backslash
4234 usepackage{graphics}
4235 \end_layout
4236
4237 \end_inset
4238
4239  if you don't include graphics elsewhere in your document).
4240 \end_layout
4241
4242 \begin_layout Section
4243 Itemize Bullet Selection
4244 \begin_inset CommandInset label
4245 LatexCommand label
4246 name "sec:bullet"
4247
4248 \end_inset
4249
4250
4251 \end_layout
4252
4253 \begin_layout Standard
4254 by
4255 \noun on
4256  Allan Rae
4257 \end_layout
4258
4259 \begin_layout Subsection
4260 Introduction
4261 \end_layout
4262
4263 \begin_layout Standard
4264 \SpecialChar LyX
4265  provides 216 bullet shapes that can be accessed from a simple dialog.
4266  Using this dialog you can easily specify what bullet shape to use at each
4267  level of an itemized list.
4268  These settings are document-wide so you won't be able to specify different
4269  sets of bullets for different paragraphs.
4270 \begin_inset Foot
4271 status collapsed
4272
4273 \begin_layout Plain Layout
4274 Well, actually you can but you'll have to do it by hand.
4275 \end_layout
4276
4277 \end_inset
4278
4279
4280 \end_layout
4281
4282 \begin_layout Subsection
4283 How it looks
4284 \end_layout
4285
4286 \begin_layout Standard
4287 Open the dialog by selecting the 
4288 \begin_inset Flex Noun
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 Document\SpecialChar menuseparator
4293 Settings
4294 \end_layout
4295
4296 \end_inset
4297
4298  menu item and then select the 
4299 \begin_inset Flex Noun
4300 status collapsed
4301
4302 \begin_layout Plain Layout
4303 Bullets
4304 \end_layout
4305
4306 \end_inset
4307
4308  tab.
4309 \end_layout
4310
4311 \begin_layout Standard
4312 The dialog provides you with a table of bullet shapes.
4313  A column of buttons on the left of the table provides access to the six
4314  different panels of bullet shapes.
4315  The row of buttons across the top is used to select which bullet depth
4316  you are changing.
4317  A text entry under the table shows the currently selected bullet shape's
4318  \SpecialChar LaTeX
4319  equivalent and this can be edited if desired.
4320  If you do modify the text you will also need to specify any needed packages
4321  in the \SpecialChar LaTeX
4322  preamble.
4323 \end_layout
4324
4325 \begin_layout Standard
4326 The six panels are divided up by the packages they require.
4327  The following table shows the mappings from button name to \SpecialChar LaTeX
4328  package.
4329 \end_layout
4330
4331 \begin_layout Standard
4332 \align center
4333 \begin_inset Tabular
4334 <lyxtabular version="3" rows="7" columns="2">
4335 <features tabularvalignment="middle">
4336 <column alignment="center" valignment="top" width="0pt">
4337 <column alignment="center" valignment="top" width="0pt">
4338 <row>
4339 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4340 \begin_inset Text
4341
4342 \begin_layout Plain Layout
4343
4344 \family roman
4345 \series medium
4346 \shape up
4347 \size normal
4348 \emph off
4349 \bar no
4350 \noun off
4351 \color none
4352 Button
4353 \end_layout
4354
4355 \end_inset
4356 </cell>
4357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4358 \begin_inset Text
4359
4360 \begin_layout Plain Layout
4361
4362 \family roman
4363 \series medium
4364 \shape up
4365 \size normal
4366 \emph off
4367 \bar no
4368 \noun off
4369 \color none
4370 Packages Required
4371 \end_layout
4372
4373 \end_inset
4374 </cell>
4375 </row>
4376 <row>
4377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4378 \begin_inset Text
4379
4380 \begin_layout Plain Layout
4381
4382 \family sans
4383 \series medium
4384 \shape up
4385 \size normal
4386 \emph off
4387 \bar no
4388 \noun off
4389 \color none
4390 Standard
4391 \end_layout
4392
4393 \end_inset
4394 </cell>
4395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4396 \begin_inset Text
4397
4398 \begin_layout Plain Layout
4399
4400 \series medium
4401 \shape up
4402 \size normal
4403 \emph off
4404 \bar no
4405 \noun off
4406 \color none
4407 base \SpecialChar LaTeX
4408
4409 \end_layout
4410
4411 \end_inset
4412 </cell>
4413 </row>
4414 <row>
4415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4416 \begin_inset Text
4417
4418 \begin_layout Plain Layout
4419
4420 \family sans
4421 \series medium
4422 \shape up
4423 \size normal
4424 \emph off
4425 \bar no
4426 \noun off
4427 \color none
4428 Maths
4429 \end_layout
4430
4431 \end_inset
4432 </cell>
4433 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4434 \begin_inset Text
4435
4436 \begin_layout Plain Layout
4437
4438 \family typewriter
4439 \series medium
4440 \shape up
4441 \size normal
4442 \emph off
4443 \bar no
4444 \noun off
4445 \color none
4446 amssymb.sty
4447 \end_layout
4448
4449 \end_inset
4450 </cell>
4451 </row>
4452 <row>
4453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4454 \begin_inset Text
4455
4456 \begin_layout Plain Layout
4457
4458 \family sans
4459 \series medium
4460 \shape up
4461 \size normal
4462 \emph off
4463 \bar no
4464 \noun off
4465 \color none
4466 Ding1
4467 \end_layout
4468
4469 \end_inset
4470 </cell>
4471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4472 \begin_inset Text
4473
4474 \begin_layout Plain Layout
4475
4476 \family typewriter
4477 \series medium
4478 \shape up
4479 \size normal
4480 \emph off
4481 \bar no
4482 \noun off
4483 \color none
4484 pifont.sty
4485 \end_layout
4486
4487 \end_inset
4488 </cell>
4489 </row>
4490 <row>
4491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4492 \begin_inset Text
4493
4494 \begin_layout Plain Layout
4495
4496 \family sans
4497 \series medium
4498 \shape up
4499 \size normal
4500 \emph off
4501 \bar no
4502 \noun off
4503 \color none
4504 Ding2
4505 \end_layout
4506
4507 \end_inset
4508 </cell>
4509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4510 \begin_inset Text
4511
4512 \begin_layout Plain Layout
4513
4514 \family typewriter
4515 \series medium
4516 \shape up
4517 \size normal
4518 \emph off
4519 \bar no
4520 \noun off
4521 \color none
4522 pifont.sty
4523 \end_layout
4524
4525 \end_inset
4526 </cell>
4527 </row>
4528 <row>
4529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4530 \begin_inset Text
4531
4532 \begin_layout Plain Layout
4533
4534 \family sans
4535 \series medium
4536 \shape up
4537 \size normal
4538 \emph off
4539 \bar no
4540 \noun off
4541 \color none
4542 Ding3
4543 \end_layout
4544
4545 \end_inset
4546 </cell>
4547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4548 \begin_inset Text
4549
4550 \begin_layout Plain Layout
4551
4552 \family typewriter
4553 \series medium
4554 \shape up
4555 \size normal
4556 \emph off
4557 \bar no
4558 \noun off
4559 \color none
4560 pifont.sty
4561 \end_layout
4562
4563 \end_inset
4564 </cell>
4565 </row>
4566 <row>
4567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4568 \begin_inset Text
4569
4570 \begin_layout Plain Layout
4571
4572 \family sans
4573 \series medium
4574 \shape up
4575 \size normal
4576 \emph off
4577 \bar no
4578 \noun off
4579 \color none
4580 Ding4
4581 \end_layout
4582
4583 \end_inset
4584 </cell>
4585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4586 \begin_inset Text
4587
4588 \begin_layout Plain Layout
4589
4590 \family typewriter
4591 \series medium
4592 \shape up
4593 \size normal
4594 \emph off
4595 \bar no
4596 \noun off
4597 \color none
4598 pifont.sty
4599 \end_layout
4600
4601 \end_inset
4602 </cell>
4603 </row>
4604 </lyxtabular>
4605
4606 \end_inset
4607
4608
4609 \end_layout
4610
4611 \begin_layout Standard
4612 \SpecialChar LyX
4613  doesn't stop you using bullets from packages you don't have.
4614  If you get errors from \SpecialChar LaTeX
4615  when you try to view or print the file, then it
4616  is likely you are missing a package.
4617 \begin_inset Foot
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621 \SpecialChar LyX
4622  doesn't restrict your use since you may be editing locally and exporting
4623  elsewhere.
4624 \end_layout
4625
4626 \end_inset
4627
4628
4629 \end_layout
4630
4631 \begin_layout Subsection
4632 How to use it
4633 \end_layout
4634
4635 \begin_layout Standard
4636 Select which bullet depth you want to change then select the bullet shape
4637  and size.
4638  Any changes will not be visible in \SpecialChar LyX
4639 , but are visible when viewing the document.
4640 \end_layout
4641
4642 \begin_layout Standard
4643 You can reset a bullet shape to the default simply by clicking your right
4644  mouse button on the appropriate bullet depth button.
4645 \begin_inset Foot
4646 status collapsed
4647
4648 \begin_layout Plain Layout
4649 If you 
4650 \emph on
4651 really
4652 \emph default
4653  want to have multiple sets of paragraphs with different sets of bullets
4654  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4655  code.
4656  The bullet selection dialog can help though because it provides you with
4657  the \SpecialChar LaTeX
4658  code for a wide range of bullet shapes.
4659  To make your own custom paragraphs you have the following options:
4660 \end_layout
4661
4662 \begin_layout Plain Layout
4663 \begin_inset ERT
4664 status open
4665
4666 \begin_layout Plain Layout
4667
4668
4669 \backslash
4670 let
4671 \backslash
4672 savelabelitemi=
4673 \backslash
4674 labelitemi
4675 \end_layout
4676
4677 \end_inset
4678
4679
4680 \end_layout
4681
4682 \begin_layout Plain Layout
4683 \begin_inset ERT
4684 status open
4685
4686 \begin_layout Plain Layout
4687
4688
4689 \backslash
4690 renewcommand
4691 \backslash
4692 labelitemi[0]{
4693 \backslash
4694 small
4695 \backslash
4696 (
4697 \backslash
4698 sharp
4699 \backslash
4700 )}
4701 \end_layout
4702
4703 \end_inset
4704
4705
4706 \end_layout
4707
4708 \begin_layout Itemize
4709 Use the \SpecialChar LaTeX
4710  command 
4711 \begin_inset Flex Code
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715
4716 \backslash
4717 renewcommand{}{}
4718 \end_layout
4719
4720 \end_inset
4721
4722  to specify a new bullet shape for a given depth.
4723  You'll also need to save the current bullet shape so you can restore it
4724  again afterwards.
4725  In this itemized list the following \SpecialChar LaTeX
4726  code was used to change the bullet
4727  used for the first depth.
4728 \end_layout
4729
4730 \begin_deeper
4731 \begin_layout LyX-Code
4732
4733 \backslash
4734 let
4735 \backslash
4736 savelabelitemi=
4737 \backslash
4738 labelitemi 
4739 \end_layout
4740
4741 \begin_layout LyX-Code
4742
4743 \backslash
4744 renewcommand
4745 \backslash
4746 labelitemi[0]{
4747 \backslash
4748 small
4749 \backslash
4750 (
4751 \backslash
4752 sharp
4753 \backslash
4754 )}
4755 \end_layout
4756
4757 \end_deeper
4758 \begin_layout Itemize
4759 Note that the itemize depth is specified in Roman numerals as part of the
4760  
4761 \family typewriter
4762
4763 \backslash
4764 labelitem
4765 \family default
4766  command.
4767 \end_layout
4768
4769 \begin_layout Itemize
4770 \begin_inset ERT
4771 status open
4772
4773 \begin_layout Plain Layout
4774
4775 [
4776 \backslash
4777 (
4778 \backslash
4779 star
4780 \backslash
4781 )]
4782 \end_layout
4783
4784 \end_inset
4785
4786  Specify each individual entry by starting each item with the bullet shape
4787  enclosed in square brackets and set as 
4788 \begin_inset Flex Noun
4789 status collapsed
4790
4791 \begin_layout Plain Layout
4792 \SpecialChar TeX
4793  Code
4794 \end_layout
4795
4796 \end_inset
4797
4798 .
4799  For example, this item was started with 
4800 \begin_inset Flex Code
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804 [
4805 \backslash
4806 (
4807 \backslash
4808 star
4809 \backslash
4810 )]
4811 \end_layout
4812
4813 \end_inset
4814
4815 .
4816 \end_layout
4817
4818 \begin_layout Plain Layout
4819 \begin_inset ERT
4820 status open
4821
4822 \begin_layout Plain Layout
4823
4824
4825 \backslash
4826 renewcommand
4827 \backslash
4828 labelitemi[0]{
4829 \backslash
4830 savelabelitemi}
4831 \end_layout
4832
4833 \end_inset
4834
4835
4836 \end_layout
4837
4838 \begin_layout Plain Layout
4839 You'll also need to revert the labelitem back to its previous setting for
4840  the global bullet shape settings to remain in effect.
4841  The way used here was:
4842 \end_layout
4843
4844 \begin_layout LyX-Code
4845
4846 \backslash
4847 renewcommand
4848 \backslash
4849 labelitemi[0]{
4850 \backslash
4851 savelabelitemi}
4852 \end_layout
4853
4854 \end_inset
4855
4856
4857 \end_layout
4858
4859 \begin_layout Chapter
4860 \SpecialChar LyX
4861  and the World Wide Web
4862 \end_layout
4863
4864 \begin_layout Standard
4865 \SpecialChar LyX
4866  has long supported the export of documents to various web-friendly formats,
4867  such as HTML.
4868  Before verson 2.0, however, HTML export was always accomplished by the use
4869  of external converters.
4870 \begin_inset Foot
4871 status collapsed
4872
4873 \begin_layout Plain Layout
4874 For details on the use of external converters with \SpecialChar LyX
4875 , see the 
4876 \emph on
4877 Converters
4878 \emph default
4879  section of the Customization manual.
4880 \end_layout
4881
4882 \end_inset
4883
4884  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4885  as an
4886  intermediate format, such as 
4887 \begin_inset Flex Code
4888 status collapsed
4889
4890 \begin_layout Plain Layout
4891 htlatex
4892 \end_layout
4893
4894 \end_inset
4895
4896
4897 \begin_inset Flex Code
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901 html2latex
4902 \end_layout
4903
4904 \end_inset
4905
4906 , and 
4907 \begin_inset Flex Code
4908 status collapsed
4909
4910 \begin_layout Plain Layout
4911 plastex
4912 \end_layout
4913
4914 \end_inset
4915
4916 , relying upon \SpecialChar LyX
4917  to produce the \SpecialChar LaTeX
4918 ; and there is a converter that works directly
4919  on \SpecialChar LyX
4920  files, 
4921 \begin_inset Flex Code
4922 status collapsed
4923
4924 \begin_layout Plain Layout
4925 e\SpecialChar LyX
4926 er
4927 \end_layout
4928
4929 \end_inset
4930
4931 .
4932  All of these have different advantages and disadvantages.
4933  
4934 \end_layout
4935
4936 \begin_layout Standard
4937 The \SpecialChar LaTeX
4938 -based converters have the advantage that, in principle, they know everythin
4939 g about the exported document that \SpecialChar LaTeX
4940  does.
4941  Such converters do not care, for example, if a certain block of code was
4942  produced by \SpecialChar LyX
4943  or was Evil Red Text.
4944  These converters know about 
4945 \begin_inset Flex Code
4946 status collapsed
4947
4948 \begin_layout Plain Layout
4949 aux
4950 \end_layout
4951
4952 \end_inset
4953
4954  files, counters, and references, and can often make use of the 
4955 \begin_inset Flex Code
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959 bbl
4960 \end_layout
4961
4962 \end_inset
4963
4964  files generated by Bib\SpecialChar TeX
4965 .
4966  On the other hand, \SpecialChar LaTeX
4967  is a very hard language to parse—it is sometimes said
4968  that only \SpecialChar TeX
4969  itself understands \SpecialChar TeX
4970 —and \SpecialChar LaTeX
4971 -based converters will often choke on
4972  what seem to be quite simple constructs; complex ones can throw them completely
4973 , and as of this writing, for example, the 
4974 \emph on
4975 Embedded Objects
4976 \emph default
4977  manual will not export with 
4978 \begin_inset Flex Code
4979 status collapsed
4980
4981 \begin_layout Plain Layout
4982 htlatex
4983 \end_layout
4984
4985 \end_inset
4986
4987 , though the others will.
4988  The other issue concerns how math is handled.
4989  These converters typically convert the formulae into little pictures that
4990  are then linked from the HTML document.
4991  Since these are actually generated by \SpecialChar LaTeX
4992 , they are accurate.
4993  But they do not scale well, and just getting them to look as if they are
4994  actually meant to be in your document—so that the font sizes seem to be
4995  roughly the same—can be a challenge.
4996 \end_layout
4997
4998 \begin_layout Standard
4999 Alex Fernandez's 
5000 \begin_inset Flex Code
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004 e\SpecialChar LyX
5005 er
5006 \end_layout
5007
5008 \end_inset
5009
5010  (
5011 \begin_inset CommandInset href
5012 LatexCommand href
5013 name "http://elyxer.nongnu.org/"
5014 target "http://elyxer.nongnu.org/"
5015 literal "false"
5016
5017 \end_inset
5018
5019 ) solves some of these problems.
5020  In particular, the formulae it produces scale perfectly, since it renders
5021  math using a combination of HTML and CSS rather than converting the formulae
5022  to images.
5023  But even moderately complex formula are rendered less well than with 
5024 \begin_inset Flex Code
5025 status collapsed
5026
5027 \begin_layout Plain Layout
5028 htlatex
5029 \end_layout
5030
5031 \end_inset
5032
5033 ; this reflects the limitations of HTML.
5034 \begin_inset Foot
5035 status collapsed
5036
5037 \begin_layout Plain Layout
5038 That said, 
5039 \begin_inset Flex Code
5040 status collapsed
5041
5042 \begin_layout Plain Layout
5043 e\SpecialChar LyX
5044 er
5045 \end_layout
5046
5047 \end_inset
5048
5049  can also use jsMath and MathJax for equations, but this setting is only
5050  available globally and requires one to have access to a server that runs
5051  the backend.
5052 \end_layout
5053
5054 \end_inset
5055
5056  More importantly (as of version 1.1.1, at least), 
5057 \begin_inset Flex Code
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061 e\SpecialChar LyX
5062 er
5063 \end_layout
5064
5065 \end_inset
5066
5067  has limited support for math macros and no support for user-defined paragraph
5068  or character styles.
5069  These limitations make 
5070 \begin_inset Flex Code
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074 e\SpecialChar LyX
5075 er
5076 \end_layout
5077
5078 \end_inset
5079
5080  unsuitable for many of the documents \SpecialChar LyX
5081  users produce.
5082  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5083  developers
5084  have decided to follow a different path and have made \SpecialChar LyX
5085  itself capable of
5086  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5087 , DocBook, and plaintext.
5088 \end_layout
5089
5090 \begin_layout Standard
5091 As of this writing, XHTML output remains under development and should probably
5092  be regarded as 
5093 \begin_inset Quotes eld
5094 \end_inset
5095
5096 experimental
5097 \begin_inset Quotes erd
5098 \end_inset
5099
5100 .
5101 \begin_inset Foot
5102 status collapsed
5103
5104 \begin_layout Plain Layout
5105 The file 
5106 \begin_inset Flex Code
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110 development/HTML.notes
5111 \end_layout
5112
5113 \end_inset
5114
5115 , which can be found in the \SpecialChar LyX
5116  source tree or 
5117 \begin_inset CommandInset href
5118 LatexCommand href
5119 name "accessed online"
5120 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5121 literal "false"
5122
5123 \end_inset
5124
5125 , usually contains up-to-date information about the state of XHTML output.
5126  See also the list of XHTML bugs on 
5127 \begin_inset CommandInset href
5128 LatexCommand href
5129 name "the bug tracker"
5130 target "http://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"
5131 literal "false"
5132
5133 \end_inset
5134
5135 .
5136 \end_layout
5137
5138 \end_inset
5139
5140  Still, the developers have chosen this approach because it has several
5141  potential advantages over the other two.
5142 \end_layout
5143
5144 \begin_layout Standard
5145 These advantages are primarily due to the fact that the XHTML output routines,
5146  since they are part of \SpecialChar LyX
5147 , know everything \SpecialChar LyX
5148  knows about the document being
5149  exported.
5150 \begin_inset Foot
5151 status collapsed
5152
5153 \begin_layout Plain Layout
5154 Another advantage is that, since these routines are internal to \SpecialChar LyX
5155 , they are
5156  immune to changes in \SpecialChar LyX
5157 's file format, or to changes in the semantics of
5158  existing insets.
5159 \end_layout
5160
5161 \end_inset
5162
5163  So they know about the table of contents (as displayed in the outline),
5164  about the counters associated with different paragraph styles, and about
5165  user-defined styles.
5166  The XHTML output routines know what \SpecialChar LyX
5167  knows about internationalization,
5168  too, so they will output 
5169 \begin_inset Quotes eld
5170 \end_inset
5171
5172 Chapter 1
5173 \begin_inset Quotes erd
5174 \end_inset
5175
5176  or 
5177 \begin_inset Quotes eld
5178 \end_inset
5179
5180
5181 \lang ngerman
5182 Kapitel
5183 \lang english
5184  1
5185 \begin_inset Quotes erd
5186 \end_inset
5187
5188 , depending upon the language in effect at the time.
5189  
5190 \end_layout
5191
5192 \begin_layout Standard
5193 Quite generally, the output routines know what \SpecialChar LyX
5194  knows about document layout,
5195  that is, about how the document is to be rendered on screen.
5196  We use this information when we output the document as XHTML.
5197  In particular, \SpecialChar LyX
5198  
5199 \emph on
5200 automatically
5201 \emph default
5202  generates CSS style information corresponding to the layout information
5203  it uses to render the document on screen: if section headings are supposed
5204  to be sans-serif and bold as seen in \SpecialChar LyX
5205 , then (by default) they will be sans-seri
5206 f and bold when viewed in a web browser, too.
5207  And this is true not just for pre-defined styles, like Section, but for
5208  any style, including user-defined styles.
5209  Indeed, the XHTML output routines make no distinction between user-defined
5210  paragraph and character styles and \SpecialChar LyX
5211 's own pre-defined styles: in each case,
5212  everything \SpecialChar LyX
5213  knows about the styles is contained in the layout files.
5214  And much the same is true as regards pre-defined textual insets, such as
5215  footnotes, and various custom insets.
5216  
5217 \end_layout
5218
5219 \begin_layout Standard
5220 The result is that XHTML output can be customized and extended in exactly
5221  the same way \SpecialChar LaTeX
5222  output can be customized and extended: through layout files
5223  and modules.
5224  See chapter five of the 
5225 \emph on
5226 Customization 
5227 \emph default
5228 manual for the details.
5229 \end_layout
5230
5231 \begin_layout Standard
5232 The remainder of this chapter contains more detailed information on XHTML
5233  output, its limitations, and ways to work around those limitations.
5234 \end_layout
5235
5236 \begin_layout Section
5237 Math Output in XHTML
5238 \end_layout
5239
5240 \begin_layout Standard
5241 \SpecialChar LyX
5242  offers four choices for how math is rendered.
5243  These have various advantages and disadvantages:
5244 \end_layout
5245
5246 \begin_layout Itemize
5247 MathML
5248 \begin_inset Newline newline
5249 \end_inset
5250
5251 MathML is a dialect of XML designed specifically for mathematics on the
5252  web, and it typically renders very well in browsers that support it.
5253  The disadvantage is that not all browsers support MathML, and support is
5254  not complete even in the Gecko-based browsers, such as Firefox.
5255 \begin_inset Newline newline
5256 \end_inset
5257
5258 If \SpecialChar LyX
5259  is unable to render a formula as MathML—for example, if the formula
5260  uses the 
5261 \begin_inset Flex Code
5262 status collapsed
5263
5264 \begin_layout Plain Layout
5265 xymatrix
5266 \end_layout
5267
5268 \end_inset
5269
5270  package or ERT—then it will instead output the formula as an image.
5271  
5272 \end_layout
5273
5274 \begin_layout Itemize
5275 HTML
5276 \begin_inset Newline newline
5277 \end_inset
5278
5279 As mentioned above, 
5280 \begin_inset Flex Code
5281 status collapsed
5282
5283 \begin_layout Plain Layout
5284 elyxer
5285 \end_layout
5286
5287 \end_inset
5288
5289  outputs math as HTML, styled by CSS.
5290 \begin_inset Foot
5291 status collapsed
5292
5293 \begin_layout Plain Layout
5294 \SpecialChar LyX
5295  has borrowed some of the CSS for its HTML output from 
5296 \begin_inset Flex Code
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300 elyxer
5301 \end_layout
5302
5303 \end_inset
5304
5305 .
5306 \end_layout
5307
5308 \end_inset
5309
5310  For simple formulae, this can work quite well, though with more complicated
5311  formulae it tends to break down.
5312  Still, this method has the advantage that it is very widely supported and
5313  so it may be appropriate for documents that contain only a little, fairly
5314  simple math.
5315 \begin_inset Newline newline
5316 \end_inset
5317
5318 If Lyx is unable to render a formula as HTML—for example, if the formula
5319  uses the 
5320 \begin_inset Flex Code
5321 status collapsed
5322
5323 \begin_layout Plain Layout
5324 xymatrix
5325 \end_layout
5326
5327 \end_inset
5328
5329  package or ERT—then it will instead output the formula as an image.
5330  
5331 \end_layout
5332
5333 \begin_layout Itemize
5334 Images
5335 \begin_inset Newline newline
5336 \end_inset
5337
5338 Like 
5339 \begin_inset Flex Code
5340 status collapsed
5341
5342 \begin_layout Plain Layout
5343 htlatex
5344 \end_layout
5345
5346 \end_inset
5347
5348 , \SpecialChar LyX
5349  will output formulae as images, the very same images, in fact, that are
5350  used for instant preview.
5351 \begin_inset Foot
5352 status collapsed
5353
5354 \begin_layout Plain Layout
5355 Instant preview does 
5356 \emph on
5357 not 
5358 \emph default
5359 have to be on for images to be output, however.
5360 \end_layout
5361
5362 \end_inset
5363
5364  The advantage to this method is that the images are simply generated by
5365  \SpecialChar LaTeX
5366 , so they are very accurate.
5367  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5368  so they do not scale terribly well, and one cannot copy them, etc.
5369  (As of this writing, there are also problems about equation numbering.
5370  See 
5371 \begin_inset CommandInset href
5372 LatexCommand href
5373 name "bug 6894"
5374 target "http://www.lyx.org/trac/ticket/6894"
5375 literal "false"
5376
5377 \end_inset
5378
5379 .)
5380 \begin_inset Newline newline
5381 \end_inset
5382
5383 The size of the images can be controlled by setting the 
5384 \begin_inset Quotes eld
5385 \end_inset
5386
5387 Math Images Scaling
5388 \begin_inset Quotes erd
5389 \end_inset
5390
5391  parameter under 
5392 \begin_inset Flex Noun
5393 status collapsed
5394
5395 \begin_layout Plain Layout
5396 Document\SpecialChar menuseparator
5397 Settings\SpecialChar menuseparator
5398 Output
5399 \end_layout
5400
5401 \end_inset
5402
5403 .
5404 \begin_inset Foot
5405 status collapsed
5406
5407 \begin_layout Plain Layout
5408 For those who want to know, this controls the resolution of the image in
5409  dots per inch and is based upon a default of 75 dpi.
5410 \end_layout
5411
5412 \end_inset
5413
5414
5415 \begin_inset Newline newline
5416 \end_inset
5417
5418 If \SpecialChar LyX
5419  for some reason fails to create an image for a formula (e.g., if a required
5420  \SpecialChar LaTeX
5421  package is not installed), then it will fall back to outputing the raw
5422  \SpecialChar LaTeX
5423 .
5424 \end_layout
5425
5426 \begin_layout Itemize
5427 \SpecialChar LaTeX
5428
5429 \begin_inset Newline newline
5430 \end_inset
5431
5432 Finally, \SpecialChar LyX
5433  will happily output math as \SpecialChar LaTeX
5434 .
5435  As well as being the output of last resort, this method can be used with
5436  such tools as 
5437 \begin_inset CommandInset href
5438 LatexCommand href
5439 name "jsMath"
5440 target "http://www.math.union.edu/~dpvc/jsMath/"
5441 literal "false"
5442
5443 \end_inset
5444
5445 , which uses JavaScript to render \SpecialChar LaTeX
5446  embedded in HTML documents.
5447  \SpecialChar LyX
5448  wraps the \SpecialChar LaTeX
5449  in either a 
5450 \begin_inset Flex Code
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454 span
5455 \end_layout
5456
5457 \end_inset
5458
5459  (for inline formulas) or 
5460 \begin_inset Flex Code
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464 div
5465 \end_layout
5466
5467 \end_inset
5468
5469  (for displayed formulas) with 
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474 class='math'
5475 \end_layout
5476
5477 \end_inset
5478
5479 , as is required for jsMath.
5480 \end_layout
5481
5482 \begin_layout Standard
5483 One of these output methods must be selected under 
5484 \begin_inset Flex Noun
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488 Document\SpecialChar menuseparator
5489 Settings\SpecialChar menuseparator
5490 Output
5491 \end_layout
5492
5493 \end_inset
5494
5495 .
5496  By default, \SpecialChar LyX
5497  outputs MathML.
5498  This is a document-wide setting, therefore.
5499 \end_layout
5500
5501 \begin_layout Standard
5502 Eventually, \SpecialChar LyX
5503  will offer the user the option to select an alternate output
5504  method for a particular inset, say, one that isn't being rendered very
5505  well by MathML.
5506 \begin_inset Foot
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510 That said, since \SpecialChar LyX
5511  falls back to images if the inset contains ERT, then one
5512  can force output as an image by putting some harmless ERT into the math,
5513  for example: 
5514 \begin_inset Formula $a=b\relax$
5515 \end_inset
5516
5517 .
5518 \end_layout
5519
5520 \end_inset
5521
5522
5523 \end_layout
5524
5525 \begin_layout Section
5526 Bibliography and Citations
5527 \end_layout
5528
5529 \begin_layout Standard
5530 XHTML output fully supports bibliographies and citations.
5531  
5532 \end_layout
5533
5534 \begin_layout Standard
5535 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5536 's on-screen
5537  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5538 , though
5539  better.
5540  If you are using numerical citations, then \SpecialChar LyX
5541  will output numerical labels,
5542  such as [1] or [17], rather than simply showing the citation key in square
5543  brackets, as it does on-screen.
5544  If you are using author-year citations, then \SpecialChar LyX
5545  will add lowercase letters
5546  to the years, just as Bib\SpecialChar TeX
5547  does, if it finds more than one citation for
5548  a given author-year combination.
5549  The labels will be printed with the bibliography entries.
5550  Note that there is, at present, no way to customize the appearance of the
5551  labels, for example, to choose between square brackets and parentheses.
5552 \end_layout
5553
5554 \begin_layout Standard
5555 Bibliography output is handled by the same machinery that handles the presentati
5556 on of reference information in the citation dialog, so you will see in the
5557  XHTML output pretty much what you would see if you were to look at a given
5558  entry in the citation dialog.
5559  The formatting can be customized in your layout file or, preferably, in
5560  a module.
5561  See the 
5562 \emph on
5563 Customization
5564 \emph default
5565  manual for the details.
5566 \end_layout
5567
5568 \begin_layout Standard
5569 The main defect at present is that cross-referenced information is printed
5570  with every entry with which it is associated.
5571  So you can see things like this:
5572 \end_layout
5573
5574 \begin_layout Quote
5575 Jason Stanley, 
5576 \begin_inset Quotes eld
5577 \end_inset
5578
5579 Context and Logical Form
5580 \begin_inset Quotes erd
5581 \end_inset
5582
5583 , in 
5584 \emph on
5585 Language in Context: Selected Essays
5586 \emph default
5587  (Oxford: Oxford University Press, 2007), pp.
5588  30–68.
5589 \end_layout
5590
5591 \begin_layout Quote
5592 Jason Stanley, 
5593 \begin_inset Quotes eld
5594 \end_inset
5595
5596 Semantics in Context
5597 \begin_inset Quotes erd
5598 \end_inset
5599
5600 , in 
5601 \emph on
5602 Language in Context: Selected Essays
5603 \emph default
5604  (Oxford: Oxford University Press, 2007), pp.
5605  201–30.
5606 \end_layout
5607
5608 \begin_layout Standard
5609 This should be fixed before long.
5610 \end_layout
5611
5612 \begin_layout Standard
5613 There is no support at present for sectioned bibliographies.
5614  If you have multiple bibliographies, then \SpecialChar LyX
5615  will print the same bibliography
5616  over and over.
5617 \end_layout
5618
5619 \begin_layout Section
5620 Indexes
5621 \end_layout
5622
5623 \begin_layout Standard
5624 \SpecialChar LyX
5625  will happily export indexes as XHTML, but with certain limitations at the
5626  moment.
5627 \end_layout
5628
5629 \begin_layout Standard
5630 Index export will be most reliable when you do not attempt to use the fancy
5631  constructs that are described in the section on indexes in the 
5632 \emph on
5633 User's Guide
5634 \emph default
5635 .
5636 \begin_inset Foot
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 The main issue here is that \SpecialChar LyX
5641  itself does not really handle these.
5642  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5643 .
5644 \end_layout
5645
5646 \end_inset
5647
5648  We'll describe how they are handled using the subsection headings from
5649  that section.
5650 \end_layout
5651
5652 \begin_layout Itemize
5653 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5654  makes an effort to support these,
5655  but the entries must be separated by 
5656 \begin_inset Quotes eld
5657 \end_inset
5658
5659  ! 
5660 \begin_inset Quotes erd
5661 \end_inset
5662
5663 , that is, there must be spaces around the exclamation point.
5664  This is because it is otherwise too difficult to check for escaped exclamation
5665  points, ones in math, and so forth.
5666 \end_layout
5667
5668 \begin_layout Itemize
5669 Page Ranges: There is no support at all for page ranges, since these make
5670  no sense with XHMTL.
5671  Instead, you will just get two index entries, one at either end.
5672 \end_layout
5673
5674 \begin_layout Itemize
5675 Cross-referencing: There is no support for cross-referencing.
5676  If \SpecialChar LyX
5677  finds an entry containing the 
5678 \begin_inset Quotes eld
5679 \end_inset
5680
5681 |see\SpecialChar ldots
5682
5683 \begin_inset Quotes erd
5684 \end_inset
5685
5686  construct, it is just dropped, and the rest is treated as an ordinary index
5687  entry.
5688 \end_layout
5689
5690 \begin_layout Itemize
5691 Index Entry Order: \SpecialChar LyX
5692  does support attempts to fix the sorting order.
5693  It will take what is before the first `@' it finds and use that for sorting,
5694  taking what follows the first `@' to be the actual entry.
5695  At present, \SpecialChar LyX
5696  does not check for escaped `@', so do not try to index email
5697  addresses.
5698 \end_layout
5699
5700 \begin_layout Itemize
5701 Index Entry Layout: You can format entries by using the text style dialog,
5702  or by using any other method available within \SpecialChar LyX
5703  itself.
5704  There is no support for constructs like: 
5705 \begin_inset Quotes eld
5706 \end_inset
5707
5708 entry|textbf
5709 \begin_inset Quotes erd
5710 \end_inset
5711
5712 .
5713  Indeed, if \SpecialChar LyX
5714  finds a pipe symbol, `|', in an entry, it will delete it and
5715  everything that follows it.
5716 \end_layout
5717
5718 \begin_layout Itemize
5719 Multiple Indexes: There is no support for multiple indexes.
5720  Rather, all index entries will be printed as one large index.
5721  To avoid our printing several versions of the index, we print only the
5722  main index, so make sure you have one.
5723 \end_layout
5724
5725 \begin_layout Section
5726 Nomenclature and Glossary
5727 \end_layout
5728
5729 \begin_layout Standard
5730 There is at present no support for glossaries.
5731  Adding it would be fairly trivial, and welcome.
5732 \end_layout
5733
5734 \begin_layout Chapter
5735 The \SpecialChar LyX
5736  Server
5737 \end_layout
5738
5739 \begin_layout Section
5740 Introduction
5741 \end_layout
5742
5743 \begin_layout Standard
5744 The `\SpecialChar LyX
5745  server' allows other programs to talk to \SpecialChar LyX
5746 , invoke \SpecialChar LyX
5747  commands, and retrieve
5748  information about the \SpecialChar LyX
5749  internal state.
5750  This is only intended for advanced users, but they should find it useful.
5751  It is by writing to the \SpecialChar LyX
5752  server, for example, that bibliography managers,
5753  such as JabRef, are able to 
5754 \begin_inset Quotes eld
5755 \end_inset
5756
5757 push
5758 \begin_inset Quotes erd
5759 \end_inset
5760
5761  citations to \SpecialChar LyX
5762 .
5763 \end_layout
5764
5765 \begin_layout Section
5766 Starting the \SpecialChar LyX
5767  Server
5768 \end_layout
5769
5770 \begin_layout Standard
5771 The \SpecialChar LyX
5772  server works through the use of a pair of named pipes.
5773  These are usually located in 
5774 \begin_inset Flex Code
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778 UserDir
5779 \end_layout
5780
5781 \end_inset
5782
5783 , (except on Windows, where 
5784 \emph on
5785 local
5786 \emph default
5787  named pipes are special objects located in 
5788 \begin_inset Flex Code
5789 status collapsed
5790
5791 \begin_layout Plain Layout
5792
5793 \backslash
5794
5795 \backslash
5796 .
5797 \backslash
5798 pipe
5799 \end_layout
5800
5801 \end_inset
5802
5803 ) and have the names 
5804 \begin_inset Quotes eld
5805 \end_inset
5806
5807
5808 \begin_inset Flex Code
5809 status collapsed
5810
5811 \begin_layout Plain Layout
5812 lyxpipe.in
5813 \end_layout
5814
5815 \end_inset
5816
5817
5818 \begin_inset Quotes erd
5819 \end_inset
5820
5821  and 
5822 \begin_inset Quotes eld
5823 \end_inset
5824
5825
5826 \begin_inset Flex Code
5827 status collapsed
5828
5829 \begin_layout Plain Layout
5830 lyxpipe.out
5831 \end_layout
5832
5833 \end_inset
5834
5835
5836 \begin_inset Quotes erd
5837 \end_inset
5838
5839 .
5840  External programs write into 
5841 \begin_inset Flex Code
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 lyxpipe.in
5846 \end_layout
5847
5848 \end_inset
5849
5850  and read back data from 
5851 \begin_inset Flex Code
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 lyxpipe.out
5856 \end_layout
5857
5858 \end_inset
5859
5860 .
5861  The stem of the pipe names can be defined in the 
5862 \begin_inset Flex Noun
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 Tools\SpecialChar menuseparator
5867 Preferences
5868 \end_layout
5869
5870 \end_inset
5871
5872  dialog, for example 
5873 \begin_inset Flex Code
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877 "/home/myhome/lyxpipe"
5878 \end_layout
5879
5880 \end_inset
5881
5882 , or 
5883 \begin_inset Flex Code
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 "
5888 \backslash
5889
5890 \backslash
5891 .
5892 \backslash
5893 pipe
5894 \backslash
5895 lyxpipe"
5896 \end_layout
5897
5898 \end_inset
5899
5900  on Windows (where any working path instead of lyxpipe can be used, for
5901  example 
5902 \begin_inset Flex Code
5903 status collapsed
5904
5905 \begin_layout Plain Layout
5906 "
5907 \backslash
5908
5909 \backslash
5910 .
5911 \backslash
5912 pipe
5913 \backslash
5914 my
5915 \backslash
5916 lyx
5917 \backslash
5918 pipe"
5919 \end_layout
5920
5921 \end_inset
5922
5923  would also work).
5924  You 
5925 \emph on
5926 must
5927 \emph default
5928  configure this manually in order for the server to start.
5929 \end_layout
5930
5931 \begin_layout Standard
5932 \SpecialChar LyX
5933  will add the '
5934 \begin_inset Flex Code
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 .in
5939 \end_layout
5940
5941 \end_inset
5942
5943 ' and '
5944 \begin_inset Flex Code
5945 status collapsed
5946
5947 \begin_layout Plain Layout
5948 .out
5949 \end_layout
5950
5951 \end_inset
5952
5953 ' to create the pipes.
5954  If one of the pipes already exists, \SpecialChar LyX
5955  will assume that another \SpecialChar LyX
5956  process
5957  is already running and will not start the server.
5958  On POSIX (Unix like) systems, if for some other reason, an unused 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 stale
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  pipe is left in existence when \SpecialChar LyX
5967  closes, then \SpecialChar LyX
5968  will try to delete it.
5969  If this fails for some reason, you will need to delete the pipes manually
5970  and then restart \SpecialChar LyX
5971 .
5972  On Windows, pipes are deleted by the OS on program termination or crash,
5973  so 
5974 \begin_inset Quotes eld
5975 \end_inset
5976
5977 stale
5978 \begin_inset Quotes erd
5979 \end_inset
5980
5981  pipes should not be possible.
5982 \end_layout
5983
5984 \begin_layout Standard
5985 To have several \SpecialChar LyX
5986  processes with servers at the same time, you have to use
5987  different configurations, perhaps by using separate user directories, each
5988  with its own 
5989 \begin_inset Flex Code
5990 status collapsed
5991
5992 \begin_layout Plain Layout
5993 preferences
5994 \end_layout
5995
5996 \end_inset
5997
5998  file, for each process.
5999 \end_layout
6000
6001 \begin_layout Standard
6002 If you are developing a client program, you might find it useful to enable
6003  debugging information from the \SpecialChar LyX
6004  server.
6005  Do this by starting \SpecialChar LyX
6006  as 
6007 \begin_inset Flex Code
6008 status collapsed
6009
6010 \begin_layout Plain Layout
6011 lyx -dbg lyxserver
6012 \end_layout
6013
6014 \end_inset
6015
6016 .
6017 \end_layout
6018
6019 \begin_layout Standard
6020 You can find a complete example client written in C++ in the source distribution
6021  as 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 development/lyxserver/server_monitor.cpp
6027 \end_layout
6028
6029 \end_inset
6030
6031 .
6032 \end_layout
6033
6034 \begin_layout Standard
6035 Another useful tool is the command-line based client found in 
6036 \begin_inset Flex Code
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040 src/client/lyxclient
6041 \end_layout
6042
6043 \end_inset
6044
6045 .
6046 \end_layout
6047
6048 \begin_layout Section
6049 Normal communication
6050 \end_layout
6051
6052 \begin_layout Standard
6053 To issue a \SpecialChar LyX
6054  call, the client writes a line of ASCII text into the input
6055  pipe.
6056  This line has the following format:
6057 \end_layout
6058
6059 \begin_layout Quote
6060 LYXCMD:
6061 \emph on
6062 clientname
6063 \emph default
6064 :
6065 \emph on
6066 function
6067 \emph default
6068 :
6069 \emph on
6070 argument
6071 \end_layout
6072
6073 \begin_layout Description
6074 clientname is a name that the client can choose arbitrarily.
6075  Its only use is that \SpecialChar LyX
6076  will echo it if it sends an answer—so a client can
6077  dispatch results from different requesters.
6078 \end_layout
6079
6080 \begin_layout Description
6081 function is the function you want \SpecialChar LyX
6082  to perform.
6083  It is the same as the commands you'd use in the minibuffer.
6084 \end_layout
6085
6086 \begin_layout Description
6087 argument is an optional argument which is meaningful only to some functions
6088  (for instance, the 
6089 \begin_inset Quotes eld
6090 \end_inset
6091
6092 self-insert
6093 \begin_inset Quotes erd
6094 \end_inset
6095
6096  LFUN will insert the argument as text at the cursor position).
6097 \end_layout
6098
6099 \begin_layout Standard
6100 The answer from \SpecialChar LyX
6101  will arrive in the output pipe and be of the form
6102 \end_layout
6103
6104 \begin_layout Quote
6105 INFO:
6106 \emph on
6107 clientname
6108 \emph default
6109 :
6110 \emph on
6111 function
6112 \emph default
6113 :
6114 \emph on
6115 data
6116 \end_layout
6117
6118 \begin_layout Standard
6119 where 
6120 \emph on
6121 clientname
6122 \emph default
6123  and 
6124 \emph on
6125 function
6126 \emph default
6127  are just echoed from the command request, while 
6128 \emph on
6129 data
6130 \emph default
6131  is more or less useful information filled according to how the command
6132  execution worked out.
6133  Some commands, such as 
6134 \begin_inset Quotes eld
6135 \end_inset
6136
6137 font-state
6138 \begin_inset Quotes erd
6139 \end_inset
6140
6141 , will return information about the internal state of \SpecialChar LyX
6142 , while other will
6143  return an empty data-response.
6144  This means that the command execution went fine.
6145 \end_layout
6146
6147 \begin_layout Standard
6148 In case of errors, the response from \SpecialChar LyX
6149  will have this form
6150 \end_layout
6151
6152 \begin_layout Quote
6153 ERROR:
6154 \emph on
6155 clientname
6156 \emph default
6157 :
6158 \emph on
6159 function
6160 \emph default
6161 :
6162 \emph on
6163 error message
6164 \end_layout
6165
6166 \begin_layout Standard
6167 where the 
6168 \emph on
6169 error message
6170 \emph default
6171  should contain an explanation of why the command failed.
6172 \end_layout
6173
6174 \begin_layout Standard
6175 Examples:
6176 \end_layout
6177
6178 \begin_layout LyX-Code
6179 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6180 \begin_inset Newline newline
6181 \end_inset
6182
6183 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6184 \begin_inset Newline newline
6185 \end_inset
6186
6187 read a <~/.lyxpipe.out
6188 \begin_inset Newline newline
6189 \end_inset
6190
6191 echo $a
6192 \end_layout
6193
6194 \begin_layout Subsection
6195 AppleScript (Mac OS X)
6196 \end_layout
6197
6198 \begin_layout Standard
6199 Since \SpecialChar LyX
6200  2.1, \SpecialChar LyX
6201  supports basic interactions with AppleScript for normal communicatio
6202 n through the command run.
6203  This command takes a direct argument (the 
6204 \series bold
6205 function
6206 \series default
6207  to perform) and an optional argument.
6208  It either returns the output of the function or triggers an error with
6209  the error message and code.
6210 \end_layout
6211
6212 \begin_layout Standard
6213 Example:
6214 \end_layout
6215
6216 \begin_layout LyX-Code
6217 tell application "\SpecialChar LyX
6218 "
6219 \end_layout
6220
6221 \begin_layout LyX-Code
6222   try
6223 \end_layout
6224
6225 \begin_layout LyX-Code
6226     -- Stores the current file name into f
6227 \end_layout
6228
6229 \begin_layout LyX-Code
6230     set f to (run "server-get-filename" with argument "")
6231 \end_layout
6232
6233 \begin_layout LyX-Code
6234     on error the error_message number the error_number
6235 \end_layout
6236
6237 \begin_layout LyX-Code
6238       display dialog "Error: " & the error_number & ".
6239  " ¬
6240 \end_layout
6241
6242 \begin_layout LyX-Code
6243               & the error_message buttons {"OK"} default button 1
6244 \end_layout
6245
6246 \begin_layout LyX-Code
6247   end try
6248 \end_layout
6249
6250 \begin_layout LyX-Code
6251 end tell
6252 \end_layout
6253
6254 \begin_layout Section
6255 Notification
6256 \end_layout
6257
6258 \begin_layout Standard
6259 \SpecialChar LyX
6260  can notify clients of events going on asynchronously.
6261  Currently it will only do this if the user binds a key sequence with the
6262  function 
6263 \begin_inset Quotes eld
6264 \end_inset
6265
6266 notify
6267 \begin_inset Quotes erd
6268 \end_inset
6269
6270 .
6271  The format of the string \SpecialChar LyX
6272  sends is as follows:
6273 \end_layout
6274
6275 \begin_layout Quote
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 NOTIFY:
6281 \end_layout
6282
6283 \end_inset
6284
6285
6286 \emph on
6287 key-sequence
6288 \end_layout
6289
6290 \begin_layout Standard
6291 where 
6292 \emph on
6293 key-sequence
6294 \emph default
6295  is the printed representation of the key sequence that was actually typed
6296  by the user.
6297 \end_layout
6298
6299 \begin_layout Standard
6300 This mechanism can be used to extend \SpecialChar LyX
6301 's command set and implement macros.
6302  Bind some key sequence to 
6303 \begin_inset Quotes eld
6304 \end_inset
6305
6306 notify
6307 \begin_inset Quotes erd
6308 \end_inset
6309
6310 .
6311  Then start a client that listens on the output pipe, dispatches the command
6312  according to the sequence, and starts a function that may use \SpecialChar LyX
6313  calls and
6314  \SpecialChar LyX
6315  requests to issue a command or a series of commands to \SpecialChar LyX
6316 .
6317 \end_layout
6318
6319 \begin_layout Section
6320 The simple \SpecialChar LyX
6321  Server Protocol
6322 \end_layout
6323
6324 \begin_layout Standard
6325 \SpecialChar LyX
6326  implements a simple protocol that can be used for session management.
6327  All messages are of the form
6328 \end_layout
6329
6330 \begin_layout Quote
6331 LYXSRV:
6332 \emph on
6333 clientname
6334 \emph default
6335 :
6336 \emph on
6337 protocol message
6338 \end_layout
6339
6340 \begin_layout Standard
6341 where 
6342 \emph on
6343 protocol message
6344 \emph default
6345  can be 
6346 \begin_inset Quotes eld
6347 \end_inset
6348
6349 hello
6350 \begin_inset Quotes erd
6351 \end_inset
6352
6353  or 
6354 \begin_inset Quotes eld
6355 \end_inset
6356
6357 bye
6358 \begin_inset Quotes erd
6359 \end_inset
6360
6361 .
6362  If 
6363 \begin_inset Quotes eld
6364 \end_inset
6365
6366 hello
6367 \begin_inset Quotes erd
6368 \end_inset
6369
6370  is received from a client, \SpecialChar LyX
6371  will report back to inform the client that
6372  it's listening to it's messages, while 
6373 \begin_inset Quotes eld
6374 \end_inset
6375
6376 bye
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380  sent from \SpecialChar LyX
6381  will inform clients that \SpecialChar LyX
6382  is closing.
6383 \end_layout
6384
6385 \begin_layout Section
6386 Reverse DVI/PDF search
6387 \end_layout
6388
6389 \begin_layout Standard
6390 Some DVI/PDF viewers
6391 \begin_inset Foot
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6396  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6397 \end_layout
6398
6399 \end_inset
6400
6401  provide 
6402 \emph on
6403 reverse search
6404 \emph default
6405  facility (also called 
6406 \emph on
6407 inverse search
6408 \emph default
6409 ).
6410  This means that you can tell \SpecialChar LyX
6411  to put the cursor to a specific line in the
6412  document by clicking at the respective position in the DVI/PDF output.
6413  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6414 .
6415  This is done via the \SpecialChar LyX
6416  server either by using the named pipe (
6417 \emph on
6418 lyxpipe
6419 \emph default
6420 ), or the UNIX domain socket (
6421 \emph on
6422 lyxsocket
6423 \emph default
6424 ) that \SpecialChar LyX
6425  creates in its temporary directory (this is the way the 
6426 \begin_inset Flex Code
6427 status collapsed
6428
6429 \begin_layout Plain Layout
6430 lyxclient
6431 \end_layout
6432
6433 \end_inset
6434
6435  program communicates with \SpecialChar LyX
6436 ).
6437  In some cases, you need a helper script that mediates between the viewer
6438  and \SpecialChar LyX
6439 , in others, the viewer can communicate with \SpecialChar LyX
6440  directly.
6441  This depends on the selected viewer and on your operating system.
6442  The same applies to the way viewers need to be configured and the way the
6443  reverse search is actually performed.
6444  In what follows, we will thus describe how to setup reverse search for
6445  specific viewers.
6446  Before we turn to this, though, we will explain what needs to be done generally
6447  to enable reverse search in the DVI/PDF output.
6448 \end_layout
6449
6450 \begin_layout Subsection
6451 Automatic setup
6452 \begin_inset CommandInset label
6453 LatexCommand label
6454 name "subsec:rev-search"
6455
6456 \end_inset
6457
6458
6459 \end_layout
6460
6461 \begin_layout Standard
6462 In most cases \SpecialChar LyX
6463  will do the work for you by enabling the option 
6464 \begin_inset Flex Noun
6465 status collapsed
6466
6467 \begin_layout Plain Layout
6468 Synchronize with Output
6469 \end_layout
6470
6471 \end_inset
6472
6473  in the menu 
6474 \begin_inset Flex Noun
6475 status collapsed
6476
6477 \begin_layout Plain Layout
6478 Document\SpecialChar menuseparator
6479 Settings\SpecialChar menuseparator
6480 Output
6481 \end_layout
6482
6483 \end_inset
6484
6485 .
6486  In such a case \SpecialChar LyX
6487  will automatically insert the necessary Sync\SpecialChar TeX
6488  macro (for
6489  PDF) or load the srcltx package (for DVI) respectively.
6490  This option can be easily reached also on 
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 View/Update
6496 \end_layout
6497
6498 \end_inset
6499
6500  Toolbar.
6501 \end_layout
6502
6503 \begin_layout Standard
6504 If you need a different setting, you can select or input a custom macro
6505  from the drop down box just below 
6506 \begin_inset Flex Noun
6507 status collapsed
6508
6509 \begin_layout Plain Layout
6510 Document\SpecialChar menuseparator
6511 Settings\SpecialChar menuseparator
6512 Output\SpecialChar menuseparator
6513 Synchronize with Output
6514 \end_layout
6515
6516 \end_inset
6517
6518 .
6519 \end_layout
6520
6521 \begin_layout Standard
6522 Note that the method 
6523 \begin_inset Flex Code
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527
6528 \backslash
6529 synctex=1
6530 \end_layout
6531
6532 \end_inset
6533
6534  enables gzip compression.
6535  If your viewer does not support it, you should instead use 
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540
6541 \backslash
6542 synctex=-1
6543 \end_layout
6544
6545 \end_inset
6546
6547 .
6548 \end_layout
6549
6550 \begin_layout Standard
6551 Please also note that including the 
6552 \begin_inset Flex Code
6553 status collapsed
6554
6555 \begin_layout Plain Layout
6556 srcltx
6557 \end_layout
6558
6559 \end_inset
6560
6561  package or 
6562 \begin_inset Flex Code
6563 status collapsed
6564
6565 \begin_layout Plain Layout
6566 src-specials
6567 \end_layout
6568
6569 \end_inset
6570
6571  sometimes has an undesired impact on the typesetting.
6572  Thus, you should switch output synchronization off for the final typesetting
6573  if you use the 
6574 \begin_inset Flex Code
6575 status collapsed
6576
6577 \begin_layout Plain Layout
6578 srcltx
6579 \end_layout
6580
6581 \end_inset
6582
6583  package or 
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 src-specials
6589 \end_layout
6590
6591 \end_inset
6592
6593 .
6594  
6595 \end_layout
6596
6597 \begin_layout Standard
6598 In case you need some more special settings that are not covered by the
6599  automatic settings, read the next section about how to set up output synchroniz
6600 ation manually.
6601  If the automatic setup suits your needs, you can readily jump to section
6602 \begin_inset space ~
6603 \end_inset
6604
6605
6606 \begin_inset CommandInset ref
6607 LatexCommand ref
6608 reference "subsec:configuring-viewers"
6609
6610 \end_inset
6611
6612 , where the necessary configuration steps in your viewer – needed both with
6613  the automatic and the manual setup – are described.
6614 \end_layout
6615
6616 \begin_layout Subsection
6617 Manual setup
6618 \end_layout
6619
6620 \begin_layout Standard
6621 \SpecialChar LaTeX
6622  provides several different methods for reverse search.
6623  Some are built-in in the 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 latex/pdflatex
6629 \end_layout
6630
6631 \end_inset
6632
6633  program, some are provided by external packages.
6634  Your choice depends on whether your \SpecialChar LaTeX
6635  distribution already provides a given
6636  method (the built-in methods are rather new) and whether your viewer can
6637  cope with it.
6638  The available methods are described in the following.
6639 \end_layout
6640
6641 \begin_layout Subsubsection*
6642 Built-in DVI-search via src-specials (DVI only) 
6643 \end_layout
6644
6645 \begin_layout Standard
6646 This method provides the DVI file with the necessary information for reverse
6647  search.
6648  It is available in \SpecialChar LaTeX
6649  since quite some time (any somewhat recent \SpecialChar LaTeX
6650  distribution
6651  should include it), and it works reliably.
6652  To enable it, change the 
6653 \begin_inset Flex Noun
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 La
6658 \family sans
6659 TeX
6660 \family default
6661  (plain)->DVI
6662 \end_layout
6663
6664 \end_inset
6665
6666  or 
6667 \begin_inset Flex Noun
6668 status collapsed
6669
6670 \begin_layout Plain Layout
6671 La
6672 \family sans
6673 TeX
6674 \family default
6675  (plain)->DraftDVI
6676 \end_layout
6677
6678 \end_inset
6679
6680  converter in 
6681 \begin_inset Flex Noun
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 Preferences\SpecialChar menuseparator
6686 File Handling\SpecialChar menuseparator
6687 Converters
6688 \end_layout
6689
6690 \end_inset
6691
6692  to 
6693 \begin_inset Flex Code
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 latex -src-specials $$i
6698 \end_layout
6699
6700 \end_inset
6701
6702 .
6703  If this doesn't work, check if your \SpecialChar TeX
6704  engine needs different options (the
6705  syntax might differ in some distributions).
6706 \end_layout
6707
6708 \begin_layout Subsubsection*
6709 External Packages (PDFSync and scrltx) 
6710 \end_layout
6711
6712 \begin_layout Standard
6713 The packages 
6714 \emph on
6715 pdfsync
6716 \emph default
6717  and 
6718 \emph on
6719 scrltx
6720 \emph default
6721  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6722  respectively.
6723  In order to enable it, load the packages in the \SpecialChar LyX
6724  preamble: 
6725 \end_layout
6726
6727 \begin_layout Itemize
6728 \begin_inset Flex Code
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732
6733 \backslash
6734 usepackage{pdfsync}
6735 \end_layout
6736
6737 \end_inset
6738
6739  for reverse PDF search,
6740 \end_layout
6741
6742 \begin_layout Itemize
6743 \begin_inset Flex Code
6744 status collapsed
6745
6746 \begin_layout Plain Layout
6747
6748 \backslash
6749 usepackage[active]{srcltx}
6750 \end_layout
6751
6752 \end_inset
6753
6754  for reverse DVI search.
6755 \end_layout
6756
6757 \begin_layout Standard
6758 If you want to be able to perform both DVI and PDF reverse searches, you
6759  can also insert in the preamble the following lines
6760 \end_layout
6761
6762 \begin_layout LyX-Code
6763
6764 \backslash
6765 usepackage{ifpdf}
6766 \begin_inset Newline newline
6767 \end_inset
6768
6769
6770 \backslash
6771 ifpdf
6772 \begin_inset Newline newline
6773 \end_inset
6774
6775   
6776 \backslash
6777 usepackage{pdfsync}
6778 \begin_inset Newline newline
6779 \end_inset
6780
6781
6782 \backslash
6783 else
6784 \begin_inset Newline newline
6785 \end_inset
6786
6787   
6788 \backslash
6789 usepackage[active]{srcltx}
6790 \begin_inset Newline newline
6791 \end_inset
6792
6793
6794 \backslash
6795 fi
6796 \end_layout
6797
6798 \begin_layout Standard
6799 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6800  right package will be used.
6801 \end_layout
6802
6803 \begin_layout Standard
6804 Note that PDFSync might affect the output layout of your document.
6805  It is therefore advised to disable PDFsync for final documents.
6806 \end_layout
6807
6808 \begin_layout Subsubsection*
6809 Built-in reverse search via Sync\SpecialChar TeX
6810  (DVI and PDF) 
6811 \end_layout
6812
6813 \begin_layout Standard
6814 Recent versions of 
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 (pdf)latex
6820 \end_layout
6821
6822 \end_inset
6823
6824  have built-in support for both PDF and DVI reverse search.
6825  This so-called 
6826 \emph on
6827 Sync\SpecialChar TeX
6828
6829 \emph default
6830  facility is basically the result of the integration of the PDFSync package
6831  to the pdftex program and its merge with the 
6832 \emph on
6833 scr-specials
6834 \emph default
6835  approach.
6836  You need at least \SpecialChar TeX
6837 Live 2008 or a recent Mik\SpecialChar TeX
6838  distribution in order to use
6839  it.
6840 \begin_inset Foot
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 For some reason, Mik\SpecialChar TeX
6845  does not understand/obey the command \SpecialChar LyX
6846  inserts into
6847  the preamble when you check the "Enable Forward/Reverse Search" button
6848  in the toolbar and does not generate the necessary info.
6849 \end_layout
6850
6851 \begin_layout Plain Layout
6852 The generation of the required info can be forced by changing the converter
6853  "\SpecialChar LaTeX
6854  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6855  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6856  the -synctex=1 switch).
6857 \end_layout
6858
6859 \end_inset
6860
6861  Also note that only a few PDF viewers (Okular and Qpdfview on Unix, Skim
6862  on the Mac, SumatraPDF on Windows) already provide Sync\SpecialChar TeX
6863  support.
6864 \end_layout
6865
6866 \begin_layout Standard
6867 To enable Sync\SpecialChar TeX
6868  for DVI output, change the 
6869 \begin_inset Flex Noun
6870 status collapsed
6871
6872 \begin_layout Plain Layout
6873 La
6874 \family sans
6875 TeX
6876 \family default
6877  (plain) -> DVI
6878 \end_layout
6879
6880 \end_inset
6881
6882  or 
6883 \begin_inset Flex Noun
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 La
6888 \family sans
6889 TeX
6890 \family default
6891  (plain) -> DraftDVI
6892 \end_layout
6893
6894 \end_inset
6895
6896  converter in 
6897 \begin_inset Flex Noun
6898 status collapsed
6899
6900 \begin_layout Plain Layout
6901 Preferences\SpecialChar menuseparator
6902 File Handling\SpecialChar menuseparator
6903 Converters
6904 \end_layout
6905
6906 \end_inset
6907
6908  to 
6909 \begin_inset Flex Code
6910 status collapsed
6911
6912 \begin_layout Plain Layout
6913 latex -synctex=1 $$i
6914 \end_layout
6915
6916 \end_inset
6917
6918 , and for PDF output, change the 
6919 \begin_inset Flex Noun
6920 status collapsed
6921
6922 \begin_layout Plain Layout
6923 La
6924 \family sans
6925 TeX
6926 \family default
6927  (pdflatex) -> PDF (pdflatex)
6928 \end_layout
6929
6930 \end_inset
6931
6932  or converter to 
6933 \begin_inset Flex Code
6934 status collapsed
6935
6936 \begin_layout Plain Layout
6937 pdflatex -synctex=1 $$i
6938 \end_layout
6939
6940 \end_inset
6941
6942 .
6943  Check the documentation of your viewer whether the viewer needs to be configure
6944 d for the use with Sync\SpecialChar TeX
6945 .
6946 \begin_inset Foot
6947 status collapsed
6948
6949 \begin_layout Plain Layout
6950 Note that the option 
6951 \begin_inset Flex Code
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955 -synctex=1
6956 \end_layout
6957
6958 \end_inset
6959
6960  option enables gzip compression.
6961  If your viewer does not support it, you should instead use 
6962 \begin_inset Flex Code
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 -synctex=-1
6967 \end_layout
6968
6969 \end_inset
6970
6971 .
6972 \end_layout
6973
6974 \end_inset
6975
6976
6977 \end_layout
6978
6979 \begin_layout Subsection
6980 Configuring and using specific viewers
6981 \begin_inset CommandInset label
6982 LatexCommand label
6983 name "subsec:configuring-viewers"
6984
6985 \end_inset
6986
6987
6988 \end_layout
6989
6990 \begin_layout Subsubsection*
6991 Xdvi (all platforms)
6992 \end_layout
6993
6994 \begin_layout Standard
6995 If you use 
6996 \begin_inset Flex Code
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 xdvi
7001 \end_layout
7002
7003 \end_inset
7004
7005 , you don't need to do anything else for performing a reverse DVI search,
7006  as \SpecialChar LyX
7007  already provides the necessary hooks for automatically using the 
7008 \begin_inset Flex Code
7009 status collapsed
7010
7011 \begin_layout Plain Layout
7012 lyxclient
7013 \end_layout
7014
7015 \end_inset
7016
7017  program.
7018  Just setup your document as described above (reverse search is triggered
7019  by Ctrl-click or Alt-click on Mac OSX, respectively).
7020 \end_layout
7021
7022 \begin_layout Standard
7023 However, if for whatever reason you want to use the named pipe instead of
7024  the socket for communicating with \SpecialChar LyX
7025 , simply change the DVI viewer in 
7026 \begin_inset Flex Noun
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 Preferences\SpecialChar menuseparator
7031 File Handling\SpecialChar menuseparator
7032 File formats
7033 \end_layout
7034
7035 \end_inset
7036
7037  to
7038 \begin_inset Foot
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 On Mac OSX you have to use 
7043 \begin_inset Flex Code
7044 status collapsed
7045
7046 \begin_layout Plain Layout
7047 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7048 \end_layout
7049
7050 \end_inset
7051
7052
7053 \end_layout
7054
7055 \end_inset
7056
7057  
7058 \begin_inset Flex Code
7059 status collapsed
7060
7061 \begin_layout Plain Layout
7062 xdvi -editor "lyxeditor.sh %f %l"
7063 \end_layout
7064
7065 \end_inset
7066
7067 , where 
7068 \begin_inset Flex Code
7069 status collapsed
7070
7071 \begin_layout Plain Layout
7072 lyxeditor.sh
7073 \end_layout
7074
7075 \end_inset
7076
7077  is a suitable script.
7078  For example, a minimal shell script is the following one:
7079 \end_layout
7080
7081 \begin_layout LyX-Code
7082 #!/bin/sh
7083 \begin_inset Newline newline
7084 \end_inset
7085
7086 LYXPIPE="/path/to/lyxpipe"
7087 \begin_inset Newline newline
7088 \end_inset
7089
7090 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7091 \begin_inset Newline newline
7092 \end_inset
7093
7094 echo "$COMMAND" > "${LYXPIPE}".in || exit
7095 \begin_inset Newline newline
7096 \end_inset
7097
7098 read TMP < "${LYXPIPE}".out || exit
7099 \end_layout
7100
7101 \begin_layout Standard
7102 where 
7103 \begin_inset Flex Code
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 /path/to/lyxpipe
7108 \end_layout
7109
7110 \end_inset
7111
7112  is the LyXServer pipe path specified in 
7113 \begin_inset Flex Noun
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 Preferences\SpecialChar menuseparator
7118 Paths
7119 \end_layout
7120
7121 \end_inset
7122
7123 .
7124 \begin_inset Foot
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 In the 
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 development/tools
7134 \end_layout
7135
7136 \end_inset
7137
7138  folder of a source distribution you can find a 
7139 \begin_inset Flex Code
7140 status collapsed
7141
7142 \begin_layout Plain Layout
7143 lyxeditor
7144 \end_layout
7145
7146 \end_inset
7147
7148  script which is able to locate the 
7149 \emph on
7150 lyxpipe
7151 \emph default
7152  based on your preferences.
7153 \end_layout
7154
7155 \end_inset
7156
7157
7158 \end_layout
7159
7160 \begin_layout Subsubsection*
7161 MacDviX (Mac OSX)
7162 \end_layout
7163
7164 \begin_layout Standard
7165 At the end of 
7166 \begin_inset Flex Code
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170 /Applications/MacDviX_Folder/calleditor.script
7171 \end_layout
7172
7173 \end_inset
7174
7175 , add the following lines:
7176 \end_layout
7177
7178 \begin_layout LyX-Code
7179 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7180 \begin_inset Newline newline
7181 \end_inset
7182
7183 exit 1
7184 \end_layout
7185
7186 \begin_layout Standard
7187 Modify the lines accordingly if you install \SpecialChar LyX
7188  somewhere else than in the
7189  Applications folder.
7190 \end_layout
7191
7192 \begin_layout Standard
7193 Reverse search is triggered by Alt-click (OPTION-click).
7194 \end_layout
7195
7196 \begin_layout Subsubsection*
7197 Skim (Mac OSX)
7198 \end_layout
7199
7200 \begin_layout Standard
7201 Enter 
7202 \begin_inset Flex Code
7203 status collapsed
7204
7205 \begin_layout Plain Layout
7206 open -a Skim.app $$i
7207 \end_layout
7208
7209 \end_inset
7210
7211  to the viewer setting in 
7212 \begin_inset Flex Noun
7213 status collapsed
7214
7215 \begin_layout Plain Layout
7216 Preferences\SpecialChar menuseparator
7217 File Handling\SpecialChar menuseparator
7218 File formats\SpecialChar menuseparator
7219 PDF (pdflatex)
7220 \end_layout
7221
7222 \end_inset
7223
7224 , and then in 
7225 \begin_inset Flex Noun
7226 status collapsed
7227
7228 \begin_layout Plain Layout
7229 Skim\SpecialChar menuseparator
7230 Preferences\SpecialChar menuseparator
7231 Sync
7232 \end_layout
7233
7234 \end_inset
7235
7236  choose 
7237 \begin_inset Flex Noun
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 custom
7242 \end_layout
7243
7244 \end_inset
7245
7246  preset and enter command 
7247 \begin_inset Flex Noun
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 /Applications/\SpecialChar LyX
7252 .app/Contents/MacOS/lyxeditor
7253 \end_layout
7254
7255 \end_inset
7256
7257 .
7258 \end_layout
7259
7260 \begin_layout Standard
7261 Reverse search is triggered by COMMAND-SHIFT-click
7262 \end_layout
7263
7264 \begin_layout Subsubsection*
7265
7266 \change_inserted -712698321 1500278482
7267 Evince (GNOME)
7268 \end_layout
7269
7270 \begin_layout Standard
7271
7272 \change_inserted -712698321 1500278679
7273 Reverse search with evince does not work out of the box, but it can be achieved
7274  by means of some third party helper scripts.
7275  Please refer to 
7276 \begin_inset CommandInset href
7277 LatexCommand href
7278 target "http://wiki.lyx.org/LyX/SyncTeX"
7279 literal "false"
7280
7281 \end_inset
7282
7283  for details.
7284 \end_layout
7285
7286 \begin_layout Subsubsection*
7287 Okular (KDE)
7288 \end_layout
7289
7290 \begin_layout Standard
7291 Go to 
7292 \begin_inset Flex Noun
7293 status collapsed
7294
7295 \begin_layout Plain Layout
7296 Settings\SpecialChar menuseparator
7297 Configure Okular\SpecialChar menuseparator
7298 Editor
7299 \end_layout
7300
7301 \end_inset
7302
7303 , select 
7304 \begin_inset Quotes eld
7305 \end_inset
7306
7307 Custom Text Editor
7308 \begin_inset Quotes erd
7309 \end_inset
7310
7311  and add the command 
7312 \begin_inset Flex Code
7313 status collapsed
7314
7315 \begin_layout Plain Layout
7316 lyxclient -g %f %l
7317 \end_layout
7318
7319 \end_inset
7320
7321 .
7322 \end_layout
7323
7324 \begin_layout Standard
7325 Reverse search is triggered by SHIFT-click.
7326 \end_layout
7327
7328 \begin_layout Subsubsection*
7329 Qpdfview (Unix)
7330 \end_layout
7331
7332 \begin_layout Standard
7333 Qpdfview supports Sync\SpecialChar TeX
7334  since version 0.3.5.
7335  Go to 
7336 \begin_inset Flex Noun
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 Edit\SpecialChar menuseparator
7341 Settings\SpecialChar menuseparator
7342 Behavior
7343 \end_layout
7344
7345 \end_inset
7346
7347 , click on the input field of the 
7348 \begin_inset Quotes eld
7349 \end_inset
7350
7351 Source editor
7352 \begin_inset Quotes erd
7353 \end_inset
7354
7355  item and add the command 
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 lyxclient -g %1 %2
7361 \end_layout
7362
7363 \end_inset
7364
7365 .
7366 \end_layout
7367
7368 \begin_layout Standard
7369 Reverse search is triggered by double-click or, in more recent versions,
7370  by context menu.
7371 \end_layout
7372
7373 \begin_layout Subsubsection*
7374 YAP (Windows)
7375 \end_layout
7376
7377 \begin_layout Standard
7378 Launch yap, choose its 
7379 \begin_inset Flex Noun
7380 status collapsed
7381
7382 \begin_layout Plain Layout
7383 View\SpecialChar menuseparator
7384 Options
7385 \end_layout
7386
7387 \end_inset
7388
7389  menu and select the 
7390 \begin_inset Quotes eld
7391 \end_inset
7392
7393 Inverse DVI Search
7394 \begin_inset Quotes erd
7395 \end_inset
7396
7397  tab.
7398  Click on the 
7399 \begin_inset Quotes eld
7400 \end_inset
7401
7402 New\SpecialChar ldots
7403
7404 \begin_inset Quotes erd
7405 \end_inset
7406
7407  button and, in the window that opens, enter 
7408 \begin_inset Quotes eld
7409 \end_inset
7410
7411 \SpecialChar LyX
7412  Editor
7413 \begin_inset Quotes erd
7414 \end_inset
7415
7416  (or any other name you like) in the 
7417 \begin_inset Quotes eld
7418 \end_inset
7419
7420 Name:
7421 \begin_inset Quotes erd
7422 \end_inset
7423
7424  field.
7425  Now click on the button labeled 
7426 \begin_inset Quotes eld
7427 \end_inset
7428
7429 \SpecialChar ldots
7430
7431 \begin_inset Quotes erd
7432 \end_inset
7433
7434  to open a file dialog and navigate to the directory containing the batch
7435  file 
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 lyxeditor.bat
7441 \end_layout
7442
7443 \end_inset
7444
7445  (see below).
7446  Select 
7447 \begin_inset Flex Code
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 lyxeditor.bat
7452 \end_layout
7453
7454 \end_inset
7455
7456  and then specify the program arguments as 
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 %f %l
7462 \end_layout
7463
7464 \end_inset
7465
7466 .
7467  The 
7468 \begin_inset Flex Code
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 lyxeditor.bat
7473 \end_layout
7474
7475 \end_inset
7476
7477  wrapper is used for communicating with \SpecialChar LyX
7478  through the 
7479 \emph on
7480 lyxpipe
7481 \emph default
7482  and is as follows:
7483 \end_layout
7484
7485 \begin_layout LyX-Code
7486 @echo off
7487 \begin_inset Newline newline
7488 \end_inset
7489
7490 echo LYXCMD:revdvi:server-goto-file-row:%
7491 \change_inserted -712698321 1500896526
7492 ~
7493 \change_unchanged
7494 1 %2> 
7495 \backslash
7496
7497 \backslash
7498 .
7499 \backslash
7500 pipe
7501 \backslash
7502 lyxpipe.in
7503 \begin_inset Newline newline
7504 \end_inset
7505
7506 type 
7507 \backslash
7508
7509 \backslash
7510 .
7511 \backslash
7512 pipe
7513 \backslash
7514 lyxpipe.out
7515 \end_layout
7516
7517 \begin_layout Standard
7518 Make sure that the \SpecialChar LyX
7519 Server pipe path you specified in \SpecialChar LyX
7520  is 
7521 \begin_inset Flex Code
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525
7526 \backslash
7527
7528 \backslash
7529 .
7530 \backslash
7531 pipe
7532 \backslash
7533 lyxpipe
7534 \end_layout
7535
7536 \end_inset
7537
7538 , otherwise change the 
7539 \begin_inset Flex Code
7540 status collapsed
7541
7542 \begin_layout Plain Layout
7543 lyxeditor.bat
7544 \end_layout
7545
7546 \end_inset
7547
7548  wrapper accordingly.
7549 \end_layout
7550
7551 \begin_layout Standard
7552 In yap, reverse search is triggered by double-click.
7553 \end_layout
7554
7555 \begin_layout Subsubsection*
7556 SumatraPDF (Windows)
7557 \end_layout
7558
7559 \begin_layout Standard
7560 In order to use SumatraPDF for inverse search, enter 
7561 \begin_inset Flex Code
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 SumatraPDF -inverse-search "lyxeditor.bat 
7566 \change_inserted -712698321 1500887423
7567 "
7568 \change_unchanged
7569 %f
7570 \change_inserted -712698321 1500887424
7571 "
7572 \change_unchanged
7573  %l"
7574 \end_layout
7575
7576 \end_inset
7577
7578  in the viewer setting in 
7579 \begin_inset Flex Noun
7580 status collapsed
7581
7582 \begin_layout Plain Layout
7583 Preferences\SpecialChar menuseparator
7584 File Handling\SpecialChar menuseparator
7585 File formats\SpecialChar menuseparator
7586 PDF (pdflatex)
7587 \end_layout
7588
7589 \end_inset
7590
7591 , where 
7592 \begin_inset Flex Code
7593 status collapsed
7594
7595 \begin_layout Plain Layout
7596 lyxeditor.bat
7597 \end_layout
7598
7599 \end_inset
7600
7601  is the previous wrapper.
7602  If SumatraPDF.exe is not in your command PATH, use its full file name.
7603 \end_layout
7604
7605 \begin_layout Standard
7606 Reverse search is triggered by double-click.
7607 \end_layout
7608
7609 \begin_layout Subsubsection*
7610 YAP (Cygwin)
7611 \end_layout
7612
7613 \begin_layout Standard
7614 First of all, make sure that yap is your default DVI viewer in the Windows
7615  environment, then launch it, choose its 
7616 \begin_inset Flex Noun
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620 View\SpecialChar menuseparator
7621 Options
7622 \end_layout
7623
7624 \end_inset
7625
7626  menu and select the 
7627 \begin_inset Quotes eld
7628 \end_inset
7629
7630 Inverse DVI Search
7631 \begin_inset Quotes erd
7632 \end_inset
7633
7634  tab.
7635  Click on the 
7636 \begin_inset Quotes eld
7637 \end_inset
7638
7639 New\SpecialChar ldots
7640
7641 \begin_inset Quotes erd
7642 \end_inset
7643
7644  button and, in the window that opens, enter 
7645 \begin_inset Quotes eld
7646 \end_inset
7647
7648 \SpecialChar LyX
7649  Editor
7650 \begin_inset Quotes erd
7651 \end_inset
7652
7653  (or any other name you like) in the 
7654 \begin_inset Quotes eld
7655 \end_inset
7656
7657 Name:
7658 \begin_inset Quotes erd
7659 \end_inset
7660
7661  field.
7662  Now click on the button labeled 
7663 \begin_inset Quotes eld
7664 \end_inset
7665
7666 \SpecialChar ldots
7667
7668 \begin_inset Quotes erd
7669 \end_inset
7670
7671  to open a file dialog and navigate to the directory containing the 
7672 \begin_inset Flex Code
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 lyxeditor.exe
7677 \end_layout
7678
7679 \end_inset
7680
7681  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7682  executable).
7683  Select 
7684 \begin_inset Flex Code
7685 status collapsed
7686
7687 \begin_layout Plain Layout
7688 lyxeditor.exe
7689 \end_layout
7690
7691 \end_inset
7692
7693  and then specify the program arguments as 
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 -g %f %l
7699 \end_layout
7700
7701 \end_inset
7702
7703 .
7704  In this way, you will be using the 
7705 \emph on
7706 lyxsocket
7707 \emph default
7708  for communicating with \SpecialChar LyX
7709 .
7710  If, for whatever reason, you want to use the 
7711 \emph on
7712 lyxpipe
7713 \emph default
7714 , omit the 
7715 \begin_inset Flex Code
7716 status collapsed
7717
7718 \begin_layout Plain Layout
7719 -g
7720 \end_layout
7721
7722 \end_inset
7723
7724  option and be sure to specify the \SpecialChar LyX
7725 Server pipe path in the \SpecialChar LyX
7726  preferences.
7727 \end_layout
7728
7729 \begin_layout Standard
7730 In yap, reverse search is triggered by double-click.
7731 \end_layout
7732
7733 \begin_layout Subsubsection*
7734 SumatraPDF (Cygwin)
7735 \end_layout
7736
7737 \begin_layout Standard
7738 In order to use SumatraPDF for inverse search, enter 
7739 \begin_inset Flex Code
7740 status collapsed
7741
7742 \begin_layout Plain Layout
7743 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7744 \end_layout
7745
7746 \end_inset
7747
7748  in the viewer setting in 
7749 \begin_inset Flex Noun
7750 status collapsed
7751
7752 \begin_layout Plain Layout
7753 Preferences\SpecialChar menuseparator
7754 File Handling\SpecialChar menuseparator
7755 File formats\SpecialChar menuseparator
7756 PDF (pdflatex)
7757 \end_layout
7758
7759 \end_inset
7760
7761 .
7762  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7763  The 
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 -g
7769 \end_layout
7770
7771 \end_inset
7772
7773  enables communication via the 
7774 \emph on
7775 lyxsocket
7776 \emph default
7777 .
7778  Again, omit the 
7779 \begin_inset Flex Code
7780 status collapsed
7781
7782 \begin_layout Plain Layout
7783 -g
7784 \end_layout
7785
7786 \end_inset
7787
7788  option if you want to use the 
7789 \emph on
7790 lyxpipe
7791 \emph default
7792 , and be sure to specify the \SpecialChar LyX
7793 Server pipe path in the \SpecialChar LyX
7794  preferences.
7795 \end_layout
7796
7797 \begin_layout Standard
7798 Reverse search is triggered by double-click.
7799 \end_layout
7800
7801 \begin_layout Section
7802 Forward search
7803 \end_layout
7804
7805 \begin_layout Standard
7806 Forward search is, as the name implies, in a sense the 
7807 \begin_inset Quotes eld
7808 \end_inset
7809
7810 opposite
7811 \begin_inset Quotes erd
7812 \end_inset
7813
7814  of reverse search.
7815  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7816 .
7817  If forward search is set up (as described in what follows), you can put
7818  the cursor anywhere in your \SpecialChar LyX
7819  document, and hit 
7820 \begin_inset Flex Noun
7821 status collapsed
7822
7823 \begin_layout Plain Layout
7824 Navigate\SpecialChar menuseparator
7825 Forward search
7826 \end_layout
7827
7828 \end_inset
7829
7830  (or select 
7831 \begin_inset Flex Noun
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835 Forward search
7836 \end_layout
7837
7838 \end_inset
7839
7840  in the context menu via right mouse click), and then the viewer will jump
7841  to that position as well.
7842  This implies, of course, that your viewer supports this function.
7843 \end_layout
7844
7845 \begin_layout Standard
7846 To make forward search possible, you first need to provide the generated
7847  output PDF/DVI file with additional information about the \SpecialChar TeX
7848  sources.
7849  This can be done via the methods described in the section 
7850 \begin_inset CommandInset ref
7851 LatexCommand ref
7852 reference "subsec:rev-search"
7853
7854 \end_inset
7855
7856 .
7857 \end_layout
7858
7859 \begin_layout Standard
7860 Additionally, you need to configure \SpecialChar LyX
7861  for using your viewers in 
7862 \begin_inset Flex Noun
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 Tools\SpecialChar menuseparator
7867 Preferences\SpecialChar menuseparator
7868 Output\SpecialChar menuseparator
7869 General
7870 \end_layout
7871
7872 \end_inset
7873
7874 .
7875  We provide a range of tested configurations for some viewers, which you
7876  can select from the drop down list.
7877  If none of these configurations suits you, you have to find out and enter
7878  a suitable configuration yourself.
7879  The definition syntax uses the following placeholders:
7880 \end_layout
7881
7882 \begin_layout Itemize
7883 \noindent
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 $$n
7889 \end_layout
7890
7891 \end_inset
7892
7893 : row number
7894 \end_layout
7895
7896 \begin_layout Itemize
7897 \noindent
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 $$t
7903 \end_layout
7904
7905 \end_inset
7906
7907 : name of the (temporary) exported .tex file (without path)
7908 \end_layout
7909
7910 \begin_layout Itemize
7911 \noindent
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 $$f
7917 \end_layout
7918
7919 \end_inset
7920
7921 : name of the (temporary) exported .tex file (including path)
7922 \end_layout
7923
7924 \begin_layout Itemize
7925 \noindent
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 $$o
7931 \end_layout
7932
7933 \end_inset
7934
7935 : name of the exported output file (either dvi or pdf, depending on which
7936  one exists in the temporary directory)
7937 \end_layout
7938
7939 \begin_layout Standard
7940 Note that only some of the viewers provide full 
7941 \change_inserted -712698321 1500279079
7942 and usable 
7943 \change_unchanged
7944 forward search functionality
7945 \change_inserted -712698321 1500278927
7946  out of the box
7947 \change_unchanged
7948 , among them yap, xdvi, okular
7949 \begin_inset Foot
7950 status collapsed
7951
7952 \begin_layout Plain Layout
7953 You might want to set 
7954 \begin_inset Flex Code
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 okular –unique
7959 \end_layout
7960
7961 \end_inset
7962
7963  in 
7964 \begin_inset Flex Noun
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 Tools\SpecialChar menuseparator
7969 Preferences\SpecialChar menuseparator
7970 File Handling\SpecialChar menuseparator
7971 File
7972 \begin_inset space ~
7973 \end_inset
7974
7975 Formats
7976 \end_layout
7977
7978 \end_inset
7979
7980
7981 \end_layout
7982
7983 \end_inset
7984
7985 , qpdfview
7986 \change_inserted -712698321 1500278795
7987 ,
7988 \change_unchanged
7989  and SumatraPDF
7990 \begin_inset Foot
7991 status collapsed
7992
7993 \begin_layout Plain Layout
7994 SumatraPDF can also use DDE commands through the external program CMCDDE
7995  — downloadable from 
7996 \begin_inset CommandInset href
7997 LatexCommand href
7998 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
7999 literal "false"
8000
8001 \end_inset
8002
8003
8004 \end_layout
8005
8006 \end_inset
8007
8008 .
8009  
8010 \change_inserted -712698321 1500279294
8011 Others, such as evince
8012 \begin_inset Foot
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 \paragraph_spacing single
8017
8018 \change_inserted -712698321 1500278873
8019 Forward search with evince can be achieved by means of third party helper
8020  scripts.
8021  Please refer to 
8022 \begin_inset CommandInset href
8023 LatexCommand href
8024 target "http://wiki.lyx.org/LyX/SyncTeX"
8025 literal "false"
8026
8027 \end_inset
8028
8029  for details.
8030 \change_unchanged
8031
8032 \end_layout
8033
8034 \end_inset
8035
8036 , require some extra tools in order to use forward search.
8037  
8038 \change_unchanged
8039 While many of the widespread PDF viewers (most notably Adobe Reader) do
8040  not support forward search at all, some other viewers – e.
8041 \begin_inset space \thinspace{}
8042 \end_inset
8043
8044 g.
8045  
8046 \change_deleted -712698321 1500278769
8047 evince and
8048 \change_unchanged
8049  xpdf – allow at least to reload the document and jump to a specific page
8050  of the file, so you can at least navigate 
8051 \begin_inset Quotes eld
8052 \end_inset
8053
8054 near
8055 \begin_inset Quotes erd
8056 \end_inset
8057
8058 .
8059  This latter functionality is provided by an external call of synctex (see
8060  the predefined example configurations).
8061  
8062 \end_layout
8063
8064 \begin_layout Standard
8065 Forward search works both with DVI and PDF output.
8066  \SpecialChar LyX
8067  simply checks which preview format you have used before (i.
8068 \begin_inset space \thinspace{}
8069 \end_inset
8070
8071 e., which format is already there in the temporary directory) and chooses
8072  the appropriate configuration for the respective format.
8073 \end_layout
8074
8075 \begin_layout Chapter
8076 Special Document Classes
8077 \end_layout
8078
8079 \begin_layout Section
8080 A&A Paper
8081 \end_layout
8082
8083 \begin_layout Standard
8084 by 
8085 \noun on
8086 Peter Sütterlin
8087 \end_layout
8088
8089 \begin_layout Subsection
8090 Introduction
8091 \end_layout
8092
8093 \begin_layout Standard
8094 This section describes how \SpecialChar LyX
8095  can be used to write articles for submission
8096  to the scientific journal 
8097 \emph on
8098 Astronomy and Astrophysics
8099 \emph default
8100  (
8101 \begin_inset Flex URL
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105
8106 http://www.edpsciences.fr/aa/
8107 \end_layout
8108
8109 \end_inset
8110
8111 ) using Version 5.01 of the document class 
8112 \family typewriter
8113 aa.cls
8114 \family default
8115 .
8116  This package can be downloaded from the ftp site
8117 \end_layout
8118
8119 \begin_layout Standard
8120 \begin_inset VSpace medskip
8121 \end_inset
8122
8123
8124 \end_layout
8125
8126 \begin_layout Standard
8127 \align center
8128 \begin_inset Flex URL
8129 status collapsed
8130
8131 \begin_layout Plain Layout
8132
8133 ftp://ftp.edpsciences.org/pub/aa/readme.html
8134 \end_layout
8135
8136 \end_inset
8137
8138
8139 \end_layout
8140
8141 \begin_layout Standard
8142 \begin_inset VSpace medskip
8143 \end_inset
8144
8145
8146 \end_layout
8147
8148 \begin_layout Standard
8149 A manual comes together with that package, and this text is not meant to
8150  replace the original manual but is merely a short guide in how to realize
8151  the correct form of your paper.
8152  
8153 \end_layout
8154
8155 \begin_layout Standard
8156 Please note that the publisher of the journal was changed from Springer
8157  to EDP Sciences starting January 1, 2001.
8158  That change involved also some slight changes to the style files, namely
8159  the removal of the thesaurus command.
8160  The \SpecialChar LyX
8161  class aa supports the newest version of these style files, V 5.01.
8162  If you have an older version installed, please upgrade.
8163  For compatibility, the old (version 4) layout has been kept as 
8164 \family sans
8165 article (A&A V4)
8166 \family default
8167 .
8168  Please refer to the comments in 
8169 \family typewriter
8170 \SpecialChar LyX
8171 Dir/layouts/aapaper.layout
8172 \family default
8173 .
8174 \end_layout
8175
8176 \begin_layout Subsection
8177 Getting started
8178 \end_layout
8179
8180 \begin_layout Standard
8181 It is recommended you start from the example template distributed with \SpecialChar LyX
8182 .
8183  If you are not using a template, note the following settings:
8184 \end_layout
8185
8186 \begin_layout Itemize
8187 Select 
8188 \family sans
8189 article (A&A)
8190 \family default
8191  in the 
8192 \family sans
8193 Document\SpecialChar menuseparator
8194 Settings
8195 \family default
8196  dialog (OK, that one was obvious).
8197 \end_layout
8198
8199 \begin_layout Itemize
8200 Don't change the option 
8201 \family sans
8202 Page
8203 \begin_inset space ~
8204 \end_inset
8205
8206 style
8207 \family default
8208 : Leave it set to 
8209 \family sans
8210 default
8211 \family default
8212 .
8213  The whole layout is done by the macros, you shouldn't change anything.
8214 \end_layout
8215
8216 \begin_layout Subsection
8217 The header block
8218 \end_layout
8219
8220 \begin_layout Standard
8221 First thing to enter is the header information.
8222  It consists of seven entries, of which some are optional.
8223  They are
8224 \end_layout
8225
8226 \begin_layout Itemize
8227
8228 \family sans
8229 Title
8230 \family default
8231 : [required] 
8232 \end_layout
8233
8234 \begin_layout Itemize
8235
8236 \family sans
8237 Subtitle
8238 \family default
8239 : [optional] 
8240 \end_layout
8241
8242 \begin_layout Itemize
8243
8244 \family sans
8245 Author
8246 \family default
8247 : [required]
8248 \end_layout
8249
8250 \begin_layout Itemize
8251
8252 \family sans
8253 Address
8254 \family default
8255 : [required]
8256 \end_layout
8257
8258 \begin_layout Itemize
8259
8260 \family sans
8261 Offprints
8262 \family default
8263 : [optional] if more than one author: whom to contact for offprint requests.
8264 \end_layout
8265
8266 \begin_layout Itemize
8267
8268 \family sans
8269 Mail
8270 \family default
8271 : [optional] mail address for contacts.
8272 \end_layout
8273
8274 \begin_layout Itemize
8275
8276 \family sans
8277 Date
8278 \family default
8279 : [required].
8280  Suggested format is 
8281 \family typewriter
8282 Received: <date>; Accepted <date> 
8283 \end_layout
8284
8285 \begin_layout Standard
8286 There is no need to issue the 
8287 \family typewriter
8288
8289 \backslash
8290 maketitle
8291 \family default
8292  command, this is done automatically by \SpecialChar LyX
8293  when the header is finished.
8294  Although the order of the single header entries doesn't matter it is advised
8295  to keep the above sequence, just to get the best optics and meets the layout
8296  of the real document.
8297 \end_layout
8298
8299 \begin_layout Standard
8300 If you want to place footnotes in the header block, e.
8301 \begin_inset space \thinspace{}
8302 \end_inset
8303
8304 g.
8305 \begin_inset space \space{}
8306 \end_inset
8307
8308 to state your present address, just use the standard footnote via the menu
8309  
8310 \family sans
8311 Insert\SpecialChar menuseparator
8312 Footnote.
8313
8314 \family default
8315  \SpecialChar LyX
8316  will automagically use the term 
8317 \family typewriter
8318
8319 \backslash
8320 thanks{}
8321 \family default
8322  in that case.
8323 \end_layout
8324
8325 \begin_layout Standard
8326 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8327  commands that
8328  have no counterpart in \SpecialChar LyX
8329 :
8330 \end_layout
8331
8332 \begin_layout Itemize
8333
8334 \family typewriter
8335
8336 \backslash
8337 and
8338 \family default
8339  to separate different names for more than one author and institute, respectivel
8340 y.
8341 \end_layout
8342
8343 \begin_layout Itemize
8344
8345 \family typewriter
8346
8347 \backslash
8348 inst{<nr>}
8349 \family default
8350 to mark corresponding author/institute pairs.
8351  The institutes are numbered sequentially as they appear in the 
8352 \family sans
8353 Address
8354 \family default
8355  field, so you have to put a marker to each author.
8356 \end_layout
8357
8358 \begin_layout Itemize
8359
8360 \family typewriter
8361
8362 \backslash
8363 email{address}
8364 \family default
8365  to supply an email address for fast contact.
8366 \end_layout
8367
8368 \begin_layout Standard
8369 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8370  and marked as
8371  \SpecialChar LaTeX
8372  code.
8373  See the examples.
8374  
8375 \end_layout
8376
8377 \begin_layout Subsection
8378 The abstract
8379 \end_layout
8380
8381 \begin_layout Standard
8382 The abstract should immediately follow the header block.
8383  With version 5 the abstract environment was changed to a command, and there
8384  is now a resctriction to only one paragraph.
8385  In addition, it should contain an entry with the keywords.
8386  This is not yet implemented for \SpecialChar LyX
8387 , therefore you have to enter the \SpecialChar LaTeX
8388  command
8389  
8390 \family typewriter
8391
8392 \backslash
8393 keywords{}
8394 \family default
8395  by hand and mark it as \SpecialChar LaTeX
8396  code.
8397  Refer to the example paper.
8398 \end_layout
8399
8400 \begin_layout Subsection
8401 Supported environments
8402 \end_layout
8403
8404 \begin_layout Standard
8405 The A&A paper layout supports the following environments for structuring
8406  your text:
8407 \end_layout
8408
8409 \begin_layout Itemize
8410
8411 \family sans
8412 Standard
8413 \end_layout
8414
8415 \begin_layout Itemize
8416
8417 \family sans
8418 Section
8419 \end_layout
8420
8421 \begin_layout Itemize
8422
8423 \family sans
8424 Subsection
8425 \end_layout
8426
8427 \begin_layout Itemize
8428
8429 \family sans
8430 Subsubsection
8431 \end_layout
8432
8433 \begin_layout Itemize
8434
8435 \family sans
8436 Itemize
8437 \end_layout
8438
8439 \begin_layout Itemize
8440
8441 \family sans
8442 Enumerate
8443 \end_layout
8444
8445 \begin_layout Itemize
8446
8447 \family sans
8448 Description
8449 \end_layout
8450
8451 \begin_layout Itemize
8452
8453 \family sans
8454 Caption
8455 \end_layout
8456
8457 \begin_layout Itemize
8458
8459 \family sans
8460 Abstract
8461 \end_layout
8462
8463 \begin_layout Itemize
8464
8465 \family sans
8466 Acknowledgment
8467 \end_layout
8468
8469 \begin_layout Itemize
8470
8471 \family sans
8472 Bibliography
8473 \end_layout
8474
8475 \begin_layout Itemize
8476
8477 \family sans
8478 \SpecialChar LaTeX
8479
8480 \end_layout
8481
8482 \begin_layout Subsection
8483 Commands not supported by \SpecialChar LyX
8484
8485 \end_layout
8486
8487 \begin_layout Standard
8488 Some commands are not yet supported by the 
8489 \family sans
8490 paper (A&A)
8491 \family default
8492  layout for \SpecialChar LyX
8493 .
8494  Some have already been mentioned.
8495  For the sake of completeness, they are listed all together here:
8496 \end_layout
8497
8498 \begin_layout Itemize
8499
8500 \family typewriter
8501
8502 \backslash
8503 and
8504 \end_layout
8505
8506 \begin_layout Itemize
8507
8508 \family typewriter
8509
8510 \backslash
8511 email
8512 \end_layout
8513
8514 \begin_layout Itemize
8515
8516 \family typewriter
8517
8518 \backslash
8519 appendix
8520 \end_layout
8521
8522 \begin_layout Itemize
8523
8524 \family typewriter
8525
8526 \backslash
8527 authorrunning
8528 \end_layout
8529
8530 \begin_layout Itemize
8531
8532 \family typewriter
8533
8534 \backslash
8535 inst{}
8536 \end_layout
8537
8538 \begin_layout Itemize
8539
8540 \family typewriter
8541
8542 \backslash
8543 keywords{}
8544 \end_layout
8545
8546 \begin_layout Itemize
8547
8548 \family typewriter
8549
8550 \backslash
8551 object{}
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family typewriter
8557
8558 \backslash
8559 titlerunning{}
8560 \end_layout
8561
8562 \begin_layout Standard
8563 If you want to use any of these commands, you have to enter them yourself.
8564  
8565 \series bold
8566 Do not forget to mark them as \SpecialChar LaTeX
8567  code!
8568 \end_layout
8569
8570 \begin_layout Subsection
8571 Figure and Table Floats
8572 \end_layout
8573
8574 \begin_layout Standard
8575 \SpecialChar LyX
8576  provides support for the necessary float environments 
8577 \family sans
8578 figure, figure*, table
8579 \family default
8580  and 
8581 \family sans
8582 table*
8583 \family default
8584 , therefore we won't tell much about it here.
8585  Refer to the 
8586 \emph on
8587 User's
8588 \begin_inset space ~
8589 \end_inset
8590
8591 Guide
8592 \emph default
8593 .
8594  Just remember that tables should be left-aligned.
8595  For that, select the table and change the alignment in 
8596 \family sans
8597 Edit\SpecialChar menuseparator
8598 Paragraph
8599 \begin_inset space ~
8600 \end_inset
8601
8602 Settings.
8603 \end_layout
8604
8605 \begin_layout Standard
8606 There is only one special thing: the figures with caption besides the figure.
8607  To create such a figure, you have to do the following:
8608 \end_layout
8609
8610 \begin_layout Enumerate
8611 Create a wide figure float: 
8612 \family sans
8613 Insert\SpecialChar menuseparator
8614 Float\SpecialChar menuseparator
8615 Figure
8616 \family default
8617 , then right click in the figure and select 
8618 \family sans
8619 Span
8620 \begin_inset space ~
8621 \end_inset
8622
8623 columns
8624 \family default
8625 .
8626 \end_layout
8627
8628 \begin_layout Enumerate
8629 Enter your caption text.
8630 \end_layout
8631
8632 \begin_layout Enumerate
8633 Press 
8634 \family sans
8635 Return
8636 \family default
8637  to move the cursor above the caption.
8638 \end_layout
8639
8640 \begin_layout Enumerate
8641 Insert your figure
8642 \end_layout
8643
8644 \begin_layout Enumerate
8645 Position the cursor behind the figure and insert a horizontal fill: 
8646 \family sans
8647 Insert\SpecialChar menuseparator
8648 Special
8649 \begin_inset space ~
8650 \end_inset
8651
8652 Character\SpecialChar menuseparator
8653 Horizontal
8654 \begin_inset space ~
8655 \end_inset
8656
8657 Fill
8658 \family default
8659 .
8660 \end_layout
8661
8662 \begin_layout Enumerate
8663 Switch to \SpecialChar LaTeX
8664  mode: 
8665 \family sans
8666 M-c
8667 \begin_inset space ~
8668 \end_inset
8669
8670 t
8671 \family default
8672 .
8673 \end_layout
8674
8675 \begin_layout Enumerate
8676 Enter 
8677 \family typewriter
8678
8679 \backslash
8680 parbox[b]{55mm}{
8681 \family default
8682 .
8683  
8684 \series bold
8685 Do not close the brace!
8686 \end_layout
8687
8688 \begin_layout Enumerate
8689 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8690  mode and insert
8691  the closing brace: 
8692 \family sans
8693 M-c
8694 \begin_inset space ~
8695 \end_inset
8696
8697 t
8698 \family default
8699  
8700 \family typewriter
8701 }
8702 \family default
8703 .
8704 \end_layout
8705
8706 \begin_layout Standard
8707 Also, refer to the figures in the example paper.
8708 \end_layout
8709
8710 \begin_layout Subsection
8711 Referee layout
8712 \end_layout
8713
8714 \begin_layout Standard
8715 For submission, the paper has to be formated in a special double-spacing
8716  layout.
8717  For this purpose, you have to give the option 
8718 \family typewriter
8719 referee
8720 \family default
8721  to the documentclass.
8722  This must be done using the extra class options field in the 
8723 \family sans
8724 Document\SpecialChar menuseparator
8725 Settings
8726 \family default
8727  dialog.
8728  Just enter the string 
8729 \family typewriter
8730 referee
8731 \family default
8732  there.
8733 \end_layout
8734
8735 \begin_layout Subsection
8736 The example paper
8737 \end_layout
8738
8739 \begin_layout Standard
8740 The 
8741 \family sans
8742 Examples
8743 \family default
8744  directory contains an example paper written with \SpecialChar LyX
8745 .
8746  It is the example paper from the original macro package, translated to
8747  \SpecialChar LyX
8748 .
8749  Use it for inspiration, and compare the original \SpecialChar LaTeX
8750  code with \SpecialChar LyX
8751  way of writing.
8752 \end_layout
8753
8754 \begin_layout Section
8755 AAS\SpecialChar TeX
8756
8757 \end_layout
8758
8759 \begin_layout Standard
8760 by 
8761 \noun on
8762 Mike Ressler
8763 \end_layout
8764
8765 \begin_layout Subsection
8766 Introduction
8767 \end_layout
8768
8769 \begin_layout Standard
8770 AAS\SpecialChar TeX
8771  is a set of macros produced by the American Astronomical Society to
8772  facilitate electronic manuscript submission to the three journals they
8773  publish: the Astrophysical Journal (including the Letters and Supplement),
8774  the Astronomical Journal, and the Publications of the Astronomical Society
8775  of the Pacific.
8776  \SpecialChar LyX
8777  has proven to be an excellent tool for generating these documents, especially
8778  given its equation, citation, and figure handling capabilities.
8779  \SpecialChar LyX
8780  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8781  is the version described here, or higher.
8782  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8783 2.09 and are fundamentally
8784  incompatible with \SpecialChar LyX
8785 .
8786  The AAS\SpecialChar TeX
8787  package may be downloaded from the AAS\SpecialChar TeX
8788  Web site
8789 \end_layout
8790
8791 \begin_layout Standard
8792 \begin_inset VSpace medskip
8793 \end_inset
8794
8795
8796 \end_layout
8797
8798 \begin_layout Standard
8799 \align center
8800 \begin_inset Flex URL
8801 status collapsed
8802
8803 \begin_layout Plain Layout
8804
8805 https://aas.org/aastex/aastex-downloads
8806 \end_layout
8807
8808 \end_inset
8809
8810
8811 \end_layout
8812
8813 \begin_layout Standard
8814 \begin_inset VSpace medskip
8815 \end_inset
8816
8817
8818 \end_layout
8819
8820 \begin_layout Standard
8821 A complete user guide is contained in that package and you should familiarize
8822  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8823 .
8824  \SpecialChar LyX
8825  will not reduce the need to figure out all the AAS\SpecialChar TeX
8826  commands, it will only
8827  reduce the drudgery of typing everything in.
8828  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8829  document conforms
8830  completely to the requirements of the journal to which you are submitting
8831  your paper.
8832 \end_layout
8833
8834 \begin_layout Subsection
8835 Starting a New Paper
8836 \end_layout
8837
8838 \begin_layout Standard
8839 I strongly suggest that you start with the AAS\SpecialChar TeX
8840  template file.
8841  Click on 
8842 \family sans
8843 File\SpecialChar menuseparator
8844 New from
8845 \family default
8846  
8847 \family sans
8848 Template
8849 \family default
8850 , enter the new file name, then choose the 
8851 \family typewriter
8852 aastex.lyx
8853 \family default
8854  template.
8855  This will show the most common fields found in a manuscript.
8856  Simply overwrite the existing text (including the brackets, 
8857 \family typewriter
8858 <>
8859 \family default
8860 ) with the correct information.
8861  Many of the AAS\SpecialChar TeX
8862  commands and environments can be implemented directly in
8863  \SpecialChar LyX
8864 , but some cannot: most noticeably 
8865 \family typewriter
8866
8867 \backslash
8868 altaffilmark
8869 \family default
8870  and 
8871 \family typewriter
8872
8873 \backslash
8874 altaffiltext
8875 \family default
8876 , which should stick out like a sore thumb if you actually just opened the
8877  template file.
8878  For commands such as these, the \SpecialChar LaTeX
8879  code must be entered directly and marked
8880  as such.
8881  Such commands are referred to as \SpecialChar TeX
8882  code, or Evil Red Text.
8883  I tried to minimize the amount of \SpecialChar TeX
8884  code needed in an AAS\SpecialChar TeX
8885  document, but
8886  there is still a bit more required than any of us would like.
8887 \end_layout
8888
8889 \begin_layout Subsection
8890 Finishing Your Paper
8891 \end_layout
8892
8893 \begin_layout Standard
8894 When the paper is finished to your satisfaction and previews/prints correctly,
8895  there are a few 
8896 \begin_inset Quotes eld
8897 \end_inset
8898
8899 postprocessing
8900 \begin_inset Quotes erd
8901 \end_inset
8902
8903  actions which need to be done before you submit it to the journals.
8904  
8905 \end_layout
8906
8907 \begin_layout Enumerate
8908 Export your paper as a \SpecialChar LaTeX
8909  file (
8910 \family sans
8911 File\SpecialChar menuseparator
8912 Export\SpecialChar menuseparator
8913 \SpecialChar LaTeX
8914
8915 \family default
8916 ).
8917  
8918 \end_layout
8919
8920 \begin_layout Enumerate
8921 Edit the resulting 
8922 \family typewriter
8923 .tex
8924 \family default
8925  file with your favorite text editor
8926 \end_layout
8927
8928 \begin_deeper
8929 \begin_layout Enumerate
8930 remove the comment lines before the 
8931 \family typewriter
8932
8933 \backslash
8934 documentclass
8935 \family default
8936  command
8937 \end_layout
8938
8939 \begin_layout Enumerate
8940 remove the 
8941 \family typewriter
8942
8943 \backslash
8944 usepackage...{fontenc}
8945 \family default
8946  line if it appears (usually just after 
8947 \family typewriter
8948
8949 \backslash
8950 documentclass
8951 \family default
8952 }; also remove the 
8953 \family typewriter
8954
8955 \backslash
8956 secnumdepth
8957 \family default
8958  line if it appears.
8959 \end_layout
8960
8961 \begin_layout Enumerate
8962 remove everything between (and including) the 
8963 \family typewriter
8964
8965 \backslash
8966 makeatletter
8967 \family default
8968  and 
8969 \family typewriter
8970
8971 \backslash
8972 makeatother
8973 \family default
8974  commands, except for any commands you specifically put into the \SpecialChar LaTeX
8975  preamble
8976  (which should appear immediately after the 
8977 \begin_inset Quotes eld
8978 \end_inset
8979
8980 User specified \SpecialChar LaTeX
8981  commands
8982 \begin_inset Quotes erd
8983 \end_inset
8984
8985  comment in the 
8986 \family typewriter
8987 .tex
8988 \family default
8989  file).
8990 \end_layout
8991
8992 \end_deeper
8993 \begin_layout Enumerate
8994 Run the resulting file through \SpecialChar LaTeX
8995  to make sure it still processes correctly.
8996 \end_layout
8997
8998 \begin_layout Enumerate
8999 Reread the journal requirements to make sure your filenames and formats
9000  are correct.
9001 \end_layout
9002
9003 \begin_layout Enumerate
9004 Submit it.
9005 \end_layout
9006
9007 \begin_layout Subsection
9008 Comments On Specific Commands
9009 \end_layout
9010
9011 \begin_layout Standard
9012 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9013  commands: the
9014  AAS\SpecialChar TeX
9015  User Guide (
9016 \family typewriter
9017 aasguide.tex
9018 \family default
9019 ) gives a good description of each.
9020  Thus it's probably easiest for me to go down the list as found in the guide
9021  and offer comments where necessary.
9022  So let's begin \SpecialChar ldots
9023
9024 \end_layout
9025
9026 \begin_layout Subsubsection
9027 Things that work as expected
9028 \end_layout
9029
9030 \begin_layout Standard
9031 Because they work as you might expect, I simply list them and the section
9032  they are found in: 
9033 \family typewriter
9034
9035 \backslash
9036 documentclass
9037 \family default
9038  (2.1.1), 
9039 \family typewriter
9040
9041 \backslash
9042 begin{document}
9043 \family default
9044  (2.2), 
9045 \family typewriter
9046
9047 \backslash
9048 title
9049 \family default
9050  (2.3), 
9051 \family typewriter
9052
9053 \backslash
9054 author
9055 \family default
9056  (2.3), 
9057 \family typewriter
9058
9059 \backslash
9060 affil
9061 \family default
9062  (2.3), 
9063 \family typewriter
9064
9065 \backslash
9066 abstract
9067 \family default
9068  (2.4), 
9069 \family typewriter
9070
9071 \backslash
9072 keywords
9073 \family default
9074  (2.5), 
9075 \family typewriter
9076
9077 \backslash
9078 section
9079 \family default
9080  (2.7), 
9081 \family typewriter
9082
9083 \backslash
9084 subsection
9085 \family default
9086  (2.7), 
9087 \family typewriter
9088
9089 \backslash
9090 subsubsection
9091 \family default
9092  (2.7), 
9093 \family typewriter
9094
9095 \backslash
9096 paragraph
9097 \family default
9098  (2.7), 
9099 \family typewriter
9100
9101 \backslash
9102 facility
9103 \family default
9104  (2.10), 
9105 \family typewriter
9106
9107 \backslash
9108 begin{displaymath}
9109 \family default
9110  (2.12), 
9111 \family typewriter
9112
9113 \backslash
9114 begin{equation}
9115 \family default
9116  (2.12), 
9117 \family typewriter
9118
9119 \backslash
9120 begin{eqnarray}
9121 \family default
9122  (2.12), 
9123 \family typewriter
9124
9125 \backslash
9126 begin{mathletters}
9127 \family default
9128  (2.12), 
9129 \family typewriter
9130
9131 \backslash
9132 begin{thebibliography}
9133 \family default
9134  (2.13.1), 
9135 \family typewriter
9136
9137 \backslash
9138 bibitem
9139 \family default
9140  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9141  graphicx figure commands (2.14.1), 
9142 \family typewriter
9143
9144 \backslash
9145 begin{table}
9146 \family default
9147  (2.15.4), 
9148 \family typewriter
9149
9150 \backslash
9151 begin{tabular}
9152 \family default
9153  (2.15.4), 
9154 \family typewriter
9155
9156 \backslash
9157 caption
9158 \family default
9159  (2.15.4), 
9160 \family typewriter
9161
9162 \backslash
9163 label
9164 \family default
9165  (2.15.4, amongst other places), 
9166 \family typewriter
9167
9168 \backslash
9169 tablerefs
9170 \family default
9171  (2.15.5), 
9172 \family typewriter
9173
9174 \backslash
9175 tablecomments
9176 \family default
9177  (2.15.5), 
9178 \family typewriter
9179
9180 \backslash
9181 url
9182 \family default
9183  (2.17.4), 
9184 \family typewriter
9185
9186 \backslash
9187 end{document}
9188 \family default
9189  (2.18).
9190 \end_layout
9191
9192 \begin_layout Standard
9193 The following style options also work correctly: 
9194 \family typewriter
9195 longabstract
9196 \family default
9197  (2.4), 
9198 \family typewriter
9199 preprint
9200 \family default
9201  (3.2.1), 
9202 \family typewriter
9203 preprint2
9204 \family default
9205  (3.2.2), 
9206 \family typewriter
9207 eqsecnum
9208 \family default
9209  (3.3), 
9210 \family typewriter
9211 flushrt
9212 \family default
9213  (3.4).
9214  Simply put them in the 
9215 \family sans
9216 Options
9217 \family default
9218  box in 
9219 \family sans
9220 Layout\SpecialChar menuseparator
9221 Document
9222 \family default
9223 .
9224 \end_layout
9225
9226 \begin_layout Subsubsection
9227 Things that work, but require more comment
9228 \end_layout
9229
9230 \begin_layout Standard
9231 The following items work, but require a little more discussion:
9232 \end_layout
9233
9234 \begin_layout Itemize
9235 These items are reserved for use by the journal editors, but you can put
9236  them into the \SpecialChar LaTeX
9237  preamble if you feel compelled to do so: 
9238 \family typewriter
9239
9240 \backslash
9241 received
9242 \family default
9243
9244 \family typewriter
9245
9246 \backslash
9247 revised
9248 \family default
9249
9250 \family typewriter
9251
9252 \backslash
9253 accepted
9254 \family default
9255
9256 \family typewriter
9257
9258 \backslash
9259 ccc
9260 \family default
9261
9262 \family typewriter
9263
9264 \backslash
9265 cpright
9266 \family default
9267  (all from 2.1.3)
9268 \end_layout
9269
9270 \begin_layout Itemize
9271 These items may be placed in the \SpecialChar LaTeX
9272  preamble, and are included as blanks in
9273  the template file: 
9274 \family typewriter
9275
9276 \backslash
9277 slugcomment
9278 \family default
9279  (2.1.4), 
9280 \family typewriter
9281
9282 \backslash
9283 shorttitle
9284 \family default
9285  (2.1.5), 
9286 \family typewriter
9287
9288 \backslash
9289 shortauthors
9290 \family default
9291  (2.1.5)
9292 \end_layout
9293
9294 \begin_layout Itemize
9295
9296 \family typewriter
9297
9298 \backslash
9299 email
9300 \family default
9301  (2.3) – can only be used 
9302 \begin_inset Quotes eld
9303 \end_inset
9304
9305 standalone
9306 \begin_inset Quotes erd
9307 \end_inset
9308
9309 , not in the middle of a paragraph.
9310  Use \SpecialChar TeX
9311  code if you need to embed it.
9312 \end_layout
9313
9314 \begin_layout Itemize
9315
9316 \family typewriter
9317
9318 \backslash
9319 and
9320 \family default
9321  (2.3) – will have extra {} after it.
9322  This should not cause an error.
9323 \end_layout
9324
9325 \begin_layout Itemize
9326
9327 \family typewriter
9328
9329 \backslash
9330 notetoeditor
9331 \family default
9332  (2.6) – can only be used 
9333 \begin_inset Quotes eld
9334 \end_inset
9335
9336 standalone
9337 \begin_inset Quotes erd
9338 \end_inset
9339
9340 , not in the middle of a paragraph.
9341  Use \SpecialChar TeX
9342  code if you need to embed it.
9343 \end_layout
9344
9345 \begin_layout Itemize
9346
9347 \family typewriter
9348
9349 \backslash
9350 placetable
9351 \family default
9352  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9353  hand
9354 \end_layout
9355
9356 \begin_layout Itemize
9357
9358 \family typewriter
9359
9360 \backslash
9361 placefigure
9362 \family default
9363  (2.8) – same as for 
9364 \family typewriter
9365
9366 \backslash
9367 placetable
9368 \end_layout
9369
9370 \begin_layout Itemize
9371
9372 \family typewriter
9373
9374 \backslash
9375 acknowledgements
9376 \family default
9377  (2.9) – will have extra {} after it.
9378  This should not cause an error.
9379 \end_layout
9380
9381 \begin_layout Itemize
9382
9383 \family typewriter
9384
9385 \backslash
9386 appendix
9387 \family default
9388  (2.11) – will have extra {} after it.
9389  This should not cause an error.
9390 \end_layout
9391
9392 \begin_layout Itemize
9393
9394 \family typewriter
9395
9396 \backslash
9397 figcaption
9398 \family default
9399  (2.14.2) – you can insert an optional filename argument by placing the cursor
9400  at the beginning of the text and selecting 
9401 \family sans
9402 Insert\SpecialChar menuseparator
9403 Short Title
9404 \family default
9405 .
9406  
9407 \begin_inset Quotes eld
9408 \end_inset
9409
9410 Short Title
9411 \begin_inset Quotes erd
9412 \end_inset
9413
9414  inserts an optional argument of the type needed by 
9415 \family typewriter
9416
9417 \backslash
9418 figcaption
9419 \family default
9420 .
9421  Hopefully it will be renamed someday.
9422 \end_layout
9423
9424 \begin_layout Itemize
9425
9426 \family typewriter
9427
9428 \backslash
9429 objectname
9430 \family default
9431  (2.17.1) – same as 
9432 \family typewriter
9433
9434 \backslash
9435 figcaption
9436 \family default
9437  for the catalog ID optional parameter
9438 \end_layout
9439
9440 \begin_layout Itemize
9441
9442 \family typewriter
9443
9444 \backslash
9445 dataset
9446 \family default
9447  (2.17.1) – same as 
9448 \family typewriter
9449
9450 \backslash
9451 figcaption
9452 \family default
9453  for the catalog ID optional parameter
9454 \end_layout
9455
9456 \begin_layout Subsubsection
9457 Things not implemented, use \SpecialChar TeX
9458  code
9459 \end_layout
9460
9461 \begin_layout Standard
9462
9463 \family typewriter
9464
9465 \backslash
9466 altaffilmark
9467 \family default
9468  (2.3), 
9469 \family typewriter
9470
9471 \backslash
9472 altaffiltext
9473 \family default
9474  (2.3), 
9475 \family typewriter
9476
9477 \backslash
9478 eqnum
9479 \family default
9480  (2.12), 
9481 \family typewriter
9482
9483 \backslash
9484 setcounter{equation}
9485 \family default
9486  (2.12), Journal name abbreviations (2.13.4), 
9487 \family typewriter
9488
9489 \backslash
9490 figurenum
9491 \family default
9492  (2.14.1), 
9493 \family typewriter
9494
9495 \backslash
9496 epsscale
9497 \family default
9498  (2.14.1), 
9499 \family typewriter
9500
9501 \backslash
9502 plotone
9503 \family default
9504  (2.14.1), 
9505 \family typewriter
9506
9507 \backslash
9508 plottwo
9509 \family default
9510  (2.14.1), 
9511 \family typewriter
9512
9513 \backslash
9514 tablenum
9515 \family default
9516  (2.15.4), 
9517 \family typewriter
9518
9519 \backslash
9520 tableline
9521 \family default
9522  (2.15.4, insert it as the first element in the lefthand cell after where
9523  you want it.
9524  Don't use any of \SpecialChar LyX
9525 's rules in the table), 
9526 \family typewriter
9527
9528 \backslash
9529 tablenotemark
9530 \family default
9531  (2.15.5), 
9532 \family typewriter
9533
9534 \backslash
9535 tablenotetext
9536 \family default
9537  (2.15.5), much of Misc (2.17, except 
9538 \family typewriter
9539
9540 \backslash
9541 objectname
9542 \family default
9543
9544 \family typewriter
9545
9546 \backslash
9547 dataset
9548 \family default
9549
9550 \family typewriter
9551
9552 \backslash
9553 url
9554 \family default
9555 , and 
9556 \family typewriter
9557
9558 \backslash
9559 email
9560 \family default
9561 ; see above), 
9562 \family typewriter
9563
9564 \backslash
9565 singlespace
9566 \family default
9567  (3.1), 
9568 \family typewriter
9569
9570 \backslash
9571 doublespace
9572 \family default
9573  (3.1), 
9574 \family typewriter
9575
9576 \backslash
9577 onecolumn
9578 \family default
9579  (3.2), 
9580 \family typewriter
9581
9582 \backslash
9583 twocolumn
9584 \family default
9585  (3.2)
9586 \end_layout
9587
9588 \begin_layout Subsubsection
9589 Things that cannot be implemented
9590 \end_layout
9591
9592 \begin_layout Standard
9593 \SpecialChar ldots
9594  at least in any meaningful sort of way, so I suggest ignoring them.
9595  They are the references environment (2.13.3), and the deluxetable environment
9596  (2.15).
9597  If you really, really need to use deluxetable, I suggest editing it in
9598  a separate file with a text editor, then using 
9599 \family sans
9600 Insert\SpecialChar menuseparator
9601 Child
9602 \begin_inset space ~
9603 \end_inset
9604
9605 Document
9606 \family default
9607  to include it in your \SpecialChar LyX
9608  document.
9609  See the 
9610 \family typewriter
9611 aas_sample.lyx
9612 \family default
9613  file to see an example of this.
9614 \end_layout
9615
9616 \begin_layout Subsection
9617 FAQs, Tips, Tricks, and Other Ruminations
9618 \end_layout
9619
9620 \begin_layout Subsubsection
9621 Getting \SpecialChar LyX
9622  and AAS\SpecialChar TeX
9623  to cooperate
9624 \end_layout
9625
9626 \begin_layout Standard
9627 It can be a bit tricky to get \SpecialChar LyX
9628  to recognize a new layout and document class.
9629  When all else fails, do this:
9630 \end_layout
9631
9632 \begin_layout Enumerate
9633 Make certain that \SpecialChar LaTeX
9634  can find AAS\SpecialChar TeX
9635 .
9636  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9637  distribution into a
9638  directory completely unrelated to \SpecialChar LaTeX
9639  or AAS\SpecialChar TeX
9640  and run \SpecialChar LaTeX
9641  on 
9642 \family typewriter
9643 sample.tex
9644 \family default
9645 .
9646 \end_layout
9647
9648 \begin_layout Enumerate
9649 Make certain that 
9650 \family typewriter
9651 aastex.layout
9652 \family default
9653  appears in \SpecialChar LyX
9654 's 
9655 \family typewriter
9656 layouts
9657 \family default
9658  folder
9659 \end_layout
9660
9661 \begin_layout Enumerate
9662 Rerun 
9663 \family sans
9664 Tools\SpecialChar menuseparator
9665 Reconfigure
9666 \family default
9667  in \SpecialChar LyX
9668 , then restart \SpecialChar LyX
9669 .
9670 \end_layout
9671
9672 \begin_layout Enumerate
9673 Open a regular new file, not from a template.
9674  Does AAS\SpecialChar TeX
9675  appear in the class list in 
9676 \family sans
9677 Document\SpecialChar menuseparator
9678 Settings
9679 \family default
9680 ?
9681 \end_layout
9682
9683 \begin_layout Standard
9684 If you get a warning from an existing AAS\SpecialChar TeX
9685  document about not being able
9686  to find the AAS\SpecialChar TeX
9687  layout or a message about 
9688 \begin_inset Quotes eld
9689 \end_inset
9690
9691 You should not mix title layouts with normal ones
9692 \begin_inset Quotes erd
9693 \end_inset
9694
9695 , things haven't been installed correctly.
9696 \end_layout
9697
9698 \begin_layout Subsubsection
9699 \SpecialChar LaTeX
9700  error processing a table 
9701 \end_layout
9702
9703 \begin_layout Standard
9704 \SpecialChar LyX
9705 , by default, attempts to center the table caption/title.
9706  This seems to produce a bad interaction in AAS\SpecialChar TeX
9707  so you should click somewhere
9708  in the caption/title, then select 
9709 \family sans
9710 Edit\SpecialChar menuseparator
9711 Paragraph
9712 \begin_inset space ~
9713 \end_inset
9714
9715 Settings
9716 \family default
9717 , then set the 
9718 \family sans
9719 Alignment
9720 \family default
9721  to 
9722 \family sans
9723 Block
9724 \family default
9725 .
9726  This took care of it for me.
9727 \end_layout
9728
9729 \begin_layout Subsubsection
9730 References
9731 \end_layout
9732
9733 \begin_layout Standard
9734 A couple of things: 1) I have noticed some funny spacing in the reference
9735  entries in the text.
9736  When you enter the bibliography item data, make sure their is 
9737 \emph on
9738 no
9739 \emph default
9740  space between the last author and the parenthesis setting off the year;
9741  
9742 \emph on
9743 e.
9744 \begin_inset space \thinspace{}
9745 \end_inset
9746
9747 g.
9748 \begin_inset space \space{}
9749 \end_inset
9750
9751
9752 \emph default
9753 type 
9754 \family typewriter
9755 Ressler(1992)
9756 \family default
9757 , not 
9758 \family typewriter
9759 Ressler (1992)
9760 \family default
9761 .
9762  2) Entering the references at all is not obvious.
9763  The easiest thing is to start typing your first reference at the end of
9764  the document, then mark it as type 
9765 \family sans
9766 References
9767 \family default
9768 .
9769  That will put a small gray box in front of what you just typed.
9770  Click on the box to fill in the rest of the information.
9771  For new references, go to the end of an existing reference and press return.
9772  That will create a new line with its own box, etc.
9773 \end_layout
9774
9775 \begin_layout Subsubsection
9776 Including EPS files
9777 \end_layout
9778
9779 \begin_layout Standard
9780 Even though AAS\SpecialChar TeX
9781  provides its own figure commands (
9782 \family typewriter
9783
9784 \backslash
9785 plotone
9786 \family default
9787 , for example), I much prefer \SpecialChar LaTeX
9788 's standard figure commands (with the default
9789  graphicx).
9790  You can insert the 
9791 \family typewriter
9792
9793 \backslash
9794 plotone
9795 \family default
9796 , etc.
9797 \begin_inset space ~
9798 \end_inset
9799
9800 commands as \SpecialChar TeX
9801  code into a Figure Float box if you desire, but I never have
9802  much luck getting the layout right.
9803  With the standard graphics, \SpecialChar LyX
9804  will insert a 
9805 \family typewriter
9806
9807 \backslash
9808 usepackage{graphicx}
9809 \family default
9810  command into the \SpecialChar LaTeX
9811  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9812  way,
9813  interspersing the figures in the text.
9814  I believe ApJ accepts figures exactly this way now; AJ might still use
9815  the 
9816 \begin_inset Quotes eld
9817 \end_inset
9818
9819 stack everything at the end
9820 \begin_inset Quotes erd
9821 \end_inset
9822
9823  technique.
9824 \end_layout
9825
9826 \begin_layout Subsubsection
9827 Things I could have done, but didn't
9828 \end_layout
9829
9830 \begin_layout Standard
9831 There are a few 
9832 \begin_inset Quotes eld
9833 \end_inset
9834
9835 pretty
9836 \begin_inset Quotes erd
9837 \end_inset
9838
9839  things I could have implemented, but chose not to.
9840  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9841  window,
9842  even though it is double-spaced in the paper manuscript.
9843  Also, I chose not to make separate layouts for the preprint and preprint2
9844  styles.
9845  Since I assume you will spend most of your time in the plain manuscript
9846  mode anyway, I decided not to chew up more disk space with this.
9847  
9848 \end_layout
9849
9850 \begin_layout Subsection
9851 Final Caveat
9852 \end_layout
9853
9854 \begin_layout Standard
9855 Your mileage may vary.
9856  I've now had papers published by both ApJ and AJ that have had 98% of the
9857  effort done in \SpecialChar LyX
9858 ; the last 2% was the \SpecialChar LaTeX
9859  post-processing and a few cleanups.
9860  I have had no trouble with the submission process, and I'm sure the journals
9861  were never aware that there might be a difference.
9862  So, go forth and publish!
9863 \end_layout
9864
9865 \begin_layout Section
9866 AMS \SpecialChar LaTeX
9867
9868 \end_layout
9869
9870 \begin_layout Standard
9871 by 
9872 \noun on
9873 David Johnson
9874 \noun default
9875 ; updated by 
9876 \noun on
9877 Richard Heck
9878 \end_layout
9879
9880 \begin_layout Standard
9881 \begin_inset VSpace bigskip
9882 \end_inset
9883
9884
9885 \end_layout
9886
9887 \begin_layout Standard
9888 \noindent
9889 The AMS \SpecialChar LaTeX
9890  layouts are set up to conform to suggested styles for mathematical
9891  papers to be submitted to American Mathematical Society publications.
9892  The layouts are not tailored to a specific journal, but easily can be.
9893  You should refer to the AMS documentation for specific instructions for
9894  each journal (usually it will entail only changing a single line in the
9895  \SpecialChar TeX
9896  output).
9897  That documentation is available on the Web at 
9898 \begin_inset Flex URL
9899 status open
9900
9901 \begin_layout Plain Layout
9902
9903 http://www.ams.org
9904 \end_layout
9905
9906 \end_inset
9907
9908  or by ftp at 
9909 \begin_inset Flex URL
9910 status open
9911
9912 \begin_layout Plain Layout
9913
9914 ftp://ftp.ams.org/pub/tex/amslatex/
9915 \end_layout
9916
9917 \end_inset
9918
9919 .
9920  These layouts are appropriate, and useful, for any mathematical writing.
9921  
9922 \end_layout
9923
9924 \begin_layout Standard
9925 There are two basic AMS \SpecialChar LaTeX
9926  layouts: 
9927 \end_layout
9928
9929 \begin_layout Itemize
9930 amsart: The standard AMS article format.
9931 \end_layout
9932
9933 \begin_layout Itemize
9934 amsbook: the standard AMS book (really, monograph) format.
9935  
9936 \end_layout
9937
9938 \begin_layout Standard
9939 The layouts themselves contain only the minimum necessary to use the AMS
9940  classes.
9941  They do not, in particular, contain any of the `theorem' environments used
9942  for setting theorems, lemmas, and the like.
9943  These are contained, instead, in the 
9944 \begin_inset Flex Code
9945 status collapsed
9946
9947 \begin_layout Plain Layout
9948 Theorems (AMS)
9949 \end_layout
9950
9951 \end_inset
9952
9953  module, which is loaded by default when you select one of the AMS classes.
9954  (It can also be used with other classes and can be removed, if you would
9955  rather use something else.) Less commonly used environments are in the 
9956 \begin_inset Flex Code
9957 status collapsed
9958
9959 \begin_layout Plain Layout
9960 Theorems (AMS-Extended)
9961 \end_layout
9962
9963 \end_inset
9964
9965  module, which must be loaded manually.
9966 \end_layout
9967
9968 \begin_layout Standard
9969 By default, theorems and the like are numbered consecutively throughout
9970  the document, but this may be modified by loading the module 
9971 \begin_inset Flex Code
9972 status collapsed
9973
9974 \begin_layout Plain Layout
9975 Theorems (Order by Section)
9976 \end_layout
9977
9978 \end_inset
9979
9980  or, if you are using 
9981 \begin_inset Flex Code
9982 status collapsed
9983
9984 \begin_layout Plain Layout
9985 book (AMS)
9986 \end_layout
9987
9988 \end_inset
9989
9990 , the module 
9991 \begin_inset Flex Code
9992 status collapsed
9993
9994 \begin_layout Plain Layout
9995 Theorems (Order by Chapter)
9996 \end_layout
9997
9998 \end_inset
9999
10000 .
10001  These will number the results as 
10002 \begin_inset Formula $n.m$
10003 \end_inset
10004
10005 , where the first number refers to the section (or chapter) and the second
10006  refers to the total number of results so far in that section (or chapter).
10007  Many environments are also available unnumbered.
10008  These are indicated by an asterisk at the end.
10009  If you happen to want 
10010 \emph on
10011 only
10012 \emph default
10013  unnumbered results, the module 
10014 \begin_inset Flex Code
10015 status collapsed
10016
10017 \begin_layout Plain Layout
10018 Theorems (Starred)
10019 \end_layout
10020
10021 \end_inset
10022
10023  provides that option.
10024 \end_layout
10025
10026 \begin_layout Standard
10027 Note that these modules do not 
10028 \emph on
10029 have
10030 \emph default
10031  to be used with the AMS classes.
10032  It is perfectly possible to use the 
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 Theorems (AMS)
10038 \end_layout
10039
10040 \end_inset
10041
10042  module, and the others mentioned, with other classes, such as 
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 article
10048 \end_layout
10049
10050 \end_inset
10051
10052
10053 \begin_inset Flex Code
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 report
10058 \end_layout
10059
10060 \end_inset
10061
10062
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 book (KOMA-script)
10068 \end_layout
10069
10070 \end_inset
10071
10072 , and so forth.
10073 \end_layout
10074
10075 \begin_layout Subsection
10076 What these layouts provide
10077 \end_layout
10078
10079 \begin_layout Standard
10080 There is a long list of included environments provided by these layouts.
10081  In AMS-\SpecialChar LaTeX
10082 , there is, in fact, an opportunity to define an unlimited variety
10083  of `theorem' environments.
10084  However, the AMS recommends the environments that are available in \SpecialChar LyX
10085 .
10086  
10087 \end_layout
10088
10089 \begin_layout Standard
10090 The following environments—as well as the standard environments, such as
10091  
10092 \begin_inset Flex Noun
10093 status collapsed
10094
10095 \begin_layout Plain Layout
10096 section
10097 \end_layout
10098
10099 \end_inset
10100
10101
10102 \begin_inset Flex Noun
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 bibliography
10107 \end_layout
10108
10109 \end_inset
10110
10111
10112 \begin_inset Flex Noun
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 title
10117 \end_layout
10118
10119 \end_inset
10120
10121
10122 \begin_inset Flex Noun
10123 status collapsed
10124
10125 \begin_layout Plain Layout
10126 author
10127 \end_layout
10128
10129 \end_inset
10130
10131 , and 
10132 \begin_inset Flex Noun
10133 status collapsed
10134
10135 \begin_layout Plain Layout
10136 date
10137 \end_layout
10138
10139 \end_inset
10140
10141 —are provided by 
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 article (AMS)
10147 \end_layout
10148
10149 \end_inset
10150
10151  and 
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 book (AMS)
10157 \end_layout
10158
10159 \end_inset
10160
10161 :
10162 \end_layout
10163
10164 \begin_layout Description
10165 Address This should be the author's permanent address.
10166 \end_layout
10167
10168 \begin_layout Description
10169 Current
10170 \begin_inset space ~
10171 \end_inset
10172
10173 Address This should be the author's temporary address at the time of submission,
10174  if different from the Address.
10175 \end_layout
10176
10177 \begin_layout Description
10178 Email Author's e-mail address
10179 \end_layout
10180
10181 \begin_layout Description
10182 URL Author's Web address, if desired.
10183 \end_layout
10184
10185 \begin_layout Description
10186 Keywords Key words or phrases used to identify specific topics discussed
10187  in the paper.
10188 \end_layout
10189
10190 \begin_layout Description
10191 Subjectclass These refer to the AMS Subject Classifications, published and
10192  described in 
10193 \emph on
10194 Mathematical Reviews
10195 \emph default
10196 .
10197  These are also available online at the AMS cites listed above.
10198 \end_layout
10199
10200 \begin_layout Description
10201 Thanks
10202 \end_layout
10203
10204 \begin_layout Description
10205 Dedicatory
10206 \end_layout
10207
10208 \begin_layout Description
10209 Translator
10210 \end_layout
10211
10212 \begin_layout Standard
10213 The following environments are provided by both the 
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218 Theorems
10219 \end_layout
10220
10221 \end_inset
10222
10223  and 
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228 Theorems (AMS)
10229 \end_layout
10230
10231 \end_inset
10232
10233  modules, in the latter case in both starred (unnumbered) and unstarred
10234  (numbered) versions.
10235  These same environments are provided only in the starred versions by the
10236  
10237 \begin_inset Flex Code
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 Theorems (Starred)
10242 \end_layout
10243
10244 \end_inset
10245
10246  module:
10247 \end_layout
10248
10249 \begin_layout Theorem
10250 This is typically used for the statements of major results.
10251  
10252 \end_layout
10253
10254 \begin_layout Corollary*
10255 This is used for statements which follow fairly directly from previous statement
10256 s.
10257  Again, these can be major results.
10258  
10259 \end_layout
10260
10261 \begin_layout Lemma
10262 These are smaller results needed to prove other statements.
10263 \end_layout
10264
10265 \begin_layout Proposition
10266 These are less major results which (hopefully) add to the general theory
10267  being discussed.
10268 \end_layout
10269
10270 \begin_layout Conjecture
10271 These are statements provided without justification, which the author does
10272  not know how to prove, but which seem to be true (to the author, at least).
10273 \end_layout
10274
10275 \begin_layout Definition*
10276 Guess what this is for.
10277  The font is different for this environment than for the previous ones.
10278  
10279 \end_layout
10280
10281 \begin_layout Example*
10282 Used for examples illustrating proven results.
10283 \end_layout
10284
10285 \begin_layout Problem
10286 It's not really known what this is for.
10287  You should figure it out.
10288 \end_layout
10289
10290 \begin_layout Exercise*
10291 Write a description for this one.
10292 \end_layout
10293
10294 \begin_layout Remark
10295 This environment is also a type of theorem, usually a lesser sort of observation.
10296 \end_layout
10297
10298 \begin_layout Claim*
10299 Often used in the course of giving a proof of a larger result.
10300 \end_layout
10301
10302 \begin_layout Case
10303 Generally, these are used to break up long arguments, using specific instances
10304  of some condition.
10305  
10306 \end_layout
10307
10308 \begin_layout Case
10309 The numbering scheme for cases is on its own, not together with other numbered
10310  statements.
10311  
10312 \end_layout
10313
10314 \begin_layout Proof
10315 At the end of this environment, a QED symbol (usually a square, but it can
10316  vary with different styles) is placed.
10317  If you want to have other environments within this one—for example, Case
10318  environments—and have the QED symbol appear only after them, then the other
10319  environments need to be nested within the proof environment.
10320  See the section 
10321 \emph on
10322 Nesting Environments
10323 \emph default
10324  of the 
10325 \emph on
10326 User's Guide
10327 \emph default
10328  for information on nesting.
10329 \end_layout
10330
10331 \begin_layout Standard
10332 And these environments are provided by 
10333 \begin_inset Flex Code
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337 Theorems (AMS-Extended)
10338 \end_layout
10339
10340 \end_inset
10341
10342 :
10343 \end_layout
10344
10345 \begin_layout Criterion*
10346 A required condition.
10347 \end_layout
10348
10349 \begin_layout Algorithm*
10350 A general procedure to be used.
10351 \end_layout
10352
10353 \begin_layout Axiom*
10354 This is a property or statement taken as true within the system being discussed.
10355 \end_layout
10356
10357 \begin_layout Condition*
10358 Sometimes used to state a condition assumed within the present context of
10359  discussion.
10360 \end_layout
10361
10362 \begin_layout Note*
10363 Similar to a Remark.
10364 \end_layout
10365
10366 \begin_layout Notation*
10367 Used for the explanation of, yes, notation.
10368 \end_layout
10369
10370 \begin_layout Summary
10371 Do we really need to tell you? 
10372 \end_layout
10373
10374 \begin_layout Acknowledgement*
10375 Acknowledgement.
10376 \end_layout
10377
10378 \begin_layout Conclusion*
10379 Sometimes used at the end of a long train of argument.
10380 \end_layout
10381
10382 \begin_layout Fact
10383 Used in a way similar to Proposition, though perhaps lower on the scale.
10384 \end_layout
10385
10386 \begin_layout Standard
10387 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10388  and AMS fonts
10389  packages.
10390  They need to be available on your system in order to use these environments.
10391 \end_layout
10392
10393 \begin_layout Section
10394 AGU journals (
10395 \family sans
10396 aguplus
10397 \family default
10398 )
10399 \end_layout
10400
10401 \begin_layout Standard
10402 by 
10403 \shape smallcaps
10404 Martin Vermeer
10405 \end_layout
10406
10407 \begin_layout Subsection
10408 Description
10409 \end_layout
10410
10411 \begin_layout Standard
10412 These are the layout files for some of the journals of the American Geophysical
10413  Society.
10414  It is assumed that you have both the AGU's own class files and AGUplus
10415  installed (everything to be found at
10416 \begin_inset Flex URL
10417 status collapsed
10418
10419 \begin_layout Plain Layout
10420
10421 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10422 \end_layout
10423
10424 \end_inset
10425
10426 ).
10427 \end_layout
10428
10429 \begin_layout Subsection
10430 New styles
10431 \end_layout
10432
10433 \begin_layout Standard
10434 Redefined are 
10435 \family sans
10436 Paragraph
10437 \family default
10438
10439 \family sans
10440 Paragraph*
10441 \family default
10442 .
10443  They are still called this in the \SpecialChar LyX
10444  GUI, though their \SpecialChar LaTeX
10445  equivalents in the
10446  AGU classes are 
10447 \family sans
10448 Subsubsubsection
10449 \family default
10450  and 
10451 \family sans
10452 Subsubsubsection*
10453 \family default
10454 .
10455 \end_layout
10456
10457 \begin_layout Standard
10458 Newly defined styles are 
10459 \family sans
10460 Left_Header
10461 \family default
10462
10463 \family sans
10464 Right_Header
10465 \family default
10466
10467 \family sans
10468 Received
10469 \family default
10470
10471 \family sans
10472 Revised
10473 \family default
10474
10475 \family sans
10476 Accepted
10477 \family default
10478
10479 \family sans
10480 CCC
10481 \family default
10482
10483 \family sans
10484 PaperId
10485 \family default
10486
10487 \family sans
10488 AuthorAddr
10489 \family default
10490
10491 \family sans
10492 SlugComment
10493 \family default
10494 .
10495  These are mostly manuscript attributes and defined in the AGU class documentati
10496 on.
10497 \end_layout
10498
10499 \begin_layout Standard
10500 I suspect this is still badly incomplete.
10501 \end_layout
10502
10503 \begin_layout Subsection
10504 New floats
10505 \end_layout
10506
10507 \begin_layout Standard
10508
10509 \family sans
10510 Planotable
10511 \family default
10512  and 
10513 \family sans
10514 Plate
10515 \family default
10516 .
10517  We also have a new 
10518 \family sans
10519 Table_Caption
10520 \family default
10521 .
10522 \end_layout
10523
10524 \begin_layout Subsection
10525 Supported journals
10526 \end_layout
10527
10528 \begin_layout Itemize
10529
10530 \emph on
10531 Journal of Geophysical Research
10532 \emph default
10533
10534 \family typewriter
10535 jgrga.layout
10536 \family default
10537  — Martin Vermeer
10538 \end_layout
10539
10540 \begin_layout Standard
10541 Add your own, it isn't so hard! Look at the 
10542 \family typewriter
10543 jgrga.layout
10544 \family default
10545  example and 
10546 \family typewriter
10547 aguplus.inc
10548 \family default
10549 .
10550 \end_layout
10551
10552 \begin_layout Subsection
10553 Bugs and things to remember
10554 \end_layout
10555
10556 \begin_layout Standard
10557 In order to use the new layouts, you must remember to do the following for
10558  a new document:
10559 \end_layout
10560
10561 \begin_layout Enumerate
10562
10563 \emph on
10564 Turn off babel
10565 \emph default
10566 .
10567  This can be done in the 
10568 \family sans
10569 Layout\SpecialChar menuseparator
10570 Document
10571 \family default
10572  or 
10573 \family sans
10574 Document\SpecialChar menuseparator
10575 Settings
10576 \family default
10577  menu item.
10578  (AGU articles are always in English, right? So 
10579 \emph on
10580 don't
10581 \emph default
10582  choose a language.)
10583 \end_layout
10584
10585 \begin_layout Enumerate
10586 Enter 
10587 \family typewriter
10588 jgrga
10589 \family default
10590  into the document's 
10591 \family sans
10592 Extra Options
10593 \family default
10594  field.
10595  (Yes, this is a bug.)
10596 \end_layout
10597
10598 \begin_layout Enumerate
10599 Make sure you use the 
10600 \family typewriter
10601 agu.bst
10602 \family default
10603  bibliography style, by entering 
10604 \family sans
10605 agu
10606 \family default
10607  into the second field of the Bib\SpecialChar TeX
10608  inset.
10609  None of the standard styles will do.
10610 \end_layout
10611
10612 \begin_layout Section
10613 Broadway
10614 \end_layout
10615
10616 \begin_layout Standard
10617 by 
10618 \shape smallcaps
10619 Garst Reese
10620 \end_layout
10621
10622 \begin_layout Subsection
10623 Introduction
10624 \end_layout
10625
10626 \begin_layout Standard
10627 Broadway is for writing plays.
10628  The format is more decorative than Hollywood, and much less standardized.
10629  This format should be suitable for workshops.
10630 \end_layout
10631
10632 \begin_layout Subsection
10633 Special problems
10634 \end_layout
10635
10636 \begin_layout Standard
10637 The same as in Hollywood.
10638 \end_layout
10639
10640 \begin_layout Subsection
10641 Special features
10642 \end_layout
10643
10644 \begin_layout Standard
10645 Insert the 
10646 \family sans
10647 Speaker
10648 \family default
10649  names as labels then cross-reference the label to insert the name.
10650  The cross-reference dialog will show the current cast of characters.
10651 \end_layout
10652
10653 \begin_layout Subsection
10654 Paper size and Margins
10655 \end_layout
10656
10657 \begin_layout Standard
10658 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10659 \end_layout
10660
10661 \begin_layout Subsection
10662 Environments
10663 \end_layout
10664
10665 \begin_layout Standard
10666 The following environments are available.
10667  You can use broadway.bind to get the bind keys shown at the right.
10668 \end_layout
10669
10670 \begin_layout Itemize
10671
10672 \family sans
10673 Standard
10674 \begin_inset Newline newline
10675 \end_inset
10676
10677
10678 \family default
10679 You should not have to use this, but it is here for anything that does not
10680  fit otherwise.
10681 \end_layout
10682
10683 \begin_layout Itemize
10684
10685 \family sans
10686 Narrative
10687 \begin_inset space \hfill{}
10688 \end_inset
10689
10690 M-z n
10691 \begin_inset Newline newline
10692 \end_inset
10693
10694
10695 \family default
10696 Used to describe stage setting and the action.
10697  First use of speaker names in all CAPs.
10698 \end_layout
10699
10700 \begin_layout Itemize
10701
10702 \family sans
10703 ACT
10704 \begin_inset space \hfill{}
10705 \end_inset
10706
10707 M-z a
10708 \begin_inset Newline newline
10709 \end_inset
10710
10711
10712 \family default
10713 Automatically numbered.
10714  On screen it will be arabic, but will print as Roman.
10715 \end_layout
10716
10717 \begin_layout Itemize
10718
10719 \family sans
10720 ACT*
10721 \begin_inset space \hfill{}
10722 \end_inset
10723
10724 M-z S at
10725 \begin_inset Newline newline
10726 \end_inset
10727
10728
10729 \family default
10730 Subtitle for 
10731 \family sans
10732 ACT.
10733
10734 \family default
10735  It is just centered text.
10736 \end_layout
10737
10738 \begin_layout Itemize
10739
10740 \family sans
10741 SCENE
10742 \begin_inset space \hfill{}
10743 \end_inset
10744
10745 M-z S-S
10746 \begin_inset Newline newline
10747 \end_inset
10748
10749
10750 \family default
10751 Not automatically numbered.
10752  You supply the number.
10753  This is because I couldn't figure out how.
10754 \end_layout
10755
10756 \begin_layout Itemize
10757
10758 \family sans
10759 AT_RISE:
10760 \begin_inset space \hfill{}
10761 \end_inset
10762
10763 M-z S-R
10764 \begin_inset Newline newline
10765 \end_inset
10766
10767
10768 \family default
10769 A special case of Narrative to describe the setting and action as the curtain
10770  rises.
10771 \end_layout
10772
10773 \begin_layout Itemize
10774
10775 \family sans
10776 Speaker
10777 \begin_inset space \hfill{}
10778 \end_inset
10779
10780 M-z s
10781 \begin_inset Newline newline
10782 \end_inset
10783
10784
10785 \family default
10786 The speaker's (actor's) title, centered in all CAPS.
10787 \end_layout
10788
10789 \begin_layout Itemize
10790
10791 \family sans
10792 Parenthetical
10793 \begin_inset space \hfill{}
10794 \end_inset
10795
10796 M-z p
10797 \begin_inset Newline newline
10798 \end_inset
10799
10800
10801 \family default
10802 Instructions to the speaker.
10803  The parentheses are automatically inserted.
10804  The ( will appear on screen, but both will be in the printed play.
10805  This environment is only used within 
10806 \family sans
10807 Dialogue
10808 \family default
10809 .
10810 \end_layout
10811
10812 \begin_layout Itemize
10813
10814 \family sans
10815 Dialogue
10816 \begin_inset space \hfill{}
10817 \end_inset
10818
10819 M-z d
10820 \begin_inset Newline newline
10821 \end_inset
10822
10823
10824 \family default
10825 What the Speaker says.
10826 \end_layout
10827
10828 \begin_layout Itemize
10829
10830 \family sans
10831 CURTAIN
10832 \begin_inset space \hfill{}
10833 \end_inset
10834
10835 M-z S-C
10836 \begin_inset Newline newline
10837 \end_inset
10838
10839
10840 \family default
10841 The curtain comes down.
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family sans
10847 Title
10848 \begin_inset space \hfill{}
10849 \end_inset
10850
10851 M-z S-T
10852 \end_layout
10853
10854 \begin_layout Itemize
10855
10856 \family sans
10857 Author
10858 \begin_inset space \hfill{}
10859 \end_inset
10860
10861 M-z S-A
10862 \end_layout
10863
10864 \begin_layout Itemize
10865
10866 \family sans
10867 Right_Address
10868 \begin_inset space \hfill{}
10869 \end_inset
10870
10871 M-z r
10872 \end_layout
10873
10874 \begin_layout Standard
10875 Hello there.
10876 \end_layout
10877
10878 \begin_layout Section
10879 Dinbrief
10880 \end_layout
10881
10882 \begin_layout Standard
10883 The document class 
10884 \family sans
10885 dinbrief
10886 \family default
10887  can be used to type letters according to German conventions.
10888  A template file is included in 
10889 \family typewriter
10890 .../lyx/share/templates
10891 \family default
10892  for you to use as a starting point.
10893 \end_layout
10894
10895 \begin_layout Section
10896 EGS journals (
10897 \family sans
10898 egs
10899 \family default
10900 )
10901 \end_layout
10902
10903 \begin_layout Standard
10904 by 
10905 \shape smallcaps
10906 Martin Vermeer
10907 \end_layout
10908
10909 \begin_layout Subsection
10910 Description
10911 \end_layout
10912
10913 \begin_layout Standard
10914 This is the layout file for the European Geophysical Society journals.
10915  The needed 
10916 \family typewriter
10917 egs.cls
10918 \family default
10919  can be downloaded from the web site of the EGS under 
10920 \begin_inset Flex URL
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924
10925 www.copernicus.org
10926 \end_layout
10927
10928 \end_inset
10929
10930 .
10931 \end_layout
10932
10933 \begin_layout Subsection
10934 New styles
10935 \end_layout
10936
10937 \begin_layout Standard
10938
10939 \family sans
10940 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10941  Accepted
10942 \family default
10943
10944 \family sans
10945 Offsets
10946 \family default
10947 .
10948  The current layout file is unfortunately very unmodular and would benefit
10949  from using the various 
10950 \family typewriter
10951 std*.inc
10952 \family default
10953  file inclusions.
10954 \end_layout
10955
10956 \begin_layout Section
10957 Elsevier Journals
10958 \end_layout
10959
10960 \begin_layout Standard
10961 See the \SpecialChar LyX
10962  template file 
10963 \family typewriter
10964 elsarticle.lyx
10965 \family default
10966 .
10967  It contains all infos you need.
10968 \end_layout
10969
10970 \begin_layout Section
10971 Foils [aka 
10972 \family sans
10973 Foil\SpecialChar TeX
10974
10975 \family default
10976 ]
10977 \begin_inset CommandInset label
10978 LatexCommand label
10979 name "sec:foiltex"
10980
10981 \end_inset
10982
10983
10984 \end_layout
10985
10986 \begin_layout Standard
10987 by 
10988 \noun on
10989 Allan Rae
10990 \end_layout
10991
10992 \begin_layout Subsection
10993 Introduction
10994 \end_layout
10995
10996 \begin_layout Standard
10997 This section describes how to use \SpecialChar LyX
10998  to make slides for overhead projectors.
10999  There are two document classes that can do this: the default slides class
11000  and the 
11001 \family sans
11002 Foil\SpecialChar TeX
11003
11004 \family default
11005  slides class.
11006  This section documents the latter.
11007 \end_layout
11008
11009 \begin_layout Standard
11010 I'm going to say this again, nice and clear, so that there's no misunderstanding
11011 :
11012 \end_layout
11013
11014 \begin_layout Standard
11015 \begin_inset VSpace bigskip
11016 \end_inset
11017
11018
11019 \end_layout
11020
11021 \begin_layout Standard
11022 \align center
11023
11024 \size large
11025 This section documents the class 
11026 \begin_inset Quotes eld
11027 \end_inset
11028
11029
11030 \family sans
11031 FoilTeX
11032 \family default
11033
11034 \begin_inset Quotes erd
11035 \end_inset
11036
11037  
11038 \emph on
11039 only.
11040 \end_layout
11041
11042 \begin_layout Standard
11043 \begin_inset VSpace bigskip
11044 \end_inset
11045
11046
11047 \end_layout
11048
11049 \begin_layout Standard
11050 If you're looking for the documentation for 
11051 \begin_inset Quotes eld
11052 \end_inset
11053
11054
11055 \family sans
11056 slides (default)
11057 \family default
11058
11059 \begin_inset Quotes erd
11060 \end_inset
11061
11062 , check out section
11063 \begin_inset space ~
11064 \end_inset
11065
11066
11067 \begin_inset CommandInset ref
11068 LatexCommand ref
11069 reference "sec:slitex"
11070
11071 \end_inset
11072
11073 .
11074  If your machine doesn't have the 
11075 \family sans
11076 foils
11077 \family default
11078  class 
11079 \family sans
11080 FoilTeX
11081 \family default
11082  installed, you'll probably have to use the default 
11083 \family sans
11084 slides
11085 \family default
11086  class, which isn't quite as good as 
11087 \family sans
11088 foils.
11089 \end_layout
11090
11091 \begin_layout Standard
11092 The 
11093 \family sans
11094 foils
11095 \family default
11096  class is designed for use with version
11097 \begin_inset space ~
11098 \end_inset
11099
11100 2.1 of the 
11101 \family sans
11102 foils.cls
11103 \family default
11104  \SpecialChar LaTeX
11105  class file which is now an integral part of \SpecialChar LaTeX2e
11106 .
11107 \end_layout
11108
11109 \begin_layout Subsection
11110 Getting Started
11111 \end_layout
11112
11113 \begin_layout Standard
11114 Obviously, to use this document class, you need to select 
11115 \family sans
11116 FoilTeX
11117 \family default
11118  from the 
11119 \family sans
11120 Class
11121 \family default
11122  entry in the 
11123 \family sans
11124 Document
11125 \begin_inset space ~
11126 \end_inset
11127
11128 Layout
11129 \family default
11130  dialog.
11131  There are some settings in the 
11132 \family sans
11133 Document
11134 \begin_inset space ~
11135 \end_inset
11136
11137 Layout
11138 \family default
11139  dialog that you should know about that are specific to this class:
11140 \end_layout
11141
11142 \begin_layout Itemize
11143 Don't change the options 
11144 \family sans
11145 Sides
11146 \family default
11147  and 
11148 \family sans
11149 Columns
11150 \family default
11151  on the 
11152 \family sans
11153 Document
11154 \begin_inset space ~
11155 \end_inset
11156
11157 Layout
11158 \family default
11159  dialog.
11160  They're ignored by the 
11161 \family sans
11162 foils
11163 \family default
11164  class.
11165 \end_layout
11166
11167 \begin_layout Itemize
11168 The default font size is 20
11169 \begin_inset space \thinspace{}
11170 \end_inset
11171
11172 pt with the other options being 17
11173 \begin_inset space \thinspace{}
11174 \end_inset
11175
11176 pt, 25
11177 \begin_inset space \thinspace{}
11178 \end_inset
11179
11180 pt and 30
11181 \begin_inset space \thinspace{}
11182 \end_inset
11183
11184 pt.
11185 \end_layout
11186
11187 \begin_layout Itemize
11188 The default font is 
11189 \family sans
11190 sans
11191 \family default
11192  
11193 \family sans
11194 serif
11195 \family default
11196  but all math equations are still typeset in the usual roman font.
11197 \end_layout
11198
11199 \begin_layout Itemize
11200
11201 \family sans
11202 Foil\SpecialChar TeX
11203
11204 \family default
11205  supports A4 and Letter paper sizes as well as a special size for working
11206  with 35
11207 \begin_inset space \thinspace{}
11208 \end_inset
11209
11210 mm slides.
11211  It doesn't support A5, B5, legal or executive paper sizes.
11212 \end_layout
11213
11214 \begin_layout Itemize
11215 Don't bother changing the 
11216 \family sans
11217 Float Placement
11218 \family default
11219  settings because they are ignored anyway.
11220  All floats appear where they are defined in the text.
11221 \end_layout
11222
11223 \begin_layout Itemize
11224 The 
11225 \family sans
11226 Pagestyle
11227 \family default
11228  setting behaves a bit differently for this class.
11229  
11230 \family sans
11231 Foil\SpecialChar TeX
11232
11233 \family default
11234  provides extensive footer and header capabilities including a user-defined
11235  logo.
11236  See section
11237 \begin_inset space ~
11238 \end_inset
11239
11240
11241 \begin_inset CommandInset ref
11242 LatexCommand ref
11243 reference "sec:foilfoot"
11244
11245 \end_inset
11246
11247  for more details.
11248  The title page is treated differently to all other pages in the document
11249  and is 
11250 \emph on
11251 always
11252 \emph default
11253  unnumbered and 
11254 \emph on
11255 always
11256 \emph default
11257  has the logo centered at the bottom of the page (if one is defined).
11258  The possible page style choices and what they do are as follows:
11259 \end_layout
11260
11261 \begin_deeper
11262 \begin_layout Labeling
11263 \labelwidthstring MMMMMMM
11264
11265 \family sans
11266 \series bold
11267 empty
11268 \family default
11269 \series default
11270  The final output contains no page numbers, or other headers or footers
11271  (except footnotes of course).
11272  
11273 \end_layout
11274
11275 \begin_layout Labeling
11276 \labelwidthstring MMMMMMM
11277
11278 \family sans
11279 \series bold
11280 plain
11281 \family default
11282 \series default
11283  The final output contains page numbers centered at the bottom of the page.
11284  No other headings or footers (other than footnotes).
11285 \end_layout
11286
11287 \begin_layout Labeling
11288 \labelwidthstring MMMMMMM
11289
11290 \series bold
11291 foilheadings
11292 \series default
11293  Page numbers in lower right corner.
11294  Additional headers and footers are also shown.
11295  This is also the default.
11296 \end_layout
11297
11298 \begin_layout Labeling
11299 \labelwidthstring MMMMMMM
11300
11301 \series bold
11302 fancy
11303 \series default
11304  Gives you access to the 
11305 \family sans
11306 fancyheadings
11307 \family default
11308  package although its use with 
11309 \family sans
11310 Foil\SpecialChar TeX
11311
11312 \family default
11313  is discouraged by the writer of the 
11314 \family sans
11315 Foil\SpecialChar TeX
11316
11317 \family default
11318  package because of some potential page layout clashes.
11319 \end_layout
11320
11321 \end_deeper
11322 \begin_layout Subsubsection
11323 Extra Options
11324 \end_layout
11325
11326 \begin_layout Standard
11327 The following options may be used in the extra class options in the 
11328 \family sans
11329 Document\SpecialChar menuseparator
11330 Settings
11331 \family default
11332  dialog.
11333 \end_layout
11334
11335 \begin_layout Labeling
11336 \labelwidthstring MMMMMMx
11337
11338 \series bold
11339 35mmSlide
11340 \series default
11341  This sets up the page layout for 7.33
11342 \begin_inset space \thinspace{}
11343 \end_inset
11344
11345 in by 11
11346 \begin_inset space \thinspace{}
11347 \end_inset
11348
11349 in paper, which is about the same aspect ratio as a 35
11350 \begin_inset space \thinspace{}
11351 \end_inset
11352
11353 mm slide, making it a bit easier to work with this medium.
11354 \end_layout
11355
11356 \begin_layout Labeling
11357 \labelwidthstring MMMMMMx
11358
11359 \series bold
11360 headrule
11361 \series default
11362  Places a rule across the page below the header on every page except the
11363  title page.
11364 \end_layout
11365
11366 \begin_layout Labeling
11367 \labelwidthstring MMMMMMx
11368
11369 \series bold
11370 footrule
11371 \series default
11372  Places a rule across the page above the footer on every page except the
11373  title page.
11374 \end_layout
11375
11376 \begin_layout Labeling
11377 \labelwidthstring MMMMMMx
11378
11379 \series bold
11380 dvips
11381 \series default
11382  This is automatically set each time you create a new 
11383 \family sans
11384 foils
11385 \family default
11386  document.
11387  This option tells 
11388 \family sans
11389 Foil\SpecialChar TeX
11390
11391 \family default
11392  to use the dvips driver to rotate those pages that are set as landscape
11393  foils.
11394 \end_layout
11395
11396 \begin_layout Labeling
11397 \labelwidthstring MMMMMMx
11398
11399 \series bold
11400 landscape
11401 \series default
11402  Simply changes the page dimensions to those of a landscape page but doesn't
11403  do any rotation.
11404  Thus if you use this option you need to use an external program to rotate
11405  each page or feed your paper through your printer as landscape.
11406  Note that this option effectively reverses the roles of the 
11407 \family sans
11408 Foilhead
11409 \family default
11410  and 
11411 \family sans
11412 Rotatefoilhead
11413 \family default
11414  environments (don't worry these are described in the next section).
11415 \end_layout
11416
11417 \begin_layout Labeling
11418 \labelwidthstring MMMMMMx
11419
11420 \series bold
11421 leqno
11422 \series default
11423  Equation numbers on the left.
11424 \end_layout
11425
11426 \begin_layout Labeling
11427 \labelwidthstring MMMMMMx
11428
11429 \series bold
11430 fleqn
11431 \series default
11432  Flush-left equations.
11433 \end_layout
11434
11435 \begin_layout Subsection
11436 Supported Environments
11437 \end_layout
11438
11439 \begin_layout Standard
11440 Most of the environments commonly supported in other classes are also supported
11441  by the 
11442 \family sans
11443 foils
11444 \family default
11445  class.
11446  There are several additional environments provided by 
11447 \family sans
11448 Foil\SpecialChar TeX
11449
11450 \family default
11451  as well as a couple added by \SpecialChar LyX
11452 .
11453  The following environments are shared with other classes:
11454 \end_layout
11455
11456 \begin_layout Standard
11457 \begin_inset Flex Multiple Columns
11458 status open
11459
11460 \begin_layout Itemize
11461
11462 \family sans
11463 Standard
11464 \end_layout
11465
11466 \begin_layout Itemize
11467
11468 \family sans
11469 Itemize
11470 \end_layout
11471
11472 \begin_layout Itemize
11473
11474 \family sans
11475 Enumerate
11476 \end_layout
11477
11478 \begin_layout Itemize
11479
11480 \family sans
11481 Description
11482 \end_layout
11483
11484 \begin_layout Itemize
11485
11486 \family sans
11487 List
11488 \end_layout
11489
11490 \begin_layout Itemize
11491
11492 \family sans
11493 \SpecialChar LyX
11494 -Code
11495 \end_layout
11496
11497 \begin_layout Itemize
11498
11499 \family sans
11500 Verse
11501 \end_layout
11502
11503 \begin_layout Itemize
11504
11505 \family sans
11506 Quote
11507 \end_layout
11508
11509 \begin_layout Itemize
11510
11511 \family sans
11512 Quotation
11513 \end_layout
11514
11515 \begin_layout Itemize
11516
11517 \family sans
11518 Title
11519 \end_layout
11520
11521 \begin_layout Itemize
11522
11523 \family sans
11524 Author
11525 \end_layout
11526
11527 \begin_layout Itemize
11528
11529 \family sans
11530 Date
11531 \end_layout
11532
11533 \begin_layout Itemize
11534
11535 \family sans
11536 Abstract
11537 \end_layout
11538
11539 \begin_layout Itemize
11540
11541 \family sans
11542 Bibliography
11543 \end_layout
11544
11545 \begin_layout Itemize
11546
11547 \family sans
11548 Address
11549 \end_layout
11550
11551 \begin_layout Itemize
11552
11553 \family sans
11554 RightAddress
11555 \end_layout
11556
11557 \begin_layout Itemize
11558
11559 \family sans
11560 Caption
11561 \end_layout
11562
11563 \begin_layout Itemize
11564
11565 \family sans
11566 Comment
11567 \end_layout
11568
11569 \end_inset
11570
11571
11572 \end_layout
11573
11574 \begin_layout Standard
11575 That is, all the major environments apart from the sectioning environments.
11576  Since foils are essentially self-contained sections, with a title and body,
11577  
11578 \family sans
11579 Foil\SpecialChar TeX
11580
11581 \family default
11582  provides specific commands for starting new foils and these are:
11583 \end_layout
11584
11585 \begin_layout Itemize
11586
11587 \family sans
11588 Foilhead
11589 \end_layout
11590
11591 \begin_layout Itemize
11592
11593 \family sans
11594 Rotatefoilhead
11595 \end_layout
11596
11597 \begin_layout Standard
11598 \SpecialChar LyX
11599  also provides slightly modified versions of these two environments called:
11600 \end_layout
11601
11602 \begin_layout Itemize
11603
11604 \family sans
11605 ShortFoilhead
11606 \end_layout
11607
11608 \begin_layout Itemize
11609
11610 \family sans
11611 ShortRotatefoilhead
11612 \end_layout
11613
11614 \begin_layout Standard
11615 and the differences will be explained in the next section.
11616 \end_layout
11617
11618 \begin_layout Standard
11619 Since foils are often used in presenting ideas or new theorems and such
11620  
11621 \family sans
11622 Foil\SpecialChar TeX
11623
11624 \family default
11625  also provides a comprehensive box of goodies for presenting them:
11626 \end_layout
11627
11628 \begin_layout Standard
11629 \begin_inset Flex Multiple Columns
11630 status open
11631
11632 \begin_layout Itemize
11633
11634 \family sans
11635 Theorem
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \family sans
11641 Lemma
11642 \end_layout
11643
11644 \begin_layout Itemize
11645
11646 \family sans
11647 Corollary
11648 \end_layout
11649
11650 \begin_layout Itemize
11651
11652 \family sans
11653 Proposition
11654 \end_layout
11655
11656 \begin_layout Itemize
11657
11658 \family sans
11659 Definition
11660 \end_layout
11661
11662 \begin_layout Itemize
11663
11664 \family sans
11665 Proof
11666 \end_layout
11667
11668 \begin_layout Itemize
11669
11670 \family sans
11671 Theorem*
11672 \end_layout
11673
11674 \begin_layout Itemize
11675
11676 \family sans
11677 Lemma*
11678 \end_layout
11679
11680 \begin_layout Itemize
11681
11682 \family sans
11683 Corollary*
11684 \end_layout
11685
11686 \begin_layout Itemize
11687
11688 \family sans
11689 Proposition*
11690 \end_layout
11691
11692 \begin_layout Itemize
11693
11694 \family sans
11695 Definition*
11696 \end_layout
11697
11698 \end_inset
11699
11700
11701 \end_layout
11702
11703 \begin_layout Standard
11704 The starred versions are unnumbered while the unstarred versions are numbered.
11705  There are also two list environments added by \SpecialChar LyX
11706  and these are:
11707 \end_layout
11708
11709 \begin_layout Itemize
11710
11711 \family sans
11712 TickList
11713 \end_layout
11714
11715 \begin_layout Itemize
11716
11717 \family sans
11718 CrossList
11719 \end_layout
11720
11721 \begin_layout Standard
11722
11723 \family sans
11724 Foil\SpecialChar TeX
11725
11726 \family default
11727  provides some powerful header and footer capabilities that are best set
11728  in the preamble although they may be set at any point in a document.
11729  If you want to change these settings in your document the best place to
11730  do so is at the very top of a foil, i.
11731 \begin_inset space \thinspace{}
11732 \end_inset
11733
11734 e.
11735 \emph on
11736
11737 \begin_inset space \space{}
11738 \end_inset
11739
11740
11741 \emph default
11742 straight after the foilhead.
11743 \end_layout
11744
11745 \begin_layout Standard
11746 For this purpose, the following command styles are provided [
11747 \shape smallcaps
11748 Martin Vermeer
11749 \shape default
11750 ]:
11751 \end_layout
11752
11753 \begin_layout Standard
11754 \begin_inset Flex Multiple Columns
11755 status open
11756
11757 \begin_layout Itemize
11758
11759 \family sans
11760 My
11761 \begin_inset space ~
11762 \end_inset
11763
11764 Logo
11765 \end_layout
11766
11767 \begin_layout Itemize
11768
11769 \family sans
11770 Restriction
11771 \end_layout
11772
11773 \begin_layout Itemize
11774
11775 \family sans
11776 Right
11777 \begin_inset space ~
11778 \end_inset
11779
11780 Footer
11781 \end_layout
11782
11783 \begin_layout Itemize
11784
11785 \family sans
11786 Right
11787 \begin_inset space ~
11788 \end_inset
11789
11790 Header
11791 \end_layout
11792
11793 \begin_layout Itemize
11794
11795 \family sans
11796 Left
11797 \begin_inset space ~
11798 \end_inset
11799
11800 Header
11801 \end_layout
11802
11803 \begin_deeper
11804 \begin_layout Plain Layout
11805 \begin_inset space ~
11806 \end_inset
11807
11808
11809 \end_layout
11810
11811 \end_deeper
11812 \end_inset
11813
11814
11815 \end_layout
11816
11817 \begin_layout Standard
11818 There are also a few commands provided by 
11819 \family sans
11820 Foil\SpecialChar TeX
11821
11822 \family default
11823  that aren't directly supported by \SpecialChar LyX
11824  but I'll tell you what they do and how
11825  to use them in section
11826 \begin_inset space ~
11827 \end_inset
11828
11829
11830 \begin_inset CommandInset ref
11831 LatexCommand ref
11832 reference "sec:unsuppfoils"
11833
11834 \end_inset
11835
11836 .
11837 \end_layout
11838
11839 \begin_layout Subsection
11840 Building a Set of Foils
11841 \end_layout
11842
11843 \begin_layout Standard
11844 This section will give a simple introduction to using the different environments
11845  to build a set of foils.
11846  If you want to see an example set of foils, take a look at the 
11847 \family typewriter
11848 Foils.lyx
11849 \family default
11850  file you find in \SpecialChar LyX
11851 's 
11852 \family typewriter
11853 examples
11854 \family default
11855  folder.
11856 \end_layout
11857
11858 \begin_layout Subsubsection
11859 Give It a Title Page
11860 \end_layout
11861
11862 \begin_layout Standard
11863 Unlike other classes that provide 
11864 \family sans
11865 Title
11866 \family default
11867
11868 \family sans
11869 Author
11870 \family default
11871
11872 \family sans
11873 Date
11874 \family default
11875  and 
11876 \family sans
11877 Abstract
11878 \family default
11879  environments, 
11880 \family sans
11881 foils
11882 \family default
11883  creates the title on a page of its own.
11884  If you leave out the 
11885 \family sans
11886 Date
11887 \family default
11888  environment \SpecialChar LaTeX
11889  will substitute the current date (every time you regenerate
11890  the output).
11891 \end_layout
11892
11893 \begin_layout Subsubsection
11894 Start a New Foil
11895 \end_layout
11896
11897 \begin_layout Standard
11898 As I mentioned earlier, there are four ways of starting a new foil.
11899  For portrait foils you should use 
11900 \family sans
11901 Foilhead
11902 \family default
11903  or 
11904 \family sans
11905 ShortFoilhead.
11906
11907 \family default
11908  The difference between these two environments is the amount of space between
11909  the title of the foil (the foilhead) and the body of the foil.
11910 \end_layout
11911
11912 \begin_layout Standard
11913 Landscape foils are generated using the 
11914 \family sans
11915 Rotatefoilhead
11916 \family default
11917  and 
11918 \family sans
11919 ShortRotatefoilhead
11920 \family default
11921  environments.
11922  Again the only difference is the spacing between foilhead and body.
11923  Both of the short versions have 0.5
11924 \begin_inset space ~
11925 \end_inset
11926
11927 inches less separation between the foilhead and the body.
11928  
11929 \end_layout
11930
11931 \begin_layout Standard
11932 One problem with the support for landscape foils is the requirement that
11933  you have to use the 
11934 \family typewriter
11935 dvips
11936 \family default
11937  driver to generate the PostScript output otherwise the foils won't be rotated.
11938  It is possible to get landscape foils even if you haven't got the 
11939 \family typewriter
11940 dvips
11941 \family default
11942  driver provided you can feed your foils sideways through your printer ;-)
11943 \end_layout
11944
11945 \begin_layout Subsubsection
11946 Theorems, Lemmas, Proofs and more
11947 \end_layout
11948
11949 \begin_layout Standard
11950 Due to a small bug in \SpecialChar LyX
11951  you can't have two of the same type of these environments
11952  directly following each other.
11953  They must be separated by something.
11954  If you try, you will just be extending the previous environment as if you
11955  had merged the two environments together.
11956  So, how do you get around this problem? The simplest option is to insert
11957  some text between the two environments or add a 
11958 \family sans
11959 \SpecialChar LaTeX
11960
11961 \family default
11962  environment between the two with just a 
11963 \begin_inset Quotes eld
11964 \end_inset
11965
11966
11967 \family typewriter
11968 %
11969 \family default
11970
11971 \begin_inset Quotes erd
11972 \end_inset
11973
11974  in it.
11975  This will force \SpecialChar LyX
11976  to produce two separate environments and hence the correct
11977  \SpecialChar LaTeX
11978  output.
11979  An example is provided in the example file included with the \SpecialChar LyX
11980  distribution.
11981  Remember, this problem only occurs if you are trying to place two of the
11982  same type of theorem-like environments one directly after the other.
11983 \end_layout
11984
11985 \begin_layout Subsubsection
11986 Lists
11987 \end_layout
11988
11989 \begin_layout Standard
11990 You get all the commonly supported list styles found in other classes as
11991  well as two new ones.
11992  I'll only describe the new ones here.
11993  If you want to find out more about the other list environments check out
11994  the 
11995 \emph on
11996 User's Guide.
11997
11998 \emph default
11999  If you intend to use itemized lists you might also want to read about the
12000  
12001 \family sans
12002 Itemize
12003 \begin_inset space ~
12004 \end_inset
12005
12006 Bullet
12007 \begin_inset space ~
12008 \end_inset
12009
12010 Selection
12011 \family default
12012  dialog described above in section
12013 \begin_inset space ~
12014 \end_inset
12015
12016
12017 \begin_inset CommandInset ref
12018 LatexCommand ref
12019 reference "sec:bullet"
12020
12021 \end_inset
12022
12023 .
12024 \end_layout
12025
12026 \begin_layout Standard
12027 The two new list styles, 
12028 \family sans
12029 TickList
12030 \family default
12031  and 
12032 \family sans
12033 CrossList
12034 \family default
12035 , are designed to make it easier for you to create lists of do's and don'ts
12036  or right and wrong by providing dedicated environments that use a tick
12037  or a cross as the label of the list.
12038  These lists are in fact dedicated variants of the 
12039 \family sans
12040 Itemize
12041 \family default
12042  environment.
12043  They do however require that you have the 
12044 \family typewriter
12045 psnfss
12046 \family default
12047  packages installed.
12048 \end_layout
12049
12050 \begin_layout Subsubsection
12051 Figures and Tables
12052 \end_layout
12053
12054 \begin_layout Standard
12055
12056 \family sans
12057 Foil\SpecialChar TeX
12058
12059 \family default
12060  redefines the floating tables and figures so that they appear exactly where
12061  they are in the text rather than pushing them to the top of the page or
12062  to some user specified location.
12063  In fact if you change the float placement settings they are simply ignored.
12064 \end_layout
12065
12066 \begin_layout Subsubsection
12067 Page Headers and Footers
12068 \begin_inset CommandInset label
12069 LatexCommand label
12070 name "sec:foilfoot"
12071
12072 \end_inset
12073
12074
12075 \end_layout
12076
12077 \begin_layout Standard
12078
12079 \family sans
12080 My
12081 \begin_inset space ~
12082 \end_inset
12083
12084 Logo
12085 \family default
12086  and 
12087 \family sans
12088 Restriction
12089 \family default
12090  are two commands used to control the left-footer text string.
12091  The first is meant to allow you to include a graphic logo on your foils
12092  and defaults to 
12093 \begin_inset Quotes eld
12094 \end_inset
12095
12096 -Typeset by 
12097 \family sans
12098 Foil\SpecialChar TeX
12099
12100 \family default
12101 -
12102 \begin_inset Quotes erd
12103 \end_inset
12104
12105 .
12106  While the second is meant to provide a classification for the audience,
12107  
12108 \emph on
12109 e.
12110 \begin_inset space \thinspace{}
12111 \end_inset
12112
12113 g.
12114 \emph default
12115
12116 \begin_inset space \space{}
12117 \end_inset
12118
12119 Confidential.
12120  It is empty by default.
12121 \end_layout
12122
12123 \begin_layout Standard
12124 The remaining page corners can be filled by 
12125 \family sans
12126 Right
12127 \begin_inset space ~
12128 \end_inset
12129
12130 Footer
12131 \family default
12132  (which defaults to page numbers), 
12133 \family sans
12134 Right
12135 \begin_inset space ~
12136 \end_inset
12137
12138 Header
12139 \family default
12140  (top right) and 
12141 \family sans
12142 Left
12143 \begin_inset space ~
12144 \end_inset
12145
12146 Header
12147 \family default
12148  (top left).
12149 \end_layout
12150
12151 \begin_layout Subsection
12152 Unsupported 
12153 \family sans
12154 Foil\SpecialChar TeX
12155
12156 \family default
12157  Goodies
12158 \begin_inset CommandInset label
12159 LatexCommand label
12160 name "sec:unsuppfoils"
12161
12162 \end_inset
12163
12164
12165 \end_layout
12166
12167 \begin_layout Standard
12168 All the commands mentioned below need to be set in a 
12169 \family sans
12170 \SpecialChar LaTeX
12171
12172 \family default
12173  environment or as 
12174 \family sans
12175 \SpecialChar TeX
12176
12177 \family default
12178  within another environment.
12179 \end_layout
12180
12181 \begin_layout Subsubsection
12182 Lengths
12183 \end_layout
12184
12185 \begin_layout Standard
12186 All lengths are adjusted using the 
12187 \family typewriter
12188
12189 \backslash
12190 setlength{
12191 \family default
12192 \emph on
12193 lengthname
12194 \family typewriter
12195 \emph default
12196 }{
12197 \family default
12198 \emph on
12199 newlength
12200 \family typewriter
12201 \emph default
12202 }
12203 \family default
12204  command.
12205  Where 
12206 \emph on
12207 lengthname
12208 \emph default
12209  should be replaced by the name given to the length you want to change and
12210  
12211 \emph on
12212 newlength
12213 \emph default
12214  is the length value.
12215  All lengths should be specified in units of length such as inches (
12216 \family typewriter
12217 in
12218 \family default
12219 ), millimeters (
12220 \family typewriter
12221 mm
12222 \family default
12223 ) or points (
12224 \family typewriter
12225 pt
12226 \family default
12227 ) or relative to some document or font-based length such as 
12228 \family typewriter
12229
12230 \backslash
12231 textwidth
12232 \family default
12233 .
12234  
12235 \end_layout
12236
12237 \begin_layout Standard
12238 It's possible to change the spacing between a foilhead and the body of the
12239  foil by adjusting the length specified by 
12240 \family typewriter
12241
12242 \backslash
12243 foilheadskip
12244 \family default
12245 .
12246  For example, to make 
12247 \emph on
12248 all
12249 \emph default
12250  foilheads 0.5
12251 \begin_inset space \space{}
12252 \end_inset
12253
12254 in closer to their bodies put the following in the preamble: 
12255 \family typewriter
12256
12257 \backslash
12258 setlength{
12259 \backslash
12260 foilheadskip}{-0.5in}
12261 \end_layout
12262
12263 \begin_layout Standard
12264 The spacings around floats can be adjusted by setting these lengths:
12265 \end_layout
12266
12267 \begin_layout Labeling
12268 \labelwidthstring MMMMMMMMMMM
12269
12270 \family typewriter
12271
12272 \backslash
12273 abovefloatskip
12274 \family default
12275  Separation between the text and the top of the float
12276 \end_layout
12277
12278 \begin_layout Labeling
12279 \labelwidthstring MMMMMMMMMMM
12280
12281 \family typewriter
12282
12283 \backslash
12284 abovecaptionskip
12285 \family default
12286  Separation between the float and the caption
12287 \end_layout
12288
12289 \begin_layout Labeling
12290 \labelwidthstring MMMMMMMMMMM
12291
12292 \family typewriter
12293
12294 \backslash
12295 belowcaptionskip
12296 \family default
12297  Separation between the caption and the following text
12298 \end_layout
12299
12300 \begin_layout Labeling
12301 \labelwidthstring MMMMMMMMMMM
12302
12303 \family typewriter
12304
12305 \backslash
12306 captionwidth
12307 \family default
12308  You can make the captions narrower than the surrounding text by adjusting
12309  this length.
12310  Best done relative to 
12311 \family typewriter
12312
12313 \backslash
12314 textwidth
12315 \family default
12316 .
12317 \end_layout
12318
12319 \begin_layout Standard
12320 There are also several title page related lengths that you may find useful
12321  if you have a long title or several authors:
12322 \end_layout
12323
12324 \begin_layout Labeling
12325 \labelwidthstring MMMMMMMMMMM
12326
12327 \family typewriter
12328
12329 \backslash
12330 abovetitleskip
12331 \family default
12332  Separation from headers to 
12333 \family sans
12334 Title
12335 \end_layout
12336
12337 \begin_layout Labeling
12338 \labelwidthstring MMMMMMMMMMM
12339
12340 \family typewriter
12341
12342 \backslash
12343 titleauthorskip
12344 \family default
12345  between 
12346 \family sans
12347 Title
12348 \family default
12349  and 
12350 \family sans
12351 Author
12352 \family default
12353  environments
12354 \end_layout
12355
12356 \begin_layout Labeling
12357 \labelwidthstring MMMMMMMMMMM
12358
12359 \family typewriter
12360
12361 \backslash
12362 authorauthorskip
12363 \family default
12364  between multiple 
12365 \family sans
12366 Author
12367 \family default
12368  lines
12369 \end_layout
12370
12371 \begin_layout Labeling
12372 \labelwidthstring MMMMMMMMMMM
12373
12374 \family typewriter
12375
12376 \backslash
12377 authordateskip
12378 \family default
12379  between the 
12380 \family sans
12381 Author
12382 \family default
12383  and the 
12384 \family sans
12385 Date
12386 \end_layout
12387
12388 \begin_layout Labeling
12389 \labelwidthstring MMMMMMMMMMM
12390
12391 \family typewriter
12392
12393 \backslash
12394 dateabstractskip
12395 \family default
12396  between the 
12397 \family sans
12398 Date
12399 \family default
12400  and the 
12401 \family sans
12402 Abstract
12403 \end_layout
12404
12405 \begin_layout Standard
12406 The last length related command affects all the list environments.
12407  If you place 
12408 \family typewriter
12409
12410 \backslash
12411 zerolistvertdimens
12412 \family default
12413  
12414 \emph on
12415 inside
12416 \emph default
12417  a list environment then all the vertical spacing between the list items
12418  is removed.
12419  Note that this is a command not a length so it doesn't require 
12420 \family typewriter
12421
12422 \backslash
12423 setlength
12424 \family default
12425  like the stuff mentioned above.
12426 \end_layout
12427
12428 \begin_layout Subsubsection
12429 Headers and Footers
12430 \end_layout
12431
12432 \begin_layout Standard
12433 The 
12434 \family typewriter
12435
12436 \backslash
12437 LogoOn
12438 \family default
12439  and 
12440 \family typewriter
12441
12442 \backslash
12443 LogoOff
12444 \family default
12445  commands control whether the logo in the 
12446 \family sans
12447 MyLogo
12448 \family default
12449  definition appear on a given page.
12450  If you put 
12451 \family typewriter
12452
12453 \backslash
12454 LogoOff
12455 \family default
12456  in the preamble then none of the foils will have the logo on them.
12457  If you don't want the logo on a particular page place the 
12458 \family typewriter
12459
12460 \backslash
12461 LogoOff
12462 \family default
12463  directly after the foilhead of that page and the 
12464 \family typewriter
12465
12466 \backslash
12467 LogoOn
12468 \family default
12469  directly after the next foilhead.
12470 \end_layout
12471
12472 \begin_layout Standard
12473 If you decide to use the 
12474 \family sans
12475 fancy
12476 \family default
12477  page style setting in the 
12478 \family sans
12479 Document
12480 \begin_inset space ~
12481 \end_inset
12482
12483 Layout
12484 \family default
12485  dialog you should probably add 
12486 \family typewriter
12487
12488 \backslash
12489 let
12490 \backslash
12491 headwidth
12492 \backslash
12493 textwidth
12494 \family default
12495  to your preamble so headers and footers on landscape pages are correctly
12496  placed when rotated.
12497  This is due to some clashes between the page layouts provided by the 
12498 \family sans
12499 fancyheadings
12500 \family default
12501  package and the 
12502 \family sans
12503 foils
12504 \family default
12505  class.
12506 \end_layout
12507
12508 \begin_layout Section
12509 Hollywood (Hollywood spec scripts)
12510 \end_layout
12511
12512 \begin_layout Standard
12513 by 
12514 \shape smallcaps
12515 Garst Reese
12516 \end_layout
12517
12518 \begin_layout Subsection
12519 Introduction
12520 \end_layout
12521
12522 \begin_layout Standard
12523 Getting the format of a Hollywood script right is a 
12524 \begin_inset Quotes eld
12525 \end_inset
12526
12527 rite of passage.
12528 \begin_inset Quotes erd
12529 \end_inset
12530
12531  It is designed to make the readers focus on content and to be easy and
12532  familiar for the actors to read.
12533  Each page of a script should be one minute of film.
12534  Nothing goes in a script that you cannot see or hear on screen.
12535  The courier 12 pt font should be used throughout.
12536  No italics.
12537 \end_layout
12538
12539 \begin_layout Subsection
12540 Special problems
12541 \end_layout
12542
12543 \begin_layout Standard
12544 Speakers' lines should NEVER break in mid-sentence.
12545  If a speaker's lines continue over a page break, repeat the 
12546 \family sans
12547 Speaker
12548 \family default
12549  title followed by (Cont'd).
12550 \end_layout
12551
12552 \begin_layout Subsection
12553 Special features
12554 \end_layout
12555
12556 \begin_layout Standard
12557 Insert the 
12558 \family sans
12559 Speaker
12560 \family default
12561  names as labels then cross-reference the label to insert the name.
12562  The cross-reference dialog will show the current cast of characters.
12563  You can use this to insert the speaker name in narratives also.
12564 \end_layout
12565
12566 \begin_layout Subsection
12567 Paper size and Margins
12568 \end_layout
12569
12570 \begin_layout Standard
12571 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12572 \end_layout
12573
12574 \begin_layout Subsection
12575 Environments
12576 \end_layout
12577
12578 \begin_layout Standard
12579 The following environments are available.
12580  You can use hollywood.bind to get the bind keys shown at the right.
12581 \end_layout
12582
12583 \begin_layout Itemize
12584
12585 \family sans
12586 Standard
12587 \begin_inset Newline newline
12588 \end_inset
12589
12590
12591 \family default
12592 Used where nothing else works.
12593  Try to avoid it.
12594 \end_layout
12595
12596 \begin_layout Itemize
12597
12598 \family sans
12599 FADE_IN
12600 \family default
12601 :
12602 \begin_inset space \hfill{}
12603 \end_inset
12604
12605
12606 \family sans
12607 M-z S-I
12608 \family default
12609
12610 \begin_inset Newline newline
12611 \end_inset
12612
12613 Usually followed by something like 
12614 \begin_inset Quotes eld
12615 \end_inset
12616
12617 on Sally waking up.
12618 \begin_inset Quotes erd
12619 \end_inset
12620
12621
12622 \end_layout
12623
12624 \begin_layout Itemize
12625
12626 \family sans
12627 INT:
12628 \begin_inset space \hfill{}
12629 \end_inset
12630
12631 M-z i
12632 \begin_inset Newline newline
12633 \end_inset
12634
12635
12636 \family default
12637 Introduces a new INTERIOR camera set-up.
12638  Always followed by DAY or NIGHT, or something similar to define the lighting
12639  required.
12640  Everthing on this line in CAPS.
12641 \end_layout
12642
12643 \begin_layout Itemize
12644
12645 \family sans
12646 EXT:
12647 \begin_inset space \hfill{}
12648 \end_inset
12649
12650 M-z e
12651 \begin_inset Newline newline
12652 \end_inset
12653
12654
12655 \family default
12656 Introduces a new EXTERIOR camera set-up.
12657  Everthing on this line in CAPS.
12658 \end_layout
12659
12660 \begin_layout Itemize
12661
12662 \family sans
12663 Speaker
12664 \begin_inset space \hfill{}
12665 \end_inset
12666
12667 M-z s
12668 \begin_inset Newline newline
12669 \end_inset
12670
12671
12672 \family default
12673 The character speaking.
12674 \end_layout
12675
12676 \begin_layout Itemize
12677
12678 \family sans
12679 Parenthetical
12680 \begin_inset space \hfill{}
12681 \end_inset
12682
12683 M-z p
12684 \begin_inset Newline newline
12685 \end_inset
12686
12687
12688 \family default
12689 Instructions to the speaker.
12690  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12691 .
12692  Both will be printed.
12693 \end_layout
12694
12695 \begin_layout Itemize
12696
12697 \family sans
12698 Dialogue
12699 \begin_inset space \hfill{}
12700 \end_inset
12701
12702 M-z d
12703 \begin_inset Newline newline
12704 \end_inset
12705
12706
12707 \family default
12708 What the 
12709 \family sans
12710 Speaker
12711 \family default
12712  says.
12713 \end_layout
12714
12715 \begin_layout Itemize
12716
12717 \family sans
12718 Transition
12719 \begin_inset space \hfill{}
12720 \end_inset
12721
12722 M-z t
12723 \begin_inset Newline newline
12724 \end_inset
12725
12726
12727 \family default
12728 Camera movement instruction.
12729  e.
12730 \begin_inset space \thinspace{}
12731 \end_inset
12732
12733 g.
12734 \begin_inset space \space{}
12735 \end_inset
12736
12737 CUT TO:
12738 \end_layout
12739
12740 \begin_layout Itemize
12741
12742 \family sans
12743 FADE OUT:
12744 \begin_inset space \hfill{}
12745 \end_inset
12746
12747 M-z S-I
12748 \end_layout
12749
12750 \begin_layout Itemize
12751
12752 \family sans
12753 Author
12754 \begin_inset space \hfill{}
12755 \end_inset
12756
12757 M-z S-A
12758 \end_layout
12759
12760 \begin_layout Itemize
12761
12762 \family sans
12763 Title
12764 \begin_inset space \hfill{}
12765 \end_inset
12766
12767 M-z S-T
12768 \end_layout
12769
12770 \begin_layout Itemize
12771
12772 \family sans
12773 Right_Address
12774 \begin_inset space \hfill{}
12775 \end_inset
12776
12777 M-z r
12778 \end_layout
12779
12780 \begin_layout Subsection
12781 Script jargon
12782 \end_layout
12783
12784 \begin_layout Itemize
12785 (O.S) — off screen
12786 \end_layout
12787
12788 \begin_layout Itemize
12789 (V.0) — voice over
12790 \end_layout
12791
12792 \begin_layout Itemize
12793 b.
12794 \begin_inset space \thinspace{}
12795 \end_inset
12796
12797 g.
12798  — background
12799 \end_layout
12800
12801 \begin_layout Itemize
12802 C.U.
12803  — close-up
12804 \end_layout
12805
12806 \begin_layout Itemize
12807 PAN — camera movement
12808 \end_layout
12809
12810 \begin_layout Itemize
12811 INSERT — cut to close-up of
12812 \end_layout
12813
12814 \begin_layout Section
12815 ijmpc and ijmpd
12816 \end_layout
12817
12818 \begin_layout Standard
12819 by 
12820 \noun on
12821 Panayotis Papasotiriou
12822 \end_layout
12823
12824 \begin_layout Subsection
12825 Overview
12826 \end_layout
12827
12828 \begin_layout Standard
12829 The ijmpc package is a set of macros that facilitates electronic manuscript
12830  submission to the 
12831 \emph on
12832 International Journal of Modern Physics C
12833 \emph default
12834 .
12835  Similarly, the ijmpd package is for creating manuscripts to be submitted
12836  to the 
12837 \emph on
12838 International Journal of Modern Physics D
12839 \emph default
12840 .
12841  Both journals are published by World Scientific.
12842  The corresponding document classes are named 
12843 \family typewriter
12844 ws-ijmpc.cls
12845 \family default
12846  and 
12847 \family typewriter
12848 ws-ijmpd.cls
12849 \family default
12850 , respectively.
12851  These files, together with instructions for the authors, can be downloaded
12852  from the sites 
12853 \begin_inset Flex URL
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857
12858 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12859 \end_layout
12860
12861 \end_inset
12862
12863  and 
12864 \begin_inset Flex URL
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868
12869 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12870 \end_layout
12871
12872 \end_inset
12873
12874 .
12875  Both packages are modified versions of the standard 
12876 \begin_inset Quotes eld
12877 \end_inset
12878
12879 article
12880 \begin_inset Quotes erd
12881 \end_inset
12882
12883  package, and they are almost (but not exactly) identical.
12884  Most of their features are supported by \SpecialChar LyX
12885 .
12886  I have used \SpecialChar LyX
12887  successfully to write articles submitted to both journals
12888  without any problem.
12889 \end_layout
12890
12891 \begin_layout Subsection
12892 Writing a paper
12893 \end_layout
12894
12895 \begin_layout Standard
12896 As usual, the easiest way to write a paper is to start with a template.
12897  Click on 
12898 \family sans
12899 File\SpecialChar menuseparator
12900 New from
12901 \family default
12902  
12903 \family sans
12904 Template
12905 \family default
12906 , then choose the 
12907 \family typewriter
12908 ijmpc.lyx
12909 \family default
12910  or 
12911 \family typewriter
12912 ijmpd.lyx
12913 \family default
12914  template.
12915  This will give an (almost) empty document that includes the most common
12916  fields found in a manuscript.
12917  Simply overwrite the existing text (including the brackets, 
12918 \family typewriter
12919 <>
12920 \family default
12921 ) with your text.
12922  You should keep in mind the following remarks.
12923 \end_layout
12924
12925 \begin_layout Enumerate
12926 \SpecialChar LyX
12927  won't let you change the font size and the page style of the document,
12928  because such modifications are not allowed by both packages.
12929 \end_layout
12930
12931 \begin_layout Enumerate
12932 The language of the document should not be changed.
12933  Before previewing your paper, be sure that the babel package is not used.
12934  To do this, click on 
12935 \family sans
12936 Tools\SpecialChar menuseparator
12937 Preferences
12938 \family default
12939 , select the 
12940 \family sans
12941 Lang Opts
12942 \family default
12943  tab, deselect the 
12944 \family sans
12945 Use babel
12946 \family default
12947  checkbox in the language settings, and click on 
12948 \family sans
12949 Apply
12950 \family default
12951  (or 
12952 \family sans
12953 Save
12954 \family default
12955 , if you wish to make this change permanent).
12956 \end_layout
12957
12958 \begin_layout Enumerate
12959 The 
12960 \begin_inset Quotes eld
12961 \end_inset
12962
12963 Keywords
12964 \begin_inset Quotes erd
12965 \end_inset
12966
12967  style must be used to define keywords.
12968 \end_layout
12969
12970 \begin_layout Enumerate
12971 The ijmpc package provides a style named 
12972 \begin_inset Quotes eld
12973 \end_inset
12974
12975 Classification Codes
12976 \begin_inset Quotes erd
12977 \end_inset
12978
12979 , which can be used to define classification codes, such as PACS numbers.
12980  Note that this facility is not supported by the ijmpd package.
12981 \end_layout
12982
12983 \begin_layout Enumerate
12984 Several new environments are available: 
12985 \begin_inset Quotes eld
12986 \end_inset
12987
12988 Definition
12989 \begin_inset Quotes erd
12990 \end_inset
12991
12992
12993 \begin_inset Quotes eld
12994 \end_inset
12995
12996 Step
12997 \begin_inset Quotes erd
12998 \end_inset
12999
13000
13001 \begin_inset Quotes eld
13002 \end_inset
13003
13004 Example
13005 \begin_inset Quotes erd
13006 \end_inset
13007
13008
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012 Remark
13013 \begin_inset Quotes erd
13014 \end_inset
13015
13016
13017 \begin_inset Quotes eld
13018 \end_inset
13019
13020 Notation
13021 \begin_inset Quotes erd
13022 \end_inset
13023
13024
13025 \begin_inset Quotes eld
13026 \end_inset
13027
13028 Theorem
13029 \begin_inset Quotes erd
13030 \end_inset
13031
13032
13033 \begin_inset Quotes eld
13034 \end_inset
13035
13036 Proof
13037 \begin_inset Quotes erd
13038 \end_inset
13039
13040
13041 \begin_inset Quotes eld
13042 \end_inset
13043
13044 Corollary
13045 \begin_inset Quotes erd
13046 \end_inset
13047
13048
13049 \begin_inset Quotes eld
13050 \end_inset
13051
13052 Lemma
13053 \begin_inset Quotes erd
13054 \end_inset
13055
13056
13057 \begin_inset Quotes eld
13058 \end_inset
13059
13060 Proposition
13061 \begin_inset Quotes erd
13062 \end_inset
13063
13064
13065 \begin_inset Quotes eld
13066 \end_inset
13067
13068 Prop
13069 \begin_inset Quotes erd
13070 \end_inset
13071
13072
13073 \begin_inset Quotes eld
13074 \end_inset
13075
13076 Question
13077 \begin_inset Quotes erd
13078 \end_inset
13079
13080
13081 \begin_inset Quotes eld
13082 \end_inset
13083
13084 Claim
13085 \begin_inset Quotes erd
13086 \end_inset
13087
13088 , and 
13089 \begin_inset Quotes eld
13090 \end_inset
13091
13092 Conjecture
13093 \begin_inset Quotes erd
13094 \end_inset
13095
13096 .
13097  Their use is more or less obvious.
13098  \SpecialChar LyX
13099  supports all these environments; it will use the proper label, text style,
13100  and numbering scheme for each of them.
13101 \end_layout
13102
13103 \begin_layout Enumerate
13104 Both packages use basic citations; the natbib package should not be used.
13105  In \SpecialChar LyX
13106 , citation references are shown as usual; in the output, citations are
13107  shown as superscripts.
13108  If you want to use a citation as normal text, you should use the 
13109 \family typewriter
13110 refcite
13111 \family default
13112  command, e.
13113 \begin_inset space \thinspace{}
13114 \end_inset
13115
13116 g.
13117 \begin_inset space \space{}
13118 \end_inset
13119
13120
13121 \begin_inset Quotes eld
13122 \end_inset
13123
13124 See Ref.
13125 \begin_inset space \space{}
13126 \end_inset
13127
13128
13129 \family typewriter
13130
13131 \backslash
13132 refcite{key}
13133 \family default
13134
13135 \begin_inset Quotes erd
13136 \end_inset
13137
13138 .
13139 \end_layout
13140
13141 \begin_layout Enumerate
13142 There is no 
13143 \begin_inset Quotes eld
13144 \end_inset
13145
13146 Acknowledgments
13147 \begin_inset Quotes erd
13148 \end_inset
13149
13150  section in both packages.
13151  To put acknowledgments, just use the 
13152 \begin_inset Quotes eld
13153 \end_inset
13154
13155 Section*
13156 \begin_inset Quotes erd
13157 \end_inset
13158
13159  environment.
13160 \end_layout
13161
13162 \begin_layout Enumerate
13163 Appendices may be added to the paper, 
13164 \emph on
13165 after
13166 \emph default
13167  the Acknowledgments and 
13168 \shape italic
13169 before
13170 \shape default
13171  the References.
13172  \SpecialChar LyX
13173  provides a special environment, called 
13174 \begin_inset Quotes eld
13175 \end_inset
13176
13177 Appendices Section
13178 \begin_inset Quotes erd
13179 \end_inset
13180
13181  which marks the beginning of the appendices.
13182  This environment should be left blank; it just sends a \SpecialChar LaTeX
13183  command, but nothing
13184  is really printed.
13185  In \SpecialChar LyX
13186 , the word 
13187 \begin_inset Quotes eld
13188 \end_inset
13189
13190 Appendix
13191 \begin_inset Quotes erd
13192 \end_inset
13193
13194  is printed with blue letters, as a signal that all sections after that
13195  point are appendices.
13196  To write an appendix, use the 
13197 \begin_inset Quotes eld
13198 \end_inset
13199
13200 Appendix
13201 \begin_inset Quotes erd
13202 \end_inset
13203
13204  environment.
13205  \SpecialChar LyX
13206  will number each appendix with capital letters, as required by both journals.
13207  Note that 
13208 \begin_inset Quotes eld
13209 \end_inset
13210
13211 Appendices Section
13212 \begin_inset Quotes erd
13213 \end_inset
13214
13215  
13216 \emph on
13217 must
13218 \emph default
13219  be present before the first appendix; if not, all appendices will be numbered
13220  as normal sections in the output.
13221 \end_layout
13222
13223 \begin_layout Enumerate
13224 The ijmpc and the ijmpd packages use the 
13225 \family typewriter
13226 tbl
13227 \family default
13228  command to implement table captions.
13229  As a result, a table created by \SpecialChar LyX
13230  is printed correctly, but its caption
13231  is ignored.
13232  However, you can use some \SpecialChar TeX
13233  code to overcome this problem, so that captions
13234  are printed as expected.
13235  To do so, create a float table as usual, remove the caption, and replace
13236  it with the \SpecialChar TeX
13237  code 
13238 \family typewriter
13239
13240 \backslash
13241 tbl{
13242 \emph on
13243 your table caption
13244 \emph default
13245 }{
13246 \family default
13247  (sic); you must also the \SpecialChar TeX
13248  code 
13249 \family typewriter
13250 }
13251 \family default
13252  immediately after the tabular material.
13253  Study the example table included in the template files to see how this
13254  trick is implemented.
13255  Alternatively, If you need table captions, you should implement the whole
13256  table float in a 
13257 \family typewriter
13258 .tex
13259 \family default
13260  file, then include this file to the \SpecialChar LyX
13261  document (
13262 \family sans
13263 Insert\SpecialChar menuseparator
13264 File\SpecialChar menuseparator
13265 Child
13266 \begin_inset space ~
13267 \end_inset
13268
13269 Document
13270 \family default
13271 ).
13272  Details on how to create a table float can be found in the files 
13273 \family typewriter
13274 ws-ijmpc.tex
13275 \family default
13276  and 
13277 \family typewriter
13278 ws-ijmpd.tex
13279 \family default
13280 , included in the corresponding packages.
13281 \end_layout
13282
13283 \begin_layout Subsection
13284 Preparing a paper for submission
13285 \end_layout
13286
13287 \begin_layout Standard
13288 Before you submit your paper you must export the \SpecialChar LyX
13289  document as a \SpecialChar LaTeX
13290  file (
13291 \family sans
13292 File\SpecialChar menuseparator
13293 Export\SpecialChar menuseparator
13294 \SpecialChar LaTeX
13295
13296 \family default
13297 )
13298 \begin_inset Foot
13299 status open
13300
13301 \begin_layout Plain Layout
13302 Actually you have the choice between \SpecialChar LaTeX
13303  (plain) and pdflatex.
13304  If you intend to use pdflatex to prepare the paper, you should use the
13305  pdflatex option so that included graphics are converted to PDF format,
13306  ready for use by pdflatex.
13307 \end_layout
13308
13309 \end_inset
13310
13311 , then make the following changes to the resulting 
13312 \family typewriter
13313 .tex
13314 \family default
13315  file.
13316 \end_layout
13317
13318 \begin_layout Enumerate
13319 Remove the comment lines before the 
13320 \family typewriter
13321
13322 \backslash
13323 documentclass
13324 \family default
13325  command.
13326 \end_layout
13327
13328 \begin_layout Enumerate
13329 Remove everything between (and including) the 
13330 \family typewriter
13331
13332 \backslash
13333 makeatletter
13334 \family default
13335  and 
13336 \family typewriter
13337
13338 \backslash
13339 makeatother
13340 \family default
13341  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13342  preamble.
13343 \end_layout
13344
13345 \begin_layout Standard
13346 The modified 
13347 \family typewriter
13348 .tex
13349 \family default
13350  file should be saved and processed through \SpecialChar LaTeX
13351  as many times as necessary.
13352  You may also want to check the resulting 
13353 \family typewriter
13354 .dvi
13355 \family default
13356  document.
13357 \end_layout
13358
13359 \begin_layout Subsection
13360 Use of \SpecialChar TeX
13361  code
13362 \end_layout
13363
13364 \begin_layout Standard
13365 The use of \SpecialChar TeX
13366  code is reduced to two commands, which must be placed at the
13367  top of the document.
13368  If you started writing your paper by using the 
13369 \family typewriter
13370 ijmpc.lyx
13371 \family default
13372  or the 
13373 \family typewriter
13374 ijmpd.lyx
13375 \family default
13376  template, the \SpecialChar TeX
13377  code needed is already in its place; you usually don't need
13378  to delete it.
13379  You may only modify the first \SpecialChar TeX
13380  code to specify the information printed
13381  to the top of odd and even pages (authors' names and short paper's title,
13382  respectively).
13383  This \SpecialChar TeX
13384  code must have the form 
13385 \family typewriter
13386
13387 \backslash
13388 markboth{Authors' Names}{Short Paper's Title}
13389 \family default
13390 .
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 file 
13431 \emph on
13432 IOP-article.lyx
13433 \emph default
13434  that is available in \SpecialChar LyX
13435 's examples files folder.
13436  Open this file, save it under a new name, and start writing.
13437  The example file explains how to use the special text environments.
13438  Here are the most important advices:
13439 \end_layout
13440
13441 \begin_layout Itemize
13442 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13443  two options 
13444 \family sans
13445 Use AMS math package
13446 \family default
13447  in the document settings under 
13448 \family sans
13449 Math Options
13450 \family default
13451  are not used!
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 the \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 open
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 Short
14412 \begin_inset space ~
14413 \end_inset
14414
14415 Title
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 Standard
14678 \noindent
14679 The document class 
14680 \emph on
14681 letter (koma-script)
14682 \emph default
14683  is implemented in the layout file 
14684 \family typewriter
14685 scrlettr.layout
14686 \family default
14687 .
14688  It contains all the paragraph types of the corresponding standard document
14689  class 
14690 \emph on
14691 letter
14692 \emph default
14693 , partly modified, with the exception of the \SpecialChar LyX
14694  specific types 
14695 \family sans
14696 \SpecialChar LyX
14697 -Code
14698 \family default
14699  and 
14700 \family sans
14701 Comment
14702 \family default
14703  and the 
14704 \family sans
14705 List
14706 \family default
14707  type, which is replaced by the new 
14708 \family sans
14709 Labeling
14710 \family default
14711  type.
14712  In addition, it contains, in contrast to the standard document class, the
14713  standard types 
14714 \family sans
14715 \SpecialChar LaTeX
14716
14717 \family default
14718
14719 \family sans
14720 Quotation
14721 \family default
14722
14723 \family sans
14724 Quote
14725 \family default
14726 , and 
14727 \family sans
14728 Verse
14729 \family default
14730 .
14731  Furthermore, there are a number of new letter specific types.
14732 \end_layout
14733
14734 \begin_layout Standard
14735 The appearance of the letter produced by this document class can be controlled
14736  by a number of \SpecialChar LaTeX
14737  commands, which you can put in the \SpecialChar LaTeX
14738  preamble.
14739 \begin_inset Foot
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 For example, the standard appearance of the letter`s heading, consisting
14744  of name and address, is quite self-willed.
14745  An 
14746 \begin_inset Quotes eld
14747 \end_inset
14748
14749 ordinary
14750 \begin_inset Quotes erd
14751 \end_inset
14752
14753  heading is produced by the following \SpecialChar LaTeX
14754  commands in the preamble:
14755 \end_layout
14756
14757 \begin_layout LyX-Code
14758
14759 \backslash
14760 firsthead{
14761 \backslash
14762 parbox[b]{
14763 \backslash
14764 textwidth}
14765 \end_layout
14766
14767 \begin_layout LyX-Code
14768   {
14769 \backslash
14770 ignorespaces 
14771 \backslash
14772 fromname
14773 \backslash
14774
14775 \backslash
14776  
14777 \backslash
14778 ignorespaces 
14779 \backslash
14780 fromaddress}} 
14781 \end_layout
14782
14783 \begin_layout LyX-Code
14784
14785 \backslash
14786 nexthead{
14787 \backslash
14788 parbox[b]{
14789 \backslash
14790 textwidth}
14791 \end_layout
14792
14793 \begin_layout LyX-Code
14794   {
14795 \backslash
14796 ignorespaces 
14797 \backslash
14798 fromname 
14799 \backslash
14800 hfill 
14801 \backslash
14802 ignorespaces 
14803 \backslash
14804 pagename
14805 \backslash
14806  
14807 \backslash
14808 thepage}}
14809 \end_layout
14810
14811 \end_inset
14812
14813  A detailed German description of such \SpecialChar LaTeX
14814  commands can be found in the Koma-Script
14815  documentation 
14816 \emph on
14817 scrguide
14818 \emph default
14819 .
14820  With it, the letter's author can produce his personal letter layout.
14821 \end_layout
14822
14823 \begin_layout Standard
14824 The types 
14825 \family sans
14826 Letter
14827 \family default
14828  and 
14829 \family sans
14830 Opening
14831 \family default
14832  define the beginning of the letter and must be used in every letter.
14833  To emphasize them in the \SpecialChar LyX
14834  document class, they are marked with the letter
14835  
14836 \shape italic
14837 L
14838 \shape default
14839  or 
14840 \shape italic
14841 O
14842 \shape default
14843 , resp.
14844 \begin_inset space ~
14845 \end_inset
14846
14847 in the left margin.
14848  It is possible to write any number of letters in one file.
14849  An 
14850 \family sans
14851 Opening
14852 \family default
14853  type produces a new letter using the same addressee and a 
14854 \family sans
14855 Letter
14856 \family default
14857  type produces a new addressee.
14858  The types 
14859 \family sans
14860 Closing
14861 \family default
14862
14863 \family sans
14864 PS
14865 \family default
14866
14867 \family sans
14868 CC
14869 \family default
14870 , and 
14871 \family sans
14872 Encl
14873 \family default
14874  are ordinary paragraph types and can also be used several times in one
14875  and the same letter.
14876 \end_layout
14877
14878 \begin_layout Itemize
14879
14880 \family sans
14881 Letter
14882 \family default
14883 : produces a paragraph for the addressee and implicitly defines the beginning
14884  of the letter.
14885 \end_layout
14886
14887 \begin_layout Itemize
14888
14889 \family sans
14890 Opening
14891 \family default
14892 : produces a paragraph for the form of address and implicitly produces a
14893  new letter.
14894 \end_layout
14895
14896 \begin_layout Itemize
14897
14898 \family sans
14899 Closing
14900 \family default
14901 : produces a paragraph for a close.
14902 \end_layout
14903
14904 \begin_layout Itemize
14905
14906 \family sans
14907 PS
14908 \family default
14909 : produces a paragraph for a postscript.
14910 \end_layout
14911
14912 \begin_layout Itemize
14913
14914 \family sans
14915 CC
14916 \family default
14917 : produces a paragraph for a distribution list.
14918 \end_layout
14919
14920 \begin_layout Itemize
14921
14922 \family sans
14923 Encl
14924 \family default
14925 : produces a paragraph for enclosures.
14926 \end_layout
14927
14928 \begin_layout Standard
14929 The types 
14930 \family sans
14931 Name
14932 \family default
14933
14934 \family sans
14935 Signature
14936 \family default
14937
14938 \family sans
14939 Address
14940 \family default
14941
14942 \family sans
14943 Telephone
14944 \family default
14945
14946 \family sans
14947 Place
14948 \family default
14949
14950 \family sans
14951 Backaddress
14952 \family default
14953
14954 \family sans
14955 Specialmail
14956 \family default
14957
14958 \family sans
14959 Location
14960 \family default
14961
14962 \family sans
14963 Title
14964 \family default
14965 , and 
14966 \family sans
14967 Subject
14968 \family default
14969  are input types provided with a label to enter information, which will
14970  be processed by the document class.
14971 \begin_inset Foot
14972 status open
14973
14974 \begin_layout Plain Layout
14975 It could be seen as a matter of inconsequence, that the types 
14976 \family sans
14977 Letter
14978 \family default
14979  and 
14980 \family sans
14981 Opening
14982 \family default
14983  described above are not such input types as well.
14984  Because of the special meaning of those types, however, I have implemented
14985  them as ordinary paragraph types with a one letter mark in the left margin.
14986  Moreover, it would affect my feeling of symmetry, if the 
14987 \family sans
14988 Opening
14989 \family default
14990  type and the 
14991 \family sans
14992 Closing
14993 \family default
14994  type had such a serious different appearance.
14995 \end_layout
14996
14997 \end_inset
14998
14999  The types must be used ahead of the corresponding 
15000 \family sans
15001 Opening
15002 \family default
15003  type.
15004 \end_layout
15005
15006 \begin_layout Standard
15007 An implementation of these types in a WYSIWYG fashion does not seem to make
15008  sense, because the real appearance of the produced letter does not only
15009  depend on the usage of the particular type, but also on other factors.
15010  For example, a signature entered in the 
15011 \family sans
15012 Signature
15013 \family default
15014  type will in the standard behavior appear in the produced letter only,
15015  when in the same letter also a 
15016 \family sans
15017 Closing
15018 \family default
15019  type is used.
15020  The entered value of the 
15021 \family sans
15022 Telephone
15023 \family default
15024  type will in the standard behavior not appear in the produced letter at
15025  all.
15026  The possibility to design the letter`s heading freely is already indicated
15027  in a footnote above.
15028 \end_layout
15029
15030 \begin_layout Standard
15031 The input types can also be used as empty paragraphs.
15032  This makes sense e.
15033 \begin_inset space \thinspace{}
15034 \end_inset
15035
15036 g.
15037 \begin_inset space \space{}
15038 \end_inset
15039
15040 for the 
15041 \family sans
15042 Signature
15043 \family default
15044  type.
15045  If the 
15046 \family sans
15047 Signature
15048 \family default
15049  type is not used at all, in the standard behavior the value of the 
15050 \family sans
15051 Name
15052 \family default
15053  type is used as signature, whereas if an empty 
15054 \family sans
15055 Signature
15056 \family default
15057  type is used, no signature value is defined.
15058 \end_layout
15059
15060 \begin_layout Standard
15061 By using the input types it is possible to write a letter template, containing
15062  filled input types with your personal dates (name, address, etc.) and empty
15063  input types for other dates you want to enter.
15064 \end_layout
15065
15066 \begin_layout Itemize
15067
15068 \family sans
15069 Name
15070 \family default
15071 : sender's name, in the standard behavior appears as a centered paragraph
15072  in small caps in the letter`s heading.
15073 \end_layout
15074
15075 \begin_layout Itemize
15076
15077 \family sans
15078 Signature
15079 \family default
15080 : sender's signature, in the standard behavior appears below the 
15081 \family sans
15082 Closing
15083 \family default
15084  type.
15085  If no 
15086 \family sans
15087 Signature
15088 \family default
15089  type is used, the value of the 
15090 \family sans
15091 Name
15092 \family default
15093  type appears instead.
15094 \end_layout
15095
15096 \begin_layout Itemize
15097
15098 \family sans
15099 Address
15100 \family default
15101 : sender's address, in the standard behavior appears in a centered paragraph
15102  in the letter`s heading below the sender's name.
15103 \end_layout
15104
15105 \begin_layout Itemize
15106
15107 \family sans
15108 Telephone
15109 \family default
15110 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15111  variable
15112  
15113 \family typewriter
15114
15115 \backslash
15116 telephonenum
15117 \family default
15118 .
15119 \end_layout
15120
15121 \begin_layout Itemize
15122
15123 \family sans
15124 Place
15125 \family default
15126 : place of the letter`s making.
15127 \end_layout
15128
15129 \begin_layout Itemize
15130
15131 \family sans
15132 Date
15133 \family default
15134 : date of the letter`s making.
15135  
15136 \family sans
15137 Place
15138 \family default
15139  and 
15140 \family sans
15141 Date
15142 \family default
15143 , in the standard behavior, produce the place and the date in a right-aligned
15144  line below the addressee's field.
15145  If an empty 
15146 \family sans
15147 Date
15148 \family default
15149  type is used, neither place nor date appear, independent of the value of
15150  the 
15151 \family sans
15152 Place
15153 \family default
15154  type.
15155  If no 
15156 \family sans
15157 Date
15158 \family default
15159  type is used, the date of the letter `s production is used.
15160 \end_layout
15161
15162 \begin_layout Itemize
15163
15164 \family sans
15165 Backaddress
15166 \family default
15167 : sender`s back address, in the standard behavior appears above the addressee's
15168  field in a small sans serif font.
15169 \end_layout
15170
15171 \begin_layout Itemize
15172
15173 \family sans
15174 Specialmail
15175 \family default
15176 : special mail information, in the standard behavior appears underlined
15177  above the addressee's field below the back address.
15178 \end_layout
15179
15180 \begin_layout Itemize
15181
15182 \family sans
15183 Location
15184 \family default
15185 : additional information, in the standard behavior appears on right side
15186  below the addressee`s field.
15187 \end_layout
15188
15189 \begin_layout Itemize
15190
15191 \family sans
15192 Title
15193 \family default
15194 : the letter's title, in the standard behavior appears in a big, bold, sans
15195  serif font above the subject.
15196 \end_layout
15197
15198 \begin_layout Itemize
15199
15200 \family sans
15201 Subject
15202 \family default
15203 : the letter's subject, in the standard behavior appears in a bold font
15204  above the 
15205 \family sans
15206 Opening
15207 \family default
15208  paragraph.
15209 \end_layout
15210
15211 \begin_layout Standard
15212 The types 
15213 \family sans
15214 Yourref
15215 \family default
15216
15217 \family sans
15218 Yourmail
15219 \family default
15220
15221 \family sans
15222 Myref
15223 \family default
15224
15225 \family sans
15226 Customer
15227 \family default
15228 , and 
15229 \family sans
15230 Invoice
15231 \family default
15232  produce a business letter like line above the 
15233 \family sans
15234 Title
15235 \family default
15236  line containing the fields 
15237 \begin_inset Quotes eld
15238 \end_inset
15239
15240 Your ref.
15241 \begin_inset Quotes erd
15242 \end_inset
15243
15244
15245 \begin_inset Quotes eld
15246 \end_inset
15247
15248 Your letter of
15249 \begin_inset Quotes erd
15250 \end_inset
15251
15252
15253 \begin_inset Quotes eld
15254 \end_inset
15255
15256 Our ref.
15257 \begin_inset Quotes erd
15258 \end_inset
15259
15260
15261 \begin_inset Quotes eld
15262 \end_inset
15263
15264 Customer no.
15265 \begin_inset Quotes erd
15266 \end_inset
15267
15268
15269 \begin_inset Quotes eld
15270 \end_inset
15271
15272 Invoice no.
15273 \begin_inset Quotes erd
15274 \end_inset
15275
15276 , and 
15277 \begin_inset Quotes eld
15278 \end_inset
15279
15280 Date
15281 \begin_inset Quotes erd
15282 \end_inset
15283
15284 .
15285  For the date field, the value of the 
15286 \family sans
15287 Date
15288 \family default
15289  type is used.
15290  If one of these 
15291 \begin_inset Quotes eld
15292 \end_inset
15293
15294 business letter types
15295 \begin_inset Quotes erd
15296 \end_inset
15297
15298  is used, the value of the 
15299 \family sans
15300 Place
15301 \family default
15302  type however does not appear, but only the \SpecialChar LaTeX
15303  variable 
15304 \family typewriter
15305
15306 \backslash
15307 fromplace
15308 \family default
15309  is set.
15310  The ordinary output of place and date in a right-aligned line below the
15311  addressee`s field is suppressed.
15312  The types are implemented as input types provided with a label and must
15313  be used ahead of the corresponding 
15314 \family sans
15315 Opening
15316 \family default
15317  type.
15318 \end_layout
15319
15320 \begin_layout Itemize
15321
15322 \family sans
15323 Yourref
15324 \family default
15325 : Your ref.
15326 \end_layout
15327
15328 \begin_layout Itemize
15329
15330 \family sans
15331 Yourmail
15332 \family default
15333 : Your letter of.
15334 \end_layout
15335
15336 \begin_layout Itemize
15337
15338 \family sans
15339 Myref
15340 \family default
15341 : Our ref.
15342 \end_layout
15343
15344 \begin_layout Itemize
15345
15346 \family sans
15347 Customer
15348 \family default
15349 : Customer no.
15350 \end_layout
15351
15352 \begin_layout Itemize
15353
15354 \family sans
15355 Invoice
15356 \family default
15357 : Invoice no.
15358 \end_layout
15359
15360 \begin_layout Subsection
15361 The new letter class: letter (koma-script v.2)
15362 \end_layout
15363
15364 \begin_layout Standard
15365 by 
15366 \noun on
15367 Jürgen Spitzmüller
15368 \end_layout
15369
15370 \begin_layout Standard
15371 \begin_inset VSpace medskip
15372 \end_inset
15373
15374
15375 \end_layout
15376
15377 \begin_layout Standard
15378 \noindent
15379 Koma-Script version 2.8 has introduced a new letter class 
15380 \family typewriter
15381 scrlttr2
15382 \family default
15383  which supersedes the now unsupported 
15384 \family typewriter
15385 scrlettr
15386 \family default
15387 .
15388  It has — on the \SpecialChar LaTeX
15389  side — a completely new interface and is not compatible
15390  with the old class.
15391  Therefore, \SpecialChar LyX
15392  supports both, though it is recommended you use the new class.
15393 \end_layout
15394
15395 \begin_layout Standard
15396 This class covers the same functionality as 
15397 \emph on
15398 letter (koma-script),
15399 \emph default
15400  and a few more.
15401  The basic items are 
15402 \family sans
15403 Address
15404 \family default
15405  (receiver's address, same as 
15406 \family sans
15407 Letter
15408 \family default
15409  in the old layout), 
15410 \family sans
15411 Opening
15412 \family default
15413 , and 
15414 \family sans
15415 Closing
15416 \family default
15417 .
15418  
15419 \family sans
15420 NextAddress
15421 \family default
15422  will start a new letter (i.
15423 \begin_inset space \thinspace{}
15424 \end_inset
15425
15426 e.
15427 \begin_inset space \space{}
15428 \end_inset
15429
15430 you can write several letters per document).
15431  New elements are sender's 
15432 \family sans
15433 E-Mail
15434 \family default
15435
15436 \family sans
15437 URL
15438 \family default
15439
15440 \family sans
15441 Fax
15442 \family default
15443
15444 \family sans
15445 Bank
15446 \family default
15447  and the possibility to use a 
15448 \family sans
15449 Logo
15450 \family default
15451  (via 
15452 \family sans
15453 Insert\SpecialChar menuseparator
15454 Graphics
15455 \family default
15456 ) in the header.
15457 \end_layout
15458
15459 \begin_layout Standard
15460 The biggest improvement is, though, that the letter's layout is configurable
15461  to meet almost any needs.
15462  This can be done via the preamble or with a special style file (Letter
15463  Class Option, extension 
15464 \family typewriter
15465 *.lco
15466 \family default
15467 ), that will be read in as a class option.
15468 \begin_inset Foot
15469 status collapsed
15470
15471 \begin_layout Plain Layout
15472 The KOMA package comes with some default 
15473 \family typewriter
15474 *.lco
15475 \family default
15476  files.
15477  There is, for instance, a 
15478 \family typewriter
15479 DIN.lco
15480 \family default
15481  file that follows german typesetting rules, or a 
15482 \family typewriter
15483 KOMAold.lco
15484 \family default
15485  that provides the default layout of the old 
15486 \family typewriter
15487 scrlettr
15488 \family default
15489  class.
15490  The latter can be loaded with the class option 
15491 \family typewriter
15492 KOMAold
15493 \family default
15494 , inserted via the 
15495 \family sans
15496 Layout\SpecialChar menuseparator
15497 Document\SpecialChar menuseparator
15498 Extra Options
15499 \family default
15500  field.
15501 \end_layout
15502
15503 \end_inset
15504
15505  Have a look at the 
15506 \emph on
15507 koma-letter2
15508 \emph default
15509  template that is included in \SpecialChar LyX
15510  for examples.
15511  A detailed description is to be found in the Koma-Script documentation
15512  (
15513 \emph on
15514 scrguide
15515 \emph default
15516 ).
15517 \end_layout
15518
15519 \begin_layout Subsection
15520 Problems
15521 \end_layout
15522
15523 \begin_layout Standard
15524 Visualizing the Koma-Script document classes in \SpecialChar LyX
15525 , the \SpecialChar LyX
15526  internals cause some
15527  problems.
15528 \end_layout
15529
15530 \begin_layout Itemize
15531 The chapter number of a 
15532 \family sans
15533 Chapter
15534 \family default
15535  type appears on a line of its own above the chapter heading instead of
15536  appearing in the same line ahead of it.
15537  The cause for that is the \SpecialChar LyX
15538  internal behavior for the labeltype 
15539 \family sans
15540 Counter_Chapter
15541 \family default
15542  in the layout file.
15543 \end_layout
15544
15545 \begin_layout Itemize
15546 The headings of the types 
15547 \family sans
15548 Addchap
15549 \family default
15550  and 
15551 \family sans
15552 Addsec
15553 \family default
15554  are only put in the 
15555 \begin_inset Quotes eld
15556 \end_inset
15557
15558 true
15559 \begin_inset Quotes erd
15560 \end_inset
15561
15562  \SpecialChar LaTeX
15563  table of contents, but not in the \SpecialChar LyX
15564  table of contents (
15565 \family sans
15566 Document\SpecialChar menuseparator
15567 Table
15568 \begin_inset space ~
15569 \end_inset
15570
15571 of
15572 \begin_inset space ~
15573 \end_inset
15574
15575 Contents
15576 \family default
15577 ).
15578 \end_layout
15579
15580 \begin_layout Itemize
15581 The paragraphs in a 
15582 \emph on
15583 letter
15584 \emph default
15585  document class appear in a skip separation mode, not indented.
15586  This is the standard behavior, no special \SpecialChar LaTeX
15587  commands are needed for that.
15588  But in the 
15589 \family sans
15590 Document\SpecialChar menuseparator
15591 Settings
15592 \family default
15593  dialog the corresponding radio button indicates 
15594 \family sans
15595 Indent
15596 \family default
15597 .
15598  A 
15599 \family sans
15600 Skip
15601 \family default
15602  value always has the effect that extra \SpecialChar LaTeX
15603  commands are inserted in the document
15604  to produce the gap, which is not what is wanted in this case.
15605 \end_layout
15606
15607 \begin_layout Section
15608 Memoir
15609 \end_layout
15610
15611 \begin_layout Standard
15612 By 
15613 \noun on
15614 Jürgen Spitzmüller
15615 \end_layout
15616
15617 \begin_layout Subsection
15618 Overview
15619 \end_layout
15620
15621 \begin_layout Standard
15622 Memoir is a very powerful and constantly evolving class.
15623  It has been designed with regard to fictional and non-fictional literature.
15624  Its aim is to let the user have maximum control over the typesetting of
15625  his document.
15626  Memoir is based on the standard book class, but it can also emulate the
15627  article class (see below).
15628 \end_layout
15629
15630 \begin_layout Standard
15631 Peter Wilson, the developer of Memoir, is known as the author of lots of
15632  useful packages in the \SpecialChar LaTeX
15633  world.
15634  Most of them have been merged with Memoir.
15635  Therefore, it is much easier to layout the table of contents, appendices,
15636  chapter designs and such.
15637  \SpecialChar LyX
15638 , though, does not support all of these goodies natively.
15639  Some of them might be added to forthcoming releases
15640 \begin_inset Foot
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644 You are invited to send suggestions to 
15645 \begin_inset Flex URL
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649
15650 lyx-devel@lists.lyx.org
15651 \end_layout
15652
15653 \end_inset
15654
15655 .
15656 \end_layout
15657
15658 \end_inset
15659
15660 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15661 's framework.
15662  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15663
15664  commands (\SpecialChar TeX
15665  code
15666 \begin_inset Foot
15667 status collapsed
15668
15669 \begin_layout Plain Layout
15670 Cf.
15671 \begin_inset ERT
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675
15676
15677 \backslash
15678  
15679 \end_layout
15680
15681 \end_inset
15682
15683 section
15684 \begin_inset space ~
15685 \end_inset
15686
15687
15688 \begin_inset CommandInset ref
15689 LatexCommand ref
15690 reference "sec:Inserting-TeX-Code"
15691
15692 \end_inset
15693
15694  for details.
15695 \end_layout
15696
15697 \end_inset
15698
15699 ).
15700  In this section, we can only list those features that are natively supported
15701  by \SpecialChar LyX
15702 .
15703  For detailed descriptions (and for the rest of features) we recommend you
15704  have a look at the detailed manual of the Memoir class
15705 \begin_inset Foot
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 Cf.
15710 \begin_inset ERT
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714
15715
15716 \backslash
15717  
15718 \end_layout
15719
15720 \end_inset
15721
15722
15723 \begin_inset Flex URL
15724 status collapsed
15725
15726 \begin_layout Plain Layout
15727
15728 CTAN:/macros/latex/memoir/memman.pdf
15729 \end_layout
15730
15731 \end_inset
15732
15733 .
15734 \end_layout
15735
15736 \end_inset
15737
15738 , which is not only a user guide for the class, but also both a comprehensive
15739  description on good typesetting and a superb example for good typesetting
15740  itself.
15741 \end_layout
15742
15743 \begin_layout Subsection
15744 Basic features and restrictions
15745 \end_layout
15746
15747 \begin_layout Standard
15748 Memoir supports basically all features of the standard book classes.
15749  There are, however, some differences, as follows:
15750 \end_layout
15751
15752 \begin_layout Description
15753 Font
15754 \begin_inset space ~
15755 \end_inset
15756
15757 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15758 \end_layout
15759
15760 \begin_layout Description
15761 Page
15762 \begin_inset space ~
15763 \end_inset
15764
15765 style: The fancy page style is not supported, due to a command clash between
15766  Memoir and the fancyhdr package (they both define a command with the same
15767  name, which confuses \SpecialChar LaTeX
15768 ).
15769  Instead, Memoir comes with a number of its own page styles (see 
15770 \family sans
15771 Layout\SpecialChar menuseparator
15772 Document\SpecialChar menuseparator
15773 Page
15774 \begin_inset space ~
15775 \end_inset
15776
15777 Style
15778 \family default
15779 ).
15780  If you want to use these for the chapter pages, you have to use the command
15781  
15782 \family typewriter
15783
15784 \backslash
15785 chapterstyle
15786 \family default
15787  in the main text or in preamble (e.
15788 \begin_inset space \thinspace{}
15789 \end_inset
15790
15791 g.
15792 \begin_inset space \space{}
15793 \end_inset
15794
15795
15796 \family typewriter
15797
15798 \backslash
15799 chapterstyle{companion}
15800 \family default
15801 ).
15802 \end_layout
15803
15804 \begin_layout Description
15805 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15806  optional argument in the standard classes.
15807  With this, you can specify an alternative version of the title for the
15808  table of contents and the headers (for instance, if the title is too long).
15809  In \SpecialChar LyX
15810 , you can do this via 
15811 \family sans
15812 Insert\SpecialChar menuseparator
15813 Short
15814 \begin_inset space ~
15815 \end_inset
15816
15817 Title
15818 \family default
15819  at the beginning of a chapter/section.
15820  Memoir features a second optional argument and thus separates the table
15821  of contents from the header.
15822  You can define three variants of a title with this: one for the main text,
15823  one for the table of contents, and one for the headers.
15824  Simply insert two optional arguments if you need this feature, the first
15825  one containing the short title for the Table of Contents, the second one
15826  containing an alternative short title for the headers.
15827 \end_layout
15828
15829 \begin_layout Description
15830 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15831  of contents, the list of figures and the list of table start a new page
15832  automatically.
15833  Memoir does not follow this route.
15834  You have to insert a page break yourself, if you want to have one.
15835 \end_layout
15836
15837 \begin_layout Description
15838 Titlepage: For some unknown reason, Memoir uses pagination on the title
15839  page (in the standard classes, title pages are 
15840 \begin_inset Quotes eld
15841 \end_inset
15842
15843 empty
15844 \begin_inset Quotes erd
15845 \end_inset
15846
15847 ).
15848  If you want an empty title page, type 
15849 \family typewriter
15850
15851 \backslash
15852 aliaspagestyle{title}{empty}
15853 \family default
15854  in the preamble.
15855 \end_layout
15856
15857 \begin_layout Description
15858 Article: With the class option 
15859 \emph on
15860 article
15861 \emph default
15862  (to be inserted in 
15863 \family sans
15864 Layout\SpecialChar menuseparator
15865 Document\SpecialChar menuseparator
15866 Extra
15867 \begin_inset space ~
15868 \end_inset
15869
15870 Options
15871 \family default
15872 ), you can emulate article style.
15873  That is, counters (footnotes, figures, tables etc.) will not be reset on
15874  new chapters, chapters don't start a new page (but are—in contrary to 
15875 \begin_inset Quotes eld
15876 \end_inset
15877
15878 real
15879 \begin_inset Quotes erd
15880 \end_inset
15881
15882  article classes—still allowed), parts, though, use their own page, as in
15883  book.
15884 \end_layout
15885
15886 \begin_layout Description
15887 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15888  font commands, which have been used in the old \SpecialChar LaTeX
15889  version 2.09 (e.
15890 \begin_inset space \thinspace{}
15891 \end_inset
15892
15893 g.
15894 \begin_inset space \space{}
15895 \end_inset
15896
15897
15898 \family typewriter
15899
15900 \backslash
15901 rm
15902 \family default
15903
15904 \family typewriter
15905
15906 \backslash
15907 it
15908 \family default
15909 ).
15910  It produces an error and stops \SpecialChar LaTeX
15911  whenever such a command appears.
15912  The class option 
15913 \emph on
15914 oldfontcommands
15915 \emph default
15916  reallows the commands and spits out warnings instead (which does at least
15917  not stop \SpecialChar LaTeX
15918 ).
15919  Since a lot of packages and particularly Bib\SpecialChar TeX
15920  style files are still using
15921  those commands, we have decided to use this option by default.
15922 \end_layout
15923
15924 \begin_layout Subsection
15925 Extra features
15926 \end_layout
15927
15928 \begin_layout Standard
15929 We will only describe the features supported by \SpecialChar LyX
15930  (which is not much currently).
15931  Please consult the Memoir manual
15932 \begin_inset Foot
15933 status collapsed
15934
15935 \begin_layout Plain Layout
15936 Cf.
15937 \begin_inset ERT
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941
15942
15943 \backslash
15944  
15945 \end_layout
15946
15947 \end_inset
15948
15949
15950 \begin_inset Flex URL
15951 status collapsed
15952
15953 \begin_layout Plain Layout
15954
15955 CTAN:/macros/latex/memoir/memman.pdf
15956 \end_layout
15957
15958 \end_inset
15959
15960 .
15961 \end_layout
15962
15963 \end_inset
15964
15965  for details.
15966 \end_layout
15967
15968 \begin_layout Description
15969 Abstract: You may wonder why an abstract is an extra feature.
15970  Well, it is in book class.
15971  Usually books don't have abstracts.
15972  Memoir, however, has.
15973  You can use it wherever and how often you like.
15974 \end_layout
15975
15976 \begin_layout Description
15977 Chapterprecis: You may know this older typesetting style: The contents of
15978  a chapter are summarized below the title and also in the table of contents
15979  (e.
15980 \begin_inset space \thinspace{}
15981 \end_inset
15982
15983 g.
15984 \begin_inset space \space{}
15985 \end_inset
15986
15987
15988 \emph on
15989 Our hero arrives in Troia; he loses some friends; he finds others
15990 \emph default
15991 ).
15992  Chapterprecis does exactly this.
15993  It is therefore only sensible below a chapter.
15994 \end_layout
15995
15996 \begin_layout Description
15997 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15998  The epigraph environment provides an elegant way of typesetting such a
15999  motto.
16000  The motto itself (text) and its author (source) are divided by a short
16001  line.
16002  Unfortunately, we have to fool \SpecialChar LyX
16003  a bit here again, since the environment
16004  needs two arguments (text and source).
16005  In this case, we have to use curly brackets (in \SpecialChar TeX
16006  mode) between the two
16007  arguments: 
16008 \emph on
16009 <smart slogan>
16010 \emph default
16011  
16012 \family typewriter
16013 }{
16014 \family default
16015  
16016 \emph on
16017 <author of the slogan>.
16018 \end_layout
16019
16020 \begin_layout Description
16021 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16022  complex figurative poems).
16023  \SpecialChar LyX
16024  can only support a few of them.
16025  One is poemtitle, which is a centered title for poems, which will also
16026  be added to the table of contents (verse is the standard environment for
16027  poems.
16028  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16029  code,
16030  because they have to be nested inside regular verse environments, which
16031  is not possible with \SpecialChar LyX
16032 ).
16033 \end_layout
16034
16035 \begin_layout Description
16036 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16037 \end_layout
16038
16039 \begin_layout Section
16040 Article (mwart), book (mwbk) and report (mwrep)
16041 \begin_inset Argument status
16042 status collapsed
16043
16044 \begin_layout Plain Layout
16045 The 
16046 \family typewriter
16047 mw
16048 \family default
16049  Classes
16050 \end_layout
16051
16052 \end_inset
16053
16054
16055 \end_layout
16056
16057 \begin_layout Standard
16058 by 
16059 \noun on
16060 Tomasz Luczak
16061 \end_layout
16062
16063 \begin_layout Standard
16064 The \SpecialChar LyX
16065  document classes 
16066 \emph on
16067 article (mwart)
16068 \emph default
16069
16070 \emph on
16071 report (mwrep)
16072 \emph default
16073  and 
16074 \emph on
16075 book
16076 \emph default
16077  
16078 \emph on
16079 (mwbk)
16080 \emph default
16081  correspond to the \SpecialChar LaTeX
16082  document classes 
16083 \family typewriter
16084 mwart.cls
16085 \family default
16086
16087 \family typewriter
16088 mwrep.cls
16089 \family default
16090  and 
16091 \family typewriter
16092 mwbk.cls
16093 \family default
16094 , resp.
16095  They are replacements for the standard document classes 
16096 \family typewriter
16097 article.cls
16098 \family default
16099
16100 \family typewriter
16101 report.cls
16102 \family default
16103  and 
16104 \family typewriter
16105 book.cls
16106 \family default
16107 , resp., and fit better to Polish typography conventions in a number of points.
16108  
16109 \end_layout
16110
16111 \begin_layout Standard
16112 Basic differences:
16113 \end_layout
16114
16115 \begin_layout Itemize
16116 Unnumbered titles (with star, e.
16117 \begin_inset space \thinspace{}
16118 \end_inset
16119
16120 g.
16121 \begin_inset space \space{}
16122 \end_inset
16123
16124
16125 \family sans
16126 Section*
16127 \family default
16128 ) are added into table of contents,
16129 \end_layout
16130
16131 \begin_layout Itemize
16132 Additional page styles:
16133 \end_layout
16134
16135 \begin_deeper
16136 \begin_layout Description
16137 uheadings header with separated lines,
16138 \end_layout
16139
16140 \begin_layout Description
16141 myheadings custom header, contents headers via commands: 
16142 \family typewriter
16143
16144 \backslash
16145 markright
16146 \family default
16147  and 
16148 \family typewriter
16149
16150 \backslash
16151 markboth
16152 \family default
16153 ,
16154 \end_layout
16155
16156 \begin_layout Description
16157 myuheadings custom header with separated lines,
16158 \end_layout
16159
16160 \begin_layout Description
16161 outer page number is placed on outer side of page
16162 \end_layout
16163
16164 \end_deeper
16165 \begin_layout Itemize
16166 Options 
16167 \end_layout
16168
16169 \begin_deeper
16170 \begin_layout Description
16171 rmheadings serif titles — default,
16172 \end_layout
16173
16174 \begin_layout Description
16175 sfheadings sansserif titles,
16176 \end_layout
16177
16178 \begin_layout Description
16179 authortitle on title page first placed is author next title — default,
16180 \end_layout
16181
16182 \begin_layout Description
16183 titleauthor on title page first placed is title next author,
16184 \end_layout
16185
16186 \begin_layout Description
16187 withmarginpar reserve place on page for margins.
16188 \end_layout
16189
16190 \end_deeper
16191 \begin_layout Section
16192 Paper
16193 \end_layout
16194
16195 \begin_layout Standard
16196 The document class 
16197 \family sans
16198 paper
16199 \family default
16200  provides an alternative to the standard 
16201 \family sans
16202 article
16203 \family default
16204  class.
16205  It provides similar functionality, but you might prefer this layout with
16206  sans serif sections, headings, and more.
16207 \end_layout
16208
16209 \begin_layout Section
16210 Rev\SpecialChar TeX
16211 4
16212 \end_layout
16213
16214 \begin_layout Standard
16215 by 
16216 \noun on
16217 Amir Karger
16218 \end_layout
16219
16220 \begin_layout Standard
16221 \begin_inset VSpace bigskip
16222 \end_inset
16223
16224
16225 \end_layout
16226
16227 \begin_layout Standard
16228 \noindent
16229 The 
16230 \family sans
16231 Revtex
16232 \begin_inset space ~
16233 \end_inset
16234
16235 4
16236 \family default
16237  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16238  4.0 (the 
16239 \begin_inset Formula $\beta$
16240 \end_inset
16241
16242  release of May, 1999) class.
16243 \end_layout
16244
16245 \begin_layout Standard
16246 \SpecialChar LyX
16247  has a 
16248 \family sans
16249 Revtex
16250 \family default
16251  textclass, which works with Rev\SpecialChar TeX
16252  3.1.
16253  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16254  2.09.
16255  That means that it doesn't interact very well with \SpecialChar LyX
16256 , which requires \SpecialChar LaTeX2e
16257 , although
16258  it has been kludged to work.
16259  Since Rev\SpecialChar TeX
16260  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16261 , \SpecialChar LyX
16262  with the
16263  
16264 \family sans
16265 Rev\SpecialChar TeX
16266
16267 \begin_inset space ~
16268 \end_inset
16269
16270 4
16271 \family default
16272  textclass should also be pretty easy to use.
16273 \end_layout
16274
16275 \begin_layout Standard
16276 These documents are supposed to be used in 
16277 \emph on
16278 addition
16279 \emph default
16280  to the Rev\SpecialChar TeX
16281  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16282  macros,
16283  and assume you'll know what to put in the preamble if necessary.
16284 \end_layout
16285
16286 \begin_layout Subsection
16287 Installation
16288 \end_layout
16289
16290 \begin_layout Standard
16291 All you need to do is install Rev\SpecialChar TeX
16292  4, as described in the package's README
16293  file.
16294  The package can be found at The Rev\SpecialChar TeX
16295  4 Web Site 
16296 \begin_inset Flex URL
16297 status collapsed
16298
16299 \begin_layout Plain Layout
16300
16301 http://publish.aps.org/revtex4/
16302 \end_layout
16303
16304 \end_inset
16305
16306 .
16307  Install it somewhere that \SpecialChar LaTeX
16308  can see it.
16309  Test it by trying to \SpecialChar LaTeX
16310  a short Rev\SpecialChar TeX
16311  4 document in some random directory (i.
16312 \begin_inset space \thinspace{}
16313 \end_inset
16314
16315 e.
16316 \begin_inset space \space{}
16317 \end_inset
16318
16319 not the directory where you installed the class file.) Then, if you reconfigure
16320  \SpecialChar LyX
16321 , it will find the class file and let you use the Rev\SpecialChar TeX
16322 4 textclass.
16323 \end_layout
16324
16325 \begin_layout Standard
16326 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16327  4 document
16328  using 
16329 \family typewriter
16330 tex2lyx
16331 \family default
16332 , or to use the 
16333 \family sans
16334 Revtex
16335 \begin_inset space ~
16336 \end_inset
16337
16338 4
16339 \family default
16340  template, found in the templates directory.
16341 \end_layout
16342
16343 \begin_layout Subsection
16344 Preamble Matter
16345 \end_layout
16346
16347 \begin_layout Standard
16348 Optional arguments to 
16349 \family typewriter
16350
16351 \backslash
16352 documentclass
16353 \family default
16354 , like 
16355 \begin_inset Quotes eld
16356 \end_inset
16357
16358 preprint
16359 \begin_inset Quotes erd
16360 \end_inset
16361
16362  and 
16363 \begin_inset Quotes eld
16364 \end_inset
16365
16366 aps
16367 \begin_inset Quotes erd
16368 \end_inset
16369
16370 , go in the 
16371 \family sans
16372 Extra
16373 \begin_inset space ~
16374 \end_inset
16375
16376 Options
16377 \family default
16378  field in the 
16379 \family sans
16380 Document
16381 \begin_inset space ~
16382 \end_inset
16383
16384 Layout
16385 \family default
16386  dialog, as usual.
16387  Remember that in Rev\SpecialChar TeX
16388 , at least one optional argument is required! 
16389 \end_layout
16390
16391 \begin_layout Standard
16392 Other preamble matter, like 
16393 \family typewriter
16394
16395 \backslash
16396 draft
16397 \family default
16398  etc.
16399 \begin_inset space ~
16400 \end_inset
16401
16402 goes in the 
16403 \family sans
16404 \SpecialChar LaTeX
16405
16406 \begin_inset space ~
16407 \end_inset
16408
16409 Preamble
16410 \family default
16411  dialog, also as usual.
16412 \end_layout
16413
16414 \begin_layout Subsection
16415 Layouts
16416 \end_layout
16417
16418 \begin_layout Standard
16419 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16420 4.0.
16421  For example, the Email layout corresponds to 
16422 \family typewriter
16423
16424 \backslash
16425 email{}
16426 \family default
16427 .
16428  Note that (at least as of Rev\SpecialChar TeX
16429  4.0 Beta), the 
16430 \family sans
16431 Address
16432 \family default
16433  and 
16434 \family sans
16435 Affiliation
16436 \family default
16437  layouts are exactly equivalent, so you shouldn't need to use both.
16438 \begin_inset Foot
16439 status collapsed
16440
16441 \begin_layout Plain Layout
16442 In case you're curious, both were included so that 
16443 \family typewriter
16444 tex2lyx
16445 \family default
16446  would be able to translate both 
16447 \family typewriter
16448
16449 \backslash
16450 address
16451 \family default
16452  and 
16453 \family typewriter
16454
16455 \backslash
16456 affiliation
16457 \family default
16458 .
16459 \end_layout
16460
16461 \end_inset
16462
16463
16464 \end_layout
16465
16466 \begin_layout Subsection
16467 Important Notes
16468 \end_layout
16469
16470 \begin_layout Standard
16471 There are a couple of important unique aspects of Rev\SpecialChar TeX
16472  4 which might cause
16473  bugs that will be even more confusing in \SpecialChar LyX
16474 .
16475 \end_layout
16476
16477 \begin_layout Standard
16478 In Rev\SpecialChar TeX
16479 , the 
16480 \family typewriter
16481
16482 \backslash
16483 thanks
16484 \family default
16485  command goes 
16486 \emph on
16487 outside
16488 \emph default
16489  the 
16490 \family typewriter
16491
16492 \backslash
16493 author
16494 \family default
16495  command.
16496  The \SpecialChar LyX
16497  equivalent is that there is a separate Thanks layout.
16498  Do 
16499 \emph on
16500 not
16501 \emph default
16502  write footnotes in the 
16503 \family sans
16504 Author
16505 \family default
16506  layout, or weird things may happen.
16507  See the Rev\SpecialChar TeX
16508  4 documentation for more details.
16509 \end_layout
16510
16511 \begin_layout Standard
16512 Also, the 
16513 \family sans
16514 Author
16515 \begin_inset space ~
16516 \end_inset
16517
16518 Email
16519 \family default
16520
16521 \family sans
16522 Author
16523 \begin_inset space ~
16524 \end_inset
16525
16526 URL
16527 \family default
16528 , and 
16529 \family sans
16530 Thanks
16531 \family default
16532  layouts must be placed 
16533 \emph on
16534 in between
16535 \emph default
16536  the 
16537 \family sans
16538 Author
16539 \family default
16540  layout and the corresponding 
16541 \family sans
16542 Address
16543 \family default
16544  (or equivalent 
16545 \family sans
16546 Affiliation
16547 \family default
16548 ) layout.
16549  If you put the 
16550 \family sans
16551 Thanks
16552 \family default
16553  after the 
16554 \family sans
16555 Address
16556 \family default
16557 , the \SpecialChar LaTeX
16558  won't compile.
16559 \end_layout
16560
16561 \begin_layout Subsection
16562 Drawbacks
16563 \end_layout
16564
16565 \begin_layout Standard
16566 The main problem with this layout is that you can't use the optional arguments
16567  to layouts like Email and Title.
16568  (The problem is not unique to this layout; you can't use optional arguments
16569  to the Section layouts either.) This means that after you export that file
16570  to \SpecialChar LaTeX
16571  (which you'll need to do eventually to send it in to APS), you'll need
16572  to edit the \SpecialChar LaTeX
16573  file with a text editor to add the optional arguments to set,
16574  e.
16575 \begin_inset space \thinspace{}
16576 \end_inset
16577
16578 g.
16579 \begin_inset space \space{}
16580 \end_inset
16581
16582 the running title for the page headers.
16583  Lacking these layouts makes the 
16584 \family typewriter
16585
16586 \backslash
16587 altaffiliation
16588 \family default
16589  (and the equivalent 
16590 \family typewriter
16591
16592 \backslash
16593 altaddress
16594 \family default
16595 ) useless, so the corresponding layouts don't exist, and will have to be
16596  added by hand.
16597 \begin_inset Foot
16598 status collapsed
16599
16600 \begin_layout Plain Layout
16601
16602 \emph on
16603 Note from JMarc:
16604 \emph default
16605  actually, \SpecialChar LyX
16606  1.3.0 supports some forms of optional arguments, but this layout
16607  has not been updated yet to take advantage of it.
16608 \end_layout
16609
16610 \end_inset
16611
16612  
16613 \end_layout
16614
16615 \begin_layout Section
16616 Springer Journals (
16617 \family sans
16618 svjour
16619 \family default
16620 )
16621 \end_layout
16622
16623 \begin_layout Standard
16624 by 
16625 \noun on
16626 Martin Vermeer
16627 \end_layout
16628
16629 \begin_layout Subsection
16630 Description
16631 \end_layout
16632
16633 \begin_layout Standard
16634 These are the layout files for some of the journal formats used by Springer
16635  Verlag and listed on 
16636 \begin_inset Flex URL
16637 status collapsed
16638
16639 \begin_layout Plain Layout
16640
16641 http://www.springer.de/author/tex/help-journals.html
16642 \end_layout
16643
16644 \end_inset
16645
16646 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16647  now!).
16648  It is a modular system: the things common to all journals are implemented
16649  in 
16650 \family typewriter
16651 svjour.inc
16652 \family default
16653 , which journal-specific layout files (such as, e.
16654 \begin_inset space \thinspace{}
16655 \end_inset
16656
16657 g.
16658 \begin_inset space \space{}
16659 \end_inset
16660
16661
16662 \family typewriter
16663 svjog.layout
16664 \family default
16665  for Journal of Geodesy) can include.
16666 \end_layout
16667
16668 \begin_layout Standard
16669 This means that implementing support for any other Springer journal on this
16670  list is as simple as writing your own 
16671 \family typewriter
16672 sv
16673 \family default
16674 <myjournal>
16675 \family typewriter
16676 .layout
16677 \family default
16678  file following the outline given in 
16679 \family typewriter
16680 svjog.layout
16681 \family default
16682 .
16683  
16684 \end_layout
16685
16686 \begin_layout Standard
16687 It is reasonably well tested only for the Journal of Geodesy.
16688  
16689 \family typewriter
16690 svjour
16691 \family default
16692  and 
16693 \family typewriter
16694 svjog
16695 \family default
16696  come with the standard \SpecialChar LyX
16697  distribution.
16698  Install the relevant class file (downloaded from Springer) in a proper
16699  directory, reconfigure \SpecialChar LaTeX
16700  (in the te\SpecialChar TeX
16701  case by running 
16702 \family typewriter
16703 texhash
16704 \family default
16705 , as root if necessary — doesn't \SpecialChar LyX
16706  take care of this?), reconfigure \SpecialChar LyX
16707  and
16708  it should work.
16709 \end_layout
16710
16711 \begin_layout Subsection
16712 New styles
16713 \end_layout
16714
16715 \begin_layout Standard
16716 A large number of theorem-like styles — 
16717 \family sans
16718 Claim, Conjecture,
16719 \family default
16720  
16721 \family sans
16722 \SpecialChar ldots
16723 Theorem
16724 \family default
16725 .
16726 \end_layout
16727
16728 \begin_layout Standard
16729
16730 \family sans
16731 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16732 _Title, Author_Running, Institute,
16733  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16734 \family default
16735 .
16736  See the Springer class file documentation for details.
16737 \end_layout
16738
16739 \begin_layout Subsection
16740 Supported journals
16741 \end_layout
16742
16743 \begin_layout Itemize
16744
16745 \emph on
16746 Journal of Geodesy
16747 \emph default
16748
16749 \family typewriter
16750 svjog.layout
16751 \family default
16752  — Martin Vermeer
16753 \end_layout
16754
16755 \begin_layout Itemize
16756
16757 \emph on
16758 Probability Theory and Related Fields
16759 \emph default
16760
16761 \family typewriter
16762 svprobth.layout
16763 \family default
16764  — Jean-Marc Lasgouttes
16765 \end_layout
16766
16767 \begin_layout Standard
16768 Add your own, it isn't so hard!
16769 \end_layout
16770
16771 \begin_layout Subsection
16772 Credits
16773 \end_layout
16774
16775 \begin_layout Standard
16776 These files are partly based on the older 
16777 \family typewriter
16778 ejour2.layout
16779 \family default
16780 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16781  2.09 style
16782  file from Springer.
16783  All this, and the 
16784 \family typewriter
16785 ejour2
16786 \family default
16787  layout, are now defunct.
16788  Jean-Marc Lasgouttes helped out big in making me find my way around the
16789  \SpecialChar LyX
16790  layout file mechanism.
16791 \end_layout
16792
16793 \begin_layout Subsection
16794 Bugs
16795 \end_layout
16796
16797 \begin_layout Standard
16798 Probably.
16799  But probably less than in the old hacked-\SpecialChar LaTeX
16800  
16801 \family typewriter
16802 ejour2
16803 \family default
16804 .
16805 \end_layout
16806
16807 \begin_layout Standard
16808 Limitations e.
16809 \begin_inset space \thinspace{}
16810 \end_inset
16811
16812 g.: does not display the number for theorem-like layouts, just #.
16813 \end_layout
16814
16815 \begin_layout Section
16816 Slides [aka 
16817 \noun on
16818 Sli\SpecialChar TeX
16819
16820 \noun default
16821 ]
16822 \begin_inset CommandInset label
16823 LatexCommand label
16824 name "sec:slitex"
16825
16826 \end_inset
16827
16828
16829 \end_layout
16830
16831 \begin_layout Standard
16832 by 
16833 \noun on
16834 John Weiss
16835 \noun default
16836  
16837 \end_layout
16838
16839 \begin_layout Subsection
16840 Introduction
16841 \end_layout
16842
16843 \begin_layout Standard
16844 This section describes how to use \SpecialChar LyX
16845  to make slides for overhead projectors.
16846  There are two document classes that can do this: the default slides class
16847  and the 
16848 \family sans
16849 Foil\SpecialChar TeX
16850
16851 \family default
16852  slides class.
16853  This section documents the former.
16854 \end_layout
16855
16856 \begin_layout Standard
16857 I'm going to say this again, nice and clear, so that there's no misunderstanding
16858 :
16859 \end_layout
16860
16861 \begin_layout Standard
16862 \begin_inset VSpace bigskip
16863 \end_inset
16864
16865
16866 \end_layout
16867
16868 \begin_layout Standard
16869 \align center
16870
16871 \size large
16872 This section documents the class 
16873 \begin_inset Quotes eld
16874 \end_inset
16875
16876
16877 \family sans
16878 slides (default)
16879 \family default
16880
16881 \begin_inset Quotes erd
16882 \end_inset
16883
16884  
16885 \emph on
16886 only.
16887 \end_layout
16888
16889 \begin_layout Standard
16890 \begin_inset VSpace bigskip
16891 \end_inset
16892
16893
16894 \end_layout
16895
16896 \begin_layout Standard
16897 If you're looking for the documentation for 
16898 \begin_inset Quotes eld
16899 \end_inset
16900
16901
16902 \family sans
16903 slides (Foil\SpecialChar TeX
16904 )
16905 \family default
16906
16907 \begin_inset Quotes erd
16908 \end_inset
16909
16910 , check out section
16911 \begin_inset space ~
16912 \end_inset
16913
16914
16915 \begin_inset CommandInset ref
16916 LatexCommand ref
16917 reference "sec:foiltex"
16918
16919 \end_inset
16920
16921 .
16922  The 
16923 \family sans
16924 foils
16925 \family default
16926  class [
16927 \begin_inset Quotes eld
16928 \end_inset
16929
16930
16931 \family sans
16932 slides (Foil\SpecialChar TeX
16933 )
16934 \family default
16935
16936 \begin_inset Quotes erd
16937 \end_inset
16938
16939 ] is actually somewhat better than the default 
16940 \family sans
16941 slides
16942 \family default
16943  class,
16944 \begin_inset Foot
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 \SpecialChar ldots
16949 or so I've been told repeatedly by its advocates.
16950  Having never used it, I have no idea if this claim is true or not.
16951 \end_layout
16952
16953 \end_inset
16954
16955  which this section documents.
16956 \end_layout
16957
16958 \begin_layout Standard
16959 This class is the \SpecialChar LaTeX2e
16960  improvement of the old 
16961 \noun on
16962 Sli\SpecialChar TeX
16963
16964 \noun default
16965  package.
16966  Every \SpecialChar LaTeX2e
16967  distribution includes this class [which I'll just refer to as 
16968 \begin_inset Quotes eld
16969 \end_inset
16970
16971
16972 \family sans
16973 slides
16974 \family default
16975
16976 \begin_inset Quotes erd
16977 \end_inset
16978
16979  from now on], so you're bound to have it.
16980  As I noted earlier, there are other classes, such as 
16981 \family sans
16982 foils
16983 \family default
16984 , which also produce slides for overhead projectors and do a better job
16985  at it.
16986  However, there are some things which 
16987 \family sans
16988 slides
16989 \family default
16990  can do which the others can't, such as generate overlays.
16991  Read on to learn more!
16992 \end_layout
16993
16994 \begin_layout Subsection
16995 Getting Started
16996 \begin_inset CommandInset label
16997 LatexCommand label
16998 name "sec:slidesetup"
16999
17000 \end_inset
17001
17002
17003 \end_layout
17004
17005 \begin_layout Standard
17006 Obviously, to use this document class, you need to select 
17007 \begin_inset Quotes eld
17008 \end_inset
17009
17010
17011 \family sans
17012 slides (default)
17013 \family default
17014
17015 \begin_inset Quotes erd
17016 \end_inset
17017
17018  from the class list in the 
17019 \family sans
17020 Document\SpecialChar menuseparator
17021 Settings
17022 \family default
17023  dialog.
17024  There are some other special things you should know about this class:
17025 \end_layout
17026
17027 \begin_layout Itemize
17028 Don't bother changing the options 
17029 \family sans
17030 Sides and Columns
17031 \family default
17032 .
17033  They're not supported by the 
17034 \family sans
17035 slides
17036 \family default
17037  class, anyways.
17038 \end_layout
17039
17040 \begin_layout Itemize
17041 The option 
17042 \family sans
17043 Page
17044 \begin_inset space ~
17045 \end_inset
17046
17047 style
17048 \family default
17049  behaves a bit differently for this class.
17050  The possible choices and what they do are as follows:
17051 \end_layout
17052
17053 \begin_deeper
17054 \begin_layout Description
17055
17056 \family sans
17057 plain
17058 \family default
17059  The final output contains page numbers in the lower right corner.
17060 \end_layout
17061
17062 \begin_layout Description
17063
17064 \family sans
17065 headings
17066 \family default
17067  Like 
17068 \family sans
17069 plain
17070 \family default
17071 , but also prints out any time markers you've put in.
17072  This is the default.
17073 \end_layout
17074
17075 \begin_layout Description
17076
17077 \family sans
17078 empty
17079 \family default
17080  The final output contains no page numbers, time markers, or alignment markers.
17081 \end_layout
17082
17083 \end_deeper
17084 \begin_layout Itemize
17085 The 
17086 \family sans
17087 slides
17088 \family default
17089  class has an extra option: 
17090 \family typewriter
17091 clock
17092 \family default
17093 .
17094  To use it, put 
17095 \begin_inset Quotes eld
17096 \end_inset
17097
17098
17099 \family typewriter
17100 clock
17101 \family default
17102
17103 \begin_inset Quotes erd
17104 \end_inset
17105
17106  in the extra class options.
17107 \end_layout
17108
17109 \begin_deeper
17110 \begin_layout Standard
17111 Using this options allows you to add time markers to 
17112 \family sans
17113 Note
17114 \family default
17115 s.
17116  See section
17117 \begin_inset space ~
17118 \end_inset
17119
17120
17121 \begin_inset CommandInset ref
17122 LatexCommand ref
17123 reference "sec:slideNote"
17124
17125 \end_inset
17126
17127  for more details.
17128 \end_layout
17129
17130 \end_deeper
17131 \begin_layout Standard
17132 You can also use the template file 
17133 \begin_inset Quotes eld
17134 \end_inset
17135
17136
17137 \family typewriter
17138 slides.lyx
17139 \family default
17140
17141 \begin_inset Quotes erd
17142 \end_inset
17143
17144  to automatically set up a document to use the 
17145 \family sans
17146 slides
17147 \family default
17148  class [using 
17149 \family sans
17150 File\SpecialChar menuseparator
17151 New
17152 \begin_inset space ~
17153 \end_inset
17154
17155 from
17156 \begin_inset space ~
17157 \end_inset
17158
17159 Template
17160 \family default
17161  to open your new document].
17162  The template file also contains some examples of the special paragraph
17163  environments used by this class.
17164  I'll describe those next.
17165 \end_layout
17166
17167 \begin_layout Subsection
17168 Paragraph Environments
17169 \end_layout
17170
17171 \begin_layout Subsubsection
17172 Supported Environments
17173 \end_layout
17174
17175 \begin_layout Standard
17176 The first thing you'll notice when you start up a new 
17177 \family sans
17178 slides
17179 \family default
17180  document is the font size and type: it's the equivalent of the size 
17181 \begin_inset Quotes eld
17182 \end_inset
17183
17184
17185 \family sans
17186 Largest
17187 \family default
17188
17189 \begin_inset Quotes erd
17190 \end_inset
17191
17192  in the 
17193 \family sans
17194 Sans
17195 \begin_inset space ~
17196 \end_inset
17197
17198 Serif
17199 \family default
17200  font.
17201  This is also what's used in the output.
17202  Think of this as a 
17203 \begin_inset Quotes eld
17204 \end_inset
17205
17206 visual cue
17207 \begin_inset Quotes erd
17208 \end_inset
17209
17210  to remind you that this is a slide.
17211  Your final slides will use a larger font; ergo, you'll have less space.
17212  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17213 \end_layout
17214
17215 \begin_layout Standard
17216 The next thing that becomes obvious is the changes to the paragraph environment
17217  pull-down box [at the far-left end of the toolbar].
17218  Most of the paragraph environments you're used to seeing are missing.
17219  There are also five new ones.
17220  That's because the 
17221 \family sans
17222 slides
17223 \family default
17224  class itself only supports certain paragraph environments:
17225 \end_layout
17226
17227 \begin_layout Itemize
17228
17229 \family sans
17230 Standard
17231 \end_layout
17232
17233 \begin_layout Itemize
17234
17235 \family sans
17236 Itemize
17237 \end_layout
17238
17239 \begin_layout Itemize
17240
17241 \family sans
17242 Enumerate
17243 \end_layout
17244
17245 \begin_layout Itemize
17246
17247 \family sans
17248 Description
17249 \end_layout
17250
17251 \begin_layout Itemize
17252
17253 \family sans
17254 List
17255 \end_layout
17256
17257 \begin_layout Itemize
17258
17259 \family sans
17260 Quotation
17261 \end_layout
17262
17263 \begin_layout Itemize
17264
17265 \family sans
17266 Quote
17267 \end_layout
17268
17269 \begin_layout Itemize
17270
17271 \family sans
17272 Verse
17273 \end_layout
17274
17275 \begin_layout Itemize
17276
17277 \family sans
17278 Caption
17279 \end_layout
17280
17281 \begin_layout Itemize
17282
17283 \family sans
17284 \SpecialChar LyX
17285 -Code
17286 \end_layout
17287
17288 \begin_layout Itemize
17289
17290 \family sans
17291 Comment
17292 \end_layout
17293
17294 \begin_layout Standard
17295 All of the other standard environments, including the section-heading environmen
17296 ts, aren't used in the 
17297 \family sans
17298 slides
17299 \family default
17300  class.
17301 \end_layout
17302
17303 \begin_layout Standard
17304 On the other hand, you'll notice the following new environments:
17305 \end_layout
17306
17307 \begin_layout Itemize
17308
17309 \family sans
17310 Slide
17311 \end_layout
17312
17313 \begin_layout Itemize
17314
17315 \family sans
17316 Overlay
17317 \end_layout
17318
17319 \begin_layout Itemize
17320
17321 \family sans
17322 Note
17323 \end_layout
17324
17325 \begin_layout Itemize
17326
17327 \family sans
17328 InvisibleText
17329 \end_layout
17330
17331 \begin_layout Itemize
17332
17333 \family sans
17334 VisibleText
17335 \end_layout
17336
17337 \begin_layout Standard
17338 These five are kind of quirky, due to a 
17339 \begin_inset Quotes eld
17340 \end_inset
17341
17342 feature
17343 \begin_inset Quotes erd
17344 \end_inset
17345
17346  in \SpecialChar LyX
17347 .
17348  You see, \SpecialChar LyX
17349  doesn't permit you to nest any other paragraph environment into
17350  an empty environment.
17351  Now, that's fine and dandy, but it means that you wouldn't be able to start
17352  a slide with anything except plain text.
17353  To deal with this, I've performed a little 
17354 \begin_inset Quotes eld
17355 \end_inset
17356
17357 \SpecialChar LaTeX
17358  magic.
17359 \begin_inset Quotes erd
17360 \end_inset
17361
17362  
17363 \end_layout
17364
17365 \begin_layout Subsubsection
17366 Quirks of the New Environments
17367 \begin_inset CommandInset label
17368 LatexCommand label
17369 name "sec:slideQuirk"
17370
17371 \end_inset
17372
17373
17374 \end_layout
17375
17376 \begin_layout Standard
17377 All five of the new paragraph environments are somewhat quirky due to inherent
17378  limitiations in the current version of \SpecialChar LyX
17379 .
17380  As I just mentioned, \SpecialChar LyX
17381  forbids environments that begin with another environment.
17382  To get around this, the 
17383 \family sans
17384 Slide
17385 \family default
17386  environment isn't a paragraph environment as described in the 
17387 \emph on
17388 User's Guide
17389 \emph default
17390 .
17391  
17392 \end_layout
17393
17394 \begin_layout Standard
17395 You should consider 
17396 \family sans
17397 Slide
17398 \family default
17399
17400 \family sans
17401 Overlay
17402 \family default
17403 , and 
17404 \family sans
17405 Note
17406 \family default
17407  to be 
17408 \begin_inset Quotes eld
17409 \end_inset
17410
17411 pseudo-environments.
17412 \begin_inset Quotes erd
17413 \end_inset
17414
17415  They look like a section heading or a 
17416 \begin_inset Quotes eld
17417 \end_inset
17418
17419
17420 \family sans
17421 Caption
17422 \family default
17423 ,
17424 \begin_inset Quotes erd
17425 \end_inset
17426
17427  but really begin a [and, if necessary, end the previous] paragraph environment.
17428  Likewise, treat 
17429 \family sans
17430 InvisibleText
17431 \family default
17432  and 
17433 \family sans
17434 VisibleText
17435 \family default
17436  as 
17437 \begin_inset Quotes eld
17438 \end_inset
17439
17440 pseudo-commands.
17441 \begin_inset Quotes erd
17442 \end_inset
17443
17444  These two perform some action.
17445 \end_layout
17446
17447 \begin_layout Standard
17448 A common feature of all five environments, 
17449 \family sans
17450 Slide
17451 \family default
17452
17453 \family sans
17454 Overlay
17455 \family default
17456
17457 \family sans
17458 Note
17459 \family default
17460
17461 \family sans
17462 InvisibleText
17463 \family default
17464  and 
17465 \family sans
17466 VisibleText
17467 \family default
17468 , is a rather long-ish label.
17469  The text following this label — ordinarily the contents of the paragraph
17470  environment — is utterly irrelevant for 
17471 \family sans
17472 Slide
17473 \family default
17474
17475 \family sans
17476 Overlay
17477 \family default
17478
17479 \family sans
17480 Note
17481 \family default
17482
17483 \family sans
17484 InvisibleText
17485 \family default
17486  and 
17487 \family sans
17488 VisibleText
17489 \family default
17490 .
17491  \SpecialChar LyX
17492  completely ignores it.
17493  In fact, you can leave these five environments completely empty.
17494  
17495 \end_layout
17496
17497 \begin_layout Standard
17498 While you don't 
17499 \emph on
17500 have
17501 \emph default
17502  to put any text after the rather long-ish label, you might want to.
17503  This could be a short description of the contents of the 
17504 \family sans
17505 Slide
17506 \family default
17507 , for example.
17508  In that case, enter your descriptive comment and hit 
17509 \family sans
17510 Return
17511 \family default
17512  as you normally would.
17513 \end_layout
17514
17515 \begin_layout Standard
17516 If, on the other hand, you don't want to enter any descriptive text, you'll
17517  hit another \SpecialChar LyX
17518  quirk.
17519  \SpecialChar LyX
17520 , like nature, abhors a vacuum, and will not let you start a new paragraph
17521  environment until you put something in the old one.
17522  So, do this:
17523 \end_layout
17524
17525 \begin_layout Itemize
17526 Start entering the text that will 
17527 \emph on
17528 follow
17529 \emph default
17530  the new 
17531 \family sans
17532 Slide
17533 \family default
17534
17535 \family sans
17536 Overlay
17537 \family default
17538
17539 \family sans
17540 Note
17541 \family default
17542
17543 \family sans
17544 InvisibleText
17545 \family default
17546  or 
17547 \family sans
17548 VisibleText
17549 \family default
17550 .
17551  
17552 \end_layout
17553
17554 \begin_layout Itemize
17555 Now move to the beginning of that paragraph.
17556  
17557 \end_layout
17558
17559 \begin_layout Itemize
17560 Next, hit 
17561 \family sans
17562 Return
17563 \family default
17564 .
17565  
17566 \end_layout
17567
17568 \begin_layout Itemize
17569 Finally, change this new, empty paragraph to a 
17570 \family sans
17571 Slide
17572 \family default
17573
17574 \family sans
17575 Overlay
17576 \family default
17577
17578 \family sans
17579 Note
17580 \family default
17581
17582 \family sans
17583 InvisibleText
17584 \family default
17585  or 
17586 \family sans
17587 VisibleText
17588 \family default
17589 .
17590  
17591 \end_layout
17592
17593 \begin_layout Standard
17594 Some future version of \SpecialChar LyX
17595  will, hopefully, resolve this quirkiness\SpecialChar ldots
17596
17597 \end_layout
17598
17599 \begin_layout Subsection
17600 Making a Presentation with 
17601 \family sans
17602 Slide
17603 \family default
17604
17605 \family sans
17606 Overlay
17607 \family default
17608  and 
17609 \family sans
17610 Note
17611 \end_layout
17612
17613 \begin_layout Subsubsection
17614 Using the 
17615 \family sans
17616 Slide
17617 \family default
17618  Environment
17619 \end_layout
17620
17621 \begin_layout Standard
17622 If you're expecting this section to teach you how to actually make a presentatio
17623 n, you'll be sorely disappointed.
17624  Naturally, I'll describe all of the ways the 
17625 \family sans
17626 slides
17627 \family default
17628  class can assist you in preparing the materials for a presentation.
17629  Filling in the contents, however, is up to you.
17630  [Then again, that 
17631 \emph on
17632 is
17633 \emph default
17634  the \SpecialChar LyX
17635  philosophy.]
17636 \end_layout
17637
17638 \begin_layout Standard
17639 Choosing the 
17640 \family sans
17641 Slide
17642 \family default
17643  environment [in the manner described in section
17644 \begin_inset space ~
17645 \end_inset
17646
17647
17648 \begin_inset CommandInset ref
17649 LatexCommand ref
17650 reference "sec:slideQuirk"
17651
17652 \end_inset
17653
17654 ] tells \SpecialChar LyX
17655  to begin a new slide [duh].
17656  The label for this environment/
17657 \begin_inset Quotes erd
17658 \end_inset
17659
17660 pseudo-command
17661 \begin_inset Quotes erd
17662 \end_inset
17663
17664  is an 
17665 \begin_inset Quotes eld
17666 \end_inset
17667
17668 ASCII line,
17669 \begin_inset Quotes erd
17670 \end_inset
17671
17672  in cool blue, followed by the label, 
17673 \begin_inset Quotes eld
17674 \end_inset
17675
17676 NewSlide:
17677 \begin_inset Quotes erd
17678 \end_inset
17679
17680 .
17681  Any text or paragraph environments that follow this one go on the new slide.
17682  It's that simple.
17683 \end_layout
17684
17685 \begin_layout Standard
17686 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17687
17688  (this can be specified in the 
17689 \family sans
17690 Paragraph Layout
17691 \family default
17692  dialog).
17693  In fact, you'll want to, once you finish entering the contents of one slide.
17694  If you've entered more text than can physically fit on a slide, the extra
17695  overflows onto a new slide.
17696  I don't recommend doing this, however, since the overflow slide won't have
17697  any page number on it.
17698  Furthermore, it may interfere with any 
17699 \family sans
17700 Overlay
17701 \family default
17702  you've made to accompany the oversized 
17703 \family sans
17704 Slide
17705 \family default
17706 .
17707 \end_layout
17708
17709 \begin_layout Standard
17710 The 
17711 \family sans
17712 Overlay
17713 \family default
17714  and 
17715 \family sans
17716 Note
17717 \family default
17718  environments work the same way as the 
17719 \family sans
17720 Slide
17721 \family default
17722  environment.
17723  They both create an 
17724 \begin_inset Quotes eld
17725 \end_inset
17726
17727 ASCII line
17728 \begin_inset Quotes erd
17729 \end_inset
17730
17731  followed by a label [
17732 \begin_inset Quotes eld
17733 \end_inset
17734
17735 NewOverlay:
17736 \begin_inset Quotes erd
17737 \end_inset
17738
17739  and 
17740 \begin_inset Quotes eld
17741 \end_inset
17742
17743 NewNote:
17744 \begin_inset Quotes erd
17745 \end_inset
17746
17747 , respectively].
17748  The color is a stunning magenta instead of blue, and the 
17749 \begin_inset Quotes eld
17750 \end_inset
17751
17752 ASCII line
17753 \begin_inset Quotes erd
17754 \end_inset
17755
17756  will look different, in style and in length.
17757  The label fonts of all three also differ from one another.
17758 \end_layout
17759
17760 \begin_layout Standard
17761 As with a 
17762 \family sans
17763 Slide
17764 \family default
17765 , if the contents of a 
17766 \family sans
17767 Note
17768 \family default
17769  or 
17770 \family sans
17771 Overlay
17772 \family default
17773  exceed the physical size of a slide or sheet of paper, the extra will overflow
17774  onto a new sheet.
17775  Again, you should avoid this.
17776  It defeats the whole purpose of 
17777 \family sans
17778 Note
17779 \family default
17780 s and 
17781 \family sans
17782 Overlay
17783 \family default
17784 s.
17785 \end_layout
17786
17787 \begin_layout Subsubsection
17788 Using 
17789 \family sans
17790 Overlay
17791 \family default
17792  with 
17793 \family sans
17794 Slide
17795 \end_layout
17796
17797 \begin_layout Standard
17798 The idea behind an 
17799 \family sans
17800 Overlay
17801 \family default
17802  is a slide that sits atop another slide.
17803  Perhaps you wish to discuss a figure on the main 
17804 \family sans
17805 Slide
17806 \family default
17807  before displaying the text associated with it.
17808  One way to accomplish this is tape a flap of dark paper over the part of
17809  the 
17810 \family sans
17811 Slide
17812 \family default
17813  you want to display later.
17814  This method fails, however, if you wish to overlap one graph with another,
17815  for example.
17816  You would then have to fumble while speaking to align the two separate,
17817  overlapping 
17818 \family sans
17819 Slide
17820 \family default
17821 s to align the two graphs.
17822  The use of an 
17823 \family sans
17824 Overlay
17825 \family default
17826  environment in both cases makes life much easier.
17827 \end_layout
17828
17829 \begin_layout Standard
17830 Each 
17831 \family sans
17832 Overlay
17833 \family default
17834  receives the page number of its 
17835 \begin_inset Quotes eld
17836 \end_inset
17837
17838 parent
17839 \begin_inset Quotes erd
17840 \end_inset
17841
17842  
17843 \family sans
17844 Slide
17845 \family default
17846 , appended by 
17847 \begin_inset Quotes eld
17848 \end_inset
17849
17850
17851 \family typewriter
17852 -a
17853 \family default
17854
17855 \begin_inset Quotes erd
17856 \end_inset
17857
17858 .
17859 \begin_inset Foot
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 Presumably, mutliple 
17864 \family sans
17865 Overlay
17866 \family default
17867 s would have 
17868 \begin_inset Quotes eld
17869 \end_inset
17870
17871
17872 \family typewriter
17873 -a
17874 \family default
17875
17876 \begin_inset Quotes erd
17877 \end_inset
17878
17879
17880 \begin_inset Quotes eld
17881 \end_inset
17882
17883
17884 \family typewriter
17885 -b
17886 \family default
17887
17888 \begin_inset Quotes erd
17889 \end_inset
17890
17891
17892 \begin_inset Quotes eld
17893 \end_inset
17894
17895
17896 \family typewriter
17897 -c
17898 \family default
17899
17900 \begin_inset Quotes erd
17901 \end_inset
17902
17903 , etc.
17904 \begin_inset space ~
17905 \end_inset
17906
17907 appended to the page number of the parent 
17908 \family sans
17909 Slide
17910 \family default
17911 .
17912  
17913 \end_layout
17914
17915 \end_inset
17916
17917  Clearly, you want the contents of both the 
17918 \family sans
17919 Slide
17920 \family default
17921  and the 
17922 \family sans
17923 Overlay
17924 \family default
17925  to each fit on a single physical slide! You should probably consider an
17926  
17927 \family sans
17928 Overlay
17929 \family default
17930  as 
17931 \begin_inset Quotes eld
17932 \end_inset
17933
17934 part of
17935 \begin_inset Quotes erd
17936 \end_inset
17937
17938  a 
17939 \family sans
17940 Slide
17941 \family default
17942 .
17943  Indeed, the \SpecialChar LyX
17944  
17945 \family sans
17946 slides
17947 \family default
17948  class provides a visual cue for this: the label at the start of an 
17949 \family sans
17950 Overlay
17951 \family default
17952  is shorter than that at the start of a 
17953 \family sans
17954 Slide
17955 \family default
17956 .
17957  Lastly, when you generate printable output, you'll find alignment markers
17958  in all four corners of both the 
17959 \family sans
17960 Overlay
17961 \family default
17962  page and its parent 
17963 \family sans
17964 Slide
17965 \family default
17966 .
17967  These will assist you in lining up the two physical slides.
17968 \end_layout
17969
17970 \begin_layout Standard
17971 The major problem in overlaying two slides is aligning the contents of the
17972  two transparencies.
17973  How much space should you leave for that graph on the second slide? Worse
17974  still, what if you want a graph and a sentence on second slide, but there
17975  is text on the main transparency that goes in between them? You could try
17976  and insert vertical space of the right size.
17977  The better way is to use 
17978 \family sans
17979 InvisibleText
17980 \family default
17981  and 
17982 \family sans
17983 VisibleText
17984 \family default
17985 .
17986 \end_layout
17987
17988 \begin_layout Standard
17989 As their names imply, 
17990 \family sans
17991 InvisibleText
17992 \family default
17993  and 
17994 \family sans
17995 VisibleText
17996 \family default
17997  are two command-like paragraph environments that make all subsequent text
17998  invisible and visible, respectively.
17999  Note from section
18000 \begin_inset space ~
18001 \end_inset
18002
18003
18004 \begin_inset CommandInset ref
18005 LatexCommand ref
18006 reference "sec:slideQuirk"
18007
18008 \end_inset
18009
18010  that you don't place anything 
18011 \emph on
18012 into
18013 \emph default
18014  these two environments, however.
18015  When you create an 
18016 \family sans
18017 InvisibleText
18018 \family default
18019 , it inserts a centered, sky-blue label into the page reading 
18020 \begin_inset Quotes eld
18021 \end_inset
18022
18023 <Invisible Text Follows>
18024 \begin_inset Quotes erd
18025 \end_inset
18026
18027 .
18028  For paragraphs following this label, the parts of the 
18029 \family sans
18030 Slide
18031 \family default
18032  [or 
18033 \family sans
18034 Overlay
18035 \family default
18036 ; it doesn't matter which] where they would be contain instead blank space.
18037  
18038 \end_layout
18039
18040 \begin_layout Standard
18041 For 
18042 \family sans
18043 VisibleText
18044 \family default
18045 , the corresponding centered label is 
18046 \begin_inset Quotes eld
18047 \end_inset
18048
18049 <Visible Text Follows>
18050 \begin_inset Quotes erd
18051 \end_inset
18052
18053  in blazing green.
18054  Paragraphs following this label behave normally.
18055  Note that the beginning of a new 
18056 \family sans
18057 Slide
18058 \family default
18059
18060 \family sans
18061 Overlay
18062 \family default
18063 , or 
18064 \family sans
18065 Note
18066 \family default
18067  automatically shuts off an 
18068 \family sans
18069 InvisibleText
18070 \family default
18071 .
18072  It's therefore not necessary to use 
18073 \family sans
18074 VisibleText
18075 \family default
18076  at the end of a 
18077 \family sans
18078 Slide
18079 \family default
18080 .
18081 \end_layout
18082
18083 \begin_layout Standard
18084 By now, it should be obvious how to create overlay transparencies using
18085  the proper combination of 
18086 \family sans
18087 InvisibleText
18088 \family default
18089  and 
18090 \family sans
18091 VisibleText
18092 \family default
18093  on a 
18094 \family sans
18095 Slide
18096 \family default
18097  and 
18098 \family sans
18099 Overlay
18100 \family default
18101 :
18102 \end_layout
18103
18104 \begin_layout Enumerate
18105 Create a 
18106 \family sans
18107 Slide
18108 \family default
18109 , including everything that will appear on it, whether on the main slide
18110  or on the 
18111 \family sans
18112 Overlay
18113 \family default
18114 .
18115 \end_layout
18116
18117 \begin_layout Enumerate
18118 Before each figure or paragraph that will appear only on the 
18119 \family sans
18120 Overlay
18121 \family default
18122 , insert an 
18123 \family sans
18124 InvisibleText
18125 \family default
18126  environment.
18127  If necessary, insert a 
18128 \family sans
18129 VisibleText
18130 \family default
18131  environment after the 
18132 \family sans
18133 Overlay
18134 \family default
18135 -only text.
18136 \end_layout
18137
18138 \begin_layout Enumerate
18139 Start an 
18140 \family sans
18141 Overlay
18142 \family default
18143  immediately following the 
18144 \family sans
18145 Slide
18146 \family default
18147 .
18148 \end_layout
18149
18150 \begin_layout Enumerate
18151 Copy the contents of this 
18152 \family sans
18153 Slide
18154 \family default
18155  into the 
18156 \family sans
18157 Overlay
18158 \family default
18159 .
18160 \end_layout
18161
18162 \begin_layout Enumerate
18163 Within the 
18164 \family sans
18165 Overlay
18166 \family default
18167 , change all of the 
18168 \family sans
18169 InvisibleText
18170 \family default
18171  lines to 
18172 \family sans
18173 VisibleText
18174 \family default
18175  and vice-versa.
18176 \end_layout
18177
18178 \begin_layout Standard
18179 That's it.
18180  You've just made an 
18181 \family sans
18182 Overlay
18183 \family default
18184 .
18185 \end_layout
18186
18187 \begin_layout Standard
18188 There's one problem with the way I've designed the \SpecialChar LyX
18189  
18190 \family sans
18191 slides
18192 \family default
18193  class: you can't make text in the middle of a paragraph invisible, nor
18194  make text in the middle of an invisible paragraph visible again.
18195  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18196  codes.
18197 \begin_inset Foot
18198 status collapsed
18199
18200 \begin_layout Plain Layout
18201 The commands of interest are: 
18202 \end_layout
18203
18204 \begin_layout Itemize
18205
18206 \family typewriter
18207 {
18208 \backslash
18209 invisible \SpecialChar ldots
18210  }
18211 \end_layout
18212
18213 \begin_layout Itemize
18214
18215 \family typewriter
18216 {
18217 \backslash
18218 visible \SpecialChar ldots
18219  }
18220 \end_layout
18221
18222 \begin_layout Plain Layout
18223 \SpecialChar ldots
18224 and need to be marked as \SpecialChar TeX
18225 .
18226  The text whose 
18227 \begin_inset Quotes eld
18228 \end_inset
18229
18230 visibility
18231 \begin_inset Quotes erd
18232 \end_inset
18233
18234  you wish to change goes in between the brackets [and after the 
18235 \family typewriter
18236
18237 \backslash
18238 invisible
18239 \family default
18240  or 
18241 \family typewriter
18242
18243 \backslash
18244 visible
18245 \family default
18246  command].
18247  If you don't know how to mark text as \SpecialChar TeX
18248 , see the appropriate section of
18249  the 
18250 \emph on
18251 User's Guide
18252 \emph default
18253 .
18254 \end_layout
18255
18256 \end_inset
18257
18258
18259 \end_layout
18260
18261 \begin_layout Subsubsection
18262 Using 
18263 \family sans
18264 Note
18265 \family default
18266  with 
18267 \family sans
18268 Slide
18269 \family default
18270
18271 \begin_inset CommandInset label
18272 LatexCommand label
18273 name "sec:slideNote"
18274
18275 \end_inset
18276
18277
18278 \end_layout
18279
18280 \begin_layout Standard
18281 Like an 
18282 \family sans
18283 Overlay
18284 \family default
18285 , a 
18286 \family sans
18287 Note
18288 \family default
18289  is associated with a 
18290 \begin_inset Quotes eld
18291 \end_inset
18292
18293 parent
18294 \begin_inset Quotes erd
18295 \end_inset
18296
18297  
18298 \family sans
18299 Slide
18300 \family default
18301 .
18302  Here, too, the \SpecialChar LyX
18303  
18304 \family sans
18305 slides
18306 \family default
18307  class provides visual cues.
18308  The label for a 
18309 \family sans
18310 Note
18311 \family default
18312  is shorter than that of a 
18313 \family sans
18314 Slide
18315 \family default
18316  [yet longer than that of an 
18317 \family sans
18318 Overlay
18319 \family default
18320 ] and, like the label of an 
18321 \family sans
18322 Overlay
18323 \family default
18324  is shockingly magenta.
18325  Additionally, the printed 
18326 \family sans
18327 Note
18328 \family default
18329  has the page number of its 
18330 \begin_inset Quotes eld
18331 \end_inset
18332
18333 parent
18334 \begin_inset Quotes erd
18335 \end_inset
18336
18337  
18338 \family sans
18339 Slide
18340 \family default
18341 , appended by 
18342 \begin_inset Quotes eld
18343 \end_inset
18344
18345
18346 \family typewriter
18347 -
18348 \family default
18349 1
18350 \begin_inset Quotes erd
18351 \end_inset
18352
18353
18354 \begin_inset Quotes eld
18355 \end_inset
18356
18357
18358 \family typewriter
18359 -
18360 \family default
18361 2
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365
18366 \begin_inset Quotes eld
18367 \end_inset
18368
18369
18370 \family typewriter
18371 -
18372 \family default
18373 3
18374 \begin_inset Quotes erd
18375 \end_inset
18376
18377 , etc.
18378  You can have multiple 
18379 \family sans
18380 Note
18381 \family default
18382 s associated with a single 
18383 \family sans
18384 Slide
18385 \family default
18386 , and, as with 
18387 \family sans
18388 Slide
18389 \family default
18390  and 
18391 \family sans
18392 Overlay
18393 \family default
18394 , you'll probably want to break up long 
18395 \family sans
18396 Note
18397 \family default
18398 s so that they fit on a single sheet of paper.
18399 \end_layout
18400
18401 \begin_layout Standard
18402 The purpose of a 
18403 \family sans
18404 Note
18405 \family default
18406  is obvious: it contains anything additional you might want to say about
18407  a 
18408 \family sans
18409 Slide
18410 \family default
18411 .
18412  It could also be used as a sheet of reminders for a particular 
18413 \family sans
18414 Slide
18415 \family default
18416 .
18417  In the case of the latter, you might want to make use of time markers.
18418  Currently, the \SpecialChar LyX
18419  
18420 \family sans
18421 slides
18422 \family default
18423  class has no 
18424 \begin_inset Quotes eld
18425 \end_inset
18426
18427 native
18428 \begin_inset Quotes erd
18429 \end_inset
18430
18431  support for time markers, a 
18432 \noun on
18433 Sli\SpecialChar TeX
18434
18435 \noun default
18436  feature.
18437  So, you'll have to resort to using the \SpecialChar LaTeX
18438  codes.
18439 \end_layout
18440
18441 \begin_layout Standard
18442 To use time markers, you'll need to specify the extra class option 
18443 \begin_inset Quotes eld
18444 \end_inset
18445
18446
18447 \family typewriter
18448 clock
18449 \family default
18450
18451 \begin_inset Quotes erd
18452 \end_inset
18453
18454  [see section
18455 \begin_inset space ~
18456 \end_inset
18457
18458
18459 \begin_inset CommandInset ref
18460 LatexCommand ref
18461 reference "sec:slidesetup"
18462
18463 \end_inset
18464
18465 ].
18466  This option turns on timing marks, which will appear in the lower-left-hand
18467  corner of every 
18468 \family sans
18469 Note
18470 \family default
18471  you generate.
18472  To set what appears in the time marker, you use the \SpecialChar LaTeX
18473  commands 
18474 \begin_inset Quotes eld
18475 \end_inset
18476
18477
18478 \family typewriter
18479
18480 \backslash
18481 settime{}
18482 \family default
18483
18484 \begin_inset Quotes erd
18485 \end_inset
18486
18487  and 
18488 \begin_inset Quotes eld
18489 \end_inset
18490
18491
18492 \family typewriter
18493
18494 \backslash
18495 addtime{}
18496 \family default
18497
18498 \begin_inset Quotes erd
18499 \end_inset
18500
18501 .
18502  The arguments of both commands are time measured in seconds.
18503  
18504 \begin_inset Quotes eld
18505 \end_inset
18506
18507
18508 \family typewriter
18509
18510 \backslash
18511 settime{}
18512 \family default
18513
18514 \begin_inset Quotes erd
18515 \end_inset
18516
18517  sets the time marker to a given time.
18518  
18519 \begin_inset Quotes eld
18520 \end_inset
18521
18522
18523 \family typewriter
18524
18525 \backslash
18526 addtime{}
18527 \family default
18528
18529 \begin_inset Quotes erd
18530 \end_inset
18531
18532  increments the time marker by the specified amount.
18533  Using time markers and 
18534 \family sans
18535 Note
18536 \family default
18537 s in this fashion, you can remind yourself how much time to spend on a particula
18538
18539 \family sans
18540 Slide
18541 \family default
18542 .
18543 \end_layout
18544
18545 \begin_layout Standard
18546 There's one last feature to describe.
18547  Clearly, you'd like to print out all of your 
18548 \family sans
18549 Slide
18550 \family default
18551 s and 
18552 \family sans
18553 Overlay
18554 \family default
18555 s on transparencies while printing all of your 
18556 \family sans
18557 Note
18558 \family default
18559 s on plain paper.
18560  However, a 
18561 \family sans
18562 Note
18563 \family default
18564  
18565 \emph on
18566 must
18567 \emph default
18568  follow the 
18569 \family sans
18570 Slide
18571 \family default
18572  with which it is associated.
18573  What's a person to do?
18574 \end_layout
18575
18576 \begin_layout Standard
18577 Luckily, there are two \SpecialChar LaTeX
18578  commands that allow you to select what to print
18579  out.
18580  Both must be placed into the preamble of your document.
18581  The command 
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  will cause the output to contain only the 
18598 \family sans
18599 Slide
18600 \family default
18601 s and 
18602 \family sans
18603 Overlay
18604 \family default
18605 s.
18606  Correspondingly, the command 
18607 \begin_inset Quotes eld
18608 \end_inset
18609
18610
18611 \family typewriter
18612
18613 \backslash
18614 onlynotes{
18615 \backslash
18616 notes}
18617 \family default
18618
18619 \begin_inset Quotes erd
18620 \end_inset
18621
18622  prevents the output of anything but 
18623 \family sans
18624 Note
18625 \family default
18626 s.
18627  I'd advise placing both commands in the preamble and initially comment
18628  both out.
18629  You can then preview your entire presentation as you write.
18630  When you're done writing, you can then uncomment one of the two to select
18631  what you want to print.
18632  I like to uncomment 
18633 \begin_inset Quotes eld
18634 \end_inset
18635
18636
18637 \family typewriter
18638
18639 \backslash
18640 onlyslides{
18641 \backslash
18642 slides}
18643 \family default
18644
18645 \begin_inset Quotes erd
18646 \end_inset
18647
18648  , print to a file with 
18649 \begin_inset Quotes eld
18650 \end_inset
18651
18652
18653 \family typewriter
18654 -slides
18655 \family default
18656
18657 \begin_inset Quotes erd
18658 \end_inset
18659
18660  in its name, comment it back out, then uncomment 
18661 \begin_inset Quotes eld
18662 \end_inset
18663
18664
18665 \family typewriter
18666
18667 \backslash
18668 onlynotes{
18669 \backslash
18670 notes}
18671 \family default
18672
18673 \begin_inset Quotes erd
18674 \end_inset
18675
18676  and print to a 
18677 \begin_inset Quotes eld
18678 \end_inset
18679
18680
18681 \family typewriter
18682 *-notes.ps
18683 \family default
18684
18685 \begin_inset Quotes erd
18686 \end_inset
18687
18688  file.
18689  I can then send either file to a printer, loading transparencies or plain
18690  paper as appropriate.
18691 \end_layout
18692
18693 \begin_layout Standard
18694 You can also provide other arguments to the 
18695 \begin_inset Quotes eld
18696 \end_inset
18697
18698
18699 \family typewriter
18700
18701 \backslash
18702 onlyslides{}
18703 \family default
18704
18705 \begin_inset Quotes erd
18706 \end_inset
18707
18708  and 
18709 \begin_inset Quotes eld
18710 \end_inset
18711
18712
18713 \family typewriter
18714
18715 \backslash
18716 onlynotes{}
18717 \family default
18718
18719 \begin_inset Quotes erd
18720 \end_inset
18721
18722  commands.
18723  See a good \SpecialChar LaTeX
18724  book for details.
18725 \end_layout
18726
18727 \begin_layout Subsection
18728 The 
18729 \family sans
18730 slides
18731 \family default
18732  Class Template File
18733 \end_layout
18734
18735 \begin_layout Standard
18736 I have also provided a template file, 
18737 \begin_inset Quotes eld
18738 \end_inset
18739
18740
18741 \family typewriter
18742 slides.lyx
18743 \family default
18744
18745 \begin_inset Quotes erd
18746 \end_inset
18747
18748 , with the 
18749 \family sans
18750 slides
18751 \family default
18752  class.
18753  To use it, begin your new presentation with 
18754 \family sans
18755 File\SpecialChar menuseparator
18756 New
18757 \begin_inset space ~
18758 \end_inset
18759
18760 from
18761 \begin_inset space ~
18762 \end_inset
18763
18764 Template
18765 \family default
18766 .
18767  Your new \SpecialChar LyX
18768  presentation file will contain an example 
18769 \family sans
18770 Slide
18771 \family default
18772  – 
18773 \family sans
18774 Overlay
18775 \family default
18776  – 
18777 \family sans
18778 Note
18779 \family default
18780  triplet.
18781  The 
18782 \family sans
18783 Slide
18784 \family default
18785  and 
18786 \family sans
18787 Overlay
18788 \family default
18789  additionally contain an example of the use of 
18790 \family sans
18791 InvisibleText
18792 \family default
18793  and 
18794 \family sans
18795 VisibleText
18796 \family default
18797 .
18798  Lastly, the preamble will contain:
18799 \end_layout
18800
18801 \begin_layout LyX-Code
18802 % Uncomment to print out only slides and overlays
18803 \end_layout
18804
18805 \begin_layout LyX-Code
18806 %
18807 \end_layout
18808
18809 \begin_layout LyX-Code
18810 %
18811 \backslash
18812 onlyslides{
18813 \backslash
18814 slides}
18815 \begin_inset Newline newline
18816 \end_inset
18817
18818  
18819 \end_layout
18820
18821 \begin_layout LyX-Code
18822 % Uncomment to print out only notes
18823 \end_layout
18824
18825 \begin_layout LyX-Code
18826 %
18827 \end_layout
18828
18829 \begin_layout LyX-Code
18830 %
18831 \backslash
18832 onlynotes{
18833 \backslash
18834 notes}
18835 \end_layout
18836
18837 \begin_layout Standard
18838 One final thing: I created this class to support the \SpecialChar LaTeX2e
18839  
18840 \begin_inset Quotes eld
18841 \end_inset
18842
18843
18844 \noun on
18845 Sli\SpecialChar TeX
18846
18847 \noun default
18848  emulation
18849 \begin_inset Quotes erd
18850 \end_inset
18851
18852  class, one of the built-in \SpecialChar LaTeX2e
18853  classes.
18854  Neither I nor the rest of the \SpecialChar LyX
18855  Team endorse or oppose the use of this built-in
18856  slide class.
18857  It's here if you want it or need it.
18858  There exist other \SpecialChar LaTeX2e
18859  classes for creating presentations, such as the 
18860 \family sans
18861 Foils
18862 \family default
18863  class [see section
18864 \begin_inset space ~
18865 \end_inset
18866
18867
18868 \begin_inset CommandInset ref
18869 LatexCommand ref
18870 reference "sec:foiltex"
18871
18872 \end_inset
18873
18874 ] or the 
18875 \begin_inset Quotes eld
18876 \end_inset
18877
18878
18879 \family typewriter
18880 seminar
18881 \family default
18882
18883 \begin_inset Quotes erd
18884 \end_inset
18885
18886  package [present on some \SpecialChar TeX
18887  distributions].
18888  The latter is not yet supported under \SpecialChar LyX
18889 .
18890 \begin_inset Foot
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 Perhaps you can take on the task\SpecialChar ldots
18895
18896 \end_layout
18897
18898 \end_inset
18899
18900  I know nothing about these other classes.
18901  Try them out to see what sort of alternative they provide.
18902 \end_layout
18903
18904 \begin_layout Chapter
18905 \SpecialChar LyX
18906  Features needing Extra Software
18907 \end_layout
18908
18909 \begin_layout Section
18910 Checking \SpecialChar TeX
18911
18912 \end_layout
18913
18914 \begin_layout Standard
18915 by 
18916 \noun on
18917 Asger Alstrup
18918 \end_layout
18919
18920 \begin_layout Subsection
18921 Introduction
18922 \end_layout
18923
18924 \begin_layout Standard
18925 If you have the 
18926 \family typewriter
18927 chktex
18928 \family default
18929  program installed
18930 \begin_inset Foot
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934
18935 \family typewriter
18936 chktex
18937 \family default
18938  is not yet available when you are using the \SpecialChar LaTeX
18939  distribution MiK\SpecialChar TeX
18940 .
18941 \end_layout
18942
18943 \end_inset
18944
18945 , you'll find in the 
18946 \family sans
18947 Tools
18948 \family default
18949  menu the entry: 
18950 \family sans
18951 Check
18952 \begin_inset space ~
18953 \end_inset
18954
18955 TeX
18956 \family default
18957 .
18958  You can get 
18959 \family typewriter
18960 chktex
18961 \family default
18962  from CTAN,
18963 \begin_inset Newline newline
18964 \end_inset
18965
18966
18967 \begin_inset CommandInset href
18968 LatexCommand href
18969 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18970 literal "false"
18971
18972 \end_inset
18973
18974 .
18975 \end_layout
18976
18977 \begin_layout Standard
18978 The 
18979 \family sans
18980 Chk\SpecialChar TeX
18981
18982 \family default
18983  package is a program that was written by 
18984 \begin_inset Flex Noun
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 Jens T.
18989 \begin_inset space ~
18990 \end_inset
18991
18992 Berger Thielemann
18993 \end_layout
18994
18995 \end_inset
18996
18997  in frustration because some constructs in \SpecialChar LaTeX
18998  are sometimes non-intuitive,
18999  and easy to forget.
19000  The program runs over your \SpecialChar LaTeX
19001  file, checks the integrity of the file, and
19002  flags some common errors.
19003  In other technical words, it is 
19004 \family typewriter
19005 lint
19006 \family default
19007  for \SpecialChar LaTeX
19008 .
19009 \end_layout
19010
19011 \begin_layout Standard
19012 Well, what is a syntax checker doing in \SpecialChar LyX
19013  which is supposed to produce correct
19014  \SpecialChar LaTeX
19015  anyways? The answer is simple: Just as 
19016 \family typewriter
19017 Lint
19018 \family default
19019  not only checks the 
19020 \emph on
19021 syntax
19022 \emph default
19023  of C programs, but also does 
19024 \emph on
19025 semantic
19026 \emph default
19027  checks for type-errors, 
19028 \family sans
19029 Chk\SpecialChar TeX
19030
19031 \family default
19032  catches some common 
19033 \emph on
19034 typographic
19035 \emph default
19036  errors, in addition to the syntactical ones.
19037  Specifically, 
19038 \family sans
19039 Chk\SpecialChar TeX
19040
19041 \family default
19042  is capable of detecting several common errors, such as
19043 \end_layout
19044
19045 \begin_layout Itemize
19046 Ellipsis detection:
19047 \begin_inset Newline newline
19048 \end_inset
19049
19050 Use \SpecialChar ldots
19051  instead of ...
19052 \end_layout
19053
19054 \begin_layout Itemize
19055 No space in front of/after parenthesis:
19056 \begin_inset Newline newline
19057 \end_inset
19058
19059 ( wrong spacing )
19060 \end_layout
19061
19062 \begin_layout Itemize
19063 Enforcement of normal space after common abbreviations:
19064 \begin_inset Newline newline
19065 \end_inset
19066
19067 e.
19068 \begin_inset space \thinspace{}
19069 \end_inset
19070
19071 g.
19072 \begin_inset space \space{}
19073 \end_inset
19074
19075 is too wide spacing.
19076 \end_layout
19077
19078 \begin_layout Itemize
19079 Enforcement of end-of-sentence space when the last sentence ends with a
19080  capital letter:
19081 \begin_inset Newline newline
19082 \end_inset
19083
19084 This is a TEST.
19085  And this is wrong spacing.
19086 \end_layout
19087
19088 \begin_layout Itemize
19089 Space in front of labels and similar commands:
19090 \begin_inset Newline newline
19091 \end_inset
19092
19093 The label should stick right up to the text to avoid falling to a wrong
19094  page.
19095  
19096 \begin_inset CommandInset label
19097 LatexCommand label
19098 name "sec:chktex"
19099
19100 \end_inset
19101
19102  
19103 \begin_inset Foot
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 This footnote is in danger of falling off to a wrong page
19108 \end_layout
19109
19110 \end_inset
19111
19112  The label is separated too much.
19113 \end_layout
19114
19115 \begin_layout Itemize
19116 Space in front of references, instead of hard spaces:
19117 \begin_inset Newline newline
19118 \end_inset
19119
19120 If you have bad luck, the text will break right between the referenced text
19121  and reference number, and that's a pity.
19122  See section 
19123 \begin_inset CommandInset ref
19124 LatexCommand ref
19125 reference "sec:chktex"
19126
19127 \end_inset
19128
19129 .
19130 \end_layout
19131
19132 \begin_layout Itemize
19133 Use of 
19134 \begin_inset Quotes eld
19135 \end_inset
19136
19137 x
19138 \begin_inset Quotes erd
19139 \end_inset
19140
19141  instead of 
19142 \begin_inset Formula $\times$
19143 \end_inset
19144
19145  between numbers:
19146 \begin_inset Newline newline
19147 \end_inset
19148
19149 2x2 looks cheap compared to 
19150 \begin_inset Formula $2\times2$
19151 \end_inset
19152
19153 .
19154 \end_layout
19155
19156 \begin_layout Standard
19157 and more \SpecialChar ldots
19158  It is an invaluable tool when you are 
19159 \begin_inset Quotes eld
19160 \end_inset
19161
19162 finishing up
19163 \begin_inset Quotes erd
19164 \end_inset
19165
19166  your document before printing, and you should run it right after the obligatory
19167  spelling check, and before you go fine tuning the typesetting.
19168 \end_layout
19169
19170 \begin_layout Subsection
19171 How to use it
19172 \end_layout
19173
19174 \begin_layout Standard
19175 If you have the program installed, usage is as simple as choosing 
19176 \family sans
19177 Tools\SpecialChar menuseparator
19178 Check
19179 \begin_inset space ~
19180 \end_inset
19181
19182 TeX
19183 \family default
19184 .
19185  This will make \SpecialChar LyX
19186  generate a \SpecialChar LaTeX
19187  file of your document, start 
19188 \family sans
19189 Chk\SpecialChar TeX
19190
19191 \family default
19192  to check it, and then make \SpecialChar LyX
19193  insert 
19194 \begin_inset Quotes eld
19195 \end_inset
19196
19197 error boxes
19198 \begin_inset Quotes erd
19199 \end_inset
19200
19201  with the warnings from 
19202 \family sans
19203 Chk\SpecialChar TeX
19204
19205 \family default
19206 , if there were any.
19207  The warnings will be placed close to the point of the mistake, and you
19208  can quickly find them by using the 
19209 \family sans
19210 Navigate\SpecialChar menuseparator
19211 Error
19212 \family default
19213  menu item, or the shortcut key 
19214 \family sans
19215 C-g
19216 \family default
19217  from the default 
19218 \family typewriter
19219 cua
19220 \family default
19221  bind file.
19222  Open the error boxes by clicking on them with the mouse, or use the shortcut
19223  key 
19224 \family sans
19225 C-i
19226 \family default
19227  from 
19228 \family typewriter
19229 cua
19230 \family default
19231  bindings, or the corresponding 
19232 \family sans
19233 C-o
19234 \family default
19235  for the alternate 
19236 \family typewriter
19237 emacs
19238 \family default
19239  bind file.
19240  Read the warning and correct the mistake, if it is a mistake.
19241  If you have trouble understanding what the warning is about, you can safely
19242  ignore it.
19243  Remember that there is a hidden layer between the document on screen and
19244  the technical details in invoking 
19245 \family sans
19246 Chk\SpecialChar TeX
19247
19248 \family default
19249 , and this gap can make some warnings seem arcane or just plain silly.
19250 \end_layout
19251
19252 \begin_layout Standard
19253 This document is an excellent testing bed for the feature, and it should
19254  provide quite a few warnings for you to fiddle with.
19255  Since computers are only so smart, expect most of the warnings to be false
19256  alarms, though.
19257 \end_layout
19258
19259 \begin_layout Subsection
19260 How to fine tune it
19261 \end_layout
19262
19263 \begin_layout Standard
19264 Sometimes, you'll find that 
19265 \family sans
19266 Chk\SpecialChar TeX
19267
19268 \family default
19269  makes more noise than suits your mood.
19270  Then you can choose not to use it, wait until your mood changes, or try
19271  to customize 
19272 \family sans
19273 Chk\SpecialChar TeX
19274
19275 \family default
19276  to get better along with you.
19277 \end_layout
19278
19279 \begin_layout Standard
19280 Although 
19281 \family sans
19282 Chk\SpecialChar TeX
19283
19284 \family default
19285  
19286 \emph on
19287 is
19288 \emph default
19289  very configurable and extensible, you should not expect to solve all problems
19290  with 
19291 \family sans
19292 Chk\SpecialChar TeX
19293
19294 \family default
19295  in \SpecialChar LyX
19296  this way.
19297  Since \SpecialChar LyX
19298  has to generate a somewhat special \SpecialChar LaTeX
19299  file to be able to match the
19300  line numbers from the 
19301 \family sans
19302 Chk\SpecialChar TeX
19303
19304 \family default
19305  output
19306 \begin_inset Foot
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 You can inspect the specific output from 
19311 \family sans
19312 chktex
19313 \family default
19314  by using 
19315 \family sans
19316 Document\SpecialChar menuseparator
19317 \SpecialChar LaTeX
19318
19319 \begin_inset space ~
19320 \end_inset
19321
19322 Log
19323 \family default
19324  right after a 
19325 \family sans
19326 chktex
19327 \family default
19328  run.
19329 \end_layout
19330
19331 \end_inset
19332
19333  to the internal document structure, some of the warnings will not appear
19334  correctly.
19335  There are two things you can do about this:
19336 \end_layout
19337
19338 \begin_layout Itemize
19339 Fine tune the 
19340 \family sans
19341 Chk\SpecialChar TeX
19342
19343 \family default
19344  invocation command line in 
19345 \begin_inset Flex Noun
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 Tools\SpecialChar menuseparator
19350 Preferences\SpecialChar menuseparator
19351 Output\SpecialChar menuseparator
19352 LaTeX\SpecialChar menuseparator
19353 CheckTeX command
19354 \end_layout
19355
19356 \end_inset
19357
19358 , or the global 
19359 \family sans
19360 Chk\SpecialChar TeX
19361
19362 \family default
19363  installation configuration file (usually with the file 
19364 \family typewriter
19365 chktexrc
19366 \family default
19367 ).
19368  See below to learn what warnings can be enabled and disabled on the command
19369  line.
19370 \end_layout
19371
19372 \begin_layout Itemize
19373 Export your document as a raw \SpecialChar LaTeX
19374  file using 
19375 \family sans
19376 File\SpecialChar menuseparator
19377 Export\SpecialChar menuseparator
19378 \SpecialChar LaTeX
19379
19380 \family default
19381  and run 
19382 \family typewriter
19383 chktex
19384 \family default
19385  manually on that.
19386  Invoked in this way, it can be a hassle to find the corresponding place
19387  in the document inside \SpecialChar LyX
19388 , but with a little patience, you should be able
19389  to do it.
19390 \end_layout
19391
19392 \begin_layout Standard
19393 Here follows the warning messages that can be enabled and disabled in 
19394 \family sans
19395 Preferences
19396 \family default
19397 .
19398  Use 
19399 \family typewriter
19400 -n#
19401 \family default
19402  to disable a warning, and 
19403 \family typewriter
19404 -w#
19405 \family default
19406  to enable a warning.
19407  The emphasized entries are disabled by default, because the default is
19408  "
19409 \family typewriter
19410 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19411 \family default
19412 ".
19413 \end_layout
19414
19415 \begin_layout Standard
19416 Notice that you should only use the options that enable and disable warnings,
19417  because \SpecialChar LyX
19418  relies on some of the other command line parameters to be set
19419  in a specific way to have a chance to communicate with 
19420 \family typewriter
19421 chktex
19422 \family default
19423 .
19424 \end_layout
19425
19426 \begin_layout Enumerate
19427
19428 \size small
19429 \emph on
19430 Command terminated with space.
19431 \end_layout
19432
19433 \begin_layout Enumerate
19434
19435 \size small
19436 Non-breaking space (
19437 \begin_inset Quotes eld
19438 \end_inset
19439
19440
19441 \family typewriter
19442 ~
19443 \family default
19444
19445 \begin_inset Quotes erd
19446 \end_inset
19447
19448 ) should have been used.
19449 \end_layout
19450
19451 \begin_layout Enumerate
19452
19453 \size small
19454 \emph on
19455 You should enclose the previous parenthesis with 
19456 \begin_inset Quotes eld
19457 \end_inset
19458
19459
19460 \family typewriter
19461 {}
19462 \family default
19463
19464 \begin_inset Quotes erd
19465 \end_inset
19466
19467 .
19468 \end_layout
19469
19470 \begin_layout Enumerate
19471
19472 \size small
19473 Italic correction (
19474 \begin_inset Quotes eld
19475 \end_inset
19476
19477
19478 \family typewriter
19479
19480 \backslash
19481 /
19482 \family default
19483
19484 \begin_inset Quotes erd
19485 \end_inset
19486
19487 ) found in non-italic buffer.
19488 \end_layout
19489
19490 \begin_layout Enumerate
19491
19492 \size small
19493 Italic correction (
19494 \begin_inset Quotes eld
19495 \end_inset
19496
19497
19498 \family typewriter
19499
19500 \backslash
19501 /
19502 \family default
19503
19504 \begin_inset Quotes erd
19505 \end_inset
19506
19507 ) found more than once.
19508 \end_layout
19509
19510 \begin_layout Enumerate
19511
19512 \size small
19513 \emph on
19514 No italic correction (
19515 \begin_inset Quotes eld
19516 \end_inset
19517
19518
19519 \family typewriter
19520
19521 \backslash
19522 /
19523 \family default
19524
19525 \begin_inset Quotes erd
19526 \end_inset
19527
19528 ) found.
19529 \end_layout
19530
19531 \begin_layout Enumerate
19532
19533 \size small
19534 Accent command 
19535 \begin_inset Quotes eld
19536 \end_inset
19537
19538
19539 \family typewriter
19540 cmd
19541 \family default
19542
19543 \begin_inset Quotes erd
19544 \end_inset
19545
19546  needs use of 
19547 \begin_inset Quotes eld
19548 \end_inset
19549
19550
19551 \family typewriter
19552 cmd
19553 \family default
19554
19555 \begin_inset Quotes erd
19556 \end_inset
19557
19558 .
19559 \end_layout
19560
19561 \begin_layout Enumerate
19562
19563 \size small
19564 Wrong length of dash may have been used.
19565 \end_layout
19566
19567 \begin_layout Enumerate
19568
19569 \size small
19570 \emph on
19571 \begin_inset Quotes eld
19572 \end_inset
19573
19574
19575 \family typewriter
19576 %s
19577 \family default
19578
19579 \begin_inset Quotes erd
19580 \end_inset
19581
19582  expected, found 
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586
19587 \family typewriter
19588 %s
19589 \family default
19590
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594 .
19595 \end_layout
19596
19597 \begin_layout Enumerate
19598
19599 \size small
19600 Solo 
19601 \begin_inset Quotes eld
19602 \end_inset
19603
19604
19605 \family typewriter
19606 %s
19607 \family default
19608
19609 \begin_inset Quotes erd
19610 \end_inset
19611
19612  found.
19613 \end_layout
19614
19615 \begin_layout Enumerate
19616
19617 \size small
19618 You should use 
19619 \begin_inset Quotes eld
19620 \end_inset
19621
19622
19623 \family typewriter
19624 %s
19625 \family default
19626
19627 \begin_inset Quotes erd
19628 \end_inset
19629
19630  to achieve an ellipsis.
19631 \end_layout
19632
19633 \begin_layout Enumerate
19634
19635 \size small
19636 Inter-word spacing (
19637 \begin_inset Quotes eld
19638 \end_inset
19639
19640
19641 \family typewriter
19642
19643 \backslash
19644
19645 \family default
19646  
19647 \begin_inset Quotes eld
19648 \end_inset
19649
19650 ) should perhaps be used.
19651 \end_layout
19652
19653 \begin_layout Enumerate
19654
19655 \size small
19656 Inter-sentence spacing (
19657 \begin_inset Quotes eld
19658 \end_inset
19659
19660
19661 \family typewriter
19662
19663 \backslash
19664 @
19665 \family default
19666
19667 \begin_inset Quotes erd
19668 \end_inset
19669
19670 ) should perhaps be used.
19671 \end_layout
19672
19673 \begin_layout Enumerate
19674
19675 \size small
19676 Could not find argument for command.
19677 \end_layout
19678
19679 \begin_layout Enumerate
19680
19681 \size small
19682 No match found for 
19683 \begin_inset Quotes eld
19684 \end_inset
19685
19686
19687 \family typewriter
19688 %s
19689 \family default
19690
19691 \begin_inset Quotes erd
19692 \end_inset
19693
19694 .
19695 \end_layout
19696
19697 \begin_layout Enumerate
19698
19699 \size small
19700 Math mode still on at end of \SpecialChar LaTeX
19701  file.
19702 \end_layout
19703
19704 \begin_layout Enumerate
19705
19706 \size small
19707 Number of 
19708 \begin_inset Quotes eld
19709 \end_inset
19710
19711
19712 \family typewriter
19713 char
19714 \family default
19715
19716 \begin_inset Quotes erd
19717 \end_inset
19718
19719  doesn't match the number of 
19720 \begin_inset Quotes eld
19721 \end_inset
19722
19723
19724 \family typewriter
19725 char
19726 \family default
19727
19728 \begin_inset Quotes erd
19729 \end_inset
19730
19731 .
19732 \end_layout
19733
19734 \begin_layout Enumerate
19735
19736 \size small
19737 You should use either 
19738 \family typewriter
19739
19740 \begin_inset Quotes eld
19741 \end_inset
19742
19743
19744 \family default
19745  or 
19746 \family typewriter
19747
19748 \begin_inset Quotes erd
19749 \end_inset
19750
19751
19752 \family default
19753  as an alternative to 
19754 \begin_inset Quotes eld
19755 \end_inset
19756
19757
19758 \family typewriter
19759 "
19760 \family default
19761
19762 \begin_inset Quotes erd
19763 \end_inset
19764
19765 .
19766 \end_layout
19767
19768 \begin_layout Enumerate
19769
19770 \size small
19771 You should use "
19772 \family typewriter
19773 '
19774 \family default
19775 " (ASCII 39) instead of "
19776 \family typewriter
19777 ´
19778 \family default
19779 " (ASCII 180).
19780 \end_layout
19781
19782 \begin_layout Enumerate
19783
19784 \size small
19785 User-specified pattern found.
19786 \end_layout
19787
19788 \begin_layout Enumerate
19789
19790 \size small
19791 This command might not be intended.
19792 \end_layout
19793
19794 \begin_layout Enumerate
19795
19796 \size small
19797 \emph on
19798 Comment displayed.
19799 \end_layout
19800
19801 \begin_layout Enumerate
19802
19803 \size small
19804 Either 
19805 \family typewriter
19806 ''
19807 \backslash
19808 ,'
19809 \family default
19810  or 
19811 \family typewriter
19812 '
19813 \backslash
19814 ,''
19815 \family default
19816  will look better.
19817 \end_layout
19818
19819 \begin_layout Enumerate
19820
19821 \size small
19822 Delete this space to maintain correct page references.
19823 \end_layout
19824
19825 \begin_layout Enumerate
19826
19827 \size small
19828 \emph on
19829 You might wish to put this between a pair of 
19830 \begin_inset Quotes eld
19831 \end_inset
19832
19833
19834 \family typewriter
19835 {}
19836 \family default
19837
19838 \begin_inset Quotes erd
19839 \end_inset
19840
19841 .
19842 \end_layout
19843
19844 \begin_layout Enumerate
19845
19846 \size small
19847 You ought to remove spaces in front of punctuation.
19848 \end_layout
19849
19850 \begin_layout Enumerate
19851
19852 \size small
19853 Could not execute \SpecialChar LaTeX
19854  command.
19855 \end_layout
19856
19857 \begin_layout Enumerate
19858
19859 \size small
19860 Don't use 
19861 \family typewriter
19862
19863 \backslash
19864 /
19865 \family default
19866  in front of small punctuation.
19867 \end_layout
19868
19869 \begin_layout Enumerate
19870
19871 \family typewriter
19872 \size small
19873 $
19874 \backslash
19875 times$
19876 \family default
19877  may look prettier here.
19878 \end_layout
19879
19880 \begin_layout Enumerate
19881
19882 \size small
19883 \emph on
19884 Multiple spaces detected in output.
19885 \end_layout
19886
19887 \begin_layout Enumerate
19888
19889 \size small
19890 This text may be ignored.
19891 \end_layout
19892
19893 \begin_layout Enumerate
19894
19895 \size small
19896 Use 
19897 \family typewriter
19898
19899 \begin_inset Quotes eld
19900 \end_inset
19901
19902
19903 \family default
19904  to begin quotation, not 
19905 \family typewriter
19906 '
19907 \family default
19908 .
19909 \end_layout
19910
19911 \begin_layout Enumerate
19912
19913 \size small
19914 Use 
19915 \family typewriter
19916 '
19917 \family default
19918  to end quotation, not 
19919 \family typewriter
19920
19921 \begin_inset Quotes eld
19922 \end_inset
19923
19924
19925 \family default
19926 .
19927 \end_layout
19928
19929 \begin_layout Enumerate
19930
19931 \size small
19932 Don't mix quotes.
19933 \end_layout
19934
19935 \begin_layout Enumerate
19936
19937 \size small
19938 You should perhaps use 
19939 \begin_inset Quotes eld
19940 \end_inset
19941
19942
19943 \family typewriter
19944 cmd
19945 \family default
19946
19947 \begin_inset Quotes erd
19948 \end_inset
19949
19950  instead.
19951 \end_layout
19952
19953 \begin_layout Enumerate
19954
19955 \size small
19956 You should put a space in front of/after parenthesis.
19957 \end_layout
19958
19959 \begin_layout Enumerate
19960
19961 \size small
19962 You should avoid spaces in front of/after parenthesis.
19963 \end_layout
19964
19965 \begin_layout Enumerate
19966
19967 \size small
19968 \emph on
19969 You should not use punctuation in front of/after quotes.
19970 \end_layout
19971
19972 \begin_layout Enumerate
19973
19974 \size small
19975 Double space found.
19976 \end_layout
19977
19978 \begin_layout Enumerate
19979
19980 \size small
19981 You should put punctuation outside inner/inside display math mode.
19982 \end_layout
19983
19984 \begin_layout Enumerate
19985
19986 \size small
19987 You ought to not use primitive \SpecialChar TeX
19988  in \SpecialChar LaTeX
19989  code.
19990 \end_layout
19991
19992 \begin_layout Enumerate
19993
19994 \size small
19995 You should remove spaces in front of 
19996 \begin_inset Quotes eld
19997 \end_inset
19998
19999
20000 \family typewriter
20001 %s
20002 \family default
20003
20004 \begin_inset Quotes erd
20005 \end_inset
20006
20007
20008 \end_layout
20009
20010 \begin_layout Enumerate
20011
20012 \size small
20013 \begin_inset Quotes eld
20014 \end_inset
20015
20016
20017 \family typewriter
20018 %s
20019 \family default
20020
20021 \begin_inset Quotes erd
20022 \end_inset
20023
20024  is normally not followed by 
20025 \begin_inset Quotes eld
20026 \end_inset
20027
20028
20029 \family typewriter
20030 %c
20031 \family default
20032
20033 \begin_inset Quotes erd
20034 \end_inset
20035
20036 .
20037 \end_layout
20038
20039 \begin_layout Standard
20040 In later versions of \SpecialChar LyX
20041 , we hope to provide a more complete interface to this
20042  tool (and it's smaller cousin 
20043 \family typewriter
20044 lacheck
20045 \family default
20046 ) to exploit the full power of it.
20047  But it's not exactly useless as it is now: go try it on one of your existing
20048  documents of a certain length and be surprised.
20049 \end_layout
20050
20051 \begin_layout Section
20052 Version Control in \SpecialChar LyX
20053
20054 \end_layout
20055
20056 \begin_layout Standard
20057 by
20058 \noun on
20059  Lars Gullik Bjønnes 
20060 \noun default
20061 and 
20062 \noun on
20063 Pavel Sanda
20064 \end_layout
20065
20066 \begin_layout Subsection
20067 Introduction
20068 \end_layout
20069
20070 \begin_layout Standard
20071 \SpecialChar LyX
20072  supports some of the most basic RCS/CVS/SVN/GIT commands.
20073  If you need something a bit more sophisticated you will have to do that
20074  manually in a terminal.
20075 \end_layout
20076
20077 \begin_layout Standard
20078 Also note that CVS support is not as good as subversion support so we advise
20079  using SVN instead.
20080  A good place to start learning Subversion is SVN Book
20081 \begin_inset Foot
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085 \begin_inset CommandInset href
20086 LatexCommand href
20087 target "http://svnbook.red-bean.com/"
20088 literal "false"
20089
20090 \end_inset
20091
20092
20093 \end_layout
20094
20095 \end_inset
20096
20097 .
20098  In the case of RCS you should read 
20099 \begin_inset Quotes eld
20100 \end_inset
20101
20102 rcsintro
20103 \begin_inset Quotes erd
20104 \end_inset
20105
20106  (a man file, read it with 
20107 \family typewriter
20108 man rcsintro
20109 \family default
20110 ).
20111  This file describes all the basic features of RCS.
20112  You should especially notice the comment about a RCS directory, and the
20113  notion of a master RCS file (the file ending in 
20114 \family typewriter
20115 ,v
20116 \family default
20117 ).
20118 \end_layout
20119
20120 \begin_layout Standard
20121 Before you begin to use the version control features in \SpecialChar LyX
20122 , you should be
20123  familiar with RCS/CVS/SVN/GIT usage.
20124  The implementation in \SpecialChar LyX
20125  assumes a recent version of the GNU RCS or CVS/SVN
20126  package — no guarantees are made for older versions.
20127  Most of the log messages are not currently displayed after operations —
20128  you can check them in the Messages pane if unsure.
20129  Regular users of version control will appreciate VC toolbar, which can
20130  be enabled via 
20131 \family sans
20132 View\SpecialChar menuseparator
20133 Toolbars\SpecialChar menuseparator
20134 Version
20135 \begin_inset space ~
20136 \end_inset
20137
20138 Control
20139 \family default
20140 .
20141 \end_layout
20142
20143 \begin_layout Standard
20144 For introducing your own external commands consult vc-command in the manual
20145  of \SpecialChar LyX
20146  functions.
20147 \end_layout
20148
20149 \begin_layout Standard
20150 It is strongly recommended to store documents in uncompressed format if
20151  using version control (uncheck 
20152 \family sans
20153 Document\SpecialChar menuseparator
20154 Compressed
20155 \family default
20156  if it is checked): Uncompressed LyX documents are text files and therefore
20157  for merging two different versions by version control systems.
20158  Compressed LyX documents are binary files, which cannot be merged by version
20159  control systems.
20160 \end_layout
20161
20162 \begin_layout Subsection
20163 RCS commands in \SpecialChar LyX
20164
20165 \end_layout
20166
20167 \begin_layout Standard
20168 The following sections describe the RCS commands supported by \SpecialChar LyX
20169 .
20170  You can find them in the 
20171 \family sans
20172 File\SpecialChar menuseparator
20173 Version
20174 \begin_inset space ~
20175 \end_inset
20176
20177 Control
20178 \family default
20179  submenu.
20180  \SpecialChar LyX
20181  was tested against RCS 5.7/5.8.
20182 \end_layout
20183
20184 \begin_layout Subsubsection
20185
20186 \family sans
20187 Register
20188 \end_layout
20189
20190 \begin_layout Standard
20191 If your document is not under revision control, this is the only item shown
20192  in the menu.
20193  And if it is under revision control, the 
20194 \family sans
20195 Register
20196 \family default
20197  item is not visible.
20198  
20199 \end_layout
20200
20201 \begin_layout Standard
20202 This command registers your document with RCS (unless you are under the
20203  directory managed by CVS)\SpecialChar endofsentence
20204  You are asked interactively to supply an initial
20205  description of the document.
20206  The document is now set in Read-Only mode and you have to 
20207 \family sans
20208 Check
20209 \begin_inset space ~
20210 \end_inset
20211
20212 Out
20213 \begin_inset space ~
20214 \end_inset
20215
20216 For
20217 \begin_inset space ~
20218 \end_inset
20219
20220 Edit
20221 \family default
20222 , before making any changes to it.
20223  A document under revision control has a 
20224 \begin_inset Quotes eld
20225 \end_inset
20226
20227 [RCS:<version> <locker>]
20228 \begin_inset Quotes erd
20229 \end_inset
20230
20231  item tagged to the filename in the minibuffer.
20232 \end_layout
20233
20234 \begin_layout Standard
20235 RCS command that is run: 
20236 \family typewriter
20237 ci -q -u -i -t-"<initial description>" <file-name>
20238 \end_layout
20239
20240 \begin_layout Standard
20241 Read 
20242 \family typewriter
20243 man ci
20244 \family default
20245  to understand the switches.
20246  
20247 \end_layout
20248
20249 \begin_layout Subsubsection
20250
20251 \family sans
20252 Check In Changes
20253 \end_layout
20254
20255 \begin_layout Standard
20256 When you are finished editing a file, you check in your changes.
20257  When you do this, you are asked for a description of the changes.
20258  This is stored in the history log.
20259  The version number is bumped, your changes are applied to the master RCS
20260  file, the document is unlocked and set to Read-Only mode.
20261 \end_layout
20262
20263 \begin_layout Standard
20264 RCS command: 
20265 \family typewriter
20266 ci -q -u -m"<description>" <file-name>
20267 \end_layout
20268
20269 \begin_layout Subsubsection
20270
20271 \family sans
20272 Check Out For Edit
20273 \end_layout
20274
20275 \begin_layout Standard
20276 By doing this you lock the document so that only you can edit it.
20277  This will also make the document Read-Write only for you.
20278  You will usually continue editing for a while and when you are finished
20279  you check in your changes.
20280  The status line is changed to reflect that you have locked the file.
20281 \end_layout
20282
20283 \begin_layout Standard
20284 RCS command: 
20285 \family typewriter
20286 co -q -l <file-name>
20287 \end_layout
20288
20289 \begin_layout Subsubsection
20290
20291 \family sans
20292 Revert To Repository Version
20293 \end_layout
20294
20295 \begin_layout Standard
20296 This will discard all changes made to the document since the last check
20297  in.
20298  You get a warning before changes are discarded.
20299 \end_layout
20300
20301 \begin_layout Standard
20302 RCS command: 
20303 \family typewriter
20304 co -f -u<version> <file-name>
20305 \end_layout
20306
20307 \begin_layout Subsubsection
20308
20309 \family sans
20310 Copy
20311 \end_layout
20312
20313 \begin_layout Standard
20314 This will create a copy of the current document.
20315  Since RCS does not support copy operations natively, the version history
20316  is not preserved, and the copy is added as a new file.
20317  It requires a clean document without any changes since the last checkin.
20318  You are asked for a file name and a description of the copy operation.
20319  After that the copy is created, both locally and in the repository.
20320  If the parent directories of the copied and original document differ, all
20321  relative paths of included files of the copy are adjusted (like in 
20322 \family sans
20323 File\SpecialChar menuseparator
20324 Save As
20325 \family default
20326 \SpecialChar ldots
20327 ).
20328  Finally, the copy is loaded instead of the original document.
20329 \end_layout
20330
20331 \begin_layout Labeling
20332 \labelwidthstring 00.00.0000
20333 RCS
20334 \begin_inset space ~
20335 \end_inset
20336
20337 commands: 
20338 \begin_inset space ~
20339 \end_inset
20340
20341
20342 \begin_inset Newline newline
20343 \end_inset
20344
20345 Copy 
20346 \begin_inset Flex Code
20347 status collapsed
20348
20349 \begin_layout Plain Layout
20350
20351 \family typewriter
20352 \begin_inset Quotes eld
20353 \end_inset
20354
20355 <file-name>
20356 \begin_inset Quotes erd
20357 \end_inset
20358
20359
20360 \end_layout
20361
20362 \end_inset
20363
20364  to 
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369
20370 \family typewriter
20371 \begin_inset Quotes eld
20372 \end_inset
20373
20374 <new-file-name>
20375 \begin_inset Quotes erd
20376 \end_inset
20377
20378
20379 \end_layout
20380
20381 \end_inset
20382
20383
20384 \begin_inset Newline newline
20385 \end_inset
20386
20387
20388 \begin_inset Flex Code
20389 status collapsed
20390
20391 \begin_layout Plain Layout
20392 ci -q -u 
20393 \family typewriter
20394 -i 
20395 \begin_inset Quotes eld
20396 \end_inset
20397
20398 <new-file-name>
20399 \begin_inset Quotes erd
20400 \end_inset
20401
20402
20403 \end_layout
20404
20405 \end_inset
20406
20407
20408 \end_layout
20409
20410 \begin_layout Subsubsection
20411
20412 \family sans
20413 Undo Last Checkin
20414 \end_layout
20415
20416 \begin_layout Standard
20417 This makes as if the last check in never happened.
20418  No changes are made to the document loaded into \SpecialChar LyX
20419 , but the last version
20420  is removed from the master RCS file.
20421 \end_layout
20422
20423 \begin_layout Standard
20424 RCS command: 
20425 \family typewriter
20426 rcs -o<version> <file-name>
20427 \end_layout
20428
20429 \begin_layout Subsubsection
20430
20431 \family sans
20432 Show History
20433 \end_layout
20434
20435 \begin_layout Standard
20436 This shows the complete history of the RCS document.
20437  The output of 
20438 \family typewriter
20439 rlog <file-name>
20440 \family default
20441  is shown in a browser.
20442  See 
20443 \family typewriter
20444 man rlog
20445 \family default
20446  for more info.
20447 \end_layout
20448
20449 \begin_layout Subsubsection
20450 Revision info
20451 \end_layout
20452
20453 \begin_layout Standard
20454 \SpecialChar LyX
20455  supports RCS version number, author name, date and time of last commit.
20456  All those are extracted from 
20457 \family typewriter
20458 rlog -r <file-name>
20459 \family default
20460 .
20461  See 
20462 \begin_inset CommandInset ref
20463 LatexCommand ref
20464 reference "subsec:VCS-Revision-Information"
20465
20466 \end_inset
20467
20468  for details.
20469 \end_layout
20470
20471 \begin_layout Subsection
20472 CVS commands in \SpecialChar LyX
20473
20474 \end_layout
20475
20476 \begin_layout Standard
20477 A subset of CVS operations is supported by \SpecialChar LyX
20478 .
20479  You can find the commands in the 
20480 \family sans
20481 File\SpecialChar menuseparator
20482 Version
20483 \begin_inset space ~
20484 \end_inset
20485
20486 Control
20487 \family default
20488  submenu.
20489  The version control system SVN is more powerful, so please use it instead
20490  of CVS if possible.
20491 \end_layout
20492
20493 \begin_layout Subsubsection
20494
20495 \family sans
20496 General CVS usage
20497 \end_layout
20498
20499 \begin_layout Standard
20500 If you start from scratch with CVS you have to create your repository and
20501  checkout the working copy with external tools.
20502  If you're using a client-server setup you may need to login before doing
20503  the first repository checkout.
20504 \end_layout
20505
20506 \begin_layout Standard
20507 If your documents are under revision control and others are using the same
20508  repository problems arise when different changes to the same document at
20509  the same location happen.
20510  Standard CVS repositories don't operate with a file locking mechanism.
20511  This may be surprising, but conflicts only occur if people disagree on
20512  the proper content of the same part of a document.
20513  So, if co-workers are used to communicate regularly, these conflicts occur
20514  rarely.
20515  If they don't communicate they have a fundamental problem anyway.
20516  Nevertheless some people like to work with so called 
20517 \begin_inset Quotes eld
20518 \end_inset
20519
20520 reserved checkouts
20521 \begin_inset Quotes erd
20522 \end_inset
20523
20524 .
20525  If they do so the working copy of all files is readonly when checked out
20526  first and the user starts editing after using a special command to make
20527  the working copy writable.
20528  When the changes are checked in the working copy returns to readonly state.
20529  With \SpecialChar LyX
20530  one has to edit the 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 .cvsrc
20536 \end_layout
20537
20538 \end_inset
20539
20540  file and add the line 
20541 \begin_inset Flex Code
20542 status collapsed
20543
20544 \begin_layout Plain Layout
20545 cvs -r
20546 \end_layout
20547
20548 \end_inset
20549
20550  to work with reserved checkouts.
20551  The benefit is the possibility to see who is using a writable copy of some
20552  document.
20553  It's not guaranteed only one user makes a copy writable.
20554 \end_layout
20555
20556 \begin_layout Standard
20557 \SpecialChar LyX
20558  tries to guess if you're using reserved or non-reserved checkouts.
20559  If your working copy is readonly or it is writable and an additional copy
20560  of your document exists in the CVS/Base sub-directory a reserved otherwise
20561  a non-reserved checkout is assumed.
20562  When a reserved checkout is detected you have to use 
20563 \begin_inset Flex Noun
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567 Check Out
20568 \end_layout
20569
20570 \end_inset
20571
20572  to make your working copy writable if it's readonly.
20573  After doing so the 
20574 \begin_inset Flex Noun
20575 status collapsed
20576
20577 \begin_layout Plain Layout
20578 Check In
20579 \end_layout
20580
20581 \end_inset
20582
20583  operation is possible and that makes your working copy readonly again after
20584  transferring your changes to the repository.
20585 \end_layout
20586
20587 \begin_layout Standard
20588 More information about CVS can be found here 
20589 \begin_inset Flex URL
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593
20594 http://www.nongnu.org/cvs
20595 \end_layout
20596
20597 \end_inset
20598
20599  and here 
20600 \begin_inset Flex URL
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604
20605 http://ximbiot.com/cvs
20606 \end_layout
20607
20608 \end_inset
20609
20610 .
20611 \end_layout
20612
20613 \begin_layout Standard
20614 Read 
20615 \family typewriter
20616 man cvs
20617 \family default
20618  to understand the sub-commands and the switches mentioned below.
20619 \end_layout
20620
20621 \begin_layout Subsubsection
20622
20623 \family sans
20624 Register
20625 \end_layout
20626
20627 \begin_layout Standard
20628 If your document is not under revision control, this is the only item shown
20629  in the menu.
20630  And if it is under revision control, the 
20631 \family sans
20632 Register
20633 \family default
20634  item is not visible.
20635  
20636 \end_layout
20637
20638 \begin_layout Standard
20639 This command registers in CVS your document 
20640 \begin_inset Flex Strong
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644
20645 \emph on
20646 only
20647 \end_layout
20648
20649 \end_inset
20650
20651  in the case you have already the documents directory under CVS control
20652  (in particular 
20653 \family typewriter
20654 CVS/Entries
20655 \family default
20656  file exists).
20657  This means you have to create or checkout the archive by yourself using
20658  external tools.
20659  (In case you forget that step \SpecialChar LyX
20660  registers the document with RCS.)
20661 \end_layout
20662
20663 \begin_layout Standard
20664 Then you are asked interactively to supply an initial description of the
20665  document.
20666  Don't forget that registered file is not yet checked in.
20667 \end_layout
20668
20669 \begin_layout Standard
20670 CVS command that is run: 
20671 \family typewriter
20672 cvs -q add -m"<entered message>" "<file-name>"
20673 \end_layout
20674
20675 \begin_layout Standard
20676 The term 
20677 \family typewriter
20678 "<file-name>"
20679 \family default
20680  above and for all other CVS commands is an abbreviation for 
20681 \begin_inset Quotes eld
20682 \end_inset
20683
20684 change the current working directory to file location and use the file name
20685  without path component as argument
20686 \begin_inset Quotes erd
20687 \end_inset
20688
20689 .
20690 \end_layout
20691
20692 \begin_layout Subsubsection
20693
20694 \family sans
20695 Check In Changes
20696 \end_layout
20697
20698 \begin_layout Standard
20699 When you are finished editing a file, you commit your changes.
20700  When you do this and you had changed the document, you are asked for a
20701  description of the changes.
20702  After that changes are written to the repository.
20703  In case you didn't change the document and a reserved checkout is detected
20704  the reservation made on 
20705 \begin_inset Flex Noun
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Check Out
20710 \end_layout
20711
20712 \end_inset
20713
20714  is undone.
20715 \end_layout
20716
20717 \begin_layout Labeling
20718 \labelwidthstring 00.00.0000
20719 CVS
20720 \begin_inset space ~
20721 \end_inset
20722
20723 command: 
20724 \begin_inset space ~
20725 \end_inset
20726
20727
20728 \begin_inset Newline newline
20729 \end_inset
20730
20731
20732 \begin_inset Flex Code
20733 status collapsed
20734
20735 \begin_layout Plain Layout
20736 cvs 
20737 \family typewriter
20738 -q commit -m"<description>" "<file-name>"
20739 \end_layout
20740
20741 \end_inset
20742
20743  or
20744 \begin_inset Newline newline
20745 \end_inset
20746
20747
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 cvs -q unedit 
20753 \family typewriter
20754 "<file-name>"
20755 \end_layout
20756
20757 \end_inset
20758
20759
20760 \end_layout
20761
20762 \begin_layout Subsubsection
20763
20764 \family sans
20765 Check Out Changes
20766 \end_layout
20767
20768 \begin_layout Standard
20769 When you are sharing a repository with others, you may have to incorporate
20770  their changes into your working copy.
20771 \end_layout
20772
20773 \begin_layout Standard
20774 CVS command: 
20775 \family typewriter
20776 cvs -q update "<file-name>"
20777 \end_layout
20778
20779 \begin_layout Standard
20780 If a readonly checkout is detected the working copy is made writable and
20781  reserved.
20782 \end_layout
20783
20784 \begin_layout Standard
20785 CVS command: 
20786 \family typewriter
20787 cvs -q edit "<file-name>"
20788 \end_layout
20789
20790 \begin_layout Subsubsection
20791
20792 \family sans
20793 Revert To Repository Version
20794 \end_layout
20795
20796 \begin_layout Standard
20797 This will discard all changes made to the document since the last check
20798  in.
20799  You get a warning before changes are discarded.
20800  Firstly the file is deleted, secondly CVS update command is run.
20801 \end_layout
20802
20803 \begin_layout Standard
20804 CVS command: 
20805 \family typewriter
20806 cvs -q update "<file-name>"
20807 \end_layout
20808
20809 \begin_layout Standard
20810 If a reserved checkout is detected and the working copy has no changes only
20811  the reservation is undone.
20812 \end_layout
20813
20814 \begin_layout Standard
20815 CVS command: 
20816 \family typewriter
20817 cvs -q unedit "<file-name>"
20818 \end_layout
20819
20820 \begin_layout Subsubsection
20821
20822 \family sans
20823 Copy
20824 \end_layout
20825
20826 \begin_layout Standard
20827 This will create a copy of the current document.
20828  Since CVS does not support copy operations natively, the version history
20829  is not preserved, and the copy is added as a new file.
20830  It requires a clean document without any changes since the last checkin.
20831  You are asked for a file name and a description of the copy operation.
20832  After that the copy is created, both locally and in the repository.
20833  If the parent directories of the copied and original document differ, all
20834  relative paths of included files of the copy are adjusted (like in 
20835 \family sans
20836 File\SpecialChar menuseparator
20837 Save As
20838 \family default
20839 \SpecialChar ldots
20840 ).
20841  Finally, the copy is loaded instead of the original document.
20842 \end_layout
20843
20844 \begin_layout Labeling
20845 \labelwidthstring 00.00.0000
20846 CVS
20847 \begin_inset space ~
20848 \end_inset
20849
20850 commands: 
20851 \begin_inset space ~
20852 \end_inset
20853
20854
20855 \begin_inset Newline newline
20856 \end_inset
20857
20858 Copy 
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863
20864 \family typewriter
20865 \begin_inset Quotes eld
20866 \end_inset
20867
20868 <file-name>
20869 \begin_inset Quotes erd
20870 \end_inset
20871
20872
20873 \end_layout
20874
20875 \end_inset
20876
20877  to 
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882
20883 \family typewriter
20884 \begin_inset Quotes eld
20885 \end_inset
20886
20887 <new-file-name>
20888 \begin_inset Quotes erd
20889 \end_inset
20890
20891
20892 \end_layout
20893
20894 \end_inset
20895
20896
20897 \begin_inset Newline newline
20898 \end_inset
20899
20900
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905 cvs -q add 
20906 \family typewriter
20907
20908 \begin_inset Quotes eld
20909 \end_inset
20910
20911 <new-file-name>
20912 \begin_inset Quotes erd
20913 \end_inset
20914
20915
20916 \end_layout
20917
20918 \end_inset
20919
20920
20921 \end_layout
20922
20923 \begin_layout Subsubsection
20924
20925 \family sans
20926 Rename
20927 \end_layout
20928
20929 \begin_layout Standard
20930 This will rename the current document.
20931  Since CVS does not support rename operations natively, the version history
20932  is not preserved, the renamed document is added as a new file, and the
20933  original document is deleted.
20934  It requires a clean document without any changes since the last checkin.
20935  You are asked for a file name and a description of the rename operation.
20936  After that the document is renamed, both locally and in the repository.
20937  If the parent directories of the new and old file names differ, all relative
20938  paths of included files are adjusted (like in 
20939 \family sans
20940 File\SpecialChar menuseparator
20941 Save As
20942 \family default
20943 \SpecialChar ldots
20944 ).
20945  Finally, the document is reloaded using the new name.
20946 \end_layout
20947
20948 \begin_layout Labeling
20949 \labelwidthstring 00.00.0000
20950 CVS
20951 \begin_inset space ~
20952 \end_inset
20953
20954 commands: 
20955 \begin_inset space ~
20956 \end_inset
20957
20958
20959 \begin_inset Newline newline
20960 \end_inset
20961
20962 Rename 
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968 \family typewriter
20969 \begin_inset Quotes eld
20970 \end_inset
20971
20972 <file-name>
20973 \begin_inset Quotes erd
20974 \end_inset
20975
20976
20977 \end_layout
20978
20979 \end_inset
20980
20981  to 
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986
20987 \family typewriter
20988 \begin_inset Quotes eld
20989 \end_inset
20990
20991 <new-file-name>
20992 \begin_inset Quotes erd
20993 \end_inset
20994
20995
20996 \end_layout
20997
20998 \end_inset
20999
21000
21001 \begin_inset Newline newline
21002 \end_inset
21003
21004
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 cvs -q add 
21010 \family typewriter
21011
21012 \begin_inset Quotes eld
21013 \end_inset
21014
21015 <new-file-name>
21016 \begin_inset Quotes erd
21017 \end_inset
21018
21019
21020 \end_layout
21021
21022 \end_inset
21023
21024
21025 \begin_inset Newline newline
21026 \end_inset
21027
21028
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 cvs -q remove 
21034 \family typewriter
21035
21036 \begin_inset Quotes eld
21037 \end_inset
21038
21039 <file-name>
21040 \begin_inset Quotes erd
21041 \end_inset
21042
21043
21044 \end_layout
21045
21046 \end_inset
21047
21048
21049 \end_layout
21050
21051 \begin_layout Subsubsection
21052 Update of the local directory checkout from repository
21053 \end_layout
21054
21055 \begin_layout Standard
21056 Once your documents gets more complex, containing sub-documents and pictures,
21057  including external 
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062 .tex
21063 \end_layout
21064
21065 \end_inset
21066
21067  files and so on using version control becomes more complicated.
21068  \SpecialChar LyX
21069  supports updating the whole tree in which resides the document.
21070  This become especially useful once you cooperate with people which neither
21071  have detailed knowledge about CVS usage nor they have ambition to commit
21072  additional material to the repository.
21073  You have to organize the files structure so that all external files are
21074  in the same directory or subdirectories of the document.
21075  It's good practice anyway to store multipart documents in an extra directory.
21076 \end_layout
21077
21078 \begin_layout Standard
21079 The 
21080 \begin_inset Flex Code
21081 status collapsed
21082
21083 \begin_layout Plain Layout
21084 Update local directory from repository
21085 \end_layout
21086
21087 \end_inset
21088
21089  command updates the whole directory.
21090  If local changes are detected user is warned before update starts.
21091  In case of merge conflicts both versions of the conflicting document parts
21092  are placed in the final document.
21093  You have to review and correct the result of the merge.
21094  You'll find the conflicts enclosed in pairs of 
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 <<<<<<<
21100 \end_layout
21101
21102 \end_inset
21103
21104  and 
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 >>>>>>>
21110 \end_layout
21111
21112 \end_inset
21113
21114  separated by 
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 =======
21120 \end_layout
21121
21122 \end_inset
21123
21124 .
21125  The first part is your version as before the update operation with the
21126  document name prepended.
21127  The second one is the repository version with the version number after
21128  the sequence of 
21129 \begin_inset Flex Code
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 >
21134 \end_layout
21135
21136 \end_inset
21137
21138  signs.
21139 \end_layout
21140
21141 \begin_layout Labeling
21142 \labelwidthstring 00.00.0000
21143 CVS
21144 \begin_inset space ~
21145 \end_inset
21146
21147 commands: 
21148 \begin_inset space ~
21149 \end_inset
21150
21151
21152 \begin_inset Newline newline
21153 \end_inset
21154
21155
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 cd $path; cvs diff 
21161 \family typewriter
21162 "."
21163 \end_layout
21164
21165 \end_inset
21166
21167  (Ask if changes are detected.)
21168 \begin_inset Newline newline
21169 \end_inset
21170
21171
21172 \begin_inset Flex Code
21173 status collapsed
21174
21175 \begin_layout Plain Layout
21176 cd $path; cvs -q update 
21177 \family typewriter
21178 "."
21179 \end_layout
21180
21181 \end_inset
21182
21183
21184 \end_layout
21185
21186 \begin_layout Standard
21187 where 
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 $path
21193 \end_layout
21194
21195 \end_inset
21196
21197  stands for the path to the document.
21198 \end_layout
21199
21200 \begin_layout Subsubsection
21201
21202 \family sans
21203 Show History
21204 \end_layout
21205
21206 \begin_layout Standard
21207 This shows the complete history of the CVS document.
21208  The output of 
21209 \family typewriter
21210 cvs log "<file-name>"
21211 \family default
21212  is shown in a browser.
21213 \end_layout
21214
21215 \begin_layout Subsubsection
21216 Revision info
21217 \end_layout
21218
21219 \begin_layout Standard
21220 \SpecialChar LyX
21221  supports CVS version number, author name, date and time of last commit.
21222  All those are extracted from 
21223 \family typewriter
21224 cvs log -r <file-name>
21225 \family default
21226 .
21227  See 
21228 \begin_inset CommandInset ref
21229 LatexCommand ref
21230 reference "subsec:VCS-Revision-Information"
21231
21232 \end_inset
21233
21234  for details.
21235 \end_layout
21236
21237 \begin_layout Subsection
21238 SVN commands in \SpecialChar LyX
21239
21240 \end_layout
21241
21242 \begin_layout Standard
21243 SVN is now partially supported by \SpecialChar LyX
21244 .
21245  You can find the commands in the 
21246 \family sans
21247 File\SpecialChar menuseparator
21248 Version
21249 \begin_inset space ~
21250 \end_inset
21251
21252 Control
21253 \family default
21254  submenu.
21255  Please note that if you use password protected access to repository via
21256  ssh, you will be asked in terminal window.
21257  \SpecialChar LyX
21258  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21259 \begin_inset Foot
21260 status open
21261
21262 \begin_layout Plain Layout
21263 Most of the commands will work with 1.4 too, see 
21264 \begin_inset CommandInset ref
21265 LatexCommand ref
21266 reference "subsec:SVN-Repo-Update"
21267
21268 \end_inset
21269
21270 .
21271  There seems to be currently unresolved permissions problem under SVN 1.8
21272  with reverting changes when file is locked.
21273 \end_layout
21274
21275 \end_inset
21276
21277
21278 \end_layout
21279
21280 \begin_layout Subsubsection
21281
21282 \family sans
21283 Register
21284 \end_layout
21285
21286 \begin_layout Standard
21287 If your document is not under revision control, this is the only item shown
21288  in the menu.
21289  And if it is under revision control, the 
21290 \family sans
21291 Register
21292 \family default
21293  item is not visible.
21294 \end_layout
21295
21296 \begin_layout Standard
21297 This command registers in SVN your document ONLY in case you have already
21298  the documents directory under SVN control (in particular 
21299 \family typewriter
21300 .svn/entries
21301 \family default
21302  file exists).
21303  This means you have to checkout the archive by yourself.
21304 \end_layout
21305
21306 \begin_layout Standard
21307 Then you are asked interactively to supply an initial description of the
21308  document.
21309  Don't forget that registered file is not yet commited.
21310 \end_layout
21311
21312 \begin_layout Standard
21313 SVN command that is run: 
21314 \family typewriter
21315 svn add -q 
21316 \begin_inset Quotes eld
21317 \end_inset
21318
21319 <file-name>
21320 \begin_inset Quotes erd
21321 \end_inset
21322
21323
21324 \end_layout
21325
21326 \begin_layout Standard
21327 Read 
21328 \family typewriter
21329 man svn
21330 \family default
21331  to understand the switches.
21332 \end_layout
21333
21334 \begin_layout Subsubsection
21335
21336 \family sans
21337 Check In Changes
21338 \end_layout
21339
21340 \begin_layout Standard
21341 When you are finished editing a file, you commit your changes.
21342  When you do this, you are asked for a description of the changes.
21343  After that changes are commited.
21344 \end_layout
21345
21346 \begin_layout Standard
21347 SVN command:
21348 \begin_inset Foot
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352 In case locking is not enabled.
21353  See Section 
21354 \begin_inset CommandInset ref
21355 LatexCommand ref
21356 reference "subsec:SVN-File-Locking"
21357
21358 \end_inset
21359
21360 .
21361 \end_layout
21362
21363 \end_inset
21364
21365  
21366 \family typewriter
21367 svn commit -q -m"<description>" <file-name>
21368 \end_layout
21369
21370 \begin_layout Subsubsection
21371
21372 \family sans
21373 Check Out For Edit
21374 \end_layout
21375
21376 \begin_layout Standard
21377 Updates the changes of this file from the repository.
21378  Be sure you understand SVN merging and conflicts resolving before using
21379  this function, because all conflicts has to be resolved manually by you!
21380 \end_layout
21381
21382 \begin_layout Standard
21383 SVN command:
21384 \begin_inset Foot
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388 Ditto.
21389 \end_layout
21390
21391 \end_inset
21392
21393  
21394 \family typewriter
21395 svn update --non-interactive 
21396 \begin_inset Quotes eld
21397 \end_inset
21398
21399 <file-name>
21400 \begin_inset Quotes erd
21401 \end_inset
21402
21403
21404 \end_layout
21405
21406 \begin_layout Subsubsection
21407
21408 \family sans
21409 Revert To Repository Version
21410 \end_layout
21411
21412 \begin_layout Standard
21413 This will discard all changes made to the document since the last check
21414  in.
21415  You get a warning before changes are discarded.
21416 \end_layout
21417
21418 \begin_layout Standard
21419 SVN command: 
21420 \family typewriter
21421 svn revert -q 
21422 \begin_inset Quotes eld
21423 \end_inset
21424
21425 <file-name>
21426 \begin_inset Quotes erd
21427 \end_inset
21428
21429
21430 \end_layout
21431
21432 \begin_layout Subsubsection
21433
21434 \family sans
21435 Copy
21436 \end_layout
21437
21438 \begin_layout Standard
21439 This will create a copy of the current document including the version history.
21440  It requires a clean document without any changes since the last checkin.
21441  You are asked for a file name and a description of the copy operation.
21442  After that the copy is created, both locally and in the repository.
21443  If the parent directories of the copied and original document differ, all
21444  relative paths of included files of the copy are adjusted (like in 
21445 \family sans
21446 File\SpecialChar menuseparator
21447 Save As
21448 \family default
21449 \SpecialChar ldots
21450 ).
21451  Finally, the copy is loaded instead of the original document.
21452 \end_layout
21453
21454 \begin_layout Labeling
21455 \labelwidthstring 00.00.0000
21456 SVN
21457 \begin_inset space ~
21458 \end_inset
21459
21460 commands: 
21461 \begin_inset space ~
21462 \end_inset
21463
21464
21465 \begin_inset Newline newline
21466 \end_inset
21467
21468
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 svn copy -q 
21474 \family typewriter
21475
21476 \begin_inset Quotes eld
21477 \end_inset
21478
21479 <file-name>
21480 \begin_inset Quotes erd
21481 \end_inset
21482
21483  
21484 \begin_inset Quotes eld
21485 \end_inset
21486
21487 <new-file-name>
21488 \begin_inset Quotes erd
21489 \end_inset
21490
21491
21492 \end_layout
21493
21494 \end_inset
21495
21496
21497 \begin_inset Newline newline
21498 \end_inset
21499
21500
21501 \begin_inset Flex Code
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 svn commit
21506 \end_layout
21507
21508 \end_inset
21509
21510
21511 \end_layout
21512
21513 \begin_layout Subsubsection
21514
21515 \family sans
21516 Rename
21517 \end_layout
21518
21519 \begin_layout Standard
21520 This will rename the current document including the version history.
21521  It requires a clean document without any changes since the last checkin.
21522  You are asked for a file name and a description of the rename operation.
21523  After that the document is renamed, both locally and in the repository.
21524  If the parent directories of the new and old file names differ, all relative
21525  paths of included files are adjusted (like in 
21526 \family sans
21527 File\SpecialChar menuseparator
21528 Save As
21529 \family default
21530 \SpecialChar ldots
21531 ).
21532  Finally, the document is reloaded using the new name.
21533 \end_layout
21534
21535 \begin_layout Labeling
21536 \labelwidthstring 00.00.0000
21537 SVN
21538 \begin_inset space ~
21539 \end_inset
21540
21541 commands: 
21542 \begin_inset space ~
21543 \end_inset
21544
21545
21546 \begin_inset Newline newline
21547 \end_inset
21548
21549
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 svn move -q 
21555 \family typewriter
21556
21557 \begin_inset Quotes eld
21558 \end_inset
21559
21560 <file-name>
21561 \begin_inset Quotes erd
21562 \end_inset
21563
21564  
21565 \begin_inset Quotes eld
21566 \end_inset
21567
21568 <new-file-name>
21569 \begin_inset Quotes erd
21570 \end_inset
21571
21572
21573 \end_layout
21574
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 commit
21587 \end_layout
21588
21589 \end_inset
21590
21591
21592 \end_layout
21593
21594 \begin_layout Subsubsection
21595 \begin_inset CommandInset label
21596 LatexCommand label
21597 name "subsec:SVN-Repo-Update"
21598
21599 \end_inset
21600
21601 Update of the local directory checkout from repository
21602 \begin_inset Foot
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 Note that this command will work only with subversion 
21607 \begin_inset Formula $\geqq1.5$
21608 \end_inset
21609
21610
21611 \end_layout
21612
21613 \end_inset
21614
21615
21616 \end_layout
21617
21618 \begin_layout Standard
21619 All the commands above have one shortcomming - they deal with the current
21620  document only.
21621  Once your document contains pictures, includes external 
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 .tex
21627 \end_layout
21628
21629 \end_inset
21630
21631  files and so on administration becomes more complicated.
21632  \SpecialChar LyX
21633  now supports updating the whole tree in which resides the document
21634 \begin_inset Foot
21635 status collapsed
21636
21637 \begin_layout Plain Layout
21638 One need to organize the files structure so that all external files are
21639  in the same directory or subdirectories of the document.
21640  
21641 \end_layout
21642
21643 \end_inset
21644
21645 .
21646  This become especially useful once you cooperate with people which neither
21647  know about subversion management nor they have ambition to commit additional
21648  material to the repository.
21649  
21650 \end_layout
21651
21652 \begin_layout Standard
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 Update local directory from repository
21658 \end_layout
21659
21660 \end_inset
21661
21662  command updates the whole directory and in case of merge conflicts local
21663  version of the files are left, so no unintended data loss occurs.
21664  If local changes are detected user is warned before update starts.
21665 \end_layout
21666
21667 \begin_layout Labeling
21668 \labelwidthstring 00.00.0000
21669 SVN
21670 \begin_inset space ~
21671 \end_inset
21672
21673 commands: 
21674 \begin_inset space ~
21675 \end_inset
21676
21677
21678 \begin_inset Newline newline
21679 \end_inset
21680
21681
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 svn diff $path
21687 \end_layout
21688
21689 \end_inset
21690
21691  (Ask if changes are detected.)
21692 \begin_inset Newline newline
21693 \end_inset
21694
21695
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 svn update –accept mine-full $path
21701 \end_layout
21702
21703 \end_inset
21704
21705
21706 \end_layout
21707
21708 \begin_layout Standard
21709 where 
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 $path
21715 \end_layout
21716
21717 \end_inset
21718
21719  stands for the path to the document.
21720 \end_layout
21721
21722 \begin_layout Subsubsection
21723
21724 \family sans
21725 Show History
21726 \end_layout
21727
21728 \begin_layout Standard
21729 This shows the complete history of the SVN document.
21730  The output of 
21731 \family typewriter
21732 svn log 
21733 \begin_inset Quotes eld
21734 \end_inset
21735
21736 <file-name>
21737 \begin_inset Quotes erd
21738 \end_inset
21739
21740
21741 \family default
21742  is shown in a browser.
21743 \end_layout
21744
21745 \begin_layout Subsubsection
21746 File Locking
21747 \begin_inset CommandInset label
21748 LatexCommand label
21749 name "subsec:SVN-File-Locking"
21750
21751 \end_inset
21752
21753
21754 \end_layout
21755
21756 \begin_layout Standard
21757 The file exchange through various revision control systems brings the problem
21758  of merge conflicts in case two different users try to edit the same (parts
21759  of) document.
21760  When such a conflict happens it needs manual resolving and one reasonable
21761  alternative is to provide some kind of locking mechanism, which guarantees
21762  that only one user is allowed to edit file at the given time.
21763 \end_layout
21764
21765 \begin_layout Standard
21766 SVN has two such mechanisms to provide mutual exclusivity for file access
21767  - locks and automatic setting of write permissions (see sec.
21768  
21769 \begin_inset CommandInset ref
21770 LatexCommand ref
21771 reference "subsec:Automatical-Locking-Property"
21772
21773 \end_inset
21774
21775 ) based on 
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 svn:needs-lock
21781 \end_layout
21782
21783 \end_inset
21784
21785  file svn property
21786 \begin_inset Foot
21787 status open
21788
21789 \begin_layout Plain Layout
21790 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21791 \end_layout
21792
21793 \end_inset
21794
21795 .
21796  If this property is detected for a given document \SpecialChar LyX
21797  starts to use SVN locks
21798  for document editing automatically and the whole check-in/out mechanism
21799  switches to the same regimen as for RCS.
21800  This in particular means there are two different modes of file use in \SpecialChar LyX
21801 :
21802 \end_layout
21803
21804 \begin_layout Itemize
21805 Unlocked state.
21806  The loaded file is in the read-only mode.
21807  For editing on needs to check-out.
21808  
21809 \emph on
21810 Check-out
21811 \emph default
21812  consists of updating from the repository and gaining write lock.
21813  If the lock is not possible to obtain, we remain in unlocked state.
21814 \end_layout
21815
21816 \begin_layout Itemize
21817 Locked state.
21818  The loaded file is in the 'normal' edit mode.
21819  No other user is allowed to edit the file.
21820  
21821 \emph on
21822 Check-in
21823 \emph default
21824  consists of commiting changes and releasing write-lock.
21825  If no changes have been made to the document, no commit will be produced
21826 \begin_inset Foot
21827 status collapsed
21828
21829 \begin_layout Plain Layout
21830 Don't be puzzled by the fact that you will be asked for commit message anyway.
21831 \end_layout
21832
21833 \end_inset
21834
21835  and only the write-lock will be released.
21836 \end_layout
21837
21838 \begin_layout Standard
21839 SVN commands:
21840 \end_layout
21841
21842 \begin_layout Labeling
21843 \labelwidthstring 00.00.0000
21844 Check-in:
21845 \family typewriter
21846  svn commit -q -m"<description>" "<file-name>"
21847 \begin_inset Newline newline
21848 \end_inset
21849
21850 svn unlock "<file-name>"
21851 \end_layout
21852
21853 \begin_layout Labeling
21854 \labelwidthstring 00.00.0000
21855 Check-out: 
21856 \family typewriter
21857 svn update "<file-name>"
21858 \begin_inset Newline newline
21859 \end_inset
21860
21861 svn lock "<file-name>"
21862 \end_layout
21863
21864 \begin_layout Subsubsection
21865
21866 \family typewriter
21867 \begin_inset CommandInset label
21868 LatexCommand label
21869 name "subsec:Automatical-Locking-Property"
21870
21871 \end_inset
21872
21873
21874 \family default
21875 Automatic Locking Property
21876 \end_layout
21877
21878 \begin_layout Standard
21879 The above mentioned automatic setting of write permissions of the .lyx file
21880  can be set through
21881 \family sans
21882  File\SpecialChar menuseparator
21883 Version
21884 \begin_inset space ~
21885 \end_inset
21886
21887 Control\SpecialChar menuseparator
21888 Toggle locking property
21889 \family default
21890 .
21891  This command is active only when the file is not locked on the svn server
21892  (i.e.
21893  you need to check-out before proceeding).
21894 \end_layout
21895
21896 \begin_layout Labeling
21897 \labelwidthstring 00.00.0000
21898 SVN
21899 \begin_inset space ~
21900 \end_inset
21901
21902 commands:
21903 \end_layout
21904
21905 \begin_layout Labeling
21906 \labelwidthstring 00.00.0000
21907 Set:
21908 \family typewriter
21909  svn propset svn:needs-lock ON "<file-name>"
21910 \end_layout
21911
21912 \begin_layout Labeling
21913 \labelwidthstring 00.00.0000
21914 Unset: 
21915 \family typewriter
21916 svn propdel svn:needs-lock "<file-name>"
21917 \end_layout
21918
21919 \begin_layout Subsubsection
21920 \begin_inset CommandInset label
21921 LatexCommand label
21922 name "subsec:VCS-Revision-Information"
21923
21924 \end_inset
21925
21926 Revision Information in Documents
21927 \end_layout
21928
21929 \begin_layout Standard
21930 There are more possibilities how to activate revision information in our
21931  document.
21932 \end_layout
21933
21934 \begin_layout Itemize
21935 \SpecialChar LyX
21936  supports directly:
21937 \end_layout
21938
21939 \begin_deeper
21940 \begin_layout Itemize
21941 tree revision information (
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 vcs-tree-revision
21947 \end_layout
21948
21949 \end_inset
21950
21951 ).
21952  The result is the output of the 
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 svnversion
21958 \end_layout
21959
21960 \end_inset
21961
21962  command, the following table gives you an idea, how to read the results.
21963 \end_layout
21964
21965 \begin_layout Standard
21966 \align center
21967 \begin_inset Tabular
21968 <lyxtabular version="3" rows="6" columns="2">
21969 <features tabularvalignment="middle">
21970 <column alignment="center" valignment="top">
21971 <column alignment="center" valignment="top">
21972 <row>
21973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21974 \begin_inset Text
21975
21976 \begin_layout Plain Layout
21977 Output
21978 \end_layout
21979
21980 \end_inset
21981 </cell>
21982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21983 \begin_inset Text
21984
21985 \begin_layout Plain Layout
21986 Meaning
21987 \end_layout
21988
21989 \end_inset
21990 </cell>
21991 </row>
21992 <row>
21993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21994 \begin_inset Text
21995
21996 \begin_layout Plain Layout
21997 4123:4168
21998 \end_layout
21999
22000 \end_inset
22001 </cell>
22002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22003 \begin_inset Text
22004
22005 \begin_layout Plain Layout
22006 mixed revision working copy
22007 \end_layout
22008
22009 \end_inset
22010 </cell>
22011 </row>
22012 <row>
22013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22014 \begin_inset Text
22015
22016 \begin_layout Plain Layout
22017 4168M
22018 \end_layout
22019
22020 \end_inset
22021 </cell>
22022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22023 \begin_inset Text
22024
22025 \begin_layout Plain Layout
22026 modified working copy
22027 \end_layout
22028
22029 \end_inset
22030 </cell>
22031 </row>
22032 <row>
22033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22034 \begin_inset Text
22035
22036 \begin_layout Plain Layout
22037 4123S
22038 \end_layout
22039
22040 \end_inset
22041 </cell>
22042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22043 \begin_inset Text
22044
22045 \begin_layout Plain Layout
22046 switched working copy
22047 \end_layout
22048
22049 \end_inset
22050 </cell>
22051 </row>
22052 <row>
22053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22054 \begin_inset Text
22055
22056 \begin_layout Plain Layout
22057 4123P
22058 \end_layout
22059
22060 \end_inset
22061 </cell>
22062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22063 \begin_inset Text
22064
22065 \begin_layout Plain Layout
22066 partial working copy, from a sparse checkout
22067 \end_layout
22068
22069 \end_inset
22070 </cell>
22071 </row>
22072 <row>
22073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22074 \begin_inset Text
22075
22076 \begin_layout Plain Layout
22077 4123:4168MS
22078 \end_layout
22079
22080 \end_inset
22081 </cell>
22082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22083 \begin_inset Text
22084
22085 \begin_layout Plain Layout
22086 mixed revision, modified, switched working copy
22087 \end_layout
22088
22089 \end_inset
22090 </cell>
22091 </row>
22092 </lyxtabular>
22093
22094 \end_inset
22095
22096
22097 \end_layout
22098
22099 \begin_layout Itemize
22100 file revision information.
22101  The result comes from parsing the output of 
22102 \begin_inset Flex Code
22103 status collapsed
22104
22105 \begin_layout Plain Layout
22106 svn
22107 \begin_inset space ~
22108 \end_inset
22109
22110 info
22111 \begin_inset space ~
22112 \end_inset
22113
22114 –xml
22115 \begin_inset space ~
22116 \end_inset
22117
22118 file.lyx
22119 \end_layout
22120
22121 \end_inset
22122
22123 .
22124  Supported flags are:
22125 \end_layout
22126
22127 \begin_deeper
22128 \begin_layout Itemize
22129 version number of the last commit (
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 vcs-revision
22135 \end_layout
22136
22137 \end_inset
22138
22139 )
22140 \end_layout
22141
22142 \begin_layout Itemize
22143 author of the last commit (
22144 \begin_inset Flex Code
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 vcs-author
22149 \end_layout
22150
22151 \end_inset
22152
22153 )
22154 \end_layout
22155
22156 \begin_layout Itemize
22157 date of the last commit (
22158 \begin_inset Flex Code
22159 status collapsed
22160
22161 \begin_layout Plain Layout
22162 vcs-date
22163 \end_layout
22164
22165 \end_inset
22166
22167 )
22168 \end_layout
22169
22170 \begin_layout Itemize
22171 time of the last commit (
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 vcs-time
22177 \end_layout
22178
22179 \end_inset
22180
22181 )
22182 \end_layout
22183
22184 \end_deeper
22185 \begin_layout Standard
22186 You can obtain this info via InsetInfo (e.g.
22187  
22188 \begin_inset Flex Code
22189 status collapsed
22190
22191 \begin_layout Plain Layout
22192 info-insert buffer vcs-date
22193 \end_layout
22194
22195 \end_inset
22196
22197 ).
22198  The information will be available only when you have the file stored under
22199  svn managment (i.e.
22200  the 
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 .svn
22206 \end_layout
22207
22208 \end_inset
22209
22210  directory is available with your document).
22211 \end_layout
22212
22213 \end_deeper
22214 \begin_layout Itemize
22215 Another—a hacking one—possibility is to use svn keywords
22216 \begin_inset Foot
22217 status collapsed
22218
22219 \begin_layout Plain Layout
22220 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22221 \end_layout
22222
22223 \end_inset
22224
22225 .
22226  In short – you set file keywords property (e.g.
22227  
22228 \family sans
22229 svn propset svn:keywords 'Rev' file.lyx
22230 \family default
22231 ) and then paste keyword \SpecialChar TeX
22232  code
22233 \begin_inset Foot
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237 This is an easy way how to ensure that \SpecialChar LyX
22238  won't break the line in the middle
22239  of keyword tag.
22240 \end_layout
22241
22242 \end_inset
22243
22244  tag in your document (e.g.
22245  
22246 \begin_inset ERT
22247 status open
22248
22249 \begin_layout Plain Layout
22250
22251 $Rev$
22252 \end_layout
22253
22254 \end_inset
22255
22256 ).
22257  This way svn client will automatically substitute revision number (e.g.
22258  
22259 \begin_inset ERT
22260 status open
22261
22262 \begin_layout Plain Layout
22263
22264 $Rev: 59 $
22265 \end_layout
22266
22267 \end_inset
22268
22269 ) after each update and commit.
22270  There are more problems with this approach.
22271  Firstly, the '$' character is used in \SpecialChar TeX
22272  world for math equations, so any
22273  occurence of math formula 
22274 \begin_inset Formula $Rev$
22275 \end_inset
22276
22277  become 
22278 \begin_inset Formula $Rev:59$
22279 \end_inset
22280
22281  in your \SpecialChar LyX
22282  document.
22283  Similarly for other keywords like Id, Date, Author, etc.
22284  Secondly svn output is dependent on your locales, so its very easy that
22285  svn would produce some problematic strings once Date is used.
22286  Thirdly you get the whole 'Rev: 59' string in your document instead of
22287  the plain number.
22288  Until subversion implements user's custom keywords it will be hard to use
22289  this approach reliably or let \SpecialChar LyX
22290  to support it directly.
22291 \end_layout
22292
22293 \begin_layout Subsection
22294 SVN and Windows Environment
22295 \end_layout
22296
22297 \begin_layout Quote
22298 My inclination is to say that if the user cannot figure out the command
22299  line operations on their own fairly quickly, they would be well advised
22300  to use TortoiseSVN.
22301  —P.
22302  A.
22303  Rubin
22304 \end_layout
22305
22306 \begin_layout Subsubsection
22307 Preparation
22308 \end_layout
22309
22310 \begin_layout Standard
22311 In addition to installing \SpecialChar LyX
22312 , and having access to a Subversion repository,
22313  the user will need to install the Subversion client program.
22314  A Windows installer for the client program is available from 
22315 \begin_inset CommandInset href
22316 LatexCommand href
22317 name "CollabNet"
22318 target "http://www.collab.net/nonav/downloads/subversion/"
22319 literal "false"
22320
22321 \end_inset
22322
22323 .
22324  The user may also want to install 
22325 \begin_inset CommandInset href
22326 LatexCommand href
22327 name "TortoiseSVN"
22328 target "http://tortoisesvn.tigris.org/"
22329 literal "false"
22330
22331 \end_inset
22332
22333 , which integrates Subversion operations into the context (rightclick) menu
22334  of Windows Explorer.
22335  Operations done outside \SpecialChar LyX
22336  will typically be more convenient using the Explorer
22337  context menu.
22338  Note that TortoiseSVN is not a replacement for the client program, which
22339  is what \SpecialChar LyX
22340  itself will use.
22341 \end_layout
22342
22343 \begin_layout Subsubsection
22344 Bringing a document under Subversion control
22345 \end_layout
22346
22347 \begin_layout Standard
22348 Before a \SpecialChar LyX
22349  document can be brought under version control in Subversion, its
22350  parent directory needs to be under version control.
22351  If the document is being added to a project already in the repository,
22352  this is accomplished by checking the project out to the directory where
22353  the new document will be placed.
22354  If the project itself is not yet under version control (for instance, if
22355  this document starts a new project), the directory must be imported into
22356  the repository.
22357  This is done outside \SpecialChar LyX
22358 .
22359  Both import and checkout are easily accomplished from the Explorer context
22360  menu using TortoiseSVN, or alternatively can be done using the command
22361  line client at a DOS prompt.
22362  The procedure for importing the project using TortoiseSVN is described
22363  below, assuming an existing repository and a new project being started
22364  in 
22365 \family typewriter
22366 C:
22367 \backslash
22368 new project
22369 \family default
22370 .
22371  For information on using the Subversion client program, run 
22372 \family typewriter
22373 svn --help 
22374 \family default
22375 in a DOS shell.
22376 \end_layout
22377
22378 \begin_layout Enumerate
22379 Locate 
22380 \family typewriter
22381 C:
22382 \backslash
22383 new project 
22384 \family default
22385 in Windows Explorer, right click it, and select 
22386 \family sans
22387 TortoiseSVN\SpecialChar menuseparator
22388 Repo-browser
22389 \family default
22390 .
22391  If necessary, adjust the URL for the repository, then click OK.
22392 \end_layout
22393
22394 \begin_layout Enumerate
22395 Right click the level of the repository under which you want to place the
22396  new project folder (typically the top level) and click 
22397 \family sans
22398 Create folder
22399 \family default
22400  Supply a name for the project folder and click OK.
22401  Add a message for the log file if desired, then click OK again.
22402  The new project folder should appear in the repository.
22403  Finally, click OK again to exit the repository browser.
22404 \end_layout
22405
22406 \begin_layout Enumerate
22407 Once again right click 
22408 \family typewriter
22409 C:
22410 \backslash
22411 new project
22412 \family default
22413 , this time selecting SVN Checkout\SpecialChar ldots
22414  Select the URL of the project folder
22415  you just created in the repository, and set the checkout directory to 
22416 \family typewriter
22417 C:
22418 \backslash
22419 new project.
22420
22421 \family default
22422  Click OK.
22423  You will be warned about a non-empty folder; click OK to proceed.
22424  You should now have a 
22425 \family typewriter
22426 .svn
22427 \family default
22428  directory under 
22429 \family typewriter
22430 C:
22431 \backslash
22432 new project.
22433 \end_layout
22434
22435 \begin_layout Enumerate
22436 Create or open your document in \SpecialChar LyX
22437  and click 
22438 \family sans
22439 File\SpecialChar menuseparator
22440 Version
22441 \begin_inset space ~
22442 \end_inset
22443
22444 Control\SpecialChar menuseparator
22445 Register.
22446  
22447 \family default
22448 Add a log message and click OK to commit the document to version control.
22449 \end_layout
22450
22451 \begin_layout Standard
22452 From this point onward, you should have full functionality in the 
22453 \family sans
22454 File\SpecialChar menuseparator
22455 Version
22456 \begin_inset space ~
22457 \end_inset
22458
22459 Control
22460 \family default
22461  menu.
22462  You also have the option of checking the document in and out, viewing its
22463  history, etc.
22464  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22465  client program from a command prompt.
22466 \end_layout
22467
22468 \begin_layout Subsubsection
22469 SSH tunnel used with SVN under Windows
22470 \end_layout
22471
22472 \begin_layout Standard
22473 Compared with Linux setting up an svn client to communicate over ssh under
22474  Windows is a rather troublesome task.
22475  We will at least offer some hints how to setup the client side but prior
22476  knowledge about ssh and the Windows command line is needed, also be prepared
22477  for a great deal of frustration\SpecialChar ldots
22478
22479 \end_layout
22480
22481 \begin_layout Enumerate
22482 Get an svn client for windows, as described in the previous sections.
22483  When it is a fresh install run some svn command (e.g.
22484  
22485 \begin_inset Flex Code
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489 svn –version
22490 \end_layout
22491
22492 \end_inset
22493
22494 ) to create config files, which you will need to change later on.
22495 \end_layout
22496
22497 \begin_layout Enumerate
22498 Choose an ssh client for Windows.
22499  There are several possibilities, we will use the one from Putty tools
22500 \begin_inset Foot
22501 status collapsed
22502
22503 \begin_layout Plain Layout
22504 \begin_inset Flex URL
22505 status collapsed
22506
22507 \begin_layout Plain Layout
22508
22509 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22510 \end_layout
22511
22512 \end_inset
22513
22514
22515 \end_layout
22516
22517 \end_inset
22518
22519 .
22520  You will need to set the connection up so that the client doesn't ask for
22521  any password from you.
22522  To keep things easy we will use only keys without any additional password
22523  protection etc.
22524 \end_layout
22525
22526 \begin_deeper
22527 \begin_layout Enumerate
22528 Generate keys by 
22529 \begin_inset Flex Code
22530 status collapsed
22531
22532 \begin_layout Plain Layout
22533 puttygen
22534 \end_layout
22535
22536 \end_inset
22537
22538 .
22539  Save your private .ppk key file and put the public one on the server side.
22540  If the SVN server runs on Linux, note that the format of the public key
22541  is not compatible with Linux openssh and you will need to direcly copy-paste
22542  the key from the “
22543 \emph on
22544 Public key for pasting into OpenSSH authorized_keys file
22545 \emph default
22546 :” edit field into the server's 
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 ~/.ssh/authorized_keys
22552 \end_layout
22553
22554 \end_inset
22555
22556  / 
22557 \begin_inset Flex Code
22558 status collapsed
22559
22560 \begin_layout Plain Layout
22561 authorized_keys2
22562 \end_layout
22563
22564 \end_inset
22565
22566  file.
22567 \end_layout
22568
22569 \begin_layout Enumerate
22570 Get the Putty's 
22571 \begin_inset Flex Code
22572 status collapsed
22573
22574 \begin_layout Plain Layout
22575 plink
22576 \end_layout
22577
22578 \end_inset
22579
22580 .
22581  In the SVN config file
22582 \begin_inset Foot
22583 status collapsed
22584
22585 \begin_layout Plain Layout
22586 Exact path depends on Windows version, usually somewhere around 
22587 \begin_inset Flex Code
22588 status collapsed
22589
22590 \begin_layout Plain Layout
22591 c:
22592 \backslash
22593 Documents and Settings
22594 \backslash
22595 user
22596 \backslash
22597 Application Data
22598 \backslash
22599 Subversion
22600 \backslash
22601 config
22602 \end_layout
22603
22604 \end_inset
22605
22606  / 
22607 \begin_inset Flex Code
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611 AppData
22612 \backslash
22613 Roaming
22614 \backslash
22615 Subversion
22616 \end_layout
22617
22618 \end_inset
22619
22620 .
22621 \end_layout
22622
22623 \end_inset
22624
22625 , section [tunnels], setup ssh command, e.g.
22626  
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22632 \end_layout
22633
22634 \end_inset
22635
22636 .
22637 \begin_inset Foot
22638 status collapsed
22639
22640 \begin_layout Plain Layout
22641 It will usually take a lot of time to get exact command right and it depends
22642  on many things.
22643  For example do not have some remote server saved as a default session in
22644  Putty etc.
22645  If things fail, try to connect via plink without SVN first.
22646 \end_layout
22647
22648 \end_inset
22649
22650
22651 \end_layout
22652
22653 \end_deeper
22654 \begin_layout Enumerate
22655 Checkout the SVN archive, e.
22656 \begin_inset space \thinspace{}
22657 \end_inset
22658
22659 g.
22660 \begin_inset Newline newline
22661 \end_inset
22662
22663
22664 \begin_inset Flex Code
22665 status collapsed
22666
22667 \begin_layout Plain Layout
22668 svn co svn+ssh://user@server/repository_path
22669 \end_layout
22670
22671 \end_inset
22672
22673 .
22674 \end_layout
22675
22676 \begin_layout Subsubsection
22677 End-of-Line Conversions
22678 \end_layout
22679
22680 \begin_layout Standard
22681 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22682  will
22683  use different line endings inside the .lyx files.
22684  This is not a problem as far as \SpecialChar LyX
22685  functionality is concerned, but the commit
22686  diffs will be huge and merge-conflicts prone.
22687  Fortunately SVN itself knows
22688 \begin_inset Foot
22689 status collapsed
22690
22691 \begin_layout Plain Layout
22692 \begin_inset Flex URL
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696
22697 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22698 \end_layout
22699
22700 \end_inset
22701
22702
22703 \end_layout
22704
22705 \end_inset
22706
22707  how to deal with CR/LF problems when switching .lyx files to the 
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712 native
22713 \end_layout
22714
22715 \end_inset
22716
22717  mode.
22718 \begin_inset Foot
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 For the lazy guys: 
22723 \begin_inset Flex Code
22724 status collapsed
22725
22726 \begin_layout Plain Layout
22727 svn propset svn:eol-style native FILE_NAME
22728 \end_layout
22729
22730 \end_inset
22731
22732
22733 \end_layout
22734
22735 \end_inset
22736
22737
22738 \end_layout
22739
22740 \begin_layout Subsection
22741 GIT commands in \SpecialChar LyX
22742
22743 \end_layout
22744
22745 \begin_layout Standard
22746 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22747 .
22748  You can find the commands in the 
22749 \family sans
22750 File\SpecialChar menuseparator
22751 Version
22752 \begin_inset space ~
22753 \end_inset
22754
22755 Control
22756 \family default
22757  submenu.
22758  Please note that if you use password protected access to repository via
22759  ssh, you will be asked in terminal window.
22760  \SpecialChar LyX
22761  was tested against GIT 1.7.
22762 \begin_inset Foot
22763 status open
22764
22765 \begin_layout Plain Layout
22766 Windows users please note that you need to ensure that git is on the path.
22767  This can be set from within \SpecialChar LyX
22768  at 
22769 \family sans
22770 Tools\SpecialChar menuseparator
22771 Preferences\SpecialChar menuseparator
22772 Paths\SpecialChar menuseparator
22773 PATH prefix
22774 \family default
22775 .
22776 \end_layout
22777
22778 \end_inset
22779
22780
22781 \end_layout
22782
22783 \begin_layout Standard
22784 One big difference of GIT and the other supported version control systems
22785  is the distributed nature of GIT: With traditional version control systems
22786  there is one central server which hosts the repository.
22787  Users commit their changes to the server, and get updates made by other
22788  users from it.
22789  With GIT, users commit to a local repository.
22790  The local repository can be synchronized with one or more remote repositories
22791  using the 
22792 \begin_inset Flex Code
22793 status collapsed
22794
22795 \begin_layout Plain Layout
22796 pull
22797 \end_layout
22798
22799 \end_inset
22800
22801  and 
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 push
22807 \end_layout
22808
22809 \end_inset
22810
22811  GIT commands.
22812  \SpecialChar LyX
22813  does not interact in any way with remote GIT repositories.
22814  It works exclusively with the local repository in a very similar way as
22815  with a central CVS or SVN repository.
22816  If you use remote GIT repositories you need to do the 
22817 \begin_inset Flex Code
22818 status collapsed
22819
22820 \begin_layout Plain Layout
22821 pull
22822 \end_layout
22823
22824 \end_inset
22825
22826  and 
22827 \begin_inset Flex Code
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 push
22832 \end_layout
22833
22834 \end_inset
22835
22836  operations with your favourite GIT client.
22837 \end_layout
22838
22839 \begin_layout Subsubsection
22840
22841 \family sans
22842 Register
22843 \end_layout
22844
22845 \begin_layout Standard
22846 If your document is not under revision control, this is the only item shown
22847  in the menu.
22848  And if it is under revision control, the 
22849 \family sans
22850 Register
22851 \family default
22852  item is not visible.
22853 \end_layout
22854
22855 \begin_layout Standard
22856 This command registers in GIT your document ONLY in case you have already
22857  the documents directory under GIT control (in particular 
22858 \family typewriter
22859 .git/index
22860 \family default
22861  file exists).
22862  This means you have to checkout the archive by yourself.
22863 \end_layout
22864
22865 \begin_layout Standard
22866 Then you are asked interactively to supply an initial description of the
22867  document.
22868  Don't forget that registered file is not yet commited.
22869 \end_layout
22870
22871 \begin_layout Standard
22872 GIT command that is run: 
22873 \family typewriter
22874 git add 
22875 \begin_inset Quotes eld
22876 \end_inset
22877
22878 <file-name>
22879 \begin_inset Quotes erd
22880 \end_inset
22881
22882
22883 \end_layout
22884
22885 \begin_layout Standard
22886 Read 
22887 \family typewriter
22888 man git
22889 \family default
22890  to understand the switches.
22891 \end_layout
22892
22893 \begin_layout Subsubsection
22894
22895 \family sans
22896 Check In Changes
22897 \end_layout
22898
22899 \begin_layout Standard
22900 When you are finished editing a file, you commit your changes.
22901  When you do this, you are asked for a description of the changes.
22902  After that changes are commited.
22903 \end_layout
22904
22905 \begin_layout Standard
22906 GIT command: 
22907 \family typewriter
22908 git commit -q -m"<description>" <file-name>
22909 \end_layout
22910
22911 \begin_layout Subsubsection
22912
22913 \family sans
22914 Revert To Repository Version
22915 \end_layout
22916
22917 \begin_layout Standard
22918 This will discard all changes made to the document since the last check
22919  in.
22920  You get a warning before changes are discarded.
22921 \end_layout
22922
22923 \begin_layout Standard
22924 GIT command: 
22925 \family typewriter
22926 git checkout -q 
22927 \begin_inset Quotes eld
22928 \end_inset
22929
22930 <file-name>
22931 \begin_inset Quotes erd
22932 \end_inset
22933
22934
22935 \end_layout
22936
22937 \begin_layout Subsubsection
22938
22939 \family sans
22940 Rename
22941 \end_layout
22942
22943 \begin_layout Standard
22944 This will rename the current document including the version history.
22945  It requires a clean document without any changes since the last checkin.
22946  You are asked for a file name and a description of the rename operation.
22947  After that the document is renamed, both locally and in the repository.
22948  If the parent directories of the new and old file names differ, all relative
22949  paths of included files are adjusted (like in 
22950 \family sans
22951 File\SpecialChar menuseparator
22952 Save As
22953 \family default
22954 \SpecialChar ldots
22955 ).
22956  Finally, the document is reloaded using the new name.
22957 \end_layout
22958
22959 \begin_layout Labeling
22960 \labelwidthstring 00.00.0000
22961 GIT
22962 \begin_inset space ~
22963 \end_inset
22964
22965 commands: 
22966 \begin_inset space ~
22967 \end_inset
22968
22969
22970 \begin_inset Newline newline
22971 \end_inset
22972
22973
22974 \begin_inset Flex Code
22975 status collapsed
22976
22977 \begin_layout Plain Layout
22978 git mv 
22979 \family typewriter
22980
22981 \begin_inset Quotes eld
22982 \end_inset
22983
22984 <file-name>
22985 \begin_inset Quotes erd
22986 \end_inset
22987
22988  
22989 \begin_inset Quotes eld
22990 \end_inset
22991
22992 <new-file-name>
22993 \begin_inset Quotes erd
22994 \end_inset
22995
22996
22997 \end_layout
22998
22999 \end_inset
23000
23001
23002 \begin_inset Newline newline
23003 \end_inset
23004
23005
23006 \begin_inset Flex Code
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 git commit
23011 \end_layout
23012
23013 \end_inset
23014
23015
23016 \end_layout
23017
23018 \begin_layout Subsubsection
23019
23020 \family sans
23021 Show History
23022 \end_layout
23023
23024 \begin_layout Standard
23025 This shows the complete history of the GIT document.
23026  The output of 
23027 \family typewriter
23028 git log 
23029 \begin_inset Quotes eld
23030 \end_inset
23031
23032 <file-name>
23033 \begin_inset Quotes erd
23034 \end_inset
23035
23036
23037 \family default
23038  is shown in a browser.
23039 \end_layout
23040
23041 \begin_layout Subsubsection
23042 Version Info
23043 \end_layout
23044
23045 \begin_layout Standard
23046 \SpecialChar LyX
23047  supports GIT hash number of the last commit to the file, author name, date
23048  and time of last commit.
23049  All those are extracted from 
23050 \family typewriter
23051 git log -n 1 --pretty=format:%H%n%an%n%ai
23052 \family default
23053 .
23054  Tree version information is obtained via 
23055 \family typewriter
23056 git describe --abbrev --dirty --long
23057 \family default
23058 .
23059  See 
23060 \begin_inset CommandInset ref
23061 LatexCommand ref
23062 reference "subsec:VCS-Revision-Information"
23063
23064 \end_inset
23065
23066  for other details.
23067 \end_layout
23068
23069 \begin_layout Subsection
23070 Further tuning
23071 \end_layout
23072
23073 \begin_layout Standard
23074 With the recent addition of the vc-command function \SpecialChar LyX
23075  power users are allowed
23076  to create their own commands for revision control.
23077 \end_layout
23078
23079 \begin_layout Standard
23080 As an example you can see how two TortoiseSVN commands could be integrated
23081  directly:
23082 \end_layout
23083
23084 \begin_layout Description
23085 Commit: 
23086 \begin_inset Flex Code
23087 status collapsed
23088
23089 \begin_layout Plain Layout
23090 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23091 \end_layout
23092
23093 \end_inset
23094
23095
23096 \end_layout
23097
23098 \begin_layout Description
23099 Revert: 
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23105 \end_layout
23106
23107 \end_inset
23108
23109
23110 \end_layout
23111
23112 \begin_layout Subsection
23113 Version control and Document comparison
23114 \end_layout
23115
23116 \begin_layout Standard
23117 One of the typical uses of version control is to inspect the changes between
23118  revisions, usually by creating 
23119 \begin_inset Flex Code
23120 status collapsed
23121
23122 \begin_layout Plain Layout
23123 diff
23124 \end_layout
23125
23126 \end_inset
23127
23128  dumps.
23129  While this is useful for plain text files, it is much less useful in the
23130  case of \SpecialChar LyX
23131  files, which have more a complicated structure.
23132  Hence we provide binding to the Document comparison feature.
23133  There are two ways of calling this feature - either by direct call of 
23134 \begin_inset Flex Code
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138 VC_COMPARE
23139 \end_layout
23140
23141 \end_inset
23142
23143  \SpecialChar LyX
23144  function (for details see \SpecialChar LyX
23145  functions manual) or by icon/menu item 
23146 \begin_inset Flex Noun
23147 status collapsed
23148
23149 \begin_layout Plain Layout
23150 Compare with older revision...
23151 \end_layout
23152
23153 \end_inset
23154
23155 .
23156  One can either compare two chosen revisions of the document or he can simply
23157  compare the current version of edited text with older revisions (where
23158  '
23159 \begin_inset Flex Noun
23160 status collapsed
23161
23162 \begin_layout Plain Layout
23163 0
23164 \end_layout
23165
23166 \end_inset
23167
23168 ' revisions back means comparison of the edited file with last commited
23169  revision).
23170  
23171 \end_layout
23172
23173 \begin_layout Standard
23174 This feature is supported for SVN and RCS though due to the more complicated
23175  versioning scheme of RCS there is a constraint – when addressing the revisions
23176  in dialog, numbers always point to the last number in RCS revision number,
23177  i.e.
23178  '35' in '1.2.35'.
23179  We don't currently support GIT addressing of revisions, one can just compare
23180  edited document with its revision X steps backs, where X is addressed as
23181  HEAD~X.
23182 \end_layout
23183
23184 \begin_layout Section
23185 Literate Programming
23186 \end_layout
23187
23188 \begin_layout Standard
23189 Updated by 
23190 \noun on
23191 Kayvan Sylvan 
23192 \noun default
23193 (kayvan@sylvan.com)
23194 \noun on
23195
23196 \noun default
23197 original documentation written by 
23198 \noun on
23199 Edmar Wienskoski Jr.
23200
23201 \noun default
23202  (edmar-w-jr@technologist.com)
23203 \end_layout
23204
23205 \begin_layout Subsection
23206 Introduction
23207 \end_layout
23208
23209 \begin_layout Standard
23210 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23211  for literate
23212  programming, where it is assumed that you are familiar with this programming
23213  technique, and know what 
23214 \begin_inset Quotes eld
23215 \end_inset
23216
23217 tangling
23218 \begin_inset Quotes erd
23219 \end_inset
23220
23221  and 
23222 \begin_inset Quotes eld
23223 \end_inset
23224
23225 weaving
23226 \begin_inset Quotes erd
23227 \end_inset
23228
23229  means.
23230  If that is not the case, please follow the web links provided in the following
23231  sections.
23232  There is a lot of good documentation out there covering old development
23233  history to the latest tools tips.
23234 \end_layout
23235
23236 \begin_layout Standard
23237 It is also assumed that you are familiar with \SpecialChar LyX
23238  itself to a point that you
23239  are comfortable changing your \SpecialChar LyX
23240  preferences, and X resources file.
23241  If that is not the case please refer to other \SpecialChar LyX
23242  documentation to cover your
23243  specific needs.
23244 \end_layout
23245
23246 \begin_layout Subsection
23247 Literate Programming
23248 \end_layout
23249
23250 \begin_layout Standard
23251 From the Literate Programming FAQ: 
23252 \end_layout
23253
23254 \begin_layout Quotation
23255 Literate programming is the combination of documentation and source together
23256  in a fashion suited for reading by human beings.
23257  In fact, literate programs should be enjoyable reading, even inviting!
23258  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23259  and documentation in a single file.
23260  Literate programming tools then parse the file to produce either readable
23261  documentation or compilable source.
23262  The WEB style of literate programming was created by D.
23263 \begin_inset space \thinspace{}
23264 \end_inset
23265
23266 E.
23267  Knuth during the development of his \SpecialChar TeX
23268  typesetting software.
23269  
23270 \end_layout
23271
23272 \begin_layout Standard
23273 Another excerpt says:
23274 \end_layout
23275
23276 \begin_layout Quotation
23277
23278 \emph on
23279 How is literate programming different from verbose commenting?
23280 \end_layout
23281
23282 \begin_layout Quotation
23283 There are three distinguishing characteristics.
23284  In order of importance, they are: 
23285 \end_layout
23286
23287 \begin_deeper
23288 \begin_layout Itemize
23289 flexible order of elaboration 
23290 \end_layout
23291
23292 \begin_layout Itemize
23293 automatic support for browsing 
23294 \end_layout
23295
23296 \begin_layout Itemize
23297 typeset documentation, especially diagrams and mathematics 
23298 \end_layout
23299
23300 \end_deeper
23301 \begin_layout Standard
23302 Now that I sparked your curiosity, take a look in the references.
23303 \end_layout
23304
23305 \begin_layout Subsubsection
23306 References
23307 \end_layout
23308
23309 \begin_layout Standard
23310 The complete Literate Programming FAQ can be found at:
23311 \end_layout
23312
23313 \begin_layout Quote
23314 Literate Programming FAQ 
23315 \begin_inset Flex URL
23316 status collapsed
23317
23318 \begin_layout Plain Layout
23319
23320 http://www.literateprogramming.com/lpfaq.pdf
23321 \end_layout
23322
23323 \end_inset
23324
23325
23326 \end_layout
23327
23328 \begin_layout Standard
23329 The FAQ lists 23 (twenty three!) different literate programming tools.
23330  Where some are specialized or 
23331 \begin_inset Quotes eld
23332 \end_inset
23333
23334 tailored
23335 \begin_inset Quotes erd
23336 \end_inset
23337
23338  for particular programming languages, while other have general scope.
23339  I selected 
23340 \noun on
23341 Noweb
23342 \noun default
23343  for my own use for several reasons:
23344 \end_layout
23345
23346 \begin_layout Itemize
23347 It can generate the documentation either in \SpecialChar LaTeX
23348  or HTML.
23349 \end_layout
23350
23351 \begin_layout Itemize
23352 It has a open architecture, i.
23353 \begin_inset space \thinspace{}
23354 \end_inset
23355
23356 e.
23357 \begin_inset space \space{}
23358 \end_inset
23359
23360 it is easy to plug in new filters and to perform special processing that
23361  you may need.
23362  
23363 \end_layout
23364
23365 \begin_layout Itemize
23366 There is a good selection of filters available already (the HTML is one
23367  of them).
23368 \end_layout
23369
23370 \begin_layout Itemize
23371 It is free.
23372 \end_layout
23373
23374 \begin_layout Standard
23375 The Noweb web page can be found at: 
23376 \end_layout
23377
23378 \begin_layout Quote
23379 Noweb home page 
23380 \begin_inset Flex URL
23381 status collapsed
23382
23383 \begin_layout Plain Layout
23384
23385 http://www.cs.virginia.edu/~nr/noweb/
23386 \end_layout
23387
23388 \end_inset
23389
23390
23391 \end_layout
23392
23393 \begin_layout Standard
23394 Starting from there you can reach many other interesting links and even
23395  some literate program examples.
23396 \end_layout
23397
23398 \begin_layout Subsection
23399 \SpecialChar LyX
23400  and Literate Programming with Noweb
23401 \end_layout
23402
23403 \begin_layout Standard
23404 The \SpecialChar LyX
23405  support for Literate Programming is provided by using the generic \SpecialChar LyX
23406
23407  converters mechanism.
23408  This support is provided in a 
23409 \begin_inset Quotes eld
23410 \end_inset
23411
23412 Noweb independent
23413 \begin_inset Quotes erd
23414 \end_inset
23415
23416  way, i.
23417 \begin_inset space \thinspace{}
23418 \end_inset
23419
23420 e.
23421 \begin_inset space \space{}
23422 \end_inset
23423
23424 you will be able to use this new \SpecialChar LyX
23425  feature with some other literate programming
23426  tool of your choice by just changing your \SpecialChar LyX
23427  preferences.
23428 \end_layout
23429
23430 \begin_layout Subsubsection
23431 Generating documents and code (weaving and tangling)
23432 \end_layout
23433
23434 \begin_layout Paragraph
23435 Using the noweb module
23436 \end_layout
23437
23438 \begin_layout Standard
23439 If you have installed Noweb and \SpecialChar LyX
23440  successfully, whenever you open a new document,
23441  after you have chosen its document class, use the Document->Settings menu
23442  to add the 
23443 \begin_inset Quotes eld
23444 \end_inset
23445
23446 noweb
23447 \begin_inset Quotes erd
23448 \end_inset
23449
23450  module.
23451  If Noweb is correctly installed, when you click on the 
23452 \begin_inset Quotes eld
23453 \end_inset
23454
23455 Modules
23456 \begin_inset Quotes erd
23457 \end_inset
23458
23459  link, you will see the 
23460 \begin_inset Quotes eld
23461 \end_inset
23462
23463 noweb
23464 \begin_inset Quotes erd
23465 \end_inset
23466
23467  module in the available list and you can add it to your document.
23468 \end_layout
23469
23470 \begin_layout Paragraph
23471 Typing code in
23472 \end_layout
23473
23474 \begin_layout Standard
23475 \SpecialChar LyX
23476  enables you to write code with a layout named 
23477 \begin_inset Flex Noun
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 Chunk
23482 \end_layout
23483
23484 \end_inset
23485
23486 .
23487  Noweb delimits chunks like this:
23488 \end_layout
23489
23490 \begin_layout LyX-Code
23491 <<My code>>=
23492 \end_layout
23493
23494 \begin_layout LyX-Code
23495   code
23496 \end_layout
23497
23498 \begin_layout LyX-Code
23499   more code
23500 \end_layout
23501
23502 \begin_layout LyX-Code
23503   even more code
23504 \end_layout
23505
23506 \begin_layout LyX-Code
23507   @
23508 \end_layout
23509
23510 \begin_layout Standard
23511 The problem is that whatever is written in between the << and the 
23512 \family typewriter
23513 @
23514 \family default
23515  must be taken literally, i.
23516 \begin_inset space \thinspace{}
23517 \end_inset
23518
23519 e.
23520 \begin_inset space \space{}
23521 \end_inset
23522
23523 \SpecialChar LyX
23524  should be prevented from making any special interpretation of what has
23525  been written.
23526  This is also handled by 
23527 \begin_inset Flex Noun
23528 status collapsed
23529
23530 \begin_layout Plain Layout
23531 Chunk
23532 \end_layout
23533
23534 \end_inset
23535
23536 , that works like a normal paragraph but has a free spacing capability.
23537 \end_layout
23538
23539 \begin_layout Standard
23540 As a special note, you can also use the 
23541 \begin_inset Quotes eld
23542 \end_inset
23543
23544 %def
23545 \begin_inset Quotes erd
23546 \end_inset
23547
23548  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23549 rence:
23550 \end_layout
23551
23552 \begin_layout LyX-Code
23553 <<My chunk>>=
23554 \end_layout
23555
23556 \begin_layout LyX-Code
23557 def some_function(args):
23558 \end_layout
23559
23560 \begin_layout LyX-Code
23561    "This is the doc string for this function."
23562 \end_layout
23563
23564 \begin_layout LyX-Code
23565    print "My args: ", args
23566 \end_layout
23567
23568 \begin_layout LyX-Code
23569 @ %def some_function
23570 \end_layout
23571
23572 \begin_layout Standard
23573 For an example of this usage and the resulting cross-reference output, look
23574  at the Literate python program in 
23575 \emph on
23576 LIBDIR/examples/listerrors.lyx
23577 \emph default
23578  which should make this all clear.
23579 \end_layout
23580
23581 \begin_layout Paragraph
23582 Generating the documentation
23583 \end_layout
23584
23585 \begin_layout Standard
23586 At this point you already have a new document file with a proper document
23587  class, and with some code and text on it.
23588  How do I print it? The answer is simple, you select 
23589 \family sans
23590 View\SpecialChar menuseparator
23591 DVI,
23592 \family default
23593  etc.
23594  Just like you would do for a plain document.
23595  No special procedure is required.
23596 \end_layout
23597
23598 \begin_layout Standard
23599 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23600 :
23601 \end_layout
23602
23603 \begin_layout Enumerate
23604 When the 
23605 \family sans
23606 Update\SpecialChar menuseparator
23607 DVI
23608 \family default
23609  menu option is chosen, a \SpecialChar LaTeX
23610  file is generated.
23611  
23612 \end_layout
23613
23614 \begin_deeper
23615 \begin_layout Standard
23616 If the document is of any literate class the generated file will be named
23617  with an extension name defined by the 
23618 \begin_inset Quotes eld
23619 \end_inset
23620
23621 literate
23622 \begin_inset Quotes erd
23623 \end_inset
23624
23625  format (defined in the Preferences panel), otherwise the file will have
23626  the usual 
23627 \family typewriter
23628 .tex
23629 \family default
23630  extension.
23631 \end_layout
23632
23633 \end_deeper
23634 \begin_layout Enumerate
23635 Note that the only difference so far is in the name of the file, no special
23636  processing is required by \SpecialChar LyX
23637 .
23638  Given that you formatted the code using the 
23639 \begin_inset Flex Noun
23640 status collapsed
23641
23642 \begin_layout Plain Layout
23643 Chunk
23644 \end_layout
23645
23646 \end_inset
23647
23648  layout that, by itself, takes care of the business.
23649 \end_layout
23650
23651 \begin_layout Enumerate
23652 If the document is of any literate class \SpecialChar LyX
23653  will then use the internal \SpecialChar LyX
23654  to
23655  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23656  converter
23657 \begin_inset Foot
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 The converters are defined in the 
23662 \family sans
23663 Tools\SpecialChar menuseparator
23664 Preferences
23665 \family default
23666  panel, under the 
23667 \begin_inset Quotes eld
23668 \end_inset
23669
23670 Conversion
23671 \begin_inset Quotes erd
23672 \end_inset
23673
23674  tab.
23675  See section 
23676 \emph on
23677 Converters
23678 \emph default
23679  of the 
23680 \emph on
23681 Customization
23682 \emph default
23683  manual for general information about converters.
23684 \end_layout
23685
23686 \end_inset
23687
23688  to generate the \SpecialChar LaTeX
23689  file.
23690 \end_layout
23691
23692 \begin_deeper
23693 \begin_layout Standard
23694 Otherwise it will just skip this step.
23695 \end_layout
23696
23697 \end_deeper
23698 \begin_layout Enumerate
23699 Finally, \SpecialChar LaTeX
23700  is invoked and the regular post processing continues as in a plain
23701  document.
23702 \end_layout
23703
23704 \begin_layout Standard
23705 Independence from a particular 
23706 \begin_inset Quotes eld
23707 \end_inset
23708
23709 literate tool
23710 \begin_inset Quotes erd
23711 \end_inset
23712
23713  is easily achieved by changing the commands that are run by the various
23714  converters.
23715 \end_layout
23716
23717 \begin_layout Paragraph
23718 Generating the code
23719 \end_layout
23720
23721 \begin_layout Standard
23722 When the build menu option is chosen or the corresponding button in the
23723  toolbar is pressed, a \SpecialChar LaTeX
23724  file is generated just like step 1 above.
23725  Next, \SpecialChar LyX
23726  invokes the 
23727 \family typewriter
23728 Noweb->Program
23729 \family default
23730  converter.
23731  This converter needs to be defined by the user and is not installed by
23732  default, though the Program format is.
23733  This converter (like any other converter) will have two parts:
23734 \end_layout
23735
23736 \begin_layout Enumerate
23737 The converter program itself.
23738  This program performs the conversion from the one format to the other (in
23739  this case, from the Noweb format to the Program pseudo-format).
23740 \end_layout
23741
23742 \begin_layout Enumerate
23743 The error log parser.
23744  This is a program whose sole purpose is to rewrite error messages in a
23745  format that \SpecialChar LyX
23746  understands.
23747  This makes it possible for \SpecialChar LyX
23748  to place error boxes in the right places in
23749  the file buffer.
23750 \end_layout
23751
23752 \begin_layout Standard
23753 The first part, the 
23754 \begin_inset Quotes eld
23755 \end_inset
23756
23757 Converter
23758 \begin_inset Quotes erd
23759 \end_inset
23760
23761  setting, should be set to
23762 \begin_inset Newline newline
23763 \end_inset
23764
23765
23766 \begin_inset Quotes eld
23767 \end_inset
23768
23769
23770 \family typewriter
23771 build-script $$i
23772 \family default
23773  $$r
23774 \begin_inset Quotes erd
23775 \end_inset
23776
23777 .
23778 \begin_inset Newline newline
23779 \end_inset
23780
23781 This basically means that \SpecialChar LyX
23782  will call 
23783 \begin_inset Quotes eld
23784 \end_inset
23785
23786 build-script
23787 \begin_inset Quotes erd
23788 \end_inset
23789
23790  (a program or script) with the name of the Noweb file (normally a file
23791  in the \SpecialChar LyX
23792  temp directory) and the directory path of the original \SpecialChar LyX
23793  file.
23794  
23795 \end_layout
23796
23797 \begin_layout Standard
23798 This is an implementation of 
23799 \begin_inset Quotes eld
23800 \end_inset
23801
23802 build-script
23803 \begin_inset Quotes erd
23804 \end_inset
23805
23806  that you can place in a directory on your path:
23807 \end_layout
23808
23809 \begin_layout Standard
23810 \begin_inset VSpace defskip
23811 \end_inset
23812
23813
23814 \end_layout
23815
23816 \begin_layout Standard
23817 \begin_inset Newpage pagebreak
23818 \end_inset
23819
23820
23821 \end_layout
23822
23823 \begin_layout Standard
23824
23825 \family sans
23826 #!/bin/sh
23827 \end_layout
23828
23829 \begin_layout Standard
23830
23831 \family sans
23832 #
23833 \end_layout
23834
23835 \begin_layout Standard
23836
23837 \family sans
23838 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23839 \end_layout
23840
23841 \begin_layout Standard
23842 \begin_inset VSpace defskip
23843 \end_inset
23844
23845
23846 \end_layout
23847
23848 \begin_layout Standard
23849 The next part of the converter setting is the 
23850 \begin_inset Quotes eld
23851 \end_inset
23852
23853 Flags
23854 \begin_inset Quotes erd
23855 \end_inset
23856
23857  which is to be set to
23858 \begin_inset Newline newline
23859 \end_inset
23860
23861
23862 \begin_inset Quotes eld
23863 \end_inset
23864
23865
23866 \family typewriter
23867 parselog=$$s/scripts/listerrors
23868 \family default
23869
23870 \begin_inset Quotes erd
23871 \end_inset
23872
23873 .
23874 \begin_inset Newline newline
23875 \end_inset
23876
23877 This will run any errors that are generated by the 
23878 \begin_inset Quotes eld
23879 \end_inset
23880
23881 build-script
23882 \begin_inset Quotes erd
23883 \end_inset
23884
23885  process through the 
23886 \begin_inset Quotes eld
23887 \end_inset
23888
23889 listerrors
23890 \begin_inset Quotes erd
23891 \end_inset
23892
23893  program.
23894 \end_layout
23895
23896 \begin_layout Standard
23897 The build will normally take place in \SpecialChar LyX
23898 's temporary directory, so the files
23899  produced by the conversion will be in that directory.
23900  \SpecialChar LyX
23901  will copy out what it regards as the `main' file, but the 
23902 \family typewriter
23903 Noweb->Program
23904 \family default
23905  conversion may produce several files, and so most of these would then be
23906  deleted when \SpecialChar LyX
23907  was closed.
23908  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23909  the build-script chunk can place the generated files in that location.
23910 \end_layout
23911
23912 \begin_layout Paragraph
23913 Build instructions in the document
23914 \end_layout
23915
23916 \begin_layout Standard
23917 The last piece of the integration between \SpecialChar LyX
23918  and noweb is the 
23919 \begin_inset Quotes eld
23920 \end_inset
23921
23922 build-script
23923 \begin_inset Quotes erd
23924 \end_inset
23925
23926  chunk.
23927  Generally, the instructions for building your program should be embedded
23928  in a chunk of its own.
23929  The noweb-specific 
23930 \begin_inset Quotes eld
23931 \end_inset
23932
23933 build-script
23934 \begin_inset Quotes erd
23935 \end_inset
23936
23937  above uses the notangle command to look for this chunk (called 
23938 \begin_inset Quotes eld
23939 \end_inset
23940
23941 build-script
23942 \begin_inset Quotes erd
23943 \end_inset
23944
23945 ) and runs its contents through 
23946 \begin_inset Quotes eld
23947 \end_inset
23948
23949 sh
23950 \begin_inset Quotes erd
23951 \end_inset
23952
23953 .
23954 \end_layout
23955
23956 \begin_layout Standard
23957 Typically, such a chunk would look something like this:
23958 \end_layout
23959
23960 \begin_layout LyX-Code
23961 <<build-script>>=
23962 \end_layout
23963
23964 \begin_layout LyX-Code
23965 #!/bin/sh
23966 \begin_inset Newline newline
23967 \end_inset
23968
23969 if [ -z "${NOWEB_SOURCE}" ]
23970 \begin_inset Newline newline
23971 \end_inset
23972
23973 then
23974 \end_layout
23975
23976 \begin_layout LyX-Code
23977 NOWEB_SOURCE=myfile.nw
23978 \begin_inset Newline newline
23979 \end_inset
23980
23981 fi
23982 \begin_inset Newline newline
23983 \end_inset
23984
23985 [...
23986  code to extract files ...
23987  use NOWEB_OUTPUT_DIR here ...]
23988 \begin_inset Newline newline
23989 \end_inset
23990
23991 [...
23992  code to compile files ...]
23993 \begin_inset Newline newline
23994 \end_inset
23995
23996 @
23997 \end_layout
23998
23999 \begin_layout Standard
24000 Look in 
24001 \emph on
24002 LIBDIR/examples/listerrors.lyx
24003 \emph default
24004  or in 
24005 \emph on
24006 LIBDIR/examples/Literate.lyx
24007 \emph default
24008  which implement two versions of the 
24009 \begin_inset Quotes eld
24010 \end_inset
24011
24012 listerrors
24013 \begin_inset Quotes erd
24014 \end_inset
24015
24016  program for some illustrations of how all of these pieces go together or
24017  in 
24018 \emph on
24019 LIBDIR/examples/noweb2lyx.lyx.
24020
24021 \emph default
24022  Interestingly, these three files show off the language-indepence of the
24023  \SpecialChar LyX
24024  literate programming support since they are written in Python, C and Perl
24025  respectively.
24026 \end_layout
24027
24028 \begin_layout Subsubsection
24029 Configuring \SpecialChar LyX
24030
24031 \end_layout
24032
24033 \begin_layout Standard
24034 All the Literate Programming support is configured by the 
24035 \family sans
24036 Tools\SpecialChar menuseparator
24037 Preferences
24038 \family default
24039  panel in the 
24040 \begin_inset Quotes eld
24041 \end_inset
24042
24043 File Handling
24044 \begin_inset Quotes erd
24045 \end_inset
24046
24047  tab.
24048  The important parts are:
24049 \end_layout
24050
24051 \begin_layout Description
24052 the
24053 \begin_inset space ~
24054 \end_inset
24055
24056
24057 \begin_inset Quotes eld
24058 \end_inset
24059
24060 NoWeb
24061 \begin_inset Quotes erd
24062 \end_inset
24063
24064
24065 \begin_inset space ~
24066 \end_inset
24067
24068 format Set up via the File Formats tab, this is where the Noweb-specific
24069  pieces are set up.
24070  The 
24071 \family sans
24072 GUI Name
24073 \family default
24074  is set to 
24075 \family typewriter
24076 NoWeb
24077 \family default
24078 , the file extension is set to 
24079 \family typewriter
24080 .nw
24081 \family default
24082 .
24083  This tells \SpecialChar LyX
24084  to create a file with a 
24085 \family typewriter
24086 .nw
24087 \family default
24088  extension in the first step of the conversion process.
24089 \end_layout
24090
24091 \begin_layout Description
24092 the
24093 \begin_inset space ~
24094 \end_inset
24095
24096
24097 \family sans
24098 Program
24099 \family default
24100
24101 \begin_inset space ~
24102 \end_inset
24103
24104 format This is an empty format whose sole purpose is to be the endpoint
24105  of a conversion (which then allows us to set up a converter for it).
24106 \end_layout
24107
24108 \begin_layout Description
24109
24110 \family sans
24111 NoWeb
24112 \family default
24113 ->
24114 \family sans
24115 \SpecialChar LaTeX
24116
24117 \family default
24118  This converter performs the 
24119 \begin_inset Quotes eld
24120 \end_inset
24121
24122 weaving
24123 \begin_inset Quotes erd
24124 \end_inset
24125
24126  of the literate document.
24127  For Noweb, it is set to 
24128 \begin_inset Quotes eld
24129 \end_inset
24130
24131
24132 \family typewriter
24133 noweave -delay -index $$i > $$o
24134 \family default
24135
24136 \begin_inset Quotes erd
24137 \end_inset
24138
24139
24140 \end_layout
24141
24142 \begin_layout Description
24143
24144 \family sans
24145 NoWeb
24146 \family default
24147 ->
24148 \family sans
24149 Program
24150 \family default
24151  This performs the 
24152 \begin_inset Quotes eld
24153 \end_inset
24154
24155 tangling step
24156 \begin_inset Quotes erd
24157 \end_inset
24158
24159 .
24160  As stated above, the Converter is set to 
24161 \begin_inset Quotes eld
24162 \end_inset
24163
24164
24165 \family typewriter
24166 build-script $$i
24167 \family default
24168  $$r
24169 \begin_inset Quotes erd
24170 \end_inset
24171
24172 , with Flags set to
24173 \begin_inset Newline newline
24174 \end_inset
24175
24176
24177 \begin_inset Quotes eld
24178 \end_inset
24179
24180
24181 \family typewriter
24182 parselog=$$s/scripts/listerrors
24183 \family default
24184
24185 \begin_inset Quotes erd
24186 \end_inset
24187
24188 .
24189 \end_layout
24190
24191 \begin_layout Subsubsection
24192 Debug extensions
24193 \end_layout
24194
24195 \begin_layout Standard
24196 There is also a new function implemented in the \SpecialChar LyX
24197  server, the 
24198 \begin_inset Quotes eld
24199 \end_inset
24200
24201 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24202  
24203 \end_layout
24204
24205 \begin_layout Standard
24206 When debugging code with ddd/gdb, it is possible to invoke a text editor
24207  at the current execution position with a single key stroke.
24208  The default ddd configuration for that is shift-ctrl-V.
24209  It happens that you can define the editor command line invocation in ddd
24210  by accessing the 
24211 \family sans
24212 Edit\SpecialChar menuseparator
24213 Preferences\SpecialChar menuseparator
24214 Helpers
24215 \family default
24216  dialog and changing the "Edit Sources" entry.
24217 \end_layout
24218
24219 \begin_layout Standard
24220 I take advantage of the newly created \SpecialChar LyX
24221  server function and this ddd feature,
24222  and set 
24223 \begin_inset Quotes eld
24224 \end_inset
24225
24226 Edit Sources
24227 \begin_inset Quotes erd
24228 \end_inset
24229
24230  to:
24231 \end_layout
24232
24233 \begin_layout Standard
24234 \begin_inset VSpace defskip
24235 \end_inset
24236
24237
24238 \end_layout
24239
24240 \begin_layout Standard
24241
24242 \family sans
24243 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24244 \end_layout
24245
24246 \begin_layout Standard
24247 \begin_inset VSpace defskip
24248 \end_inset
24249
24250
24251 \end_layout
24252
24253 \begin_layout Standard
24254 With this, whenever you are using ddd and find a point in the program that
24255  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24256  ddd will forward this information to \SpecialChar LyX
24257  through the \SpecialChar LyX
24258  server and then the
24259  \SpecialChar LyX
24260  window will show the same file with the cursor at the same position ddd
24261  was pointing to.
24262  No more guessing or long scrolling to locate a point in the program back
24263  from debugging !
24264 \end_layout
24265
24266 \begin_layout Standard
24267 Note however that you must enable the \SpecialChar LyX
24268  server to get this feature working
24269  (it is disabled by default).
24270  You can enable it in 
24271 \family sans
24272 Preferences
24273 \family default
24274  (tabs 
24275 \family sans
24276 Inputs
24277 \family default
24278
24279 \family sans
24280 Paths
24281 \family default
24282 ) by entering in the 
24283 \family sans
24284 \SpecialChar LyX
24285 server pipe
24286 \family default
24287  a path like 
24288 \begin_inset Quotes eld
24289 \end_inset
24290
24291
24292 \family typewriter
24293 /home/<your-home-directory>/.lyx/lyxpipe
24294 \family default
24295
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299
24300 \end_layout
24301
24302 \begin_layout Standard
24303 Read the \SpecialChar LyX
24304  server documentation in the 
24305 \emph on
24306 Customization Manual
24307 \emph default
24308  for further information.
24309 \end_layout
24310
24311 \begin_layout Subsubsection
24312 Toolbar extensions
24313 \end_layout
24314
24315 \begin_layout Standard
24316 There are six new buttons that can be added to your \SpecialChar LyX
24317  toolbar.
24318  Five of these buttons are short cuts to layout styles: 
24319 \family sans
24320 Standard
24321 \family default
24322
24323 \family sans
24324 Section
24325 \family default
24326
24327 \family sans
24328 \SpecialChar LaTeX
24329
24330 \family default
24331
24332 \family sans
24333 \SpecialChar LyX
24334 -Code
24335 \family default
24336 , and 
24337 \family sans
24338 Chunk
24339 \family default
24340 .
24341  The last one is a short cut to the 
24342 \begin_inset Quotes eld
24343 \end_inset
24344
24345 Build Program
24346 \begin_inset Quotes erd
24347 \end_inset
24348
24349  File menu entry.
24350  
24351 \end_layout
24352
24353 \begin_layout Standard
24354 \SpecialChar LyX
24355  has a range of buttons that are available for tool bar customization.
24356  In my toolbar I like to combine the six short cuts above with two more:
24357  One for 
24358 \family sans
24359 Document
24360 \family default
24361 \SpecialChar menuseparator
24362
24363 \family sans
24364 Update
24365 \family default
24366 \SpecialChar menuseparator
24367
24368 \family sans
24369 DVI
24370 \family default
24371  and the other for 
24372 \family sans
24373 Document\SpecialChar menuseparator
24374 View\SpecialChar menuseparator
24375 DVI
24376 \family default
24377  File menu entries.
24378  Here is how it looks like:
24379 \end_layout
24380
24381 \begin_layout LyX-Code
24382 Toolbar
24383 \end_layout
24384
24385 \begin_layout LyX-Code
24386   Layouts
24387 \end_layout
24388
24389 \begin_layout LyX-Code
24390   Icon "layout Standard"
24391 \end_layout
24392
24393 \begin_layout LyX-Code
24394   Icon "layout Section"
24395 \end_layout
24396
24397 \begin_layout LyX-Code
24398   Icon "layout \SpecialChar LaTeX
24399 "
24400 \end_layout
24401
24402 \begin_layout LyX-Code
24403   Icon "layout \SpecialChar LyX
24404 -Code"
24405 \end_layout
24406
24407 \begin_layout LyX-Code
24408   Icon "layout Chunk"
24409 \end_layout
24410
24411 \begin_layout LyX-Code
24412   Separator
24413 \end_layout
24414
24415 \begin_layout LyX-Code
24416   Icon "buffer-view"
24417 \end_layout
24418
24419 \begin_layout LyX-Code
24420   Icon "buffer-typeset"
24421 \end_layout
24422
24423 \begin_layout LyX-Code
24424   Icon "build-program"
24425 \end_layout
24426
24427 \begin_layout LyX-Code
24428   Separator
24429 \end_layout
24430
24431 \begin_layout LyX-Code
24432 .
24433 \end_layout
24434
24435 \begin_layout LyX-Code
24436 .
24437 \end_layout
24438
24439 \begin_layout LyX-Code
24440 .
24441 \end_layout
24442
24443 \begin_layout LyX-Code
24444 End
24445 \end_layout
24446
24447 \begin_layout Subsubsection
24448 Colors customization
24449 \end_layout
24450
24451 \begin_layout Standard
24452 There are a number of colors in \SpecialChar LyX
24453  that can be customized in 
24454 \family sans
24455 Preferences
24456 \family default
24457 .
24458  One of the things that bothers people is the \SpecialChar LaTeX
24459  font color.
24460  The default color is red, since the chunks uses \SpecialChar LaTeX
24461  font, and there is a lot
24462  of chunks in literate documents, you may get tired of seeing everything
24463  in red.
24464  You can change it by going to the tabs 
24465 \family sans
24466 Look&Feel
24467 \family default
24468
24469 \family sans
24470 Colors.
24471 \end_layout
24472
24473 \begin_layout Standard
24474 The next thing is the visible presence of the newline character in the screen.
24475  You can choose the color of this particular character and make it blend
24476  in the background.
24477  I recommend you choosing a color that is close to the background but not
24478  equal, that way you still can see it is there, but it is not bothering
24479  you anymore.
24480 \end_layout
24481
24482 \begin_layout Subsection
24483 \SpecialChar LyX
24484  and knitr/Sweave
24485 \end_layout
24486
24487 \begin_layout Standard
24488 Support for 
24489 \family sans
24490 knitr
24491 \family default
24492  and 
24493 \family sans
24494 Sweave
24495 \family default
24496  is documented in the 
24497 \emph on
24498 knitr.lyx
24499 \emph default
24500  example file and in the Sweave manual (menu 
24501 \family sans
24502 Help\SpecialChar menuseparator
24503 Specific Manuals
24504 \family default
24505 ).
24506 \end_layout
24507
24508 \begin_layout Chapter
24509 Special features
24510 \end_layout
24511
24512 \begin_layout Standard
24513 You can do everything with \SpecialChar LyX
24514  that you can do with \SpecialChar LaTeX
24515 .
24516  However, \SpecialChar LyX
24517  cannot support every \SpecialChar LaTeX
24518  feature directly.
24519  But you can always use \SpecialChar TeX
24520  Code.
24521  This chapter shows you some more special things you might want to use.
24522  For other special things you can do with figures, tables, floats, boxes
24523  and notes, have a look at the 
24524 \emph on
24525 Embedded
24526 \begin_inset space ~
24527 \end_inset
24528
24529 Objects
24530 \emph default
24531  manual.
24532 \end_layout
24533
24534 \begin_layout Section
24535 Multiple Text Columns
24536 \end_layout
24537
24538 \begin_layout Standard
24539 This feature is independent of the option 
24540 \family sans
24541 Two-column document
24542 \family default
24543  in the document settings under 
24544 \family sans
24545 Text Layout
24546 \family default
24547 .
24548  If you want to have 2
24549 \begin_inset space ~
24550 \end_inset
24551
24552 columns for the whole document, it is recommended to use the 
24553 \family sans
24554 Two-column document
24555 \family default
24556  option.
24557  For all other cases use this feature.
24558 \end_layout
24559
24560 \begin_layout Standard
24561 To use multiple text columns in your document, you have to load the module
24562  
24563 \family sans
24564 Multiple Columns
24565 \family default
24566  (menu 
24567 \family sans
24568 Document\SpecialChar menuseparator
24569 Settings\SpecialChar menuseparator
24570 Modules
24571 \family default
24572 ) and must have the \SpecialChar LaTeX
24573 -package 
24574 \series bold
24575 multicol
24576 \series default
24577  installed.
24578 \end_layout
24579
24580 \begin_layout Standard
24581 Footnotes within multiple columns will be placed at the bottom of the page
24582  and not under each column.
24583  Within the different columns you can use everything, with the limitation
24584  that for floats you need to use the float option 
24585 \family sans
24586 Span columns
24587 \family default
24588 .
24589 \end_layout
24590
24591 \begin_layout Subsection
24592 Basics
24593 \end_layout
24594
24595 \begin_layout Standard
24596 If you want to have 2
24597 \begin_inset space ~
24598 \end_inset
24599
24600 columns in your text, insert a multicolumn inset via the menu 
24601 \family sans
24602 Insert\SpecialChar menuseparator
24603 Custom
24604 \begin_inset space ~
24605 \end_inset
24606
24607 Insets\SpecialChar menuseparator
24608 Multiple
24609 \begin_inset space ~
24610 \end_inset
24611
24612 Columns
24613 \family default
24614  where the columns should start.
24615  Write all text that should be printed in 2
24616 \begin_inset space ~
24617 \end_inset
24618
24619 columns into this inset.
24620 \end_layout
24621
24622 \begin_layout Standard
24623 Here is an example:
24624 \end_layout
24625
24626 \begin_layout Standard
24627 \noindent
24628 \begin_inset Flex Multiple Columns
24629 status open
24630
24631 \begin_layout Plain Layout
24632 \noindent
24633
24634 \series bold
24635 \size small
24636 The Adventure of the Empty House
24637 \series default
24638
24639 \begin_inset Newline newline
24640 \end_inset
24641
24642 by Sir Arthur Conan Doyle
24643 \end_layout
24644
24645 \begin_layout Plain Layout
24646
24647 \size small
24648 It was in the spring of the year 1894 that all London was interested, and
24649  the fashionable world dismayed, by the murder of the Honourable Ronald
24650  Adair under most unusual and inexplicable circumstances.
24651  The public has already learned those particulars of the crime which came
24652  out in the police investigation, but a good deal was suppressed upon that
24653  occasion, since the case for the prosecution was so overwhelmingly strong
24654  that it was not necessary to bring forward all the facts.
24655  Only now, at the end of nearly ten years, am I allowed to supply those
24656  missing links which make up the whole of that remarkable chain.
24657  The crime was of interest in itself, but that interest was as nothing to
24658  me compared to the inconceivable sequel, which afforded me the greatest
24659  shock and surprise of any event in my adventurous life.
24660  Even now, after this long interval, I find myself thrilling as I think
24661  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24662 ty which utterly submerged my mind.
24663  Let me say to that public, which has shown some interest in those glimpses
24664  which I have occasionally given them of the thoughts and actions of a very
24665  remarkable man, that they are not to blame me if I have not shared my knowledge
24666  with them, for I should have considered it my first duty to do so, had
24667  I not been barred by a positive prohibition from his own lips, which was
24668  only withdrawn upon the third of last month.
24669 \end_layout
24670
24671 \end_inset
24672
24673
24674 \end_layout
24675
24676 \begin_layout Standard
24677 To get 3 or more columns, set the cursor into the multicolumn inset and
24678  use the menu 
24679 \family sans
24680 Insert\SpecialChar menuseparator
24681 Number
24682 \begin_inset space ~
24683 \end_inset
24684
24685 of
24686 \begin_inset space ~
24687 \end_inset
24688
24689 Columns
24690 \family default
24691 .
24692  The number of the desired columns is written into that inset (for 3
24693 \begin_inset space ~
24694 \end_inset
24695
24696 columns write 
24697 \begin_inset Quotes eld
24698 \end_inset
24699
24700 3
24701 \begin_inset Quotes erd
24702 \end_inset
24703
24704 ).
24705 \begin_inset Newline newline
24706 \end_inset
24707
24708 Here is an example with 3
24709 \begin_inset space ~
24710 \end_inset
24711
24712 columns:
24713 \end_layout
24714
24715 \begin_layout Standard
24716 \begin_inset Flex Multiple Columns
24717 status open
24718
24719 \begin_layout Plain Layout
24720
24721 \size footnotesize
24722 \begin_inset Argument 1
24723 status open
24724
24725 \begin_layout Plain Layout
24726 3
24727 \end_layout
24728
24729 \end_inset
24730
24731 It can be imagined that my close intimacy with Sherlock Holmes had interested
24732  me deeply in crime, and that after his disappearance I never failed to
24733  read with care the various problems which came before the public.
24734  And I even attempted, more than once, for my own private satisfaction,
24735  to employ his methods in their solution, though with indifferent success.
24736  There was none, however, which appealed to me like this tragedy of Ronald
24737  Adair.
24738  As I read the evidence at the inquest, which led up to a verdict of willful
24739  murder against some person or persons unknown, I realized more clearly
24740  than I had ever done the loss which the community had sustained by the
24741  death of Sherlock Holmes.
24742  There were points about this strange business which would, I was sure,
24743  have specially appealed to him, and the efforts of the police would have
24744  been supplemented, or more probably anticipated, by the trained observation
24745  and the alert mind of the first criminal agent in Europe.
24746  All day, as I drove upon my round, I turned over the case in my mind and
24747  found no explanation which appeared to me to be adequate.
24748  At the risk of telling a twice-told tale, I will recapitulate the facts
24749  as they were known to the public at the conclusion of the inquest.
24750 \end_layout
24751
24752 \end_inset
24753
24754
24755 \end_layout
24756
24757 \begin_layout Standard
24758 You can have up to 10
24759 \begin_inset space ~
24760 \end_inset
24761
24762 columns if you want to, but that might not be very pleasant for the readers
24763  of your document.
24764 \end_layout
24765
24766 \begin_layout Standard
24767 \begin_inset Newpage newpage
24768 \end_inset
24769
24770
24771 \end_layout
24772
24773 \begin_layout Subsection
24774 Columns inside Columns
24775 \end_layout
24776
24777 \begin_layout Standard
24778 You can also have columns inside columns:
24779 \end_layout
24780
24781 \begin_layout Standard
24782 \begin_inset Flex Multiple Columns
24783 status open
24784
24785 \begin_layout Plain Layout
24786
24787 \size footnotesize
24788 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24789  at that time governor of one of the Australian colonies.
24790  Adair's mother had returned from Australia to undergo the operation for
24791  cataract, and she, her son Ronald, and her daughter Hilda were living together
24792  at 427 Park Lane.
24793 \end_layout
24794
24795 \begin_layout Plain Layout
24796 \begin_inset Flex Multiple Columns
24797 status open
24798
24799 \begin_layout Plain Layout
24800
24801 \size footnotesize
24802 The youth moved in the best society–had, so far as was known, no enemies
24803  and no particular vices.
24804  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24805  had been broken off by mutual consent some months before, and there was
24806  no sign that it had left any very profound feeling behind it.
24807  For the rest {sic} the man's life moved in a narrow and conventional circle,
24808  for his habits were quiet and his nature unemotional.
24809  Yet it was upon this easy-going young aristocrat that death came, in most
24810  strange and unexpected form, between the hours of ten and eleven-twenty
24811  on the night of March 30, 1894.
24812 \end_layout
24813
24814 \end_inset
24815
24816
24817 \end_layout
24818
24819 \begin_layout Plain Layout
24820
24821 \size footnotesize
24822 Ronald Adair was fond of cards–playing continually, but never for such stakes
24823  as would hurt him.
24824  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24825  It was shown that, after dinner on the day of his death, he had played
24826  a rubber of whist at the latter club.
24827  He had also played there in the afternoon.
24828
24829 \size default
24830  
24831 \size footnotesize
24832 The evidence of those who had played with him– Mr.
24833  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24834  and that there was a fairly equal fall of the cards.
24835  Adair might have lost five pounds, but not more.
24836  His fortune was a considerable one, and such a loss could not in any way
24837  affect him.
24838  He had played nearly every day at one club or other, but he was a cautious
24839  player, and usually rose a winner.
24840  It came out in evidence that, in partnership with Colonel Moran, he had
24841  actually won as much as four hundred and twenty pounds in a sitting, some
24842  weeks before, from Godfrey Milner and Lord Balmoral.
24843  So much for his recent history as it came out at the inquest.
24844 \end_layout
24845
24846 \end_inset
24847
24848
24849 \end_layout
24850
24851 \begin_layout Subsection
24852 Advanced Examples
24853 \end_layout
24854
24855 \begin_layout Standard
24856 The examples in this section show some more special features of multiple
24857  columns.
24858 \end_layout
24859
24860 \begin_layout Standard
24861 For more features of multiple columns, have a look at the documentation
24862  of the \SpecialChar LaTeX
24863 -package 
24864 \series bold
24865 multicol
24866 \series default
24867
24868 \begin_inset CommandInset citation
24869 LatexCommand cite
24870 key "multicol"
24871 literal "true"
24872
24873 \end_inset
24874
24875 .
24876 \end_layout
24877
24878 \begin_layout Subsubsection
24879 Preface
24880 \end_layout
24881
24882 \begin_layout Standard
24883 To add a preface text for multiple columns, set the cursor into the multicolumn
24884  inset and use the menu 
24885 \family sans
24886 Insert\SpecialChar menuseparator
24887 Preface
24888 \family default
24889 .
24890  Write your preface text into that inset.
24891 \begin_inset Newline newline
24892 \end_inset
24893
24894 This is an example with some preface text:
24895 \end_layout
24896
24897 \begin_layout Standard
24898 \begin_inset VSpace bigskip
24899 \end_inset
24900
24901
24902 \end_layout
24903
24904 \begin_layout Standard
24905 \begin_inset Flex Multiple Columns
24906 status open
24907
24908 \begin_layout Plain Layout
24909 \begin_inset Argument 2
24910 status open
24911
24912 \begin_layout Plain Layout
24913 And the story continues and continues and continues and continues\SpecialChar ldots
24914
24915 \end_layout
24916
24917 \end_inset
24918
24919
24920 \size small
24921 On the evening of the crime, he returned from the club exactly at ten.
24922  His mother and sister were out spending the evening with a relation.
24923  The servant deposed that she heard him enter the front room on the second
24924  floor, generally used as his sitting-room.
24925  She had lit a fire there, and as it smoked she had opened the window.
24926  No sound was heard from the room until eleven-twenty, the hour of the return
24927  of Lady Maynooth and her daughter.
24928  Desiring to say good-night, she attempted to enter her son's room.
24929  The door was locked on the inside, and no answer could be got to their
24930  cries and knocking.
24931  Help was obtained, and the door forced.
24932  The unfortunate young man was found lying near the table.
24933  His head had been horribly mutilated by an expanding revolver bullet, but
24934  no weapon of any sort was to be found in the room.
24935 \end_layout
24936
24937 \end_inset
24938
24939
24940 \end_layout
24941
24942 \begin_layout Standard
24943 You can also use a section heading as the preface if you use a section command
24944  as \SpecialChar TeX
24945  Code.
24946  For example the command
24947 \end_layout
24948
24949 \begin_layout Standard
24950
24951 \series bold
24952
24953 \backslash
24954 subsection{subsection title}
24955 \end_layout
24956
24957 \begin_layout Standard
24958 creates a subsection.
24959  In this example the preface is a subsubsection:
24960 \end_layout
24961
24962 \begin_layout Standard
24963 \begin_inset Flex Multiple Columns
24964 status open
24965
24966 \begin_layout Plain Layout
24967 \begin_inset Argument 2
24968 status open
24969
24970 \begin_layout Plain Layout
24971 \begin_inset ERT
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975
24976
24977 \backslash
24978 subsubsection{
24979 \end_layout
24980
24981 \end_inset
24982
24983 This is a subsubsection heading as a preface
24984 \begin_inset ERT
24985 status collapsed
24986
24987 \begin_layout Plain Layout
24988
24989 }
24990 \end_layout
24991
24992 \end_inset
24993
24994
24995 \end_layout
24996
24997 \end_inset
24998
24999
25000 \size small
25001 A minute examination of the circumstances served only to make the case more
25002  complex.
25003  In the first place, no reason could be given why the young man should have
25004  fastened the door upon the inside.
25005  There was the possibility that the murderer had done this, and had afterwards
25006  escaped by the window.
25007  The drop was at least twenty feet, however, and a bed of crocuses in full
25008  bloom lay beneath.
25009  Neither the flowers nor the earth showed any sign of having been disturbed,
25010  nor were there any marks upon the narrow strip of grass which separated
25011  the house from the road.
25012  Apparently, therefore, it was the young man himself who had fastened the
25013  door.
25014  But how did he come by his death? No one could have climbed up to the window
25015  without leaving traces.
25016  Suppose a man had fired through the window, he would indeed be a remarkable
25017  shot who could with a revolver inflict so deadly a wound.
25018  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25019  a hundred yards of the house.
25020  No one had heard a shot.
25021 \end_layout
25022
25023 \end_inset
25024
25025
25026 \end_layout
25027
25028 \begin_layout Standard
25029 If there is less vertical space than 6
25030 \begin_inset space ~
25031 \end_inset
25032
25033 text lines is left on the page at the beginning of the multiple columns,
25034  a page break will be inserted before the multiple columns.
25035  Depending on the number of lines of the preface text, you might want to
25036  change this space.
25037  This is done by setting the cursor into the mulitcolumn inset behind the
25038  preface (if there is any) and using the menu 
25039 \family sans
25040 Insert\SpecialChar menuseparator
25041 Space
25042 \begin_inset space ~
25043 \end_inset
25044
25045 Before
25046 \begin_inset space ~
25047 \end_inset
25048
25049 Page
25050 \begin_inset space ~
25051 \end_inset
25052
25053 Break
25054 \family default
25055 .
25056  Insert into that inset the amount of space like e.
25057 \begin_inset space \thinspace{}
25058 \end_inset
25059
25060 g.
25061 \begin_inset space \space{}
25062 \end_inset
25063
25064
25065 \begin_inset Quotes eld
25066 \end_inset
25067
25068 5cm
25069 \begin_inset Quotes erd
25070 \end_inset
25071
25072 .
25073 \begin_inset Newline newline
25074 \end_inset
25075
25076 In this example the space is set to 7
25077 \begin_inset space ~
25078 \end_inset
25079
25080 text lines by using 
25081 \begin_inset Quotes eld
25082 \end_inset
25083
25084 7
25085 \backslash
25086 baselineskip
25087 \begin_inset Quotes erd
25088 \end_inset
25089
25090  (where the command 
25091 \series bold
25092
25093 \backslash
25094 baselineskip
25095 \series default
25096  needs to be inserted as \SpecialChar TeX
25097  code):
25098 \end_layout
25099
25100 \begin_layout Standard
25101 \begin_inset Flex Multiple Columns
25102 status open
25103
25104 \begin_layout Plain Layout
25105 \begin_inset Argument 3
25106 status open
25107
25108 \begin_layout Plain Layout
25109 7
25110 \begin_inset ERT
25111 status collapsed
25112
25113 \begin_layout Plain Layout
25114
25115
25116 \backslash
25117 baselineskip
25118 \end_layout
25119
25120 \end_inset
25121
25122
25123 \end_layout
25124
25125 \end_inset
25126
25127
25128 \size small
25129 On the evening of the crime, he returned from the club exactly at ten.
25130  His mother and sister were out spending the evening with a relation.
25131  The servant deposed that she heard him enter the front room on the second
25132  floor, generally used as his sitting-room.
25133  She had lit a fire there, and as it smoked she had opened the window.
25134  No sound was heard from the room until eleven-twenty, the hour of the return
25135  of Lady Maynooth and her daughter.
25136  Desiring to say good-night, she attempted to enter her son's room.
25137  The door was locked on the inside, and no answer could be got to their
25138  cries and knocking.
25139  Help was obtained, and the door forced.
25140  The unfortunate young man was found lying near the table.
25141  His head had been horribly mutilated by an expanding revolver bullet, but
25142  no weapon of any sort was to be found in the room.
25143 \end_layout
25144
25145 \end_inset
25146
25147
25148 \end_layout
25149
25150 \begin_layout Subsubsection
25151 Surrounding Space
25152 \end_layout
25153
25154 \begin_layout Standard
25155 The amount of space before and after multiple columns can be changed by
25156  changing the length 
25157 \series bold
25158
25159 \backslash
25160 multicolsep
25161 \series default
25162 .
25163  For example the command
25164 \end_layout
25165
25166 \begin_layout Standard
25167
25168 \series bold
25169
25170 \backslash
25171 setlength{
25172 \backslash
25173 multicolsep}{3cm}
25174 \end_layout
25175
25176 \begin_layout Standard
25177 in \SpecialChar TeX
25178  Code changes its value to 3
25179 \begin_inset space \thinspace{}
25180 \end_inset
25181
25182 cm.
25183  The change must be made before the multiple columns' start.
25184  The predefined value is 13
25185 \begin_inset space \thinspace{}
25186 \end_inset
25187
25188 pt.
25189 \end_layout
25190
25191 \begin_layout Standard
25192 For this example 
25193 \series bold
25194
25195 \backslash
25196 multicolsep
25197 \series default
25198  was set to 2.5
25199 \begin_inset space \thinspace{}
25200 \end_inset
25201
25202 cm:
25203 \end_layout
25204
25205 \begin_layout Standard
25206 \begin_inset ERT
25207 status open
25208
25209 \begin_layout Plain Layout
25210
25211
25212 \backslash
25213 setlength{
25214 \backslash
25215 multicolsep}{2.5cm}
25216 \end_layout
25217
25218 \end_inset
25219
25220
25221 \end_layout
25222
25223 \begin_layout Standard
25224 \begin_inset Flex Multiple Columns
25225 status open
25226
25227 \begin_layout Plain Layout
25228
25229 \size small
25230 All day I turned these facts over in my mind, endeavouring to hit upon some
25231  theory which could reconcile them all, and to find that line of least resistanc
25232 e which my poor friend had declared to be the starting-point of every investigat
25233 ion.
25234  I confess that I made little progress.
25235  In the evening I strolled across the Park, and found myself about six o'clock
25236  at the Oxford Street end of Park Lane.
25237  A group of loafers upon the pavements, all staring up at a particular window,
25238  directed me to the house which I had come to see.
25239  A tall, thin man with coloured glasses, whom I strongly suspected of being
25240  a plain-clothes detective, was pointing out some theory of his own, while
25241  the others crowded round to listen to what he said.
25242  I got as near him as I could, but his observations seemed to me to be absurd,
25243  so I withdrew again in some disgust.
25244  As I did so I struck against an elderly, deformed man, who had been behind
25245  me, and I knocked down several books which he was carrying.
25246 \end_layout
25247
25248 \end_inset
25249
25250
25251 \end_layout
25252
25253 \begin_layout Standard
25254 \begin_inset Note Greyedout
25255 status open
25256
25257 \begin_layout Plain Layout
25258
25259 \series bold
25260 Note:
25261 \series default
25262  The values you set with 
25263 \series bold
25264
25265 \backslash
25266 setlength
25267 \series default
25268  will be used for all following multiple columns until you change them again.
25269 \end_layout
25270
25271 \end_inset
25272
25273
25274 \end_layout
25275
25276 \begin_layout Standard
25277 \begin_inset ERT
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281
25282
25283 \backslash
25284 setlength{
25285 \backslash
25286 multicolsep}{13pt}
25287 \end_layout
25288
25289 \end_inset
25290
25291
25292 \begin_inset Note Note
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 go back to the default
25297 \end_layout
25298
25299 \end_inset
25300
25301
25302 \end_layout
25303
25304 \begin_layout Standard
25305 \begin_inset Newpage newpage
25306 \end_inset
25307
25308
25309 \end_layout
25310
25311 \begin_layout Subsubsection
25312 Column Breaks
25313 \end_layout
25314
25315 \begin_layout Standard
25316 A column break can be forced by inserting the command 
25317 \series bold
25318
25319 \backslash
25320 columnbreak{}
25321 \series default
25322  as \SpecialChar TeX
25323  Code to that position in the text where the column should be broken.
25324  Note that this leads in most cases to whitespace in the text.
25325 \begin_inset Newline newline
25326 \end_inset
25327
25328 Here is an example:
25329 \end_layout
25330
25331 \begin_layout Standard
25332 \begin_inset Flex Multiple Columns
25333 status open
25334
25335 \begin_layout Plain Layout
25336
25337 \size small
25338 \begin_inset Quotes eld
25339 \end_inset
25340
25341 You're surprised to see me, sir,
25342 \begin_inset Quotes erd
25343 \end_inset
25344
25345  said he, in a strange, croaking voice.
25346 \end_layout
25347
25348 \begin_layout Plain Layout
25349
25350 \size small
25351 I acknowledged that I was.
25352 \end_layout
25353
25354 \begin_layout Plain Layout
25355
25356 \size small
25357 \begin_inset Quotes eld
25358 \end_inset
25359
25360 Well, I've a conscience, sir, and when I chanced to see you go into this
25361  house, as I came hobbling after you, I thought to myself, I'll just step
25362  in and see that kind gentleman, and tell him that if I was a bit gruff
25363  in my manner there was not any harm meant, and that I am much obliged to
25364  him for picking up my books.
25365 \begin_inset Quotes erd
25366 \end_inset
25367
25368
25369 \end_layout
25370
25371 \begin_layout Plain Layout
25372
25373 \size small
25374 \begin_inset Quotes eld
25375 \end_inset
25376
25377 You make too much of a trifle,
25378 \begin_inset Quotes erd
25379 \end_inset
25380
25381  said I.
25382  
25383 \begin_inset Quotes eld
25384 \end_inset
25385
25386 May I ask how you knew who I was?
25387 \begin_inset Quotes erd
25388 \end_inset
25389
25390  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25391 \begin_inset ERT
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395
25396
25397 \backslash
25398 columnbreak{}
25399 \end_layout
25400
25401 \end_inset
25402
25403
25404 \end_layout
25405
25406 \begin_layout Plain Layout
25407
25408 \size small
25409 \begin_inset Quotes eld
25410 \end_inset
25411
25412 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25413  you'll find my little bookshop at the corner of Church Street, and very
25414  happy to see you, I am sure.
25415  Maybe you collect yourself, sir.
25416  Here's 
25417 \noun on
25418 British
25419 \begin_inset space ~
25420 \end_inset
25421
25422 Birds
25423 \noun default
25424 , and 
25425 \noun on
25426 Catullus
25427 \noun default
25428 , and 
25429 \noun on
25430 The Holy War
25431 \noun default
25432 –a bargain, every one of them.
25433  With five volumes you could just fill that gap on that second shelf.
25434  It looks untidy, does it not, sir?
25435 \begin_inset Quotes erd
25436 \end_inset
25437
25438
25439 \end_layout
25440
25441 \end_inset
25442
25443
25444 \end_layout
25445
25446 \begin_layout Subsubsection
25447 Column Separation
25448 \end_layout
25449
25450 \begin_layout Standard
25451 The width of the columns is automatically calculated, but you can modify
25452  the space between the columns.
25453  This is done by changing the length 
25454 \series bold
25455
25456 \backslash
25457 columnsep
25458 \series default
25459 .
25460  Its predefined value is 10
25461 \begin_inset space \thinspace{}
25462 \end_inset
25463
25464 pt.
25465  Here is an example where 
25466 \series bold
25467
25468 \backslash
25469 columnsep
25470 \series default
25471  is set to 3
25472 \begin_inset space \thinspace{}
25473 \end_inset
25474
25475 cm:
25476 \end_layout
25477
25478 \begin_layout Standard
25479 \begin_inset ERT
25480 status open
25481
25482 \begin_layout Plain Layout
25483
25484
25485 \backslash
25486 setlength{
25487 \backslash
25488 columnsep}{3cm}
25489 \end_layout
25490
25491 \end_inset
25492
25493
25494 \end_layout
25495
25496 \begin_layout Standard
25497 \begin_inset Flex Multiple Columns
25498 status open
25499
25500 \begin_layout Plain Layout
25501
25502 \size small
25503 My observations of No.
25504 \begin_inset space \space{}
25505 \end_inset
25506
25507 427 Park Lane did little to clear up the problem in which I was interested.
25508  The house was separated from the street by a low wall and railing, the
25509  whole not more than five feet high.
25510  It was perfectly easy, therefore, for anyone to get into the garden, but
25511  the window was entirely inaccessible, since there was no water pipe or
25512  anything which could help the most active man to climb it.
25513  More puzzled than ever, I retraced my steps to Kensington.
25514  I had not been in my study five minutes when the maid entered to say that
25515  a person desired to see me.
25516  To my astonishment it was none other than my strange old book collector,
25517  his sharp, wizened face peering out from a frame of white hair, and his
25518  precious volumes, a dozen of them at least, wedged under his right arm.
25519 \end_layout
25520
25521 \end_inset
25522
25523
25524 \end_layout
25525
25526 \begin_layout Standard
25527 \begin_inset ERT
25528 status collapsed
25529
25530 \begin_layout Plain Layout
25531
25532
25533 \backslash
25534 setlength{
25535 \backslash
25536 columnsep}{10pt}
25537 \end_layout
25538
25539 \end_inset
25540
25541
25542 \begin_inset Note Note
25543 status collapsed
25544
25545 \begin_layout Plain Layout
25546 go back to the default
25547 \end_layout
25548
25549 \end_inset
25550
25551
25552 \end_layout
25553
25554 \begin_layout Subsubsection
25555 Vertical Lines
25556 \end_layout
25557
25558 \begin_layout Standard
25559 Between the columns a rule with a width of the length 
25560 \series bold
25561
25562 \backslash
25563 columnseprule
25564 \series default
25565  is placed.
25566  If this rule width is set to 0
25567 \begin_inset space \thinspace{}
25568 \end_inset
25569
25570 pt (this is the default), the rule is suppressed.
25571  In the following example the rule is 2
25572 \begin_inset space \thinspace{}
25573 \end_inset
25574
25575 pt wide:
25576 \end_layout
25577
25578 \begin_layout Standard
25579 \begin_inset ERT
25580 status open
25581
25582 \begin_layout Plain Layout
25583
25584
25585 \backslash
25586 setlength{
25587 \backslash
25588 columnseprule}{2pt}
25589 \end_layout
25590
25591 \end_inset
25592
25593
25594 \end_layout
25595
25596 \begin_layout Standard
25597 \begin_inset Flex Multiple Columns
25598 status open
25599
25600 \begin_layout Plain Layout
25601
25602 \size small
25603 \begin_inset Quotes eld
25604 \end_inset
25605
25606 You're surprised to see me, sir,
25607 \begin_inset Quotes erd
25608 \end_inset
25609
25610  said he, in a strange, croaking voice.
25611 \end_layout
25612
25613 \begin_layout Plain Layout
25614
25615 \size small
25616 I acknowledged that I was.
25617 \end_layout
25618
25619 \begin_layout Plain Layout
25620
25621 \size small
25622 \begin_inset Quotes eld
25623 \end_inset
25624
25625 Well, I've a conscience, sir, and when I chanced to see you go into this
25626  house, as I came hobbling after you, I thought to myself, I'll just step
25627  in and see that kind gentleman, and tell him that if I was a bit gruff
25628  in my manner there was not any harm meant, and that I am much obliged to
25629  him for picking up my books.
25630 \begin_inset Quotes erd
25631 \end_inset
25632
25633
25634 \end_layout
25635
25636 \begin_layout Plain Layout
25637
25638 \size small
25639 \begin_inset Quotes eld
25640 \end_inset
25641
25642 You make too much of a trifle,
25643 \begin_inset Quotes erd
25644 \end_inset
25645
25646  said I.
25647  
25648 \begin_inset Quotes eld
25649 \end_inset
25650
25651 May I ask how you knew who I was?
25652 \begin_inset Quotes erd
25653 \end_inset
25654
25655
25656 \end_layout
25657
25658 \begin_layout Plain Layout
25659
25660 \size small
25661 \begin_inset Quotes eld
25662 \end_inset
25663
25664 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25665  you'll find my little bookshop at the corner of Church Street, and very
25666  happy to see you, I am sure.
25667  Maybe you collect yourself, sir.
25668  Here's 
25669 \noun on
25670 British
25671 \begin_inset space ~
25672 \end_inset
25673
25674 Birds
25675 \noun default
25676 , and 
25677 \noun on
25678 Catullus
25679 \noun default
25680 , and 
25681 \noun on
25682 The Holy War
25683 \noun default
25684 –a bargain, every one of them.
25685  With five volumes you could just fill that gap on that second shelf.
25686  It looks untidy, does it not, sir?
25687 \begin_inset Quotes erd
25688 \end_inset
25689
25690
25691 \end_layout
25692
25693 \end_inset
25694
25695
25696 \end_layout
25697
25698 \begin_layout Standard
25699 \begin_inset VSpace defskip
25700 \end_inset
25701
25702
25703 \end_layout
25704
25705 \begin_layout Standard
25706 The rule can be colored by redefining the command 
25707 \series bold
25708
25709 \backslash
25710 columnseprulecolor
25711 \series default
25712 .
25713  This is done by inserting the command
25714 \begin_inset Newline newline
25715 \end_inset
25716
25717
25718 \series bold
25719
25720 \backslash
25721 renewcommand{
25722 \backslash
25723 columnseprulecolor}{
25724 \backslash
25725 color{red}}
25726 \series default
25727
25728 \begin_inset Newline newline
25729 \end_inset
25730
25731 as \SpecialChar TeX
25732  Code before the multicolumn inset.
25733  Replace 
25734 \series bold
25735 red
25736 \series default
25737  in this command by a color of your choice.
25738  You can use all pre- and self-defined colors.
25739  See the 
25740 \emph on
25741 EmbeddedObjects
25742 \emph default
25743  manual, section 
25744 \emph on
25745 Colored
25746 \begin_inset space ~
25747 \end_inset
25748
25749 Tables
25750 \emph default
25751  for more information about pre- and self-defined colors.
25752  To go back to the default color insert the command
25753 \begin_inset Newline newline
25754 \end_inset
25755
25756
25757 \series bold
25758
25759 \backslash
25760 renewcommand{
25761 \backslash
25762 columnseprulecolor}{
25763 \backslash
25764 normalcolor}
25765 \series default
25766
25767 \begin_inset Newline newline
25768 \end_inset
25769
25770 Here is the example with a cyan rule and 1
25771 \begin_inset space \thinspace{}
25772 \end_inset
25773
25774 cm column separation:
25775 \end_layout
25776
25777 \begin_layout Standard
25778 \begin_inset ERT
25779 status open
25780
25781 \begin_layout Plain Layout
25782
25783
25784 \backslash
25785 setlength{
25786 \backslash
25787 columnsep}{1cm}
25788 \end_layout
25789
25790 \begin_layout Plain Layout
25791
25792
25793 \backslash
25794 renewcommand{
25795 \backslash
25796 columnseprulecolor}{
25797 \backslash
25798 color{cyan}}
25799 \end_layout
25800
25801 \end_inset
25802
25803
25804 \end_layout
25805
25806 \begin_layout Standard
25807 \begin_inset Flex Multiple Columns
25808 status open
25809
25810 \begin_layout Plain Layout
25811
25812 \size small
25813 \begin_inset Quotes eld
25814 \end_inset
25815
25816 You're surprised to see me, sir,
25817 \begin_inset Quotes erd
25818 \end_inset
25819
25820  said he, in a strange, croaking voice.
25821 \end_layout
25822
25823 \begin_layout Plain Layout
25824
25825 \size small
25826 I acknowledged that I was.
25827 \end_layout
25828
25829 \begin_layout Plain Layout
25830
25831 \size small
25832 \begin_inset Quotes eld
25833 \end_inset
25834
25835 Well, I've a conscience, sir, and when I chanced to see you go into this
25836  house, as I came hobbling after you, I thought to myself, I'll just step
25837  in and see that kind gentleman, and tell him that if I was a bit gruff
25838  in my manner there was not any harm meant, and that I am much obliged to
25839  him for picking up my books.
25840 \begin_inset Quotes erd
25841 \end_inset
25842
25843
25844 \end_layout
25845
25846 \begin_layout Plain Layout
25847
25848 \size small
25849 \begin_inset Quotes eld
25850 \end_inset
25851
25852 You make too much of a trifle,
25853 \begin_inset Quotes erd
25854 \end_inset
25855
25856  said I.
25857  
25858 \begin_inset Quotes eld
25859 \end_inset
25860
25861 May I ask how you knew who I was?
25862 \begin_inset Quotes erd
25863 \end_inset
25864
25865
25866 \end_layout
25867
25868 \begin_layout Plain Layout
25869
25870 \size small
25871 \begin_inset Quotes eld
25872 \end_inset
25873
25874 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25875  you'll find my little bookshop at the corner of Church Street, and very
25876  happy to see you, I am sure.
25877  Maybe you collect yourself, sir.
25878  Here's 
25879 \noun on
25880 British
25881 \begin_inset space ~
25882 \end_inset
25883
25884 Birds
25885 \noun default
25886 , and 
25887 \noun on
25888 Catullus
25889 \noun default
25890 , and 
25891 \noun on
25892 The Holy War
25893 \noun default
25894 –a bargain, every one of them.
25895  With five volumes you could just fill that gap on that second shelf.
25896  It looks untidy, does it not, sir?
25897 \begin_inset Quotes erd
25898 \end_inset
25899
25900
25901 \end_layout
25902
25903 \end_inset
25904
25905
25906 \end_layout
25907
25908 \begin_layout Standard
25909 \begin_inset ERT
25910 status collapsed
25911
25912 \begin_layout Plain Layout
25913
25914
25915 \backslash
25916 setlength{
25917 \backslash
25918 columnseprule}{0pt}
25919 \end_layout
25920
25921 \begin_layout Plain Layout
25922
25923
25924 \backslash
25925 renewcommand{
25926 \backslash
25927 columnseprulecolor}{
25928 \backslash
25929 normalcolor}
25930 \end_layout
25931
25932 \end_inset
25933
25934
25935 \begin_inset Note Note
25936 status collapsed
25937
25938 \begin_layout Plain Layout
25939 go back to the default
25940 \end_layout
25941
25942 \end_inset
25943
25944
25945 \end_layout
25946
25947 \begin_layout Section
25948 Non-standard Paragraph Shapes
25949 \end_layout
25950
25951 \begin_layout Standard
25952 \noindent
25953 \SpecialChar LaTeX
25954  as well as any other text processor uses by default rectangular paragraphs.
25955  For special cases like for example posters, invitation cards or poems you
25956  can modify the paragraph shape to one of your choice.
25957  This can be done by using the \SpecialChar LaTeX
25958 -package 
25959 \series bold
25960 shapepar
25961 \series default
25962  which is loaded by using in the document settings the module 
25963 \family sans
25964 Custom paragraph shapes
25965 \family default
25966 .
25967 \end_layout
25968
25969 \begin_layout Subsection
25970 Predefined shapes
25971 \end_layout
25972
25973 \begin_layout Standard
25974
25975 \series bold
25976 shapepar
25977 \series default
25978  provides the following shapes:
25979 \end_layout
25980
25981 \begin_layout Standard
25982 \begin_inset Tabular
25983 <lyxtabular version="3" rows="13" columns="3">
25984 <features booktabs="true" islongtable="true" longtabularalignment="center">
25985 <column alignment="center" valignment="middle" width="16col%">
25986 <column alignment="center" valignment="middle" width="40col%">
25987 <column alignment="center" valignment="middle" width="35col%">
25988 <row endhead="true">
25989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25990 \begin_inset Text
25991
25992 \begin_layout Plain Layout
25993 Name
25994 \end_layout
25995
25996 \end_inset
25997 </cell>
25998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25999 \begin_inset Text
26000
26001 \begin_layout Plain Layout
26002 Description
26003 \end_layout
26004
26005 \end_inset
26006 </cell>
26007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26008 \begin_inset Text
26009
26010 \begin_layout Plain Layout
26011 Annotation
26012 \end_layout
26013
26014 \end_inset
26015 </cell>
26016 </row>
26017 <row>
26018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26019 \begin_inset Text
26020
26021 \begin_layout Plain Layout
26022 CDlabel
26023 \end_layout
26024
26025 \end_inset
26026 </cell>
26027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26028 \begin_inset Text
26029
26030 \begin_layout Plain Layout
26031 Circle with circular hole (in the size of a CD/DVD)
26032 \end_layout
26033
26034 \end_inset
26035 </cell>
26036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26037 \begin_inset Text
26038
26039 \begin_layout Plain Layout
26040 Cannot be scaled, take care there is not too much text
26041 \end_layout
26042
26043 \end_inset
26044 </cell>
26045 </row>
26046 <row>
26047 <cell alignment="center" valignment="top" topline="true" usebox="none">
26048 \begin_inset Text
26049
26050 \begin_layout Plain Layout
26051 Circle
26052 \end_layout
26053
26054 \end_inset
26055 </cell>
26056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26057 \begin_inset Text
26058
26059 \begin_layout Plain Layout
26060 Circle
26061 \end_layout
26062
26063 \end_inset
26064 </cell>
26065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26066 \begin_inset Text
26067
26068 \begin_layout Plain Layout
26069 Fragile, calculation might fail
26070 \end_layout
26071
26072 \end_inset
26073 </cell>
26074 </row>
26075 <row>
26076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26077 \begin_inset Text
26078
26079 \begin_layout Plain Layout
26080 Diamond
26081 \end_layout
26082
26083 \end_inset
26084 </cell>
26085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26086 \begin_inset Text
26087
26088 \begin_layout Plain Layout
26089 Rhomboid (symbolizing a 
26090 \begin_inset Quotes eld
26091 \end_inset
26092
26093 diamond
26094 \begin_inset Quotes erd
26095 \end_inset
26096
26097 )
26098 \end_layout
26099
26100 \end_inset
26101 </cell>
26102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26103 \begin_inset Text
26104
26105 \begin_layout Plain Layout
26106 -
26107 \end_layout
26108
26109 \end_inset
26110 </cell>
26111 </row>
26112 <row>
26113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26114 \begin_inset Text
26115
26116 \begin_layout Plain Layout
26117 Heart
26118 \end_layout
26119
26120 \end_inset
26121 </cell>
26122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26123 \begin_inset Text
26124
26125 \begin_layout Plain Layout
26126 Heart-like shape
26127 \end_layout
26128
26129 \end_inset
26130 </cell>
26131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26132 \begin_inset Text
26133
26134 \begin_layout Plain Layout
26135 -
26136 \end_layout
26137
26138 \end_inset
26139 </cell>
26140 </row>
26141 <row>
26142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26143 \begin_inset Text
26144
26145 \begin_layout Plain Layout
26146 Hexagon
26147 \end_layout
26148
26149 \end_inset
26150 </cell>
26151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26152 \begin_inset Text
26153
26154 \begin_layout Plain Layout
26155 Hexagon
26156 \end_layout
26157
26158 \end_inset
26159 </cell>
26160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26161 \begin_inset Text
26162
26163 \begin_layout Plain Layout
26164 -
26165 \end_layout
26166
26167 \end_inset
26168 </cell>
26169 </row>
26170 <row>
26171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26172 \begin_inset Text
26173
26174 \begin_layout Plain Layout
26175 Nut
26176 \end_layout
26177
26178 \end_inset
26179 </cell>
26180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26181 \begin_inset Text
26182
26183 \begin_layout Plain Layout
26184 Nut for bolt (hexagon with circular hole)
26185 \end_layout
26186
26187 \end_inset
26188 </cell>
26189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26190 \begin_inset Text
26191
26192 \begin_layout Plain Layout
26193 -
26194 \end_layout
26195
26196 \end_inset
26197 </cell>
26198 </row>
26199 <row>
26200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26201 \begin_inset Text
26202
26203 \begin_layout Plain Layout
26204 Square
26205 \end_layout
26206
26207 \end_inset
26208 </cell>
26209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26210 \begin_inset Text
26211
26212 \begin_layout Plain Layout
26213 Square
26214 \end_layout
26215
26216 \end_inset
26217 </cell>
26218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26219 \begin_inset Text
26220
26221 \begin_layout Plain Layout
26222 -
26223 \end_layout
26224
26225 \end_inset
26226 </cell>
26227 </row>
26228 <row>
26229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26230 \begin_inset Text
26231
26232 \begin_layout Plain Layout
26233 Star
26234 \end_layout
26235
26236 \end_inset
26237 </cell>
26238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26239 \begin_inset Text
26240
26241 \begin_layout Plain Layout
26242 Five-point star
26243 \end_layout
26244
26245 \end_inset
26246 </cell>
26247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26248 \begin_inset Text
26249
26250 \begin_layout Plain Layout
26251 -
26252 \end_layout
26253
26254 \end_inset
26255 </cell>
26256 </row>
26257 <row>
26258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26259 \begin_inset Text
26260
26261 \begin_layout Plain Layout
26262 Candle
26263 \end_layout
26264
26265 \end_inset
26266 </cell>
26267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26268 \begin_inset Text
26269
26270 \begin_layout Plain Layout
26271 Burning candle
26272 \end_layout
26273
26274 \end_inset
26275 </cell>
26276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26277 \begin_inset Text
26278
26279 \begin_layout Plain Layout
26280 -
26281 \end_layout
26282
26283 \end_inset
26284 </cell>
26285 </row>
26286 <row>
26287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26288 \begin_inset Text
26289
26290 \begin_layout Plain Layout
26291 Drop down/up
26292 \end_layout
26293
26294 \end_inset
26295 </cell>
26296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26297 \begin_inset Text
26298
26299 \begin_layout Plain Layout
26300 Normal/reversed rain drop
26301 \end_layout
26302
26303 \end_inset
26304 </cell>
26305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26306 \begin_inset Text
26307
26308 \begin_layout Plain Layout
26309 Fragile, calculation might fail
26310 \end_layout
26311
26312 \end_inset
26313 </cell>
26314 </row>
26315 <row>
26316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26317 \begin_inset Text
26318
26319 \begin_layout Plain Layout
26320 \SpecialChar TeX
26321
26322 \end_layout
26323
26324 \end_inset
26325 </cell>
26326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26327 \begin_inset Text
26328
26329 \begin_layout Plain Layout
26330 The \SpecialChar TeX
26331  logo
26332 \end_layout
26333
26334 \end_inset
26335 </cell>
26336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26337 \begin_inset Text
26338
26339 \begin_layout Plain Layout
26340 -
26341 \end_layout
26342
26343 \end_inset
26344 </cell>
26345 </row>
26346 <row>
26347 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26348 \begin_inset Text
26349
26350 \begin_layout Plain Layout
26351 Triangle up/down/
26352 \begin_inset Newline newline
26353 \end_inset
26354
26355 left/right
26356 \end_layout
26357
26358 \end_inset
26359 </cell>
26360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26361 \begin_inset Text
26362
26363 \begin_layout Plain Layout
26364 Triangles in different orientations
26365 \end_layout
26366
26367 \end_inset
26368 </cell>
26369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26370 \begin_inset Text
26371
26372 \begin_layout Plain Layout
26373 -
26374 \end_layout
26375
26376 \end_inset
26377 </cell>
26378 </row>
26379 </lyxtabular>
26380
26381 \end_inset
26382
26383
26384 \end_layout
26385
26386 \begin_layout Standard
26387 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26388 's pull-down box
26389  for environments in the toolbar.
26390 \end_layout
26391
26392 \begin_layout Standard
26393 \begin_inset Newpage newpage
26394 \end_inset
26395
26396
26397 \end_layout
26398
26399 \begin_layout Standard
26400 Here is an example paragraph in the shape of a nut:
26401 \end_layout
26402
26403 \begin_layout Standard
26404 \begin_inset VSpace bigskip
26405 \end_inset
26406
26407
26408 \end_layout
26409
26410 \begin_layout Nut
26411
26412 \lang latin
26413 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26414  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26415  voluptua.
26416  At vero eos et accusam et justo duo dolores et ea rebum.
26417  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26418  sit amet.
26419  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26420  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26421  voluptua.
26422 \end_layout
26423
26424 \begin_layout Standard
26425 \begin_inset VSpace bigskip
26426 \end_inset
26427
26428
26429 \end_layout
26430
26431 \begin_layout Standard
26432 \begin_inset Note Greyedout
26433 status open
26434
26435 \begin_layout Plain Layout
26436
26437 \series bold
26438 Note
26439 \series default
26440 : shapepar paragraphs cannot run over a page break.
26441 \end_layout
26442
26443 \end_inset
26444
26445
26446 \end_layout
26447
26448 \begin_layout Standard
26449 \begin_inset VSpace bigskip
26450 \end_inset
26451
26452
26453 \end_layout
26454
26455 \begin_layout Standard
26456
26457 \series bold
26458 shapepar
26459 \series default
26460  takes care that the shape will always be preserved, no matter how much
26461  text is in the paragraph.
26462  Therefore the paragraph size changes with the amount of contained text.
26463  This can lead to paragraph sizes exceeding the page margins.
26464  To demonstrate the size scaling, here is the same example paragraph but
26465  with twice as much text:
26466 \end_layout
26467
26468 \begin_layout Standard
26469 \begin_inset Newpage newpage
26470 \end_inset
26471
26472
26473 \end_layout
26474
26475 \begin_layout Nut
26476
26477 \lang latin
26478 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26479  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26480  voluptua.
26481  At vero eos et accusam et justo duo dolores et ea rebum.
26482  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26483  sit amet.
26484  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26485  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26486  voluptua.
26487  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26488  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26489  voluptua.
26490  At vero eos et accusam et justo duo dolores et ea rebum.
26491  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26492  sit amet.
26493  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26494  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26495  voluptua.
26496 \end_layout
26497
26498 \begin_layout Standard
26499 \begin_inset VSpace bigskip
26500 \end_inset
26501
26502
26503 \end_layout
26504
26505 \begin_layout Standard
26506 An exception is the shape 
26507 \family sans
26508 CDlabel
26509 \family default
26510 .
26511  It cannot be scaled because it must fit the size of a CD/DVD.
26512  Therefore the amount of text that fits into the shape is limited.
26513 \begin_inset Newline newline
26514 \end_inset
26515
26516 The 
26517 \family sans
26518 drop
26519 \family default
26520  shapes and the 
26521 \family sans
26522 circle
26523 \family default
26524  shape are fragile, meaning that the calculation of their size can fail,
26525  depending on the amount of text.
26526  You will then get the \SpecialChar LaTeX
26527  error 
26528 \begin_inset Quotes eld
26529 \end_inset
26530
26531 Arithmetic overflow
26532 \begin_inset Quotes erd
26533 \end_inset
26534
26535 .
26536  In this case one can try to remove or add some text; if nothing works one
26537  has to use another shape.
26538 \end_layout
26539
26540 \begin_layout Standard
26541 \begin_inset VSpace bigskip
26542 \end_inset
26543
26544
26545 \end_layout
26546
26547 \begin_layout Standard
26548 For shapes with tips you will maybe see that \SpecialChar LaTeX
26549 's hyphenation routine fails
26550  for text in the tips.
26551  Therefore it is often necessary to add hyphenation points 
26552 \family sans
26553 (
26554 \begin_inset Info
26555 type  "shortcut"
26556 arg   "specialchar-insert hyphenation"
26557 \end_inset
26558
26559
26560 \family default
26561 ) to the corresponding text parts.
26562 \end_layout
26563
26564 \begin_layout Standard
26565 \begin_inset VSpace bigskip
26566 \end_inset
26567
26568
26569 \end_layout
26570
26571 \begin_layout Standard
26572 Shapepar paragraphs are either always centered or placed on the page so
26573  that their left border touches the left page margin.
26574  You can therefore not use the paragraph dialog to align such paragraphs.
26575  A solution is to put the paragraph into a minipage or parbox and align
26576  the box.
26577  The problem is hereby to find the right width for the box.
26578  Because if it is too wide and you center the box, the paragraph is not
26579  centered too because it sticks at the left side of the box.
26580  So you might have to play a bit with the width until it fits.
26581  Here are two heart-shaped paragraphs, the first one is not aligned, the
26582  second one is right-aligned:
26583 \end_layout
26584
26585 \begin_layout Standard
26586 \begin_inset Newpage newpage
26587 \end_inset
26588
26589
26590 \end_layout
26591
26592 \begin_layout Heart
26593 \noindent
26594
26595 \lang latin
26596 Lo\SpecialChar softhyphen
26597 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26598  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26599  voluptua.
26600  At vero eos et accusam et justo duo dolores et ea rebum.
26601  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26602  sit amet.
26603 \end_layout
26604
26605 \begin_layout Standard
26606 \begin_inset VSpace bigskip
26607 \end_inset
26608
26609
26610 \end_layout
26611
26612 \begin_layout Standard
26613 \noindent
26614 \align right
26615 \begin_inset Box Frameless
26616 position "t"
26617 hor_pos "c"
26618 has_inner_box 1
26619 inner_pos "t"
26620 use_parbox 1
26621 use_makebox 0
26622 width "42col%"
26623 special "none"
26624 height "1in"
26625 height_special "totalheight"
26626 thickness "0.4pt"
26627 separation "3pt"
26628 shadowsize "4pt"
26629 framecolor "black"
26630 backgroundcolor "none"
26631 status open
26632
26633 \begin_layout Heart
26634 \noindent
26635
26636 \lang latin
26637 Lo\SpecialChar softhyphen
26638 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26639  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26640  voluptua.
26641  At vero eos et accusam et justo duo dolores et ea rebum.
26642  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26643  sit amet.
26644 \end_layout
26645
26646 \end_inset
26647
26648
26649 \end_layout
26650
26651 \begin_layout Subsection
26652 Custom shapes
26653 \end_layout
26654
26655 \begin_layout Standard
26656 You can define any shape you want.
26657  Doing this manually is a lot of work because every coordinate must be specified.
26658  But there is a way to let the computer calculate the coordinates:
26659 \end_layout
26660
26661 \begin_layout Enumerate
26662 Install the program 
26663 \begin_inset CommandInset href
26664 LatexCommand href
26665 name "Jpgfdraw"
26666 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26667 literal "false"
26668
26669 \end_inset
26670
26671 .
26672 \end_layout
26673
26674 \begin_layout Enumerate
26675 In 
26676 \family sans
26677 Jpgfdraw
26678 \family default
26679  go to the menu 
26680 \family sans
26681 TeX/LaTeX\SpecialChar menuseparator
26682 Settings\SpecialChar menuseparator
26683 Set Normal Size
26684 \family default
26685  and select the font size you are using in your document.
26686  For example this document uses the size 12
26687 \begin_inset space \thinspace{}
26688 \end_inset
26689
26690 pt.
26691 \end_layout
26692
26693 \begin_layout Enumerate
26694 Draw a shape.
26695 \end_layout
26696
26697 \begin_layout Enumerate
26698 Use the menu 
26699 \family sans
26700 TeX/LaTeX\SpecialChar menuseparator
26701 Shapepar
26702 \family default
26703  to export the shape to coordinates.
26704  In the appearing dialog use either the outline of your shape for the coordinate
26705 s or the path itself.
26706 \begin_inset Foot
26707 status collapsed
26708
26709 \begin_layout Plain Layout
26710 For more information see 
26711 \begin_inset CommandInset href
26712 LatexCommand href
26713 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26714 literal "false"
26715
26716 \end_inset
26717
26718
26719 \end_layout
26720
26721 \end_inset
26722
26723
26724 \end_layout
26725
26726 \begin_layout Standard
26727 The coordinates are written into a \SpecialChar TeX
26728  file.
26729  To use it for your \SpecialChar LyX
26730  document
26731 \end_layout
26732
26733 \begin_layout Enumerate
26734 Place the cursor before the first character of your paragraph (or into a
26735  new empty one).
26736 \end_layout
26737
26738 \begin_layout Enumerate
26739 Open in \SpecialChar LyX
26740  the menu 
26741 \family sans
26742 Insert\SpecialChar menuseparator
26743 File\SpecialChar menuseparator
26744 Child
26745 \begin_inset space ~
26746 \end_inset
26747
26748 Document
26749 \family default
26750 , select the file and use 
26751 \family sans
26752 Input
26753 \family default
26754  as 
26755 \family sans
26756 Include Type.
26757 \end_layout
26758
26759 \begin_layout Standard
26760 \begin_inset VSpace defskip
26761 \end_inset
26762
26763
26764 \end_layout
26765
26766 \begin_layout Standard
26767 \begin_inset Note Greyedout
26768 status open
26769
26770 \begin_layout Plain Layout
26771
26772 \series bold
26773 Note
26774 \series default
26775 : The changed shape only applies to the current paragraph; everything is
26776  reset to normal for the next paragraph.
26777  Therefore the shape definition file must be input into every paragraph
26778  with the desired shape.
26779 \end_layout
26780
26781 \end_inset
26782
26783
26784 \end_layout
26785
26786 \begin_layout Standard
26787 \begin_inset VSpace bigskip
26788 \end_inset
26789
26790
26791 \end_layout
26792
26793 \begin_layout Standard
26794 Here is an example:
26795 \end_layout
26796
26797 \begin_layout Standard
26798 \begin_inset VSpace bigskip
26799 \end_inset
26800
26801
26802 \end_layout
26803
26804 \begin_layout Standard
26805 \begin_inset CommandInset include
26806 LatexCommand input
26807 filename "SpecialParagraphShape.tex"
26808
26809 \end_inset
26810
26811
26812 \lang latin
26813 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26814  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26815  voluptua.
26816  At vero eos et accusam et justo duo dolores et ea rebum.
26817  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26818  sit amet.
26819  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26820  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26821  voluptua.
26822 \end_layout
26823
26824 \begin_layout Standard
26825 \begin_inset VSpace bigskip
26826 \end_inset
26827
26828
26829 \end_layout
26830
26831 \begin_layout Standard
26832
26833 \series bold
26834 A tip:
26835 \series default
26836  to draw complexer shapes in 
26837 \family sans
26838 Jpgfdraw
26839 \family default
26840  you can draw the shape in a program of your choice and import the resulting
26841  image to 
26842 \family sans
26843 Jpgfdraw
26844 \family default
26845 .
26846  Then you only need to draw a line or spline along the outline of the image.
26847 \end_layout
26848
26849 \begin_layout Standard
26850 \begin_inset VSpace bigskip
26851 \end_inset
26852
26853
26854 \end_layout
26855
26856 \begin_layout Standard
26857 The module 
26858 \family sans
26859 Custom paragraph shapes
26860 \family default
26861  also provides the two commands 
26862 \family sans
26863 shapepar
26864 \family default
26865  and 
26866 \family sans
26867 Shapepar
26868 \family default
26869  which can be used to define custom shapes coordinate by coordinate.
26870 \begin_inset Foot
26871 status collapsed
26872
26873 \begin_layout Plain Layout
26874 These commands are internally used for all shapes described here.
26875 \end_layout
26876
26877 \end_inset
26878
26879  For information how these styles are used and about further customization
26880  possibilities, have a look at the documentation of the package 
26881 \series bold
26882 shapepar
26883 \series default
26884
26885 \begin_inset CommandInset citation
26886 LatexCommand cite
26887 key "shapepar"
26888 literal "true"
26889
26890 \end_inset
26891
26892 .
26893 \end_layout
26894
26895 \begin_layout Bibliography
26896 \begin_inset CommandInset bibitem
26897 LatexCommand bibitem
26898 key "multicol"
26899 literal "true"
26900
26901 \end_inset
26902
26903 Documentation of the \SpecialChar LaTeX
26904 -package 
26905 \begin_inset CommandInset href
26906 LatexCommand href
26907 name "multicol"
26908 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26909 literal "false"
26910
26911 \end_inset
26912
26913
26914 \end_layout
26915
26916 \begin_layout Bibliography
26917 \begin_inset CommandInset bibitem
26918 LatexCommand bibitem
26919 key "shapepar"
26920 literal "true"
26921
26922 \end_inset
26923
26924 Documentation of the \SpecialChar LaTeX
26925 -package 
26926 \begin_inset CommandInset href
26927 LatexCommand href
26928 name "shapepar"
26929 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26930 literal "false"
26931
26932 \end_inset
26933
26934
26935 \end_layout
26936
26937 \end_body
26938 \end_document