]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
496e1bfb660cf2af26b27cd1f99f011dca21ea43
[lyx.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  o
2931 \change_deleted -712698321 1501067466
2932 f
2933 \change_inserted -712698321 1501067466
2934 r
2935 \change_unchanged
2936  the 
2937 \begin_inset Flex Code
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 bibtopic
2942 \end_layout
2943
2944 \end_inset
2945
2946  package is used to create multiple bibliographies.
2947  The former package is used if you select 
2948 \begin_inset Quotes eld
2949 \end_inset
2950
2951 per child document
2952 \begin_inset Quotes erd
2953 \end_inset
2954
2955  and do 
2956 \emph on
2957 not
2958 \emph default
2959  check 
2960 \begin_inset Flex Noun
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 Sectioned Bibliography
2965 \end_layout
2966
2967 \end_inset
2968
2969 .
2970  In all other cases, 
2971 \begin_inset Flex Code
2972 status collapsed
2973
2974 \begin_layout Plain Layout
2975 bibtopic
2976 \end_layout
2977
2978 \end_inset
2979
2980  is used.
2981 \begin_inset Foot
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 An alternative approach, if you are willing to use some 
2986 \begin_inset Flex Noun
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990 \SpecialChar TeX
2991  Code
2992 \end_layout
2993
2994 \end_inset
2995
2996  (see section
2997 \begin_inset space ~
2998 \end_inset
2999
3000
3001 \begin_inset CommandInset ref
3002 LatexCommand ref
3003 reference "sec:Inserting-TeX-Code"
3004
3005 \end_inset
3006
3007 ), is to use the 
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 bibunits
3013 \end_layout
3014
3015 \end_inset
3016
3017  package.
3018 \end_layout
3019
3020 \end_inset
3021
3022  If 
3023 \begin_inset Flex Code
3024 status collapsed
3025
3026 \begin_layout Plain Layout
3027 bibtopic
3028 \end_layout
3029
3030 \end_inset
3031
3032  is used, \SpecialChar LyX
3033  encloses the specified units in 
3034 \begin_inset Flex Code
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 bibtopic
3039 \end_layout
3040
3041 \end_inset
3042
3043 's 
3044 \begin_inset Flex Code
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048
3049 \backslash
3050 begin{btUnit}
3051 \end_layout
3052
3053 \end_inset
3054
3055  and 
3056 \begin_inset Flex Code
3057 status collapsed
3058
3059 \begin_layout Plain Layout
3060
3061 \backslash
3062 end{btUnit}
3063 \end_layout
3064
3065 \end_inset
3066
3067  in order to create the units.
3068  Note that this approach has some limitations.
3069  First, every citation reference has to be inside some 
3070 \begin_inset Flex Code
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 btUnit
3075 \end_layout
3076
3077 \end_inset
3078
3079 .
3080  So citations outside a defined unit (e.
3081 \begin_inset space \thinspace{}
3082 \end_inset
3083
3084 g., before the first section if you use 
3085 \begin_inset Quotes eld
3086 \end_inset
3087
3088 by section
3089 \begin_inset Quotes erd
3090 \end_inset
3091
3092 ) will appear as 
3093 \begin_inset Quotes eld
3094 \end_inset
3095
3096 ???
3097 \begin_inset Quotes erd
3098 \end_inset
3099
3100 .
3101  You can also create your own units by entering 
3102 \begin_inset Flex Code
3103 status collapsed
3104
3105 \begin_layout Plain Layout
3106
3107 \backslash
3108 begin{btUnit}
3109 \end_layout
3110
3111 \end_inset
3112
3113  and 
3114 \begin_inset Flex Code
3115 status collapsed
3116
3117 \begin_layout Plain Layout
3118
3119 \backslash
3120 end{btUnit}
3121 \end_layout
3122
3123 \end_inset
3124
3125  as \SpecialChar TeX
3126  code (for instance to work around the mentioned limitation).
3127  Note, though, that 
3128 \begin_inset Flex Code
3129 status collapsed
3130
3131 \begin_layout Plain Layout
3132 btUnit
3133 \end_layout
3134
3135 \end_inset
3136
3137 s cannot be nested.
3138  A second limitation is that 
3139 \begin_inset Flex Code
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143 bibtopic
3144 \end_layout
3145
3146 \end_inset
3147
3148  always processes all references of a bibliography database, even if they
3149  are not cited.
3150  This can result in odd labels (e.
3151 \begin_inset space \thinspace{}
3152 \end_inset
3153
3154 g.
3155  
3156 \begin_inset Quotes eld
3157 \end_inset
3158
3159 Miller 2014b
3160 \begin_inset Quotes erd
3161 \end_inset
3162
3163  if two works of this author from 2014 are in the database, even if only
3164  one is cited).
3165 \end_layout
3166
3167 \begin_layout Standard
3168 If you use 
3169 \family sans
3170 Biblatex
3171 \family default
3172 , the 
3173 \begin_inset Flex Code
3174 status collapsed
3175
3176 \begin_layout Plain Layout
3177 refsection
3178 \end_layout
3179
3180 \end_inset
3181
3182  option is used instead.
3183  If you need specific units, you can start them with the \SpecialChar TeX
3184  code 
3185 \begin_inset Flex Code
3186 status collapsed
3187
3188 \begin_layout Plain Layout
3189
3190 \backslash
3191 newrefsection
3192 \end_layout
3193
3194 \end_inset
3195
3196  or 
3197 \begin_inset Flex Code
3198 status collapsed
3199
3200 \begin_layout Plain Layout
3201
3202 \backslash
3203 newrefsegment
3204 \end_layout
3205
3206 \end_inset
3207
3208 , respectively.
3209  If you also want to control the end of the unit, use the environment 
3210 \begin_inset Flex Code
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214
3215 \backslash
3216 begin{refsection}
3217 \end_layout
3218
3219 \end_inset
3220
3221  \SpecialChar ldots
3222  
3223 \begin_inset Flex Code
3224 status collapsed
3225
3226 \begin_layout Plain Layout
3227
3228 \backslash
3229 end{refsection}
3230 \end_layout
3231
3232 \end_inset
3233
3234  instead.
3235  Note, though, that 
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240 refsection
3241 \end_layout
3242
3243 \end_inset
3244
3245 s cannot be nested.
3246  In addition to the individual bibliography of the current unit, 
3247 \family sans
3248 Biblatex
3249 \family default
3250  also provides an easy way to output all bibliographies, subsequently, at
3251  one place (e.
3252 \begin_inset space \thinspace{}
3253 \end_inset
3254
3255 g., at the end of the document).
3256  Select 
3257 \begin_inset Quotes eld
3258 \end_inset
3259
3260 all reference units
3261 \begin_inset Quotes erd
3262 \end_inset
3263
3264  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3265  this.
3266  Please refer to the 
3267 \family sans
3268 Biblatex
3269 \family default
3270  manual for more information on this topic.
3271 \end_layout
3272
3273 \begin_layout Section
3274 Multipart Documents
3275 \end_layout
3276
3277 \begin_layout Subsection
3278 General Operation
3279 \end_layout
3280
3281 \begin_layout Standard
3282 When you are working on a large file with many sections, it is often convenient
3283  to break up the document into several files, or perhaps you have something
3284  where a table may change from time to time, but the preceding text does
3285  not.
3286  In these cases, you should seriously consider using multipart documents.
3287  For example, scientific papers often have five major sections: the introduction
3288 , observations, results, discussion, and conclusion.
3289  Each of these could be its own separate \SpecialChar LyX
3290  file, with one 
3291 \begin_inset Quotes eld
3292 \end_inset
3293
3294 master
3295 \begin_inset Quotes erd
3296 \end_inset
3297
3298  file which contains the title, authors, abstract, references, etc., plus
3299  the five included files.
3300  It is important to note that each of these files is a full \SpecialChar LyX
3301  file which
3302  can be formatted and printed on its own, as well as included in a master
3303  file.
3304  Each of these files must have the same document class, however—don't attempt
3305  to mix book classes with article classes.
3306  You may also include \SpecialChar LaTeX
3307  files; however, these files must not have their own
3308  preamble (i.
3309 \begin_inset space \thinspace{}
3310 \end_inset
3311
3312 e.
3313 \begin_inset space \space{}
3314 \end_inset
3315
3316 everything up to and including the 
3317 \begin_inset Flex Code
3318 status collapsed
3319
3320 \begin_layout Plain Layout
3321
3322 \backslash
3323 begin{document}
3324 \end_layout
3325
3326 \end_inset
3327
3328  line as well as the 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333
3334 \backslash
3335 end{document}
3336 \end_layout
3337
3338 \end_inset
3339
3340  line must be deleted) or else errors will be generated when you try to
3341  make a DVI file.
3342 \end_layout
3343
3344 \begin_layout Standard
3345 \SpecialChar LyX
3346  allows you to include files quite easily with 
3347 \begin_inset Flex Noun
3348 status collapsed
3349
3350 \begin_layout Plain Layout
3351 Insert\SpecialChar menuseparator
3352 ChiId
3353 \begin_inset space ~
3354 \end_inset
3355
3356 Document
3357 \end_layout
3358
3359 \end_inset
3360
3361 .
3362  When you click on this selection a small box is inserted into the file
3363  at the current cursor location.
3364  Clicking on the box raises a dialog which allows you to select the file
3365  to be included, and the method of its inclusion.
3366  
3367 \end_layout
3368
3369 \begin_layout Standard
3370 The file selection box should by now be obvious.
3371  The three inclusion methods are 
3372 \begin_inset Quotes eld
3373 \end_inset
3374
3375 include
3376 \begin_inset Quotes erd
3377 \end_inset
3378
3379
3380 \begin_inset Quotes eld
3381 \end_inset
3382
3383 input
3384 \begin_inset Quotes erd
3385 \end_inset
3386
3387 , and 
3388 \begin_inset Quotes eld
3389 \end_inset
3390
3391 verbatim
3392 \begin_inset Quotes erd
3393 \end_inset
3394
3395 .
3396  The difference between 
3397 \begin_inset Quotes eld
3398 \end_inset
3399
3400 include
3401 \begin_inset Quotes erd
3402 \end_inset
3403
3404  and 
3405 \begin_inset Quotes eld
3406 \end_inset
3407
3408 input
3409 \begin_inset Quotes erd
3410 \end_inset
3411
3412  is really only meaningful to \SpecialChar LaTeX
3413 perts, but the practical difference is that
3414  files that are 
3415 \begin_inset Quotes eld
3416 \end_inset
3417
3418 included
3419 \begin_inset Quotes erd
3420 \end_inset
3421
3422  are typeset beginning on a new page, while files that are 
3423 \begin_inset Quotes eld
3424 \end_inset
3425
3426 inputted
3427 \begin_inset Quotes erd
3428 \end_inset
3429
3430  are typeset starting on the current page.
3431 \end_layout
3432
3433 \begin_layout Standard
3434 Generally, the master file is converted into a full \SpecialChar LaTeX
3435  file before typesetting,
3436  while the included files are converted to \SpecialChar LaTeX
3437  files that do not have all the
3438  preamble information.
3439 \end_layout
3440
3441 \begin_layout Standard
3442
3443 \begin_inset Quotes eld
3444 \end_inset
3445
3446 verbatim
3447 \begin_inset Quotes erd
3448 \end_inset
3449
3450  included file allows you to include a file typeset exactly as it appears
3451  in the file, i.
3452 \begin_inset space \thinspace{}
3453 \end_inset
3454
3455 e.
3456 \begin_inset space \space{}
3457 \end_inset
3458
3459 in 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464 verbatim
3465 \end_layout
3466
3467 \end_inset
3468
3469  mode, with the characters set in a fixed-width typewriter font.
3470  Normally, spaces in this file are invisible, though two consecutive spaces
3471  are conserved, unlike \SpecialChar LyX
3472 's normal treatment of spaces.
3473  However, setting the 
3474 \begin_inset Flex Noun
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 Mark
3479 \begin_inset space ~
3480 \end_inset
3481
3482 spaces
3483 \begin_inset space ~
3484 \end_inset
3485
3486 in
3487 \begin_inset space ~
3488 \end_inset
3489
3490 output
3491 \end_layout
3492
3493 \end_inset
3494
3495  checkbox typesets a mark to unambiguously define the presence of a space.
3496  
3497 \end_layout
3498
3499 \begin_layout Subsection
3500 Cross-References Between Files
3501 \end_layout
3502
3503 \begin_layout Standard
3504 \begin_inset Box Shadowbox
3505 position "t"
3506 hor_pos "c"
3507 has_inner_box 1
3508 inner_pos "t"
3509 use_parbox 0
3510 use_makebox 0
3511 width "100col%"
3512 special "none"
3513 height "1in"
3514 height_special "totalheight"
3515 thickness "0.4pt"
3516 separation "3pt"
3517 shadowsize "4pt"
3518 framecolor "black"
3519 backgroundcolor "none"
3520 status open
3521
3522 \begin_layout Plain Layout
3523 This section is somewhat out of date.
3524  Need to describe default master documents and how children are opened when
3525  the master is.
3526  [[FIXME]]
3527 \end_layout
3528
3529 \end_inset
3530
3531
3532 \end_layout
3533
3534 \begin_layout Standard
3535 It is possible to set up cross-references between the different files.
3536  First, open all the files in question: let's call them A and B in a two
3537  file example, where B is included in A.
3538  Let's say you insert a label in A, then want to reference it in B.
3539  Open the cross-reference dialog whilst in document B, and you can select
3540  the 
3541 \begin_inset Quotes eld
3542 \end_inset
3543
3544 buffer
3545 \begin_inset Quotes erd
3546 \end_inset
3547
3548  to use.
3549 \end_layout
3550
3551 \begin_layout Subsection
3552 Bibliography Lists in all Subdocuments
3553 \end_layout
3554
3555 \begin_layout Standard
3556 \begin_inset Box Frameless
3557 position "t"
3558 hor_pos "c"
3559 has_inner_box 1
3560 inner_pos "t"
3561 use_parbox 0
3562 use_makebox 0
3563 width "100col%"
3564 special "none"
3565 height "1in"
3566 height_special "totalheight"
3567 thickness "0.4pt"
3568 separation "3pt"
3569 shadowsize "4pt"
3570 framecolor "black"
3571 backgroundcolor "none"
3572 status open
3573
3574 \begin_layout Plain Layout
3575 This section also needs updating.
3576  There is now material about this on the wiki, and it could be copied here.
3577 \end_layout
3578
3579 \end_inset
3580
3581
3582 \end_layout
3583
3584 \begin_layout Standard
3585 Copy the bibliography list with all entries to all subdocuments and transform
3586  them to a comment.
3587  This way \SpecialChar LyX
3588  will find the 
3589 \begin_inset Flex Code
3590 status collapsed
3591
3592 \begin_layout Plain Layout
3593 .bib
3594 \end_layout
3595
3596 \end_inset
3597
3598 -files and you can easily insert references without making the bibliography
3599  list visible.
3600 \end_layout
3601
3602 \begin_layout Standard
3603 As the bibliography list is in a comment, \SpecialChar LaTeX
3604  won't use it and the references
3605  will look like this: [?], instead of like this: [1].
3606  One solution is to use the \SpecialChar LaTeX
3607 -package 
3608 \begin_inset Flex Code
3609 status collapsed
3610
3611 \begin_layout Plain Layout
3612 comment
3613 \end_layout
3614
3615 \end_inset
3616
3617  that will only include comments by processing the files separately.
3618  To do this, add in the \SpecialChar LaTeX
3619  preamble of every subdocument the following:
3620 \end_layout
3621
3622 \begin_layout LyX-Code
3623
3624 \backslash
3625 usepackage{comment}
3626 \end_layout
3627
3628 \begin_layout LyX-Code
3629
3630 \backslash
3631 includecomment{comment}
3632 \end_layout
3633
3634 \begin_layout Standard
3635 See also 
3636 \begin_inset Flex URL
3637 status collapsed
3638
3639 \begin_layout Plain Layout
3640
3641 http://wiki.lyx.org/FAQ/Unsorted#toc31
3642 \end_layout
3643
3644 \end_inset
3645
3646 .
3647 \end_layout
3648
3649 \begin_layout Section
3650 \SpecialChar LyX
3651  Archives
3652 \end_layout
3653
3654 \begin_layout Standard
3655 Users sometimes need to be able to 
3656 \begin_inset Quotes eld
3657 \end_inset
3658
3659 bundle
3660 \begin_inset Quotes erd
3661 \end_inset
3662
3663  a \SpecialChar LyX
3664  file together with all the images (and other files) on which it depends,
3665  either for sending to a publisher or for sharing with a co-author.
3666  \SpecialChar LyX
3667  2.0 includes a Python script (
3668 \begin_inset Flex Code
3669 status collapsed
3670
3671 \begin_layout Plain Layout
3672 lyxpak.py
3673 \end_layout
3674
3675 \end_inset
3676
3677 ) that automates this process.
3678  To use it, you must have either the 
3679 \begin_inset Flex Code
3680 status collapsed
3681
3682 \begin_layout Plain Layout
3683 zipfile
3684 \end_layout
3685
3686 \end_inset
3687
3688  or 
3689 \begin_inset Flex Code
3690 status collapsed
3691
3692 \begin_layout Plain Layout
3693 tarfile
3694 \end_layout
3695
3696 \end_inset
3697
3698  python modules installed on your system.
3699  By default, the script prefers the 
3700 \begin_inset Flex Code
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 gzip
3705 \end_layout
3706
3707 \end_inset
3708
3709 -compressed 
3710 \begin_inset Flex Code
3711 status collapsed
3712
3713 \begin_layout Plain Layout
3714 tar
3715 \end_layout
3716
3717 \end_inset
3718
3719  format on Unix-like systems and the 
3720 \begin_inset Flex Code
3721 status collapsed
3722
3723 \begin_layout Plain Layout
3724 zip
3725 \end_layout
3726
3727 \end_inset
3728
3729  format on Windows.
3730 \end_layout
3731
3732 \begin_layout Standard
3733 \SpecialChar LyX
3734 's configuration process will set the script up to export a `\SpecialChar LyX
3735  Archive',
3736  and this format will then be available under 
3737 \begin_inset Flex Code
3738 status collapsed
3739
3740 \begin_layout Plain Layout
3741 File\SpecialChar menuseparator
3742 Export
3743 \end_layout
3744
3745 \end_inset
3746
3747 .
3748 \end_layout
3749
3750 \begin_layout Standard
3751 Independently of the platform, the generation of a particular archive format
3752  can be forced by adding either the 
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757 -t
3758 \end_layout
3759
3760 \end_inset
3761
3762  (for the 
3763 \begin_inset Flex Code
3764 status collapsed
3765
3766 \begin_layout Plain Layout
3767 tar
3768 \end_layout
3769
3770 \end_inset
3771
3772  format) or 
3773 \begin_inset Flex Code
3774 status collapsed
3775
3776 \begin_layout Plain Layout
3777 -z
3778 \end_layout
3779
3780 \end_inset
3781
3782  (for the 
3783 \begin_inset Flex Code
3784 status collapsed
3785
3786 \begin_layout Plain Layout
3787 zip
3788 \end_layout
3789
3790 \end_inset
3791
3792  format) switch to the 
3793 \begin_inset Flex Code
3794 status collapsed
3795
3796 \begin_layout Plain Layout
3797 \SpecialChar LyX
3798 \SpecialChar menuseparator
3799 \SpecialChar LyX
3800  Archive
3801 \end_layout
3802
3803 \end_inset
3804
3805  converter in 
3806 \begin_inset Flex Code
3807 status collapsed
3808
3809 \begin_layout Plain Layout
3810 Tools\SpecialChar menuseparator
3811 Preferences\SpecialChar menuseparator
3812 File Handling\SpecialChar menuseparator
3813 Converters
3814 \end_layout
3815
3816 \end_inset
3817
3818 .
3819  (Make sure you add the switch after the script name, not before it.)
3820 \end_layout
3821
3822 \begin_layout Section
3823 Fancy Headers and Footers
3824 \end_layout
3825
3826 \begin_layout Standard
3827 The default page layout is rather plain; for an 
3828 \begin_inset Flex Code
3829 status collapsed
3830
3831 \begin_layout Plain Layout
3832 article
3833 \end_layout
3834
3835 \end_inset
3836
3837  document class, all you get is a centered page number at the bottom of
3838  the page.
3839  This document uses KOMA-script's book class, so it appears to be a bit
3840  fancier.
3841  But to really put on a show, you need to set the document page style to
3842  
3843 \begin_inset Quotes eld
3844 \end_inset
3845
3846 fancy
3847 \begin_inset Quotes erd
3848 \end_inset
3849
3850 , as mentioned in the 
3851 \emph on
3852 User Guide
3853 \emph default
3854 .
3855  This section describes the \SpecialChar LaTeX
3856  code you need to insert in your \SpecialChar LaTeX
3857  preamble in
3858  order to get the desired effects.
3859 \end_layout
3860
3861 \begin_layout Standard
3862 For more information on fancy headers, see the 
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 fancyhdr
3868 \end_layout
3869
3870 \end_inset
3871
3872  package documentation.
3873  (
3874 \begin_inset Flex URL
3875 status collapsed
3876
3877 \begin_layout Plain Layout
3878
3879 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3880 \end_layout
3881
3882 \end_inset
3883
3884 )
3885 \end_layout
3886
3887 \begin_layout Standard
3888 The page header is divided into three fields, not surprisingly labeled 
3889 \begin_inset Quotes eld
3890 \end_inset
3891
3892 left
3893 \begin_inset Quotes erd
3894 \end_inset
3895
3896
3897 \begin_inset Quotes eld
3898 \end_inset
3899
3900 center
3901 \begin_inset Quotes erd
3902 \end_inset
3903
3904 , and 
3905 \begin_inset Quotes eld
3906 \end_inset
3907
3908 right
3909 \begin_inset Quotes erd
3910 \end_inset
3911
3912 .
3913  The footer is also divided into these three fields.
3914  The \SpecialChar LaTeX
3915  commands to set these fields in the simplest manner are 
3916 \begin_inset Flex Code
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920
3921 \backslash
3922 lhead
3923 \end_layout
3924
3925 \end_inset
3926
3927
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932
3933 \backslash
3934 chead
3935 \end_layout
3936
3937 \end_inset
3938
3939
3940 \begin_inset Flex Code
3941 status collapsed
3942
3943 \begin_layout Plain Layout
3944
3945 \backslash
3946 rhead
3947 \end_layout
3948
3949 \end_inset
3950
3951
3952 \begin_inset Flex Code
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956
3957 \backslash
3958 lfoot
3959 \end_layout
3960
3961 \end_inset
3962
3963 , etc.
3964  Suppose you wish to put your name in the upper left hand corner of each
3965  page.
3966  Simply insert the following command in the preamble: 
3967 \end_layout
3968
3969 \begin_layout Standard
3970
3971 \family typewriter
3972
3973 \backslash
3974 lhead{John Q.
3975  DocWriter}
3976 \end_layout
3977
3978 \begin_layout Standard
3979 You will now see your name in the upper left.
3980  If a field has a default entry that you would like to get rid of (often
3981  the page number appears in the central footer) simply include a command
3982  with a blank argument, e.
3983 \begin_inset space \thinspace{}
3984 \end_inset
3985
3986 g.:
3987 \end_layout
3988
3989 \begin_layout Standard
3990
3991 \family typewriter
3992
3993 \backslash
3994 cfoot{}
3995 \end_layout
3996
3997 \begin_layout Standard
3998 Let's get really fancy: lets put the section number with the word 
3999 \begin_inset Quotes eld
4000 \end_inset
4001
4002 Section
4003 \begin_inset Quotes erd
4004 \end_inset
4005
4006  (e.
4007 \begin_inset space \thinspace{}
4008 \end_inset
4009
4010 g.
4011 \begin_inset space \space{}
4012 \end_inset
4013
4014 Section 3) in the upper left, the page number (e.
4015 \begin_inset space \thinspace{}
4016 \end_inset
4017
4018 g.
4019 \begin_inset space \space{}
4020 \end_inset
4021
4022 Page 4) in the upper right, your name in the lower left, and the date in
4023  the lower right.
4024  The following commands should now appear in the preamble:
4025 \end_layout
4026
4027 \begin_layout Standard
4028
4029 \family typewriter
4030
4031 \backslash
4032 lhead{Section 
4033 \backslash
4034 thesection}
4035 \end_layout
4036
4037 \begin_layout Standard
4038
4039 \family typewriter
4040
4041 \backslash
4042 chead{}
4043 \end_layout
4044
4045 \begin_layout Standard
4046
4047 \family typewriter
4048
4049 \backslash
4050 rhead{Page 
4051 \backslash
4052 thepage}
4053 \end_layout
4054
4055 \begin_layout Standard
4056
4057 \family typewriter
4058
4059 \backslash
4060 lfoot{John Q.
4061  DocWriter}
4062 \end_layout
4063
4064 \begin_layout Standard
4065
4066 \family typewriter
4067
4068 \backslash
4069 cfoot{}
4070 \end_layout
4071
4072 \begin_layout Standard
4073
4074 \family typewriter
4075
4076 \backslash
4077 rfoot{
4078 \backslash
4079 today}
4080 \end_layout
4081
4082 \begin_layout Standard
4083 The commands 
4084 \begin_inset Flex Code
4085 status collapsed
4086
4087 \begin_layout Plain Layout
4088
4089 \backslash
4090 thesection
4091 \end_layout
4092
4093 \end_inset
4094
4095  and 
4096 \begin_inset Flex Code
4097 status collapsed
4098
4099 \begin_layout Plain Layout
4100
4101 \backslash
4102 thepage
4103 \end_layout
4104
4105 \end_inset
4106
4107  access \SpecialChar LaTeX
4108 's section and page counters, and so print out the current section
4109  and page numbers.
4110  
4111 \begin_inset Flex Code
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115
4116 \backslash
4117 today
4118 \end_layout
4119
4120 \end_inset
4121
4122  simply prints out today's date.
4123 \end_layout
4124
4125 \begin_layout Standard
4126 The thicknesses of the horizontal rules drawn beneath the header and above
4127  the footer can also be modified.
4128  If you don't want one of the rules, set its thickness to 0.
4129  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4130  Use commands
4131 \family typewriter
4132  
4133 \family default
4134 like 
4135 \begin_inset Flex Code
4136 status collapsed
4137
4138 \begin_layout Plain Layout
4139
4140 \backslash
4141 renewcommand{
4142 \backslash
4143 headrulewidth}{0.4pt}
4144 \end_layout
4145
4146 \end_inset
4147
4148  and 
4149 \begin_inset Flex Code
4150 status collapsed
4151
4152 \begin_layout Plain Layout
4153
4154 \backslash
4155 renewcommand{
4156 \backslash
4157 footrulewidth}{0.4pt}
4158 \end_layout
4159
4160 \end_inset
4161
4162  to set the thicknesses.
4163 \end_layout
4164
4165 \begin_layout Standard
4166 You can switch the header/footer settings on and off for individual pages
4167  using commands like 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172
4173 \backslash
4174 thispagestyle{empty}
4175 \end_layout
4176
4177 \end_inset
4178
4179
4180 \begin_inset Flex Code
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184
4185 \backslash
4186 thispagestyle{plain}
4187 \end_layout
4188
4189 \end_inset
4190
4191 , and 
4192 \begin_inset Flex Code
4193 status collapsed
4194
4195 \begin_layout Plain Layout
4196
4197 \backslash
4198 thispagestyle{fancy}
4199 \end_layout
4200
4201 \end_inset
4202
4203 .
4204  Simply insert them in the text on the page you want changed and mark them
4205  as \SpecialChar TeX
4206  code.
4207  In fact, title pages are marked as plain by default, while following pages
4208  are marked fancy when using the global fancy setting.
4209 \end_layout
4210
4211 \begin_layout Standard
4212 As a final example, it is possible to include an image in the header or
4213  footer.
4214  Suppose you want to put a company logo in the upper lefthand corner.
4215  You might try something like
4216 \end_layout
4217
4218 \begin_layout Standard
4219
4220 \family typewriter
4221
4222 \backslash
4223 lhead{
4224 \backslash
4225 resizebox{1in}{!}{
4226 \backslash
4227 includegraphics{logo.eps}}}
4228 \end_layout
4229
4230 \begin_layout Standard
4231 \noindent
4232 (you may need to preface this with 
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237 \noindent
4238
4239 \backslash
4240 usepackage{graphics}
4241 \end_layout
4242
4243 \end_inset
4244
4245  if you don't include graphics elsewhere in your document).
4246 \end_layout
4247
4248 \begin_layout Section
4249 Itemize Bullet Selection
4250 \begin_inset CommandInset label
4251 LatexCommand label
4252 name "sec:bullet"
4253
4254 \end_inset
4255
4256
4257 \end_layout
4258
4259 \begin_layout Standard
4260 by
4261 \noun on
4262  Allan Rae
4263 \end_layout
4264
4265 \begin_layout Subsection
4266 Introduction
4267 \end_layout
4268
4269 \begin_layout Standard
4270 \SpecialChar LyX
4271  provides 216 bullet shapes that can be accessed from a simple dialog.
4272  Using this dialog you can easily specify what bullet shape to use at each
4273  level of an itemized list.
4274  These settings are document-wide so you won't be able to specify different
4275  sets of bullets for different paragraphs.
4276 \begin_inset Foot
4277 status collapsed
4278
4279 \begin_layout Plain Layout
4280 Well, actually you can but you'll have to do it by hand.
4281 \end_layout
4282
4283 \end_inset
4284
4285
4286 \end_layout
4287
4288 \begin_layout Subsection
4289 How it looks
4290 \end_layout
4291
4292 \begin_layout Standard
4293 Open the dialog by selecting the 
4294 \begin_inset Flex Noun
4295 status collapsed
4296
4297 \begin_layout Plain Layout
4298 Document\SpecialChar menuseparator
4299 Settings
4300 \end_layout
4301
4302 \end_inset
4303
4304  menu item and then select the 
4305 \begin_inset Flex Noun
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309 Bullets
4310 \end_layout
4311
4312 \end_inset
4313
4314  tab.
4315 \end_layout
4316
4317 \begin_layout Standard
4318 The dialog provides you with a table of bullet shapes.
4319  A column of buttons on the left of the table provides access to the six
4320  different panels of bullet shapes.
4321  The row of buttons across the top is used to select which bullet depth
4322  you are changing.
4323  A text entry under the table shows the currently selected bullet shape's
4324  \SpecialChar LaTeX
4325  equivalent and this can be edited if desired.
4326  If you do modify the text you will also need to specify any needed packages
4327  in the \SpecialChar LaTeX
4328  preamble.
4329 \end_layout
4330
4331 \begin_layout Standard
4332 The six panels are divided up by the packages they require.
4333  The following table shows the mappings from button name to \SpecialChar LaTeX
4334  package.
4335 \end_layout
4336
4337 \begin_layout Standard
4338 \align center
4339 \begin_inset Tabular
4340 <lyxtabular version="3" rows="7" columns="2">
4341 <features tabularvalignment="middle">
4342 <column alignment="center" valignment="top" width="0pt">
4343 <column alignment="center" valignment="top" width="0pt">
4344 <row>
4345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4346 \begin_inset Text
4347
4348 \begin_layout Plain Layout
4349
4350 \family roman
4351 \series medium
4352 \shape up
4353 \size normal
4354 \emph off
4355 \bar no
4356 \noun off
4357 \color none
4358 Button
4359 \end_layout
4360
4361 \end_inset
4362 </cell>
4363 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4364 \begin_inset Text
4365
4366 \begin_layout Plain Layout
4367
4368 \family roman
4369 \series medium
4370 \shape up
4371 \size normal
4372 \emph off
4373 \bar no
4374 \noun off
4375 \color none
4376 Packages Required
4377 \end_layout
4378
4379 \end_inset
4380 </cell>
4381 </row>
4382 <row>
4383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4384 \begin_inset Text
4385
4386 \begin_layout Plain Layout
4387
4388 \family sans
4389 \series medium
4390 \shape up
4391 \size normal
4392 \emph off
4393 \bar no
4394 \noun off
4395 \color none
4396 Standard
4397 \end_layout
4398
4399 \end_inset
4400 </cell>
4401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4402 \begin_inset Text
4403
4404 \begin_layout Plain Layout
4405
4406 \series medium
4407 \shape up
4408 \size normal
4409 \emph off
4410 \bar no
4411 \noun off
4412 \color none
4413 base \SpecialChar LaTeX
4414
4415 \end_layout
4416
4417 \end_inset
4418 </cell>
4419 </row>
4420 <row>
4421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4422 \begin_inset Text
4423
4424 \begin_layout Plain Layout
4425
4426 \family sans
4427 \series medium
4428 \shape up
4429 \size normal
4430 \emph off
4431 \bar no
4432 \noun off
4433 \color none
4434 Maths
4435 \end_layout
4436
4437 \end_inset
4438 </cell>
4439 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4440 \begin_inset Text
4441
4442 \begin_layout Plain Layout
4443
4444 \family typewriter
4445 \series medium
4446 \shape up
4447 \size normal
4448 \emph off
4449 \bar no
4450 \noun off
4451 \color none
4452 amssymb.sty
4453 \end_layout
4454
4455 \end_inset
4456 </cell>
4457 </row>
4458 <row>
4459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4460 \begin_inset Text
4461
4462 \begin_layout Plain Layout
4463
4464 \family sans
4465 \series medium
4466 \shape up
4467 \size normal
4468 \emph off
4469 \bar no
4470 \noun off
4471 \color none
4472 Ding1
4473 \end_layout
4474
4475 \end_inset
4476 </cell>
4477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4478 \begin_inset Text
4479
4480 \begin_layout Plain Layout
4481
4482 \family typewriter
4483 \series medium
4484 \shape up
4485 \size normal
4486 \emph off
4487 \bar no
4488 \noun off
4489 \color none
4490 pifont.sty
4491 \end_layout
4492
4493 \end_inset
4494 </cell>
4495 </row>
4496 <row>
4497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4498 \begin_inset Text
4499
4500 \begin_layout Plain Layout
4501
4502 \family sans
4503 \series medium
4504 \shape up
4505 \size normal
4506 \emph off
4507 \bar no
4508 \noun off
4509 \color none
4510 Ding2
4511 \end_layout
4512
4513 \end_inset
4514 </cell>
4515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4516 \begin_inset Text
4517
4518 \begin_layout Plain Layout
4519
4520 \family typewriter
4521 \series medium
4522 \shape up
4523 \size normal
4524 \emph off
4525 \bar no
4526 \noun off
4527 \color none
4528 pifont.sty
4529 \end_layout
4530
4531 \end_inset
4532 </cell>
4533 </row>
4534 <row>
4535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4536 \begin_inset Text
4537
4538 \begin_layout Plain Layout
4539
4540 \family sans
4541 \series medium
4542 \shape up
4543 \size normal
4544 \emph off
4545 \bar no
4546 \noun off
4547 \color none
4548 Ding3
4549 \end_layout
4550
4551 \end_inset
4552 </cell>
4553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4554 \begin_inset Text
4555
4556 \begin_layout Plain Layout
4557
4558 \family typewriter
4559 \series medium
4560 \shape up
4561 \size normal
4562 \emph off
4563 \bar no
4564 \noun off
4565 \color none
4566 pifont.sty
4567 \end_layout
4568
4569 \end_inset
4570 </cell>
4571 </row>
4572 <row>
4573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4574 \begin_inset Text
4575
4576 \begin_layout Plain Layout
4577
4578 \family sans
4579 \series medium
4580 \shape up
4581 \size normal
4582 \emph off
4583 \bar no
4584 \noun off
4585 \color none
4586 Ding4
4587 \end_layout
4588
4589 \end_inset
4590 </cell>
4591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4592 \begin_inset Text
4593
4594 \begin_layout Plain Layout
4595
4596 \family typewriter
4597 \series medium
4598 \shape up
4599 \size normal
4600 \emph off
4601 \bar no
4602 \noun off
4603 \color none
4604 pifont.sty
4605 \end_layout
4606
4607 \end_inset
4608 </cell>
4609 </row>
4610 </lyxtabular>
4611
4612 \end_inset
4613
4614
4615 \end_layout
4616
4617 \begin_layout Standard
4618 \SpecialChar LyX
4619  doesn't stop you using bullets from packages you don't have.
4620  If you get errors from \SpecialChar LaTeX
4621  when you try to view or print the file, then it
4622  is likely you are missing a package.
4623 \begin_inset Foot
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627 \SpecialChar LyX
4628  doesn't restrict your use since you may be editing locally and exporting
4629  elsewhere.
4630 \end_layout
4631
4632 \end_inset
4633
4634
4635 \end_layout
4636
4637 \begin_layout Subsection
4638 How to use it
4639 \end_layout
4640
4641 \begin_layout Standard
4642 Select which bullet depth you want to change then select the bullet shape
4643  and size.
4644  Any changes will not be visible in \SpecialChar LyX
4645 , but are visible when viewing the document.
4646 \end_layout
4647
4648 \begin_layout Standard
4649 You can reset a bullet shape to the default simply by clicking your right
4650  mouse button on the appropriate bullet depth button.
4651 \begin_inset Foot
4652 status collapsed
4653
4654 \begin_layout Plain Layout
4655 If you 
4656 \emph on
4657 really
4658 \emph default
4659  want to have multiple sets of paragraphs with different sets of bullets
4660  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4661  code.
4662  The bullet selection dialog can help though because it provides you with
4663  the \SpecialChar LaTeX
4664  code for a wide range of bullet shapes.
4665  To make your own custom paragraphs you have the following options:
4666 \end_layout
4667
4668 \begin_layout Plain Layout
4669 \begin_inset ERT
4670 status open
4671
4672 \begin_layout Plain Layout
4673
4674
4675 \backslash
4676 let
4677 \backslash
4678 savelabelitemi=
4679 \backslash
4680 labelitemi
4681 \end_layout
4682
4683 \end_inset
4684
4685
4686 \end_layout
4687
4688 \begin_layout Plain Layout
4689 \begin_inset ERT
4690 status open
4691
4692 \begin_layout Plain Layout
4693
4694
4695 \backslash
4696 renewcommand
4697 \backslash
4698 labelitemi[0]{
4699 \backslash
4700 small
4701 \backslash
4702 (
4703 \backslash
4704 sharp
4705 \backslash
4706 )}
4707 \end_layout
4708
4709 \end_inset
4710
4711
4712 \end_layout
4713
4714 \begin_layout Itemize
4715 Use the \SpecialChar LaTeX
4716  command 
4717 \begin_inset Flex Code
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721
4722 \backslash
4723 renewcommand{}{}
4724 \end_layout
4725
4726 \end_inset
4727
4728  to specify a new bullet shape for a given depth.
4729  You'll also need to save the current bullet shape so you can restore it
4730  again afterwards.
4731  In this itemized list the following \SpecialChar LaTeX
4732  code was used to change the bullet
4733  used for the first depth.
4734 \end_layout
4735
4736 \begin_deeper
4737 \begin_layout LyX-Code
4738
4739 \backslash
4740 let
4741 \backslash
4742 savelabelitemi=
4743 \backslash
4744 labelitemi 
4745 \end_layout
4746
4747 \begin_layout LyX-Code
4748
4749 \backslash
4750 renewcommand
4751 \backslash
4752 labelitemi[0]{
4753 \backslash
4754 small
4755 \backslash
4756 (
4757 \backslash
4758 sharp
4759 \backslash
4760 )}
4761 \end_layout
4762
4763 \end_deeper
4764 \begin_layout Itemize
4765 Note that the itemize depth is specified in Roman numerals as part of the
4766  
4767 \family typewriter
4768
4769 \backslash
4770 labelitem
4771 \family default
4772  command.
4773 \end_layout
4774
4775 \begin_layout Itemize
4776 \begin_inset ERT
4777 status open
4778
4779 \begin_layout Plain Layout
4780
4781 [
4782 \backslash
4783 (
4784 \backslash
4785 star
4786 \backslash
4787 )]
4788 \end_layout
4789
4790 \end_inset
4791
4792  Specify each individual entry by starting each item with the bullet shape
4793  enclosed in square brackets and set as 
4794 \begin_inset Flex Noun
4795 status collapsed
4796
4797 \begin_layout Plain Layout
4798 \SpecialChar TeX
4799  Code
4800 \end_layout
4801
4802 \end_inset
4803
4804 .
4805  For example, this item was started with 
4806 \begin_inset Flex Code
4807 status collapsed
4808
4809 \begin_layout Plain Layout
4810 [
4811 \backslash
4812 (
4813 \backslash
4814 star
4815 \backslash
4816 )]
4817 \end_layout
4818
4819 \end_inset
4820
4821 .
4822 \end_layout
4823
4824 \begin_layout Plain Layout
4825 \begin_inset ERT
4826 status open
4827
4828 \begin_layout Plain Layout
4829
4830
4831 \backslash
4832 renewcommand
4833 \backslash
4834 labelitemi[0]{
4835 \backslash
4836 savelabelitemi}
4837 \end_layout
4838
4839 \end_inset
4840
4841
4842 \end_layout
4843
4844 \begin_layout Plain Layout
4845 You'll also need to revert the labelitem back to its previous setting for
4846  the global bullet shape settings to remain in effect.
4847  The way used here was:
4848 \end_layout
4849
4850 \begin_layout LyX-Code
4851
4852 \backslash
4853 renewcommand
4854 \backslash
4855 labelitemi[0]{
4856 \backslash
4857 savelabelitemi}
4858 \end_layout
4859
4860 \end_inset
4861
4862
4863 \end_layout
4864
4865 \begin_layout Chapter
4866 \SpecialChar LyX
4867  and the World Wide Web
4868 \end_layout
4869
4870 \begin_layout Standard
4871 \SpecialChar LyX
4872  has long supported the export of documents to various web-friendly formats,
4873  such as HTML.
4874  Before vers
4875 \change_inserted -712698321 1501076595
4876 i
4877 \change_unchanged
4878 on 2.0, however, HTML export was always accomplished by the use of external
4879  converters.
4880 \begin_inset Foot
4881 status collapsed
4882
4883 \begin_layout Plain Layout
4884 For details on the use of external converters with \SpecialChar LyX
4885 , see the 
4886 \emph on
4887 Converters
4888 \emph default
4889  section of the Customization manual.
4890 \end_layout
4891
4892 \end_inset
4893
4894  These fall into two large groups: there are converters that use \SpecialChar LaTeX
4895  as an
4896  intermediate format, such as 
4897 \begin_inset Flex Code
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901 htlatex
4902 \end_layout
4903
4904 \end_inset
4905
4906
4907 \begin_inset Flex Code
4908 status collapsed
4909
4910 \begin_layout Plain Layout
4911 html2latex
4912 \end_layout
4913
4914 \end_inset
4915
4916 , and 
4917 \begin_inset Flex Code
4918 status collapsed
4919
4920 \begin_layout Plain Layout
4921 plastex
4922 \end_layout
4923
4924 \end_inset
4925
4926 , relying upon \SpecialChar LyX
4927  to produce the \SpecialChar LaTeX
4928 ; and there is a converter that works directly
4929  on \SpecialChar LyX
4930  files, 
4931 \begin_inset Flex Code
4932 status collapsed
4933
4934 \begin_layout Plain Layout
4935 e\SpecialChar LyX
4936 er
4937 \end_layout
4938
4939 \end_inset
4940
4941 .
4942  All of these have different advantages and disadvantages.
4943  
4944 \end_layout
4945
4946 \begin_layout Standard
4947 The \SpecialChar LaTeX
4948 -based converters have the advantage that, in principle, they know everythin
4949 g about the exported document that \SpecialChar LaTeX
4950  does.
4951  Such converters do not care, for example, if a certain block of code was
4952  produced by \SpecialChar LyX
4953  or was Evil Red Text.
4954  These converters know about 
4955 \begin_inset Flex Code
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959 aux
4960 \end_layout
4961
4962 \end_inset
4963
4964  files, counters, and references, and can often make use of the 
4965 \begin_inset Flex Code
4966 status collapsed
4967
4968 \begin_layout Plain Layout
4969 bbl
4970 \end_layout
4971
4972 \end_inset
4973
4974  files generated by Bib\SpecialChar TeX
4975 .
4976  On the other hand, \SpecialChar LaTeX
4977  is a very hard language to parse—it is sometimes said
4978  that only \SpecialChar TeX
4979  itself understands \SpecialChar TeX
4980 —and \SpecialChar LaTeX
4981 -based converters will often choke on
4982  what seem to be quite simple constructs; complex ones can throw them completely
4983 , and as of this writing, for example, the 
4984 \emph on
4985 Embedded Objects
4986 \emph default
4987  manual will not export with 
4988 \begin_inset Flex Code
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992 htlatex
4993 \end_layout
4994
4995 \end_inset
4996
4997 , though the others will.
4998  The other issue concerns how math is handled.
4999  These converters typically convert the formulae into little pictures that
5000  are then linked from the HTML document.
5001  Since these are actually generated by \SpecialChar LaTeX
5002 , they are accurate.
5003  But they do not scale well, and just getting them to look as if they are
5004  actually meant to be in your document—so that the font sizes seem to be
5005  roughly the same—can be a challenge.
5006 \end_layout
5007
5008 \begin_layout Standard
5009 Alex Fernandez's 
5010 \begin_inset Flex Code
5011 status collapsed
5012
5013 \begin_layout Plain Layout
5014 e\SpecialChar LyX
5015 er
5016 \end_layout
5017
5018 \end_inset
5019
5020  (
5021 \begin_inset CommandInset href
5022 LatexCommand href
5023 name "http://elyxer.nongnu.org/"
5024 target "http://elyxer.nongnu.org/"
5025 literal "false"
5026
5027 \end_inset
5028
5029 ) solves some of these problems.
5030  In particular, the formulae it produces scale perfectly, since it renders
5031  math using a combination of HTML and CSS rather than converting the formulae
5032  to images.
5033  But even moderately complex formula are rendered less well than with 
5034 \begin_inset Flex Code
5035 status collapsed
5036
5037 \begin_layout Plain Layout
5038 htlatex
5039 \end_layout
5040
5041 \end_inset
5042
5043 ; this reflects the limitations of HTML.
5044 \begin_inset Foot
5045 status collapsed
5046
5047 \begin_layout Plain Layout
5048 That said, 
5049 \begin_inset Flex Code
5050 status collapsed
5051
5052 \begin_layout Plain Layout
5053 e\SpecialChar LyX
5054 er
5055 \end_layout
5056
5057 \end_inset
5058
5059  can also use jsMath and MathJax for equations, but this setting is only
5060  available globally and requires one to have access to a server that runs
5061  the backend.
5062 \end_layout
5063
5064 \end_inset
5065
5066  More importantly (as of version 1.1.1, at least), 
5067 \begin_inset Flex Code
5068 status collapsed
5069
5070 \begin_layout Plain Layout
5071 e\SpecialChar LyX
5072 er
5073 \end_layout
5074
5075 \end_inset
5076
5077  has limited support for math macros and no support for user-defined paragraph
5078  or character styles.
5079  These limitations make 
5080 \begin_inset Flex Code
5081 status collapsed
5082
5083 \begin_layout Plain Layout
5084 e\SpecialChar LyX
5085 er
5086 \end_layout
5087
5088 \end_inset
5089
5090  unsuitable for many of the documents \SpecialChar LyX
5091  users produce.
5092  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5093  developers
5094  have decided to follow a different path and have made \SpecialChar LyX
5095  itself capable of
5096  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5097 , DocBook, and plaintext.
5098 \end_layout
5099
5100 \begin_layout Standard
5101 As of this writing, XHTML output remains under development and should probably
5102  be regarded as 
5103 \begin_inset Quotes eld
5104 \end_inset
5105
5106 experimental
5107 \begin_inset Quotes erd
5108 \end_inset
5109
5110 .
5111 \begin_inset Foot
5112 status collapsed
5113
5114 \begin_layout Plain Layout
5115 The file 
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120 development/
5121 \change_inserted -712698321 1501078933
5122 HTML/
5123 \change_unchanged
5124 HTML.notes
5125 \end_layout
5126
5127 \end_inset
5128
5129 , which can be found in the \SpecialChar LyX
5130  source tree or 
5131 \begin_inset CommandInset href
5132 LatexCommand href
5133 name "accessed online"
5134 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5135 literal "false"
5136
5137 \end_inset
5138
5139 , usually contains up-to-date information about the state of XHTML output.
5140  See also the list of XHTML bugs on 
5141 \begin_inset CommandInset href
5142 LatexCommand href
5143 name "the bug tracker"
5144 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"
5145 literal "false"
5146
5147 \end_inset
5148
5149 .
5150 \end_layout
5151
5152 \end_inset
5153
5154  Still, the developers have chosen this approach because it has several
5155  potential advantages over the other two.
5156 \end_layout
5157
5158 \begin_layout Standard
5159 These advantages are primarily due to the fact that the XHTML output routines,
5160  since they are part of \SpecialChar LyX
5161 , know everything \SpecialChar LyX
5162  knows about the document being
5163  exported.
5164 \begin_inset Foot
5165 status collapsed
5166
5167 \begin_layout Plain Layout
5168 Another advantage is that, since these routines are internal to \SpecialChar LyX
5169 , they are
5170  immune to changes in \SpecialChar LyX
5171 's file format, or to changes in the semantics of
5172  existing insets.
5173 \end_layout
5174
5175 \end_inset
5176
5177  So they know about the table of contents (as displayed in the outline),
5178  about the counters associated with different paragraph styles, and about
5179  user-defined styles.
5180  The XHTML output routines know what \SpecialChar LyX
5181  knows about internationalization,
5182  too, so they will output 
5183 \begin_inset Quotes eld
5184 \end_inset
5185
5186 Chapter 1
5187 \begin_inset Quotes erd
5188 \end_inset
5189
5190  or 
5191 \begin_inset Quotes eld
5192 \end_inset
5193
5194
5195 \lang ngerman
5196 Kapitel
5197 \lang english
5198  1
5199 \begin_inset Quotes erd
5200 \end_inset
5201
5202 , depending upon the language in effect at the time.
5203  
5204 \end_layout
5205
5206 \begin_layout Standard
5207 Quite generally, the output routines know what \SpecialChar LyX
5208  knows about document layout,
5209  that is, about how the document is to be rendered on screen.
5210  We use this information when we output the document as XHTML.
5211  In particular, \SpecialChar LyX
5212  
5213 \emph on
5214 automatically
5215 \emph default
5216  generates CSS style information corresponding to the layout information
5217  it uses to render the document on screen: if section headings are supposed
5218  to be sans-serif and bold as seen in \SpecialChar LyX
5219 , then (by default) they will be sans-seri
5220 f and bold when viewed in a web browser, too.
5221  And this is true not just for pre-defined styles, like Section, but for
5222  any style, including user-defined styles.
5223  Indeed, the XHTML output routines make no distinction between user-defined
5224  paragraph and character styles and \SpecialChar LyX
5225 's own pre-defined styles: in each case,
5226  everything \SpecialChar LyX
5227  knows about the styles is contained in the layout files.
5228  And much the same is true as regards pre-defined textual insets, such as
5229  footnotes, and various custom insets.
5230  
5231 \end_layout
5232
5233 \begin_layout Standard
5234 The result is that XHTML output can be customized and extended in exactly
5235  the same way \SpecialChar LaTeX
5236  output can be customized and extended: through layout files
5237  and modules.
5238  See chapter five of the 
5239 \emph on
5240 Customization 
5241 \emph default
5242 manual for the details.
5243 \end_layout
5244
5245 \begin_layout Standard
5246 The remainder of this chapter contains more detailed information on XHTML
5247  output, its limitations, and ways to work around those limitations.
5248 \end_layout
5249
5250 \begin_layout Section
5251 Math Output in XHTML
5252 \end_layout
5253
5254 \begin_layout Standard
5255 \SpecialChar LyX
5256  offers four choices for how math is rendered.
5257  These have various advantages and disadvantages:
5258 \end_layout
5259
5260 \begin_layout Itemize
5261 MathML
5262 \begin_inset Newline newline
5263 \end_inset
5264
5265 MathML is a dialect of XML designed specifically for mathematics on the
5266  web, and it typically renders very well in browsers that support it.
5267  The disadvantage is that not all browsers support MathML, and support is
5268  not complete even in the Gecko-based browsers, such as Firefox.
5269 \begin_inset Newline newline
5270 \end_inset
5271
5272 If \SpecialChar LyX
5273  is unable to render a formula as MathML—for example, if the formula
5274  uses the 
5275 \begin_inset Flex Code
5276 status collapsed
5277
5278 \begin_layout Plain Layout
5279 xymatrix
5280 \end_layout
5281
5282 \end_inset
5283
5284  package or ERT—then it will instead output the formula as an image.
5285  
5286 \end_layout
5287
5288 \begin_layout Itemize
5289 HTML
5290 \begin_inset Newline newline
5291 \end_inset
5292
5293 As mentioned above, 
5294 \begin_inset Flex Code
5295 status collapsed
5296
5297 \begin_layout Plain Layout
5298 elyxer
5299 \end_layout
5300
5301 \end_inset
5302
5303  outputs math as HTML, styled by CSS.
5304 \begin_inset Foot
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308 \SpecialChar LyX
5309  has borrowed some of the CSS for its HTML output from 
5310 \begin_inset Flex Code
5311 status collapsed
5312
5313 \begin_layout Plain Layout
5314 elyxer
5315 \end_layout
5316
5317 \end_inset
5318
5319 .
5320 \end_layout
5321
5322 \end_inset
5323
5324  For simple formulae, this can work quite well, though with more complicated
5325  formulae it tends to break down.
5326  Still, this method has the advantage that it is very widely supported and
5327  so it may be appropriate for documents that contain only a little, fairly
5328  simple math.
5329 \begin_inset Newline newline
5330 \end_inset
5331
5332 If Lyx is unable to render a formula as HTML—for example, if the formula
5333  uses the 
5334 \begin_inset Flex Code
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338 xymatrix
5339 \end_layout
5340
5341 \end_inset
5342
5343  package or ERT—then it will instead output the formula as an image.
5344  
5345 \end_layout
5346
5347 \begin_layout Itemize
5348 Images
5349 \begin_inset Newline newline
5350 \end_inset
5351
5352 Like 
5353 \begin_inset Flex Code
5354 status collapsed
5355
5356 \begin_layout Plain Layout
5357 htlatex
5358 \end_layout
5359
5360 \end_inset
5361
5362 , \SpecialChar LyX
5363  will output formulae as images, the very same images, in fact, that are
5364  used for instant preview.
5365 \begin_inset Foot
5366 status collapsed
5367
5368 \begin_layout Plain Layout
5369 Instant preview does 
5370 \emph on
5371 not 
5372 \emph default
5373 have to be on for images to be output, however.
5374 \end_layout
5375
5376 \end_inset
5377
5378  The advantage to this method is that the images are simply generated by
5379  \SpecialChar LaTeX
5380 , so they are very accurate.
5381  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5382  so they do not scale terribly well, and one cannot copy them, etc.
5383
5384 \change_deleted -712698321 1501075981
5385  (As of this writing, there are also problems about equation numbering.
5386  See 
5387 \begin_inset CommandInset href
5388 LatexCommand href
5389 name "bug 6894"
5390 target "http://www.lyx.org/trac/ticket/6894"
5391 literal "false"
5392
5393 \end_inset
5394
5395 .)
5396 \change_unchanged
5397
5398 \begin_inset Newline newline
5399 \end_inset
5400
5401 The size of the images can be controlled by setting the 
5402 \begin_inset Quotes eld
5403 \end_inset
5404
5405 Math Images Scaling
5406 \begin_inset Quotes erd
5407 \end_inset
5408
5409  parameter under 
5410 \begin_inset Flex Noun
5411 status collapsed
5412
5413 \begin_layout Plain Layout
5414 Document\SpecialChar menuseparator
5415 Settings\SpecialChar menuseparator
5416
5417 \change_deleted -712698321 1501076136
5418 Output
5419 \change_inserted -712698321 1501076137
5420 Formats
5421 \change_unchanged
5422
5423 \end_layout
5424
5425 \end_inset
5426
5427 .
5428 \begin_inset Foot
5429 status collapsed
5430
5431 \begin_layout Plain Layout
5432 For those who want to know, this controls the resolution of the image in
5433  dots per inch and is based upon a default of 75 dpi.
5434 \end_layout
5435
5436 \end_inset
5437
5438
5439 \begin_inset Newline newline
5440 \end_inset
5441
5442 If \SpecialChar LyX
5443  for some reason fails to create an image for a formula (e.g., if a required
5444  \SpecialChar LaTeX
5445  package is not installed), then it will fall back to outputing the raw
5446  \SpecialChar LaTeX
5447 .
5448 \end_layout
5449
5450 \begin_layout Itemize
5451 \SpecialChar LaTeX
5452
5453 \begin_inset Newline newline
5454 \end_inset
5455
5456 Finally, \SpecialChar LyX
5457  will happily output math as \SpecialChar LaTeX
5458 .
5459  As well as being the output of last resort, this method can be used with
5460  such tools as 
5461 \begin_inset CommandInset href
5462 LatexCommand href
5463 name "jsMath"
5464 target "http://www.math.union.edu/~dpvc/jsMath/"
5465 literal "false"
5466
5467 \end_inset
5468
5469 , which uses JavaScript to render \SpecialChar LaTeX
5470  embedded in HTML documents.
5471  \SpecialChar LyX
5472  wraps the \SpecialChar LaTeX
5473  in either a 
5474 \begin_inset Flex Code
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478 span
5479 \end_layout
5480
5481 \end_inset
5482
5483  (for inline formulas) or 
5484 \begin_inset Flex Code
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488 div
5489 \end_layout
5490
5491 \end_inset
5492
5493  (for displayed formulas) with 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 class='math'
5499 \end_layout
5500
5501 \end_inset
5502
5503 , as is required for jsMath.
5504 \end_layout
5505
5506 \begin_layout Standard
5507 One of these output methods must be selected under 
5508 \begin_inset Flex Noun
5509 status collapsed
5510
5511 \begin_layout Plain Layout
5512 Document\SpecialChar menuseparator
5513 Settings\SpecialChar menuseparator
5514
5515 \change_deleted -712698321 1501076586
5516 Output
5517 \change_inserted -712698321 1501076587
5518 Formats
5519 \change_unchanged
5520
5521 \end_layout
5522
5523 \end_inset
5524
5525 .
5526  By default, \SpecialChar LyX
5527  outputs MathML.
5528  This is a document-wide setting, therefore.
5529 \end_layout
5530
5531 \begin_layout Standard
5532 Eventually, \SpecialChar LyX
5533  will offer the user the option to select an alternate output
5534  method for a particular inset, say, one that isn't being rendered very
5535  well by MathML.
5536 \begin_inset Foot
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540 That said, since \SpecialChar LyX
5541  falls back to images if the inset contains ERT, then one
5542  can force output as an image by putting some harmless ERT into the math,
5543  for example: 
5544 \begin_inset Formula $a=b\relax$
5545 \end_inset
5546
5547 .
5548 \end_layout
5549
5550 \end_inset
5551
5552
5553 \end_layout
5554
5555 \begin_layout Section
5556 Bibliography and Citations
5557 \end_layout
5558
5559 \begin_layout Standard
5560 XHTML output fully supports bibliographies and citations.
5561  
5562 \end_layout
5563
5564 \begin_layout Standard
5565 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5566 's on-screen
5567  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5568 , though
5569  better.
5570  If you are using numerical citations, then \SpecialChar LyX
5571  will output numerical labels,
5572  such as [1] or [17], rather than simply showing the citation key in square
5573  brackets, as it does on-screen.
5574  If you are using author-year citations, then \SpecialChar LyX
5575  will add lowercase letters
5576  to the years, just as Bib\SpecialChar TeX
5577  does, if it finds more than one citation for
5578  a given author-year combination.
5579  The labels will be printed with the bibliography entries.
5580  Note that there is, at present, no way to customize the appearance of the
5581  labels, for example, to choose between square brackets and parentheses.
5582 \end_layout
5583
5584 \begin_layout Standard
5585 Bibliography output is handled by the same machinery that handles the presentati
5586 on of reference information in the citation dialog, so you will see in the
5587  XHTML output pretty much what you would see if you were to look at a given
5588  entry in the citation dialog.
5589  The formatting can be customized in your layout file or, preferably, in
5590  a module.
5591  See the 
5592 \emph on
5593 Customization
5594 \emph default
5595  manual for the details.
5596 \end_layout
5597
5598 \begin_layout Standard
5599 The main defect at present is that cross-referenced information is printed
5600  with every entry with which it is associated.
5601  So you can see things like this:
5602 \end_layout
5603
5604 \begin_layout Quote
5605 Jason Stanley, 
5606 \begin_inset Quotes eld
5607 \end_inset
5608
5609 Context and Logical Form
5610 \begin_inset Quotes erd
5611 \end_inset
5612
5613 , in 
5614 \emph on
5615 Language in Context: Selected Essays
5616 \emph default
5617  (Oxford: Oxford University Press, 2007), pp.
5618  30–68.
5619 \end_layout
5620
5621 \begin_layout Quote
5622 Jason Stanley, 
5623 \begin_inset Quotes eld
5624 \end_inset
5625
5626 Semantics in Context
5627 \begin_inset Quotes erd
5628 \end_inset
5629
5630 , in 
5631 \emph on
5632 Language in Context: Selected Essays
5633 \emph default
5634  (Oxford: Oxford University Press, 2007), pp.
5635  201–30.
5636 \end_layout
5637
5638 \begin_layout Standard
5639 This should be fixed before long.
5640 \end_layout
5641
5642 \begin_layout Standard
5643 There is no support at present for sectioned bibliographies.
5644  If you have multiple bibliographies, then \SpecialChar LyX
5645  will print the same bibliography
5646  over and over.
5647 \end_layout
5648
5649 \begin_layout Section
5650 Indexes
5651 \end_layout
5652
5653 \begin_layout Standard
5654 \SpecialChar LyX
5655  will happily export indexes as XHTML, but with certain limitations at the
5656  moment.
5657 \end_layout
5658
5659 \begin_layout Standard
5660 Index export will be most reliable when you do not attempt to use the fancy
5661  constructs that are described in the section on indexes in the 
5662 \emph on
5663 User's Guide
5664 \emph default
5665 .
5666 \begin_inset Foot
5667 status collapsed
5668
5669 \begin_layout Plain Layout
5670 The main issue here is that \SpecialChar LyX
5671  itself does not really handle these.
5672  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5673 .
5674 \end_layout
5675
5676 \end_inset
5677
5678  We'll describe how they are handled using the subsection headings from
5679  that section.
5680 \end_layout
5681
5682 \begin_layout Itemize
5683 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5684  makes an effort to support these,
5685  but the entries must be separated by 
5686 \begin_inset Quotes eld
5687 \end_inset
5688
5689  ! 
5690 \begin_inset Quotes erd
5691 \end_inset
5692
5693 , that is, there must be spaces around the exclamation point.
5694  This is because it is otherwise too difficult to check for escaped exclamation
5695  points, ones in math, and so forth.
5696 \end_layout
5697
5698 \begin_layout Itemize
5699 Page Ranges: There is no support at all for page ranges, since these make
5700  no sense with XHMTL.
5701  Instead, you will just get two index entries, one at either end.
5702 \end_layout
5703
5704 \begin_layout Itemize
5705 Cross-referencing: There is no support for cross-referencing.
5706  If \SpecialChar LyX
5707  finds an entry containing the 
5708 \begin_inset Quotes eld
5709 \end_inset
5710
5711 |see\SpecialChar ldots
5712
5713 \begin_inset Quotes erd
5714 \end_inset
5715
5716  construct, it is just dropped, and the rest is treated as an ordinary index
5717  entry.
5718 \end_layout
5719
5720 \begin_layout Itemize
5721 Index Entry Order: \SpecialChar LyX
5722  does support attempts to fix the sorting order.
5723  It will take what is before the first `@' it finds and use that for sorting,
5724  taking what follows the first `@' to be the actual entry.
5725  At present, \SpecialChar LyX
5726  does not check for escaped `@', so do not try to index email
5727  addresses.
5728 \end_layout
5729
5730 \begin_layout Itemize
5731 Index Entry Layout: You can format entries by using the text style dialog,
5732  or by using any other method available within \SpecialChar LyX
5733  itself.
5734  There is no support for constructs like: 
5735 \begin_inset Quotes eld
5736 \end_inset
5737
5738 entry|textbf
5739 \begin_inset Quotes erd
5740 \end_inset
5741
5742 .
5743  Indeed, if \SpecialChar LyX
5744  finds a pipe symbol, `|', in an entry, it will delete it and
5745  everything that follows it.
5746 \end_layout
5747
5748 \begin_layout Itemize
5749 Multiple Indexes: There is no support for multiple indexes.
5750  Rather, all index entries will be printed as one large index.
5751  To avoid our printing several versions of the index, we print only the
5752  main index, so make sure you have one.
5753 \end_layout
5754
5755 \begin_layout Section
5756 Nomenclature and Glossary
5757 \end_layout
5758
5759 \begin_layout Standard
5760 There is at present no support for glossaries.
5761  Adding it would be fairly trivial, and welcome.
5762 \end_layout
5763
5764 \begin_layout Chapter
5765 The \SpecialChar LyX
5766  Server
5767 \end_layout
5768
5769 \begin_layout Section
5770 Introduction
5771 \end_layout
5772
5773 \begin_layout Standard
5774 The `\SpecialChar LyX
5775  server' allows other programs to talk to \SpecialChar LyX
5776 , invoke \SpecialChar LyX
5777  commands, and retrieve
5778  information about the \SpecialChar LyX
5779  internal state.
5780  This is only intended for advanced users, but they should find it useful.
5781  It is by writing to the \SpecialChar LyX
5782  server, for example, that bibliography managers,
5783  such as JabRef, are able to 
5784 \begin_inset Quotes eld
5785 \end_inset
5786
5787 push
5788 \begin_inset Quotes erd
5789 \end_inset
5790
5791  citations to \SpecialChar LyX
5792 .
5793 \end_layout
5794
5795 \begin_layout Section
5796 Starting the \SpecialChar LyX
5797  Server
5798 \end_layout
5799
5800 \begin_layout Standard
5801 The \SpecialChar LyX
5802  server works through the use of a pair of named pipes.
5803  These are usually located in 
5804 \begin_inset Flex Code
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808 UserDir
5809 \end_layout
5810
5811 \end_inset
5812
5813 , (except on Windows, where 
5814 \emph on
5815 local
5816 \emph default
5817  named pipes are special objects located in 
5818 \begin_inset Flex Code
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822
5823 \backslash
5824
5825 \backslash
5826 .
5827 \backslash
5828 pipe
5829 \end_layout
5830
5831 \end_inset
5832
5833 ) and have the names 
5834 \begin_inset Quotes eld
5835 \end_inset
5836
5837
5838 \begin_inset Flex Code
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 lyxpipe.in
5843 \end_layout
5844
5845 \end_inset
5846
5847
5848 \begin_inset Quotes erd
5849 \end_inset
5850
5851  and 
5852 \begin_inset Quotes eld
5853 \end_inset
5854
5855
5856 \begin_inset Flex Code
5857 status collapsed
5858
5859 \begin_layout Plain Layout
5860 lyxpipe.out
5861 \end_layout
5862
5863 \end_inset
5864
5865
5866 \begin_inset Quotes erd
5867 \end_inset
5868
5869 .
5870  External programs write into 
5871 \begin_inset Flex Code
5872 status collapsed
5873
5874 \begin_layout Plain Layout
5875 lyxpipe.in
5876 \end_layout
5877
5878 \end_inset
5879
5880  and read back data from 
5881 \begin_inset Flex Code
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 lyxpipe.out
5886 \end_layout
5887
5888 \end_inset
5889
5890 .
5891  The stem of the pipe names can be defined in the 
5892 \begin_inset Flex Noun
5893 status collapsed
5894
5895 \begin_layout Plain Layout
5896 Tools\SpecialChar menuseparator
5897 Preferences
5898 \end_layout
5899
5900 \end_inset
5901
5902  dialog, for example 
5903 \begin_inset Flex Code
5904 status collapsed
5905
5906 \begin_layout Plain Layout
5907 "/home/myhome/lyxpipe"
5908 \end_layout
5909
5910 \end_inset
5911
5912 , or 
5913 \begin_inset Flex Code
5914 status collapsed
5915
5916 \begin_layout Plain Layout
5917 "
5918 \backslash
5919
5920 \backslash
5921 .
5922 \backslash
5923 pipe
5924 \backslash
5925 lyxpipe"
5926 \end_layout
5927
5928 \end_inset
5929
5930  on Windows (where any working path instead of lyxpipe can be used, for
5931  example 
5932 \begin_inset Flex Code
5933 status collapsed
5934
5935 \begin_layout Plain Layout
5936 "
5937 \backslash
5938
5939 \backslash
5940 .
5941 \backslash
5942 pipe
5943 \backslash
5944 my
5945 \backslash
5946 lyx
5947 \backslash
5948 pipe"
5949 \end_layout
5950
5951 \end_inset
5952
5953  would also work).
5954  You 
5955 \emph on
5956 must
5957 \emph default
5958  configure this manually in order for the server to start.
5959 \end_layout
5960
5961 \begin_layout Standard
5962 \SpecialChar LyX
5963  will add the '
5964 \begin_inset Flex Code
5965 status collapsed
5966
5967 \begin_layout Plain Layout
5968 .in
5969 \end_layout
5970
5971 \end_inset
5972
5973 ' and '
5974 \begin_inset Flex Code
5975 status collapsed
5976
5977 \begin_layout Plain Layout
5978 .out
5979 \end_layout
5980
5981 \end_inset
5982
5983 ' to create the pipes.
5984  If one of the pipes already exists, \SpecialChar LyX
5985  will assume that another \SpecialChar LyX
5986  process
5987  is already running and will not start the server.
5988  On POSIX (Unix like) systems, if for some other reason, an unused 
5989 \begin_inset Quotes eld
5990 \end_inset
5991
5992 stale
5993 \begin_inset Quotes erd
5994 \end_inset
5995
5996  pipe is left in existence when \SpecialChar LyX
5997  closes, then \SpecialChar LyX
5998  will try to delete it.
5999  If this fails for some reason, you will need to delete the pipes manually
6000  and then restart \SpecialChar LyX
6001 .
6002  On Windows, pipes are deleted by the OS on program termination or crash,
6003  so 
6004 \begin_inset Quotes eld
6005 \end_inset
6006
6007 stale
6008 \begin_inset Quotes erd
6009 \end_inset
6010
6011  pipes should not be possible.
6012 \end_layout
6013
6014 \begin_layout Standard
6015 To have several \SpecialChar LyX
6016  processes with servers at the same time, you have to use
6017  different configurations, perhaps by using separate user directories, each
6018  with its own 
6019 \begin_inset Flex Code
6020 status collapsed
6021
6022 \begin_layout Plain Layout
6023 preferences
6024 \end_layout
6025
6026 \end_inset
6027
6028  file, for each process.
6029 \end_layout
6030
6031 \begin_layout Standard
6032 If you are developing a client program, you might find it useful to enable
6033  debugging information from the \SpecialChar LyX
6034  server.
6035  Do this by starting \SpecialChar LyX
6036  as 
6037 \begin_inset Flex Code
6038 status collapsed
6039
6040 \begin_layout Plain Layout
6041 lyx -dbg lyxserver
6042 \end_layout
6043
6044 \end_inset
6045
6046 .
6047 \end_layout
6048
6049 \begin_layout Standard
6050 You can find a complete example client written in C++ in the source distribution
6051  as 
6052 \begin_inset Flex Code
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 development/lyxserver/server_monitor.cpp
6057 \end_layout
6058
6059 \end_inset
6060
6061 .
6062 \end_layout
6063
6064 \begin_layout Standard
6065 Another useful tool is the command-line based client found in 
6066 \begin_inset Flex Code
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 src/client/lyxclient
6071 \end_layout
6072
6073 \end_inset
6074
6075 .
6076 \end_layout
6077
6078 \begin_layout Section
6079 Normal communication
6080 \end_layout
6081
6082 \begin_layout Standard
6083 To issue a \SpecialChar LyX
6084  call, the client writes a line of ASCII text into the input
6085  pipe.
6086  This line has the following format:
6087 \end_layout
6088
6089 \begin_layout Quote
6090 LYXCMD:
6091 \emph on
6092 clientname
6093 \emph default
6094 :
6095 \emph on
6096 function
6097 \emph default
6098 :
6099 \emph on
6100 argument
6101 \end_layout
6102
6103 \begin_layout Description
6104 clientname is a name that the client can choose arbitrarily.
6105  Its only use is that \SpecialChar LyX
6106  will echo it if it sends an answer—so a client can
6107  dispatch results from different requesters.
6108 \end_layout
6109
6110 \begin_layout Description
6111 function is the function you want \SpecialChar LyX
6112  to perform.
6113  It is the same as the commands you'd use in the minibuffer.
6114 \end_layout
6115
6116 \begin_layout Description
6117 argument is an optional argument which is meaningful only to some functions
6118  (for instance, the 
6119 \begin_inset Quotes eld
6120 \end_inset
6121
6122 self-insert
6123 \begin_inset Quotes erd
6124 \end_inset
6125
6126  LFUN will insert the argument as text at the cursor position).
6127 \end_layout
6128
6129 \begin_layout Standard
6130 The answer from \SpecialChar LyX
6131  will arrive in the output pipe and be of the form
6132 \end_layout
6133
6134 \begin_layout Quote
6135 INFO:
6136 \emph on
6137 clientname
6138 \emph default
6139 :
6140 \emph on
6141 function
6142 \emph default
6143 :
6144 \emph on
6145 data
6146 \end_layout
6147
6148 \begin_layout Standard
6149 where 
6150 \emph on
6151 clientname
6152 \emph default
6153  and 
6154 \emph on
6155 function
6156 \emph default
6157  are just echoed from the command request, while 
6158 \emph on
6159 data
6160 \emph default
6161  is more or less useful information filled according to how the command
6162  execution worked out.
6163  Some commands, such as 
6164 \begin_inset Quotes eld
6165 \end_inset
6166
6167 font-state
6168 \begin_inset Quotes erd
6169 \end_inset
6170
6171 , will return information about the internal state of \SpecialChar LyX
6172 , while other will
6173  return an empty data-response.
6174  This means that the command execution went fine.
6175 \end_layout
6176
6177 \begin_layout Standard
6178 In case of errors, the response from \SpecialChar LyX
6179  will have this form
6180 \end_layout
6181
6182 \begin_layout Quote
6183 ERROR:
6184 \emph on
6185 clientname
6186 \emph default
6187 :
6188 \emph on
6189 function
6190 \emph default
6191 :
6192 \emph on
6193 error message
6194 \end_layout
6195
6196 \begin_layout Standard
6197 where the 
6198 \emph on
6199 error message
6200 \emph default
6201  should contain an explanation of why the command failed.
6202 \end_layout
6203
6204 \begin_layout Standard
6205 Examples:
6206 \end_layout
6207
6208 \begin_layout LyX-Code
6209 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6210 \begin_inset Newline newline
6211 \end_inset
6212
6213 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6214 \begin_inset Newline newline
6215 \end_inset
6216
6217 read a <~/.lyxpipe.out
6218 \begin_inset Newline newline
6219 \end_inset
6220
6221 echo $a
6222 \end_layout
6223
6224 \begin_layout Subsection
6225 AppleScript (Mac OS X)
6226 \end_layout
6227
6228 \begin_layout Standard
6229 Since \SpecialChar LyX
6230  2.1, \SpecialChar LyX
6231  supports basic interactions with AppleScript for normal communicatio
6232 n through the command run.
6233  This command takes a direct argument (the 
6234 \series bold
6235 function
6236 \series default
6237  to perform) and an optional argument.
6238  It either returns the output of the function or triggers an error with
6239  the error message and code.
6240 \end_layout
6241
6242 \begin_layout Standard
6243 Example:
6244 \end_layout
6245
6246 \begin_layout LyX-Code
6247 tell application "\SpecialChar LyX
6248 "
6249 \end_layout
6250
6251 \begin_layout LyX-Code
6252   try
6253 \end_layout
6254
6255 \begin_layout LyX-Code
6256     -- Stores the current file name into f
6257 \end_layout
6258
6259 \begin_layout LyX-Code
6260     set f to (run "server-get-filename" with argument "")
6261 \end_layout
6262
6263 \begin_layout LyX-Code
6264     on error the error_message number the error_number
6265 \end_layout
6266
6267 \begin_layout LyX-Code
6268       display dialog "Error: " & the error_number & ".
6269  " ¬
6270 \end_layout
6271
6272 \begin_layout LyX-Code
6273               & the error_message buttons {"OK"} default button 1
6274 \end_layout
6275
6276 \begin_layout LyX-Code
6277   end try
6278 \end_layout
6279
6280 \begin_layout LyX-Code
6281 end tell
6282 \end_layout
6283
6284 \begin_layout Section
6285 Notification
6286 \end_layout
6287
6288 \begin_layout Standard
6289 \SpecialChar LyX
6290  can notify clients of events going on asynchronously.
6291  Currently it will only do this if the user binds a key sequence with the
6292  function 
6293 \begin_inset Quotes eld
6294 \end_inset
6295
6296 notify
6297 \begin_inset Quotes erd
6298 \end_inset
6299
6300 .
6301  The format of the string \SpecialChar LyX
6302  sends is as follows:
6303 \end_layout
6304
6305 \begin_layout Quote
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 NOTIFY:
6311 \end_layout
6312
6313 \end_inset
6314
6315
6316 \emph on
6317 key-sequence
6318 \end_layout
6319
6320 \begin_layout Standard
6321 where 
6322 \emph on
6323 key-sequence
6324 \emph default
6325  is the printed representation of the key sequence that was actually typed
6326  by the user.
6327 \end_layout
6328
6329 \begin_layout Standard
6330 This mechanism can be used to extend \SpecialChar LyX
6331 's command set and implement macros.
6332  Bind some key sequence to 
6333 \begin_inset Quotes eld
6334 \end_inset
6335
6336 notify
6337 \begin_inset Quotes erd
6338 \end_inset
6339
6340 .
6341  Then start a client that listens on the output pipe, dispatches the command
6342  according to the sequence, and starts a function that may use \SpecialChar LyX
6343  calls and
6344  \SpecialChar LyX
6345  requests to issue a command or a series of commands to \SpecialChar LyX
6346 .
6347 \end_layout
6348
6349 \begin_layout Section
6350 The simple \SpecialChar LyX
6351  Server Protocol
6352 \end_layout
6353
6354 \begin_layout Standard
6355 \SpecialChar LyX
6356  implements a simple protocol that can be used for session management.
6357  All messages are of the form
6358 \end_layout
6359
6360 \begin_layout Quote
6361 LYXSRV:
6362 \emph on
6363 clientname
6364 \emph default
6365 :
6366 \emph on
6367 protocol message
6368 \end_layout
6369
6370 \begin_layout Standard
6371 where 
6372 \emph on
6373 protocol message
6374 \emph default
6375  can be 
6376 \begin_inset Quotes eld
6377 \end_inset
6378
6379 hello
6380 \begin_inset Quotes erd
6381 \end_inset
6382
6383  or 
6384 \begin_inset Quotes eld
6385 \end_inset
6386
6387 bye
6388 \begin_inset Quotes erd
6389 \end_inset
6390
6391 .
6392  If 
6393 \begin_inset Quotes eld
6394 \end_inset
6395
6396 hello
6397 \begin_inset Quotes erd
6398 \end_inset
6399
6400  is received from a client, \SpecialChar LyX
6401  will report back to inform the client that
6402  it's listening to it's messages, while 
6403 \begin_inset Quotes eld
6404 \end_inset
6405
6406 bye
6407 \begin_inset Quotes erd
6408 \end_inset
6409
6410  sent from \SpecialChar LyX
6411  will inform clients that \SpecialChar LyX
6412  is closing.
6413 \end_layout
6414
6415 \begin_layout Section
6416 Reverse DVI/PDF search
6417 \end_layout
6418
6419 \begin_layout Standard
6420 Some DVI/PDF viewers
6421 \begin_inset Foot
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6426  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6427 \end_layout
6428
6429 \end_inset
6430
6431  provide 
6432 \emph on
6433 reverse search
6434 \emph default
6435  facility (also called 
6436 \emph on
6437 inverse search
6438 \emph default
6439 ).
6440  This means that you can tell \SpecialChar LyX
6441  to put the cursor to a specific line in the
6442  document by clicking at the respective position in the DVI/PDF output.
6443  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6444 .
6445  This is done via the \SpecialChar LyX
6446  server either by using the named pipe (
6447 \emph on
6448 lyxpipe
6449 \emph default
6450 ), or the UNIX domain socket (
6451 \emph on
6452 lyxsocket
6453 \emph default
6454 ) that \SpecialChar LyX
6455  creates in its temporary directory (this is the way the 
6456 \begin_inset Flex Code
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460 lyxclient
6461 \end_layout
6462
6463 \end_inset
6464
6465  program communicates with \SpecialChar LyX
6466 ).
6467  In some cases, you need a helper script that mediates between the viewer
6468  and \SpecialChar LyX
6469 , in others, the viewer can communicate with \SpecialChar LyX
6470  directly.
6471  This depends on the selected viewer and on your operating system.
6472  The same applies to the way viewers need to be configured and the way the
6473  reverse search is actually performed.
6474  In what follows, we will thus describe how to setup reverse search for
6475  specific viewers.
6476  Before we turn to this, though, we will explain what needs to be done generally
6477  to enable reverse search in the DVI/PDF output.
6478 \end_layout
6479
6480 \begin_layout Subsection
6481 Automatic setup
6482 \begin_inset CommandInset label
6483 LatexCommand label
6484 name "subsec:rev-search"
6485
6486 \end_inset
6487
6488
6489 \end_layout
6490
6491 \begin_layout Standard
6492 In most cases \SpecialChar LyX
6493  will do the work for you by 
6494 \change_inserted -712698321 1500975045
6495 pressing the following button in the toolbar: 
6496 \begin_inset Info
6497 type  "icon"
6498 arg   "buffer-toggle-output-sync"
6499 \end_inset
6500
6501 .
6502  Alternatively, you can also enable the feature by checking 
6503 \family sans
6504 Synchronize with Output
6505 \family default
6506  in 
6507 \begin_inset Flex Noun
6508 status collapsed
6509
6510 \begin_layout Plain Layout
6511
6512 \change_inserted -712698321 1500975071
6513 Document\SpecialChar menuseparator
6514 Settings\SpecialChar menuseparator
6515 Formats
6516 \end_layout
6517
6518 \end_inset
6519
6520
6521 \change_deleted -712698321 1500974764
6522 enabling the option 
6523 \begin_inset Flex Noun
6524 status collapsed
6525
6526 \begin_layout Plain Layout
6527 Synchronize with Output
6528 \end_layout
6529
6530 \end_inset
6531
6532  in the menu 
6533 \begin_inset Flex Noun
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537 Document\SpecialChar menuseparator
6538 Settings\SpecialChar menuseparator
6539 Output
6540 \end_layout
6541
6542 \end_inset
6543
6544
6545 \change_unchanged
6546 .
6547  In such a case \SpecialChar LyX
6548  will automatically insert the necessary Sync\SpecialChar TeX
6549  macro (for
6550  PDF) or load the srcltx package (for DVI) respectively.
6551  This option can be easily reached also on 
6552 \begin_inset Flex Code
6553 status collapsed
6554
6555 \begin_layout Plain Layout
6556 View/Update
6557 \end_layout
6558
6559 \end_inset
6560
6561  Toolbar.
6562 \end_layout
6563
6564 \begin_layout Standard
6565 If you need a different setting, you can select or input a custom macro
6566  from the drop down box just below 
6567 \begin_inset Flex Noun
6568 status collapsed
6569
6570 \begin_layout Plain Layout
6571 Document\SpecialChar menuseparator
6572 Settings\SpecialChar menuseparator
6573 Output\SpecialChar menuseparator
6574 Synchronize with Output
6575 \end_layout
6576
6577 \end_inset
6578
6579 .
6580 \end_layout
6581
6582 \begin_layout Standard
6583 Note that the method 
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588
6589 \backslash
6590 synctex=1
6591 \end_layout
6592
6593 \end_inset
6594
6595  enables gzip compression.
6596  If your viewer does not support it, you should instead use 
6597 \begin_inset Flex Code
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601
6602 \backslash
6603 synctex=-1
6604 \end_layout
6605
6606 \end_inset
6607
6608 .
6609 \end_layout
6610
6611 \begin_layout Standard
6612 Please also note that including the 
6613 \begin_inset Flex Code
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 srcltx
6618 \end_layout
6619
6620 \end_inset
6621
6622  package or 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 src-specials
6628 \end_layout
6629
6630 \end_inset
6631
6632  sometimes has an undesired impact on the typesetting.
6633  Thus, you should switch output synchronization off for the final typesetting
6634  if you use the 
6635 \begin_inset Flex Code
6636 status collapsed
6637
6638 \begin_layout Plain Layout
6639 srcltx
6640 \end_layout
6641
6642 \end_inset
6643
6644  package or 
6645 \begin_inset Flex Code
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649 src-specials
6650 \end_layout
6651
6652 \end_inset
6653
6654 .
6655  
6656 \end_layout
6657
6658 \begin_layout Standard
6659 In case you need some more special settings that are not covered by the
6660  automatic settings, read the next section about how to set up output synchroniz
6661 ation manually.
6662  If the automatic setup suits your needs, you can readily jump to section
6663 \begin_inset space ~
6664 \end_inset
6665
6666
6667 \begin_inset CommandInset ref
6668 LatexCommand ref
6669 reference "subsec:configuring-viewers"
6670
6671 \end_inset
6672
6673 , where the necessary configuration steps in your viewer – needed both with
6674  the automatic and the manual setup – are described.
6675 \end_layout
6676
6677 \begin_layout Subsection
6678 Manual setup
6679 \end_layout
6680
6681 \begin_layout Standard
6682 \SpecialChar LaTeX
6683  provides several different methods for reverse search.
6684  Some are built-in in the 
6685 \begin_inset Flex Code
6686 status collapsed
6687
6688 \begin_layout Plain Layout
6689 latex/pdflatex
6690 \end_layout
6691
6692 \end_inset
6693
6694  program, some are provided by external packages.
6695  Your choice depends on whether your \SpecialChar LaTeX
6696  distribution already provides a given
6697  method (the built-in methods are rather new) and whether your viewer can
6698  cope with it.
6699  The available methods are described in the following.
6700 \end_layout
6701
6702 \begin_layout Subsubsection*
6703 Built-in DVI-search via src-specials (DVI only) 
6704 \end_layout
6705
6706 \begin_layout Standard
6707 This method provides the DVI file with the necessary information for reverse
6708  search.
6709  It is available in \SpecialChar LaTeX
6710  since quite some time (any somewhat recent \SpecialChar LaTeX
6711  distribution
6712  should include it), and it works reliably.
6713  To enable it, change the 
6714 \begin_inset Flex Noun
6715 status collapsed
6716
6717 \begin_layout Plain Layout
6718 La
6719 \family sans
6720 TeX
6721 \family default
6722  (plain)->DVI
6723 \end_layout
6724
6725 \end_inset
6726
6727  or 
6728 \begin_inset Flex Noun
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732 La
6733 \family sans
6734 TeX
6735 \family default
6736  (plain)->DraftDVI
6737 \end_layout
6738
6739 \end_inset
6740
6741  converter in 
6742 \begin_inset Flex Noun
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 Preferences\SpecialChar menuseparator
6747 File Handling\SpecialChar menuseparator
6748 Converters
6749 \end_layout
6750
6751 \end_inset
6752
6753  to 
6754 \begin_inset Flex Code
6755 status collapsed
6756
6757 \begin_layout Plain Layout
6758 latex -src-specials $$i
6759 \end_layout
6760
6761 \end_inset
6762
6763 .
6764  If this doesn't work, check if your \SpecialChar TeX
6765  engine needs different options (the
6766  syntax might differ in some distributions).
6767 \end_layout
6768
6769 \begin_layout Subsubsection*
6770 External Packages (PDFSync and scrltx) 
6771 \end_layout
6772
6773 \begin_layout Standard
6774 The packages 
6775 \emph on
6776 pdfsync
6777 \emph default
6778  and 
6779 \emph on
6780 scrltx
6781 \emph default
6782  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6783  respectively.
6784  In order to enable it, load the packages in the \SpecialChar LyX
6785  preamble: 
6786 \end_layout
6787
6788 \begin_layout Itemize
6789 \begin_inset Flex Code
6790 status collapsed
6791
6792 \begin_layout Plain Layout
6793
6794 \backslash
6795 usepackage{pdfsync}
6796 \end_layout
6797
6798 \end_inset
6799
6800  for reverse PDF search,
6801 \end_layout
6802
6803 \begin_layout Itemize
6804 \begin_inset Flex Code
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808
6809 \backslash
6810 usepackage[active]{srcltx}
6811 \end_layout
6812
6813 \end_inset
6814
6815  for reverse DVI search.
6816 \end_layout
6817
6818 \begin_layout Standard
6819 If you want to be able to perform both DVI and PDF reverse searches, you
6820  can also insert in the preamble the following lines
6821 \end_layout
6822
6823 \begin_layout LyX-Code
6824
6825 \backslash
6826 usepackage{ifpdf}
6827 \begin_inset Newline newline
6828 \end_inset
6829
6830
6831 \backslash
6832 ifpdf
6833 \begin_inset Newline newline
6834 \end_inset
6835
6836   
6837 \backslash
6838 usepackage{pdfsync}
6839 \begin_inset Newline newline
6840 \end_inset
6841
6842
6843 \backslash
6844 else
6845 \begin_inset Newline newline
6846 \end_inset
6847
6848   
6849 \backslash
6850 usepackage[active]{srcltx}
6851 \begin_inset Newline newline
6852 \end_inset
6853
6854
6855 \backslash
6856 fi
6857 \end_layout
6858
6859 \begin_layout Standard
6860 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6861  right package will be used.
6862 \end_layout
6863
6864 \begin_layout Standard
6865 Note that PDFSync might affect the output layout of your document.
6866  It is therefore advised to disable PDFsync for final documents.
6867 \end_layout
6868
6869 \begin_layout Subsubsection*
6870 Built-in reverse search via Sync\SpecialChar TeX
6871  (DVI and PDF) 
6872 \end_layout
6873
6874 \begin_layout Standard
6875 Recent versions of 
6876 \begin_inset Flex Code
6877 status collapsed
6878
6879 \begin_layout Plain Layout
6880 (pdf)latex
6881 \end_layout
6882
6883 \end_inset
6884
6885  have built-in support for both PDF and DVI reverse search.
6886  This so-called 
6887 \emph on
6888 Sync\SpecialChar TeX
6889
6890 \emph default
6891  facility is basically the result of the integration of the PDFSync package
6892  to the pdftex program and its merge with the 
6893 \emph on
6894 scr-specials
6895 \emph default
6896  approach.
6897  You need at least \SpecialChar TeX
6898 Live 2008 or a recent Mik\SpecialChar TeX
6899  distribution in order to use
6900  it.
6901 \begin_inset Foot
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 For some reason, Mik\SpecialChar TeX
6906  does not understand/obey the command \SpecialChar LyX
6907  inserts into
6908  the preamble when you check the "Enable Forward/Reverse Search" button
6909  in the toolbar and does not generate the necessary info.
6910 \end_layout
6911
6912 \begin_layout Plain Layout
6913 The generation of the required info can be forced by changing the converter
6914  "\SpecialChar LaTeX
6915  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
6916  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
6917  the -synctex=1 switch).
6918 \end_layout
6919
6920 \end_inset
6921
6922  Also note that only a few PDF viewers (
6923 \change_inserted -712698321 1500977288
6924 such as 
6925 \change_unchanged
6926 Okular and Qpdfview on Unix, Skim on the Mac, SumatraPDF on Windows
6927 \change_inserted -712698321 1500977299
6928 ; see the next section for details
6929 \change_unchanged
6930 ) already provide Sync\SpecialChar TeX
6931  support.
6932 \end_layout
6933
6934 \begin_layout Standard
6935 To enable Sync\SpecialChar TeX
6936  for DVI output, change the 
6937 \begin_inset Flex Noun
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 La
6942 \family sans
6943 TeX
6944 \family default
6945  (plain) -> DVI
6946 \end_layout
6947
6948 \end_inset
6949
6950  or 
6951 \begin_inset Flex Noun
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955 La
6956 \family sans
6957 TeX
6958 \family default
6959  (plain) -> DraftDVI
6960 \end_layout
6961
6962 \end_inset
6963
6964  converter in 
6965 \begin_inset Flex Noun
6966 status collapsed
6967
6968 \begin_layout Plain Layout
6969 Preferences\SpecialChar menuseparator
6970 File Handling\SpecialChar menuseparator
6971 Converters
6972 \end_layout
6973
6974 \end_inset
6975
6976  to 
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 latex -synctex=1 $$i
6982 \end_layout
6983
6984 \end_inset
6985
6986 , and for PDF output, change the 
6987 \begin_inset Flex Noun
6988 status collapsed
6989
6990 \begin_layout Plain Layout
6991 La
6992 \family sans
6993 TeX
6994 \family default
6995  (pdflatex) -> PDF (pdflatex)
6996 \end_layout
6997
6998 \end_inset
6999
7000  
7001 \change_deleted -712698321 1500977453
7002 or
7003 \change_unchanged
7004  converter to 
7005 \begin_inset Flex Code
7006 status collapsed
7007
7008 \begin_layout Plain Layout
7009 pdflatex -synctex=1 $$i
7010 \end_layout
7011
7012 \end_inset
7013
7014 .
7015  
7016 \change_inserted -712698321 1500977740
7017 Should your viewer not be considered in the following description, or in
7018  case of missing success, please 
7019 \change_deleted -712698321 1500977741
7020 C
7021 \change_inserted -712698321 1500977744
7022 c
7023 \change_unchanged
7024 heck the documentation of your viewer whether the viewer needs to be configured
7025  for the use with Sync\SpecialChar TeX
7026 .
7027 \begin_inset Foot
7028 status collapsed
7029
7030 \begin_layout Plain Layout
7031 Note that the option 
7032 \begin_inset Flex Code
7033 status collapsed
7034
7035 \begin_layout Plain Layout
7036 -synctex=1
7037 \end_layout
7038
7039 \end_inset
7040
7041  option enables gzip compression.
7042  If your viewer does not support it, you should instead use 
7043 \begin_inset Flex Code
7044 status collapsed
7045
7046 \begin_layout Plain Layout
7047 -synctex=-1
7048 \end_layout
7049
7050 \end_inset
7051
7052 .
7053 \end_layout
7054
7055 \end_inset
7056
7057
7058 \end_layout
7059
7060 \begin_layout Subsection
7061 Configuring and using specific viewers
7062 \begin_inset CommandInset label
7063 LatexCommand label
7064 name "subsec:configuring-viewers"
7065
7066 \end_inset
7067
7068
7069 \end_layout
7070
7071 \begin_layout Subsubsection*
7072 Xdvi (all platforms)
7073 \end_layout
7074
7075 \begin_layout Standard
7076 If you use 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 xdvi
7082 \end_layout
7083
7084 \end_inset
7085
7086 , you don't need to do anything else for performing a reverse DVI search,
7087  as \SpecialChar LyX
7088  already provides the necessary hooks for automatically using the 
7089 \begin_inset Flex Code
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 lyxclient
7094 \end_layout
7095
7096 \end_inset
7097
7098  program.
7099  Just setup your document as described above (reverse search is triggered
7100  by Ctrl-click or Alt-click on Mac OSX, respectively).
7101 \end_layout
7102
7103 \begin_layout Standard
7104 However, if for whatever reason you want to use the named pipe instead of
7105  the socket for communicating with \SpecialChar LyX
7106 , simply change the DVI viewer in 
7107 \begin_inset Flex Noun
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 Preferences\SpecialChar menuseparator
7112 File Handling\SpecialChar menuseparator
7113 File formats
7114 \end_layout
7115
7116 \end_inset
7117
7118  to
7119 \begin_inset Foot
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 On Mac OSX you have to use 
7124 \begin_inset Flex Code
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7129 \end_layout
7130
7131 \end_inset
7132
7133
7134 \end_layout
7135
7136 \end_inset
7137
7138  
7139 \begin_inset Flex Code
7140 status collapsed
7141
7142 \begin_layout Plain Layout
7143 xdvi -editor "lyxeditor.sh %f %l"
7144 \end_layout
7145
7146 \end_inset
7147
7148 , where 
7149 \begin_inset Flex Code
7150 status collapsed
7151
7152 \begin_layout Plain Layout
7153 lyxeditor.sh
7154 \end_layout
7155
7156 \end_inset
7157
7158  is a suitable script.
7159  For example, a minimal shell script is the following one:
7160 \end_layout
7161
7162 \begin_layout LyX-Code
7163 #!/bin/sh
7164 \begin_inset Newline newline
7165 \end_inset
7166
7167 LYXPIPE="/path/to/lyxpipe"
7168 \begin_inset Newline newline
7169 \end_inset
7170
7171 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7172 \begin_inset Newline newline
7173 \end_inset
7174
7175 echo "$COMMAND" > "${LYXPIPE}".in || exit
7176 \begin_inset Newline newline
7177 \end_inset
7178
7179 read TMP < "${LYXPIPE}".out || exit
7180 \end_layout
7181
7182 \begin_layout Standard
7183 where 
7184 \begin_inset Flex Code
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 /path/to/lyxpipe
7189 \end_layout
7190
7191 \end_inset
7192
7193  is the LyXServer pipe path specified in 
7194 \begin_inset Flex Noun
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198 Preferences\SpecialChar menuseparator
7199 Paths
7200 \end_layout
7201
7202 \end_inset
7203
7204 .
7205 \begin_inset Foot
7206 status collapsed
7207
7208 \begin_layout Plain Layout
7209 In the 
7210 \begin_inset Flex Code
7211 status collapsed
7212
7213 \begin_layout Plain Layout
7214 development/tools
7215 \end_layout
7216
7217 \end_inset
7218
7219  folder of a source distribution you can find a 
7220 \begin_inset Flex Code
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 lyxeditor
7225 \end_layout
7226
7227 \end_inset
7228
7229  script which is able to locate the 
7230 \emph on
7231 lyxpipe
7232 \emph default
7233  based on your preferences.
7234 \end_layout
7235
7236 \end_inset
7237
7238
7239 \end_layout
7240
7241 \begin_layout Subsubsection*
7242 MacDviX (Mac OSX)
7243 \end_layout
7244
7245 \begin_layout Standard
7246 At the end of 
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 /Applications/MacDviX_Folder/calleditor.script
7252 \end_layout
7253
7254 \end_inset
7255
7256 , add the following lines:
7257 \end_layout
7258
7259 \begin_layout LyX-Code
7260 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7261 \begin_inset Newline newline
7262 \end_inset
7263
7264 exit 1
7265 \end_layout
7266
7267 \begin_layout Standard
7268 Modify the lines accordingly if you install \SpecialChar LyX
7269  somewhere else than in the
7270  Applications folder.
7271 \end_layout
7272
7273 \begin_layout Standard
7274 Reverse search is triggered by Alt-click (OPTION-click).
7275 \end_layout
7276
7277 \begin_layout Subsubsection*
7278 Skim (Mac OSX)
7279 \end_layout
7280
7281 \begin_layout Standard
7282 Enter 
7283 \begin_inset Flex Code
7284 status collapsed
7285
7286 \begin_layout Plain Layout
7287 open -a Skim.app $$i
7288 \end_layout
7289
7290 \end_inset
7291
7292  to the viewer setting in 
7293 \begin_inset Flex Noun
7294 status collapsed
7295
7296 \begin_layout Plain Layout
7297 Preferences\SpecialChar menuseparator
7298 File Handling\SpecialChar menuseparator
7299 File formats\SpecialChar menuseparator
7300 PDF (pdflatex)
7301 \end_layout
7302
7303 \end_inset
7304
7305 , and then in 
7306 \begin_inset Flex Noun
7307 status collapsed
7308
7309 \begin_layout Plain Layout
7310 Skim\SpecialChar menuseparator
7311 Preferences\SpecialChar menuseparator
7312 Sync
7313 \end_layout
7314
7315 \end_inset
7316
7317  choose 
7318 \begin_inset Flex Noun
7319 status collapsed
7320
7321 \begin_layout Plain Layout
7322 custom
7323 \end_layout
7324
7325 \end_inset
7326
7327  preset and enter command 
7328 \begin_inset Flex Noun
7329 status collapsed
7330
7331 \begin_layout Plain Layout
7332 /Applications/\SpecialChar LyX
7333 .app/Contents/MacOS/lyxeditor
7334 \end_layout
7335
7336 \end_inset
7337
7338 .
7339 \end_layout
7340
7341 \begin_layout Standard
7342 Reverse search is triggered by COMMAND-SHIFT-click
7343 \end_layout
7344
7345 \begin_layout Subsubsection*
7346 Evince (GNOME)
7347 \end_layout
7348
7349 \begin_layout Standard
7350 Reverse search with evince does not work out of the box, but it can be achieved
7351  by means of some third party helper scripts.
7352  Please refer to 
7353 \begin_inset CommandInset href
7354 LatexCommand href
7355 target "http://wiki.lyx.org/LyX/SyncTeX"
7356 literal "false"
7357
7358 \end_inset
7359
7360  for details.
7361 \end_layout
7362
7363 \begin_layout Subsubsection*
7364 Okular (KDE)
7365 \end_layout
7366
7367 \begin_layout Standard
7368 Go to 
7369 \begin_inset Flex Noun
7370 status collapsed
7371
7372 \begin_layout Plain Layout
7373 Settings\SpecialChar menuseparator
7374 Configure Okular\SpecialChar menuseparator
7375 Editor
7376 \end_layout
7377
7378 \end_inset
7379
7380
7381 \change_inserted -712698321 1500981642
7382  and
7383 \change_deleted -712698321 1500981641
7384 ,
7385 \change_unchanged
7386  select 
7387 \change_deleted -712698321 1500981634
7388
7389 \begin_inset Quotes eld
7390 \end_inset
7391
7392 Custom Text Editor
7393 \change_inserted -712698321 1500981635
7394 LyX
7395 \change_unchanged
7396
7397 \begin_inset Quotes erd
7398 \end_inset
7399
7400  
7401 \change_inserted -712698321 1500981659
7402 as editor.
7403  This inserts the appropriate 
7404 \change_deleted -712698321 1500981663
7405 and add the 
7406 \change_unchanged
7407 command 
7408 \change_inserted -712698321 1500981665
7409 (
7410 \change_unchanged
7411
7412 \begin_inset Flex Code
7413 status collapsed
7414
7415 \begin_layout Plain Layout
7416 lyxclient -g %f %l
7417 \end_layout
7418
7419 \end_inset
7420
7421
7422 \change_inserted -712698321 1500981668
7423 )
7424 \change_unchanged
7425 .
7426 \end_layout
7427
7428 \begin_layout Standard
7429 Reverse search is triggered by SHIFT-click.
7430 \end_layout
7431
7432 \begin_layout Subsubsection*
7433 Qpdfview (Unix)
7434 \end_layout
7435
7436 \begin_layout Standard
7437 Qpdfview supports Sync\SpecialChar TeX
7438  since version 0.3.5.
7439  Go to 
7440 \begin_inset Flex Noun
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 Edit\SpecialChar menuseparator
7445 Settings\SpecialChar menuseparator
7446 Behavior
7447 \end_layout
7448
7449 \end_inset
7450
7451 , click on the input field of the 
7452 \begin_inset Quotes eld
7453 \end_inset
7454
7455 Source editor
7456 \begin_inset Quotes erd
7457 \end_inset
7458
7459  item and add the command 
7460 \begin_inset Flex Code
7461 status collapsed
7462
7463 \begin_layout Plain Layout
7464 lyxclient -g %1 %2
7465 \end_layout
7466
7467 \end_inset
7468
7469 .
7470 \end_layout
7471
7472 \begin_layout Standard
7473 Reverse search is triggered by double-click or, in more recent versions,
7474  by context menu.
7475 \end_layout
7476
7477 \begin_layout Subsubsection*
7478 YAP (Windows)
7479 \end_layout
7480
7481 \begin_layout Standard
7482 Launch yap, choose its 
7483 \begin_inset Flex Noun
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 View\SpecialChar menuseparator
7488 Options
7489 \end_layout
7490
7491 \end_inset
7492
7493  menu and select the 
7494 \begin_inset Quotes eld
7495 \end_inset
7496
7497 Inverse DVI Search
7498 \begin_inset Quotes erd
7499 \end_inset
7500
7501  tab.
7502  Click on the 
7503 \begin_inset Quotes eld
7504 \end_inset
7505
7506 New\SpecialChar ldots
7507
7508 \begin_inset Quotes erd
7509 \end_inset
7510
7511  button and, in the window that opens, enter 
7512 \begin_inset Quotes eld
7513 \end_inset
7514
7515 \SpecialChar LyX
7516  Editor
7517 \begin_inset Quotes erd
7518 \end_inset
7519
7520  (or any other name you like) in the 
7521 \begin_inset Quotes eld
7522 \end_inset
7523
7524 Name:
7525 \begin_inset Quotes erd
7526 \end_inset
7527
7528  field.
7529  Now click on the button labeled 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 \SpecialChar ldots
7534
7535 \begin_inset Quotes erd
7536 \end_inset
7537
7538  to open a file dialog and navigate to the directory containing the batch
7539  file 
7540 \begin_inset Flex Code
7541 status collapsed
7542
7543 \begin_layout Plain Layout
7544 lyxeditor.bat
7545 \end_layout
7546
7547 \end_inset
7548
7549  (see below).
7550  Select 
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 lyxeditor.bat
7556 \end_layout
7557
7558 \end_inset
7559
7560  and then specify the program arguments as 
7561 \begin_inset Flex Code
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 %f %l
7566 \end_layout
7567
7568 \end_inset
7569
7570 .
7571  The 
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 lyxeditor.bat
7577 \end_layout
7578
7579 \end_inset
7580
7581  wrapper is used for communicating with \SpecialChar LyX
7582  through the 
7583 \emph on
7584 lyxpipe
7585 \emph default
7586  and is as follows:
7587 \end_layout
7588
7589 \begin_layout LyX-Code
7590 @echo off
7591 \begin_inset Newline newline
7592 \end_inset
7593
7594 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7595 \backslash
7596
7597 \backslash
7598 .
7599 \backslash
7600 pipe
7601 \backslash
7602 lyxpipe.in
7603 \begin_inset Newline newline
7604 \end_inset
7605
7606 type 
7607 \backslash
7608
7609 \backslash
7610 .
7611 \backslash
7612 pipe
7613 \backslash
7614 lyxpipe.out
7615 \end_layout
7616
7617 \begin_layout Standard
7618 Make sure that the \SpecialChar LyX
7619 Server pipe path you specified in \SpecialChar LyX
7620  is 
7621 \begin_inset Flex Code
7622 status collapsed
7623
7624 \begin_layout Plain Layout
7625
7626 \backslash
7627
7628 \backslash
7629 .
7630 \backslash
7631 pipe
7632 \backslash
7633 lyxpipe
7634 \end_layout
7635
7636 \end_inset
7637
7638 , otherwise change the 
7639 \begin_inset Flex Code
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 lyxeditor.bat
7644 \end_layout
7645
7646 \end_inset
7647
7648  wrapper accordingly.
7649 \end_layout
7650
7651 \begin_layout Standard
7652 In yap, reverse search is triggered by double-click.
7653 \end_layout
7654
7655 \begin_layout Subsubsection*
7656 SumatraPDF (Windows)
7657 \end_layout
7658
7659 \begin_layout Standard
7660 In order to use SumatraPDF for inverse search, enter 
7661 \begin_inset Flex Code
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
7666 \end_layout
7667
7668 \end_inset
7669
7670  in the viewer setting in 
7671 \begin_inset Flex Noun
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 Preferences\SpecialChar menuseparator
7676 File Handling\SpecialChar menuseparator
7677 File formats\SpecialChar menuseparator
7678 PDF (pdflatex)
7679 \end_layout
7680
7681 \end_inset
7682
7683 , where 
7684 \begin_inset Flex Code
7685 status collapsed
7686
7687 \begin_layout Plain Layout
7688 lyxeditor.bat
7689 \end_layout
7690
7691 \end_inset
7692
7693  is the previous wrapper.
7694  If SumatraPDF.exe is not in your command PATH, use its full file name.
7695 \end_layout
7696
7697 \begin_layout Standard
7698 Reverse search is triggered by double-click.
7699 \end_layout
7700
7701 \begin_layout Subsubsection*
7702 YAP (Cygwin)
7703 \end_layout
7704
7705 \begin_layout Standard
7706 First of all, make sure that yap is your default DVI viewer in the Windows
7707  environment, then launch it, choose its 
7708 \begin_inset Flex Noun
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 View\SpecialChar menuseparator
7713 Options
7714 \end_layout
7715
7716 \end_inset
7717
7718  menu and select the 
7719 \begin_inset Quotes eld
7720 \end_inset
7721
7722 Inverse DVI Search
7723 \begin_inset Quotes erd
7724 \end_inset
7725
7726  tab.
7727  Click on the 
7728 \begin_inset Quotes eld
7729 \end_inset
7730
7731 New\SpecialChar ldots
7732
7733 \begin_inset Quotes erd
7734 \end_inset
7735
7736  button and, in the window that opens, enter 
7737 \begin_inset Quotes eld
7738 \end_inset
7739
7740 \SpecialChar LyX
7741  Editor
7742 \begin_inset Quotes erd
7743 \end_inset
7744
7745  (or any other name you like) in the 
7746 \begin_inset Quotes eld
7747 \end_inset
7748
7749 Name:
7750 \begin_inset Quotes erd
7751 \end_inset
7752
7753  field.
7754  Now click on the button labeled 
7755 \begin_inset Quotes eld
7756 \end_inset
7757
7758 \SpecialChar ldots
7759
7760 \begin_inset Quotes erd
7761 \end_inset
7762
7763  to open a file dialog and navigate to the directory containing the 
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 lyxeditor.exe
7769 \end_layout
7770
7771 \end_inset
7772
7773  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7774  executable).
7775  Select 
7776 \begin_inset Flex Code
7777 status collapsed
7778
7779 \begin_layout Plain Layout
7780 lyxeditor.exe
7781 \end_layout
7782
7783 \end_inset
7784
7785  and then specify the program arguments as 
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 -g %f %l
7791 \end_layout
7792
7793 \end_inset
7794
7795 .
7796  In this way, you will be using the 
7797 \emph on
7798 lyxsocket
7799 \emph default
7800  for communicating with \SpecialChar LyX
7801 .
7802  If, for whatever reason, you want to use the 
7803 \emph on
7804 lyxpipe
7805 \emph default
7806 , omit the 
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811 -g
7812 \end_layout
7813
7814 \end_inset
7815
7816  option and be sure to specify the \SpecialChar LyX
7817 Server pipe path in the \SpecialChar LyX
7818  preferences.
7819 \end_layout
7820
7821 \begin_layout Standard
7822 In yap, reverse search is triggered by double-click.
7823 \end_layout
7824
7825 \begin_layout Subsubsection*
7826 SumatraPDF (Cygwin)
7827 \end_layout
7828
7829 \begin_layout Standard
7830 In order to use SumatraPDF for inverse search, enter 
7831 \begin_inset Flex Code
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7836 \end_layout
7837
7838 \end_inset
7839
7840  in the viewer setting in 
7841 \begin_inset Flex Noun
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845 Preferences\SpecialChar menuseparator
7846 File Handling\SpecialChar menuseparator
7847 File formats\SpecialChar menuseparator
7848 PDF (pdflatex)
7849 \end_layout
7850
7851 \end_inset
7852
7853 .
7854  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7855  The 
7856 \begin_inset Flex Code
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860 -g
7861 \end_layout
7862
7863 \end_inset
7864
7865  enables communication via the 
7866 \emph on
7867 lyxsocket
7868 \emph default
7869 .
7870  Again, omit the 
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 -g
7876 \end_layout
7877
7878 \end_inset
7879
7880  option if you want to use the 
7881 \emph on
7882 lyxpipe
7883 \emph default
7884 , and be sure to specify the \SpecialChar LyX
7885 Server pipe path in the \SpecialChar LyX
7886  preferences.
7887 \end_layout
7888
7889 \begin_layout Standard
7890 Reverse search is triggered by double-click.
7891 \end_layout
7892
7893 \begin_layout Section
7894 Forward search
7895 \end_layout
7896
7897 \begin_layout Standard
7898 Forward search is, as the name implies, in a sense the 
7899 \begin_inset Quotes eld
7900 \end_inset
7901
7902 opposite
7903 \begin_inset Quotes erd
7904 \end_inset
7905
7906  of reverse search.
7907  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7908 .
7909  If forward search is set up (as described in what follows), you can put
7910  the cursor anywhere in your \SpecialChar LyX
7911  document, and hit 
7912 \begin_inset Flex Noun
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 Navigate\SpecialChar menuseparator
7917 Forward search
7918 \end_layout
7919
7920 \end_inset
7921
7922  (or select 
7923 \begin_inset Flex Noun
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 Forward search
7928 \end_layout
7929
7930 \end_inset
7931
7932  in the context menu via right mouse click), and then the viewer will jump
7933  to that position as well.
7934  This implies, of course, that your viewer supports this function.
7935 \end_layout
7936
7937 \begin_layout Standard
7938 To make forward search possible, you first need to provide the generated
7939  output PDF/DVI file with additional information about the \SpecialChar TeX
7940  sources.
7941  This can be done via the methods described in the section 
7942 \begin_inset CommandInset ref
7943 LatexCommand ref
7944 reference "subsec:rev-search"
7945
7946 \end_inset
7947
7948 .
7949 \end_layout
7950
7951 \begin_layout Standard
7952 Additionally, you need to configure \SpecialChar LyX
7953  for using your viewers in 
7954 \begin_inset Flex Noun
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 Tools\SpecialChar menuseparator
7959 Preferences\SpecialChar menuseparator
7960 Output\SpecialChar menuseparator
7961 General
7962 \end_layout
7963
7964 \end_inset
7965
7966 .
7967  We provide a range of tested configurations for some viewers, which you
7968  can select from the drop down list.
7969  If none of these configurations suits you, you have to find out and enter
7970  a suitable configuration yourself.
7971  The definition syntax uses the following placeholders:
7972 \end_layout
7973
7974 \begin_layout Itemize
7975 \noindent
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 $$n
7981 \end_layout
7982
7983 \end_inset
7984
7985 : row number
7986 \end_layout
7987
7988 \begin_layout Itemize
7989 \noindent
7990 \begin_inset Flex Code
7991 status collapsed
7992
7993 \begin_layout Plain Layout
7994 $$t
7995 \end_layout
7996
7997 \end_inset
7998
7999 : name of the (temporary) exported .tex file (without path)
8000 \end_layout
8001
8002 \begin_layout Itemize
8003 \noindent
8004 \begin_inset Flex Code
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 $$f
8009 \end_layout
8010
8011 \end_inset
8012
8013 : name of the (temporary) exported .tex file (including path)
8014 \end_layout
8015
8016 \begin_layout Itemize
8017 \noindent
8018 \begin_inset Flex Code
8019 status collapsed
8020
8021 \begin_layout Plain Layout
8022 $$o
8023 \end_layout
8024
8025 \end_inset
8026
8027 : name of the exported output file (either dvi or pdf, depending on which
8028  one exists in the temporary directory)
8029 \end_layout
8030
8031 \begin_layout Standard
8032 Note that only some of the viewers provide full and usable forward search
8033  functionality out of the box, among them yap, xdvi, okular
8034 \begin_inset Foot
8035 status collapsed
8036
8037 \begin_layout Plain Layout
8038 You might want to set 
8039 \begin_inset Flex Code
8040 status collapsed
8041
8042 \begin_layout Plain Layout
8043 okular –unique
8044 \end_layout
8045
8046 \end_inset
8047
8048  in 
8049 \begin_inset Flex Noun
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 Tools\SpecialChar menuseparator
8054 Preferences\SpecialChar menuseparator
8055 File Handling\SpecialChar menuseparator
8056 File
8057 \begin_inset space ~
8058 \end_inset
8059
8060 Formats
8061 \end_layout
8062
8063 \end_inset
8064
8065
8066 \end_layout
8067
8068 \end_inset
8069
8070 , qpdfview, and SumatraPDF
8071 \begin_inset Foot
8072 status collapsed
8073
8074 \begin_layout Plain Layout
8075 SumatraPDF can also use DDE commands through the external program CMCDDE
8076  — downloadable from 
8077 \begin_inset CommandInset href
8078 LatexCommand href
8079 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8080 literal "false"
8081
8082 \end_inset
8083
8084
8085 \end_layout
8086
8087 \end_inset
8088
8089 .
8090  Others, such as evince
8091 \begin_inset Foot
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 Forward search with evince can be achieved by means of third party helper
8096  scripts.
8097  Please refer to 
8098 \begin_inset CommandInset href
8099 LatexCommand href
8100 target "http://wiki.lyx.org/LyX/SyncTeX"
8101 literal "false"
8102
8103 \end_inset
8104
8105  for details.
8106 \end_layout
8107
8108 \end_inset
8109
8110 , require some extra tools in order to use forward search.
8111  While many of the widespread PDF viewers (most notably Adobe Reader) do
8112  not support forward search at all, some other viewers – e.
8113 \begin_inset space \thinspace{}
8114 \end_inset
8115
8116 g.
8117  xpdf – allow at least to reload the document and jump to a specific page
8118  of the file, so you can at least navigate 
8119 \begin_inset Quotes eld
8120 \end_inset
8121
8122 near
8123 \begin_inset Quotes erd
8124 \end_inset
8125
8126 .
8127  This latter functionality is provided by an external call of synctex (see
8128  the predefined example configurations).
8129  
8130 \end_layout
8131
8132 \begin_layout Standard
8133 Forward search works both with DVI and PDF output.
8134  \SpecialChar LyX
8135  simply checks which preview format you have used before (i.
8136 \begin_inset space \thinspace{}
8137 \end_inset
8138
8139 e., which format is already there in the temporary directory) and chooses
8140  the appropriate configuration for the respective format.
8141 \end_layout
8142
8143 \begin_layout Chapter
8144 Special Document Classes
8145 \end_layout
8146
8147 \begin_layout Section
8148 A&A Paper
8149 \end_layout
8150
8151 \begin_layout Standard
8152 by 
8153 \noun on
8154 Peter Sütterlin
8155 \end_layout
8156
8157 \begin_layout Subsection
8158 Introduction
8159 \end_layout
8160
8161 \begin_layout Standard
8162 This section describes how \SpecialChar LyX
8163  can be used to write articles for submission
8164  to the scientific journal 
8165 \emph on
8166 Astronomy and Astrophysics
8167 \emph default
8168  (
8169 \begin_inset Flex URL
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173
8174 http://www.edpsciences.fr/aa/
8175 \end_layout
8176
8177 \end_inset
8178
8179 ) using Version 5.01 of the document class 
8180 \family typewriter
8181 aa.cls
8182 \family default
8183 .
8184  This package can be downloaded from the ftp site
8185 \end_layout
8186
8187 \begin_layout Standard
8188 \begin_inset VSpace medskip
8189 \end_inset
8190
8191
8192 \end_layout
8193
8194 \begin_layout Standard
8195 \align center
8196 \begin_inset Flex URL
8197 status collapsed
8198
8199 \begin_layout Plain Layout
8200
8201 ftp://ftp.edpsciences.org/pub/aa/readme.html
8202 \end_layout
8203
8204 \end_inset
8205
8206
8207 \end_layout
8208
8209 \begin_layout Standard
8210 \begin_inset VSpace medskip
8211 \end_inset
8212
8213
8214 \end_layout
8215
8216 \begin_layout Standard
8217 A manual comes together with that package, and this text is not meant to
8218  replace the original manual but is merely a short guide in how to realize
8219  the correct form of your paper.
8220  
8221 \end_layout
8222
8223 \begin_layout Standard
8224 Please note that the publisher of the journal was changed from Springer
8225  to EDP Sciences starting January 1, 2001.
8226  That change involved also some slight changes to the style files, namely
8227  the removal of the thesaurus command.
8228  The \SpecialChar LyX
8229  class aa supports the newest version of these style files, V 5.01.
8230  If you have an older version installed, please upgrade.
8231  For compatibility, the old (version 4) layout has been kept as 
8232 \family sans
8233 article (A&A V4)
8234 \family default
8235 .
8236  Please refer to the comments in 
8237 \family typewriter
8238 \SpecialChar LyX
8239 Dir/layouts/aapaper.layout
8240 \family default
8241 .
8242 \end_layout
8243
8244 \begin_layout Subsection
8245 Getting started
8246 \end_layout
8247
8248 \begin_layout Standard
8249 It is recommended you start from the example template distributed with \SpecialChar LyX
8250 .
8251  If you are not using a template, note the following settings:
8252 \end_layout
8253
8254 \begin_layout Itemize
8255 Select 
8256 \family sans
8257 article (A&A)
8258 \family default
8259  in the 
8260 \family sans
8261 Document\SpecialChar menuseparator
8262 Settings
8263 \family default
8264  dialog (OK, that one was obvious).
8265 \end_layout
8266
8267 \begin_layout Itemize
8268 Don't change the option 
8269 \family sans
8270 Page
8271 \begin_inset space ~
8272 \end_inset
8273
8274 style
8275 \family default
8276 : Leave it set to 
8277 \family sans
8278 default
8279 \family default
8280 .
8281  The whole layout is done by the macros, you shouldn't change anything.
8282 \end_layout
8283
8284 \begin_layout Subsection
8285 The header block
8286 \end_layout
8287
8288 \begin_layout Standard
8289 First thing to enter is the header information.
8290  It consists of seven entries, of which some are optional.
8291  They are
8292 \end_layout
8293
8294 \begin_layout Itemize
8295
8296 \family sans
8297 Title
8298 \family default
8299 : [required] 
8300 \end_layout
8301
8302 \begin_layout Itemize
8303
8304 \family sans
8305 Subtitle
8306 \family default
8307 : [optional] 
8308 \end_layout
8309
8310 \begin_layout Itemize
8311
8312 \family sans
8313 Author
8314 \family default
8315 : [required]
8316 \end_layout
8317
8318 \begin_layout Itemize
8319
8320 \family sans
8321 Address
8322 \family default
8323 : [required]
8324 \end_layout
8325
8326 \begin_layout Itemize
8327
8328 \family sans
8329 Offprints
8330 \family default
8331 : [optional] if more than one author: whom to contact for offprint requests.
8332 \end_layout
8333
8334 \begin_layout Itemize
8335
8336 \family sans
8337 Mail
8338 \family default
8339 : [optional] mail address for contacts.
8340 \end_layout
8341
8342 \begin_layout Itemize
8343
8344 \family sans
8345 Date
8346 \family default
8347 : [required].
8348  Suggested format is 
8349 \family typewriter
8350 Received: <date>; Accepted <date> 
8351 \end_layout
8352
8353 \begin_layout Standard
8354 There is no need to issue the 
8355 \family typewriter
8356
8357 \backslash
8358 maketitle
8359 \family default
8360  command, this is done automatically by \SpecialChar LyX
8361  when the header is finished.
8362  Although the order of the single header entries doesn't matter it is advised
8363  to keep the above sequence, just to get the best optics and meets the layout
8364  of the real document.
8365 \end_layout
8366
8367 \begin_layout Standard
8368 If you want to place footnotes in the header block, e.
8369 \begin_inset space \thinspace{}
8370 \end_inset
8371
8372 g.
8373 \begin_inset space \space{}
8374 \end_inset
8375
8376 to state your present address, just use the standard footnote via the menu
8377  
8378 \family sans
8379 Insert\SpecialChar menuseparator
8380 Footnote.
8381
8382 \family default
8383  \SpecialChar LyX
8384  will automagically use the term 
8385 \family typewriter
8386
8387 \backslash
8388 thanks{}
8389 \family default
8390  in that case.
8391 \end_layout
8392
8393 \begin_layout Standard
8394 In addition to these topics, the macros use three additional \SpecialChar LaTeX
8395  commands that
8396  have no counterpart in \SpecialChar LyX
8397 :
8398 \end_layout
8399
8400 \begin_layout Itemize
8401
8402 \family typewriter
8403
8404 \backslash
8405 and
8406 \family default
8407  to separate different names for more than one author and institute, respectivel
8408 y.
8409 \end_layout
8410
8411 \begin_layout Itemize
8412
8413 \family typewriter
8414
8415 \backslash
8416 inst{<nr>}
8417 \family default
8418 to mark corresponding author/institute pairs.
8419  The institutes are numbered sequentially as they appear in the 
8420 \family sans
8421 Address
8422 \family default
8423  field, so you have to put a marker to each author.
8424 \end_layout
8425
8426 \begin_layout Itemize
8427
8428 \family typewriter
8429
8430 \backslash
8431 email{address}
8432 \family default
8433  to supply an email address for fast contact.
8434 \end_layout
8435
8436 \begin_layout Standard
8437 In all cases, the appropriate command has to be entered in \SpecialChar LyX
8438  and marked as
8439  \SpecialChar LaTeX
8440  code.
8441  See the examples.
8442  
8443 \end_layout
8444
8445 \begin_layout Subsection
8446 The abstract
8447 \end_layout
8448
8449 \begin_layout Standard
8450 The abstract should immediately follow the header block.
8451  With version 5 the abstract environment was changed to a command, and there
8452  is now a resctriction to only one paragraph.
8453  In addition, it should contain an entry with the keywords.
8454  This is not yet implemented for \SpecialChar LyX
8455 , therefore you have to enter the \SpecialChar LaTeX
8456  command
8457  
8458 \family typewriter
8459
8460 \backslash
8461 keywords{}
8462 \family default
8463  by hand and mark it as \SpecialChar LaTeX
8464  code.
8465  Refer to the example paper.
8466 \end_layout
8467
8468 \begin_layout Subsection
8469 Supported environments
8470 \end_layout
8471
8472 \begin_layout Standard
8473 The A&A paper layout supports the following environments for structuring
8474  your text:
8475 \end_layout
8476
8477 \begin_layout Itemize
8478
8479 \family sans
8480 Standard
8481 \end_layout
8482
8483 \begin_layout Itemize
8484
8485 \family sans
8486 Section
8487 \end_layout
8488
8489 \begin_layout Itemize
8490
8491 \family sans
8492 Subsection
8493 \end_layout
8494
8495 \begin_layout Itemize
8496
8497 \family sans
8498 Subsubsection
8499 \end_layout
8500
8501 \begin_layout Itemize
8502
8503 \family sans
8504 Itemize
8505 \end_layout
8506
8507 \begin_layout Itemize
8508
8509 \family sans
8510 Enumerate
8511 \end_layout
8512
8513 \begin_layout Itemize
8514
8515 \family sans
8516 Description
8517 \end_layout
8518
8519 \begin_layout Itemize
8520
8521 \family sans
8522 Caption
8523 \end_layout
8524
8525 \begin_layout Itemize
8526
8527 \family sans
8528 Abstract
8529 \end_layout
8530
8531 \begin_layout Itemize
8532
8533 \family sans
8534 Acknowledgment
8535 \end_layout
8536
8537 \begin_layout Itemize
8538
8539 \family sans
8540 Bibliography
8541 \end_layout
8542
8543 \begin_layout Itemize
8544
8545 \family sans
8546 \SpecialChar LaTeX
8547
8548 \end_layout
8549
8550 \begin_layout Subsection
8551 Commands not supported by \SpecialChar LyX
8552
8553 \end_layout
8554
8555 \begin_layout Standard
8556 Some commands are not yet supported by the 
8557 \family sans
8558 paper (A&A)
8559 \family default
8560  layout for \SpecialChar LyX
8561 .
8562  Some have already been mentioned.
8563  For the sake of completeness, they are listed all together here:
8564 \end_layout
8565
8566 \begin_layout Itemize
8567
8568 \family typewriter
8569
8570 \backslash
8571 and
8572 \end_layout
8573
8574 \begin_layout Itemize
8575
8576 \family typewriter
8577
8578 \backslash
8579 email
8580 \end_layout
8581
8582 \begin_layout Itemize
8583
8584 \family typewriter
8585
8586 \backslash
8587 appendix
8588 \end_layout
8589
8590 \begin_layout Itemize
8591
8592 \family typewriter
8593
8594 \backslash
8595 authorrunning
8596 \end_layout
8597
8598 \begin_layout Itemize
8599
8600 \family typewriter
8601
8602 \backslash
8603 inst{}
8604 \end_layout
8605
8606 \begin_layout Itemize
8607
8608 \family typewriter
8609
8610 \backslash
8611 keywords{}
8612 \end_layout
8613
8614 \begin_layout Itemize
8615
8616 \family typewriter
8617
8618 \backslash
8619 object{}
8620 \end_layout
8621
8622 \begin_layout Itemize
8623
8624 \family typewriter
8625
8626 \backslash
8627 titlerunning{}
8628 \end_layout
8629
8630 \begin_layout Standard
8631 If you want to use any of these commands, you have to enter them yourself.
8632  
8633 \series bold
8634 Do not forget to mark them as \SpecialChar LaTeX
8635  code!
8636 \end_layout
8637
8638 \begin_layout Subsection
8639 Figure and Table Floats
8640 \end_layout
8641
8642 \begin_layout Standard
8643 \SpecialChar LyX
8644  provides support for the necessary float environments 
8645 \family sans
8646 figure, figure*, table
8647 \family default
8648  and 
8649 \family sans
8650 table*
8651 \family default
8652 , therefore we won't tell much about it here.
8653  Refer to the 
8654 \emph on
8655 User's
8656 \begin_inset space ~
8657 \end_inset
8658
8659 Guide
8660 \emph default
8661 .
8662  Just remember that tables should be left-aligned.
8663  For that, select the table and change the alignment in 
8664 \family sans
8665 Edit\SpecialChar menuseparator
8666 Paragraph
8667 \begin_inset space ~
8668 \end_inset
8669
8670 Settings.
8671 \end_layout
8672
8673 \begin_layout Standard
8674 There is only one special thing: the figures with caption besides the figure.
8675  To create such a figure, you have to do the following:
8676 \end_layout
8677
8678 \begin_layout Enumerate
8679 Create a wide figure float: 
8680 \family sans
8681 Insert\SpecialChar menuseparator
8682 Float\SpecialChar menuseparator
8683 Figure
8684 \family default
8685 , then right click in the figure and select 
8686 \family sans
8687 Span
8688 \begin_inset space ~
8689 \end_inset
8690
8691 columns
8692 \family default
8693 .
8694 \end_layout
8695
8696 \begin_layout Enumerate
8697 Enter your caption text.
8698 \end_layout
8699
8700 \begin_layout Enumerate
8701 Press 
8702 \family sans
8703 Return
8704 \family default
8705  to move the cursor above the caption.
8706 \end_layout
8707
8708 \begin_layout Enumerate
8709 Insert your figure
8710 \end_layout
8711
8712 \begin_layout Enumerate
8713 Position the cursor behind the figure and insert a horizontal fill: 
8714 \family sans
8715 Insert\SpecialChar menuseparator
8716 Special
8717 \begin_inset space ~
8718 \end_inset
8719
8720 Character\SpecialChar menuseparator
8721 Horizontal
8722 \begin_inset space ~
8723 \end_inset
8724
8725 Fill
8726 \family default
8727 .
8728 \end_layout
8729
8730 \begin_layout Enumerate
8731 Switch to \SpecialChar LaTeX
8732  mode: 
8733 \family sans
8734 M-c
8735 \begin_inset space ~
8736 \end_inset
8737
8738 t
8739 \family default
8740 .
8741 \end_layout
8742
8743 \begin_layout Enumerate
8744 Enter 
8745 \family typewriter
8746
8747 \backslash
8748 parbox[b]{55mm}{
8749 \family default
8750 .
8751  
8752 \series bold
8753 Do not close the brace!
8754 \end_layout
8755
8756 \begin_layout Enumerate
8757 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8758  mode and insert
8759  the closing brace: 
8760 \family sans
8761 M-c
8762 \begin_inset space ~
8763 \end_inset
8764
8765 t
8766 \family default
8767  
8768 \family typewriter
8769 }
8770 \family default
8771 .
8772 \end_layout
8773
8774 \begin_layout Standard
8775 Also, refer to the figures in the example paper.
8776 \end_layout
8777
8778 \begin_layout Subsection
8779 Referee layout
8780 \end_layout
8781
8782 \begin_layout Standard
8783 For submission, the paper has to be formated in a special double-spacing
8784  layout.
8785  For this purpose, you have to give the option 
8786 \family typewriter
8787 referee
8788 \family default
8789  to the documentclass.
8790  This must be done using the extra class options field in the 
8791 \family sans
8792 Document\SpecialChar menuseparator
8793 Settings
8794 \family default
8795  dialog.
8796  Just enter the string 
8797 \family typewriter
8798 referee
8799 \family default
8800  there.
8801 \end_layout
8802
8803 \begin_layout Subsection
8804 The example paper
8805 \end_layout
8806
8807 \begin_layout Standard
8808 The 
8809 \family sans
8810 Examples
8811 \family default
8812  directory contains an example paper written with \SpecialChar LyX
8813 .
8814  It is the example paper from the original macro package, translated to
8815  \SpecialChar LyX
8816 .
8817  Use it for inspiration, and compare the original \SpecialChar LaTeX
8818  code with \SpecialChar LyX
8819  way of writing.
8820 \end_layout
8821
8822 \begin_layout Section
8823 AAS\SpecialChar TeX
8824
8825 \end_layout
8826
8827 \begin_layout Standard
8828 by 
8829 \noun on
8830 Mike Ressler
8831 \end_layout
8832
8833 \begin_layout Subsection
8834 Introduction
8835 \end_layout
8836
8837 \begin_layout Standard
8838 AAS\SpecialChar TeX
8839  is a set of macros produced by the American Astronomical Society to
8840  facilitate electronic manuscript submission to the three journals they
8841  publish: the Astrophysical Journal (including the Letters and Supplement),
8842  the Astronomical Journal, and the Publications of the Astronomical Society
8843  of the Pacific.
8844  \SpecialChar LyX
8845  has proven to be an excellent tool for generating these documents, especially
8846  given its equation, citation, and figure handling capabilities.
8847  \SpecialChar LyX
8848  requires version 5.0 (or higher) of these macros; preferably 5.2, which
8849  is the version described here, or higher.
8850  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8851 2.09 and are fundamentally
8852  incompatible with \SpecialChar LyX
8853 .
8854  The AAS\SpecialChar TeX
8855  package may be downloaded from the AAS\SpecialChar TeX
8856  Web site
8857 \end_layout
8858
8859 \begin_layout Standard
8860 \begin_inset VSpace medskip
8861 \end_inset
8862
8863
8864 \end_layout
8865
8866 \begin_layout Standard
8867 \align center
8868 \begin_inset Flex URL
8869 status collapsed
8870
8871 \begin_layout Plain Layout
8872
8873 https://aas.org/aastex/aastex-downloads
8874 \end_layout
8875
8876 \end_inset
8877
8878
8879 \end_layout
8880
8881 \begin_layout Standard
8882 \begin_inset VSpace medskip
8883 \end_inset
8884
8885
8886 \end_layout
8887
8888 \begin_layout Standard
8889 A complete user guide is contained in that package and you should familiarize
8890  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8891 .
8892  \SpecialChar LyX
8893  will not reduce the need to figure out all the AAS\SpecialChar TeX
8894  commands, it will only
8895  reduce the drudgery of typing everything in.
8896  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8897  document conforms
8898  completely to the requirements of the journal to which you are submitting
8899  your paper.
8900 \end_layout
8901
8902 \begin_layout Subsection
8903 Starting a New Paper
8904 \end_layout
8905
8906 \begin_layout Standard
8907 I strongly suggest that you start with the AAS\SpecialChar TeX
8908  template file.
8909  Click on 
8910 \family sans
8911 File\SpecialChar menuseparator
8912 New from
8913 \family default
8914  
8915 \family sans
8916 Template
8917 \family default
8918 , enter the new file name, then choose the 
8919 \family typewriter
8920 aastex.lyx
8921 \family default
8922  template.
8923  This will show the most common fields found in a manuscript.
8924  Simply overwrite the existing text (including the brackets, 
8925 \family typewriter
8926 <>
8927 \family default
8928 ) with the correct information.
8929  Many of the AAS\SpecialChar TeX
8930  commands and environments can be implemented directly in
8931  \SpecialChar LyX
8932 , but some cannot: most noticeably 
8933 \family typewriter
8934
8935 \backslash
8936 altaffilmark
8937 \family default
8938  and 
8939 \family typewriter
8940
8941 \backslash
8942 altaffiltext
8943 \family default
8944 , which should stick out like a sore thumb if you actually just opened the
8945  template file.
8946  For commands such as these, the \SpecialChar LaTeX
8947  code must be entered directly and marked
8948  as such.
8949  Such commands are referred to as \SpecialChar TeX
8950  code, or Evil Red Text.
8951  I tried to minimize the amount of \SpecialChar TeX
8952  code needed in an AAS\SpecialChar TeX
8953  document, but
8954  there is still a bit more required than any of us would like.
8955 \end_layout
8956
8957 \begin_layout Subsection
8958 Finishing Your Paper
8959 \end_layout
8960
8961 \begin_layout Standard
8962 When the paper is finished to your satisfaction and previews/prints correctly,
8963  there are a few 
8964 \begin_inset Quotes eld
8965 \end_inset
8966
8967 postprocessing
8968 \begin_inset Quotes erd
8969 \end_inset
8970
8971  actions which need to be done before you submit it to the journals.
8972  
8973 \end_layout
8974
8975 \begin_layout Enumerate
8976 Export your paper as a \SpecialChar LaTeX
8977  file (
8978 \family sans
8979 File\SpecialChar menuseparator
8980 Export\SpecialChar menuseparator
8981 \SpecialChar LaTeX
8982
8983 \family default
8984 ).
8985  
8986 \end_layout
8987
8988 \begin_layout Enumerate
8989 Edit the resulting 
8990 \family typewriter
8991 .tex
8992 \family default
8993  file with your favorite text editor
8994 \end_layout
8995
8996 \begin_deeper
8997 \begin_layout Enumerate
8998 remove the comment lines before the 
8999 \family typewriter
9000
9001 \backslash
9002 documentclass
9003 \family default
9004  command
9005 \end_layout
9006
9007 \begin_layout Enumerate
9008 remove the 
9009 \family typewriter
9010
9011 \backslash
9012 usepackage...{fontenc}
9013 \family default
9014  line if it appears (usually just after 
9015 \family typewriter
9016
9017 \backslash
9018 documentclass
9019 \family default
9020 }; also remove the 
9021 \family typewriter
9022
9023 \backslash
9024 secnumdepth
9025 \family default
9026  line if it appears.
9027 \end_layout
9028
9029 \begin_layout Enumerate
9030 remove everything between (and including) the 
9031 \family typewriter
9032
9033 \backslash
9034 makeatletter
9035 \family default
9036  and 
9037 \family typewriter
9038
9039 \backslash
9040 makeatother
9041 \family default
9042  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9043  preamble
9044  (which should appear immediately after the 
9045 \begin_inset Quotes eld
9046 \end_inset
9047
9048 User specified \SpecialChar LaTeX
9049  commands
9050 \begin_inset Quotes erd
9051 \end_inset
9052
9053  comment in the 
9054 \family typewriter
9055 .tex
9056 \family default
9057  file).
9058 \end_layout
9059
9060 \end_deeper
9061 \begin_layout Enumerate
9062 Run the resulting file through \SpecialChar LaTeX
9063  to make sure it still processes correctly.
9064 \end_layout
9065
9066 \begin_layout Enumerate
9067 Reread the journal requirements to make sure your filenames and formats
9068  are correct.
9069 \end_layout
9070
9071 \begin_layout Enumerate
9072 Submit it.
9073 \end_layout
9074
9075 \begin_layout Subsection
9076 Comments On Specific Commands
9077 \end_layout
9078
9079 \begin_layout Standard
9080 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9081  commands: the
9082  AAS\SpecialChar TeX
9083  User Guide (
9084 \family typewriter
9085 aasguide.tex
9086 \family default
9087 ) gives a good description of each.
9088  Thus it's probably easiest for me to go down the list as found in the guide
9089  and offer comments where necessary.
9090  So let's begin \SpecialChar ldots
9091
9092 \end_layout
9093
9094 \begin_layout Subsubsection
9095 Things that work as expected
9096 \end_layout
9097
9098 \begin_layout Standard
9099 Because they work as you might expect, I simply list them and the section
9100  they are found in: 
9101 \family typewriter
9102
9103 \backslash
9104 documentclass
9105 \family default
9106  (2.1.1), 
9107 \family typewriter
9108
9109 \backslash
9110 begin{document}
9111 \family default
9112  (2.2), 
9113 \family typewriter
9114
9115 \backslash
9116 title
9117 \family default
9118  (2.3), 
9119 \family typewriter
9120
9121 \backslash
9122 author
9123 \family default
9124  (2.3), 
9125 \family typewriter
9126
9127 \backslash
9128 affil
9129 \family default
9130  (2.3), 
9131 \family typewriter
9132
9133 \backslash
9134 abstract
9135 \family default
9136  (2.4), 
9137 \family typewriter
9138
9139 \backslash
9140 keywords
9141 \family default
9142  (2.5), 
9143 \family typewriter
9144
9145 \backslash
9146 section
9147 \family default
9148  (2.7), 
9149 \family typewriter
9150
9151 \backslash
9152 subsection
9153 \family default
9154  (2.7), 
9155 \family typewriter
9156
9157 \backslash
9158 subsubsection
9159 \family default
9160  (2.7), 
9161 \family typewriter
9162
9163 \backslash
9164 paragraph
9165 \family default
9166  (2.7), 
9167 \family typewriter
9168
9169 \backslash
9170 facility
9171 \family default
9172  (2.10), 
9173 \family typewriter
9174
9175 \backslash
9176 begin{displaymath}
9177 \family default
9178  (2.12), 
9179 \family typewriter
9180
9181 \backslash
9182 begin{equation}
9183 \family default
9184  (2.12), 
9185 \family typewriter
9186
9187 \backslash
9188 begin{eqnarray}
9189 \family default
9190  (2.12), 
9191 \family typewriter
9192
9193 \backslash
9194 begin{mathletters}
9195 \family default
9196  (2.12), 
9197 \family typewriter
9198
9199 \backslash
9200 begin{thebibliography}
9201 \family default
9202  (2.13.1), 
9203 \family typewriter
9204
9205 \backslash
9206 bibitem
9207 \family default
9208  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9209  graphicx figure commands (2.14.1), 
9210 \family typewriter
9211
9212 \backslash
9213 begin{table}
9214 \family default
9215  (2.15.4), 
9216 \family typewriter
9217
9218 \backslash
9219 begin{tabular}
9220 \family default
9221  (2.15.4), 
9222 \family typewriter
9223
9224 \backslash
9225 caption
9226 \family default
9227  (2.15.4), 
9228 \family typewriter
9229
9230 \backslash
9231 label
9232 \family default
9233  (2.15.4, amongst other places), 
9234 \family typewriter
9235
9236 \backslash
9237 tablerefs
9238 \family default
9239  (2.15.5), 
9240 \family typewriter
9241
9242 \backslash
9243 tablecomments
9244 \family default
9245  (2.15.5), 
9246 \family typewriter
9247
9248 \backslash
9249 url
9250 \family default
9251  (2.17.4), 
9252 \family typewriter
9253
9254 \backslash
9255 end{document}
9256 \family default
9257  (2.18).
9258 \end_layout
9259
9260 \begin_layout Standard
9261 The following style options also work correctly: 
9262 \family typewriter
9263 longabstract
9264 \family default
9265  (2.4), 
9266 \family typewriter
9267 preprint
9268 \family default
9269  (3.2.1), 
9270 \family typewriter
9271 preprint2
9272 \family default
9273  (3.2.2), 
9274 \family typewriter
9275 eqsecnum
9276 \family default
9277  (3.3), 
9278 \family typewriter
9279 flushrt
9280 \family default
9281  (3.4).
9282  Simply put them in the 
9283 \family sans
9284 Options
9285 \family default
9286  box in 
9287 \family sans
9288 Layout\SpecialChar menuseparator
9289 Document
9290 \family default
9291 .
9292 \end_layout
9293
9294 \begin_layout Subsubsection
9295 Things that work, but require more comment
9296 \end_layout
9297
9298 \begin_layout Standard
9299 The following items work, but require a little more discussion:
9300 \end_layout
9301
9302 \begin_layout Itemize
9303 These items are reserved for use by the journal editors, but you can put
9304  them into the \SpecialChar LaTeX
9305  preamble if you feel compelled to do so: 
9306 \family typewriter
9307
9308 \backslash
9309 received
9310 \family default
9311
9312 \family typewriter
9313
9314 \backslash
9315 revised
9316 \family default
9317
9318 \family typewriter
9319
9320 \backslash
9321 accepted
9322 \family default
9323
9324 \family typewriter
9325
9326 \backslash
9327 ccc
9328 \family default
9329
9330 \family typewriter
9331
9332 \backslash
9333 cpright
9334 \family default
9335  (all from 2.1.3)
9336 \end_layout
9337
9338 \begin_layout Itemize
9339 These items may be placed in the \SpecialChar LaTeX
9340  preamble, and are included as blanks in
9341  the template file: 
9342 \family typewriter
9343
9344 \backslash
9345 slugcomment
9346 \family default
9347  (2.1.4), 
9348 \family typewriter
9349
9350 \backslash
9351 shorttitle
9352 \family default
9353  (2.1.5), 
9354 \family typewriter
9355
9356 \backslash
9357 shortauthors
9358 \family default
9359  (2.1.5)
9360 \end_layout
9361
9362 \begin_layout Itemize
9363
9364 \family typewriter
9365
9366 \backslash
9367 email
9368 \family default
9369  (2.3) – can only be used 
9370 \begin_inset Quotes eld
9371 \end_inset
9372
9373 standalone
9374 \begin_inset Quotes erd
9375 \end_inset
9376
9377 , not in the middle of a paragraph.
9378  Use \SpecialChar TeX
9379  code if you need to embed it.
9380 \end_layout
9381
9382 \begin_layout Itemize
9383
9384 \family typewriter
9385
9386 \backslash
9387 and
9388 \family default
9389  (2.3) – will have extra {} after it.
9390  This should not cause an error.
9391 \end_layout
9392
9393 \begin_layout Itemize
9394
9395 \family typewriter
9396
9397 \backslash
9398 notetoeditor
9399 \family default
9400  (2.6) – can only be used 
9401 \begin_inset Quotes eld
9402 \end_inset
9403
9404 standalone
9405 \begin_inset Quotes erd
9406 \end_inset
9407
9408 , not in the middle of a paragraph.
9409  Use \SpecialChar TeX
9410  code if you need to embed it.
9411 \end_layout
9412
9413 \begin_layout Itemize
9414
9415 \family typewriter
9416
9417 \backslash
9418 placetable
9419 \family default
9420  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9421  hand
9422 \end_layout
9423
9424 \begin_layout Itemize
9425
9426 \family typewriter
9427
9428 \backslash
9429 placefigure
9430 \family default
9431  (2.8) – same as for 
9432 \family typewriter
9433
9434 \backslash
9435 placetable
9436 \end_layout
9437
9438 \begin_layout Itemize
9439
9440 \family typewriter
9441
9442 \backslash
9443 acknowledgements
9444 \family default
9445  (2.9) – will have extra {} after it.
9446  This should not cause an error.
9447 \end_layout
9448
9449 \begin_layout Itemize
9450
9451 \family typewriter
9452
9453 \backslash
9454 appendix
9455 \family default
9456  (2.11) – will have extra {} after it.
9457  This should not cause an error.
9458 \end_layout
9459
9460 \begin_layout Itemize
9461
9462 \family typewriter
9463
9464 \backslash
9465 figcaption
9466 \family default
9467  (2.14.2) – you can insert an optional filename argument by placing the cursor
9468  at the beginning of the text and selecting 
9469 \family sans
9470 Insert\SpecialChar menuseparator
9471 Short Title
9472 \family default
9473 .
9474  
9475 \begin_inset Quotes eld
9476 \end_inset
9477
9478 Short Title
9479 \begin_inset Quotes erd
9480 \end_inset
9481
9482  inserts an optional argument of the type needed by 
9483 \family typewriter
9484
9485 \backslash
9486 figcaption
9487 \family default
9488 .
9489  Hopefully it will be renamed someday.
9490 \end_layout
9491
9492 \begin_layout Itemize
9493
9494 \family typewriter
9495
9496 \backslash
9497 objectname
9498 \family default
9499  (2.17.1) – same as 
9500 \family typewriter
9501
9502 \backslash
9503 figcaption
9504 \family default
9505  for the catalog ID optional parameter
9506 \end_layout
9507
9508 \begin_layout Itemize
9509
9510 \family typewriter
9511
9512 \backslash
9513 dataset
9514 \family default
9515  (2.17.1) – same as 
9516 \family typewriter
9517
9518 \backslash
9519 figcaption
9520 \family default
9521  for the catalog ID optional parameter
9522 \end_layout
9523
9524 \begin_layout Subsubsection
9525 Things not implemented, use \SpecialChar TeX
9526  code
9527 \end_layout
9528
9529 \begin_layout Standard
9530
9531 \family typewriter
9532
9533 \backslash
9534 altaffilmark
9535 \family default
9536  (2.3), 
9537 \family typewriter
9538
9539 \backslash
9540 altaffiltext
9541 \family default
9542  (2.3), 
9543 \family typewriter
9544
9545 \backslash
9546 eqnum
9547 \family default
9548  (2.12), 
9549 \family typewriter
9550
9551 \backslash
9552 setcounter{equation}
9553 \family default
9554  (2.12), Journal name abbreviations (2.13.4), 
9555 \family typewriter
9556
9557 \backslash
9558 figurenum
9559 \family default
9560  (2.14.1), 
9561 \family typewriter
9562
9563 \backslash
9564 epsscale
9565 \family default
9566  (2.14.1), 
9567 \family typewriter
9568
9569 \backslash
9570 plotone
9571 \family default
9572  (2.14.1), 
9573 \family typewriter
9574
9575 \backslash
9576 plottwo
9577 \family default
9578  (2.14.1), 
9579 \family typewriter
9580
9581 \backslash
9582 tablenum
9583 \family default
9584  (2.15.4), 
9585 \family typewriter
9586
9587 \backslash
9588 tableline
9589 \family default
9590  (2.15.4, insert it as the first element in the lefthand cell after where
9591  you want it.
9592  Don't use any of \SpecialChar LyX
9593 's rules in the table), 
9594 \family typewriter
9595
9596 \backslash
9597 tablenotemark
9598 \family default
9599  (2.15.5), 
9600 \family typewriter
9601
9602 \backslash
9603 tablenotetext
9604 \family default
9605  (2.15.5), much of Misc (2.17, except 
9606 \family typewriter
9607
9608 \backslash
9609 objectname
9610 \family default
9611
9612 \family typewriter
9613
9614 \backslash
9615 dataset
9616 \family default
9617
9618 \family typewriter
9619
9620 \backslash
9621 url
9622 \family default
9623 , and 
9624 \family typewriter
9625
9626 \backslash
9627 email
9628 \family default
9629 ; see above), 
9630 \family typewriter
9631
9632 \backslash
9633 singlespace
9634 \family default
9635  (3.1), 
9636 \family typewriter
9637
9638 \backslash
9639 doublespace
9640 \family default
9641  (3.1), 
9642 \family typewriter
9643
9644 \backslash
9645 onecolumn
9646 \family default
9647  (3.2), 
9648 \family typewriter
9649
9650 \backslash
9651 twocolumn
9652 \family default
9653  (3.2)
9654 \end_layout
9655
9656 \begin_layout Subsubsection
9657 Things that cannot be implemented
9658 \end_layout
9659
9660 \begin_layout Standard
9661 \SpecialChar ldots
9662  at least in any meaningful sort of way, so I suggest ignoring them.
9663  They are the references environment (2.13.3), and the deluxetable environment
9664  (2.15).
9665  If you really, really need to use deluxetable, I suggest editing it in
9666  a separate file with a text editor, then using 
9667 \family sans
9668 Insert\SpecialChar menuseparator
9669 Child
9670 \begin_inset space ~
9671 \end_inset
9672
9673 Document
9674 \family default
9675  to include it in your \SpecialChar LyX
9676  document.
9677  See the 
9678 \family typewriter
9679 aas_sample.lyx
9680 \family default
9681  file to see an example of this.
9682 \end_layout
9683
9684 \begin_layout Subsection
9685 FAQs, Tips, Tricks, and Other Ruminations
9686 \end_layout
9687
9688 \begin_layout Subsubsection
9689 Getting \SpecialChar LyX
9690  and AAS\SpecialChar TeX
9691  to cooperate
9692 \end_layout
9693
9694 \begin_layout Standard
9695 It can be a bit tricky to get \SpecialChar LyX
9696  to recognize a new layout and document class.
9697  When all else fails, do this:
9698 \end_layout
9699
9700 \begin_layout Enumerate
9701 Make certain that \SpecialChar LaTeX
9702  can find AAS\SpecialChar TeX
9703 .
9704  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9705  distribution into a
9706  directory completely unrelated to \SpecialChar LaTeX
9707  or AAS\SpecialChar TeX
9708  and run \SpecialChar LaTeX
9709  on 
9710 \family typewriter
9711 sample.tex
9712 \family default
9713 .
9714 \end_layout
9715
9716 \begin_layout Enumerate
9717 Make certain that 
9718 \family typewriter
9719 aastex.layout
9720 \family default
9721  appears in \SpecialChar LyX
9722 's 
9723 \family typewriter
9724 layouts
9725 \family default
9726  folder
9727 \end_layout
9728
9729 \begin_layout Enumerate
9730 Rerun 
9731 \family sans
9732 Tools\SpecialChar menuseparator
9733 Reconfigure
9734 \family default
9735  in \SpecialChar LyX
9736 , then restart \SpecialChar LyX
9737 .
9738 \end_layout
9739
9740 \begin_layout Enumerate
9741 Open a regular new file, not from a template.
9742  Does AAS\SpecialChar TeX
9743  appear in the class list in 
9744 \family sans
9745 Document\SpecialChar menuseparator
9746 Settings
9747 \family default
9748 ?
9749 \end_layout
9750
9751 \begin_layout Standard
9752 If you get a warning from an existing AAS\SpecialChar TeX
9753  document about not being able
9754  to find the AAS\SpecialChar TeX
9755  layout or a message about 
9756 \begin_inset Quotes eld
9757 \end_inset
9758
9759 You should not mix title layouts with normal ones
9760 \begin_inset Quotes erd
9761 \end_inset
9762
9763 , things haven't been installed correctly.
9764 \end_layout
9765
9766 \begin_layout Subsubsection
9767 \SpecialChar LaTeX
9768  error processing a table 
9769 \end_layout
9770
9771 \begin_layout Standard
9772 \SpecialChar LyX
9773 , by default, attempts to center the table caption/title.
9774  This seems to produce a bad interaction in AAS\SpecialChar TeX
9775  so you should click somewhere
9776  in the caption/title, then select 
9777 \family sans
9778 Edit\SpecialChar menuseparator
9779 Paragraph
9780 \begin_inset space ~
9781 \end_inset
9782
9783 Settings
9784 \family default
9785 , then set the 
9786 \family sans
9787 Alignment
9788 \family default
9789  to 
9790 \family sans
9791 Block
9792 \family default
9793 .
9794  This took care of it for me.
9795 \end_layout
9796
9797 \begin_layout Subsubsection
9798 References
9799 \end_layout
9800
9801 \begin_layout Standard
9802 A couple of things: 1) I have noticed some funny spacing in the reference
9803  entries in the text.
9804  When you enter the bibliography item data, make sure their is 
9805 \emph on
9806 no
9807 \emph default
9808  space between the last author and the parenthesis setting off the year;
9809  
9810 \emph on
9811 e.
9812 \begin_inset space \thinspace{}
9813 \end_inset
9814
9815 g.
9816 \begin_inset space \space{}
9817 \end_inset
9818
9819
9820 \emph default
9821 type 
9822 \family typewriter
9823 Ressler(1992)
9824 \family default
9825 , not 
9826 \family typewriter
9827 Ressler (1992)
9828 \family default
9829 .
9830  2) Entering the references at all is not obvious.
9831  The easiest thing is to start typing your first reference at the end of
9832  the document, then mark it as type 
9833 \family sans
9834 References
9835 \family default
9836 .
9837  That will put a small gray box in front of what you just typed.
9838  Click on the box to fill in the rest of the information.
9839  For new references, go to the end of an existing reference and press return.
9840  That will create a new line with its own box, etc.
9841 \end_layout
9842
9843 \begin_layout Subsubsection
9844 Including EPS files
9845 \end_layout
9846
9847 \begin_layout Standard
9848 Even though AAS\SpecialChar TeX
9849  provides its own figure commands (
9850 \family typewriter
9851
9852 \backslash
9853 plotone
9854 \family default
9855 , for example), I much prefer \SpecialChar LaTeX
9856 's standard figure commands (with the default
9857  graphicx).
9858  You can insert the 
9859 \family typewriter
9860
9861 \backslash
9862 plotone
9863 \family default
9864 , etc.
9865 \begin_inset space ~
9866 \end_inset
9867
9868 commands as \SpecialChar TeX
9869  code into a Figure Float box if you desire, but I never have
9870  much luck getting the layout right.
9871  With the standard graphics, \SpecialChar LyX
9872  will insert a 
9873 \family typewriter
9874
9875 \backslash
9876 usepackage{graphicx}
9877 \family default
9878  command into the \SpecialChar LaTeX
9879  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9880  way,
9881  interspersing the figures in the text.
9882  I believe ApJ accepts figures exactly this way now; AJ might still use
9883  the 
9884 \begin_inset Quotes eld
9885 \end_inset
9886
9887 stack everything at the end
9888 \begin_inset Quotes erd
9889 \end_inset
9890
9891  technique.
9892 \end_layout
9893
9894 \begin_layout Subsubsection
9895 Things I could have done, but didn't
9896 \end_layout
9897
9898 \begin_layout Standard
9899 There are a few 
9900 \begin_inset Quotes eld
9901 \end_inset
9902
9903 pretty
9904 \begin_inset Quotes erd
9905 \end_inset
9906
9907  things I could have implemented, but chose not to.
9908  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9909  window,
9910  even though it is double-spaced in the paper manuscript.
9911  Also, I chose not to make separate layouts for the preprint and preprint2
9912  styles.
9913  Since I assume you will spend most of your time in the plain manuscript
9914  mode anyway, I decided not to chew up more disk space with this.
9915  
9916 \end_layout
9917
9918 \begin_layout Subsection
9919 Final Caveat
9920 \end_layout
9921
9922 \begin_layout Standard
9923 Your mileage may vary.
9924  I've now had papers published by both ApJ and AJ that have had 98% of the
9925  effort done in \SpecialChar LyX
9926 ; the last 2% was the \SpecialChar LaTeX
9927  post-processing and a few cleanups.
9928  I have had no trouble with the submission process, and I'm sure the journals
9929  were never aware that there might be a difference.
9930  So, go forth and publish!
9931 \end_layout
9932
9933 \begin_layout Section
9934 AMS \SpecialChar LaTeX
9935
9936 \end_layout
9937
9938 \begin_layout Standard
9939 by 
9940 \noun on
9941 David Johnson
9942 \noun default
9943 ; updated by 
9944 \noun on
9945 Richard Heck
9946 \end_layout
9947
9948 \begin_layout Standard
9949 \begin_inset VSpace bigskip
9950 \end_inset
9951
9952
9953 \end_layout
9954
9955 \begin_layout Standard
9956 \noindent
9957 The AMS \SpecialChar LaTeX
9958  layouts are set up to conform to suggested styles for mathematical
9959  papers to be submitted to American Mathematical Society publications.
9960  The layouts are not tailored to a specific journal, but easily can be.
9961  You should refer to the AMS documentation for specific instructions for
9962  each journal (usually it will entail only changing a single line in the
9963  \SpecialChar TeX
9964  output).
9965  That documentation is available on the Web at 
9966 \begin_inset Flex URL
9967 status open
9968
9969 \begin_layout Plain Layout
9970
9971 http://www.ams.org
9972 \end_layout
9973
9974 \end_inset
9975
9976  or by ftp at 
9977 \begin_inset Flex URL
9978 status open
9979
9980 \begin_layout Plain Layout
9981
9982 ftp://ftp.ams.org/pub/tex/amslatex/
9983 \end_layout
9984
9985 \end_inset
9986
9987 .
9988  These layouts are appropriate, and useful, for any mathematical writing.
9989  
9990 \end_layout
9991
9992 \begin_layout Standard
9993 There are two basic AMS \SpecialChar LaTeX
9994  layouts: 
9995 \end_layout
9996
9997 \begin_layout Itemize
9998 amsart: The standard AMS article format.
9999 \end_layout
10000
10001 \begin_layout Itemize
10002 amsbook: the standard AMS book (really, monograph) format.
10003  
10004 \end_layout
10005
10006 \begin_layout Standard
10007 The layouts themselves contain only the minimum necessary to use the AMS
10008  classes.
10009  They do not, in particular, contain any of the `theorem' environments used
10010  for setting theorems, lemmas, and the like.
10011  These are contained, instead, in the 
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 Theorems (AMS)
10017 \end_layout
10018
10019 \end_inset
10020
10021  module, which is loaded by default when you select one of the AMS classes.
10022  (It can also be used with other classes and can be removed, if you would
10023  rather use something else.) Less commonly used environments are in the 
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028 Theorems (AMS-Extended)
10029 \end_layout
10030
10031 \end_inset
10032
10033  module, which must be loaded manually.
10034 \end_layout
10035
10036 \begin_layout Standard
10037 By default, theorems and the like are numbered consecutively throughout
10038  the document, but this may be modified by loading the module 
10039 \begin_inset Flex Code
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 Theorems (Order by Section)
10044 \end_layout
10045
10046 \end_inset
10047
10048  or, if you are using 
10049 \begin_inset Flex Code
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 book (AMS)
10054 \end_layout
10055
10056 \end_inset
10057
10058 , the module 
10059 \begin_inset Flex Code
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 Theorems (Order by Chapter)
10064 \end_layout
10065
10066 \end_inset
10067
10068 .
10069  These will number the results as 
10070 \begin_inset Formula $n.m$
10071 \end_inset
10072
10073 , where the first number refers to the section (or chapter) and the second
10074  refers to the total number of results so far in that section (or chapter).
10075  Many environments are also available unnumbered.
10076  These are indicated by an asterisk at the end.
10077  If you happen to want 
10078 \emph on
10079 only
10080 \emph default
10081  unnumbered results, the module 
10082 \begin_inset Flex Code
10083 status collapsed
10084
10085 \begin_layout Plain Layout
10086 Theorems (Starred)
10087 \end_layout
10088
10089 \end_inset
10090
10091  provides that option.
10092 \end_layout
10093
10094 \begin_layout Standard
10095 Note that these modules do not 
10096 \emph on
10097 have
10098 \emph default
10099  to be used with the AMS classes.
10100  It is perfectly possible to use the 
10101 \begin_inset Flex Code
10102 status collapsed
10103
10104 \begin_layout Plain Layout
10105 Theorems (AMS)
10106 \end_layout
10107
10108 \end_inset
10109
10110  module, and the others mentioned, with other classes, such as 
10111 \begin_inset Flex Code
10112 status collapsed
10113
10114 \begin_layout Plain Layout
10115 article
10116 \end_layout
10117
10118 \end_inset
10119
10120
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 report
10126 \end_layout
10127
10128 \end_inset
10129
10130
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135 book (KOMA-script)
10136 \end_layout
10137
10138 \end_inset
10139
10140 , and so forth.
10141 \end_layout
10142
10143 \begin_layout Subsection
10144 What these layouts provide
10145 \end_layout
10146
10147 \begin_layout Standard
10148 There is a long list of included environments provided by these layouts.
10149  In AMS-\SpecialChar LaTeX
10150 , there is, in fact, an opportunity to define an unlimited variety
10151  of `theorem' environments.
10152  However, the AMS recommends the environments that are available in \SpecialChar LyX
10153 .
10154  
10155 \end_layout
10156
10157 \begin_layout Standard
10158 The following environments—as well as the standard environments, such as
10159  
10160 \begin_inset Flex Noun
10161 status collapsed
10162
10163 \begin_layout Plain Layout
10164 section
10165 \end_layout
10166
10167 \end_inset
10168
10169
10170 \begin_inset Flex Noun
10171 status collapsed
10172
10173 \begin_layout Plain Layout
10174 bibliography
10175 \end_layout
10176
10177 \end_inset
10178
10179
10180 \begin_inset Flex Noun
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 title
10185 \end_layout
10186
10187 \end_inset
10188
10189
10190 \begin_inset Flex Noun
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 author
10195 \end_layout
10196
10197 \end_inset
10198
10199 , and 
10200 \begin_inset Flex Noun
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 date
10205 \end_layout
10206
10207 \end_inset
10208
10209 —are provided by 
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 article (AMS)
10215 \end_layout
10216
10217 \end_inset
10218
10219  and 
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 book (AMS)
10225 \end_layout
10226
10227 \end_inset
10228
10229 :
10230 \end_layout
10231
10232 \begin_layout Description
10233 Address This should be the author's permanent address.
10234 \end_layout
10235
10236 \begin_layout Description
10237 Current
10238 \begin_inset space ~
10239 \end_inset
10240
10241 Address This should be the author's temporary address at the time of submission,
10242  if different from the Address.
10243 \end_layout
10244
10245 \begin_layout Description
10246 Email Author's e-mail address
10247 \end_layout
10248
10249 \begin_layout Description
10250 URL Author's Web address, if desired.
10251 \end_layout
10252
10253 \begin_layout Description
10254 Keywords Key words or phrases used to identify specific topics discussed
10255  in the paper.
10256 \end_layout
10257
10258 \begin_layout Description
10259 Subjectclass These refer to the AMS Subject Classifications, published and
10260  described in 
10261 \emph on
10262 Mathematical Reviews
10263 \emph default
10264 .
10265  These are also available online at the AMS cites listed above.
10266 \end_layout
10267
10268 \begin_layout Description
10269 Thanks
10270 \end_layout
10271
10272 \begin_layout Description
10273 Dedicatory
10274 \end_layout
10275
10276 \begin_layout Description
10277 Translator
10278 \end_layout
10279
10280 \begin_layout Standard
10281 The following environments are provided by both the 
10282 \begin_inset Flex Code
10283 status collapsed
10284
10285 \begin_layout Plain Layout
10286 Theorems
10287 \end_layout
10288
10289 \end_inset
10290
10291  and 
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 Theorems (AMS)
10297 \end_layout
10298
10299 \end_inset
10300
10301  modules, in the latter case in both starred (unnumbered) and unstarred
10302  (numbered) versions.
10303  These same environments are provided only in the starred versions by the
10304  
10305 \begin_inset Flex Code
10306 status collapsed
10307
10308 \begin_layout Plain Layout
10309 Theorems (Starred)
10310 \end_layout
10311
10312 \end_inset
10313
10314  module:
10315 \end_layout
10316
10317 \begin_layout Theorem
10318 This is typically used for the statements of major results.
10319  
10320 \end_layout
10321
10322 \begin_layout Corollary*
10323 This is used for statements which follow fairly directly from previous statement
10324 s.
10325  Again, these can be major results.
10326  
10327 \end_layout
10328
10329 \begin_layout Lemma
10330 These are smaller results needed to prove other statements.
10331 \end_layout
10332
10333 \begin_layout Proposition
10334 These are less major results which (hopefully) add to the general theory
10335  being discussed.
10336 \end_layout
10337
10338 \begin_layout Conjecture
10339 These are statements provided without justification, which the author does
10340  not know how to prove, but which seem to be true (to the author, at least).
10341 \end_layout
10342
10343 \begin_layout Definition*
10344 Guess what this is for.
10345  The font is different for this environment than for the previous ones.
10346  
10347 \end_layout
10348
10349 \begin_layout Example*
10350 Used for examples illustrating proven results.
10351 \end_layout
10352
10353 \begin_layout Problem
10354 It's not really known what this is for.
10355  You should figure it out.
10356 \end_layout
10357
10358 \begin_layout Exercise*
10359 Write a description for this one.
10360 \end_layout
10361
10362 \begin_layout Remark
10363 This environment is also a type of theorem, usually a lesser sort of observation.
10364 \end_layout
10365
10366 \begin_layout Claim*
10367 Often used in the course of giving a proof of a larger result.
10368 \end_layout
10369
10370 \begin_layout Case
10371 Generally, these are used to break up long arguments, using specific instances
10372  of some condition.
10373  
10374 \end_layout
10375
10376 \begin_layout Case
10377 The numbering scheme for cases is on its own, not together with other numbered
10378  statements.
10379  
10380 \end_layout
10381
10382 \begin_layout Proof
10383 At the end of this environment, a QED symbol (usually a square, but it can
10384  vary with different styles) is placed.
10385  If you want to have other environments within this one—for example, Case
10386  environments—and have the QED symbol appear only after them, then the other
10387  environments need to be nested within the proof environment.
10388  See the section 
10389 \emph on
10390 Nesting Environments
10391 \emph default
10392  of the 
10393 \emph on
10394 User's Guide
10395 \emph default
10396  for information on nesting.
10397 \end_layout
10398
10399 \begin_layout Standard
10400 And these environments are provided by 
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 Theorems (AMS-Extended)
10406 \end_layout
10407
10408 \end_inset
10409
10410 :
10411 \end_layout
10412
10413 \begin_layout Criterion*
10414 A required condition.
10415 \end_layout
10416
10417 \begin_layout Algorithm*
10418 A general procedure to be used.
10419 \end_layout
10420
10421 \begin_layout Axiom*
10422 This is a property or statement taken as true within the system being discussed.
10423 \end_layout
10424
10425 \begin_layout Condition*
10426 Sometimes used to state a condition assumed within the present context of
10427  discussion.
10428 \end_layout
10429
10430 \begin_layout Note*
10431 Similar to a Remark.
10432 \end_layout
10433
10434 \begin_layout Notation*
10435 Used for the explanation of, yes, notation.
10436 \end_layout
10437
10438 \begin_layout Summary
10439 Do we really need to tell you? 
10440 \end_layout
10441
10442 \begin_layout Acknowledgement*
10443 Acknowledgement.
10444 \end_layout
10445
10446 \begin_layout Conclusion*
10447 Sometimes used at the end of a long train of argument.
10448 \end_layout
10449
10450 \begin_layout Fact
10451 Used in a way similar to Proposition, though perhaps lower on the scale.
10452 \end_layout
10453
10454 \begin_layout Standard
10455 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10456  and AMS fonts
10457  packages.
10458  They need to be available on your system in order to use these environments.
10459 \end_layout
10460
10461 \begin_layout Section
10462 AGU journals (
10463 \family sans
10464 aguplus
10465 \family default
10466 )
10467 \end_layout
10468
10469 \begin_layout Standard
10470 by 
10471 \shape smallcaps
10472 Martin Vermeer
10473 \end_layout
10474
10475 \begin_layout Subsection
10476 Description
10477 \end_layout
10478
10479 \begin_layout Standard
10480 These are the layout files for some of the journals of the American Geophysical
10481  Society.
10482  It is assumed that you have both the AGU's own class files and AGUplus
10483  installed (everything to be found at
10484 \begin_inset Flex URL
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488
10489 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10490 \end_layout
10491
10492 \end_inset
10493
10494 ).
10495 \end_layout
10496
10497 \begin_layout Subsection
10498 New styles
10499 \end_layout
10500
10501 \begin_layout Standard
10502 Redefined are 
10503 \family sans
10504 Paragraph
10505 \family default
10506
10507 \family sans
10508 Paragraph*
10509 \family default
10510 .
10511  They are still called this in the \SpecialChar LyX
10512  GUI, though their \SpecialChar LaTeX
10513  equivalents in the
10514  AGU classes are 
10515 \family sans
10516 Subsubsubsection
10517 \family default
10518  and 
10519 \family sans
10520 Subsubsubsection*
10521 \family default
10522 .
10523 \end_layout
10524
10525 \begin_layout Standard
10526 Newly defined styles are 
10527 \family sans
10528 Left_Header
10529 \family default
10530
10531 \family sans
10532 Right_Header
10533 \family default
10534
10535 \family sans
10536 Received
10537 \family default
10538
10539 \family sans
10540 Revised
10541 \family default
10542
10543 \family sans
10544 Accepted
10545 \family default
10546
10547 \family sans
10548 CCC
10549 \family default
10550
10551 \family sans
10552 PaperId
10553 \family default
10554
10555 \family sans
10556 AuthorAddr
10557 \family default
10558
10559 \family sans
10560 SlugComment
10561 \family default
10562 .
10563  These are mostly manuscript attributes and defined in the AGU class documentati
10564 on.
10565 \end_layout
10566
10567 \begin_layout Standard
10568 I suspect this is still badly incomplete.
10569 \end_layout
10570
10571 \begin_layout Subsection
10572 New floats
10573 \end_layout
10574
10575 \begin_layout Standard
10576
10577 \family sans
10578 Planotable
10579 \family default
10580  and 
10581 \family sans
10582 Plate
10583 \family default
10584 .
10585  We also have a new 
10586 \family sans
10587 Table_Caption
10588 \family default
10589 .
10590 \end_layout
10591
10592 \begin_layout Subsection
10593 Supported journals
10594 \end_layout
10595
10596 \begin_layout Itemize
10597
10598 \emph on
10599 Journal of Geophysical Research
10600 \emph default
10601
10602 \family typewriter
10603 jgrga.layout
10604 \family default
10605  — Martin Vermeer
10606 \end_layout
10607
10608 \begin_layout Standard
10609 Add your own, it isn't so hard! Look at the 
10610 \family typewriter
10611 jgrga.layout
10612 \family default
10613  example and 
10614 \family typewriter
10615 aguplus.inc
10616 \family default
10617 .
10618 \end_layout
10619
10620 \begin_layout Subsection
10621 Bugs and things to remember
10622 \end_layout
10623
10624 \begin_layout Standard
10625 In order to use the new layouts, you must remember to do the following for
10626  a new document:
10627 \end_layout
10628
10629 \begin_layout Enumerate
10630
10631 \emph on
10632 Turn off babel
10633 \emph default
10634 .
10635  This can be done in the 
10636 \family sans
10637 Layout\SpecialChar menuseparator
10638 Document
10639 \family default
10640  or 
10641 \family sans
10642 Document\SpecialChar menuseparator
10643 Settings
10644 \family default
10645  menu item.
10646  (AGU articles are always in English, right? So 
10647 \emph on
10648 don't
10649 \emph default
10650  choose a language.)
10651 \end_layout
10652
10653 \begin_layout Enumerate
10654 Enter 
10655 \family typewriter
10656 jgrga
10657 \family default
10658  into the document's 
10659 \family sans
10660 Extra Options
10661 \family default
10662  field.
10663  (Yes, this is a bug.)
10664 \end_layout
10665
10666 \begin_layout Enumerate
10667 Make sure you use the 
10668 \family typewriter
10669 agu.bst
10670 \family default
10671  bibliography style, by entering 
10672 \family sans
10673 agu
10674 \family default
10675  into the second field of the Bib\SpecialChar TeX
10676  inset.
10677  None of the standard styles will do.
10678 \end_layout
10679
10680 \begin_layout Section
10681 Broadway
10682 \end_layout
10683
10684 \begin_layout Standard
10685 by 
10686 \shape smallcaps
10687 Garst Reese
10688 \end_layout
10689
10690 \begin_layout Subsection
10691 Introduction
10692 \end_layout
10693
10694 \begin_layout Standard
10695 Broadway is for writing plays.
10696  The format is more decorative than Hollywood, and much less standardized.
10697  This format should be suitable for workshops.
10698 \end_layout
10699
10700 \begin_layout Subsection
10701 Special problems
10702 \end_layout
10703
10704 \begin_layout Standard
10705 The same as in Hollywood.
10706 \end_layout
10707
10708 \begin_layout Subsection
10709 Special features
10710 \end_layout
10711
10712 \begin_layout Standard
10713 Insert the 
10714 \family sans
10715 Speaker
10716 \family default
10717  names as labels then cross-reference the label to insert the name.
10718  The cross-reference dialog will show the current cast of characters.
10719 \end_layout
10720
10721 \begin_layout Subsection
10722 Paper size and Margins
10723 \end_layout
10724
10725 \begin_layout Standard
10726 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10727 \end_layout
10728
10729 \begin_layout Subsection
10730 Environments
10731 \end_layout
10732
10733 \begin_layout Standard
10734 The following environments are available.
10735  You can use broadway.bind to get the bind keys shown at the right.
10736 \end_layout
10737
10738 \begin_layout Itemize
10739
10740 \family sans
10741 Standard
10742 \begin_inset Newline newline
10743 \end_inset
10744
10745
10746 \family default
10747 You should not have to use this, but it is here for anything that does not
10748  fit otherwise.
10749 \end_layout
10750
10751 \begin_layout Itemize
10752
10753 \family sans
10754 Narrative
10755 \begin_inset space \hfill{}
10756 \end_inset
10757
10758 M-z n
10759 \begin_inset Newline newline
10760 \end_inset
10761
10762
10763 \family default
10764 Used to describe stage setting and the action.
10765  First use of speaker names in all CAPs.
10766 \end_layout
10767
10768 \begin_layout Itemize
10769
10770 \family sans
10771 ACT
10772 \begin_inset space \hfill{}
10773 \end_inset
10774
10775 M-z a
10776 \begin_inset Newline newline
10777 \end_inset
10778
10779
10780 \family default
10781 Automatically numbered.
10782  On screen it will be arabic, but will print as Roman.
10783 \end_layout
10784
10785 \begin_layout Itemize
10786
10787 \family sans
10788 ACT*
10789 \begin_inset space \hfill{}
10790 \end_inset
10791
10792 M-z S at
10793 \begin_inset Newline newline
10794 \end_inset
10795
10796
10797 \family default
10798 Subtitle for 
10799 \family sans
10800 ACT.
10801
10802 \family default
10803  It is just centered text.
10804 \end_layout
10805
10806 \begin_layout Itemize
10807
10808 \family sans
10809 SCENE
10810 \begin_inset space \hfill{}
10811 \end_inset
10812
10813 M-z S-S
10814 \begin_inset Newline newline
10815 \end_inset
10816
10817
10818 \family default
10819 Not automatically numbered.
10820  You supply the number.
10821  This is because I couldn't figure out how.
10822 \end_layout
10823
10824 \begin_layout Itemize
10825
10826 \family sans
10827 AT_RISE:
10828 \begin_inset space \hfill{}
10829 \end_inset
10830
10831 M-z S-R
10832 \begin_inset Newline newline
10833 \end_inset
10834
10835
10836 \family default
10837 A special case of Narrative to describe the setting and action as the curtain
10838  rises.
10839 \end_layout
10840
10841 \begin_layout Itemize
10842
10843 \family sans
10844 Speaker
10845 \begin_inset space \hfill{}
10846 \end_inset
10847
10848 M-z s
10849 \begin_inset Newline newline
10850 \end_inset
10851
10852
10853 \family default
10854 The speaker's (actor's) title, centered in all CAPS.
10855 \end_layout
10856
10857 \begin_layout Itemize
10858
10859 \family sans
10860 Parenthetical
10861 \begin_inset space \hfill{}
10862 \end_inset
10863
10864 M-z p
10865 \begin_inset Newline newline
10866 \end_inset
10867
10868
10869 \family default
10870 Instructions to the speaker.
10871  The parentheses are automatically inserted.
10872  The ( will appear on screen, but both will be in the printed play.
10873  This environment is only used within 
10874 \family sans
10875 Dialogue
10876 \family default
10877 .
10878 \end_layout
10879
10880 \begin_layout Itemize
10881
10882 \family sans
10883 Dialogue
10884 \begin_inset space \hfill{}
10885 \end_inset
10886
10887 M-z d
10888 \begin_inset Newline newline
10889 \end_inset
10890
10891
10892 \family default
10893 What the Speaker says.
10894 \end_layout
10895
10896 \begin_layout Itemize
10897
10898 \family sans
10899 CURTAIN
10900 \begin_inset space \hfill{}
10901 \end_inset
10902
10903 M-z S-C
10904 \begin_inset Newline newline
10905 \end_inset
10906
10907
10908 \family default
10909 The curtain comes down.
10910 \end_layout
10911
10912 \begin_layout Itemize
10913
10914 \family sans
10915 Title
10916 \begin_inset space \hfill{}
10917 \end_inset
10918
10919 M-z S-T
10920 \end_layout
10921
10922 \begin_layout Itemize
10923
10924 \family sans
10925 Author
10926 \begin_inset space \hfill{}
10927 \end_inset
10928
10929 M-z S-A
10930 \end_layout
10931
10932 \begin_layout Itemize
10933
10934 \family sans
10935 Right_Address
10936 \begin_inset space \hfill{}
10937 \end_inset
10938
10939 M-z r
10940 \end_layout
10941
10942 \begin_layout Standard
10943 Hello there.
10944 \end_layout
10945
10946 \begin_layout Section
10947 Dinbrief
10948 \end_layout
10949
10950 \begin_layout Standard
10951 The document class 
10952 \family sans
10953 dinbrief
10954 \family default
10955  can be used to type letters according to German conventions.
10956  A template file is included in 
10957 \family typewriter
10958 .../lyx/share/templates
10959 \family default
10960  for you to use as a starting point.
10961 \end_layout
10962
10963 \begin_layout Section
10964 EGS journals (
10965 \family sans
10966 egs
10967 \family default
10968 )
10969 \end_layout
10970
10971 \begin_layout Standard
10972 by 
10973 \shape smallcaps
10974 Martin Vermeer
10975 \end_layout
10976
10977 \begin_layout Subsection
10978 Description
10979 \end_layout
10980
10981 \begin_layout Standard
10982 This is the layout file for the European Geophysical Society journals.
10983  The needed 
10984 \family typewriter
10985 egs.cls
10986 \family default
10987  can be downloaded from the web site of the EGS under 
10988 \begin_inset Flex URL
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992
10993 www.copernicus.org
10994 \end_layout
10995
10996 \end_inset
10997
10998 .
10999 \end_layout
11000
11001 \begin_layout Subsection
11002 New styles
11003 \end_layout
11004
11005 \begin_layout Standard
11006
11007 \family sans
11008 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11009  Accepted
11010 \family default
11011
11012 \family sans
11013 Offsets
11014 \family default
11015 .
11016  The current layout file is unfortunately very unmodular and would benefit
11017  from using the various 
11018 \family typewriter
11019 std*.inc
11020 \family default
11021  file inclusions.
11022 \end_layout
11023
11024 \begin_layout Section
11025 Elsevier Journals
11026 \end_layout
11027
11028 \begin_layout Standard
11029 See the \SpecialChar LyX
11030  template file 
11031 \family typewriter
11032 elsarticle.lyx
11033 \family default
11034 .
11035  It contains all infos you need.
11036 \end_layout
11037
11038 \begin_layout Section
11039 Foils [aka 
11040 \family sans
11041 Foil\SpecialChar TeX
11042
11043 \family default
11044 ]
11045 \begin_inset CommandInset label
11046 LatexCommand label
11047 name "sec:foiltex"
11048
11049 \end_inset
11050
11051
11052 \end_layout
11053
11054 \begin_layout Standard
11055 by 
11056 \noun on
11057 Allan Rae
11058 \end_layout
11059
11060 \begin_layout Subsection
11061 Introduction
11062 \end_layout
11063
11064 \begin_layout Standard
11065 This section describes how to use \SpecialChar LyX
11066  to make slides for overhead projectors.
11067  There are two document classes that can do this: the default slides class
11068  and the 
11069 \family sans
11070 Foil\SpecialChar TeX
11071
11072 \family default
11073  slides class.
11074  This section documents the latter.
11075 \end_layout
11076
11077 \begin_layout Standard
11078 I'm going to say this again, nice and clear, so that there's no misunderstanding
11079 :
11080 \end_layout
11081
11082 \begin_layout Standard
11083 \begin_inset VSpace bigskip
11084 \end_inset
11085
11086
11087 \end_layout
11088
11089 \begin_layout Standard
11090 \align center
11091
11092 \size large
11093 This section documents the class 
11094 \begin_inset Quotes eld
11095 \end_inset
11096
11097
11098 \family sans
11099 FoilTeX
11100 \family default
11101
11102 \begin_inset Quotes erd
11103 \end_inset
11104
11105  
11106 \emph on
11107 only.
11108 \end_layout
11109
11110 \begin_layout Standard
11111 \begin_inset VSpace bigskip
11112 \end_inset
11113
11114
11115 \end_layout
11116
11117 \begin_layout Standard
11118 If you're looking for the documentation for 
11119 \begin_inset Quotes eld
11120 \end_inset
11121
11122
11123 \family sans
11124 slides (default)
11125 \family default
11126
11127 \begin_inset Quotes erd
11128 \end_inset
11129
11130 , check out section
11131 \begin_inset space ~
11132 \end_inset
11133
11134
11135 \begin_inset CommandInset ref
11136 LatexCommand ref
11137 reference "sec:slitex"
11138
11139 \end_inset
11140
11141 .
11142  If your machine doesn't have the 
11143 \family sans
11144 foils
11145 \family default
11146  class 
11147 \family sans
11148 FoilTeX
11149 \family default
11150  installed, you'll probably have to use the default 
11151 \family sans
11152 slides
11153 \family default
11154  class, which isn't quite as good as 
11155 \family sans
11156 foils.
11157 \end_layout
11158
11159 \begin_layout Standard
11160 The 
11161 \family sans
11162 foils
11163 \family default
11164  class is designed for use with version
11165 \begin_inset space ~
11166 \end_inset
11167
11168 2.1 of the 
11169 \family sans
11170 foils.cls
11171 \family default
11172  \SpecialChar LaTeX
11173  class file which is now an integral part of \SpecialChar LaTeX2e
11174 .
11175 \end_layout
11176
11177 \begin_layout Subsection
11178 Getting Started
11179 \end_layout
11180
11181 \begin_layout Standard
11182 Obviously, to use this document class, you need to select 
11183 \family sans
11184 FoilTeX
11185 \family default
11186  from the 
11187 \family sans
11188 Class
11189 \family default
11190  entry in the 
11191 \family sans
11192 Document
11193 \begin_inset space ~
11194 \end_inset
11195
11196 Layout
11197 \family default
11198  dialog.
11199  There are some settings in the 
11200 \family sans
11201 Document
11202 \begin_inset space ~
11203 \end_inset
11204
11205 Layout
11206 \family default
11207  dialog that you should know about that are specific to this class:
11208 \end_layout
11209
11210 \begin_layout Itemize
11211 Don't change the options 
11212 \family sans
11213 Sides
11214 \family default
11215  and 
11216 \family sans
11217 Columns
11218 \family default
11219  on the 
11220 \family sans
11221 Document
11222 \begin_inset space ~
11223 \end_inset
11224
11225 Layout
11226 \family default
11227  dialog.
11228  They're ignored by the 
11229 \family sans
11230 foils
11231 \family default
11232  class.
11233 \end_layout
11234
11235 \begin_layout Itemize
11236 The default font size is 20
11237 \begin_inset space \thinspace{}
11238 \end_inset
11239
11240 pt with the other options being 17
11241 \begin_inset space \thinspace{}
11242 \end_inset
11243
11244 pt, 25
11245 \begin_inset space \thinspace{}
11246 \end_inset
11247
11248 pt and 30
11249 \begin_inset space \thinspace{}
11250 \end_inset
11251
11252 pt.
11253 \end_layout
11254
11255 \begin_layout Itemize
11256 The default font is 
11257 \family sans
11258 sans
11259 \family default
11260  
11261 \family sans
11262 serif
11263 \family default
11264  but all math equations are still typeset in the usual roman font.
11265 \end_layout
11266
11267 \begin_layout Itemize
11268
11269 \family sans
11270 Foil\SpecialChar TeX
11271
11272 \family default
11273  supports A4 and Letter paper sizes as well as a special size for working
11274  with 35
11275 \begin_inset space \thinspace{}
11276 \end_inset
11277
11278 mm slides.
11279  It doesn't support A5, B5, legal or executive paper sizes.
11280 \end_layout
11281
11282 \begin_layout Itemize
11283 Don't bother changing the 
11284 \family sans
11285 Float Placement
11286 \family default
11287  settings because they are ignored anyway.
11288  All floats appear where they are defined in the text.
11289 \end_layout
11290
11291 \begin_layout Itemize
11292 The 
11293 \family sans
11294 Pagestyle
11295 \family default
11296  setting behaves a bit differently for this class.
11297  
11298 \family sans
11299 Foil\SpecialChar TeX
11300
11301 \family default
11302  provides extensive footer and header capabilities including a user-defined
11303  logo.
11304  See section
11305 \begin_inset space ~
11306 \end_inset
11307
11308
11309 \begin_inset CommandInset ref
11310 LatexCommand ref
11311 reference "sec:foilfoot"
11312
11313 \end_inset
11314
11315  for more details.
11316  The title page is treated differently to all other pages in the document
11317  and is 
11318 \emph on
11319 always
11320 \emph default
11321  unnumbered and 
11322 \emph on
11323 always
11324 \emph default
11325  has the logo centered at the bottom of the page (if one is defined).
11326  The possible page style choices and what they do are as follows:
11327 \end_layout
11328
11329 \begin_deeper
11330 \begin_layout Labeling
11331 \labelwidthstring MMMMMMM
11332
11333 \family sans
11334 \series bold
11335 empty
11336 \family default
11337 \series default
11338  The final output contains no page numbers, or other headers or footers
11339  (except footnotes of course).
11340  
11341 \end_layout
11342
11343 \begin_layout Labeling
11344 \labelwidthstring MMMMMMM
11345
11346 \family sans
11347 \series bold
11348 plain
11349 \family default
11350 \series default
11351  The final output contains page numbers centered at the bottom of the page.
11352  No other headings or footers (other than footnotes).
11353 \end_layout
11354
11355 \begin_layout Labeling
11356 \labelwidthstring MMMMMMM
11357
11358 \series bold
11359 foilheadings
11360 \series default
11361  Page numbers in lower right corner.
11362  Additional headers and footers are also shown.
11363  This is also the default.
11364 \end_layout
11365
11366 \begin_layout Labeling
11367 \labelwidthstring MMMMMMM
11368
11369 \series bold
11370 fancy
11371 \series default
11372  Gives you access to the 
11373 \family sans
11374 fancyheadings
11375 \family default
11376  package although its use with 
11377 \family sans
11378 Foil\SpecialChar TeX
11379
11380 \family default
11381  is discouraged by the writer of the 
11382 \family sans
11383 Foil\SpecialChar TeX
11384
11385 \family default
11386  package because of some potential page layout clashes.
11387 \end_layout
11388
11389 \end_deeper
11390 \begin_layout Subsubsection
11391 Extra Options
11392 \end_layout
11393
11394 \begin_layout Standard
11395 The following options may be used in the extra class options in the 
11396 \family sans
11397 Document\SpecialChar menuseparator
11398 Settings
11399 \family default
11400  dialog.
11401 \end_layout
11402
11403 \begin_layout Labeling
11404 \labelwidthstring MMMMMMx
11405
11406 \series bold
11407 35mmSlide
11408 \series default
11409  This sets up the page layout for 7.33
11410 \begin_inset space \thinspace{}
11411 \end_inset
11412
11413 in by 11
11414 \begin_inset space \thinspace{}
11415 \end_inset
11416
11417 in paper, which is about the same aspect ratio as a 35
11418 \begin_inset space \thinspace{}
11419 \end_inset
11420
11421 mm slide, making it a bit easier to work with this medium.
11422 \end_layout
11423
11424 \begin_layout Labeling
11425 \labelwidthstring MMMMMMx
11426
11427 \series bold
11428 headrule
11429 \series default
11430  Places a rule across the page below the header on every page except the
11431  title page.
11432 \end_layout
11433
11434 \begin_layout Labeling
11435 \labelwidthstring MMMMMMx
11436
11437 \series bold
11438 footrule
11439 \series default
11440  Places a rule across the page above the footer on every page except the
11441  title page.
11442 \end_layout
11443
11444 \begin_layout Labeling
11445 \labelwidthstring MMMMMMx
11446
11447 \series bold
11448 dvips
11449 \series default
11450  This is automatically set each time you create a new 
11451 \family sans
11452 foils
11453 \family default
11454  document.
11455  This option tells 
11456 \family sans
11457 Foil\SpecialChar TeX
11458
11459 \family default
11460  to use the dvips driver to rotate those pages that are set as landscape
11461  foils.
11462 \end_layout
11463
11464 \begin_layout Labeling
11465 \labelwidthstring MMMMMMx
11466
11467 \series bold
11468 landscape
11469 \series default
11470  Simply changes the page dimensions to those of a landscape page but doesn't
11471  do any rotation.
11472  Thus if you use this option you need to use an external program to rotate
11473  each page or feed your paper through your printer as landscape.
11474  Note that this option effectively reverses the roles of the 
11475 \family sans
11476 Foilhead
11477 \family default
11478  and 
11479 \family sans
11480 Rotatefoilhead
11481 \family default
11482  environments (don't worry these are described in the next section).
11483 \end_layout
11484
11485 \begin_layout Labeling
11486 \labelwidthstring MMMMMMx
11487
11488 \series bold
11489 leqno
11490 \series default
11491  Equation numbers on the left.
11492 \end_layout
11493
11494 \begin_layout Labeling
11495 \labelwidthstring MMMMMMx
11496
11497 \series bold
11498 fleqn
11499 \series default
11500  Flush-left equations.
11501 \end_layout
11502
11503 \begin_layout Subsection
11504 Supported Environments
11505 \end_layout
11506
11507 \begin_layout Standard
11508 Most of the environments commonly supported in other classes are also supported
11509  by the 
11510 \family sans
11511 foils
11512 \family default
11513  class.
11514  There are several additional environments provided by 
11515 \family sans
11516 Foil\SpecialChar TeX
11517
11518 \family default
11519  as well as a couple added by \SpecialChar LyX
11520 .
11521  The following environments are shared with other classes:
11522 \end_layout
11523
11524 \begin_layout Standard
11525 \begin_inset Flex Multiple Columns
11526 status open
11527
11528 \begin_layout Itemize
11529
11530 \family sans
11531 Standard
11532 \end_layout
11533
11534 \begin_layout Itemize
11535
11536 \family sans
11537 Itemize
11538 \end_layout
11539
11540 \begin_layout Itemize
11541
11542 \family sans
11543 Enumerate
11544 \end_layout
11545
11546 \begin_layout Itemize
11547
11548 \family sans
11549 Description
11550 \end_layout
11551
11552 \begin_layout Itemize
11553
11554 \family sans
11555 List
11556 \end_layout
11557
11558 \begin_layout Itemize
11559
11560 \family sans
11561 \SpecialChar LyX
11562 -Code
11563 \end_layout
11564
11565 \begin_layout Itemize
11566
11567 \family sans
11568 Verse
11569 \end_layout
11570
11571 \begin_layout Itemize
11572
11573 \family sans
11574 Quote
11575 \end_layout
11576
11577 \begin_layout Itemize
11578
11579 \family sans
11580 Quotation
11581 \end_layout
11582
11583 \begin_layout Itemize
11584
11585 \family sans
11586 Title
11587 \end_layout
11588
11589 \begin_layout Itemize
11590
11591 \family sans
11592 Author
11593 \end_layout
11594
11595 \begin_layout Itemize
11596
11597 \family sans
11598 Date
11599 \end_layout
11600
11601 \begin_layout Itemize
11602
11603 \family sans
11604 Abstract
11605 \end_layout
11606
11607 \begin_layout Itemize
11608
11609 \family sans
11610 Bibliography
11611 \end_layout
11612
11613 \begin_layout Itemize
11614
11615 \family sans
11616 Address
11617 \end_layout
11618
11619 \begin_layout Itemize
11620
11621 \family sans
11622 RightAddress
11623 \end_layout
11624
11625 \begin_layout Itemize
11626
11627 \family sans
11628 Caption
11629 \end_layout
11630
11631 \begin_layout Itemize
11632
11633 \family sans
11634 Comment
11635 \end_layout
11636
11637 \end_inset
11638
11639
11640 \end_layout
11641
11642 \begin_layout Standard
11643 That is, all the major environments apart from the sectioning environments.
11644  Since foils are essentially self-contained sections, with a title and body,
11645  
11646 \family sans
11647 Foil\SpecialChar TeX
11648
11649 \family default
11650  provides specific commands for starting new foils and these are:
11651 \end_layout
11652
11653 \begin_layout Itemize
11654
11655 \family sans
11656 Foilhead
11657 \end_layout
11658
11659 \begin_layout Itemize
11660
11661 \family sans
11662 Rotatefoilhead
11663 \end_layout
11664
11665 \begin_layout Standard
11666 \SpecialChar LyX
11667  also provides slightly modified versions of these two environments called:
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 ShortFoilhead
11674 \end_layout
11675
11676 \begin_layout Itemize
11677
11678 \family sans
11679 ShortRotatefoilhead
11680 \end_layout
11681
11682 \begin_layout Standard
11683 and the differences will be explained in the next section.
11684 \end_layout
11685
11686 \begin_layout Standard
11687 Since foils are often used in presenting ideas or new theorems and such
11688  
11689 \family sans
11690 Foil\SpecialChar TeX
11691
11692 \family default
11693  also provides a comprehensive box of goodies for presenting them:
11694 \end_layout
11695
11696 \begin_layout Standard
11697 \begin_inset Flex Multiple Columns
11698 status open
11699
11700 \begin_layout Itemize
11701
11702 \family sans
11703 Theorem
11704 \end_layout
11705
11706 \begin_layout Itemize
11707
11708 \family sans
11709 Lemma
11710 \end_layout
11711
11712 \begin_layout Itemize
11713
11714 \family sans
11715 Corollary
11716 \end_layout
11717
11718 \begin_layout Itemize
11719
11720 \family sans
11721 Proposition
11722 \end_layout
11723
11724 \begin_layout Itemize
11725
11726 \family sans
11727 Definition
11728 \end_layout
11729
11730 \begin_layout Itemize
11731
11732 \family sans
11733 Proof
11734 \end_layout
11735
11736 \begin_layout Itemize
11737
11738 \family sans
11739 Theorem*
11740 \end_layout
11741
11742 \begin_layout Itemize
11743
11744 \family sans
11745 Lemma*
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 Corollary*
11752 \end_layout
11753
11754 \begin_layout Itemize
11755
11756 \family sans
11757 Proposition*
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 Definition*
11764 \end_layout
11765
11766 \end_inset
11767
11768
11769 \end_layout
11770
11771 \begin_layout Standard
11772 The starred versions are unnumbered while the unstarred versions are numbered.
11773  There are also two list environments added by \SpecialChar LyX
11774  and these are:
11775 \end_layout
11776
11777 \begin_layout Itemize
11778
11779 \family sans
11780 TickList
11781 \end_layout
11782
11783 \begin_layout Itemize
11784
11785 \family sans
11786 CrossList
11787 \end_layout
11788
11789 \begin_layout Standard
11790
11791 \family sans
11792 Foil\SpecialChar TeX
11793
11794 \family default
11795  provides some powerful header and footer capabilities that are best set
11796  in the preamble although they may be set at any point in a document.
11797  If you want to change these settings in your document the best place to
11798  do so is at the very top of a foil, i.
11799 \begin_inset space \thinspace{}
11800 \end_inset
11801
11802 e.
11803 \emph on
11804
11805 \begin_inset space \space{}
11806 \end_inset
11807
11808
11809 \emph default
11810 straight after the foilhead.
11811 \end_layout
11812
11813 \begin_layout Standard
11814 For this purpose, the following command styles are provided [
11815 \shape smallcaps
11816 Martin Vermeer
11817 \shape default
11818 ]:
11819 \end_layout
11820
11821 \begin_layout Standard
11822 \begin_inset Flex Multiple Columns
11823 status open
11824
11825 \begin_layout Itemize
11826
11827 \family sans
11828 My
11829 \begin_inset space ~
11830 \end_inset
11831
11832 Logo
11833 \end_layout
11834
11835 \begin_layout Itemize
11836
11837 \family sans
11838 Restriction
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Right
11845 \begin_inset space ~
11846 \end_inset
11847
11848 Footer
11849 \end_layout
11850
11851 \begin_layout Itemize
11852
11853 \family sans
11854 Right
11855 \begin_inset space ~
11856 \end_inset
11857
11858 Header
11859 \end_layout
11860
11861 \begin_layout Itemize
11862
11863 \family sans
11864 Left
11865 \begin_inset space ~
11866 \end_inset
11867
11868 Header
11869 \end_layout
11870
11871 \begin_deeper
11872 \begin_layout Plain Layout
11873 \begin_inset space ~
11874 \end_inset
11875
11876
11877 \end_layout
11878
11879 \end_deeper
11880 \end_inset
11881
11882
11883 \end_layout
11884
11885 \begin_layout Standard
11886 There are also a few commands provided by 
11887 \family sans
11888 Foil\SpecialChar TeX
11889
11890 \family default
11891  that aren't directly supported by \SpecialChar LyX
11892  but I'll tell you what they do and how
11893  to use them in section
11894 \begin_inset space ~
11895 \end_inset
11896
11897
11898 \begin_inset CommandInset ref
11899 LatexCommand ref
11900 reference "sec:unsuppfoils"
11901
11902 \end_inset
11903
11904 .
11905 \end_layout
11906
11907 \begin_layout Subsection
11908 Building a Set of Foils
11909 \end_layout
11910
11911 \begin_layout Standard
11912 This section will give a simple introduction to using the different environments
11913  to build a set of foils.
11914  If you want to see an example set of foils, take a look at the 
11915 \family typewriter
11916 Foils.lyx
11917 \family default
11918  file you find in \SpecialChar LyX
11919 's 
11920 \family typewriter
11921 examples
11922 \family default
11923  folder.
11924 \end_layout
11925
11926 \begin_layout Subsubsection
11927 Give It a Title Page
11928 \end_layout
11929
11930 \begin_layout Standard
11931 Unlike other classes that provide 
11932 \family sans
11933 Title
11934 \family default
11935
11936 \family sans
11937 Author
11938 \family default
11939
11940 \family sans
11941 Date
11942 \family default
11943  and 
11944 \family sans
11945 Abstract
11946 \family default
11947  environments, 
11948 \family sans
11949 foils
11950 \family default
11951  creates the title on a page of its own.
11952  If you leave out the 
11953 \family sans
11954 Date
11955 \family default
11956  environment \SpecialChar LaTeX
11957  will substitute the current date (every time you regenerate
11958  the output).
11959 \end_layout
11960
11961 \begin_layout Subsubsection
11962 Start a New Foil
11963 \end_layout
11964
11965 \begin_layout Standard
11966 As I mentioned earlier, there are four ways of starting a new foil.
11967  For portrait foils you should use 
11968 \family sans
11969 Foilhead
11970 \family default
11971  or 
11972 \family sans
11973 ShortFoilhead.
11974
11975 \family default
11976  The difference between these two environments is the amount of space between
11977  the title of the foil (the foilhead) and the body of the foil.
11978 \end_layout
11979
11980 \begin_layout Standard
11981 Landscape foils are generated using the 
11982 \family sans
11983 Rotatefoilhead
11984 \family default
11985  and 
11986 \family sans
11987 ShortRotatefoilhead
11988 \family default
11989  environments.
11990  Again the only difference is the spacing between foilhead and body.
11991  Both of the short versions have 0.5
11992 \begin_inset space ~
11993 \end_inset
11994
11995 inches less separation between the foilhead and the body.
11996  
11997 \end_layout
11998
11999 \begin_layout Standard
12000 One problem with the support for landscape foils is the requirement that
12001  you have to use the 
12002 \family typewriter
12003 dvips
12004 \family default
12005  driver to generate the PostScript output otherwise the foils won't be rotated.
12006  It is possible to get landscape foils even if you haven't got the 
12007 \family typewriter
12008 dvips
12009 \family default
12010  driver provided you can feed your foils sideways through your printer ;-)
12011 \end_layout
12012
12013 \begin_layout Subsubsection
12014 Theorems, Lemmas, Proofs and more
12015 \end_layout
12016
12017 \begin_layout Standard
12018 Due to a small bug in \SpecialChar LyX
12019  you can't have two of the same type of these environments
12020  directly following each other.
12021  They must be separated by something.
12022  If you try, you will just be extending the previous environment as if you
12023  had merged the two environments together.
12024  So, how do you get around this problem? The simplest option is to insert
12025  some text between the two environments or add a 
12026 \family sans
12027 \SpecialChar LaTeX
12028
12029 \family default
12030  environment between the two with just a 
12031 \begin_inset Quotes eld
12032 \end_inset
12033
12034
12035 \family typewriter
12036 %
12037 \family default
12038
12039 \begin_inset Quotes erd
12040 \end_inset
12041
12042  in it.
12043  This will force \SpecialChar LyX
12044  to produce two separate environments and hence the correct
12045  \SpecialChar LaTeX
12046  output.
12047  An example is provided in the example file included with the \SpecialChar LyX
12048  distribution.
12049  Remember, this problem only occurs if you are trying to place two of the
12050  same type of theorem-like environments one directly after the other.
12051 \end_layout
12052
12053 \begin_layout Subsubsection
12054 Lists
12055 \end_layout
12056
12057 \begin_layout Standard
12058 You get all the commonly supported list styles found in other classes as
12059  well as two new ones.
12060  I'll only describe the new ones here.
12061  If you want to find out more about the other list environments check out
12062  the 
12063 \emph on
12064 User's Guide.
12065
12066 \emph default
12067  If you intend to use itemized lists you might also want to read about the
12068  
12069 \family sans
12070 Itemize
12071 \begin_inset space ~
12072 \end_inset
12073
12074 Bullet
12075 \begin_inset space ~
12076 \end_inset
12077
12078 Selection
12079 \family default
12080  dialog described above in section
12081 \begin_inset space ~
12082 \end_inset
12083
12084
12085 \begin_inset CommandInset ref
12086 LatexCommand ref
12087 reference "sec:bullet"
12088
12089 \end_inset
12090
12091 .
12092 \end_layout
12093
12094 \begin_layout Standard
12095 The two new list styles, 
12096 \family sans
12097 TickList
12098 \family default
12099  and 
12100 \family sans
12101 CrossList
12102 \family default
12103 , are designed to make it easier for you to create lists of do's and don'ts
12104  or right and wrong by providing dedicated environments that use a tick
12105  or a cross as the label of the list.
12106  These lists are in fact dedicated variants of the 
12107 \family sans
12108 Itemize
12109 \family default
12110  environment.
12111  They do however require that you have the 
12112 \family typewriter
12113 psnfss
12114 \family default
12115  packages installed.
12116 \end_layout
12117
12118 \begin_layout Subsubsection
12119 Figures and Tables
12120 \end_layout
12121
12122 \begin_layout Standard
12123
12124 \family sans
12125 Foil\SpecialChar TeX
12126
12127 \family default
12128  redefines the floating tables and figures so that they appear exactly where
12129  they are in the text rather than pushing them to the top of the page or
12130  to some user specified location.
12131  In fact if you change the float placement settings they are simply ignored.
12132 \end_layout
12133
12134 \begin_layout Subsubsection
12135 Page Headers and Footers
12136 \begin_inset CommandInset label
12137 LatexCommand label
12138 name "sec:foilfoot"
12139
12140 \end_inset
12141
12142
12143 \end_layout
12144
12145 \begin_layout Standard
12146
12147 \family sans
12148 My
12149 \begin_inset space ~
12150 \end_inset
12151
12152 Logo
12153 \family default
12154  and 
12155 \family sans
12156 Restriction
12157 \family default
12158  are two commands used to control the left-footer text string.
12159  The first is meant to allow you to include a graphic logo on your foils
12160  and defaults to 
12161 \begin_inset Quotes eld
12162 \end_inset
12163
12164 -Typeset by 
12165 \family sans
12166 Foil\SpecialChar TeX
12167
12168 \family default
12169 -
12170 \begin_inset Quotes erd
12171 \end_inset
12172
12173 .
12174  While the second is meant to provide a classification for the audience,
12175  
12176 \emph on
12177 e.
12178 \begin_inset space \thinspace{}
12179 \end_inset
12180
12181 g.
12182 \emph default
12183
12184 \begin_inset space \space{}
12185 \end_inset
12186
12187 Confidential.
12188  It is empty by default.
12189 \end_layout
12190
12191 \begin_layout Standard
12192 The remaining page corners can be filled by 
12193 \family sans
12194 Right
12195 \begin_inset space ~
12196 \end_inset
12197
12198 Footer
12199 \family default
12200  (which defaults to page numbers), 
12201 \family sans
12202 Right
12203 \begin_inset space ~
12204 \end_inset
12205
12206 Header
12207 \family default
12208  (top right) and 
12209 \family sans
12210 Left
12211 \begin_inset space ~
12212 \end_inset
12213
12214 Header
12215 \family default
12216  (top left).
12217 \end_layout
12218
12219 \begin_layout Subsection
12220 Unsupported 
12221 \family sans
12222 Foil\SpecialChar TeX
12223
12224 \family default
12225  Goodies
12226 \begin_inset CommandInset label
12227 LatexCommand label
12228 name "sec:unsuppfoils"
12229
12230 \end_inset
12231
12232
12233 \end_layout
12234
12235 \begin_layout Standard
12236 All the commands mentioned below need to be set in a 
12237 \family sans
12238 \SpecialChar LaTeX
12239
12240 \family default
12241  environment or as 
12242 \family sans
12243 \SpecialChar TeX
12244
12245 \family default
12246  within another environment.
12247 \end_layout
12248
12249 \begin_layout Subsubsection
12250 Lengths
12251 \end_layout
12252
12253 \begin_layout Standard
12254 All lengths are adjusted using the 
12255 \family typewriter
12256
12257 \backslash
12258 setlength{
12259 \family default
12260 \emph on
12261 lengthname
12262 \family typewriter
12263 \emph default
12264 }{
12265 \family default
12266 \emph on
12267 newlength
12268 \family typewriter
12269 \emph default
12270 }
12271 \family default
12272  command.
12273  Where 
12274 \emph on
12275 lengthname
12276 \emph default
12277  should be replaced by the name given to the length you want to change and
12278  
12279 \emph on
12280 newlength
12281 \emph default
12282  is the length value.
12283  All lengths should be specified in units of length such as inches (
12284 \family typewriter
12285 in
12286 \family default
12287 ), millimeters (
12288 \family typewriter
12289 mm
12290 \family default
12291 ) or points (
12292 \family typewriter
12293 pt
12294 \family default
12295 ) or relative to some document or font-based length such as 
12296 \family typewriter
12297
12298 \backslash
12299 textwidth
12300 \family default
12301 .
12302  
12303 \end_layout
12304
12305 \begin_layout Standard
12306 It's possible to change the spacing between a foilhead and the body of the
12307  foil by adjusting the length specified by 
12308 \family typewriter
12309
12310 \backslash
12311 foilheadskip
12312 \family default
12313 .
12314  For example, to make 
12315 \emph on
12316 all
12317 \emph default
12318  foilheads 0.5
12319 \begin_inset space \space{}
12320 \end_inset
12321
12322 in closer to their bodies put the following in the preamble: 
12323 \family typewriter
12324
12325 \backslash
12326 setlength{
12327 \backslash
12328 foilheadskip}{-0.5in}
12329 \end_layout
12330
12331 \begin_layout Standard
12332 The spacings around floats can be adjusted by setting these lengths:
12333 \end_layout
12334
12335 \begin_layout Labeling
12336 \labelwidthstring MMMMMMMMMMM
12337
12338 \family typewriter
12339
12340 \backslash
12341 abovefloatskip
12342 \family default
12343  Separation between the text and the top of the float
12344 \end_layout
12345
12346 \begin_layout Labeling
12347 \labelwidthstring MMMMMMMMMMM
12348
12349 \family typewriter
12350
12351 \backslash
12352 abovecaptionskip
12353 \family default
12354  Separation between the float and the caption
12355 \end_layout
12356
12357 \begin_layout Labeling
12358 \labelwidthstring MMMMMMMMMMM
12359
12360 \family typewriter
12361
12362 \backslash
12363 belowcaptionskip
12364 \family default
12365  Separation between the caption and the following text
12366 \end_layout
12367
12368 \begin_layout Labeling
12369 \labelwidthstring MMMMMMMMMMM
12370
12371 \family typewriter
12372
12373 \backslash
12374 captionwidth
12375 \family default
12376  You can make the captions narrower than the surrounding text by adjusting
12377  this length.
12378  Best done relative to 
12379 \family typewriter
12380
12381 \backslash
12382 textwidth
12383 \family default
12384 .
12385 \end_layout
12386
12387 \begin_layout Standard
12388 There are also several title page related lengths that you may find useful
12389  if you have a long title or several authors:
12390 \end_layout
12391
12392 \begin_layout Labeling
12393 \labelwidthstring MMMMMMMMMMM
12394
12395 \family typewriter
12396
12397 \backslash
12398 abovetitleskip
12399 \family default
12400  Separation from headers to 
12401 \family sans
12402 Title
12403 \end_layout
12404
12405 \begin_layout Labeling
12406 \labelwidthstring MMMMMMMMMMM
12407
12408 \family typewriter
12409
12410 \backslash
12411 titleauthorskip
12412 \family default
12413  between 
12414 \family sans
12415 Title
12416 \family default
12417  and 
12418 \family sans
12419 Author
12420 \family default
12421  environments
12422 \end_layout
12423
12424 \begin_layout Labeling
12425 \labelwidthstring MMMMMMMMMMM
12426
12427 \family typewriter
12428
12429 \backslash
12430 authorauthorskip
12431 \family default
12432  between multiple 
12433 \family sans
12434 Author
12435 \family default
12436  lines
12437 \end_layout
12438
12439 \begin_layout Labeling
12440 \labelwidthstring MMMMMMMMMMM
12441
12442 \family typewriter
12443
12444 \backslash
12445 authordateskip
12446 \family default
12447  between the 
12448 \family sans
12449 Author
12450 \family default
12451  and the 
12452 \family sans
12453 Date
12454 \end_layout
12455
12456 \begin_layout Labeling
12457 \labelwidthstring MMMMMMMMMMM
12458
12459 \family typewriter
12460
12461 \backslash
12462 dateabstractskip
12463 \family default
12464  between the 
12465 \family sans
12466 Date
12467 \family default
12468  and the 
12469 \family sans
12470 Abstract
12471 \end_layout
12472
12473 \begin_layout Standard
12474 The last length related command affects all the list environments.
12475  If you place 
12476 \family typewriter
12477
12478 \backslash
12479 zerolistvertdimens
12480 \family default
12481  
12482 \emph on
12483 inside
12484 \emph default
12485  a list environment then all the vertical spacing between the list items
12486  is removed.
12487  Note that this is a command not a length so it doesn't require 
12488 \family typewriter
12489
12490 \backslash
12491 setlength
12492 \family default
12493  like the stuff mentioned above.
12494 \end_layout
12495
12496 \begin_layout Subsubsection
12497 Headers and Footers
12498 \end_layout
12499
12500 \begin_layout Standard
12501 The 
12502 \family typewriter
12503
12504 \backslash
12505 LogoOn
12506 \family default
12507  and 
12508 \family typewriter
12509
12510 \backslash
12511 LogoOff
12512 \family default
12513  commands control whether the logo in the 
12514 \family sans
12515 MyLogo
12516 \family default
12517  definition appear on a given page.
12518  If you put 
12519 \family typewriter
12520
12521 \backslash
12522 LogoOff
12523 \family default
12524  in the preamble then none of the foils will have the logo on them.
12525  If you don't want the logo on a particular page place the 
12526 \family typewriter
12527
12528 \backslash
12529 LogoOff
12530 \family default
12531  directly after the foilhead of that page and the 
12532 \family typewriter
12533
12534 \backslash
12535 LogoOn
12536 \family default
12537  directly after the next foilhead.
12538 \end_layout
12539
12540 \begin_layout Standard
12541 If you decide to use the 
12542 \family sans
12543 fancy
12544 \family default
12545  page style setting in the 
12546 \family sans
12547 Document
12548 \begin_inset space ~
12549 \end_inset
12550
12551 Layout
12552 \family default
12553  dialog you should probably add 
12554 \family typewriter
12555
12556 \backslash
12557 let
12558 \backslash
12559 headwidth
12560 \backslash
12561 textwidth
12562 \family default
12563  to your preamble so headers and footers on landscape pages are correctly
12564  placed when rotated.
12565  This is due to some clashes between the page layouts provided by the 
12566 \family sans
12567 fancyheadings
12568 \family default
12569  package and the 
12570 \family sans
12571 foils
12572 \family default
12573  class.
12574 \end_layout
12575
12576 \begin_layout Section
12577 Hollywood (Hollywood spec scripts)
12578 \end_layout
12579
12580 \begin_layout Standard
12581 by 
12582 \shape smallcaps
12583 Garst Reese
12584 \end_layout
12585
12586 \begin_layout Subsection
12587 Introduction
12588 \end_layout
12589
12590 \begin_layout Standard
12591 Getting the format of a Hollywood script right is a 
12592 \begin_inset Quotes eld
12593 \end_inset
12594
12595 rite of passage.
12596 \begin_inset Quotes erd
12597 \end_inset
12598
12599  It is designed to make the readers focus on content and to be easy and
12600  familiar for the actors to read.
12601  Each page of a script should be one minute of film.
12602  Nothing goes in a script that you cannot see or hear on screen.
12603  The courier 12 pt font should be used throughout.
12604  No italics.
12605 \end_layout
12606
12607 \begin_layout Subsection
12608 Special problems
12609 \end_layout
12610
12611 \begin_layout Standard
12612 Speakers' lines should NEVER break in mid-sentence.
12613  If a speaker's lines continue over a page break, repeat the 
12614 \family sans
12615 Speaker
12616 \family default
12617  title followed by (Cont'd).
12618 \end_layout
12619
12620 \begin_layout Subsection
12621 Special features
12622 \end_layout
12623
12624 \begin_layout Standard
12625 Insert the 
12626 \family sans
12627 Speaker
12628 \family default
12629  names as labels then cross-reference the label to insert the name.
12630  The cross-reference dialog will show the current cast of characters.
12631  You can use this to insert the speaker name in narratives also.
12632 \end_layout
12633
12634 \begin_layout Subsection
12635 Paper size and Margins
12636 \end_layout
12637
12638 \begin_layout Standard
12639 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12640 \end_layout
12641
12642 \begin_layout Subsection
12643 Environments
12644 \end_layout
12645
12646 \begin_layout Standard
12647 The following environments are available.
12648  You can use hollywood.bind to get the bind keys shown at the right.
12649 \end_layout
12650
12651 \begin_layout Itemize
12652
12653 \family sans
12654 Standard
12655 \begin_inset Newline newline
12656 \end_inset
12657
12658
12659 \family default
12660 Used where nothing else works.
12661  Try to avoid it.
12662 \end_layout
12663
12664 \begin_layout Itemize
12665
12666 \family sans
12667 FADE_IN
12668 \family default
12669 :
12670 \begin_inset space \hfill{}
12671 \end_inset
12672
12673
12674 \family sans
12675 M-z S-I
12676 \family default
12677
12678 \begin_inset Newline newline
12679 \end_inset
12680
12681 Usually followed by something like 
12682 \begin_inset Quotes eld
12683 \end_inset
12684
12685 on Sally waking up.
12686 \begin_inset Quotes erd
12687 \end_inset
12688
12689
12690 \end_layout
12691
12692 \begin_layout Itemize
12693
12694 \family sans
12695 INT:
12696 \begin_inset space \hfill{}
12697 \end_inset
12698
12699 M-z i
12700 \begin_inset Newline newline
12701 \end_inset
12702
12703
12704 \family default
12705 Introduces a new INTERIOR camera set-up.
12706  Always followed by DAY or NIGHT, or something similar to define the lighting
12707  required.
12708  Everthing on this line in CAPS.
12709 \end_layout
12710
12711 \begin_layout Itemize
12712
12713 \family sans
12714 EXT:
12715 \begin_inset space \hfill{}
12716 \end_inset
12717
12718 M-z e
12719 \begin_inset Newline newline
12720 \end_inset
12721
12722
12723 \family default
12724 Introduces a new EXTERIOR camera set-up.
12725  Everthing on this line in CAPS.
12726 \end_layout
12727
12728 \begin_layout Itemize
12729
12730 \family sans
12731 Speaker
12732 \begin_inset space \hfill{}
12733 \end_inset
12734
12735 M-z s
12736 \begin_inset Newline newline
12737 \end_inset
12738
12739
12740 \family default
12741 The character speaking.
12742 \end_layout
12743
12744 \begin_layout Itemize
12745
12746 \family sans
12747 Parenthetical
12748 \begin_inset space \hfill{}
12749 \end_inset
12750
12751 M-z p
12752 \begin_inset Newline newline
12753 \end_inset
12754
12755
12756 \family default
12757 Instructions to the speaker.
12758  The () are automatically inserted, but only the ( will show in \SpecialChar LyX
12759 .
12760  Both will be printed.
12761 \end_layout
12762
12763 \begin_layout Itemize
12764
12765 \family sans
12766 Dialogue
12767 \begin_inset space \hfill{}
12768 \end_inset
12769
12770 M-z d
12771 \begin_inset Newline newline
12772 \end_inset
12773
12774
12775 \family default
12776 What the 
12777 \family sans
12778 Speaker
12779 \family default
12780  says.
12781 \end_layout
12782
12783 \begin_layout Itemize
12784
12785 \family sans
12786 Transition
12787 \begin_inset space \hfill{}
12788 \end_inset
12789
12790 M-z t
12791 \begin_inset Newline newline
12792 \end_inset
12793
12794
12795 \family default
12796 Camera movement instruction.
12797  e.
12798 \begin_inset space \thinspace{}
12799 \end_inset
12800
12801 g.
12802 \begin_inset space \space{}
12803 \end_inset
12804
12805 CUT TO:
12806 \end_layout
12807
12808 \begin_layout Itemize
12809
12810 \family sans
12811 FADE OUT:
12812 \begin_inset space \hfill{}
12813 \end_inset
12814
12815 M-z S-I
12816 \end_layout
12817
12818 \begin_layout Itemize
12819
12820 \family sans
12821 Author
12822 \begin_inset space \hfill{}
12823 \end_inset
12824
12825 M-z S-A
12826 \end_layout
12827
12828 \begin_layout Itemize
12829
12830 \family sans
12831 Title
12832 \begin_inset space \hfill{}
12833 \end_inset
12834
12835 M-z S-T
12836 \end_layout
12837
12838 \begin_layout Itemize
12839
12840 \family sans
12841 Right_Address
12842 \begin_inset space \hfill{}
12843 \end_inset
12844
12845 M-z r
12846 \end_layout
12847
12848 \begin_layout Subsection
12849 Script jargon
12850 \end_layout
12851
12852 \begin_layout Itemize
12853 (O.S) — off screen
12854 \end_layout
12855
12856 \begin_layout Itemize
12857 (V.0) — voice over
12858 \end_layout
12859
12860 \begin_layout Itemize
12861 b.
12862 \begin_inset space \thinspace{}
12863 \end_inset
12864
12865 g.
12866  — background
12867 \end_layout
12868
12869 \begin_layout Itemize
12870 C.U.
12871  — close-up
12872 \end_layout
12873
12874 \begin_layout Itemize
12875 PAN — camera movement
12876 \end_layout
12877
12878 \begin_layout Itemize
12879 INSERT — cut to close-up of
12880 \end_layout
12881
12882 \begin_layout Section
12883 ijmpc and ijmpd
12884 \end_layout
12885
12886 \begin_layout Standard
12887 by 
12888 \noun on
12889 Panayotis Papasotiriou
12890 \end_layout
12891
12892 \begin_layout Subsection
12893 Overview
12894 \end_layout
12895
12896 \begin_layout Standard
12897 The ijmpc package is a set of macros that facilitates electronic manuscript
12898  submission to the 
12899 \emph on
12900 International Journal of Modern Physics C
12901 \emph default
12902 .
12903  Similarly, the ijmpd package is for creating manuscripts to be submitted
12904  to the 
12905 \emph on
12906 International Journal of Modern Physics D
12907 \emph default
12908 .
12909  Both journals are published by World Scientific.
12910  The corresponding document classes are named 
12911 \family typewriter
12912 ws-ijmpc.cls
12913 \family default
12914  and 
12915 \family typewriter
12916 ws-ijmpd.cls
12917 \family default
12918 , respectively.
12919  These files, together with instructions for the authors, can be downloaded
12920  from the sites 
12921 \begin_inset Flex URL
12922 status collapsed
12923
12924 \begin_layout Plain Layout
12925
12926 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12927 \end_layout
12928
12929 \end_inset
12930
12931  and 
12932 \begin_inset Flex URL
12933 status collapsed
12934
12935 \begin_layout Plain Layout
12936
12937 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12938 \end_layout
12939
12940 \end_inset
12941
12942 .
12943  Both packages are modified versions of the standard 
12944 \begin_inset Quotes eld
12945 \end_inset
12946
12947 article
12948 \begin_inset Quotes erd
12949 \end_inset
12950
12951  package, and they are almost (but not exactly) identical.
12952  Most of their features are supported by \SpecialChar LyX
12953 .
12954  I have used \SpecialChar LyX
12955  successfully to write articles submitted to both journals
12956  without any problem.
12957 \end_layout
12958
12959 \begin_layout Subsection
12960 Writing a paper
12961 \end_layout
12962
12963 \begin_layout Standard
12964 As usual, the easiest way to write a paper is to start with a template.
12965  Click on 
12966 \family sans
12967 File\SpecialChar menuseparator
12968 New from
12969 \family default
12970  
12971 \family sans
12972 Template
12973 \family default
12974 , then choose the 
12975 \family typewriter
12976 ijmpc.lyx
12977 \family default
12978  or 
12979 \family typewriter
12980 ijmpd.lyx
12981 \family default
12982  template.
12983  This will give an (almost) empty document that includes the most common
12984  fields found in a manuscript.
12985  Simply overwrite the existing text (including the brackets, 
12986 \family typewriter
12987 <>
12988 \family default
12989 ) with your text.
12990  You should keep in mind the following remarks.
12991 \end_layout
12992
12993 \begin_layout Enumerate
12994 \SpecialChar LyX
12995  won't let you change the font size and the page style of the document,
12996  because such modifications are not allowed by both packages.
12997 \end_layout
12998
12999 \begin_layout Enumerate
13000 The language of the document should not be changed.
13001  Before previewing your paper, be sure that the babel package is not used.
13002  To do this, click on 
13003 \family sans
13004 Tools\SpecialChar menuseparator
13005 Preferences
13006 \family default
13007 , select the 
13008 \family sans
13009 Lang Opts
13010 \family default
13011  tab, deselect the 
13012 \family sans
13013 Use babel
13014 \family default
13015  checkbox in the language settings, and click on 
13016 \family sans
13017 Apply
13018 \family default
13019  (or 
13020 \family sans
13021 Save
13022 \family default
13023 , if you wish to make this change permanent).
13024 \end_layout
13025
13026 \begin_layout Enumerate
13027 The 
13028 \begin_inset Quotes eld
13029 \end_inset
13030
13031 Keywords
13032 \begin_inset Quotes erd
13033 \end_inset
13034
13035  style must be used to define keywords.
13036 \end_layout
13037
13038 \begin_layout Enumerate
13039 The ijmpc package provides a style named 
13040 \begin_inset Quotes eld
13041 \end_inset
13042
13043 Classification Codes
13044 \begin_inset Quotes erd
13045 \end_inset
13046
13047 , which can be used to define classification codes, such as PACS numbers.
13048  Note that this facility is not supported by the ijmpd package.
13049 \end_layout
13050
13051 \begin_layout Enumerate
13052 Several new environments are available: 
13053 \begin_inset Quotes eld
13054 \end_inset
13055
13056 Definition
13057 \begin_inset Quotes erd
13058 \end_inset
13059
13060
13061 \begin_inset Quotes eld
13062 \end_inset
13063
13064 Step
13065 \begin_inset Quotes erd
13066 \end_inset
13067
13068
13069 \begin_inset Quotes eld
13070 \end_inset
13071
13072 Example
13073 \begin_inset Quotes erd
13074 \end_inset
13075
13076
13077 \begin_inset Quotes eld
13078 \end_inset
13079
13080 Remark
13081 \begin_inset Quotes erd
13082 \end_inset
13083
13084
13085 \begin_inset Quotes eld
13086 \end_inset
13087
13088 Notation
13089 \begin_inset Quotes erd
13090 \end_inset
13091
13092
13093 \begin_inset Quotes eld
13094 \end_inset
13095
13096 Theorem
13097 \begin_inset Quotes erd
13098 \end_inset
13099
13100
13101 \begin_inset Quotes eld
13102 \end_inset
13103
13104 Proof
13105 \begin_inset Quotes erd
13106 \end_inset
13107
13108
13109 \begin_inset Quotes eld
13110 \end_inset
13111
13112 Corollary
13113 \begin_inset Quotes erd
13114 \end_inset
13115
13116
13117 \begin_inset Quotes eld
13118 \end_inset
13119
13120 Lemma
13121 \begin_inset Quotes erd
13122 \end_inset
13123
13124
13125 \begin_inset Quotes eld
13126 \end_inset
13127
13128 Proposition
13129 \begin_inset Quotes erd
13130 \end_inset
13131
13132
13133 \begin_inset Quotes eld
13134 \end_inset
13135
13136 Prop
13137 \begin_inset Quotes erd
13138 \end_inset
13139
13140
13141 \begin_inset Quotes eld
13142 \end_inset
13143
13144 Question
13145 \begin_inset Quotes erd
13146 \end_inset
13147
13148
13149 \begin_inset Quotes eld
13150 \end_inset
13151
13152 Claim
13153 \begin_inset Quotes erd
13154 \end_inset
13155
13156 , and 
13157 \begin_inset Quotes eld
13158 \end_inset
13159
13160 Conjecture
13161 \begin_inset Quotes erd
13162 \end_inset
13163
13164 .
13165  Their use is more or less obvious.
13166  \SpecialChar LyX
13167  supports all these environments; it will use the proper label, text style,
13168  and numbering scheme for each of them.
13169 \end_layout
13170
13171 \begin_layout Enumerate
13172 Both packages use basic citations; the natbib package should not be used.
13173  In \SpecialChar LyX
13174 , citation references are shown as usual; in the output, citations are
13175  shown as superscripts.
13176  If you want to use a citation as normal text, you should use the 
13177 \family typewriter
13178 refcite
13179 \family default
13180  command, e.
13181 \begin_inset space \thinspace{}
13182 \end_inset
13183
13184 g.
13185 \begin_inset space \space{}
13186 \end_inset
13187
13188
13189 \begin_inset Quotes eld
13190 \end_inset
13191
13192 See Ref.
13193 \begin_inset space \space{}
13194 \end_inset
13195
13196
13197 \family typewriter
13198
13199 \backslash
13200 refcite{key}
13201 \family default
13202
13203 \begin_inset Quotes erd
13204 \end_inset
13205
13206 .
13207 \end_layout
13208
13209 \begin_layout Enumerate
13210 There is no 
13211 \begin_inset Quotes eld
13212 \end_inset
13213
13214 Acknowledgments
13215 \begin_inset Quotes erd
13216 \end_inset
13217
13218  section in both packages.
13219  To put acknowledgments, just use the 
13220 \begin_inset Quotes eld
13221 \end_inset
13222
13223 Section*
13224 \begin_inset Quotes erd
13225 \end_inset
13226
13227  environment.
13228 \end_layout
13229
13230 \begin_layout Enumerate
13231 Appendices may be added to the paper, 
13232 \emph on
13233 after
13234 \emph default
13235  the Acknowledgments and 
13236 \shape italic
13237 before
13238 \shape default
13239  the References.
13240  \SpecialChar LyX
13241  provides a special environment, called 
13242 \begin_inset Quotes eld
13243 \end_inset
13244
13245 Appendices Section
13246 \begin_inset Quotes erd
13247 \end_inset
13248
13249  which marks the beginning of the appendices.
13250  This environment should be left blank; it just sends a \SpecialChar LaTeX
13251  command, but nothing
13252  is really printed.
13253  In \SpecialChar LyX
13254 , the word 
13255 \begin_inset Quotes eld
13256 \end_inset
13257
13258 Appendix
13259 \begin_inset Quotes erd
13260 \end_inset
13261
13262  is printed with blue letters, as a signal that all sections after that
13263  point are appendices.
13264  To write an appendix, use the 
13265 \begin_inset Quotes eld
13266 \end_inset
13267
13268 Appendix
13269 \begin_inset Quotes erd
13270 \end_inset
13271
13272  environment.
13273  \SpecialChar LyX
13274  will number each appendix with capital letters, as required by both journals.
13275  Note that 
13276 \begin_inset Quotes eld
13277 \end_inset
13278
13279 Appendices Section
13280 \begin_inset Quotes erd
13281 \end_inset
13282
13283  
13284 \emph on
13285 must
13286 \emph default
13287  be present before the first appendix; if not, all appendices will be numbered
13288  as normal sections in the output.
13289 \end_layout
13290
13291 \begin_layout Enumerate
13292 The ijmpc and the ijmpd packages use the 
13293 \family typewriter
13294 tbl
13295 \family default
13296  command to implement table captions.
13297  As a result, a table created by \SpecialChar LyX
13298  is printed correctly, but its caption
13299  is ignored.
13300  However, you can use some \SpecialChar TeX
13301  code to overcome this problem, so that captions
13302  are printed as expected.
13303  To do so, create a float table as usual, remove the caption, and replace
13304  it with the \SpecialChar TeX
13305  code 
13306 \family typewriter
13307
13308 \backslash
13309 tbl{
13310 \emph on
13311 your table caption
13312 \emph default
13313 }{
13314 \family default
13315  (sic); you must also the \SpecialChar TeX
13316  code 
13317 \family typewriter
13318 }
13319 \family default
13320  immediately after the tabular material.
13321  Study the example table included in the template files to see how this
13322  trick is implemented.
13323  Alternatively, If you need table captions, you should implement the whole
13324  table float in a 
13325 \family typewriter
13326 .tex
13327 \family default
13328  file, then include this file to the \SpecialChar LyX
13329  document (
13330 \family sans
13331 Insert\SpecialChar menuseparator
13332 File\SpecialChar menuseparator
13333 Child
13334 \begin_inset space ~
13335 \end_inset
13336
13337 Document
13338 \family default
13339 ).
13340  Details on how to create a table float can be found in the files 
13341 \family typewriter
13342 ws-ijmpc.tex
13343 \family default
13344  and 
13345 \family typewriter
13346 ws-ijmpd.tex
13347 \family default
13348 , included in the corresponding packages.
13349 \end_layout
13350
13351 \begin_layout Subsection
13352 Preparing a paper for submission
13353 \end_layout
13354
13355 \begin_layout Standard
13356 Before you submit your paper you must export the \SpecialChar LyX
13357  document as a \SpecialChar LaTeX
13358  file (
13359 \family sans
13360 File\SpecialChar menuseparator
13361 Export\SpecialChar menuseparator
13362 \SpecialChar LaTeX
13363
13364 \family default
13365 )
13366 \begin_inset Foot
13367 status open
13368
13369 \begin_layout Plain Layout
13370 Actually you have the choice between \SpecialChar LaTeX
13371  (plain) and pdflatex.
13372  If you intend to use pdflatex to prepare the paper, you should use the
13373  pdflatex option so that included graphics are converted to PDF format,
13374  ready for use by pdflatex.
13375 \end_layout
13376
13377 \end_inset
13378
13379 , then make the following changes to the resulting 
13380 \family typewriter
13381 .tex
13382 \family default
13383  file.
13384 \end_layout
13385
13386 \begin_layout Enumerate
13387 Remove the comment lines before the 
13388 \family typewriter
13389
13390 \backslash
13391 documentclass
13392 \family default
13393  command.
13394 \end_layout
13395
13396 \begin_layout Enumerate
13397 Remove everything between (and including) the 
13398 \family typewriter
13399
13400 \backslash
13401 makeatletter
13402 \family default
13403  and 
13404 \family typewriter
13405
13406 \backslash
13407 makeatother
13408 \family default
13409  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13410  preamble.
13411 \end_layout
13412
13413 \begin_layout Standard
13414 The modified 
13415 \family typewriter
13416 .tex
13417 \family default
13418  file should be saved and processed through \SpecialChar LaTeX
13419  as many times as necessary.
13420  You may also want to check the resulting 
13421 \family typewriter
13422 .dvi
13423 \family default
13424  document.
13425 \end_layout
13426
13427 \begin_layout Subsection
13428 Use of \SpecialChar TeX
13429  code
13430 \end_layout
13431
13432 \begin_layout Standard
13433 The use of \SpecialChar TeX
13434  code is reduced to two commands, which must be placed at the
13435  top of the document.
13436  If you started writing your paper by using the 
13437 \family typewriter
13438 ijmpc.lyx
13439 \family default
13440  or the 
13441 \family typewriter
13442 ijmpd.lyx
13443 \family default
13444  template, the \SpecialChar TeX
13445  code needed is already in its place; you usually don't need
13446  to delete it.
13447  You may only modify the first \SpecialChar TeX
13448  code to specify the information printed
13449  to the top of odd and even pages (authors' names and short paper's title,
13450  respectively).
13451  This \SpecialChar TeX
13452  code must have the form 
13453 \family typewriter
13454
13455 \backslash
13456 markboth{Authors' Names}{Short Paper's Title}
13457 \family default
13458 .
13459 \end_layout
13460
13461 \begin_layout Section
13462 iopart
13463 \end_layout
13464
13465 \begin_layout Standard
13466 by 
13467 \noun on
13468 Uwe Stöhr
13469 \end_layout
13470
13471 \begin_layout Subsection
13472 Overview
13473 \end_layout
13474
13475 \begin_layout Standard
13476 The iopart package provides a document class to create electronic manuscript
13477  submission to the journals published by the Institute of Physics.
13478  Instructions for the authors how to create a paper using the iopart class
13479  can be downloaded together with the iopart package from the site 
13480 \begin_inset Flex URL
13481 status collapsed
13482
13483 \begin_layout Plain Layout
13484
13485 ftp://ftp.iop.org/pub/journals/latex2e
13486 \end_layout
13487
13488 \end_inset
13489
13490 .
13491 \end_layout
13492
13493 \begin_layout Subsection
13494 Writing a paper
13495 \end_layout
13496
13497 \begin_layout Standard
13498 The easiest way to write a paper is to start with the file 
13499 \emph on
13500 IOP-article.lyx
13501 \emph default
13502  that is available in \SpecialChar LyX
13503 's examples files folder.
13504  Open this file, save it under a new name, and start writing.
13505  The example file explains how to use the special text environments.
13506  Here are the most important advices:
13507 \end_layout
13508
13509 \begin_layout Itemize
13510 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13511  two options 
13512 \family sans
13513 Use AMS math package
13514 \family default
13515  in the document settings under 
13516 \family sans
13517 Math Options
13518 \family default
13519  are not used!
13520 \end_layout
13521
13522 \begin_layout Itemize
13523
13524 \size normal
13525 The title environment defines the kind of your paper.
13526  So use one of the following environments for the title:
13527 \end_layout
13528
13529 \begin_deeper
13530 \begin_layout Itemize
13531
13532 \family sans
13533 \size normal
13534 Title
13535 \family default
13536  for a Paper
13537 \end_layout
13538
13539 \begin_layout Itemize
13540
13541 \family sans
13542 \size normal
13543 Review
13544 \family default
13545  for a Review
13546 \end_layout
13547
13548 \begin_layout Itemize
13549
13550 \family sans
13551 \size normal
13552 Topical
13553 \family default
13554  for a Topical review
13555 \end_layout
13556
13557 \begin_layout Itemize
13558
13559 \family sans
13560 \size normal
13561 Comment
13562 \family default
13563  for a Comment
13564 \end_layout
13565
13566 \begin_layout Itemize
13567
13568 \family sans
13569 \size normal
13570 Note
13571 \family default
13572  for a Note
13573 \end_layout
13574
13575 \begin_layout Itemize
13576
13577 \family sans
13578 \size normal
13579 Paper
13580 \family default
13581  for a Paper (same as Title)
13582 \end_layout
13583
13584 \begin_layout Itemize
13585
13586 \family sans
13587 \size normal
13588 Prelim
13589 \family default
13590  for a Preliminary communication
13591 \end_layout
13592
13593 \begin_layout Itemize
13594
13595 \family sans
13596 \size normal
13597 Rapid
13598 \family default
13599  for a Rapid communication
13600 \end_layout
13601
13602 \begin_layout Itemize
13603
13604 \family sans
13605 \size normal
13606 Letter
13607 \family default
13608  for a Letter to the editor
13609 \end_layout
13610
13611 \end_deeper
13612 \begin_layout Itemize
13613
13614 \size normal
13615 All title environments except of 
13616 \family sans
13617 Letter
13618 \family default
13619  can have an optional short title.
13620 \end_layout
13621
13622 \begin_layout Itemize
13623 There is a general title environment 
13624 \family sans
13625 Article
13626 \family default
13627  which is not directly supported by the \SpecialChar LyX
13628 .
13629  This can be used as \SpecialChar TeX
13630  code when your document doesn't fit into one of the
13631  other title types.
13632 \end_layout
13633
13634 \begin_layout Standard
13635 For more informations like hints for special table and formula formatting,
13636  look at the IOP author guidelines.
13637 \end_layout
13638
13639 \begin_layout Section
13640 Kluwer
13641 \end_layout
13642
13643 \begin_layout Standard
13644 by 
13645 \noun on
13646 Panayotis Papasotiriou
13647 \end_layout
13648
13649 \begin_layout Subsection
13650 Overview
13651 \end_layout
13652
13653 \begin_layout Standard
13654 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13655  that facilitates electronic manuscript submission to the journals they
13656  publish.
13657  Most known of them (at least in my domain of interest) are 
13658 \emph on
13659 Astrophysics and Space Science
13660 \emph default
13661  and 
13662 \emph on
13663 Solar Physics
13664 \emph default
13665 , but there are many others (see a complete list at 
13666 \begin_inset Flex URL
13667 status open
13668
13669 \begin_layout Plain Layout
13670
13671 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13672 \end_layout
13673
13674 \end_inset
13675
13676 ).
13677  The Kluwer package may be downloaded from the site 
13678 \begin_inset Flex URL
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682
13683 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13684 \end_layout
13685
13686 \end_inset
13687
13688 .
13689  A complete user guide is contained in that package (but it can also be
13690  downloaded separately).
13691 \end_layout
13692
13693 \begin_layout Standard
13694 \SpecialChar LyX
13695  supports many features of the package but not everything.
13696  However, the \SpecialChar TeX
13697  code needed is reduced to some 
13698 \begin_inset Quotes eld
13699 \end_inset
13700
13701 peculiar
13702 \begin_inset Quotes erd
13703 \end_inset
13704
13705  commands of the package (see
13706 \begin_inset space ~
13707 \end_inset
13708
13709
13710 \begin_inset CommandInset ref
13711 LatexCommand ref
13712 reference "subsec:kluwer_peculiarities"
13713
13714 \end_inset
13715
13716 ).
13717  I have recently used \SpecialChar LyX
13718  to write an article submitted to the 
13719 \emph on
13720 Astrophysics and Space Science
13721 \emph default
13722  without any problem.
13723 \end_layout
13724
13725 \begin_layout Subsection
13726 Writing a paper
13727 \end_layout
13728
13729 \begin_layout Standard
13730 The easiest way to write a paper is to start with the Kluwer template file.
13731  Click on 
13732 \family sans
13733 File\SpecialChar menuseparator
13734 New from
13735 \family default
13736  
13737 \family sans
13738 Template
13739 \family default
13740 , then choose the 
13741 \family typewriter
13742 kluwer.lyx
13743 \family default
13744  template.
13745  This will give an (almost) empty document that includes the most common
13746  fields found in a manuscript and a short description of their use.
13747  As in most templates, simply overwrite the existing text (including the
13748  brackets, 
13749 \family typewriter
13750 <>
13751 \family default
13752 ) with the correct information.
13753 \end_layout
13754
13755 \begin_layout Subsection
13756 Preparing a paper for submission
13757 \end_layout
13758
13759 \begin_layout Standard
13760 As in the AAS\SpecialChar TeX
13761  package, before you submit your paper to a journal you must
13762  
13763 \begin_inset Quotes eld
13764 \end_inset
13765
13766 postprocess
13767 \begin_inset Quotes erd
13768 \end_inset
13769
13770  it as follows.
13771 \end_layout
13772
13773 \begin_layout Enumerate
13774 Export your paper as a \SpecialChar LaTeX
13775  file.
13776  To do this, click on 
13777 \family sans
13778 File\SpecialChar menuseparator
13779 Export\SpecialChar menuseparator
13780 \SpecialChar LaTeX
13781
13782 \family default
13783 .
13784  
13785 \end_layout
13786
13787 \begin_layout Enumerate
13788 Edit the resulting 
13789 \family typewriter
13790 .tex
13791 \family default
13792  file with a text editor and make the following changes
13793 \end_layout
13794
13795 \begin_deeper
13796 \begin_layout Enumerate
13797 remove the comment lines before the 
13798 \family typewriter
13799
13800 \backslash
13801 documentclass
13802 \family default
13803  command,
13804 \end_layout
13805
13806 \begin_layout Enumerate
13807 remove everything between (and including) the 
13808 \family typewriter
13809
13810 \backslash
13811 makeatletter
13812 \family default
13813  and 
13814 \family typewriter
13815
13816 \backslash
13817 makeatother
13818 \family default
13819  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13820  preamble.
13821 \end_layout
13822
13823 \begin_layout Standard
13824 Save the resulting 
13825 \family typewriter
13826 .tex
13827 \family default
13828  file.
13829 \end_layout
13830
13831 \end_deeper
13832 \begin_layout Enumerate
13833 Run the 
13834 \family typewriter
13835 .tex
13836 \family default
13837  file through \SpecialChar LaTeX
13838  as many times as necessary (usually up to three).
13839 \end_layout
13840
13841 \begin_layout Enumerate
13842 View the resulting 
13843 \family typewriter
13844 .dvi
13845 \family default
13846  document using, e.
13847 \begin_inset space \thinspace{}
13848 \end_inset
13849
13850 g.
13851 \begin_inset space \space{}
13852 \end_inset
13853
13854
13855 \family sans
13856 xdvi
13857 \family default
13858 , and check if everything is OK (it should, if you didn't make any mistake).
13859 \end_layout
13860
13861 \begin_layout Subsection
13862 \begin_inset Quotes eld
13863 \end_inset
13864
13865 Peculiarities
13866 \begin_inset Quotes erd
13867 \end_inset
13868
13869  of the Kluwer package
13870 \begin_inset CommandInset label
13871 LatexCommand label
13872 name "subsec:kluwer_peculiarities"
13873
13874 \end_inset
13875
13876
13877 \end_layout
13878
13879 \begin_layout Standard
13880 The Kluwer package has the following 
13881 \begin_inset Quotes eld
13882 \end_inset
13883
13884 peculiarities
13885 \begin_inset Quotes erd
13886 \end_inset
13887
13888 .
13889 \end_layout
13890
13891 \begin_layout Enumerate
13892 It is possible to write multiple articles in the same \SpecialChar LaTeX
13893  file
13894 \begin_inset Foot
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 I can't imagine any good reason to do this.
13899 \end_layout
13900
13901 \end_inset
13902
13903 .
13904  Each article must be included in the environment 
13905 \begin_inset Quotes eld
13906 \end_inset
13907
13908 article
13909 \begin_inset Quotes erd
13910 \end_inset
13911
13912 .
13913  Unfortunately, this environment cannot be omitted, even if you write just
13914  one article.
13915  Therefore, each article starts with the command 
13916 \family typewriter
13917
13918 \backslash
13919 begin{article}
13920 \family default
13921  and, obviously, ends with the command 
13922 \family typewriter
13923
13924 \backslash
13925 end{article}
13926 \family default
13927 .
13928  Although this can be implemented in \SpecialChar LyX
13929 , I didn't included it, since it looks
13930  ugly and can confuse the novice user.
13931  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13932  code (the
13933  well-known 
13934 \begin_inset Quotes eld
13935 \end_inset
13936
13937 \SpecialChar TeX
13938  code
13939 \begin_inset Quotes erd
13940 \end_inset
13941
13942 ).
13943 \end_layout
13944
13945 \begin_layout Enumerate
13946 Information given at the beginning of the article (i.
13947 \begin_inset space \thinspace{}
13948 \end_inset
13949
13950 e.
13951 \begin_inset space \space{}
13952 \end_inset
13953
13954 title, subtitle, author, institution, running title, running author, abstract
13955  and keywords) must be included in an environment called 
13956 \begin_inset Quotes eld
13957 \end_inset
13958
13959 opening
13960 \begin_inset Quotes erd
13961 \end_inset
13962
13963 .
13964  This is not implemented in \SpecialChar LyX
13965 , so you must enter title, subtitle etc.
13966 \begin_inset space ~
13967 \end_inset
13968
13969 between two \SpecialChar TeX
13970  code lines (
13971 \family typewriter
13972
13973 \backslash
13974 begin{opening}
13975 \family default
13976  and 
13977 \family typewriter
13978
13979 \backslash
13980 end{opening}
13981 \family default
13982 ).
13983 \end_layout
13984
13985 \begin_layout Enumerate
13986 According to the user manual, the label of each bibliography item must be
13987  written as 
13988 \family typewriter
13989
13990 \backslash
13991 protect
13992 \backslash
13993 citeauthoryear{
13994 \family default
13995 \emph on
13996 author(s)
13997 \family typewriter
13998 \emph default
13999 }{
14000 \family default
14001 \emph on
14002 year
14003 \family typewriter
14004 \emph default
14005 }
14006 \family default
14007 .
14008 \end_layout
14009
14010 \begin_layout Standard
14011 The 
14012 \family typewriter
14013 kluwer.lyx
14014 \family default
14015  template takes care of all these 
14016 \begin_inset Quotes eld
14017 \end_inset
14018
14019 peculiarities
14020 \begin_inset Quotes erd
14021 \end_inset
14022
14023 .
14024  If you start a new paper using this template you don't need to do anything
14025  special.
14026  Just 
14027 \end_layout
14028
14029 \begin_layout Enumerate
14030 don't delete the \SpecialChar TeX
14031  code included in the template, and
14032 \end_layout
14033
14034 \begin_layout Enumerate
14035 copy the example bibliography item included in the template and modify it
14036  as necessary to enter new bibliography items.
14037 \end_layout
14038
14039 \begin_layout Section
14040 Koma-Script
14041 \end_layout
14042
14043 \begin_layout Standard
14044 by 
14045 \noun on
14046 Bernd Rellermeyer
14047 \end_layout
14048
14049 \begin_layout Subsection
14050 Overview
14051 \end_layout
14052
14053 \begin_layout Standard
14054 The \SpecialChar LyX
14055  document classes 
14056 \emph on
14057 article (koma-script)
14058 \emph default
14059
14060 \emph on
14061 report (koma-script)
14062 \emph default
14063
14064 \emph on
14065 book
14066 \emph default
14067  
14068 \emph on
14069 (koma-script)
14070 \emph default
14071 , and 
14072 \emph on
14073 letter
14074 \emph default
14075  
14076 \emph on
14077 (koma-script)
14078 \emph default
14079  correspond to the \SpecialChar LaTeX
14080  document classes 
14081 \family typewriter
14082 scrartcl.cls
14083 \family default
14084
14085 \family typewriter
14086 scrreprt.cls
14087 \family default
14088
14089 \family typewriter
14090 scrbook.cls
14091 \family default
14092 , and 
14093 \family typewriter
14094 scrlettr.cls
14095 \family default
14096 , resp.
14097 \begin_inset space ~
14098 \end_inset
14099
14100 of the Koma-Script family.
14101  They are replacements for the standard document classes 
14102 \family typewriter
14103 article.cls
14104 \family default
14105
14106 \family typewriter
14107 report.cls
14108 \family default
14109
14110 \family typewriter
14111 book.cls
14112 \family default
14113  and 
14114 \family typewriter
14115 letter.cls
14116 \family default
14117 , resp., and fit better to European typography conventions in a number of
14118  points.
14119 \end_layout
14120
14121 \begin_layout Itemize
14122 Standard character size is 11pt in 
14123 \emph on
14124 article (koma-script)
14125 \emph default
14126
14127 \emph on
14128 report (koma-script)
14129 \emph default
14130 , and 
14131 \emph on
14132 book (koma-script)
14133 \emph default
14134 , and 12pt in 
14135 \emph on
14136 letter (koma-script)
14137 \emph default
14138 .
14139 \end_layout
14140
14141 \begin_layout Itemize
14142 Headings, labels of the description environment, and a number of elements
14143  of the 
14144 \emph on
14145 letter (koma-script)
14146 \emph default
14147  document class are set in a bold sans serif font.
14148 \begin_inset Foot
14149 status collapsed
14150
14151 \begin_layout Plain Layout
14152 There is a big difference between the bold sans serif old cm fonts and new
14153  ec fonts, especially in the appearance of headings.
14154  In comparison, the ec bold sans serif fonts look a bit thin.
14155  Here the \SpecialChar LaTeX
14156  package 
14157 \family typewriter
14158 cmsd.sty by
14159 \family default
14160  
14161 \shape smallcaps
14162 Walter Schmidt
14163 \shape default
14164  helps to produce the 
14165 \begin_inset Quotes eld
14166 \end_inset
14167
14168 usual
14169 \begin_inset Quotes erd
14170 \end_inset
14171
14172  appearance when using the ec fonts.
14173 \end_layout
14174
14175 \end_inset
14176
14177  The numbering of chapter headings is made in the same way as the numbering
14178  of section headings, that is without the extra line 
14179 \begin_inset Quotes eld
14180 \end_inset
14181
14182 Chapter\SpecialChar ldots
14183
14184 \begin_inset Quotes erd
14185 \end_inset
14186
14187 .
14188  In addition, the appearance of the headings can be modified by using a
14189  number of options (in \SpecialChar LyX
14190  to be entered in the field 
14191 \family sans
14192 Extra
14193 \begin_inset space ~
14194 \end_inset
14195
14196 Options
14197 \family default
14198  of the dialog 
14199 \family sans
14200 Layout\SpecialChar menuseparator
14201 Document
14202 \family default
14203 ).
14204  
14205 \end_layout
14206
14207 \begin_layout Itemize
14208 The main means in the Koma-Script document classes to design the type area
14209  are the options 
14210 \family sans
14211 BCOR
14212 \family default
14213  and 
14214 \family sans
14215 DIV
14216 \family default
14217  (in \SpecialChar LyX
14218  to be entered in the extra class options field in the dialog 
14219 \family sans
14220 Document\SpecialChar menuseparator
14221 Settings
14222 \family default
14223 ).
14224  They make a clearer modification of page margins possible as do the options
14225  of the dialog 
14226 \family sans
14227 Document\SpecialChar menuseparator
14228 Settings
14229 \family default
14230 .
14231  
14232 \end_layout
14233
14234 \begin_layout Itemize
14235 The \SpecialChar LaTeX
14236  document classes of the Koma-Script family define a number of additional
14237  commands.
14238  Those part of it which makes sense in \SpecialChar LyX
14239  is implemented in corresponding
14240  paragraph types.
14241 \end_layout
14242
14243 \begin_layout Standard
14244 Detailed descriptions of the \SpecialChar LaTeX
14245  document classes of the Koma-Script family
14246  can be found in the Koma-Script documentation 
14247 \emph on
14248 scrguide
14249 \emph default
14250  (German) and 
14251 \emph on
14252 scrguien
14253 \emph default
14254  (English).
14255 \end_layout
14256
14257 \begin_layout Subsection
14258 article (koma-script), report (koma-script), and book (koma-script)
14259 \end_layout
14260
14261 \begin_layout Standard
14262 The document classes 
14263 \emph on
14264 article (koma-script)
14265 \emph default
14266
14267 \emph on
14268 report (koma-script)
14269 \emph default
14270 , and 
14271 \emph on
14272 book
14273 \emph default
14274  
14275 \emph on
14276 (koma-script)
14277 \emph default
14278  are implemented in the layout files 
14279 \family typewriter
14280 scrartcl.layout
14281 \family default
14282
14283 \family typewriter
14284 scrreprt.layout
14285 \family default
14286 , and 
14287 \family typewriter
14288 scrbook.layout
14289 \family default
14290 , resp.
14291  They contain all the paragraph types of the corresponding standard document
14292  classes 
14293 \emph on
14294 article
14295 \emph default
14296
14297 \emph on
14298 report
14299 \emph default
14300 , and 
14301 \emph on
14302 book
14303 \emph default
14304 , resp., partly modified, with the exception of the \SpecialChar LyX
14305  specific 
14306 \family sans
14307 List
14308 \family default
14309 -type, which is replaced by the new 
14310 \family sans
14311 Labeling
14312 \family default
14313 -type having the same functionality.
14314  Beside the 
14315 \family sans
14316 Labeling
14317 \family default
14318 -Type there is a number of new paragraph types added.
14319  They are 
14320 \emph on
14321 not
14322 \emph default
14323  part of 
14324 \emph on
14325 letter (koma-script)
14326 \emph default
14327 .
14328 \end_layout
14329
14330 \begin_layout Itemize
14331
14332 \family sans
14333 Addpart, Addchap
14334 \family default
14335
14336 \family sans
14337 Addsec
14338 \family default
14339 : are equivalents to 
14340 \family sans
14341 Part*, Chapter*
14342 \family default
14343  and 
14344 \family sans
14345 Section*
14346 \family default
14347 , resp., additionally inserting an entry in the table of contents.
14348  
14349 \family sans
14350 Addpart
14351 \family default
14352  and 
14353 \family sans
14354 Addchap
14355 \family default
14356  are not contained in 
14357 \emph on
14358 article (koma-script)
14359 \emph default
14360 .
14361 \end_layout
14362
14363 \begin_layout Itemize
14364
14365 \family sans
14366 Addchap*
14367 \family default
14368
14369 \family sans
14370 Addsec*
14371 \family default
14372 : behave exactly as 
14373 \family sans
14374 Addchap
14375 \family default
14376  and 
14377 \family sans
14378 Addsec
14379 \family default
14380 , resp., additionally clearing running heads.
14381  
14382 \family sans
14383 Addchap*
14384 \family default
14385  is not contained in 
14386 \emph on
14387 article (koma-script)
14388 \emph default
14389 .
14390 \begin_inset Foot
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 There is also an 
14395 \family typewriter
14396
14397 \backslash
14398 addpart*
14399 \family default
14400  command in 
14401 \emph on
14402 book (koma-script)
14403 \emph default
14404  and in 
14405 \emph on
14406 report (koma-script)
14407 \emph default
14408 , but since this is identical to 
14409 \family sans
14410 Part*
14411 \family default
14412 , is has not been implemented in \SpecialChar LyX
14413 .
14414 \end_layout
14415
14416 \end_inset
14417
14418
14419 \end_layout
14420
14421 \begin_layout Itemize
14422
14423 \family sans
14424 Minisec
14425 \family default
14426 : generates a heading directly above the following paragraph in the standard
14427  character size without affecting the structure of the document.
14428 \end_layout
14429
14430 \begin_layout Itemize
14431
14432 \family sans
14433 Captionabove
14434 \family default
14435  and 
14436 \family sans
14437 Captionbelow
14438 \family default
14439  are special captions which respect the different space settings needed
14440  for captions placed above or below an element (if you follow strict typographic
14441  rules, you might want to place table captions always above the table).
14442  You can also use the class option 
14443 \family typewriter
14444 tablecaptionsabove
14445 \family default
14446 , which will switch 
14447 \family sans
14448 caption
14449 \family default
14450  to 
14451 \family sans
14452 captionabove
14453 \family default
14454  for tables and 
14455 \family sans
14456 captionbelow
14457 \family default
14458  for figures.
14459  You need at least Koma-Script version 2.8q to use this.
14460 \end_layout
14461
14462 \begin_layout Itemize
14463
14464 \family sans
14465 Dictum
14466 \family default
14467 : can be used to set a bonmot, e.
14468 \begin_inset space \thinspace{}
14469 \end_inset
14470
14471 g.
14472 \begin_inset space \space{}
14473 \end_inset
14474
14475 at the beginning of a chapter.
14476  If you use the optional argument (
14477 \family sans
14478 Insert\SpecialChar menuseparator
14479 Short
14480 \begin_inset space ~
14481 \end_inset
14482
14483 Title
14484 \family default
14485 ), you can insert the dictum's author there.
14486  Dictum and author are separated by a line.
14487  You need at least Koma-Script version 2.8q to use this.
14488  
14489 \family sans
14490 Dictum
14491 \family default
14492  is not contained in 
14493 \emph on
14494 article (koma-script)
14495 \emph default
14496 .
14497 \end_layout
14498
14499 \begin_layout Standard
14500 The following types, together with the standard types 
14501 \family sans
14502 Title
14503 \family default
14504
14505 \family sans
14506 Author
14507 \family default
14508 , and 
14509 \family sans
14510 Date
14511 \family default
14512 , form the title area of the document.
14513  They must be entered ahead of the first 
14514 \begin_inset Quotes eld
14515 \end_inset
14516
14517 ordinary
14518 \begin_inset Quotes erd
14519 \end_inset
14520
14521  paragraph.
14522 \begin_inset Foot
14523 status collapsed
14524
14525 \begin_layout Plain Layout
14526 The corresponding \SpecialChar LaTeX
14527  commands must appear before the 
14528 \family typewriter
14529
14530 \backslash
14531 maketitle
14532 \family default
14533  command.
14534 \end_layout
14535
14536 \end_inset
14537
14538  When such a type is used more than once, the latter usage overwrites the
14539  former one, that means, for every type only the latest usage is valid.
14540  The order of the different types however has, like 
14541 \family sans
14542 Title
14543 \family default
14544
14545 \family sans
14546 Author
14547 \family default
14548 , and 
14549 \family sans
14550 Date
14551 \family default
14552 , no effect on the appearance of the produced document.
14553 \end_layout
14554
14555 \begin_layout Itemize
14556
14557 \family sans
14558 Subject
14559 \family default
14560 : produces a centered paragraph above the ordinary title (
14561 \family sans
14562 Title
14563 \family default
14564
14565 \family sans
14566 Author
14567 \family default
14568
14569 \family sans
14570 Date
14571 \family default
14572 ) for the subject of the document.
14573 \end_layout
14574
14575 \begin_layout Itemize
14576
14577 \family sans
14578 Publishers
14579 \family default
14580 : produces a centered paragraph below the ordinary title (
14581 \family sans
14582 Title
14583 \family default
14584
14585 \family sans
14586 Author
14587 \family default
14588
14589 \family sans
14590 Date
14591 \family default
14592 ) for the publishers' name.
14593 \end_layout
14594
14595 \begin_layout Itemize
14596
14597 \family sans
14598 Dedication
14599 \family default
14600 : in 
14601 \emph on
14602 report (koma-script)
14603 \emph default
14604  and 
14605 \emph on
14606 book (koma-script)
14607 \emph default
14608  produces a centered paragraph on its own page behind the title page, or
14609  in 
14610 \emph on
14611 article (koma-script)
14612 \emph default
14613  produces a centered paragraph below the ordinary title (
14614 \family sans
14615 Title
14616 \family default
14617
14618 \family sans
14619 Author
14620 \family default
14621
14622 \family sans
14623 Date
14624 \family default
14625
14626 \family sans
14627 Publishers
14628 \family default
14629 ) for a dedication.
14630 \end_layout
14631
14632 \begin_layout Itemize
14633
14634 \family sans
14635 Titlehead
14636 \family default
14637 : produces a left aligned paragraph above the ordinary title (
14638 \family sans
14639 Title
14640 \family default
14641
14642 \family sans
14643 Author
14644 \family default
14645
14646 \family sans
14647 Date
14648 \family default
14649
14650 \family sans
14651 Subject
14652 \family default
14653 ) for a document`s head.
14654 \end_layout
14655
14656 \begin_layout Itemize
14657
14658 \family sans
14659 Uppertitleback
14660 \family default
14661 : produces in a double-sided print in 
14662 \emph on
14663 report (koma-script)
14664 \emph default
14665  and 
14666 \emph on
14667 book (koma-script)
14668 \emph default
14669  a left-aligned paragraph at the top of the title page`s back or has no
14670  effect in a single-sided print or in 
14671 \emph on
14672 article (koma-script)
14673 \emph default
14674 .
14675 \end_layout
14676
14677 \begin_layout Itemize
14678
14679 \family sans
14680 Lowertitleback
14681 \family default
14682 : produces in a double-sided print in 
14683 \emph on
14684 report (koma-script)
14685 \emph default
14686  and 
14687 \emph on
14688 book (koma-script)
14689 \emph default
14690  a left-aligned paragraph at the bottom of the title page`s back or has
14691  no effect in a single-sided print or in 
14692 \emph on
14693 article (koma-script)
14694 \emph default
14695 .
14696 \end_layout
14697
14698 \begin_layout Itemize
14699
14700 \family sans
14701 Extratitle
14702 \family default
14703 : produces a special 
14704 \begin_inset Quotes eld
14705 \end_inset
14706
14707 dirty
14708 \begin_inset Quotes erd
14709 \end_inset
14710
14711  page ahead of the actual document containing a paragraph without special
14712  formatting.
14713 \end_layout
14714
14715 \begin_layout Standard
14716 The layout files for the document classes 
14717 \emph on
14718 article (koma-script)
14719 \emph default
14720
14721 \emph on
14722 report (koma-script)
14723 \emph default
14724 , and 
14725 \emph on
14726 book (koma-script)
14727 \emph default
14728  do include the file 
14729 \family typewriter
14730 scrmacros.inc
14731 \family default
14732 .
14733  This is thought of as a place to define your own types.
14734  Copy scrmacros
14735 \family typewriter
14736 .inc
14737 \family default
14738  in your personal layout directory and edit the file!
14739 \end_layout
14740
14741 \begin_layout Subsection
14742 letter (koma-script)
14743 \end_layout
14744
14745 \begin_layout Standard
14746 \noindent
14747 The document class 
14748 \emph on
14749 letter (koma-script)
14750 \emph default
14751  is implemented in the layout file 
14752 \family typewriter
14753 scrlettr.layout
14754 \family default
14755 .
14756  It contains all the paragraph types of the corresponding standard document
14757  class 
14758 \emph on
14759 letter
14760 \emph default
14761 , partly modified, with the exception of the \SpecialChar LyX
14762  specific types 
14763 \family sans
14764 \SpecialChar LyX
14765 -Code
14766 \family default
14767  and 
14768 \family sans
14769 Comment
14770 \family default
14771  and the 
14772 \family sans
14773 List
14774 \family default
14775  type, which is replaced by the new 
14776 \family sans
14777 Labeling
14778 \family default
14779  type.
14780  In addition, it contains, in contrast to the standard document class, the
14781  standard types 
14782 \family sans
14783 \SpecialChar LaTeX
14784
14785 \family default
14786
14787 \family sans
14788 Quotation
14789 \family default
14790
14791 \family sans
14792 Quote
14793 \family default
14794 , and 
14795 \family sans
14796 Verse
14797 \family default
14798 .
14799  Furthermore, there are a number of new letter specific types.
14800 \end_layout
14801
14802 \begin_layout Standard
14803 The appearance of the letter produced by this document class can be controlled
14804  by a number of \SpecialChar LaTeX
14805  commands, which you can put in the \SpecialChar LaTeX
14806  preamble.
14807 \begin_inset Foot
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 For example, the standard appearance of the letter`s heading, consisting
14812  of name and address, is quite self-willed.
14813  An 
14814 \begin_inset Quotes eld
14815 \end_inset
14816
14817 ordinary
14818 \begin_inset Quotes erd
14819 \end_inset
14820
14821  heading is produced by the following \SpecialChar LaTeX
14822  commands in the preamble:
14823 \end_layout
14824
14825 \begin_layout LyX-Code
14826
14827 \backslash
14828 firsthead{
14829 \backslash
14830 parbox[b]{
14831 \backslash
14832 textwidth}
14833 \end_layout
14834
14835 \begin_layout LyX-Code
14836   {
14837 \backslash
14838 ignorespaces 
14839 \backslash
14840 fromname
14841 \backslash
14842
14843 \backslash
14844  
14845 \backslash
14846 ignorespaces 
14847 \backslash
14848 fromaddress}} 
14849 \end_layout
14850
14851 \begin_layout LyX-Code
14852
14853 \backslash
14854 nexthead{
14855 \backslash
14856 parbox[b]{
14857 \backslash
14858 textwidth}
14859 \end_layout
14860
14861 \begin_layout LyX-Code
14862   {
14863 \backslash
14864 ignorespaces 
14865 \backslash
14866 fromname 
14867 \backslash
14868 hfill 
14869 \backslash
14870 ignorespaces 
14871 \backslash
14872 pagename
14873 \backslash
14874  
14875 \backslash
14876 thepage}}
14877 \end_layout
14878
14879 \end_inset
14880
14881  A detailed German description of such \SpecialChar LaTeX
14882  commands can be found in the Koma-Script
14883  documentation 
14884 \emph on
14885 scrguide
14886 \emph default
14887 .
14888  With it, the letter's author can produce his personal letter layout.
14889 \end_layout
14890
14891 \begin_layout Standard
14892 The types 
14893 \family sans
14894 Letter
14895 \family default
14896  and 
14897 \family sans
14898 Opening
14899 \family default
14900  define the beginning of the letter and must be used in every letter.
14901  To emphasize them in the \SpecialChar LyX
14902  document class, they are marked with the letter
14903  
14904 \shape italic
14905 L
14906 \shape default
14907  or 
14908 \shape italic
14909 O
14910 \shape default
14911 , resp.
14912 \begin_inset space ~
14913 \end_inset
14914
14915 in the left margin.
14916  It is possible to write any number of letters in one file.
14917  An 
14918 \family sans
14919 Opening
14920 \family default
14921  type produces a new letter using the same addressee and a 
14922 \family sans
14923 Letter
14924 \family default
14925  type produces a new addressee.
14926  The types 
14927 \family sans
14928 Closing
14929 \family default
14930
14931 \family sans
14932 PS
14933 \family default
14934
14935 \family sans
14936 CC
14937 \family default
14938 , and 
14939 \family sans
14940 Encl
14941 \family default
14942  are ordinary paragraph types and can also be used several times in one
14943  and the same letter.
14944 \end_layout
14945
14946 \begin_layout Itemize
14947
14948 \family sans
14949 Letter
14950 \family default
14951 : produces a paragraph for the addressee and implicitly defines the beginning
14952  of the letter.
14953 \end_layout
14954
14955 \begin_layout Itemize
14956
14957 \family sans
14958 Opening
14959 \family default
14960 : produces a paragraph for the form of address and implicitly produces a
14961  new letter.
14962 \end_layout
14963
14964 \begin_layout Itemize
14965
14966 \family sans
14967 Closing
14968 \family default
14969 : produces a paragraph for a close.
14970 \end_layout
14971
14972 \begin_layout Itemize
14973
14974 \family sans
14975 PS
14976 \family default
14977 : produces a paragraph for a postscript.
14978 \end_layout
14979
14980 \begin_layout Itemize
14981
14982 \family sans
14983 CC
14984 \family default
14985 : produces a paragraph for a distribution list.
14986 \end_layout
14987
14988 \begin_layout Itemize
14989
14990 \family sans
14991 Encl
14992 \family default
14993 : produces a paragraph for enclosures.
14994 \end_layout
14995
14996 \begin_layout Standard
14997 The types 
14998 \family sans
14999 Name
15000 \family default
15001
15002 \family sans
15003 Signature
15004 \family default
15005
15006 \family sans
15007 Address
15008 \family default
15009
15010 \family sans
15011 Telephone
15012 \family default
15013
15014 \family sans
15015 Place
15016 \family default
15017
15018 \family sans
15019 Backaddress
15020 \family default
15021
15022 \family sans
15023 Specialmail
15024 \family default
15025
15026 \family sans
15027 Location
15028 \family default
15029
15030 \family sans
15031 Title
15032 \family default
15033 , and 
15034 \family sans
15035 Subject
15036 \family default
15037  are input types provided with a label to enter information, which will
15038  be processed by the document class.
15039 \begin_inset Foot
15040 status open
15041
15042 \begin_layout Plain Layout
15043 It could be seen as a matter of inconsequence, that the types 
15044 \family sans
15045 Letter
15046 \family default
15047  and 
15048 \family sans
15049 Opening
15050 \family default
15051  described above are not such input types as well.
15052  Because of the special meaning of those types, however, I have implemented
15053  them as ordinary paragraph types with a one letter mark in the left margin.
15054  Moreover, it would affect my feeling of symmetry, if the 
15055 \family sans
15056 Opening
15057 \family default
15058  type and the 
15059 \family sans
15060 Closing
15061 \family default
15062  type had such a serious different appearance.
15063 \end_layout
15064
15065 \end_inset
15066
15067  The types must be used ahead of the corresponding 
15068 \family sans
15069 Opening
15070 \family default
15071  type.
15072 \end_layout
15073
15074 \begin_layout Standard
15075 An implementation of these types in a WYSIWYG fashion does not seem to make
15076  sense, because the real appearance of the produced letter does not only
15077  depend on the usage of the particular type, but also on other factors.
15078  For example, a signature entered in the 
15079 \family sans
15080 Signature
15081 \family default
15082  type will in the standard behavior appear in the produced letter only,
15083  when in the same letter also a 
15084 \family sans
15085 Closing
15086 \family default
15087  type is used.
15088  The entered value of the 
15089 \family sans
15090 Telephone
15091 \family default
15092  type will in the standard behavior not appear in the produced letter at
15093  all.
15094  The possibility to design the letter`s heading freely is already indicated
15095  in a footnote above.
15096 \end_layout
15097
15098 \begin_layout Standard
15099 The input types can also be used as empty paragraphs.
15100  This makes sense e.
15101 \begin_inset space \thinspace{}
15102 \end_inset
15103
15104 g.
15105 \begin_inset space \space{}
15106 \end_inset
15107
15108 for the 
15109 \family sans
15110 Signature
15111 \family default
15112  type.
15113  If the 
15114 \family sans
15115 Signature
15116 \family default
15117  type is not used at all, in the standard behavior the value of the 
15118 \family sans
15119 Name
15120 \family default
15121  type is used as signature, whereas if an empty 
15122 \family sans
15123 Signature
15124 \family default
15125  type is used, no signature value is defined.
15126 \end_layout
15127
15128 \begin_layout Standard
15129 By using the input types it is possible to write a letter template, containing
15130  filled input types with your personal dates (name, address, etc.) and empty
15131  input types for other dates you want to enter.
15132 \end_layout
15133
15134 \begin_layout Itemize
15135
15136 \family sans
15137 Name
15138 \family default
15139 : sender's name, in the standard behavior appears as a centered paragraph
15140  in small caps in the letter`s heading.
15141 \end_layout
15142
15143 \begin_layout Itemize
15144
15145 \family sans
15146 Signature
15147 \family default
15148 : sender's signature, in the standard behavior appears below the 
15149 \family sans
15150 Closing
15151 \family default
15152  type.
15153  If no 
15154 \family sans
15155 Signature
15156 \family default
15157  type is used, the value of the 
15158 \family sans
15159 Name
15160 \family default
15161  type appears instead.
15162 \end_layout
15163
15164 \begin_layout Itemize
15165
15166 \family sans
15167 Address
15168 \family default
15169 : sender's address, in the standard behavior appears in a centered paragraph
15170  in the letter`s heading below the sender's name.
15171 \end_layout
15172
15173 \begin_layout Itemize
15174
15175 \family sans
15176 Telephone
15177 \family default
15178 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15179  variable
15180  
15181 \family typewriter
15182
15183 \backslash
15184 telephonenum
15185 \family default
15186 .
15187 \end_layout
15188
15189 \begin_layout Itemize
15190
15191 \family sans
15192 Place
15193 \family default
15194 : place of the letter`s making.
15195 \end_layout
15196
15197 \begin_layout Itemize
15198
15199 \family sans
15200 Date
15201 \family default
15202 : date of the letter`s making.
15203  
15204 \family sans
15205 Place
15206 \family default
15207  and 
15208 \family sans
15209 Date
15210 \family default
15211 , in the standard behavior, produce the place and the date in a right-aligned
15212  line below the addressee's field.
15213  If an empty 
15214 \family sans
15215 Date
15216 \family default
15217  type is used, neither place nor date appear, independent of the value of
15218  the 
15219 \family sans
15220 Place
15221 \family default
15222  type.
15223  If no 
15224 \family sans
15225 Date
15226 \family default
15227  type is used, the date of the letter `s production is used.
15228 \end_layout
15229
15230 \begin_layout Itemize
15231
15232 \family sans
15233 Backaddress
15234 \family default
15235 : sender`s back address, in the standard behavior appears above the addressee's
15236  field in a small sans serif font.
15237 \end_layout
15238
15239 \begin_layout Itemize
15240
15241 \family sans
15242 Specialmail
15243 \family default
15244 : special mail information, in the standard behavior appears underlined
15245  above the addressee's field below the back address.
15246 \end_layout
15247
15248 \begin_layout Itemize
15249
15250 \family sans
15251 Location
15252 \family default
15253 : additional information, in the standard behavior appears on right side
15254  below the addressee`s field.
15255 \end_layout
15256
15257 \begin_layout Itemize
15258
15259 \family sans
15260 Title
15261 \family default
15262 : the letter's title, in the standard behavior appears in a big, bold, sans
15263  serif font above the subject.
15264 \end_layout
15265
15266 \begin_layout Itemize
15267
15268 \family sans
15269 Subject
15270 \family default
15271 : the letter's subject, in the standard behavior appears in a bold font
15272  above the 
15273 \family sans
15274 Opening
15275 \family default
15276  paragraph.
15277 \end_layout
15278
15279 \begin_layout Standard
15280 The types 
15281 \family sans
15282 Yourref
15283 \family default
15284
15285 \family sans
15286 Yourmail
15287 \family default
15288
15289 \family sans
15290 Myref
15291 \family default
15292
15293 \family sans
15294 Customer
15295 \family default
15296 , and 
15297 \family sans
15298 Invoice
15299 \family default
15300  produce a business letter like line above the 
15301 \family sans
15302 Title
15303 \family default
15304  line containing the fields 
15305 \begin_inset Quotes eld
15306 \end_inset
15307
15308 Your ref.
15309 \begin_inset Quotes erd
15310 \end_inset
15311
15312
15313 \begin_inset Quotes eld
15314 \end_inset
15315
15316 Your letter of
15317 \begin_inset Quotes erd
15318 \end_inset
15319
15320
15321 \begin_inset Quotes eld
15322 \end_inset
15323
15324 Our ref.
15325 \begin_inset Quotes erd
15326 \end_inset
15327
15328
15329 \begin_inset Quotes eld
15330 \end_inset
15331
15332 Customer no.
15333 \begin_inset Quotes erd
15334 \end_inset
15335
15336
15337 \begin_inset Quotes eld
15338 \end_inset
15339
15340 Invoice no.
15341 \begin_inset Quotes erd
15342 \end_inset
15343
15344 , and 
15345 \begin_inset Quotes eld
15346 \end_inset
15347
15348 Date
15349 \begin_inset Quotes erd
15350 \end_inset
15351
15352 .
15353  For the date field, the value of the 
15354 \family sans
15355 Date
15356 \family default
15357  type is used.
15358  If one of these 
15359 \begin_inset Quotes eld
15360 \end_inset
15361
15362 business letter types
15363 \begin_inset Quotes erd
15364 \end_inset
15365
15366  is used, the value of the 
15367 \family sans
15368 Place
15369 \family default
15370  type however does not appear, but only the \SpecialChar LaTeX
15371  variable 
15372 \family typewriter
15373
15374 \backslash
15375 fromplace
15376 \family default
15377  is set.
15378  The ordinary output of place and date in a right-aligned line below the
15379  addressee`s field is suppressed.
15380  The types are implemented as input types provided with a label and must
15381  be used ahead of the corresponding 
15382 \family sans
15383 Opening
15384 \family default
15385  type.
15386 \end_layout
15387
15388 \begin_layout Itemize
15389
15390 \family sans
15391 Yourref
15392 \family default
15393 : Your ref.
15394 \end_layout
15395
15396 \begin_layout Itemize
15397
15398 \family sans
15399 Yourmail
15400 \family default
15401 : Your letter of.
15402 \end_layout
15403
15404 \begin_layout Itemize
15405
15406 \family sans
15407 Myref
15408 \family default
15409 : Our ref.
15410 \end_layout
15411
15412 \begin_layout Itemize
15413
15414 \family sans
15415 Customer
15416 \family default
15417 : Customer no.
15418 \end_layout
15419
15420 \begin_layout Itemize
15421
15422 \family sans
15423 Invoice
15424 \family default
15425 : Invoice no.
15426 \end_layout
15427
15428 \begin_layout Subsection
15429 The new letter class: letter (koma-script v.2)
15430 \end_layout
15431
15432 \begin_layout Standard
15433 by 
15434 \noun on
15435 Jürgen Spitzmüller
15436 \end_layout
15437
15438 \begin_layout Standard
15439 \begin_inset VSpace medskip
15440 \end_inset
15441
15442
15443 \end_layout
15444
15445 \begin_layout Standard
15446 \noindent
15447 Koma-Script version 2.8 has introduced a new letter class 
15448 \family typewriter
15449 scrlttr2
15450 \family default
15451  which supersedes the now unsupported 
15452 \family typewriter
15453 scrlettr
15454 \family default
15455 .
15456  It has — on the \SpecialChar LaTeX
15457  side — a completely new interface and is not compatible
15458  with the old class.
15459  Therefore, \SpecialChar LyX
15460  supports both, though it is recommended you use the new class.
15461 \end_layout
15462
15463 \begin_layout Standard
15464 This class covers the same functionality as 
15465 \emph on
15466 letter (koma-script),
15467 \emph default
15468  and a few more.
15469  The basic items are 
15470 \family sans
15471 Address
15472 \family default
15473  (receiver's address, same as 
15474 \family sans
15475 Letter
15476 \family default
15477  in the old layout), 
15478 \family sans
15479 Opening
15480 \family default
15481 , and 
15482 \family sans
15483 Closing
15484 \family default
15485 .
15486  
15487 \family sans
15488 NextAddress
15489 \family default
15490  will start a new letter (i.
15491 \begin_inset space \thinspace{}
15492 \end_inset
15493
15494 e.
15495 \begin_inset space \space{}
15496 \end_inset
15497
15498 you can write several letters per document).
15499  New elements are sender's 
15500 \family sans
15501 E-Mail
15502 \family default
15503
15504 \family sans
15505 URL
15506 \family default
15507
15508 \family sans
15509 Fax
15510 \family default
15511
15512 \family sans
15513 Bank
15514 \family default
15515  and the possibility to use a 
15516 \family sans
15517 Logo
15518 \family default
15519  (via 
15520 \family sans
15521 Insert\SpecialChar menuseparator
15522 Graphics
15523 \family default
15524 ) in the header.
15525 \end_layout
15526
15527 \begin_layout Standard
15528 The biggest improvement is, though, that the letter's layout is configurable
15529  to meet almost any needs.
15530  This can be done via the preamble or with a special style file (Letter
15531  Class Option, extension 
15532 \family typewriter
15533 *.lco
15534 \family default
15535 ), that will be read in as a class option.
15536 \begin_inset Foot
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540 The KOMA package comes with some default 
15541 \family typewriter
15542 *.lco
15543 \family default
15544  files.
15545  There is, for instance, a 
15546 \family typewriter
15547 DIN.lco
15548 \family default
15549  file that follows german typesetting rules, or a 
15550 \family typewriter
15551 KOMAold.lco
15552 \family default
15553  that provides the default layout of the old 
15554 \family typewriter
15555 scrlettr
15556 \family default
15557  class.
15558  The latter can be loaded with the class option 
15559 \family typewriter
15560 KOMAold
15561 \family default
15562 , inserted via the 
15563 \family sans
15564 Layout\SpecialChar menuseparator
15565 Document\SpecialChar menuseparator
15566 Extra Options
15567 \family default
15568  field.
15569 \end_layout
15570
15571 \end_inset
15572
15573  Have a look at the 
15574 \emph on
15575 koma-letter2
15576 \emph default
15577  template that is included in \SpecialChar LyX
15578  for examples.
15579  A detailed description is to be found in the Koma-Script documentation
15580  (
15581 \emph on
15582 scrguide
15583 \emph default
15584 ).
15585 \end_layout
15586
15587 \begin_layout Subsection
15588 Problems
15589 \end_layout
15590
15591 \begin_layout Standard
15592 Visualizing the Koma-Script document classes in \SpecialChar LyX
15593 , the \SpecialChar LyX
15594  internals cause some
15595  problems.
15596 \end_layout
15597
15598 \begin_layout Itemize
15599 The chapter number of a 
15600 \family sans
15601 Chapter
15602 \family default
15603  type appears on a line of its own above the chapter heading instead of
15604  appearing in the same line ahead of it.
15605  The cause for that is the \SpecialChar LyX
15606  internal behavior for the labeltype 
15607 \family sans
15608 Counter_Chapter
15609 \family default
15610  in the layout file.
15611 \end_layout
15612
15613 \begin_layout Itemize
15614 The headings of the types 
15615 \family sans
15616 Addchap
15617 \family default
15618  and 
15619 \family sans
15620 Addsec
15621 \family default
15622  are only put in the 
15623 \begin_inset Quotes eld
15624 \end_inset
15625
15626 true
15627 \begin_inset Quotes erd
15628 \end_inset
15629
15630  \SpecialChar LaTeX
15631  table of contents, but not in the \SpecialChar LyX
15632  table of contents (
15633 \family sans
15634 Document\SpecialChar menuseparator
15635 Table
15636 \begin_inset space ~
15637 \end_inset
15638
15639 of
15640 \begin_inset space ~
15641 \end_inset
15642
15643 Contents
15644 \family default
15645 ).
15646 \end_layout
15647
15648 \begin_layout Itemize
15649 The paragraphs in a 
15650 \emph on
15651 letter
15652 \emph default
15653  document class appear in a skip separation mode, not indented.
15654  This is the standard behavior, no special \SpecialChar LaTeX
15655  commands are needed for that.
15656  But in the 
15657 \family sans
15658 Document\SpecialChar menuseparator
15659 Settings
15660 \family default
15661  dialog the corresponding radio button indicates 
15662 \family sans
15663 Indent
15664 \family default
15665 .
15666  A 
15667 \family sans
15668 Skip
15669 \family default
15670  value always has the effect that extra \SpecialChar LaTeX
15671  commands are inserted in the document
15672  to produce the gap, which is not what is wanted in this case.
15673 \end_layout
15674
15675 \begin_layout Section
15676 Memoir
15677 \end_layout
15678
15679 \begin_layout Standard
15680 By 
15681 \noun on
15682 Jürgen Spitzmüller
15683 \end_layout
15684
15685 \begin_layout Subsection
15686 Overview
15687 \end_layout
15688
15689 \begin_layout Standard
15690 Memoir is a very powerful and constantly evolving class.
15691  It has been designed with regard to fictional and non-fictional literature.
15692  Its aim is to let the user have maximum control over the typesetting of
15693  his document.
15694  Memoir is based on the standard book class, but it can also emulate the
15695  article class (see below).
15696 \end_layout
15697
15698 \begin_layout Standard
15699 Peter Wilson, the developer of Memoir, is known as the author of lots of
15700  useful packages in the \SpecialChar LaTeX
15701  world.
15702  Most of them have been merged with Memoir.
15703  Therefore, it is much easier to layout the table of contents, appendices,
15704  chapter designs and such.
15705  \SpecialChar LyX
15706 , though, does not support all of these goodies natively.
15707  Some of them might be added to forthcoming releases
15708 \begin_inset Foot
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 You are invited to send suggestions to 
15713 \begin_inset Flex URL
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717
15718 lyx-devel@lists.lyx.org
15719 \end_layout
15720
15721 \end_inset
15722
15723 .
15724 \end_layout
15725
15726 \end_inset
15727
15728 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15729 's framework.
15730  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15731
15732  commands (\SpecialChar TeX
15733  code
15734 \begin_inset Foot
15735 status collapsed
15736
15737 \begin_layout Plain Layout
15738 Cf.
15739 \begin_inset ERT
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743
15744
15745 \backslash
15746  
15747 \end_layout
15748
15749 \end_inset
15750
15751 section
15752 \begin_inset space ~
15753 \end_inset
15754
15755
15756 \begin_inset CommandInset ref
15757 LatexCommand ref
15758 reference "sec:Inserting-TeX-Code"
15759
15760 \end_inset
15761
15762  for details.
15763 \end_layout
15764
15765 \end_inset
15766
15767 ).
15768  In this section, we can only list those features that are natively supported
15769  by \SpecialChar LyX
15770 .
15771  For detailed descriptions (and for the rest of features) we recommend you
15772  have a look at the detailed manual of the Memoir class
15773 \begin_inset Foot
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 Cf.
15778 \begin_inset ERT
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782
15783
15784 \backslash
15785  
15786 \end_layout
15787
15788 \end_inset
15789
15790
15791 \begin_inset Flex URL
15792 status collapsed
15793
15794 \begin_layout Plain Layout
15795
15796 CTAN:/macros/latex/memoir/memman.pdf
15797 \end_layout
15798
15799 \end_inset
15800
15801 .
15802 \end_layout
15803
15804 \end_inset
15805
15806 , which is not only a user guide for the class, but also both a comprehensive
15807  description on good typesetting and a superb example for good typesetting
15808  itself.
15809 \end_layout
15810
15811 \begin_layout Subsection
15812 Basic features and restrictions
15813 \end_layout
15814
15815 \begin_layout Standard
15816 Memoir supports basically all features of the standard book classes.
15817  There are, however, some differences, as follows:
15818 \end_layout
15819
15820 \begin_layout Description
15821 Font
15822 \begin_inset space ~
15823 \end_inset
15824
15825 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15826 \end_layout
15827
15828 \begin_layout Description
15829 Page
15830 \begin_inset space ~
15831 \end_inset
15832
15833 style: The fancy page style is not supported, due to a command clash between
15834  Memoir and the fancyhdr package (they both define a command with the same
15835  name, which confuses \SpecialChar LaTeX
15836 ).
15837  Instead, Memoir comes with a number of its own page styles (see 
15838 \family sans
15839 Layout\SpecialChar menuseparator
15840 Document\SpecialChar menuseparator
15841 Page
15842 \begin_inset space ~
15843 \end_inset
15844
15845 Style
15846 \family default
15847 ).
15848  If you want to use these for the chapter pages, you have to use the command
15849  
15850 \family typewriter
15851
15852 \backslash
15853 chapterstyle
15854 \family default
15855  in the main text or in preamble (e.
15856 \begin_inset space \thinspace{}
15857 \end_inset
15858
15859 g.
15860 \begin_inset space \space{}
15861 \end_inset
15862
15863
15864 \family typewriter
15865
15866 \backslash
15867 chapterstyle{companion}
15868 \family default
15869 ).
15870 \end_layout
15871
15872 \begin_layout Description
15873 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15874  optional argument in the standard classes.
15875  With this, you can specify an alternative version of the title for the
15876  table of contents and the headers (for instance, if the title is too long).
15877  In \SpecialChar LyX
15878 , you can do this via 
15879 \family sans
15880 Insert\SpecialChar menuseparator
15881 Short
15882 \begin_inset space ~
15883 \end_inset
15884
15885 Title
15886 \family default
15887  at the beginning of a chapter/section.
15888  Memoir features a second optional argument and thus separates the table
15889  of contents from the header.
15890  You can define three variants of a title with this: one for the main text,
15891  one for the table of contents, and one for the headers.
15892  Simply insert two optional arguments if you need this feature, the first
15893  one containing the short title for the Table of Contents, the second one
15894  containing an alternative short title for the headers.
15895 \end_layout
15896
15897 \begin_layout Description
15898 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15899  of contents, the list of figures and the list of table start a new page
15900  automatically.
15901  Memoir does not follow this route.
15902  You have to insert a page break yourself, if you want to have one.
15903 \end_layout
15904
15905 \begin_layout Description
15906 Titlepage: For some unknown reason, Memoir uses pagination on the title
15907  page (in the standard classes, title pages are 
15908 \begin_inset Quotes eld
15909 \end_inset
15910
15911 empty
15912 \begin_inset Quotes erd
15913 \end_inset
15914
15915 ).
15916  If you want an empty title page, type 
15917 \family typewriter
15918
15919 \backslash
15920 aliaspagestyle{title}{empty}
15921 \family default
15922  in the preamble.
15923 \end_layout
15924
15925 \begin_layout Description
15926 Article: With the class option 
15927 \emph on
15928 article
15929 \emph default
15930  (to be inserted in 
15931 \family sans
15932 Layout\SpecialChar menuseparator
15933 Document\SpecialChar menuseparator
15934 Extra
15935 \begin_inset space ~
15936 \end_inset
15937
15938 Options
15939 \family default
15940 ), you can emulate article style.
15941  That is, counters (footnotes, figures, tables etc.) will not be reset on
15942  new chapters, chapters don't start a new page (but are—in contrary to 
15943 \begin_inset Quotes eld
15944 \end_inset
15945
15946 real
15947 \begin_inset Quotes erd
15948 \end_inset
15949
15950  article classes—still allowed), parts, though, use their own page, as in
15951  book.
15952 \end_layout
15953
15954 \begin_layout Description
15955 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15956  font commands, which have been used in the old \SpecialChar LaTeX
15957  version 2.09 (e.
15958 \begin_inset space \thinspace{}
15959 \end_inset
15960
15961 g.
15962 \begin_inset space \space{}
15963 \end_inset
15964
15965
15966 \family typewriter
15967
15968 \backslash
15969 rm
15970 \family default
15971
15972 \family typewriter
15973
15974 \backslash
15975 it
15976 \family default
15977 ).
15978  It produces an error and stops \SpecialChar LaTeX
15979  whenever such a command appears.
15980  The class option 
15981 \emph on
15982 oldfontcommands
15983 \emph default
15984  reallows the commands and spits out warnings instead (which does at least
15985  not stop \SpecialChar LaTeX
15986 ).
15987  Since a lot of packages and particularly Bib\SpecialChar TeX
15988  style files are still using
15989  those commands, we have decided to use this option by default.
15990 \end_layout
15991
15992 \begin_layout Subsection
15993 Extra features
15994 \end_layout
15995
15996 \begin_layout Standard
15997 We will only describe the features supported by \SpecialChar LyX
15998  (which is not much currently).
15999  Please consult the Memoir manual
16000 \begin_inset Foot
16001 status collapsed
16002
16003 \begin_layout Plain Layout
16004 Cf.
16005 \begin_inset ERT
16006 status collapsed
16007
16008 \begin_layout Plain Layout
16009
16010
16011 \backslash
16012  
16013 \end_layout
16014
16015 \end_inset
16016
16017
16018 \begin_inset Flex URL
16019 status collapsed
16020
16021 \begin_layout Plain Layout
16022
16023 CTAN:/macros/latex/memoir/memman.pdf
16024 \end_layout
16025
16026 \end_inset
16027
16028 .
16029 \end_layout
16030
16031 \end_inset
16032
16033  for details.
16034 \end_layout
16035
16036 \begin_layout Description
16037 Abstract: You may wonder why an abstract is an extra feature.
16038  Well, it is in book class.
16039  Usually books don't have abstracts.
16040  Memoir, however, has.
16041  You can use it wherever and how often you like.
16042 \end_layout
16043
16044 \begin_layout Description
16045 Chapterprecis: You may know this older typesetting style: The contents of
16046  a chapter are summarized below the title and also in the table of contents
16047  (e.
16048 \begin_inset space \thinspace{}
16049 \end_inset
16050
16051 g.
16052 \begin_inset space \space{}
16053 \end_inset
16054
16055
16056 \emph on
16057 Our hero arrives in Troia; he loses some friends; he finds others
16058 \emph default
16059 ).
16060  Chapterprecis does exactly this.
16061  It is therefore only sensible below a chapter.
16062 \end_layout
16063
16064 \begin_layout Description
16065 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16066  The epigraph environment provides an elegant way of typesetting such a
16067  motto.
16068  The motto itself (text) and its author (source) are divided by a short
16069  line.
16070  Unfortunately, we have to fool \SpecialChar LyX
16071  a bit here again, since the environment
16072  needs two arguments (text and source).
16073  In this case, we have to use curly brackets (in \SpecialChar TeX
16074  mode) between the two
16075  arguments: 
16076 \emph on
16077 <smart slogan>
16078 \emph default
16079  
16080 \family typewriter
16081 }{
16082 \family default
16083  
16084 \emph on
16085 <author of the slogan>.
16086 \end_layout
16087
16088 \begin_layout Description
16089 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16090  complex figurative poems).
16091  \SpecialChar LyX
16092  can only support a few of them.
16093  One is poemtitle, which is a centered title for poems, which will also
16094  be added to the table of contents (verse is the standard environment for
16095  poems.
16096  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16097  code,
16098  because they have to be nested inside regular verse environments, which
16099  is not possible with \SpecialChar LyX
16100 ).
16101 \end_layout
16102
16103 \begin_layout Description
16104 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16105 \end_layout
16106
16107 \begin_layout Section
16108 Article (mwart), book (mwbk) and report (mwrep)
16109 \begin_inset Argument status
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 The 
16114 \family typewriter
16115 mw
16116 \family default
16117  Classes
16118 \end_layout
16119
16120 \end_inset
16121
16122
16123 \end_layout
16124
16125 \begin_layout Standard
16126 by 
16127 \noun on
16128 Tomasz Luczak
16129 \end_layout
16130
16131 \begin_layout Standard
16132 The \SpecialChar LyX
16133  document classes 
16134 \emph on
16135 article (mwart)
16136 \emph default
16137
16138 \emph on
16139 report (mwrep)
16140 \emph default
16141  and 
16142 \emph on
16143 book
16144 \emph default
16145  
16146 \emph on
16147 (mwbk)
16148 \emph default
16149  correspond to the \SpecialChar LaTeX
16150  document classes 
16151 \family typewriter
16152 mwart.cls
16153 \family default
16154
16155 \family typewriter
16156 mwrep.cls
16157 \family default
16158  and 
16159 \family typewriter
16160 mwbk.cls
16161 \family default
16162 , resp.
16163  They are replacements for the standard document classes 
16164 \family typewriter
16165 article.cls
16166 \family default
16167
16168 \family typewriter
16169 report.cls
16170 \family default
16171  and 
16172 \family typewriter
16173 book.cls
16174 \family default
16175 , resp., and fit better to Polish typography conventions in a number of points.
16176  
16177 \end_layout
16178
16179 \begin_layout Standard
16180 Basic differences:
16181 \end_layout
16182
16183 \begin_layout Itemize
16184 Unnumbered titles (with star, e.
16185 \begin_inset space \thinspace{}
16186 \end_inset
16187
16188 g.
16189 \begin_inset space \space{}
16190 \end_inset
16191
16192
16193 \family sans
16194 Section*
16195 \family default
16196 ) are added into table of contents,
16197 \end_layout
16198
16199 \begin_layout Itemize
16200 Additional page styles:
16201 \end_layout
16202
16203 \begin_deeper
16204 \begin_layout Description
16205 uheadings header with separated lines,
16206 \end_layout
16207
16208 \begin_layout Description
16209 myheadings custom header, contents headers via commands: 
16210 \family typewriter
16211
16212 \backslash
16213 markright
16214 \family default
16215  and 
16216 \family typewriter
16217
16218 \backslash
16219 markboth
16220 \family default
16221 ,
16222 \end_layout
16223
16224 \begin_layout Description
16225 myuheadings custom header with separated lines,
16226 \end_layout
16227
16228 \begin_layout Description
16229 outer page number is placed on outer side of page
16230 \end_layout
16231
16232 \end_deeper
16233 \begin_layout Itemize
16234 Options 
16235 \end_layout
16236
16237 \begin_deeper
16238 \begin_layout Description
16239 rmheadings serif titles — default,
16240 \end_layout
16241
16242 \begin_layout Description
16243 sfheadings sansserif titles,
16244 \end_layout
16245
16246 \begin_layout Description
16247 authortitle on title page first placed is author next title — default,
16248 \end_layout
16249
16250 \begin_layout Description
16251 titleauthor on title page first placed is title next author,
16252 \end_layout
16253
16254 \begin_layout Description
16255 withmarginpar reserve place on page for margins.
16256 \end_layout
16257
16258 \end_deeper
16259 \begin_layout Section
16260 Paper
16261 \end_layout
16262
16263 \begin_layout Standard
16264 The document class 
16265 \family sans
16266 paper
16267 \family default
16268  provides an alternative to the standard 
16269 \family sans
16270 article
16271 \family default
16272  class.
16273  It provides similar functionality, but you might prefer this layout with
16274  sans serif sections, headings, and more.
16275 \end_layout
16276
16277 \begin_layout Section
16278 Rev\SpecialChar TeX
16279 4
16280 \end_layout
16281
16282 \begin_layout Standard
16283 by 
16284 \noun on
16285 Amir Karger
16286 \end_layout
16287
16288 \begin_layout Standard
16289 \begin_inset VSpace bigskip
16290 \end_inset
16291
16292
16293 \end_layout
16294
16295 \begin_layout Standard
16296 \noindent
16297 The 
16298 \family sans
16299 Revtex
16300 \begin_inset space ~
16301 \end_inset
16302
16303 4
16304 \family default
16305  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16306  4.0 (the 
16307 \begin_inset Formula $\beta$
16308 \end_inset
16309
16310  release of May, 1999) class.
16311 \end_layout
16312
16313 \begin_layout Standard
16314 \SpecialChar LyX
16315  has a 
16316 \family sans
16317 Revtex
16318 \family default
16319  textclass, which works with Rev\SpecialChar TeX
16320  3.1.
16321  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16322  2.09.
16323  That means that it doesn't interact very well with \SpecialChar LyX
16324 , which requires \SpecialChar LaTeX2e
16325 , although
16326  it has been kludged to work.
16327  Since Rev\SpecialChar TeX
16328  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16329 , \SpecialChar LyX
16330  with the
16331  
16332 \family sans
16333 Rev\SpecialChar TeX
16334
16335 \begin_inset space ~
16336 \end_inset
16337
16338 4
16339 \family default
16340  textclass should also be pretty easy to use.
16341 \end_layout
16342
16343 \begin_layout Standard
16344 These documents are supposed to be used in 
16345 \emph on
16346 addition
16347 \emph default
16348  to the Rev\SpecialChar TeX
16349  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16350  macros,
16351  and assume you'll know what to put in the preamble if necessary.
16352 \end_layout
16353
16354 \begin_layout Subsection
16355 Installation
16356 \end_layout
16357
16358 \begin_layout Standard
16359 All you need to do is install Rev\SpecialChar TeX
16360  4, as described in the package's README
16361  file.
16362  The package can be found at The Rev\SpecialChar TeX
16363  4 Web Site 
16364 \begin_inset Flex URL
16365 status collapsed
16366
16367 \begin_layout Plain Layout
16368
16369 http://publish.aps.org/revtex4/
16370 \end_layout
16371
16372 \end_inset
16373
16374 .
16375  Install it somewhere that \SpecialChar LaTeX
16376  can see it.
16377  Test it by trying to \SpecialChar LaTeX
16378  a short Rev\SpecialChar TeX
16379  4 document in some random directory (i.
16380 \begin_inset space \thinspace{}
16381 \end_inset
16382
16383 e.
16384 \begin_inset space \space{}
16385 \end_inset
16386
16387 not the directory where you installed the class file.) Then, if you reconfigure
16388  \SpecialChar LyX
16389 , it will find the class file and let you use the Rev\SpecialChar TeX
16390 4 textclass.
16391 \end_layout
16392
16393 \begin_layout Standard
16394 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16395  4 document
16396  using 
16397 \family typewriter
16398 tex2lyx
16399 \family default
16400 , or to use the 
16401 \family sans
16402 Revtex
16403 \begin_inset space ~
16404 \end_inset
16405
16406 4
16407 \family default
16408  template, found in the templates directory.
16409 \end_layout
16410
16411 \begin_layout Subsection
16412 Preamble Matter
16413 \end_layout
16414
16415 \begin_layout Standard
16416 Optional arguments to 
16417 \family typewriter
16418
16419 \backslash
16420 documentclass
16421 \family default
16422 , like 
16423 \begin_inset Quotes eld
16424 \end_inset
16425
16426 preprint
16427 \begin_inset Quotes erd
16428 \end_inset
16429
16430  and 
16431 \begin_inset Quotes eld
16432 \end_inset
16433
16434 aps
16435 \begin_inset Quotes erd
16436 \end_inset
16437
16438 , go in the 
16439 \family sans
16440 Extra
16441 \begin_inset space ~
16442 \end_inset
16443
16444 Options
16445 \family default
16446  field in the 
16447 \family sans
16448 Document
16449 \begin_inset space ~
16450 \end_inset
16451
16452 Layout
16453 \family default
16454  dialog, as usual.
16455  Remember that in Rev\SpecialChar TeX
16456 , at least one optional argument is required! 
16457 \end_layout
16458
16459 \begin_layout Standard
16460 Other preamble matter, like 
16461 \family typewriter
16462
16463 \backslash
16464 draft
16465 \family default
16466  etc.
16467 \begin_inset space ~
16468 \end_inset
16469
16470 goes in the 
16471 \family sans
16472 \SpecialChar LaTeX
16473
16474 \begin_inset space ~
16475 \end_inset
16476
16477 Preamble
16478 \family default
16479  dialog, also as usual.
16480 \end_layout
16481
16482 \begin_layout Subsection
16483 Layouts
16484 \end_layout
16485
16486 \begin_layout Standard
16487 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16488 4.0.
16489  For example, the Email layout corresponds to 
16490 \family typewriter
16491
16492 \backslash
16493 email{}
16494 \family default
16495 .
16496  Note that (at least as of Rev\SpecialChar TeX
16497  4.0 Beta), the 
16498 \family sans
16499 Address
16500 \family default
16501  and 
16502 \family sans
16503 Affiliation
16504 \family default
16505  layouts are exactly equivalent, so you shouldn't need to use both.
16506 \begin_inset Foot
16507 status collapsed
16508
16509 \begin_layout Plain Layout
16510 In case you're curious, both were included so that 
16511 \family typewriter
16512 tex2lyx
16513 \family default
16514  would be able to translate both 
16515 \family typewriter
16516
16517 \backslash
16518 address
16519 \family default
16520  and 
16521 \family typewriter
16522
16523 \backslash
16524 affiliation
16525 \family default
16526 .
16527 \end_layout
16528
16529 \end_inset
16530
16531
16532 \end_layout
16533
16534 \begin_layout Subsection
16535 Important Notes
16536 \end_layout
16537
16538 \begin_layout Standard
16539 There are a couple of important unique aspects of Rev\SpecialChar TeX
16540  4 which might cause
16541  bugs that will be even more confusing in \SpecialChar LyX
16542 .
16543 \end_layout
16544
16545 \begin_layout Standard
16546 In Rev\SpecialChar TeX
16547 , the 
16548 \family typewriter
16549
16550 \backslash
16551 thanks
16552 \family default
16553  command goes 
16554 \emph on
16555 outside
16556 \emph default
16557  the 
16558 \family typewriter
16559
16560 \backslash
16561 author
16562 \family default
16563  command.
16564  The \SpecialChar LyX
16565  equivalent is that there is a separate Thanks layout.
16566  Do 
16567 \emph on
16568 not
16569 \emph default
16570  write footnotes in the 
16571 \family sans
16572 Author
16573 \family default
16574  layout, or weird things may happen.
16575  See the Rev\SpecialChar TeX
16576  4 documentation for more details.
16577 \end_layout
16578
16579 \begin_layout Standard
16580 Also, the 
16581 \family sans
16582 Author
16583 \begin_inset space ~
16584 \end_inset
16585
16586 Email
16587 \family default
16588
16589 \family sans
16590 Author
16591 \begin_inset space ~
16592 \end_inset
16593
16594 URL
16595 \family default
16596 , and 
16597 \family sans
16598 Thanks
16599 \family default
16600  layouts must be placed 
16601 \emph on
16602 in between
16603 \emph default
16604  the 
16605 \family sans
16606 Author
16607 \family default
16608  layout and the corresponding 
16609 \family sans
16610 Address
16611 \family default
16612  (or equivalent 
16613 \family sans
16614 Affiliation
16615 \family default
16616 ) layout.
16617  If you put the 
16618 \family sans
16619 Thanks
16620 \family default
16621  after the 
16622 \family sans
16623 Address
16624 \family default
16625 , the \SpecialChar LaTeX
16626  won't compile.
16627 \end_layout
16628
16629 \begin_layout Subsection
16630 Drawbacks
16631 \end_layout
16632
16633 \begin_layout Standard
16634 The main problem with this layout is that you can't use the optional arguments
16635  to layouts like Email and Title.
16636  (The problem is not unique to this layout; you can't use optional arguments
16637  to the Section layouts either.) This means that after you export that file
16638  to \SpecialChar LaTeX
16639  (which you'll need to do eventually to send it in to APS), you'll need
16640  to edit the \SpecialChar LaTeX
16641  file with a text editor to add the optional arguments to set,
16642  e.
16643 \begin_inset space \thinspace{}
16644 \end_inset
16645
16646 g.
16647 \begin_inset space \space{}
16648 \end_inset
16649
16650 the running title for the page headers.
16651  Lacking these layouts makes the 
16652 \family typewriter
16653
16654 \backslash
16655 altaffiliation
16656 \family default
16657  (and the equivalent 
16658 \family typewriter
16659
16660 \backslash
16661 altaddress
16662 \family default
16663 ) useless, so the corresponding layouts don't exist, and will have to be
16664  added by hand.
16665 \begin_inset Foot
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669
16670 \emph on
16671 Note from JMarc:
16672 \emph default
16673  actually, \SpecialChar LyX
16674  1.3.0 supports some forms of optional arguments, but this layout
16675  has not been updated yet to take advantage of it.
16676 \end_layout
16677
16678 \end_inset
16679
16680  
16681 \end_layout
16682
16683 \begin_layout Section
16684 Springer Journals (
16685 \family sans
16686 svjour
16687 \family default
16688 )
16689 \end_layout
16690
16691 \begin_layout Standard
16692 by 
16693 \noun on
16694 Martin Vermeer
16695 \end_layout
16696
16697 \begin_layout Subsection
16698 Description
16699 \end_layout
16700
16701 \begin_layout Standard
16702 These are the layout files for some of the journal formats used by Springer
16703  Verlag and listed on 
16704 \begin_inset Flex URL
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708
16709 http://www.springer.de/author/tex/help-journals.html
16710 \end_layout
16711
16712 \end_inset
16713
16714 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16715  now!).
16716  It is a modular system: the things common to all journals are implemented
16717  in 
16718 \family typewriter
16719 svjour.inc
16720 \family default
16721 , which journal-specific layout files (such as, e.
16722 \begin_inset space \thinspace{}
16723 \end_inset
16724
16725 g.
16726 \begin_inset space \space{}
16727 \end_inset
16728
16729
16730 \family typewriter
16731 svjog.layout
16732 \family default
16733  for Journal of Geodesy) can include.
16734 \end_layout
16735
16736 \begin_layout Standard
16737 This means that implementing support for any other Springer journal on this
16738  list is as simple as writing your own 
16739 \family typewriter
16740 sv
16741 \family default
16742 <myjournal>
16743 \family typewriter
16744 .layout
16745 \family default
16746  file following the outline given in 
16747 \family typewriter
16748 svjog.layout
16749 \family default
16750 .
16751  
16752 \end_layout
16753
16754 \begin_layout Standard
16755 It is reasonably well tested only for the Journal of Geodesy.
16756  
16757 \family typewriter
16758 svjour
16759 \family default
16760  and 
16761 \family typewriter
16762 svjog
16763 \family default
16764  come with the standard \SpecialChar LyX
16765  distribution.
16766  Install the relevant class file (downloaded from Springer) in a proper
16767  directory, reconfigure \SpecialChar LaTeX
16768  (in the te\SpecialChar TeX
16769  case by running 
16770 \family typewriter
16771 texhash
16772 \family default
16773 , as root if necessary — doesn't \SpecialChar LyX
16774  take care of this?), reconfigure \SpecialChar LyX
16775  and
16776  it should work.
16777 \end_layout
16778
16779 \begin_layout Subsection
16780 New styles
16781 \end_layout
16782
16783 \begin_layout Standard
16784 A large number of theorem-like styles — 
16785 \family sans
16786 Claim, Conjecture,
16787 \family default
16788  
16789 \family sans
16790 \SpecialChar ldots
16791 Theorem
16792 \family default
16793 .
16794 \end_layout
16795
16796 \begin_layout Standard
16797
16798 \family sans
16799 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16800 _Title, Author_Running, Institute,
16801  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16802 \family default
16803 .
16804  See the Springer class file documentation for details.
16805 \end_layout
16806
16807 \begin_layout Subsection
16808 Supported journals
16809 \end_layout
16810
16811 \begin_layout Itemize
16812
16813 \emph on
16814 Journal of Geodesy
16815 \emph default
16816
16817 \family typewriter
16818 svjog.layout
16819 \family default
16820  — Martin Vermeer
16821 \end_layout
16822
16823 \begin_layout Itemize
16824
16825 \emph on
16826 Probability Theory and Related Fields
16827 \emph default
16828
16829 \family typewriter
16830 svprobth.layout
16831 \family default
16832  — Jean-Marc Lasgouttes
16833 \end_layout
16834
16835 \begin_layout Standard
16836 Add your own, it isn't so hard!
16837 \end_layout
16838
16839 \begin_layout Subsection
16840 Credits
16841 \end_layout
16842
16843 \begin_layout Standard
16844 These files are partly based on the older 
16845 \family typewriter
16846 ejour2.layout
16847 \family default
16848 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16849  2.09 style
16850  file from Springer.
16851  All this, and the 
16852 \family typewriter
16853 ejour2
16854 \family default
16855  layout, are now defunct.
16856  Jean-Marc Lasgouttes helped out big in making me find my way around the
16857  \SpecialChar LyX
16858  layout file mechanism.
16859 \end_layout
16860
16861 \begin_layout Subsection
16862 Bugs
16863 \end_layout
16864
16865 \begin_layout Standard
16866 Probably.
16867  But probably less than in the old hacked-\SpecialChar LaTeX
16868  
16869 \family typewriter
16870 ejour2
16871 \family default
16872 .
16873 \end_layout
16874
16875 \begin_layout Standard
16876 Limitations e.
16877 \begin_inset space \thinspace{}
16878 \end_inset
16879
16880 g.: does not display the number for theorem-like layouts, just #.
16881 \end_layout
16882
16883 \begin_layout Section
16884 Slides [aka 
16885 \noun on
16886 Sli\SpecialChar TeX
16887
16888 \noun default
16889 ]
16890 \begin_inset CommandInset label
16891 LatexCommand label
16892 name "sec:slitex"
16893
16894 \end_inset
16895
16896
16897 \end_layout
16898
16899 \begin_layout Standard
16900 by 
16901 \noun on
16902 John Weiss
16903 \noun default
16904  
16905 \end_layout
16906
16907 \begin_layout Subsection
16908 Introduction
16909 \end_layout
16910
16911 \begin_layout Standard
16912 This section describes how to use \SpecialChar LyX
16913  to make slides for overhead projectors.
16914  There are two document classes that can do this: the default slides class
16915  and the 
16916 \family sans
16917 Foil\SpecialChar TeX
16918
16919 \family default
16920  slides class.
16921  This section documents the former.
16922 \end_layout
16923
16924 \begin_layout Standard
16925 I'm going to say this again, nice and clear, so that there's no misunderstanding
16926 :
16927 \end_layout
16928
16929 \begin_layout Standard
16930 \begin_inset VSpace bigskip
16931 \end_inset
16932
16933
16934 \end_layout
16935
16936 \begin_layout Standard
16937 \align center
16938
16939 \size large
16940 This section documents the class 
16941 \begin_inset Quotes eld
16942 \end_inset
16943
16944
16945 \family sans
16946 slides (default)
16947 \family default
16948
16949 \begin_inset Quotes erd
16950 \end_inset
16951
16952  
16953 \emph on
16954 only.
16955 \end_layout
16956
16957 \begin_layout Standard
16958 \begin_inset VSpace bigskip
16959 \end_inset
16960
16961
16962 \end_layout
16963
16964 \begin_layout Standard
16965 If you're looking for the documentation for 
16966 \begin_inset Quotes eld
16967 \end_inset
16968
16969
16970 \family sans
16971 slides (Foil\SpecialChar TeX
16972 )
16973 \family default
16974
16975 \begin_inset Quotes erd
16976 \end_inset
16977
16978 , check out section
16979 \begin_inset space ~
16980 \end_inset
16981
16982
16983 \begin_inset CommandInset ref
16984 LatexCommand ref
16985 reference "sec:foiltex"
16986
16987 \end_inset
16988
16989 .
16990  The 
16991 \family sans
16992 foils
16993 \family default
16994  class [
16995 \begin_inset Quotes eld
16996 \end_inset
16997
16998
16999 \family sans
17000 slides (Foil\SpecialChar TeX
17001 )
17002 \family default
17003
17004 \begin_inset Quotes erd
17005 \end_inset
17006
17007 ] is actually somewhat better than the default 
17008 \family sans
17009 slides
17010 \family default
17011  class,
17012 \begin_inset Foot
17013 status collapsed
17014
17015 \begin_layout Plain Layout
17016 \SpecialChar ldots
17017 or so I've been told repeatedly by its advocates.
17018  Having never used it, I have no idea if this claim is true or not.
17019 \end_layout
17020
17021 \end_inset
17022
17023  which this section documents.
17024 \end_layout
17025
17026 \begin_layout Standard
17027 This class is the \SpecialChar LaTeX2e
17028  improvement of the old 
17029 \noun on
17030 Sli\SpecialChar TeX
17031
17032 \noun default
17033  package.
17034  Every \SpecialChar LaTeX2e
17035  distribution includes this class [which I'll just refer to as 
17036 \begin_inset Quotes eld
17037 \end_inset
17038
17039
17040 \family sans
17041 slides
17042 \family default
17043
17044 \begin_inset Quotes erd
17045 \end_inset
17046
17047  from now on], so you're bound to have it.
17048  As I noted earlier, there are other classes, such as 
17049 \family sans
17050 foils
17051 \family default
17052 , which also produce slides for overhead projectors and do a better job
17053  at it.
17054  However, there are some things which 
17055 \family sans
17056 slides
17057 \family default
17058  can do which the others can't, such as generate overlays.
17059  Read on to learn more!
17060 \end_layout
17061
17062 \begin_layout Subsection
17063 Getting Started
17064 \begin_inset CommandInset label
17065 LatexCommand label
17066 name "sec:slidesetup"
17067
17068 \end_inset
17069
17070
17071 \end_layout
17072
17073 \begin_layout Standard
17074 Obviously, to use this document class, you need to select 
17075 \begin_inset Quotes eld
17076 \end_inset
17077
17078
17079 \family sans
17080 slides (default)
17081 \family default
17082
17083 \begin_inset Quotes erd
17084 \end_inset
17085
17086  from the class list in the 
17087 \family sans
17088 Document\SpecialChar menuseparator
17089 Settings
17090 \family default
17091  dialog.
17092  There are some other special things you should know about this class:
17093 \end_layout
17094
17095 \begin_layout Itemize
17096 Don't bother changing the options 
17097 \family sans
17098 Sides and Columns
17099 \family default
17100 .
17101  They're not supported by the 
17102 \family sans
17103 slides
17104 \family default
17105  class, anyways.
17106 \end_layout
17107
17108 \begin_layout Itemize
17109 The option 
17110 \family sans
17111 Page
17112 \begin_inset space ~
17113 \end_inset
17114
17115 style
17116 \family default
17117  behaves a bit differently for this class.
17118  The possible choices and what they do are as follows:
17119 \end_layout
17120
17121 \begin_deeper
17122 \begin_layout Description
17123
17124 \family sans
17125 plain
17126 \family default
17127  The final output contains page numbers in the lower right corner.
17128 \end_layout
17129
17130 \begin_layout Description
17131
17132 \family sans
17133 headings
17134 \family default
17135  Like 
17136 \family sans
17137 plain
17138 \family default
17139 , but also prints out any time markers you've put in.
17140  This is the default.
17141 \end_layout
17142
17143 \begin_layout Description
17144
17145 \family sans
17146 empty
17147 \family default
17148  The final output contains no page numbers, time markers, or alignment markers.
17149 \end_layout
17150
17151 \end_deeper
17152 \begin_layout Itemize
17153 The 
17154 \family sans
17155 slides
17156 \family default
17157  class has an extra option: 
17158 \family typewriter
17159 clock
17160 \family default
17161 .
17162  To use it, put 
17163 \begin_inset Quotes eld
17164 \end_inset
17165
17166
17167 \family typewriter
17168 clock
17169 \family default
17170
17171 \begin_inset Quotes erd
17172 \end_inset
17173
17174  in the extra class options.
17175 \end_layout
17176
17177 \begin_deeper
17178 \begin_layout Standard
17179 Using this options allows you to add time markers to 
17180 \family sans
17181 Note
17182 \family default
17183 s.
17184  See section
17185 \begin_inset space ~
17186 \end_inset
17187
17188
17189 \begin_inset CommandInset ref
17190 LatexCommand ref
17191 reference "sec:slideNote"
17192
17193 \end_inset
17194
17195  for more details.
17196 \end_layout
17197
17198 \end_deeper
17199 \begin_layout Standard
17200 You can also use the template file 
17201 \begin_inset Quotes eld
17202 \end_inset
17203
17204
17205 \family typewriter
17206 slides.lyx
17207 \family default
17208
17209 \begin_inset Quotes erd
17210 \end_inset
17211
17212  to automatically set up a document to use the 
17213 \family sans
17214 slides
17215 \family default
17216  class [using 
17217 \family sans
17218 File\SpecialChar menuseparator
17219 New
17220 \begin_inset space ~
17221 \end_inset
17222
17223 from
17224 \begin_inset space ~
17225 \end_inset
17226
17227 Template
17228 \family default
17229  to open your new document].
17230  The template file also contains some examples of the special paragraph
17231  environments used by this class.
17232  I'll describe those next.
17233 \end_layout
17234
17235 \begin_layout Subsection
17236 Paragraph Environments
17237 \end_layout
17238
17239 \begin_layout Subsubsection
17240 Supported Environments
17241 \end_layout
17242
17243 \begin_layout Standard
17244 The first thing you'll notice when you start up a new 
17245 \family sans
17246 slides
17247 \family default
17248  document is the font size and type: it's the equivalent of the size 
17249 \begin_inset Quotes eld
17250 \end_inset
17251
17252
17253 \family sans
17254 Largest
17255 \family default
17256
17257 \begin_inset Quotes erd
17258 \end_inset
17259
17260  in the 
17261 \family sans
17262 Sans
17263 \begin_inset space ~
17264 \end_inset
17265
17266 Serif
17267 \family default
17268  font.
17269  This is also what's used in the output.
17270  Think of this as a 
17271 \begin_inset Quotes eld
17272 \end_inset
17273
17274 visual cue
17275 \begin_inset Quotes erd
17276 \end_inset
17277
17278  to remind you that this is a slide.
17279  Your final slides will use a larger font; ergo, you'll have less space.
17280  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17281 \end_layout
17282
17283 \begin_layout Standard
17284 The next thing that becomes obvious is the changes to the paragraph environment
17285  pull-down box [at the far-left end of the toolbar].
17286  Most of the paragraph environments you're used to seeing are missing.
17287  There are also five new ones.
17288  That's because the 
17289 \family sans
17290 slides
17291 \family default
17292  class itself only supports certain paragraph environments:
17293 \end_layout
17294
17295 \begin_layout Itemize
17296
17297 \family sans
17298 Standard
17299 \end_layout
17300
17301 \begin_layout Itemize
17302
17303 \family sans
17304 Itemize
17305 \end_layout
17306
17307 \begin_layout Itemize
17308
17309 \family sans
17310 Enumerate
17311 \end_layout
17312
17313 \begin_layout Itemize
17314
17315 \family sans
17316 Description
17317 \end_layout
17318
17319 \begin_layout Itemize
17320
17321 \family sans
17322 List
17323 \end_layout
17324
17325 \begin_layout Itemize
17326
17327 \family sans
17328 Quotation
17329 \end_layout
17330
17331 \begin_layout Itemize
17332
17333 \family sans
17334 Quote
17335 \end_layout
17336
17337 \begin_layout Itemize
17338
17339 \family sans
17340 Verse
17341 \end_layout
17342
17343 \begin_layout Itemize
17344
17345 \family sans
17346 Caption
17347 \end_layout
17348
17349 \begin_layout Itemize
17350
17351 \family sans
17352 \SpecialChar LyX
17353 -Code
17354 \end_layout
17355
17356 \begin_layout Itemize
17357
17358 \family sans
17359 Comment
17360 \end_layout
17361
17362 \begin_layout Standard
17363 All of the other standard environments, including the section-heading environmen
17364 ts, aren't used in the 
17365 \family sans
17366 slides
17367 \family default
17368  class.
17369 \end_layout
17370
17371 \begin_layout Standard
17372 On the other hand, you'll notice the following new environments:
17373 \end_layout
17374
17375 \begin_layout Itemize
17376
17377 \family sans
17378 Slide
17379 \end_layout
17380
17381 \begin_layout Itemize
17382
17383 \family sans
17384 Overlay
17385 \end_layout
17386
17387 \begin_layout Itemize
17388
17389 \family sans
17390 Note
17391 \end_layout
17392
17393 \begin_layout Itemize
17394
17395 \family sans
17396 InvisibleText
17397 \end_layout
17398
17399 \begin_layout Itemize
17400
17401 \family sans
17402 VisibleText
17403 \end_layout
17404
17405 \begin_layout Standard
17406 These five are kind of quirky, due to a 
17407 \begin_inset Quotes eld
17408 \end_inset
17409
17410 feature
17411 \begin_inset Quotes erd
17412 \end_inset
17413
17414  in \SpecialChar LyX
17415 .
17416  You see, \SpecialChar LyX
17417  doesn't permit you to nest any other paragraph environment into
17418  an empty environment.
17419  Now, that's fine and dandy, but it means that you wouldn't be able to start
17420  a slide with anything except plain text.
17421  To deal with this, I've performed a little 
17422 \begin_inset Quotes eld
17423 \end_inset
17424
17425 \SpecialChar LaTeX
17426  magic.
17427 \begin_inset Quotes erd
17428 \end_inset
17429
17430  
17431 \end_layout
17432
17433 \begin_layout Subsubsection
17434 Quirks of the New Environments
17435 \begin_inset CommandInset label
17436 LatexCommand label
17437 name "sec:slideQuirk"
17438
17439 \end_inset
17440
17441
17442 \end_layout
17443
17444 \begin_layout Standard
17445 All five of the new paragraph environments are somewhat quirky due to inherent
17446  limitiations in the current version of \SpecialChar LyX
17447 .
17448  As I just mentioned, \SpecialChar LyX
17449  forbids environments that begin with another environment.
17450  To get around this, the 
17451 \family sans
17452 Slide
17453 \family default
17454  environment isn't a paragraph environment as described in the 
17455 \emph on
17456 User's Guide
17457 \emph default
17458 .
17459  
17460 \end_layout
17461
17462 \begin_layout Standard
17463 You should consider 
17464 \family sans
17465 Slide
17466 \family default
17467
17468 \family sans
17469 Overlay
17470 \family default
17471 , and 
17472 \family sans
17473 Note
17474 \family default
17475  to be 
17476 \begin_inset Quotes eld
17477 \end_inset
17478
17479 pseudo-environments.
17480 \begin_inset Quotes erd
17481 \end_inset
17482
17483  They look like a section heading or a 
17484 \begin_inset Quotes eld
17485 \end_inset
17486
17487
17488 \family sans
17489 Caption
17490 \family default
17491 ,
17492 \begin_inset Quotes erd
17493 \end_inset
17494
17495  but really begin a [and, if necessary, end the previous] paragraph environment.
17496  Likewise, treat 
17497 \family sans
17498 InvisibleText
17499 \family default
17500  and 
17501 \family sans
17502 VisibleText
17503 \family default
17504  as 
17505 \begin_inset Quotes eld
17506 \end_inset
17507
17508 pseudo-commands.
17509 \begin_inset Quotes erd
17510 \end_inset
17511
17512  These two perform some action.
17513 \end_layout
17514
17515 \begin_layout Standard
17516 A common feature of all five environments, 
17517 \family sans
17518 Slide
17519 \family default
17520
17521 \family sans
17522 Overlay
17523 \family default
17524
17525 \family sans
17526 Note
17527 \family default
17528
17529 \family sans
17530 InvisibleText
17531 \family default
17532  and 
17533 \family sans
17534 VisibleText
17535 \family default
17536 , is a rather long-ish label.
17537  The text following this label — ordinarily the contents of the paragraph
17538  environment — is utterly irrelevant for 
17539 \family sans
17540 Slide
17541 \family default
17542
17543 \family sans
17544 Overlay
17545 \family default
17546
17547 \family sans
17548 Note
17549 \family default
17550
17551 \family sans
17552 InvisibleText
17553 \family default
17554  and 
17555 \family sans
17556 VisibleText
17557 \family default
17558 .
17559  \SpecialChar LyX
17560  completely ignores it.
17561  In fact, you can leave these five environments completely empty.
17562  
17563 \end_layout
17564
17565 \begin_layout Standard
17566 While you don't 
17567 \emph on
17568 have
17569 \emph default
17570  to put any text after the rather long-ish label, you might want to.
17571  This could be a short description of the contents of the 
17572 \family sans
17573 Slide
17574 \family default
17575 , for example.
17576  In that case, enter your descriptive comment and hit 
17577 \family sans
17578 Return
17579 \family default
17580  as you normally would.
17581 \end_layout
17582
17583 \begin_layout Standard
17584 If, on the other hand, you don't want to enter any descriptive text, you'll
17585  hit another \SpecialChar LyX
17586  quirk.
17587  \SpecialChar LyX
17588 , like nature, abhors a vacuum, and will not let you start a new paragraph
17589  environment until you put something in the old one.
17590  So, do this:
17591 \end_layout
17592
17593 \begin_layout Itemize
17594 Start entering the text that will 
17595 \emph on
17596 follow
17597 \emph default
17598  the new 
17599 \family sans
17600 Slide
17601 \family default
17602
17603 \family sans
17604 Overlay
17605 \family default
17606
17607 \family sans
17608 Note
17609 \family default
17610
17611 \family sans
17612 InvisibleText
17613 \family default
17614  or 
17615 \family sans
17616 VisibleText
17617 \family default
17618 .
17619  
17620 \end_layout
17621
17622 \begin_layout Itemize
17623 Now move to the beginning of that paragraph.
17624  
17625 \end_layout
17626
17627 \begin_layout Itemize
17628 Next, hit 
17629 \family sans
17630 Return
17631 \family default
17632 .
17633  
17634 \end_layout
17635
17636 \begin_layout Itemize
17637 Finally, change this new, empty paragraph to a 
17638 \family sans
17639 Slide
17640 \family default
17641
17642 \family sans
17643 Overlay
17644 \family default
17645
17646 \family sans
17647 Note
17648 \family default
17649
17650 \family sans
17651 InvisibleText
17652 \family default
17653  or 
17654 \family sans
17655 VisibleText
17656 \family default
17657 .
17658  
17659 \end_layout
17660
17661 \begin_layout Standard
17662 Some future version of \SpecialChar LyX
17663  will, hopefully, resolve this quirkiness\SpecialChar ldots
17664
17665 \end_layout
17666
17667 \begin_layout Subsection
17668 Making a Presentation with 
17669 \family sans
17670 Slide
17671 \family default
17672
17673 \family sans
17674 Overlay
17675 \family default
17676  and 
17677 \family sans
17678 Note
17679 \end_layout
17680
17681 \begin_layout Subsubsection
17682 Using the 
17683 \family sans
17684 Slide
17685 \family default
17686  Environment
17687 \end_layout
17688
17689 \begin_layout Standard
17690 If you're expecting this section to teach you how to actually make a presentatio
17691 n, you'll be sorely disappointed.
17692  Naturally, I'll describe all of the ways the 
17693 \family sans
17694 slides
17695 \family default
17696  class can assist you in preparing the materials for a presentation.
17697  Filling in the contents, however, is up to you.
17698  [Then again, that 
17699 \emph on
17700 is
17701 \emph default
17702  the \SpecialChar LyX
17703  philosophy.]
17704 \end_layout
17705
17706 \begin_layout Standard
17707 Choosing the 
17708 \family sans
17709 Slide
17710 \family default
17711  environment [in the manner described in section
17712 \begin_inset space ~
17713 \end_inset
17714
17715
17716 \begin_inset CommandInset ref
17717 LatexCommand ref
17718 reference "sec:slideQuirk"
17719
17720 \end_inset
17721
17722 ] tells \SpecialChar LyX
17723  to begin a new slide [duh].
17724  The label for this environment/
17725 \begin_inset Quotes erd
17726 \end_inset
17727
17728 pseudo-command
17729 \begin_inset Quotes erd
17730 \end_inset
17731
17732  is an 
17733 \begin_inset Quotes eld
17734 \end_inset
17735
17736 ASCII line,
17737 \begin_inset Quotes erd
17738 \end_inset
17739
17740  in cool blue, followed by the label, 
17741 \begin_inset Quotes eld
17742 \end_inset
17743
17744 NewSlide:
17745 \begin_inset Quotes erd
17746 \end_inset
17747
17748 .
17749  Any text or paragraph environments that follow this one go on the new slide.
17750  It's that simple.
17751 \end_layout
17752
17753 \begin_layout Standard
17754 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17755
17756  (this can be specified in the 
17757 \family sans
17758 Paragraph Layout
17759 \family default
17760  dialog).
17761  In fact, you'll want to, once you finish entering the contents of one slide.
17762  If you've entered more text than can physically fit on a slide, the extra
17763  overflows onto a new slide.
17764  I don't recommend doing this, however, since the overflow slide won't have
17765  any page number on it.
17766  Furthermore, it may interfere with any 
17767 \family sans
17768 Overlay
17769 \family default
17770  you've made to accompany the oversized 
17771 \family sans
17772 Slide
17773 \family default
17774 .
17775 \end_layout
17776
17777 \begin_layout Standard
17778 The 
17779 \family sans
17780 Overlay
17781 \family default
17782  and 
17783 \family sans
17784 Note
17785 \family default
17786  environments work the same way as the 
17787 \family sans
17788 Slide
17789 \family default
17790  environment.
17791  They both create an 
17792 \begin_inset Quotes eld
17793 \end_inset
17794
17795 ASCII line
17796 \begin_inset Quotes erd
17797 \end_inset
17798
17799  followed by a label [
17800 \begin_inset Quotes eld
17801 \end_inset
17802
17803 NewOverlay:
17804 \begin_inset Quotes erd
17805 \end_inset
17806
17807  and 
17808 \begin_inset Quotes eld
17809 \end_inset
17810
17811 NewNote:
17812 \begin_inset Quotes erd
17813 \end_inset
17814
17815 , respectively].
17816  The color is a stunning magenta instead of blue, and the 
17817 \begin_inset Quotes eld
17818 \end_inset
17819
17820 ASCII line
17821 \begin_inset Quotes erd
17822 \end_inset
17823
17824  will look different, in style and in length.
17825  The label fonts of all three also differ from one another.
17826 \end_layout
17827
17828 \begin_layout Standard
17829 As with a 
17830 \family sans
17831 Slide
17832 \family default
17833 , if the contents of a 
17834 \family sans
17835 Note
17836 \family default
17837  or 
17838 \family sans
17839 Overlay
17840 \family default
17841  exceed the physical size of a slide or sheet of paper, the extra will overflow
17842  onto a new sheet.
17843  Again, you should avoid this.
17844  It defeats the whole purpose of 
17845 \family sans
17846 Note
17847 \family default
17848 s and 
17849 \family sans
17850 Overlay
17851 \family default
17852 s.
17853 \end_layout
17854
17855 \begin_layout Subsubsection
17856 Using 
17857 \family sans
17858 Overlay
17859 \family default
17860  with 
17861 \family sans
17862 Slide
17863 \end_layout
17864
17865 \begin_layout Standard
17866 The idea behind an 
17867 \family sans
17868 Overlay
17869 \family default
17870  is a slide that sits atop another slide.
17871  Perhaps you wish to discuss a figure on the main 
17872 \family sans
17873 Slide
17874 \family default
17875  before displaying the text associated with it.
17876  One way to accomplish this is tape a flap of dark paper over the part of
17877  the 
17878 \family sans
17879 Slide
17880 \family default
17881  you want to display later.
17882  This method fails, however, if you wish to overlap one graph with another,
17883  for example.
17884  You would then have to fumble while speaking to align the two separate,
17885  overlapping 
17886 \family sans
17887 Slide
17888 \family default
17889 s to align the two graphs.
17890  The use of an 
17891 \family sans
17892 Overlay
17893 \family default
17894  environment in both cases makes life much easier.
17895 \end_layout
17896
17897 \begin_layout Standard
17898 Each 
17899 \family sans
17900 Overlay
17901 \family default
17902  receives the page number of its 
17903 \begin_inset Quotes eld
17904 \end_inset
17905
17906 parent
17907 \begin_inset Quotes erd
17908 \end_inset
17909
17910  
17911 \family sans
17912 Slide
17913 \family default
17914 , appended by 
17915 \begin_inset Quotes eld
17916 \end_inset
17917
17918
17919 \family typewriter
17920 -a
17921 \family default
17922
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926 .
17927 \begin_inset Foot
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931 Presumably, mutliple 
17932 \family sans
17933 Overlay
17934 \family default
17935 s would have 
17936 \begin_inset Quotes eld
17937 \end_inset
17938
17939
17940 \family typewriter
17941 -a
17942 \family default
17943
17944 \begin_inset Quotes erd
17945 \end_inset
17946
17947
17948 \begin_inset Quotes eld
17949 \end_inset
17950
17951
17952 \family typewriter
17953 -b
17954 \family default
17955
17956 \begin_inset Quotes erd
17957 \end_inset
17958
17959
17960 \begin_inset Quotes eld
17961 \end_inset
17962
17963
17964 \family typewriter
17965 -c
17966 \family default
17967
17968 \begin_inset Quotes erd
17969 \end_inset
17970
17971 , etc.
17972 \begin_inset space ~
17973 \end_inset
17974
17975 appended to the page number of the parent 
17976 \family sans
17977 Slide
17978 \family default
17979 .
17980  
17981 \end_layout
17982
17983 \end_inset
17984
17985  Clearly, you want the contents of both the 
17986 \family sans
17987 Slide
17988 \family default
17989  and the 
17990 \family sans
17991 Overlay
17992 \family default
17993  to each fit on a single physical slide! You should probably consider an
17994  
17995 \family sans
17996 Overlay
17997 \family default
17998  as 
17999 \begin_inset Quotes eld
18000 \end_inset
18001
18002 part of
18003 \begin_inset Quotes erd
18004 \end_inset
18005
18006  a 
18007 \family sans
18008 Slide
18009 \family default
18010 .
18011  Indeed, the \SpecialChar LyX
18012  
18013 \family sans
18014 slides
18015 \family default
18016  class provides a visual cue for this: the label at the start of an 
18017 \family sans
18018 Overlay
18019 \family default
18020  is shorter than that at the start of a 
18021 \family sans
18022 Slide
18023 \family default
18024 .
18025  Lastly, when you generate printable output, you'll find alignment markers
18026  in all four corners of both the 
18027 \family sans
18028 Overlay
18029 \family default
18030  page and its parent 
18031 \family sans
18032 Slide
18033 \family default
18034 .
18035  These will assist you in lining up the two physical slides.
18036 \end_layout
18037
18038 \begin_layout Standard
18039 The major problem in overlaying two slides is aligning the contents of the
18040  two transparencies.
18041  How much space should you leave for that graph on the second slide? Worse
18042  still, what if you want a graph and a sentence on second slide, but there
18043  is text on the main transparency that goes in between them? You could try
18044  and insert vertical space of the right size.
18045  The better way is to use 
18046 \family sans
18047 InvisibleText
18048 \family default
18049  and 
18050 \family sans
18051 VisibleText
18052 \family default
18053 .
18054 \end_layout
18055
18056 \begin_layout Standard
18057 As their names imply, 
18058 \family sans
18059 InvisibleText
18060 \family default
18061  and 
18062 \family sans
18063 VisibleText
18064 \family default
18065  are two command-like paragraph environments that make all subsequent text
18066  invisible and visible, respectively.
18067  Note from section
18068 \begin_inset space ~
18069 \end_inset
18070
18071
18072 \begin_inset CommandInset ref
18073 LatexCommand ref
18074 reference "sec:slideQuirk"
18075
18076 \end_inset
18077
18078  that you don't place anything 
18079 \emph on
18080 into
18081 \emph default
18082  these two environments, however.
18083  When you create an 
18084 \family sans
18085 InvisibleText
18086 \family default
18087 , it inserts a centered, sky-blue label into the page reading 
18088 \begin_inset Quotes eld
18089 \end_inset
18090
18091 <Invisible Text Follows>
18092 \begin_inset Quotes erd
18093 \end_inset
18094
18095 .
18096  For paragraphs following this label, the parts of the 
18097 \family sans
18098 Slide
18099 \family default
18100  [or 
18101 \family sans
18102 Overlay
18103 \family default
18104 ; it doesn't matter which] where they would be contain instead blank space.
18105  
18106 \end_layout
18107
18108 \begin_layout Standard
18109 For 
18110 \family sans
18111 VisibleText
18112 \family default
18113 , the corresponding centered label is 
18114 \begin_inset Quotes eld
18115 \end_inset
18116
18117 <Visible Text Follows>
18118 \begin_inset Quotes erd
18119 \end_inset
18120
18121  in blazing green.
18122  Paragraphs following this label behave normally.
18123  Note that the beginning of a new 
18124 \family sans
18125 Slide
18126 \family default
18127
18128 \family sans
18129 Overlay
18130 \family default
18131 , or 
18132 \family sans
18133 Note
18134 \family default
18135  automatically shuts off an 
18136 \family sans
18137 InvisibleText
18138 \family default
18139 .
18140  It's therefore not necessary to use 
18141 \family sans
18142 VisibleText
18143 \family default
18144  at the end of a 
18145 \family sans
18146 Slide
18147 \family default
18148 .
18149 \end_layout
18150
18151 \begin_layout Standard
18152 By now, it should be obvious how to create overlay transparencies using
18153  the proper combination of 
18154 \family sans
18155 InvisibleText
18156 \family default
18157  and 
18158 \family sans
18159 VisibleText
18160 \family default
18161  on a 
18162 \family sans
18163 Slide
18164 \family default
18165  and 
18166 \family sans
18167 Overlay
18168 \family default
18169 :
18170 \end_layout
18171
18172 \begin_layout Enumerate
18173 Create a 
18174 \family sans
18175 Slide
18176 \family default
18177 , including everything that will appear on it, whether on the main slide
18178  or on the 
18179 \family sans
18180 Overlay
18181 \family default
18182 .
18183 \end_layout
18184
18185 \begin_layout Enumerate
18186 Before each figure or paragraph that will appear only on the 
18187 \family sans
18188 Overlay
18189 \family default
18190 , insert an 
18191 \family sans
18192 InvisibleText
18193 \family default
18194  environment.
18195  If necessary, insert a 
18196 \family sans
18197 VisibleText
18198 \family default
18199  environment after the 
18200 \family sans
18201 Overlay
18202 \family default
18203 -only text.
18204 \end_layout
18205
18206 \begin_layout Enumerate
18207 Start an 
18208 \family sans
18209 Overlay
18210 \family default
18211  immediately following the 
18212 \family sans
18213 Slide
18214 \family default
18215 .
18216 \end_layout
18217
18218 \begin_layout Enumerate
18219 Copy the contents of this 
18220 \family sans
18221 Slide
18222 \family default
18223  into the 
18224 \family sans
18225 Overlay
18226 \family default
18227 .
18228 \end_layout
18229
18230 \begin_layout Enumerate
18231 Within the 
18232 \family sans
18233 Overlay
18234 \family default
18235 , change all of the 
18236 \family sans
18237 InvisibleText
18238 \family default
18239  lines to 
18240 \family sans
18241 VisibleText
18242 \family default
18243  and vice-versa.
18244 \end_layout
18245
18246 \begin_layout Standard
18247 That's it.
18248  You've just made an 
18249 \family sans
18250 Overlay
18251 \family default
18252 .
18253 \end_layout
18254
18255 \begin_layout Standard
18256 There's one problem with the way I've designed the \SpecialChar LyX
18257  
18258 \family sans
18259 slides
18260 \family default
18261  class: you can't make text in the middle of a paragraph invisible, nor
18262  make text in the middle of an invisible paragraph visible again.
18263  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18264  codes.
18265 \begin_inset Foot
18266 status collapsed
18267
18268 \begin_layout Plain Layout
18269 The commands of interest are: 
18270 \end_layout
18271
18272 \begin_layout Itemize
18273
18274 \family typewriter
18275 {
18276 \backslash
18277 invisible \SpecialChar ldots
18278  }
18279 \end_layout
18280
18281 \begin_layout Itemize
18282
18283 \family typewriter
18284 {
18285 \backslash
18286 visible \SpecialChar ldots
18287  }
18288 \end_layout
18289
18290 \begin_layout Plain Layout
18291 \SpecialChar ldots
18292 and need to be marked as \SpecialChar TeX
18293 .
18294  The text whose 
18295 \begin_inset Quotes eld
18296 \end_inset
18297
18298 visibility
18299 \begin_inset Quotes erd
18300 \end_inset
18301
18302  you wish to change goes in between the brackets [and after the 
18303 \family typewriter
18304
18305 \backslash
18306 invisible
18307 \family default
18308  or 
18309 \family typewriter
18310
18311 \backslash
18312 visible
18313 \family default
18314  command].
18315  If you don't know how to mark text as \SpecialChar TeX
18316 , see the appropriate section of
18317  the 
18318 \emph on
18319 User's Guide
18320 \emph default
18321 .
18322 \end_layout
18323
18324 \end_inset
18325
18326
18327 \end_layout
18328
18329 \begin_layout Subsubsection
18330 Using 
18331 \family sans
18332 Note
18333 \family default
18334  with 
18335 \family sans
18336 Slide
18337 \family default
18338
18339 \begin_inset CommandInset label
18340 LatexCommand label
18341 name "sec:slideNote"
18342
18343 \end_inset
18344
18345
18346 \end_layout
18347
18348 \begin_layout Standard
18349 Like an 
18350 \family sans
18351 Overlay
18352 \family default
18353 , a 
18354 \family sans
18355 Note
18356 \family default
18357  is associated with a 
18358 \begin_inset Quotes eld
18359 \end_inset
18360
18361 parent
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365  
18366 \family sans
18367 Slide
18368 \family default
18369 .
18370  Here, too, the \SpecialChar LyX
18371  
18372 \family sans
18373 slides
18374 \family default
18375  class provides visual cues.
18376  The label for a 
18377 \family sans
18378 Note
18379 \family default
18380  is shorter than that of a 
18381 \family sans
18382 Slide
18383 \family default
18384  [yet longer than that of an 
18385 \family sans
18386 Overlay
18387 \family default
18388 ] and, like the label of an 
18389 \family sans
18390 Overlay
18391 \family default
18392  is shockingly magenta.
18393  Additionally, the printed 
18394 \family sans
18395 Note
18396 \family default
18397  has the page number of its 
18398 \begin_inset Quotes eld
18399 \end_inset
18400
18401 parent
18402 \begin_inset Quotes erd
18403 \end_inset
18404
18405  
18406 \family sans
18407 Slide
18408 \family default
18409 , appended by 
18410 \begin_inset Quotes eld
18411 \end_inset
18412
18413
18414 \family typewriter
18415 -
18416 \family default
18417 1
18418 \begin_inset Quotes erd
18419 \end_inset
18420
18421
18422 \begin_inset Quotes eld
18423 \end_inset
18424
18425
18426 \family typewriter
18427 -
18428 \family default
18429 2
18430 \begin_inset Quotes erd
18431 \end_inset
18432
18433
18434 \begin_inset Quotes eld
18435 \end_inset
18436
18437
18438 \family typewriter
18439 -
18440 \family default
18441 3
18442 \begin_inset Quotes erd
18443 \end_inset
18444
18445 , etc.
18446  You can have multiple 
18447 \family sans
18448 Note
18449 \family default
18450 s associated with a single 
18451 \family sans
18452 Slide
18453 \family default
18454 , and, as with 
18455 \family sans
18456 Slide
18457 \family default
18458  and 
18459 \family sans
18460 Overlay
18461 \family default
18462 , you'll probably want to break up long 
18463 \family sans
18464 Note
18465 \family default
18466 s so that they fit on a single sheet of paper.
18467 \end_layout
18468
18469 \begin_layout Standard
18470 The purpose of a 
18471 \family sans
18472 Note
18473 \family default
18474  is obvious: it contains anything additional you might want to say about
18475  a 
18476 \family sans
18477 Slide
18478 \family default
18479 .
18480  It could also be used as a sheet of reminders for a particular 
18481 \family sans
18482 Slide
18483 \family default
18484 .
18485  In the case of the latter, you might want to make use of time markers.
18486  Currently, the \SpecialChar LyX
18487  
18488 \family sans
18489 slides
18490 \family default
18491  class has no 
18492 \begin_inset Quotes eld
18493 \end_inset
18494
18495 native
18496 \begin_inset Quotes erd
18497 \end_inset
18498
18499  support for time markers, a 
18500 \noun on
18501 Sli\SpecialChar TeX
18502
18503 \noun default
18504  feature.
18505  So, you'll have to resort to using the \SpecialChar LaTeX
18506  codes.
18507 \end_layout
18508
18509 \begin_layout Standard
18510 To use time markers, you'll need to specify the extra class option 
18511 \begin_inset Quotes eld
18512 \end_inset
18513
18514
18515 \family typewriter
18516 clock
18517 \family default
18518
18519 \begin_inset Quotes erd
18520 \end_inset
18521
18522  [see section
18523 \begin_inset space ~
18524 \end_inset
18525
18526
18527 \begin_inset CommandInset ref
18528 LatexCommand ref
18529 reference "sec:slidesetup"
18530
18531 \end_inset
18532
18533 ].
18534  This option turns on timing marks, which will appear in the lower-left-hand
18535  corner of every 
18536 \family sans
18537 Note
18538 \family default
18539  you generate.
18540  To set what appears in the time marker, you use the \SpecialChar LaTeX
18541  commands 
18542 \begin_inset Quotes eld
18543 \end_inset
18544
18545
18546 \family typewriter
18547
18548 \backslash
18549 settime{}
18550 \family default
18551
18552 \begin_inset Quotes erd
18553 \end_inset
18554
18555  and 
18556 \begin_inset Quotes eld
18557 \end_inset
18558
18559
18560 \family typewriter
18561
18562 \backslash
18563 addtime{}
18564 \family default
18565
18566 \begin_inset Quotes erd
18567 \end_inset
18568
18569 .
18570  The arguments of both commands are time measured in seconds.
18571  
18572 \begin_inset Quotes eld
18573 \end_inset
18574
18575
18576 \family typewriter
18577
18578 \backslash
18579 settime{}
18580 \family default
18581
18582 \begin_inset Quotes erd
18583 \end_inset
18584
18585  sets the time marker to a given time.
18586  
18587 \begin_inset Quotes eld
18588 \end_inset
18589
18590
18591 \family typewriter
18592
18593 \backslash
18594 addtime{}
18595 \family default
18596
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600  increments the time marker by the specified amount.
18601  Using time markers and 
18602 \family sans
18603 Note
18604 \family default
18605 s in this fashion, you can remind yourself how much time to spend on a particula
18606
18607 \family sans
18608 Slide
18609 \family default
18610 .
18611 \end_layout
18612
18613 \begin_layout Standard
18614 There's one last feature to describe.
18615  Clearly, you'd like to print out all of your 
18616 \family sans
18617 Slide
18618 \family default
18619 s and 
18620 \family sans
18621 Overlay
18622 \family default
18623 s on transparencies while printing all of your 
18624 \family sans
18625 Note
18626 \family default
18627 s on plain paper.
18628  However, a 
18629 \family sans
18630 Note
18631 \family default
18632  
18633 \emph on
18634 must
18635 \emph default
18636  follow the 
18637 \family sans
18638 Slide
18639 \family default
18640  with which it is associated.
18641  What's a person to do?
18642 \end_layout
18643
18644 \begin_layout Standard
18645 Luckily, there are two \SpecialChar LaTeX
18646  commands that allow you to select what to print
18647  out.
18648  Both must be placed into the preamble of your document.
18649  The command 
18650 \begin_inset Quotes eld
18651 \end_inset
18652
18653
18654 \family typewriter
18655
18656 \backslash
18657 onlyslides{
18658 \backslash
18659 slides}
18660 \family default
18661
18662 \begin_inset Quotes erd
18663 \end_inset
18664
18665  will cause the output to contain only the 
18666 \family sans
18667 Slide
18668 \family default
18669 s and 
18670 \family sans
18671 Overlay
18672 \family default
18673 s.
18674  Correspondingly, the command 
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678
18679 \family typewriter
18680
18681 \backslash
18682 onlynotes{
18683 \backslash
18684 notes}
18685 \family default
18686
18687 \begin_inset Quotes erd
18688 \end_inset
18689
18690  prevents the output of anything but 
18691 \family sans
18692 Note
18693 \family default
18694 s.
18695  I'd advise placing both commands in the preamble and initially comment
18696  both out.
18697  You can then preview your entire presentation as you write.
18698  When you're done writing, you can then uncomment one of the two to select
18699  what you want to print.
18700  I like to uncomment 
18701 \begin_inset Quotes eld
18702 \end_inset
18703
18704
18705 \family typewriter
18706
18707 \backslash
18708 onlyslides{
18709 \backslash
18710 slides}
18711 \family default
18712
18713 \begin_inset Quotes erd
18714 \end_inset
18715
18716  , print to a file with 
18717 \begin_inset Quotes eld
18718 \end_inset
18719
18720
18721 \family typewriter
18722 -slides
18723 \family default
18724
18725 \begin_inset Quotes erd
18726 \end_inset
18727
18728  in its name, comment it back out, then uncomment 
18729 \begin_inset Quotes eld
18730 \end_inset
18731
18732
18733 \family typewriter
18734
18735 \backslash
18736 onlynotes{
18737 \backslash
18738 notes}
18739 \family default
18740
18741 \begin_inset Quotes erd
18742 \end_inset
18743
18744  and print to a 
18745 \begin_inset Quotes eld
18746 \end_inset
18747
18748
18749 \family typewriter
18750 *-notes.ps
18751 \family default
18752
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756  file.
18757  I can then send either file to a printer, loading transparencies or plain
18758  paper as appropriate.
18759 \end_layout
18760
18761 \begin_layout Standard
18762 You can also provide other arguments to the 
18763 \begin_inset Quotes eld
18764 \end_inset
18765
18766
18767 \family typewriter
18768
18769 \backslash
18770 onlyslides{}
18771 \family default
18772
18773 \begin_inset Quotes erd
18774 \end_inset
18775
18776  and 
18777 \begin_inset Quotes eld
18778 \end_inset
18779
18780
18781 \family typewriter
18782
18783 \backslash
18784 onlynotes{}
18785 \family default
18786
18787 \begin_inset Quotes erd
18788 \end_inset
18789
18790  commands.
18791  See a good \SpecialChar LaTeX
18792  book for details.
18793 \end_layout
18794
18795 \begin_layout Subsection
18796 The 
18797 \family sans
18798 slides
18799 \family default
18800  Class Template File
18801 \end_layout
18802
18803 \begin_layout Standard
18804 I have also provided a template file, 
18805 \begin_inset Quotes eld
18806 \end_inset
18807
18808
18809 \family typewriter
18810 slides.lyx
18811 \family default
18812
18813 \begin_inset Quotes erd
18814 \end_inset
18815
18816 , with the 
18817 \family sans
18818 slides
18819 \family default
18820  class.
18821  To use it, begin your new presentation with 
18822 \family sans
18823 File\SpecialChar menuseparator
18824 New
18825 \begin_inset space ~
18826 \end_inset
18827
18828 from
18829 \begin_inset space ~
18830 \end_inset
18831
18832 Template
18833 \family default
18834 .
18835  Your new \SpecialChar LyX
18836  presentation file will contain an example 
18837 \family sans
18838 Slide
18839 \family default
18840  – 
18841 \family sans
18842 Overlay
18843 \family default
18844  – 
18845 \family sans
18846 Note
18847 \family default
18848  triplet.
18849  The 
18850 \family sans
18851 Slide
18852 \family default
18853  and 
18854 \family sans
18855 Overlay
18856 \family default
18857  additionally contain an example of the use of 
18858 \family sans
18859 InvisibleText
18860 \family default
18861  and 
18862 \family sans
18863 VisibleText
18864 \family default
18865 .
18866  Lastly, the preamble will contain:
18867 \end_layout
18868
18869 \begin_layout LyX-Code
18870 % Uncomment to print out only slides and overlays
18871 \end_layout
18872
18873 \begin_layout LyX-Code
18874 %
18875 \end_layout
18876
18877 \begin_layout LyX-Code
18878 %
18879 \backslash
18880 onlyslides{
18881 \backslash
18882 slides}
18883 \begin_inset Newline newline
18884 \end_inset
18885
18886  
18887 \end_layout
18888
18889 \begin_layout LyX-Code
18890 % Uncomment to print out only notes
18891 \end_layout
18892
18893 \begin_layout LyX-Code
18894 %
18895 \end_layout
18896
18897 \begin_layout LyX-Code
18898 %
18899 \backslash
18900 onlynotes{
18901 \backslash
18902 notes}
18903 \end_layout
18904
18905 \begin_layout Standard
18906 One final thing: I created this class to support the \SpecialChar LaTeX2e
18907  
18908 \begin_inset Quotes eld
18909 \end_inset
18910
18911
18912 \noun on
18913 Sli\SpecialChar TeX
18914
18915 \noun default
18916  emulation
18917 \begin_inset Quotes erd
18918 \end_inset
18919
18920  class, one of the built-in \SpecialChar LaTeX2e
18921  classes.
18922  Neither I nor the rest of the \SpecialChar LyX
18923  Team endorse or oppose the use of this built-in
18924  slide class.
18925  It's here if you want it or need it.
18926  There exist other \SpecialChar LaTeX2e
18927  classes for creating presentations, such as the 
18928 \family sans
18929 Foils
18930 \family default
18931  class [see section
18932 \begin_inset space ~
18933 \end_inset
18934
18935
18936 \begin_inset CommandInset ref
18937 LatexCommand ref
18938 reference "sec:foiltex"
18939
18940 \end_inset
18941
18942 ] or the 
18943 \begin_inset Quotes eld
18944 \end_inset
18945
18946
18947 \family typewriter
18948 seminar
18949 \family default
18950
18951 \begin_inset Quotes erd
18952 \end_inset
18953
18954  package [present on some \SpecialChar TeX
18955  distributions].
18956  The latter is not yet supported under \SpecialChar LyX
18957 .
18958 \begin_inset Foot
18959 status collapsed
18960
18961 \begin_layout Plain Layout
18962 Perhaps you can take on the task\SpecialChar ldots
18963
18964 \end_layout
18965
18966 \end_inset
18967
18968  I know nothing about these other classes.
18969  Try them out to see what sort of alternative they provide.
18970 \end_layout
18971
18972 \begin_layout Chapter
18973 \SpecialChar LyX
18974  Features needing Extra Software
18975 \end_layout
18976
18977 \begin_layout Section
18978 Checking \SpecialChar TeX
18979
18980 \end_layout
18981
18982 \begin_layout Standard
18983 by 
18984 \noun on
18985 Asger Alstrup
18986 \end_layout
18987
18988 \begin_layout Subsection
18989 Introduction
18990 \end_layout
18991
18992 \begin_layout Standard
18993 If you have the 
18994 \family typewriter
18995 chktex
18996 \family default
18997  program installed
18998 \begin_inset Foot
18999 status collapsed
19000
19001 \begin_layout Plain Layout
19002
19003 \family typewriter
19004 chktex
19005 \family default
19006  is not yet available when you are using the \SpecialChar LaTeX
19007  distribution MiK\SpecialChar TeX
19008 .
19009 \end_layout
19010
19011 \end_inset
19012
19013 , you'll find in the 
19014 \family sans
19015 Tools
19016 \family default
19017  menu the entry: 
19018 \family sans
19019 Check
19020 \begin_inset space ~
19021 \end_inset
19022
19023 TeX
19024 \family default
19025 .
19026  You can get 
19027 \family typewriter
19028 chktex
19029 \family default
19030  from CTAN,
19031 \begin_inset Newline newline
19032 \end_inset
19033
19034
19035 \begin_inset CommandInset href
19036 LatexCommand href
19037 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19038 literal "false"
19039
19040 \end_inset
19041
19042 .
19043 \end_layout
19044
19045 \begin_layout Standard
19046 The 
19047 \family sans
19048 Chk\SpecialChar TeX
19049
19050 \family default
19051  package is a program that was written by 
19052 \begin_inset Flex Noun
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 Jens T.
19057 \begin_inset space ~
19058 \end_inset
19059
19060 Berger Thielemann
19061 \end_layout
19062
19063 \end_inset
19064
19065  in frustration because some constructs in \SpecialChar LaTeX
19066  are sometimes non-intuitive,
19067  and easy to forget.
19068  The program runs over your \SpecialChar LaTeX
19069  file, checks the integrity of the file, and
19070  flags some common errors.
19071  In other technical words, it is 
19072 \family typewriter
19073 lint
19074 \family default
19075  for \SpecialChar LaTeX
19076 .
19077 \end_layout
19078
19079 \begin_layout Standard
19080 Well, what is a syntax checker doing in \SpecialChar LyX
19081  which is supposed to produce correct
19082  \SpecialChar LaTeX
19083  anyways? The answer is simple: Just as 
19084 \family typewriter
19085 Lint
19086 \family default
19087  not only checks the 
19088 \emph on
19089 syntax
19090 \emph default
19091  of C programs, but also does 
19092 \emph on
19093 semantic
19094 \emph default
19095  checks for type-errors, 
19096 \family sans
19097 Chk\SpecialChar TeX
19098
19099 \family default
19100  catches some common 
19101 \emph on
19102 typographic
19103 \emph default
19104  errors, in addition to the syntactical ones.
19105  Specifically, 
19106 \family sans
19107 Chk\SpecialChar TeX
19108
19109 \family default
19110  is capable of detecting several common errors, such as
19111 \end_layout
19112
19113 \begin_layout Itemize
19114 Ellipsis detection:
19115 \begin_inset Newline newline
19116 \end_inset
19117
19118 Use \SpecialChar ldots
19119  instead of ...
19120 \end_layout
19121
19122 \begin_layout Itemize
19123 No space in front of/after parenthesis:
19124 \begin_inset Newline newline
19125 \end_inset
19126
19127 ( wrong spacing )
19128 \end_layout
19129
19130 \begin_layout Itemize
19131 Enforcement of normal space after common abbreviations:
19132 \begin_inset Newline newline
19133 \end_inset
19134
19135 e.
19136 \begin_inset space \thinspace{}
19137 \end_inset
19138
19139 g.
19140 \begin_inset space \space{}
19141 \end_inset
19142
19143 is too wide spacing.
19144 \end_layout
19145
19146 \begin_layout Itemize
19147 Enforcement of end-of-sentence space when the last sentence ends with a
19148  capital letter:
19149 \begin_inset Newline newline
19150 \end_inset
19151
19152 This is a TEST.
19153  And this is wrong spacing.
19154 \end_layout
19155
19156 \begin_layout Itemize
19157 Space in front of labels and similar commands:
19158 \begin_inset Newline newline
19159 \end_inset
19160
19161 The label should stick right up to the text to avoid falling to a wrong
19162  page.
19163  
19164 \begin_inset CommandInset label
19165 LatexCommand label
19166 name "sec:chktex"
19167
19168 \end_inset
19169
19170  
19171 \begin_inset Foot
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 This footnote is in danger of falling off to a wrong page
19176 \end_layout
19177
19178 \end_inset
19179
19180  The label is separated too much.
19181 \end_layout
19182
19183 \begin_layout Itemize
19184 Space in front of references, instead of hard spaces:
19185 \begin_inset Newline newline
19186 \end_inset
19187
19188 If you have bad luck, the text will break right between the referenced text
19189  and reference number, and that's a pity.
19190  See section 
19191 \begin_inset CommandInset ref
19192 LatexCommand ref
19193 reference "sec:chktex"
19194
19195 \end_inset
19196
19197 .
19198 \end_layout
19199
19200 \begin_layout Itemize
19201 Use of 
19202 \begin_inset Quotes eld
19203 \end_inset
19204
19205 x
19206 \begin_inset Quotes erd
19207 \end_inset
19208
19209  instead of 
19210 \begin_inset Formula $\times$
19211 \end_inset
19212
19213  between numbers:
19214 \begin_inset Newline newline
19215 \end_inset
19216
19217 2x2 looks cheap compared to 
19218 \begin_inset Formula $2\times2$
19219 \end_inset
19220
19221 .
19222 \end_layout
19223
19224 \begin_layout Standard
19225 and more \SpecialChar ldots
19226  It is an invaluable tool when you are 
19227 \begin_inset Quotes eld
19228 \end_inset
19229
19230 finishing up
19231 \begin_inset Quotes erd
19232 \end_inset
19233
19234  your document before printing, and you should run it right after the obligatory
19235  spelling check, and before you go fine tuning the typesetting.
19236 \end_layout
19237
19238 \begin_layout Subsection
19239 How to use it
19240 \end_layout
19241
19242 \begin_layout Standard
19243 If you have the program installed, usage is as simple as choosing 
19244 \family sans
19245 Tools\SpecialChar menuseparator
19246 Check
19247 \begin_inset space ~
19248 \end_inset
19249
19250 TeX
19251 \family default
19252 .
19253  This will make \SpecialChar LyX
19254  generate a \SpecialChar LaTeX
19255  file of your document, start 
19256 \family sans
19257 Chk\SpecialChar TeX
19258
19259 \family default
19260  to check it, and then make \SpecialChar LyX
19261  insert 
19262 \begin_inset Quotes eld
19263 \end_inset
19264
19265 error boxes
19266 \begin_inset Quotes erd
19267 \end_inset
19268
19269  with the warnings from 
19270 \family sans
19271 Chk\SpecialChar TeX
19272
19273 \family default
19274 , if there were any.
19275  The warnings will be placed close to the point of the mistake, and you
19276  can quickly find them by using the 
19277 \family sans
19278 Navigate\SpecialChar menuseparator
19279 Error
19280 \family default
19281  menu item, or the shortcut key 
19282 \family sans
19283 C-g
19284 \family default
19285  from the default 
19286 \family typewriter
19287 cua
19288 \family default
19289  bind file.
19290  Open the error boxes by clicking on them with the mouse, or use the shortcut
19291  key 
19292 \family sans
19293 C-i
19294 \family default
19295  from 
19296 \family typewriter
19297 cua
19298 \family default
19299  bindings, or the corresponding 
19300 \family sans
19301 C-o
19302 \family default
19303  for the alternate 
19304 \family typewriter
19305 emacs
19306 \family default
19307  bind file.
19308  Read the warning and correct the mistake, if it is a mistake.
19309  If you have trouble understanding what the warning is about, you can safely
19310  ignore it.
19311  Remember that there is a hidden layer between the document on screen and
19312  the technical details in invoking 
19313 \family sans
19314 Chk\SpecialChar TeX
19315
19316 \family default
19317 , and this gap can make some warnings seem arcane or just plain silly.
19318 \end_layout
19319
19320 \begin_layout Standard
19321 This document is an excellent testing bed for the feature, and it should
19322  provide quite a few warnings for you to fiddle with.
19323  Since computers are only so smart, expect most of the warnings to be false
19324  alarms, though.
19325 \end_layout
19326
19327 \begin_layout Subsection
19328 How to fine tune it
19329 \end_layout
19330
19331 \begin_layout Standard
19332 Sometimes, you'll find that 
19333 \family sans
19334 Chk\SpecialChar TeX
19335
19336 \family default
19337  makes more noise than suits your mood.
19338  Then you can choose not to use it, wait until your mood changes, or try
19339  to customize 
19340 \family sans
19341 Chk\SpecialChar TeX
19342
19343 \family default
19344  to get better along with you.
19345 \end_layout
19346
19347 \begin_layout Standard
19348 Although 
19349 \family sans
19350 Chk\SpecialChar TeX
19351
19352 \family default
19353  
19354 \emph on
19355 is
19356 \emph default
19357  very configurable and extensible, you should not expect to solve all problems
19358  with 
19359 \family sans
19360 Chk\SpecialChar TeX
19361
19362 \family default
19363  in \SpecialChar LyX
19364  this way.
19365  Since \SpecialChar LyX
19366  has to generate a somewhat special \SpecialChar LaTeX
19367  file to be able to match the
19368  line numbers from the 
19369 \family sans
19370 Chk\SpecialChar TeX
19371
19372 \family default
19373  output
19374 \begin_inset Foot
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 You can inspect the specific output from 
19379 \family sans
19380 chktex
19381 \family default
19382  by using 
19383 \family sans
19384 Document\SpecialChar menuseparator
19385 \SpecialChar LaTeX
19386
19387 \begin_inset space ~
19388 \end_inset
19389
19390 Log
19391 \family default
19392  right after a 
19393 \family sans
19394 chktex
19395 \family default
19396  run.
19397 \end_layout
19398
19399 \end_inset
19400
19401  to the internal document structure, some of the warnings will not appear
19402  correctly.
19403  There are two things you can do about this:
19404 \end_layout
19405
19406 \begin_layout Itemize
19407 Fine tune the 
19408 \family sans
19409 Chk\SpecialChar TeX
19410
19411 \family default
19412  invocation command line in 
19413 \begin_inset Flex Noun
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 Tools\SpecialChar menuseparator
19418 Preferences\SpecialChar menuseparator
19419 Output\SpecialChar menuseparator
19420 LaTeX\SpecialChar menuseparator
19421 CheckTeX command
19422 \end_layout
19423
19424 \end_inset
19425
19426 , or the global 
19427 \family sans
19428 Chk\SpecialChar TeX
19429
19430 \family default
19431  installation configuration file (usually with the file 
19432 \family typewriter
19433 chktexrc
19434 \family default
19435 ).
19436  See below to learn what warnings can be enabled and disabled on the command
19437  line.
19438 \end_layout
19439
19440 \begin_layout Itemize
19441 Export your document as a raw \SpecialChar LaTeX
19442  file using 
19443 \family sans
19444 File\SpecialChar menuseparator
19445 Export\SpecialChar menuseparator
19446 \SpecialChar LaTeX
19447
19448 \family default
19449  and run 
19450 \family typewriter
19451 chktex
19452 \family default
19453  manually on that.
19454  Invoked in this way, it can be a hassle to find the corresponding place
19455  in the document inside \SpecialChar LyX
19456 , but with a little patience, you should be able
19457  to do it.
19458 \end_layout
19459
19460 \begin_layout Standard
19461 Here follows the warning messages that can be enabled and disabled in 
19462 \family sans
19463 Preferences
19464 \family default
19465 .
19466  Use 
19467 \family typewriter
19468 -n#
19469 \family default
19470  to disable a warning, and 
19471 \family typewriter
19472 -w#
19473 \family default
19474  to enable a warning.
19475  The emphasized entries are disabled by default, because the default is
19476  "
19477 \family typewriter
19478 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19479 \family default
19480 ".
19481 \end_layout
19482
19483 \begin_layout Standard
19484 Notice that you should only use the options that enable and disable warnings,
19485  because \SpecialChar LyX
19486  relies on some of the other command line parameters to be set
19487  in a specific way to have a chance to communicate with 
19488 \family typewriter
19489 chktex
19490 \family default
19491 .
19492 \end_layout
19493
19494 \begin_layout Enumerate
19495
19496 \size small
19497 \emph on
19498 Command terminated with space.
19499 \end_layout
19500
19501 \begin_layout Enumerate
19502
19503 \size small
19504 Non-breaking space (
19505 \begin_inset Quotes eld
19506 \end_inset
19507
19508
19509 \family typewriter
19510 ~
19511 \family default
19512
19513 \begin_inset Quotes erd
19514 \end_inset
19515
19516 ) should have been used.
19517 \end_layout
19518
19519 \begin_layout Enumerate
19520
19521 \size small
19522 \emph on
19523 You should enclose the previous parenthesis with 
19524 \begin_inset Quotes eld
19525 \end_inset
19526
19527
19528 \family typewriter
19529 {}
19530 \family default
19531
19532 \begin_inset Quotes erd
19533 \end_inset
19534
19535 .
19536 \end_layout
19537
19538 \begin_layout Enumerate
19539
19540 \size small
19541 Italic correction (
19542 \begin_inset Quotes eld
19543 \end_inset
19544
19545
19546 \family typewriter
19547
19548 \backslash
19549 /
19550 \family default
19551
19552 \begin_inset Quotes erd
19553 \end_inset
19554
19555 ) found in non-italic buffer.
19556 \end_layout
19557
19558 \begin_layout Enumerate
19559
19560 \size small
19561 Italic correction (
19562 \begin_inset Quotes eld
19563 \end_inset
19564
19565
19566 \family typewriter
19567
19568 \backslash
19569 /
19570 \family default
19571
19572 \begin_inset Quotes erd
19573 \end_inset
19574
19575 ) found more than once.
19576 \end_layout
19577
19578 \begin_layout Enumerate
19579
19580 \size small
19581 \emph on
19582 No italic correction (
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586
19587 \family typewriter
19588
19589 \backslash
19590 /
19591 \family default
19592
19593 \begin_inset Quotes erd
19594 \end_inset
19595
19596 ) found.
19597 \end_layout
19598
19599 \begin_layout Enumerate
19600
19601 \size small
19602 Accent command 
19603 \begin_inset Quotes eld
19604 \end_inset
19605
19606
19607 \family typewriter
19608 cmd
19609 \family default
19610
19611 \begin_inset Quotes erd
19612 \end_inset
19613
19614  needs use of 
19615 \begin_inset Quotes eld
19616 \end_inset
19617
19618
19619 \family typewriter
19620 cmd
19621 \family default
19622
19623 \begin_inset Quotes erd
19624 \end_inset
19625
19626 .
19627 \end_layout
19628
19629 \begin_layout Enumerate
19630
19631 \size small
19632 Wrong length of dash may have been used.
19633 \end_layout
19634
19635 \begin_layout Enumerate
19636
19637 \size small
19638 \emph on
19639 \begin_inset Quotes eld
19640 \end_inset
19641
19642
19643 \family typewriter
19644 %s
19645 \family default
19646
19647 \begin_inset Quotes erd
19648 \end_inset
19649
19650  expected, found 
19651 \begin_inset Quotes eld
19652 \end_inset
19653
19654
19655 \family typewriter
19656 %s
19657 \family default
19658
19659 \begin_inset Quotes erd
19660 \end_inset
19661
19662 .
19663 \end_layout
19664
19665 \begin_layout Enumerate
19666
19667 \size small
19668 Solo 
19669 \begin_inset Quotes eld
19670 \end_inset
19671
19672
19673 \family typewriter
19674 %s
19675 \family default
19676
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680  found.
19681 \end_layout
19682
19683 \begin_layout Enumerate
19684
19685 \size small
19686 You should use 
19687 \begin_inset Quotes eld
19688 \end_inset
19689
19690
19691 \family typewriter
19692 %s
19693 \family default
19694
19695 \begin_inset Quotes erd
19696 \end_inset
19697
19698  to achieve an ellipsis.
19699 \end_layout
19700
19701 \begin_layout Enumerate
19702
19703 \size small
19704 Inter-word spacing (
19705 \begin_inset Quotes eld
19706 \end_inset
19707
19708
19709 \family typewriter
19710
19711 \backslash
19712
19713 \family default
19714  
19715 \begin_inset Quotes eld
19716 \end_inset
19717
19718 ) should perhaps be used.
19719 \end_layout
19720
19721 \begin_layout Enumerate
19722
19723 \size small
19724 Inter-sentence spacing (
19725 \begin_inset Quotes eld
19726 \end_inset
19727
19728
19729 \family typewriter
19730
19731 \backslash
19732 @
19733 \family default
19734
19735 \begin_inset Quotes erd
19736 \end_inset
19737
19738 ) should perhaps be used.
19739 \end_layout
19740
19741 \begin_layout Enumerate
19742
19743 \size small
19744 Could not find argument for command.
19745 \end_layout
19746
19747 \begin_layout Enumerate
19748
19749 \size small
19750 No match found for 
19751 \begin_inset Quotes eld
19752 \end_inset
19753
19754
19755 \family typewriter
19756 %s
19757 \family default
19758
19759 \begin_inset Quotes erd
19760 \end_inset
19761
19762 .
19763 \end_layout
19764
19765 \begin_layout Enumerate
19766
19767 \size small
19768 Math mode still on at end of \SpecialChar LaTeX
19769  file.
19770 \end_layout
19771
19772 \begin_layout Enumerate
19773
19774 \size small
19775 Number of 
19776 \begin_inset Quotes eld
19777 \end_inset
19778
19779
19780 \family typewriter
19781 char
19782 \family default
19783
19784 \begin_inset Quotes erd
19785 \end_inset
19786
19787  doesn't match the number of 
19788 \begin_inset Quotes eld
19789 \end_inset
19790
19791
19792 \family typewriter
19793 char
19794 \family default
19795
19796 \begin_inset Quotes erd
19797 \end_inset
19798
19799 .
19800 \end_layout
19801
19802 \begin_layout Enumerate
19803
19804 \size small
19805 You should use either 
19806 \family typewriter
19807
19808 \begin_inset Quotes eld
19809 \end_inset
19810
19811
19812 \family default
19813  or 
19814 \family typewriter
19815
19816 \begin_inset Quotes erd
19817 \end_inset
19818
19819
19820 \family default
19821  as an alternative to 
19822 \begin_inset Quotes eld
19823 \end_inset
19824
19825
19826 \family typewriter
19827 "
19828 \family default
19829
19830 \begin_inset Quotes erd
19831 \end_inset
19832
19833 .
19834 \end_layout
19835
19836 \begin_layout Enumerate
19837
19838 \size small
19839 You should use "
19840 \family typewriter
19841 '
19842 \family default
19843 " (ASCII 39) instead of "
19844 \family typewriter
19845 ´
19846 \family default
19847 " (ASCII 180).
19848 \end_layout
19849
19850 \begin_layout Enumerate
19851
19852 \size small
19853 User-specified pattern found.
19854 \end_layout
19855
19856 \begin_layout Enumerate
19857
19858 \size small
19859 This command might not be intended.
19860 \end_layout
19861
19862 \begin_layout Enumerate
19863
19864 \size small
19865 \emph on
19866 Comment displayed.
19867 \end_layout
19868
19869 \begin_layout Enumerate
19870
19871 \size small
19872 Either 
19873 \family typewriter
19874 ''
19875 \backslash
19876 ,'
19877 \family default
19878  or 
19879 \family typewriter
19880 '
19881 \backslash
19882 ,''
19883 \family default
19884  will look better.
19885 \end_layout
19886
19887 \begin_layout Enumerate
19888
19889 \size small
19890 Delete this space to maintain correct page references.
19891 \end_layout
19892
19893 \begin_layout Enumerate
19894
19895 \size small
19896 \emph on
19897 You might wish to put this between a pair of 
19898 \begin_inset Quotes eld
19899 \end_inset
19900
19901
19902 \family typewriter
19903 {}
19904 \family default
19905
19906 \begin_inset Quotes erd
19907 \end_inset
19908
19909 .
19910 \end_layout
19911
19912 \begin_layout Enumerate
19913
19914 \size small
19915 You ought to remove spaces in front of punctuation.
19916 \end_layout
19917
19918 \begin_layout Enumerate
19919
19920 \size small
19921 Could not execute \SpecialChar LaTeX
19922  command.
19923 \end_layout
19924
19925 \begin_layout Enumerate
19926
19927 \size small
19928 Don't use 
19929 \family typewriter
19930
19931 \backslash
19932 /
19933 \family default
19934  in front of small punctuation.
19935 \end_layout
19936
19937 \begin_layout Enumerate
19938
19939 \family typewriter
19940 \size small
19941 $
19942 \backslash
19943 times$
19944 \family default
19945  may look prettier here.
19946 \end_layout
19947
19948 \begin_layout Enumerate
19949
19950 \size small
19951 \emph on
19952 Multiple spaces detected in output.
19953 \end_layout
19954
19955 \begin_layout Enumerate
19956
19957 \size small
19958 This text may be ignored.
19959 \end_layout
19960
19961 \begin_layout Enumerate
19962
19963 \size small
19964 Use 
19965 \family typewriter
19966
19967 \begin_inset Quotes eld
19968 \end_inset
19969
19970
19971 \family default
19972  to begin quotation, not 
19973 \family typewriter
19974 '
19975 \family default
19976 .
19977 \end_layout
19978
19979 \begin_layout Enumerate
19980
19981 \size small
19982 Use 
19983 \family typewriter
19984 '
19985 \family default
19986  to end quotation, not 
19987 \family typewriter
19988
19989 \begin_inset Quotes eld
19990 \end_inset
19991
19992
19993 \family default
19994 .
19995 \end_layout
19996
19997 \begin_layout Enumerate
19998
19999 \size small
20000 Don't mix quotes.
20001 \end_layout
20002
20003 \begin_layout Enumerate
20004
20005 \size small
20006 You should perhaps use 
20007 \begin_inset Quotes eld
20008 \end_inset
20009
20010
20011 \family typewriter
20012 cmd
20013 \family default
20014
20015 \begin_inset Quotes erd
20016 \end_inset
20017
20018  instead.
20019 \end_layout
20020
20021 \begin_layout Enumerate
20022
20023 \size small
20024 You should put a space in front of/after parenthesis.
20025 \end_layout
20026
20027 \begin_layout Enumerate
20028
20029 \size small
20030 You should avoid spaces in front of/after parenthesis.
20031 \end_layout
20032
20033 \begin_layout Enumerate
20034
20035 \size small
20036 \emph on
20037 You should not use punctuation in front of/after quotes.
20038 \end_layout
20039
20040 \begin_layout Enumerate
20041
20042 \size small
20043 Double space found.
20044 \end_layout
20045
20046 \begin_layout Enumerate
20047
20048 \size small
20049 You should put punctuation outside inner/inside display math mode.
20050 \end_layout
20051
20052 \begin_layout Enumerate
20053
20054 \size small
20055 You ought to not use primitive \SpecialChar TeX
20056  in \SpecialChar LaTeX
20057  code.
20058 \end_layout
20059
20060 \begin_layout Enumerate
20061
20062 \size small
20063 You should remove spaces in front of 
20064 \begin_inset Quotes eld
20065 \end_inset
20066
20067
20068 \family typewriter
20069 %s
20070 \family default
20071
20072 \begin_inset Quotes erd
20073 \end_inset
20074
20075
20076 \end_layout
20077
20078 \begin_layout Enumerate
20079
20080 \size small
20081 \begin_inset Quotes eld
20082 \end_inset
20083
20084
20085 \family typewriter
20086 %s
20087 \family default
20088
20089 \begin_inset Quotes erd
20090 \end_inset
20091
20092  is normally not followed by 
20093 \begin_inset Quotes eld
20094 \end_inset
20095
20096
20097 \family typewriter
20098 %c
20099 \family default
20100
20101 \begin_inset Quotes erd
20102 \end_inset
20103
20104 .
20105 \end_layout
20106
20107 \begin_layout Standard
20108 In later versions of \SpecialChar LyX
20109 , we hope to provide a more complete interface to this
20110  tool (and it's smaller cousin 
20111 \family typewriter
20112 lacheck
20113 \family default
20114 ) to exploit the full power of it.
20115  But it's not exactly useless as it is now: go try it on one of your existing
20116  documents of a certain length and be surprised.
20117 \end_layout
20118
20119 \begin_layout Section
20120 Version Control in \SpecialChar LyX
20121
20122 \end_layout
20123
20124 \begin_layout Standard
20125 by
20126 \noun on
20127  Lars Gullik Bjønnes 
20128 \noun default
20129 and 
20130 \noun on
20131 Pavel Sanda
20132 \end_layout
20133
20134 \begin_layout Subsection
20135 Introduction
20136 \end_layout
20137
20138 \begin_layout Standard
20139 \SpecialChar LyX
20140  supports some of the most basic RCS/CVS/SVN/GIT commands.
20141  If you need something a bit more sophisticated you will have to do that
20142  manually in a terminal.
20143 \end_layout
20144
20145 \begin_layout Standard
20146 Also note that CVS support is not as good as subversion support so we advise
20147  using SVN instead.
20148  A good place to start learning Subversion is SVN Book
20149 \begin_inset Foot
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 \begin_inset CommandInset href
20154 LatexCommand href
20155 target "http://svnbook.red-bean.com/"
20156 literal "false"
20157
20158 \end_inset
20159
20160
20161 \end_layout
20162
20163 \end_inset
20164
20165 .
20166  In the case of RCS you should read 
20167 \begin_inset Quotes eld
20168 \end_inset
20169
20170 rcsintro
20171 \begin_inset Quotes erd
20172 \end_inset
20173
20174  (a man file, read it with 
20175 \family typewriter
20176 man rcsintro
20177 \family default
20178 ).
20179  This file describes all the basic features of RCS.
20180  You should especially notice the comment about a RCS directory, and the
20181  notion of a master RCS file (the file ending in 
20182 \family typewriter
20183 ,v
20184 \family default
20185 ).
20186 \end_layout
20187
20188 \begin_layout Standard
20189 Before you begin to use the version control features in \SpecialChar LyX
20190 , you should be
20191  familiar with RCS/CVS/SVN/GIT usage.
20192  The implementation in \SpecialChar LyX
20193  assumes a recent version of the GNU RCS or CVS/SVN
20194  package — no guarantees are made for older versions.
20195  Most of the log messages are not currently displayed after operations —
20196  you can check them in the Messages pane if unsure.
20197  Regular users of version control will appreciate VC toolbar, which can
20198  be enabled via 
20199 \family sans
20200 View\SpecialChar menuseparator
20201 Toolbars\SpecialChar menuseparator
20202 Version
20203 \begin_inset space ~
20204 \end_inset
20205
20206 Control
20207 \family default
20208 .
20209 \end_layout
20210
20211 \begin_layout Standard
20212 For introducing your own external commands consult vc-command in the manual
20213  of \SpecialChar LyX
20214  functions.
20215 \end_layout
20216
20217 \begin_layout Standard
20218 It is strongly recommended to store documents in uncompressed format if
20219  using version control (uncheck 
20220 \family sans
20221 Document\SpecialChar menuseparator
20222 Compressed
20223 \family default
20224  if it is checked): Uncompressed LyX documents are text files and therefore
20225  for merging two different versions by version control systems.
20226  Compressed LyX documents are binary files, which cannot be merged by version
20227  control systems.
20228 \end_layout
20229
20230 \begin_layout Subsection
20231 RCS commands in \SpecialChar LyX
20232
20233 \end_layout
20234
20235 \begin_layout Standard
20236 The following sections describe the RCS commands supported by \SpecialChar LyX
20237 .
20238  You can find them in the 
20239 \family sans
20240 File\SpecialChar menuseparator
20241 Version
20242 \begin_inset space ~
20243 \end_inset
20244
20245 Control
20246 \family default
20247  submenu.
20248  \SpecialChar LyX
20249  was tested against RCS 5.7/5.8.
20250 \end_layout
20251
20252 \begin_layout Subsubsection
20253
20254 \family sans
20255 Register
20256 \end_layout
20257
20258 \begin_layout Standard
20259 If your document is not under revision control, this is the only item shown
20260  in the menu.
20261  And if it is under revision control, the 
20262 \family sans
20263 Register
20264 \family default
20265  item is not visible.
20266  
20267 \end_layout
20268
20269 \begin_layout Standard
20270 This command registers your document with RCS (unless you are under the
20271  directory managed by CVS)\SpecialChar endofsentence
20272  You are asked interactively to supply an initial
20273  description of the document.
20274  The document is now set in Read-Only mode and you have to 
20275 \family sans
20276 Check
20277 \begin_inset space ~
20278 \end_inset
20279
20280 Out
20281 \begin_inset space ~
20282 \end_inset
20283
20284 For
20285 \begin_inset space ~
20286 \end_inset
20287
20288 Edit
20289 \family default
20290 , before making any changes to it.
20291  A document under revision control has a 
20292 \begin_inset Quotes eld
20293 \end_inset
20294
20295 [RCS:<version> <locker>]
20296 \begin_inset Quotes erd
20297 \end_inset
20298
20299  item tagged to the filename in the minibuffer.
20300 \end_layout
20301
20302 \begin_layout Standard
20303 RCS command that is run: 
20304 \family typewriter
20305 ci -q -u -i -t-"<initial description>" <file-name>
20306 \end_layout
20307
20308 \begin_layout Standard
20309 Read 
20310 \family typewriter
20311 man ci
20312 \family default
20313  to understand the switches.
20314  
20315 \end_layout
20316
20317 \begin_layout Subsubsection
20318
20319 \family sans
20320 Check In Changes
20321 \end_layout
20322
20323 \begin_layout Standard
20324 When you are finished editing a file, you check in your changes.
20325  When you do this, you are asked for a description of the changes.
20326  This is stored in the history log.
20327  The version number is bumped, your changes are applied to the master RCS
20328  file, the document is unlocked and set to Read-Only mode.
20329 \end_layout
20330
20331 \begin_layout Standard
20332 RCS command: 
20333 \family typewriter
20334 ci -q -u -m"<description>" <file-name>
20335 \end_layout
20336
20337 \begin_layout Subsubsection
20338
20339 \family sans
20340 Check Out For Edit
20341 \end_layout
20342
20343 \begin_layout Standard
20344 By doing this you lock the document so that only you can edit it.
20345  This will also make the document Read-Write only for you.
20346  You will usually continue editing for a while and when you are finished
20347  you check in your changes.
20348  The status line is changed to reflect that you have locked the file.
20349 \end_layout
20350
20351 \begin_layout Standard
20352 RCS command: 
20353 \family typewriter
20354 co -q -l <file-name>
20355 \end_layout
20356
20357 \begin_layout Subsubsection
20358
20359 \family sans
20360 Revert To Repository Version
20361 \end_layout
20362
20363 \begin_layout Standard
20364 This will discard all changes made to the document since the last check
20365  in.
20366  You get a warning before changes are discarded.
20367 \end_layout
20368
20369 \begin_layout Standard
20370 RCS command: 
20371 \family typewriter
20372 co -f -u<version> <file-name>
20373 \end_layout
20374
20375 \begin_layout Subsubsection
20376
20377 \family sans
20378 Copy
20379 \end_layout
20380
20381 \begin_layout Standard
20382 This will create a copy of the current document.
20383  Since RCS does not support copy operations natively, the version history
20384  is not preserved, and the copy is added as a new file.
20385  It requires a clean document without any changes since the last checkin.
20386  You are asked for a file name and a description of the copy operation.
20387  After that the copy is created, both locally and in the repository.
20388  If the parent directories of the copied and original document differ, all
20389  relative paths of included files of the copy are adjusted (like in 
20390 \family sans
20391 File\SpecialChar menuseparator
20392 Save As
20393 \family default
20394 \SpecialChar ldots
20395 ).
20396  Finally, the copy is loaded instead of the original document.
20397 \end_layout
20398
20399 \begin_layout Labeling
20400 \labelwidthstring 00.00.0000
20401 RCS
20402 \begin_inset space ~
20403 \end_inset
20404
20405 commands: 
20406 \begin_inset space ~
20407 \end_inset
20408
20409
20410 \begin_inset Newline newline
20411 \end_inset
20412
20413 Copy 
20414 \begin_inset Flex Code
20415 status collapsed
20416
20417 \begin_layout Plain Layout
20418
20419 \family typewriter
20420 \begin_inset Quotes eld
20421 \end_inset
20422
20423 <file-name>
20424 \begin_inset Quotes erd
20425 \end_inset
20426
20427
20428 \end_layout
20429
20430 \end_inset
20431
20432  to 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437
20438 \family typewriter
20439 \begin_inset Quotes eld
20440 \end_inset
20441
20442 <new-file-name>
20443 \begin_inset Quotes erd
20444 \end_inset
20445
20446
20447 \end_layout
20448
20449 \end_inset
20450
20451
20452 \begin_inset Newline newline
20453 \end_inset
20454
20455
20456 \begin_inset Flex Code
20457 status collapsed
20458
20459 \begin_layout Plain Layout
20460 ci -q -u 
20461 \family typewriter
20462 -i 
20463 \begin_inset Quotes eld
20464 \end_inset
20465
20466 <new-file-name>
20467 \begin_inset Quotes erd
20468 \end_inset
20469
20470
20471 \end_layout
20472
20473 \end_inset
20474
20475
20476 \end_layout
20477
20478 \begin_layout Subsubsection
20479
20480 \family sans
20481 Undo Last Checkin
20482 \end_layout
20483
20484 \begin_layout Standard
20485 This makes as if the last check in never happened.
20486  No changes are made to the document loaded into \SpecialChar LyX
20487 , but the last version
20488  is removed from the master RCS file.
20489 \end_layout
20490
20491 \begin_layout Standard
20492 RCS command: 
20493 \family typewriter
20494 rcs -o<version> <file-name>
20495 \end_layout
20496
20497 \begin_layout Subsubsection
20498
20499 \family sans
20500 Show History
20501 \end_layout
20502
20503 \begin_layout Standard
20504 This shows the complete history of the RCS document.
20505  The output of 
20506 \family typewriter
20507 rlog <file-name>
20508 \family default
20509  is shown in a browser.
20510  See 
20511 \family typewriter
20512 man rlog
20513 \family default
20514  for more info.
20515 \end_layout
20516
20517 \begin_layout Subsubsection
20518 Revision info
20519 \end_layout
20520
20521 \begin_layout Standard
20522 \SpecialChar LyX
20523  supports RCS version number, author name, date and time of last commit.
20524  All those are extracted from 
20525 \family typewriter
20526 rlog -r <file-name>
20527 \family default
20528 .
20529  See 
20530 \begin_inset CommandInset ref
20531 LatexCommand ref
20532 reference "subsec:VCS-Revision-Information"
20533
20534 \end_inset
20535
20536  for details.
20537 \end_layout
20538
20539 \begin_layout Subsection
20540 CVS commands in \SpecialChar LyX
20541
20542 \end_layout
20543
20544 \begin_layout Standard
20545 A subset of CVS operations is supported by \SpecialChar LyX
20546 .
20547  You can find the commands in the 
20548 \family sans
20549 File\SpecialChar menuseparator
20550 Version
20551 \begin_inset space ~
20552 \end_inset
20553
20554 Control
20555 \family default
20556  submenu.
20557  The version control system SVN is more powerful, so please use it instead
20558  of CVS if possible.
20559 \end_layout
20560
20561 \begin_layout Subsubsection
20562
20563 \family sans
20564 General CVS usage
20565 \end_layout
20566
20567 \begin_layout Standard
20568 If you start from scratch with CVS you have to create your repository and
20569  checkout the working copy with external tools.
20570  If you're using a client-server setup you may need to login before doing
20571  the first repository checkout.
20572 \end_layout
20573
20574 \begin_layout Standard
20575 If your documents are under revision control and others are using the same
20576  repository problems arise when different changes to the same document at
20577  the same location happen.
20578  Standard CVS repositories don't operate with a file locking mechanism.
20579  This may be surprising, but conflicts only occur if people disagree on
20580  the proper content of the same part of a document.
20581  So, if co-workers are used to communicate regularly, these conflicts occur
20582  rarely.
20583  If they don't communicate they have a fundamental problem anyway.
20584  Nevertheless some people like to work with so called 
20585 \begin_inset Quotes eld
20586 \end_inset
20587
20588 reserved checkouts
20589 \begin_inset Quotes erd
20590 \end_inset
20591
20592 .
20593  If they do so the working copy of all files is readonly when checked out
20594  first and the user starts editing after using a special command to make
20595  the working copy writable.
20596  When the changes are checked in the working copy returns to readonly state.
20597  With \SpecialChar LyX
20598  one has to edit the 
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 .cvsrc
20604 \end_layout
20605
20606 \end_inset
20607
20608  file and add the line 
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 cvs -r
20614 \end_layout
20615
20616 \end_inset
20617
20618  to work with reserved checkouts.
20619  The benefit is the possibility to see who is using a writable copy of some
20620  document.
20621  It's not guaranteed only one user makes a copy writable.
20622 \end_layout
20623
20624 \begin_layout Standard
20625 \SpecialChar LyX
20626  tries to guess if you're using reserved or non-reserved checkouts.
20627  If your working copy is readonly or it is writable and an additional copy
20628  of your document exists in the CVS/Base sub-directory a reserved otherwise
20629  a non-reserved checkout is assumed.
20630  When a reserved checkout is detected you have to use 
20631 \begin_inset Flex Noun
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 Check Out
20636 \end_layout
20637
20638 \end_inset
20639
20640  to make your working copy writable if it's readonly.
20641  After doing so the 
20642 \begin_inset Flex Noun
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 Check In
20647 \end_layout
20648
20649 \end_inset
20650
20651  operation is possible and that makes your working copy readonly again after
20652  transferring your changes to the repository.
20653 \end_layout
20654
20655 \begin_layout Standard
20656 More information about CVS can be found here 
20657 \begin_inset Flex URL
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661
20662 http://www.nongnu.org/cvs
20663 \end_layout
20664
20665 \end_inset
20666
20667  and here 
20668 \begin_inset Flex URL
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672
20673 http://ximbiot.com/cvs
20674 \end_layout
20675
20676 \end_inset
20677
20678 .
20679 \end_layout
20680
20681 \begin_layout Standard
20682 Read 
20683 \family typewriter
20684 man cvs
20685 \family default
20686  to understand the sub-commands and the switches mentioned below.
20687 \end_layout
20688
20689 \begin_layout Subsubsection
20690
20691 \family sans
20692 Register
20693 \end_layout
20694
20695 \begin_layout Standard
20696 If your document is not under revision control, this is the only item shown
20697  in the menu.
20698  And if it is under revision control, the 
20699 \family sans
20700 Register
20701 \family default
20702  item is not visible.
20703  
20704 \end_layout
20705
20706 \begin_layout Standard
20707 This command registers in CVS your document 
20708 \begin_inset Flex Strong
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712
20713 \emph on
20714 only
20715 \end_layout
20716
20717 \end_inset
20718
20719  in the case you have already the documents directory under CVS control
20720  (in particular 
20721 \family typewriter
20722 CVS/Entries
20723 \family default
20724  file exists).
20725  This means you have to create or checkout the archive by yourself using
20726  external tools.
20727  (In case you forget that step \SpecialChar LyX
20728  registers the document with RCS.)
20729 \end_layout
20730
20731 \begin_layout Standard
20732 Then you are asked interactively to supply an initial description of the
20733  document.
20734  Don't forget that registered file is not yet checked in.
20735 \end_layout
20736
20737 \begin_layout Standard
20738 CVS command that is run: 
20739 \family typewriter
20740 cvs -q add -m"<entered message>" "<file-name>"
20741 \end_layout
20742
20743 \begin_layout Standard
20744 The term 
20745 \family typewriter
20746 "<file-name>"
20747 \family default
20748  above and for all other CVS commands is an abbreviation for 
20749 \begin_inset Quotes eld
20750 \end_inset
20751
20752 change the current working directory to file location and use the file name
20753  without path component as argument
20754 \begin_inset Quotes erd
20755 \end_inset
20756
20757 .
20758 \end_layout
20759
20760 \begin_layout Subsubsection
20761
20762 \family sans
20763 Check In Changes
20764 \end_layout
20765
20766 \begin_layout Standard
20767 When you are finished editing a file, you commit your changes.
20768  When you do this and you had changed the document, you are asked for a
20769  description of the changes.
20770  After that changes are written to the repository.
20771  In case you didn't change the document and a reserved checkout is detected
20772  the reservation made on 
20773 \begin_inset Flex Noun
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777 Check Out
20778 \end_layout
20779
20780 \end_inset
20781
20782  is undone.
20783 \end_layout
20784
20785 \begin_layout Labeling
20786 \labelwidthstring 00.00.0000
20787 CVS
20788 \begin_inset space ~
20789 \end_inset
20790
20791 command: 
20792 \begin_inset space ~
20793 \end_inset
20794
20795
20796 \begin_inset Newline newline
20797 \end_inset
20798
20799
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 cvs 
20805 \family typewriter
20806 -q commit -m"<description>" "<file-name>"
20807 \end_layout
20808
20809 \end_inset
20810
20811  or
20812 \begin_inset Newline newline
20813 \end_inset
20814
20815
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 cvs -q unedit 
20821 \family typewriter
20822 "<file-name>"
20823 \end_layout
20824
20825 \end_inset
20826
20827
20828 \end_layout
20829
20830 \begin_layout Subsubsection
20831
20832 \family sans
20833 Check Out Changes
20834 \end_layout
20835
20836 \begin_layout Standard
20837 When you are sharing a repository with others, you may have to incorporate
20838  their changes into your working copy.
20839 \end_layout
20840
20841 \begin_layout Standard
20842 CVS command: 
20843 \family typewriter
20844 cvs -q update "<file-name>"
20845 \end_layout
20846
20847 \begin_layout Standard
20848 If a readonly checkout is detected the working copy is made writable and
20849  reserved.
20850 \end_layout
20851
20852 \begin_layout Standard
20853 CVS command: 
20854 \family typewriter
20855 cvs -q edit "<file-name>"
20856 \end_layout
20857
20858 \begin_layout Subsubsection
20859
20860 \family sans
20861 Revert To Repository Version
20862 \end_layout
20863
20864 \begin_layout Standard
20865 This will discard all changes made to the document since the last check
20866  in.
20867  You get a warning before changes are discarded.
20868  Firstly the file is deleted, secondly CVS update command is run.
20869 \end_layout
20870
20871 \begin_layout Standard
20872 CVS command: 
20873 \family typewriter
20874 cvs -q update "<file-name>"
20875 \end_layout
20876
20877 \begin_layout Standard
20878 If a reserved checkout is detected and the working copy has no changes only
20879  the reservation is undone.
20880 \end_layout
20881
20882 \begin_layout Standard
20883 CVS command: 
20884 \family typewriter
20885 cvs -q unedit "<file-name>"
20886 \end_layout
20887
20888 \begin_layout Subsubsection
20889
20890 \family sans
20891 Copy
20892 \end_layout
20893
20894 \begin_layout Standard
20895 This will create a copy of the current document.
20896  Since CVS does not support copy operations natively, the version history
20897  is not preserved, and the copy is added as a new file.
20898  It requires a clean document without any changes since the last checkin.
20899  You are asked for a file name and a description of the copy operation.
20900  After that the copy is created, both locally and in the repository.
20901  If the parent directories of the copied and original document differ, all
20902  relative paths of included files of the copy are adjusted (like in 
20903 \family sans
20904 File\SpecialChar menuseparator
20905 Save As
20906 \family default
20907 \SpecialChar ldots
20908 ).
20909  Finally, the copy is loaded instead of the original document.
20910 \end_layout
20911
20912 \begin_layout Labeling
20913 \labelwidthstring 00.00.0000
20914 CVS
20915 \begin_inset space ~
20916 \end_inset
20917
20918 commands: 
20919 \begin_inset space ~
20920 \end_inset
20921
20922
20923 \begin_inset Newline newline
20924 \end_inset
20925
20926 Copy 
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931
20932 \family typewriter
20933 \begin_inset Quotes eld
20934 \end_inset
20935
20936 <file-name>
20937 \begin_inset Quotes erd
20938 \end_inset
20939
20940
20941 \end_layout
20942
20943 \end_inset
20944
20945  to 
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950
20951 \family typewriter
20952 \begin_inset Quotes eld
20953 \end_inset
20954
20955 <new-file-name>
20956 \begin_inset Quotes erd
20957 \end_inset
20958
20959
20960 \end_layout
20961
20962 \end_inset
20963
20964
20965 \begin_inset Newline newline
20966 \end_inset
20967
20968
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 cvs -q add 
20974 \family typewriter
20975
20976 \begin_inset Quotes eld
20977 \end_inset
20978
20979 <new-file-name>
20980 \begin_inset Quotes erd
20981 \end_inset
20982
20983
20984 \end_layout
20985
20986 \end_inset
20987
20988
20989 \end_layout
20990
20991 \begin_layout Subsubsection
20992
20993 \family sans
20994 Rename
20995 \end_layout
20996
20997 \begin_layout Standard
20998 This will rename the current document.
20999  Since CVS does not support rename operations natively, the version history
21000  is not preserved, the renamed document is added as a new file, and the
21001  original document is deleted.
21002  It requires a clean document without any changes since the last checkin.
21003  You are asked for a file name and a description of the rename operation.
21004  After that the document is renamed, both locally and in the repository.
21005  If the parent directories of the new and old file names differ, all relative
21006  paths of included files are adjusted (like in 
21007 \family sans
21008 File\SpecialChar menuseparator
21009 Save As
21010 \family default
21011 \SpecialChar ldots
21012 ).
21013  Finally, the document is reloaded using the new name.
21014 \end_layout
21015
21016 \begin_layout Labeling
21017 \labelwidthstring 00.00.0000
21018 CVS
21019 \begin_inset space ~
21020 \end_inset
21021
21022 commands: 
21023 \begin_inset space ~
21024 \end_inset
21025
21026
21027 \begin_inset Newline newline
21028 \end_inset
21029
21030 Rename 
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035
21036 \family typewriter
21037 \begin_inset Quotes eld
21038 \end_inset
21039
21040 <file-name>
21041 \begin_inset Quotes erd
21042 \end_inset
21043
21044
21045 \end_layout
21046
21047 \end_inset
21048
21049  to 
21050 \begin_inset Flex Code
21051 status collapsed
21052
21053 \begin_layout Plain Layout
21054
21055 \family typewriter
21056 \begin_inset Quotes eld
21057 \end_inset
21058
21059 <new-file-name>
21060 \begin_inset Quotes erd
21061 \end_inset
21062
21063
21064 \end_layout
21065
21066 \end_inset
21067
21068
21069 \begin_inset Newline newline
21070 \end_inset
21071
21072
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 cvs -q add 
21078 \family typewriter
21079
21080 \begin_inset Quotes eld
21081 \end_inset
21082
21083 <new-file-name>
21084 \begin_inset Quotes erd
21085 \end_inset
21086
21087
21088 \end_layout
21089
21090 \end_inset
21091
21092
21093 \begin_inset Newline newline
21094 \end_inset
21095
21096
21097 \begin_inset Flex Code
21098 status collapsed
21099
21100 \begin_layout Plain Layout
21101 cvs -q remove 
21102 \family typewriter
21103
21104 \begin_inset Quotes eld
21105 \end_inset
21106
21107 <file-name>
21108 \begin_inset Quotes erd
21109 \end_inset
21110
21111
21112 \end_layout
21113
21114 \end_inset
21115
21116
21117 \end_layout
21118
21119 \begin_layout Subsubsection
21120 Update of the local directory checkout from repository
21121 \end_layout
21122
21123 \begin_layout Standard
21124 Once your documents gets more complex, containing sub-documents and pictures,
21125  including external 
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 .tex
21131 \end_layout
21132
21133 \end_inset
21134
21135  files and so on using version control becomes more complicated.
21136  \SpecialChar LyX
21137  supports updating the whole tree in which resides the document.
21138  This become especially useful once you cooperate with people which neither
21139  have detailed knowledge about CVS usage nor they have ambition to commit
21140  additional material to the repository.
21141  You have to organize the files structure so that all external files are
21142  in the same directory or subdirectories of the document.
21143  It's good practice anyway to store multipart documents in an extra directory.
21144 \end_layout
21145
21146 \begin_layout Standard
21147 The 
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 Update local directory from repository
21153 \end_layout
21154
21155 \end_inset
21156
21157  command updates the whole directory.
21158  If local changes are detected user is warned before update starts.
21159  In case of merge conflicts both versions of the conflicting document parts
21160  are placed in the final document.
21161  You have to review and correct the result of the merge.
21162  You'll find the conflicts enclosed in pairs of 
21163 \begin_inset Flex Code
21164 status collapsed
21165
21166 \begin_layout Plain Layout
21167 <<<<<<<
21168 \end_layout
21169
21170 \end_inset
21171
21172  and 
21173 \begin_inset Flex Code
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177 >>>>>>>
21178 \end_layout
21179
21180 \end_inset
21181
21182  separated by 
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 =======
21188 \end_layout
21189
21190 \end_inset
21191
21192 .
21193  The first part is your version as before the update operation with the
21194  document name prepended.
21195  The second one is the repository version with the version number after
21196  the sequence of 
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 >
21202 \end_layout
21203
21204 \end_inset
21205
21206  signs.
21207 \end_layout
21208
21209 \begin_layout Labeling
21210 \labelwidthstring 00.00.0000
21211 CVS
21212 \begin_inset space ~
21213 \end_inset
21214
21215 commands: 
21216 \begin_inset space ~
21217 \end_inset
21218
21219
21220 \begin_inset Newline newline
21221 \end_inset
21222
21223
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 cd $path; cvs diff 
21229 \family typewriter
21230 "."
21231 \end_layout
21232
21233 \end_inset
21234
21235  (Ask if changes are detected.)
21236 \begin_inset Newline newline
21237 \end_inset
21238
21239
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 cd $path; cvs -q update 
21245 \family typewriter
21246 "."
21247 \end_layout
21248
21249 \end_inset
21250
21251
21252 \end_layout
21253
21254 \begin_layout Standard
21255 where 
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 $path
21261 \end_layout
21262
21263 \end_inset
21264
21265  stands for the path to the document.
21266 \end_layout
21267
21268 \begin_layout Subsubsection
21269
21270 \family sans
21271 Show History
21272 \end_layout
21273
21274 \begin_layout Standard
21275 This shows the complete history of the CVS document.
21276  The output of 
21277 \family typewriter
21278 cvs log "<file-name>"
21279 \family default
21280  is shown in a browser.
21281 \end_layout
21282
21283 \begin_layout Subsubsection
21284 Revision info
21285 \end_layout
21286
21287 \begin_layout Standard
21288 \SpecialChar LyX
21289  supports CVS version number, author name, date and time of last commit.
21290  All those are extracted from 
21291 \family typewriter
21292 cvs log -r <file-name>
21293 \family default
21294 .
21295  See 
21296 \begin_inset CommandInset ref
21297 LatexCommand ref
21298 reference "subsec:VCS-Revision-Information"
21299
21300 \end_inset
21301
21302  for details.
21303 \end_layout
21304
21305 \begin_layout Subsection
21306 SVN commands in \SpecialChar LyX
21307
21308 \end_layout
21309
21310 \begin_layout Standard
21311 SVN is now partially supported by \SpecialChar LyX
21312 .
21313  You can find the commands in the 
21314 \family sans
21315 File\SpecialChar menuseparator
21316 Version
21317 \begin_inset space ~
21318 \end_inset
21319
21320 Control
21321 \family default
21322  submenu.
21323  Please note that if you use password protected access to repository via
21324  ssh, you will be asked in terminal window.
21325  \SpecialChar LyX
21326  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21327 \begin_inset Foot
21328 status open
21329
21330 \begin_layout Plain Layout
21331 Most of the commands will work with 1.4 too, see 
21332 \begin_inset CommandInset ref
21333 LatexCommand ref
21334 reference "subsec:SVN-Repo-Update"
21335
21336 \end_inset
21337
21338 .
21339  There seems to be currently unresolved permissions problem under SVN 1.8
21340  with reverting changes when file is locked.
21341 \end_layout
21342
21343 \end_inset
21344
21345
21346 \end_layout
21347
21348 \begin_layout Subsubsection
21349
21350 \family sans
21351 Register
21352 \end_layout
21353
21354 \begin_layout Standard
21355 If your document is not under revision control, this is the only item shown
21356  in the menu.
21357  And if it is under revision control, the 
21358 \family sans
21359 Register
21360 \family default
21361  item is not visible.
21362 \end_layout
21363
21364 \begin_layout Standard
21365 This command registers in SVN your document ONLY in case you have already
21366  the documents directory under SVN control (in particular 
21367 \family typewriter
21368 .svn/entries
21369 \family default
21370  file exists).
21371  This means you have to checkout the archive by yourself.
21372 \end_layout
21373
21374 \begin_layout Standard
21375 Then you are asked interactively to supply an initial description of the
21376  document.
21377  Don't forget that registered file is not yet commited.
21378 \end_layout
21379
21380 \begin_layout Standard
21381 SVN command that is run: 
21382 \family typewriter
21383 svn add -q 
21384 \begin_inset Quotes eld
21385 \end_inset
21386
21387 <file-name>
21388 \begin_inset Quotes erd
21389 \end_inset
21390
21391
21392 \end_layout
21393
21394 \begin_layout Standard
21395 Read 
21396 \family typewriter
21397 man svn
21398 \family default
21399  to understand the switches.
21400 \end_layout
21401
21402 \begin_layout Subsubsection
21403
21404 \family sans
21405 Check In Changes
21406 \end_layout
21407
21408 \begin_layout Standard
21409 When you are finished editing a file, you commit your changes.
21410  When you do this, you are asked for a description of the changes.
21411  After that changes are commited.
21412 \end_layout
21413
21414 \begin_layout Standard
21415 SVN command:
21416 \begin_inset Foot
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 In case locking is not enabled.
21421  See Section 
21422 \begin_inset CommandInset ref
21423 LatexCommand ref
21424 reference "subsec:SVN-File-Locking"
21425
21426 \end_inset
21427
21428 .
21429 \end_layout
21430
21431 \end_inset
21432
21433  
21434 \family typewriter
21435 svn commit -q -m"<description>" <file-name>
21436 \end_layout
21437
21438 \begin_layout Subsubsection
21439
21440 \family sans
21441 Check Out For Edit
21442 \end_layout
21443
21444 \begin_layout Standard
21445 Updates the changes of this file from the repository.
21446  Be sure you understand SVN merging and conflicts resolving before using
21447  this function, because all conflicts has to be resolved manually by you!
21448 \end_layout
21449
21450 \begin_layout Standard
21451 SVN command:
21452 \begin_inset Foot
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 Ditto.
21457 \end_layout
21458
21459 \end_inset
21460
21461  
21462 \family typewriter
21463 svn update --non-interactive 
21464 \begin_inset Quotes eld
21465 \end_inset
21466
21467 <file-name>
21468 \begin_inset Quotes erd
21469 \end_inset
21470
21471
21472 \end_layout
21473
21474 \begin_layout Subsubsection
21475
21476 \family sans
21477 Revert To Repository Version
21478 \end_layout
21479
21480 \begin_layout Standard
21481 This will discard all changes made to the document since the last check
21482  in.
21483  You get a warning before changes are discarded.
21484 \end_layout
21485
21486 \begin_layout Standard
21487 SVN command: 
21488 \family typewriter
21489 svn revert -q 
21490 \begin_inset Quotes eld
21491 \end_inset
21492
21493 <file-name>
21494 \begin_inset Quotes erd
21495 \end_inset
21496
21497
21498 \end_layout
21499
21500 \begin_layout Subsubsection
21501
21502 \family sans
21503 Copy
21504 \end_layout
21505
21506 \begin_layout Standard
21507 This will create a copy of the current document including the version history.
21508  It requires a clean document without any changes since the last checkin.
21509  You are asked for a file name and a description of the copy operation.
21510  After that the copy is created, both locally and in the repository.
21511  If the parent directories of the copied and original document differ, all
21512  relative paths of included files of the copy are adjusted (like in 
21513 \family sans
21514 File\SpecialChar menuseparator
21515 Save As
21516 \family default
21517 \SpecialChar ldots
21518 ).
21519  Finally, the copy is loaded instead of the original document.
21520 \end_layout
21521
21522 \begin_layout Labeling
21523 \labelwidthstring 00.00.0000
21524 SVN
21525 \begin_inset space ~
21526 \end_inset
21527
21528 commands: 
21529 \begin_inset space ~
21530 \end_inset
21531
21532
21533 \begin_inset Newline newline
21534 \end_inset
21535
21536
21537 \begin_inset Flex Code
21538 status collapsed
21539
21540 \begin_layout Plain Layout
21541 svn copy -q 
21542 \family typewriter
21543
21544 \begin_inset Quotes eld
21545 \end_inset
21546
21547 <file-name>
21548 \begin_inset Quotes erd
21549 \end_inset
21550
21551  
21552 \begin_inset Quotes eld
21553 \end_inset
21554
21555 <new-file-name>
21556 \begin_inset Quotes erd
21557 \end_inset
21558
21559
21560 \end_layout
21561
21562 \end_inset
21563
21564
21565 \begin_inset Newline newline
21566 \end_inset
21567
21568
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 svn commit
21574 \end_layout
21575
21576 \end_inset
21577
21578
21579 \end_layout
21580
21581 \begin_layout Subsubsection
21582
21583 \family sans
21584 Rename
21585 \end_layout
21586
21587 \begin_layout Standard
21588 This will rename the current document including the version history.
21589  It requires a clean document without any changes since the last checkin.
21590  You are asked for a file name and a description of the rename operation.
21591  After that the document is renamed, both locally and in the repository.
21592  If the parent directories of the new and old file names differ, all relative
21593  paths of included files are adjusted (like in 
21594 \family sans
21595 File\SpecialChar menuseparator
21596 Save As
21597 \family default
21598 \SpecialChar ldots
21599 ).
21600  Finally, the document is reloaded using the new name.
21601 \end_layout
21602
21603 \begin_layout Labeling
21604 \labelwidthstring 00.00.0000
21605 SVN
21606 \begin_inset space ~
21607 \end_inset
21608
21609 commands: 
21610 \begin_inset space ~
21611 \end_inset
21612
21613
21614 \begin_inset Newline newline
21615 \end_inset
21616
21617
21618 \begin_inset Flex Code
21619 status collapsed
21620
21621 \begin_layout Plain Layout
21622 svn move -q 
21623 \family typewriter
21624
21625 \begin_inset Quotes eld
21626 \end_inset
21627
21628 <file-name>
21629 \begin_inset Quotes erd
21630 \end_inset
21631
21632  
21633 \begin_inset Quotes eld
21634 \end_inset
21635
21636 <new-file-name>
21637 \begin_inset Quotes erd
21638 \end_inset
21639
21640
21641 \end_layout
21642
21643 \end_inset
21644
21645
21646 \begin_inset Newline newline
21647 \end_inset
21648
21649
21650 \begin_inset Flex Code
21651 status collapsed
21652
21653 \begin_layout Plain Layout
21654 svn commit
21655 \end_layout
21656
21657 \end_inset
21658
21659
21660 \end_layout
21661
21662 \begin_layout Subsubsection
21663 \begin_inset CommandInset label
21664 LatexCommand label
21665 name "subsec:SVN-Repo-Update"
21666
21667 \end_inset
21668
21669 Update of the local directory checkout from repository
21670 \begin_inset Foot
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 Note that this command will work only with subversion 
21675 \begin_inset Formula $\geqq1.5$
21676 \end_inset
21677
21678
21679 \end_layout
21680
21681 \end_inset
21682
21683
21684 \end_layout
21685
21686 \begin_layout Standard
21687 All the commands above have one shortcomming - they deal with the current
21688  document only.
21689  Once your document contains pictures, includes external 
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 .tex
21695 \end_layout
21696
21697 \end_inset
21698
21699  files and so on administration becomes more complicated.
21700  \SpecialChar LyX
21701  now supports updating the whole tree in which resides the document
21702 \begin_inset Foot
21703 status collapsed
21704
21705 \begin_layout Plain Layout
21706 One need to organize the files structure so that all external files are
21707  in the same directory or subdirectories of the document.
21708  
21709 \end_layout
21710
21711 \end_inset
21712
21713 .
21714  This become especially useful once you cooperate with people which neither
21715  know about subversion management nor they have ambition to commit additional
21716  material to the repository.
21717  
21718 \end_layout
21719
21720 \begin_layout Standard
21721 \begin_inset Flex Code
21722 status collapsed
21723
21724 \begin_layout Plain Layout
21725 Update local directory from repository
21726 \end_layout
21727
21728 \end_inset
21729
21730  command updates the whole directory and in case of merge conflicts local
21731  version of the files are left, so no unintended data loss occurs.
21732  If local changes are detected user is warned before update starts.
21733 \end_layout
21734
21735 \begin_layout Labeling
21736 \labelwidthstring 00.00.0000
21737 SVN
21738 \begin_inset space ~
21739 \end_inset
21740
21741 commands: 
21742 \begin_inset space ~
21743 \end_inset
21744
21745
21746 \begin_inset Newline newline
21747 \end_inset
21748
21749
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754 svn diff $path
21755 \end_layout
21756
21757 \end_inset
21758
21759  (Ask if changes are detected.)
21760 \begin_inset Newline newline
21761 \end_inset
21762
21763
21764 \begin_inset Flex Code
21765 status collapsed
21766
21767 \begin_layout Plain Layout
21768 svn update –accept mine-full $path
21769 \end_layout
21770
21771 \end_inset
21772
21773
21774 \end_layout
21775
21776 \begin_layout Standard
21777 where 
21778 \begin_inset Flex Code
21779 status collapsed
21780
21781 \begin_layout Plain Layout
21782 $path
21783 \end_layout
21784
21785 \end_inset
21786
21787  stands for the path to the document.
21788 \end_layout
21789
21790 \begin_layout Subsubsection
21791
21792 \family sans
21793 Show History
21794 \end_layout
21795
21796 \begin_layout Standard
21797 This shows the complete history of the SVN document.
21798  The output of 
21799 \family typewriter
21800 svn log 
21801 \begin_inset Quotes eld
21802 \end_inset
21803
21804 <file-name>
21805 \begin_inset Quotes erd
21806 \end_inset
21807
21808
21809 \family default
21810  is shown in a browser.
21811 \end_layout
21812
21813 \begin_layout Subsubsection
21814 File Locking
21815 \begin_inset CommandInset label
21816 LatexCommand label
21817 name "subsec:SVN-File-Locking"
21818
21819 \end_inset
21820
21821
21822 \end_layout
21823
21824 \begin_layout Standard
21825 The file exchange through various revision control systems brings the problem
21826  of merge conflicts in case two different users try to edit the same (parts
21827  of) document.
21828  When such a conflict happens it needs manual resolving and one reasonable
21829  alternative is to provide some kind of locking mechanism, which guarantees
21830  that only one user is allowed to edit file at the given time.
21831 \end_layout
21832
21833 \begin_layout Standard
21834 SVN has two such mechanisms to provide mutual exclusivity for file access
21835  - locks and automatic setting of write permissions (see sec.
21836  
21837 \begin_inset CommandInset ref
21838 LatexCommand ref
21839 reference "subsec:Automatical-Locking-Property"
21840
21841 \end_inset
21842
21843 ) based on 
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848 svn:needs-lock
21849 \end_layout
21850
21851 \end_inset
21852
21853  file svn property
21854 \begin_inset Foot
21855 status open
21856
21857 \begin_layout Plain Layout
21858 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21859 \end_layout
21860
21861 \end_inset
21862
21863 .
21864  If this property is detected for a given document \SpecialChar LyX
21865  starts to use SVN locks
21866  for document editing automatically and the whole check-in/out mechanism
21867  switches to the same regimen as for RCS.
21868  This in particular means there are two different modes of file use in \SpecialChar LyX
21869 :
21870 \end_layout
21871
21872 \begin_layout Itemize
21873 Unlocked state.
21874  The loaded file is in the read-only mode.
21875  For editing on needs to check-out.
21876  
21877 \emph on
21878 Check-out
21879 \emph default
21880  consists of updating from the repository and gaining write lock.
21881  If the lock is not possible to obtain, we remain in unlocked state.
21882 \end_layout
21883
21884 \begin_layout Itemize
21885 Locked state.
21886  The loaded file is in the 'normal' edit mode.
21887  No other user is allowed to edit the file.
21888  
21889 \emph on
21890 Check-in
21891 \emph default
21892  consists of commiting changes and releasing write-lock.
21893  If no changes have been made to the document, no commit will be produced
21894 \begin_inset Foot
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 Don't be puzzled by the fact that you will be asked for commit message anyway.
21899 \end_layout
21900
21901 \end_inset
21902
21903  and only the write-lock will be released.
21904 \end_layout
21905
21906 \begin_layout Standard
21907 SVN commands:
21908 \end_layout
21909
21910 \begin_layout Labeling
21911 \labelwidthstring 00.00.0000
21912 Check-in:
21913 \family typewriter
21914  svn commit -q -m"<description>" "<file-name>"
21915 \begin_inset Newline newline
21916 \end_inset
21917
21918 svn unlock "<file-name>"
21919 \end_layout
21920
21921 \begin_layout Labeling
21922 \labelwidthstring 00.00.0000
21923 Check-out: 
21924 \family typewriter
21925 svn update "<file-name>"
21926 \begin_inset Newline newline
21927 \end_inset
21928
21929 svn lock "<file-name>"
21930 \end_layout
21931
21932 \begin_layout Subsubsection
21933
21934 \family typewriter
21935 \begin_inset CommandInset label
21936 LatexCommand label
21937 name "subsec:Automatical-Locking-Property"
21938
21939 \end_inset
21940
21941
21942 \family default
21943 Automatic Locking Property
21944 \end_layout
21945
21946 \begin_layout Standard
21947 The above mentioned automatic setting of write permissions of the .lyx file
21948  can be set through
21949 \family sans
21950  File\SpecialChar menuseparator
21951 Version
21952 \begin_inset space ~
21953 \end_inset
21954
21955 Control\SpecialChar menuseparator
21956 Toggle locking property
21957 \family default
21958 .
21959  This command is active only when the file is not locked on the svn server
21960  (i.e.
21961  you need to check-out before proceeding).
21962 \end_layout
21963
21964 \begin_layout Labeling
21965 \labelwidthstring 00.00.0000
21966 SVN
21967 \begin_inset space ~
21968 \end_inset
21969
21970 commands:
21971 \end_layout
21972
21973 \begin_layout Labeling
21974 \labelwidthstring 00.00.0000
21975 Set:
21976 \family typewriter
21977  svn propset svn:needs-lock ON "<file-name>"
21978 \end_layout
21979
21980 \begin_layout Labeling
21981 \labelwidthstring 00.00.0000
21982 Unset: 
21983 \family typewriter
21984 svn propdel svn:needs-lock "<file-name>"
21985 \end_layout
21986
21987 \begin_layout Subsubsection
21988 \begin_inset CommandInset label
21989 LatexCommand label
21990 name "subsec:VCS-Revision-Information"
21991
21992 \end_inset
21993
21994 Revision Information in Documents
21995 \end_layout
21996
21997 \begin_layout Standard
21998 There are more possibilities how to activate revision information in our
21999  document.
22000 \end_layout
22001
22002 \begin_layout Itemize
22003 \SpecialChar LyX
22004  supports directly:
22005 \end_layout
22006
22007 \begin_deeper
22008 \begin_layout Itemize
22009 tree revision information (
22010 \begin_inset Flex Code
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014 vcs-tree-revision
22015 \end_layout
22016
22017 \end_inset
22018
22019 ).
22020  The result is the output of the 
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 svnversion
22026 \end_layout
22027
22028 \end_inset
22029
22030  command, the following table gives you an idea, how to read the results.
22031 \end_layout
22032
22033 \begin_layout Standard
22034 \align center
22035 \begin_inset Tabular
22036 <lyxtabular version="3" rows="6" columns="2">
22037 <features tabularvalignment="middle">
22038 <column alignment="center" valignment="top">
22039 <column alignment="center" valignment="top">
22040 <row>
22041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22042 \begin_inset Text
22043
22044 \begin_layout Plain Layout
22045 Output
22046 \end_layout
22047
22048 \end_inset
22049 </cell>
22050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22051 \begin_inset Text
22052
22053 \begin_layout Plain Layout
22054 Meaning
22055 \end_layout
22056
22057 \end_inset
22058 </cell>
22059 </row>
22060 <row>
22061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22062 \begin_inset Text
22063
22064 \begin_layout Plain Layout
22065 4123:4168
22066 \end_layout
22067
22068 \end_inset
22069 </cell>
22070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22071 \begin_inset Text
22072
22073 \begin_layout Plain Layout
22074 mixed revision working copy
22075 \end_layout
22076
22077 \end_inset
22078 </cell>
22079 </row>
22080 <row>
22081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22082 \begin_inset Text
22083
22084 \begin_layout Plain Layout
22085 4168M
22086 \end_layout
22087
22088 \end_inset
22089 </cell>
22090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22091 \begin_inset Text
22092
22093 \begin_layout Plain Layout
22094 modified working copy
22095 \end_layout
22096
22097 \end_inset
22098 </cell>
22099 </row>
22100 <row>
22101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22102 \begin_inset Text
22103
22104 \begin_layout Plain Layout
22105 4123S
22106 \end_layout
22107
22108 \end_inset
22109 </cell>
22110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22111 \begin_inset Text
22112
22113 \begin_layout Plain Layout
22114 switched working copy
22115 \end_layout
22116
22117 \end_inset
22118 </cell>
22119 </row>
22120 <row>
22121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22122 \begin_inset Text
22123
22124 \begin_layout Plain Layout
22125 4123P
22126 \end_layout
22127
22128 \end_inset
22129 </cell>
22130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22131 \begin_inset Text
22132
22133 \begin_layout Plain Layout
22134 partial working copy, from a sparse checkout
22135 \end_layout
22136
22137 \end_inset
22138 </cell>
22139 </row>
22140 <row>
22141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22142 \begin_inset Text
22143
22144 \begin_layout Plain Layout
22145 4123:4168MS
22146 \end_layout
22147
22148 \end_inset
22149 </cell>
22150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22151 \begin_inset Text
22152
22153 \begin_layout Plain Layout
22154 mixed revision, modified, switched working copy
22155 \end_layout
22156
22157 \end_inset
22158 </cell>
22159 </row>
22160 </lyxtabular>
22161
22162 \end_inset
22163
22164
22165 \end_layout
22166
22167 \begin_layout Itemize
22168 file revision information.
22169  The result comes from parsing the output of 
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 svn
22175 \begin_inset space ~
22176 \end_inset
22177
22178 info
22179 \begin_inset space ~
22180 \end_inset
22181
22182 –xml
22183 \begin_inset space ~
22184 \end_inset
22185
22186 file.lyx
22187 \end_layout
22188
22189 \end_inset
22190
22191 .
22192  Supported flags are:
22193 \end_layout
22194
22195 \begin_deeper
22196 \begin_layout Itemize
22197 version number of the last commit (
22198 \begin_inset Flex Code
22199 status collapsed
22200
22201 \begin_layout Plain Layout
22202 vcs-revision
22203 \end_layout
22204
22205 \end_inset
22206
22207 )
22208 \end_layout
22209
22210 \begin_layout Itemize
22211 author of the last commit (
22212 \begin_inset Flex Code
22213 status collapsed
22214
22215 \begin_layout Plain Layout
22216 vcs-author
22217 \end_layout
22218
22219 \end_inset
22220
22221 )
22222 \end_layout
22223
22224 \begin_layout Itemize
22225 date of the last commit (
22226 \begin_inset Flex Code
22227 status collapsed
22228
22229 \begin_layout Plain Layout
22230 vcs-date
22231 \end_layout
22232
22233 \end_inset
22234
22235 )
22236 \end_layout
22237
22238 \begin_layout Itemize
22239 time of the last commit (
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244 vcs-time
22245 \end_layout
22246
22247 \end_inset
22248
22249 )
22250 \end_layout
22251
22252 \end_deeper
22253 \begin_layout Standard
22254 You can obtain this info via InsetInfo (e.g.
22255  
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 info-insert buffer vcs-date
22261 \end_layout
22262
22263 \end_inset
22264
22265 ).
22266  The information will be available only when you have the file stored under
22267  svn managment (i.e.
22268  the 
22269 \begin_inset Flex Code
22270 status collapsed
22271
22272 \begin_layout Plain Layout
22273 .svn
22274 \end_layout
22275
22276 \end_inset
22277
22278  directory is available with your document).
22279 \end_layout
22280
22281 \end_deeper
22282 \begin_layout Itemize
22283 Another—a hacking one—possibility is to use svn keywords
22284 \begin_inset Foot
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22289 \end_layout
22290
22291 \end_inset
22292
22293 .
22294  In short – you set file keywords property (e.g.
22295  
22296 \family sans
22297 svn propset svn:keywords 'Rev' file.lyx
22298 \family default
22299 ) and then paste keyword \SpecialChar TeX
22300  code
22301 \begin_inset Foot
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305 This is an easy way how to ensure that \SpecialChar LyX
22306  won't break the line in the middle
22307  of keyword tag.
22308 \end_layout
22309
22310 \end_inset
22311
22312  tag in your document (e.g.
22313  
22314 \begin_inset ERT
22315 status open
22316
22317 \begin_layout Plain Layout
22318
22319 $Rev$
22320 \end_layout
22321
22322 \end_inset
22323
22324 ).
22325  This way svn client will automatically substitute revision number (e.g.
22326  
22327 \begin_inset ERT
22328 status open
22329
22330 \begin_layout Plain Layout
22331
22332 $Rev: 59 $
22333 \end_layout
22334
22335 \end_inset
22336
22337 ) after each update and commit.
22338  There are more problems with this approach.
22339  Firstly, the '$' character is used in \SpecialChar TeX
22340  world for math equations, so any
22341  occurence of math formula 
22342 \begin_inset Formula $Rev$
22343 \end_inset
22344
22345  become 
22346 \begin_inset Formula $Rev:59$
22347 \end_inset
22348
22349  in your \SpecialChar LyX
22350  document.
22351  Similarly for other keywords like Id, Date, Author, etc.
22352  Secondly svn output is dependent on your locales, so its very easy that
22353  svn would produce some problematic strings once Date is used.
22354  Thirdly you get the whole 'Rev: 59' string in your document instead of
22355  the plain number.
22356  Until subversion implements user's custom keywords it will be hard to use
22357  this approach reliably or let \SpecialChar LyX
22358  to support it directly.
22359 \end_layout
22360
22361 \begin_layout Subsection
22362 SVN and Windows Environment
22363 \end_layout
22364
22365 \begin_layout Quote
22366 My inclination is to say that if the user cannot figure out the command
22367  line operations on their own fairly quickly, they would be well advised
22368  to use TortoiseSVN.
22369  —P.
22370  A.
22371  Rubin
22372 \end_layout
22373
22374 \begin_layout Subsubsection
22375 Preparation
22376 \end_layout
22377
22378 \begin_layout Standard
22379 In addition to installing \SpecialChar LyX
22380 , and having access to a Subversion repository,
22381  the user will need to install the Subversion client program.
22382  A Windows installer for the client program is available from 
22383 \begin_inset CommandInset href
22384 LatexCommand href
22385 name "CollabNet"
22386 target "http://www.collab.net/nonav/downloads/subversion/"
22387 literal "false"
22388
22389 \end_inset
22390
22391 .
22392  The user may also want to install 
22393 \begin_inset CommandInset href
22394 LatexCommand href
22395 name "TortoiseSVN"
22396 target "http://tortoisesvn.tigris.org/"
22397 literal "false"
22398
22399 \end_inset
22400
22401 , which integrates Subversion operations into the context (rightclick) menu
22402  of Windows Explorer.
22403  Operations done outside \SpecialChar LyX
22404  will typically be more convenient using the Explorer
22405  context menu.
22406  Note that TortoiseSVN is not a replacement for the client program, which
22407  is what \SpecialChar LyX
22408  itself will use.
22409 \end_layout
22410
22411 \begin_layout Subsubsection
22412 Bringing a document under Subversion control
22413 \end_layout
22414
22415 \begin_layout Standard
22416 Before a \SpecialChar LyX
22417  document can be brought under version control in Subversion, its
22418  parent directory needs to be under version control.
22419  If the document is being added to a project already in the repository,
22420  this is accomplished by checking the project out to the directory where
22421  the new document will be placed.
22422  If the project itself is not yet under version control (for instance, if
22423  this document starts a new project), the directory must be imported into
22424  the repository.
22425  This is done outside \SpecialChar LyX
22426 .
22427  Both import and checkout are easily accomplished from the Explorer context
22428  menu using TortoiseSVN, or alternatively can be done using the command
22429  line client at a DOS prompt.
22430  The procedure for importing the project using TortoiseSVN is described
22431  below, assuming an existing repository and a new project being started
22432  in 
22433 \family typewriter
22434 C:
22435 \backslash
22436 new project
22437 \family default
22438 .
22439  For information on using the Subversion client program, run 
22440 \family typewriter
22441 svn --help 
22442 \family default
22443 in a DOS shell.
22444 \end_layout
22445
22446 \begin_layout Enumerate
22447 Locate 
22448 \family typewriter
22449 C:
22450 \backslash
22451 new project 
22452 \family default
22453 in Windows Explorer, right click it, and select 
22454 \family sans
22455 TortoiseSVN\SpecialChar menuseparator
22456 Repo-browser
22457 \family default
22458 .
22459  If necessary, adjust the URL for the repository, then click OK.
22460 \end_layout
22461
22462 \begin_layout Enumerate
22463 Right click the level of the repository under which you want to place the
22464  new project folder (typically the top level) and click 
22465 \family sans
22466 Create folder
22467 \family default
22468  Supply a name for the project folder and click OK.
22469  Add a message for the log file if desired, then click OK again.
22470  The new project folder should appear in the repository.
22471  Finally, click OK again to exit the repository browser.
22472 \end_layout
22473
22474 \begin_layout Enumerate
22475 Once again right click 
22476 \family typewriter
22477 C:
22478 \backslash
22479 new project
22480 \family default
22481 , this time selecting SVN Checkout\SpecialChar ldots
22482  Select the URL of the project folder
22483  you just created in the repository, and set the checkout directory to 
22484 \family typewriter
22485 C:
22486 \backslash
22487 new project.
22488
22489 \family default
22490  Click OK.
22491  You will be warned about a non-empty folder; click OK to proceed.
22492  You should now have a 
22493 \family typewriter
22494 .svn
22495 \family default
22496  directory under 
22497 \family typewriter
22498 C:
22499 \backslash
22500 new project.
22501 \end_layout
22502
22503 \begin_layout Enumerate
22504 Create or open your document in \SpecialChar LyX
22505  and click 
22506 \family sans
22507 File\SpecialChar menuseparator
22508 Version
22509 \begin_inset space ~
22510 \end_inset
22511
22512 Control\SpecialChar menuseparator
22513 Register.
22514  
22515 \family default
22516 Add a log message and click OK to commit the document to version control.
22517 \end_layout
22518
22519 \begin_layout Standard
22520 From this point onward, you should have full functionality in the 
22521 \family sans
22522 File\SpecialChar menuseparator
22523 Version
22524 \begin_inset space ~
22525 \end_inset
22526
22527 Control
22528 \family default
22529  menu.
22530  You also have the option of checking the document in and out, viewing its
22531  history, etc.
22532  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22533  client program from a command prompt.
22534 \end_layout
22535
22536 \begin_layout Subsubsection
22537 SSH tunnel used with SVN under Windows
22538 \end_layout
22539
22540 \begin_layout Standard
22541 Compared with Linux setting up an svn client to communicate over ssh under
22542  Windows is a rather troublesome task.
22543  We will at least offer some hints how to setup the client side but prior
22544  knowledge about ssh and the Windows command line is needed, also be prepared
22545  for a great deal of frustration\SpecialChar ldots
22546
22547 \end_layout
22548
22549 \begin_layout Enumerate
22550 Get an svn client for windows, as described in the previous sections.
22551  When it is a fresh install run some svn command (e.g.
22552  
22553 \begin_inset Flex Code
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 svn –version
22558 \end_layout
22559
22560 \end_inset
22561
22562 ) to create config files, which you will need to change later on.
22563 \end_layout
22564
22565 \begin_layout Enumerate
22566 Choose an ssh client for Windows.
22567  There are several possibilities, we will use the one from Putty tools
22568 \begin_inset Foot
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 \begin_inset Flex URL
22573 status collapsed
22574
22575 \begin_layout Plain Layout
22576
22577 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22578 \end_layout
22579
22580 \end_inset
22581
22582
22583 \end_layout
22584
22585 \end_inset
22586
22587 .
22588  You will need to set the connection up so that the client doesn't ask for
22589  any password from you.
22590  To keep things easy we will use only keys without any additional password
22591  protection etc.
22592 \end_layout
22593
22594 \begin_deeper
22595 \begin_layout Enumerate
22596 Generate keys by 
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 puttygen
22602 \end_layout
22603
22604 \end_inset
22605
22606 .
22607  Save your private .ppk key file and put the public one on the server side.
22608  If the SVN server runs on Linux, note that the format of the public key
22609  is not compatible with Linux openssh and you will need to direcly copy-paste
22610  the key from the “
22611 \emph on
22612 Public key for pasting into OpenSSH authorized_keys file
22613 \emph default
22614 :” edit field into the server's 
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 ~/.ssh/authorized_keys
22620 \end_layout
22621
22622 \end_inset
22623
22624  / 
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 authorized_keys2
22630 \end_layout
22631
22632 \end_inset
22633
22634  file.
22635 \end_layout
22636
22637 \begin_layout Enumerate
22638 Get the Putty's 
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 plink
22644 \end_layout
22645
22646 \end_inset
22647
22648 .
22649  In the SVN config file
22650 \begin_inset Foot
22651 status collapsed
22652
22653 \begin_layout Plain Layout
22654 Exact path depends on Windows version, usually somewhere around 
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 c:
22660 \backslash
22661 Documents and Settings
22662 \backslash
22663 user
22664 \backslash
22665 Application Data
22666 \backslash
22667 Subversion
22668 \backslash
22669 config
22670 \end_layout
22671
22672 \end_inset
22673
22674  / 
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 AppData
22680 \backslash
22681 Roaming
22682 \backslash
22683 Subversion
22684 \end_layout
22685
22686 \end_inset
22687
22688 .
22689 \end_layout
22690
22691 \end_inset
22692
22693 , section [tunnels], setup ssh command, e.g.
22694  
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22700 \end_layout
22701
22702 \end_inset
22703
22704 .
22705 \begin_inset Foot
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709 It will usually take a lot of time to get exact command right and it depends
22710  on many things.
22711  For example do not have some remote server saved as a default session in
22712  Putty etc.
22713  If things fail, try to connect via plink without SVN first.
22714 \end_layout
22715
22716 \end_inset
22717
22718
22719 \end_layout
22720
22721 \end_deeper
22722 \begin_layout Enumerate
22723 Checkout the SVN archive, e.
22724 \begin_inset space \thinspace{}
22725 \end_inset
22726
22727 g.
22728 \begin_inset Newline newline
22729 \end_inset
22730
22731
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 svn co svn+ssh://user@server/repository_path
22737 \end_layout
22738
22739 \end_inset
22740
22741 .
22742 \end_layout
22743
22744 \begin_layout Subsubsection
22745 End-of-Line Conversions
22746 \end_layout
22747
22748 \begin_layout Standard
22749 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22750  will
22751  use different line endings inside the .lyx files.
22752  This is not a problem as far as \SpecialChar LyX
22753  functionality is concerned, but the commit
22754  diffs will be huge and merge-conflicts prone.
22755  Fortunately SVN itself knows
22756 \begin_inset Foot
22757 status collapsed
22758
22759 \begin_layout Plain Layout
22760 \begin_inset Flex URL
22761 status collapsed
22762
22763 \begin_layout Plain Layout
22764
22765 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22766 \end_layout
22767
22768 \end_inset
22769
22770
22771 \end_layout
22772
22773 \end_inset
22774
22775  how to deal with CR/LF problems when switching .lyx files to the 
22776 \begin_inset Flex Code
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780 native
22781 \end_layout
22782
22783 \end_inset
22784
22785  mode.
22786 \begin_inset Foot
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790 For the lazy guys: 
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 svn propset svn:eol-style native FILE_NAME
22796 \end_layout
22797
22798 \end_inset
22799
22800
22801 \end_layout
22802
22803 \end_inset
22804
22805
22806 \end_layout
22807
22808 \begin_layout Subsection
22809 GIT commands in \SpecialChar LyX
22810
22811 \end_layout
22812
22813 \begin_layout Standard
22814 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22815 .
22816  You can find the commands in the 
22817 \family sans
22818 File\SpecialChar menuseparator
22819 Version
22820 \begin_inset space ~
22821 \end_inset
22822
22823 Control
22824 \family default
22825  submenu.
22826  Please note that if you use password protected access to repository via
22827  ssh, you will be asked in terminal window.
22828  \SpecialChar LyX
22829  was tested against GIT 1.7.
22830 \begin_inset Foot
22831 status open
22832
22833 \begin_layout Plain Layout
22834 Windows users please note that you need to ensure that git is on the path.
22835  This can be set from within \SpecialChar LyX
22836  at 
22837 \family sans
22838 Tools\SpecialChar menuseparator
22839 Preferences\SpecialChar menuseparator
22840 Paths\SpecialChar menuseparator
22841 PATH prefix
22842 \family default
22843 .
22844 \end_layout
22845
22846 \end_inset
22847
22848
22849 \end_layout
22850
22851 \begin_layout Standard
22852 One big difference of GIT and the other supported version control systems
22853  is the distributed nature of GIT: With traditional version control systems
22854  there is one central server which hosts the repository.
22855  Users commit their changes to the server, and get updates made by other
22856  users from it.
22857  With GIT, users commit to a local repository.
22858  The local repository can be synchronized with one or more remote repositories
22859  using the 
22860 \begin_inset Flex Code
22861 status collapsed
22862
22863 \begin_layout Plain Layout
22864 pull
22865 \end_layout
22866
22867 \end_inset
22868
22869  and 
22870 \begin_inset Flex Code
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874 push
22875 \end_layout
22876
22877 \end_inset
22878
22879  GIT commands.
22880  \SpecialChar LyX
22881  does not interact in any way with remote GIT repositories.
22882  It works exclusively with the local repository in a very similar way as
22883  with a central CVS or SVN repository.
22884  If you use remote GIT repositories you need to do the 
22885 \begin_inset Flex Code
22886 status collapsed
22887
22888 \begin_layout Plain Layout
22889 pull
22890 \end_layout
22891
22892 \end_inset
22893
22894  and 
22895 \begin_inset Flex Code
22896 status collapsed
22897
22898 \begin_layout Plain Layout
22899 push
22900 \end_layout
22901
22902 \end_inset
22903
22904  operations with your favourite GIT client.
22905 \end_layout
22906
22907 \begin_layout Subsubsection
22908
22909 \family sans
22910 Register
22911 \end_layout
22912
22913 \begin_layout Standard
22914 If your document is not under revision control, this is the only item shown
22915  in the menu.
22916  And if it is under revision control, the 
22917 \family sans
22918 Register
22919 \family default
22920  item is not visible.
22921 \end_layout
22922
22923 \begin_layout Standard
22924 This command registers in GIT your document ONLY in case you have already
22925  the documents directory under GIT control (in particular 
22926 \family typewriter
22927 .git/index
22928 \family default
22929  file exists).
22930  This means you have to checkout the archive by yourself.
22931 \end_layout
22932
22933 \begin_layout Standard
22934 Then you are asked interactively to supply an initial description of the
22935  document.
22936  Don't forget that registered file is not yet commited.
22937 \end_layout
22938
22939 \begin_layout Standard
22940 GIT command that is run: 
22941 \family typewriter
22942 git add 
22943 \begin_inset Quotes eld
22944 \end_inset
22945
22946 <file-name>
22947 \begin_inset Quotes erd
22948 \end_inset
22949
22950
22951 \end_layout
22952
22953 \begin_layout Standard
22954 Read 
22955 \family typewriter
22956 man git
22957 \family default
22958  to understand the switches.
22959 \end_layout
22960
22961 \begin_layout Subsubsection
22962
22963 \family sans
22964 Check In Changes
22965 \end_layout
22966
22967 \begin_layout Standard
22968 When you are finished editing a file, you commit your changes.
22969  When you do this, you are asked for a description of the changes.
22970  After that changes are commited.
22971 \end_layout
22972
22973 \begin_layout Standard
22974 GIT command: 
22975 \family typewriter
22976 git commit -q -m"<description>" <file-name>
22977 \end_layout
22978
22979 \begin_layout Subsubsection
22980
22981 \family sans
22982 Revert To Repository Version
22983 \end_layout
22984
22985 \begin_layout Standard
22986 This will discard all changes made to the document since the last check
22987  in.
22988  You get a warning before changes are discarded.
22989 \end_layout
22990
22991 \begin_layout Standard
22992 GIT command: 
22993 \family typewriter
22994 git checkout -q 
22995 \begin_inset Quotes eld
22996 \end_inset
22997
22998 <file-name>
22999 \begin_inset Quotes erd
23000 \end_inset
23001
23002
23003 \end_layout
23004
23005 \begin_layout Subsubsection
23006
23007 \family sans
23008 Rename
23009 \end_layout
23010
23011 \begin_layout Standard
23012 This will rename the current document including the version history.
23013  It requires a clean document without any changes since the last checkin.
23014  You are asked for a file name and a description of the rename operation.
23015  After that the document is renamed, both locally and in the repository.
23016  If the parent directories of the new and old file names differ, all relative
23017  paths of included files are adjusted (like in 
23018 \family sans
23019 File\SpecialChar menuseparator
23020 Save As
23021 \family default
23022 \SpecialChar ldots
23023 ).
23024  Finally, the document is reloaded using the new name.
23025 \end_layout
23026
23027 \begin_layout Labeling
23028 \labelwidthstring 00.00.0000
23029 GIT
23030 \begin_inset space ~
23031 \end_inset
23032
23033 commands: 
23034 \begin_inset space ~
23035 \end_inset
23036
23037
23038 \begin_inset Newline newline
23039 \end_inset
23040
23041
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 git mv 
23047 \family typewriter
23048
23049 \begin_inset Quotes eld
23050 \end_inset
23051
23052 <file-name>
23053 \begin_inset Quotes erd
23054 \end_inset
23055
23056  
23057 \begin_inset Quotes eld
23058 \end_inset
23059
23060 <new-file-name>
23061 \begin_inset Quotes erd
23062 \end_inset
23063
23064
23065 \end_layout
23066
23067 \end_inset
23068
23069
23070 \begin_inset Newline newline
23071 \end_inset
23072
23073
23074 \begin_inset Flex Code
23075 status collapsed
23076
23077 \begin_layout Plain Layout
23078 git commit
23079 \end_layout
23080
23081 \end_inset
23082
23083
23084 \end_layout
23085
23086 \begin_layout Subsubsection
23087
23088 \family sans
23089 Show History
23090 \end_layout
23091
23092 \begin_layout Standard
23093 This shows the complete history of the GIT document.
23094  The output of 
23095 \family typewriter
23096 git log 
23097 \begin_inset Quotes eld
23098 \end_inset
23099
23100 <file-name>
23101 \begin_inset Quotes erd
23102 \end_inset
23103
23104
23105 \family default
23106  is shown in a browser.
23107 \end_layout
23108
23109 \begin_layout Subsubsection
23110 Version Info
23111 \end_layout
23112
23113 \begin_layout Standard
23114 \SpecialChar LyX
23115  supports GIT hash number of the last commit to the file, author name, date
23116  and time of last commit.
23117  All those are extracted from 
23118 \family typewriter
23119 git log -n 1 --pretty=format:%H%n%an%n%ai
23120 \family default
23121 .
23122  Tree version information is obtained via 
23123 \family typewriter
23124 git describe --abbrev --dirty --long
23125 \family default
23126 .
23127  See 
23128 \begin_inset CommandInset ref
23129 LatexCommand ref
23130 reference "subsec:VCS-Revision-Information"
23131
23132 \end_inset
23133
23134  for other details.
23135 \end_layout
23136
23137 \begin_layout Subsection
23138 Further tuning
23139 \end_layout
23140
23141 \begin_layout Standard
23142 With the recent addition of the vc-command function \SpecialChar LyX
23143  power users are allowed
23144  to create their own commands for revision control.
23145 \end_layout
23146
23147 \begin_layout Standard
23148 As an example you can see how two TortoiseSVN commands could be integrated
23149  directly:
23150 \end_layout
23151
23152 \begin_layout Description
23153 Commit: 
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23159 \end_layout
23160
23161 \end_inset
23162
23163
23164 \end_layout
23165
23166 \begin_layout Description
23167 Revert: 
23168 \begin_inset Flex Code
23169 status collapsed
23170
23171 \begin_layout Plain Layout
23172 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23173 \end_layout
23174
23175 \end_inset
23176
23177
23178 \end_layout
23179
23180 \begin_layout Subsection
23181 Version control and Document comparison
23182 \end_layout
23183
23184 \begin_layout Standard
23185 One of the typical uses of version control is to inspect the changes between
23186  revisions, usually by creating 
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 diff
23192 \end_layout
23193
23194 \end_inset
23195
23196  dumps.
23197  While this is useful for plain text files, it is much less useful in the
23198  case of \SpecialChar LyX
23199  files, which have more a complicated structure.
23200  Hence we provide binding to the Document comparison feature.
23201  There are two ways of calling this feature - either by direct call of 
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206 VC_COMPARE
23207 \end_layout
23208
23209 \end_inset
23210
23211  \SpecialChar LyX
23212  function (for details see \SpecialChar LyX
23213  functions manual) or by icon/menu item 
23214 \begin_inset Flex Noun
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218 Compare with older revision...
23219 \end_layout
23220
23221 \end_inset
23222
23223 .
23224  One can either compare two chosen revisions of the document or he can simply
23225  compare the current version of edited text with older revisions (where
23226  '
23227 \begin_inset Flex Noun
23228 status collapsed
23229
23230 \begin_layout Plain Layout
23231 0
23232 \end_layout
23233
23234 \end_inset
23235
23236 ' revisions back means comparison of the edited file with last commited
23237  revision).
23238  
23239 \end_layout
23240
23241 \begin_layout Standard
23242 This feature is supported for SVN and RCS though due to the more complicated
23243  versioning scheme of RCS there is a constraint – when addressing the revisions
23244  in dialog, numbers always point to the last number in RCS revision number,
23245  i.e.
23246  '35' in '1.2.35'.
23247  We don't currently support GIT addressing of revisions, one can just compare
23248  edited document with its revision X steps backs, where X is addressed as
23249  HEAD~X.
23250 \end_layout
23251
23252 \begin_layout Section
23253 Literate Programming
23254 \end_layout
23255
23256 \begin_layout Standard
23257 Updated by 
23258 \noun on
23259 Kayvan Sylvan 
23260 \noun default
23261 (kayvan@sylvan.com)
23262 \noun on
23263
23264 \noun default
23265 original documentation written by 
23266 \noun on
23267 Edmar Wienskoski Jr.
23268
23269 \noun default
23270  (edmar-w-jr@technologist.com)
23271 \end_layout
23272
23273 \begin_layout Subsection
23274 Introduction
23275 \end_layout
23276
23277 \begin_layout Standard
23278 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23279  for literate
23280  programming, where it is assumed that you are familiar with this programming
23281  technique, and know what 
23282 \begin_inset Quotes eld
23283 \end_inset
23284
23285 tangling
23286 \begin_inset Quotes erd
23287 \end_inset
23288
23289  and 
23290 \begin_inset Quotes eld
23291 \end_inset
23292
23293 weaving
23294 \begin_inset Quotes erd
23295 \end_inset
23296
23297  means.
23298  If that is not the case, please follow the web links provided in the following
23299  sections.
23300  There is a lot of good documentation out there covering old development
23301  history to the latest tools tips.
23302 \end_layout
23303
23304 \begin_layout Standard
23305 It is also assumed that you are familiar with \SpecialChar LyX
23306  itself to a point that you
23307  are comfortable changing your \SpecialChar LyX
23308  preferences, and X resources file.
23309  If that is not the case please refer to other \SpecialChar LyX
23310  documentation to cover your
23311  specific needs.
23312 \end_layout
23313
23314 \begin_layout Subsection
23315 Literate Programming
23316 \end_layout
23317
23318 \begin_layout Standard
23319 From the Literate Programming FAQ: 
23320 \end_layout
23321
23322 \begin_layout Quotation
23323 Literate programming is the combination of documentation and source together
23324  in a fashion suited for reading by human beings.
23325  In fact, literate programs should be enjoyable reading, even inviting!
23326  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23327  and documentation in a single file.
23328  Literate programming tools then parse the file to produce either readable
23329  documentation or compilable source.
23330  The WEB style of literate programming was created by D.
23331 \begin_inset space \thinspace{}
23332 \end_inset
23333
23334 E.
23335  Knuth during the development of his \SpecialChar TeX
23336  typesetting software.
23337  
23338 \end_layout
23339
23340 \begin_layout Standard
23341 Another excerpt says:
23342 \end_layout
23343
23344 \begin_layout Quotation
23345
23346 \emph on
23347 How is literate programming different from verbose commenting?
23348 \end_layout
23349
23350 \begin_layout Quotation
23351 There are three distinguishing characteristics.
23352  In order of importance, they are: 
23353 \end_layout
23354
23355 \begin_deeper
23356 \begin_layout Itemize
23357 flexible order of elaboration 
23358 \end_layout
23359
23360 \begin_layout Itemize
23361 automatic support for browsing 
23362 \end_layout
23363
23364 \begin_layout Itemize
23365 typeset documentation, especially diagrams and mathematics 
23366 \end_layout
23367
23368 \end_deeper
23369 \begin_layout Standard
23370 Now that I sparked your curiosity, take a look in the references.
23371 \end_layout
23372
23373 \begin_layout Subsubsection
23374 References
23375 \end_layout
23376
23377 \begin_layout Standard
23378 The complete Literate Programming FAQ can be found at:
23379 \end_layout
23380
23381 \begin_layout Quote
23382 Literate Programming FAQ 
23383 \begin_inset Flex URL
23384 status collapsed
23385
23386 \begin_layout Plain Layout
23387
23388 http://www.literateprogramming.com/lpfaq.pdf
23389 \end_layout
23390
23391 \end_inset
23392
23393
23394 \end_layout
23395
23396 \begin_layout Standard
23397 The FAQ lists 23 (twenty three!) different literate programming tools.
23398  Where some are specialized or 
23399 \begin_inset Quotes eld
23400 \end_inset
23401
23402 tailored
23403 \begin_inset Quotes erd
23404 \end_inset
23405
23406  for particular programming languages, while other have general scope.
23407  I selected 
23408 \noun on
23409 Noweb
23410 \noun default
23411  for my own use for several reasons:
23412 \end_layout
23413
23414 \begin_layout Itemize
23415 It can generate the documentation either in \SpecialChar LaTeX
23416  or HTML.
23417 \end_layout
23418
23419 \begin_layout Itemize
23420 It has a open architecture, i.
23421 \begin_inset space \thinspace{}
23422 \end_inset
23423
23424 e.
23425 \begin_inset space \space{}
23426 \end_inset
23427
23428 it is easy to plug in new filters and to perform special processing that
23429  you may need.
23430  
23431 \end_layout
23432
23433 \begin_layout Itemize
23434 There is a good selection of filters available already (the HTML is one
23435  of them).
23436 \end_layout
23437
23438 \begin_layout Itemize
23439 It is free.
23440 \end_layout
23441
23442 \begin_layout Standard
23443 The Noweb web page can be found at: 
23444 \end_layout
23445
23446 \begin_layout Quote
23447 Noweb home page 
23448 \begin_inset Flex URL
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452
23453 http://www.cs.virginia.edu/~nr/noweb/
23454 \end_layout
23455
23456 \end_inset
23457
23458
23459 \end_layout
23460
23461 \begin_layout Standard
23462 Starting from there you can reach many other interesting links and even
23463  some literate program examples.
23464 \end_layout
23465
23466 \begin_layout Subsection
23467 \SpecialChar LyX
23468  and Literate Programming with Noweb
23469 \end_layout
23470
23471 \begin_layout Standard
23472 The \SpecialChar LyX
23473  support for Literate Programming is provided by using the generic \SpecialChar LyX
23474
23475  converters mechanism.
23476  This support is provided in a 
23477 \begin_inset Quotes eld
23478 \end_inset
23479
23480 Noweb independent
23481 \begin_inset Quotes erd
23482 \end_inset
23483
23484  way, i.
23485 \begin_inset space \thinspace{}
23486 \end_inset
23487
23488 e.
23489 \begin_inset space \space{}
23490 \end_inset
23491
23492 you will be able to use this new \SpecialChar LyX
23493  feature with some other literate programming
23494  tool of your choice by just changing your \SpecialChar LyX
23495  preferences.
23496 \end_layout
23497
23498 \begin_layout Subsubsection
23499 Generating documents and code (weaving and tangling)
23500 \end_layout
23501
23502 \begin_layout Paragraph
23503 Using the noweb module
23504 \end_layout
23505
23506 \begin_layout Standard
23507 If you have installed Noweb and \SpecialChar LyX
23508  successfully, whenever you open a new document,
23509  after you have chosen its document class, use the Document->Settings menu
23510  to add the 
23511 \begin_inset Quotes eld
23512 \end_inset
23513
23514 noweb
23515 \begin_inset Quotes erd
23516 \end_inset
23517
23518  module.
23519  If Noweb is correctly installed, when you click on the 
23520 \begin_inset Quotes eld
23521 \end_inset
23522
23523 Modules
23524 \begin_inset Quotes erd
23525 \end_inset
23526
23527  link, you will see the 
23528 \begin_inset Quotes eld
23529 \end_inset
23530
23531 noweb
23532 \begin_inset Quotes erd
23533 \end_inset
23534
23535  module in the available list and you can add it to your document.
23536 \end_layout
23537
23538 \begin_layout Paragraph
23539 Typing code in
23540 \end_layout
23541
23542 \begin_layout Standard
23543 \SpecialChar LyX
23544  enables you to write code with a layout named 
23545 \begin_inset Flex Noun
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549 Chunk
23550 \end_layout
23551
23552 \end_inset
23553
23554 .
23555  Noweb delimits chunks like this:
23556 \end_layout
23557
23558 \begin_layout LyX-Code
23559 <<My code>>=
23560 \end_layout
23561
23562 \begin_layout LyX-Code
23563   code
23564 \end_layout
23565
23566 \begin_layout LyX-Code
23567   more code
23568 \end_layout
23569
23570 \begin_layout LyX-Code
23571   even more code
23572 \end_layout
23573
23574 \begin_layout LyX-Code
23575   @
23576 \end_layout
23577
23578 \begin_layout Standard
23579 The problem is that whatever is written in between the << and the 
23580 \family typewriter
23581 @
23582 \family default
23583  must be taken literally, i.
23584 \begin_inset space \thinspace{}
23585 \end_inset
23586
23587 e.
23588 \begin_inset space \space{}
23589 \end_inset
23590
23591 \SpecialChar LyX
23592  should be prevented from making any special interpretation of what has
23593  been written.
23594  This is also handled by 
23595 \begin_inset Flex Noun
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 Chunk
23600 \end_layout
23601
23602 \end_inset
23603
23604 , that works like a normal paragraph but has a free spacing capability.
23605 \end_layout
23606
23607 \begin_layout Standard
23608 As a special note, you can also use the 
23609 \begin_inset Quotes eld
23610 \end_inset
23611
23612 %def
23613 \begin_inset Quotes erd
23614 \end_inset
23615
23616  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23617 rence:
23618 \end_layout
23619
23620 \begin_layout LyX-Code
23621 <<My chunk>>=
23622 \end_layout
23623
23624 \begin_layout LyX-Code
23625 def some_function(args):
23626 \end_layout
23627
23628 \begin_layout LyX-Code
23629    "This is the doc string for this function."
23630 \end_layout
23631
23632 \begin_layout LyX-Code
23633    print "My args: ", args
23634 \end_layout
23635
23636 \begin_layout LyX-Code
23637 @ %def some_function
23638 \end_layout
23639
23640 \begin_layout Standard
23641 For an example of this usage and the resulting cross-reference output, look
23642  at the Literate python program in 
23643 \emph on
23644 LIBDIR/examples/listerrors.lyx
23645 \emph default
23646  which should make this all clear.
23647 \end_layout
23648
23649 \begin_layout Paragraph
23650 Generating the documentation
23651 \end_layout
23652
23653 \begin_layout Standard
23654 At this point you already have a new document file with a proper document
23655  class, and with some code and text on it.
23656  How do I print it? The answer is simple, you select 
23657 \family sans
23658 View\SpecialChar menuseparator
23659 DVI,
23660 \family default
23661  etc.
23662  Just like you would do for a plain document.
23663  No special procedure is required.
23664 \end_layout
23665
23666 \begin_layout Standard
23667 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23668 :
23669 \end_layout
23670
23671 \begin_layout Enumerate
23672 When the 
23673 \family sans
23674 Update\SpecialChar menuseparator
23675 DVI
23676 \family default
23677  menu option is chosen, a \SpecialChar LaTeX
23678  file is generated.
23679  
23680 \end_layout
23681
23682 \begin_deeper
23683 \begin_layout Standard
23684 If the document is of any literate class the generated file will be named
23685  with an extension name defined by the 
23686 \begin_inset Quotes eld
23687 \end_inset
23688
23689 literate
23690 \begin_inset Quotes erd
23691 \end_inset
23692
23693  format (defined in the Preferences panel), otherwise the file will have
23694  the usual 
23695 \family typewriter
23696 .tex
23697 \family default
23698  extension.
23699 \end_layout
23700
23701 \end_deeper
23702 \begin_layout Enumerate
23703 Note that the only difference so far is in the name of the file, no special
23704  processing is required by \SpecialChar LyX
23705 .
23706  Given that you formatted the code using the 
23707 \begin_inset Flex Noun
23708 status collapsed
23709
23710 \begin_layout Plain Layout
23711 Chunk
23712 \end_layout
23713
23714 \end_inset
23715
23716  layout that, by itself, takes care of the business.
23717 \end_layout
23718
23719 \begin_layout Enumerate
23720 If the document is of any literate class \SpecialChar LyX
23721  will then use the internal \SpecialChar LyX
23722  to
23723  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23724  converter
23725 \begin_inset Foot
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 The converters are defined in the 
23730 \family sans
23731 Tools\SpecialChar menuseparator
23732 Preferences
23733 \family default
23734  panel, under the 
23735 \begin_inset Quotes eld
23736 \end_inset
23737
23738 Conversion
23739 \begin_inset Quotes erd
23740 \end_inset
23741
23742  tab.
23743  See section 
23744 \emph on
23745 Converters
23746 \emph default
23747  of the 
23748 \emph on
23749 Customization
23750 \emph default
23751  manual for general information about converters.
23752 \end_layout
23753
23754 \end_inset
23755
23756  to generate the \SpecialChar LaTeX
23757  file.
23758 \end_layout
23759
23760 \begin_deeper
23761 \begin_layout Standard
23762 Otherwise it will just skip this step.
23763 \end_layout
23764
23765 \end_deeper
23766 \begin_layout Enumerate
23767 Finally, \SpecialChar LaTeX
23768  is invoked and the regular post processing continues as in a plain
23769  document.
23770 \end_layout
23771
23772 \begin_layout Standard
23773 Independence from a particular 
23774 \begin_inset Quotes eld
23775 \end_inset
23776
23777 literate tool
23778 \begin_inset Quotes erd
23779 \end_inset
23780
23781  is easily achieved by changing the commands that are run by the various
23782  converters.
23783 \end_layout
23784
23785 \begin_layout Paragraph
23786 Generating the code
23787 \end_layout
23788
23789 \begin_layout Standard
23790 When the build menu option is chosen or the corresponding button in the
23791  toolbar is pressed, a \SpecialChar LaTeX
23792  file is generated just like step 1 above.
23793  Next, \SpecialChar LyX
23794  invokes the 
23795 \family typewriter
23796 Noweb->Program
23797 \family default
23798  converter.
23799  This converter needs to be defined by the user and is not installed by
23800  default, though the Program format is.
23801  This converter (like any other converter) will have two parts:
23802 \end_layout
23803
23804 \begin_layout Enumerate
23805 The converter program itself.
23806  This program performs the conversion from the one format to the other (in
23807  this case, from the Noweb format to the Program pseudo-format).
23808 \end_layout
23809
23810 \begin_layout Enumerate
23811 The error log parser.
23812  This is a program whose sole purpose is to rewrite error messages in a
23813  format that \SpecialChar LyX
23814  understands.
23815  This makes it possible for \SpecialChar LyX
23816  to place error boxes in the right places in
23817  the file buffer.
23818 \end_layout
23819
23820 \begin_layout Standard
23821 The first part, the 
23822 \begin_inset Quotes eld
23823 \end_inset
23824
23825 Converter
23826 \begin_inset Quotes erd
23827 \end_inset
23828
23829  setting, should be set to
23830 \begin_inset Newline newline
23831 \end_inset
23832
23833
23834 \begin_inset Quotes eld
23835 \end_inset
23836
23837
23838 \family typewriter
23839 build-script $$i
23840 \family default
23841  $$r
23842 \begin_inset Quotes erd
23843 \end_inset
23844
23845 .
23846 \begin_inset Newline newline
23847 \end_inset
23848
23849 This basically means that \SpecialChar LyX
23850  will call 
23851 \begin_inset Quotes eld
23852 \end_inset
23853
23854 build-script
23855 \begin_inset Quotes erd
23856 \end_inset
23857
23858  (a program or script) with the name of the Noweb file (normally a file
23859  in the \SpecialChar LyX
23860  temp directory) and the directory path of the original \SpecialChar LyX
23861  file.
23862  
23863 \end_layout
23864
23865 \begin_layout Standard
23866 This is an implementation of 
23867 \begin_inset Quotes eld
23868 \end_inset
23869
23870 build-script
23871 \begin_inset Quotes erd
23872 \end_inset
23873
23874  that you can place in a directory on your path:
23875 \end_layout
23876
23877 \begin_layout Standard
23878 \begin_inset VSpace defskip
23879 \end_inset
23880
23881
23882 \end_layout
23883
23884 \begin_layout Standard
23885 \begin_inset Newpage pagebreak
23886 \end_inset
23887
23888
23889 \end_layout
23890
23891 \begin_layout Standard
23892
23893 \family sans
23894 #!/bin/sh
23895 \end_layout
23896
23897 \begin_layout Standard
23898
23899 \family sans
23900 #
23901 \end_layout
23902
23903 \begin_layout Standard
23904
23905 \family sans
23906 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23907 \end_layout
23908
23909 \begin_layout Standard
23910 \begin_inset VSpace defskip
23911 \end_inset
23912
23913
23914 \end_layout
23915
23916 \begin_layout Standard
23917 The next part of the converter setting is the 
23918 \begin_inset Quotes eld
23919 \end_inset
23920
23921 Flags
23922 \begin_inset Quotes erd
23923 \end_inset
23924
23925  which is to be set to
23926 \begin_inset Newline newline
23927 \end_inset
23928
23929
23930 \begin_inset Quotes eld
23931 \end_inset
23932
23933
23934 \family typewriter
23935 parselog=$$s/scripts/listerrors
23936 \family default
23937
23938 \begin_inset Quotes erd
23939 \end_inset
23940
23941 .
23942 \begin_inset Newline newline
23943 \end_inset
23944
23945 This will run any errors that are generated by the 
23946 \begin_inset Quotes eld
23947 \end_inset
23948
23949 build-script
23950 \begin_inset Quotes erd
23951 \end_inset
23952
23953  process through the 
23954 \begin_inset Quotes eld
23955 \end_inset
23956
23957 listerrors
23958 \begin_inset Quotes erd
23959 \end_inset
23960
23961  program.
23962 \end_layout
23963
23964 \begin_layout Standard
23965 The build will normally take place in \SpecialChar LyX
23966 's temporary directory, so the files
23967  produced by the conversion will be in that directory.
23968  \SpecialChar LyX
23969  will copy out what it regards as the `main' file, but the 
23970 \family typewriter
23971 Noweb->Program
23972 \family default
23973  conversion may produce several files, and so most of these would then be
23974  deleted when \SpecialChar LyX
23975  was closed.
23976  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23977  the build-script chunk can place the generated files in that location.
23978 \end_layout
23979
23980 \begin_layout Paragraph
23981 Build instructions in the document
23982 \end_layout
23983
23984 \begin_layout Standard
23985 The last piece of the integration between \SpecialChar LyX
23986  and noweb is the 
23987 \begin_inset Quotes eld
23988 \end_inset
23989
23990 build-script
23991 \begin_inset Quotes erd
23992 \end_inset
23993
23994  chunk.
23995  Generally, the instructions for building your program should be embedded
23996  in a chunk of its own.
23997  The noweb-specific 
23998 \begin_inset Quotes eld
23999 \end_inset
24000
24001 build-script
24002 \begin_inset Quotes erd
24003 \end_inset
24004
24005  above uses the notangle command to look for this chunk (called 
24006 \begin_inset Quotes eld
24007 \end_inset
24008
24009 build-script
24010 \begin_inset Quotes erd
24011 \end_inset
24012
24013 ) and runs its contents through 
24014 \begin_inset Quotes eld
24015 \end_inset
24016
24017 sh
24018 \begin_inset Quotes erd
24019 \end_inset
24020
24021 .
24022 \end_layout
24023
24024 \begin_layout Standard
24025 Typically, such a chunk would look something like this:
24026 \end_layout
24027
24028 \begin_layout LyX-Code
24029 <<build-script>>=
24030 \end_layout
24031
24032 \begin_layout LyX-Code
24033 #!/bin/sh
24034 \begin_inset Newline newline
24035 \end_inset
24036
24037 if [ -z "${NOWEB_SOURCE}" ]
24038 \begin_inset Newline newline
24039 \end_inset
24040
24041 then
24042 \end_layout
24043
24044 \begin_layout LyX-Code
24045 NOWEB_SOURCE=myfile.nw
24046 \begin_inset Newline newline
24047 \end_inset
24048
24049 fi
24050 \begin_inset Newline newline
24051 \end_inset
24052
24053 [...
24054  code to extract files ...
24055  use NOWEB_OUTPUT_DIR here ...]
24056 \begin_inset Newline newline
24057 \end_inset
24058
24059 [...
24060  code to compile files ...]
24061 \begin_inset Newline newline
24062 \end_inset
24063
24064 @
24065 \end_layout
24066
24067 \begin_layout Standard
24068 Look in 
24069 \emph on
24070 LIBDIR/examples/listerrors.lyx
24071 \emph default
24072  or in 
24073 \emph on
24074 LIBDIR/examples/Literate.lyx
24075 \emph default
24076  which implement two versions of the 
24077 \begin_inset Quotes eld
24078 \end_inset
24079
24080 listerrors
24081 \begin_inset Quotes erd
24082 \end_inset
24083
24084  program for some illustrations of how all of these pieces go together or
24085  in 
24086 \emph on
24087 LIBDIR/examples/noweb2lyx.lyx.
24088
24089 \emph default
24090  Interestingly, these three files show off the language-indepence of the
24091  \SpecialChar LyX
24092  literate programming support since they are written in Python, C and Perl
24093  respectively.
24094 \end_layout
24095
24096 \begin_layout Subsubsection
24097 Configuring \SpecialChar LyX
24098
24099 \end_layout
24100
24101 \begin_layout Standard
24102 All the Literate Programming support is configured by the 
24103 \family sans
24104 Tools\SpecialChar menuseparator
24105 Preferences
24106 \family default
24107  panel in the 
24108 \begin_inset Quotes eld
24109 \end_inset
24110
24111 File Handling
24112 \begin_inset Quotes erd
24113 \end_inset
24114
24115  tab.
24116  The important parts are:
24117 \end_layout
24118
24119 \begin_layout Description
24120 the
24121 \begin_inset space ~
24122 \end_inset
24123
24124
24125 \begin_inset Quotes eld
24126 \end_inset
24127
24128 NoWeb
24129 \begin_inset Quotes erd
24130 \end_inset
24131
24132
24133 \begin_inset space ~
24134 \end_inset
24135
24136 format Set up via the File Formats tab, this is where the Noweb-specific
24137  pieces are set up.
24138  The 
24139 \family sans
24140 GUI Name
24141 \family default
24142  is set to 
24143 \family typewriter
24144 NoWeb
24145 \family default
24146 , the file extension is set to 
24147 \family typewriter
24148 .nw
24149 \family default
24150 .
24151  This tells \SpecialChar LyX
24152  to create a file with a 
24153 \family typewriter
24154 .nw
24155 \family default
24156  extension in the first step of the conversion process.
24157 \end_layout
24158
24159 \begin_layout Description
24160 the
24161 \begin_inset space ~
24162 \end_inset
24163
24164
24165 \family sans
24166 Program
24167 \family default
24168
24169 \begin_inset space ~
24170 \end_inset
24171
24172 format This is an empty format whose sole purpose is to be the endpoint
24173  of a conversion (which then allows us to set up a converter for it).
24174 \end_layout
24175
24176 \begin_layout Description
24177
24178 \family sans
24179 NoWeb
24180 \family default
24181 ->
24182 \family sans
24183 \SpecialChar LaTeX
24184
24185 \family default
24186  This converter performs the 
24187 \begin_inset Quotes eld
24188 \end_inset
24189
24190 weaving
24191 \begin_inset Quotes erd
24192 \end_inset
24193
24194  of the literate document.
24195  For Noweb, it is set to 
24196 \begin_inset Quotes eld
24197 \end_inset
24198
24199
24200 \family typewriter
24201 noweave -delay -index $$i > $$o
24202 \family default
24203
24204 \begin_inset Quotes erd
24205 \end_inset
24206
24207
24208 \end_layout
24209
24210 \begin_layout Description
24211
24212 \family sans
24213 NoWeb
24214 \family default
24215 ->
24216 \family sans
24217 Program
24218 \family default
24219  This performs the 
24220 \begin_inset Quotes eld
24221 \end_inset
24222
24223 tangling step
24224 \begin_inset Quotes erd
24225 \end_inset
24226
24227 .
24228  As stated above, the Converter is set to 
24229 \begin_inset Quotes eld
24230 \end_inset
24231
24232
24233 \family typewriter
24234 build-script $$i
24235 \family default
24236  $$r
24237 \begin_inset Quotes erd
24238 \end_inset
24239
24240 , with Flags set to
24241 \begin_inset Newline newline
24242 \end_inset
24243
24244
24245 \begin_inset Quotes eld
24246 \end_inset
24247
24248
24249 \family typewriter
24250 parselog=$$s/scripts/listerrors
24251 \family default
24252
24253 \begin_inset Quotes erd
24254 \end_inset
24255
24256 .
24257 \end_layout
24258
24259 \begin_layout Subsubsection
24260 Debug extensions
24261 \end_layout
24262
24263 \begin_layout Standard
24264 There is also a new function implemented in the \SpecialChar LyX
24265  server, the 
24266 \begin_inset Quotes eld
24267 \end_inset
24268
24269 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24270  
24271 \end_layout
24272
24273 \begin_layout Standard
24274 When debugging code with ddd/gdb, it is possible to invoke a text editor
24275  at the current execution position with a single key stroke.
24276  The default ddd configuration for that is shift-ctrl-V.
24277  It happens that you can define the editor command line invocation in ddd
24278  by accessing the 
24279 \family sans
24280 Edit\SpecialChar menuseparator
24281 Preferences\SpecialChar menuseparator
24282 Helpers
24283 \family default
24284  dialog and changing the "Edit Sources" entry.
24285 \end_layout
24286
24287 \begin_layout Standard
24288 I take advantage of the newly created \SpecialChar LyX
24289  server function and this ddd feature,
24290  and set 
24291 \begin_inset Quotes eld
24292 \end_inset
24293
24294 Edit Sources
24295 \begin_inset Quotes erd
24296 \end_inset
24297
24298  to:
24299 \end_layout
24300
24301 \begin_layout Standard
24302 \begin_inset VSpace defskip
24303 \end_inset
24304
24305
24306 \end_layout
24307
24308 \begin_layout Standard
24309
24310 \family sans
24311 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24312 \end_layout
24313
24314 \begin_layout Standard
24315 \begin_inset VSpace defskip
24316 \end_inset
24317
24318
24319 \end_layout
24320
24321 \begin_layout Standard
24322 With this, whenever you are using ddd and find a point in the program that
24323  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24324  ddd will forward this information to \SpecialChar LyX
24325  through the \SpecialChar LyX
24326  server and then the
24327  \SpecialChar LyX
24328  window will show the same file with the cursor at the same position ddd
24329  was pointing to.
24330  No more guessing or long scrolling to locate a point in the program back
24331  from debugging !
24332 \end_layout
24333
24334 \begin_layout Standard
24335 Note however that you must enable the \SpecialChar LyX
24336  server to get this feature working
24337  (it is disabled by default).
24338  You can enable it in 
24339 \family sans
24340 Preferences
24341 \family default
24342  (tabs 
24343 \family sans
24344 Inputs
24345 \family default
24346
24347 \family sans
24348 Paths
24349 \family default
24350 ) by entering in the 
24351 \family sans
24352 \SpecialChar LyX
24353 server pipe
24354 \family default
24355  a path like 
24356 \begin_inset Quotes eld
24357 \end_inset
24358
24359
24360 \family typewriter
24361 /home/<your-home-directory>/.lyx/lyxpipe
24362 \family default
24363
24364 \begin_inset Quotes erd
24365 \end_inset
24366
24367
24368 \end_layout
24369
24370 \begin_layout Standard
24371 Read the \SpecialChar LyX
24372  server documentation in the 
24373 \emph on
24374 Customization Manual
24375 \emph default
24376  for further information.
24377 \end_layout
24378
24379 \begin_layout Subsubsection
24380 Toolbar extensions
24381 \end_layout
24382
24383 \begin_layout Standard
24384 There are six new buttons that can be added to your \SpecialChar LyX
24385  toolbar.
24386  Five of these buttons are short cuts to layout styles: 
24387 \family sans
24388 Standard
24389 \family default
24390
24391 \family sans
24392 Section
24393 \family default
24394
24395 \family sans
24396 \SpecialChar LaTeX
24397
24398 \family default
24399
24400 \family sans
24401 \SpecialChar LyX
24402 -Code
24403 \family default
24404 , and 
24405 \family sans
24406 Chunk
24407 \family default
24408 .
24409  The last one is a short cut to the 
24410 \begin_inset Quotes eld
24411 \end_inset
24412
24413 Build Program
24414 \begin_inset Quotes erd
24415 \end_inset
24416
24417  File menu entry.
24418  
24419 \end_layout
24420
24421 \begin_layout Standard
24422 \SpecialChar LyX
24423  has a range of buttons that are available for tool bar customization.
24424  In my toolbar I like to combine the six short cuts above with two more:
24425  One for 
24426 \family sans
24427 Document
24428 \family default
24429 \SpecialChar menuseparator
24430
24431 \family sans
24432 Update
24433 \family default
24434 \SpecialChar menuseparator
24435
24436 \family sans
24437 DVI
24438 \family default
24439  and the other for 
24440 \family sans
24441 Document\SpecialChar menuseparator
24442 View\SpecialChar menuseparator
24443 DVI
24444 \family default
24445  File menu entries.
24446  Here is how it looks like:
24447 \end_layout
24448
24449 \begin_layout LyX-Code
24450 Toolbar
24451 \end_layout
24452
24453 \begin_layout LyX-Code
24454   Layouts
24455 \end_layout
24456
24457 \begin_layout LyX-Code
24458   Icon "layout Standard"
24459 \end_layout
24460
24461 \begin_layout LyX-Code
24462   Icon "layout Section"
24463 \end_layout
24464
24465 \begin_layout LyX-Code
24466   Icon "layout \SpecialChar LaTeX
24467 "
24468 \end_layout
24469
24470 \begin_layout LyX-Code
24471   Icon "layout \SpecialChar LyX
24472 -Code"
24473 \end_layout
24474
24475 \begin_layout LyX-Code
24476   Icon "layout Chunk"
24477 \end_layout
24478
24479 \begin_layout LyX-Code
24480   Separator
24481 \end_layout
24482
24483 \begin_layout LyX-Code
24484   Icon "buffer-view"
24485 \end_layout
24486
24487 \begin_layout LyX-Code
24488   Icon "buffer-typeset"
24489 \end_layout
24490
24491 \begin_layout LyX-Code
24492   Icon "build-program"
24493 \end_layout
24494
24495 \begin_layout LyX-Code
24496   Separator
24497 \end_layout
24498
24499 \begin_layout LyX-Code
24500 .
24501 \end_layout
24502
24503 \begin_layout LyX-Code
24504 .
24505 \end_layout
24506
24507 \begin_layout LyX-Code
24508 .
24509 \end_layout
24510
24511 \begin_layout LyX-Code
24512 End
24513 \end_layout
24514
24515 \begin_layout Subsubsection
24516 Colors customization
24517 \end_layout
24518
24519 \begin_layout Standard
24520 There are a number of colors in \SpecialChar LyX
24521  that can be customized in 
24522 \family sans
24523 Preferences
24524 \family default
24525 .
24526  One of the things that bothers people is the \SpecialChar LaTeX
24527  font color.
24528  The default color is red, since the chunks uses \SpecialChar LaTeX
24529  font, and there is a lot
24530  of chunks in literate documents, you may get tired of seeing everything
24531  in red.
24532  You can change it by going to the tabs 
24533 \family sans
24534 Look&Feel
24535 \family default
24536
24537 \family sans
24538 Colors.
24539 \end_layout
24540
24541 \begin_layout Standard
24542 The next thing is the visible presence of the newline character in the screen.
24543  You can choose the color of this particular character and make it blend
24544  in the background.
24545  I recommend you choosing a color that is close to the background but not
24546  equal, that way you still can see it is there, but it is not bothering
24547  you anymore.
24548 \end_layout
24549
24550 \begin_layout Subsection
24551 \SpecialChar LyX
24552  and knitr/Sweave
24553 \end_layout
24554
24555 \begin_layout Standard
24556 Support for 
24557 \family sans
24558 knitr
24559 \family default
24560  and 
24561 \family sans
24562 Sweave
24563 \family default
24564  is documented in the 
24565 \emph on
24566 knitr.lyx
24567 \emph default
24568  example file and in the Sweave manual (menu 
24569 \family sans
24570 Help\SpecialChar menuseparator
24571 Specific Manuals
24572 \family default
24573 ).
24574 \end_layout
24575
24576 \begin_layout Chapter
24577 Special features
24578 \end_layout
24579
24580 \begin_layout Standard
24581 You can do everything with \SpecialChar LyX
24582  that you can do with \SpecialChar LaTeX
24583 .
24584  However, \SpecialChar LyX
24585  cannot support every \SpecialChar LaTeX
24586  feature directly.
24587  But you can always use \SpecialChar TeX
24588  Code.
24589  This chapter shows you some more special things you might want to use.
24590  For other special things you can do with figures, tables, floats, boxes
24591  and notes, have a look at the 
24592 \emph on
24593 Embedded
24594 \begin_inset space ~
24595 \end_inset
24596
24597 Objects
24598 \emph default
24599  manual.
24600 \end_layout
24601
24602 \begin_layout Section
24603 Multiple Text Columns
24604 \end_layout
24605
24606 \begin_layout Standard
24607 This feature is independent of the option 
24608 \family sans
24609 Two-column document
24610 \family default
24611  in the document settings under 
24612 \family sans
24613 Text Layout
24614 \family default
24615 .
24616  If you want to have 2
24617 \begin_inset space ~
24618 \end_inset
24619
24620 columns for the whole document, it is recommended to use the 
24621 \family sans
24622 Two-column document
24623 \family default
24624  option.
24625  For all other cases use this feature.
24626 \end_layout
24627
24628 \begin_layout Standard
24629 To use multiple text columns in your document, you have to load the module
24630  
24631 \family sans
24632 Multiple Columns
24633 \family default
24634  (menu 
24635 \family sans
24636 Document\SpecialChar menuseparator
24637 Settings\SpecialChar menuseparator
24638 Modules
24639 \family default
24640 ) and must have the \SpecialChar LaTeX
24641 -package 
24642 \series bold
24643 multicol
24644 \series default
24645  installed.
24646 \end_layout
24647
24648 \begin_layout Standard
24649 Footnotes within multiple columns will be placed at the bottom of the page
24650  and not under each column.
24651  Within the different columns you can use everything, with the limitation
24652  that for floats you need to use the float option 
24653 \family sans
24654 Span columns
24655 \family default
24656 .
24657 \end_layout
24658
24659 \begin_layout Subsection
24660 Basics
24661 \end_layout
24662
24663 \begin_layout Standard
24664 If you want to have 2
24665 \begin_inset space ~
24666 \end_inset
24667
24668 columns in your text, insert a multicolumn inset via the menu 
24669 \family sans
24670 Insert\SpecialChar menuseparator
24671 Custom
24672 \begin_inset space ~
24673 \end_inset
24674
24675 Insets\SpecialChar menuseparator
24676 Multiple
24677 \begin_inset space ~
24678 \end_inset
24679
24680 Columns
24681 \family default
24682  where the columns should start.
24683  Write all text that should be printed in 2
24684 \begin_inset space ~
24685 \end_inset
24686
24687 columns into this inset.
24688 \end_layout
24689
24690 \begin_layout Standard
24691 Here is an example:
24692 \end_layout
24693
24694 \begin_layout Standard
24695 \noindent
24696 \begin_inset Flex Multiple Columns
24697 status open
24698
24699 \begin_layout Plain Layout
24700 \noindent
24701
24702 \series bold
24703 \size small
24704 The Adventure of the Empty House
24705 \series default
24706
24707 \begin_inset Newline newline
24708 \end_inset
24709
24710 by Sir Arthur Conan Doyle
24711 \end_layout
24712
24713 \begin_layout Plain Layout
24714
24715 \size small
24716 It was in the spring of the year 1894 that all London was interested, and
24717  the fashionable world dismayed, by the murder of the Honourable Ronald
24718  Adair under most unusual and inexplicable circumstances.
24719  The public has already learned those particulars of the crime which came
24720  out in the police investigation, but a good deal was suppressed upon that
24721  occasion, since the case for the prosecution was so overwhelmingly strong
24722  that it was not necessary to bring forward all the facts.
24723  Only now, at the end of nearly ten years, am I allowed to supply those
24724  missing links which make up the whole of that remarkable chain.
24725  The crime was of interest in itself, but that interest was as nothing to
24726  me compared to the inconceivable sequel, which afforded me the greatest
24727  shock and surprise of any event in my adventurous life.
24728  Even now, after this long interval, I find myself thrilling as I think
24729  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24730 ty which utterly submerged my mind.
24731  Let me say to that public, which has shown some interest in those glimpses
24732  which I have occasionally given them of the thoughts and actions of a very
24733  remarkable man, that they are not to blame me if I have not shared my knowledge
24734  with them, for I should have considered it my first duty to do so, had
24735  I not been barred by a positive prohibition from his own lips, which was
24736  only withdrawn upon the third of last month.
24737 \end_layout
24738
24739 \end_inset
24740
24741
24742 \end_layout
24743
24744 \begin_layout Standard
24745 To get 3 or more columns, set the cursor into the multicolumn inset and
24746  use the menu 
24747 \family sans
24748 Insert\SpecialChar menuseparator
24749 Number
24750 \begin_inset space ~
24751 \end_inset
24752
24753 of
24754 \begin_inset space ~
24755 \end_inset
24756
24757 Columns
24758 \family default
24759 .
24760  The number of the desired columns is written into that inset (for 3
24761 \begin_inset space ~
24762 \end_inset
24763
24764 columns write 
24765 \begin_inset Quotes eld
24766 \end_inset
24767
24768 3
24769 \begin_inset Quotes erd
24770 \end_inset
24771
24772 ).
24773 \begin_inset Newline newline
24774 \end_inset
24775
24776 Here is an example with 3
24777 \begin_inset space ~
24778 \end_inset
24779
24780 columns:
24781 \end_layout
24782
24783 \begin_layout Standard
24784 \begin_inset Flex Multiple Columns
24785 status open
24786
24787 \begin_layout Plain Layout
24788
24789 \size footnotesize
24790 \begin_inset Argument 1
24791 status open
24792
24793 \begin_layout Plain Layout
24794 3
24795 \end_layout
24796
24797 \end_inset
24798
24799 It can be imagined that my close intimacy with Sherlock Holmes had interested
24800  me deeply in crime, and that after his disappearance I never failed to
24801  read with care the various problems which came before the public.
24802  And I even attempted, more than once, for my own private satisfaction,
24803  to employ his methods in their solution, though with indifferent success.
24804  There was none, however, which appealed to me like this tragedy of Ronald
24805  Adair.
24806  As I read the evidence at the inquest, which led up to a verdict of willful
24807  murder against some person or persons unknown, I realized more clearly
24808  than I had ever done the loss which the community had sustained by the
24809  death of Sherlock Holmes.
24810  There were points about this strange business which would, I was sure,
24811  have specially appealed to him, and the efforts of the police would have
24812  been supplemented, or more probably anticipated, by the trained observation
24813  and the alert mind of the first criminal agent in Europe.
24814  All day, as I drove upon my round, I turned over the case in my mind and
24815  found no explanation which appeared to me to be adequate.
24816  At the risk of telling a twice-told tale, I will recapitulate the facts
24817  as they were known to the public at the conclusion of the inquest.
24818 \end_layout
24819
24820 \end_inset
24821
24822
24823 \end_layout
24824
24825 \begin_layout Standard
24826 You can have up to 10
24827 \begin_inset space ~
24828 \end_inset
24829
24830 columns if you want to, but that might not be very pleasant for the readers
24831  of your document.
24832 \end_layout
24833
24834 \begin_layout Standard
24835 \begin_inset Newpage newpage
24836 \end_inset
24837
24838
24839 \end_layout
24840
24841 \begin_layout Subsection
24842 Columns inside Columns
24843 \end_layout
24844
24845 \begin_layout Standard
24846 You can also have columns inside columns:
24847 \end_layout
24848
24849 \begin_layout Standard
24850 \begin_inset Flex Multiple Columns
24851 status open
24852
24853 \begin_layout Plain Layout
24854
24855 \size footnotesize
24856 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24857  at that time governor of one of the Australian colonies.
24858  Adair's mother had returned from Australia to undergo the operation for
24859  cataract, and she, her son Ronald, and her daughter Hilda were living together
24860  at 427 Park Lane.
24861 \end_layout
24862
24863 \begin_layout Plain Layout
24864 \begin_inset Flex Multiple Columns
24865 status open
24866
24867 \begin_layout Plain Layout
24868
24869 \size footnotesize
24870 The youth moved in the best society–had, so far as was known, no enemies
24871  and no particular vices.
24872  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24873  had been broken off by mutual consent some months before, and there was
24874  no sign that it had left any very profound feeling behind it.
24875  For the rest {sic} the man's life moved in a narrow and conventional circle,
24876  for his habits were quiet and his nature unemotional.
24877  Yet it was upon this easy-going young aristocrat that death came, in most
24878  strange and unexpected form, between the hours of ten and eleven-twenty
24879  on the night of March 30, 1894.
24880 \end_layout
24881
24882 \end_inset
24883
24884
24885 \end_layout
24886
24887 \begin_layout Plain Layout
24888
24889 \size footnotesize
24890 Ronald Adair was fond of cards–playing continually, but never for such stakes
24891  as would hurt him.
24892  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24893  It was shown that, after dinner on the day of his death, he had played
24894  a rubber of whist at the latter club.
24895  He had also played there in the afternoon.
24896
24897 \size default
24898  
24899 \size footnotesize
24900 The evidence of those who had played with him– Mr.
24901  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24902  and that there was a fairly equal fall of the cards.
24903  Adair might have lost five pounds, but not more.
24904  His fortune was a considerable one, and such a loss could not in any way
24905  affect him.
24906  He had played nearly every day at one club or other, but he was a cautious
24907  player, and usually rose a winner.
24908  It came out in evidence that, in partnership with Colonel Moran, he had
24909  actually won as much as four hundred and twenty pounds in a sitting, some
24910  weeks before, from Godfrey Milner and Lord Balmoral.
24911  So much for his recent history as it came out at the inquest.
24912 \end_layout
24913
24914 \end_inset
24915
24916
24917 \end_layout
24918
24919 \begin_layout Subsection
24920 Advanced Examples
24921 \end_layout
24922
24923 \begin_layout Standard
24924 The examples in this section show some more special features of multiple
24925  columns.
24926 \end_layout
24927
24928 \begin_layout Standard
24929 For more features of multiple columns, have a look at the documentation
24930  of the \SpecialChar LaTeX
24931 -package 
24932 \series bold
24933 multicol
24934 \series default
24935
24936 \begin_inset CommandInset citation
24937 LatexCommand cite
24938 key "multicol"
24939 literal "true"
24940
24941 \end_inset
24942
24943 .
24944 \end_layout
24945
24946 \begin_layout Subsubsection
24947 Preface
24948 \end_layout
24949
24950 \begin_layout Standard
24951 To add a preface text for multiple columns, set the cursor into the multicolumn
24952  inset and use the menu 
24953 \family sans
24954 Insert\SpecialChar menuseparator
24955 Preface
24956 \family default
24957 .
24958  Write your preface text into that inset.
24959 \begin_inset Newline newline
24960 \end_inset
24961
24962 This is an example with some preface text:
24963 \end_layout
24964
24965 \begin_layout Standard
24966 \begin_inset VSpace bigskip
24967 \end_inset
24968
24969
24970 \end_layout
24971
24972 \begin_layout Standard
24973 \begin_inset Flex Multiple Columns
24974 status open
24975
24976 \begin_layout Plain Layout
24977 \begin_inset Argument 2
24978 status open
24979
24980 \begin_layout Plain Layout
24981 And the story continues and continues and continues and continues\SpecialChar ldots
24982
24983 \end_layout
24984
24985 \end_inset
24986
24987
24988 \size small
24989 On the evening of the crime, he returned from the club exactly at ten.
24990  His mother and sister were out spending the evening with a relation.
24991  The servant deposed that she heard him enter the front room on the second
24992  floor, generally used as his sitting-room.
24993  She had lit a fire there, and as it smoked she had opened the window.
24994  No sound was heard from the room until eleven-twenty, the hour of the return
24995  of Lady Maynooth and her daughter.
24996  Desiring to say good-night, she attempted to enter her son's room.
24997  The door was locked on the inside, and no answer could be got to their
24998  cries and knocking.
24999  Help was obtained, and the door forced.
25000  The unfortunate young man was found lying near the table.
25001  His head had been horribly mutilated by an expanding revolver bullet, but
25002  no weapon of any sort was to be found in the room.
25003 \end_layout
25004
25005 \end_inset
25006
25007
25008 \end_layout
25009
25010 \begin_layout Standard
25011 You can also use a section heading as the preface if you use a section command
25012  as \SpecialChar TeX
25013  Code.
25014  For example the command
25015 \end_layout
25016
25017 \begin_layout Standard
25018
25019 \series bold
25020
25021 \backslash
25022 subsection{subsection title}
25023 \end_layout
25024
25025 \begin_layout Standard
25026 creates a subsection.
25027  In this example the preface is a subsubsection:
25028 \end_layout
25029
25030 \begin_layout Standard
25031 \begin_inset Flex Multiple Columns
25032 status open
25033
25034 \begin_layout Plain Layout
25035 \begin_inset Argument 2
25036 status open
25037
25038 \begin_layout Plain Layout
25039 \begin_inset ERT
25040 status collapsed
25041
25042 \begin_layout Plain Layout
25043
25044
25045 \backslash
25046 subsubsection{
25047 \end_layout
25048
25049 \end_inset
25050
25051 This is a subsubsection heading as a preface
25052 \begin_inset ERT
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056
25057 }
25058 \end_layout
25059
25060 \end_inset
25061
25062
25063 \end_layout
25064
25065 \end_inset
25066
25067
25068 \size small
25069 A minute examination of the circumstances served only to make the case more
25070  complex.
25071  In the first place, no reason could be given why the young man should have
25072  fastened the door upon the inside.
25073  There was the possibility that the murderer had done this, and had afterwards
25074  escaped by the window.
25075  The drop was at least twenty feet, however, and a bed of crocuses in full
25076  bloom lay beneath.
25077  Neither the flowers nor the earth showed any sign of having been disturbed,
25078  nor were there any marks upon the narrow strip of grass which separated
25079  the house from the road.
25080  Apparently, therefore, it was the young man himself who had fastened the
25081  door.
25082  But how did he come by his death? No one could have climbed up to the window
25083  without leaving traces.
25084  Suppose a man had fired through the window, he would indeed be a remarkable
25085  shot who could with a revolver inflict so deadly a wound.
25086  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25087  a hundred yards of the house.
25088  No one had heard a shot.
25089 \end_layout
25090
25091 \end_inset
25092
25093
25094 \end_layout
25095
25096 \begin_layout Standard
25097 If there is less vertical space than 6
25098 \begin_inset space ~
25099 \end_inset
25100
25101 text lines is left on the page at the beginning of the multiple columns,
25102  a page break will be inserted before the multiple columns.
25103  Depending on the number of lines of the preface text, you might want to
25104  change this space.
25105  This is done by setting the cursor into the mulitcolumn inset behind the
25106  preface (if there is any) and using the menu 
25107 \family sans
25108 Insert\SpecialChar menuseparator
25109 Space
25110 \begin_inset space ~
25111 \end_inset
25112
25113 Before
25114 \begin_inset space ~
25115 \end_inset
25116
25117 Page
25118 \begin_inset space ~
25119 \end_inset
25120
25121 Break
25122 \family default
25123 .
25124  Insert into that inset the amount of space like e.
25125 \begin_inset space \thinspace{}
25126 \end_inset
25127
25128 g.
25129 \begin_inset space \space{}
25130 \end_inset
25131
25132
25133 \begin_inset Quotes eld
25134 \end_inset
25135
25136 5cm
25137 \begin_inset Quotes erd
25138 \end_inset
25139
25140 .
25141 \begin_inset Newline newline
25142 \end_inset
25143
25144 In this example the space is set to 7
25145 \begin_inset space ~
25146 \end_inset
25147
25148 text lines by using 
25149 \begin_inset Quotes eld
25150 \end_inset
25151
25152 7
25153 \backslash
25154 baselineskip
25155 \begin_inset Quotes erd
25156 \end_inset
25157
25158  (where the command 
25159 \series bold
25160
25161 \backslash
25162 baselineskip
25163 \series default
25164  needs to be inserted as \SpecialChar TeX
25165  code):
25166 \end_layout
25167
25168 \begin_layout Standard
25169 \begin_inset Flex Multiple Columns
25170 status open
25171
25172 \begin_layout Plain Layout
25173 \begin_inset Argument 3
25174 status open
25175
25176 \begin_layout Plain Layout
25177 7
25178 \begin_inset ERT
25179 status collapsed
25180
25181 \begin_layout Plain Layout
25182
25183
25184 \backslash
25185 baselineskip
25186 \end_layout
25187
25188 \end_inset
25189
25190
25191 \end_layout
25192
25193 \end_inset
25194
25195
25196 \size small
25197 On the evening of the crime, he returned from the club exactly at ten.
25198  His mother and sister were out spending the evening with a relation.
25199  The servant deposed that she heard him enter the front room on the second
25200  floor, generally used as his sitting-room.
25201  She had lit a fire there, and as it smoked she had opened the window.
25202  No sound was heard from the room until eleven-twenty, the hour of the return
25203  of Lady Maynooth and her daughter.
25204  Desiring to say good-night, she attempted to enter her son's room.
25205  The door was locked on the inside, and no answer could be got to their
25206  cries and knocking.
25207  Help was obtained, and the door forced.
25208  The unfortunate young man was found lying near the table.
25209  His head had been horribly mutilated by an expanding revolver bullet, but
25210  no weapon of any sort was to be found in the room.
25211 \end_layout
25212
25213 \end_inset
25214
25215
25216 \end_layout
25217
25218 \begin_layout Subsubsection
25219 Surrounding Space
25220 \end_layout
25221
25222 \begin_layout Standard
25223 The amount of space before and after multiple columns can be changed by
25224  changing the length 
25225 \series bold
25226
25227 \backslash
25228 multicolsep
25229 \series default
25230 .
25231  For example the command
25232 \end_layout
25233
25234 \begin_layout Standard
25235
25236 \series bold
25237
25238 \backslash
25239 setlength{
25240 \backslash
25241 multicolsep}{3cm}
25242 \end_layout
25243
25244 \begin_layout Standard
25245 in \SpecialChar TeX
25246  Code changes its value to 3
25247 \begin_inset space \thinspace{}
25248 \end_inset
25249
25250 cm.
25251  The change must be made before the multiple columns' start.
25252  The predefined value is 13
25253 \begin_inset space \thinspace{}
25254 \end_inset
25255
25256 pt.
25257 \end_layout
25258
25259 \begin_layout Standard
25260 For this example 
25261 \series bold
25262
25263 \backslash
25264 multicolsep
25265 \series default
25266  was set to 2.5
25267 \begin_inset space \thinspace{}
25268 \end_inset
25269
25270 cm:
25271 \end_layout
25272
25273 \begin_layout Standard
25274 \begin_inset ERT
25275 status open
25276
25277 \begin_layout Plain Layout
25278
25279
25280 \backslash
25281 setlength{
25282 \backslash
25283 multicolsep}{2.5cm}
25284 \end_layout
25285
25286 \end_inset
25287
25288
25289 \end_layout
25290
25291 \begin_layout Standard
25292 \begin_inset Flex Multiple Columns
25293 status open
25294
25295 \begin_layout Plain Layout
25296
25297 \size small
25298 All day I turned these facts over in my mind, endeavouring to hit upon some
25299  theory which could reconcile them all, and to find that line of least resistanc
25300 e which my poor friend had declared to be the starting-point of every investigat
25301 ion.
25302  I confess that I made little progress.
25303  In the evening I strolled across the Park, and found myself about six o'clock
25304  at the Oxford Street end of Park Lane.
25305  A group of loafers upon the pavements, all staring up at a particular window,
25306  directed me to the house which I had come to see.
25307  A tall, thin man with coloured glasses, whom I strongly suspected of being
25308  a plain-clothes detective, was pointing out some theory of his own, while
25309  the others crowded round to listen to what he said.
25310  I got as near him as I could, but his observations seemed to me to be absurd,
25311  so I withdrew again in some disgust.
25312  As I did so I struck against an elderly, deformed man, who had been behind
25313  me, and I knocked down several books which he was carrying.
25314 \end_layout
25315
25316 \end_inset
25317
25318
25319 \end_layout
25320
25321 \begin_layout Standard
25322 \begin_inset Note Greyedout
25323 status open
25324
25325 \begin_layout Plain Layout
25326
25327 \series bold
25328 Note:
25329 \series default
25330  The values you set with 
25331 \series bold
25332
25333 \backslash
25334 setlength
25335 \series default
25336  will be used for all following multiple columns until you change them again.
25337 \end_layout
25338
25339 \end_inset
25340
25341
25342 \end_layout
25343
25344 \begin_layout Standard
25345 \begin_inset ERT
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349
25350
25351 \backslash
25352 setlength{
25353 \backslash
25354 multicolsep}{13pt}
25355 \end_layout
25356
25357 \end_inset
25358
25359
25360 \begin_inset Note Note
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 go back to the default
25365 \end_layout
25366
25367 \end_inset
25368
25369
25370 \end_layout
25371
25372 \begin_layout Standard
25373 \begin_inset Newpage newpage
25374 \end_inset
25375
25376
25377 \end_layout
25378
25379 \begin_layout Subsubsection
25380 Column Breaks
25381 \end_layout
25382
25383 \begin_layout Standard
25384 A column break can be forced by inserting the command 
25385 \series bold
25386
25387 \backslash
25388 columnbreak{}
25389 \series default
25390  as \SpecialChar TeX
25391  Code to that position in the text where the column should be broken.
25392  Note that this leads in most cases to whitespace in the text.
25393 \begin_inset Newline newline
25394 \end_inset
25395
25396 Here is an example:
25397 \end_layout
25398
25399 \begin_layout Standard
25400 \begin_inset Flex Multiple Columns
25401 status open
25402
25403 \begin_layout Plain Layout
25404
25405 \size small
25406 \begin_inset Quotes eld
25407 \end_inset
25408
25409 You're surprised to see me, sir,
25410 \begin_inset Quotes erd
25411 \end_inset
25412
25413  said he, in a strange, croaking voice.
25414 \end_layout
25415
25416 \begin_layout Plain Layout
25417
25418 \size small
25419 I acknowledged that I was.
25420 \end_layout
25421
25422 \begin_layout Plain Layout
25423
25424 \size small
25425 \begin_inset Quotes eld
25426 \end_inset
25427
25428 Well, I've a conscience, sir, and when I chanced to see you go into this
25429  house, as I came hobbling after you, I thought to myself, I'll just step
25430  in and see that kind gentleman, and tell him that if I was a bit gruff
25431  in my manner there was not any harm meant, and that I am much obliged to
25432  him for picking up my books.
25433 \begin_inset Quotes erd
25434 \end_inset
25435
25436
25437 \end_layout
25438
25439 \begin_layout Plain Layout
25440
25441 \size small
25442 \begin_inset Quotes eld
25443 \end_inset
25444
25445 You make too much of a trifle,
25446 \begin_inset Quotes erd
25447 \end_inset
25448
25449  said I.
25450  
25451 \begin_inset Quotes eld
25452 \end_inset
25453
25454 May I ask how you knew who I was?
25455 \begin_inset Quotes erd
25456 \end_inset
25457
25458  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25459 \begin_inset ERT
25460 status collapsed
25461
25462 \begin_layout Plain Layout
25463
25464
25465 \backslash
25466 columnbreak{}
25467 \end_layout
25468
25469 \end_inset
25470
25471
25472 \end_layout
25473
25474 \begin_layout Plain Layout
25475
25476 \size small
25477 \begin_inset Quotes eld
25478 \end_inset
25479
25480 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25481  you'll find my little bookshop at the corner of Church Street, and very
25482  happy to see you, I am sure.
25483  Maybe you collect yourself, sir.
25484  Here's 
25485 \noun on
25486 British
25487 \begin_inset space ~
25488 \end_inset
25489
25490 Birds
25491 \noun default
25492 , and 
25493 \noun on
25494 Catullus
25495 \noun default
25496 , and 
25497 \noun on
25498 The Holy War
25499 \noun default
25500 –a bargain, every one of them.
25501  With five volumes you could just fill that gap on that second shelf.
25502  It looks untidy, does it not, sir?
25503 \begin_inset Quotes erd
25504 \end_inset
25505
25506
25507 \end_layout
25508
25509 \end_inset
25510
25511
25512 \end_layout
25513
25514 \begin_layout Subsubsection
25515 Column Separation
25516 \end_layout
25517
25518 \begin_layout Standard
25519 The width of the columns is automatically calculated, but you can modify
25520  the space between the columns.
25521  This is done by changing the length 
25522 \series bold
25523
25524 \backslash
25525 columnsep
25526 \series default
25527 .
25528  Its predefined value is 10
25529 \begin_inset space \thinspace{}
25530 \end_inset
25531
25532 pt.
25533  Here is an example where 
25534 \series bold
25535
25536 \backslash
25537 columnsep
25538 \series default
25539  is set to 3
25540 \begin_inset space \thinspace{}
25541 \end_inset
25542
25543 cm:
25544 \end_layout
25545
25546 \begin_layout Standard
25547 \begin_inset ERT
25548 status open
25549
25550 \begin_layout Plain Layout
25551
25552
25553 \backslash
25554 setlength{
25555 \backslash
25556 columnsep}{3cm}
25557 \end_layout
25558
25559 \end_inset
25560
25561
25562 \end_layout
25563
25564 \begin_layout Standard
25565 \begin_inset Flex Multiple Columns
25566 status open
25567
25568 \begin_layout Plain Layout
25569
25570 \size small
25571 My observations of No.
25572 \begin_inset space \space{}
25573 \end_inset
25574
25575 427 Park Lane did little to clear up the problem in which I was interested.
25576  The house was separated from the street by a low wall and railing, the
25577  whole not more than five feet high.
25578  It was perfectly easy, therefore, for anyone to get into the garden, but
25579  the window was entirely inaccessible, since there was no water pipe or
25580  anything which could help the most active man to climb it.
25581  More puzzled than ever, I retraced my steps to Kensington.
25582  I had not been in my study five minutes when the maid entered to say that
25583  a person desired to see me.
25584  To my astonishment it was none other than my strange old book collector,
25585  his sharp, wizened face peering out from a frame of white hair, and his
25586  precious volumes, a dozen of them at least, wedged under his right arm.
25587 \end_layout
25588
25589 \end_inset
25590
25591
25592 \end_layout
25593
25594 \begin_layout Standard
25595 \begin_inset ERT
25596 status collapsed
25597
25598 \begin_layout Plain Layout
25599
25600
25601 \backslash
25602 setlength{
25603 \backslash
25604 columnsep}{10pt}
25605 \end_layout
25606
25607 \end_inset
25608
25609
25610 \begin_inset Note Note
25611 status collapsed
25612
25613 \begin_layout Plain Layout
25614 go back to the default
25615 \end_layout
25616
25617 \end_inset
25618
25619
25620 \end_layout
25621
25622 \begin_layout Subsubsection
25623 Vertical Lines
25624 \end_layout
25625
25626 \begin_layout Standard
25627 Between the columns a rule with a width of the length 
25628 \series bold
25629
25630 \backslash
25631 columnseprule
25632 \series default
25633  is placed.
25634  If this rule width is set to 0
25635 \begin_inset space \thinspace{}
25636 \end_inset
25637
25638 pt (this is the default), the rule is suppressed.
25639  In the following example the rule is 2
25640 \begin_inset space \thinspace{}
25641 \end_inset
25642
25643 pt wide:
25644 \end_layout
25645
25646 \begin_layout Standard
25647 \begin_inset ERT
25648 status open
25649
25650 \begin_layout Plain Layout
25651
25652
25653 \backslash
25654 setlength{
25655 \backslash
25656 columnseprule}{2pt}
25657 \end_layout
25658
25659 \end_inset
25660
25661
25662 \end_layout
25663
25664 \begin_layout Standard
25665 \begin_inset Flex Multiple Columns
25666 status open
25667
25668 \begin_layout Plain Layout
25669
25670 \size small
25671 \begin_inset Quotes eld
25672 \end_inset
25673
25674 You're surprised to see me, sir,
25675 \begin_inset Quotes erd
25676 \end_inset
25677
25678  said he, in a strange, croaking voice.
25679 \end_layout
25680
25681 \begin_layout Plain Layout
25682
25683 \size small
25684 I acknowledged that I was.
25685 \end_layout
25686
25687 \begin_layout Plain Layout
25688
25689 \size small
25690 \begin_inset Quotes eld
25691 \end_inset
25692
25693 Well, I've a conscience, sir, and when I chanced to see you go into this
25694  house, as I came hobbling after you, I thought to myself, I'll just step
25695  in and see that kind gentleman, and tell him that if I was a bit gruff
25696  in my manner there was not any harm meant, and that I am much obliged to
25697  him for picking up my books.
25698 \begin_inset Quotes erd
25699 \end_inset
25700
25701
25702 \end_layout
25703
25704 \begin_layout Plain Layout
25705
25706 \size small
25707 \begin_inset Quotes eld
25708 \end_inset
25709
25710 You make too much of a trifle,
25711 \begin_inset Quotes erd
25712 \end_inset
25713
25714  said I.
25715  
25716 \begin_inset Quotes eld
25717 \end_inset
25718
25719 May I ask how you knew who I was?
25720 \begin_inset Quotes erd
25721 \end_inset
25722
25723
25724 \end_layout
25725
25726 \begin_layout Plain Layout
25727
25728 \size small
25729 \begin_inset Quotes eld
25730 \end_inset
25731
25732 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25733  you'll find my little bookshop at the corner of Church Street, and very
25734  happy to see you, I am sure.
25735  Maybe you collect yourself, sir.
25736  Here's 
25737 \noun on
25738 British
25739 \begin_inset space ~
25740 \end_inset
25741
25742 Birds
25743 \noun default
25744 , and 
25745 \noun on
25746 Catullus
25747 \noun default
25748 , and 
25749 \noun on
25750 The Holy War
25751 \noun default
25752 –a bargain, every one of them.
25753  With five volumes you could just fill that gap on that second shelf.
25754  It looks untidy, does it not, sir?
25755 \begin_inset Quotes erd
25756 \end_inset
25757
25758
25759 \end_layout
25760
25761 \end_inset
25762
25763
25764 \end_layout
25765
25766 \begin_layout Standard
25767 \begin_inset VSpace defskip
25768 \end_inset
25769
25770
25771 \end_layout
25772
25773 \begin_layout Standard
25774 The rule can be colored by redefining the command 
25775 \series bold
25776
25777 \backslash
25778 columnseprulecolor
25779 \series default
25780 .
25781  This is done by inserting the command
25782 \begin_inset Newline newline
25783 \end_inset
25784
25785
25786 \series bold
25787
25788 \backslash
25789 renewcommand{
25790 \backslash
25791 columnseprulecolor}{
25792 \backslash
25793 color{red}}
25794 \series default
25795
25796 \begin_inset Newline newline
25797 \end_inset
25798
25799 as \SpecialChar TeX
25800  Code before the multicolumn inset.
25801  Replace 
25802 \series bold
25803 red
25804 \series default
25805  in this command by a color of your choice.
25806  You can use all pre- and self-defined colors.
25807  See the 
25808 \emph on
25809 EmbeddedObjects
25810 \emph default
25811  manual, section 
25812 \emph on
25813 Colored
25814 \begin_inset space ~
25815 \end_inset
25816
25817 Tables
25818 \emph default
25819  for more information about pre- and self-defined colors.
25820  To go back to the default color insert the command
25821 \begin_inset Newline newline
25822 \end_inset
25823
25824
25825 \series bold
25826
25827 \backslash
25828 renewcommand{
25829 \backslash
25830 columnseprulecolor}{
25831 \backslash
25832 normalcolor}
25833 \series default
25834
25835 \begin_inset Newline newline
25836 \end_inset
25837
25838 Here is the example with a cyan rule and 1
25839 \begin_inset space \thinspace{}
25840 \end_inset
25841
25842 cm column separation:
25843 \end_layout
25844
25845 \begin_layout Standard
25846 \begin_inset ERT
25847 status open
25848
25849 \begin_layout Plain Layout
25850
25851
25852 \backslash
25853 setlength{
25854 \backslash
25855 columnsep}{1cm}
25856 \end_layout
25857
25858 \begin_layout Plain Layout
25859
25860
25861 \backslash
25862 renewcommand{
25863 \backslash
25864 columnseprulecolor}{
25865 \backslash
25866 color{cyan}}
25867 \end_layout
25868
25869 \end_inset
25870
25871
25872 \end_layout
25873
25874 \begin_layout Standard
25875 \begin_inset Flex Multiple Columns
25876 status open
25877
25878 \begin_layout Plain Layout
25879
25880 \size small
25881 \begin_inset Quotes eld
25882 \end_inset
25883
25884 You're surprised to see me, sir,
25885 \begin_inset Quotes erd
25886 \end_inset
25887
25888  said he, in a strange, croaking voice.
25889 \end_layout
25890
25891 \begin_layout Plain Layout
25892
25893 \size small
25894 I acknowledged that I was.
25895 \end_layout
25896
25897 \begin_layout Plain Layout
25898
25899 \size small
25900 \begin_inset Quotes eld
25901 \end_inset
25902
25903 Well, I've a conscience, sir, and when I chanced to see you go into this
25904  house, as I came hobbling after you, I thought to myself, I'll just step
25905  in and see that kind gentleman, and tell him that if I was a bit gruff
25906  in my manner there was not any harm meant, and that I am much obliged to
25907  him for picking up my books.
25908 \begin_inset Quotes erd
25909 \end_inset
25910
25911
25912 \end_layout
25913
25914 \begin_layout Plain Layout
25915
25916 \size small
25917 \begin_inset Quotes eld
25918 \end_inset
25919
25920 You make too much of a trifle,
25921 \begin_inset Quotes erd
25922 \end_inset
25923
25924  said I.
25925  
25926 \begin_inset Quotes eld
25927 \end_inset
25928
25929 May I ask how you knew who I was?
25930 \begin_inset Quotes erd
25931 \end_inset
25932
25933
25934 \end_layout
25935
25936 \begin_layout Plain Layout
25937
25938 \size small
25939 \begin_inset Quotes eld
25940 \end_inset
25941
25942 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25943  you'll find my little bookshop at the corner of Church Street, and very
25944  happy to see you, I am sure.
25945  Maybe you collect yourself, sir.
25946  Here's 
25947 \noun on
25948 British
25949 \begin_inset space ~
25950 \end_inset
25951
25952 Birds
25953 \noun default
25954 , and 
25955 \noun on
25956 Catullus
25957 \noun default
25958 , and 
25959 \noun on
25960 The Holy War
25961 \noun default
25962 –a bargain, every one of them.
25963  With five volumes you could just fill that gap on that second shelf.
25964  It looks untidy, does it not, sir?
25965 \begin_inset Quotes erd
25966 \end_inset
25967
25968
25969 \end_layout
25970
25971 \end_inset
25972
25973
25974 \end_layout
25975
25976 \begin_layout Standard
25977 \begin_inset ERT
25978 status collapsed
25979
25980 \begin_layout Plain Layout
25981
25982
25983 \backslash
25984 setlength{
25985 \backslash
25986 columnseprule}{0pt}
25987 \end_layout
25988
25989 \begin_layout Plain Layout
25990
25991
25992 \backslash
25993 renewcommand{
25994 \backslash
25995 columnseprulecolor}{
25996 \backslash
25997 normalcolor}
25998 \end_layout
25999
26000 \end_inset
26001
26002
26003 \begin_inset Note Note
26004 status collapsed
26005
26006 \begin_layout Plain Layout
26007 go back to the default
26008 \end_layout
26009
26010 \end_inset
26011
26012
26013 \end_layout
26014
26015 \begin_layout Section
26016 Non-standard Paragraph Shapes
26017 \end_layout
26018
26019 \begin_layout Standard
26020 \noindent
26021 \SpecialChar LaTeX
26022  as well as any other text processor uses by default rectangular paragraphs.
26023  For special cases like for example posters, invitation cards or poems you
26024  can modify the paragraph shape to one of your choice.
26025  This can be done by using the \SpecialChar LaTeX
26026 -package 
26027 \series bold
26028 shapepar
26029 \series default
26030  which is loaded by using in the document settings the module 
26031 \family sans
26032 Custom paragraph shapes
26033 \family default
26034 .
26035 \end_layout
26036
26037 \begin_layout Subsection
26038 Predefined shapes
26039 \end_layout
26040
26041 \begin_layout Standard
26042
26043 \series bold
26044 shapepar
26045 \series default
26046  provides the following shapes:
26047 \end_layout
26048
26049 \begin_layout Standard
26050 \begin_inset Tabular
26051 <lyxtabular version="3" rows="13" columns="3">
26052 <features booktabs="true" islongtable="true" longtabularalignment="center">
26053 <column alignment="center" valignment="middle" width="16col%">
26054 <column alignment="center" valignment="middle" width="40col%">
26055 <column alignment="center" valignment="middle" width="35col%">
26056 <row endhead="true">
26057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26058 \begin_inset Text
26059
26060 \begin_layout Plain Layout
26061 Name
26062 \end_layout
26063
26064 \end_inset
26065 </cell>
26066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26067 \begin_inset Text
26068
26069 \begin_layout Plain Layout
26070 Description
26071 \end_layout
26072
26073 \end_inset
26074 </cell>
26075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26076 \begin_inset Text
26077
26078 \begin_layout Plain Layout
26079 Annotation
26080 \end_layout
26081
26082 \end_inset
26083 </cell>
26084 </row>
26085 <row>
26086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26087 \begin_inset Text
26088
26089 \begin_layout Plain Layout
26090 CDlabel
26091 \end_layout
26092
26093 \end_inset
26094 </cell>
26095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26096 \begin_inset Text
26097
26098 \begin_layout Plain Layout
26099 Circle with circular hole (in the size of a CD/DVD)
26100 \end_layout
26101
26102 \end_inset
26103 </cell>
26104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26105 \begin_inset Text
26106
26107 \begin_layout Plain Layout
26108 Cannot be scaled, take care there is not too much text
26109 \end_layout
26110
26111 \end_inset
26112 </cell>
26113 </row>
26114 <row>
26115 <cell alignment="center" valignment="top" topline="true" usebox="none">
26116 \begin_inset Text
26117
26118 \begin_layout Plain Layout
26119 Circle
26120 \end_layout
26121
26122 \end_inset
26123 </cell>
26124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26125 \begin_inset Text
26126
26127 \begin_layout Plain Layout
26128 Circle
26129 \end_layout
26130
26131 \end_inset
26132 </cell>
26133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26134 \begin_inset Text
26135
26136 \begin_layout Plain Layout
26137 Fragile, calculation might fail
26138 \end_layout
26139
26140 \end_inset
26141 </cell>
26142 </row>
26143 <row>
26144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26145 \begin_inset Text
26146
26147 \begin_layout Plain Layout
26148 Diamond
26149 \end_layout
26150
26151 \end_inset
26152 </cell>
26153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26154 \begin_inset Text
26155
26156 \begin_layout Plain Layout
26157 Rhomboid (symbolizing a 
26158 \begin_inset Quotes eld
26159 \end_inset
26160
26161 diamond
26162 \begin_inset Quotes erd
26163 \end_inset
26164
26165 )
26166 \end_layout
26167
26168 \end_inset
26169 </cell>
26170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26171 \begin_inset Text
26172
26173 \begin_layout Plain Layout
26174 -
26175 \end_layout
26176
26177 \end_inset
26178 </cell>
26179 </row>
26180 <row>
26181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26182 \begin_inset Text
26183
26184 \begin_layout Plain Layout
26185 Heart
26186 \end_layout
26187
26188 \end_inset
26189 </cell>
26190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26191 \begin_inset Text
26192
26193 \begin_layout Plain Layout
26194 Heart-like shape
26195 \end_layout
26196
26197 \end_inset
26198 </cell>
26199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26200 \begin_inset Text
26201
26202 \begin_layout Plain Layout
26203 -
26204 \end_layout
26205
26206 \end_inset
26207 </cell>
26208 </row>
26209 <row>
26210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26211 \begin_inset Text
26212
26213 \begin_layout Plain Layout
26214 Hexagon
26215 \end_layout
26216
26217 \end_inset
26218 </cell>
26219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26220 \begin_inset Text
26221
26222 \begin_layout Plain Layout
26223 Hexagon
26224 \end_layout
26225
26226 \end_inset
26227 </cell>
26228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26229 \begin_inset Text
26230
26231 \begin_layout Plain Layout
26232 -
26233 \end_layout
26234
26235 \end_inset
26236 </cell>
26237 </row>
26238 <row>
26239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26240 \begin_inset Text
26241
26242 \begin_layout Plain Layout
26243 Nut
26244 \end_layout
26245
26246 \end_inset
26247 </cell>
26248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26249 \begin_inset Text
26250
26251 \begin_layout Plain Layout
26252 Nut for bolt (hexagon with circular hole)
26253 \end_layout
26254
26255 \end_inset
26256 </cell>
26257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26258 \begin_inset Text
26259
26260 \begin_layout Plain Layout
26261 -
26262 \end_layout
26263
26264 \end_inset
26265 </cell>
26266 </row>
26267 <row>
26268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26269 \begin_inset Text
26270
26271 \begin_layout Plain Layout
26272 Square
26273 \end_layout
26274
26275 \end_inset
26276 </cell>
26277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26278 \begin_inset Text
26279
26280 \begin_layout Plain Layout
26281 Square
26282 \end_layout
26283
26284 \end_inset
26285 </cell>
26286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26287 \begin_inset Text
26288
26289 \begin_layout Plain Layout
26290 -
26291 \end_layout
26292
26293 \end_inset
26294 </cell>
26295 </row>
26296 <row>
26297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26298 \begin_inset Text
26299
26300 \begin_layout Plain Layout
26301 Star
26302 \end_layout
26303
26304 \end_inset
26305 </cell>
26306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26307 \begin_inset Text
26308
26309 \begin_layout Plain Layout
26310 Five-point star
26311 \end_layout
26312
26313 \end_inset
26314 </cell>
26315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26316 \begin_inset Text
26317
26318 \begin_layout Plain Layout
26319 -
26320 \end_layout
26321
26322 \end_inset
26323 </cell>
26324 </row>
26325 <row>
26326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26327 \begin_inset Text
26328
26329 \begin_layout Plain Layout
26330 Candle
26331 \end_layout
26332
26333 \end_inset
26334 </cell>
26335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26336 \begin_inset Text
26337
26338 \begin_layout Plain Layout
26339 Burning candle
26340 \end_layout
26341
26342 \end_inset
26343 </cell>
26344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26345 \begin_inset Text
26346
26347 \begin_layout Plain Layout
26348 -
26349 \end_layout
26350
26351 \end_inset
26352 </cell>
26353 </row>
26354 <row>
26355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26356 \begin_inset Text
26357
26358 \begin_layout Plain Layout
26359 Drop down/up
26360 \end_layout
26361
26362 \end_inset
26363 </cell>
26364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26365 \begin_inset Text
26366
26367 \begin_layout Plain Layout
26368 Normal/reversed rain drop
26369 \end_layout
26370
26371 \end_inset
26372 </cell>
26373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26374 \begin_inset Text
26375
26376 \begin_layout Plain Layout
26377 Fragile, calculation might fail
26378 \end_layout
26379
26380 \end_inset
26381 </cell>
26382 </row>
26383 <row>
26384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26385 \begin_inset Text
26386
26387 \begin_layout Plain Layout
26388 \SpecialChar TeX
26389
26390 \end_layout
26391
26392 \end_inset
26393 </cell>
26394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26395 \begin_inset Text
26396
26397 \begin_layout Plain Layout
26398 The \SpecialChar TeX
26399  logo
26400 \end_layout
26401
26402 \end_inset
26403 </cell>
26404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26405 \begin_inset Text
26406
26407 \begin_layout Plain Layout
26408 -
26409 \end_layout
26410
26411 \end_inset
26412 </cell>
26413 </row>
26414 <row>
26415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26416 \begin_inset Text
26417
26418 \begin_layout Plain Layout
26419 Triangle up/down/
26420 \begin_inset Newline newline
26421 \end_inset
26422
26423 left/right
26424 \end_layout
26425
26426 \end_inset
26427 </cell>
26428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26429 \begin_inset Text
26430
26431 \begin_layout Plain Layout
26432 Triangles in different orientations
26433 \end_layout
26434
26435 \end_inset
26436 </cell>
26437 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26438 \begin_inset Text
26439
26440 \begin_layout Plain Layout
26441 -
26442 \end_layout
26443
26444 \end_inset
26445 </cell>
26446 </row>
26447 </lyxtabular>
26448
26449 \end_inset
26450
26451
26452 \end_layout
26453
26454 \begin_layout Standard
26455 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26456 's pull-down box
26457  for environments in the toolbar.
26458 \end_layout
26459
26460 \begin_layout Standard
26461 \begin_inset Newpage newpage
26462 \end_inset
26463
26464
26465 \end_layout
26466
26467 \begin_layout Standard
26468 Here is an example paragraph in the shape of a nut:
26469 \end_layout
26470
26471 \begin_layout Standard
26472 \begin_inset VSpace bigskip
26473 \end_inset
26474
26475
26476 \end_layout
26477
26478 \begin_layout Nut
26479
26480 \lang latin
26481 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26482  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26483  voluptua.
26484  At vero eos et accusam et justo duo dolores et ea rebum.
26485  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26486  sit amet.
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 \end_layout
26491
26492 \begin_layout Standard
26493 \begin_inset VSpace bigskip
26494 \end_inset
26495
26496
26497 \end_layout
26498
26499 \begin_layout Standard
26500 \begin_inset Note Greyedout
26501 status open
26502
26503 \begin_layout Plain Layout
26504
26505 \series bold
26506 Note
26507 \series default
26508 : shapepar paragraphs cannot run over a page break.
26509 \end_layout
26510
26511 \end_inset
26512
26513
26514 \end_layout
26515
26516 \begin_layout Standard
26517 \begin_inset VSpace bigskip
26518 \end_inset
26519
26520
26521 \end_layout
26522
26523 \begin_layout Standard
26524
26525 \series bold
26526 shapepar
26527 \series default
26528  takes care that the shape will always be preserved, no matter how much
26529  text is in the paragraph.
26530  Therefore the paragraph size changes with the amount of contained text.
26531  This can lead to paragraph sizes exceeding the page margins.
26532  To demonstrate the size scaling, here is the same example paragraph but
26533  with twice as much text:
26534 \end_layout
26535
26536 \begin_layout Standard
26537 \begin_inset Newpage newpage
26538 \end_inset
26539
26540
26541 \end_layout
26542
26543 \begin_layout Nut
26544
26545 \lang latin
26546 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26547  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26548  voluptua.
26549  At vero eos et accusam et justo duo dolores et ea rebum.
26550  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26551  sit amet.
26552  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26553  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26554  voluptua.
26555  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26556  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26557  voluptua.
26558  At vero eos et accusam et justo duo dolores et ea rebum.
26559  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26560  sit amet.
26561  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26562  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26563  voluptua.
26564 \end_layout
26565
26566 \begin_layout Standard
26567 \begin_inset VSpace bigskip
26568 \end_inset
26569
26570
26571 \end_layout
26572
26573 \begin_layout Standard
26574 An exception is the shape 
26575 \family sans
26576 CDlabel
26577 \family default
26578 .
26579  It cannot be scaled because it must fit the size of a CD/DVD.
26580  Therefore the amount of text that fits into the shape is limited.
26581 \begin_inset Newline newline
26582 \end_inset
26583
26584 The 
26585 \family sans
26586 drop
26587 \family default
26588  shapes and the 
26589 \family sans
26590 circle
26591 \family default
26592  shape are fragile, meaning that the calculation of their size can fail,
26593  depending on the amount of text.
26594  You will then get the \SpecialChar LaTeX
26595  error 
26596 \begin_inset Quotes eld
26597 \end_inset
26598
26599 Arithmetic overflow
26600 \begin_inset Quotes erd
26601 \end_inset
26602
26603 .
26604  In this case one can try to remove or add some text; if nothing works one
26605  has to use another shape.
26606 \end_layout
26607
26608 \begin_layout Standard
26609 \begin_inset VSpace bigskip
26610 \end_inset
26611
26612
26613 \end_layout
26614
26615 \begin_layout Standard
26616 For shapes with tips you will maybe see that \SpecialChar LaTeX
26617 's hyphenation routine fails
26618  for text in the tips.
26619  Therefore it is often necessary to add hyphenation points 
26620 \family sans
26621 (
26622 \begin_inset Info
26623 type  "shortcut"
26624 arg   "specialchar-insert hyphenation"
26625 \end_inset
26626
26627
26628 \family default
26629 ) to the corresponding text parts.
26630 \end_layout
26631
26632 \begin_layout Standard
26633 \begin_inset VSpace bigskip
26634 \end_inset
26635
26636
26637 \end_layout
26638
26639 \begin_layout Standard
26640 Shapepar paragraphs are either always centered or placed on the page so
26641  that their left border touches the left page margin.
26642  You can therefore not use the paragraph dialog to align such paragraphs.
26643  A solution is to put the paragraph into a minipage or parbox and align
26644  the box.
26645  The problem is hereby to find the right width for the box.
26646  Because if it is too wide and you center the box, the paragraph is not
26647  centered too because it sticks at the left side of the box.
26648  So you might have to play a bit with the width until it fits.
26649  Here are two heart-shaped paragraphs, the first one is not aligned, the
26650  second one is right-aligned:
26651 \end_layout
26652
26653 \begin_layout Standard
26654 \begin_inset Newpage newpage
26655 \end_inset
26656
26657
26658 \end_layout
26659
26660 \begin_layout Heart
26661 \noindent
26662
26663 \lang latin
26664 Lo\SpecialChar softhyphen
26665 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26666  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26667  voluptua.
26668  At vero eos et accusam et justo duo dolores et ea rebum.
26669  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26670  sit amet.
26671 \end_layout
26672
26673 \begin_layout Standard
26674 \begin_inset VSpace bigskip
26675 \end_inset
26676
26677
26678 \end_layout
26679
26680 \begin_layout Standard
26681 \noindent
26682 \align right
26683 \begin_inset Box Frameless
26684 position "t"
26685 hor_pos "c"
26686 has_inner_box 1
26687 inner_pos "t"
26688 use_parbox 1
26689 use_makebox 0
26690 width "42col%"
26691 special "none"
26692 height "1in"
26693 height_special "totalheight"
26694 thickness "0.4pt"
26695 separation "3pt"
26696 shadowsize "4pt"
26697 framecolor "black"
26698 backgroundcolor "none"
26699 status open
26700
26701 \begin_layout Heart
26702 \noindent
26703
26704 \lang latin
26705 Lo\SpecialChar softhyphen
26706 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26707  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26708  voluptua.
26709  At vero eos et accusam et justo duo dolores et ea rebum.
26710  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26711  sit amet.
26712 \end_layout
26713
26714 \end_inset
26715
26716
26717 \end_layout
26718
26719 \begin_layout Subsection
26720 Custom shapes
26721 \end_layout
26722
26723 \begin_layout Standard
26724 You can define any shape you want.
26725  Doing this manually is a lot of work because every coordinate must be specified.
26726  But there is a way to let the computer calculate the coordinates:
26727 \end_layout
26728
26729 \begin_layout Enumerate
26730 Install the program 
26731 \begin_inset CommandInset href
26732 LatexCommand href
26733 name "Jpgfdraw"
26734 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26735 literal "false"
26736
26737 \end_inset
26738
26739 .
26740 \end_layout
26741
26742 \begin_layout Enumerate
26743 In 
26744 \family sans
26745 Jpgfdraw
26746 \family default
26747  go to the menu 
26748 \family sans
26749 TeX/LaTeX\SpecialChar menuseparator
26750 Settings\SpecialChar menuseparator
26751 Set Normal Size
26752 \family default
26753  and select the font size you are using in your document.
26754  For example this document uses the size 12
26755 \begin_inset space \thinspace{}
26756 \end_inset
26757
26758 pt.
26759 \end_layout
26760
26761 \begin_layout Enumerate
26762 Draw a shape.
26763 \end_layout
26764
26765 \begin_layout Enumerate
26766 Use the menu 
26767 \family sans
26768 TeX/LaTeX\SpecialChar menuseparator
26769 Shapepar
26770 \family default
26771  to export the shape to coordinates.
26772  In the appearing dialog use either the outline of your shape for the coordinate
26773 s or the path itself.
26774 \begin_inset Foot
26775 status collapsed
26776
26777 \begin_layout Plain Layout
26778 For more information see 
26779 \begin_inset CommandInset href
26780 LatexCommand href
26781 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26782 literal "false"
26783
26784 \end_inset
26785
26786
26787 \end_layout
26788
26789 \end_inset
26790
26791
26792 \end_layout
26793
26794 \begin_layout Standard
26795 The coordinates are written into a \SpecialChar TeX
26796  file.
26797  To use it for your \SpecialChar LyX
26798  document
26799 \end_layout
26800
26801 \begin_layout Enumerate
26802 Place the cursor before the first character of your paragraph (or into a
26803  new empty one).
26804 \end_layout
26805
26806 \begin_layout Enumerate
26807 Open in \SpecialChar LyX
26808  the menu 
26809 \family sans
26810 Insert\SpecialChar menuseparator
26811 File\SpecialChar menuseparator
26812 Child
26813 \begin_inset space ~
26814 \end_inset
26815
26816 Document
26817 \family default
26818 , select the file and use 
26819 \family sans
26820 Input
26821 \family default
26822  as 
26823 \family sans
26824 Include Type.
26825 \end_layout
26826
26827 \begin_layout Standard
26828 \begin_inset VSpace defskip
26829 \end_inset
26830
26831
26832 \end_layout
26833
26834 \begin_layout Standard
26835 \begin_inset Note Greyedout
26836 status open
26837
26838 \begin_layout Plain Layout
26839
26840 \series bold
26841 Note
26842 \series default
26843 : The changed shape only applies to the current paragraph; everything is
26844  reset to normal for the next paragraph.
26845  Therefore the shape definition file must be input into every paragraph
26846  with the desired shape.
26847 \end_layout
26848
26849 \end_inset
26850
26851
26852 \end_layout
26853
26854 \begin_layout Standard
26855 \begin_inset VSpace bigskip
26856 \end_inset
26857
26858
26859 \end_layout
26860
26861 \begin_layout Standard
26862 Here is an example:
26863 \end_layout
26864
26865 \begin_layout Standard
26866 \begin_inset VSpace bigskip
26867 \end_inset
26868
26869
26870 \end_layout
26871
26872 \begin_layout Standard
26873 \begin_inset CommandInset include
26874 LatexCommand input
26875 filename "SpecialParagraphShape.tex"
26876
26877 \end_inset
26878
26879
26880 \lang latin
26881 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26882  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26883  voluptua.
26884  At vero eos et accusam et justo duo dolores et ea rebum.
26885  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26886  sit amet.
26887  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26888  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26889  voluptua.
26890 \end_layout
26891
26892 \begin_layout Standard
26893 \begin_inset VSpace bigskip
26894 \end_inset
26895
26896
26897 \end_layout
26898
26899 \begin_layout Standard
26900
26901 \series bold
26902 A tip:
26903 \series default
26904  to draw complexer shapes in 
26905 \family sans
26906 Jpgfdraw
26907 \family default
26908  you can draw the shape in a program of your choice and import the resulting
26909  image to 
26910 \family sans
26911 Jpgfdraw
26912 \family default
26913 .
26914  Then you only need to draw a line or spline along the outline of the image.
26915 \end_layout
26916
26917 \begin_layout Standard
26918 \begin_inset VSpace bigskip
26919 \end_inset
26920
26921
26922 \end_layout
26923
26924 \begin_layout Standard
26925 The module 
26926 \family sans
26927 Custom paragraph shapes
26928 \family default
26929  also provides the two commands 
26930 \family sans
26931 shapepar
26932 \family default
26933  and 
26934 \family sans
26935 Shapepar
26936 \family default
26937  which can be used to define custom shapes coordinate by coordinate.
26938 \begin_inset Foot
26939 status collapsed
26940
26941 \begin_layout Plain Layout
26942 These commands are internally used for all shapes described here.
26943 \end_layout
26944
26945 \end_inset
26946
26947  For information how these styles are used and about further customization
26948  possibilities, have a look at the documentation of the package 
26949 \series bold
26950 shapepar
26951 \series default
26952
26953 \begin_inset CommandInset citation
26954 LatexCommand cite
26955 key "shapepar"
26956 literal "true"
26957
26958 \end_inset
26959
26960 .
26961 \end_layout
26962
26963 \begin_layout Bibliography
26964 \begin_inset CommandInset bibitem
26965 LatexCommand bibitem
26966 key "multicol"
26967 literal "true"
26968
26969 \end_inset
26970
26971 Documentation of the \SpecialChar LaTeX
26972 -package 
26973 \begin_inset CommandInset href
26974 LatexCommand href
26975 name "multicol"
26976 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26977 literal "false"
26978
26979 \end_inset
26980
26981
26982 \end_layout
26983
26984 \begin_layout Bibliography
26985 \begin_inset CommandInset bibitem
26986 LatexCommand bibitem
26987 key "shapepar"
26988 literal "true"
26989
26990 \end_inset
26991
26992 Documentation of the \SpecialChar LaTeX
26993 -package 
26994 \begin_inset CommandInset href
26995 LatexCommand href
26996 name "shapepar"
26997 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
26998 literal "false"
26999
27000 \end_inset
27001
27002
27003 \end_layout
27004
27005 \end_body
27006 \end_document