]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Allow footnotes in floating tables via tablefootnote package
[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
31 % Improve line breaking
32 \tolerance 1414
33 \hbadness 1414
34 \emergencystretch 1.5em
35 \hfuzz 0.3pt
36 \end_preamble
37 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
38 \use_default_options false
39 \begin_modules
40 logicalmkup
41 theorems-ams
42 theorems-ams-extended
43 multicol
44 shapepar
45 \end_modules
46 \maintain_unincluded_children false
47 \language english
48 \language_package default
49 \inputencoding auto
50 \fontencoding global
51 \font_roman "lmodern" "default"
52 \font_sans "lmss" "default"
53 \font_typewriter "lmtt" "default"
54 \font_math "auto" "auto"
55 \font_default_family default
56 \use_non_tex_fonts false
57 \font_sc false
58 \font_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX's Additional Features manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX's additional features documentation"
74 \pdf_keywords "LyX, Documentation, Additional"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen false
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize a4paper
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \notefontcolor #0000ff
108 \index Index
109 \shortcut idx
110 \color #008000
111 \end_index
112 \secnumdepth 3
113 \tocdepth 3
114 \paragraph_separation indent
115 \paragraph_indentation default
116 \is_math_indent 1
117 \math_indentation default
118 \math_numbering_side default
119 \quotes_style english
120 \dynamic_quotes 0
121 \papercolumns 1
122 \papersides 2
123 \paperpagestyle headings
124 \tracking_changes false
125 \output_changes false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \end_header
130
131 \begin_body
132
133 \begin_layout Title
134 Additional \SpecialChar LyX
135  Features
136 \end_layout
137
138 \begin_layout Subtitle
139 Version 2.3.x
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 Principal maintainer of this file is
151 \noun on
152  Richard Heck
153 \noun default
154 .
155  If you have comments or error corrections, please send them to the \SpecialChar LyX
156  Documentati
157 on mailing list, 
158 \begin_inset Flex Code
159 status collapsed
160
161 \begin_layout Plain Layout
162 \noindent
163 <lyx-docs@lists.lyx.org>
164 \end_layout
165
166 \end_inset
167
168 .
169 \end_layout
170
171 \end_inset
172
173
174 \end_layout
175
176 \begin_layout Standard
177 \begin_inset CommandInset toc
178 LatexCommand tableofcontents
179
180 \end_inset
181
182
183 \end_layout
184
185 \begin_layout Chapter
186 Introduction
187 \end_layout
188
189 \begin_layout Standard
190 This manual is essentially Part II of the 
191 \emph on
192 User's Guide\SpecialChar endofsentence
193
194 \emph default
195  The reason for separating the two documents is simple: the 
196 \emph on
197 User's Guide
198 \emph default
199  is already quite lengthy, and it contains information on all of the basic
200  features one needs to know in order to prepare most documents.
201  However, the \SpecialChar LyX
202  Team has worked to make \SpecialChar LyX
203  extensible through various configuration
204  files and external packages.
205  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
206  package, you can
207  create a layout file (or module) for it without having to alter \SpecialChar LyX
208  itself.
209  We've already had contributions of several new features this way, and some
210  of them are documented here.
211  There are also some more `advanced' features, such as how to control the
212  presentation of bibliographies and how to work with multi-part documents,
213  that are not covered in the 
214 \emph on
215 User's Guide
216 \emph default
217  and are discussed here.
218 \end_layout
219
220 \begin_layout Standard
221 This manual also documents some special features, like fax support, version
222  control, and SGML support, which require additional software to work properly.
223  There is also a chapter on \SpecialChar LyX
224 's support for HTML.
225  And lastly, there's a chapter of \SpecialChar LaTeX
226  tools and tips, things you can use to
227  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
228 .
229  After all, \SpecialChar LyX
230  
231 \emph on
232 is
233 \emph default
234  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
235  features.
236 \end_layout
237
238 \begin_layout Standard
239 If you haven't read the 
240 \emph on
241 Introduction
242 \emph default
243  yet, you are definitely in the wrong manual.
244  The 
245 \emph on
246 Introduction
247 \emph default
248  is the first place to go, since it describes the notation and format of
249  all of the manuals.
250  You should also be thoroughly familiar with the 
251 \emph on
252 User's Guide
253 \emph default
254  and all of the basic features of \SpecialChar LyX
255  before attempting to read this one.
256 \end_layout
257
258 \begin_layout Standard
259 Since many of the topics in this manual depend heavily on \SpecialChar LyX
260 's interaction
261  with \SpecialChar LaTeX
262 , this first chapter covers the inner workings of \SpecialChar LyX
263  and how to direct
264  \SpecialChar LyX
265  to generate exactly the \SpecialChar LaTeX
266  code you want.
267  It is obviously for more seasoned \SpecialChar LyX
268  users.
269 \end_layout
270
271 \begin_layout Chapter
272 \SpecialChar LyX
273  and \SpecialChar LaTeX
274
275 \end_layout
276
277 \begin_layout Section
278 How \SpecialChar LyX
279  Uses \SpecialChar LaTeX
280
281 \end_layout
282
283 \begin_layout Standard
284 This chapter is for both \SpecialChar TeX
285 -nicians and the \SpecialChar LaTeX
286 -curious.
287  In it, we'll explain how \SpecialChar LyX
288  and \SpecialChar LaTeX
289  work together to produce printable output.
290  This is the only place in any of the manuals where we assume you know something
291  about \SpecialChar LaTeX
292 .
293 \end_layout
294
295 \begin_layout Standard
296 At one time, \SpecialChar LyX
297  was called a 
298 \begin_inset Quotes eld
299 \end_inset
300
301 WYSIWYM frontend to \SpecialChar LaTeX
302 ,
303 \begin_inset Quotes erd
304 \end_inset
305
306  but that's no longer true.
307  There are frontends to \SpecialChar LaTeX
308  out there.
309 \begin_inset Foot
310 status collapsed
311
312 \begin_layout Plain Layout
313 Some familar ones are \SpecialChar TeX
314 maker and kile, on Linux, and \SpecialChar TeX
315 shop, OSX.
316  There are also the \SpecialChar LaTeX
317  modes for vi and emacs, of course.
318 \end_layout
319
320 \end_inset
321
322  These are basically text editors with the ability to run \SpecialChar LaTeX
323  and mark any
324  errors in the file you're editing.
325  Although \SpecialChar LyX
326  
327 \emph on
328 is
329 \emph default
330  an editor, and it 
331 \emph on
332 does
333 \emph default
334  run \SpecialChar LaTeX
335 , and it also indicates errors in the file, it also does much, much
336  more.
337  For one thing, you don't need to know \SpecialChar LaTeX
338  to use \SpecialChar LyX
339  effectively.
340  And \SpecialChar LyX
341  has added its own extensions to \SpecialChar LaTeX
342 .
343  Try the following sometime: select 
344 \begin_inset Flex Noun
345 status collapsed
346
347 \begin_layout Plain Layout
348 Export\SpecialChar menuseparator
349 LaTeX
350 \end_layout
351
352 \end_inset
353
354  from the 
355 \begin_inset Flex Noun
356 status collapsed
357
358 \begin_layout Plain Layout
359 File
360 \end_layout
361
362 \end_inset
363
364  menu (or 
365 \begin_inset Flex Noun
366 status collapsed
367
368 \begin_layout Plain Layout
369 View\SpecialChar menuseparator
370 Source
371 \begin_inset space ~
372 \end_inset
373
374 Pane
375 \end_layout
376
377 \end_inset
378
379 ), then look at the preamble of the resulting 
380 \begin_inset Flex Code
381 status collapsed
382
383 \begin_layout Plain Layout
384 .tex
385 \end_layout
386
387 \end_inset
388
389  file.
390  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
391 .
392  These macros are defined automatically, according to the features you use
393  in the document.
394 \end_layout
395
396 \begin_layout Standard
397 There are several commands that automatically invoke \SpecialChar LaTeX
398 .
399  They are:
400 \end_layout
401
402 \begin_layout Itemize
403 \begin_inset Flex Noun
404 status collapsed
405
406 \begin_layout Plain Layout
407 Document\SpecialChar menuseparator
408 View
409 \end_layout
410
411 \end_inset
412
413
414 \end_layout
415
416 \begin_layout Itemize
417 \begin_inset Flex Noun
418 status collapsed
419
420 \begin_layout Plain Layout
421 Document\SpecialChar menuseparator
422 Update
423 \end_layout
424
425 \end_inset
426
427
428 \end_layout
429
430 \begin_layout Standard
431 They will only invoke \SpecialChar LaTeX
432  if the file has changed since the last time \SpecialChar LaTeX
433  was
434  run.
435  
436 \end_layout
437
438 \begin_layout Standard
439 When \SpecialChar LyX
440  runs \SpecialChar LaTeX
441  on the file you're editing, it performs these steps:
442 \end_layout
443
444 \begin_layout Enumerate
445 Convert the document to \SpecialChar LaTeX
446  and save to a file with the extension 
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 .tex
452 \end_layout
453
454 \end_inset
455
456  in place of 
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 .lyx
462 \end_layout
463
464 \end_inset
465
466 .
467 \end_layout
468
469 \begin_layout Enumerate
470 Run \SpecialChar LaTeX
471  on the 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 .tex
477 \end_layout
478
479 \end_inset
480
481  file (maybe several times), and run any other commands (such as 
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 bibtex
487 \end_layout
488
489 \end_inset
490
491  or 
492 \begin_inset Flex Code
493 status collapsed
494
495 \begin_layout Plain Layout
496 makeindex
497 \end_layout
498
499 \end_inset
500
501 ) needed to compile the \SpecialChar LaTeX
502  file.
503 \end_layout
504
505 \begin_layout Enumerate
506 If there are any errors, show the error log.
507 \end_layout
508
509 \begin_layout Standard
510 If you have run \SpecialChar LaTeX
511  using 
512 \begin_inset Flex Noun
513 status collapsed
514
515 \begin_layout Plain Layout
516 View\SpecialChar menuseparator
517 DVI
518 \end_layout
519
520 \end_inset
521
522 , \SpecialChar LyX
523  then runs a DVI viewer to display the DVI-file.
524  If you have used 
525 \begin_inset Flex Noun
526 status collapsed
527
528 \begin_layout Plain Layout
529 View\SpecialChar menuseparator
530 PostScript
531 \end_layout
532
533 \end_inset
534
535 , \SpecialChar LyX
536  performs further steps:
537 \end_layout
538
539 \begin_layout Itemize
540 Run 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 dvips
546 \end_layout
547
548 \end_inset
549
550  to convert the DVI file to PostScript.
551 \end_layout
552
553 \begin_layout Itemize
554 Run a PostScript viewer, such as 
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 ghostview
560 \end_layout
561
562 \end_inset
563
564 , to display the PostScript file.
565 \end_layout
566
567 \begin_layout Standard
568 \SpecialChar LyX
569  does similar things when viewing, or exporting, other formats.
570 \end_layout
571
572 \begin_layout Section
573 Translating \SpecialChar LaTeX
574  files into \SpecialChar LyX
575
576 \end_layout
577
578 \begin_layout Standard
579 You can import a \SpecialChar LaTeX
580  file into \SpecialChar LyX
581  by using the 
582 \begin_inset Flex Noun
583 status collapsed
584
585 \begin_layout Plain Layout
586 File\SpecialChar menuseparator
587 Import\SpecialChar menuseparator
588 LaTeX
589 \end_layout
590
591 \end_inset
592
593  command in \SpecialChar LyX
594 .
595  This will call a program named 
596 \begin_inset Flex Code
597 status collapsed
598
599 \begin_layout Plain Layout
600 tex2lyx
601 \end_layout
602
603 \end_inset
604
605  which will create a file 
606 \begin_inset Flex Code
607 status collapsed
608
609 \begin_layout Plain Layout
610 foo.lyx
611 \end_layout
612
613 \end_inset
614
615  from the file 
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620 foo.tex
621 \end_layout
622
623 \end_inset
624
625 .
626  \SpecialChar LyX
627  will then open that file.
628 \begin_inset Foot
629 status collapsed
630
631 \begin_layout Plain Layout
632 \begin_inset Flex Code
633 status collapsed
634
635 \begin_layout Plain Layout
636 tex2lyx
637 \end_layout
638
639 \end_inset
640
641  can also be run from the command line, of course.
642 \end_layout
643
644 \end_inset
645
646
647 \end_layout
648
649 \begin_layout Standard
650 \begin_inset Flex Code
651 status collapsed
652
653 \begin_layout Plain Layout
654 tex2lyx
655 \end_layout
656
657 \end_inset
658
659  will translate most legal \SpecialChar LaTeX
660 , but not everything.
661  It will put things it doesn't understand into \SpecialChar TeX
662  code, so after translating
663  a file with 
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 tex2lyx
669 \end_layout
670
671 \end_inset
672
673 , you can look for \SpecialChar TeX
674  code and hand-edit it until it looks right.
675 \end_layout
676
677 \begin_layout Standard
678 If you don't know what \SpecialChar TeX
679  code is, read the next section.
680 \end_layout
681
682 \begin_layout Section
683 \begin_inset CommandInset label
684 LatexCommand label
685 name "sec:Inserting-TeX-Code"
686
687 \end_inset
688
689 Inserting \SpecialChar TeX
690  Code into \SpecialChar LyX
691  Documents 
692 \end_layout
693
694 \begin_layout Standard
695 Anything you can do in \SpecialChar LaTeX
696  you can do in \SpecialChar LyX
697 , for a very simple reason: You can
698  always insert \SpecialChar TeX
699  code into any \SpecialChar LyX
700  document.
701  \SpecialChar LyX
702  cannot, and will never be able to, display every possible \SpecialChar LaTeX
703  construct.
704  If ever you need to insert \SpecialChar LaTeX
705  commands into your \SpecialChar LyX
706  document, you can use the
707  
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712 \SpecialChar TeX
713  Code
714 \end_layout
715
716 \end_inset
717
718  box, which you can insert into your document with 
719 \begin_inset Flex Noun
720 status collapsed
721
722 \begin_layout Plain Layout
723 Insert\SpecialChar menuseparator
724
725 \family sans
726 TeX
727 \family default
728  Code
729 \end_layout
730
731 \end_inset
732
733  or the keyboard shortcut 
734 \begin_inset Info
735 type  "shortcut"
736 arg   "ert-insert"
737 \end_inset
738
739 .
740 \end_layout
741
742 \begin_layout Standard
743 Here's an example of inserting \SpecialChar LaTeX
744  commands in a \SpecialChar LyX
745  document.
746  The code looks like this:
747 \end_layout
748
749 \begin_layout LyX-Code
750
751 \backslash
752 begin{tabular}{ll}
753 \begin_inset Newline newline
754 \end_inset
755
756
757 \backslash
758 begin{minipage}{5cm}
759 \begin_inset Newline newline
760 \end_inset
761
762 This is an example of a minipage environment.
763  You 
764 \begin_inset Newline newline
765 \end_inset
766
767 can put nearly everything in it, even (non-floating) 
768 \begin_inset Newline newline
769 \end_inset
770
771 figures and tables.
772  
773 \begin_inset Newline newline
774 \end_inset
775
776
777 \backslash
778 end{minipage}
779 \begin_inset Newline newline
780 \end_inset
781
782 &
783 \begin_inset Newline newline
784 \end_inset
785
786
787 \backslash
788 begin{minipage}{5cm}
789 \begin_inset Newline newline
790 \end_inset
791
792
793 \backslash
794 begin{verbatim}
795 \begin_inset Newline newline
796 \end_inset
797
798
799 \backslash
800 begin{minipage}{5cm}
801 \begin_inset Newline newline
802 \end_inset
803
804 This ...
805  
806 \begin_inset Newline newline
807 \end_inset
808
809
810 \backslash
811 end{minipage}
812 \begin_inset Newline newline
813 \end_inset
814
815
816 \backslash
817 end{verbatim}
818 \begin_inset Newline newline
819 \end_inset
820
821
822 \backslash
823 end{minipage}
824 \begin_inset Newline newline
825 \end_inset
826
827
828 \backslash
829 end{tabular}
830 \end_layout
831
832 \begin_layout LyX-Code
833
834 \end_layout
835
836 \begin_layout Standard
837 The 
838 \begin_inset Flex Code
839 status collapsed
840
841 \begin_layout Plain Layout
842 \SpecialChar TeX
843  Code
844 \end_layout
845
846 \end_inset
847
848  box containing this text is directly after this paragraph.
849  Those of you reading the manual in \SpecialChar LyX
850  will only see the \SpecialChar TeX
851  code inset.
852  Those reading a printed version of the manuals will see the actual results:
853 \begin_inset VSpace bigskip
854 \end_inset
855
856
857 \end_layout
858
859 \begin_layout Standard
860 \begin_inset ERT
861 status open
862
863 \begin_layout Plain Layout
864
865
866 \backslash
867 begin{tabular}{ll}
868 \end_layout
869
870 \begin_layout Plain Layout
871
872
873 \backslash
874 begin{minipage}{5cm}
875 \end_layout
876
877 \begin_layout Plain Layout
878
879 This is an example of a minipage environment.
880  You can put nearly everything in it, even (non-floating) figures and tables.
881  
882 \end_layout
883
884 \begin_layout Plain Layout
885
886
887 \backslash
888 end{minipage}
889 \end_layout
890
891 \begin_layout Plain Layout
892
893 &
894 \end_layout
895
896 \begin_layout Plain Layout
897
898
899 \backslash
900 begin{minipage}{5cm}
901 \end_layout
902
903 \begin_layout Plain Layout
904
905
906 \backslash
907 begin{verbatim}
908 \end_layout
909
910 \begin_layout Plain Layout
911
912
913 \backslash
914 begin{minipage}{5cm}
915 \end_layout
916
917 \begin_layout Plain Layout
918
919 This ...
920  
921 \end_layout
922
923 \begin_layout Plain Layout
924
925
926 \backslash
927 end{minipage}
928 \end_layout
929
930 \begin_layout Plain Layout
931
932
933 \backslash
934 end{verbatim}
935 \end_layout
936
937 \begin_layout Plain Layout
938
939
940 \backslash
941 end{minipage}
942 \end_layout
943
944 \begin_layout Plain Layout
945
946
947 \backslash
948 end{tabular}
949 \end_layout
950
951 \end_inset
952
953
954 \begin_inset VSpace bigskip
955 \end_inset
956
957
958 \end_layout
959
960 \begin_layout Standard
961 In addition to using \SpecialChar TeX
962  code, you can also create a separate file containing
963  some complex \SpecialChar LaTeX
964  structure and then use 
965 \begin_inset Flex Noun
966 status collapsed
967
968 \begin_layout Plain Layout
969 Insert\SpecialChar menuseparator
970 Child
971 \begin_inset space ~
972 \end_inset
973
974 Document
975 \end_layout
976
977 \end_inset
978
979  to include your file (you should select the type 
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 Input
985 \end_layout
986
987 \end_inset
988
989 ).
990  We recommend that you only do this if you have a 
991 \begin_inset Flex Code
992 status collapsed
993
994 \begin_layout Plain Layout
995 .tex
996 \end_layout
997
998 \end_inset
999
1000  file which you 
1001 \emph on
1002 know
1003 \emph default
1004  works already.
1005  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1006  errors.
1007 \end_layout
1008
1009 \begin_layout Standard
1010 There are a few last points to emphasize:
1011 \end_layout
1012
1013 \begin_layout Itemize
1014 \SpecialChar LyX
1015  
1016 \emph on
1017 does not
1018 \emph default
1019  check if your \SpecialChar LaTeX
1020  code is correct.
1021 \end_layout
1022
1023 \begin_layout Itemize
1024 Beware of reinventing the wheel.
1025 \end_layout
1026
1027 \begin_layout Standard
1028 On that last point, \SpecialChar LyX
1029  does have quite a few features tucked into it, and
1030  more are coming.
1031  Be sure to check the manuals to make sure that \SpecialChar LyX
1032  doesn't have such-and-such
1033  feature before you decide you have to do it by hand.
1034  Moreover, there are numerous \SpecialChar LaTeX
1035  packages out there to do all sorts of things,
1036  from labels to envelopes to fancy multipage tables.
1037  Check out 
1038 \begin_inset CommandInset href
1039 LatexCommand href
1040 name "CTAN"
1041 target "http://www.ctan.org/"
1042 literal "false"
1043
1044 \end_inset
1045
1046  for details.
1047 \end_layout
1048
1049 \begin_layout Standard
1050 If you do need to do some wild and fancy things within your document, be
1051  sure to check out a good \SpecialChar LaTeX
1052  book for assistance.
1053  There are a number of them listed in the bibliography of the 
1054 \emph on
1055 User's Guide
1056 \emph default
1057 .
1058 \end_layout
1059
1060 \begin_layout Section
1061 \SpecialChar LyX
1062  and the \SpecialChar LaTeX
1063  Preamble
1064 \end_layout
1065
1066 \begin_layout Subsection
1067 About the \SpecialChar LaTeX
1068  Preamble
1069 \end_layout
1070
1071 \begin_layout Standard
1072 If you already know \SpecialChar LaTeX
1073 , there is no need to explain here what the preamble
1074  is good for.
1075  If you don't, the following will give you some ideas—we recommend again
1076  that you consult a \SpecialChar LaTeX
1077  book for further information.
1078  In any case, you should read the points below, because they explain what
1079  you can do and what you don't need to do in the \SpecialChar LaTeX
1080  preamble of a \SpecialChar LyX
1081  document.
1082 \end_layout
1083
1084 \begin_layout Standard
1085 The \SpecialChar LaTeX
1086  preamble comes at the very beginning of a document, 
1087 \emph on
1088 before
1089 \emph default
1090  the text.
1091  It serves to:
1092 \end_layout
1093
1094 \begin_layout Itemize
1095 Declare the document class.
1096  
1097 \begin_inset Newline newline
1098 \end_inset
1099
1100 \SpecialChar LyX
1101  already does this for you.
1102  If you're a seasoned \SpecialChar LaTeX
1103 -nician, and you have a custom document class you
1104  want to use, check out the 
1105 \emph on
1106 Customization Manual
1107 \emph default
1108  for information on how to make \SpecialChar LyX
1109  interface to it.
1110 \end_layout
1111
1112 \begin_layout Itemize
1113 Declare the usage of packages.
1114  
1115 \begin_inset Newline newline
1116 \end_inset
1117
1118 \SpecialChar LaTeX
1119  packages provide special commands, which are only available within a document
1120  when the package has been declared in the preamble.
1121  In addition to providing special commands, the inclusion of a package can
1122  change the document.
1123  For example, the package 
1124 \begin_inset Flex Code
1125 status collapsed
1126
1127 \begin_layout Plain Layout
1128 indentfirst
1129 \end_layout
1130
1131 \end_inset
1132
1133  forces all paragraphs to be indented.
1134  There are other packages for labels, envelopes, margins, etc.
1135  
1136 \end_layout
1137
1138 \begin_layout Itemize
1139 Set counters, variables, lengths and widths.
1140  
1141 \begin_inset Newline newline
1142 \end_inset
1143
1144 There are several \SpecialChar LaTeX
1145  counters and variables that 
1146 \emph on
1147 must
1148 \emph default
1149  be set globally from within the preamble in order to have the desired effect.
1150  (There are variables that you can set and reset inside the document, too.)
1151  Margins are a good example of something that must be set in the preamble.
1152  Another example is the label format for lists.
1153  You can actually set these just about anywhere, but it's best to do it
1154  just once, inside the preamble.
1155 \end_layout
1156
1157 \begin_layout Itemize
1158 Declare user defined commands (with 
1159 \begin_inset Flex Code
1160 status collapsed
1161
1162 \begin_layout Plain Layout
1163
1164 \backslash
1165 newcommand
1166 \end_layout
1167
1168 \end_inset
1169
1170  or 
1171 \begin_inset Flex Code
1172 status collapsed
1173
1174 \begin_layout Plain Layout
1175
1176 \backslash
1177 renewcommand
1178 \end_layout
1179
1180 \end_inset
1181
1182 ).
1183 \begin_inset Newline newline
1184 \end_inset
1185
1186 These are abbreviations for \SpecialChar LaTeX
1187  commands which appear very often inside a document.
1188  Although the preamble is a good place to declare such commands, they 
1189 \emph on
1190 can
1191 \emph default
1192  be declared anywhere (before they are used for the first time, of course).
1193  This can be useful if there is a lot of raw \SpecialChar LaTeX
1194  code in your document, which
1195  normally should not be the case.
1196 \end_layout
1197
1198 \begin_layout Standard
1199 \SpecialChar LyX
1200  adds its own set of definitions to the preamble of the 
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205 .tex
1206 \end_layout
1207
1208 \end_inset
1209
1210  file it produces.
1211  This makes \SpecialChar LaTeX
1212  files generated by \SpecialChar LyX
1213  portable.
1214 \end_layout
1215
1216 \begin_layout Subsection
1217 Changing the Preamble
1218 \end_layout
1219
1220 \begin_layout Standard
1221 The commands which \SpecialChar LyX
1222  adds to the preamble of a \SpecialChar LaTeX
1223  file are fixed; you can't
1224  change them without patching \SpecialChar LyX
1225  itself.
1226  You can, however, add your own stuff to the preamble by selecting 
1227 \begin_inset Flex Noun
1228 status collapsed
1229
1230 \begin_layout Plain Layout
1231 \SpecialChar LaTeX
1232
1233 \begin_inset space ~
1234 \end_inset
1235
1236 Preamble
1237 \end_layout
1238
1239 \end_inset
1240
1241  in the 
1242 \begin_inset Flex Noun
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 Document\SpecialChar menuseparator
1247 Settings
1248 \end_layout
1249
1250 \end_inset
1251
1252  dialog.
1253  \SpecialChar LyX
1254  adds anything in the 
1255 \begin_inset Flex Noun
1256 status collapsed
1257
1258 \begin_layout Plain Layout
1259 Preamble
1260 \end_layout
1261
1262 \end_inset
1263
1264  dialog to its own built-in preamble.
1265  Before adding your own declarations in the preamble, you should make sure
1266  that \SpecialChar LyX
1267  doesn't already support what you want to do.
1268  (Remember what we said about reinventing the wheel?) Also, 
1269 \emph on
1270 make sure your preamble code is correct
1271 \emph default
1272 .
1273  \SpecialChar LyX
1274  doesn't check it for you.
1275  If there is an error, you're likely to get an error like 
1276 \begin_inset Quotes eld
1277 \end_inset
1278
1279
1280 \begin_inset Flex Code
1281 status collapsed
1282
1283 \begin_layout Plain Layout
1284 Missing 
1285 \backslash
1286 begin{document}
1287 \end_layout
1288
1289 \end_inset
1290
1291
1292 \begin_inset Quotes erd
1293 \end_inset
1294
1295 .
1296  If you see this error, check your preamble.
1297 \end_layout
1298
1299 \begin_layout Subsection
1300 Examples
1301 \end_layout
1302
1303 \begin_layout Standard
1304 Here are some examples of what you can add to a preamble, and what they
1305  do.
1306 \end_layout
1307
1308 \begin_layout Subsubsection
1309 Example #1: Offsets
1310 \end_layout
1311
1312 \begin_layout Standard
1313 There are two variables under \SpecialChar LaTeX
1314  that control page position: 
1315 \begin_inset Flex Code
1316 status collapsed
1317
1318 \begin_layout Plain Layout
1319
1320 \backslash
1321 hoffset
1322 \end_layout
1323
1324 \end_inset
1325
1326  and 
1327 \begin_inset Flex Code
1328 status collapsed
1329
1330 \begin_layout Plain Layout
1331
1332 \backslash
1333 voffset
1334 \end_layout
1335
1336 \end_inset
1337
1338 .
1339  Their names should be self-explanatory.
1340  These variables are useful if you think for a moment about computer labels.
1341  Sometimes, the size of a print medium and the area of the medium that you
1342  can actually print on aren't the same.
1343  This is where 
1344 \begin_inset Flex Code
1345 status collapsed
1346
1347 \begin_layout Plain Layout
1348
1349 \backslash
1350 hoffset
1351 \end_layout
1352
1353 \end_inset
1354
1355  and 
1356 \begin_inset Flex Code
1357 status collapsed
1358
1359 \begin_layout Plain Layout
1360
1361 \backslash
1362 voffset
1363 \end_layout
1364
1365 \end_inset
1366
1367  come in.
1368 \end_layout
1369
1370 \begin_layout Standard
1371 The default values for 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376
1377 \backslash
1378 hoffset
1379 \end_layout
1380
1381 \end_inset
1382
1383  and 
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388
1389 \backslash
1390 voffset
1391 \end_layout
1392
1393 \end_inset
1394
1395  are both 0
1396 \begin_inset space \thinspace{}
1397 \end_inset
1398
1399 points, i.
1400 \begin_inset space \thinspace{}
1401 \end_inset
1402
1403 e.
1404 \begin_inset space \space{}
1405 \end_inset
1406
1407 the page isn't shifted.
1408  Unfortunately, some DVI drivers always seem to shift the page.
1409  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1410  If you're using \SpecialChar LyX
1411  on a system that you don't personally maintain, and your
1412  sysadmin is a doofus, 
1413 \begin_inset Flex Code
1414 status collapsed
1415
1416 \begin_layout Plain Layout
1417
1418 \backslash
1419 hoffset
1420 \end_layout
1421
1422 \end_inset
1423
1424  and 
1425 \begin_inset Flex Code
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429
1430 \backslash
1431 voffset
1432 \end_layout
1433
1434 \end_inset
1435
1436  can save the day.
1437  Suppose your left and top margins are always 0.5
1438 \begin_inset space \thinspace{}
1439 \end_inset
1440
1441 inches too big.
1442  You can add this to the preamble:
1443 \end_layout
1444
1445 \begin_layout LyX-Code
1446
1447 \backslash
1448 setlength{
1449 \backslash
1450 hoffset}{-0.5 in}
1451 \end_layout
1452
1453 \begin_layout LyX-Code
1454
1455 \backslash
1456 setlength{
1457 \backslash
1458 voffset}{-0.5 in}
1459 \end_layout
1460
1461 \begin_layout Standard
1462 and your margins should now be correct.
1463 \end_layout
1464
1465 \begin_layout Subsubsection
1466 Example #2: Labels
1467 \end_layout
1468
1469 \begin_layout Standard
1470 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1471  There's a rather nice package, available at your nearest CTAN archive,
1472  for printing sheets of labels: 
1473 \begin_inset Flex Code
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 labels.sty
1478 \end_layout
1479
1480 \end_inset
1481
1482 .
1483  Now, your system may not have this package installed by default.
1484  We leave that up to you to check.
1485  You'll also want to read the documentation for it; we're not going to do
1486  that for you.
1487  Since this is an example, however, we'll give you an example of how you
1488  use this package.
1489 \end_layout
1490
1491 \begin_layout Standard
1492 First, make sure you're using the 
1493 \begin_inset Flex Code
1494 status collapsed
1495
1496 \begin_layout Plain Layout
1497 article
1498 \end_layout
1499
1500 \end_inset
1501
1502  document class.
1503  Next, you need to put the following in your preamble:
1504 \end_layout
1505
1506 \begin_layout LyX-Code
1507
1508 \backslash
1509 usepackage{labels}
1510 \end_layout
1511
1512 \begin_layout LyX-Code
1513
1514 \backslash
1515 LabelCols=3
1516 \end_layout
1517
1518 \begin_layout LyX-Code
1519
1520 \backslash
1521 LabelRows=7
1522 \end_layout
1523
1524 \begin_layout LyX-Code
1525
1526 \backslash
1527 LeftBorder=8mm
1528 \end_layout
1529
1530 \begin_layout LyX-Code
1531
1532 \backslash
1533 RightBorder=8mm
1534 \end_layout
1535
1536 \begin_layout LyX-Code
1537
1538 \backslash
1539 TopBorder=9mm
1540 \end_layout
1541
1542 \begin_layout LyX-Code
1543
1544 \backslash
1545 BottomBorder=2mm
1546 \end_layout
1547
1548 \begin_layout Standard
1549 This sets things up for Avery label sheets, stock #5360.
1550  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1551  code, placing
1552  the commands 
1553 \begin_inset Flex Code
1554 status collapsed
1555
1556 \begin_layout Plain Layout
1557
1558 \backslash
1559 begin{labels}
1560 \end_layout
1561
1562 \end_inset
1563
1564  and 
1565 \begin_inset Flex Code
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569
1570 \backslash
1571 end{labels}
1572 \end_layout
1573
1574 \end_inset
1575
1576  around each label text.
1577  This and other special features of 
1578 \begin_inset Flex Code
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 labels.sty
1583 \end_layout
1584
1585 \end_inset
1586
1587  are explained in its documentation.
1588 \end_layout
1589
1590 \begin_layout Standard
1591 Someday, someone may write a \SpecialChar LyX
1592  layout file to support this package directly.
1593  Maybe that someone is you.
1594 \end_layout
1595
1596 \begin_layout Subsubsection
1597 Example #3: Paragraph Indentation
1598 \end_layout
1599
1600 \begin_layout Standard
1601 Americans are trained to indent the first line of 
1602 \emph on
1603 every
1604 \emph default
1605  paragraph.
1606  As with all of their other weird quirks, most Americans will whine and
1607  moan until they can have their way and indent the first line of all paragraphs.
1608  (Yes, we're joking.
1609  (We are?) 
1610 \emph on
1611 Yeah
1612 \emph default
1613 , we are.)
1614 \end_layout
1615
1616 \begin_layout Standard
1617 Of course, this behavior isn't standard typography.
1618  In books, you typically only indent the first line of a paragraph 
1619 \emph on
1620 if
1621 \emph default
1622  it follows another one.
1623  The idea behind indenting the first line of a paragraph is to distinguish
1624  neighboring paragraphs from one another.
1625  If there is no previous paragraph—for example, if it follows a figure or
1626  is the first paragraph in a section—then there is no need for indentation.
1627  
1628 \end_layout
1629
1630 \begin_layout Standard
1631 If you're a typical American (we're still joking!), though, you don't care
1632  about such esoteric things; you want your indentation! Add this to the
1633  preamble:
1634 \end_layout
1635
1636 \begin_layout LyX-Code
1637
1638 \backslash
1639 usepackage{indentfirst}
1640 \end_layout
1641
1642 \begin_layout Standard
1643 If your \SpecialChar TeX
1644  distribution isn't braindead, you'll have this package, and all
1645  of your paragraphs will get the indentation the Founding Fathers intended
1646  they should have.
1647 \end_layout
1648
1649 \begin_layout Subsubsection
1650 Example #4: This Document
1651 \end_layout
1652
1653 \begin_layout Standard
1654 You can also check out the preamble of this document to get an idea of some
1655  of the advanced things you can do.
1656 \end_layout
1657
1658 \begin_layout Section
1659 \SpecialChar LyX
1660  and \SpecialChar LaTeX
1661  Errors
1662 \end_layout
1663
1664 \begin_layout Standard
1665 When \SpecialChar LyX
1666  calls \SpecialChar LaTeX
1667 , it tells \SpecialChar LaTeX
1668  to blithely ignore any errors and keep going.
1669  It then uses the logfile from the \SpecialChar LaTeX
1670  run to do a post-mortem.
1671  After analyzing the logfile, \SpecialChar LyX
1672  displays a dialog listing the errors.
1673  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1674  file
1675  where the error occurred.
1676 \begin_inset Foot
1677 status collapsed
1678
1679 \begin_layout Plain Layout
1680 Well, usually.
1681  Analyzing the logfile is a tough job, and \SpecialChar LyX
1682  doesn't always go to the right
1683  line.
1684  There are also cases where \SpecialChar LaTeX
1685  reports the error on one line, but the actual
1686  error is earlier.
1687  This is not unlike forgetting a closing brace in a program: You'll get
1688  an error, but only later.
1689 \end_layout
1690
1691 \end_inset
1692
1693
1694 \end_layout
1695
1696 \begin_layout Standard
1697 Some folks also like to look at the log file directly: It is available from
1698  
1699 \begin_inset Flex Noun
1700 status collapsed
1701
1702 \begin_layout Plain Layout
1703 Document\SpecialChar menuseparator
1704 LaTeX
1705 \begin_inset space ~
1706 \end_inset
1707
1708 Log
1709 \end_layout
1710
1711 \end_inset
1712
1713 .
1714  There are some fairly common error messages and warnings.
1715  We'll cover those here.
1716  You should look at a good \SpecialChar LaTeX
1717  book for a complete listing.
1718 \end_layout
1719
1720 \begin_layout Itemize
1721 \begin_inset Flex Code
1722 status collapsed
1723
1724 \begin_layout Plain Layout
1725 LaTeX Warning
1726 \end_layout
1727
1728 \end_inset
1729
1730
1731 \begin_inset Newline newline
1732 \end_inset
1733
1734 Anything beginning with these words is a warning message for the purpose
1735  of 
1736 \begin_inset Quotes eld
1737 \end_inset
1738
1739 debugging
1740 \begin_inset Quotes erd
1741 \end_inset
1742
1743  the \SpecialChar LaTeX
1744  code itself.
1745  You'll get messages like this if you added or changed cross-references
1746  or bibliography entries, in which case, \SpecialChar LaTeX
1747  is trying to tell you that you
1748  need to make another run.
1749  You can by-and-large ignore these.
1750 \end_layout
1751
1752 \begin_layout Itemize
1753 \begin_inset Flex Code
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 LaTeX Font Warning
1758 \end_layout
1759
1760 \end_inset
1761
1762
1763 \begin_inset Newline newline
1764 \end_inset
1765
1766 Another warning message, this time about fonts which \SpecialChar LaTeX
1767  couldn't find.
1768  The rest of the message will often say something about a replacement font
1769  that \SpecialChar LaTeX
1770  used.
1771  You can safely ignore these, too.
1772 \end_layout
1773
1774 \begin_layout Itemize
1775 \begin_inset Flex Code
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 Overfull 
1780 \backslash
1781 hbox
1782 \end_layout
1783
1784 \end_inset
1785
1786
1787 \begin_inset Newline newline
1788 \end_inset
1789
1790 \SpecialChar LaTeX
1791  absolutely 
1792 \emph on
1793 loves
1794 \emph default
1795  to spew these out.
1796  It seems to generate at least one of these messages for just about any
1797  document you write.
1798  They are warnings about lines that were too long and run past the right
1799  margin.
1800  This happens if \SpecialChar LaTeX
1801  does not find a reasonable way to break the lines (notoriously
1802  often with typewriter font, since this does not allow for automatic break
1803  points).
1804  In many cases, this is unnoticeable in the final output.
1805  (It can be just a point or two.) Sometimes, however, the lines run rather
1806  visibly into the margin; something you will not want to have in your final
1807  print.
1808  
1809 \begin_inset Newline newline
1810 \end_inset
1811
1812 There are several global ways to try to minimize the overfull lines.
1813  Clicking 
1814 \family sans
1815 Enable micro-typographic extensions
1816 \family default
1817  in 
1818 \family sans
1819 Document\SpecialChar menuseparator
1820 Settings\SpecialChar menuseparator
1821 Fonts
1822 \family default
1823  might already improve things a lot.
1824  Furthermore, \SpecialChar LaTeX
1825  code such as the following in 
1826 \family sans
1827 Document\SpecialChar menuseparator
1828 Settings\SpecialChar menuseparator
1829 Preamble
1830 \family default
1831  usually reduces the overfull lines drastically (we use this in the preamble
1832  of this document):
1833 \end_layout
1834
1835 \begin_deeper
1836 \begin_layout LyX-Code
1837
1838 \backslash
1839 tolerance 1414
1840 \begin_inset Newline newline
1841 \end_inset
1842
1843
1844 \backslash
1845 hbadness 1414
1846 \begin_inset Newline newline
1847 \end_inset
1848
1849
1850 \backslash
1851 emergencystretch 1.5em
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855
1856 \backslash
1857 hfuzz 0.3pt
1858 \end_layout
1859
1860 \begin_layout Standard
1861 In some cases, however, you eventually have to rewrite the text to get the
1862  line breaking right.
1863 \begin_inset Foot
1864 status collapsed
1865
1866 \begin_layout Plain Layout
1867 For more information, see 
1868 \begin_inset Flex URL
1869 status open
1870
1871 \begin_layout Plain Layout
1872
1873 http://www.tex.ac.uk/FAQ-overfull.html
1874 \end_layout
1875
1876 \end_inset
1877
1878
1879 \end_layout
1880
1881 \end_inset
1882
1883
1884 \end_layout
1885
1886 \begin_layout Standard
1887 In any case, you should check the respective lines, at least for the final
1888  version of your document.
1889  Your eyes will tell you if there's a problem with something that's too
1890  wide.
1891 \begin_inset Foot
1892 status collapsed
1893
1894 \begin_layout Plain Layout
1895 You can also enable the `draft' option in 
1896 \begin_inset Flex Noun
1897 status collapsed
1898
1899 \begin_layout Plain Layout
1900 Document\SpecialChar menuseparator
1901 Settings
1902 \end_layout
1903
1904 \end_inset
1905
1906 , and then \SpecialChar LaTeX
1907  will draw a black box in the margin of lines that are overfull.
1908 \end_layout
1909
1910 \end_inset
1911
1912  
1913 \end_layout
1914
1915 \end_deeper
1916 \begin_layout Itemize
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 Underfull 
1922 \backslash
1923 hbox
1924 \end_layout
1925
1926 \end_inset
1927
1928
1929 \begin_inset Newline newline
1930 \end_inset
1931
1932 Not quite as common as its cousin.
1933  This happens again if \SpecialChar LaTeX
1934  does not find a reasonable break point and consequently
1935  generates too loose lines.
1936  As with the overfull lines, you should check if this is a visible problem.
1937 \end_layout
1938
1939 \begin_layout Itemize
1940 \begin_inset Flex Code
1941 status collapsed
1942
1943 \begin_layout Plain Layout
1944 Overfull 
1945 \backslash
1946 vbox
1947 \end_layout
1948
1949 \end_inset
1950
1951  and 
1952 \begin_inset Flex Code
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 Underfull 
1957 \backslash
1958 vbox
1959 \end_layout
1960
1961 \end_inset
1962
1963
1964 \begin_inset Newline newline
1965 \end_inset
1966
1967 Warnings about troubles breaking the page.
1968  Once again, just look at the output.
1969  Your eyes will tell you where something has gone wrong.
1970 \end_layout
1971
1972 \begin_layout Itemize
1973 \begin_inset Flex Code
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977 LaTeX Error: File 
1978 \begin_inset Quotes els
1979 \end_inset
1980
1981 Xxxx
1982 \begin_inset Quotes ers
1983 \end_inset
1984
1985  not found
1986 \end_layout
1987
1988 \end_inset
1989
1990
1991 \begin_inset Newline newline
1992 \end_inset
1993
1994 The file 
1995 \begin_inset Quotes eld
1996 \end_inset
1997
1998 Xxxx
1999 \begin_inset Quotes erd
2000 \end_inset
2001
2002  isn't installed on this system.
2003  This usually appears because some package your document needs isn't installed.
2004  If you didn't touch the preamble or didn't use the 
2005 \begin_inset Flex Code
2006 status collapsed
2007
2008 \begin_layout Plain Layout
2009
2010 \backslash
2011 usepackage{}
2012 \end_layout
2013
2014 \end_inset
2015
2016  command, then one of the packages \SpecialChar LyX
2017  tried to load is missing.
2018  Use 
2019 \begin_inset Flex Noun
2020 status collapsed
2021
2022 \begin_layout Plain Layout
2023 Help\SpecialChar menuseparator
2024 \SpecialChar LaTeX
2025  Configuration
2026 \end_layout
2027
2028 \end_inset
2029
2030  to get a list of packages that \SpecialChar LyX
2031  knows about.
2032  This file is updated whenever you reconfigure \SpecialChar LyX
2033  (using 
2034 \begin_inset Flex Noun
2035 status collapsed
2036
2037 \begin_layout Plain Layout
2038 Tools\SpecialChar menuseparator
2039 Reconfigure
2040 \end_layout
2041
2042 \end_inset
2043
2044 ) and tells you which packages have been detected and what they do.
2045 \begin_inset Newline newline
2046 \end_inset
2047
2048 If you did use the 
2049 \begin_inset Flex Code
2050 status collapsed
2051
2052 \begin_layout Plain Layout
2053
2054 \backslash
2055 usepackage{}
2056 \end_layout
2057
2058 \end_inset
2059
2060  command and the package in question isn't installed, then you'll need to
2061  install it yourself.
2062 \end_layout
2063
2064 \begin_layout Itemize
2065 \begin_inset Flex Code
2066 status collapsed
2067
2068 \begin_layout Plain Layout
2069 LaTeX Error: Unknown option
2070 \end_layout
2071
2072 \end_inset
2073
2074
2075 \begin_inset Newline newline
2076 \end_inset
2077
2078 Error messages beginning with this are trying to tell you that you specified
2079  a bad or undefined option to a package.
2080  Check the package's documentation.
2081 \end_layout
2082
2083 \begin_layout Itemize
2084 \begin_inset Flex Code
2085 status collapsed
2086
2087 \begin_layout Plain Layout
2088 Undefined control sequence
2089 \end_layout
2090
2091 \end_inset
2092
2093
2094 \begin_inset Newline newline
2095 \end_inset
2096
2097 If you've inserted \SpecialChar LaTeX
2098  code into your document, but made a typo, you'll get
2099  one of these.
2100  You may have forgotten to load a package.
2101  In any case, this error message usually means that you used an undefined
2102  command.
2103  
2104 \end_layout
2105
2106 \begin_layout Standard
2107 There are other error and warning messages.
2108  Some are self-explanatory.
2109  These are usually \SpecialChar LaTeX
2110  messages.
2111  Others are downright cryptic.
2112  These are usually \SpecialChar TeX
2113  error messages, and we really have 
2114 \emph on
2115 no clue
2116 \emph default
2117  what they mean or how to decipher them.
2118  No-one does.
2119 \end_layout
2120
2121 \begin_layout Standard
2122 There's a general sequence you should follow if you get error messages:
2123 \end_layout
2124
2125 \begin_layout Enumerate
2126 Look at the \SpecialChar LaTeX
2127  code you inserted for typos.
2128 \end_layout
2129
2130 \begin_layout Enumerate
2131 If there are no typos, check that you used the command(s) correctly.
2132 \end_layout
2133
2134 \begin_layout Enumerate
2135 If you get a bunch of error boxes piled up at the very top of the document—and
2136  especially if you see a 
2137 \begin_inset Quotes eld
2138 \end_inset
2139
2140
2141 \begin_inset Flex Code
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 Missing 
2146 \backslash
2147 begin{document}
2148 \end_layout
2149
2150 \end_inset
2151
2152
2153 \begin_inset Quotes erd
2154 \end_inset
2155
2156  error—it means that there are errors in the preamble.
2157  Start debugging your preamble.
2158 \end_layout
2159
2160 \begin_layout Enumerate
2161 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2162  code to the
2163  document, the first suspect is your \SpecialChar LaTeX
2164  distribution itself.
2165  Check for missing packages and install them.
2166 \end_layout
2167
2168 \begin_layout Enumerate
2169 Okay, so there are no missing packages.
2170  Did you use any of the fine-tuning options in \SpecialChar LyX
2171 ? Specifically, did you 
2172 \emph on
2173 misuse
2174 \emph default
2175  any of them, like trying to manually insert lots of 
2176 \begin_inset Flex Code
2177 status collapsed
2178
2179 \begin_layout Plain Layout
2180 Protected
2181 \begin_inset space ~
2182 \end_inset
2183
2184 Blanks
2185 \end_layout
2186
2187 \end_inset
2188
2189
2190 \begin_inset Flex Code
2191 status collapsed
2192
2193 \begin_layout Plain Layout
2194 Linebreaks
2195 \end_layout
2196
2197 \end_inset
2198
2199 , or 
2200 \begin_inset Flex Code
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 Pagebreaks
2205 \end_layout
2206
2207 \end_inset
2208
2209 ? Did you try to kludge something together with these instead of using the
2210  appropriate paragraph environment?
2211 \end_layout
2212
2213 \begin_layout Enumerate
2214 All right, you didn't use any of the fine-tuning options, you played by
2215  the rules.
2216  Did you try to pull a fancy maneuver? Did you do something funky inside
2217  a table or an equation, like inserting a graphic into a table cell?
2218 \end_layout
2219
2220 \begin_layout Enumerate
2221 Do you have long sections of text where \SpecialChar LaTeX
2222  cannot find a place to break a
2223  line? By default, \SpecialChar LaTeX
2224  is rather strict about how much extra inter-word spacing
2225  it will add in order to break a line.
2226  Preferably, you should rework the paragraph to avoid the problem.
2227 \end_layout
2228
2229 \begin_layout Enumerate
2230 Did you go overboard with the nesting? \SpecialChar LyX
2231  (currently) doesn't check to make
2232  sure you're in the limits for nesting environments.
2233  If you nested a bunch of environments to the 
2234 \begin_inset Formula $17^{\mathrm{th}}$
2235 \end_inset
2236
2237  level, that's the problem.
2238  (The limit in \SpecialChar LaTeX
2239  is five.)
2240 \end_layout
2241
2242 \begin_layout Enumerate
2243 Okay, you didn't get any error messages, but your output looks awful.
2244  If you have a table or figure that's too wide or long for the page, you
2245  need to:
2246 \end_layout
2247
2248 \begin_deeper
2249 \begin_layout Enumerate
2250 rescale the figure so it fits.
2251 \end_layout
2252
2253 \begin_layout Enumerate
2254 trim down the table so it fits.
2255 \end_layout
2256
2257 \end_deeper
2258 \begin_layout Enumerate
2259 If something else is wrong with the output, and you didn't try to pull anything
2260  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2261 \end_layout
2262
2263 \begin_layout Standard
2264 If all this doesn't help—well, then 
2265 \emph on
2266 perhaps
2267 \emph default
2268  you might have found a bug in \SpecialChar LyX
2269 \SpecialChar ldots
2270 .
2271 \end_layout
2272
2273 \begin_layout Chapter
2274 Supplemental Tools
2275 \end_layout
2276
2277 \begin_layout Section
2278 Customizing Bibliographies with Bib\SpecialChar TeX
2279  or Biblatex
2280 \end_layout
2281
2282 \begin_layout Standard
2283 The most basic information about how to use Bib\SpecialChar TeX
2284  or 
2285 \family sans
2286 Biblatex
2287 \family default
2288  with \SpecialChar LyX
2289  is contained in the section 
2290 \emph on
2291 Bibliography databases
2292 \emph default
2293  of the 
2294 \emph on
2295 User's Guide
2296 \emph default
2297 .
2298  The following subsections explain special bibliography features supported
2299  by \SpecialChar LyX
2300 .
2301 \end_layout
2302
2303 \begin_layout Subsection
2304 Alternative Citation Styles
2305 \end_layout
2306
2307 \begin_layout Standard
2308 Standard Bib\SpecialChar TeX
2309  uses numbers (e.
2310 \begin_inset space \thinspace{}
2311 \end_inset
2312
2313 g.
2314 \begin_inset space \space{}
2315 \end_inset
2316
2317
2318 \begin_inset Quotes eld
2319 \end_inset
2320
2321 [12]
2322 \begin_inset Quotes erd
2323 \end_inset
2324
2325 ) to refer to a cited work.
2326  However, in many scientific disciplines, other citation styles are in use.
2327  The most common one is the author-year style (e.
2328 \begin_inset space \thinspace{}
2329 \end_inset
2330
2331 g.
2332 \begin_inset space \space{}
2333 \end_inset
2334
2335
2336 \begin_inset Quotes eld
2337 \end_inset
2338
2339 Knuth 1984a
2340 \begin_inset Quotes erd
2341 \end_inset
2342
2343 ).
2344  \SpecialChar LyX
2345  supports three packages that provide this style, 
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 biblatex
2351 \end_layout
2352
2353 \end_inset
2354
2355
2356 \begin_inset Flex Code
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360 natbib
2361 \end_layout
2362
2363 \end_inset
2364
2365 , and 
2366 \begin_inset Flex Code
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370 jurabib
2371 \end_layout
2372
2373 \end_inset
2374
2375 .
2376  Each of these packages has their pros and cons, which cannot be listed
2377  in detail.
2378  If you only want to have simple author-year (or author-numerical) style,
2379  or if you want to use one of the countless style files for 
2380 \begin_inset Flex Code
2381 status collapsed
2382
2383 \begin_layout Plain Layout
2384 natbib
2385 \end_layout
2386
2387 \end_inset
2388
2389 , then the established 
2390 \begin_inset Flex Code
2391 status collapsed
2392
2393 \begin_layout Plain Layout
2394 natbib
2395 \end_layout
2396
2397 \end_inset
2398
2399  package is probably your choice.
2400  If you look for specific citation styles common in law studies, you might
2401  consider the 
2402 \begin_inset Flex Code
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406 jurabib
2407 \end_layout
2408
2409 \end_inset
2410
2411  package.
2412  If you want to have full control over the formatting or look for advanced
2413  features such as ibidem, footnote citations, full title citations, advanced
2414  date formats (such as 400 BC) or full localization to other languages than
2415  English, you should definitely consider 
2416 \begin_inset Flex Code
2417 status collapsed
2418
2419 \begin_layout Plain Layout
2420 biblatex
2421 \end_layout
2422
2423 \end_inset
2424
2425 , which exceeds all other packages in terms of features, but is also quite
2426  heavy and more resource-hungry.
2427 \end_layout
2428
2429 \begin_layout Standard
2430 The handling of these packages in \SpecialChar LyX
2431  is basically the same.
2432  Go to 
2433 \begin_inset Flex Noun
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Document\SpecialChar menuseparator
2438 Settings
2439 \end_layout
2440
2441 \end_inset
2442
2443  and select under 
2444 \begin_inset Flex Noun
2445 status collapsed
2446
2447 \begin_layout Plain Layout
2448 Bibliography
2449 \end_layout
2450
2451 \end_inset
2452
2453  the 
2454 \begin_inset Flex Noun
2455 status collapsed
2456
2457 \begin_layout Plain Layout
2458 Style Format
2459 \end_layout
2460
2461 \end_inset
2462
2463  
2464 \begin_inset Flex Noun
2465 status collapsed
2466
2467 \begin_layout Plain Layout
2468 Biblatex
2469 \end_layout
2470
2471 \end_inset
2472
2473
2474 \begin_inset Flex Noun
2475 status collapsed
2476
2477 \begin_layout Plain Layout
2478 Biblatex (Natbib mode)
2479 \end_layout
2480
2481 \end_inset
2482
2483
2484 \begin_inset Flex Noun
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 Natbib (BibTeX)
2489 \end_layout
2490
2491 \end_inset
2492
2493  or 
2494 \begin_inset Flex Noun
2495 status collapsed
2496
2497 \begin_layout Plain Layout
2498 Jurabib (BibTeX)
2499 \end_layout
2500
2501 \end_inset
2502
2503  (see sec.
2504 \begin_inset space ~
2505 \end_inset
2506
2507 6.5.3 in the User's Guide for more information on these choices).
2508  With all these packages, you will get some extra features in the citation
2509  dialog and you can select the style of the reference (
2510 \begin_inset Quotes eld
2511 \end_inset
2512
2513 Knuth 1984
2514 \begin_inset Quotes erd
2515 \end_inset
2516
2517
2518 \begin_inset Quotes eld
2519 \end_inset
2520
2521 Knuth (1984)
2522 \begin_inset Quotes erd
2523 \end_inset
2524
2525
2526 \begin_inset Quotes eld
2527 \end_inset
2528
2529 Knuth, 1984
2530 \begin_inset Quotes erd
2531 \end_inset
2532
2533
2534 \begin_inset Quotes eld
2535 \end_inset
2536
2537 1984
2538 \begin_inset Quotes erd
2539 \end_inset
2540
2541  etc.).
2542  Note that either package needs specifically designed style files.
2543  They all ship their own, but there are lots of additional style files,
2544  and there is even an interactive style file builder
2545 \begin_inset Foot
2546 status collapsed
2547
2548 \begin_layout Plain Layout
2549 See 
2550 \begin_inset Flex URL
2551 status open
2552
2553 \begin_layout Plain Layout
2554
2555 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2556 \end_layout
2557
2558 \end_inset
2559
2560
2561 \end_layout
2562
2563 \end_inset
2564
2565  for 
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 natbib
2571 \end_layout
2572
2573 \end_inset
2574
2575 .
2576 \end_layout
2577
2578 \begin_layout Subsection
2579 Subdivided Bibliographies
2580 \end_layout
2581
2582 \begin_layout Standard
2583 Sometimes you might need to divide your bibliography into several sections.
2584  If you are for instance a historian, the possibility to separate sources
2585  and scientific works is most likely a 
2586 \begin_inset Quotes eld
2587 \end_inset
2588
2589 must have
2590 \begin_inset Quotes erd
2591 \end_inset
2592
2593 .
2594  Unfortunately, Bib\SpecialChar TeX
2595  itself does not allow you to do this.
2596  But with the help of some \SpecialChar LaTeX
2597  packages, Bib\SpecialChar TeX
2598  can be extended to fit your needs.
2599 \end_layout
2600
2601 \begin_layout Standard
2602 \SpecialChar LyX
2603  provides native support for one of these packages, 
2604 \family typewriter
2605 bibtopic
2606 \family default
2607 .
2608 \begin_inset Foot
2609 status collapsed
2610
2611 \begin_layout Plain Layout
2612 Available from 
2613 \begin_inset Flex URL
2614 status open
2615
2616 \begin_layout Plain Layout
2617
2618 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2619 \end_layout
2620
2621 \end_inset
2622
2623
2624 \end_layout
2625
2626 \end_inset
2627
2628  The advantage of this package (compared to other packages such as 
2629 \family typewriter
2630 multibib
2631 \family default
2632 ) is that you don't need to define new citation commands.
2633  Instead, you need to prepare different bibliographic databases which include
2634  the entries for the different sections of the bibliography.
2635  For example: If you want to divide your bibliography into the sections
2636  
2637 \begin_inset Quotes eld
2638 \end_inset
2639
2640 Sources
2641 \begin_inset Quotes erd
2642 \end_inset
2643
2644  and 
2645 \begin_inset Quotes eld
2646 \end_inset
2647
2648 Scientific works
2649 \begin_inset Quotes erd
2650 \end_inset
2651
2652 , you first need to create two bibliographic databases, e.
2653 \begin_inset space \thinspace{}
2654 \end_inset
2655
2656 g.
2657 \begin_inset space \space{}
2658 \end_inset
2659
2660
2661 \begin_inset Flex Code
2662 status collapsed
2663
2664 \begin_layout Plain Layout
2665 sources.bib
2666 \end_layout
2667
2668 \end_inset
2669
2670  and 
2671 \begin_inset Flex Code
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 scientific.bib
2676 \end_layout
2677
2678 \end_inset
2679
2680 .
2681  
2682 \end_layout
2683
2684 \begin_layout Standard
2685 Go to 
2686 \begin_inset Flex Noun
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 Document\SpecialChar menuseparator
2691 Settings
2692 \end_layout
2693
2694 \end_inset
2695
2696  and check under 
2697 \begin_inset Flex Noun
2698 status collapsed
2699
2700 \begin_layout Plain Layout
2701 Bibliography
2702 \end_layout
2703
2704 \end_inset
2705
2706  the option 
2707 \begin_inset Flex Noun
2708 status collapsed
2709
2710 \begin_layout Plain Layout
2711 Subdivided bibliography
2712 \end_layout
2713
2714 \end_inset
2715
2716 .
2717  Now you can insert multiple Bib\SpecialChar TeX
2718  bibliographies, one for each section of
2719  your bibliography.
2720  Returning to our example: Insert the Bib\SpecialChar TeX
2721  bibliography 
2722 \begin_inset Flex Code
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 sources.bib
2727 \end_layout
2728
2729 \end_inset
2730
2731  and a second one for the database 
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 scientific.bib
2737 \end_layout
2738
2739 \end_inset
2740
2741 .
2742  You are free to use the same or different styles for each section.
2743  Additionally, you can choose if the bibliography section should contain
2744  
2745 \begin_inset Quotes eld
2746 \end_inset
2747
2748 all cited references
2749 \begin_inset Quotes erd
2750 \end_inset
2751
2752  of the specified database(s) (which is the default), 
2753 \begin_inset Quotes eld
2754 \end_inset
2755
2756 all uncited references
2757 \begin_inset Quotes erd
2758 \end_inset
2759
2760  or even 
2761 \begin_inset Quotes eld
2762 \end_inset
2763
2764 all references
2765 \begin_inset Quotes erd
2766 \end_inset
2767
2768 .
2769  This might be useful if you would like to separate your bibliography into
2770  three sections: 
2771 \begin_inset Quotes eld
2772 \end_inset
2773
2774 Cited sources
2775 \begin_inset Quotes erd
2776 \end_inset
2777
2778
2779 \begin_inset Quotes eld
2780 \end_inset
2781
2782 Uncited sources
2783 \begin_inset Quotes erd
2784 \end_inset
2785
2786 , and 
2787 \begin_inset Quotes eld
2788 \end_inset
2789
2790 Scientific works
2791 \begin_inset Quotes erd
2792 \end_inset
2793
2794 .
2795  The titles for the sections can be added as ordinary sections or subsections.
2796  Since 
2797 \begin_inset Flex Code
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801 bibtopic
2802 \end_layout
2803
2804 \end_inset
2805
2806  removes the bibliography title, you have to manually re-add that, too (as
2807  a chapter* or section*, for instance).
2808 \end_layout
2809
2810 \begin_layout Standard
2811 With 
2812 \family sans
2813 Biblatex
2814 \family default
2815 , the procedure is a bit different.
2816  Since 
2817 \family typewriter
2818 bibtopic
2819 \family default
2820  does not work with 
2821 \family sans
2822 Biblatex
2823 \family default
2824 , the aforementioned 
2825 \begin_inset Flex Noun
2826 status collapsed
2827
2828 \begin_layout Plain Layout
2829 Subdivided bibliography
2830 \end_layout
2831
2832 \end_inset
2833
2834  option is disabled if you use 
2835 \family sans
2836 Biblatex
2837 \family default
2838 .
2839  However, 
2840 \family sans
2841 Biblatex
2842 \family default
2843  provides its own means to generate subdivided bibliographies.
2844  You can either add keywords to bibliography entries via the 
2845 \begin_inset Flex Code
2846 status collapsed
2847
2848 \begin_layout Plain Layout
2849 keywords
2850 \end_layout
2851
2852 \end_inset
2853
2854  entry option and then filter bibliography sections by keyword (by adding
2855  
2856 \begin_inset Flex Code
2857 status collapsed
2858
2859 \begin_layout Plain Layout
2860 keyword=mykeyword
2861 \end_layout
2862
2863 \end_inset
2864
2865  to the 
2866 \begin_inset Flex Noun
2867 status collapsed
2868
2869 \begin_layout Plain Layout
2870 Options
2871 \end_layout
2872
2873 \end_inset
2874
2875  field of the dialog that opens if you right-click on the 
2876 \begin_inset Flex Noun
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 Biblatex Generated Bibliography
2881 \end_layout
2882
2883 \end_inset
2884
2885  button), or you can filter by entry types (such as 
2886 \emph on
2887 book
2888 \emph default
2889  or 
2890 \emph on
2891 article
2892 \emph default
2893 ) by entering e.
2894 \begin_inset space \thinspace{}
2895 \end_inset
2896
2897 g.
2898  
2899 \begin_inset Flex Code
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 type=book
2904 \end_layout
2905
2906 \end_inset
2907
2908  or 
2909 \begin_inset Flex Code
2910 status collapsed
2911
2912 \begin_layout Plain Layout
2913 nottype=collection
2914 \end_layout
2915
2916 \end_inset
2917
2918  to the mentioned 
2919 \begin_inset Flex Noun
2920 status collapsed
2921
2922 \begin_layout Plain Layout
2923 Options
2924 \end_layout
2925
2926 \end_inset
2927
2928  field, or you can create so-called 
2929 \begin_inset Quotes eld
2930 \end_inset
2931
2932 Bibliography Categories
2933 \begin_inset Quotes erd
2934 \end_inset
2935
2936  to which you can assign individual entries.
2937  Please refer to the Biblatex manual, section 
2938 \emph on
2939 Subdivided Bibliographies
2940 \emph default
2941 , for details.
2942 \end_layout
2943
2944 \begin_layout Subsection
2945 Multiple Bibliographies
2946 \begin_inset CommandInset label
2947 LatexCommand label
2948 name "subsec:Multiple-Bibliographies"
2949
2950 \end_inset
2951
2952
2953 \end_layout
2954
2955 \begin_layout Standard
2956 Multiple bibliographies, e.
2957 \begin_inset space \thinspace{}
2958 \end_inset
2959
2960 g.
2961 \begin_inset space \space{}
2962 \end_inset
2963
2964 a bibliography for each part, chapter, section, subsection or child (sub-documen
2965 t) of the document, are also supported by \SpecialChar LyX
2966 .
2967  In order to enable it, go to 
2968 \begin_inset Flex Noun
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972 Document\SpecialChar menuseparator
2973 Settings\SpecialChar menuseparator
2974 Bibliography
2975 \end_layout
2976
2977 \end_inset
2978
2979  and select the relevant unit (e.
2980 \begin_inset space \thinspace{}
2981 \end_inset
2982
2983 g., 
2984 \begin_inset Quotes eld
2985 \end_inset
2986
2987 per section
2988 \begin_inset Quotes erd
2989 \end_inset
2990
2991 ) in the 
2992 \begin_inset Flex Noun
2993 status collapsed
2994
2995 \begin_layout Plain Layout
2996 Multiple Bibliographies
2997 \end_layout
2998
2999 \end_inset
3000
3001  combo box.
3002  Then add a Bib(la)\SpecialChar TeX
3003  bibliography to each unit (e.
3004 \begin_inset space \thinspace{}
3005 \end_inset
3006
3007 g., section) of your document.
3008  In the output, a separate bibliography, containing only the references
3009  done in the current unit is generated.
3010 \end_layout
3011
3012 \begin_layout Standard
3013 If you use Bib\SpecialChar TeX
3014 , either the 
3015 \begin_inset Flex Code
3016 status collapsed
3017
3018 \begin_layout Plain Layout
3019 chapterbib
3020 \end_layout
3021
3022 \end_inset
3023
3024  or the 
3025 \begin_inset Flex Code
3026 status collapsed
3027
3028 \begin_layout Plain Layout
3029 bibtopic
3030 \end_layout
3031
3032 \end_inset
3033
3034  package is used to create multiple bibliographies.
3035  The former package is used if you select 
3036 \begin_inset Quotes eld
3037 \end_inset
3038
3039 per child document
3040 \begin_inset Quotes erd
3041 \end_inset
3042
3043  and do 
3044 \emph on
3045 not
3046 \emph default
3047  check 
3048 \begin_inset Flex Noun
3049 status collapsed
3050
3051 \begin_layout Plain Layout
3052 Sectioned Bibliography
3053 \end_layout
3054
3055 \end_inset
3056
3057 .
3058  In all other cases, 
3059 \begin_inset Flex Code
3060 status collapsed
3061
3062 \begin_layout Plain Layout
3063 bibtopic
3064 \end_layout
3065
3066 \end_inset
3067
3068  is used.
3069 \begin_inset Foot
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 An alternative approach, if you are willing to use some 
3074 \begin_inset Flex Noun
3075 status collapsed
3076
3077 \begin_layout Plain Layout
3078 \SpecialChar TeX
3079  Code
3080 \end_layout
3081
3082 \end_inset
3083
3084  (see section
3085 \begin_inset space ~
3086 \end_inset
3087
3088
3089 \begin_inset CommandInset ref
3090 LatexCommand ref
3091 reference "sec:Inserting-TeX-Code"
3092
3093 \end_inset
3094
3095 ), is to use the 
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 bibunits
3101 \end_layout
3102
3103 \end_inset
3104
3105  package.
3106 \end_layout
3107
3108 \end_inset
3109
3110  If 
3111 \begin_inset Flex Code
3112 status collapsed
3113
3114 \begin_layout Plain Layout
3115 bibtopic
3116 \end_layout
3117
3118 \end_inset
3119
3120  is used, \SpecialChar LyX
3121  encloses the specified units in 
3122 \begin_inset Flex Code
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 bibtopic
3127 \end_layout
3128
3129 \end_inset
3130
3131 's 
3132 \begin_inset Flex Code
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136
3137 \backslash
3138 begin{btUnit}
3139 \end_layout
3140
3141 \end_inset
3142
3143  and 
3144 \begin_inset Flex Code
3145 status collapsed
3146
3147 \begin_layout Plain Layout
3148
3149 \backslash
3150 end{btUnit}
3151 \end_layout
3152
3153 \end_inset
3154
3155  in order to create the units.
3156  Note that this approach has some limitations.
3157  First, every citation reference has to be inside some 
3158 \begin_inset Flex Code
3159 status collapsed
3160
3161 \begin_layout Plain Layout
3162 btUnit
3163 \end_layout
3164
3165 \end_inset
3166
3167 .
3168  So citations outside a defined unit (e.
3169 \begin_inset space \thinspace{}
3170 \end_inset
3171
3172 g., before the first section if you use 
3173 \begin_inset Quotes eld
3174 \end_inset
3175
3176 by section
3177 \begin_inset Quotes erd
3178 \end_inset
3179
3180 ) will appear as 
3181 \begin_inset Quotes eld
3182 \end_inset
3183
3184 ???
3185 \begin_inset Quotes erd
3186 \end_inset
3187
3188 .
3189  You can also create your own units by entering 
3190 \begin_inset Flex Code
3191 status collapsed
3192
3193 \begin_layout Plain Layout
3194
3195 \backslash
3196 begin{btUnit}
3197 \end_layout
3198
3199 \end_inset
3200
3201  and 
3202 \begin_inset Flex Code
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206
3207 \backslash
3208 end{btUnit}
3209 \end_layout
3210
3211 \end_inset
3212
3213  as \SpecialChar TeX
3214  code (for instance to work around the mentioned limitation).
3215  Note, though, that 
3216 \begin_inset Flex Code
3217 status collapsed
3218
3219 \begin_layout Plain Layout
3220 btUnit
3221 \end_layout
3222
3223 \end_inset
3224
3225 s cannot be nested.
3226  A second limitation is that 
3227 \begin_inset Flex Code
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 bibtopic
3232 \end_layout
3233
3234 \end_inset
3235
3236  always processes all references of a bibliography database, even if they
3237  are not cited.
3238  This can result in odd labels (e.
3239 \begin_inset space \thinspace{}
3240 \end_inset
3241
3242 g.
3243  
3244 \begin_inset Quotes eld
3245 \end_inset
3246
3247 Miller 2014b
3248 \begin_inset Quotes erd
3249 \end_inset
3250
3251  if two works of this author from 2014 are in the database, even if only
3252  one is cited).
3253 \end_layout
3254
3255 \begin_layout Standard
3256 If you use 
3257 \family sans
3258 Biblatex
3259 \family default
3260 , the 
3261 \begin_inset Flex Code
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265 refsection
3266 \end_layout
3267
3268 \end_inset
3269
3270  option is used instead.
3271  If you need specific units, you can start them with the \SpecialChar TeX
3272  code 
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277
3278 \backslash
3279 newrefsection
3280 \end_layout
3281
3282 \end_inset
3283
3284  or 
3285 \begin_inset Flex Code
3286 status collapsed
3287
3288 \begin_layout Plain Layout
3289
3290 \backslash
3291 newrefsegment
3292 \end_layout
3293
3294 \end_inset
3295
3296 , respectively.
3297  If you also want to control the end of the unit, use the environment 
3298 \begin_inset Flex Code
3299 status collapsed
3300
3301 \begin_layout Plain Layout
3302
3303 \backslash
3304 begin{refsection}
3305 \end_layout
3306
3307 \end_inset
3308
3309  \SpecialChar ldots
3310  
3311 \begin_inset Flex Code
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315
3316 \backslash
3317 end{refsection}
3318 \end_layout
3319
3320 \end_inset
3321
3322  instead.
3323  Note, though, that 
3324 \begin_inset Flex Code
3325 status collapsed
3326
3327 \begin_layout Plain Layout
3328 refsection
3329 \end_layout
3330
3331 \end_inset
3332
3333 s cannot be nested.
3334  In addition to the individual bibliography of the current unit, 
3335 \family sans
3336 Biblatex
3337 \family default
3338  also provides an easy way to output all bibliographies, subsequently, at
3339  one place (e.
3340 \begin_inset space \thinspace{}
3341 \end_inset
3342
3343 g., at the end of the document).
3344  Select 
3345 \begin_inset Quotes eld
3346 \end_inset
3347
3348 all reference units
3349 \begin_inset Quotes erd
3350 \end_inset
3351
3352  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3353  this.
3354  Please refer to the 
3355 \family sans
3356 Biblatex
3357 \family default
3358  manual for more information on this topic.
3359 \end_layout
3360
3361 \begin_layout Section
3362 Multipart Documents
3363 \end_layout
3364
3365 \begin_layout Subsection
3366 General Operation
3367 \end_layout
3368
3369 \begin_layout Standard
3370 When you are working on a large file with many sections, it is often convenient
3371  to break up the document into several files, or perhaps you have something
3372  where a table may change from time to time, but the preceding text does
3373  not.
3374  In these cases, you should seriously consider using multipart documents.
3375  For example, scientific papers often have five major sections: the introduction
3376 , observations, results, discussion, and conclusion.
3377  Each of these could be its own separate \SpecialChar LyX
3378  file, with one 
3379 \begin_inset Quotes eld
3380 \end_inset
3381
3382 master
3383 \begin_inset Quotes erd
3384 \end_inset
3385
3386  file which contains the title, authors, abstract, references, etc., plus
3387  the five included files.
3388  It is important to note that each of these files is a full \SpecialChar LyX
3389  file which
3390  can be formatted and printed on its own, as well as included in a master
3391  file.
3392  Each of these files must have the same document class, however—don't attempt
3393  to mix book classes with article classes.
3394  You may also include \SpecialChar LaTeX
3395  files; however, these files must not have their own
3396  preamble (i.
3397 \begin_inset space \thinspace{}
3398 \end_inset
3399
3400 e.
3401 \begin_inset space \space{}
3402 \end_inset
3403
3404 everything up to and including the 
3405 \begin_inset Flex Code
3406 status collapsed
3407
3408 \begin_layout Plain Layout
3409
3410 \backslash
3411 begin{document}
3412 \end_layout
3413
3414 \end_inset
3415
3416  line as well as the 
3417 \begin_inset Flex Code
3418 status collapsed
3419
3420 \begin_layout Plain Layout
3421
3422 \backslash
3423 end{document}
3424 \end_layout
3425
3426 \end_inset
3427
3428  line must be deleted) or else errors will be generated when you try to
3429  make a DVI file.
3430 \end_layout
3431
3432 \begin_layout Standard
3433 \SpecialChar LyX
3434  allows you to include files quite easily with 
3435 \begin_inset Flex Noun
3436 status collapsed
3437
3438 \begin_layout Plain Layout
3439 Insert\SpecialChar menuseparator
3440 Child
3441 \begin_inset space ~
3442 \end_inset
3443
3444 Document
3445 \end_layout
3446
3447 \end_inset
3448
3449 .
3450  When you click on this selection a small box is inserted into the file
3451  at the current cursor location.
3452  Clicking on the box raises a dialog which allows you to select the file
3453  to be included, and the method of its inclusion.
3454  
3455 \end_layout
3456
3457 \begin_layout Standard
3458 The file selection box should by now be obvious.
3459  The three inclusion methods are 
3460 \begin_inset Quotes eld
3461 \end_inset
3462
3463 include
3464 \begin_inset Quotes erd
3465 \end_inset
3466
3467
3468 \begin_inset Quotes eld
3469 \end_inset
3470
3471 input
3472 \begin_inset Quotes erd
3473 \end_inset
3474
3475 , and 
3476 \begin_inset Quotes eld
3477 \end_inset
3478
3479 verbatim
3480 \begin_inset Quotes erd
3481 \end_inset
3482
3483 .
3484  The methods 
3485 \begin_inset Quotes eld
3486 \end_inset
3487
3488 include
3489 \begin_inset Quotes erd
3490 \end_inset
3491
3492  and 
3493 \begin_inset Quotes eld
3494 \end_inset
3495
3496 input
3497 \begin_inset Quotes erd
3498 \end_inset
3499
3500  are similar in many ways, but there are also some notable differences:
3501 \end_layout
3502
3503 \begin_layout Enumerate
3504 Files that are 
3505 \begin_inset Quotes eld
3506 \end_inset
3507
3508 included
3509 \begin_inset Quotes erd
3510 \end_inset
3511
3512  are typeset beginning on a new page, while files that are 
3513 \begin_inset Quotes eld
3514 \end_inset
3515
3516 inputted
3517 \begin_inset Quotes erd
3518 \end_inset
3519
3520  are typeset starting on the current page.
3521 \end_layout
3522
3523 \begin_layout Enumerate
3524 \begin_inset Quotes eld
3525 \end_inset
3526
3527 Included
3528 \begin_inset Quotes erd
3529 \end_inset
3530
3531  files cannot themselves 
3532 \begin_inset Quotes eld
3533 \end_inset
3534
3535 include
3536 \begin_inset Quotes erd
3537 \end_inset
3538
3539  further files (
3540 \begin_inset Quotes eld
3541 \end_inset
3542
3543 grandchilds
3544 \begin_inset Quotes erd
3545 \end_inset
3546
3547 ).
3548  With 
3549 \begin_inset Quotes eld
3550 \end_inset
3551
3552 input
3553 \begin_inset Quotes erd
3554 \end_inset
3555
3556 , on the other hand, infinite sub-inputting is possible.
3557 \end_layout
3558
3559 \begin_layout Enumerate
3560 \begin_inset Quotes eld
3561 \end_inset
3562
3563 Include
3564 \begin_inset Quotes erd
3565 \end_inset
3566
3567  allow for the output of only selected 
3568 \begin_inset Quotes eld
3569 \end_inset
3570
3571 included
3572 \begin_inset Quotes erd
3573 \end_inset
3574
3575  files, while maintaining the actual counters (pagination etc.) and references
3576  (please refer to the section 
3577 \emph on
3578 Child
3579 \begin_inset space ~
3580 \end_inset
3581
3582 Documents
3583 \emph default
3584  of the 
3585 \emph on
3586 Embedded
3587 \begin_inset space ~
3588 \end_inset
3589
3590 Objects
3591 \emph default
3592  manual for details).
3593 \end_layout
3594
3595 \begin_layout Standard
3596 Hence, 
3597 \begin_inset Quotes eld
3598 \end_inset
3599
3600 include
3601 \begin_inset Quotes erd
3602 \end_inset
3603
3604  is the preferred method for chapters that are outsourced to child documents,
3605  while 
3606 \begin_inset Quotes eld
3607 \end_inset
3608
3609 input
3610 \begin_inset Quotes erd
3611 \end_inset
3612
3613  is more suitable for arbitrary file inheritance.
3614 \end_layout
3615
3616 \begin_layout Standard
3617
3618 \begin_inset Quotes eld
3619 \end_inset
3620
3621 verbatim
3622 \begin_inset Quotes erd
3623 \end_inset
3624
3625  included file allows you to include a file typeset exactly as it appears
3626  in the file, i.
3627 \begin_inset space \thinspace{}
3628 \end_inset
3629
3630 e.
3631 \begin_inset space \space{}
3632 \end_inset
3633
3634 in 
3635 \begin_inset Flex Code
3636 status collapsed
3637
3638 \begin_layout Plain Layout
3639 verbatim
3640 \end_layout
3641
3642 \end_inset
3643
3644  mode, with the characters set in a fixed-width typewriter font.
3645  Normally, spaces in this file are invisible, though two consecutive spaces
3646  are conserved, unlike \SpecialChar LyX
3647 's normal treatment of spaces.
3648  However, setting the 
3649 \begin_inset Flex Noun
3650 status collapsed
3651
3652 \begin_layout Plain Layout
3653 Mark
3654 \begin_inset space ~
3655 \end_inset
3656
3657 spaces
3658 \begin_inset space ~
3659 \end_inset
3660
3661 in
3662 \begin_inset space ~
3663 \end_inset
3664
3665 output
3666 \end_layout
3667
3668 \end_inset
3669
3670  checkbox typesets a mark to unambiguously define the presence of a space.
3671  
3672 \end_layout
3673
3674 \begin_layout Standard
3675 Generally, the master file is converted into a full \SpecialChar LaTeX
3676  file before typesetting,
3677  while the included files are converted to \SpecialChar LaTeX
3678  files that do not have all the
3679  preamble information.
3680 \end_layout
3681
3682 \begin_layout Subsection
3683 Cross-References Between Files
3684 \end_layout
3685
3686 \begin_layout Standard
3687 \begin_inset Box Shadowbox
3688 position "t"
3689 hor_pos "c"
3690 has_inner_box 1
3691 inner_pos "t"
3692 use_parbox 0
3693 use_makebox 0
3694 width "100col%"
3695 special "none"
3696 height "1in"
3697 height_special "totalheight"
3698 thickness "0.4pt"
3699 separation "3pt"
3700 shadowsize "4pt"
3701 framecolor "black"
3702 backgroundcolor "none"
3703 status open
3704
3705 \begin_layout Plain Layout
3706 This section is somewhat out of date.
3707  Need to describe default master documents and how children are opened when
3708  the master is.
3709  [[FIXME]]
3710 \end_layout
3711
3712 \end_inset
3713
3714
3715 \end_layout
3716
3717 \begin_layout Standard
3718 It is possible to set up cross-references between the different files.
3719  First, open all the files in question: let's call them A and B in a two
3720  file example, where B is included in A.
3721  Let's say you insert a label in A, then want to reference it in B.
3722  Open the cross-reference dialog whilst in document B, and you can select
3723  the 
3724 \begin_inset Quotes eld
3725 \end_inset
3726
3727 buffer
3728 \begin_inset Quotes erd
3729 \end_inset
3730
3731  to use.
3732 \end_layout
3733
3734 \begin_layout Subsection
3735 Bibliography Lists in all Subdocuments
3736 \end_layout
3737
3738 \begin_layout Standard
3739 If you work with child documents, you might want to have only one main bibliogra
3740 phy at the end, but still be able to have a selected bibliography for the
3741  child if you output it on its own.
3742  Here is how to achieve this.
3743 \end_layout
3744
3745 \begin_layout Standard
3746 For the main document, you just insert a bibliography inset at the place
3747  where the main bibliography has to appear (within the master file or within
3748  a child).
3749  If the bibliography inset is in the master file, the references will be
3750  inherited by all children, so they are available in the citation dialog
3751  within each child.
3752 \end_layout
3753
3754 \begin_layout Standard
3755 For child-specific bibliographies, insert bibliography insets within the
3756  child documents, at the place where the bibliography should appear when
3757  the child is compiled separately.
3758  However, the trick is to insert them into a branch (
3759 \family sans
3760 Insert\SpecialChar menuseparator
3761 Branch\SpecialChar menuseparator
3762 Insert New Branch...
3763 \family default
3764 ), e.
3765 \begin_inset space \thinspace{}
3766 \end_inset
3767
3768 g.
3769  called 
3770 \begin_inset Quotes eld
3771 \end_inset
3772
3773 Childonly
3774 \begin_inset Quotes erd
3775 \end_inset
3776
3777 .
3778  Within the children, activate the branch (
3779 \family sans
3780 Document\SpecialChar menuseparator
3781 Settings...\SpecialChar menuseparator
3782 Branches
3783 \family default
3784 ).
3785  Within the master, deactivate the branch (
3786 \family sans
3787 Document\SpecialChar menuseparator
3788 Settings...\SpecialChar menuseparator
3789 Branches
3790 \family default
3791 ).
3792  Now the child's bibliography will be ignored by the master, but considered
3793  by the child.
3794 \end_layout
3795
3796 \begin_layout Standard
3797 If you need multiple bibliographies (e.
3798 \begin_inset space \thinspace{}
3799 \end_inset
3800
3801 g., one per child in the 
3802 \emph on
3803 main document
3804 \emph default
3805 ), please refer to sec.
3806 \begin_inset space ~
3807 \end_inset
3808
3809
3810 \begin_inset CommandInset ref
3811 LatexCommand ref
3812 reference "subsec:Multiple-Bibliographies"
3813
3814 \end_inset
3815
3816 .
3817 \end_layout
3818
3819 \begin_layout Section
3820 \SpecialChar LyX
3821  Archives
3822 \end_layout
3823
3824 \begin_layout Standard
3825 Users sometimes need to be able to 
3826 \begin_inset Quotes eld
3827 \end_inset
3828
3829 bundle
3830 \begin_inset Quotes erd
3831 \end_inset
3832
3833  a \SpecialChar LyX
3834  file together with all the images (and other files) on which it depends,
3835  either for sending to a publisher or for sharing with a co-author.
3836  \SpecialChar LyX
3837  includes a Python script (
3838 \begin_inset Flex Code
3839 status collapsed
3840
3841 \begin_layout Plain Layout
3842 lyxpak.py
3843 \end_layout
3844
3845 \end_inset
3846
3847 ) that automates this process.
3848  To use it, you must have either the 
3849 \begin_inset Flex Code
3850 status collapsed
3851
3852 \begin_layout Plain Layout
3853 zipfile
3854 \end_layout
3855
3856 \end_inset
3857
3858  or 
3859 \begin_inset Flex Code
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863 tarfile
3864 \end_layout
3865
3866 \end_inset
3867
3868  python modules installed on your system.
3869  By default, the script prefers the 
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874 gzip
3875 \end_layout
3876
3877 \end_inset
3878
3879 -compressed 
3880 \begin_inset Flex Code
3881 status collapsed
3882
3883 \begin_layout Plain Layout
3884 tar
3885 \end_layout
3886
3887 \end_inset
3888
3889  format on Unix-like systems and the 
3890 \begin_inset Flex Code
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 zip
3895 \end_layout
3896
3897 \end_inset
3898
3899  format on Windows.
3900 \end_layout
3901
3902 \begin_layout Standard
3903 \SpecialChar LyX
3904 's configuration process will set the script up to export a `\SpecialChar LyX
3905  Archive',
3906  and this format will then be available under 
3907 \begin_inset Flex Code
3908 status collapsed
3909
3910 \begin_layout Plain Layout
3911 File\SpecialChar menuseparator
3912 Export
3913 \end_layout
3914
3915 \end_inset
3916
3917 .
3918 \end_layout
3919
3920 \begin_layout Standard
3921 Independently of the platform, the generation of a particular archive format
3922  can be forced by adding either the 
3923 \begin_inset Flex Code
3924 status collapsed
3925
3926 \begin_layout Plain Layout
3927 -t
3928 \end_layout
3929
3930 \end_inset
3931
3932  (for the 
3933 \begin_inset Flex Code
3934 status collapsed
3935
3936 \begin_layout Plain Layout
3937 tar
3938 \end_layout
3939
3940 \end_inset
3941
3942  format) or 
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 -z
3948 \end_layout
3949
3950 \end_inset
3951
3952  (for the 
3953 \begin_inset Flex Code
3954 status collapsed
3955
3956 \begin_layout Plain Layout
3957 zip
3958 \end_layout
3959
3960 \end_inset
3961
3962  format) switch to the 
3963 \begin_inset Flex Code
3964 status collapsed
3965
3966 \begin_layout Plain Layout
3967 \SpecialChar LyX
3968 \SpecialChar menuseparator
3969 \SpecialChar LyX
3970  Archive
3971 \end_layout
3972
3973 \end_inset
3974
3975  converter in 
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980 Tools\SpecialChar menuseparator
3981 Preferences\SpecialChar menuseparator
3982 File Handling\SpecialChar menuseparator
3983 Converters
3984 \end_layout
3985
3986 \end_inset
3987
3988 .
3989  (Make sure you add the switch after the script name, not before it.)
3990 \end_layout
3991
3992 \begin_layout Section
3993 Fancy Headers and Footers
3994 \end_layout
3995
3996 \begin_layout Standard
3997 The default page layout is rather plain; for an 
3998 \begin_inset Flex Code
3999 status collapsed
4000
4001 \begin_layout Plain Layout
4002 article
4003 \end_layout
4004
4005 \end_inset
4006
4007  document class, all you get is a centered page number at the bottom of
4008  the page.
4009  This document uses KOMA-script's book class, so it appears to be a bit
4010  fancier.
4011  But to really put on a show, you need to set the document page style to
4012  
4013 \begin_inset Quotes eld
4014 \end_inset
4015
4016 fancy
4017 \begin_inset Quotes erd
4018 \end_inset
4019
4020 , as mentioned in the 
4021 \emph on
4022 User Guide
4023 \emph default
4024 .
4025  This section describes the \SpecialChar LaTeX
4026  code you need to insert in your \SpecialChar LaTeX
4027  preamble in
4028  order to get the desired effects.
4029 \end_layout
4030
4031 \begin_layout Standard
4032 For more information on fancy headers, see the 
4033 \begin_inset Flex Code
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037 fancyhdr
4038 \end_layout
4039
4040 \end_inset
4041
4042  package documentation.
4043  (
4044 \begin_inset Flex URL
4045 status collapsed
4046
4047 \begin_layout Plain Layout
4048
4049 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4050 \end_layout
4051
4052 \end_inset
4053
4054 )
4055 \end_layout
4056
4057 \begin_layout Standard
4058 The page header is divided into three fields, not surprisingly labeled 
4059 \begin_inset Quotes eld
4060 \end_inset
4061
4062 left
4063 \begin_inset Quotes erd
4064 \end_inset
4065
4066
4067 \begin_inset Quotes eld
4068 \end_inset
4069
4070 center
4071 \begin_inset Quotes erd
4072 \end_inset
4073
4074 , and 
4075 \begin_inset Quotes eld
4076 \end_inset
4077
4078 right
4079 \begin_inset Quotes erd
4080 \end_inset
4081
4082 .
4083  The footer is also divided into these three fields.
4084  The \SpecialChar LaTeX
4085  commands to set these fields in the simplest manner are 
4086 \begin_inset Flex Code
4087 status collapsed
4088
4089 \begin_layout Plain Layout
4090
4091 \backslash
4092 lhead
4093 \end_layout
4094
4095 \end_inset
4096
4097
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102
4103 \backslash
4104 chead
4105 \end_layout
4106
4107 \end_inset
4108
4109
4110 \begin_inset Flex Code
4111 status collapsed
4112
4113 \begin_layout Plain Layout
4114
4115 \backslash
4116 rhead
4117 \end_layout
4118
4119 \end_inset
4120
4121
4122 \begin_inset Flex Code
4123 status collapsed
4124
4125 \begin_layout Plain Layout
4126
4127 \backslash
4128 lfoot
4129 \end_layout
4130
4131 \end_inset
4132
4133 , etc.
4134  Suppose you wish to put your name in the upper left hand corner of each
4135  page.
4136  Simply insert the following command in the preamble: 
4137 \end_layout
4138
4139 \begin_layout Standard
4140
4141 \family typewriter
4142
4143 \backslash
4144 lhead{John Q.
4145  DocWriter}
4146 \end_layout
4147
4148 \begin_layout Standard
4149 You will now see your name in the upper left.
4150  If a field has a default entry that you would like to get rid of (often
4151  the page number appears in the central footer) simply include a command
4152  with a blank argument, e.
4153 \begin_inset space \thinspace{}
4154 \end_inset
4155
4156 g.:
4157 \end_layout
4158
4159 \begin_layout Standard
4160
4161 \family typewriter
4162
4163 \backslash
4164 cfoot{}
4165 \end_layout
4166
4167 \begin_layout Standard
4168 Let's get really fancy: lets put the section number with the word 
4169 \begin_inset Quotes eld
4170 \end_inset
4171
4172 Section
4173 \begin_inset Quotes erd
4174 \end_inset
4175
4176  (e.
4177 \begin_inset space \thinspace{}
4178 \end_inset
4179
4180 g.
4181 \begin_inset space \space{}
4182 \end_inset
4183
4184 Section 3) in the upper left, the page number (e.
4185 \begin_inset space \thinspace{}
4186 \end_inset
4187
4188 g.
4189 \begin_inset space \space{}
4190 \end_inset
4191
4192 Page 4) in the upper right, your name in the lower left, and the date in
4193  the lower right.
4194  The following commands should now appear in the preamble:
4195 \end_layout
4196
4197 \begin_layout Standard
4198
4199 \family typewriter
4200
4201 \backslash
4202 lhead{Section 
4203 \backslash
4204 thesection}
4205 \end_layout
4206
4207 \begin_layout Standard
4208
4209 \family typewriter
4210
4211 \backslash
4212 chead{}
4213 \end_layout
4214
4215 \begin_layout Standard
4216
4217 \family typewriter
4218
4219 \backslash
4220 rhead{Page 
4221 \backslash
4222 thepage}
4223 \end_layout
4224
4225 \begin_layout Standard
4226
4227 \family typewriter
4228
4229 \backslash
4230 lfoot{John Q.
4231  DocWriter}
4232 \end_layout
4233
4234 \begin_layout Standard
4235
4236 \family typewriter
4237
4238 \backslash
4239 cfoot{}
4240 \end_layout
4241
4242 \begin_layout Standard
4243
4244 \family typewriter
4245
4246 \backslash
4247 rfoot{
4248 \backslash
4249 today}
4250 \end_layout
4251
4252 \begin_layout Standard
4253 The commands 
4254 \begin_inset Flex Code
4255 status collapsed
4256
4257 \begin_layout Plain Layout
4258
4259 \backslash
4260 thesection
4261 \end_layout
4262
4263 \end_inset
4264
4265  and 
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270
4271 \backslash
4272 thepage
4273 \end_layout
4274
4275 \end_inset
4276
4277  access \SpecialChar LaTeX
4278 's section and page counters, and so print out the current section
4279  and page numbers.
4280  
4281 \begin_inset Flex Code
4282 status collapsed
4283
4284 \begin_layout Plain Layout
4285
4286 \backslash
4287 today
4288 \end_layout
4289
4290 \end_inset
4291
4292  simply prints out today's date.
4293 \end_layout
4294
4295 \begin_layout Standard
4296 The thicknesses of the horizontal rules drawn beneath the header and above
4297  the footer can also be modified.
4298  If you don't want one of the rules, set its thickness to 0.
4299  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4300  Use commands
4301 \family typewriter
4302  
4303 \family default
4304 like 
4305 \begin_inset Flex Code
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309
4310 \backslash
4311 renewcommand{
4312 \backslash
4313 headrulewidth}{0.4pt}
4314 \end_layout
4315
4316 \end_inset
4317
4318  and 
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323
4324 \backslash
4325 renewcommand{
4326 \backslash
4327 footrulewidth}{0.4pt}
4328 \end_layout
4329
4330 \end_inset
4331
4332  to set the thicknesses.
4333 \end_layout
4334
4335 \begin_layout Standard
4336 You can switch the header/footer settings on and off for individual pages
4337  using commands like 
4338 \begin_inset Flex Code
4339 status collapsed
4340
4341 \begin_layout Plain Layout
4342
4343 \backslash
4344 thispagestyle{empty}
4345 \end_layout
4346
4347 \end_inset
4348
4349
4350 \begin_inset Flex Code
4351 status collapsed
4352
4353 \begin_layout Plain Layout
4354
4355 \backslash
4356 thispagestyle{plain}
4357 \end_layout
4358
4359 \end_inset
4360
4361 , and 
4362 \begin_inset Flex Code
4363 status collapsed
4364
4365 \begin_layout Plain Layout
4366
4367 \backslash
4368 thispagestyle{fancy}
4369 \end_layout
4370
4371 \end_inset
4372
4373 .
4374  Simply insert them in the text on the page you want changed and mark them
4375  as \SpecialChar TeX
4376  code.
4377  In fact, title pages are marked as plain by default, while following pages
4378  are marked fancy when using the global fancy setting.
4379 \end_layout
4380
4381 \begin_layout Standard
4382 As a final example, it is possible to include an image in the header or
4383  footer.
4384  Suppose you want to put a company logo in the upper lefthand corner.
4385  You might try something like
4386 \end_layout
4387
4388 \begin_layout Standard
4389
4390 \family typewriter
4391
4392 \backslash
4393 lhead{
4394 \backslash
4395 resizebox{1in}{!}{
4396 \backslash
4397 includegraphics{logo.eps}}}
4398 \end_layout
4399
4400 \begin_layout Standard
4401 \noindent
4402 (you may need to preface this with 
4403 \begin_inset Flex Code
4404 status collapsed
4405
4406 \begin_layout Plain Layout
4407 \noindent
4408
4409 \backslash
4410 usepackage{graphics}
4411 \end_layout
4412
4413 \end_inset
4414
4415  if you don't include graphics elsewhere in your document).
4416 \end_layout
4417
4418 \begin_layout Section
4419 Itemize Bullet Selection
4420 \begin_inset CommandInset label
4421 LatexCommand label
4422 name "sec:bullet"
4423
4424 \end_inset
4425
4426
4427 \end_layout
4428
4429 \begin_layout Standard
4430 by
4431 \noun on
4432  Allan Rae
4433 \end_layout
4434
4435 \begin_layout Subsection
4436 Introduction
4437 \end_layout
4438
4439 \begin_layout Standard
4440 \SpecialChar LyX
4441  provides 216 bullet shapes that can be accessed from a simple dialog.
4442  Using this dialog you can easily specify what bullet shape to use at each
4443  level of an itemized list.
4444  These settings are document-wide so you won't be able to specify different
4445  sets of bullets for different paragraphs.
4446 \begin_inset Foot
4447 status collapsed
4448
4449 \begin_layout Plain Layout
4450 Well, actually you can but you'll have to do it by hand.
4451 \end_layout
4452
4453 \end_inset
4454
4455
4456 \end_layout
4457
4458 \begin_layout Subsection
4459 How it looks
4460 \end_layout
4461
4462 \begin_layout Standard
4463 Open the dialog by selecting the 
4464 \begin_inset Flex Noun
4465 status collapsed
4466
4467 \begin_layout Plain Layout
4468 Document\SpecialChar menuseparator
4469 Settings
4470 \end_layout
4471
4472 \end_inset
4473
4474  menu item and then select the 
4475 \begin_inset Flex Noun
4476 status collapsed
4477
4478 \begin_layout Plain Layout
4479 Bullets
4480 \end_layout
4481
4482 \end_inset
4483
4484  tab.
4485 \end_layout
4486
4487 \begin_layout Standard
4488 The dialog provides you with a table of bullet shapes.
4489  A column of buttons on the left of the table provides access to the six
4490  different panels of bullet shapes.
4491  The row of buttons across the top is used to select which bullet depth
4492  you are changing.
4493  A text entry under the table shows the currently selected bullet shape's
4494  \SpecialChar LaTeX
4495  equivalent and this can be edited if desired.
4496  If you do modify the text you will also need to specify any needed packages
4497  in the \SpecialChar LaTeX
4498  preamble.
4499 \end_layout
4500
4501 \begin_layout Standard
4502 The six panels are divided up by the packages they require.
4503  The following table shows the mappings from button name to \SpecialChar LaTeX
4504  package.
4505 \end_layout
4506
4507 \begin_layout Standard
4508 \align center
4509 \begin_inset Tabular
4510 <lyxtabular version="3" rows="7" columns="2">
4511 <features tabularvalignment="middle">
4512 <column alignment="center" valignment="top" width="0pt">
4513 <column alignment="center" valignment="top" width="0pt">
4514 <row>
4515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4516 \begin_inset Text
4517
4518 \begin_layout Plain Layout
4519
4520 \family roman
4521 \series medium
4522 \shape up
4523 \size normal
4524 \emph off
4525 \bar no
4526 \noun off
4527 \color none
4528 Button
4529 \end_layout
4530
4531 \end_inset
4532 </cell>
4533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4534 \begin_inset Text
4535
4536 \begin_layout Plain Layout
4537
4538 \family roman
4539 \series medium
4540 \shape up
4541 \size normal
4542 \emph off
4543 \bar no
4544 \noun off
4545 \color none
4546 Packages Required
4547 \end_layout
4548
4549 \end_inset
4550 </cell>
4551 </row>
4552 <row>
4553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4554 \begin_inset Text
4555
4556 \begin_layout Plain Layout
4557
4558 \family sans
4559 \series medium
4560 \shape up
4561 \size normal
4562 \emph off
4563 \bar no
4564 \noun off
4565 \color none
4566 Standard
4567 \end_layout
4568
4569 \end_inset
4570 </cell>
4571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4572 \begin_inset Text
4573
4574 \begin_layout Plain Layout
4575
4576 \series medium
4577 \shape up
4578 \size normal
4579 \emph off
4580 \bar no
4581 \noun off
4582 \color none
4583 base \SpecialChar LaTeX
4584
4585 \end_layout
4586
4587 \end_inset
4588 </cell>
4589 </row>
4590 <row>
4591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4592 \begin_inset Text
4593
4594 \begin_layout Plain Layout
4595
4596 \family sans
4597 \series medium
4598 \shape up
4599 \size normal
4600 \emph off
4601 \bar no
4602 \noun off
4603 \color none
4604 Maths
4605 \end_layout
4606
4607 \end_inset
4608 </cell>
4609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4610 \begin_inset Text
4611
4612 \begin_layout Plain Layout
4613
4614 \family typewriter
4615 \series medium
4616 \shape up
4617 \size normal
4618 \emph off
4619 \bar no
4620 \noun off
4621 \color none
4622 amssymb.sty
4623 \end_layout
4624
4625 \end_inset
4626 </cell>
4627 </row>
4628 <row>
4629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4630 \begin_inset Text
4631
4632 \begin_layout Plain Layout
4633
4634 \family sans
4635 \series medium
4636 \shape up
4637 \size normal
4638 \emph off
4639 \bar no
4640 \noun off
4641 \color none
4642 Ding1
4643 \end_layout
4644
4645 \end_inset
4646 </cell>
4647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4648 \begin_inset Text
4649
4650 \begin_layout Plain Layout
4651
4652 \family typewriter
4653 \series medium
4654 \shape up
4655 \size normal
4656 \emph off
4657 \bar no
4658 \noun off
4659 \color none
4660 pifont.sty
4661 \end_layout
4662
4663 \end_inset
4664 </cell>
4665 </row>
4666 <row>
4667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4668 \begin_inset Text
4669
4670 \begin_layout Plain Layout
4671
4672 \family sans
4673 \series medium
4674 \shape up
4675 \size normal
4676 \emph off
4677 \bar no
4678 \noun off
4679 \color none
4680 Ding2
4681 \end_layout
4682
4683 \end_inset
4684 </cell>
4685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4686 \begin_inset Text
4687
4688 \begin_layout Plain Layout
4689
4690 \family typewriter
4691 \series medium
4692 \shape up
4693 \size normal
4694 \emph off
4695 \bar no
4696 \noun off
4697 \color none
4698 pifont.sty
4699 \end_layout
4700
4701 \end_inset
4702 </cell>
4703 </row>
4704 <row>
4705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4706 \begin_inset Text
4707
4708 \begin_layout Plain Layout
4709
4710 \family sans
4711 \series medium
4712 \shape up
4713 \size normal
4714 \emph off
4715 \bar no
4716 \noun off
4717 \color none
4718 Ding3
4719 \end_layout
4720
4721 \end_inset
4722 </cell>
4723 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4724 \begin_inset Text
4725
4726 \begin_layout Plain Layout
4727
4728 \family typewriter
4729 \series medium
4730 \shape up
4731 \size normal
4732 \emph off
4733 \bar no
4734 \noun off
4735 \color none
4736 pifont.sty
4737 \end_layout
4738
4739 \end_inset
4740 </cell>
4741 </row>
4742 <row>
4743 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4744 \begin_inset Text
4745
4746 \begin_layout Plain Layout
4747
4748 \family sans
4749 \series medium
4750 \shape up
4751 \size normal
4752 \emph off
4753 \bar no
4754 \noun off
4755 \color none
4756 Ding4
4757 \end_layout
4758
4759 \end_inset
4760 </cell>
4761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4762 \begin_inset Text
4763
4764 \begin_layout Plain Layout
4765
4766 \family typewriter
4767 \series medium
4768 \shape up
4769 \size normal
4770 \emph off
4771 \bar no
4772 \noun off
4773 \color none
4774 pifont.sty
4775 \end_layout
4776
4777 \end_inset
4778 </cell>
4779 </row>
4780 </lyxtabular>
4781
4782 \end_inset
4783
4784
4785 \end_layout
4786
4787 \begin_layout Standard
4788 \SpecialChar LyX
4789  doesn't stop you using bullets from packages you don't have.
4790  If you get errors from \SpecialChar LaTeX
4791  when you try to view or print the file, then it
4792  is likely you are missing a package.
4793 \begin_inset Foot
4794 status collapsed
4795
4796 \begin_layout Plain Layout
4797 \SpecialChar LyX
4798  doesn't restrict your use since you may be editing locally and exporting
4799  elsewhere.
4800 \end_layout
4801
4802 \end_inset
4803
4804
4805 \end_layout
4806
4807 \begin_layout Subsection
4808 How to use it
4809 \end_layout
4810
4811 \begin_layout Standard
4812 Select which bullet depth you want to change then select the bullet shape
4813  and size.
4814  Any changes will not be visible in \SpecialChar LyX
4815 , but are visible when viewing the document.
4816 \end_layout
4817
4818 \begin_layout Standard
4819 You can reset a bullet shape to the default simply by clicking your right
4820  mouse button on the appropriate bullet depth button.
4821 \begin_inset Foot
4822 status open
4823
4824 \begin_layout Plain Layout
4825 If you 
4826 \emph on
4827 really
4828 \emph default
4829  want to have multiple sets of paragraphs with different sets of bullets
4830  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4831  code.
4832  The bullet selection dialog can help though because it provides you with
4833  the \SpecialChar LaTeX
4834  code for a wide range of bullet shapes.
4835  To make your own custom paragraphs you have the following options:
4836 \end_layout
4837
4838 \begin_layout Plain Layout
4839 \begin_inset ERT
4840 status open
4841
4842 \begin_layout Plain Layout
4843
4844
4845 \backslash
4846 let
4847 \backslash
4848 savelabelitemi=
4849 \backslash
4850 labelitemi
4851 \end_layout
4852
4853 \end_inset
4854
4855
4856 \end_layout
4857
4858 \begin_layout Plain Layout
4859 \begin_inset ERT
4860 status open
4861
4862 \begin_layout Plain Layout
4863
4864
4865 \backslash
4866 renewcommand
4867 \backslash
4868 labelitemi[0]{
4869 \backslash
4870 small
4871 \backslash
4872 (
4873 \backslash
4874 sharp
4875 \backslash
4876 )}
4877 \end_layout
4878
4879 \end_inset
4880
4881
4882 \end_layout
4883
4884 \begin_layout Itemize
4885 Use the \SpecialChar LaTeX
4886  command 
4887 \begin_inset Flex Code
4888 status collapsed
4889
4890 \begin_layout Plain Layout
4891
4892 \backslash
4893 renewcommand{}{}
4894 \end_layout
4895
4896 \end_inset
4897
4898  to specify a new bullet shape for a given depth.
4899  You'll also need to save the current bullet shape so you can restore it
4900  again afterwards.
4901  In this itemized list the following \SpecialChar LaTeX
4902  code was used to change the bullet
4903  used for the first depth.
4904 \end_layout
4905
4906 \begin_deeper
4907 \begin_layout LyX-Code
4908
4909 \backslash
4910 let
4911 \backslash
4912 savelabelitemi=
4913 \backslash
4914 labelitemi 
4915 \end_layout
4916
4917 \begin_layout LyX-Code
4918
4919 \backslash
4920 renewcommand
4921 \backslash
4922 labelitemi[0]{
4923 \backslash
4924 small
4925 \backslash
4926 (
4927 \backslash
4928 sharp
4929 \backslash
4930 )}
4931 \end_layout
4932
4933 \end_deeper
4934 \begin_layout Itemize
4935 Note that the itemize depth is specified in Roman numerals as part of the
4936  
4937 \family typewriter
4938
4939 \backslash
4940 labelitem
4941 \family default
4942  command.
4943 \end_layout
4944
4945 \begin_layout Itemize
4946 \begin_inset Argument item:1
4947 status open
4948
4949 \begin_layout Plain Layout
4950 \begin_inset ERT
4951 status open
4952
4953 \begin_layout Plain Layout
4954
4955
4956 \backslash
4957 (
4958 \backslash
4959 star
4960 \backslash
4961 )
4962 \end_layout
4963
4964 \end_inset
4965
4966
4967 \end_layout
4968
4969 \end_inset
4970
4971  Specify each individual entry by starting each item with the bullet shape
4972  enclosed in a 
4973 \begin_inset Quotes eld
4974 \end_inset
4975
4976 Custom Item
4977 \begin_inset Quotes erd
4978 \end_inset
4979
4980  inset (available at 
4981 \family sans
4982 Insert\SpecialChar menuseparator
4983 Custom Item
4984 \family default
4985 ) and set as 
4986 \begin_inset Flex Noun
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 \SpecialChar TeX
4991  Code
4992 \end_layout
4993
4994 \end_inset
4995
4996 .
4997  For example, this item was started with 
4998 \begin_inset Flex Code
4999 status collapsed
5000
5001 \begin_layout Plain Layout
5002
5003 \backslash
5004 (
5005 \backslash
5006 star
5007 \backslash
5008 )
5009 \end_layout
5010
5011 \end_inset
5012
5013 .
5014 \end_layout
5015
5016 \begin_layout Plain Layout
5017 \begin_inset ERT
5018 status open
5019
5020 \begin_layout Plain Layout
5021
5022
5023 \backslash
5024 renewcommand
5025 \backslash
5026 labelitemi[0]{
5027 \backslash
5028 savelabelitemi}
5029 \end_layout
5030
5031 \end_inset
5032
5033
5034 \end_layout
5035
5036 \begin_layout Plain Layout
5037 You'll also need to revert the labelitem back to its previous setting for
5038  the global bullet shape settings to remain in effect.
5039  The way used here was:
5040 \end_layout
5041
5042 \begin_layout LyX-Code
5043
5044 \backslash
5045 renewcommand
5046 \backslash
5047 labelitemi[0]{
5048 \backslash
5049 savelabelitemi}
5050 \end_layout
5051
5052 \end_inset
5053
5054
5055 \end_layout
5056
5057 \begin_layout Chapter
5058 \SpecialChar LyX
5059  and the World Wide Web
5060 \end_layout
5061
5062 \begin_layout Standard
5063 \SpecialChar LyX
5064  has long supported the export of documents to various web-friendly formats,
5065  such as HTML.
5066  Before version 2.0, however, HTML export was always accomplished by the
5067  use of external converters.
5068 \begin_inset Foot
5069 status collapsed
5070
5071 \begin_layout Plain Layout
5072 For details on the use of external converters with \SpecialChar LyX
5073 , see the 
5074 \emph on
5075 Converters
5076 \emph default
5077  section of the Customization manual.
5078 \end_layout
5079
5080 \end_inset
5081
5082  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5083  as an
5084  intermediate format, such as 
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089 htlatex
5090 \end_layout
5091
5092 \end_inset
5093
5094
5095 \begin_inset Flex Code
5096 status collapsed
5097
5098 \begin_layout Plain Layout
5099 html2latex
5100 \end_layout
5101
5102 \end_inset
5103
5104 , and 
5105 \begin_inset Flex Code
5106 status collapsed
5107
5108 \begin_layout Plain Layout
5109 plastex
5110 \end_layout
5111
5112 \end_inset
5113
5114 , relying upon \SpecialChar LyX
5115  to produce the \SpecialChar LaTeX
5116 ; and there is a converter that works directly
5117  on \SpecialChar LyX
5118  files, 
5119 \begin_inset Flex Code
5120 status collapsed
5121
5122 \begin_layout Plain Layout
5123 e\SpecialChar LyX
5124 er
5125 \end_layout
5126
5127 \end_inset
5128
5129 .
5130  All of these have different advantages and disadvantages.
5131  
5132 \end_layout
5133
5134 \begin_layout Standard
5135 The \SpecialChar LaTeX
5136 -based converters have the advantage that, in principle, they know everythin
5137 g about the exported document that \SpecialChar LaTeX
5138  does.
5139  Such converters do not care, for example, if a certain block of code was
5140  produced by \SpecialChar LyX
5141  or was Evil Red Text.
5142  These converters know about 
5143 \begin_inset Flex Code
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147 aux
5148 \end_layout
5149
5150 \end_inset
5151
5152  files, counters, and references, and can often make use of the 
5153 \begin_inset Flex Code
5154 status collapsed
5155
5156 \begin_layout Plain Layout
5157 bbl
5158 \end_layout
5159
5160 \end_inset
5161
5162  files generated by Bib\SpecialChar TeX
5163 .
5164  On the other hand, \SpecialChar LaTeX
5165  is a very hard language to parse—it is sometimes said
5166  that only \SpecialChar TeX
5167  itself understands \SpecialChar TeX
5168 —and \SpecialChar LaTeX
5169 -based converters will often choke on
5170  what seem to be quite simple constructs; complex ones can throw them completely
5171 , and as of this writing, for example, the 
5172 \emph on
5173 Embedded Objects
5174 \emph default
5175  manual will not export with 
5176 \begin_inset Flex Code
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180 htlatex
5181 \end_layout
5182
5183 \end_inset
5184
5185 , though the others will.
5186  The other issue concerns how math is handled.
5187  These converters typically convert the formulae into little pictures that
5188  are then linked from the HTML document.
5189  Since these are actually generated by \SpecialChar LaTeX
5190 , they are accurate.
5191  But they do not scale well, and just getting them to look as if they are
5192  actually meant to be in your document—so that the font sizes seem to be
5193  roughly the same—can be a challenge.
5194 \end_layout
5195
5196 \begin_layout Standard
5197 Alex Fernandez's 
5198 \begin_inset Flex Code
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 e\SpecialChar LyX
5203 er
5204 \end_layout
5205
5206 \end_inset
5207
5208  (
5209 \begin_inset CommandInset href
5210 LatexCommand href
5211 name "http://pinchito.es/elyxer/"
5212 target "http://pinchito.es/elyxer/"
5213 literal "false"
5214
5215 \end_inset
5216
5217 ) solves some of these problems.
5218  In particular, the formulae it produces scale perfectly, since it renders
5219  math using a combination of HTML and CSS rather than converting the formulae
5220  to images.
5221  But even moderately complex formula are rendered less well than with 
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226 htlatex
5227 \end_layout
5228
5229 \end_inset
5230
5231 ; this reflects the limitations of HTML.
5232 \begin_inset Foot
5233 status collapsed
5234
5235 \begin_layout Plain Layout
5236 That said, 
5237 \begin_inset Flex Code
5238 status collapsed
5239
5240 \begin_layout Plain Layout
5241 e\SpecialChar LyX
5242 er
5243 \end_layout
5244
5245 \end_inset
5246
5247  can also use jsMath and MathJax for equations, but this setting is only
5248  available globally and requires one to have access to a server that runs
5249  the backend.
5250 \end_layout
5251
5252 \end_inset
5253
5254  More importantly (as of version 1.1.1, at least), 
5255 \begin_inset Flex Code
5256 status collapsed
5257
5258 \begin_layout Plain Layout
5259 e\SpecialChar LyX
5260 er
5261 \end_layout
5262
5263 \end_inset
5264
5265  has limited support for math macros and no support for user-defined paragraph
5266  or character styles.
5267  These limitations make 
5268 \begin_inset Flex Code
5269 status collapsed
5270
5271 \begin_layout Plain Layout
5272 e\SpecialChar LyX
5273 er
5274 \end_layout
5275
5276 \end_inset
5277
5278  unsuitable for many of the documents \SpecialChar LyX
5279  users produce.
5280  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5281  developers
5282  have decided to follow a different path and have made \SpecialChar LyX
5283  itself capable of
5284  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5285 , DocBook, and plaintext.
5286 \end_layout
5287
5288 \begin_layout Standard
5289 As of this writing, XHTML output remains under development and should probably
5290  be regarded as 
5291 \begin_inset Quotes eld
5292 \end_inset
5293
5294 experimental
5295 \begin_inset Quotes erd
5296 \end_inset
5297
5298 .
5299 \begin_inset Foot
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303 The file 
5304 \begin_inset Flex Code
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308 development/HTML/HTML.notes
5309 \end_layout
5310
5311 \end_inset
5312
5313 , which can be found in the \SpecialChar LyX
5314  source tree or 
5315 \begin_inset CommandInset href
5316 LatexCommand href
5317 name "accessed online"
5318 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5319 literal "false"
5320
5321 \end_inset
5322
5323 , usually contains up-to-date information about the state of XHTML output.
5324  See also the list of XHTML bugs on 
5325 \begin_inset CommandInset href
5326 LatexCommand href
5327 name "the bug tracker"
5328 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"
5329 literal "false"
5330
5331 \end_inset
5332
5333 .
5334 \end_layout
5335
5336 \end_inset
5337
5338  Still, the developers have chosen this approach because it has several
5339  potential advantages over the other two.
5340 \end_layout
5341
5342 \begin_layout Standard
5343 These advantages are primarily due to the fact that the XHTML output routines,
5344  since they are part of \SpecialChar LyX
5345 , know everything \SpecialChar LyX
5346  knows about the document being
5347  exported.
5348 \begin_inset Foot
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352 Another advantage is that, since these routines are internal to \SpecialChar LyX
5353 , they are
5354  immune to changes in \SpecialChar LyX
5355 's file format, or to changes in the semantics of
5356  existing insets.
5357 \end_layout
5358
5359 \end_inset
5360
5361  So they know about the table of contents (as displayed in the outline),
5362  about the counters associated with different paragraph styles, and about
5363  user-defined styles.
5364  The XHTML output routines know what \SpecialChar LyX
5365  knows about internationalization,
5366  too, so they will output 
5367 \begin_inset Quotes eld
5368 \end_inset
5369
5370 Chapter 1
5371 \begin_inset Quotes erd
5372 \end_inset
5373
5374  or 
5375 \begin_inset Quotes eld
5376 \end_inset
5377
5378
5379 \lang ngerman
5380 Kapitel
5381 \lang english
5382  1
5383 \begin_inset Quotes erd
5384 \end_inset
5385
5386 , depending upon the language in effect at the time.
5387  
5388 \end_layout
5389
5390 \begin_layout Standard
5391 Quite generally, the output routines know what \SpecialChar LyX
5392  knows about document layout,
5393  that is, about how the document is to be rendered on screen.
5394  We use this information when we output the document as XHTML.
5395  In particular, \SpecialChar LyX
5396  
5397 \emph on
5398 automatically
5399 \emph default
5400  generates CSS style information corresponding to the layout information
5401  it uses to render the document on screen: if section headings are supposed
5402  to be sans-serif and bold as seen in \SpecialChar LyX
5403 , then (by default) they will be sans-seri
5404 f and bold when viewed in a web browser, too.
5405  And this is true not just for pre-defined styles, like Section, but for
5406  any style, including user-defined styles.
5407  Indeed, the XHTML output routines make no distinction between user-defined
5408  paragraph and character styles and \SpecialChar LyX
5409 's own pre-defined styles: in each case,
5410  everything \SpecialChar LyX
5411  knows about the styles is contained in the layout files.
5412  And much the same is true as regards pre-defined textual insets, such as
5413  footnotes, and various custom insets.
5414  
5415 \end_layout
5416
5417 \begin_layout Standard
5418 The result is that XHTML output can be customized and extended in exactly
5419  the same way \SpecialChar LaTeX
5420  output can be customized and extended: through layout files
5421  and modules.
5422  See chapter five of the 
5423 \emph on
5424 Customization 
5425 \emph default
5426 manual for the details.
5427 \end_layout
5428
5429 \begin_layout Standard
5430 The remainder of this chapter contains more detailed information on XHTML
5431  output, its limitations, and ways to work around those limitations.
5432 \end_layout
5433
5434 \begin_layout Section
5435 Math Output in XHTML
5436 \end_layout
5437
5438 \begin_layout Standard
5439 \SpecialChar LyX
5440  offers four choices for how math is rendered.
5441  These have various advantages and disadvantages:
5442 \end_layout
5443
5444 \begin_layout Itemize
5445 MathML
5446 \begin_inset Newline newline
5447 \end_inset
5448
5449 MathML is a dialect of XML designed specifically for mathematics on the
5450  web, and it typically renders very well in browsers that support it.
5451  The disadvantage is that not all browsers support MathML, and support is
5452  not complete even in the Gecko-based browsers, such as Firefox.
5453 \begin_inset Newline newline
5454 \end_inset
5455
5456 If \SpecialChar LyX
5457  is unable to render a formula as MathML—for example, if the formula
5458  uses the 
5459 \begin_inset Flex Code
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463 xymatrix
5464 \end_layout
5465
5466 \end_inset
5467
5468  package or ERT—then it will instead output the formula as an image.
5469  
5470 \end_layout
5471
5472 \begin_layout Itemize
5473 HTML
5474 \begin_inset Newline newline
5475 \end_inset
5476
5477 As mentioned above, 
5478 \begin_inset Flex Code
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 elyxer
5483 \end_layout
5484
5485 \end_inset
5486
5487  outputs math as HTML, styled by CSS.
5488 \begin_inset Foot
5489 status collapsed
5490
5491 \begin_layout Plain Layout
5492 \SpecialChar LyX
5493  has borrowed some of the CSS for its HTML output from 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 elyxer
5499 \end_layout
5500
5501 \end_inset
5502
5503 .
5504 \end_layout
5505
5506 \end_inset
5507
5508  For simple formulae, this can work quite well, though with more complicated
5509  formulae it tends to break down.
5510  Still, this method has the advantage that it is very widely supported and
5511  so it may be appropriate for documents that contain only a little, fairly
5512  simple math.
5513 \begin_inset Newline newline
5514 \end_inset
5515
5516 If Lyx is unable to render a formula as HTML—for example, if the formula
5517  uses the 
5518 \begin_inset Flex Code
5519 status collapsed
5520
5521 \begin_layout Plain Layout
5522 xymatrix
5523 \end_layout
5524
5525 \end_inset
5526
5527  package or ERT—then it will instead output the formula as an image.
5528  
5529 \end_layout
5530
5531 \begin_layout Itemize
5532 Images
5533 \begin_inset Newline newline
5534 \end_inset
5535
5536 Like 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541 htlatex
5542 \end_layout
5543
5544 \end_inset
5545
5546 , \SpecialChar LyX
5547  will output formulae as images, the very same images, in fact, that are
5548  used for instant preview.
5549 \begin_inset Foot
5550 status collapsed
5551
5552 \begin_layout Plain Layout
5553 Instant preview does 
5554 \emph on
5555 not 
5556 \emph default
5557 have to be on for images to be output, however.
5558 \end_layout
5559
5560 \end_inset
5561
5562  The advantage to this method is that the images are simply generated by
5563  \SpecialChar LaTeX
5564 , so they are very accurate.
5565  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5566  so they do not scale terribly well, and one cannot copy them, etc.
5567 \begin_inset Newline newline
5568 \end_inset
5569
5570 The size of the images can be controlled by setting the 
5571 \begin_inset Quotes eld
5572 \end_inset
5573
5574 Math Images Scaling
5575 \begin_inset Quotes erd
5576 \end_inset
5577
5578  parameter under 
5579 \begin_inset Flex Noun
5580 status collapsed
5581
5582 \begin_layout Plain Layout
5583 Document\SpecialChar menuseparator
5584 Settings\SpecialChar menuseparator
5585 Formats
5586 \end_layout
5587
5588 \end_inset
5589
5590 .
5591 \begin_inset Foot
5592 status collapsed
5593
5594 \begin_layout Plain Layout
5595 For those who want to know, this controls the resolution of the image in
5596  dots per inch and is based upon a default of 75 dpi.
5597 \end_layout
5598
5599 \end_inset
5600
5601
5602 \begin_inset Newline newline
5603 \end_inset
5604
5605 If \SpecialChar LyX
5606  for some reason fails to create an image for a formula (e.g., if a required
5607  \SpecialChar LaTeX
5608  package is not installed), then it will fall back to outputing the raw
5609  \SpecialChar LaTeX
5610 .
5611 \end_layout
5612
5613 \begin_layout Itemize
5614 \SpecialChar LaTeX
5615
5616 \begin_inset Newline newline
5617 \end_inset
5618
5619 Finally, \SpecialChar LyX
5620  will happily output math as \SpecialChar LaTeX
5621 .
5622  As well as being the output of last resort, this method can be used with
5623  such tools as 
5624 \begin_inset CommandInset href
5625 LatexCommand href
5626 name "jsMath"
5627 target "http://www.math.union.edu/~dpvc/jsMath/"
5628 literal "false"
5629
5630 \end_inset
5631
5632 , which uses JavaScript to render \SpecialChar LaTeX
5633  embedded in HTML documents.
5634  \SpecialChar LyX
5635  wraps the \SpecialChar LaTeX
5636  in either a 
5637 \begin_inset Flex Code
5638 status collapsed
5639
5640 \begin_layout Plain Layout
5641 span
5642 \end_layout
5643
5644 \end_inset
5645
5646  (for inline formulas) or 
5647 \begin_inset Flex Code
5648 status collapsed
5649
5650 \begin_layout Plain Layout
5651 div
5652 \end_layout
5653
5654 \end_inset
5655
5656  (for displayed formulas) with 
5657 \begin_inset Flex Code
5658 status collapsed
5659
5660 \begin_layout Plain Layout
5661 class='math'
5662 \end_layout
5663
5664 \end_inset
5665
5666 , as is required for jsMath.
5667 \end_layout
5668
5669 \begin_layout Standard
5670 One of these output methods must be selected under 
5671 \begin_inset Flex Noun
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 Document\SpecialChar menuseparator
5676 Settings\SpecialChar menuseparator
5677 Formats
5678 \end_layout
5679
5680 \end_inset
5681
5682 .
5683  By default, \SpecialChar LyX
5684  outputs MathML.
5685  This is a document-wide setting, therefore.
5686 \end_layout
5687
5688 \begin_layout Standard
5689 Eventually, \SpecialChar LyX
5690  will offer the user the option to select an alternate output
5691  method for a particular inset, say, one that isn't being rendered very
5692  well by MathML.
5693 \begin_inset Foot
5694 status collapsed
5695
5696 \begin_layout Plain Layout
5697 That said, since \SpecialChar LyX
5698  falls back to images if the inset contains ERT, then one
5699  can force output as an image by putting some harmless ERT into the math,
5700  for example: 
5701 \begin_inset Formula $a=b\relax$
5702 \end_inset
5703
5704 .
5705 \end_layout
5706
5707 \end_inset
5708
5709
5710 \end_layout
5711
5712 \begin_layout Section
5713 Bibliography and Citations
5714 \end_layout
5715
5716 \begin_layout Standard
5717 XHTML output fully supports bibliographies and citations.
5718  
5719 \end_layout
5720
5721 \begin_layout Standard
5722 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5723 's on-screen
5724  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5725 , though
5726  better.
5727  If you are using numerical citations, then \SpecialChar LyX
5728  will output numerical labels,
5729  such as [1] or [17], rather than simply showing the citation key in square
5730  brackets, as it does on-screen.
5731  If you are using author-year citations, then \SpecialChar LyX
5732  will add lowercase letters
5733  to the years, just as Bib\SpecialChar TeX
5734  does, if it finds more than one citation for
5735  a given author-year combination.
5736  The labels will be printed with the bibliography entries.
5737  Note that there is, at present, no way to customize the appearance of the
5738  labels, for example, to choose between square brackets and parentheses.
5739 \end_layout
5740
5741 \begin_layout Standard
5742 Bibliography output is handled by the same machinery that handles the presentati
5743 on of reference information in the citation dialog, so you will see in the
5744  XHTML output pretty much what you would see if you were to look at a given
5745  entry in the citation dialog.
5746  The formatting can be customized in your layout file or, preferably, in
5747  a module.
5748  See the 
5749 \emph on
5750 Customization
5751 \emph default
5752  manual for the details.
5753 \end_layout
5754
5755 \begin_layout Standard
5756 The main defect at present is that cross-referenced information is printed
5757  with every entry with which it is associated.
5758  So you can see things like this:
5759 \end_layout
5760
5761 \begin_layout Quote
5762 Jason Stanley, 
5763 \begin_inset Quotes eld
5764 \end_inset
5765
5766 Context and Logical Form
5767 \begin_inset Quotes erd
5768 \end_inset
5769
5770 , in 
5771 \emph on
5772 Language in Context: Selected Essays
5773 \emph default
5774  (Oxford: Oxford University Press, 2007), pp.
5775  30–68.
5776 \end_layout
5777
5778 \begin_layout Quote
5779 Jason Stanley, 
5780 \begin_inset Quotes eld
5781 \end_inset
5782
5783 Semantics in Context
5784 \begin_inset Quotes erd
5785 \end_inset
5786
5787 , in 
5788 \emph on
5789 Language in Context: Selected Essays
5790 \emph default
5791  (Oxford: Oxford University Press, 2007), pp.
5792  201–30.
5793 \end_layout
5794
5795 \begin_layout Standard
5796 This should be fixed before long.
5797 \end_layout
5798
5799 \begin_layout Standard
5800 There is no support at present for sectioned bibliographies.
5801  If you have multiple bibliographies, then \SpecialChar LyX
5802  will print the same bibliography
5803  over and over.
5804 \end_layout
5805
5806 \begin_layout Section
5807 Indexes
5808 \end_layout
5809
5810 \begin_layout Standard
5811 \SpecialChar LyX
5812  will happily export indexes as XHTML, but with certain limitations at the
5813  moment.
5814 \end_layout
5815
5816 \begin_layout Standard
5817 Index export will be most reliable when you do not attempt to use the fancy
5818  constructs that are described in the section on indexes in the 
5819 \emph on
5820 User's Guide
5821 \emph default
5822 .
5823 \begin_inset Foot
5824 status collapsed
5825
5826 \begin_layout Plain Layout
5827 The main issue here is that \SpecialChar LyX
5828  itself does not really handle these.
5829  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5830 .
5831 \end_layout
5832
5833 \end_inset
5834
5835  We'll describe how they are handled using the subsection headings from
5836  that section.
5837 \end_layout
5838
5839 \begin_layout Itemize
5840 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5841  makes an effort to support these,
5842  but the entries must be separated by 
5843 \begin_inset Quotes eld
5844 \end_inset
5845
5846  ! 
5847 \begin_inset Quotes erd
5848 \end_inset
5849
5850 , that is, there must be spaces around the exclamation point.
5851  This is because it is otherwise too difficult to check for escaped exclamation
5852  points, ones in math, and so forth.
5853 \end_layout
5854
5855 \begin_layout Itemize
5856 Page Ranges: There is no support at all for page ranges, since these make
5857  no sense with XHMTL.
5858  Instead, you will just get two index entries, one at either end.
5859 \end_layout
5860
5861 \begin_layout Itemize
5862 Cross-referencing: There is no support for cross-referencing.
5863  If \SpecialChar LyX
5864  finds an entry containing the 
5865 \begin_inset Quotes eld
5866 \end_inset
5867
5868 |see\SpecialChar ldots
5869
5870 \begin_inset Quotes erd
5871 \end_inset
5872
5873  construct, it is just dropped, and the rest is treated as an ordinary index
5874  entry.
5875 \end_layout
5876
5877 \begin_layout Itemize
5878 Index Entry Order: \SpecialChar LyX
5879  does support attempts to fix the sorting order.
5880  It will take what is before the first `@' it finds and use that for sorting,
5881  taking what follows the first `@' to be the actual entry.
5882  At present, \SpecialChar LyX
5883  does not check for escaped `@', so do not try to index email
5884  addresses.
5885 \end_layout
5886
5887 \begin_layout Itemize
5888 Index Entry Layout: You can format entries by using the text style dialog,
5889  or by using any other method available within \SpecialChar LyX
5890  itself.
5891  There is no support for constructs like: 
5892 \begin_inset Quotes eld
5893 \end_inset
5894
5895 entry|textbf
5896 \begin_inset Quotes erd
5897 \end_inset
5898
5899 .
5900  Indeed, if \SpecialChar LyX
5901  finds a pipe symbol, `|', in an entry, it will delete it and
5902  everything that follows it.
5903 \end_layout
5904
5905 \begin_layout Itemize
5906 Multiple Indexes: There is no support for multiple indexes.
5907  Rather, all index entries will be printed as one large index.
5908  To avoid our printing several versions of the index, we print only the
5909  main index, so make sure you have one.
5910 \end_layout
5911
5912 \begin_layout Section
5913 Nomenclature and Glossary
5914 \end_layout
5915
5916 \begin_layout Standard
5917 There is at present no support for glossaries.
5918  Adding it would be fairly trivial, and welcome.
5919 \end_layout
5920
5921 \begin_layout Chapter
5922 The \SpecialChar LyX
5923  Server
5924 \end_layout
5925
5926 \begin_layout Section
5927 Introduction
5928 \end_layout
5929
5930 \begin_layout Standard
5931 The `\SpecialChar LyX
5932  server' allows other programs to talk to \SpecialChar LyX
5933 , invoke \SpecialChar LyX
5934  commands, and retrieve
5935  information about the \SpecialChar LyX
5936  internal state.
5937  This is only intended for advanced users, but they should find it useful.
5938  It is by writing to the \SpecialChar LyX
5939  server, for example, that bibliography managers,
5940  such as JabRef, are able to 
5941 \begin_inset Quotes eld
5942 \end_inset
5943
5944 push
5945 \begin_inset Quotes erd
5946 \end_inset
5947
5948  citations to \SpecialChar LyX
5949 .
5950 \end_layout
5951
5952 \begin_layout Section
5953 Starting the \SpecialChar LyX
5954  Server
5955 \begin_inset CommandInset label
5956 LatexCommand label
5957 name "sec:Starting-the-Server"
5958
5959 \end_inset
5960
5961
5962 \end_layout
5963
5964 \begin_layout Standard
5965 The \SpecialChar LyX
5966  server works through the use of a pair of named pipes.
5967  These are usually located in 
5968 \begin_inset Flex Code
5969 status collapsed
5970
5971 \begin_layout Plain Layout
5972 UserDir
5973 \end_layout
5974
5975 \end_inset
5976
5977 , (except on Windows, where 
5978 \emph on
5979 local
5980 \emph default
5981  named pipes are special objects located in 
5982 \begin_inset Flex Code
5983 status collapsed
5984
5985 \begin_layout Plain Layout
5986
5987 \backslash
5988
5989 \backslash
5990 .
5991 \backslash
5992 pipe
5993 \end_layout
5994
5995 \end_inset
5996
5997 ) and have the names 
5998 \begin_inset Quotes eld
5999 \end_inset
6000
6001
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 lyxpipe.in
6007 \end_layout
6008
6009 \end_inset
6010
6011
6012 \begin_inset Quotes erd
6013 \end_inset
6014
6015  and 
6016 \begin_inset Quotes eld
6017 \end_inset
6018
6019
6020 \begin_inset Flex Code
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024 lyxpipe.out
6025 \end_layout
6026
6027 \end_inset
6028
6029
6030 \begin_inset Quotes erd
6031 \end_inset
6032
6033 .
6034  External programs write into 
6035 \begin_inset Flex Code
6036 status collapsed
6037
6038 \begin_layout Plain Layout
6039 lyxpipe.in
6040 \end_layout
6041
6042 \end_inset
6043
6044  and read back data from 
6045 \begin_inset Flex Code
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 lyxpipe.out
6050 \end_layout
6051
6052 \end_inset
6053
6054 .
6055  The stem of the pipe names can be defined in the 
6056 \begin_inset Flex Noun
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 Tools\SpecialChar menuseparator
6061 Preferences
6062 \end_layout
6063
6064 \end_inset
6065
6066  dialog, for example 
6067 \begin_inset Flex Code
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 "/home/myhome/lyxpipe"
6072 \end_layout
6073
6074 \end_inset
6075
6076 , or 
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 "
6082 \backslash
6083
6084 \backslash
6085 .
6086 \backslash
6087 pipe
6088 \backslash
6089 lyxpipe"
6090 \end_layout
6091
6092 \end_inset
6093
6094  on Windows (where any working path instead of lyxpipe can be used, for
6095  example 
6096 \begin_inset Flex Code
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 "
6101 \backslash
6102
6103 \backslash
6104 .
6105 \backslash
6106 pipe
6107 \backslash
6108 my
6109 \backslash
6110 lyx
6111 \backslash
6112 pipe"
6113 \end_layout
6114
6115 \end_inset
6116
6117  would also work).
6118  You 
6119 \emph on
6120 must
6121 \emph default
6122  configure this manually in order for the server to start.
6123 \end_layout
6124
6125 \begin_layout Standard
6126 \SpecialChar LyX
6127  will add the '
6128 \begin_inset Flex Code
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 .in
6133 \end_layout
6134
6135 \end_inset
6136
6137 ' and '
6138 \begin_inset Flex Code
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 .out
6143 \end_layout
6144
6145 \end_inset
6146
6147 ' to create the pipes.
6148  If one of the pipes already exists, \SpecialChar LyX
6149  will assume that another \SpecialChar LyX
6150  process
6151  is already running and will not start the server.
6152  On POSIX (Unix like) systems, if for some other reason, an unused 
6153 \begin_inset Quotes eld
6154 \end_inset
6155
6156 stale
6157 \begin_inset Quotes erd
6158 \end_inset
6159
6160  pipe is left in existence when \SpecialChar LyX
6161  closes, then \SpecialChar LyX
6162  will try to delete it.
6163  If this fails for some reason, you will need to delete the pipes manually
6164  and then restart \SpecialChar LyX
6165 .
6166  On Windows, pipes are deleted by the OS on program termination or crash,
6167  so 
6168 \begin_inset Quotes eld
6169 \end_inset
6170
6171 stale
6172 \begin_inset Quotes erd
6173 \end_inset
6174
6175  pipes should not be possible.
6176 \end_layout
6177
6178 \begin_layout Standard
6179 To have several \SpecialChar LyX
6180  processes with servers at the same time, you have to use
6181  different configurations, perhaps by using separate user directories, each
6182  with its own 
6183 \begin_inset Flex Code
6184 status collapsed
6185
6186 \begin_layout Plain Layout
6187 preferences
6188 \end_layout
6189
6190 \end_inset
6191
6192  file, for each process.
6193 \end_layout
6194
6195 \begin_layout Standard
6196 If you are developing a client program, you might find it useful to enable
6197  debugging information from the \SpecialChar LyX
6198  server.
6199  Do this by starting \SpecialChar LyX
6200  as 
6201 \begin_inset Flex Code
6202 status collapsed
6203
6204 \begin_layout Plain Layout
6205 lyx -dbg lyxserver
6206 \end_layout
6207
6208 \end_inset
6209
6210 .
6211 \end_layout
6212
6213 \begin_layout Standard
6214 You can find a complete example client written in C++ in the source distribution
6215  as 
6216 \begin_inset Flex Code
6217 status collapsed
6218
6219 \begin_layout Plain Layout
6220 development/lyxserver/server_monitor.cpp
6221 \end_layout
6222
6223 \end_inset
6224
6225 .
6226 \end_layout
6227
6228 \begin_layout Standard
6229 Another useful tool is the command-line based client found in 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234 src/client/lyxclient
6235 \end_layout
6236
6237 \end_inset
6238
6239 .
6240 \end_layout
6241
6242 \begin_layout Section
6243 Normal communication
6244 \end_layout
6245
6246 \begin_layout Standard
6247 To issue a \SpecialChar LyX
6248  call, the client writes a line of ASCII text into the input
6249  pipe.
6250  This line has the following format:
6251 \end_layout
6252
6253 \begin_layout Quote
6254 LYXCMD:
6255 \emph on
6256 clientname
6257 \emph default
6258 :
6259 \emph on
6260 function
6261 \emph default
6262 :
6263 \emph on
6264 argument
6265 \end_layout
6266
6267 \begin_layout Description
6268 clientname is a name that the client can choose arbitrarily.
6269  Its only use is that \SpecialChar LyX
6270  will echo it if it sends an answer—so a client can
6271  dispatch results from different requesters.
6272 \end_layout
6273
6274 \begin_layout Description
6275 function is the function you want \SpecialChar LyX
6276  to perform.
6277  It is the same as the commands you'd use in the minibuffer.
6278 \end_layout
6279
6280 \begin_layout Description
6281 argument is an optional argument which is meaningful only to some functions
6282  (for instance, the 
6283 \begin_inset Quotes eld
6284 \end_inset
6285
6286 self-insert
6287 \begin_inset Quotes erd
6288 \end_inset
6289
6290  LFUN will insert the argument as text at the cursor position).
6291 \end_layout
6292
6293 \begin_layout Standard
6294 The answer from \SpecialChar LyX
6295  will arrive in the output pipe and be of the form
6296 \end_layout
6297
6298 \begin_layout Quote
6299 INFO:
6300 \emph on
6301 clientname
6302 \emph default
6303 :
6304 \emph on
6305 function
6306 \emph default
6307 :
6308 \emph on
6309 data
6310 \end_layout
6311
6312 \begin_layout Standard
6313 where 
6314 \emph on
6315 clientname
6316 \emph default
6317  and 
6318 \emph on
6319 function
6320 \emph default
6321  are just echoed from the command request, while 
6322 \emph on
6323 data
6324 \emph default
6325  is more or less useful information filled according to how the command
6326  execution worked out.
6327  Some commands, such as 
6328 \begin_inset Quotes eld
6329 \end_inset
6330
6331 font-state
6332 \begin_inset Quotes erd
6333 \end_inset
6334
6335 , will return information about the internal state of \SpecialChar LyX
6336 , while other will
6337  return an empty data-response.
6338  This means that the command execution went fine.
6339 \end_layout
6340
6341 \begin_layout Standard
6342 In case of errors, the response from \SpecialChar LyX
6343  will have this form
6344 \end_layout
6345
6346 \begin_layout Quote
6347 ERROR:
6348 \emph on
6349 clientname
6350 \emph default
6351 :
6352 \emph on
6353 function
6354 \emph default
6355 :
6356 \emph on
6357 error message
6358 \end_layout
6359
6360 \begin_layout Standard
6361 where the 
6362 \emph on
6363 error message
6364 \emph default
6365  should contain an explanation of why the command failed.
6366 \end_layout
6367
6368 \begin_layout Standard
6369 Examples:
6370 \end_layout
6371
6372 \begin_layout LyX-Code
6373 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6374 \begin_inset Newline newline
6375 \end_inset
6376
6377 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6378 \begin_inset Newline newline
6379 \end_inset
6380
6381 read a <~/.lyxpipe.out
6382 \begin_inset Newline newline
6383 \end_inset
6384
6385 echo $a
6386 \end_layout
6387
6388 \begin_layout Subsection
6389 AppleScript (Mac OS X)
6390 \end_layout
6391
6392 \begin_layout Standard
6393 Since \SpecialChar LyX
6394  2.1, \SpecialChar LyX
6395  supports basic interactions with AppleScript for normal communicatio
6396 n through the command run.
6397  This command takes a direct argument (the 
6398 \series bold
6399 function
6400 \series default
6401  to perform) and an optional argument.
6402  It either returns the output of the function or triggers an error with
6403  the error message and code.
6404 \end_layout
6405
6406 \begin_layout Standard
6407 Example:
6408 \end_layout
6409
6410 \begin_layout LyX-Code
6411 tell application "\SpecialChar LyX
6412 "
6413 \end_layout
6414
6415 \begin_layout LyX-Code
6416   try
6417 \end_layout
6418
6419 \begin_layout LyX-Code
6420     -- Stores the current file name into f
6421 \end_layout
6422
6423 \begin_layout LyX-Code
6424     set f to (run "server-get-filename" with argument "")
6425 \end_layout
6426
6427 \begin_layout LyX-Code
6428     on error the error_message number the error_number
6429 \end_layout
6430
6431 \begin_layout LyX-Code
6432       display dialog "Error: " & the error_number & ".
6433  " Â¬
6434 \end_layout
6435
6436 \begin_layout LyX-Code
6437               & the error_message buttons {"OK"} default button 1
6438 \end_layout
6439
6440 \begin_layout LyX-Code
6441   end try
6442 \end_layout
6443
6444 \begin_layout LyX-Code
6445 end tell
6446 \end_layout
6447
6448 \begin_layout Section
6449 Notification
6450 \end_layout
6451
6452 \begin_layout Standard
6453 \SpecialChar LyX
6454  can notify clients of events going on asynchronously.
6455  Currently it will only do this if the user binds a key sequence with the
6456  function 
6457 \begin_inset Quotes eld
6458 \end_inset
6459
6460 notify
6461 \begin_inset Quotes erd
6462 \end_inset
6463
6464 .
6465  The format of the string \SpecialChar LyX
6466  sends is as follows:
6467 \end_layout
6468
6469 \begin_layout Quote
6470 \begin_inset Flex Code
6471 status collapsed
6472
6473 \begin_layout Plain Layout
6474 NOTIFY:
6475 \end_layout
6476
6477 \end_inset
6478
6479
6480 \emph on
6481 key-sequence
6482 \end_layout
6483
6484 \begin_layout Standard
6485 where 
6486 \emph on
6487 key-sequence
6488 \emph default
6489  is the printed representation of the key sequence that was actually typed
6490  by the user.
6491 \end_layout
6492
6493 \begin_layout Standard
6494 This mechanism can be used to extend \SpecialChar LyX
6495 's command set and implement macros.
6496  Bind some key sequence to 
6497 \begin_inset Quotes eld
6498 \end_inset
6499
6500 notify
6501 \begin_inset Quotes erd
6502 \end_inset
6503
6504 .
6505  Then start a client that listens on the output pipe, dispatches the command
6506  according to the sequence, and starts a function that may use \SpecialChar LyX
6507  calls and
6508  \SpecialChar LyX
6509  requests to issue a command or a series of commands to \SpecialChar LyX
6510 .
6511 \end_layout
6512
6513 \begin_layout Section
6514 The simple \SpecialChar LyX
6515  Server Protocol
6516 \end_layout
6517
6518 \begin_layout Standard
6519 \SpecialChar LyX
6520  implements a simple protocol that can be used for session management.
6521  All messages are of the form
6522 \end_layout
6523
6524 \begin_layout Quote
6525 LYXSRV:
6526 \emph on
6527 clientname
6528 \emph default
6529 :
6530 \emph on
6531 protocol message
6532 \end_layout
6533
6534 \begin_layout Standard
6535 where 
6536 \emph on
6537 protocol message
6538 \emph default
6539  can be 
6540 \begin_inset Quotes eld
6541 \end_inset
6542
6543 hello
6544 \begin_inset Quotes erd
6545 \end_inset
6546
6547  or 
6548 \begin_inset Quotes eld
6549 \end_inset
6550
6551 bye
6552 \begin_inset Quotes erd
6553 \end_inset
6554
6555 .
6556  If 
6557 \begin_inset Quotes eld
6558 \end_inset
6559
6560 hello
6561 \begin_inset Quotes erd
6562 \end_inset
6563
6564  is received from a client, \SpecialChar LyX
6565  will report back to inform the client that
6566  it's listening to it's messages, while 
6567 \begin_inset Quotes eld
6568 \end_inset
6569
6570 bye
6571 \begin_inset Quotes erd
6572 \end_inset
6573
6574  sent from \SpecialChar LyX
6575  will inform clients that \SpecialChar LyX
6576  is closing.
6577 \end_layout
6578
6579 \begin_layout Section
6580 Reverse DVI/PDF search
6581 \end_layout
6582
6583 \begin_layout Standard
6584 Some DVI/PDF viewers
6585 \begin_inset Foot
6586 status collapsed
6587
6588 \begin_layout Plain Layout
6589 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6590  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6591 \end_layout
6592
6593 \end_inset
6594
6595  provide 
6596 \emph on
6597 reverse search
6598 \emph default
6599  facility (also called 
6600 \emph on
6601 inverse search
6602 \emph default
6603 ).
6604  This means that you can tell \SpecialChar LyX
6605  to put the cursor to a specific line in the
6606  document by clicking at the respective position in the DVI/PDF output.
6607  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6608 .
6609  This is done via the \SpecialChar LyX
6610  server either by using the named pipe (
6611 \emph on
6612 lyxpipe
6613 \emph default
6614 ), or the UNIX domain socket (
6615 \emph on
6616 lyxsocket
6617 \emph default
6618 ) that \SpecialChar LyX
6619  creates in its temporary directory (this is the way the 
6620 \begin_inset Flex Code
6621 status collapsed
6622
6623 \begin_layout Plain Layout
6624 lyxclient
6625 \end_layout
6626
6627 \end_inset
6628
6629  program communicates with \SpecialChar LyX
6630 ).
6631  In some cases, you need a helper script that mediates between the viewer
6632  and \SpecialChar LyX
6633 , in others, the viewer can communicate with \SpecialChar LyX
6634  directly.
6635  This depends on the selected viewer and on your operating system.
6636  The same applies to the way viewers need to be configured and the way the
6637  reverse search is actually performed.
6638  In what follows, we will thus describe how to setup reverse search for
6639  specific viewers.
6640  Before we turn to this, though, we will explain what needs to be done generally
6641  to enable reverse search in the DVI/PDF output.
6642 \end_layout
6643
6644 \begin_layout Subsection
6645 Automatic setup
6646 \begin_inset CommandInset label
6647 LatexCommand label
6648 name "subsec:rev-search"
6649
6650 \end_inset
6651
6652
6653 \end_layout
6654
6655 \begin_layout Standard
6656 In most cases \SpecialChar LyX
6657  will do the work for you by pressing the following button
6658  in the toolbar: 
6659 \begin_inset Info
6660 type  "icon"
6661 arg   "buffer-toggle-output-sync"
6662 \end_inset
6663
6664 .
6665  Alternatively, you can also enable the feature by checking 
6666 \family sans
6667 Synchronize with Output
6668 \family default
6669  in 
6670 \begin_inset Flex Noun
6671 status collapsed
6672
6673 \begin_layout Plain Layout
6674 Document\SpecialChar menuseparator
6675 Settings\SpecialChar menuseparator
6676 Formats
6677 \end_layout
6678
6679 \end_inset
6680
6681 .
6682  In such a case \SpecialChar LyX
6683  will automatically insert the necessary Sync\SpecialChar TeX
6684  macro (for
6685  PDF) or load the srcltx package (for DVI) respectively.
6686  This option can be easily reached also on 
6687 \begin_inset Flex Code
6688 status collapsed
6689
6690 \begin_layout Plain Layout
6691 View/Update
6692 \end_layout
6693
6694 \end_inset
6695
6696  Toolbar.
6697 \end_layout
6698
6699 \begin_layout Standard
6700 If you need a different setting, you can select or input a custom macro
6701  from the drop down box just below 
6702 \begin_inset Flex Noun
6703 status collapsed
6704
6705 \begin_layout Plain Layout
6706 Document\SpecialChar menuseparator
6707 Settings\SpecialChar menuseparator
6708 Output\SpecialChar menuseparator
6709 Synchronize with Output
6710 \end_layout
6711
6712 \end_inset
6713
6714 .
6715 \end_layout
6716
6717 \begin_layout Standard
6718 Note that the method 
6719 \begin_inset Flex Code
6720 status collapsed
6721
6722 \begin_layout Plain Layout
6723
6724 \backslash
6725 synctex=1
6726 \end_layout
6727
6728 \end_inset
6729
6730  enables gzip compression.
6731  If your viewer does not support it, you should instead use 
6732 \begin_inset Flex Code
6733 status collapsed
6734
6735 \begin_layout Plain Layout
6736
6737 \backslash
6738 synctex=-1
6739 \end_layout
6740
6741 \end_inset
6742
6743 .
6744 \end_layout
6745
6746 \begin_layout Standard
6747 Please also note that including the 
6748 \begin_inset Flex Code
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 srcltx
6753 \end_layout
6754
6755 \end_inset
6756
6757  package or 
6758 \begin_inset Flex Code
6759 status collapsed
6760
6761 \begin_layout Plain Layout
6762 src-specials
6763 \end_layout
6764
6765 \end_inset
6766
6767  sometimes has an undesired impact on the typesetting.
6768  Thus, you should switch output synchronization off for the final typesetting
6769  if you use the 
6770 \begin_inset Flex Code
6771 status collapsed
6772
6773 \begin_layout Plain Layout
6774 srcltx
6775 \end_layout
6776
6777 \end_inset
6778
6779  package or 
6780 \begin_inset Flex Code
6781 status collapsed
6782
6783 \begin_layout Plain Layout
6784 src-specials
6785 \end_layout
6786
6787 \end_inset
6788
6789 .
6790  
6791 \end_layout
6792
6793 \begin_layout Standard
6794 In case you need some more special settings that are not covered by the
6795  automatic settings, read the next section about how to set up output synchroniz
6796 ation manually.
6797  If the automatic setup suits your needs, you can readily jump to section
6798 \begin_inset space ~
6799 \end_inset
6800
6801
6802 \begin_inset CommandInset ref
6803 LatexCommand ref
6804 reference "subsec:configuring-viewers"
6805
6806 \end_inset
6807
6808 , where the necessary configuration steps in your viewer â€“ needed both with
6809  the automatic and the manual setup â€“ are described.
6810 \end_layout
6811
6812 \begin_layout Subsection
6813 Manual setup
6814 \end_layout
6815
6816 \begin_layout Standard
6817 \SpecialChar LaTeX
6818  provides several different methods for reverse search.
6819  Some are built-in in the 
6820 \begin_inset Flex Code
6821 status collapsed
6822
6823 \begin_layout Plain Layout
6824 latex/pdflatex
6825 \end_layout
6826
6827 \end_inset
6828
6829  program, some are provided by external packages.
6830  Your choice depends on whether your \SpecialChar LaTeX
6831  distribution already provides a given
6832  method (the built-in methods are rather new) and whether your viewer can
6833  cope with it.
6834  The available methods are described in the following.
6835 \end_layout
6836
6837 \begin_layout Subsubsection*
6838 Built-in DVI-search via src-specials (DVI only) 
6839 \end_layout
6840
6841 \begin_layout Standard
6842 This method provides the DVI file with the necessary information for reverse
6843  search.
6844  It is available in \SpecialChar LaTeX
6845  since quite some time (any somewhat recent \SpecialChar LaTeX
6846  distribution
6847  should include it), and it works reliably.
6848  To enable it, change the 
6849 \begin_inset Flex Noun
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 La
6854 \family sans
6855 TeX
6856 \family default
6857  (plain)->DVI
6858 \end_layout
6859
6860 \end_inset
6861
6862  or 
6863 \begin_inset Flex Noun
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 La
6868 \family sans
6869 TeX
6870 \family default
6871  (plain)->DraftDVI
6872 \end_layout
6873
6874 \end_inset
6875
6876  converter in 
6877 \begin_inset Flex Noun
6878 status collapsed
6879
6880 \begin_layout Plain Layout
6881 Preferences\SpecialChar menuseparator
6882 File Handling\SpecialChar menuseparator
6883 Converters
6884 \end_layout
6885
6886 \end_inset
6887
6888  to 
6889 \begin_inset Flex Code
6890 status collapsed
6891
6892 \begin_layout Plain Layout
6893 latex -src-specials $$i
6894 \end_layout
6895
6896 \end_inset
6897
6898 .
6899  If this doesn't work, check if your \SpecialChar TeX
6900  engine needs different options (the
6901  syntax might differ in some distributions).
6902 \end_layout
6903
6904 \begin_layout Subsubsection*
6905 External Packages (PDFSync and scrltx) 
6906 \end_layout
6907
6908 \begin_layout Standard
6909 The packages 
6910 \emph on
6911 pdfsync
6912 \emph default
6913  and 
6914 \emph on
6915 scrltx
6916 \emph default
6917  provide reverse search facility for PDF output (via pdflatex) and DVI output,
6918  respectively.
6919  In order to enable it, load the packages in the \SpecialChar LyX
6920  preamble: 
6921 \end_layout
6922
6923 \begin_layout Itemize
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928
6929 \backslash
6930 usepackage{pdfsync}
6931 \end_layout
6932
6933 \end_inset
6934
6935  for reverse PDF search,
6936 \end_layout
6937
6938 \begin_layout Itemize
6939 \begin_inset Flex Code
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943
6944 \backslash
6945 usepackage[active]{srcltx}
6946 \end_layout
6947
6948 \end_inset
6949
6950  for reverse DVI search.
6951 \end_layout
6952
6953 \begin_layout Standard
6954 If you want to be able to perform both DVI and PDF reverse searches, you
6955  can also insert in the preamble the following lines
6956 \end_layout
6957
6958 \begin_layout LyX-Code
6959
6960 \backslash
6961 usepackage{ifpdf}
6962 \begin_inset Newline newline
6963 \end_inset
6964
6965
6966 \backslash
6967 ifpdf
6968 \begin_inset Newline newline
6969 \end_inset
6970
6971   
6972 \backslash
6973 usepackage{pdfsync}
6974 \begin_inset Newline newline
6975 \end_inset
6976
6977
6978 \backslash
6979 else
6980 \begin_inset Newline newline
6981 \end_inset
6982
6983   
6984 \backslash
6985 usepackage[active]{srcltx}
6986 \begin_inset Newline newline
6987 \end_inset
6988
6989
6990 \backslash
6991 fi
6992 \end_layout
6993
6994 \begin_layout Standard
6995 This way, you can preview the file as either DVI or PDF (pdflatex) and the
6996  right package will be used.
6997 \end_layout
6998
6999 \begin_layout Standard
7000 Note that PDFSync might affect the output layout of your document.
7001  It is therefore advised to disable PDFsync for final documents.
7002 \end_layout
7003
7004 \begin_layout Subsubsection*
7005 Built-in reverse search via Sync\SpecialChar TeX
7006  (DVI and PDF) 
7007 \end_layout
7008
7009 \begin_layout Standard
7010 Recent versions of 
7011 \begin_inset Flex Code
7012 status collapsed
7013
7014 \begin_layout Plain Layout
7015 (pdf)latex
7016 \end_layout
7017
7018 \end_inset
7019
7020  have built-in support for both PDF and DVI reverse search.
7021  This so-called 
7022 \emph on
7023 Sync\SpecialChar TeX
7024
7025 \emph default
7026  facility is basically the result of the integration of the PDFSync package
7027  to the pdftex program and its merge with the 
7028 \emph on
7029 scr-specials
7030 \emph default
7031  approach.
7032  You need at least \SpecialChar TeX
7033 Live 2008 or a recent Mik\SpecialChar TeX
7034  distribution in order to use
7035  it.
7036 \begin_inset Foot
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 For some reason, Mik\SpecialChar TeX
7041  does not understand/obey the command \SpecialChar LyX
7042  inserts into
7043  the preamble when you check the "Enable Forward/Reverse Search" button
7044  in the toolbar and does not generate the necessary info.
7045 \end_layout
7046
7047 \begin_layout Plain Layout
7048 The generation of the required info can be forced by changing the converter
7049  "\SpecialChar LaTeX
7050  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7051  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7052  the -synctex=1 switch).
7053 \end_layout
7054
7055 \end_inset
7056
7057  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7058  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7059  already provide Sync\SpecialChar TeX
7060  support.
7061 \end_layout
7062
7063 \begin_layout Standard
7064 To enable Sync\SpecialChar TeX
7065  for DVI output, change the 
7066 \begin_inset Flex Noun
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 La
7071 \family sans
7072 TeX
7073 \family default
7074  (plain) -> DVI
7075 \end_layout
7076
7077 \end_inset
7078
7079  or 
7080 \begin_inset Flex Noun
7081 status collapsed
7082
7083 \begin_layout Plain Layout
7084 La
7085 \family sans
7086 TeX
7087 \family default
7088  (plain) -> DraftDVI
7089 \end_layout
7090
7091 \end_inset
7092
7093  converter in 
7094 \begin_inset Flex Noun
7095 status collapsed
7096
7097 \begin_layout Plain Layout
7098 Preferences\SpecialChar menuseparator
7099 File Handling\SpecialChar menuseparator
7100 Converters
7101 \end_layout
7102
7103 \end_inset
7104
7105  to 
7106 \begin_inset Flex Code
7107 status collapsed
7108
7109 \begin_layout Plain Layout
7110 latex -synctex=1 $$i
7111 \end_layout
7112
7113 \end_inset
7114
7115 , and for PDF output, change the 
7116 \begin_inset Flex Noun
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 La
7121 \family sans
7122 TeX
7123 \family default
7124  (pdflatex) -> PDF (pdflatex)
7125 \end_layout
7126
7127 \end_inset
7128
7129  converter to 
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 pdflatex -synctex=1 $$i
7135 \end_layout
7136
7137 \end_inset
7138
7139 .
7140  Should your viewer not be considered in the following description, or in
7141  case of missing success, please check the documentation of your viewer
7142  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7143 .
7144 \begin_inset Foot
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 Note that the option 
7149 \begin_inset Flex Code
7150 status collapsed
7151
7152 \begin_layout Plain Layout
7153 -synctex=1
7154 \end_layout
7155
7156 \end_inset
7157
7158  option enables gzip compression.
7159  If your viewer does not support it, you should instead use 
7160 \begin_inset Flex Code
7161 status collapsed
7162
7163 \begin_layout Plain Layout
7164 -synctex=-1
7165 \end_layout
7166
7167 \end_inset
7168
7169 .
7170 \end_layout
7171
7172 \end_inset
7173
7174
7175 \end_layout
7176
7177 \begin_layout Subsection
7178 Configuring and using specific viewers
7179 \begin_inset CommandInset label
7180 LatexCommand label
7181 name "subsec:configuring-viewers"
7182
7183 \end_inset
7184
7185
7186 \end_layout
7187
7188 \begin_layout Subsubsection*
7189 Xdvi (all platforms)
7190 \end_layout
7191
7192 \begin_layout Standard
7193 If you use 
7194 \begin_inset Flex Code
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198 xdvi
7199 \end_layout
7200
7201 \end_inset
7202
7203 , you don't need to do anything else for performing a reverse DVI search,
7204  as \SpecialChar LyX
7205  already provides the necessary hooks for automatically using the 
7206 \begin_inset Flex Code
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 lyxclient
7211 \end_layout
7212
7213 \end_inset
7214
7215  program.
7216  Just setup your document as described above (reverse search is triggered
7217  by Ctrl-click or Alt-click on Mac OSX, respectively).
7218 \end_layout
7219
7220 \begin_layout Standard
7221 However, if for whatever reason you want to use the named pipe instead of
7222  the socket for communicating with \SpecialChar LyX
7223 , simply change the DVI viewer in 
7224 \begin_inset Flex Noun
7225 status collapsed
7226
7227 \begin_layout Plain Layout
7228 Preferences\SpecialChar menuseparator
7229 File Handling\SpecialChar menuseparator
7230 File formats
7231 \end_layout
7232
7233 \end_inset
7234
7235  to
7236 \begin_inset Foot
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 On Mac OSX you have to use 
7241 \begin_inset Flex Code
7242 status collapsed
7243
7244 \begin_layout Plain Layout
7245 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7246 \end_layout
7247
7248 \end_inset
7249
7250
7251 \end_layout
7252
7253 \end_inset
7254
7255  
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 xdvi -editor "lyxeditor.sh %f %l"
7261 \end_layout
7262
7263 \end_inset
7264
7265 , where 
7266 \begin_inset Flex Code
7267 status collapsed
7268
7269 \begin_layout Plain Layout
7270 lyxeditor.sh
7271 \end_layout
7272
7273 \end_inset
7274
7275  is a suitable script.
7276  For example, a minimal shell script is the following one:
7277 \end_layout
7278
7279 \begin_layout LyX-Code
7280 #!/bin/sh
7281 \begin_inset Newline newline
7282 \end_inset
7283
7284 LYXPIPE="/path/to/lyxpipe"
7285 \begin_inset Newline newline
7286 \end_inset
7287
7288 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7289 \begin_inset Newline newline
7290 \end_inset
7291
7292 echo "$COMMAND" > "${LYXPIPE}".in || exit
7293 \begin_inset Newline newline
7294 \end_inset
7295
7296 read TMP < "${LYXPIPE}".out || exit
7297 \end_layout
7298
7299 \begin_layout Standard
7300 where 
7301 \begin_inset Flex Code
7302 status collapsed
7303
7304 \begin_layout Plain Layout
7305 /path/to/lyxpipe
7306 \end_layout
7307
7308 \end_inset
7309
7310  is the LyXServer pipe path specified in 
7311 \begin_inset Flex Noun
7312 status collapsed
7313
7314 \begin_layout Plain Layout
7315 Preferences\SpecialChar menuseparator
7316 Paths
7317 \end_layout
7318
7319 \end_inset
7320
7321 .
7322 \begin_inset Foot
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 In the 
7327 \begin_inset Flex Code
7328 status collapsed
7329
7330 \begin_layout Plain Layout
7331 development/tools
7332 \end_layout
7333
7334 \end_inset
7335
7336  folder of a source distribution you can find a 
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341 lyxeditor
7342 \end_layout
7343
7344 \end_inset
7345
7346  script which is able to locate the 
7347 \emph on
7348 lyxpipe
7349 \emph default
7350  based on your preferences.
7351 \end_layout
7352
7353 \end_inset
7354
7355
7356 \end_layout
7357
7358 \begin_layout Subsubsection*
7359 MacDviX (Mac OSX)
7360 \end_layout
7361
7362 \begin_layout Standard
7363 At the end of 
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 /Applications/MacDviX_Folder/calleditor.script
7369 \end_layout
7370
7371 \end_inset
7372
7373 , add the following lines:
7374 \end_layout
7375
7376 \begin_layout LyX-Code
7377 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7378 \begin_inset Newline newline
7379 \end_inset
7380
7381 exit 1
7382 \end_layout
7383
7384 \begin_layout Standard
7385 Modify the lines accordingly if you install \SpecialChar LyX
7386  somewhere else than in the
7387  Applications folder.
7388 \end_layout
7389
7390 \begin_layout Standard
7391 Reverse search is triggered by Alt-click (OPTION-click).
7392 \end_layout
7393
7394 \begin_layout Subsubsection*
7395 Skim (Mac OSX)
7396 \end_layout
7397
7398 \begin_layout Standard
7399 Enter 
7400 \begin_inset Flex Code
7401 status collapsed
7402
7403 \begin_layout Plain Layout
7404 open -a Skim.app $$i
7405 \end_layout
7406
7407 \end_inset
7408
7409  to the viewer setting in 
7410 \begin_inset Flex Noun
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 Preferences\SpecialChar menuseparator
7415 File Handling\SpecialChar menuseparator
7416 File formats\SpecialChar menuseparator
7417 PDF (pdflatex)
7418 \end_layout
7419
7420 \end_inset
7421
7422 , and then in 
7423 \begin_inset Flex Noun
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 Skim\SpecialChar menuseparator
7428 Preferences\SpecialChar menuseparator
7429 Sync
7430 \end_layout
7431
7432 \end_inset
7433
7434  choose 
7435 \begin_inset Flex Noun
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 custom
7440 \end_layout
7441
7442 \end_inset
7443
7444  preset and enter command 
7445 \begin_inset Flex Noun
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 /Applications/\SpecialChar LyX
7450 .app/Contents/MacOS/lyxeditor
7451 \end_layout
7452
7453 \end_inset
7454
7455 .
7456 \end_layout
7457
7458 \begin_layout Standard
7459 Reverse search is triggered by COMMAND-SHIFT-click
7460 \end_layout
7461
7462 \begin_layout Subsubsection*
7463 Evince (GNOME)
7464 \end_layout
7465
7466 \begin_layout Standard
7467 Reverse search with evince does not work out of the box, but it can be achieved
7468  by means of some third party helper scripts.
7469  Please refer to 
7470 \begin_inset CommandInset href
7471 LatexCommand href
7472 target "http://wiki.lyx.org/LyX/SyncTeX"
7473 literal "false"
7474
7475 \end_inset
7476
7477  for details.
7478 \end_layout
7479
7480 \begin_layout Subsubsection*
7481 Okular (KDE)
7482 \end_layout
7483
7484 \begin_layout Standard
7485 Go to 
7486 \begin_inset Flex Noun
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 Settings\SpecialChar menuseparator
7491 Configure Okular\SpecialChar menuseparator
7492 Editor
7493 \end_layout
7494
7495 \end_inset
7496
7497  and select LyX
7498 \begin_inset Quotes erd
7499 \end_inset
7500
7501  as editor.
7502  This inserts the appropriate command (
7503 \begin_inset Flex Code
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507 lyxclient -g %f %l
7508 \end_layout
7509
7510 \end_inset
7511
7512 ).
7513 \end_layout
7514
7515 \begin_layout Standard
7516 Reverse search is triggered by SHIFT-click.
7517 \end_layout
7518
7519 \begin_layout Subsubsection*
7520 Qpdfview (Unix)
7521 \end_layout
7522
7523 \begin_layout Standard
7524 Qpdfview supports Sync\SpecialChar TeX
7525  since version 0.3.5.
7526  Go to 
7527 \begin_inset Flex Noun
7528 status collapsed
7529
7530 \begin_layout Plain Layout
7531 Edit\SpecialChar menuseparator
7532 Settings\SpecialChar menuseparator
7533 Behavior
7534 \end_layout
7535
7536 \end_inset
7537
7538 , click on the input field of the 
7539 \begin_inset Quotes eld
7540 \end_inset
7541
7542 Source editor
7543 \begin_inset Quotes erd
7544 \end_inset
7545
7546  item and add the command 
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551 lyxclient -g %1 %2
7552 \end_layout
7553
7554 \end_inset
7555
7556 .
7557 \end_layout
7558
7559 \begin_layout Standard
7560 Reverse search is triggered by double-click or, in more recent versions,
7561  by context menu.
7562 \end_layout
7563
7564 \begin_layout Subsubsection*
7565 YAP (Windows)
7566 \end_layout
7567
7568 \begin_layout Standard
7569 Launch yap, choose its 
7570 \begin_inset Flex Noun
7571 status collapsed
7572
7573 \begin_layout Plain Layout
7574 View\SpecialChar menuseparator
7575 Options
7576 \end_layout
7577
7578 \end_inset
7579
7580  menu and select the 
7581 \begin_inset Quotes eld
7582 \end_inset
7583
7584 Inverse DVI Search
7585 \begin_inset Quotes erd
7586 \end_inset
7587
7588  tab.
7589  Click on the 
7590 \begin_inset Quotes eld
7591 \end_inset
7592
7593 New\SpecialChar ldots
7594
7595 \begin_inset Quotes erd
7596 \end_inset
7597
7598  button and, in the window that opens, enter 
7599 \begin_inset Quotes eld
7600 \end_inset
7601
7602 \SpecialChar LyX
7603  Editor
7604 \begin_inset Quotes erd
7605 \end_inset
7606
7607  (or any other name you like) in the 
7608 \begin_inset Quotes eld
7609 \end_inset
7610
7611 Name:
7612 \begin_inset Quotes erd
7613 \end_inset
7614
7615  field.
7616  Now click on the button labeled 
7617 \begin_inset Quotes eld
7618 \end_inset
7619
7620 \SpecialChar ldots
7621
7622 \begin_inset Quotes erd
7623 \end_inset
7624
7625  to open a file dialog and navigate to the directory containing the batch
7626  file 
7627 \begin_inset Flex Code
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631 lyxeditor.bat
7632 \end_layout
7633
7634 \end_inset
7635
7636  (see below).
7637  Select 
7638 \begin_inset Flex Code
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 lyxeditor.bat
7643 \end_layout
7644
7645 \end_inset
7646
7647  and then specify the program arguments as 
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 %f %l
7653 \end_layout
7654
7655 \end_inset
7656
7657 .
7658  The 
7659 \begin_inset Flex Code
7660 status collapsed
7661
7662 \begin_layout Plain Layout
7663 lyxeditor.bat
7664 \end_layout
7665
7666 \end_inset
7667
7668  wrapper is used for communicating with \SpecialChar LyX
7669  through the 
7670 \emph on
7671 lyxpipe
7672 \emph default
7673  and is as follows:
7674 \end_layout
7675
7676 \begin_layout LyX-Code
7677 @echo off
7678 \begin_inset Newline newline
7679 \end_inset
7680
7681 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7682 \backslash
7683
7684 \backslash
7685 .
7686 \backslash
7687 pipe
7688 \backslash
7689 lyxpipe.in
7690 \begin_inset Newline newline
7691 \end_inset
7692
7693 type 
7694 \backslash
7695
7696 \backslash
7697 .
7698 \backslash
7699 pipe
7700 \backslash
7701 lyxpipe.out
7702 \end_layout
7703
7704 \begin_layout Standard
7705 Make sure that the \SpecialChar LyX
7706 Server pipe path you specified in \SpecialChar LyX
7707  is 
7708 \begin_inset Flex Code
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712
7713 \backslash
7714
7715 \backslash
7716 .
7717 \backslash
7718 pipe
7719 \backslash
7720 lyxpipe
7721 \end_layout
7722
7723 \end_inset
7724
7725 , otherwise change the 
7726 \begin_inset Flex Code
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730 lyxeditor.bat
7731 \end_layout
7732
7733 \end_inset
7734
7735  wrapper accordingly.
7736 \end_layout
7737
7738 \begin_layout Standard
7739 In yap, reverse search is triggered by double-click.
7740 \end_layout
7741
7742 \begin_layout Subsubsection*
7743 SumatraPDF (Windows)
7744 \end_layout
7745
7746 \begin_layout Standard
7747 In order to use SumatraPDF for inverse search, enter 
7748 \begin_inset Flex Code
7749 status collapsed
7750
7751 \begin_layout Plain Layout
7752 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
7753 \end_layout
7754
7755 \end_inset
7756
7757  in the viewer setting in 
7758 \begin_inset Flex Noun
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 Preferences\SpecialChar menuseparator
7763 File Handling\SpecialChar menuseparator
7764 File formats\SpecialChar menuseparator
7765 PDF (pdflatex)
7766 \end_layout
7767
7768 \end_inset
7769
7770 , where 
7771 \begin_inset Flex Code
7772 status collapsed
7773
7774 \begin_layout Plain Layout
7775 lyxeditor.bat
7776 \end_layout
7777
7778 \end_inset
7779
7780  is the previous wrapper.
7781  If SumatraPDF.exe is not in your command PATH, use its full file name.
7782 \end_layout
7783
7784 \begin_layout Standard
7785 Reverse search is triggered by double-click.
7786 \end_layout
7787
7788 \begin_layout Subsubsection*
7789 YAP (Cygwin)
7790 \end_layout
7791
7792 \begin_layout Standard
7793 First of all, make sure that yap is your default DVI viewer in the Windows
7794  environment, then launch it, choose its 
7795 \begin_inset Flex Noun
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 View\SpecialChar menuseparator
7800 Options
7801 \end_layout
7802
7803 \end_inset
7804
7805  menu and select the 
7806 \begin_inset Quotes eld
7807 \end_inset
7808
7809 Inverse DVI Search
7810 \begin_inset Quotes erd
7811 \end_inset
7812
7813  tab.
7814  Click on the 
7815 \begin_inset Quotes eld
7816 \end_inset
7817
7818 New\SpecialChar ldots
7819
7820 \begin_inset Quotes erd
7821 \end_inset
7822
7823  button and, in the window that opens, enter 
7824 \begin_inset Quotes eld
7825 \end_inset
7826
7827 \SpecialChar LyX
7828  Editor
7829 \begin_inset Quotes erd
7830 \end_inset
7831
7832  (or any other name you like) in the 
7833 \begin_inset Quotes eld
7834 \end_inset
7835
7836 Name:
7837 \begin_inset Quotes erd
7838 \end_inset
7839
7840  field.
7841  Now click on the button labeled 
7842 \begin_inset Quotes eld
7843 \end_inset
7844
7845 \SpecialChar ldots
7846
7847 \begin_inset Quotes erd
7848 \end_inset
7849
7850  to open a file dialog and navigate to the directory containing the 
7851 \begin_inset Flex Code
7852 status collapsed
7853
7854 \begin_layout Plain Layout
7855 lyxeditor.exe
7856 \end_layout
7857
7858 \end_inset
7859
7860  program (which is installed by default on Cygwin along with the \SpecialChar LyX
7861  executable).
7862  Select 
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 lyxeditor.exe
7868 \end_layout
7869
7870 \end_inset
7871
7872  and then specify the program arguments as 
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 -g %f %l
7878 \end_layout
7879
7880 \end_inset
7881
7882 .
7883  In this way, you will be using the 
7884 \emph on
7885 lyxsocket
7886 \emph default
7887  for communicating with \SpecialChar LyX
7888 .
7889  If, for whatever reason, you want to use the 
7890 \emph on
7891 lyxpipe
7892 \emph default
7893 , omit the 
7894 \begin_inset Flex Code
7895 status collapsed
7896
7897 \begin_layout Plain Layout
7898 -g
7899 \end_layout
7900
7901 \end_inset
7902
7903  option and be sure to specify the \SpecialChar LyX
7904 Server pipe path in the \SpecialChar LyX
7905  preferences.
7906 \end_layout
7907
7908 \begin_layout Standard
7909 In yap, reverse search is triggered by double-click.
7910 \end_layout
7911
7912 \begin_layout Subsubsection*
7913 SumatraPDF (Cygwin)
7914 \end_layout
7915
7916 \begin_layout Standard
7917 In order to use SumatraPDF for inverse search, enter 
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 SumatraPDF -inverse-search "lyxeditor -g %f %l"
7923 \end_layout
7924
7925 \end_inset
7926
7927  in the viewer setting in 
7928 \begin_inset Flex Noun
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932 Preferences\SpecialChar menuseparator
7933 File Handling\SpecialChar menuseparator
7934 File formats\SpecialChar menuseparator
7935 PDF (pdflatex)
7936 \end_layout
7937
7938 \end_inset
7939
7940 .
7941  If SumatraPDF.exe is not in your command PATH, use its full posix path.
7942  The 
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 -g
7948 \end_layout
7949
7950 \end_inset
7951
7952  enables communication via the 
7953 \emph on
7954 lyxsocket
7955 \emph default
7956 .
7957  Again, omit the 
7958 \begin_inset Flex Code
7959 status collapsed
7960
7961 \begin_layout Plain Layout
7962 -g
7963 \end_layout
7964
7965 \end_inset
7966
7967  option if you want to use the 
7968 \emph on
7969 lyxpipe
7970 \emph default
7971 , and be sure to specify the \SpecialChar LyX
7972 Server pipe path in the \SpecialChar LyX
7973  preferences.
7974 \end_layout
7975
7976 \begin_layout Standard
7977 Reverse search is triggered by double-click.
7978 \end_layout
7979
7980 \begin_layout Section
7981 Forward search
7982 \end_layout
7983
7984 \begin_layout Standard
7985 Forward search is, as the name implies, in a sense the 
7986 \begin_inset Quotes eld
7987 \end_inset
7988
7989 opposite
7990 \begin_inset Quotes erd
7991 \end_inset
7992
7993  of reverse search.
7994  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
7995 .
7996  If forward search is set up (as described in what follows), you can put
7997  the cursor anywhere in your \SpecialChar LyX
7998  document, and hit 
7999 \begin_inset Flex Noun
8000 status collapsed
8001
8002 \begin_layout Plain Layout
8003 Navigate\SpecialChar menuseparator
8004 Forward search
8005 \end_layout
8006
8007 \end_inset
8008
8009  (or select 
8010 \begin_inset Flex Noun
8011 status collapsed
8012
8013 \begin_layout Plain Layout
8014 Forward search
8015 \end_layout
8016
8017 \end_inset
8018
8019  in the context menu via right mouse click), and then the viewer will jump
8020  to that position as well.
8021  This implies, of course, that your viewer supports this function.
8022 \end_layout
8023
8024 \begin_layout Standard
8025 To make forward search possible, you first need to provide the generated
8026  output PDF/DVI file with additional information about the \SpecialChar TeX
8027  sources.
8028  This can be done via the methods described in the section 
8029 \begin_inset CommandInset ref
8030 LatexCommand ref
8031 reference "subsec:rev-search"
8032
8033 \end_inset
8034
8035 .
8036 \end_layout
8037
8038 \begin_layout Standard
8039 Additionally, you need to configure \SpecialChar LyX
8040  for using your viewers in 
8041 \begin_inset Flex Noun
8042 status collapsed
8043
8044 \begin_layout Plain Layout
8045 Tools\SpecialChar menuseparator
8046 Preferences\SpecialChar menuseparator
8047 Output\SpecialChar menuseparator
8048 General
8049 \end_layout
8050
8051 \end_inset
8052
8053 .
8054  We provide a range of tested configurations for some viewers, which you
8055  can select from the drop down list.
8056  If none of these configurations suits you, you have to find out and enter
8057  a suitable configuration yourself.
8058  The definition syntax uses the following placeholders:
8059 \end_layout
8060
8061 \begin_layout Itemize
8062 \noindent
8063 \begin_inset Flex Code
8064 status collapsed
8065
8066 \begin_layout Plain Layout
8067 $$n
8068 \end_layout
8069
8070 \end_inset
8071
8072 : row number
8073 \end_layout
8074
8075 \begin_layout Itemize
8076 \noindent
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 $$t
8082 \end_layout
8083
8084 \end_inset
8085
8086 : name of the (temporary) exported .tex file (without path)
8087 \end_layout
8088
8089 \begin_layout Itemize
8090 \noindent
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 $$f
8096 \end_layout
8097
8098 \end_inset
8099
8100 : name of the (temporary) exported .tex file (including path)
8101 \end_layout
8102
8103 \begin_layout Itemize
8104 \noindent
8105 \begin_inset Flex Code
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 $$o
8110 \end_layout
8111
8112 \end_inset
8113
8114 : name of the exported output file (either dvi or pdf, depending on which
8115  one exists in the temporary directory)
8116 \end_layout
8117
8118 \begin_layout Standard
8119 Note that only some of the viewers provide full and usable forward search
8120  functionality out of the box, among them yap, xdvi, okular
8121 \begin_inset Foot
8122 status collapsed
8123
8124 \begin_layout Plain Layout
8125 You might want to set 
8126 \begin_inset Flex Code
8127 status collapsed
8128
8129 \begin_layout Plain Layout
8130 okular â€“unique
8131 \end_layout
8132
8133 \end_inset
8134
8135  in 
8136 \begin_inset Flex Noun
8137 status collapsed
8138
8139 \begin_layout Plain Layout
8140 Tools\SpecialChar menuseparator
8141 Preferences\SpecialChar menuseparator
8142 File Handling\SpecialChar menuseparator
8143 File
8144 \begin_inset space ~
8145 \end_inset
8146
8147 Formats
8148 \end_layout
8149
8150 \end_inset
8151
8152
8153 \end_layout
8154
8155 \end_inset
8156
8157 , qpdfview, and SumatraPDF
8158 \begin_inset Foot
8159 status collapsed
8160
8161 \begin_layout Plain Layout
8162 SumatraPDF can also use DDE commands through the external program CMCDDE
8163  â€” downloadable from 
8164 \begin_inset CommandInset href
8165 LatexCommand href
8166 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8167 literal "false"
8168
8169 \end_inset
8170
8171
8172 \end_layout
8173
8174 \end_inset
8175
8176 .
8177  Others, such as evince
8178 \begin_inset Foot
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 Forward search with evince can be achieved by means of third party helper
8183  scripts.
8184  Please refer to 
8185 \begin_inset CommandInset href
8186 LatexCommand href
8187 target "http://wiki.lyx.org/LyX/SyncTeX"
8188 literal "false"
8189
8190 \end_inset
8191
8192  for details.
8193 \end_layout
8194
8195 \end_inset
8196
8197 , require some extra tools in order to use forward search.
8198  While many of the widespread PDF viewers (most notably Adobe Reader) do
8199  not support forward search at all, some other viewers â€“ e.
8200 \begin_inset space \thinspace{}
8201 \end_inset
8202
8203 g.
8204  xpdf â€“ allow at least to reload the document and jump to a specific page
8205  of the file, so you can at least navigate 
8206 \begin_inset Quotes eld
8207 \end_inset
8208
8209 near
8210 \begin_inset Quotes erd
8211 \end_inset
8212
8213 .
8214  This latter functionality is provided by an external call of synctex (see
8215  the predefined example configurations).
8216  
8217 \end_layout
8218
8219 \begin_layout Standard
8220 Forward search works both with DVI and PDF output.
8221  \SpecialChar LyX
8222  simply checks which preview format you have used before (i.
8223 \begin_inset space \thinspace{}
8224 \end_inset
8225
8226 e., which format is already there in the temporary directory) and chooses
8227  the appropriate configuration for the respective format.
8228 \end_layout
8229
8230 \begin_layout Chapter
8231 Special Document Classes
8232 \end_layout
8233
8234 \begin_layout Section
8235 A&A Paper
8236 \end_layout
8237
8238 \begin_layout Standard
8239 by 
8240 \noun on
8241 Peter Sütterlin
8242 \end_layout
8243
8244 \begin_layout Subsection
8245 Introduction
8246 \end_layout
8247
8248 \begin_layout Standard
8249 This section describes how \SpecialChar LyX
8250  can be used to write articles for submission
8251  to the scientific journal 
8252 \emph on
8253 Astronomy and Astrophysics
8254 \emph default
8255  (
8256 \begin_inset Flex URL
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260
8261 https://www.aanda.org/
8262 \end_layout
8263
8264 \end_inset
8265
8266 ) using Version 5.01 of the document class 
8267 \family typewriter
8268 aa.cls
8269 \family default
8270 .
8271  This package can be downloaded from the ftp site
8272 \end_layout
8273
8274 \begin_layout Standard
8275 \begin_inset VSpace medskip
8276 \end_inset
8277
8278
8279 \end_layout
8280
8281 \begin_layout Standard
8282 \align center
8283 \begin_inset Flex URL
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287
8288 ftp://ftp.edpsciences.org/pub/aa/readme.html
8289 \end_layout
8290
8291 \end_inset
8292
8293
8294 \end_layout
8295
8296 \begin_layout Standard
8297 \begin_inset VSpace medskip
8298 \end_inset
8299
8300
8301 \end_layout
8302
8303 \begin_layout Standard
8304 A manual comes together with that package, and this text is not meant to
8305  replace the original manual but is merely a short guide in how to realize
8306  the correct form of your paper.
8307  
8308 \end_layout
8309
8310 \begin_layout Standard
8311 Please note that the publisher of the journal was changed from Springer
8312  to EDP Sciences starting January 1, 2001.
8313  That change involved also some slight changes to the style files, namely
8314  the removal of the thesaurus command.
8315  The \SpecialChar LyX
8316  class aa supports the newest version of these style files, V 5.01.
8317  If you have an older version installed, please upgrade.
8318  For compatibility, the old (version 4) layout has been kept as 
8319 \family sans
8320 article (A&A V4)
8321 \family default
8322 .
8323  Please refer to the comments in 
8324 \family typewriter
8325 \SpecialChar LyX
8326 Dir/layouts/aapaper.layout
8327 \family default
8328 .
8329 \end_layout
8330
8331 \begin_layout Subsection
8332 Getting started
8333 \end_layout
8334
8335 \begin_layout Standard
8336 It is recommended you start from the example template distributed with \SpecialChar LyX
8337 .
8338  If you are not using a template, note the following settings:
8339 \end_layout
8340
8341 \begin_layout Itemize
8342 Select 
8343 \family sans
8344 article (A&A)
8345 \family default
8346  in the 
8347 \family sans
8348 Document\SpecialChar menuseparator
8349 Settings
8350 \family default
8351  dialog (OK, that one was obvious).
8352 \end_layout
8353
8354 \begin_layout Itemize
8355 Don't change the option 
8356 \family sans
8357 Page
8358 \begin_inset space ~
8359 \end_inset
8360
8361 style
8362 \family default
8363 : Leave it set to 
8364 \family sans
8365 default
8366 \family default
8367 .
8368  The whole layout is done by the macros, you shouldn't change anything.
8369 \end_layout
8370
8371 \begin_layout Subsection
8372 The header block
8373 \end_layout
8374
8375 \begin_layout Standard
8376 First thing to enter is the header information.
8377  It consists of seven entries, of which some are optional.
8378  They are
8379 \end_layout
8380
8381 \begin_layout Itemize
8382
8383 \family sans
8384 Title
8385 \family default
8386 : [required] 
8387 \end_layout
8388
8389 \begin_layout Itemize
8390
8391 \family sans
8392 Subtitle
8393 \family default
8394 : [optional] 
8395 \end_layout
8396
8397 \begin_layout Itemize
8398
8399 \family sans
8400 Author
8401 \family default
8402 : [required]
8403 \end_layout
8404
8405 \begin_layout Itemize
8406
8407 \family sans
8408 Address
8409 \family default
8410 : [required]
8411 \end_layout
8412
8413 \begin_layout Itemize
8414
8415 \family sans
8416 Offprints
8417 \family default
8418 : [optional] if more than one author: whom to contact for offprint requests.
8419 \end_layout
8420
8421 \begin_layout Itemize
8422
8423 \family sans
8424 Mail
8425 \family default
8426 : [optional] mail address for contacts.
8427 \end_layout
8428
8429 \begin_layout Itemize
8430
8431 \family sans
8432 Date
8433 \family default
8434 : [required].
8435  Suggested format is 
8436 \family typewriter
8437 Received: <date>; Accepted <date> 
8438 \end_layout
8439
8440 \begin_layout Standard
8441 There is no need to issue the 
8442 \family typewriter
8443
8444 \backslash
8445 maketitle
8446 \family default
8447  command, this is done automatically by \SpecialChar LyX
8448  when the header is finished.
8449  Although the order of the single header entries doesn't matter it is advised
8450  to keep the above sequence, just to get the best optics and meets the layout
8451  of the real document.
8452 \end_layout
8453
8454 \begin_layout Standard
8455 If you want to place footnotes in the header block, e.
8456 \begin_inset space \thinspace{}
8457 \end_inset
8458
8459 g.
8460 \begin_inset space \space{}
8461 \end_inset
8462
8463 to state your present address, just use the standard footnote via the menu
8464  
8465 \family sans
8466 Insert\SpecialChar menuseparator
8467 Footnote.
8468
8469 \family default
8470  \SpecialChar LyX
8471  will automagically use the term 
8472 \family typewriter
8473
8474 \backslash
8475 thanks{}
8476 \family default
8477  in that case.
8478 \end_layout
8479
8480 \begin_layout Standard
8481 Under 
8482 \family sans
8483 Edit\SpecialChar menuseparator
8484 Text Style
8485 \family default
8486 , you'll find two insets which are relevant for the titling:
8487 \end_layout
8488
8489 \begin_layout Itemize
8490
8491 \family sans
8492 Institute
8493 \family typewriter
8494  
8495 \family default
8496 to mark corresponding author\SpecialChar breakableslash
8497 institute pairs.
8498  The institutes are numbered sequentially as they appear in the 
8499 \family sans
8500 Address
8501 \family default
8502  field, so you have to put a marker to each author.
8503 \end_layout
8504
8505 \begin_layout Itemize
8506
8507 \family sans
8508 Email
8509 \family default
8510  to supply an email address for fast contact.
8511 \end_layout
8512
8513 \begin_layout Standard
8514 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8515  command that
8516  has no counterpart in \SpecialChar LyX
8517 :
8518 \end_layout
8519
8520 \begin_layout Itemize
8521
8522 \family typewriter
8523
8524 \backslash
8525 and
8526 \family default
8527  to separate different names for more than one author and institute, respectivel
8528 y.
8529 \end_layout
8530
8531 \begin_layout Standard
8532 The appropriate command has to be entered in \SpecialChar LyX
8533  and marked as \SpecialChar LaTeX
8534  code.
8535  See the examples.
8536  
8537 \end_layout
8538
8539 \begin_layout Subsection
8540 The abstract
8541 \end_layout
8542
8543 \begin_layout Standard
8544 The abstract should immediately follow the header block.
8545  With version 5 the abstract environment was changed to a command, and there
8546  is now a resctriction to only one paragraph.
8547  In addition, it should contain an entry with the keywords.
8548  This is done via the paragraph style 
8549 \family sans
8550 Keywords
8551 \family default
8552 .
8553  Refer to the example paper.
8554 \end_layout
8555
8556 \begin_layout Subsection
8557 Supported environments
8558 \end_layout
8559
8560 \begin_layout Standard
8561 The A&A paper layout supports the following environments for structuring
8562  your text:
8563 \end_layout
8564
8565 \begin_layout Itemize
8566
8567 \family sans
8568 Standard
8569 \end_layout
8570
8571 \begin_layout Itemize
8572
8573 \family sans
8574 Section
8575 \end_layout
8576
8577 \begin_layout Itemize
8578
8579 \family sans
8580 Subsection
8581 \end_layout
8582
8583 \begin_layout Itemize
8584
8585 \family sans
8586 Subsubsection
8587 \end_layout
8588
8589 \begin_layout Itemize
8590
8591 \family sans
8592 Itemize
8593 \end_layout
8594
8595 \begin_layout Itemize
8596
8597 \family sans
8598 Enumerate
8599 \end_layout
8600
8601 \begin_layout Itemize
8602
8603 \family sans
8604 Description
8605 \end_layout
8606
8607 \begin_layout Itemize
8608
8609 \family sans
8610 Caption
8611 \end_layout
8612
8613 \begin_layout Itemize
8614
8615 \family sans
8616 Abstract
8617 \end_layout
8618
8619 \begin_layout Itemize
8620
8621 \family sans
8622 Acknowledgment
8623 \end_layout
8624
8625 \begin_layout Itemize
8626
8627 \family sans
8628 Bibliography
8629 \end_layout
8630
8631 \begin_layout Itemize
8632
8633 \family sans
8634 \SpecialChar LaTeX
8635
8636 \end_layout
8637
8638 \begin_layout Subsection
8639 Commands not supported by \SpecialChar LyX
8640
8641 \end_layout
8642
8643 \begin_layout Standard
8644 Some commands are not yet supported by the 
8645 \family sans
8646 paper (A&A)
8647 \family default
8648  layout for \SpecialChar LyX
8649 .
8650  Some have already been mentioned.
8651  For the sake of completeness, they are listed all together here:
8652 \end_layout
8653
8654 \begin_layout Itemize
8655
8656 \family typewriter
8657
8658 \backslash
8659 and
8660 \end_layout
8661
8662 \begin_layout Itemize
8663
8664 \family typewriter
8665
8666 \backslash
8667 authorrunning
8668 \end_layout
8669
8670 \begin_layout Itemize
8671
8672 \family typewriter
8673
8674 \backslash
8675 object{}
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \family typewriter
8681
8682 \backslash
8683 titlerunning{}
8684 \end_layout
8685
8686 \begin_layout Standard
8687 If you want to use any of these commands, you have to enter them yourself.
8688  
8689 \series bold
8690 Do not forget to mark them as \SpecialChar LaTeX
8691  code!
8692 \end_layout
8693
8694 \begin_layout Subsection
8695 Figure and Table Floats
8696 \end_layout
8697
8698 \begin_layout Standard
8699 \SpecialChar LyX
8700  provides support for the necessary float environments 
8701 \family sans
8702 figure, figure*, table
8703 \family default
8704  and 
8705 \family sans
8706 table*
8707 \family default
8708 , therefore we won't tell much about it here.
8709  Refer to the 
8710 \emph on
8711 User's
8712 \begin_inset space ~
8713 \end_inset
8714
8715 Guide
8716 \emph default
8717 .
8718  Just remember that tables should be left-aligned.
8719  For that, select the table and change the alignment in 
8720 \family sans
8721 Edit\SpecialChar menuseparator
8722 Paragraph
8723 \begin_inset space ~
8724 \end_inset
8725
8726 Settings.
8727 \end_layout
8728
8729 \begin_layout Standard
8730 There is only one special thing: the figures with caption besides the figure.
8731  To create such a figure, you have to do the following:
8732 \end_layout
8733
8734 \begin_layout Enumerate
8735 Create a wide figure float: 
8736 \family sans
8737 Insert\SpecialChar menuseparator
8738 Float\SpecialChar menuseparator
8739 Figure
8740 \family default
8741 , then right click in the figure and select 
8742 \family sans
8743 Span
8744 \begin_inset space ~
8745 \end_inset
8746
8747 columns
8748 \family default
8749 .
8750 \end_layout
8751
8752 \begin_layout Enumerate
8753 Enter your caption text.
8754 \end_layout
8755
8756 \begin_layout Enumerate
8757 Press 
8758 \family sans
8759 Return
8760 \family default
8761  to move the cursor above the caption.
8762 \end_layout
8763
8764 \begin_layout Enumerate
8765 Insert your figure
8766 \end_layout
8767
8768 \begin_layout Enumerate
8769 Position the cursor behind the figure and insert a horizontal fill: 
8770 \family sans
8771 Insert\SpecialChar menuseparator
8772 Special
8773 \begin_inset space ~
8774 \end_inset
8775
8776 Character\SpecialChar menuseparator
8777 Horizontal
8778 \begin_inset space ~
8779 \end_inset
8780
8781 Fill
8782 \family default
8783 .
8784 \end_layout
8785
8786 \begin_layout Enumerate
8787 Switch to \SpecialChar LaTeX
8788  mode: 
8789 \family sans
8790 M-c
8791 \begin_inset space ~
8792 \end_inset
8793
8794 t
8795 \family default
8796 .
8797 \end_layout
8798
8799 \begin_layout Enumerate
8800 Enter 
8801 \family typewriter
8802
8803 \backslash
8804 parbox[b]{55mm}{
8805 \family default
8806 .
8807  
8808 \series bold
8809 Do not close the brace!
8810 \end_layout
8811
8812 \begin_layout Enumerate
8813 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
8814  mode and insert
8815  the closing brace: 
8816 \family sans
8817 M-c
8818 \begin_inset space ~
8819 \end_inset
8820
8821 t
8822 \family default
8823  
8824 \family typewriter
8825 }
8826 \family default
8827 .
8828 \end_layout
8829
8830 \begin_layout Standard
8831 Also, refer to the figures in the example paper.
8832 \end_layout
8833
8834 \begin_layout Subsection
8835 Referee layout
8836 \end_layout
8837
8838 \begin_layout Standard
8839 For submission, the paper has to be formated in a special double-spacing
8840  layout.
8841  For this purpose, you have to give the option 
8842 \family typewriter
8843 referee
8844 \family default
8845  to the documentclass.
8846  This must be done using the custom class options field in the 
8847 \family sans
8848 Document\SpecialChar menuseparator
8849 Settings
8850 \family default
8851  dialog.
8852  Just enter the string 
8853 \family typewriter
8854 referee
8855 \family default
8856  there.
8857 \end_layout
8858
8859 \begin_layout Subsection
8860 The example paper
8861 \end_layout
8862
8863 \begin_layout Standard
8864 The 
8865 \family sans
8866 Examples
8867 \family default
8868  directory contains an example paper written with \SpecialChar LyX
8869 .
8870  It is the example paper from the original macro package, translated to
8871  \SpecialChar LyX
8872 .
8873  Use it for inspiration, and compare the original \SpecialChar LaTeX
8874  code with \SpecialChar LyX
8875  way of writing.
8876 \end_layout
8877
8878 \begin_layout Section
8879 AAS\SpecialChar TeX
8880
8881 \end_layout
8882
8883 \begin_layout Standard
8884 by 
8885 \noun on
8886 Mike Ressler
8887 \end_layout
8888
8889 \begin_layout Subsection
8890 Introduction
8891 \end_layout
8892
8893 \begin_layout Standard
8894 AAS\SpecialChar TeX
8895  is a set of macros produced by the American Astronomical Society to
8896  facilitate electronic manuscript submission to the three journals they
8897  publish: the Astrophysical Journal (including the Letters and Supplement),
8898  the Astronomical Journal, and the Publications of the Astronomical Society
8899  of the Pacific.
8900  \SpecialChar LyX
8901  has proven to be an excellent tool for generating these documents, especially
8902  given its equation, citation, and figure handling capabilities.
8903  \SpecialChar LyX
8904  requires version 5.0 (or higher) of these macros; preferably 6.0, which
8905  is the version described here, or higher.
8906  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8907 2.09 and are fundamentally
8908  incompatible with \SpecialChar LyX
8909 .
8910  The AAS\SpecialChar TeX
8911  package may be downloaded from the AAS\SpecialChar TeX
8912  Web site
8913 \end_layout
8914
8915 \begin_layout Standard
8916 \begin_inset VSpace medskip
8917 \end_inset
8918
8919
8920 \end_layout
8921
8922 \begin_layout Standard
8923 \align center
8924 \begin_inset Flex URL
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928
8929 https://aas.org/aastex/aastex-downloads
8930 \end_layout
8931
8932 \end_inset
8933
8934
8935 \end_layout
8936
8937 \begin_layout Standard
8938 \begin_inset VSpace medskip
8939 \end_inset
8940
8941
8942 \end_layout
8943
8944 \begin_layout Standard
8945 A complete user guide is contained in that package and you should familiarize
8946  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
8947 .
8948  \SpecialChar LyX
8949  will not reduce the need to figure out all the AAS\SpecialChar TeX
8950  commands, it will only
8951  reduce the drudgery of typing everything in.
8952  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8953  document conforms
8954  completely to the requirements of the journal to which you are submitting
8955  your paper.
8956 \end_layout
8957
8958 \begin_layout Subsection
8959 Starting a New Paper
8960 \end_layout
8961
8962 \begin_layout Standard
8963 I strongly suggest that you start with the AAS\SpecialChar TeX
8964  template file.
8965  Click on 
8966 \family sans
8967 File\SpecialChar menuseparator
8968 New from
8969 \family default
8970  
8971 \family sans
8972 Template
8973 \family default
8974 , enter the new file name, then choose the 
8975 \family typewriter
8976 aastex6.lyx
8977 \family default
8978  template.
8979  This will show the most common fields found in a manuscript.
8980  Simply overwrite the existing text (including the brackets, 
8981 \family typewriter
8982 <>
8983 \family default
8984 ) with the correct information.
8985  Many of the AAS\SpecialChar TeX
8986  commands and environments can be implemented directly in
8987  \SpecialChar LyX
8988 , but some cannot.
8989  For commands such as these, the \SpecialChar LaTeX
8990  code must be entered directly and marked
8991  as such.
8992  Such commands are referred to as \SpecialChar TeX
8993  code, or Evil Red Text.
8994  I tried to minimize the amount of \SpecialChar TeX
8995  code needed in an AAS\SpecialChar TeX
8996  document.
8997 \end_layout
8998
8999 \begin_layout Subsection
9000 Finishing Your Paper
9001 \end_layout
9002
9003 \begin_layout Standard
9004 When the paper is finished to your satisfaction and previews/prints correctly,
9005  there are a few 
9006 \begin_inset Quotes eld
9007 \end_inset
9008
9009 postprocessing
9010 \begin_inset Quotes erd
9011 \end_inset
9012
9013  actions which need to be done before you submit it to the journals.
9014  
9015 \end_layout
9016
9017 \begin_layout Enumerate
9018 Export your paper as a \SpecialChar LaTeX
9019  file (
9020 \family sans
9021 File\SpecialChar menuseparator
9022 Export\SpecialChar menuseparator
9023 \SpecialChar LaTeX
9024
9025 \family default
9026 ).
9027  
9028 \end_layout
9029
9030 \begin_layout Enumerate
9031 Edit the resulting 
9032 \family typewriter
9033 .tex
9034 \family default
9035  file with your favorite text editor
9036 \end_layout
9037
9038 \begin_deeper
9039 \begin_layout Enumerate
9040 remove the comment lines before the 
9041 \family typewriter
9042
9043 \backslash
9044 documentclass
9045 \family default
9046  command
9047 \end_layout
9048
9049 \begin_layout Enumerate
9050 remove the 
9051 \family typewriter
9052
9053 \backslash
9054 usepackage...{fontenc}
9055 \family default
9056  line if it appears (usually just after 
9057 \family typewriter
9058
9059 \backslash
9060 documentclass
9061 \family default
9062 }; also remove the 
9063 \family typewriter
9064
9065 \backslash
9066 secnumdepth
9067 \family default
9068  line if it appears.
9069 \end_layout
9070
9071 \begin_layout Enumerate
9072 remove everything between (and including) the 
9073 \family typewriter
9074
9075 \backslash
9076 makeatletter
9077 \family default
9078  and 
9079 \family typewriter
9080
9081 \backslash
9082 makeatother
9083 \family default
9084  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9085  preamble
9086  (which should appear immediately after the 
9087 \begin_inset Quotes eld
9088 \end_inset
9089
9090 User specified \SpecialChar LaTeX
9091  commands
9092 \begin_inset Quotes erd
9093 \end_inset
9094
9095  comment in the 
9096 \family typewriter
9097 .tex
9098 \family default
9099  file).
9100 \end_layout
9101
9102 \end_deeper
9103 \begin_layout Enumerate
9104 Run the resulting file through \SpecialChar LaTeX
9105  to make sure it still processes correctly.
9106 \end_layout
9107
9108 \begin_layout Enumerate
9109 Reread the journal requirements to make sure your filenames and formats
9110  are correct.
9111 \end_layout
9112
9113 \begin_layout Enumerate
9114 Submit it.
9115 \end_layout
9116
9117 \begin_layout Subsection
9118 Comments On Specific Commands
9119 \end_layout
9120
9121 \begin_layout Standard
9122 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9123  commands: the
9124  AAS\SpecialChar TeX
9125  User Guide (
9126 \family typewriter
9127 aasguide.tex
9128 \family default
9129 ) gives a good description of each.
9130  Thus it's probably easiest for me to go down the list as found in the guide
9131  and offer comments where necessary.
9132  So let's begin \SpecialChar ldots
9133
9134 \end_layout
9135
9136 \begin_layout Subsubsection
9137 Things that work as expected
9138 \end_layout
9139
9140 \begin_layout Standard
9141 Because they work as you might expect, I simply list them and the section
9142  they are found in: 
9143 \family typewriter
9144
9145 \backslash
9146 documentclass
9147 \family default
9148  (2.1.1), 
9149 \family typewriter
9150
9151 \backslash
9152 begin{document}
9153 \family default
9154  (2.2), 
9155 \family typewriter
9156
9157 \backslash
9158 title
9159 \family default
9160  (2.3), 
9161 \family typewriter
9162
9163 \backslash
9164 author
9165 \family default
9166  (2.3), 
9167 \family typewriter
9168
9169 \backslash
9170 affil
9171 \family default
9172  (2.3), 
9173 \family typewriter
9174
9175 \backslash
9176 abstract
9177 \family default
9178  (2.4), 
9179 \family typewriter
9180
9181 \backslash
9182 keywords
9183 \family default
9184  (2.5), 
9185 \family typewriter
9186
9187 \backslash
9188 section
9189 \family default
9190  (2.7), 
9191 \family typewriter
9192
9193 \backslash
9194 subsection
9195 \family default
9196  (2.7), 
9197 \family typewriter
9198
9199 \backslash
9200 subsubsection
9201 \family default
9202  (2.7), 
9203 \family typewriter
9204
9205 \backslash
9206 paragraph
9207 \family default
9208  (2.7), 
9209 \family typewriter
9210
9211 \backslash
9212 facility
9213 \family default
9214  (2.10), 
9215 \family typewriter
9216
9217 \backslash
9218 begin{displaymath}
9219 \family default
9220  (2.12), 
9221 \family typewriter
9222
9223 \backslash
9224 begin{equation}
9225 \family default
9226  (2.12), 
9227 \family typewriter
9228
9229 \backslash
9230 begin{eqnarray}
9231 \family default
9232  (2.12), 
9233 \family typewriter
9234
9235 \backslash
9236 begin{mathletters}
9237 \family default
9238  (2.12), 
9239 \family typewriter
9240
9241 \backslash
9242 begin{thebibliography}
9243 \family default
9244  (2.13.1), 
9245 \family typewriter
9246
9247 \backslash
9248 bibitem
9249 \family default
9250  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9251  graphicx figure commands (2.14.1), 
9252 \family typewriter
9253
9254 \backslash
9255 begin{table}
9256 \family default
9257  (2.15.4), 
9258 \family typewriter
9259
9260 \backslash
9261 begin{tabular}
9262 \family default
9263  (2.15.4), 
9264 \family typewriter
9265
9266 \backslash
9267 caption
9268 \family default
9269  (2.15.4), 
9270 \family typewriter
9271
9272 \backslash
9273 label
9274 \family default
9275  (2.15.4, amongst other places), 
9276 \family typewriter
9277
9278 \backslash
9279 tablerefs
9280 \family default
9281  (2.15.5), 
9282 \family typewriter
9283
9284 \backslash
9285 tablecomments
9286 \family default
9287  (2.15.5), 
9288 \family typewriter
9289
9290 \backslash
9291 url
9292 \family default
9293  (2.17.4), 
9294 \family typewriter
9295
9296 \backslash
9297 end{document}
9298 \family default
9299  (2.18).
9300 \end_layout
9301
9302 \begin_layout Standard
9303 The following style options also work correctly: 
9304 \family typewriter
9305 longabstract
9306 \family default
9307  (2.4), 
9308 \family typewriter
9309 preprint
9310 \family default
9311  (3.2.1), 
9312 \family typewriter
9313 preprint2
9314 \family default
9315  (3.2.2), 
9316 \family typewriter
9317 eqsecnum
9318 \family default
9319  (3.3), 
9320 \family typewriter
9321 flushrt
9322 \family default
9323  (3.4).
9324  Simply put them in the 
9325 \family sans
9326 Options
9327 \family default
9328  box in 
9329 \family sans
9330 Layout\SpecialChar menuseparator
9331 Document
9332 \family default
9333 .
9334 \end_layout
9335
9336 \begin_layout Subsubsection
9337 Things that work, but require more comment
9338 \end_layout
9339
9340 \begin_layout Standard
9341 The following items work, but require a little more discussion:
9342 \end_layout
9343
9344 \begin_layout Itemize
9345 These items are reserved for use by the journal editors, but you can put
9346  them into the \SpecialChar LaTeX
9347  preamble if you feel compelled to do so: 
9348 \family typewriter
9349
9350 \backslash
9351 received
9352 \family default
9353
9354 \family typewriter
9355
9356 \backslash
9357 revised
9358 \family default
9359
9360 \family typewriter
9361
9362 \backslash
9363 accepted
9364 \family default
9365
9366 \family typewriter
9367
9368 \backslash
9369 ccc
9370 \family default
9371
9372 \family typewriter
9373
9374 \backslash
9375 cpright
9376 \family default
9377  (all from 2.1.3)
9378 \end_layout
9379
9380 \begin_layout Itemize
9381 These items may be placed in the \SpecialChar LaTeX
9382  preamble, and are included as blanks in
9383  the template file: 
9384 \family typewriter
9385
9386 \backslash
9387 slugcomment
9388 \family default
9389  (2.1.4), 
9390 \family typewriter
9391
9392 \backslash
9393 shorttitle
9394 \family default
9395  (2.1.5), 
9396 \family typewriter
9397
9398 \backslash
9399 shortauthors
9400 \family default
9401  (2.1.5)
9402 \end_layout
9403
9404 \begin_layout Itemize
9405
9406 \family typewriter
9407
9408 \backslash
9409 email
9410 \family default
9411  (2.3) â€“ can only be used 
9412 \begin_inset Quotes eld
9413 \end_inset
9414
9415 standalone
9416 \begin_inset Quotes erd
9417 \end_inset
9418
9419 , not in the middle of a paragraph.
9420  Use \SpecialChar TeX
9421  code if you need to embed it.
9422 \end_layout
9423
9424 \begin_layout Itemize
9425
9426 \family typewriter
9427
9428 \backslash
9429 and
9430 \family default
9431  (2.3) â€“ will have extra {} after it.
9432  This should not cause an error.
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family typewriter
9438
9439 \backslash
9440 notetoeditor
9441 \family default
9442  (2.6) â€“ can only be used 
9443 \begin_inset Quotes eld
9444 \end_inset
9445
9446 standalone
9447 \begin_inset Quotes erd
9448 \end_inset
9449
9450 , not in the middle of a paragraph.
9451  Use \SpecialChar TeX
9452  code if you need to embed it.
9453 \end_layout
9454
9455 \begin_layout Itemize
9456
9457 \family typewriter
9458
9459 \backslash
9460 placetable
9461 \family default
9462  (2.8) â€“ can't insert a cross-reference tag, you must type the tag name by
9463  hand
9464 \end_layout
9465
9466 \begin_layout Itemize
9467
9468 \family typewriter
9469
9470 \backslash
9471 placefigure
9472 \family default
9473  (2.8) â€“ same as for 
9474 \family typewriter
9475
9476 \backslash
9477 placetable
9478 \end_layout
9479
9480 \begin_layout Itemize
9481
9482 \family typewriter
9483
9484 \backslash
9485 acknowledgements
9486 \family default
9487  (2.9) â€“ will have extra {} after it.
9488  This should not cause an error.
9489 \end_layout
9490
9491 \begin_layout Itemize
9492
9493 \family typewriter
9494
9495 \backslash
9496 appendix
9497 \family default
9498  (2.11) â€“ will have extra {} after it.
9499  This should not cause an error.
9500 \end_layout
9501
9502 \begin_layout Itemize
9503
9504 \family typewriter
9505
9506 \backslash
9507 figcaption
9508 \family default
9509  (2.14.2) â€“ you can insert an optional filename argument by placing the cursor
9510  at the beginning of the text and selecting 
9511 \family sans
9512 Insert\SpecialChar menuseparator
9513 Short Title
9514 \family default
9515 .
9516  
9517 \begin_inset Quotes eld
9518 \end_inset
9519
9520 Short Title
9521 \begin_inset Quotes erd
9522 \end_inset
9523
9524  inserts an optional argument of the type needed by 
9525 \family typewriter
9526
9527 \backslash
9528 figcaption
9529 \family default
9530 .
9531  Hopefully it will be renamed someday.
9532 \end_layout
9533
9534 \begin_layout Itemize
9535
9536 \family typewriter
9537
9538 \backslash
9539 objectname
9540 \family default
9541  (2.17.1) â€“ same as 
9542 \family typewriter
9543
9544 \backslash
9545 figcaption
9546 \family default
9547  for the catalog ID optional parameter
9548 \end_layout
9549
9550 \begin_layout Itemize
9551
9552 \family typewriter
9553
9554 \backslash
9555 dataset
9556 \family default
9557  (2.17.1) â€“ same as 
9558 \family typewriter
9559
9560 \backslash
9561 figcaption
9562 \family default
9563  for the catalog ID optional parameter
9564 \end_layout
9565
9566 \begin_layout Subsubsection
9567 Things not implemented, use \SpecialChar TeX
9568  code
9569 \end_layout
9570
9571 \begin_layout Standard
9572
9573 \family typewriter
9574
9575 \backslash
9576 eqnum
9577 \family default
9578  (2.12), 
9579 \family typewriter
9580
9581 \backslash
9582 setcounter{equation}
9583 \family default
9584  (2.12), Journal name abbreviations (2.13.4), 
9585 \family typewriter
9586
9587 \backslash
9588 figurenum
9589 \family default
9590  (2.14.1), 
9591 \family typewriter
9592
9593 \backslash
9594 epsscale
9595 \family default
9596  (2.14.1), 
9597 \family typewriter
9598
9599 \backslash
9600 plotone
9601 \family default
9602  (2.14.1), 
9603 \family typewriter
9604
9605 \backslash
9606 plottwo
9607 \family default
9608  (2.14.1), 
9609 \family typewriter
9610
9611 \backslash
9612 tablenum
9613 \family default
9614  (2.15.4), 
9615 \family typewriter
9616
9617 \backslash
9618 tableline
9619 \family default
9620  (2.15.4, insert it as the first element in the lefthand cell after where
9621  you want it.
9622  Don't use any of \SpecialChar LyX
9623 's rules in the table), 
9624 \family typewriter
9625
9626 \backslash
9627 tablenotemark
9628 \family default
9629  (2.15.5), 
9630 \family typewriter
9631
9632 \backslash
9633 tablenotetext
9634 \family default
9635  (2.15.5), much of Misc (2.17, except 
9636 \family typewriter
9637
9638 \backslash
9639 objectname
9640 \family default
9641
9642 \family typewriter
9643
9644 \backslash
9645 dataset
9646 \family default
9647
9648 \family typewriter
9649
9650 \backslash
9651 url
9652 \family default
9653 , and 
9654 \family typewriter
9655
9656 \backslash
9657 email
9658 \family default
9659 ; see above), 
9660 \family typewriter
9661
9662 \backslash
9663 singlespace
9664 \family default
9665  (3.1), 
9666 \family typewriter
9667
9668 \backslash
9669 doublespace
9670 \family default
9671  (3.1), 
9672 \family typewriter
9673
9674 \backslash
9675 onecolumn
9676 \family default
9677  (3.2), 
9678 \family typewriter
9679
9680 \backslash
9681 twocolumn
9682 \family default
9683  (3.2)
9684 \end_layout
9685
9686 \begin_layout Subsubsection
9687 Things that cannot be implemented
9688 \end_layout
9689
9690 \begin_layout Standard
9691 \SpecialChar ldots
9692  at least in any meaningful sort of way, so I suggest ignoring them.
9693  They are the references environment (2.13.3), and the deluxetable environment
9694  (2.15).
9695  If you really, really need to use deluxetable, I suggest editing it in
9696  a separate file with a text editor, then using 
9697 \family sans
9698 Insert\SpecialChar menuseparator
9699 Child
9700 \begin_inset space ~
9701 \end_inset
9702
9703 Document
9704 \family default
9705  to include it in your \SpecialChar LyX
9706  document.
9707  See the 
9708 \family typewriter
9709 aas_sample.lyx
9710 \family default
9711  file to see an example of this.
9712 \end_layout
9713
9714 \begin_layout Subsection
9715 FAQs, Tips, Tricks, and Other Ruminations
9716 \end_layout
9717
9718 \begin_layout Subsubsection
9719 Getting \SpecialChar LyX
9720  and AAS\SpecialChar TeX
9721  to cooperate
9722 \end_layout
9723
9724 \begin_layout Standard
9725 It can be a bit tricky to get \SpecialChar LyX
9726  to recognize a new layout and document class.
9727  When all else fails, do this:
9728 \end_layout
9729
9730 \begin_layout Enumerate
9731 Make certain that \SpecialChar LaTeX
9732  can find AAS\SpecialChar TeX
9733 .
9734  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9735  distribution into a
9736  directory completely unrelated to \SpecialChar LaTeX
9737  or AAS\SpecialChar TeX
9738  and run \SpecialChar LaTeX
9739  on 
9740 \family typewriter
9741 sample.tex
9742 \family default
9743 .
9744 \end_layout
9745
9746 \begin_layout Enumerate
9747 Make certain that 
9748 \family typewriter
9749 aastex.layout
9750 \family default
9751  appears in \SpecialChar LyX
9752 's 
9753 \family typewriter
9754 layouts
9755 \family default
9756  folder
9757 \end_layout
9758
9759 \begin_layout Enumerate
9760 Rerun 
9761 \family sans
9762 Tools\SpecialChar menuseparator
9763 Reconfigure
9764 \family default
9765  in \SpecialChar LyX
9766 , then restart \SpecialChar LyX
9767 .
9768 \end_layout
9769
9770 \begin_layout Enumerate
9771 Open a regular new file, not from a template.
9772  Does AAS\SpecialChar TeX
9773  appear in the class list in 
9774 \family sans
9775 Document\SpecialChar menuseparator
9776 Settings
9777 \family default
9778 ?
9779 \end_layout
9780
9781 \begin_layout Standard
9782 If you get a warning from an existing AAS\SpecialChar TeX
9783  document about not being able
9784  to find the AAS\SpecialChar TeX
9785  layout or a message about 
9786 \begin_inset Quotes eld
9787 \end_inset
9788
9789 You should not mix title layouts with normal ones
9790 \begin_inset Quotes erd
9791 \end_inset
9792
9793 , things haven't been installed correctly.
9794 \end_layout
9795
9796 \begin_layout Subsubsection
9797 \SpecialChar LaTeX
9798  error processing a table 
9799 \end_layout
9800
9801 \begin_layout Standard
9802 \SpecialChar LyX
9803 , by default, attempts to center the table caption/title.
9804  This seems to produce a bad interaction in AAS\SpecialChar TeX
9805  so you should click somewhere
9806  in the caption/title, then select 
9807 \family sans
9808 Edit\SpecialChar menuseparator
9809 Paragraph
9810 \begin_inset space ~
9811 \end_inset
9812
9813 Settings
9814 \family default
9815 , then set the 
9816 \family sans
9817 Alignment
9818 \family default
9819  to 
9820 \family sans
9821 Block
9822 \family default
9823 .
9824  This took care of it for me.
9825 \end_layout
9826
9827 \begin_layout Subsubsection
9828 References
9829 \end_layout
9830
9831 \begin_layout Standard
9832 A couple of things: 1) I have noticed some funny spacing in the reference
9833  entries in the text.
9834  When you enter the bibliography item data, make sure their is 
9835 \emph on
9836 no
9837 \emph default
9838  space between the last author and the parenthesis setting off the year;
9839  
9840 \emph on
9841 e.
9842 \begin_inset space \thinspace{}
9843 \end_inset
9844
9845 g.
9846 \begin_inset space \space{}
9847 \end_inset
9848
9849
9850 \emph default
9851 type 
9852 \family typewriter
9853 Ressler(1992)
9854 \family default
9855 , not 
9856 \family typewriter
9857 Ressler (1992)
9858 \family default
9859 .
9860  2) Entering the references at all is not obvious.
9861  The easiest thing is to start typing your first reference at the end of
9862  the document, then mark it as type 
9863 \family sans
9864 References
9865 \family default
9866 .
9867  That will put a small gray box in front of what you just typed.
9868  Click on the box to fill in the rest of the information.
9869  For new references, go to the end of an existing reference and press return.
9870  That will create a new line with its own box, etc.
9871 \end_layout
9872
9873 \begin_layout Subsubsection
9874 Including EPS files
9875 \end_layout
9876
9877 \begin_layout Standard
9878 Even though AAS\SpecialChar TeX
9879  provides its own figure commands (
9880 \family typewriter
9881
9882 \backslash
9883 plotone
9884 \family default
9885 , for example), I much prefer \SpecialChar LaTeX
9886 's standard figure commands (with the default
9887  graphicx).
9888  You can insert the 
9889 \family typewriter
9890
9891 \backslash
9892 plotone
9893 \family default
9894 , etc.
9895 \begin_inset space ~
9896 \end_inset
9897
9898 commands as \SpecialChar TeX
9899  code into a Figure Float box if you desire, but I never have
9900  much luck getting the layout right.
9901  With the standard graphics, \SpecialChar LyX
9902  will insert a 
9903 \family typewriter
9904
9905 \backslash
9906 usepackage{graphicx}
9907 \family default
9908  command into the \SpecialChar LaTeX
9909  preamble and handle the figures in the standard \SpecialChar LaTeX2e
9910  way,
9911  interspersing the figures in the text.
9912  I believe ApJ accepts figures exactly this way now; AJ might still use
9913  the 
9914 \begin_inset Quotes eld
9915 \end_inset
9916
9917 stack everything at the end
9918 \begin_inset Quotes erd
9919 \end_inset
9920
9921  technique.
9922 \end_layout
9923
9924 \begin_layout Subsubsection
9925 Things I could have done, but didn't
9926 \end_layout
9927
9928 \begin_layout Standard
9929 There are a few 
9930 \begin_inset Quotes eld
9931 \end_inset
9932
9933 pretty
9934 \begin_inset Quotes erd
9935 \end_inset
9936
9937  things I could have implemented, but chose not to.
9938  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
9939  window,
9940  even though it is double-spaced in the paper manuscript.
9941  Also, I chose not to make separate layouts for the preprint and preprint2
9942  styles.
9943  Since I assume you will spend most of your time in the plain manuscript
9944  mode anyway, I decided not to chew up more disk space with this.
9945  
9946 \end_layout
9947
9948 \begin_layout Subsection
9949 Final Caveat
9950 \end_layout
9951
9952 \begin_layout Standard
9953 Your mileage may vary.
9954  I've now had papers published by both ApJ and AJ that have had 98% of the
9955  effort done in \SpecialChar LyX
9956 ; the last 2% was the \SpecialChar LaTeX
9957  post-processing and a few cleanups.
9958  I have had no trouble with the submission process, and I'm sure the journals
9959  were never aware that there might be a difference.
9960  So, go forth and publish!
9961 \end_layout
9962
9963 \begin_layout Section
9964 AMS \SpecialChar LaTeX
9965
9966 \end_layout
9967
9968 \begin_layout Standard
9969 by 
9970 \noun on
9971 David Johnson
9972 \noun default
9973 ; updated by 
9974 \noun on
9975 Richard Heck
9976 \end_layout
9977
9978 \begin_layout Standard
9979 \begin_inset VSpace bigskip
9980 \end_inset
9981
9982
9983 \end_layout
9984
9985 \begin_layout Standard
9986 \noindent
9987 The AMS \SpecialChar LaTeX
9988  layouts are set up to conform to suggested styles for mathematical
9989  papers to be submitted to American Mathematical Society publications.
9990  The layouts are not tailored to a specific journal, but easily can be.
9991  You should refer to the AMS documentation for specific instructions for
9992  each journal (usually it will entail only changing a single line in the
9993  \SpecialChar TeX
9994  output).
9995  That documentation is available on the Web at 
9996 \begin_inset Flex URL
9997 status open
9998
9999 \begin_layout Plain Layout
10000
10001 http://www.ams.org
10002 \end_layout
10003
10004 \end_inset
10005
10006  or by ftp at 
10007 \begin_inset Flex URL
10008 status open
10009
10010 \begin_layout Plain Layout
10011
10012 ftp://ftp.ams.org/pub/tex/amslatex/
10013 \end_layout
10014
10015 \end_inset
10016
10017 .
10018  These layouts are appropriate, and useful, for any mathematical writing.
10019  
10020 \end_layout
10021
10022 \begin_layout Standard
10023 There are two basic AMS \SpecialChar LaTeX
10024  layouts: 
10025 \end_layout
10026
10027 \begin_layout Itemize
10028 amsart: The standard AMS article format.
10029 \end_layout
10030
10031 \begin_layout Itemize
10032 amsbook: the standard AMS book (really, monograph) format.
10033  
10034 \end_layout
10035
10036 \begin_layout Standard
10037 The layouts themselves contain only the minimum necessary to use the AMS
10038  classes.
10039  They do not, in particular, contain any of the `theorem' environments used
10040  for setting theorems, lemmas, and the like.
10041  These are contained, instead, in the 
10042 \begin_inset Flex Code
10043 status collapsed
10044
10045 \begin_layout Plain Layout
10046 Theorems (AMS)
10047 \end_layout
10048
10049 \end_inset
10050
10051  module, which is loaded by default when you select one of the AMS classes.
10052  (It can also be used with other classes and can be removed, if you would
10053  rather use something else.) Less commonly used environments are in the 
10054 \begin_inset Flex Code
10055 status collapsed
10056
10057 \begin_layout Plain Layout
10058 Theorems (AMS-Extended)
10059 \end_layout
10060
10061 \end_inset
10062
10063  module, which must be loaded manually.
10064 \end_layout
10065
10066 \begin_layout Standard
10067 By default, theorems and the like are numbered consecutively throughout
10068  the document, but this may be modified by loading the module 
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 Theorems (Order by Section)
10074 \end_layout
10075
10076 \end_inset
10077
10078  or, if you are using 
10079 \begin_inset Flex Code
10080 status collapsed
10081
10082 \begin_layout Plain Layout
10083 book (AMS)
10084 \end_layout
10085
10086 \end_inset
10087
10088 , the module 
10089 \begin_inset Flex Code
10090 status collapsed
10091
10092 \begin_layout Plain Layout
10093 Theorems (Order by Chapter)
10094 \end_layout
10095
10096 \end_inset
10097
10098 .
10099  These will number the results as 
10100 \begin_inset Formula $n.m$
10101 \end_inset
10102
10103 , where the first number refers to the section (or chapter) and the second
10104  refers to the total number of results so far in that section (or chapter).
10105  Many environments are also available unnumbered.
10106  These are indicated by an asterisk at the end.
10107  If you happen to want 
10108 \emph on
10109 only
10110 \emph default
10111  unnumbered results, the module 
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 Theorems (Starred)
10117 \end_layout
10118
10119 \end_inset
10120
10121  provides that option.
10122 \end_layout
10123
10124 \begin_layout Standard
10125 Note that these modules do not 
10126 \emph on
10127 have
10128 \emph default
10129  to be used with the AMS classes.
10130  It is perfectly possible to use the 
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135 Theorems (AMS)
10136 \end_layout
10137
10138 \end_inset
10139
10140  module, and the others mentioned, with other classes, such as 
10141 \begin_inset Flex Code
10142 status collapsed
10143
10144 \begin_layout Plain Layout
10145 article
10146 \end_layout
10147
10148 \end_inset
10149
10150
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 report
10156 \end_layout
10157
10158 \end_inset
10159
10160
10161 \begin_inset Flex Code
10162 status collapsed
10163
10164 \begin_layout Plain Layout
10165 book (KOMA-script)
10166 \end_layout
10167
10168 \end_inset
10169
10170 , and so forth.
10171 \end_layout
10172
10173 \begin_layout Subsection
10174 What these layouts provide
10175 \end_layout
10176
10177 \begin_layout Standard
10178 There is a long list of included environments provided by these layouts.
10179  In AMS-\SpecialChar LaTeX
10180 , there is, in fact, an opportunity to define an unlimited variety
10181  of `theorem' environments.
10182  However, the AMS recommends the environments that are available in \SpecialChar LyX
10183 .
10184  
10185 \end_layout
10186
10187 \begin_layout Standard
10188 The following environments—as well as the standard environments, such as
10189  
10190 \begin_inset Flex Noun
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 section
10195 \end_layout
10196
10197 \end_inset
10198
10199
10200 \begin_inset Flex Noun
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 bibliography
10205 \end_layout
10206
10207 \end_inset
10208
10209
10210 \begin_inset Flex Noun
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 title
10215 \end_layout
10216
10217 \end_inset
10218
10219
10220 \begin_inset Flex Noun
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 author
10225 \end_layout
10226
10227 \end_inset
10228
10229 , and 
10230 \begin_inset Flex Noun
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 date
10235 \end_layout
10236
10237 \end_inset
10238
10239 —are provided by 
10240 \begin_inset Flex Code
10241 status collapsed
10242
10243 \begin_layout Plain Layout
10244 article (AMS)
10245 \end_layout
10246
10247 \end_inset
10248
10249  and 
10250 \begin_inset Flex Code
10251 status collapsed
10252
10253 \begin_layout Plain Layout
10254 book (AMS)
10255 \end_layout
10256
10257 \end_inset
10258
10259 :
10260 \end_layout
10261
10262 \begin_layout Description
10263 Address This should be the author's permanent address.
10264 \end_layout
10265
10266 \begin_layout Description
10267 Current
10268 \begin_inset space ~
10269 \end_inset
10270
10271 Address This should be the author's temporary address at the time of submission,
10272  if different from the Address.
10273 \end_layout
10274
10275 \begin_layout Description
10276 Email Author's e-mail address
10277 \end_layout
10278
10279 \begin_layout Description
10280 URL Author's Web address, if desired.
10281 \end_layout
10282
10283 \begin_layout Description
10284 Keywords Key words or phrases used to identify specific topics discussed
10285  in the paper.
10286 \end_layout
10287
10288 \begin_layout Description
10289 Subjectclass These refer to the AMS Subject Classifications, published and
10290  described in 
10291 \emph on
10292 Mathematical Reviews
10293 \emph default
10294 .
10295  These are also available online at the AMS cites listed above.
10296 \end_layout
10297
10298 \begin_layout Description
10299 Thanks
10300 \end_layout
10301
10302 \begin_layout Description
10303 Dedicatory
10304 \end_layout
10305
10306 \begin_layout Description
10307 Translator
10308 \end_layout
10309
10310 \begin_layout Standard
10311 The following environments are provided by both the 
10312 \begin_inset Flex Code
10313 status collapsed
10314
10315 \begin_layout Plain Layout
10316 Theorems
10317 \end_layout
10318
10319 \end_inset
10320
10321  and 
10322 \begin_inset Flex Code
10323 status collapsed
10324
10325 \begin_layout Plain Layout
10326 Theorems (AMS)
10327 \end_layout
10328
10329 \end_inset
10330
10331  modules, in the latter case in both starred (unnumbered) and unstarred
10332  (numbered) versions.
10333  These same environments are provided only in the starred versions by the
10334  
10335 \begin_inset Flex Code
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 Theorems (Starred)
10340 \end_layout
10341
10342 \end_inset
10343
10344  module:
10345 \end_layout
10346
10347 \begin_layout Theorem
10348 This is typically used for the statements of major results.
10349  
10350 \end_layout
10351
10352 \begin_layout Corollary*
10353 This is used for statements which follow fairly directly from previous statement
10354 s.
10355  Again, these can be major results.
10356  
10357 \end_layout
10358
10359 \begin_layout Lemma
10360 These are smaller results needed to prove other statements.
10361 \end_layout
10362
10363 \begin_layout Proposition
10364 These are less major results which (hopefully) add to the general theory
10365  being discussed.
10366 \end_layout
10367
10368 \begin_layout Conjecture
10369 These are statements provided without justification, which the author does
10370  not know how to prove, but which seem to be true (to the author, at least).
10371 \end_layout
10372
10373 \begin_layout Definition*
10374 Guess what this is for.
10375  The font is different for this environment than for the previous ones.
10376  
10377 \end_layout
10378
10379 \begin_layout Example*
10380 Used for examples illustrating proven results.
10381 \end_layout
10382
10383 \begin_layout Problem
10384 It's not really known what this is for.
10385  You should figure it out.
10386 \end_layout
10387
10388 \begin_layout Exercise*
10389 Write a description for this one.
10390 \end_layout
10391
10392 \begin_layout Remark
10393 This environment is also a type of theorem, usually a lesser sort of observation.
10394 \end_layout
10395
10396 \begin_layout Claim*
10397 Often used in the course of giving a proof of a larger result.
10398 \end_layout
10399
10400 \begin_layout Case
10401 Generally, these are used to break up long arguments, using specific instances
10402  of some condition.
10403  
10404 \end_layout
10405
10406 \begin_layout Case
10407 The numbering scheme for cases is on its own, not together with other numbered
10408  statements.
10409  
10410 \end_layout
10411
10412 \begin_layout Proof
10413 At the end of this environment, a QED symbol (usually a square, but it can
10414  vary with different styles) is placed.
10415  If you want to have other environments within this one—for example, Case
10416  environments—and have the QED symbol appear only after them, then the other
10417  environments need to be nested within the proof environment.
10418  See the section 
10419 \emph on
10420 Nesting Environments
10421 \emph default
10422  of the 
10423 \emph on
10424 User's Guide
10425 \emph default
10426  for information on nesting.
10427 \end_layout
10428
10429 \begin_layout Standard
10430 And these environments are provided by 
10431 \begin_inset Flex Code
10432 status collapsed
10433
10434 \begin_layout Plain Layout
10435 Theorems (AMS-Extended)
10436 \end_layout
10437
10438 \end_inset
10439
10440 :
10441 \end_layout
10442
10443 \begin_layout Criterion*
10444 A required condition.
10445 \end_layout
10446
10447 \begin_layout Algorithm*
10448 A general procedure to be used.
10449 \end_layout
10450
10451 \begin_layout Axiom*
10452 This is a property or statement taken as true within the system being discussed.
10453 \end_layout
10454
10455 \begin_layout Condition*
10456 Sometimes used to state a condition assumed within the present context of
10457  discussion.
10458 \end_layout
10459
10460 \begin_layout Note*
10461 Similar to a Remark.
10462 \end_layout
10463
10464 \begin_layout Notation*
10465 Used for the explanation of, yes, notation.
10466 \end_layout
10467
10468 \begin_layout Summary
10469 Do we really need to tell you? 
10470 \end_layout
10471
10472 \begin_layout Acknowledgement*
10473 Acknowledgement.
10474 \end_layout
10475
10476 \begin_layout Conclusion*
10477 Sometimes used at the end of a long train of argument.
10478 \end_layout
10479
10480 \begin_layout Fact
10481 Used in a way similar to Proposition, though perhaps lower on the scale.
10482 \end_layout
10483
10484 \begin_layout Standard
10485 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10486  and AMS fonts
10487  packages.
10488  They need to be available on your system in order to use these environments.
10489 \end_layout
10490
10491 \begin_layout Section
10492 AGU journals (
10493 \family sans
10494 aguplus
10495 \family default
10496 )
10497 \end_layout
10498
10499 \begin_layout Standard
10500 by 
10501 \shape smallcaps
10502 Martin Vermeer
10503 \end_layout
10504
10505 \begin_layout Subsection
10506 Description
10507 \end_layout
10508
10509 \begin_layout Standard
10510 These are the layout files for some of the journals of the American Geophysical
10511  Society.
10512  It is assumed that you have both the AGU's own class files and AGUplus
10513  installed (everything to be found at
10514 \begin_inset Flex URL
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518
10519 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10520 \end_layout
10521
10522 \end_inset
10523
10524 ).
10525 \end_layout
10526
10527 \begin_layout Subsection
10528 New styles
10529 \end_layout
10530
10531 \begin_layout Standard
10532 Redefined are 
10533 \family sans
10534 Paragraph
10535 \family default
10536
10537 \family sans
10538 Paragraph*
10539 \family default
10540 .
10541  They are still called this in the \SpecialChar LyX
10542  GUI, though their \SpecialChar LaTeX
10543  equivalents in the
10544  AGU classes are 
10545 \family sans
10546 Subsubsubsection
10547 \family default
10548  and 
10549 \family sans
10550 Subsubsubsection*
10551 \family default
10552 .
10553 \end_layout
10554
10555 \begin_layout Standard
10556 Newly defined styles are 
10557 \family sans
10558 Left_Header
10559 \family default
10560
10561 \family sans
10562 Right_Header
10563 \family default
10564
10565 \family sans
10566 Received
10567 \family default
10568
10569 \family sans
10570 Revised
10571 \family default
10572
10573 \family sans
10574 Accepted
10575 \family default
10576
10577 \family sans
10578 CCC
10579 \family default
10580
10581 \family sans
10582 PaperId
10583 \family default
10584
10585 \family sans
10586 AuthorAddr
10587 \family default
10588
10589 \family sans
10590 SlugComment
10591 \family default
10592 .
10593  These are mostly manuscript attributes and defined in the AGU class documentati
10594 on.
10595 \end_layout
10596
10597 \begin_layout Standard
10598 I suspect this is still badly incomplete.
10599 \end_layout
10600
10601 \begin_layout Subsection
10602 New floats
10603 \end_layout
10604
10605 \begin_layout Standard
10606
10607 \family sans
10608 Planotable
10609 \family default
10610  and 
10611 \family sans
10612 Plate
10613 \family default
10614 .
10615  We also have a new 
10616 \family sans
10617 Table_Caption
10618 \family default
10619 .
10620 \end_layout
10621
10622 \begin_layout Subsection
10623 Supported journals
10624 \end_layout
10625
10626 \begin_layout Itemize
10627
10628 \emph on
10629 Journal of Geophysical Research
10630 \emph default
10631
10632 \family typewriter
10633 jgrga.layout
10634 \family default
10635  â€” Martin Vermeer
10636 \end_layout
10637
10638 \begin_layout Standard
10639 Add your own, it isn't so hard! Look at the 
10640 \family typewriter
10641 jgrga.layout
10642 \family default
10643  example and 
10644 \family typewriter
10645 aguplus.inc
10646 \family default
10647 .
10648 \end_layout
10649
10650 \begin_layout Subsection
10651 Bugs and things to remember
10652 \end_layout
10653
10654 \begin_layout Standard
10655 In order to use the new layouts, you must remember to do the following for
10656  a new document:
10657 \end_layout
10658
10659 \begin_layout Enumerate
10660
10661 \emph on
10662 Turn off babel
10663 \emph default
10664 .
10665  This can be done in the 
10666 \family sans
10667 Layout\SpecialChar menuseparator
10668 Document
10669 \family default
10670  or 
10671 \family sans
10672 Document\SpecialChar menuseparator
10673 Settings
10674 \family default
10675  menu item.
10676  (AGU articles are always in English, right? So 
10677 \emph on
10678 don't
10679 \emph default
10680  choose a language.)
10681 \end_layout
10682
10683 \begin_layout Enumerate
10684 Enter 
10685 \family typewriter
10686 jgrga
10687 \family default
10688  into the document's 
10689 \family sans
10690 Extra Options
10691 \family default
10692  field.
10693  (Yes, this is a bug.)
10694 \end_layout
10695
10696 \begin_layout Enumerate
10697 Make sure you use the 
10698 \family typewriter
10699 agu.bst
10700 \family default
10701  bibliography style, by entering 
10702 \family sans
10703 agu
10704 \family default
10705  into the second field of the Bib\SpecialChar TeX
10706  inset.
10707  None of the standard styles will do.
10708 \end_layout
10709
10710 \begin_layout Section
10711 Broadway
10712 \end_layout
10713
10714 \begin_layout Standard
10715 by 
10716 \shape smallcaps
10717 Garst Reese
10718 \end_layout
10719
10720 \begin_layout Subsection
10721 Introduction
10722 \end_layout
10723
10724 \begin_layout Standard
10725 Broadway is for writing plays.
10726  The format is more decorative than Hollywood, and much less standardized.
10727  This format should be suitable for workshops.
10728 \end_layout
10729
10730 \begin_layout Subsection
10731 Special problems
10732 \end_layout
10733
10734 \begin_layout Standard
10735 The same as in Hollywood.
10736 \end_layout
10737
10738 \begin_layout Subsection
10739 Special features
10740 \end_layout
10741
10742 \begin_layout Standard
10743 Insert the 
10744 \family sans
10745 Speaker
10746 \family default
10747  names as labels then cross-reference the label to insert the name.
10748  The cross-reference dialog will show the current cast of characters.
10749 \end_layout
10750
10751 \begin_layout Subsection
10752 Paper size and Margins
10753 \end_layout
10754
10755 \begin_layout Standard
10756 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10757 \end_layout
10758
10759 \begin_layout Subsection
10760 Environments
10761 \end_layout
10762
10763 \begin_layout Standard
10764 The following environments are available.
10765  You can use broadway.bind to get the bind keys shown at the right.
10766 \end_layout
10767
10768 \begin_layout Itemize
10769
10770 \family sans
10771 Standard
10772 \begin_inset Newline newline
10773 \end_inset
10774
10775
10776 \family default
10777 You should not have to use this, but it is here for anything that does not
10778  fit otherwise.
10779 \end_layout
10780
10781 \begin_layout Itemize
10782
10783 \family sans
10784 Narrative
10785 \begin_inset space \hfill{}
10786 \end_inset
10787
10788 M-z n
10789 \begin_inset Newline newline
10790 \end_inset
10791
10792
10793 \family default
10794 Used to describe stage setting and the action.
10795  First use of speaker names in all CAPs.
10796 \end_layout
10797
10798 \begin_layout Itemize
10799
10800 \family sans
10801 ACT
10802 \begin_inset space \hfill{}
10803 \end_inset
10804
10805 M-z a
10806 \begin_inset Newline newline
10807 \end_inset
10808
10809
10810 \family default
10811 Automatically numbered.
10812  On screen it will be arabic, but will print as Roman.
10813 \end_layout
10814
10815 \begin_layout Itemize
10816
10817 \family sans
10818 ACT*
10819 \begin_inset space \hfill{}
10820 \end_inset
10821
10822 M-z S at
10823 \begin_inset Newline newline
10824 \end_inset
10825
10826
10827 \family default
10828 Subtitle for 
10829 \family sans
10830 ACT.
10831
10832 \family default
10833  It is just centered text.
10834 \end_layout
10835
10836 \begin_layout Itemize
10837
10838 \family sans
10839 SCENE
10840 \begin_inset space \hfill{}
10841 \end_inset
10842
10843 M-z S-S
10844 \begin_inset Newline newline
10845 \end_inset
10846
10847
10848 \family default
10849 Not automatically numbered.
10850  You supply the number.
10851  This is because I couldn't figure out how.
10852 \end_layout
10853
10854 \begin_layout Itemize
10855
10856 \family sans
10857 AT_RISE:
10858 \begin_inset space \hfill{}
10859 \end_inset
10860
10861 M-z S-R
10862 \begin_inset Newline newline
10863 \end_inset
10864
10865
10866 \family default
10867 A special case of Narrative to describe the setting and action as the curtain
10868  rises.
10869 \end_layout
10870
10871 \begin_layout Itemize
10872
10873 \family sans
10874 Speaker
10875 \begin_inset space \hfill{}
10876 \end_inset
10877
10878 M-z s
10879 \begin_inset Newline newline
10880 \end_inset
10881
10882
10883 \family default
10884 The speaker's (actor's) title, centered in all CAPS.
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 Parenthetical
10891 \begin_inset space \hfill{}
10892 \end_inset
10893
10894 M-z p
10895 \begin_inset Newline newline
10896 \end_inset
10897
10898
10899 \family default
10900 Instructions to the speaker.
10901  The parentheses are automatically inserted.
10902  The ( will appear on screen, but both will be in the printed play.
10903  This environment is only used within 
10904 \family sans
10905 Dialogue
10906 \family default
10907 .
10908 \end_layout
10909
10910 \begin_layout Itemize
10911
10912 \family sans
10913 Dialogue
10914 \begin_inset space \hfill{}
10915 \end_inset
10916
10917 M-z d
10918 \begin_inset Newline newline
10919 \end_inset
10920
10921
10922 \family default
10923 What the Speaker says.
10924 \end_layout
10925
10926 \begin_layout Itemize
10927
10928 \family sans
10929 CURTAIN
10930 \begin_inset space \hfill{}
10931 \end_inset
10932
10933 M-z S-C
10934 \begin_inset Newline newline
10935 \end_inset
10936
10937
10938 \family default
10939 The curtain comes down.
10940 \end_layout
10941
10942 \begin_layout Itemize
10943
10944 \family sans
10945 Title
10946 \begin_inset space \hfill{}
10947 \end_inset
10948
10949 M-z S-T
10950 \end_layout
10951
10952 \begin_layout Itemize
10953
10954 \family sans
10955 Author
10956 \begin_inset space \hfill{}
10957 \end_inset
10958
10959 M-z S-A
10960 \end_layout
10961
10962 \begin_layout Itemize
10963
10964 \family sans
10965 Right_Address
10966 \begin_inset space \hfill{}
10967 \end_inset
10968
10969 M-z r
10970 \end_layout
10971
10972 \begin_layout Standard
10973 Hello there.
10974 \end_layout
10975
10976 \begin_layout Section
10977 Dinbrief
10978 \end_layout
10979
10980 \begin_layout Standard
10981 The document class 
10982 \family sans
10983 dinbrief
10984 \family default
10985  can be used to type letters according to German conventions.
10986  A template file is included in 
10987 \family typewriter
10988 .../lyx/share/templates
10989 \family default
10990  for you to use as a starting point.
10991 \end_layout
10992
10993 \begin_layout Section
10994 EGS journals (
10995 \family sans
10996 egs
10997 \family default
10998 )
10999 \end_layout
11000
11001 \begin_layout Standard
11002 by 
11003 \shape smallcaps
11004 Martin Vermeer
11005 \end_layout
11006
11007 \begin_layout Subsection
11008 Description
11009 \end_layout
11010
11011 \begin_layout Standard
11012 This is the layout file for the European Geophysical Society journals.
11013  The needed 
11014 \family typewriter
11015 egs.cls
11016 \family default
11017  can be downloaded from the web site of the EGS under 
11018 \begin_inset Flex URL
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022
11023 www.copernicus.org
11024 \end_layout
11025
11026 \end_inset
11027
11028 .
11029 \end_layout
11030
11031 \begin_layout Subsection
11032 New styles
11033 \end_layout
11034
11035 \begin_layout Standard
11036
11037 \family sans
11038 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11039  Accepted
11040 \family default
11041
11042 \family sans
11043 Offsets
11044 \family default
11045 .
11046  The current layout file is unfortunately very unmodular and would benefit
11047  from using the various 
11048 \family typewriter
11049 std*.inc
11050 \family default
11051  file inclusions.
11052 \end_layout
11053
11054 \begin_layout Section
11055 Elsevier Journals
11056 \end_layout
11057
11058 \begin_layout Standard
11059 See the \SpecialChar LyX
11060  template file 
11061 \family typewriter
11062 elsarticle.lyx
11063 \family default
11064 .
11065  It contains all infos you need.
11066 \end_layout
11067
11068 \begin_layout Section
11069 Foils [aka 
11070 \family sans
11071 Foil\SpecialChar TeX
11072
11073 \family default
11074 ]
11075 \begin_inset CommandInset label
11076 LatexCommand label
11077 name "sec:foiltex"
11078
11079 \end_inset
11080
11081
11082 \end_layout
11083
11084 \begin_layout Standard
11085 by 
11086 \noun on
11087 Allan Rae
11088 \end_layout
11089
11090 \begin_layout Subsection
11091 Introduction
11092 \end_layout
11093
11094 \begin_layout Standard
11095 This section describes how to use \SpecialChar LyX
11096  to make slides for overhead projectors.
11097  There are two document classes that can do this: the default slides class
11098  and the 
11099 \family sans
11100 Foil\SpecialChar TeX
11101
11102 \family default
11103  slides class.
11104  This section documents the latter.
11105 \end_layout
11106
11107 \begin_layout Standard
11108 I'm going to say this again, nice and clear, so that there's no misunderstanding
11109 :
11110 \end_layout
11111
11112 \begin_layout Standard
11113 \begin_inset VSpace bigskip
11114 \end_inset
11115
11116
11117 \end_layout
11118
11119 \begin_layout Standard
11120 \align center
11121
11122 \size large
11123 This section documents the class 
11124 \begin_inset Quotes eld
11125 \end_inset
11126
11127
11128 \family sans
11129 FoilTeX
11130 \family default
11131
11132 \begin_inset Quotes erd
11133 \end_inset
11134
11135  
11136 \emph on
11137 only.
11138 \end_layout
11139
11140 \begin_layout Standard
11141 \begin_inset VSpace bigskip
11142 \end_inset
11143
11144
11145 \end_layout
11146
11147 \begin_layout Standard
11148 If you're looking for the documentation for 
11149 \begin_inset Quotes eld
11150 \end_inset
11151
11152
11153 \family sans
11154 slides (default)
11155 \family default
11156
11157 \begin_inset Quotes erd
11158 \end_inset
11159
11160 , check out section
11161 \begin_inset space ~
11162 \end_inset
11163
11164
11165 \begin_inset CommandInset ref
11166 LatexCommand ref
11167 reference "sec:slitex"
11168
11169 \end_inset
11170
11171 .
11172  If your machine doesn't have the 
11173 \family sans
11174 foils
11175 \family default
11176  class 
11177 \family sans
11178 FoilTeX
11179 \family default
11180  installed, you'll probably have to use the default 
11181 \family sans
11182 slides
11183 \family default
11184  class, which isn't quite as good as 
11185 \family sans
11186 foils.
11187 \end_layout
11188
11189 \begin_layout Standard
11190 The 
11191 \family sans
11192 foils
11193 \family default
11194  class is designed for use with version
11195 \begin_inset space ~
11196 \end_inset
11197
11198 2.1 of the 
11199 \family sans
11200 foils.cls
11201 \family default
11202  \SpecialChar LaTeX
11203  class file which is now an integral part of \SpecialChar LaTeX2e
11204 .
11205 \end_layout
11206
11207 \begin_layout Subsection
11208 Getting Started
11209 \end_layout
11210
11211 \begin_layout Standard
11212 Obviously, to use this document class, you need to select 
11213 \family sans
11214 FoilTeX
11215 \family default
11216  from the 
11217 \family sans
11218 Class
11219 \family default
11220  entry in the 
11221 \family sans
11222 Document
11223 \begin_inset space ~
11224 \end_inset
11225
11226 Layout
11227 \family default
11228  dialog.
11229  There are some settings in the 
11230 \family sans
11231 Document
11232 \begin_inset space ~
11233 \end_inset
11234
11235 Layout
11236 \family default
11237  dialog that you should know about that are specific to this class:
11238 \end_layout
11239
11240 \begin_layout Itemize
11241 Don't change the options 
11242 \family sans
11243 Sides
11244 \family default
11245  and 
11246 \family sans
11247 Columns
11248 \family default
11249  on the 
11250 \family sans
11251 Document
11252 \begin_inset space ~
11253 \end_inset
11254
11255 Layout
11256 \family default
11257  dialog.
11258  They're ignored by the 
11259 \family sans
11260 foils
11261 \family default
11262  class.
11263 \end_layout
11264
11265 \begin_layout Itemize
11266 The default font size is 20
11267 \begin_inset space \thinspace{}
11268 \end_inset
11269
11270 pt with the other options being 17
11271 \begin_inset space \thinspace{}
11272 \end_inset
11273
11274 pt, 25
11275 \begin_inset space \thinspace{}
11276 \end_inset
11277
11278 pt and 30
11279 \begin_inset space \thinspace{}
11280 \end_inset
11281
11282 pt.
11283 \end_layout
11284
11285 \begin_layout Itemize
11286 The default font is 
11287 \family sans
11288 sans
11289 \family default
11290  
11291 \family sans
11292 serif
11293 \family default
11294  but all math equations are still typeset in the usual roman font.
11295 \end_layout
11296
11297 \begin_layout Itemize
11298
11299 \family sans
11300 Foil\SpecialChar TeX
11301
11302 \family default
11303  supports A4 and Letter paper sizes as well as a special size for working
11304  with 35
11305 \begin_inset space \thinspace{}
11306 \end_inset
11307
11308 mm slides.
11309  It doesn't support A5, B5, legal or executive paper sizes.
11310 \end_layout
11311
11312 \begin_layout Itemize
11313 Don't bother changing the 
11314 \family sans
11315 Float Placement
11316 \family default
11317  settings because they are ignored anyway.
11318  All floats appear where they are defined in the text.
11319 \end_layout
11320
11321 \begin_layout Itemize
11322 The 
11323 \family sans
11324 Pagestyle
11325 \family default
11326  setting behaves a bit differently for this class.
11327  
11328 \family sans
11329 Foil\SpecialChar TeX
11330
11331 \family default
11332  provides extensive footer and header capabilities including a user-defined
11333  logo.
11334  See section
11335 \begin_inset space ~
11336 \end_inset
11337
11338
11339 \begin_inset CommandInset ref
11340 LatexCommand ref
11341 reference "sec:foilfoot"
11342
11343 \end_inset
11344
11345  for more details.
11346  The title page is treated differently to all other pages in the document
11347  and is 
11348 \emph on
11349 always
11350 \emph default
11351  unnumbered and 
11352 \emph on
11353 always
11354 \emph default
11355  has the logo centered at the bottom of the page (if one is defined).
11356  The possible page style choices and what they do are as follows:
11357 \end_layout
11358
11359 \begin_deeper
11360 \begin_layout Labeling
11361 \labelwidthstring MMMMMMM
11362
11363 \family sans
11364 \series bold
11365 empty
11366 \family default
11367 \series default
11368  The final output contains no page numbers, or other headers or footers
11369  (except footnotes of course).
11370  
11371 \end_layout
11372
11373 \begin_layout Labeling
11374 \labelwidthstring MMMMMMM
11375
11376 \family sans
11377 \series bold
11378 plain
11379 \family default
11380 \series default
11381  The final output contains page numbers centered at the bottom of the page.
11382  No other headings or footers (other than footnotes).
11383 \end_layout
11384
11385 \begin_layout Labeling
11386 \labelwidthstring MMMMMMM
11387
11388 \series bold
11389 foilheadings
11390 \series default
11391  Page numbers in lower right corner.
11392  Additional headers and footers are also shown.
11393  This is also the default.
11394 \end_layout
11395
11396 \begin_layout Labeling
11397 \labelwidthstring MMMMMMM
11398
11399 \series bold
11400 fancy
11401 \series default
11402  Gives you access to the 
11403 \family sans
11404 fancyheadings
11405 \family default
11406  package although its use with 
11407 \family sans
11408 Foil\SpecialChar TeX
11409
11410 \family default
11411  is discouraged by the writer of the 
11412 \family sans
11413 Foil\SpecialChar TeX
11414
11415 \family default
11416  package because of some potential page layout clashes.
11417 \end_layout
11418
11419 \end_deeper
11420 \begin_layout Subsubsection
11421 Extra Options
11422 \end_layout
11423
11424 \begin_layout Standard
11425 The following options may be used in the extra class options in the 
11426 \family sans
11427 Document\SpecialChar menuseparator
11428 Settings
11429 \family default
11430  dialog.
11431 \end_layout
11432
11433 \begin_layout Labeling
11434 \labelwidthstring MMMMMMx
11435
11436 \series bold
11437 35mmSlide
11438 \series default
11439  This sets up the page layout for 7.33
11440 \begin_inset space \thinspace{}
11441 \end_inset
11442
11443 in by 11
11444 \begin_inset space \thinspace{}
11445 \end_inset
11446
11447 in paper, which is about the same aspect ratio as a 35
11448 \begin_inset space \thinspace{}
11449 \end_inset
11450
11451 mm slide, making it a bit easier to work with this medium.
11452 \end_layout
11453
11454 \begin_layout Labeling
11455 \labelwidthstring MMMMMMx
11456
11457 \series bold
11458 headrule
11459 \series default
11460  Places a rule across the page below the header on every page except the
11461  title page.
11462 \end_layout
11463
11464 \begin_layout Labeling
11465 \labelwidthstring MMMMMMx
11466
11467 \series bold
11468 footrule
11469 \series default
11470  Places a rule across the page above the footer on every page except the
11471  title page.
11472 \end_layout
11473
11474 \begin_layout Labeling
11475 \labelwidthstring MMMMMMx
11476
11477 \series bold
11478 dvips
11479 \series default
11480  This is automatically set each time you create a new 
11481 \family sans
11482 foils
11483 \family default
11484  document.
11485  This option tells 
11486 \family sans
11487 Foil\SpecialChar TeX
11488
11489 \family default
11490  to use the dvips driver to rotate those pages that are set as landscape
11491  foils.
11492 \end_layout
11493
11494 \begin_layout Labeling
11495 \labelwidthstring MMMMMMx
11496
11497 \series bold
11498 landscape
11499 \series default
11500  Simply changes the page dimensions to those of a landscape page but doesn't
11501  do any rotation.
11502  Thus if you use this option you need to use an external program to rotate
11503  each page or feed your paper through your printer as landscape.
11504  Note that this option effectively reverses the roles of the 
11505 \family sans
11506 Foilhead
11507 \family default
11508  and 
11509 \family sans
11510 Rotatefoilhead
11511 \family default
11512  environments (don't worry these are described in the next section).
11513 \end_layout
11514
11515 \begin_layout Labeling
11516 \labelwidthstring MMMMMMx
11517
11518 \series bold
11519 leqno
11520 \series default
11521  Equation numbers on the left.
11522 \end_layout
11523
11524 \begin_layout Labeling
11525 \labelwidthstring MMMMMMx
11526
11527 \series bold
11528 fleqn
11529 \series default
11530  Flush-left equations.
11531 \end_layout
11532
11533 \begin_layout Subsection
11534 Supported Environments
11535 \end_layout
11536
11537 \begin_layout Standard
11538 Most of the environments commonly supported in other classes are also supported
11539  by the 
11540 \family sans
11541 foils
11542 \family default
11543  class.
11544  There are several additional environments provided by 
11545 \family sans
11546 Foil\SpecialChar TeX
11547
11548 \family default
11549  as well as a couple added by \SpecialChar LyX
11550 .
11551  The following environments are shared with other classes:
11552 \end_layout
11553
11554 \begin_layout Standard
11555 \begin_inset Flex Multiple Columns
11556 status open
11557
11558 \begin_layout Itemize
11559
11560 \family sans
11561 Standard
11562 \end_layout
11563
11564 \begin_layout Itemize
11565
11566 \family sans
11567 Itemize
11568 \end_layout
11569
11570 \begin_layout Itemize
11571
11572 \family sans
11573 Enumerate
11574 \end_layout
11575
11576 \begin_layout Itemize
11577
11578 \family sans
11579 Description
11580 \end_layout
11581
11582 \begin_layout Itemize
11583
11584 \family sans
11585 List
11586 \end_layout
11587
11588 \begin_layout Itemize
11589
11590 \family sans
11591 \SpecialChar LyX
11592 -Code
11593 \end_layout
11594
11595 \begin_layout Itemize
11596
11597 \family sans
11598 Verse
11599 \end_layout
11600
11601 \begin_layout Itemize
11602
11603 \family sans
11604 Quote
11605 \end_layout
11606
11607 \begin_layout Itemize
11608
11609 \family sans
11610 Quotation
11611 \end_layout
11612
11613 \begin_layout Itemize
11614
11615 \family sans
11616 TitleAuthor
11617 \end_layout
11618
11619 \begin_layout Itemize
11620
11621 \family sans
11622 Date
11623 \end_layout
11624
11625 \begin_layout Itemize
11626
11627 \family sans
11628 Abstract
11629 \end_layout
11630
11631 \begin_layout Itemize
11632
11633 \family sans
11634 Bibliography
11635 \end_layout
11636
11637 \begin_layout Itemize
11638
11639 \family sans
11640 Address
11641 \end_layout
11642
11643 \begin_layout Itemize
11644
11645 \family sans
11646 RightAddress
11647 \end_layout
11648
11649 \end_inset
11650
11651
11652 \end_layout
11653
11654 \begin_layout Standard
11655 That is, all the major environments apart from the sectioning environments.
11656  Since foils are essentially self-contained sections, with a title and body,
11657  
11658 \family sans
11659 Foil\SpecialChar TeX
11660
11661 \family default
11662  provides specific commands for starting new foils and these are:
11663 \end_layout
11664
11665 \begin_layout Itemize
11666
11667 \family sans
11668 Foilhead
11669 \end_layout
11670
11671 \begin_layout Itemize
11672
11673 \family sans
11674 Rotatefoilhead
11675 \end_layout
11676
11677 \begin_layout Standard
11678 \SpecialChar LyX
11679  also provides slightly modified versions of these two environments called:
11680 \end_layout
11681
11682 \begin_layout Itemize
11683
11684 \family sans
11685 ShortFoilhead
11686 \end_layout
11687
11688 \begin_layout Itemize
11689
11690 \family sans
11691 ShortRotatefoilhead
11692 \end_layout
11693
11694 \begin_layout Standard
11695 and the differences will be explained in the next section.
11696 \end_layout
11697
11698 \begin_layout Standard
11699 Since foils are often used in presenting ideas or new theorems and such
11700  
11701 \family sans
11702 Foil\SpecialChar TeX
11703
11704 \family default
11705  also provides a comprehensive box of goodies for presenting them:
11706 \end_layout
11707
11708 \begin_layout Standard
11709 \begin_inset Flex Multiple Columns
11710 status open
11711
11712 \begin_layout Itemize
11713
11714 \family sans
11715 Theorem
11716 \end_layout
11717
11718 \begin_layout Itemize
11719
11720 \family sans
11721 Lemma
11722 \end_layout
11723
11724 \begin_layout Itemize
11725
11726 \family sans
11727 Corollary
11728 \end_layout
11729
11730 \begin_layout Itemize
11731
11732 \family sans
11733 Proposition
11734 \end_layout
11735
11736 \begin_layout Itemize
11737
11738 \family sans
11739 Definition
11740 \end_layout
11741
11742 \begin_layout Itemize
11743
11744 \family sans
11745 Proof
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 Theorem*
11752 \end_layout
11753
11754 \begin_layout Itemize
11755
11756 \family sans
11757 Lemma*
11758 \end_layout
11759
11760 \begin_layout Itemize
11761
11762 \family sans
11763 Corollary*
11764 \end_layout
11765
11766 \begin_layout Itemize
11767
11768 \family sans
11769 Proposition*
11770 \end_layout
11771
11772 \begin_layout Itemize
11773
11774 \family sans
11775 Definition*
11776 \end_layout
11777
11778 \end_inset
11779
11780
11781 \end_layout
11782
11783 \begin_layout Standard
11784 The starred versions are unnumbered while the unstarred versions are numbered.
11785  There are also two list environments added by \SpecialChar LyX
11786  and these are:
11787 \end_layout
11788
11789 \begin_layout Itemize
11790
11791 \family sans
11792 TickList
11793 \end_layout
11794
11795 \begin_layout Itemize
11796
11797 \family sans
11798 CrossList
11799 \end_layout
11800
11801 \begin_layout Standard
11802
11803 \family sans
11804 Foil\SpecialChar TeX
11805
11806 \family default
11807  provides some powerful header and footer capabilities that are best set
11808  in the preamble although they may be set at any point in a document.
11809  If you want to change these settings in your document the best place to
11810  do so is at the very top of a foil, i.
11811 \begin_inset space \thinspace{}
11812 \end_inset
11813
11814 e.
11815 \emph on
11816
11817 \begin_inset space \space{}
11818 \end_inset
11819
11820
11821 \emph default
11822 straight after the foilhead.
11823 \end_layout
11824
11825 \begin_layout Standard
11826 For this purpose, the following command styles are provided [
11827 \shape smallcaps
11828 Martin Vermeer
11829 \shape default
11830 ]:
11831 \end_layout
11832
11833 \begin_layout Standard
11834 \begin_inset Flex Multiple Columns
11835 status open
11836
11837 \begin_layout Itemize
11838
11839 \family sans
11840 My
11841 \begin_inset space ~
11842 \end_inset
11843
11844 Logo
11845 \end_layout
11846
11847 \begin_layout Itemize
11848
11849 \family sans
11850 Restriction
11851 \end_layout
11852
11853 \begin_layout Itemize
11854
11855 \family sans
11856 Right
11857 \begin_inset space ~
11858 \end_inset
11859
11860 Footer
11861 \end_layout
11862
11863 \begin_layout Itemize
11864
11865 \family sans
11866 Right
11867 \begin_inset space ~
11868 \end_inset
11869
11870 Header
11871 \end_layout
11872
11873 \begin_layout Itemize
11874
11875 \family sans
11876 Left
11877 \begin_inset space ~
11878 \end_inset
11879
11880 Header
11881 \end_layout
11882
11883 \begin_deeper
11884 \begin_layout Plain Layout
11885 \begin_inset space ~
11886 \end_inset
11887
11888
11889 \end_layout
11890
11891 \end_deeper
11892 \end_inset
11893
11894
11895 \end_layout
11896
11897 \begin_layout Standard
11898 There are also a few commands provided by 
11899 \family sans
11900 Foil\SpecialChar TeX
11901
11902 \family default
11903  that aren't directly supported by \SpecialChar LyX
11904  but I'll tell you what they do and how
11905  to use them in section
11906 \begin_inset space ~
11907 \end_inset
11908
11909
11910 \begin_inset CommandInset ref
11911 LatexCommand ref
11912 reference "sec:unsuppfoils"
11913
11914 \end_inset
11915
11916 .
11917 \end_layout
11918
11919 \begin_layout Subsection
11920 Building a Set of Foils
11921 \end_layout
11922
11923 \begin_layout Standard
11924 This section will give a simple introduction to using the different environments
11925  to build a set of foils.
11926  If you want to see an example set of foils, take a look at the 
11927 \family typewriter
11928 Foils.lyx
11929 \family default
11930  file you find in \SpecialChar LyX
11931 's 
11932 \family typewriter
11933 examples
11934 \family default
11935  folder.
11936 \end_layout
11937
11938 \begin_layout Subsubsection
11939 Give It a Title Page
11940 \end_layout
11941
11942 \begin_layout Standard
11943 Unlike other classes that provide 
11944 \family sans
11945 Title
11946 \family default
11947
11948 \family sans
11949 Author
11950 \family default
11951
11952 \family sans
11953 Date
11954 \family default
11955  and 
11956 \family sans
11957 Abstract
11958 \family default
11959  environments, 
11960 \family sans
11961 foils
11962 \family default
11963  creates the title on a page of its own.
11964  If you leave out the 
11965 \family sans
11966 Date
11967 \family default
11968  environment \SpecialChar LaTeX
11969  will substitute the current date (every time you regenerate
11970  the output).
11971 \end_layout
11972
11973 \begin_layout Subsubsection
11974 Start a New Foil
11975 \end_layout
11976
11977 \begin_layout Standard
11978 As I mentioned earlier, there are four ways of starting a new foil.
11979  For portrait foils you should use 
11980 \family sans
11981 Foilhead
11982 \family default
11983  or 
11984 \family sans
11985 ShortFoilhead.
11986
11987 \family default
11988  The difference between these two environments is the amount of space between
11989  the title of the foil (the foilhead) and the body of the foil.
11990 \end_layout
11991
11992 \begin_layout Standard
11993 Landscape foils are generated using the 
11994 \family sans
11995 Rotatefoilhead
11996 \family default
11997  and 
11998 \family sans
11999 ShortRotatefoilhead
12000 \family default
12001  environments.
12002  Again the only difference is the spacing between foilhead and body.
12003  Both of the short versions have 0.5
12004 \begin_inset space ~
12005 \end_inset
12006
12007 inches less separation between the foilhead and the body.
12008  
12009 \end_layout
12010
12011 \begin_layout Standard
12012 One problem with the support for landscape foils is the requirement that
12013  you have to use the 
12014 \family typewriter
12015 dvips
12016 \family default
12017  driver to generate the PostScript output otherwise the foils won't be rotated.
12018  It is possible to get landscape foils even if you haven't got the 
12019 \family typewriter
12020 dvips
12021 \family default
12022  driver provided you can feed your foils sideways through your printer ;-)
12023 \end_layout
12024
12025 \begin_layout Subsubsection
12026 Theorems, Lemmas, Proofs and more
12027 \end_layout
12028
12029 \begin_layout Standard
12030 You can't have two of the same type of these environments directly following
12031  each other.
12032  If you use a normal paragraph break, , you will just be extending the previous
12033  environment as if you had merged the two environments together.
12034  Rather than that, you need to insert a so-called separator.
12035  Please refer to the section entitled 
12036 \emph on
12037 Separate Nestings
12038 \emph default
12039  in the 
12040 \emph on
12041 User's Guide
12042 \emph default
12043 .
12044 \end_layout
12045
12046 \begin_layout Subsubsection
12047 Lists
12048 \end_layout
12049
12050 \begin_layout Standard
12051 You get all the commonly supported list styles found in other classes as
12052  well as two new ones.
12053  I'll only describe the new ones here.
12054  If you want to find out more about the other list environments check out
12055  the 
12056 \emph on
12057 User's Guide.
12058
12059 \emph default
12060  If you intend to use itemized lists you might also want to read about the
12061  
12062 \family sans
12063 Itemize
12064 \begin_inset space ~
12065 \end_inset
12066
12067 Bullet
12068 \begin_inset space ~
12069 \end_inset
12070
12071 Selection
12072 \family default
12073  dialog described above in section
12074 \begin_inset space ~
12075 \end_inset
12076
12077
12078 \begin_inset CommandInset ref
12079 LatexCommand ref
12080 reference "sec:bullet"
12081
12082 \end_inset
12083
12084 .
12085 \end_layout
12086
12087 \begin_layout Standard
12088 The two new list styles, 
12089 \family sans
12090 TickList
12091 \family default
12092  and 
12093 \family sans
12094 CrossList
12095 \family default
12096 , are designed to make it easier for you to create lists of do's and don'ts
12097  or right and wrong by providing dedicated environments that use a tick
12098  or a cross as the label of the list.
12099  These lists are in fact dedicated variants of the 
12100 \family sans
12101 Itemize
12102 \family default
12103  environment.
12104  They do however require that you have the 
12105 \family typewriter
12106 psnfss
12107 \family default
12108  packages installed.
12109 \end_layout
12110
12111 \begin_layout Subsubsection
12112 Figures and Tables
12113 \end_layout
12114
12115 \begin_layout Standard
12116
12117 \family sans
12118 Foil\SpecialChar TeX
12119
12120 \family default
12121  redefines the floating tables and figures so that they appear exactly where
12122  they are in the text rather than pushing them to the top of the page or
12123  to some user specified location.
12124  In fact if you change the float placement settings they are simply ignored.
12125 \end_layout
12126
12127 \begin_layout Subsubsection
12128 Page Headers and Footers
12129 \begin_inset CommandInset label
12130 LatexCommand label
12131 name "sec:foilfoot"
12132
12133 \end_inset
12134
12135
12136 \end_layout
12137
12138 \begin_layout Standard
12139
12140 \family sans
12141 My
12142 \begin_inset space ~
12143 \end_inset
12144
12145 Logo
12146 \family default
12147  and 
12148 \family sans
12149 Restriction
12150 \family default
12151  are two commands used to control the left-footer text string.
12152  The first is meant to allow you to include a graphic logo on your foils
12153  and defaults to 
12154 \begin_inset Quotes eld
12155 \end_inset
12156
12157 -Typeset by 
12158 \family sans
12159 Foil\SpecialChar TeX
12160
12161 \family default
12162 -
12163 \begin_inset Quotes erd
12164 \end_inset
12165
12166 .
12167  While the second is meant to provide a classification for the audience,
12168  
12169 \emph on
12170 e.
12171 \begin_inset space \thinspace{}
12172 \end_inset
12173
12174 g.
12175 \emph default
12176
12177 \begin_inset space \space{}
12178 \end_inset
12179
12180 Confidential.
12181  It is empty by default.
12182 \end_layout
12183
12184 \begin_layout Standard
12185 The remaining page corners can be filled by 
12186 \family sans
12187 Right
12188 \begin_inset space ~
12189 \end_inset
12190
12191 Footer
12192 \family default
12193  (which defaults to page numbers), 
12194 \family sans
12195 Right
12196 \begin_inset space ~
12197 \end_inset
12198
12199 Header
12200 \family default
12201  (top right) and 
12202 \family sans
12203 Left
12204 \begin_inset space ~
12205 \end_inset
12206
12207 Header
12208 \family default
12209  (top left).
12210 \end_layout
12211
12212 \begin_layout Subsection
12213 Unsupported 
12214 \family sans
12215 Foil\SpecialChar TeX
12216
12217 \family default
12218  Goodies
12219 \begin_inset CommandInset label
12220 LatexCommand label
12221 name "sec:unsuppfoils"
12222
12223 \end_inset
12224
12225
12226 \end_layout
12227
12228 \begin_layout Standard
12229 All the commands mentioned below need to be set in a 
12230 \family sans
12231 \SpecialChar LaTeX
12232
12233 \family default
12234  environment or as 
12235 \family sans
12236 \SpecialChar TeX
12237
12238 \family default
12239  within another environment.
12240 \end_layout
12241
12242 \begin_layout Subsubsection
12243 Lengths
12244 \end_layout
12245
12246 \begin_layout Standard
12247 All lengths are adjusted using the 
12248 \family typewriter
12249
12250 \backslash
12251 setlength{
12252 \family default
12253 \emph on
12254 lengthname
12255 \family typewriter
12256 \emph default
12257 }{
12258 \family default
12259 \emph on
12260 newlength
12261 \family typewriter
12262 \emph default
12263 }
12264 \family default
12265  command.
12266  Where 
12267 \emph on
12268 lengthname
12269 \emph default
12270  should be replaced by the name given to the length you want to change and
12271  
12272 \emph on
12273 newlength
12274 \emph default
12275  is the length value.
12276  All lengths should be specified in units of length such as inches (
12277 \family typewriter
12278 in
12279 \family default
12280 ), millimeters (
12281 \family typewriter
12282 mm
12283 \family default
12284 ) or points (
12285 \family typewriter
12286 pt
12287 \family default
12288 ) or relative to some document or font-based length such as 
12289 \family typewriter
12290
12291 \backslash
12292 textwidth
12293 \family default
12294 .
12295  
12296 \end_layout
12297
12298 \begin_layout Standard
12299 It's possible to change the spacing between a foilhead and the body of the
12300  foil by adjusting the length specified by 
12301 \family typewriter
12302
12303 \backslash
12304 foilheadskip
12305 \family default
12306 .
12307  For example, to make 
12308 \emph on
12309 all
12310 \emph default
12311  foilheads 0.5
12312 \begin_inset space \space{}
12313 \end_inset
12314
12315 in closer to their bodies put the following in the preamble: 
12316 \family typewriter
12317
12318 \backslash
12319 setlength{
12320 \backslash
12321 foilheadskip}{-0.5in}
12322 \end_layout
12323
12324 \begin_layout Standard
12325 The spacings around floats can be adjusted by setting these lengths:
12326 \end_layout
12327
12328 \begin_layout Labeling
12329 \labelwidthstring MMMMMMMMMMM
12330
12331 \family typewriter
12332
12333 \backslash
12334 abovefloatskip
12335 \family default
12336  Separation between the text and the top of the float
12337 \end_layout
12338
12339 \begin_layout Labeling
12340 \labelwidthstring MMMMMMMMMMM
12341
12342 \family typewriter
12343
12344 \backslash
12345 abovecaptionskip
12346 \family default
12347  Separation between the float and the caption
12348 \end_layout
12349
12350 \begin_layout Labeling
12351 \labelwidthstring MMMMMMMMMMM
12352
12353 \family typewriter
12354
12355 \backslash
12356 belowcaptionskip
12357 \family default
12358  Separation between the caption and the following text
12359 \end_layout
12360
12361 \begin_layout Labeling
12362 \labelwidthstring MMMMMMMMMMM
12363
12364 \family typewriter
12365
12366 \backslash
12367 captionwidth
12368 \family default
12369  You can make the captions narrower than the surrounding text by adjusting
12370  this length.
12371  Best done relative to 
12372 \family typewriter
12373
12374 \backslash
12375 textwidth
12376 \family default
12377 .
12378 \end_layout
12379
12380 \begin_layout Standard
12381 There are also several title page related lengths that you may find useful
12382  if you have a long title or several authors:
12383 \end_layout
12384
12385 \begin_layout Labeling
12386 \labelwidthstring MMMMMMMMMMM
12387
12388 \family typewriter
12389
12390 \backslash
12391 abovetitleskip
12392 \family default
12393  Separation from headers to 
12394 \family sans
12395 Title
12396 \end_layout
12397
12398 \begin_layout Labeling
12399 \labelwidthstring MMMMMMMMMMM
12400
12401 \family typewriter
12402
12403 \backslash
12404 titleauthorskip
12405 \family default
12406  between 
12407 \family sans
12408 Title
12409 \family default
12410  and 
12411 \family sans
12412 Author
12413 \family default
12414  environments
12415 \end_layout
12416
12417 \begin_layout Labeling
12418 \labelwidthstring MMMMMMMMMMM
12419
12420 \family typewriter
12421
12422 \backslash
12423 authorauthorskip
12424 \family default
12425  between multiple 
12426 \family sans
12427 Author
12428 \family default
12429  lines
12430 \end_layout
12431
12432 \begin_layout Labeling
12433 \labelwidthstring MMMMMMMMMMM
12434
12435 \family typewriter
12436
12437 \backslash
12438 authordateskip
12439 \family default
12440  between the 
12441 \family sans
12442 Author
12443 \family default
12444  and the 
12445 \family sans
12446 Date
12447 \end_layout
12448
12449 \begin_layout Labeling
12450 \labelwidthstring MMMMMMMMMMM
12451
12452 \family typewriter
12453
12454 \backslash
12455 dateabstractskip
12456 \family default
12457  between the 
12458 \family sans
12459 Date
12460 \family default
12461  and the 
12462 \family sans
12463 Abstract
12464 \end_layout
12465
12466 \begin_layout Standard
12467 The last length related command affects all the list environments.
12468  If you place 
12469 \family typewriter
12470
12471 \backslash
12472 zerolistvertdimens
12473 \family default
12474  
12475 \emph on
12476 inside
12477 \emph default
12478  a list environment then all the vertical spacing between the list items
12479  is removed.
12480  Note that this is a command not a length so it doesn't require 
12481 \family typewriter
12482
12483 \backslash
12484 setlength
12485 \family default
12486  like the stuff mentioned above.
12487 \end_layout
12488
12489 \begin_layout Subsubsection
12490 Headers and Footers
12491 \end_layout
12492
12493 \begin_layout Standard
12494 The 
12495 \family typewriter
12496
12497 \backslash
12498 LogoOn
12499 \family default
12500  and 
12501 \family typewriter
12502
12503 \backslash
12504 LogoOff
12505 \family default
12506  commands control whether the logo in the 
12507 \family sans
12508 MyLogo
12509 \family default
12510  definition appear on a given page.
12511  If you put 
12512 \family typewriter
12513
12514 \backslash
12515 LogoOff
12516 \family default
12517  in the preamble then none of the foils will have the logo on them.
12518  If you don't want the logo on a particular page place the 
12519 \family typewriter
12520
12521 \backslash
12522 LogoOff
12523 \family default
12524  directly after the foilhead of that page and the 
12525 \family typewriter
12526
12527 \backslash
12528 LogoOn
12529 \family default
12530  directly after the next foilhead.
12531 \end_layout
12532
12533 \begin_layout Standard
12534 If you decide to use the 
12535 \family sans
12536 fancy
12537 \family default
12538  page style setting in the 
12539 \family sans
12540 Document
12541 \begin_inset space ~
12542 \end_inset
12543
12544 Layout
12545 \family default
12546  dialog you should probably add 
12547 \family typewriter
12548
12549 \backslash
12550 let
12551 \backslash
12552 headwidth
12553 \backslash
12554 textwidth
12555 \family default
12556  to your preamble so headers and footers on landscape pages are correctly
12557  placed when rotated.
12558  This is due to some clashes between the page layouts provided by the 
12559 \family sans
12560 fancyheadings
12561 \family default
12562  package and the 
12563 \family sans
12564 foils
12565 \family default
12566  class.
12567 \end_layout
12568
12569 \begin_layout Section
12570 Hollywood (Hollywood spec scripts)
12571 \end_layout
12572
12573 \begin_layout Standard
12574 by 
12575 \shape smallcaps
12576 Garst Reese
12577 \end_layout
12578
12579 \begin_layout Subsection
12580 Introduction
12581 \end_layout
12582
12583 \begin_layout Standard
12584 Getting the format of a Hollywood script right is a 
12585 \begin_inset Quotes eld
12586 \end_inset
12587
12588 rite of passage.
12589 \begin_inset Quotes erd
12590 \end_inset
12591
12592  It is designed to make the readers focus on content and to be easy and
12593  familiar for the actors to read.
12594  Each page of a script should be one minute of film.
12595  Nothing goes in a script that you cannot see or hear on screen.
12596  The courier 12 pt font should be used throughout.
12597  No italics.
12598 \end_layout
12599
12600 \begin_layout Subsection
12601 Special problems
12602 \end_layout
12603
12604 \begin_layout Standard
12605 Speakers' lines should NEVER break in mid-sentence.
12606  If a speaker's lines continue over a page break, repeat the 
12607 \family sans
12608 Speaker
12609 \family default
12610  title followed by (Cont'd).
12611 \end_layout
12612
12613 \begin_layout Subsection
12614 Special features
12615 \end_layout
12616
12617 \begin_layout Standard
12618 Insert the 
12619 \family sans
12620 Speaker
12621 \family default
12622  names as labels then cross-reference the label to insert the name.
12623  The cross-reference dialog will show the current cast of characters.
12624  You can use this to insert the speaker name in narratives also.
12625 \end_layout
12626
12627 \begin_layout Subsection
12628 Paper size and Margins
12629 \end_layout
12630
12631 \begin_layout Standard
12632 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12633 \end_layout
12634
12635 \begin_layout Subsection
12636 Environments
12637 \end_layout
12638
12639 \begin_layout Standard
12640 The following environments are available.
12641  You can use hollywood.bind to get the bind keys shown at the right.
12642 \end_layout
12643
12644 \begin_layout Itemize
12645
12646 \family sans
12647 Standard
12648 \begin_inset Newline newline
12649 \end_inset
12650
12651
12652 \family default
12653 Used where nothing else works.
12654  Try to avoid it.
12655 \end_layout
12656
12657 \begin_layout Itemize
12658
12659 \family sans
12660 FADE_IN
12661 \family default
12662 :
12663 \begin_inset space \hfill{}
12664 \end_inset
12665
12666
12667 \family sans
12668 M-z S-I
12669 \family default
12670
12671 \begin_inset Newline newline
12672 \end_inset
12673
12674 Usually followed by something like 
12675 \begin_inset Quotes eld
12676 \end_inset
12677
12678 on Sally waking up.
12679 \begin_inset Quotes erd
12680 \end_inset
12681
12682
12683 \end_layout
12684
12685 \begin_layout Itemize
12686
12687 \family sans
12688 INT:
12689 \begin_inset space \hfill{}
12690 \end_inset
12691
12692 M-z i
12693 \begin_inset Newline newline
12694 \end_inset
12695
12696
12697 \family default
12698 Introduces a new INTERIOR camera set-up.
12699  Always followed by DAY or NIGHT, or something similar to define the lighting
12700  required.
12701  Everthing on this line in CAPS.
12702 \end_layout
12703
12704 \begin_layout Itemize
12705
12706 \family sans
12707 EXT:
12708 \begin_inset space \hfill{}
12709 \end_inset
12710
12711 M-z e
12712 \begin_inset Newline newline
12713 \end_inset
12714
12715
12716 \family default
12717 Introduces a new EXTERIOR camera set-up.
12718  Everthing on this line in CAPS.
12719 \end_layout
12720
12721 \begin_layout Itemize
12722
12723 \family sans
12724 Speaker
12725 \begin_inset space \hfill{}
12726 \end_inset
12727
12728 M-z s
12729 \begin_inset Newline newline
12730 \end_inset
12731
12732
12733 \family default
12734 The character speaking.
12735 \end_layout
12736
12737 \begin_layout Itemize
12738
12739 \family sans
12740 Parenthetical
12741 \begin_inset space \hfill{}
12742 \end_inset
12743
12744 M-z p
12745 \begin_inset Newline newline
12746 \end_inset
12747
12748
12749 \family default
12750 Instructions to the speaker.
12751  The () are automatically inserted.
12752 \end_layout
12753
12754 \begin_layout Itemize
12755
12756 \family sans
12757 Dialogue
12758 \begin_inset space \hfill{}
12759 \end_inset
12760
12761 M-z d
12762 \begin_inset Newline newline
12763 \end_inset
12764
12765
12766 \family default
12767 What the 
12768 \family sans
12769 Speaker
12770 \family default
12771  says.
12772 \end_layout
12773
12774 \begin_layout Itemize
12775
12776 \family sans
12777 Transition
12778 \begin_inset space \hfill{}
12779 \end_inset
12780
12781 M-z t
12782 \begin_inset Newline newline
12783 \end_inset
12784
12785
12786 \family default
12787 Camera movement instruction.
12788  e.
12789 \begin_inset space \thinspace{}
12790 \end_inset
12791
12792 g.
12793 \begin_inset space \space{}
12794 \end_inset
12795
12796 CUT TO:
12797 \end_layout
12798
12799 \begin_layout Itemize
12800
12801 \family sans
12802 FADE OUT:
12803 \begin_inset space \hfill{}
12804 \end_inset
12805
12806 M-z S-I
12807 \end_layout
12808
12809 \begin_layout Itemize
12810
12811 \family sans
12812 Author
12813 \begin_inset space \hfill{}
12814 \end_inset
12815
12816 M-z S-A
12817 \end_layout
12818
12819 \begin_layout Itemize
12820
12821 \family sans
12822 Title
12823 \begin_inset space \hfill{}
12824 \end_inset
12825
12826 M-z S-T
12827 \end_layout
12828
12829 \begin_layout Itemize
12830
12831 \family sans
12832 Right_Address
12833 \begin_inset space \hfill{}
12834 \end_inset
12835
12836 M-z r
12837 \end_layout
12838
12839 \begin_layout Subsection
12840 Script jargon
12841 \end_layout
12842
12843 \begin_layout Itemize
12844 (O.S) â€” off screen
12845 \end_layout
12846
12847 \begin_layout Itemize
12848 (V.0) â€” voice over
12849 \end_layout
12850
12851 \begin_layout Itemize
12852 b.
12853 \begin_inset space \thinspace{}
12854 \end_inset
12855
12856 g.
12857  â€” background
12858 \end_layout
12859
12860 \begin_layout Itemize
12861 C.U.
12862  â€” close-up
12863 \end_layout
12864
12865 \begin_layout Itemize
12866 PAN â€” camera movement
12867 \end_layout
12868
12869 \begin_layout Itemize
12870 INSERT â€” cut to close-up of
12871 \end_layout
12872
12873 \begin_layout Section
12874 ijmpc and ijmpd
12875 \end_layout
12876
12877 \begin_layout Standard
12878 by 
12879 \noun on
12880 Panayotis Papasotiriou
12881 \end_layout
12882
12883 \begin_layout Subsection
12884 Overview
12885 \end_layout
12886
12887 \begin_layout Standard
12888 The ijmpc package is a set of macros that facilitates electronic manuscript
12889  submission to the 
12890 \emph on
12891 International Journal of Modern Physics C
12892 \emph default
12893 .
12894  Similarly, the ijmpd package is for creating manuscripts to be submitted
12895  to the 
12896 \emph on
12897 International Journal of Modern Physics D
12898 \emph default
12899 .
12900  Both journals are published by World Scientific.
12901  The corresponding document classes are named 
12902 \family typewriter
12903 ws-ijmpc.cls
12904 \family default
12905  and 
12906 \family typewriter
12907 ws-ijmpd.cls
12908 \family default
12909 , respectively.
12910  These files, together with instructions for the authors, can be downloaded
12911  from the sites 
12912 \begin_inset Flex URL
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916
12917 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12918 \end_layout
12919
12920 \end_inset
12921
12922  and 
12923 \begin_inset Flex URL
12924 status collapsed
12925
12926 \begin_layout Plain Layout
12927
12928 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12929 \end_layout
12930
12931 \end_inset
12932
12933 .
12934  Both packages are modified versions of the standard 
12935 \begin_inset Quotes eld
12936 \end_inset
12937
12938 article
12939 \begin_inset Quotes erd
12940 \end_inset
12941
12942  package, and they are almost (but not exactly) identical.
12943  Most of their features are supported by \SpecialChar LyX
12944 .
12945  I have used \SpecialChar LyX
12946  successfully to write articles submitted to both journals
12947  without any problem.
12948 \end_layout
12949
12950 \begin_layout Subsection
12951 Writing a paper
12952 \end_layout
12953
12954 \begin_layout Standard
12955 As usual, the easiest way to write a paper is to start with a template.
12956  Click on 
12957 \family sans
12958 File\SpecialChar menuseparator
12959 New from
12960 \family default
12961  
12962 \family sans
12963 Template
12964 \family default
12965 , then choose the 
12966 \family typewriter
12967 ijmpc.lyx
12968 \family default
12969  or 
12970 \family typewriter
12971 ijmpd.lyx
12972 \family default
12973  template.
12974  This will give an (almost) empty document that includes the most common
12975  fields found in a manuscript.
12976  Simply overwrite the existing text (including the brackets, 
12977 \family typewriter
12978 <>
12979 \family default
12980 ) with your text.
12981  You should keep in mind the following remarks.
12982 \end_layout
12983
12984 \begin_layout Enumerate
12985 \SpecialChar LyX
12986  won't let you change the font size and the page style of the document,
12987  because such modifications are not allowed by both packages.
12988 \end_layout
12989
12990 \begin_layout Enumerate
12991 The language of the document should not be changed.
12992  Before previewing your paper, be sure that the babel package is not used.
12993  To do this, click on 
12994 \begin_inset Info
12995 type  "menu"
12996 arg   "dialog-show document"
12997 \end_inset
12998
12999  
13000 \family sans
13001 \SpecialChar menuseparator
13002 Language
13003 \family default
13004 , and select 
13005 \begin_inset Quotes eld
13006 \end_inset
13007
13008 None
13009 \begin_inset Quotes erd
13010 \end_inset
13011
13012  as 
13013 \family sans
13014 Language Package
13015 \family default
13016 .
13017 \end_layout
13018
13019 \begin_layout Enumerate
13020 The 
13021 \begin_inset Quotes eld
13022 \end_inset
13023
13024 Keywords
13025 \begin_inset Quotes erd
13026 \end_inset
13027
13028  style must be used to define keywords.
13029 \end_layout
13030
13031 \begin_layout Enumerate
13032 The ijmpc package provides a style named 
13033 \begin_inset Quotes eld
13034 \end_inset
13035
13036 Classification Codes
13037 \begin_inset Quotes erd
13038 \end_inset
13039
13040 , which can be used to define classification codes, such as PACS numbers.
13041  Note that this facility is not supported by the ijmpd package.
13042 \end_layout
13043
13044 \begin_layout Enumerate
13045 Several new environments are available: 
13046 \begin_inset Quotes eld
13047 \end_inset
13048
13049 Definition
13050 \begin_inset Quotes erd
13051 \end_inset
13052
13053
13054 \begin_inset Quotes eld
13055 \end_inset
13056
13057 Step
13058 \begin_inset Quotes erd
13059 \end_inset
13060
13061
13062 \begin_inset Quotes eld
13063 \end_inset
13064
13065 Example
13066 \begin_inset Quotes erd
13067 \end_inset
13068
13069
13070 \begin_inset Quotes eld
13071 \end_inset
13072
13073 Remark
13074 \begin_inset Quotes erd
13075 \end_inset
13076
13077
13078 \begin_inset Quotes eld
13079 \end_inset
13080
13081 Notation
13082 \begin_inset Quotes erd
13083 \end_inset
13084
13085
13086 \begin_inset Quotes eld
13087 \end_inset
13088
13089 Theorem
13090 \begin_inset Quotes erd
13091 \end_inset
13092
13093
13094 \begin_inset Quotes eld
13095 \end_inset
13096
13097 Proof
13098 \begin_inset Quotes erd
13099 \end_inset
13100
13101
13102 \begin_inset Quotes eld
13103 \end_inset
13104
13105 Corollary
13106 \begin_inset Quotes erd
13107 \end_inset
13108
13109
13110 \begin_inset Quotes eld
13111 \end_inset
13112
13113 Lemma
13114 \begin_inset Quotes erd
13115 \end_inset
13116
13117
13118 \begin_inset Quotes eld
13119 \end_inset
13120
13121 Proposition
13122 \begin_inset Quotes erd
13123 \end_inset
13124
13125
13126 \begin_inset Quotes eld
13127 \end_inset
13128
13129 Prop
13130 \begin_inset Quotes erd
13131 \end_inset
13132
13133
13134 \begin_inset Quotes eld
13135 \end_inset
13136
13137 Question
13138 \begin_inset Quotes erd
13139 \end_inset
13140
13141
13142 \begin_inset Quotes eld
13143 \end_inset
13144
13145 Claim
13146 \begin_inset Quotes erd
13147 \end_inset
13148
13149 , and 
13150 \begin_inset Quotes eld
13151 \end_inset
13152
13153 Conjecture
13154 \begin_inset Quotes erd
13155 \end_inset
13156
13157 .
13158  Their use is more or less obvious.
13159  \SpecialChar LyX
13160  supports all these environments; it will use the proper label, text style,
13161  and numbering scheme for each of them.
13162 \end_layout
13163
13164 \begin_layout Enumerate
13165 Both packages use basic citations; the natbib package should not be used.
13166  In \SpecialChar LyX
13167 , citation references are shown as usual; in the output, citations are
13168  shown as superscripts.
13169  If you want to use a citation as normal text, you should use the 
13170 \family typewriter
13171 refcite
13172 \family default
13173  command, e.
13174 \begin_inset space \thinspace{}
13175 \end_inset
13176
13177 g.
13178 \begin_inset space \space{}
13179 \end_inset
13180
13181
13182 \begin_inset Quotes eld
13183 \end_inset
13184
13185 See Ref.
13186 \begin_inset space \space{}
13187 \end_inset
13188
13189
13190 \family typewriter
13191
13192 \backslash
13193 refcite{key}
13194 \family default
13195
13196 \begin_inset Quotes erd
13197 \end_inset
13198
13199 .
13200 \end_layout
13201
13202 \begin_layout Enumerate
13203 There is no 
13204 \begin_inset Quotes eld
13205 \end_inset
13206
13207 Acknowledgments
13208 \begin_inset Quotes erd
13209 \end_inset
13210
13211  section in both packages.
13212  To put acknowledgments, just use the 
13213 \begin_inset Quotes eld
13214 \end_inset
13215
13216 Section*
13217 \begin_inset Quotes erd
13218 \end_inset
13219
13220  environment.
13221 \end_layout
13222
13223 \begin_layout Enumerate
13224 Appendices may be added to the paper, 
13225 \emph on
13226 after
13227 \emph default
13228  the Acknowledgments and 
13229 \shape italic
13230 before
13231 \shape default
13232  the References.
13233  \SpecialChar LyX
13234  provides a special environment, called 
13235 \begin_inset Quotes eld
13236 \end_inset
13237
13238 Appendices Section
13239 \begin_inset Quotes erd
13240 \end_inset
13241
13242  which marks the beginning of the appendices.
13243  This environment should be left blank; it just sends a \SpecialChar LaTeX
13244  command, but nothing
13245  is really printed.
13246  In \SpecialChar LyX
13247 , the word 
13248 \begin_inset Quotes eld
13249 \end_inset
13250
13251 Appendix
13252 \begin_inset Quotes erd
13253 \end_inset
13254
13255  is printed with blue letters, as a signal that all sections after that
13256  point are appendices.
13257  To write an appendix, use the 
13258 \begin_inset Quotes eld
13259 \end_inset
13260
13261 Appendix
13262 \begin_inset Quotes erd
13263 \end_inset
13264
13265  environment.
13266  \SpecialChar LyX
13267  will number each appendix with capital letters, as required by both journals.
13268  Note that 
13269 \begin_inset Quotes eld
13270 \end_inset
13271
13272 Appendices Section
13273 \begin_inset Quotes erd
13274 \end_inset
13275
13276  
13277 \emph on
13278 must
13279 \emph default
13280  be present before the first appendix; if not, all appendices will be numbered
13281  as normal sections in the output.
13282 \end_layout
13283
13284 \begin_layout Enumerate
13285 The ijmpc and the ijmpd packages use the 
13286 \family typewriter
13287 tbl
13288 \family default
13289  command to implement table captions.
13290  As a result, a table created by \SpecialChar LyX
13291  is printed correctly, but its caption
13292  is ignored.
13293  However, you can use some \SpecialChar TeX
13294  code to overcome this problem, so that captions
13295  are printed as expected.
13296  To do so, create a float table as usual, remove the caption, and replace
13297  it with the \SpecialChar TeX
13298  code 
13299 \family typewriter
13300
13301 \backslash
13302 tbl{
13303 \emph on
13304 your table caption
13305 \emph default
13306 }{
13307 \family default
13308  (sic); you must also the \SpecialChar TeX
13309  code 
13310 \family typewriter
13311 }
13312 \family default
13313  immediately after the tabular material.
13314  Study the example table included in the template files to see how this
13315  trick is implemented.
13316  Alternatively, If you need table captions, you should implement the whole
13317  table float in a 
13318 \family typewriter
13319 .tex
13320 \family default
13321  file, then include this file to the \SpecialChar LyX
13322  document (
13323 \family sans
13324 Insert\SpecialChar menuseparator
13325 File\SpecialChar menuseparator
13326 Child
13327 \begin_inset space ~
13328 \end_inset
13329
13330 Document
13331 \family default
13332 ).
13333  Details on how to create a table float can be found in the files 
13334 \family typewriter
13335 ws-ijmpc.tex
13336 \family default
13337  and 
13338 \family typewriter
13339 ws-ijmpd.tex
13340 \family default
13341 , included in the corresponding packages.
13342 \end_layout
13343
13344 \begin_layout Subsection
13345 Preparing a paper for submission
13346 \end_layout
13347
13348 \begin_layout Standard
13349 Before you submit your paper you must export the \SpecialChar LyX
13350  document as a \SpecialChar LaTeX
13351  file (
13352 \family sans
13353 File\SpecialChar menuseparator
13354 Export\SpecialChar menuseparator
13355 \SpecialChar LaTeX
13356
13357 \family default
13358 )
13359 \begin_inset Foot
13360 status open
13361
13362 \begin_layout Plain Layout
13363 Actually you have the choice between \SpecialChar LaTeX
13364  (plain) and pdflatex.
13365  If you intend to use pdflatex to prepare the paper, you should use the
13366  pdflatex option so that included graphics are converted to PDF format,
13367  ready for use by pdflatex.
13368 \end_layout
13369
13370 \end_inset
13371
13372 , then make the following changes to the resulting 
13373 \family typewriter
13374 .tex
13375 \family default
13376  file.
13377 \end_layout
13378
13379 \begin_layout Enumerate
13380 Remove the comment lines before the 
13381 \family typewriter
13382
13383 \backslash
13384 documentclass
13385 \family default
13386  command.
13387 \end_layout
13388
13389 \begin_layout Enumerate
13390 Remove everything between (and including) the 
13391 \family typewriter
13392
13393 \backslash
13394 makeatletter
13395 \family default
13396  and 
13397 \family typewriter
13398
13399 \backslash
13400 makeatother
13401 \family default
13402  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13403  preamble.
13404 \end_layout
13405
13406 \begin_layout Standard
13407 The modified 
13408 \family typewriter
13409 .tex
13410 \family default
13411  file should be saved and processed through \SpecialChar LaTeX
13412  as many times as necessary.
13413  You may also want to check the resulting 
13414 \family typewriter
13415 .dvi
13416 \family default
13417  document.
13418 \end_layout
13419
13420 \begin_layout Section
13421 iopart
13422 \end_layout
13423
13424 \begin_layout Standard
13425 by 
13426 \noun on
13427 Uwe Stöhr
13428 \end_layout
13429
13430 \begin_layout Subsection
13431 Overview
13432 \end_layout
13433
13434 \begin_layout Standard
13435 The iopart package provides a document class to create electronic manuscript
13436  submission to the journals published by the Institute of Physics.
13437  Instructions for the authors how to create a paper using the iopart class
13438  can be downloaded together with the iopart package from the site 
13439 \begin_inset Flex URL
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443
13444 ftp://ftp.iop.org/pub/journals/latex2e
13445 \end_layout
13446
13447 \end_inset
13448
13449 .
13450 \end_layout
13451
13452 \begin_layout Subsection
13453 Writing a paper
13454 \end_layout
13455
13456 \begin_layout Standard
13457 The easiest way to write a paper is to start with the template 
13458 \emph on
13459 IOP-article.lyx
13460 \emph default
13461  that is available via 
13462 \family sans
13463 File\SpecialChar menuseparator
13464 New From Template
13465 \family default
13466  The template explains how to use the special text environments.
13467  Here are the most important advices:
13468 \end_layout
13469
13470 \begin_layout Itemize
13471 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13472  no AMS packages are loaded in 
13473 \family sans
13474 Document\SpecialChar menuseparator
13475 Settings\SpecialChar menuseparator
13476 Math Options
13477 \family default
13478 !
13479 \end_layout
13480
13481 \begin_layout Itemize
13482
13483 \size normal
13484 The title environment defines the kind of your paper.
13485  So use one of the following environments for the title:
13486 \end_layout
13487
13488 \begin_deeper
13489 \begin_layout Itemize
13490
13491 \family sans
13492 \size normal
13493 Title
13494 \family default
13495  for a Paper
13496 \end_layout
13497
13498 \begin_layout Itemize
13499
13500 \family sans
13501 \size normal
13502 Review
13503 \family default
13504  for a Review
13505 \end_layout
13506
13507 \begin_layout Itemize
13508
13509 \family sans
13510 \size normal
13511 Topical
13512 \family default
13513  for a Topical review
13514 \end_layout
13515
13516 \begin_layout Itemize
13517
13518 \family sans
13519 \size normal
13520 Comment
13521 \family default
13522  for a Comment
13523 \end_layout
13524
13525 \begin_layout Itemize
13526
13527 \family sans
13528 \size normal
13529 Note
13530 \family default
13531  for a Note
13532 \end_layout
13533
13534 \begin_layout Itemize
13535
13536 \family sans
13537 \size normal
13538 Paper
13539 \family default
13540  for a Paper (same as Title)
13541 \end_layout
13542
13543 \begin_layout Itemize
13544
13545 \family sans
13546 \size normal
13547 Prelim
13548 \family default
13549  for a Preliminary communication
13550 \end_layout
13551
13552 \begin_layout Itemize
13553
13554 \family sans
13555 \size normal
13556 Rapid
13557 \family default
13558  for a Rapid communication
13559 \end_layout
13560
13561 \begin_layout Itemize
13562
13563 \family sans
13564 \size normal
13565 Letter
13566 \family default
13567  for a Letter to the editor
13568 \end_layout
13569
13570 \end_deeper
13571 \begin_layout Itemize
13572
13573 \size normal
13574 All title environments except of 
13575 \family sans
13576 Letter
13577 \family default
13578  can have an optional short title.
13579 \end_layout
13580
13581 \begin_layout Itemize
13582 There is a general title environment 
13583 \family sans
13584 Article
13585 \family default
13586  which is not directly supported by \SpecialChar LyX
13587 .
13588  This can be used as \SpecialChar TeX
13589  code when your document doesn't fit into one of the
13590  other title types.
13591 \end_layout
13592
13593 \begin_layout Standard
13594 For more informations like hints for special table and formula formatting,
13595  look at the IOP author guidelines.
13596 \end_layout
13597
13598 \begin_layout Section
13599 Kluwer
13600 \end_layout
13601
13602 \begin_layout Standard
13603 by 
13604 \noun on
13605 Panayotis Papasotiriou
13606 \end_layout
13607
13608 \begin_layout Subsection
13609 Overview
13610 \end_layout
13611
13612 \begin_layout Standard
13613 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13614  that facilitates electronic manuscript submission to the journals they
13615  publish.
13616  Most known of them (at least in my domain of interest) are 
13617 \emph on
13618 Astrophysics and Space Science
13619 \emph default
13620  and 
13621 \emph on
13622 Solar Physics
13623 \emph default
13624 , but there are many others (see a complete list at 
13625 \begin_inset Flex URL
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629
13630 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13631 \end_layout
13632
13633 \end_inset
13634
13635 ).
13636  The Kluwer package may be downloaded from the site 
13637 \begin_inset Flex URL
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641
13642 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13643 \end_layout
13644
13645 \end_inset
13646
13647 .
13648  A complete user guide is contained in that package (but it can also be
13649  downloaded separately).
13650 \end_layout
13651
13652 \begin_layout Standard
13653 \SpecialChar LyX
13654  supports many features of the package but not everything.
13655  However, the \SpecialChar TeX
13656  code needed is reduced to some 
13657 \begin_inset Quotes eld
13658 \end_inset
13659
13660 peculiar
13661 \begin_inset Quotes erd
13662 \end_inset
13663
13664  commands of the package (see
13665 \begin_inset space ~
13666 \end_inset
13667
13668
13669 \begin_inset CommandInset ref
13670 LatexCommand ref
13671 reference "subsec:kluwer_peculiarities"
13672
13673 \end_inset
13674
13675 ).
13676  I have recently used \SpecialChar LyX
13677  to write an article submitted to the 
13678 \emph on
13679 Astrophysics and Space Science
13680 \emph default
13681  without any problem.
13682 \end_layout
13683
13684 \begin_layout Subsection
13685 Writing a paper
13686 \end_layout
13687
13688 \begin_layout Standard
13689 The easiest way to write a paper is to start with the Kluwer template file.
13690  Click on 
13691 \family sans
13692 File\SpecialChar menuseparator
13693 New from
13694 \family default
13695  
13696 \family sans
13697 Template
13698 \family default
13699 , then choose the 
13700 \family typewriter
13701 kluwer.lyx
13702 \family default
13703  template.
13704  This will give an (almost) empty document that includes the most common
13705  fields found in a manuscript and a short description of their use.
13706  As in most templates, simply overwrite the existing text (including the
13707  brackets, 
13708 \family typewriter
13709 <>
13710 \family default
13711 ) with the correct information.
13712 \end_layout
13713
13714 \begin_layout Subsection
13715 Preparing a paper for submission
13716 \end_layout
13717
13718 \begin_layout Standard
13719 As in the AAS\SpecialChar TeX
13720  package, before you submit your paper to a journal you must
13721  
13722 \begin_inset Quotes eld
13723 \end_inset
13724
13725 postprocess
13726 \begin_inset Quotes erd
13727 \end_inset
13728
13729  it as follows.
13730 \end_layout
13731
13732 \begin_layout Enumerate
13733 Export your paper as a \SpecialChar LaTeX
13734  file.
13735  To do this, click on 
13736 \family sans
13737 File\SpecialChar menuseparator
13738 Export\SpecialChar menuseparator
13739 \SpecialChar LaTeX
13740
13741 \family default
13742 .
13743  
13744 \end_layout
13745
13746 \begin_layout Enumerate
13747 Edit the resulting 
13748 \family typewriter
13749 .tex
13750 \family default
13751  file with a text editor and make the following changes
13752 \end_layout
13753
13754 \begin_deeper
13755 \begin_layout Enumerate
13756 remove the comment lines before the 
13757 \family typewriter
13758
13759 \backslash
13760 documentclass
13761 \family default
13762  command,
13763 \end_layout
13764
13765 \begin_layout Enumerate
13766 remove everything between (and including) the 
13767 \family typewriter
13768
13769 \backslash
13770 makeatletter
13771 \family default
13772  and 
13773 \family typewriter
13774
13775 \backslash
13776 makeatother
13777 \family default
13778  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13779  preamble.
13780 \end_layout
13781
13782 \begin_layout Standard
13783 Save the resulting 
13784 \family typewriter
13785 .tex
13786 \family default
13787  file.
13788 \end_layout
13789
13790 \end_deeper
13791 \begin_layout Enumerate
13792 Run the 
13793 \family typewriter
13794 .tex
13795 \family default
13796  file through \SpecialChar LaTeX
13797  as many times as necessary (usually up to three).
13798 \end_layout
13799
13800 \begin_layout Enumerate
13801 View the resulting 
13802 \family typewriter
13803 .dvi
13804 \family default
13805  document using, e.
13806 \begin_inset space \thinspace{}
13807 \end_inset
13808
13809 g.
13810 \begin_inset space \space{}
13811 \end_inset
13812
13813
13814 \family sans
13815 xdvi
13816 \family default
13817 , and check if everything is OK (it should, if you didn't make any mistake).
13818 \end_layout
13819
13820 \begin_layout Subsection
13821 \begin_inset Quotes eld
13822 \end_inset
13823
13824 Peculiarities
13825 \begin_inset Quotes erd
13826 \end_inset
13827
13828  of the Kluwer package
13829 \begin_inset CommandInset label
13830 LatexCommand label
13831 name "subsec:kluwer_peculiarities"
13832
13833 \end_inset
13834
13835
13836 \end_layout
13837
13838 \begin_layout Standard
13839 The Kluwer package has the following 
13840 \begin_inset Quotes eld
13841 \end_inset
13842
13843 peculiarities
13844 \begin_inset Quotes erd
13845 \end_inset
13846
13847 .
13848 \end_layout
13849
13850 \begin_layout Enumerate
13851 It is possible to write multiple articles in the same \SpecialChar LaTeX
13852  file
13853 \begin_inset Foot
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 I can't imagine any good reason to do this.
13858 \end_layout
13859
13860 \end_inset
13861
13862 .
13863  Each article must be included in the environment 
13864 \begin_inset Quotes eld
13865 \end_inset
13866
13867 article
13868 \begin_inset Quotes erd
13869 \end_inset
13870
13871 .
13872  Unfortunately, this environment cannot be omitted, even if you write just
13873  one article.
13874  Therefore, each article starts with the command 
13875 \family typewriter
13876
13877 \backslash
13878 begin{article}
13879 \family default
13880  and, obviously, ends with the command 
13881 \family typewriter
13882
13883 \backslash
13884 end{article}
13885 \family default
13886 .
13887  Although this can be implemented in \SpecialChar LyX
13888 , I didn't included it, since it looks
13889  ugly and can confuse the novice user.
13890  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
13891  code (the
13892  well-known 
13893 \begin_inset Quotes eld
13894 \end_inset
13895
13896 \SpecialChar TeX
13897  code
13898 \begin_inset Quotes erd
13899 \end_inset
13900
13901 ).
13902 \end_layout
13903
13904 \begin_layout Enumerate
13905 Information given at the beginning of the article (i.
13906 \begin_inset space \thinspace{}
13907 \end_inset
13908
13909 e.
13910 \begin_inset space \space{}
13911 \end_inset
13912
13913 title, subtitle, author, institution, running title, running author, abstract
13914  and keywords) must be included in an environment called 
13915 \begin_inset Quotes eld
13916 \end_inset
13917
13918 opening
13919 \begin_inset Quotes erd
13920 \end_inset
13921
13922 .
13923  This is not implemented in \SpecialChar LyX
13924 , so you must enter title, subtitle etc.
13925 \begin_inset space ~
13926 \end_inset
13927
13928 between two \SpecialChar TeX
13929  code lines (
13930 \family typewriter
13931
13932 \backslash
13933 begin{opening}
13934 \family default
13935  and 
13936 \family typewriter
13937
13938 \backslash
13939 end{opening}
13940 \family default
13941 ).
13942 \end_layout
13943
13944 \begin_layout Enumerate
13945 According to the user manual, the label of each bibliography item must be
13946  written as 
13947 \family typewriter
13948
13949 \backslash
13950 protect
13951 \backslash
13952 citeauthoryear{
13953 \family default
13954 \emph on
13955 author(s)
13956 \family typewriter
13957 \emph default
13958 }{
13959 \family default
13960 \emph on
13961 year
13962 \family typewriter
13963 \emph default
13964 }
13965 \family default
13966 .
13967 \end_layout
13968
13969 \begin_layout Standard
13970 The 
13971 \family typewriter
13972 kluwer.lyx
13973 \family default
13974  template takes care of all these 
13975 \begin_inset Quotes eld
13976 \end_inset
13977
13978 peculiarities
13979 \begin_inset Quotes erd
13980 \end_inset
13981
13982 .
13983  If you start a new paper using this template you don't need to do anything
13984  special.
13985  Just 
13986 \end_layout
13987
13988 \begin_layout Enumerate
13989 don't delete the \SpecialChar TeX
13990  code included in the template, and
13991 \end_layout
13992
13993 \begin_layout Enumerate
13994 copy the example bibliography item included in the template and modify it
13995  as necessary to enter new bibliography items.
13996 \end_layout
13997
13998 \begin_layout Section
13999 Koma-Script
14000 \end_layout
14001
14002 \begin_layout Standard
14003 by 
14004 \noun on
14005 Bernd Rellermeyer
14006 \end_layout
14007
14008 \begin_layout Subsection
14009 Overview
14010 \end_layout
14011
14012 \begin_layout Standard
14013 The \SpecialChar LyX
14014  document classes 
14015 \emph on
14016 article (koma-script)
14017 \emph default
14018
14019 \emph on
14020 report (koma-script)
14021 \emph default
14022
14023 \emph on
14024 book
14025 \emph default
14026  
14027 \emph on
14028 (koma-script)
14029 \emph default
14030 , and 
14031 \emph on
14032 letter
14033 \emph default
14034  
14035 \emph on
14036 (koma-script)
14037 \emph default
14038  correspond to the \SpecialChar LaTeX
14039  document classes 
14040 \family typewriter
14041 scrartcl.cls
14042 \family default
14043
14044 \family typewriter
14045 scrreprt.cls
14046 \family default
14047
14048 \family typewriter
14049 scrbook.cls
14050 \family default
14051 , and 
14052 \family typewriter
14053 scrlettr.cls
14054 \family default
14055 , resp.
14056 \begin_inset space ~
14057 \end_inset
14058
14059 of the Koma-Script family.
14060  They are replacements for the standard document classes 
14061 \family typewriter
14062 article.cls
14063 \family default
14064
14065 \family typewriter
14066 report.cls
14067 \family default
14068
14069 \family typewriter
14070 book.cls
14071 \family default
14072  and 
14073 \family typewriter
14074 letter.cls
14075 \family default
14076 , resp., and fit better to European typography conventions in a number of
14077  points.
14078 \end_layout
14079
14080 \begin_layout Itemize
14081 Standard character size is 11pt in 
14082 \emph on
14083 article (koma-script)
14084 \emph default
14085
14086 \emph on
14087 report (koma-script)
14088 \emph default
14089 , and 
14090 \emph on
14091 book (koma-script)
14092 \emph default
14093 , and 12pt in 
14094 \emph on
14095 letter (koma-script)
14096 \emph default
14097 .
14098 \end_layout
14099
14100 \begin_layout Itemize
14101 Headings, labels of the description environment, and a number of elements
14102  of the 
14103 \emph on
14104 letter (koma-script)
14105 \emph default
14106  document class are set in a bold sans serif font.
14107 \begin_inset Foot
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 There is a big difference between the bold sans serif old cm fonts and new
14112  ec fonts, especially in the appearance of headings.
14113  In comparison, the ec bold sans serif fonts look a bit thin.
14114  Here the \SpecialChar LaTeX
14115  package 
14116 \family typewriter
14117 cmsd.sty by
14118 \family default
14119  
14120 \shape smallcaps
14121 Walter Schmidt
14122 \shape default
14123  helps to produce the 
14124 \begin_inset Quotes eld
14125 \end_inset
14126
14127 usual
14128 \begin_inset Quotes erd
14129 \end_inset
14130
14131  appearance when using the ec fonts.
14132 \end_layout
14133
14134 \end_inset
14135
14136  The numbering of chapter headings is made in the same way as the numbering
14137  of section headings, that is without the extra line 
14138 \begin_inset Quotes eld
14139 \end_inset
14140
14141 Chapter\SpecialChar ldots
14142
14143 \begin_inset Quotes erd
14144 \end_inset
14145
14146 .
14147  In addition, the appearance of the headings can be modified by using a
14148  number of options (in \SpecialChar LyX
14149  to be entered in the field 
14150 \family sans
14151 Extra
14152 \begin_inset space ~
14153 \end_inset
14154
14155 Options
14156 \family default
14157  of the dialog 
14158 \family sans
14159 Layout\SpecialChar menuseparator
14160 Document
14161 \family default
14162 ).
14163  
14164 \end_layout
14165
14166 \begin_layout Itemize
14167 The main means in the Koma-Script document classes to design the type area
14168  are the options 
14169 \family sans
14170 BCOR
14171 \family default
14172  and 
14173 \family sans
14174 DIV
14175 \family default
14176  (in \SpecialChar LyX
14177  to be entered in the extra class options field in the dialog 
14178 \family sans
14179 Document\SpecialChar menuseparator
14180 Settings
14181 \family default
14182 ).
14183  They make a clearer modification of page margins possible as do the options
14184  of the dialog 
14185 \family sans
14186 Document\SpecialChar menuseparator
14187 Settings
14188 \family default
14189 .
14190  
14191 \end_layout
14192
14193 \begin_layout Itemize
14194 The \SpecialChar LaTeX
14195  document classes of the Koma-Script family define a number of additional
14196  commands.
14197  Those part of it which makes sense in \SpecialChar LyX
14198  is implemented in corresponding
14199  paragraph types.
14200 \end_layout
14201
14202 \begin_layout Standard
14203 Detailed descriptions of the \SpecialChar LaTeX
14204  document classes of the Koma-Script family
14205  can be found in the Koma-Script documentation 
14206 \emph on
14207 scrguide
14208 \emph default
14209  (German) and 
14210 \emph on
14211 scrguien
14212 \emph default
14213  (English).
14214 \end_layout
14215
14216 \begin_layout Subsection
14217 article (koma-script), report (koma-script), and book (koma-script)
14218 \end_layout
14219
14220 \begin_layout Standard
14221 The document classes 
14222 \emph on
14223 article (koma-script)
14224 \emph default
14225
14226 \emph on
14227 report (koma-script)
14228 \emph default
14229 , and 
14230 \emph on
14231 book
14232 \emph default
14233  
14234 \emph on
14235 (koma-script)
14236 \emph default
14237  are implemented in the layout files 
14238 \family typewriter
14239 scrartcl.layout
14240 \family default
14241
14242 \family typewriter
14243 scrreprt.layout
14244 \family default
14245 , and 
14246 \family typewriter
14247 scrbook.layout
14248 \family default
14249 , resp.
14250  They contain all the paragraph types of the corresponding standard document
14251  classes 
14252 \emph on
14253 article
14254 \emph default
14255
14256 \emph on
14257 report
14258 \emph default
14259 , and 
14260 \emph on
14261 book
14262 \emph default
14263 , resp., partly modified, with the exception of the \SpecialChar LyX
14264  specific 
14265 \family sans
14266 List
14267 \family default
14268 -type, which is replaced by the new 
14269 \family sans
14270 Labeling
14271 \family default
14272 -type having the same functionality.
14273  Beside the 
14274 \family sans
14275 Labeling
14276 \family default
14277 -Type there is a number of new paragraph types added.
14278  They are 
14279 \emph on
14280 not
14281 \emph default
14282  part of 
14283 \emph on
14284 letter (koma-script)
14285 \emph default
14286 .
14287 \end_layout
14288
14289 \begin_layout Itemize
14290
14291 \family sans
14292 Addpart, Addchap
14293 \family default
14294
14295 \family sans
14296 Addsec
14297 \family default
14298 : are equivalents to 
14299 \family sans
14300 Part*, Chapter*
14301 \family default
14302  and 
14303 \family sans
14304 Section*
14305 \family default
14306 , resp., additionally inserting an entry in the table of contents.
14307  
14308 \family sans
14309 Addpart
14310 \family default
14311  and 
14312 \family sans
14313 Addchap
14314 \family default
14315  are not contained in 
14316 \emph on
14317 article (koma-script)
14318 \emph default
14319 .
14320 \end_layout
14321
14322 \begin_layout Itemize
14323
14324 \family sans
14325 Addchap*
14326 \family default
14327
14328 \family sans
14329 Addsec*
14330 \family default
14331 : behave exactly as 
14332 \family sans
14333 Addchap
14334 \family default
14335  and 
14336 \family sans
14337 Addsec
14338 \family default
14339 , resp., additionally clearing running heads.
14340  
14341 \family sans
14342 Addchap*
14343 \family default
14344  is not contained in 
14345 \emph on
14346 article (koma-script)
14347 \emph default
14348 .
14349 \begin_inset Foot
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 There is also an 
14354 \family typewriter
14355
14356 \backslash
14357 addpart*
14358 \family default
14359  command in 
14360 \emph on
14361 book (koma-script)
14362 \emph default
14363  and in 
14364 \emph on
14365 report (koma-script)
14366 \emph default
14367 , but since this is identical to 
14368 \family sans
14369 Part*
14370 \family default
14371 , is has not been implemented in \SpecialChar LyX
14372 .
14373 \end_layout
14374
14375 \end_inset
14376
14377
14378 \end_layout
14379
14380 \begin_layout Itemize
14381
14382 \family sans
14383 Minisec
14384 \family default
14385 : generates a heading directly above the following paragraph in the standard
14386  character size without affecting the structure of the document.
14387 \end_layout
14388
14389 \begin_layout Itemize
14390
14391 \family sans
14392 Captionabove
14393 \family default
14394  and 
14395 \family sans
14396 Captionbelow
14397 \family default
14398  are special captions which respect the different space settings needed
14399  for captions placed above or below an element (if you follow strict typographic
14400  rules, you might want to place table captions always above the table).
14401  You can also use the class option 
14402 \family typewriter
14403 tablecaptionsabove
14404 \family default
14405 , which will switch 
14406 \family sans
14407 caption
14408 \family default
14409  to 
14410 \family sans
14411 captionabove
14412 \family default
14413  for tables and 
14414 \family sans
14415 captionbelow
14416 \family default
14417  for figures.
14418  You need at least Koma-Script version 2.8q to use this.
14419 \end_layout
14420
14421 \begin_layout Itemize
14422
14423 \family sans
14424 Dictum
14425 \family default
14426 : can be used to set a bonmot, e.
14427 \begin_inset space \thinspace{}
14428 \end_inset
14429
14430 g.
14431 \begin_inset space \space{}
14432 \end_inset
14433
14434 at the beginning of a chapter.
14435  If you use the optional argument (
14436 \family sans
14437 Insert\SpecialChar menuseparator
14438 Dictum
14439 \begin_inset space ~
14440 \end_inset
14441
14442 Author
14443 \family default
14444 ), you can insert the dictum's author there.
14445  Dictum and author are separated by a line.
14446  You need at least Koma-Script version 2.8q to use this.
14447  
14448 \family sans
14449 Dictum
14450 \family default
14451  is not contained in 
14452 \emph on
14453 article (koma-script)
14454 \emph default
14455 .
14456 \end_layout
14457
14458 \begin_layout Standard
14459 The following types, together with the standard types 
14460 \family sans
14461 Title
14462 \family default
14463
14464 \family sans
14465 Author
14466 \family default
14467 , and 
14468 \family sans
14469 Date
14470 \family default
14471 , form the title area of the document.
14472  They must be entered ahead of the first 
14473 \begin_inset Quotes eld
14474 \end_inset
14475
14476 ordinary
14477 \begin_inset Quotes erd
14478 \end_inset
14479
14480  paragraph.
14481 \begin_inset Foot
14482 status collapsed
14483
14484 \begin_layout Plain Layout
14485 The corresponding \SpecialChar LaTeX
14486  commands must appear before the 
14487 \family typewriter
14488
14489 \backslash
14490 maketitle
14491 \family default
14492  command.
14493 \end_layout
14494
14495 \end_inset
14496
14497  When such a type is used more than once, the latter usage overwrites the
14498  former one, that means, for every type only the latest usage is valid.
14499  The order of the different types however has, like 
14500 \family sans
14501 Title
14502 \family default
14503
14504 \family sans
14505 Author
14506 \family default
14507 , and 
14508 \family sans
14509 Date
14510 \family default
14511 , no effect on the appearance of the produced document.
14512 \end_layout
14513
14514 \begin_layout Itemize
14515
14516 \family sans
14517 Subject
14518 \family default
14519 : produces a centered paragraph above the ordinary title (
14520 \family sans
14521 Title
14522 \family default
14523
14524 \family sans
14525 Author
14526 \family default
14527
14528 \family sans
14529 Date
14530 \family default
14531 ) for the subject of the document.
14532 \end_layout
14533
14534 \begin_layout Itemize
14535
14536 \family sans
14537 Publishers
14538 \family default
14539 : produces a centered paragraph below the ordinary title (
14540 \family sans
14541 Title
14542 \family default
14543
14544 \family sans
14545 Author
14546 \family default
14547
14548 \family sans
14549 Date
14550 \family default
14551 ) for the publishers' name.
14552 \end_layout
14553
14554 \begin_layout Itemize
14555
14556 \family sans
14557 Dedication
14558 \family default
14559 : in 
14560 \emph on
14561 report (koma-script)
14562 \emph default
14563  and 
14564 \emph on
14565 book (koma-script)
14566 \emph default
14567  produces a centered paragraph on its own page behind the title page, or
14568  in 
14569 \emph on
14570 article (koma-script)
14571 \emph default
14572  produces a centered paragraph below the ordinary title (
14573 \family sans
14574 Title
14575 \family default
14576
14577 \family sans
14578 Author
14579 \family default
14580
14581 \family sans
14582 Date
14583 \family default
14584
14585 \family sans
14586 Publishers
14587 \family default
14588 ) for a dedication.
14589 \end_layout
14590
14591 \begin_layout Itemize
14592
14593 \family sans
14594 Titlehead
14595 \family default
14596 : produces a left aligned paragraph above the ordinary title (
14597 \family sans
14598 Title
14599 \family default
14600
14601 \family sans
14602 Author
14603 \family default
14604
14605 \family sans
14606 Date
14607 \family default
14608
14609 \family sans
14610 Subject
14611 \family default
14612 ) for a document`s head.
14613 \end_layout
14614
14615 \begin_layout Itemize
14616
14617 \family sans
14618 Uppertitleback
14619 \family default
14620 : produces in a double-sided print in 
14621 \emph on
14622 report (koma-script)
14623 \emph default
14624  and 
14625 \emph on
14626 book (koma-script)
14627 \emph default
14628  a left-aligned paragraph at the top of the title page`s back or has no
14629  effect in a single-sided print or in 
14630 \emph on
14631 article (koma-script)
14632 \emph default
14633 .
14634 \end_layout
14635
14636 \begin_layout Itemize
14637
14638 \family sans
14639 Lowertitleback
14640 \family default
14641 : produces in a double-sided print in 
14642 \emph on
14643 report (koma-script)
14644 \emph default
14645  and 
14646 \emph on
14647 book (koma-script)
14648 \emph default
14649  a left-aligned paragraph at the bottom of the title page`s back or has
14650  no effect in a single-sided print or in 
14651 \emph on
14652 article (koma-script)
14653 \emph default
14654 .
14655 \end_layout
14656
14657 \begin_layout Itemize
14658
14659 \family sans
14660 Extratitle
14661 \family default
14662 : produces a special 
14663 \begin_inset Quotes eld
14664 \end_inset
14665
14666 dirty
14667 \begin_inset Quotes erd
14668 \end_inset
14669
14670  page ahead of the actual document containing a paragraph without special
14671  formatting.
14672 \end_layout
14673
14674 \begin_layout Standard
14675 The layout files for the document classes 
14676 \emph on
14677 article (koma-script)
14678 \emph default
14679
14680 \emph on
14681 report (koma-script)
14682 \emph default
14683 , and 
14684 \emph on
14685 book (koma-script)
14686 \emph default
14687  do include the file 
14688 \family typewriter
14689 scrmacros.inc
14690 \family default
14691 .
14692  This is thought of as a place to define your own types.
14693  Copy scrmacros
14694 \family typewriter
14695 .inc
14696 \family default
14697  in your personal layout directory and edit the file!
14698 \end_layout
14699
14700 \begin_layout Subsection
14701 letter (koma-script)
14702 \end_layout
14703
14704 \begin_layout Description
14705 Note: This section discusses the obsolete 
14706 \family sans
14707 KOMA-Script-Letter (v.
14708 \begin_inset space ~
14709 \end_inset
14710
14711 1)
14712 \family default
14713 , which is not even included anymore in recent KOMA releases.
14714  Please refer to the next section for the current KOMA-Script-Letter class
14715  (v.
14716 \begin_inset space ~
14717 \end_inset
14718
14719 2)!
14720 \end_layout
14721
14722 \begin_layout Standard
14723 \noindent
14724 The document class 
14725 \emph on
14726 letter (koma-script)
14727 \emph default
14728  is implemented in the layout file 
14729 \family typewriter
14730 scrlettr.layout
14731 \family default
14732 .
14733  It contains all the paragraph types of the corresponding standard document
14734  class 
14735 \emph on
14736 letter
14737 \emph default
14738 , partly modified, with the exception of the \SpecialChar LyX
14739  specific types 
14740 \family sans
14741 \SpecialChar LyX
14742 -Code
14743 \family default
14744  and 
14745 \family sans
14746 Comment
14747 \family default
14748  and the 
14749 \family sans
14750 List
14751 \family default
14752  type, which is replaced by the new 
14753 \family sans
14754 Labeling
14755 \family default
14756  type.
14757  In addition, it contains, in contrast to the standard document class, the
14758  standard types 
14759 \family sans
14760 \SpecialChar LaTeX
14761
14762 \family default
14763
14764 \family sans
14765 Quotation
14766 \family default
14767
14768 \family sans
14769 Quote
14770 \family default
14771 , and 
14772 \family sans
14773 Verse
14774 \family default
14775 .
14776  Furthermore, there are a number of new letter specific types.
14777 \end_layout
14778
14779 \begin_layout Standard
14780 The appearance of the letter produced by this document class can be controlled
14781  by a number of \SpecialChar LaTeX
14782  commands, which you can put in the \SpecialChar LaTeX
14783  preamble.
14784 \begin_inset Foot
14785 status collapsed
14786
14787 \begin_layout Plain Layout
14788 For example, the standard appearance of the letter`s heading, consisting
14789  of name and address, is quite self-willed.
14790  An 
14791 \begin_inset Quotes eld
14792 \end_inset
14793
14794 ordinary
14795 \begin_inset Quotes erd
14796 \end_inset
14797
14798  heading is produced by the following \SpecialChar LaTeX
14799  commands in the preamble:
14800 \end_layout
14801
14802 \begin_layout LyX-Code
14803
14804 \backslash
14805 firsthead{
14806 \backslash
14807 parbox[b]{
14808 \backslash
14809 textwidth}
14810 \end_layout
14811
14812 \begin_layout LyX-Code
14813   {
14814 \backslash
14815 ignorespaces 
14816 \backslash
14817 fromname
14818 \backslash
14819
14820 \backslash
14821  
14822 \backslash
14823 ignorespaces 
14824 \backslash
14825 fromaddress}} 
14826 \end_layout
14827
14828 \begin_layout LyX-Code
14829
14830 \backslash
14831 nexthead{
14832 \backslash
14833 parbox[b]{
14834 \backslash
14835 textwidth}
14836 \end_layout
14837
14838 \begin_layout LyX-Code
14839   {
14840 \backslash
14841 ignorespaces 
14842 \backslash
14843 fromname 
14844 \backslash
14845 hfill 
14846 \backslash
14847 ignorespaces 
14848 \backslash
14849 pagename
14850 \backslash
14851  
14852 \backslash
14853 thepage}}
14854 \end_layout
14855
14856 \end_inset
14857
14858  A detailed German description of such \SpecialChar LaTeX
14859  commands can be found in the Koma-Script
14860  documentation 
14861 \emph on
14862 scrguide
14863 \emph default
14864 .
14865  With it, the letter's author can produce his personal letter layout.
14866 \end_layout
14867
14868 \begin_layout Standard
14869 The types 
14870 \family sans
14871 Letter
14872 \family default
14873  and 
14874 \family sans
14875 Opening
14876 \family default
14877  define the beginning of the letter and must be used in every letter.
14878  To emphasize them in the \SpecialChar LyX
14879  document class, they are marked with the letter
14880  
14881 \shape italic
14882 L
14883 \shape default
14884  or 
14885 \shape italic
14886 O
14887 \shape default
14888 , resp.
14889 \begin_inset space ~
14890 \end_inset
14891
14892 in the left margin.
14893  It is possible to write any number of letters in one file.
14894  An 
14895 \family sans
14896 Opening
14897 \family default
14898  type produces a new letter using the same addressee and a 
14899 \family sans
14900 Letter
14901 \family default
14902  type produces a new addressee.
14903  The types 
14904 \family sans
14905 Closing
14906 \family default
14907
14908 \family sans
14909 PS
14910 \family default
14911
14912 \family sans
14913 CC
14914 \family default
14915 , and 
14916 \family sans
14917 Encl
14918 \family default
14919  are ordinary paragraph types and can also be used several times in one
14920  and the same letter.
14921 \end_layout
14922
14923 \begin_layout Itemize
14924
14925 \family sans
14926 Letter
14927 \family default
14928 : produces a paragraph for the addressee and implicitly defines the beginning
14929  of the letter.
14930 \end_layout
14931
14932 \begin_layout Itemize
14933
14934 \family sans
14935 Opening
14936 \family default
14937 : produces a paragraph for the form of address and implicitly produces a
14938  new letter.
14939 \end_layout
14940
14941 \begin_layout Itemize
14942
14943 \family sans
14944 Closing
14945 \family default
14946 : produces a paragraph for a close.
14947 \end_layout
14948
14949 \begin_layout Itemize
14950
14951 \family sans
14952 PS
14953 \family default
14954 : produces a paragraph for a postscript.
14955 \end_layout
14956
14957 \begin_layout Itemize
14958
14959 \family sans
14960 CC
14961 \family default
14962 : produces a paragraph for a distribution list.
14963 \end_layout
14964
14965 \begin_layout Itemize
14966
14967 \family sans
14968 Encl
14969 \family default
14970 : produces a paragraph for enclosures.
14971 \end_layout
14972
14973 \begin_layout Standard
14974 The types 
14975 \family sans
14976 Name
14977 \family default
14978
14979 \family sans
14980 Signature
14981 \family default
14982
14983 \family sans
14984 Address
14985 \family default
14986
14987 \family sans
14988 Telephone
14989 \family default
14990
14991 \family sans
14992 Place
14993 \family default
14994
14995 \family sans
14996 Backaddress
14997 \family default
14998
14999 \family sans
15000 Specialmail
15001 \family default
15002
15003 \family sans
15004 Location
15005 \family default
15006
15007 \family sans
15008 Title
15009 \family default
15010 , and 
15011 \family sans
15012 Subject
15013 \family default
15014  are input types provided with a label to enter information, which will
15015  be processed by the document class.
15016 \begin_inset Foot
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020 It could be seen as a matter of inconsequence, that the types 
15021 \family sans
15022 Letter
15023 \family default
15024  and 
15025 \family sans
15026 Opening
15027 \family default
15028  described above are not such input types as well.
15029  Because of the special meaning of those types, however, I have implemented
15030  them as ordinary paragraph types with a one letter mark in the left margin.
15031  Moreover, it would affect my feeling of symmetry, if the 
15032 \family sans
15033 Opening
15034 \family default
15035  type and the 
15036 \family sans
15037 Closing
15038 \family default
15039  type had such a serious different appearance.
15040 \end_layout
15041
15042 \end_inset
15043
15044  The types must be used ahead of the corresponding 
15045 \family sans
15046 Opening
15047 \family default
15048  type.
15049 \end_layout
15050
15051 \begin_layout Standard
15052 An implementation of these types in a WYSIWYG fashion does not seem to make
15053  sense, because the real appearance of the produced letter does not only
15054  depend on the usage of the particular type, but also on other factors.
15055  For example, a signature entered in the 
15056 \family sans
15057 Signature
15058 \family default
15059  type will in the standard behavior appear in the produced letter only,
15060  when in the same letter also a 
15061 \family sans
15062 Closing
15063 \family default
15064  type is used.
15065  The entered value of the 
15066 \family sans
15067 Telephone
15068 \family default
15069  type will in the standard behavior not appear in the produced letter at
15070  all.
15071  The possibility to design the letter`s heading freely is already indicated
15072  in a footnote above.
15073 \end_layout
15074
15075 \begin_layout Standard
15076 The input types can also be used as empty paragraphs.
15077  This makes sense e.
15078 \begin_inset space \thinspace{}
15079 \end_inset
15080
15081 g.
15082 \begin_inset space \space{}
15083 \end_inset
15084
15085 for the 
15086 \family sans
15087 Signature
15088 \family default
15089  type.
15090  If the 
15091 \family sans
15092 Signature
15093 \family default
15094  type is not used at all, in the standard behavior the value of the 
15095 \family sans
15096 Name
15097 \family default
15098  type is used as signature, whereas if an empty 
15099 \family sans
15100 Signature
15101 \family default
15102  type is used, no signature value is defined.
15103 \end_layout
15104
15105 \begin_layout Standard
15106 By using the input types it is possible to write a letter template, containing
15107  filled input types with your personal dates (name, address, etc.) and empty
15108  input types for other dates you want to enter.
15109 \end_layout
15110
15111 \begin_layout Itemize
15112
15113 \family sans
15114 Name
15115 \family default
15116 : sender's name, in the standard behavior appears as a centered paragraph
15117  in small caps in the letter`s heading.
15118 \end_layout
15119
15120 \begin_layout Itemize
15121
15122 \family sans
15123 Signature
15124 \family default
15125 : sender's signature, in the standard behavior appears below the 
15126 \family sans
15127 Closing
15128 \family default
15129  type.
15130  If no 
15131 \family sans
15132 Signature
15133 \family default
15134  type is used, the value of the 
15135 \family sans
15136 Name
15137 \family default
15138  type appears instead.
15139 \end_layout
15140
15141 \begin_layout Itemize
15142
15143 \family sans
15144 Address
15145 \family default
15146 : sender's address, in the standard behavior appears in a centered paragraph
15147  in the letter`s heading below the sender's name.
15148 \end_layout
15149
15150 \begin_layout Itemize
15151
15152 \family sans
15153 Telephone
15154 \family default
15155 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15156  variable
15157  
15158 \family typewriter
15159
15160 \backslash
15161 telephonenum
15162 \family default
15163 .
15164 \end_layout
15165
15166 \begin_layout Itemize
15167
15168 \family sans
15169 Place
15170 \family default
15171 : place of the letter`s making.
15172 \end_layout
15173
15174 \begin_layout Itemize
15175
15176 \family sans
15177 Date
15178 \family default
15179 : date of the letter`s making.
15180  
15181 \family sans
15182 Place
15183 \family default
15184  and 
15185 \family sans
15186 Date
15187 \family default
15188 , in the standard behavior, produce the place and the date in a right-aligned
15189  line below the addressee's field.
15190  If an empty 
15191 \family sans
15192 Date
15193 \family default
15194  type is used, neither place nor date appear, independent of the value of
15195  the 
15196 \family sans
15197 Place
15198 \family default
15199  type.
15200  If no 
15201 \family sans
15202 Date
15203 \family default
15204  type is used, the date of the letter `s production is used.
15205 \end_layout
15206
15207 \begin_layout Itemize
15208
15209 \family sans
15210 Backaddress
15211 \family default
15212 : sender`s back address, in the standard behavior appears above the addressee's
15213  field in a small sans serif font.
15214 \end_layout
15215
15216 \begin_layout Itemize
15217
15218 \family sans
15219 Specialmail
15220 \family default
15221 : special mail information, in the standard behavior appears underlined
15222  above the addressee's field below the back address.
15223 \end_layout
15224
15225 \begin_layout Itemize
15226
15227 \family sans
15228 Location
15229 \family default
15230 : additional information, in the standard behavior appears on right side
15231  below the addressee`s field.
15232 \end_layout
15233
15234 \begin_layout Itemize
15235
15236 \family sans
15237 Title
15238 \family default
15239 : the letter's title, in the standard behavior appears in a big, bold, sans
15240  serif font above the subject.
15241 \end_layout
15242
15243 \begin_layout Itemize
15244
15245 \family sans
15246 Subject
15247 \family default
15248 : the letter's subject, in the standard behavior appears in a bold font
15249  above the 
15250 \family sans
15251 Opening
15252 \family default
15253  paragraph.
15254 \end_layout
15255
15256 \begin_layout Standard
15257 The types 
15258 \family sans
15259 Yourref
15260 \family default
15261
15262 \family sans
15263 Yourmail
15264 \family default
15265
15266 \family sans
15267 Myref
15268 \family default
15269
15270 \family sans
15271 Customer
15272 \family default
15273 , and 
15274 \family sans
15275 Invoice
15276 \family default
15277  produce a business letter like line above the 
15278 \family sans
15279 Title
15280 \family default
15281  line containing the fields 
15282 \begin_inset Quotes eld
15283 \end_inset
15284
15285 Your ref.
15286 \begin_inset Quotes erd
15287 \end_inset
15288
15289
15290 \begin_inset Quotes eld
15291 \end_inset
15292
15293 Your letter of
15294 \begin_inset Quotes erd
15295 \end_inset
15296
15297
15298 \begin_inset Quotes eld
15299 \end_inset
15300
15301 Our ref.
15302 \begin_inset Quotes erd
15303 \end_inset
15304
15305
15306 \begin_inset Quotes eld
15307 \end_inset
15308
15309 Customer no.
15310 \begin_inset Quotes erd
15311 \end_inset
15312
15313
15314 \begin_inset Quotes eld
15315 \end_inset
15316
15317 Invoice no.
15318 \begin_inset Quotes erd
15319 \end_inset
15320
15321 , and 
15322 \begin_inset Quotes eld
15323 \end_inset
15324
15325 Date
15326 \begin_inset Quotes erd
15327 \end_inset
15328
15329 .
15330  For the date field, the value of the 
15331 \family sans
15332 Date
15333 \family default
15334  type is used.
15335  If one of these 
15336 \begin_inset Quotes eld
15337 \end_inset
15338
15339 business letter types
15340 \begin_inset Quotes erd
15341 \end_inset
15342
15343  is used, the value of the 
15344 \family sans
15345 Place
15346 \family default
15347  type however does not appear, but only the \SpecialChar LaTeX
15348  variable 
15349 \family typewriter
15350
15351 \backslash
15352 fromplace
15353 \family default
15354  is set.
15355  The ordinary output of place and date in a right-aligned line below the
15356  addressee`s field is suppressed.
15357  The types are implemented as input types provided with a label and must
15358  be used ahead of the corresponding 
15359 \family sans
15360 Opening
15361 \family default
15362  type.
15363 \end_layout
15364
15365 \begin_layout Itemize
15366
15367 \family sans
15368 Yourref
15369 \family default
15370 : Your ref.
15371 \end_layout
15372
15373 \begin_layout Itemize
15374
15375 \family sans
15376 Yourmail
15377 \family default
15378 : Your letter of.
15379 \end_layout
15380
15381 \begin_layout Itemize
15382
15383 \family sans
15384 Myref
15385 \family default
15386 : Our ref.
15387 \end_layout
15388
15389 \begin_layout Itemize
15390
15391 \family sans
15392 Customer
15393 \family default
15394 : Customer no.
15395 \end_layout
15396
15397 \begin_layout Itemize
15398
15399 \family sans
15400 Invoice
15401 \family default
15402 : Invoice no.
15403 \end_layout
15404
15405 \begin_layout Subsection
15406 The new letter class: letter (koma-script v.2)
15407 \end_layout
15408
15409 \begin_layout Standard
15410 by 
15411 \noun on
15412 Jürgen Spitzmüller
15413 \end_layout
15414
15415 \begin_layout Standard
15416 \begin_inset VSpace medskip
15417 \end_inset
15418
15419
15420 \end_layout
15421
15422 \begin_layout Standard
15423 \noindent
15424 Koma-Script version 2.8 has introduced a new letter class 
15425 \family typewriter
15426 scrlttr2
15427 \family default
15428  which supersedes the now unsupported 
15429 \family typewriter
15430 scrlettr
15431 \family default
15432 .
15433  It has â€” on the \SpecialChar LaTeX
15434  side â€” a completely new interface and is not compatible
15435  with the old class.
15436  Therefore, \SpecialChar LyX
15437  supports both, though it is recommended you use the new class.
15438 \end_layout
15439
15440 \begin_layout Standard
15441 This class covers the same functionality as 
15442 \emph on
15443 letter (koma-script),
15444 \emph default
15445  and a few more.
15446  The basic items are 
15447 \family sans
15448 Address
15449 \family default
15450  (receiver's address, same as 
15451 \family sans
15452 Letter
15453 \family default
15454  in the old layout), 
15455 \family sans
15456 Opening
15457 \family default
15458 , and 
15459 \family sans
15460 Closing
15461 \family default
15462 .
15463  
15464 \family sans
15465 NextAddress
15466 \family default
15467  will start a new letter (i.
15468 \begin_inset space \thinspace{}
15469 \end_inset
15470
15471 e.
15472 \begin_inset space \space{}
15473 \end_inset
15474
15475 you can write several letters per document).
15476  New elements are sender's 
15477 \family sans
15478 E-Mail
15479 \family default
15480
15481 \family sans
15482 URL
15483 \family default
15484
15485 \family sans
15486 Fax
15487 \family default
15488
15489 \family sans
15490 Bank
15491 \family default
15492  and the possibility to use a 
15493 \family sans
15494 Logo
15495 \family default
15496  (via 
15497 \family sans
15498 Insert\SpecialChar menuseparator
15499 Graphics
15500 \family default
15501 ) in the header.
15502 \end_layout
15503
15504 \begin_layout Standard
15505 The biggest improvement is, though, that the letter's layout is configurable
15506  to meet almost any needs.
15507  This can be done via the preamble or with a special style file (Letter
15508  Class Option, extension 
15509 \family typewriter
15510 *.lco
15511 \family default
15512 ), that will be read in as a class option.
15513 \begin_inset Foot
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 The KOMA package comes with some default 
15518 \family typewriter
15519 *.lco
15520 \family default
15521  files.
15522  There is, for instance, a 
15523 \family typewriter
15524 DIN.lco
15525 \family default
15526  file that follows german typesetting rules, or a 
15527 \family typewriter
15528 KOMAold.lco
15529 \family default
15530  that provides the default layout of the old 
15531 \family typewriter
15532 scrlettr
15533 \family default
15534  class.
15535  The latter can be loaded with the class option 
15536 \family typewriter
15537 KOMAold
15538 \family default
15539 , inserted via the 
15540 \family sans
15541 Layout\SpecialChar menuseparator
15542 Document\SpecialChar menuseparator
15543 Extra Options
15544 \family default
15545  field.
15546 \end_layout
15547
15548 \end_inset
15549
15550  Have a look at the 
15551 \emph on
15552 koma-letter2
15553 \emph default
15554  template that is included in \SpecialChar LyX
15555  for examples.
15556  A detailed description is to be found in the Koma-Script documentation
15557  (
15558 \emph on
15559 scrguide
15560 \emph default
15561 ).
15562 \end_layout
15563
15564 \begin_layout Subsection
15565 Problems
15566 \end_layout
15567
15568 \begin_layout Standard
15569 Visualizing the Koma-Script document classes in \SpecialChar LyX
15570 , the \SpecialChar LyX
15571  internals cause some
15572  problems.
15573 \end_layout
15574
15575 \begin_layout Itemize
15576 The chapter number of a 
15577 \family sans
15578 Chapter
15579 \family default
15580  type appears on a line of its own above the chapter heading instead of
15581  appearing in the same line ahead of it.
15582  The cause for that is the \SpecialChar LyX
15583  internal behavior for the labeltype 
15584 \family sans
15585 Counter_Chapter
15586 \family default
15587  in the layout file.
15588 \end_layout
15589
15590 \begin_layout Itemize
15591 The headings of the types 
15592 \family sans
15593 Addchap
15594 \family default
15595  and 
15596 \family sans
15597 Addsec
15598 \family default
15599  are only put in the 
15600 \begin_inset Quotes eld
15601 \end_inset
15602
15603 true
15604 \begin_inset Quotes erd
15605 \end_inset
15606
15607  \SpecialChar LaTeX
15608  table of contents, but not in the \SpecialChar LyX
15609  table of contents (
15610 \family sans
15611 Document\SpecialChar menuseparator
15612 Table
15613 \begin_inset space ~
15614 \end_inset
15615
15616 of
15617 \begin_inset space ~
15618 \end_inset
15619
15620 Contents
15621 \family default
15622 ).
15623 \end_layout
15624
15625 \begin_layout Itemize
15626 The paragraphs in a 
15627 \emph on
15628 letter
15629 \emph default
15630  document class appear in a skip separation mode, not indented.
15631  This is the standard behavior, no special \SpecialChar LaTeX
15632  commands are needed for that.
15633  But in the 
15634 \family sans
15635 Document\SpecialChar menuseparator
15636 Settings
15637 \family default
15638  dialog the corresponding radio button indicates 
15639 \family sans
15640 Indent
15641 \family default
15642 .
15643  A 
15644 \family sans
15645 Skip
15646 \family default
15647  value always has the effect that extra \SpecialChar LaTeX
15648  commands are inserted in the document
15649  to produce the gap, which is not what is wanted in this case.
15650 \end_layout
15651
15652 \begin_layout Section
15653 Memoir
15654 \end_layout
15655
15656 \begin_layout Standard
15657 By 
15658 \noun on
15659 Jürgen Spitzmüller
15660 \end_layout
15661
15662 \begin_layout Subsection
15663 Overview
15664 \end_layout
15665
15666 \begin_layout Standard
15667 Memoir is a very powerful and constantly evolving class.
15668  It has been designed with regard to fictional and non-fictional literature.
15669  Its aim is to let the user have maximum control over the typesetting of
15670  his document.
15671  Memoir is based on the standard book class, but it can also emulate the
15672  article class (see below).
15673 \end_layout
15674
15675 \begin_layout Standard
15676 Peter Wilson, the developer of Memoir, is known as the author of lots of
15677  useful packages in the \SpecialChar LaTeX
15678  world.
15679  Most of them have been merged with Memoir.
15680  Therefore, it is much easier to layout the table of contents, appendices,
15681  chapter designs and such.
15682  \SpecialChar LyX
15683 , though, does not support all of these goodies natively.
15684  Some of them might be added to forthcoming releases
15685 \begin_inset Foot
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689 You are invited to send suggestions to 
15690 \begin_inset Flex URL
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694
15695 lyx-devel@lists.lyx.org
15696 \end_layout
15697
15698 \end_inset
15699
15700 .
15701 \end_layout
15702
15703 \end_inset
15704
15705 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15706 's framework.
15707  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15708
15709  commands (\SpecialChar TeX
15710  code
15711 \begin_inset Foot
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 Cf.
15716 \begin_inset ERT
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720
15721
15722 \backslash
15723  
15724 \end_layout
15725
15726 \end_inset
15727
15728 section
15729 \begin_inset space ~
15730 \end_inset
15731
15732
15733 \begin_inset CommandInset ref
15734 LatexCommand ref
15735 reference "sec:Inserting-TeX-Code"
15736
15737 \end_inset
15738
15739  for details.
15740 \end_layout
15741
15742 \end_inset
15743
15744 ).
15745  In this section, we can only list those features that are natively supported
15746  by \SpecialChar LyX
15747 .
15748  For detailed descriptions (and for the rest of features) we recommend you
15749  have a look at the detailed manual of the Memoir class
15750 \begin_inset Foot
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754 Cf.
15755 \begin_inset ERT
15756 status collapsed
15757
15758 \begin_layout Plain Layout
15759
15760
15761 \backslash
15762  
15763 \end_layout
15764
15765 \end_inset
15766
15767
15768 \begin_inset Flex URL
15769 status collapsed
15770
15771 \begin_layout Plain Layout
15772
15773 CTAN:/macros/latex/memoir/memman.pdf
15774 \end_layout
15775
15776 \end_inset
15777
15778 .
15779 \end_layout
15780
15781 \end_inset
15782
15783 , which is not only a user guide for the class, but also both a comprehensive
15784  description on good typesetting and a superb example for good typesetting
15785  itself.
15786 \end_layout
15787
15788 \begin_layout Subsection
15789 Basic features and restrictions
15790 \end_layout
15791
15792 \begin_layout Standard
15793 Memoir supports basically all features of the standard book classes.
15794  There are, however, some differences, as follows:
15795 \end_layout
15796
15797 \begin_layout Description
15798 Font
15799 \begin_inset space ~
15800 \end_inset
15801
15802 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15803 \end_layout
15804
15805 \begin_layout Description
15806 Page
15807 \begin_inset space ~
15808 \end_inset
15809
15810 style: The fancy page style is not supported, due to a command clash between
15811  Memoir and the fancyhdr package (they both define a command with the same
15812  name, which confuses \SpecialChar LaTeX
15813 ).
15814  Instead, Memoir comes with a number of its own page styles (see 
15815 \family sans
15816 Document\SpecialChar menuseparator
15817 Settings\SpecialChar menuseparator
15818 Page
15819 \begin_inset space ~
15820 \end_inset
15821
15822 Style
15823 \family default
15824 ).
15825  If you want to use these for the chapter pages, you have to use the command
15826  
15827 \family typewriter
15828
15829 \backslash
15830 chapterstyle
15831 \family default
15832  in the main text or in preamble (e.
15833 \begin_inset space \thinspace{}
15834 \end_inset
15835
15836 g.
15837 \begin_inset space \space{}
15838 \end_inset
15839
15840
15841 \family typewriter
15842
15843 \backslash
15844 chapterstyle{companion}
15845 \family default
15846 ).
15847 \end_layout
15848
15849 \begin_layout Description
15850 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15851  optional argument in the standard classes.
15852  With this, you can specify an alternative version of the title for the
15853  table of contents and the headers (for instance, if the title is too long).
15854  In \SpecialChar LyX
15855 , you can do this via 
15856 \family sans
15857 Insert\SpecialChar menuseparator
15858 Short
15859 \begin_inset space ~
15860 \end_inset
15861
15862 Title
15863 \family default
15864  at the beginning of a chapter/section.
15865  Memoir features a second optional argument and thus separates the table
15866  of contents from the header.
15867  You can define three variants of a title with this: one for the main text,
15868  one for the table of contents, and one for the headers.
15869  \SpecialChar LyX
15870  makes these available in form of specific 
15871 \family sans
15872 Short Title
15873 \family default
15874  variants in the 
15875 \family sans
15876 Insert
15877 \family default
15878  menu.
15879 \end_layout
15880
15881 \begin_layout Description
15882 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15883  of contents, the list of figures and the list of table start a new page
15884  automatically.
15885  Memoir does not follow this route.
15886  You have to insert a page break yourself, if you want to have one.
15887 \end_layout
15888
15889 \begin_layout Description
15890 Titlepage: For some unknown reason, Memoir uses pagination on the title
15891  page (in the standard classes, title pages are 
15892 \begin_inset Quotes eld
15893 \end_inset
15894
15895 empty
15896 \begin_inset Quotes erd
15897 \end_inset
15898
15899 ).
15900  If you want an empty title page, type 
15901 \family typewriter
15902
15903 \backslash
15904 aliaspagestyle{title}{empty}
15905 \family default
15906  in the preamble.
15907 \end_layout
15908
15909 \begin_layout Description
15910 Article: With the class option 
15911 \emph on
15912 article
15913 \emph default
15914  (to be inserted in 
15915 \family sans
15916 Document\SpecialChar menuseparator
15917 Settings\SpecialChar menuseparator
15918 Class Settings\SpecialChar menuseparator
15919 Custom
15920 \begin_inset space ~
15921 \end_inset
15922
15923 Options
15924 \family default
15925 ), you can emulate article style.
15926  That is, counters (footnotes, figures, tables etc.) will not be reset on
15927  new chapters, chapters don't start a new page (but are—in contrary to 
15928 \begin_inset Quotes eld
15929 \end_inset
15930
15931 real
15932 \begin_inset Quotes erd
15933 \end_inset
15934
15935  article classes—still allowed), parts, though, use their own page, as in
15936  book.
15937 \end_layout
15938
15939 \begin_layout Description
15940 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15941  font commands, which have been used in the old \SpecialChar LaTeX
15942  version 2.09 (e.
15943 \begin_inset space \thinspace{}
15944 \end_inset
15945
15946 g.
15947 \begin_inset space \space{}
15948 \end_inset
15949
15950
15951 \family typewriter
15952
15953 \backslash
15954 rm
15955 \family default
15956
15957 \family typewriter
15958
15959 \backslash
15960 it
15961 \family default
15962 ).
15963  It produces an error and stops \SpecialChar LaTeX
15964  whenever such a command appears.
15965  The class option 
15966 \emph on
15967 oldfontcommands
15968 \emph default
15969  reallows the commands and spits out warnings instead (which does at least
15970  not stop \SpecialChar LaTeX
15971 ).
15972  Since a lot of packages and particularly Bib\SpecialChar TeX
15973  style files are still using
15974  those commands, we have decided to use this option by default.
15975 \end_layout
15976
15977 \begin_layout Subsection
15978 Extra features
15979 \end_layout
15980
15981 \begin_layout Standard
15982 We will only describe the features supported by \SpecialChar LyX
15983  (which is not much currently).
15984  Please consult the Memoir manual
15985 \begin_inset Foot
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 Cf.
15990 \begin_inset ERT
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994
15995
15996 \backslash
15997  
15998 \end_layout
15999
16000 \end_inset
16001
16002
16003 \begin_inset Flex URL
16004 status collapsed
16005
16006 \begin_layout Plain Layout
16007
16008 CTAN:/macros/latex/memoir/memman.pdf
16009 \end_layout
16010
16011 \end_inset
16012
16013 .
16014 \end_layout
16015
16016 \end_inset
16017
16018  for details.
16019 \end_layout
16020
16021 \begin_layout Description
16022 Abstract: You may wonder why an abstract is an extra feature.
16023  Well, it is in book class.
16024  Usually books don't have abstracts.
16025  Memoir, however, has.
16026  You can use it wherever and how often you like.
16027 \end_layout
16028
16029 \begin_layout Description
16030 Chapterprecis: You may know this older typesetting style: The contents of
16031  a chapter are summarized below the title and also in the table of contents
16032  (e.
16033 \begin_inset space \thinspace{}
16034 \end_inset
16035
16036 g.
16037 \begin_inset space \space{}
16038 \end_inset
16039
16040
16041 \emph on
16042 Our hero arrives in Troia; he loses some friends; he finds others
16043 \emph default
16044 ).
16045  Chapterprecis does exactly this.
16046  It is therefore only sensible below a chapter.
16047 \end_layout
16048
16049 \begin_layout Description
16050 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16051  The epigraph environment provides an elegant way of typesetting such a
16052  motto.
16053  The motto itself (text) and its (optional) author (source) are divided
16054  by a short line.
16055  The author (source) can be inserted via 
16056 \family sans
16057 Insert\SpecialChar menuseparator
16058 Epigraph Source
16059 \family default
16060 \emph on
16061 .
16062 \end_layout
16063
16064 \begin_layout Description
16065 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16066  complex figurative poems).
16067  \SpecialChar LyX
16068  can only support a few of them.
16069  One is poemtitle, which is a centered title for poems, which will also
16070  be added to the table of contents (verse is the standard environment for
16071  poems.
16072  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16073  code,
16074  because they have to be nested inside regular verse environments, which
16075  is not possible with \SpecialChar LyX
16076 ).
16077 \end_layout
16078
16079 \begin_layout Description
16080 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16081 \end_layout
16082
16083 \begin_layout Section
16084 Article (mwart), book (mwbk) and report (mwrep)
16085 \begin_inset Argument status
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 The 
16090 \family typewriter
16091 mw
16092 \family default
16093  Classes
16094 \end_layout
16095
16096 \end_inset
16097
16098
16099 \end_layout
16100
16101 \begin_layout Standard
16102 by 
16103 \noun on
16104 Tomasz Luczak
16105 \end_layout
16106
16107 \begin_layout Standard
16108 The \SpecialChar LyX
16109  document classes 
16110 \emph on
16111 article (mwart)
16112 \emph default
16113
16114 \emph on
16115 report (mwrep)
16116 \emph default
16117  and 
16118 \emph on
16119 book
16120 \emph default
16121  
16122 \emph on
16123 (mwbk)
16124 \emph default
16125  correspond to the \SpecialChar LaTeX
16126  document classes 
16127 \family typewriter
16128 mwart.cls
16129 \family default
16130
16131 \family typewriter
16132 mwrep.cls
16133 \family default
16134  and 
16135 \family typewriter
16136 mwbk.cls
16137 \family default
16138 , resp.
16139  They are replacements for the standard document classes 
16140 \family typewriter
16141 article.cls
16142 \family default
16143
16144 \family typewriter
16145 report.cls
16146 \family default
16147  and 
16148 \family typewriter
16149 book.cls
16150 \family default
16151 , resp., and fit better to Polish typography conventions in a number of points.
16152  
16153 \end_layout
16154
16155 \begin_layout Standard
16156 Basic differences:
16157 \end_layout
16158
16159 \begin_layout Itemize
16160 Unnumbered titles (with star, e.
16161 \begin_inset space \thinspace{}
16162 \end_inset
16163
16164 g.
16165 \begin_inset space \space{}
16166 \end_inset
16167
16168
16169 \family sans
16170 Section*
16171 \family default
16172 ) are added into table of contents,
16173 \end_layout
16174
16175 \begin_layout Itemize
16176 Additional page styles:
16177 \end_layout
16178
16179 \begin_deeper
16180 \begin_layout Description
16181 uheadings header with separated lines,
16182 \end_layout
16183
16184 \begin_layout Description
16185 myheadings custom header, contents headers via commands: 
16186 \family typewriter
16187
16188 \backslash
16189 markright
16190 \family default
16191  and 
16192 \family typewriter
16193
16194 \backslash
16195 markboth
16196 \family default
16197 ,
16198 \end_layout
16199
16200 \begin_layout Description
16201 myuheadings custom header with separated lines,
16202 \end_layout
16203
16204 \begin_layout Description
16205 outer page number is placed on outer side of page
16206 \end_layout
16207
16208 \end_deeper
16209 \begin_layout Itemize
16210 Options 
16211 \end_layout
16212
16213 \begin_deeper
16214 \begin_layout Description
16215 rmheadings serif titles â€” default,
16216 \end_layout
16217
16218 \begin_layout Description
16219 sfheadings sansserif titles,
16220 \end_layout
16221
16222 \begin_layout Description
16223 authortitle on title page first placed is author next title â€” default,
16224 \end_layout
16225
16226 \begin_layout Description
16227 titleauthor on title page first placed is title next author,
16228 \end_layout
16229
16230 \begin_layout Description
16231 withmarginpar reserve place on page for margins.
16232 \end_layout
16233
16234 \end_deeper
16235 \begin_layout Section
16236 Paper
16237 \end_layout
16238
16239 \begin_layout Standard
16240 The document class 
16241 \family sans
16242 paper
16243 \family default
16244  provides an alternative to the standard 
16245 \family sans
16246 article
16247 \family default
16248  class.
16249  It provides similar functionality, but you might prefer this layout with
16250  sans serif sections, headings, and more.
16251 \end_layout
16252
16253 \begin_layout Section
16254 Rev\SpecialChar TeX
16255 4
16256 \end_layout
16257
16258 \begin_layout Standard
16259 by 
16260 \noun on
16261 Amir Karger
16262 \end_layout
16263
16264 \begin_layout Standard
16265 \begin_inset VSpace bigskip
16266 \end_inset
16267
16268
16269 \end_layout
16270
16271 \begin_layout Standard
16272 \noindent
16273 The 
16274 \family sans
16275 Revtex
16276 \begin_inset space ~
16277 \end_inset
16278
16279 4
16280 \family default
16281  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16282  4.0 (the 
16283 \begin_inset Formula $\beta$
16284 \end_inset
16285
16286  release of May, 1999) class.
16287 \end_layout
16288
16289 \begin_layout Standard
16290 \SpecialChar LyX
16291  has a 
16292 \family sans
16293 Revtex
16294 \family default
16295  textclass, which works with Rev\SpecialChar TeX
16296  3.1.
16297  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16298  2.09.
16299  That means that it doesn't interact very well with \SpecialChar LyX
16300 , which requires \SpecialChar LaTeX2e
16301 , although
16302  it has been kludged to work.
16303  Since Rev\SpecialChar TeX
16304  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16305 , \SpecialChar LyX
16306  with the
16307  
16308 \family sans
16309 Rev\SpecialChar TeX
16310
16311 \begin_inset space ~
16312 \end_inset
16313
16314 4
16315 \family default
16316  textclass should also be pretty easy to use.
16317 \end_layout
16318
16319 \begin_layout Standard
16320 These documents are supposed to be used in 
16321 \emph on
16322 addition
16323 \emph default
16324  to the Rev\SpecialChar TeX
16325  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16326  macros,
16327  and assume you'll know what to put in the preamble if necessary.
16328 \end_layout
16329
16330 \begin_layout Subsection
16331 Installation
16332 \end_layout
16333
16334 \begin_layout Standard
16335 All you need to do is install Rev\SpecialChar TeX
16336  4, as described in the package's README
16337  file.
16338  The package can be found at The Rev\SpecialChar TeX
16339  4 Web Site 
16340 \begin_inset Flex URL
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344
16345 http://publish.aps.org/revtex4/
16346 \end_layout
16347
16348 \end_inset
16349
16350 .
16351  Install it somewhere that \SpecialChar LaTeX
16352  can see it.
16353  Test it by trying to \SpecialChar LaTeX
16354  a short Rev\SpecialChar TeX
16355  4 document in some random directory (i.
16356 \begin_inset space \thinspace{}
16357 \end_inset
16358
16359 e.
16360 \begin_inset space \space{}
16361 \end_inset
16362
16363 not the directory where you installed the class file.) Then, if you reconfigure
16364  \SpecialChar LyX
16365 , it will find the class file and let you use the Rev\SpecialChar TeX
16366 4 textclass.
16367 \end_layout
16368
16369 \begin_layout Standard
16370 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16371  4 document
16372  using 
16373 \family typewriter
16374 tex2lyx
16375 \family default
16376 , or to use the 
16377 \family sans
16378 Revtex
16379 \begin_inset space ~
16380 \end_inset
16381
16382 4
16383 \family default
16384  template, found in the templates directory.
16385 \end_layout
16386
16387 \begin_layout Subsection
16388 Preamble Matter
16389 \end_layout
16390
16391 \begin_layout Standard
16392 Optional arguments to 
16393 \family typewriter
16394
16395 \backslash
16396 documentclass
16397 \family default
16398 , like 
16399 \begin_inset Quotes eld
16400 \end_inset
16401
16402 preprint
16403 \begin_inset Quotes erd
16404 \end_inset
16405
16406  and 
16407 \begin_inset Quotes eld
16408 \end_inset
16409
16410 aps
16411 \begin_inset Quotes erd
16412 \end_inset
16413
16414 , go in the 
16415 \family sans
16416 Extra
16417 \begin_inset space ~
16418 \end_inset
16419
16420 Options
16421 \family default
16422  field in the 
16423 \family sans
16424 Document
16425 \begin_inset space ~
16426 \end_inset
16427
16428 Layout
16429 \family default
16430  dialog, as usual.
16431  Remember that in Rev\SpecialChar TeX
16432 , at least one optional argument is required! 
16433 \end_layout
16434
16435 \begin_layout Standard
16436 Other preamble matter, like 
16437 \family typewriter
16438
16439 \backslash
16440 draft
16441 \family default
16442  etc.
16443 \begin_inset space ~
16444 \end_inset
16445
16446 goes in the 
16447 \family sans
16448 \SpecialChar LaTeX
16449
16450 \begin_inset space ~
16451 \end_inset
16452
16453 Preamble
16454 \family default
16455  dialog, also as usual.
16456 \end_layout
16457
16458 \begin_layout Subsection
16459 Layouts
16460 \end_layout
16461
16462 \begin_layout Standard
16463 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16464 4.0.
16465  For example, the Email layout corresponds to 
16466 \family typewriter
16467
16468 \backslash
16469 email{}
16470 \family default
16471 .
16472  Note that (at least as of Rev\SpecialChar TeX
16473  4.0 Beta), the 
16474 \family sans
16475 Address
16476 \family default
16477  and 
16478 \family sans
16479 Affiliation
16480 \family default
16481  layouts are exactly equivalent, so you shouldn't need to use both.
16482 \begin_inset Foot
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486 In case you're curious, both were included so that 
16487 \family typewriter
16488 tex2lyx
16489 \family default
16490  would be able to translate both 
16491 \family typewriter
16492
16493 \backslash
16494 address
16495 \family default
16496  and 
16497 \family typewriter
16498
16499 \backslash
16500 affiliation
16501 \family default
16502 .
16503 \end_layout
16504
16505 \end_inset
16506
16507
16508 \end_layout
16509
16510 \begin_layout Subsection
16511 Important Notes
16512 \end_layout
16513
16514 \begin_layout Standard
16515 There are a couple of important unique aspects of Rev\SpecialChar TeX
16516  4 which might cause
16517  bugs that will be even more confusing in \SpecialChar LyX
16518 .
16519 \end_layout
16520
16521 \begin_layout Standard
16522 In Rev\SpecialChar TeX
16523 , the 
16524 \family typewriter
16525
16526 \backslash
16527 thanks
16528 \family default
16529  command goes 
16530 \emph on
16531 outside
16532 \emph default
16533  the 
16534 \family typewriter
16535
16536 \backslash
16537 author
16538 \family default
16539  command.
16540  The \SpecialChar LyX
16541  equivalent is that there is a separate Thanks layout.
16542  Do 
16543 \emph on
16544 not
16545 \emph default
16546  write footnotes in the 
16547 \family sans
16548 Author
16549 \family default
16550  layout, or weird things may happen.
16551  See the Rev\SpecialChar TeX
16552  4 documentation for more details.
16553 \end_layout
16554
16555 \begin_layout Standard
16556 Also, the 
16557 \family sans
16558 Author
16559 \begin_inset space ~
16560 \end_inset
16561
16562 Email
16563 \family default
16564
16565 \family sans
16566 Author
16567 \begin_inset space ~
16568 \end_inset
16569
16570 URL
16571 \family default
16572 , and 
16573 \family sans
16574 Thanks
16575 \family default
16576  layouts must be placed 
16577 \emph on
16578 in between
16579 \emph default
16580  the 
16581 \family sans
16582 Author
16583 \family default
16584  layout and the corresponding 
16585 \family sans
16586 Address
16587 \family default
16588  (or equivalent 
16589 \family sans
16590 Affiliation
16591 \family default
16592 ) layout.
16593  If you put the 
16594 \family sans
16595 Thanks
16596 \family default
16597  after the 
16598 \family sans
16599 Address
16600 \family default
16601 , the \SpecialChar LaTeX
16602  won't compile.
16603 \end_layout
16604
16605 \begin_layout Section
16606 Springer Journals (
16607 \family sans
16608 svjour
16609 \family default
16610 )
16611 \end_layout
16612
16613 \begin_layout Standard
16614 by 
16615 \noun on
16616 Martin Vermeer
16617 \end_layout
16618
16619 \begin_layout Subsection
16620 Description
16621 \end_layout
16622
16623 \begin_layout Standard
16624 These are the layout files for some of the journal formats used by Springer
16625  Verlag and listed on 
16626 \begin_inset Flex URL
16627 status collapsed
16628
16629 \begin_layout Plain Layout
16630
16631 http://www.springer.de/author/tex/help-journals.html
16632 \end_layout
16633
16634 \end_inset
16635
16636 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16637  now!).
16638  It is a modular system: the things common to all journals are implemented
16639  in 
16640 \family typewriter
16641 svjour.inc
16642 \family default
16643 , which journal-specific layout files (such as, e.
16644 \begin_inset space \thinspace{}
16645 \end_inset
16646
16647 g.
16648 \begin_inset space \space{}
16649 \end_inset
16650
16651
16652 \family typewriter
16653 svjog.layout
16654 \family default
16655  for Journal of Geodesy) can include.
16656 \end_layout
16657
16658 \begin_layout Standard
16659 This means that implementing support for any other Springer journal on this
16660  list is as simple as writing your own 
16661 \family typewriter
16662 sv
16663 \family default
16664 <myjournal>
16665 \family typewriter
16666 .layout
16667 \family default
16668  file following the outline given in 
16669 \family typewriter
16670 svjog.layout
16671 \family default
16672 .
16673  
16674 \end_layout
16675
16676 \begin_layout Standard
16677 It is reasonably well tested only for the Journal of Geodesy.
16678  
16679 \family typewriter
16680 svjour
16681 \family default
16682  and 
16683 \family typewriter
16684 svjog
16685 \family default
16686  come with the standard \SpecialChar LyX
16687  distribution.
16688  Install the relevant class file (downloaded from Springer) in a proper
16689  directory, reconfigure \SpecialChar LaTeX
16690  (in the te\SpecialChar TeX
16691  case by running 
16692 \family typewriter
16693 texhash
16694 \family default
16695 , as root if necessary â€” doesn't \SpecialChar LyX
16696  take care of this?), reconfigure \SpecialChar LyX
16697  and
16698  it should work.
16699 \end_layout
16700
16701 \begin_layout Subsection
16702 New styles
16703 \end_layout
16704
16705 \begin_layout Standard
16706 A large number of theorem-like styles â€” 
16707 \family sans
16708 Claim, Conjecture,
16709 \family default
16710  
16711 \family sans
16712 \SpecialChar ldots
16713 Theorem
16714 \family default
16715 .
16716 \end_layout
16717
16718 \begin_layout Standard
16719
16720 \family sans
16721 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16722 _Title, Author_Running, Institute,
16723  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16724 \family default
16725 .
16726  See the Springer class file documentation for details.
16727 \end_layout
16728
16729 \begin_layout Subsection
16730 Supported journals
16731 \end_layout
16732
16733 \begin_layout Itemize
16734
16735 \emph on
16736 Journal of Geodesy
16737 \emph default
16738
16739 \family typewriter
16740 svjog.layout
16741 \family default
16742  â€” Martin Vermeer
16743 \end_layout
16744
16745 \begin_layout Itemize
16746
16747 \emph on
16748 Probability Theory and Related Fields
16749 \emph default
16750
16751 \family typewriter
16752 svprobth.layout
16753 \family default
16754  â€” Jean-Marc Lasgouttes
16755 \end_layout
16756
16757 \begin_layout Standard
16758 Add your own, it isn't so hard!
16759 \end_layout
16760
16761 \begin_layout Subsection
16762 Credits
16763 \end_layout
16764
16765 \begin_layout Standard
16766 These files are partly based on the older 
16767 \family typewriter
16768 ejour2.layout
16769 \family default
16770 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16771  2.09 style
16772  file from Springer.
16773  All this, and the 
16774 \family typewriter
16775 ejour2
16776 \family default
16777  layout, are now defunct.
16778  Jean-Marc Lasgouttes helped out big in making me find my way around the
16779  \SpecialChar LyX
16780  layout file mechanism.
16781 \end_layout
16782
16783 \begin_layout Subsection
16784 Bugs
16785 \end_layout
16786
16787 \begin_layout Standard
16788 Probably.
16789  But probably less than in the old hacked-\SpecialChar LaTeX
16790  
16791 \family typewriter
16792 ejour2
16793 \family default
16794 .
16795 \end_layout
16796
16797 \begin_layout Section
16798 Slides [aka 
16799 \noun on
16800 Sli\SpecialChar TeX
16801
16802 \noun default
16803 ]
16804 \begin_inset CommandInset label
16805 LatexCommand label
16806 name "sec:slitex"
16807
16808 \end_inset
16809
16810
16811 \end_layout
16812
16813 \begin_layout Standard
16814 by 
16815 \noun on
16816 John Weiss
16817 \noun default
16818  
16819 \end_layout
16820
16821 \begin_layout Subsection
16822 Introduction
16823 \end_layout
16824
16825 \begin_layout Standard
16826 This section describes how to use \SpecialChar LyX
16827  to make slides for overhead projectors.
16828  There are two document classes that can do this: the default slides class
16829  and the 
16830 \family sans
16831 Foil\SpecialChar TeX
16832
16833 \family default
16834  slides class.
16835  This section documents the former.
16836 \end_layout
16837
16838 \begin_layout Standard
16839 I'm going to say this again, nice and clear, so that there's no misunderstanding
16840 :
16841 \end_layout
16842
16843 \begin_layout Standard
16844 \begin_inset VSpace bigskip
16845 \end_inset
16846
16847
16848 \end_layout
16849
16850 \begin_layout Standard
16851 \align center
16852
16853 \size large
16854 This section documents the class 
16855 \begin_inset Quotes eld
16856 \end_inset
16857
16858
16859 \family sans
16860 slides (default)
16861 \family default
16862
16863 \begin_inset Quotes erd
16864 \end_inset
16865
16866  
16867 \emph on
16868 only.
16869 \end_layout
16870
16871 \begin_layout Standard
16872 \begin_inset VSpace bigskip
16873 \end_inset
16874
16875
16876 \end_layout
16877
16878 \begin_layout Standard
16879 If you're looking for the documentation for 
16880 \begin_inset Quotes eld
16881 \end_inset
16882
16883
16884 \family sans
16885 slides (Foil\SpecialChar TeX
16886 )
16887 \family default
16888
16889 \begin_inset Quotes erd
16890 \end_inset
16891
16892 , check out section
16893 \begin_inset space ~
16894 \end_inset
16895
16896
16897 \begin_inset CommandInset ref
16898 LatexCommand ref
16899 reference "sec:foiltex"
16900
16901 \end_inset
16902
16903 .
16904  The 
16905 \family sans
16906 foils
16907 \family default
16908  class [
16909 \begin_inset Quotes eld
16910 \end_inset
16911
16912
16913 \family sans
16914 slides (Foil\SpecialChar TeX
16915 )
16916 \family default
16917
16918 \begin_inset Quotes erd
16919 \end_inset
16920
16921 ] is actually somewhat better than the default 
16922 \family sans
16923 slides
16924 \family default
16925  class,
16926 \begin_inset Foot
16927 status collapsed
16928
16929 \begin_layout Plain Layout
16930 \SpecialChar ldots
16931 or so I've been told repeatedly by its advocates.
16932  Having never used it, I have no idea if this claim is true or not.
16933 \end_layout
16934
16935 \end_inset
16936
16937  which this section documents.
16938 \end_layout
16939
16940 \begin_layout Standard
16941 This class is the \SpecialChar LaTeX2e
16942  improvement of the old 
16943 \noun on
16944 Sli\SpecialChar TeX
16945
16946 \noun default
16947  package.
16948  Every \SpecialChar LaTeX2e
16949  distribution includes this class [which I'll just refer to as 
16950 \begin_inset Quotes eld
16951 \end_inset
16952
16953
16954 \family sans
16955 slides
16956 \family default
16957
16958 \begin_inset Quotes erd
16959 \end_inset
16960
16961  from now on], so you're bound to have it.
16962  As I noted earlier, there are other classes, such as 
16963 \family sans
16964 foils
16965 \family default
16966 , which also produce slides for overhead projectors and do a better job
16967  at it.
16968  However, there are some things which 
16969 \family sans
16970 slides
16971 \family default
16972  can do which the others can't, such as generate overlays.
16973  Read on to learn more!
16974 \end_layout
16975
16976 \begin_layout Subsection
16977 Getting Started
16978 \begin_inset CommandInset label
16979 LatexCommand label
16980 name "sec:slidesetup"
16981
16982 \end_inset
16983
16984
16985 \end_layout
16986
16987 \begin_layout Standard
16988 Obviously, to use this document class, you need to select 
16989 \begin_inset Quotes eld
16990 \end_inset
16991
16992
16993 \family sans
16994 slides (default)
16995 \family default
16996
16997 \begin_inset Quotes erd
16998 \end_inset
16999
17000  from the class list in the 
17001 \family sans
17002 Document\SpecialChar menuseparator
17003 Settings
17004 \family default
17005  dialog.
17006  There are some other special things you should know about this class:
17007 \end_layout
17008
17009 \begin_layout Itemize
17010 Don't bother changing the options 
17011 \family sans
17012 Sides and Columns
17013 \family default
17014 .
17015  They're not supported by the 
17016 \family sans
17017 slides
17018 \family default
17019  class, anyways.
17020 \end_layout
17021
17022 \begin_layout Itemize
17023 The option 
17024 \family sans
17025 Page
17026 \begin_inset space ~
17027 \end_inset
17028
17029 style
17030 \family default
17031  behaves a bit differently for this class.
17032  The possible choices and what they do are as follows:
17033 \end_layout
17034
17035 \begin_deeper
17036 \begin_layout Description
17037
17038 \family sans
17039 plain
17040 \family default
17041  The final output contains page numbers in the lower right corner.
17042 \end_layout
17043
17044 \begin_layout Description
17045
17046 \family sans
17047 headings
17048 \family default
17049  Like 
17050 \family sans
17051 plain
17052 \family default
17053 , but also prints out any time markers you've put in.
17054  This is the default.
17055 \end_layout
17056
17057 \begin_layout Description
17058
17059 \family sans
17060 empty
17061 \family default
17062  The final output contains no page numbers, time markers, or alignment markers.
17063 \end_layout
17064
17065 \end_deeper
17066 \begin_layout Itemize
17067 The 
17068 \family sans
17069 slides
17070 \family default
17071  class has an extra option: 
17072 \family typewriter
17073 clock
17074 \family default
17075 .
17076  To use it, put 
17077 \begin_inset Quotes eld
17078 \end_inset
17079
17080
17081 \family typewriter
17082 clock
17083 \family default
17084
17085 \begin_inset Quotes erd
17086 \end_inset
17087
17088  in the extra class options.
17089 \end_layout
17090
17091 \begin_deeper
17092 \begin_layout Standard
17093 Using this options allows you to add time markers to 
17094 \family sans
17095 Note
17096 \family default
17097 s.
17098  See section
17099 \begin_inset space ~
17100 \end_inset
17101
17102
17103 \begin_inset CommandInset ref
17104 LatexCommand ref
17105 reference "sec:slideNote"
17106
17107 \end_inset
17108
17109  for more details.
17110 \end_layout
17111
17112 \end_deeper
17113 \begin_layout Standard
17114 You can also use the template file 
17115 \begin_inset Quotes eld
17116 \end_inset
17117
17118
17119 \family typewriter
17120 slides.lyx
17121 \family default
17122
17123 \begin_inset Quotes erd
17124 \end_inset
17125
17126  to automatically set up a document to use the 
17127 \family sans
17128 slides
17129 \family default
17130  class [using 
17131 \family sans
17132 File\SpecialChar menuseparator
17133 New
17134 \begin_inset space ~
17135 \end_inset
17136
17137 from
17138 \begin_inset space ~
17139 \end_inset
17140
17141 Template
17142 \family default
17143  to open your new document].
17144  The template file also contains some examples of the special paragraph
17145  environments used by this class.
17146  I'll describe those next.
17147 \end_layout
17148
17149 \begin_layout Subsection
17150 Paragraph Environments
17151 \end_layout
17152
17153 \begin_layout Subsubsection
17154 Supported Environments
17155 \end_layout
17156
17157 \begin_layout Standard
17158 The first thing you'll notice when you start up a new 
17159 \family sans
17160 slides
17161 \family default
17162  document is the font size and type: it's the equivalent of the size 
17163 \begin_inset Quotes eld
17164 \end_inset
17165
17166
17167 \family sans
17168 Largest
17169 \family default
17170
17171 \begin_inset Quotes erd
17172 \end_inset
17173
17174  in the 
17175 \family sans
17176 Sans
17177 \begin_inset space ~
17178 \end_inset
17179
17180 Serif
17181 \family default
17182  font.
17183  This is also what's used in the output.
17184  Think of this as a 
17185 \begin_inset Quotes eld
17186 \end_inset
17187
17188 visual cue
17189 \begin_inset Quotes erd
17190 \end_inset
17191
17192  to remind you that this is a slide.
17193  Your final slides will use a larger font; ergo, you'll have less space.
17194  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17195 \end_layout
17196
17197 \begin_layout Standard
17198 The next thing that becomes obvious is the changes to the paragraph environment
17199  pull-down box [at the far-left end of the toolbar].
17200  Most of the paragraph environments you're used to seeing are missing.
17201  There are also five new ones.
17202  That's because the 
17203 \family sans
17204 slides
17205 \family default
17206  class itself only supports certain paragraph environments:
17207 \end_layout
17208
17209 \begin_layout Itemize
17210
17211 \family sans
17212 Standard
17213 \end_layout
17214
17215 \begin_layout Itemize
17216
17217 \family sans
17218 Itemize
17219 \end_layout
17220
17221 \begin_layout Itemize
17222
17223 \family sans
17224 Enumerate
17225 \end_layout
17226
17227 \begin_layout Itemize
17228
17229 \family sans
17230 Description
17231 \end_layout
17232
17233 \begin_layout Itemize
17234
17235 \family sans
17236 List
17237 \end_layout
17238
17239 \begin_layout Itemize
17240
17241 \family sans
17242 Quotation
17243 \end_layout
17244
17245 \begin_layout Itemize
17246
17247 \family sans
17248 Quote
17249 \end_layout
17250
17251 \begin_layout Itemize
17252
17253 \family sans
17254 Verse
17255 \end_layout
17256
17257 \begin_layout Itemize
17258
17259 \family sans
17260 Caption
17261 \end_layout
17262
17263 \begin_layout Itemize
17264
17265 \family sans
17266 \SpecialChar LyX
17267 -Code
17268 \end_layout
17269
17270 \begin_layout Standard
17271 All of the other standard environments, including the section-heading environmen
17272 ts, aren't used in the 
17273 \family sans
17274 slides
17275 \family default
17276  class.
17277 \end_layout
17278
17279 \begin_layout Standard
17280 On the other hand, you'll notice the following new environments:
17281 \end_layout
17282
17283 \begin_layout Itemize
17284
17285 \family sans
17286 Slide
17287 \end_layout
17288
17289 \begin_layout Itemize
17290
17291 \family sans
17292 Overlay
17293 \end_layout
17294
17295 \begin_layout Itemize
17296
17297 \family sans
17298 Note
17299 \end_layout
17300
17301 \begin_layout Itemize
17302
17303 \family sans
17304 InvisibleText
17305 \end_layout
17306
17307 \begin_layout Itemize
17308
17309 \family sans
17310 VisibleText
17311 \end_layout
17312
17313 \begin_layout Standard
17314 These five are kind of quirky, due to a 
17315 \begin_inset Quotes eld
17316 \end_inset
17317
17318 feature
17319 \begin_inset Quotes erd
17320 \end_inset
17321
17322  in \SpecialChar LyX
17323 .
17324  You see, \SpecialChar LyX
17325  doesn't permit you to nest any other paragraph environment into
17326  an empty environment.
17327  Now, that's fine and dandy, but it means that you wouldn't be able to start
17328  a slide with anything except plain text.
17329  To deal with this, I've performed a little 
17330 \begin_inset Quotes eld
17331 \end_inset
17332
17333 \SpecialChar LaTeX
17334  magic.
17335 \begin_inset Quotes erd
17336 \end_inset
17337
17338  
17339 \end_layout
17340
17341 \begin_layout Subsubsection
17342 Quirks of the New Environments
17343 \begin_inset CommandInset label
17344 LatexCommand label
17345 name "sec:slideQuirk"
17346
17347 \end_inset
17348
17349
17350 \end_layout
17351
17352 \begin_layout Standard
17353 All five of the new paragraph environments are somewhat quirky due to inherent
17354  limitiations in the current version of \SpecialChar LyX
17355 .
17356  As I just mentioned, \SpecialChar LyX
17357  forbids environments that begin with another environment.
17358  To get around this, the 
17359 \family sans
17360 Slide
17361 \family default
17362  environment isn't a paragraph environment as described in the 
17363 \emph on
17364 User's Guide
17365 \emph default
17366 .
17367  
17368 \end_layout
17369
17370 \begin_layout Standard
17371 You should consider 
17372 \family sans
17373 Slide
17374 \family default
17375
17376 \family sans
17377 Overlay
17378 \family default
17379 , and 
17380 \family sans
17381 Note
17382 \family default
17383  to be 
17384 \begin_inset Quotes eld
17385 \end_inset
17386
17387 pseudo-environments.
17388 \begin_inset Quotes erd
17389 \end_inset
17390
17391  They look like a section heading or a 
17392 \begin_inset Quotes eld
17393 \end_inset
17394
17395
17396 \family sans
17397 Caption
17398 \family default
17399 ,
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403  but really begin a [and, if necessary, end the previous] paragraph environment.
17404  Likewise, treat 
17405 \family sans
17406 InvisibleText
17407 \family default
17408  and 
17409 \family sans
17410 VisibleText
17411 \family default
17412  as 
17413 \begin_inset Quotes eld
17414 \end_inset
17415
17416 pseudo-commands.
17417 \begin_inset Quotes erd
17418 \end_inset
17419
17420  These two perform some action.
17421 \end_layout
17422
17423 \begin_layout Standard
17424 A common feature of all five environments, 
17425 \family sans
17426 Slide
17427 \family default
17428
17429 \family sans
17430 Overlay
17431 \family default
17432
17433 \family sans
17434 Note
17435 \family default
17436
17437 \family sans
17438 InvisibleText
17439 \family default
17440  and 
17441 \family sans
17442 VisibleText
17443 \family default
17444 , is a rather long-ish label.
17445  The text following this label â€” ordinarily the contents of the paragraph
17446  environment â€” is utterly irrelevant for 
17447 \family sans
17448 Slide
17449 \family default
17450
17451 \family sans
17452 Overlay
17453 \family default
17454
17455 \family sans
17456 Note
17457 \family default
17458
17459 \family sans
17460 InvisibleText
17461 \family default
17462  and 
17463 \family sans
17464 VisibleText
17465 \family default
17466 .
17467  \SpecialChar LyX
17468  completely ignores it.
17469  In fact, you can leave these five environments completely empty.
17470  
17471 \end_layout
17472
17473 \begin_layout Standard
17474 While you don't 
17475 \emph on
17476 have
17477 \emph default
17478  to put any text after the rather long-ish label, you might want to.
17479  This could be a short description of the contents of the 
17480 \family sans
17481 Slide
17482 \family default
17483 , for example.
17484  In that case, enter your descriptive comment and hit 
17485 \family sans
17486 Return
17487 \family default
17488  as you normally would.
17489 \end_layout
17490
17491 \begin_layout Standard
17492 If, on the other hand, you don't want to enter any descriptive text, you'll
17493  hit another \SpecialChar LyX
17494  quirk.
17495  \SpecialChar LyX
17496 , like nature, abhors a vacuum, and will not let you start a new paragraph
17497  environment until you put something in the old one.
17498  So, do this:
17499 \end_layout
17500
17501 \begin_layout Itemize
17502 Start entering the text that will 
17503 \emph on
17504 follow
17505 \emph default
17506  the new 
17507 \family sans
17508 Slide
17509 \family default
17510
17511 \family sans
17512 Overlay
17513 \family default
17514
17515 \family sans
17516 Note
17517 \family default
17518
17519 \family sans
17520 InvisibleText
17521 \family default
17522  or 
17523 \family sans
17524 VisibleText
17525 \family default
17526 .
17527  
17528 \end_layout
17529
17530 \begin_layout Itemize
17531 Now move to the beginning of that paragraph.
17532  
17533 \end_layout
17534
17535 \begin_layout Itemize
17536 Next, hit 
17537 \family sans
17538 Return
17539 \family default
17540 .
17541  
17542 \end_layout
17543
17544 \begin_layout Itemize
17545 Finally, change this new, empty paragraph to a 
17546 \family sans
17547 Slide
17548 \family default
17549
17550 \family sans
17551 Overlay
17552 \family default
17553
17554 \family sans
17555 Note
17556 \family default
17557
17558 \family sans
17559 InvisibleText
17560 \family default
17561  or 
17562 \family sans
17563 VisibleText
17564 \family default
17565 .
17566  
17567 \end_layout
17568
17569 \begin_layout Standard
17570 Some future version of \SpecialChar LyX
17571  will, hopefully, resolve this quirkiness\SpecialChar ldots
17572
17573 \end_layout
17574
17575 \begin_layout Subsection
17576 Making a Presentation with 
17577 \family sans
17578 Slide
17579 \family default
17580
17581 \family sans
17582 Overlay
17583 \family default
17584  and 
17585 \family sans
17586 Note
17587 \end_layout
17588
17589 \begin_layout Subsubsection
17590 Using the 
17591 \family sans
17592 Slide
17593 \family default
17594  Environment
17595 \end_layout
17596
17597 \begin_layout Standard
17598 If you're expecting this section to teach you how to actually make a presentatio
17599 n, you'll be sorely disappointed.
17600  Naturally, I'll describe all of the ways the 
17601 \family sans
17602 slides
17603 \family default
17604  class can assist you in preparing the materials for a presentation.
17605  Filling in the contents, however, is up to you.
17606  [Then again, that 
17607 \emph on
17608 is
17609 \emph default
17610  the \SpecialChar LyX
17611  philosophy.]
17612 \end_layout
17613
17614 \begin_layout Standard
17615 Choosing the 
17616 \family sans
17617 Slide
17618 \family default
17619  environment [in the manner described in section
17620 \begin_inset space ~
17621 \end_inset
17622
17623
17624 \begin_inset CommandInset ref
17625 LatexCommand ref
17626 reference "sec:slideQuirk"
17627
17628 \end_inset
17629
17630 ] tells \SpecialChar LyX
17631  to begin a new slide [duh].
17632  The label for this environment/
17633 \begin_inset Quotes erd
17634 \end_inset
17635
17636 pseudo-command
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640  is an 
17641 \begin_inset Quotes eld
17642 \end_inset
17643
17644 ASCII line,
17645 \begin_inset Quotes erd
17646 \end_inset
17647
17648  in cool blue, followed by the label, 
17649 \begin_inset Quotes eld
17650 \end_inset
17651
17652 NewSlide:
17653 \begin_inset Quotes erd
17654 \end_inset
17655
17656 .
17657  Any text or paragraph environments that follow this one go on the new slide.
17658  It's that simple.
17659 \end_layout
17660
17661 \begin_layout Standard
17662 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17663
17664  (this can be specified in the 
17665 \family sans
17666 Paragraph Layout
17667 \family default
17668  dialog).
17669  In fact, you'll want to, once you finish entering the contents of one slide.
17670  If you've entered more text than can physically fit on a slide, the extra
17671  overflows onto a new slide.
17672  I don't recommend doing this, however, since the overflow slide won't have
17673  any page number on it.
17674  Furthermore, it may interfere with any 
17675 \family sans
17676 Overlay
17677 \family default
17678  you've made to accompany the oversized 
17679 \family sans
17680 Slide
17681 \family default
17682 .
17683 \end_layout
17684
17685 \begin_layout Standard
17686 The 
17687 \family sans
17688 Overlay
17689 \family default
17690  and 
17691 \family sans
17692 Note
17693 \family default
17694  environments work the same way as the 
17695 \family sans
17696 Slide
17697 \family default
17698  environment.
17699  They both create an 
17700 \begin_inset Quotes eld
17701 \end_inset
17702
17703 ASCII line
17704 \begin_inset Quotes erd
17705 \end_inset
17706
17707  followed by a label [
17708 \begin_inset Quotes eld
17709 \end_inset
17710
17711 NewOverlay:
17712 \begin_inset Quotes erd
17713 \end_inset
17714
17715  and 
17716 \begin_inset Quotes eld
17717 \end_inset
17718
17719 NewNote:
17720 \begin_inset Quotes erd
17721 \end_inset
17722
17723 , respectively].
17724  The color is a stunning magenta instead of blue, and the 
17725 \begin_inset Quotes eld
17726 \end_inset
17727
17728 ASCII line
17729 \begin_inset Quotes erd
17730 \end_inset
17731
17732  will look different, in style and in length.
17733  The label fonts of all three also differ from one another.
17734 \end_layout
17735
17736 \begin_layout Standard
17737 As with a 
17738 \family sans
17739 Slide
17740 \family default
17741 , if the contents of a 
17742 \family sans
17743 Note
17744 \family default
17745  or 
17746 \family sans
17747 Overlay
17748 \family default
17749  exceed the physical size of a slide or sheet of paper, the extra will overflow
17750  onto a new sheet.
17751  Again, you should avoid this.
17752  It defeats the whole purpose of 
17753 \family sans
17754 Note
17755 \family default
17756 s and 
17757 \family sans
17758 Overlay
17759 \family default
17760 s.
17761 \end_layout
17762
17763 \begin_layout Subsubsection
17764 Using 
17765 \family sans
17766 Overlay
17767 \family default
17768  with 
17769 \family sans
17770 Slide
17771 \end_layout
17772
17773 \begin_layout Standard
17774 The idea behind an 
17775 \family sans
17776 Overlay
17777 \family default
17778  is a slide that sits atop another slide.
17779  Perhaps you wish to discuss a figure on the main 
17780 \family sans
17781 Slide
17782 \family default
17783  before displaying the text associated with it.
17784  One way to accomplish this is tape a flap of dark paper over the part of
17785  the 
17786 \family sans
17787 Slide
17788 \family default
17789  you want to display later.
17790  This method fails, however, if you wish to overlap one graph with another,
17791  for example.
17792  You would then have to fumble while speaking to align the two separate,
17793  overlapping 
17794 \family sans
17795 Slide
17796 \family default
17797 s to align the two graphs.
17798  The use of an 
17799 \family sans
17800 Overlay
17801 \family default
17802  environment in both cases makes life much easier.
17803 \end_layout
17804
17805 \begin_layout Standard
17806 Each 
17807 \family sans
17808 Overlay
17809 \family default
17810  receives the page number of its 
17811 \begin_inset Quotes eld
17812 \end_inset
17813
17814 parent
17815 \begin_inset Quotes erd
17816 \end_inset
17817
17818  
17819 \family sans
17820 Slide
17821 \family default
17822 , appended by 
17823 \begin_inset Quotes eld
17824 \end_inset
17825
17826
17827 \family typewriter
17828 -a
17829 \family default
17830
17831 \begin_inset Quotes erd
17832 \end_inset
17833
17834 .
17835 \begin_inset Foot
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 Presumably, mutliple 
17840 \family sans
17841 Overlay
17842 \family default
17843 s would have 
17844 \begin_inset Quotes eld
17845 \end_inset
17846
17847
17848 \family typewriter
17849 -a
17850 \family default
17851
17852 \begin_inset Quotes erd
17853 \end_inset
17854
17855
17856 \begin_inset Quotes eld
17857 \end_inset
17858
17859
17860 \family typewriter
17861 -b
17862 \family default
17863
17864 \begin_inset Quotes erd
17865 \end_inset
17866
17867
17868 \begin_inset Quotes eld
17869 \end_inset
17870
17871
17872 \family typewriter
17873 -c
17874 \family default
17875
17876 \begin_inset Quotes erd
17877 \end_inset
17878
17879 , etc.
17880 \begin_inset space ~
17881 \end_inset
17882
17883 appended to the page number of the parent 
17884 \family sans
17885 Slide
17886 \family default
17887 .
17888  
17889 \end_layout
17890
17891 \end_inset
17892
17893  Clearly, you want the contents of both the 
17894 \family sans
17895 Slide
17896 \family default
17897  and the 
17898 \family sans
17899 Overlay
17900 \family default
17901  to each fit on a single physical slide! You should probably consider an
17902  
17903 \family sans
17904 Overlay
17905 \family default
17906  as 
17907 \begin_inset Quotes eld
17908 \end_inset
17909
17910 part of
17911 \begin_inset Quotes erd
17912 \end_inset
17913
17914  a 
17915 \family sans
17916 Slide
17917 \family default
17918 .
17919  Indeed, the \SpecialChar LyX
17920  
17921 \family sans
17922 slides
17923 \family default
17924  class provides a visual cue for this: the label at the start of an 
17925 \family sans
17926 Overlay
17927 \family default
17928  is shorter than that at the start of a 
17929 \family sans
17930 Slide
17931 \family default
17932 .
17933  Lastly, when you generate printable output, you'll find alignment markers
17934  in all four corners of both the 
17935 \family sans
17936 Overlay
17937 \family default
17938  page and its parent 
17939 \family sans
17940 Slide
17941 \family default
17942 .
17943  These will assist you in lining up the two physical slides.
17944 \end_layout
17945
17946 \begin_layout Standard
17947 The major problem in overlaying two slides is aligning the contents of the
17948  two transparencies.
17949  How much space should you leave for that graph on the second slide? Worse
17950  still, what if you want a graph and a sentence on second slide, but there
17951  is text on the main transparency that goes in between them? You could try
17952  and insert vertical space of the right size.
17953  The better way is to use 
17954 \family sans
17955 InvisibleText
17956 \family default
17957  and 
17958 \family sans
17959 VisibleText
17960 \family default
17961 .
17962 \end_layout
17963
17964 \begin_layout Standard
17965 As their names imply, 
17966 \family sans
17967 InvisibleText
17968 \family default
17969  and 
17970 \family sans
17971 VisibleText
17972 \family default
17973  are two command-like paragraph environments that make all subsequent text
17974  invisible and visible, respectively.
17975  Note from section
17976 \begin_inset space ~
17977 \end_inset
17978
17979
17980 \begin_inset CommandInset ref
17981 LatexCommand ref
17982 reference "sec:slideQuirk"
17983
17984 \end_inset
17985
17986  that you don't place anything 
17987 \emph on
17988 into
17989 \emph default
17990  these two environments, however.
17991  When you create an 
17992 \family sans
17993 InvisibleText
17994 \family default
17995 , it inserts a centered, sky-blue label into the page reading 
17996 \begin_inset Quotes eld
17997 \end_inset
17998
17999 <Invisible Text Follows>
18000 \begin_inset Quotes erd
18001 \end_inset
18002
18003 .
18004  For paragraphs following this label, the parts of the 
18005 \family sans
18006 Slide
18007 \family default
18008  [or 
18009 \family sans
18010 Overlay
18011 \family default
18012 ; it doesn't matter which] where they would be contain instead blank space.
18013  
18014 \end_layout
18015
18016 \begin_layout Standard
18017 For 
18018 \family sans
18019 VisibleText
18020 \family default
18021 , the corresponding centered label is 
18022 \begin_inset Quotes eld
18023 \end_inset
18024
18025 <Visible Text Follows>
18026 \begin_inset Quotes erd
18027 \end_inset
18028
18029  in blazing green.
18030  Paragraphs following this label behave normally.
18031  Note that the beginning of a new 
18032 \family sans
18033 Slide
18034 \family default
18035
18036 \family sans
18037 Overlay
18038 \family default
18039 , or 
18040 \family sans
18041 Note
18042 \family default
18043  automatically shuts off an 
18044 \family sans
18045 InvisibleText
18046 \family default
18047 .
18048  It's therefore not necessary to use 
18049 \family sans
18050 VisibleText
18051 \family default
18052  at the end of a 
18053 \family sans
18054 Slide
18055 \family default
18056 .
18057 \end_layout
18058
18059 \begin_layout Standard
18060 By now, it should be obvious how to create overlay transparencies using
18061  the proper combination of 
18062 \family sans
18063 InvisibleText
18064 \family default
18065  and 
18066 \family sans
18067 VisibleText
18068 \family default
18069  on a 
18070 \family sans
18071 Slide
18072 \family default
18073  and 
18074 \family sans
18075 Overlay
18076 \family default
18077 :
18078 \end_layout
18079
18080 \begin_layout Enumerate
18081 Create a 
18082 \family sans
18083 Slide
18084 \family default
18085 , including everything that will appear on it, whether on the main slide
18086  or on the 
18087 \family sans
18088 Overlay
18089 \family default
18090 .
18091 \end_layout
18092
18093 \begin_layout Enumerate
18094 Before each figure or paragraph that will appear only on the 
18095 \family sans
18096 Overlay
18097 \family default
18098 , insert an 
18099 \family sans
18100 InvisibleText
18101 \family default
18102  environment.
18103  If necessary, insert a 
18104 \family sans
18105 VisibleText
18106 \family default
18107  environment after the 
18108 \family sans
18109 Overlay
18110 \family default
18111 -only text.
18112 \end_layout
18113
18114 \begin_layout Enumerate
18115 Start an 
18116 \family sans
18117 Overlay
18118 \family default
18119  immediately following the 
18120 \family sans
18121 Slide
18122 \family default
18123 .
18124 \end_layout
18125
18126 \begin_layout Enumerate
18127 Copy the contents of this 
18128 \family sans
18129 Slide
18130 \family default
18131  into the 
18132 \family sans
18133 Overlay
18134 \family default
18135 .
18136 \end_layout
18137
18138 \begin_layout Enumerate
18139 Within the 
18140 \family sans
18141 Overlay
18142 \family default
18143 , change all of the 
18144 \family sans
18145 InvisibleText
18146 \family default
18147  lines to 
18148 \family sans
18149 VisibleText
18150 \family default
18151  and vice-versa.
18152 \end_layout
18153
18154 \begin_layout Standard
18155 That's it.
18156  You've just made an 
18157 \family sans
18158 Overlay
18159 \family default
18160 .
18161 \end_layout
18162
18163 \begin_layout Standard
18164 There's one problem with the way I've designed the \SpecialChar LyX
18165  
18166 \family sans
18167 slides
18168 \family default
18169  class: you can't make text in the middle of a paragraph invisible, nor
18170  make text in the middle of an invisible paragraph visible again.
18171  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18172  codes.
18173 \begin_inset Foot
18174 status collapsed
18175
18176 \begin_layout Plain Layout
18177 The commands of interest are: 
18178 \end_layout
18179
18180 \begin_layout Itemize
18181
18182 \family typewriter
18183 {
18184 \backslash
18185 invisible \SpecialChar ldots
18186  }
18187 \end_layout
18188
18189 \begin_layout Itemize
18190
18191 \family typewriter
18192 {
18193 \backslash
18194 visible \SpecialChar ldots
18195  }
18196 \end_layout
18197
18198 \begin_layout Plain Layout
18199 \SpecialChar ldots
18200 and need to be marked as \SpecialChar TeX
18201 .
18202  The text whose 
18203 \begin_inset Quotes eld
18204 \end_inset
18205
18206 visibility
18207 \begin_inset Quotes erd
18208 \end_inset
18209
18210  you wish to change goes in between the brackets [and after the 
18211 \family typewriter
18212
18213 \backslash
18214 invisible
18215 \family default
18216  or 
18217 \family typewriter
18218
18219 \backslash
18220 visible
18221 \family default
18222  command].
18223  If you don't know how to mark text as \SpecialChar TeX
18224 , see the appropriate section of
18225  the 
18226 \emph on
18227 User's Guide
18228 \emph default
18229 .
18230 \end_layout
18231
18232 \end_inset
18233
18234
18235 \end_layout
18236
18237 \begin_layout Subsubsection
18238 Using 
18239 \family sans
18240 Note
18241 \family default
18242  with 
18243 \family sans
18244 Slide
18245 \family default
18246
18247 \begin_inset CommandInset label
18248 LatexCommand label
18249 name "sec:slideNote"
18250
18251 \end_inset
18252
18253
18254 \end_layout
18255
18256 \begin_layout Standard
18257 Like an 
18258 \family sans
18259 Overlay
18260 \family default
18261 , a 
18262 \family sans
18263 Note
18264 \family default
18265  is associated with a 
18266 \begin_inset Quotes eld
18267 \end_inset
18268
18269 parent
18270 \begin_inset Quotes erd
18271 \end_inset
18272
18273  
18274 \family sans
18275 Slide
18276 \family default
18277 .
18278  Here, too, the \SpecialChar LyX
18279  
18280 \family sans
18281 slides
18282 \family default
18283  class provides visual cues.
18284  The label for a 
18285 \family sans
18286 Note
18287 \family default
18288  is shorter than that of a 
18289 \family sans
18290 Slide
18291 \family default
18292  [yet longer than that of an 
18293 \family sans
18294 Overlay
18295 \family default
18296 ] and, like the label of an 
18297 \family sans
18298 Overlay
18299 \family default
18300  is shockingly magenta.
18301  Additionally, the printed 
18302 \family sans
18303 Note
18304 \family default
18305  has the page number of its 
18306 \begin_inset Quotes eld
18307 \end_inset
18308
18309 parent
18310 \begin_inset Quotes erd
18311 \end_inset
18312
18313  
18314 \family sans
18315 Slide
18316 \family default
18317 , appended by 
18318 \begin_inset Quotes eld
18319 \end_inset
18320
18321
18322 \family typewriter
18323 -
18324 \family default
18325 1
18326 \begin_inset Quotes erd
18327 \end_inset
18328
18329
18330 \begin_inset Quotes eld
18331 \end_inset
18332
18333
18334 \family typewriter
18335 -
18336 \family default
18337 2
18338 \begin_inset Quotes erd
18339 \end_inset
18340
18341
18342 \begin_inset Quotes eld
18343 \end_inset
18344
18345
18346 \family typewriter
18347 -
18348 \family default
18349 3
18350 \begin_inset Quotes erd
18351 \end_inset
18352
18353 , etc.
18354  You can have multiple 
18355 \family sans
18356 Note
18357 \family default
18358 s associated with a single 
18359 \family sans
18360 Slide
18361 \family default
18362 , and, as with 
18363 \family sans
18364 Slide
18365 \family default
18366  and 
18367 \family sans
18368 Overlay
18369 \family default
18370 , you'll probably want to break up long 
18371 \family sans
18372 Note
18373 \family default
18374 s so that they fit on a single sheet of paper.
18375 \end_layout
18376
18377 \begin_layout Standard
18378 The purpose of a 
18379 \family sans
18380 Note
18381 \family default
18382  is obvious: it contains anything additional you might want to say about
18383  a 
18384 \family sans
18385 Slide
18386 \family default
18387 .
18388  It could also be used as a sheet of reminders for a particular 
18389 \family sans
18390 Slide
18391 \family default
18392 .
18393  In the case of the latter, you might want to make use of time markers.
18394  Currently, the \SpecialChar LyX
18395  
18396 \family sans
18397 slides
18398 \family default
18399  class has no 
18400 \begin_inset Quotes eld
18401 \end_inset
18402
18403 native
18404 \begin_inset Quotes erd
18405 \end_inset
18406
18407  support for time markers, a 
18408 \noun on
18409 Sli\SpecialChar TeX
18410
18411 \noun default
18412  feature.
18413  So, you'll have to resort to using the \SpecialChar LaTeX
18414  codes.
18415 \end_layout
18416
18417 \begin_layout Standard
18418 To use time markers, you'll need to specify the extra class option 
18419 \begin_inset Quotes eld
18420 \end_inset
18421
18422
18423 \family typewriter
18424 clock
18425 \family default
18426
18427 \begin_inset Quotes erd
18428 \end_inset
18429
18430  [see section
18431 \begin_inset space ~
18432 \end_inset
18433
18434
18435 \begin_inset CommandInset ref
18436 LatexCommand ref
18437 reference "sec:slidesetup"
18438
18439 \end_inset
18440
18441 ].
18442  This option turns on timing marks, which will appear in the lower-left-hand
18443  corner of every 
18444 \family sans
18445 Note
18446 \family default
18447  you generate.
18448  To set what appears in the time marker, you use the \SpecialChar LaTeX
18449  commands 
18450 \begin_inset Quotes eld
18451 \end_inset
18452
18453
18454 \family typewriter
18455
18456 \backslash
18457 settime{}
18458 \family default
18459
18460 \begin_inset Quotes erd
18461 \end_inset
18462
18463  and 
18464 \begin_inset Quotes eld
18465 \end_inset
18466
18467
18468 \family typewriter
18469
18470 \backslash
18471 addtime{}
18472 \family default
18473
18474 \begin_inset Quotes erd
18475 \end_inset
18476
18477 .
18478  The arguments of both commands are time measured in seconds.
18479  
18480 \begin_inset Quotes eld
18481 \end_inset
18482
18483
18484 \family typewriter
18485
18486 \backslash
18487 settime{}
18488 \family default
18489
18490 \begin_inset Quotes erd
18491 \end_inset
18492
18493  sets the time marker to a given time.
18494  
18495 \begin_inset Quotes eld
18496 \end_inset
18497
18498
18499 \family typewriter
18500
18501 \backslash
18502 addtime{}
18503 \family default
18504
18505 \begin_inset Quotes erd
18506 \end_inset
18507
18508  increments the time marker by the specified amount.
18509  Using time markers and 
18510 \family sans
18511 Note
18512 \family default
18513 s in this fashion, you can remind yourself how much time to spend on a particula
18514
18515 \family sans
18516 Slide
18517 \family default
18518 .
18519 \end_layout
18520
18521 \begin_layout Standard
18522 There's one last feature to describe.
18523  Clearly, you'd like to print out all of your 
18524 \family sans
18525 Slide
18526 \family default
18527 s and 
18528 \family sans
18529 Overlay
18530 \family default
18531 s on transparencies while printing all of your 
18532 \family sans
18533 Note
18534 \family default
18535 s on plain paper.
18536  However, a 
18537 \family sans
18538 Note
18539 \family default
18540  
18541 \emph on
18542 must
18543 \emph default
18544  follow the 
18545 \family sans
18546 Slide
18547 \family default
18548  with which it is associated.
18549  What's a person to do?
18550 \end_layout
18551
18552 \begin_layout Standard
18553 Luckily, there are two \SpecialChar LaTeX
18554  commands that allow you to select what to print
18555  out.
18556  Both must be placed into the preamble of your document.
18557  The command 
18558 \begin_inset Quotes eld
18559 \end_inset
18560
18561
18562 \family typewriter
18563
18564 \backslash
18565 onlyslides{
18566 \backslash
18567 slides}
18568 \family default
18569
18570 \begin_inset Quotes erd
18571 \end_inset
18572
18573  will cause the output to contain only the 
18574 \family sans
18575 Slide
18576 \family default
18577 s and 
18578 \family sans
18579 Overlay
18580 \family default
18581 s.
18582  Correspondingly, the command 
18583 \begin_inset Quotes eld
18584 \end_inset
18585
18586
18587 \family typewriter
18588
18589 \backslash
18590 onlynotes{
18591 \backslash
18592 notes}
18593 \family default
18594
18595 \begin_inset Quotes erd
18596 \end_inset
18597
18598  prevents the output of anything but 
18599 \family sans
18600 Note
18601 \family default
18602 s.
18603  I'd advise placing both commands in the preamble and initially comment
18604  both out.
18605  You can then preview your entire presentation as you write.
18606  When you're done writing, you can then uncomment one of the two to select
18607  what you want to print.
18608  I like to uncomment 
18609 \begin_inset Quotes eld
18610 \end_inset
18611
18612
18613 \family typewriter
18614
18615 \backslash
18616 onlyslides{
18617 \backslash
18618 slides}
18619 \family default
18620
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624  , print to a file with 
18625 \begin_inset Quotes eld
18626 \end_inset
18627
18628
18629 \family typewriter
18630 -slides
18631 \family default
18632
18633 \begin_inset Quotes erd
18634 \end_inset
18635
18636  in its name, comment it back out, then uncomment 
18637 \begin_inset Quotes eld
18638 \end_inset
18639
18640
18641 \family typewriter
18642
18643 \backslash
18644 onlynotes{
18645 \backslash
18646 notes}
18647 \family default
18648
18649 \begin_inset Quotes erd
18650 \end_inset
18651
18652  and print to a 
18653 \begin_inset Quotes eld
18654 \end_inset
18655
18656
18657 \family typewriter
18658 *-notes.ps
18659 \family default
18660
18661 \begin_inset Quotes erd
18662 \end_inset
18663
18664  file.
18665  I can then send either file to a printer, loading transparencies or plain
18666  paper as appropriate.
18667 \end_layout
18668
18669 \begin_layout Standard
18670 You can also provide other arguments to the 
18671 \begin_inset Quotes eld
18672 \end_inset
18673
18674
18675 \family typewriter
18676
18677 \backslash
18678 onlyslides{}
18679 \family default
18680
18681 \begin_inset Quotes erd
18682 \end_inset
18683
18684  and 
18685 \begin_inset Quotes eld
18686 \end_inset
18687
18688
18689 \family typewriter
18690
18691 \backslash
18692 onlynotes{}
18693 \family default
18694
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698  commands.
18699  See a good \SpecialChar LaTeX
18700  book for details.
18701 \end_layout
18702
18703 \begin_layout Subsection
18704 The 
18705 \family sans
18706 slides
18707 \family default
18708  Class Template File
18709 \end_layout
18710
18711 \begin_layout Standard
18712 I have also provided a template file, 
18713 \begin_inset Quotes eld
18714 \end_inset
18715
18716
18717 \family typewriter
18718 slides.lyx
18719 \family default
18720
18721 \begin_inset Quotes erd
18722 \end_inset
18723
18724 , with the 
18725 \family sans
18726 slides
18727 \family default
18728  class.
18729  To use it, begin your new presentation with 
18730 \family sans
18731 File\SpecialChar menuseparator
18732 New
18733 \begin_inset space ~
18734 \end_inset
18735
18736 from
18737 \begin_inset space ~
18738 \end_inset
18739
18740 Template
18741 \family default
18742 .
18743  Your new \SpecialChar LyX
18744  presentation file will contain an example 
18745 \family sans
18746 Slide
18747 \family default
18748  â€“ 
18749 \family sans
18750 Overlay
18751 \family default
18752  â€“ 
18753 \family sans
18754 Note
18755 \family default
18756  triplet.
18757  The 
18758 \family sans
18759 Slide
18760 \family default
18761  and 
18762 \family sans
18763 Overlay
18764 \family default
18765  additionally contain an example of the use of 
18766 \family sans
18767 InvisibleText
18768 \family default
18769  and 
18770 \family sans
18771 VisibleText
18772 \family default
18773 .
18774  Lastly, the preamble will contain:
18775 \end_layout
18776
18777 \begin_layout LyX-Code
18778 % Uncomment to print out only slides and overlays
18779 \end_layout
18780
18781 \begin_layout LyX-Code
18782 %
18783 \end_layout
18784
18785 \begin_layout LyX-Code
18786 %
18787 \backslash
18788 onlyslides{
18789 \backslash
18790 slides}
18791 \begin_inset Newline newline
18792 \end_inset
18793
18794  
18795 \end_layout
18796
18797 \begin_layout LyX-Code
18798 % Uncomment to print out only notes
18799 \end_layout
18800
18801 \begin_layout LyX-Code
18802 %
18803 \end_layout
18804
18805 \begin_layout LyX-Code
18806 %
18807 \backslash
18808 onlynotes{
18809 \backslash
18810 notes}
18811 \end_layout
18812
18813 \begin_layout Standard
18814 One final thing: I created this class to support the \SpecialChar LaTeX2e
18815  
18816 \begin_inset Quotes eld
18817 \end_inset
18818
18819
18820 \noun on
18821 Sli\SpecialChar TeX
18822
18823 \noun default
18824  emulation
18825 \begin_inset Quotes erd
18826 \end_inset
18827
18828  class, one of the built-in \SpecialChar LaTeX2e
18829  classes.
18830  Neither I nor the rest of the \SpecialChar LyX
18831  Team endorse or oppose the use of this built-in
18832  slide class.
18833  It's here if you want it or need it.
18834  There exist other \SpecialChar LaTeX2e
18835  classes for creating presentations, such as the 
18836 \family sans
18837 Foils
18838 \family default
18839  class [see section
18840 \begin_inset space ~
18841 \end_inset
18842
18843
18844 \begin_inset CommandInset ref
18845 LatexCommand ref
18846 reference "sec:foiltex"
18847
18848 \end_inset
18849
18850 ] or the 
18851 \begin_inset Quotes eld
18852 \end_inset
18853
18854
18855 \family typewriter
18856 seminar
18857 \family default
18858
18859 \begin_inset Quotes erd
18860 \end_inset
18861
18862  package [present on some \SpecialChar TeX
18863  distributions].
18864  The latter is not yet supported under \SpecialChar LyX
18865 .
18866 \begin_inset Foot
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 Perhaps you can take on the task\SpecialChar ldots
18871
18872 \end_layout
18873
18874 \end_inset
18875
18876  I know nothing about these other classes.
18877  Try them out to see what sort of alternative they provide.
18878 \end_layout
18879
18880 \begin_layout Chapter
18881 \SpecialChar LyX
18882  Features needing Extra Software
18883 \end_layout
18884
18885 \begin_layout Section
18886 Checking \SpecialChar TeX
18887
18888 \end_layout
18889
18890 \begin_layout Standard
18891 by 
18892 \noun on
18893 Asger Alstrup
18894 \end_layout
18895
18896 \begin_layout Subsection
18897 Introduction
18898 \end_layout
18899
18900 \begin_layout Standard
18901 If you have the 
18902 \family typewriter
18903 chktex
18904 \family default
18905  program installed
18906 \begin_inset Foot
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910
18911 \family typewriter
18912 chktex
18913 \family default
18914  is not yet available when you are using the \SpecialChar LaTeX
18915  distribution MiK\SpecialChar TeX
18916 .
18917 \end_layout
18918
18919 \end_inset
18920
18921 , you'll find in the 
18922 \family sans
18923 Tools
18924 \family default
18925  menu the entry: 
18926 \family sans
18927 Check
18928 \begin_inset space ~
18929 \end_inset
18930
18931 TeX
18932 \family default
18933 .
18934  You can get 
18935 \family typewriter
18936 chktex
18937 \family default
18938  from CTAN,
18939 \begin_inset Newline newline
18940 \end_inset
18941
18942
18943 \begin_inset CommandInset href
18944 LatexCommand href
18945 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18946 literal "false"
18947
18948 \end_inset
18949
18950 .
18951 \end_layout
18952
18953 \begin_layout Standard
18954 The 
18955 \family sans
18956 Chk\SpecialChar TeX
18957
18958 \family default
18959  package is a program that was written by 
18960 \begin_inset Flex Noun
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 Jens T.
18965 \begin_inset space ~
18966 \end_inset
18967
18968 Berger Thielemann
18969 \end_layout
18970
18971 \end_inset
18972
18973  in frustration because some constructs in \SpecialChar LaTeX
18974  are sometimes non-intuitive,
18975  and easy to forget.
18976  The program runs over your \SpecialChar LaTeX
18977  file, checks the integrity of the file, and
18978  flags some common errors.
18979  In other technical words, it is 
18980 \family typewriter
18981 lint
18982 \family default
18983  for \SpecialChar LaTeX
18984 .
18985 \end_layout
18986
18987 \begin_layout Standard
18988 Well, what is a syntax checker doing in \SpecialChar LyX
18989  which is supposed to produce correct
18990  \SpecialChar LaTeX
18991  anyways? The answer is simple: Just as 
18992 \family typewriter
18993 Lint
18994 \family default
18995  not only checks the 
18996 \emph on
18997 syntax
18998 \emph default
18999  of C programs, but also does 
19000 \emph on
19001 semantic
19002 \emph default
19003  checks for type-errors, 
19004 \family sans
19005 Chk\SpecialChar TeX
19006
19007 \family default
19008  catches some common 
19009 \emph on
19010 typographic
19011 \emph default
19012  errors, in addition to the syntactical ones.
19013  Specifically, 
19014 \family sans
19015 Chk\SpecialChar TeX
19016
19017 \family default
19018  is capable of detecting several common errors, such as
19019 \end_layout
19020
19021 \begin_layout Itemize
19022 Ellipsis detection:
19023 \begin_inset Newline newline
19024 \end_inset
19025
19026 Use \SpecialChar ldots
19027  instead of ...
19028 \end_layout
19029
19030 \begin_layout Itemize
19031 No space in front of/after parenthesis:
19032 \begin_inset Newline newline
19033 \end_inset
19034
19035 ( wrong spacing )
19036 \end_layout
19037
19038 \begin_layout Itemize
19039 Enforcement of normal space after common abbreviations:
19040 \begin_inset Newline newline
19041 \end_inset
19042
19043 e.
19044 \begin_inset space \thinspace{}
19045 \end_inset
19046
19047 g.
19048 \begin_inset space \space{}
19049 \end_inset
19050
19051 is too wide spacing.
19052 \end_layout
19053
19054 \begin_layout Itemize
19055 Enforcement of end-of-sentence space when the last sentence ends with a
19056  capital letter:
19057 \begin_inset Newline newline
19058 \end_inset
19059
19060 This is a TEST.
19061  And this is wrong spacing.
19062 \end_layout
19063
19064 \begin_layout Itemize
19065 Space in front of labels and similar commands:
19066 \begin_inset Newline newline
19067 \end_inset
19068
19069 The label should stick right up to the text to avoid falling to a wrong
19070  page.
19071  
19072 \begin_inset CommandInset label
19073 LatexCommand label
19074 name "sec:chktex"
19075
19076 \end_inset
19077
19078  
19079 \begin_inset Foot
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 This footnote is in danger of falling off to a wrong page
19084 \end_layout
19085
19086 \end_inset
19087
19088  The label is separated too much.
19089 \end_layout
19090
19091 \begin_layout Itemize
19092 Space in front of references, instead of hard spaces:
19093 \begin_inset Newline newline
19094 \end_inset
19095
19096 If you have bad luck, the text will break right between the referenced text
19097  and reference number, and that's a pity.
19098  See section 
19099 \begin_inset CommandInset ref
19100 LatexCommand ref
19101 reference "sec:chktex"
19102
19103 \end_inset
19104
19105 .
19106 \end_layout
19107
19108 \begin_layout Itemize
19109 Use of 
19110 \begin_inset Quotes eld
19111 \end_inset
19112
19113 x
19114 \begin_inset Quotes erd
19115 \end_inset
19116
19117  instead of 
19118 \begin_inset Formula $\times$
19119 \end_inset
19120
19121  between numbers:
19122 \begin_inset Newline newline
19123 \end_inset
19124
19125 2x2 looks cheap compared to 
19126 \begin_inset Formula $2\times2$
19127 \end_inset
19128
19129 .
19130 \end_layout
19131
19132 \begin_layout Standard
19133 and more \SpecialChar ldots
19134  It is an invaluable tool when you are 
19135 \begin_inset Quotes eld
19136 \end_inset
19137
19138 finishing up
19139 \begin_inset Quotes erd
19140 \end_inset
19141
19142  your document before printing, and you should run it right after the obligatory
19143  spelling check, and before you go fine tuning the typesetting.
19144 \end_layout
19145
19146 \begin_layout Subsection
19147 How to use it
19148 \end_layout
19149
19150 \begin_layout Standard
19151 If you have the program installed, usage is as simple as choosing 
19152 \family sans
19153 Tools\SpecialChar menuseparator
19154 Check
19155 \begin_inset space ~
19156 \end_inset
19157
19158 TeX
19159 \family default
19160 .
19161  This will make \SpecialChar LyX
19162  generate a \SpecialChar LaTeX
19163  file of your document, start 
19164 \family sans
19165 Chk\SpecialChar TeX
19166
19167 \family default
19168  to check it, and then make \SpecialChar LyX
19169  insert 
19170 \begin_inset Quotes eld
19171 \end_inset
19172
19173 error boxes
19174 \begin_inset Quotes erd
19175 \end_inset
19176
19177  with the warnings from 
19178 \family sans
19179 Chk\SpecialChar TeX
19180
19181 \family default
19182 , if there were any.
19183  The warnings will be placed close to the point of the mistake, and you
19184  can quickly find them by using the 
19185 \family sans
19186 Navigate\SpecialChar menuseparator
19187 Error
19188 \family default
19189  menu item, or the shortcut key 
19190 \family sans
19191 C-g
19192 \family default
19193  from the default 
19194 \family typewriter
19195 cua
19196 \family default
19197  bind file.
19198  Open the error boxes by clicking on them with the mouse, or use the shortcut
19199  key 
19200 \family sans
19201 C-i
19202 \family default
19203  from 
19204 \family typewriter
19205 cua
19206 \family default
19207  bindings, or the corresponding 
19208 \family sans
19209 C-o
19210 \family default
19211  for the alternate 
19212 \family typewriter
19213 emacs
19214 \family default
19215  bind file.
19216  Read the warning and correct the mistake, if it is a mistake.
19217  If you have trouble understanding what the warning is about, you can safely
19218  ignore it.
19219  Remember that there is a hidden layer between the document on screen and
19220  the technical details in invoking 
19221 \family sans
19222 Chk\SpecialChar TeX
19223
19224 \family default
19225 , and this gap can make some warnings seem arcane or just plain silly.
19226 \end_layout
19227
19228 \begin_layout Standard
19229 This document is an excellent testing bed for the feature, and it should
19230  provide quite a few warnings for you to fiddle with.
19231  Since computers are only so smart, expect most of the warnings to be false
19232  alarms, though.
19233 \end_layout
19234
19235 \begin_layout Subsection
19236 How to fine tune it
19237 \end_layout
19238
19239 \begin_layout Standard
19240 Sometimes, you'll find that 
19241 \family sans
19242 Chk\SpecialChar TeX
19243
19244 \family default
19245  makes more noise than suits your mood.
19246  Then you can choose not to use it, wait until your mood changes, or try
19247  to customize 
19248 \family sans
19249 Chk\SpecialChar TeX
19250
19251 \family default
19252  to get better along with you.
19253 \end_layout
19254
19255 \begin_layout Standard
19256 Although 
19257 \family sans
19258 Chk\SpecialChar TeX
19259
19260 \family default
19261  
19262 \emph on
19263 is
19264 \emph default
19265  very configurable and extensible, you should not expect to solve all problems
19266  with 
19267 \family sans
19268 Chk\SpecialChar TeX
19269
19270 \family default
19271  in \SpecialChar LyX
19272  this way.
19273  Since \SpecialChar LyX
19274  has to generate a somewhat special \SpecialChar LaTeX
19275  file to be able to match the
19276  line numbers from the 
19277 \family sans
19278 Chk\SpecialChar TeX
19279
19280 \family default
19281  output
19282 \begin_inset Foot
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 You can inspect the specific output from 
19287 \family sans
19288 chktex
19289 \family default
19290  by using 
19291 \family sans
19292 Document\SpecialChar menuseparator
19293 \SpecialChar LaTeX
19294
19295 \begin_inset space ~
19296 \end_inset
19297
19298 Log
19299 \family default
19300  right after a 
19301 \family sans
19302 chktex
19303 \family default
19304  run.
19305 \end_layout
19306
19307 \end_inset
19308
19309  to the internal document structure, some of the warnings will not appear
19310  correctly.
19311  There are two things you can do about this:
19312 \end_layout
19313
19314 \begin_layout Itemize
19315 Fine tune the 
19316 \family sans
19317 Chk\SpecialChar TeX
19318
19319 \family default
19320  invocation command line in 
19321 \begin_inset Flex Noun
19322 status collapsed
19323
19324 \begin_layout Plain Layout
19325 Tools\SpecialChar menuseparator
19326 Preferences\SpecialChar menuseparator
19327 Output\SpecialChar menuseparator
19328 LaTeX\SpecialChar menuseparator
19329 CheckTeX command
19330 \end_layout
19331
19332 \end_inset
19333
19334 , or the global 
19335 \family sans
19336 Chk\SpecialChar TeX
19337
19338 \family default
19339  installation configuration file (usually with the file 
19340 \family typewriter
19341 chktexrc
19342 \family default
19343 ).
19344  See below to learn what warnings can be enabled and disabled on the command
19345  line.
19346 \end_layout
19347
19348 \begin_layout Itemize
19349 Export your document as a raw \SpecialChar LaTeX
19350  file using 
19351 \family sans
19352 File\SpecialChar menuseparator
19353 Export\SpecialChar menuseparator
19354 \SpecialChar LaTeX
19355
19356 \family default
19357  and run 
19358 \family typewriter
19359 chktex
19360 \family default
19361  manually on that.
19362  Invoked in this way, it can be a hassle to find the corresponding place
19363  in the document inside \SpecialChar LyX
19364 , but with a little patience, you should be able
19365  to do it.
19366 \end_layout
19367
19368 \begin_layout Standard
19369 Here follows the warning messages that can be enabled and disabled in 
19370 \family sans
19371 Preferences
19372 \family default
19373 .
19374  Use 
19375 \family typewriter
19376 -n#
19377 \family default
19378  to disable a warning, and 
19379 \family typewriter
19380 -w#
19381 \family default
19382  to enable a warning.
19383  The emphasized entries are disabled by default, because the default is
19384  "
19385 \family typewriter
19386 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19387 \family default
19388 ".
19389 \end_layout
19390
19391 \begin_layout Standard
19392 Notice that you should only use the options that enable and disable warnings,
19393  because \SpecialChar LyX
19394  relies on some of the other command line parameters to be set
19395  in a specific way to have a chance to communicate with 
19396 \family typewriter
19397 chktex
19398 \family default
19399 .
19400 \end_layout
19401
19402 \begin_layout Enumerate
19403
19404 \size small
19405 \emph on
19406 Command terminated with space.
19407 \end_layout
19408
19409 \begin_layout Enumerate
19410
19411 \size small
19412 Non-breaking space (
19413 \begin_inset Quotes eld
19414 \end_inset
19415
19416
19417 \family typewriter
19418 ~
19419 \family default
19420
19421 \begin_inset Quotes erd
19422 \end_inset
19423
19424 ) should have been used.
19425 \end_layout
19426
19427 \begin_layout Enumerate
19428
19429 \size small
19430 \emph on
19431 You should enclose the previous parenthesis with 
19432 \begin_inset Quotes eld
19433 \end_inset
19434
19435
19436 \family typewriter
19437 {}
19438 \family default
19439
19440 \begin_inset Quotes erd
19441 \end_inset
19442
19443 .
19444 \end_layout
19445
19446 \begin_layout Enumerate
19447
19448 \size small
19449 Italic correction (
19450 \begin_inset Quotes eld
19451 \end_inset
19452
19453
19454 \family typewriter
19455
19456 \backslash
19457 /
19458 \family default
19459
19460 \begin_inset Quotes erd
19461 \end_inset
19462
19463 ) found in non-italic buffer.
19464 \end_layout
19465
19466 \begin_layout Enumerate
19467
19468 \size small
19469 Italic correction (
19470 \begin_inset Quotes eld
19471 \end_inset
19472
19473
19474 \family typewriter
19475
19476 \backslash
19477 /
19478 \family default
19479
19480 \begin_inset Quotes erd
19481 \end_inset
19482
19483 ) found more than once.
19484 \end_layout
19485
19486 \begin_layout Enumerate
19487
19488 \size small
19489 \emph on
19490 No italic correction (
19491 \begin_inset Quotes eld
19492 \end_inset
19493
19494
19495 \family typewriter
19496
19497 \backslash
19498 /
19499 \family default
19500
19501 \begin_inset Quotes erd
19502 \end_inset
19503
19504 ) found.
19505 \end_layout
19506
19507 \begin_layout Enumerate
19508
19509 \size small
19510 Accent command 
19511 \begin_inset Quotes eld
19512 \end_inset
19513
19514
19515 \family typewriter
19516 cmd
19517 \family default
19518
19519 \begin_inset Quotes erd
19520 \end_inset
19521
19522  needs use of 
19523 \begin_inset Quotes eld
19524 \end_inset
19525
19526
19527 \family typewriter
19528 cmd
19529 \family default
19530
19531 \begin_inset Quotes erd
19532 \end_inset
19533
19534 .
19535 \end_layout
19536
19537 \begin_layout Enumerate
19538
19539 \size small
19540 Wrong length of dash may have been used.
19541 \end_layout
19542
19543 \begin_layout Enumerate
19544
19545 \size small
19546 \emph on
19547 \begin_inset Quotes eld
19548 \end_inset
19549
19550
19551 \family typewriter
19552 %s
19553 \family default
19554
19555 \begin_inset Quotes erd
19556 \end_inset
19557
19558  expected, found 
19559 \begin_inset Quotes eld
19560 \end_inset
19561
19562
19563 \family typewriter
19564 %s
19565 \family default
19566
19567 \begin_inset Quotes erd
19568 \end_inset
19569
19570 .
19571 \end_layout
19572
19573 \begin_layout Enumerate
19574
19575 \size small
19576 Solo 
19577 \begin_inset Quotes eld
19578 \end_inset
19579
19580
19581 \family typewriter
19582 %s
19583 \family default
19584
19585 \begin_inset Quotes erd
19586 \end_inset
19587
19588  found.
19589 \end_layout
19590
19591 \begin_layout Enumerate
19592
19593 \size small
19594 You should use 
19595 \begin_inset Quotes eld
19596 \end_inset
19597
19598
19599 \family typewriter
19600 %s
19601 \family default
19602
19603 \begin_inset Quotes erd
19604 \end_inset
19605
19606  to achieve an ellipsis.
19607 \end_layout
19608
19609 \begin_layout Enumerate
19610
19611 \size small
19612 Inter-word spacing (
19613 \begin_inset Quotes eld
19614 \end_inset
19615
19616
19617 \family typewriter
19618
19619 \backslash
19620
19621 \family default
19622  
19623 \begin_inset Quotes eld
19624 \end_inset
19625
19626 ) should perhaps be used.
19627 \end_layout
19628
19629 \begin_layout Enumerate
19630
19631 \size small
19632 Inter-sentence spacing (
19633 \begin_inset Quotes eld
19634 \end_inset
19635
19636
19637 \family typewriter
19638
19639 \backslash
19640 @
19641 \family default
19642
19643 \begin_inset Quotes erd
19644 \end_inset
19645
19646 ) should perhaps be used.
19647 \end_layout
19648
19649 \begin_layout Enumerate
19650
19651 \size small
19652 Could not find argument for command.
19653 \end_layout
19654
19655 \begin_layout Enumerate
19656
19657 \size small
19658 No match found for 
19659 \begin_inset Quotes eld
19660 \end_inset
19661
19662
19663 \family typewriter
19664 %s
19665 \family default
19666
19667 \begin_inset Quotes erd
19668 \end_inset
19669
19670 .
19671 \end_layout
19672
19673 \begin_layout Enumerate
19674
19675 \size small
19676 Math mode still on at end of \SpecialChar LaTeX
19677  file.
19678 \end_layout
19679
19680 \begin_layout Enumerate
19681
19682 \size small
19683 Number of 
19684 \begin_inset Quotes eld
19685 \end_inset
19686
19687
19688 \family typewriter
19689 char
19690 \family default
19691
19692 \begin_inset Quotes erd
19693 \end_inset
19694
19695  doesn't match the number of 
19696 \begin_inset Quotes eld
19697 \end_inset
19698
19699
19700 \family typewriter
19701 char
19702 \family default
19703
19704 \begin_inset Quotes erd
19705 \end_inset
19706
19707 .
19708 \end_layout
19709
19710 \begin_layout Enumerate
19711
19712 \size small
19713 You should use either 
19714 \family typewriter
19715
19716 \begin_inset Quotes eld
19717 \end_inset
19718
19719
19720 \family default
19721  or 
19722 \family typewriter
19723
19724 \begin_inset Quotes erd
19725 \end_inset
19726
19727
19728 \family default
19729  as an alternative to 
19730 \begin_inset Quotes eld
19731 \end_inset
19732
19733
19734 \family typewriter
19735 "
19736 \family default
19737
19738 \begin_inset Quotes erd
19739 \end_inset
19740
19741 .
19742 \end_layout
19743
19744 \begin_layout Enumerate
19745
19746 \size small
19747 You should use "
19748 \family typewriter
19749 '
19750 \family default
19751 " (ASCII 39) instead of "
19752 \family typewriter
19753 ´
19754 \family default
19755 " (ASCII 180).
19756 \end_layout
19757
19758 \begin_layout Enumerate
19759
19760 \size small
19761 User-specified pattern found.
19762 \end_layout
19763
19764 \begin_layout Enumerate
19765
19766 \size small
19767 This command might not be intended.
19768 \end_layout
19769
19770 \begin_layout Enumerate
19771
19772 \size small
19773 \emph on
19774 Comment displayed.
19775 \end_layout
19776
19777 \begin_layout Enumerate
19778
19779 \size small
19780 Either 
19781 \family typewriter
19782 ''
19783 \backslash
19784 ,'
19785 \family default
19786  or 
19787 \family typewriter
19788 '
19789 \backslash
19790 ,''
19791 \family default
19792  will look better.
19793 \end_layout
19794
19795 \begin_layout Enumerate
19796
19797 \size small
19798 Delete this space to maintain correct page references.
19799 \end_layout
19800
19801 \begin_layout Enumerate
19802
19803 \size small
19804 \emph on
19805 You might wish to put this between a pair of 
19806 \begin_inset Quotes eld
19807 \end_inset
19808
19809
19810 \family typewriter
19811 {}
19812 \family default
19813
19814 \begin_inset Quotes erd
19815 \end_inset
19816
19817 .
19818 \end_layout
19819
19820 \begin_layout Enumerate
19821
19822 \size small
19823 You ought to remove spaces in front of punctuation.
19824 \end_layout
19825
19826 \begin_layout Enumerate
19827
19828 \size small
19829 Could not execute \SpecialChar LaTeX
19830  command.
19831 \end_layout
19832
19833 \begin_layout Enumerate
19834
19835 \size small
19836 Don't use 
19837 \family typewriter
19838
19839 \backslash
19840 /
19841 \family default
19842  in front of small punctuation.
19843 \end_layout
19844
19845 \begin_layout Enumerate
19846
19847 \family typewriter
19848 \size small
19849 $
19850 \backslash
19851 times$
19852 \family default
19853  may look prettier here.
19854 \end_layout
19855
19856 \begin_layout Enumerate
19857
19858 \size small
19859 \emph on
19860 Multiple spaces detected in output.
19861 \end_layout
19862
19863 \begin_layout Enumerate
19864
19865 \size small
19866 This text may be ignored.
19867 \end_layout
19868
19869 \begin_layout Enumerate
19870
19871 \size small
19872 Use 
19873 \family typewriter
19874
19875 \begin_inset Quotes eld
19876 \end_inset
19877
19878
19879 \family default
19880  to begin quotation, not 
19881 \family typewriter
19882 '
19883 \family default
19884 .
19885 \end_layout
19886
19887 \begin_layout Enumerate
19888
19889 \size small
19890 Use 
19891 \family typewriter
19892 '
19893 \family default
19894  to end quotation, not 
19895 \family typewriter
19896
19897 \begin_inset Quotes eld
19898 \end_inset
19899
19900
19901 \family default
19902 .
19903 \end_layout
19904
19905 \begin_layout Enumerate
19906
19907 \size small
19908 Don't mix quotes.
19909 \end_layout
19910
19911 \begin_layout Enumerate
19912
19913 \size small
19914 You should perhaps use 
19915 \begin_inset Quotes eld
19916 \end_inset
19917
19918
19919 \family typewriter
19920 cmd
19921 \family default
19922
19923 \begin_inset Quotes erd
19924 \end_inset
19925
19926  instead.
19927 \end_layout
19928
19929 \begin_layout Enumerate
19930
19931 \size small
19932 You should put a space in front of/after parenthesis.
19933 \end_layout
19934
19935 \begin_layout Enumerate
19936
19937 \size small
19938 You should avoid spaces in front of/after parenthesis.
19939 \end_layout
19940
19941 \begin_layout Enumerate
19942
19943 \size small
19944 \emph on
19945 You should not use punctuation in front of/after quotes.
19946 \end_layout
19947
19948 \begin_layout Enumerate
19949
19950 \size small
19951 Double space found.
19952 \end_layout
19953
19954 \begin_layout Enumerate
19955
19956 \size small
19957 You should put punctuation outside inner/inside display math mode.
19958 \end_layout
19959
19960 \begin_layout Enumerate
19961
19962 \size small
19963 You ought to not use primitive \SpecialChar TeX
19964  in \SpecialChar LaTeX
19965  code.
19966 \end_layout
19967
19968 \begin_layout Enumerate
19969
19970 \size small
19971 You should remove spaces in front of 
19972 \begin_inset Quotes eld
19973 \end_inset
19974
19975
19976 \family typewriter
19977 %s
19978 \family default
19979
19980 \begin_inset Quotes erd
19981 \end_inset
19982
19983
19984 \end_layout
19985
19986 \begin_layout Enumerate
19987
19988 \size small
19989 \begin_inset Quotes eld
19990 \end_inset
19991
19992
19993 \family typewriter
19994 %s
19995 \family default
19996
19997 \begin_inset Quotes erd
19998 \end_inset
19999
20000  is normally not followed by 
20001 \begin_inset Quotes eld
20002 \end_inset
20003
20004
20005 \family typewriter
20006 %c
20007 \family default
20008
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012 .
20013 \end_layout
20014
20015 \begin_layout Standard
20016 In later versions of \SpecialChar LyX
20017 , we hope to provide a more complete interface to this
20018  tool (and it's smaller cousin 
20019 \family typewriter
20020 lacheck
20021 \family default
20022 ) to exploit the full power of it.
20023  But it's not exactly useless as it is now: go try it on one of your existing
20024  documents of a certain length and be surprised.
20025 \end_layout
20026
20027 \begin_layout Section
20028 Version Control in \SpecialChar LyX
20029
20030 \end_layout
20031
20032 \begin_layout Standard
20033 by
20034 \noun on
20035  Lars Gullik Bjønnes 
20036 \noun default
20037 and 
20038 \noun on
20039 Pavel Sanda
20040 \end_layout
20041
20042 \begin_layout Subsection
20043 Introduction
20044 \end_layout
20045
20046 \begin_layout Standard
20047 \SpecialChar LyX
20048  supports some of the most basic RCS/CVS/SVN/GIT commands.
20049  If you need something a bit more sophisticated you will have to do that
20050  manually in a terminal.
20051 \end_layout
20052
20053 \begin_layout Standard
20054 Also note that CVS support is not as good as subversion support, so we advise
20055  using SVN instead.
20056  A good place to start learning Subversion is the SVN Book
20057 \begin_inset Foot
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 \begin_inset CommandInset href
20062 LatexCommand href
20063 target "http://svnbook.red-bean.com/"
20064 literal "false"
20065
20066 \end_inset
20067
20068
20069 \end_layout
20070
20071 \end_inset
20072
20073 .
20074  In the case of RCS you should read 
20075 \begin_inset Quotes eld
20076 \end_inset
20077
20078 rcsintro
20079 \begin_inset Quotes erd
20080 \end_inset
20081
20082  (a man file, read it with 
20083 \family typewriter
20084 man rcsintro
20085 \family default
20086 ).
20087  This file describes all the basic features of RCS.
20088  You should especially notice the comment about a RCS directory, and the
20089  notion of a master RCS file (the file ending in 
20090 \family typewriter
20091 ,v
20092 \family default
20093 ).
20094 \end_layout
20095
20096 \begin_layout Standard
20097 Before you begin to use the version control features in \SpecialChar LyX
20098 , you should be
20099  familiar with RCS/CVS/SVN/GIT usage.
20100  The implementation in \SpecialChar LyX
20101  assumes a recent version of the GNU RCS or CVS/SVN
20102  package â€” no guarantees are made for older versions.
20103  Most of the log messages are not currently displayed after operations â€”
20104  you can check them in the Messages pane if you are unsure.
20105  Regular users of version control will appreciate the VC toolbar, which
20106  can be enabled via 
20107 \family sans
20108 View\SpecialChar menuseparator
20109 Toolbars\SpecialChar menuseparator
20110 Version
20111 \begin_inset space ~
20112 \end_inset
20113
20114 Control
20115 \family default
20116 .
20117 \end_layout
20118
20119 \begin_layout Standard
20120 For introducing your own external commands consult 
20121 \begin_inset Flex Code
20122 status collapsed
20123
20124 \begin_layout Plain Layout
20125 vc-command
20126 \end_layout
20127
20128 \end_inset
20129
20130  in the manual 
20131 \emph on
20132 \SpecialChar LyX
20133  Functions
20134 \emph default
20135 .
20136 \end_layout
20137
20138 \begin_layout Standard
20139 It is strongly recommended to store documents in uncompressed format if
20140  using version control (uncheck 
20141 \family sans
20142 Document\SpecialChar menuseparator
20143 Compressed
20144 \family default
20145  if it is checked): Uncompressed LyX documents are text files and therefore
20146  for merging two different versions by version control systems.
20147  Compressed LyX documents are binary files, which cannot be merged by version
20148  control systems.
20149 \end_layout
20150
20151 \begin_layout Subsection
20152 RCS commands in \SpecialChar LyX
20153
20154 \end_layout
20155
20156 \begin_layout Standard
20157 The following sections describe the RCS commands supported by \SpecialChar LyX
20158 .
20159  You can find them in the 
20160 \family sans
20161 File\SpecialChar menuseparator
20162 Version
20163 \begin_inset space ~
20164 \end_inset
20165
20166 Control
20167 \family default
20168  submenu.
20169  \SpecialChar LyX
20170  was tested against RCS 5.7/5.8.
20171 \end_layout
20172
20173 \begin_layout Subsubsection
20174
20175 \family sans
20176 Register
20177 \end_layout
20178
20179 \begin_layout Standard
20180 If your document is not under revision control, this is the only item shown
20181  in the menu.
20182  And if it is under revision control, the 
20183 \family sans
20184 Register
20185 \family default
20186  item is not visible.
20187  
20188 \end_layout
20189
20190 \begin_layout Standard
20191 This command registers your document with RCS (unless you are under the
20192  directory managed by CVS)\SpecialChar endofsentence
20193  You are asked interactively to supply an initial
20194  description of the document.
20195  The document is now set in Read-Only mode and you have to 
20196 \family sans
20197 Check
20198 \begin_inset space ~
20199 \end_inset
20200
20201 Out
20202 \begin_inset space ~
20203 \end_inset
20204
20205 For
20206 \begin_inset space ~
20207 \end_inset
20208
20209 Edit
20210 \family default
20211 , before making any changes to it.
20212  A document under revision control has a 
20213 \begin_inset Quotes eld
20214 \end_inset
20215
20216 [RCS:<version> <locker>]
20217 \begin_inset Quotes erd
20218 \end_inset
20219
20220  item tagged to the filename in the minibuffer.
20221 \end_layout
20222
20223 \begin_layout Standard
20224 RCS command that is run:
20225 \end_layout
20226
20227 \begin_layout LyX-Code
20228
20229 \family typewriter
20230 ci -q -u -i -t-"<initial description>" <file-name>
20231 \end_layout
20232
20233 \begin_layout Standard
20234 Read 
20235 \family typewriter
20236 man ci
20237 \family default
20238  to understand the switches.
20239  
20240 \end_layout
20241
20242 \begin_layout Subsubsection
20243
20244 \family sans
20245 Check In Changes
20246 \end_layout
20247
20248 \begin_layout Standard
20249 When you are finished editing a file, you check in your changes.
20250  When you do this, you are asked for a description of the changes.
20251  This is stored in the history log.
20252  The version number is bumped, your changes are applied to the master RCS
20253  file, the document is unlocked and set to Read-Only mode.
20254 \end_layout
20255
20256 \begin_layout Itemize
20257 RCS command: 
20258 \family typewriter
20259 ci -q -u -m"<description>" <file-name>
20260 \end_layout
20261
20262 \begin_layout Subsubsection
20263
20264 \family sans
20265 Check Out For Edit
20266 \end_layout
20267
20268 \begin_layout Standard
20269 By doing this you lock the document so that only you can edit it.
20270  This will also make the document Read-Write only for you.
20271  You will usually continue editing for a while and when you are finished
20272  you check in your changes.
20273  The status line is changed to reflect that you have locked the file.
20274 \end_layout
20275
20276 \begin_layout Itemize
20277 RCS command: 
20278 \family typewriter
20279 co -q -l <file-name>
20280 \end_layout
20281
20282 \begin_layout Subsubsection
20283
20284 \family sans
20285 Revert To Repository Version
20286 \end_layout
20287
20288 \begin_layout Standard
20289 This will discard all changes made to the document since the last check
20290  in.
20291  You get a warning before changes are discarded.
20292 \end_layout
20293
20294 \begin_layout Itemize
20295 RCS command: 
20296 \family typewriter
20297 co -f -u<version> <file-name>
20298 \end_layout
20299
20300 \begin_layout Subsubsection
20301
20302 \family sans
20303 Copy
20304 \end_layout
20305
20306 \begin_layout Standard
20307 This will create a copy of the current document.
20308  Since RCS does not support copy operations natively, the version history
20309  is not preserved, and the copy is added as a new file.
20310  It requires a clean document without any changes since the last checkin.
20311  You are asked for a file name and a description of the copy operation.
20312  After that the copy is created, both locally and in the repository.
20313  If the parent directories of the copied and original document differ, all
20314  relative paths of included files of the copy are adjusted (like in 
20315 \family sans
20316 File\SpecialChar menuseparator
20317 Save As
20318 \family default
20319 \SpecialChar ldots
20320 ).
20321  Finally, the copy is loaded instead of the original document.
20322 \end_layout
20323
20324 \begin_layout Labeling
20325 \labelwidthstring 00.00.0000
20326 RCS
20327 \begin_inset space ~
20328 \end_inset
20329
20330 commands: 
20331 \begin_inset space ~
20332 \end_inset
20333
20334
20335 \begin_inset Newline newline
20336 \end_inset
20337
20338 Copy 
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343
20344 \family typewriter
20345 \begin_inset Quotes qld
20346 \end_inset
20347
20348 <file-name>
20349 \begin_inset Quotes qld
20350 \end_inset
20351
20352
20353 \end_layout
20354
20355 \end_inset
20356
20357  to 
20358 \begin_inset Flex Code
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362
20363 \family typewriter
20364 \begin_inset Quotes qld
20365 \end_inset
20366
20367 <new-file-name>
20368 \begin_inset Quotes qld
20369 \end_inset
20370
20371
20372 \end_layout
20373
20374 \end_inset
20375
20376
20377 \begin_inset Newline newline
20378 \end_inset
20379
20380
20381 \begin_inset Flex Code
20382 status collapsed
20383
20384 \begin_layout Plain Layout
20385 ci -q -u 
20386 \family typewriter
20387 -i 
20388 \begin_inset Quotes qld
20389 \end_inset
20390
20391 <new-file-name>
20392 \begin_inset Quotes qld
20393 \end_inset
20394
20395
20396 \end_layout
20397
20398 \end_inset
20399
20400
20401 \end_layout
20402
20403 \begin_layout Subsubsection
20404
20405 \family sans
20406 Undo Last Checkin
20407 \end_layout
20408
20409 \begin_layout Standard
20410 This makes as if the last check in never happened.
20411  No changes are made to the document loaded into \SpecialChar LyX
20412 , but the last version
20413  is removed from the master RCS file.
20414 \end_layout
20415
20416 \begin_layout Itemize
20417 RCS command: 
20418 \family typewriter
20419 rcs -o<version> <file-name>
20420 \end_layout
20421
20422 \begin_layout Subsubsection
20423
20424 \family sans
20425 Show History
20426 \end_layout
20427
20428 \begin_layout Standard
20429 This shows the complete history of the RCS document.
20430  The output of 
20431 \family typewriter
20432 rlog <file-name>
20433 \family default
20434  is shown in a browser.
20435  See 
20436 \family typewriter
20437 man rlog
20438 \family default
20439  for more info.
20440 \end_layout
20441
20442 \begin_layout Subsubsection
20443 Revision info
20444 \end_layout
20445
20446 \begin_layout Standard
20447 \SpecialChar LyX
20448  supports RCS version number, author name, date and time of last commit.
20449  All those are extracted from 
20450 \family typewriter
20451 rlog -r <file-name>
20452 \family default
20453 .
20454  See 
20455 \begin_inset CommandInset ref
20456 LatexCommand ref
20457 reference "subsec:VCS-Revision-Information"
20458
20459 \end_inset
20460
20461  for details.
20462 \end_layout
20463
20464 \begin_layout Subsection
20465 CVS commands in \SpecialChar LyX
20466
20467 \end_layout
20468
20469 \begin_layout Standard
20470 A subset of CVS operations is supported by \SpecialChar LyX
20471 .
20472  You can find the commands in the 
20473 \family sans
20474 File\SpecialChar menuseparator
20475 Version
20476 \begin_inset space ~
20477 \end_inset
20478
20479 Control
20480 \family default
20481  submenu.
20482  The version control system SVN is more powerful, so please use it instead
20483  of CVS if possible.
20484 \end_layout
20485
20486 \begin_layout Subsubsection
20487
20488 \family sans
20489 General CVS usage
20490 \end_layout
20491
20492 \begin_layout Standard
20493 If you start from scratch with CVS you have to create your repository and
20494  checkout the working copy with external tools.
20495  If you're using a client-server setup you may need to login before doing
20496  the first repository checkout.
20497 \end_layout
20498
20499 \begin_layout Standard
20500 If your documents are under revision control and others are using the same
20501  repository problems arise when different changes to the same document at
20502  the same location happen.
20503  Standard CVS repositories don't operate with a file locking mechanism.
20504  This may be surprising, but conflicts only occur if people disagree on
20505  the proper content of the same part of a document.
20506  So, if co-workers are used to communicate regularly, these conflicts occur
20507  rarely.
20508  If they don't communicate they have a fundamental problem anyway.
20509  Nevertheless some people like to work with so called 
20510 \begin_inset Quotes eld
20511 \end_inset
20512
20513 reserved checkouts
20514 \begin_inset Quotes erd
20515 \end_inset
20516
20517 .
20518  If they do so the working copy of all files is readonly when checked out
20519  first and the user starts editing after using a special command to make
20520  the working copy writable.
20521  When the changes are checked in the working copy returns to readonly state.
20522  With \SpecialChar LyX
20523  one has to edit the 
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 .cvsrc
20529 \end_layout
20530
20531 \end_inset
20532
20533  file and add the line 
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 cvs -r
20539 \end_layout
20540
20541 \end_inset
20542
20543  to work with reserved checkouts.
20544  The benefit is the possibility to see who is using a writable copy of some
20545  document.
20546  It's not guaranteed only one user makes a copy writable.
20547 \end_layout
20548
20549 \begin_layout Standard
20550 \SpecialChar LyX
20551  tries to guess if you're using reserved or non-reserved checkouts.
20552  If your working copy is readonly or it is writable and an additional copy
20553  of your document exists in the CVS/Base sub-directory a reserved otherwise
20554  a non-reserved checkout is assumed.
20555  When a reserved checkout is detected you have to use 
20556 \begin_inset Flex Noun
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 Check Out
20561 \end_layout
20562
20563 \end_inset
20564
20565  to make your working copy writable if it's readonly.
20566  After doing so the 
20567 \begin_inset Flex Noun
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571 Check In
20572 \end_layout
20573
20574 \end_inset
20575
20576  operation is possible and that makes your working copy readonly again after
20577  transferring your changes to the repository.
20578 \end_layout
20579
20580 \begin_layout Standard
20581 More information about CVS can be found here 
20582 \begin_inset Flex URL
20583 status collapsed
20584
20585 \begin_layout Plain Layout
20586
20587 http://www.nongnu.org/cvs
20588 \end_layout
20589
20590 \end_inset
20591
20592  and here 
20593 \begin_inset Flex URL
20594 status collapsed
20595
20596 \begin_layout Plain Layout
20597
20598 http://ximbiot.com/cvs
20599 \end_layout
20600
20601 \end_inset
20602
20603 .
20604 \end_layout
20605
20606 \begin_layout Standard
20607 Read 
20608 \family typewriter
20609 man cvs
20610 \family default
20611  to understand the sub-commands and the switches mentioned below.
20612 \end_layout
20613
20614 \begin_layout Subsubsection
20615
20616 \family sans
20617 Register
20618 \end_layout
20619
20620 \begin_layout Standard
20621 If your document is not under revision control, this is the only item shown
20622  in the menu.
20623  And if it is under revision control, the 
20624 \family sans
20625 Register
20626 \family default
20627  item is not visible.
20628  
20629 \end_layout
20630
20631 \begin_layout Standard
20632 This command registers in CVS your document 
20633 \begin_inset Flex Strong
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637
20638 \emph on
20639 only
20640 \end_layout
20641
20642 \end_inset
20643
20644  in the case you have already the documents directory under CVS control
20645  (in particular 
20646 \family typewriter
20647 CVS/Entries
20648 \family default
20649  file exists).
20650  This means you have to create or checkout the archive by yourself using
20651  external tools.
20652  (In case you forget that step \SpecialChar LyX
20653  registers the document with RCS.)
20654 \end_layout
20655
20656 \begin_layout Standard
20657 Then you are asked interactively to supply an initial description of the
20658  document.
20659  Don't forget that registered file is not yet checked in.
20660 \end_layout
20661
20662 \begin_layout Standard
20663 CVS command that is run: 
20664 \family typewriter
20665 cvs -q add -m"<entered message>" "<file-name>"
20666 \end_layout
20667
20668 \begin_layout Standard
20669 The term 
20670 \family typewriter
20671 "<file-name>"
20672 \family default
20673  above and for all other CVS commands is an abbreviation for 
20674 \begin_inset Quotes eld
20675 \end_inset
20676
20677 change the current working directory to file location and use the file name
20678  without path component as argument
20679 \begin_inset Quotes erd
20680 \end_inset
20681
20682 .
20683 \end_layout
20684
20685 \begin_layout Subsubsection
20686
20687 \family sans
20688 Check In Changes
20689 \end_layout
20690
20691 \begin_layout Standard
20692 When you are finished editing a file, you commit your changes.
20693  When you do this and you had changed the document, you are asked for a
20694  description of the changes.
20695  After that changes are written to the repository.
20696  In case you didn't change the document and a reserved checkout is detected
20697  the reservation made on 
20698 \begin_inset Flex Noun
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 Check Out
20703 \end_layout
20704
20705 \end_inset
20706
20707  is undone.
20708 \end_layout
20709
20710 \begin_layout Labeling
20711 \labelwidthstring 00.00.0000
20712 CVS
20713 \begin_inset space ~
20714 \end_inset
20715
20716 command: 
20717 \begin_inset space ~
20718 \end_inset
20719
20720
20721 \begin_inset Newline newline
20722 \end_inset
20723
20724
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 cvs 
20730 \family typewriter
20731 -q commit -m"<description>" "<file-name>"
20732 \end_layout
20733
20734 \end_inset
20735
20736  or
20737 \begin_inset Newline newline
20738 \end_inset
20739
20740
20741 \begin_inset Flex Code
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 cvs -q unedit 
20746 \family typewriter
20747 "<file-name>"
20748 \end_layout
20749
20750 \end_inset
20751
20752
20753 \end_layout
20754
20755 \begin_layout Subsubsection
20756
20757 \family sans
20758 Check Out Changes
20759 \end_layout
20760
20761 \begin_layout Standard
20762 When you are sharing a repository with others, you may have to incorporate
20763  their changes into your working copy.
20764 \end_layout
20765
20766 \begin_layout Standard
20767 CVS command: 
20768 \family typewriter
20769 cvs -q update "<file-name>"
20770 \end_layout
20771
20772 \begin_layout Standard
20773 If a readonly checkout is detected the working copy is made writable and
20774  reserved.
20775 \end_layout
20776
20777 \begin_layout Standard
20778 CVS command: 
20779 \family typewriter
20780 cvs -q edit "<file-name>"
20781 \end_layout
20782
20783 \begin_layout Subsubsection
20784
20785 \family sans
20786 Revert To Repository Version
20787 \end_layout
20788
20789 \begin_layout Standard
20790 This will discard all changes made to the document since the last check
20791  in.
20792  You get a warning before changes are discarded.
20793  Firstly the file is deleted, secondly CVS update command is run.
20794 \end_layout
20795
20796 \begin_layout Standard
20797 CVS command: 
20798 \family typewriter
20799 cvs -q update "<file-name>"
20800 \end_layout
20801
20802 \begin_layout Standard
20803 If a reserved checkout is detected and the working copy has no changes only
20804  the reservation is undone.
20805 \end_layout
20806
20807 \begin_layout Standard
20808 CVS command: 
20809 \family typewriter
20810 cvs -q unedit "<file-name>"
20811 \end_layout
20812
20813 \begin_layout Subsubsection
20814
20815 \family sans
20816 Copy
20817 \end_layout
20818
20819 \begin_layout Standard
20820 This will create a copy of the current document.
20821  Since CVS does not support copy operations natively, the version history
20822  is not preserved, and the copy is added as a new file.
20823  It requires a clean document without any changes since the last checkin.
20824  You are asked for a file name and a description of the copy operation.
20825  After that the copy is created, both locally and in the repository.
20826  If the parent directories of the copied and original document differ, all
20827  relative paths of included files of the copy are adjusted (like in 
20828 \family sans
20829 File\SpecialChar menuseparator
20830 Save As
20831 \family default
20832 \SpecialChar ldots
20833 ).
20834  Finally, the copy is loaded instead of the original document.
20835 \end_layout
20836
20837 \begin_layout Labeling
20838 \labelwidthstring 00.00.0000
20839 CVS
20840 \begin_inset space ~
20841 \end_inset
20842
20843 commands: 
20844 \begin_inset space ~
20845 \end_inset
20846
20847
20848 \begin_inset Newline newline
20849 \end_inset
20850
20851 Copy 
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856
20857 \family typewriter
20858 \lang ngerman
20859 "
20860 \lang english
20861 <file-name>
20862 \lang ngerman
20863 "
20864 \end_layout
20865
20866 \end_inset
20867
20868  to 
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873
20874 \family typewriter
20875 \lang ngerman
20876 "
20877 \lang english
20878 <new-file-name>
20879 \lang ngerman
20880 "
20881 \end_layout
20882
20883 \end_inset
20884
20885
20886 \begin_inset Newline newline
20887 \end_inset
20888
20889
20890 \begin_inset Flex Code
20891 status collapsed
20892
20893 \begin_layout Plain Layout
20894 cvs -q add 
20895 \family typewriter
20896 \lang ngerman
20897 "
20898 \lang english
20899 <new-file-name>
20900 \lang ngerman
20901 "
20902 \end_layout
20903
20904 \end_inset
20905
20906
20907 \end_layout
20908
20909 \begin_layout Subsubsection
20910
20911 \family sans
20912 Rename
20913 \end_layout
20914
20915 \begin_layout Standard
20916 This will rename the current document.
20917  Since CVS does not support rename operations natively, the version history
20918  is not preserved, the renamed document is added as a new file, and the
20919  original document is deleted.
20920  It requires a clean document without any changes since the last checkin.
20921  You are asked for a file name and a description of the rename operation.
20922  After that the document is renamed, both locally and in the repository.
20923  If the parent directories of the new and old file names differ, all relative
20924  paths of included files are adjusted (like in 
20925 \family sans
20926 File\SpecialChar menuseparator
20927 Save As
20928 \family default
20929 \SpecialChar ldots
20930 ).
20931  Finally, the document is reloaded using the new name.
20932 \end_layout
20933
20934 \begin_layout Labeling
20935 \labelwidthstring 00.00.0000
20936 CVS
20937 \begin_inset space ~
20938 \end_inset
20939
20940 commands: 
20941 \begin_inset space ~
20942 \end_inset
20943
20944
20945 \begin_inset Newline newline
20946 \end_inset
20947
20948 Rename 
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953
20954 \family typewriter
20955 \lang ngerman
20956 "
20957 \lang english
20958 <file-name>
20959 \lang ngerman
20960 "
20961 \end_layout
20962
20963 \end_inset
20964
20965  to 
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970
20971 \family typewriter
20972 \lang ngerman
20973 "
20974 \lang english
20975 <new-file-name>
20976 \lang ngerman
20977 "
20978 \end_layout
20979
20980 \end_inset
20981
20982
20983 \begin_inset Newline newline
20984 \end_inset
20985
20986
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991 cvs -q add 
20992 \family typewriter
20993 \lang ngerman
20994 "
20995 \lang english
20996 <new-file-name>
20997 \lang ngerman
20998 "
20999 \end_layout
21000
21001 \end_inset
21002
21003
21004 \begin_inset Newline newline
21005 \end_inset
21006
21007
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 cvs -q remove 
21013 \family typewriter
21014 \lang ngerman
21015 "
21016 \lang english
21017 <file-name>
21018 \lang ngerman
21019 "
21020 \end_layout
21021
21022 \end_inset
21023
21024
21025 \end_layout
21026
21027 \begin_layout Subsubsection
21028 Update of the local directory checkout from repository
21029 \end_layout
21030
21031 \begin_layout Standard
21032 Once your documents gets more complex, containing sub-documents and pictures,
21033  including external 
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 .tex
21039 \end_layout
21040
21041 \end_inset
21042
21043  files and so on using version control becomes more complicated.
21044  \SpecialChar LyX
21045  supports updating the whole tree in which resides the document.
21046  This become especially useful once you cooperate with people which neither
21047  have detailed knowledge about CVS usage nor they have ambition to commit
21048  additional material to the repository.
21049  You have to organize the files structure so that all external files are
21050  in the same directory or subdirectories of the document.
21051  It's good practice anyway to store multipart documents in an extra directory.
21052 \end_layout
21053
21054 \begin_layout Standard
21055 The 
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 Update local directory from repository
21061 \end_layout
21062
21063 \end_inset
21064
21065  command updates the whole directory.
21066  If local changes are detected user is warned before update starts.
21067  In case of merge conflicts both versions of the conflicting document parts
21068  are placed in the final document.
21069  You have to review and correct the result of the merge.
21070  You'll find the conflicts enclosed in pairs of 
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 <<<<<<<
21076 \end_layout
21077
21078 \end_inset
21079
21080  and 
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 >>>>>>>
21086 \end_layout
21087
21088 \end_inset
21089
21090  separated by 
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 =======
21096 \end_layout
21097
21098 \end_inset
21099
21100 .
21101  The first part is your version as before the update operation with the
21102  document name prepended.
21103  The second one is the repository version with the version number after
21104  the sequence of 
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 >
21110 \end_layout
21111
21112 \end_inset
21113
21114  signs.
21115 \end_layout
21116
21117 \begin_layout Labeling
21118 \labelwidthstring 00.00.0000
21119 CVS
21120 \begin_inset space ~
21121 \end_inset
21122
21123 commands: 
21124 \begin_inset space ~
21125 \end_inset
21126
21127
21128 \begin_inset Newline newline
21129 \end_inset
21130
21131
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 cd $path; cvs diff 
21137 \family typewriter
21138 "."
21139 \end_layout
21140
21141 \end_inset
21142
21143  (Ask if changes are detected.)
21144 \begin_inset Newline newline
21145 \end_inset
21146
21147
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 cd $path; cvs -q update 
21153 \family typewriter
21154 "."
21155 \end_layout
21156
21157 \end_inset
21158
21159
21160 \end_layout
21161
21162 \begin_layout Standard
21163 where 
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 $path
21169 \end_layout
21170
21171 \end_inset
21172
21173  stands for the path to the document.
21174 \end_layout
21175
21176 \begin_layout Subsubsection
21177
21178 \family sans
21179 Show History
21180 \end_layout
21181
21182 \begin_layout Standard
21183 This shows the complete history of the CVS document.
21184  The output of 
21185 \family typewriter
21186 cvs log "<file-name>"
21187 \family default
21188  is shown in a browser.
21189 \end_layout
21190
21191 \begin_layout Subsubsection
21192 Revision info
21193 \end_layout
21194
21195 \begin_layout Standard
21196 \SpecialChar LyX
21197  supports CVS version number, author name, date and time of last commit.
21198  All those are extracted from 
21199 \family typewriter
21200 cvs log -r <file-name>
21201 \family default
21202 .
21203  See 
21204 \begin_inset CommandInset ref
21205 LatexCommand ref
21206 reference "subsec:VCS-Revision-Information"
21207
21208 \end_inset
21209
21210  for details.
21211 \end_layout
21212
21213 \begin_layout Subsection
21214 SVN commands in \SpecialChar LyX
21215
21216 \end_layout
21217
21218 \begin_layout Standard
21219 SVN is now partially supported by \SpecialChar LyX
21220 .
21221  You can find the commands in the 
21222 \family sans
21223 File\SpecialChar menuseparator
21224 Version
21225 \begin_inset space ~
21226 \end_inset
21227
21228 Control
21229 \family default
21230  submenu.
21231  Please note that if you use password protected access to repository via
21232  ssh, you will be asked in terminal window.
21233  \SpecialChar LyX
21234  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21235 \begin_inset Foot
21236 status collapsed
21237
21238 \begin_layout Plain Layout
21239 Most of the commands will work with 1.4 too, see 
21240 \begin_inset CommandInset ref
21241 LatexCommand ref
21242 reference "subsec:SVN-Repo-Update"
21243
21244 \end_inset
21245
21246 .
21247  There seems to be currently unresolved permissions problem under SVN 1.8
21248  with reverting changes when file is locked.
21249 \end_layout
21250
21251 \end_inset
21252
21253
21254 \end_layout
21255
21256 \begin_layout Subsubsection
21257
21258 \family sans
21259 Register
21260 \end_layout
21261
21262 \begin_layout Standard
21263 If your document is not under revision control, this is the only item shown
21264  in the menu.
21265  And if it is under revision control, the 
21266 \family sans
21267 Register
21268 \family default
21269  item is not visible.
21270 \end_layout
21271
21272 \begin_layout Standard
21273 This command registers in SVN your document ONLY in case you have already
21274  the documents directory under SVN control (in particular 
21275 \family typewriter
21276 .svn/entries
21277 \family default
21278  file exists).
21279  This means you have to checkout the archive by yourself.
21280 \end_layout
21281
21282 \begin_layout Standard
21283 Then you are asked interactively to supply an initial description of the
21284  document.
21285  Don't forget that registered file is not yet commited.
21286 \end_layout
21287
21288 \begin_layout Standard
21289 SVN command that is run: 
21290 \family typewriter
21291 svn add -q 
21292 \begin_inset Quotes qld
21293 \end_inset
21294
21295 <file-name>
21296 \begin_inset Quotes qld
21297 \end_inset
21298
21299
21300 \end_layout
21301
21302 \begin_layout Standard
21303 Read 
21304 \family typewriter
21305 man svn
21306 \family default
21307  to understand the switches.
21308 \end_layout
21309
21310 \begin_layout Subsubsection
21311
21312 \family sans
21313 Check In Changes
21314 \end_layout
21315
21316 \begin_layout Standard
21317 When you are finished editing a file, you commit your changes.
21318  When you do this, you are asked for a description of the changes.
21319  After that changes are commited.
21320 \end_layout
21321
21322 \begin_layout Standard
21323 SVN command:
21324 \begin_inset Foot
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 In case locking is not enabled.
21329  See Section 
21330 \begin_inset CommandInset ref
21331 LatexCommand ref
21332 reference "subsec:SVN-File-Locking"
21333
21334 \end_inset
21335
21336 .
21337 \end_layout
21338
21339 \end_inset
21340
21341  
21342 \family typewriter
21343 svn commit -q -m"<description>" <file-name>
21344 \end_layout
21345
21346 \begin_layout Subsubsection
21347
21348 \family sans
21349 Check Out For Edit
21350 \end_layout
21351
21352 \begin_layout Standard
21353 Updates the changes of this file from the repository.
21354  Be sure you understand SVN merging and conflicts resolving before using
21355  this function, because all conflicts has to be resolved manually by you!
21356 \end_layout
21357
21358 \begin_layout Standard
21359 SVN command:
21360 \begin_inset Foot
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 Ditto.
21365 \end_layout
21366
21367 \end_inset
21368
21369  
21370 \family typewriter
21371 svn update --non-interactive 
21372 \begin_inset Quotes qld
21373 \end_inset
21374
21375 <file-name>
21376 \begin_inset Quotes qld
21377 \end_inset
21378
21379
21380 \end_layout
21381
21382 \begin_layout Subsubsection
21383
21384 \family sans
21385 Revert To Repository Version
21386 \end_layout
21387
21388 \begin_layout Standard
21389 This will discard all changes made to the document since the last check
21390  in.
21391  You get a warning before changes are discarded.
21392 \end_layout
21393
21394 \begin_layout Standard
21395 SVN command: 
21396 \family typewriter
21397 svn revert -q 
21398 \begin_inset Quotes qld
21399 \end_inset
21400
21401 <file-name>
21402 \begin_inset Quotes qld
21403 \end_inset
21404
21405
21406 \end_layout
21407
21408 \begin_layout Subsubsection
21409
21410 \family sans
21411 Copy
21412 \end_layout
21413
21414 \begin_layout Standard
21415 This will create a copy of the current document including the version history.
21416  It requires a clean document without any changes since the last checkin.
21417  You are asked for a file name and a description of the copy operation.
21418  After that the copy is created, both locally and in the repository.
21419  If the parent directories of the copied and original document differ, all
21420  relative paths of included files of the copy are adjusted (like in 
21421 \family sans
21422 File\SpecialChar menuseparator
21423 Save As
21424 \family default
21425 \SpecialChar ldots
21426 ).
21427  Finally, the copy is loaded instead of the original document.
21428 \end_layout
21429
21430 \begin_layout Labeling
21431 \labelwidthstring 00.00.0000
21432 SVN
21433 \begin_inset space ~
21434 \end_inset
21435
21436 commands: 
21437 \begin_inset space ~
21438 \end_inset
21439
21440
21441 \begin_inset Newline newline
21442 \end_inset
21443
21444
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 svn copy -q 
21450 \family typewriter
21451
21452 \begin_inset Quotes qld
21453 \end_inset
21454
21455 <file-name>
21456 \begin_inset Quotes qld
21457 \end_inset
21458
21459  
21460 \begin_inset Quotes qld
21461 \end_inset
21462
21463 <new-file-name>
21464 \begin_inset Quotes qld
21465 \end_inset
21466
21467
21468 \end_layout
21469
21470 \end_inset
21471
21472
21473 \begin_inset Newline newline
21474 \end_inset
21475
21476
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481 svn commit
21482 \end_layout
21483
21484 \end_inset
21485
21486
21487 \end_layout
21488
21489 \begin_layout Subsubsection
21490
21491 \family sans
21492 Rename
21493 \end_layout
21494
21495 \begin_layout Standard
21496 This will rename the current document including the version history.
21497  It requires a clean document without any changes since the last checkin.
21498  You are asked for a file name and a description of the rename operation.
21499  After that the document is renamed, both locally and in the repository.
21500  If the parent directories of the new and old file names differ, all relative
21501  paths of included files are adjusted (like in 
21502 \family sans
21503 File\SpecialChar menuseparator
21504 Save As
21505 \family default
21506 \SpecialChar ldots
21507 ).
21508  Finally, the document is reloaded using the new name.
21509 \end_layout
21510
21511 \begin_layout Labeling
21512 \labelwidthstring 00.00.0000
21513 SVN
21514 \begin_inset space ~
21515 \end_inset
21516
21517 commands: 
21518 \begin_inset space ~
21519 \end_inset
21520
21521
21522 \begin_inset Newline newline
21523 \end_inset
21524
21525
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 svn move -q 
21531 \family typewriter
21532
21533 \begin_inset Quotes qld
21534 \end_inset
21535
21536 <file-name>
21537 \begin_inset Quotes qld
21538 \end_inset
21539
21540  
21541 \begin_inset Quotes qld
21542 \end_inset
21543
21544 <new-file-name>
21545 \begin_inset Quotes qld
21546 \end_inset
21547
21548
21549 \end_layout
21550
21551 \end_inset
21552
21553
21554 \begin_inset Newline newline
21555 \end_inset
21556
21557
21558 \begin_inset Flex Code
21559 status collapsed
21560
21561 \begin_layout Plain Layout
21562 svn commit
21563 \end_layout
21564
21565 \end_inset
21566
21567
21568 \end_layout
21569
21570 \begin_layout Subsubsection
21571 \begin_inset CommandInset label
21572 LatexCommand label
21573 name "subsec:SVN-Repo-Update"
21574
21575 \end_inset
21576
21577 Update of the local directory checkout from repository
21578 \begin_inset Foot
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 Note that this command will work only with subversion 
21583 \begin_inset Formula $\geqq1.5$
21584 \end_inset
21585
21586
21587 \end_layout
21588
21589 \end_inset
21590
21591
21592 \end_layout
21593
21594 \begin_layout Standard
21595 All the commands above have one shortcoming â€“ they deal with the current
21596  document only.
21597  Once your document contains pictures, includes external 
21598 \begin_inset Flex Code
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 .tex
21603 \end_layout
21604
21605 \end_inset
21606
21607  files and so on administration becomes more complicated.
21608  \SpecialChar LyX
21609  now supports updating the whole tree in which resides the document
21610 \begin_inset Foot
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 One need to organize the files structure so that all external files are
21615  in the same directory or subdirectories of the document.
21616  
21617 \end_layout
21618
21619 \end_inset
21620
21621 .
21622  This become especially useful once you cooperate with people which neither
21623  know about subversion management nor they have ambition to commit additional
21624  material to the repository.
21625  
21626 \end_layout
21627
21628 \begin_layout Standard
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633 Update local directory from repository
21634 \end_layout
21635
21636 \end_inset
21637
21638  command updates the whole directory and in case of merge conflicts local
21639  version of the files are left, so no unintended data loss occurs.
21640  If local changes are detected user is warned before update starts.
21641 \end_layout
21642
21643 \begin_layout Labeling
21644 \labelwidthstring 00.00.0000
21645 SVN
21646 \begin_inset space ~
21647 \end_inset
21648
21649 commands: 
21650 \begin_inset space ~
21651 \end_inset
21652
21653
21654 \begin_inset Newline newline
21655 \end_inset
21656
21657
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662 svn diff $path
21663 \end_layout
21664
21665 \end_inset
21666
21667  (Ask if changes are detected.)
21668 \begin_inset Newline newline
21669 \end_inset
21670
21671
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 svn update â€“accept mine-full $path
21677 \end_layout
21678
21679 \end_inset
21680
21681
21682 \end_layout
21683
21684 \begin_layout Standard
21685 where 
21686 \begin_inset Flex Code
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 $path
21691 \end_layout
21692
21693 \end_inset
21694
21695  stands for the path to the document.
21696 \end_layout
21697
21698 \begin_layout Subsubsection
21699
21700 \family sans
21701 Show History
21702 \end_layout
21703
21704 \begin_layout Standard
21705 This shows the complete history of the SVN document.
21706  The output of 
21707 \family typewriter
21708 svn log 
21709 \begin_inset Quotes qld
21710 \end_inset
21711
21712 <file-name>
21713 \begin_inset Quotes qld
21714 \end_inset
21715
21716
21717 \family default
21718  is shown in a browser.
21719 \end_layout
21720
21721 \begin_layout Subsubsection
21722 File Locking
21723 \begin_inset CommandInset label
21724 LatexCommand label
21725 name "subsec:SVN-File-Locking"
21726
21727 \end_inset
21728
21729
21730 \end_layout
21731
21732 \begin_layout Standard
21733 The file exchange through various revision control systems brings the problem
21734  of merge conflicts in case two different users try to edit the same (parts
21735  of) document.
21736  When such a conflict happens it needs manual resolving and one reasonable
21737  alternative is to provide some kind of locking mechanism, which guarantees
21738  that only one user is allowed to edit file at the given time.
21739 \end_layout
21740
21741 \begin_layout Standard
21742 SVN has two such mechanisms to provide mutual exclusivity for file access
21743  â€“ locks and automatic setting of write permissions (see sec.
21744  
21745 \begin_inset CommandInset ref
21746 LatexCommand ref
21747 reference "subsec:Automatical-Locking-Property"
21748
21749 \end_inset
21750
21751 ) based on 
21752 \begin_inset Flex Code
21753 status collapsed
21754
21755 \begin_layout Plain Layout
21756 svn:needs-lock
21757 \end_layout
21758
21759 \end_inset
21760
21761  file svn property
21762 \begin_inset Foot
21763 status collapsed
21764
21765 \begin_layout Plain Layout
21766 \begin_inset Flex URL
21767 status open
21768
21769 \begin_layout Plain Layout
21770
21771 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21772 \end_layout
21773
21774 \end_inset
21775
21776
21777 \end_layout
21778
21779 \end_inset
21780
21781 .
21782  If this property is detected for a given document \SpecialChar LyX
21783  starts to use SVN locks
21784  for document editing automatically and the whole check-in/out mechanism
21785  switches to the same regimen as for RCS.
21786  This in particular means there are two different modes of file use in \SpecialChar LyX
21787 :
21788 \end_layout
21789
21790 \begin_layout Itemize
21791 Unlocked state.
21792  The loaded file is in the read-only mode.
21793  For editing on needs to check-out.
21794  
21795 \emph on
21796 Check-out
21797 \emph default
21798  consists of updating from the repository and gaining write lock.
21799  If the lock is not possible to obtain, we remain in unlocked state.
21800 \end_layout
21801
21802 \begin_layout Itemize
21803 Locked state.
21804  The loaded file is in the 
21805 \begin_inset Quotes els
21806 \end_inset
21807
21808 normal
21809 \begin_inset Quotes ers
21810 \end_inset
21811
21812  edit mode.
21813  No other user is allowed to edit the file.
21814  
21815 \emph on
21816 Check-in
21817 \emph default
21818  consists of commiting changes and releasing write-lock.
21819  If no changes have been made to the document, no commit will be produced
21820 \begin_inset Foot
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 Don't be puzzled by the fact that you will be asked for commit message anyway.
21825 \end_layout
21826
21827 \end_inset
21828
21829  and only the write-lock will be released.
21830 \end_layout
21831
21832 \begin_layout Standard
21833 SVN commands:
21834 \end_layout
21835
21836 \begin_layout Labeling
21837 \labelwidthstring 00.00.0000
21838 Check-in:
21839 \family typewriter
21840  svn commit -q -m"<description>" "<file-name>"
21841 \begin_inset Newline newline
21842 \end_inset
21843
21844 svn unlock "<file-name>"
21845 \end_layout
21846
21847 \begin_layout Labeling
21848 \labelwidthstring 00.00.0000
21849 Check-out: 
21850 \family typewriter
21851 svn update "<file-name>"
21852 \begin_inset Newline newline
21853 \end_inset
21854
21855 svn lock "<file-name>"
21856 \end_layout
21857
21858 \begin_layout Subsubsection
21859
21860 \family typewriter
21861 \begin_inset CommandInset label
21862 LatexCommand label
21863 name "subsec:Automatical-Locking-Property"
21864
21865 \end_inset
21866
21867
21868 \family default
21869 Automatic Locking Property
21870 \end_layout
21871
21872 \begin_layout Standard
21873 The above mentioned automatic setting of write permissions of the .lyx file
21874  can be set through
21875 \family sans
21876  File\SpecialChar menuseparator
21877 Version
21878 \begin_inset space ~
21879 \end_inset
21880
21881 Control\SpecialChar menuseparator
21882 Use Locking Property
21883 \family default
21884 .
21885  This command is active only when the file is not locked on the svn server
21886  (i.e.
21887  you need to check-out before proceeding).
21888 \end_layout
21889
21890 \begin_layout Labeling
21891 \labelwidthstring 00.00.0000
21892 SVN
21893 \begin_inset space ~
21894 \end_inset
21895
21896 commands:
21897 \end_layout
21898
21899 \begin_layout Labeling
21900 \labelwidthstring 00.00.0000
21901 Set:
21902 \family typewriter
21903  svn propset svn:needs-lock ON "<file-name>"
21904 \end_layout
21905
21906 \begin_layout Labeling
21907 \labelwidthstring 00.00.0000
21908 Unset: 
21909 \family typewriter
21910 svn propdel svn:needs-lock "<file-name>"
21911 \end_layout
21912
21913 \begin_layout Subsubsection
21914 \begin_inset CommandInset label
21915 LatexCommand label
21916 name "subsec:VCS-Revision-Information"
21917
21918 \end_inset
21919
21920 Revision Information in Documents
21921 \end_layout
21922
21923 \begin_layout Standard
21924 There are more possibilities how to activate revision information in our
21925  document.
21926 \end_layout
21927
21928 \begin_layout Itemize
21929 \SpecialChar LyX
21930  supports directly:
21931 \end_layout
21932
21933 \begin_deeper
21934 \begin_layout Itemize
21935 tree revision information (
21936 \begin_inset Flex Code
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 vcs-tree-revision
21941 \end_layout
21942
21943 \end_inset
21944
21945 ).
21946  The result is the output of the 
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 svnversion
21952 \end_layout
21953
21954 \end_inset
21955
21956  command, the following table gives you an idea, how to read the results.
21957 \end_layout
21958
21959 \begin_layout Standard
21960 \align center
21961 \begin_inset Tabular
21962 <lyxtabular version="3" rows="6" columns="2">
21963 <features tabularvalignment="middle">
21964 <column alignment="left" valignment="top">
21965 <column alignment="left" valignment="top">
21966 <row>
21967 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21968 \begin_inset Text
21969
21970 \begin_layout Plain Layout
21971
21972 \series bold
21973 Output
21974 \end_layout
21975
21976 \end_inset
21977 </cell>
21978 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21979 \begin_inset Text
21980
21981 \begin_layout Plain Layout
21982
21983 \series bold
21984 Meaning
21985 \end_layout
21986
21987 \end_inset
21988 </cell>
21989 </row>
21990 <row>
21991 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
21992 \begin_inset Text
21993
21994 \begin_layout Plain Layout
21995 4123:4168
21996 \end_layout
21997
21998 \end_inset
21999 </cell>
22000 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22001 \begin_inset Text
22002
22003 \begin_layout Plain Layout
22004 mixed revision working copy
22005 \end_layout
22006
22007 \end_inset
22008 </cell>
22009 </row>
22010 <row>
22011 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22012 \begin_inset Text
22013
22014 \begin_layout Plain Layout
22015 4168M
22016 \end_layout
22017
22018 \end_inset
22019 </cell>
22020 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22021 \begin_inset Text
22022
22023 \begin_layout Plain Layout
22024 modified working copy
22025 \end_layout
22026
22027 \end_inset
22028 </cell>
22029 </row>
22030 <row>
22031 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22032 \begin_inset Text
22033
22034 \begin_layout Plain Layout
22035 4123S
22036 \end_layout
22037
22038 \end_inset
22039 </cell>
22040 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22041 \begin_inset Text
22042
22043 \begin_layout Plain Layout
22044 switched working copy
22045 \end_layout
22046
22047 \end_inset
22048 </cell>
22049 </row>
22050 <row>
22051 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22052 \begin_inset Text
22053
22054 \begin_layout Plain Layout
22055 4123P
22056 \end_layout
22057
22058 \end_inset
22059 </cell>
22060 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22061 \begin_inset Text
22062
22063 \begin_layout Plain Layout
22064 partial working copy, from a sparse checkout
22065 \end_layout
22066
22067 \end_inset
22068 </cell>
22069 </row>
22070 <row>
22071 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22072 \begin_inset Text
22073
22074 \begin_layout Plain Layout
22075 4123:4168MS
22076 \end_layout
22077
22078 \end_inset
22079 </cell>
22080 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22081 \begin_inset Text
22082
22083 \begin_layout Plain Layout
22084 mixed revision, modified, switched working copy
22085 \end_layout
22086
22087 \end_inset
22088 </cell>
22089 </row>
22090 </lyxtabular>
22091
22092 \end_inset
22093
22094
22095 \end_layout
22096
22097 \begin_layout Itemize
22098 file revision information.
22099  The result comes from parsing the output of 
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 svn
22105 \begin_inset space ~
22106 \end_inset
22107
22108 info
22109 \begin_inset space ~
22110 \end_inset
22111
22112 –xml
22113 \begin_inset space ~
22114 \end_inset
22115
22116 file.lyx
22117 \end_layout
22118
22119 \end_inset
22120
22121 .
22122  Supported flags are:
22123 \end_layout
22124
22125 \begin_deeper
22126 \begin_layout Itemize
22127 version number of the last commit (
22128 \begin_inset Flex Code
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 vcs-revision
22133 \end_layout
22134
22135 \end_inset
22136
22137 )
22138 \end_layout
22139
22140 \begin_layout Itemize
22141 author of the last commit (
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 vcs-author
22147 \end_layout
22148
22149 \end_inset
22150
22151 )
22152 \end_layout
22153
22154 \begin_layout Itemize
22155 date of the last commit (
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 vcs-date
22161 \end_layout
22162
22163 \end_inset
22164
22165 )
22166 \end_layout
22167
22168 \begin_layout Itemize
22169 time of the last commit (
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 vcs-time
22175 \end_layout
22176
22177 \end_inset
22178
22179 )
22180 \end_layout
22181
22182 \end_deeper
22183 \begin_layout Standard
22184 You can obtain this info via InsetInfo (e.g.
22185  
22186 \begin_inset Flex Code
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190 info-insert buffer vcs-date
22191 \end_layout
22192
22193 \end_inset
22194
22195 ).
22196  The information will be available only when you have the file stored under
22197  svn managment (i.e.
22198  the 
22199 \begin_inset Flex Code
22200 status collapsed
22201
22202 \begin_layout Plain Layout
22203 .svn
22204 \end_layout
22205
22206 \end_inset
22207
22208  directory is available with your document).
22209 \end_layout
22210
22211 \end_deeper
22212 \begin_layout Itemize
22213 Another—a hacking one—possibility is to use svn keywords
22214 \begin_inset Foot
22215 status collapsed
22216
22217 \begin_layout Plain Layout
22218 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22219 \end_layout
22220
22221 \end_inset
22222
22223 .
22224  In short â€“ you set file keywords property (e.g.
22225  
22226 \family sans
22227 svn propset svn:keywords 'Rev' file.lyx
22228 \family default
22229 ) and then paste keyword \SpecialChar TeX
22230  code
22231 \begin_inset Foot
22232 status collapsed
22233
22234 \begin_layout Plain Layout
22235 This is an easy way how to ensure that \SpecialChar LyX
22236  won't break the line in the middle
22237  of keyword tag.
22238 \end_layout
22239
22240 \end_inset
22241
22242  tag in your document (e.g.
22243  
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248 $Rev$
22249 \end_layout
22250
22251 \end_inset
22252
22253 ).
22254  This way svn client will automatically substitute revision number (e.g.
22255  
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 $Rev: 59 $
22261 \end_layout
22262
22263 \end_inset
22264
22265 ) after each update and commit.
22266  There are more problems with this approach.
22267  Firstly, the '$' character is used in \SpecialChar TeX
22268  world for math equations, so any
22269  occurence of math formula 
22270 \begin_inset Formula $Rev$
22271 \end_inset
22272
22273  become 
22274 \begin_inset Formula $Rev:59$
22275 \end_inset
22276
22277  in your \SpecialChar LyX
22278  document.
22279  Similarly for other keywords like Id, Date, Author, etc.
22280  Secondly svn output is dependent on your locales, so its very easy that
22281  svn would produce some problematic strings once Date is used.
22282  Thirdly you get the whole 'Rev: 59' string in your document instead of
22283  the plain number.
22284  Until subversion implements user's custom keywords it will be hard to use
22285  this approach reliably or let \SpecialChar LyX
22286  to support it directly.
22287 \end_layout
22288
22289 \begin_layout Subsection
22290 SVN and Windows Environment
22291 \end_layout
22292
22293 \begin_layout Quote
22294 My inclination is to say that if the user cannot figure out the command
22295  line operations on their own fairly quickly, they would be well advised
22296  to use TortoiseSVN.
22297  â€”P.
22298  A.
22299  Rubin
22300 \end_layout
22301
22302 \begin_layout Subsubsection
22303 Preparation
22304 \end_layout
22305
22306 \begin_layout Standard
22307 In addition to installing \SpecialChar LyX
22308 , and having access to a Subversion repository,
22309  the user will need to install the Subversion client program.
22310  A Windows installer for the client program is available from 
22311 \begin_inset CommandInset href
22312 LatexCommand href
22313 name "CollabNet"
22314 target "http://www.collab.net/nonav/downloads/subversion/"
22315 literal "false"
22316
22317 \end_inset
22318
22319 .
22320  The user may also want to install 
22321 \begin_inset CommandInset href
22322 LatexCommand href
22323 name "TortoiseSVN"
22324 target "http://tortoisesvn.tigris.org/"
22325 literal "false"
22326
22327 \end_inset
22328
22329 , which integrates Subversion operations into the context (rightclick) menu
22330  of Windows Explorer.
22331  Operations done outside \SpecialChar LyX
22332  will typically be more convenient using the Explorer
22333  context menu.
22334  Note that TortoiseSVN is not a replacement for the client program, which
22335  is what \SpecialChar LyX
22336  itself will use.
22337 \end_layout
22338
22339 \begin_layout Subsubsection
22340 Bringing a document under Subversion control
22341 \end_layout
22342
22343 \begin_layout Standard
22344 Before a \SpecialChar LyX
22345  document can be brought under version control in Subversion, its
22346  parent directory needs to be under version control.
22347  If the document is being added to a project already in the repository,
22348  this is accomplished by checking the project out to the directory where
22349  the new document will be placed.
22350  If the project itself is not yet under version control (for instance, if
22351  this document starts a new project), the directory must be imported into
22352  the repository.
22353  This is done outside \SpecialChar LyX
22354 .
22355  Both import and checkout are easily accomplished from the Explorer context
22356  menu using TortoiseSVN, or alternatively can be done using the command
22357  line client at a DOS prompt.
22358  The procedure for importing the project using TortoiseSVN is described
22359  below, assuming an existing repository and a new project being started
22360  in 
22361 \family typewriter
22362 C:
22363 \backslash
22364 new project
22365 \family default
22366 .
22367  For information on using the Subversion client program, run 
22368 \family typewriter
22369 svn --help 
22370 \family default
22371 in a DOS shell.
22372 \end_layout
22373
22374 \begin_layout Enumerate
22375 Locate 
22376 \family typewriter
22377 C:
22378 \backslash
22379 new project 
22380 \family default
22381 in Windows Explorer, right click it, and select 
22382 \family sans
22383 TortoiseSVN\SpecialChar menuseparator
22384 Repo-browser
22385 \family default
22386 .
22387  If necessary, adjust the URL for the repository, then click OK.
22388 \end_layout
22389
22390 \begin_layout Enumerate
22391 Right click the level of the repository under which you want to place the
22392  new project folder (typically the top level) and click 
22393 \family sans
22394 Create folder
22395 \family default
22396  Supply a name for the project folder and click OK.
22397  Add a message for the log file if desired, then click OK again.
22398  The new project folder should appear in the repository.
22399  Finally, click OK again to exit the repository browser.
22400 \end_layout
22401
22402 \begin_layout Enumerate
22403 Once again right click 
22404 \family typewriter
22405 C:
22406 \backslash
22407 new project
22408 \family default
22409 , this time selecting SVN Checkout\SpecialChar ldots
22410  Select the URL of the project folder
22411  you just created in the repository, and set the checkout directory to 
22412 \family typewriter
22413 C:
22414 \backslash
22415 new project.
22416
22417 \family default
22418  Click OK.
22419  You will be warned about a non-empty folder; click OK to proceed.
22420  You should now have a 
22421 \family typewriter
22422 .svn
22423 \family default
22424  directory under 
22425 \family typewriter
22426 C:
22427 \backslash
22428 new project.
22429 \end_layout
22430
22431 \begin_layout Enumerate
22432 Create or open your document in \SpecialChar LyX
22433  and click 
22434 \family sans
22435 File\SpecialChar menuseparator
22436 Version
22437 \begin_inset space ~
22438 \end_inset
22439
22440 Control\SpecialChar menuseparator
22441 Register.
22442  
22443 \family default
22444 Add a log message and click OK to commit the document to version control.
22445 \end_layout
22446
22447 \begin_layout Standard
22448 From this point onward, you should have full functionality in the 
22449 \family sans
22450 File\SpecialChar menuseparator
22451 Version
22452 \begin_inset space ~
22453 \end_inset
22454
22455 Control
22456 \family default
22457  menu.
22458  You also have the option of checking the document in and out, viewing its
22459  history, etc.
22460  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22461  client program from a command prompt.
22462 \end_layout
22463
22464 \begin_layout Subsubsection
22465 SSH tunnel used with SVN under Windows
22466 \end_layout
22467
22468 \begin_layout Standard
22469 Compared with Linux setting up an svn client to communicate over ssh under
22470  Windows is a rather troublesome task.
22471  We will at least offer some hints how to setup the client side but prior
22472  knowledge about ssh and the Windows command line is needed, also be prepared
22473  for a great deal of frustration\SpecialChar ldots
22474
22475 \end_layout
22476
22477 \begin_layout Enumerate
22478 Get an svn client for windows, as described in the previous sections.
22479  When it is a fresh install run some svn command (e.g.
22480  
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 svn â€“version
22486 \end_layout
22487
22488 \end_inset
22489
22490 ) to create config files, which you will need to change later on.
22491 \end_layout
22492
22493 \begin_layout Enumerate
22494 Choose an ssh client for Windows.
22495  There are several possibilities, we will use the one from Putty tools
22496 \begin_inset Foot
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 \begin_inset Flex URL
22501 status collapsed
22502
22503 \begin_layout Plain Layout
22504
22505 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22506 \end_layout
22507
22508 \end_inset
22509
22510
22511 \end_layout
22512
22513 \end_inset
22514
22515 .
22516  You will need to set the connection up so that the client doesn't ask for
22517  any password from you.
22518  To keep things easy we will use only keys without any additional password
22519  protection etc.
22520 \end_layout
22521
22522 \begin_deeper
22523 \begin_layout Enumerate
22524 Generate keys by 
22525 \begin_inset Flex Code
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 puttygen
22530 \end_layout
22531
22532 \end_inset
22533
22534 .
22535  Save your private .ppk key file and put the public one on the server side.
22536  If the SVN server runs on Linux, note that the format of the public key
22537  is not compatible with Linux openssh and you will need to direcly copy-paste
22538  the key from the 
22539 \begin_inset Quotes eld
22540 \end_inset
22541
22542
22543 \emph on
22544 Public key for pasting into OpenSSH authorized_keys file
22545 \emph default
22546 :
22547 \begin_inset Quotes erd
22548 \end_inset
22549
22550  edit field into the server's 
22551 \begin_inset Flex Code
22552 status collapsed
22553
22554 \begin_layout Plain Layout
22555 ~/.ssh/authorized_keys
22556 \end_layout
22557
22558 \end_inset
22559
22560  / 
22561 \begin_inset Flex Code
22562 status collapsed
22563
22564 \begin_layout Plain Layout
22565 authorized_keys2
22566 \end_layout
22567
22568 \end_inset
22569
22570  file.
22571 \end_layout
22572
22573 \begin_layout Enumerate
22574 Get the Putty's 
22575 \begin_inset Flex Code
22576 status collapsed
22577
22578 \begin_layout Plain Layout
22579 plink
22580 \end_layout
22581
22582 \end_inset
22583
22584 .
22585  In the SVN config file
22586 \begin_inset Foot
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590 Exact path depends on Windows version, usually somewhere around 
22591 \begin_inset Flex Code
22592 status collapsed
22593
22594 \begin_layout Plain Layout
22595 c:
22596 \backslash
22597 Documents and Settings
22598 \backslash
22599 user
22600 \backslash
22601 Application Data
22602 \backslash
22603 Subversion
22604 \backslash
22605 config
22606 \end_layout
22607
22608 \end_inset
22609
22610  / 
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 AppData
22616 \backslash
22617 Roaming
22618 \backslash
22619 Subversion
22620 \end_layout
22621
22622 \end_inset
22623
22624 .
22625 \end_layout
22626
22627 \end_inset
22628
22629 , section [tunnels], setup ssh command, e.g.
22630  
22631 \begin_inset Flex Code
22632 status collapsed
22633
22634 \begin_layout Plain Layout
22635 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22636 \end_layout
22637
22638 \end_inset
22639
22640 .
22641 \begin_inset Foot
22642 status collapsed
22643
22644 \begin_layout Plain Layout
22645 It will usually take a lot of time to get exact command right and it depends
22646  on many things.
22647  For example do not have some remote server saved as a default session in
22648  Putty etc.
22649  If things fail, try to connect via plink without SVN first.
22650 \end_layout
22651
22652 \end_inset
22653
22654
22655 \end_layout
22656
22657 \end_deeper
22658 \begin_layout Enumerate
22659 Checkout the SVN archive, e.
22660 \begin_inset space \thinspace{}
22661 \end_inset
22662
22663 g.
22664 \begin_inset Newline newline
22665 \end_inset
22666
22667
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 svn co svn+ssh://user@server/repository_path
22673 \end_layout
22674
22675 \end_inset
22676
22677 .
22678 \end_layout
22679
22680 \begin_layout Subsubsection
22681 End-of-Line Conversions
22682 \end_layout
22683
22684 \begin_layout Standard
22685 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22686  will
22687  use different line endings inside the .lyx files.
22688  This is not a problem as far as \SpecialChar LyX
22689  functionality is concerned, but the commit
22690  diffs will be huge and merge-conflicts prone.
22691  Fortunately SVN itself knows
22692 \begin_inset Foot
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696 \begin_inset Flex URL
22697 status collapsed
22698
22699 \begin_layout Plain Layout
22700
22701 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22702 \end_layout
22703
22704 \end_inset
22705
22706
22707 \end_layout
22708
22709 \end_inset
22710
22711  how to deal with CR/LF problems when switching .lyx files to the 
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 native
22717 \end_layout
22718
22719 \end_inset
22720
22721  mode.
22722 \begin_inset Foot
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 For the lazy guys: 
22727 \begin_inset Flex Code
22728 status collapsed
22729
22730 \begin_layout Plain Layout
22731 svn propset svn:eol-style native FILE_NAME
22732 \end_layout
22733
22734 \end_inset
22735
22736
22737 \end_layout
22738
22739 \end_inset
22740
22741
22742 \end_layout
22743
22744 \begin_layout Subsection
22745 GIT commands in \SpecialChar LyX
22746
22747 \end_layout
22748
22749 \begin_layout Standard
22750 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22751 .
22752  You can find the commands in the 
22753 \family sans
22754 File\SpecialChar menuseparator
22755 Version
22756 \begin_inset space ~
22757 \end_inset
22758
22759 Control
22760 \family default
22761  submenu.
22762  Please note that if you use password protected access to repository via
22763  ssh, you will be asked in terminal window.
22764  \SpecialChar LyX
22765  was tested against GIT 1.7.
22766 \begin_inset Foot
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770 Windows users please note that you need to ensure that git is on the path.
22771  This can be set from within \SpecialChar LyX
22772  at 
22773 \family sans
22774 Tools\SpecialChar menuseparator
22775 Preferences\SpecialChar menuseparator
22776 Paths\SpecialChar menuseparator
22777 PATH prefix
22778 \family default
22779 .
22780 \end_layout
22781
22782 \end_inset
22783
22784
22785 \end_layout
22786
22787 \begin_layout Standard
22788 One big difference of GIT and the other supported version control systems
22789  is the distributed nature of GIT: With traditional version control systems
22790  there is one central server which hosts the repository.
22791  Users commit their changes to the server, and get updates made by other
22792  users from it.
22793  With GIT, users commit to a local repository.
22794  The local repository can be synchronized with one or more remote repositories
22795  using the 
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800 pull
22801 \end_layout
22802
22803 \end_inset
22804
22805  and 
22806 \begin_inset Flex Code
22807 status collapsed
22808
22809 \begin_layout Plain Layout
22810 push
22811 \end_layout
22812
22813 \end_inset
22814
22815  GIT commands.
22816  \SpecialChar LyX
22817  does not interact in any way with remote GIT repositories.
22818  It works exclusively with the local repository in a very similar way as
22819  with a central CVS or SVN repository.
22820  If you use remote GIT repositories you need to do the 
22821 \begin_inset Flex Code
22822 status collapsed
22823
22824 \begin_layout Plain Layout
22825 pull
22826 \end_layout
22827
22828 \end_inset
22829
22830  and 
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835 push
22836 \end_layout
22837
22838 \end_inset
22839
22840  operations with your favourite GIT client.
22841 \end_layout
22842
22843 \begin_layout Subsubsection
22844
22845 \family sans
22846 Register
22847 \end_layout
22848
22849 \begin_layout Standard
22850 If your document is not under revision control, this is the only item shown
22851  in the menu.
22852  And if it is under revision control, the 
22853 \family sans
22854 Register
22855 \family default
22856  item is not visible.
22857 \end_layout
22858
22859 \begin_layout Standard
22860 This command registers in GIT your document ONLY in case you have already
22861  the documents directory under GIT control (in particular 
22862 \family typewriter
22863 .git/index
22864 \family default
22865  file exists).
22866  This means you have to checkout the archive by yourself.
22867 \end_layout
22868
22869 \begin_layout Standard
22870 Then you are asked interactively to supply an initial description of the
22871  document.
22872  Don't forget that registered file is not yet committed.
22873 \end_layout
22874
22875 \begin_layout Standard
22876 GIT command that is run: 
22877 \family typewriter
22878 git add 
22879 \begin_inset Quotes qld
22880 \end_inset
22881
22882 <file-name>
22883 \begin_inset Quotes qld
22884 \end_inset
22885
22886
22887 \end_layout
22888
22889 \begin_layout Standard
22890 Read 
22891 \family typewriter
22892 man git
22893 \family default
22894  to understand the switches.
22895 \end_layout
22896
22897 \begin_layout Subsubsection
22898
22899 \family sans
22900 Check In Changes
22901 \end_layout
22902
22903 \begin_layout Standard
22904 When you are finished editing a file, you commit your changes.
22905  When you do this, you are asked for a description of the changes.
22906  After that changes are committed.
22907 \end_layout
22908
22909 \begin_layout Standard
22910 GIT command: 
22911 \family typewriter
22912 git commit -q -m"<description>" <file-name>
22913 \end_layout
22914
22915 \begin_layout Subsubsection
22916
22917 \family sans
22918 Revert To Repository Version
22919 \end_layout
22920
22921 \begin_layout Standard
22922 This will discard all changes made to the document since the last check
22923  in.
22924  You get a warning before changes are discarded.
22925 \end_layout
22926
22927 \begin_layout Standard
22928 GIT command: 
22929 \family typewriter
22930 git checkout -q 
22931 \begin_inset Quotes qld
22932 \end_inset
22933
22934 <file-name>
22935 \begin_inset Quotes qld
22936 \end_inset
22937
22938
22939 \end_layout
22940
22941 \begin_layout Subsubsection
22942
22943 \family sans
22944 Rename
22945 \end_layout
22946
22947 \begin_layout Standard
22948 This will rename the current document including the version history.
22949  It requires a clean document without any changes since the last checkin.
22950  You are asked for a file name and a description of the rename operation.
22951  After that the document is renamed, both locally and in the repository.
22952  If the parent directories of the new and old file names differ, all relative
22953  paths of included files are adjusted (like in 
22954 \family sans
22955 File\SpecialChar menuseparator
22956 Save As
22957 \family default
22958 \SpecialChar ldots
22959 ).
22960  Finally, the document is reloaded using the new name.
22961 \end_layout
22962
22963 \begin_layout Labeling
22964 \labelwidthstring 00.00.0000
22965 GIT
22966 \begin_inset space ~
22967 \end_inset
22968
22969 commands: 
22970 \begin_inset space ~
22971 \end_inset
22972
22973
22974 \begin_inset Newline newline
22975 \end_inset
22976
22977
22978 \begin_inset Flex Code
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982 git mv 
22983 \family typewriter
22984
22985 \begin_inset Quotes qld
22986 \end_inset
22987
22988 <file-name>
22989 \begin_inset Quotes qld
22990 \end_inset
22991
22992  
22993 \begin_inset Quotes qld
22994 \end_inset
22995
22996 <new-file-name>
22997 \begin_inset Quotes qld
22998 \end_inset
22999
23000
23001 \end_layout
23002
23003 \end_inset
23004
23005
23006 \begin_inset Newline newline
23007 \end_inset
23008
23009
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 git commit
23015 \end_layout
23016
23017 \end_inset
23018
23019
23020 \end_layout
23021
23022 \begin_layout Subsubsection
23023
23024 \family sans
23025 Show History
23026 \end_layout
23027
23028 \begin_layout Standard
23029 This shows the complete history of the GIT document.
23030  The output of 
23031 \family typewriter
23032 git log 
23033 \begin_inset Quotes qld
23034 \end_inset
23035
23036 <file-name>
23037 \begin_inset Quotes qld
23038 \end_inset
23039
23040
23041 \family default
23042  is shown in a browser.
23043 \end_layout
23044
23045 \begin_layout Subsubsection
23046 Version Info
23047 \end_layout
23048
23049 \begin_layout Standard
23050 \SpecialChar LyX
23051  supports GIT hash number of the last commit to the file, author name, date
23052  and time of last commit.
23053  All those are extracted from 
23054 \family typewriter
23055 git log -n 1 --pretty=format:%H%n%an%n%ai
23056 \family default
23057 .
23058  Tree version information is obtained via 
23059 \family typewriter
23060 git describe --abbrev --dirty --long
23061 \family default
23062 .
23063  See 
23064 \begin_inset CommandInset ref
23065 LatexCommand ref
23066 reference "subsec:VCS-Revision-Information"
23067
23068 \end_inset
23069
23070  for other details.
23071 \end_layout
23072
23073 \begin_layout Subsection
23074 Further tuning
23075 \end_layout
23076
23077 \begin_layout Standard
23078 With the recent addition of the 
23079 \begin_inset Flex Code
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083 vc-command
23084 \end_layout
23085
23086 \end_inset
23087
23088  function \SpecialChar LyX
23089  power users are allowed to create their own commands for revision
23090  control.
23091 \end_layout
23092
23093 \begin_layout Standard
23094 As an example you can see how two TortoiseSVN commands could be integrated
23095  directly:
23096 \end_layout
23097
23098 \begin_layout Description
23099 Commit: 
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23105 \end_layout
23106
23107 \end_inset
23108
23109
23110 \end_layout
23111
23112 \begin_layout Description
23113 Revert: 
23114 \begin_inset Flex Code
23115 status collapsed
23116
23117 \begin_layout Plain Layout
23118 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23119 \end_layout
23120
23121 \end_inset
23122
23123
23124 \end_layout
23125
23126 \begin_layout Subsection
23127 Version control and Document comparison
23128 \end_layout
23129
23130 \begin_layout Standard
23131 One of the typical uses of version control is to inspect the changes between
23132  revisions, usually by creating 
23133 \begin_inset Flex Code
23134 status collapsed
23135
23136 \begin_layout Plain Layout
23137 diff
23138 \end_layout
23139
23140 \end_inset
23141
23142  dumps.
23143  While this is useful for plain text files, it is much less useful in the
23144  case of \SpecialChar LyX
23145  files, which have more a complicated structure.
23146  Hence we provide binding to the Document comparison feature.
23147  There are two ways of calling this feature â€“ either by direct call of 
23148 \begin_inset Flex Code
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152 vc-compare
23153 \end_layout
23154
23155 \end_inset
23156
23157  \SpecialChar LyX
23158  function (for details see \SpecialChar LyX
23159  functions manual) or by the toolbar icon 
23160 \begin_inset Info
23161 type  "icon"
23162 arg   "vc-compare"
23163 \end_inset
23164
23165  or the menu item 
23166 \begin_inset Info
23167 type  "menu"
23168 arg   "vc-compare"
23169 \end_inset
23170
23171 , respectively.
23172  One can either compare two chosen revisions of the document or he can simply
23173  compare the current version of edited text with older revisions (where
23174  '
23175 \begin_inset Flex Noun
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179 0
23180 \end_layout
23181
23182 \end_inset
23183
23184 ' revisions back means comparison of the edited file with last commited
23185  revision).
23186  
23187 \end_layout
23188
23189 \begin_layout Standard
23190 This feature is supported for SVN and RCS though due to the more complicated
23191  versioning scheme of RCS there is a constraint â€“ when addressing the revisions
23192  in dialog, numbers always point to the last number in RCS revision number,
23193  i.e.
23194  '35' in '1.2.35'.
23195  We don't currently support GIT addressing of revisions, one can just compare
23196  edited document with its revision X steps backs, where X is addressed as
23197  
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202 HEAD~X
23203 \end_layout
23204
23205 \end_inset
23206
23207 .
23208 \end_layout
23209
23210 \begin_layout Section
23211 Literate Programming
23212 \end_layout
23213
23214 \begin_layout Standard
23215 Updated by 
23216 \noun on
23217 Kayvan Sylvan 
23218 \noun default
23219 (kayvan@sylvan.com)
23220 \noun on
23221
23222 \noun default
23223 original documentation written by 
23224 \noun on
23225 Edmar Wienskoski Jr.
23226
23227 \noun default
23228  (edmar-w-jr@technologist.com)
23229 \end_layout
23230
23231 \begin_layout Subsection
23232 Introduction
23233 \end_layout
23234
23235 \begin_layout Standard
23236 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23237  for literate
23238  programming, where it is assumed that you are familiar with this programming
23239  technique, and know what 
23240 \begin_inset Quotes eld
23241 \end_inset
23242
23243 tangling
23244 \begin_inset Quotes erd
23245 \end_inset
23246
23247  and 
23248 \begin_inset Quotes eld
23249 \end_inset
23250
23251 weaving
23252 \begin_inset Quotes erd
23253 \end_inset
23254
23255  means.
23256  If that is not the case, please follow the web links provided in the following
23257  sections.
23258  There is a lot of good documentation out there covering old development
23259  history to the latest tools tips.
23260 \end_layout
23261
23262 \begin_layout Standard
23263 It is also assumed that you are familiar with \SpecialChar LyX
23264  itself to a point that you
23265  are comfortable changing your \SpecialChar LyX
23266  preferences, and X resources file.
23267  If that is not the case please refer to other \SpecialChar LyX
23268  documentation to cover your
23269  specific needs.
23270 \end_layout
23271
23272 \begin_layout Subsection
23273 Literate Programming
23274 \end_layout
23275
23276 \begin_layout Standard
23277 From the Literate Programming FAQ: 
23278 \end_layout
23279
23280 \begin_layout Quotation
23281 Literate programming is the combination of documentation and source together
23282  in a fashion suited for reading by human beings.
23283  In fact, literate programs should be enjoyable reading, even inviting!
23284  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23285  and documentation in a single file.
23286  Literate programming tools then parse the file to produce either readable
23287  documentation or compilable source.
23288  The WEB style of literate programming was created by D.
23289 \begin_inset space \thinspace{}
23290 \end_inset
23291
23292 E.
23293  Knuth during the development of his \SpecialChar TeX
23294  typesetting software.
23295  
23296 \end_layout
23297
23298 \begin_layout Standard
23299 Another excerpt says:
23300 \end_layout
23301
23302 \begin_layout Quotation
23303
23304 \emph on
23305 How is literate programming different from verbose commenting?
23306 \end_layout
23307
23308 \begin_layout Quotation
23309 There are three distinguishing characteristics.
23310  In order of importance, they are: 
23311 \end_layout
23312
23313 \begin_deeper
23314 \begin_layout Itemize
23315 flexible order of elaboration 
23316 \end_layout
23317
23318 \begin_layout Itemize
23319 automatic support for browsing 
23320 \end_layout
23321
23322 \begin_layout Itemize
23323 typeset documentation, especially diagrams and mathematics 
23324 \end_layout
23325
23326 \end_deeper
23327 \begin_layout Standard
23328 Now that I sparked your curiosity, take a look in the references.
23329 \end_layout
23330
23331 \begin_layout Subsubsection
23332 References
23333 \end_layout
23334
23335 \begin_layout Standard
23336 The complete Literate Programming FAQ can be found at:
23337 \end_layout
23338
23339 \begin_layout Quote
23340 Literate Programming FAQ 
23341 \begin_inset Flex URL
23342 status open
23343
23344 \begin_layout Plain Layout
23345
23346 http://www.literateprogramming.com/lpfaq.pdf
23347 \end_layout
23348
23349 \end_inset
23350
23351
23352 \end_layout
23353
23354 \begin_layout Standard
23355 The FAQ lists 23 (twenty three!) different literate programming tools.
23356  Where some are specialized or 
23357 \begin_inset Quotes eld
23358 \end_inset
23359
23360 tailored
23361 \begin_inset Quotes erd
23362 \end_inset
23363
23364  for particular programming languages, while other have general scope.
23365  I selected 
23366 \noun on
23367 Noweb
23368 \noun default
23369  for my own use for several reasons:
23370 \end_layout
23371
23372 \begin_layout Itemize
23373 It can generate the documentation either in \SpecialChar LaTeX
23374  or HTML.
23375 \end_layout
23376
23377 \begin_layout Itemize
23378 It has a open architecture, i.
23379 \begin_inset space \thinspace{}
23380 \end_inset
23381
23382 e.
23383 \begin_inset space \space{}
23384 \end_inset
23385
23386 it is easy to plug in new filters
23387 \begin_inset Foot
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391
23392 \emph on
23393 Filters 
23394 \emph default
23395 are programs that read a given data stream and output a manipulated data
23396  stream.
23397  That way, a WEB file (consisting of literate code) can be turned into a
23398  file consisting only of C program code or \SpecialChar LaTeX
23399  code.
23400 \end_layout
23401
23402 \end_inset
23403
23404  and to perform special processing that you may need.
23405  
23406 \end_layout
23407
23408 \begin_layout Itemize
23409 There is a good selection of filters available already (the HTML is one
23410  of them).
23411 \end_layout
23412
23413 \begin_layout Itemize
23414 It is free.
23415 \end_layout
23416
23417 \begin_layout Standard
23418 The Noweb web page can be found at: 
23419 \end_layout
23420
23421 \begin_layout Quote
23422 Noweb home page 
23423 \begin_inset Flex URL
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427
23428 https://www.cs.tufts.edu/~nr/noweb/
23429 \end_layout
23430
23431 \end_inset
23432
23433
23434 \end_layout
23435
23436 \begin_layout Standard
23437 Starting from there you can reach many other interesting links and even
23438  some literate program examples.
23439 \end_layout
23440
23441 \begin_layout Subsection
23442 \SpecialChar LyX
23443  and Literate Programming with Noweb
23444 \end_layout
23445
23446 \begin_layout Standard
23447 The \SpecialChar LyX
23448  support for Literate Programming is provided by using the generic \SpecialChar LyX
23449
23450  converters mechanism.
23451  This support is provided in a 
23452 \begin_inset Quotes eld
23453 \end_inset
23454
23455 Noweb independent
23456 \begin_inset Quotes erd
23457 \end_inset
23458
23459  way, i.
23460 \begin_inset space \thinspace{}
23461 \end_inset
23462
23463 e.
23464 \begin_inset space \space{}
23465 \end_inset
23466
23467 you will be able to use this new \SpecialChar LyX
23468  feature with some other literate programming
23469  tool of your choice by just changing your \SpecialChar LyX
23470  preferences.
23471 \end_layout
23472
23473 \begin_layout Subsubsection
23474 Generating documents and code (weaving and tangling)
23475 \end_layout
23476
23477 \begin_layout Paragraph
23478 Using the noweb module
23479 \end_layout
23480
23481 \begin_layout Standard
23482 If you have installed Noweb and \SpecialChar LyX
23483  successfully, whenever you open a new document,
23484  after you have chosen its document class, use the 
23485 \family sans
23486 Document\SpecialChar menuseparator
23487 Settings
23488 \family default
23489  menu to add the 
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493 noweb
23494 \begin_inset Quotes erd
23495 \end_inset
23496
23497  module.
23498  If Noweb is correctly installed, when you click on the 
23499 \begin_inset Quotes eld
23500 \end_inset
23501
23502 Modules
23503 \begin_inset Quotes erd
23504 \end_inset
23505
23506  link, you will see the 
23507 \begin_inset Quotes eld
23508 \end_inset
23509
23510 noweb
23511 \begin_inset Quotes erd
23512 \end_inset
23513
23514  module in the available list and you can add it to your document.
23515 \end_layout
23516
23517 \begin_layout Paragraph
23518 Typing code in
23519 \end_layout
23520
23521 \begin_layout Standard
23522 \SpecialChar LyX
23523  enables you to write code with a custom inset named 
23524 \begin_inset Flex Noun
23525 status collapsed
23526
23527 \begin_layout Plain Layout
23528 Chunk
23529 \end_layout
23530
23531 \end_inset
23532
23533 .
23534  Noweb delimits chunks like this:
23535 \end_layout
23536
23537 \begin_layout LyX-Code
23538 <<My code>>=
23539 \end_layout
23540
23541 \begin_layout LyX-Code
23542   code
23543 \end_layout
23544
23545 \begin_layout LyX-Code
23546   more code
23547 \end_layout
23548
23549 \begin_layout LyX-Code
23550   even more code
23551 \end_layout
23552
23553 \begin_layout LyX-Code
23554   @
23555 \end_layout
23556
23557 \begin_layout Standard
23558 The problem is that whatever is written in between the << and the 
23559 \family typewriter
23560 @
23561 \family default
23562  must be taken literally, i.
23563 \begin_inset space \thinspace{}
23564 \end_inset
23565
23566 e.
23567 \begin_inset space \space{}
23568 \end_inset
23569
23570 \SpecialChar LyX
23571  should be prevented from making any special interpretation of what has
23572  been written.
23573  This is also handled by 
23574 \begin_inset Flex Noun
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 Chunk
23579 \end_layout
23580
23581 \end_inset
23582
23583 , that works like a normal text inset but has a free spacing capability.
23584 \end_layout
23585
23586 \begin_layout Standard
23587 As a special note, you can also use the 
23588 \begin_inset Quotes eld
23589 \end_inset
23590
23591 %def
23592 \begin_inset Quotes erd
23593 \end_inset
23594
23595  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23596 rence:
23597 \end_layout
23598
23599 \begin_layout LyX-Code
23600 <<My chunk>>=
23601 \end_layout
23602
23603 \begin_layout LyX-Code
23604 def some_function(args):
23605 \end_layout
23606
23607 \begin_layout LyX-Code
23608    "This is the doc string for this function."
23609 \end_layout
23610
23611 \begin_layout LyX-Code
23612    print "My args: ", args
23613 \end_layout
23614
23615 \begin_layout LyX-Code
23616 @ %def some_function
23617 \end_layout
23618
23619 \begin_layout Standard
23620 For an example of this usage and the resulting cross-reference output, look
23621  at the Literate python program in 
23622 \emph on
23623 LIBDIR/examples/listerrors.lyx
23624 \emph default
23625  which should make this all clear.
23626 \end_layout
23627
23628 \begin_layout Paragraph
23629 Generating the documentation
23630 \end_layout
23631
23632 \begin_layout Standard
23633 At this point you already have a new document file with a proper document
23634  class, and with some code and text on it.
23635  How do I print it? The answer is simple, you select 
23636 \family sans
23637 View\SpecialChar menuseparator
23638 DVI,
23639 \family default
23640  etc.
23641  Just like you would do for a plain document.
23642  No special procedure is required.
23643 \end_layout
23644
23645 \begin_layout Standard
23646 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23647 :
23648 \end_layout
23649
23650 \begin_layout Enumerate
23651 When the 
23652 \family sans
23653 Update\SpecialChar menuseparator
23654 DVI
23655 \family default
23656  menu option is chosen, a \SpecialChar LaTeX
23657  file is generated.
23658  
23659 \end_layout
23660
23661 \begin_deeper
23662 \begin_layout Standard
23663 If the document is of any literate class the generated file will be named
23664  with an extension name defined by the 
23665 \begin_inset Quotes eld
23666 \end_inset
23667
23668 literate
23669 \begin_inset Quotes erd
23670 \end_inset
23671
23672  format (defined in the Preferences panel), otherwise the file will have
23673  the usual 
23674 \family typewriter
23675 .tex
23676 \family default
23677  extension.
23678 \end_layout
23679
23680 \end_deeper
23681 \begin_layout Enumerate
23682 Note that the only difference so far is in the name of the file, no special
23683  processing is required by \SpecialChar LyX
23684 .
23685  Given that you formatted the code using the 
23686 \begin_inset Flex Noun
23687 status collapsed
23688
23689 \begin_layout Plain Layout
23690 Chunk
23691 \end_layout
23692
23693 \end_inset
23694
23695  inset that, by itself, takes care of the business.
23696 \end_layout
23697
23698 \begin_layout Enumerate
23699 If the document is of any literate class \SpecialChar LyX
23700  will then use the internal \SpecialChar LyX
23701  to
23702  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23703  converter
23704 \begin_inset Foot
23705 status collapsed
23706
23707 \begin_layout Plain Layout
23708 The converters are defined in the 
23709 \family sans
23710 Tools\SpecialChar menuseparator
23711 Preferences
23712 \family default
23713  panel, under the 
23714 \begin_inset Quotes eld
23715 \end_inset
23716
23717 Conversion
23718 \begin_inset Quotes erd
23719 \end_inset
23720
23721  tab.
23722  See section 
23723 \emph on
23724 Converters
23725 \emph default
23726  of the 
23727 \emph on
23728 Customization
23729 \emph default
23730  manual for general information about converters.
23731 \end_layout
23732
23733 \end_inset
23734
23735  to generate the \SpecialChar LaTeX
23736  file.
23737 \end_layout
23738
23739 \begin_deeper
23740 \begin_layout Standard
23741 Otherwise it will just skip this step.
23742 \end_layout
23743
23744 \end_deeper
23745 \begin_layout Enumerate
23746 Finally, \SpecialChar LaTeX
23747  is invoked and the regular post processing continues as in a plain
23748  document.
23749 \end_layout
23750
23751 \begin_layout Standard
23752 Independence from a particular 
23753 \begin_inset Quotes eld
23754 \end_inset
23755
23756 literate tool
23757 \begin_inset Quotes erd
23758 \end_inset
23759
23760  is easily achieved by changing the commands that are run by the various
23761  converters.
23762 \end_layout
23763
23764 \begin_layout Paragraph
23765 Generating the code
23766 \end_layout
23767
23768 \begin_layout Standard
23769 When the build menu option is chosen or the corresponding button in the
23770  toolbar is pressed, a \SpecialChar LaTeX
23771  file is generated just like step 1 above.
23772  Next, \SpecialChar LyX
23773  invokes the 
23774 \family typewriter
23775 Noweb->Program
23776 \family default
23777  converter.
23778  This converter needs to be defined by the user and is not installed by
23779  default, though the Program format is.
23780  This converter (like any other converter) will have two parts:
23781 \end_layout
23782
23783 \begin_layout Enumerate
23784 The converter program itself.
23785  This program performs the conversion from the one format to the other (in
23786  this case, from the Noweb format to the Program pseudo-format).
23787 \end_layout
23788
23789 \begin_layout Enumerate
23790 The error log parser.
23791  This is a program whose sole purpose is to rewrite error messages in a
23792  format that \SpecialChar LyX
23793  understands.
23794  This makes it possible for \SpecialChar LyX
23795  to place error boxes in the right places in
23796  the file buffer.
23797 \end_layout
23798
23799 \begin_layout Standard
23800 The first part, the 
23801 \begin_inset Quotes eld
23802 \end_inset
23803
23804 Converter
23805 \begin_inset Quotes erd
23806 \end_inset
23807
23808  setting, should be set to
23809 \end_layout
23810
23811 \begin_layout LyX-Code
23812
23813 \family typewriter
23814 build-script $$i
23815 \family default
23816  $$r
23817 \end_layout
23818
23819 \begin_layout Standard
23820 This basically means that \SpecialChar LyX
23821  will call 
23822 \begin_inset Quotes eld
23823 \end_inset
23824
23825 build-script
23826 \begin_inset Quotes erd
23827 \end_inset
23828
23829  (a program or script) with the name of the Noweb file (normally a file
23830  in the \SpecialChar LyX
23831  temp directory) and the directory path of the original \SpecialChar LyX
23832  file.
23833  
23834 \end_layout
23835
23836 \begin_layout Standard
23837 This is an implementation of 
23838 \begin_inset Quotes eld
23839 \end_inset
23840
23841 build-script
23842 \begin_inset Quotes erd
23843 \end_inset
23844
23845  that you can place in a directory on your path:
23846 \end_layout
23847
23848 \begin_layout LyX-Code
23849
23850 \family sans
23851 #!/bin/sh
23852 \end_layout
23853
23854 \begin_layout LyX-Code
23855
23856 \family sans
23857 #
23858 \end_layout
23859
23860 \begin_layout LyX-Code
23861
23862 \family sans
23863 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23864 \end_layout
23865
23866 \begin_layout Standard
23867 The next part of the converter setting is the 
23868 \begin_inset Quotes eld
23869 \end_inset
23870
23871 Flags
23872 \begin_inset Quotes erd
23873 \end_inset
23874
23875  which is to be set to
23876 \end_layout
23877
23878 \begin_layout LyX-Code
23879
23880 \family typewriter
23881 parselog=$$s/scripts/listerrors
23882 \end_layout
23883
23884 \begin_layout Standard
23885 This will run any errors that are generated by the 
23886 \begin_inset Quotes eld
23887 \end_inset
23888
23889 build-script
23890 \begin_inset Quotes erd
23891 \end_inset
23892
23893  process through the 
23894 \begin_inset Quotes eld
23895 \end_inset
23896
23897 listerrors
23898 \begin_inset Quotes erd
23899 \end_inset
23900
23901  program.
23902 \end_layout
23903
23904 \begin_layout Standard
23905 The build will normally take place in \SpecialChar LyX
23906 's temporary directory, so the files
23907  produced by the conversion will be in that directory.
23908  \SpecialChar LyX
23909  will copy out what it regards as the `main' file, but the 
23910 \family typewriter
23911 Noweb->Program
23912 \family default
23913  conversion may produce several files, and so most of these would then be
23914  deleted when \SpecialChar LyX
23915  was closed.
23916  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
23917  the build-script chunk can place the generated files in that location.
23918 \end_layout
23919
23920 \begin_layout Paragraph
23921 Build instructions in the document
23922 \end_layout
23923
23924 \begin_layout Standard
23925 The last piece of the integration between \SpecialChar LyX
23926  and noweb is the 
23927 \begin_inset Quotes eld
23928 \end_inset
23929
23930 build-script
23931 \begin_inset Quotes erd
23932 \end_inset
23933
23934  chunk.
23935  Generally, the instructions for building your program should be embedded
23936  in a chunk of its own.
23937  The noweb-specific 
23938 \begin_inset Quotes eld
23939 \end_inset
23940
23941 build-script
23942 \begin_inset Quotes erd
23943 \end_inset
23944
23945  above uses the notangle command to look for this chunk (called 
23946 \begin_inset Quotes eld
23947 \end_inset
23948
23949 build-script
23950 \begin_inset Quotes erd
23951 \end_inset
23952
23953 ) and runs its contents through 
23954 \begin_inset Quotes eld
23955 \end_inset
23956
23957 sh
23958 \begin_inset Quotes erd
23959 \end_inset
23960
23961 .
23962 \end_layout
23963
23964 \begin_layout Standard
23965 Typically, such a chunk would look something like this:
23966 \end_layout
23967
23968 \begin_layout LyX-Code
23969 <<build-script>>=
23970 \end_layout
23971
23972 \begin_layout LyX-Code
23973 #!/bin/sh
23974 \begin_inset Newline newline
23975 \end_inset
23976
23977 if [ -z "${NOWEB_SOURCE}" ]
23978 \begin_inset Newline newline
23979 \end_inset
23980
23981 then
23982 \end_layout
23983
23984 \begin_layout LyX-Code
23985 NOWEB_SOURCE=myfile.nw
23986 \begin_inset Newline newline
23987 \end_inset
23988
23989 fi
23990 \begin_inset Newline newline
23991 \end_inset
23992
23993 [...
23994  code to extract files ...
23995  use NOWEB_OUTPUT_DIR here ...]
23996 \begin_inset Newline newline
23997 \end_inset
23998
23999 [...
24000  code to compile files ...]
24001 \begin_inset Newline newline
24002 \end_inset
24003
24004 @
24005 \end_layout
24006
24007 \begin_layout Standard
24008 Look in 
24009 \emph on
24010 LIBDIR/examples/listerrors.lyx
24011 \emph default
24012  or in 
24013 \emph on
24014 LIBDIR/examples/Literate.lyx
24015 \emph default
24016  which implement two versions of the 
24017 \begin_inset Quotes eld
24018 \end_inset
24019
24020 listerrors
24021 \begin_inset Quotes erd
24022 \end_inset
24023
24024  program for some illustrations of how all of these pieces go together or
24025  in 
24026 \emph on
24027 LIBDIR/examples/noweb2lyx.lyx.
24028
24029 \emph default
24030  Interestingly, these three files show off the language-indepence of the
24031  \SpecialChar LyX
24032  literate programming support since they are written in Python, C and Perl
24033  respectively.
24034 \end_layout
24035
24036 \begin_layout Subsubsection
24037 Configuring \SpecialChar LyX
24038
24039 \end_layout
24040
24041 \begin_layout Standard
24042 All the Literate Programming support is configured by the 
24043 \family sans
24044 Tools\SpecialChar menuseparator
24045 Preferences
24046 \family default
24047  panel in the 
24048 \begin_inset Quotes eld
24049 \end_inset
24050
24051 File Handling
24052 \begin_inset Quotes erd
24053 \end_inset
24054
24055  tab.
24056  The important parts are:
24057 \end_layout
24058
24059 \begin_layout Description
24060 the
24061 \begin_inset space ~
24062 \end_inset
24063
24064
24065 \begin_inset Quotes eld
24066 \end_inset
24067
24068 NoWeb
24069 \begin_inset Quotes erd
24070 \end_inset
24071
24072
24073 \begin_inset space ~
24074 \end_inset
24075
24076 format Set up via the File Formats tab, this is where the Noweb-specific
24077  pieces are set up.
24078  The 
24079 \family sans
24080 GUI Name
24081 \family default
24082  is set to 
24083 \family typewriter
24084 NoWeb
24085 \family default
24086 , the file extension is set to 
24087 \family typewriter
24088 .nw
24089 \family default
24090 .
24091  This tells \SpecialChar LyX
24092  to create a file with a 
24093 \family typewriter
24094 .nw
24095 \family default
24096  extension in the first step of the conversion process.
24097 \end_layout
24098
24099 \begin_layout Description
24100 the
24101 \begin_inset space ~
24102 \end_inset
24103
24104
24105 \family sans
24106 Program
24107 \family default
24108
24109 \begin_inset space ~
24110 \end_inset
24111
24112 format This is an empty format whose sole purpose is to be the endpoint
24113  of a conversion (which then allows us to set up a converter for it).
24114 \end_layout
24115
24116 \begin_layout Description
24117
24118 \family sans
24119 NoWeb
24120 \family default
24121 ->
24122 \family sans
24123 \SpecialChar LaTeX
24124
24125 \family default
24126  This converter performs the 
24127 \begin_inset Quotes eld
24128 \end_inset
24129
24130 weaving
24131 \begin_inset Quotes erd
24132 \end_inset
24133
24134  of the literate document.
24135  For Noweb, it is set to 
24136 \begin_inset Quotes eld
24137 \end_inset
24138
24139
24140 \family typewriter
24141 noweave -delay -index $$i > $$o
24142 \family default
24143
24144 \begin_inset Quotes erd
24145 \end_inset
24146
24147
24148 \end_layout
24149
24150 \begin_layout Description
24151
24152 \family sans
24153 NoWeb
24154 \family default
24155 ->
24156 \family sans
24157 Program
24158 \family default
24159  This performs the 
24160 \begin_inset Quotes eld
24161 \end_inset
24162
24163 tangling step
24164 \begin_inset Quotes erd
24165 \end_inset
24166
24167 .
24168  As stated above, the Converter is set to 
24169 \begin_inset Quotes eld
24170 \end_inset
24171
24172
24173 \family typewriter
24174 build-script $$i
24175 \family default
24176  $$r
24177 \begin_inset Quotes erd
24178 \end_inset
24179
24180 , with Flags set to
24181 \begin_inset Newline newline
24182 \end_inset
24183
24184
24185 \begin_inset Quotes eld
24186 \end_inset
24187
24188
24189 \family typewriter
24190 parselog=$$s/scripts/listerrors
24191 \family default
24192
24193 \begin_inset Quotes erd
24194 \end_inset
24195
24196 .
24197 \end_layout
24198
24199 \begin_layout Subsubsection
24200 Debug extensions
24201 \end_layout
24202
24203 \begin_layout Standard
24204 There is also a new function implemented in the \SpecialChar LyX
24205  server, the 
24206 \begin_inset Quotes eld
24207 \end_inset
24208
24209 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24210  
24211 \end_layout
24212
24213 \begin_layout Standard
24214 When debugging code with ddd/gdb, it is possible to invoke a text editor
24215  at the current execution position with a single key stroke.
24216  The default ddd configuration for that is shift-ctrl-V.
24217  It happens that you can define the editor command line invocation in ddd
24218  by accessing the 
24219 \family sans
24220 Edit\SpecialChar menuseparator
24221 Preferences\SpecialChar menuseparator
24222 Helpers
24223 \family default
24224  dialog and changing the "Edit Sources" entry.
24225 \end_layout
24226
24227 \begin_layout Standard
24228 I take advantage of the newly created \SpecialChar LyX
24229  server function and this ddd feature,
24230  and set 
24231 \begin_inset Quotes eld
24232 \end_inset
24233
24234 Edit Sources
24235 \begin_inset Quotes erd
24236 \end_inset
24237
24238  to:
24239 \end_layout
24240
24241 \begin_layout LyX-Code
24242 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24243 \end_layout
24244
24245 \begin_layout Standard
24246 With this, whenever you are using ddd and find a point in the program that
24247  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24248  ddd will forward this information to \SpecialChar LyX
24249  through the \SpecialChar LyX
24250  server and then the
24251  \SpecialChar LyX
24252  window will show the same file with the cursor at the same position ddd
24253  was pointing to.
24254  No more guessing or long scrolling to locate a point in the program back
24255  from debugging !
24256 \end_layout
24257
24258 \begin_layout Standard
24259 Note however that you must enable the \SpecialChar LyX
24260  server to get this feature working
24261  (it is disabled by default).
24262  Sec.
24263 \begin_inset space ~
24264 \end_inset
24265
24266
24267 \begin_inset CommandInset ref
24268 LatexCommand ref
24269 reference "sec:Starting-the-Server"
24270
24271 \end_inset
24272
24273  explains how to do that.
24274 \end_layout
24275
24276 \begin_layout Subsubsection
24277 Toolbar extensions
24278 \end_layout
24279
24280 \begin_layout Standard
24281 There are six new buttons that can be added to your \SpecialChar LyX
24282  toolbar.
24283  Four of these buttons are short cuts to layout styles: 
24284 \family sans
24285 Standard
24286 \family default
24287
24288 \family sans
24289 Section
24290 \family default
24291
24292 \family sans
24293 \SpecialChar LaTeX
24294
24295 \family default
24296 , and 
24297 \family sans
24298 \SpecialChar LyX
24299 -Code
24300 \family default
24301 , one for the custom inset 
24302 \family sans
24303 Chunk
24304 \family default
24305 .
24306  The last one is a short cut to the 
24307 \begin_inset Quotes eld
24308 \end_inset
24309
24310 Build Program
24311 \begin_inset Quotes erd
24312 \end_inset
24313
24314  File menu entry.
24315  
24316 \end_layout
24317
24318 \begin_layout Standard
24319 \SpecialChar LyX
24320  has a range of buttons that are available for tool bar customization.
24321  In my toolbar I like to combine the six short cuts above with two more:
24322  One for 
24323 \family sans
24324 Document
24325 \family default
24326 \SpecialChar menuseparator
24327
24328 \family sans
24329 Update
24330 \family default
24331 \SpecialChar menuseparator
24332
24333 \family sans
24334 DVI
24335 \family default
24336  and the other for 
24337 \family sans
24338 Document\SpecialChar menuseparator
24339 View\SpecialChar menuseparator
24340 DVI
24341 \family default
24342  File menu entries.
24343  Here is how it looks like:
24344 \end_layout
24345
24346 \begin_layout LyX-Code
24347 Toolbar
24348 \end_layout
24349
24350 \begin_layout LyX-Code
24351   Layouts
24352 \end_layout
24353
24354 \begin_layout LyX-Code
24355   Icon "layout Standard"
24356 \end_layout
24357
24358 \begin_layout LyX-Code
24359   Icon "layout Section"
24360 \end_layout
24361
24362 \begin_layout LyX-Code
24363   Icon "layout \SpecialChar LaTeX
24364 "
24365 \end_layout
24366
24367 \begin_layout LyX-Code
24368   Icon "layout \SpecialChar LyX
24369 -Code"
24370 \end_layout
24371
24372 \begin_layout LyX-Code
24373   Icon "flex.insert Chunk"
24374 \end_layout
24375
24376 \begin_layout LyX-Code
24377   Separator
24378 \end_layout
24379
24380 \begin_layout LyX-Code
24381   Icon "buffer-view"
24382 \end_layout
24383
24384 \begin_layout LyX-Code
24385   Icon "buffer-typeset"
24386 \end_layout
24387
24388 \begin_layout LyX-Code
24389   Icon "build-program"
24390 \end_layout
24391
24392 \begin_layout LyX-Code
24393   Separator
24394 \end_layout
24395
24396 \begin_layout LyX-Code
24397 .
24398 \end_layout
24399
24400 \begin_layout LyX-Code
24401 .
24402 \end_layout
24403
24404 \begin_layout LyX-Code
24405 .
24406 \end_layout
24407
24408 \begin_layout LyX-Code
24409 End
24410 \end_layout
24411
24412 \begin_layout Subsubsection
24413 Colors customization
24414 \end_layout
24415
24416 \begin_layout Standard
24417 There are a number of colors in \SpecialChar LyX
24418  that can be customized in 
24419 \family sans
24420 Preferences
24421 \family default
24422 .
24423  One of the things that bothers people is the \SpecialChar LaTeX
24424  font color.
24425  The default color is red, since the chunks uses \SpecialChar LaTeX
24426  font, and there is a lot
24427  of chunks in literate documents, you may get tired of seeing everything
24428  in red.
24429  You can change it by going to the tabs 
24430 \family sans
24431 Look&Feel
24432 \family default
24433
24434 \family sans
24435 Colors.
24436 \end_layout
24437
24438 \begin_layout Standard
24439 The next thing is the visible presence of the newline character in the screen.
24440  You can choose the color of this particular character and make it blend
24441  in the background.
24442  I recommend you choosing a color that is close to the background but not
24443  equal, that way you still can see it is there, but it is not bothering
24444  you anymore.
24445 \end_layout
24446
24447 \begin_layout Subsection
24448 \SpecialChar LyX
24449  and knitr/Sweave
24450 \end_layout
24451
24452 \begin_layout Standard
24453 Support for 
24454 \family sans
24455 knitr
24456 \family default
24457  and 
24458 \family sans
24459 Sweave
24460 \family default
24461  is documented in the 
24462 \emph on
24463 knitr.lyx
24464 \emph default
24465  example file and in the Sweave manual (menu 
24466 \family sans
24467 Help\SpecialChar menuseparator
24468 Specific Manuals
24469 \family default
24470 ).
24471 \end_layout
24472
24473 \begin_layout Chapter
24474 Special features
24475 \end_layout
24476
24477 \begin_layout Standard
24478 You can do everything with \SpecialChar LyX
24479  that you can do with \SpecialChar LaTeX
24480 .
24481  However, \SpecialChar LyX
24482  cannot support every \SpecialChar LaTeX
24483  feature directly.
24484  But you can always use \SpecialChar TeX
24485  Code.
24486  This chapter shows you some more special things you might want to use.
24487  For other special things you can do with figures, tables, floats, boxes
24488  and notes, have a look at the 
24489 \emph on
24490 Embedded
24491 \begin_inset space ~
24492 \end_inset
24493
24494 Objects
24495 \emph default
24496  manual.
24497 \end_layout
24498
24499 \begin_layout Section
24500 Multiple Text Columns
24501 \end_layout
24502
24503 \begin_layout Standard
24504 This feature is independent of the option 
24505 \family sans
24506 Two-column document
24507 \family default
24508  in the document settings under 
24509 \family sans
24510 Text Layout
24511 \family default
24512 .
24513  If you want to have 2
24514 \begin_inset space ~
24515 \end_inset
24516
24517 columns for the whole document, it is recommended to use the 
24518 \family sans
24519 Two-column document
24520 \family default
24521  option.
24522  For all other cases use this feature.
24523 \end_layout
24524
24525 \begin_layout Standard
24526 To use multiple text columns in your document, you have to load the module
24527  
24528 \family sans
24529 Multiple Columns
24530 \family default
24531  (menu 
24532 \family sans
24533 Document\SpecialChar menuseparator
24534 Settings\SpecialChar menuseparator
24535 Modules
24536 \family default
24537 ) and must have the \SpecialChar LaTeX
24538 -package 
24539 \begin_inset Flex Code
24540 status collapsed
24541
24542 \begin_layout Plain Layout
24543 multicol
24544 \end_layout
24545
24546 \end_inset
24547
24548  installed.
24549 \end_layout
24550
24551 \begin_layout Standard
24552 Footnotes within multiple columns will be placed at the bottom of the page
24553  and not under each column.
24554  Within the different columns you can use everything, with the limitation
24555  that for floats you need to use the float option 
24556 \family sans
24557 Span columns
24558 \family default
24559 .
24560 \end_layout
24561
24562 \begin_layout Subsection
24563 Basics
24564 \end_layout
24565
24566 \begin_layout Standard
24567 If you want to have 2
24568 \begin_inset space ~
24569 \end_inset
24570
24571 columns in your text, insert a multicolumn inset via the menu 
24572 \family sans
24573 Insert\SpecialChar menuseparator
24574 Custom
24575 \begin_inset space ~
24576 \end_inset
24577
24578 Insets\SpecialChar menuseparator
24579 Multiple
24580 \begin_inset space ~
24581 \end_inset
24582
24583 Columns
24584 \family default
24585  where the columns should start.
24586  Write all text that should be printed in 2
24587 \begin_inset space ~
24588 \end_inset
24589
24590 columns into this inset.
24591 \end_layout
24592
24593 \begin_layout Standard
24594 Here is an example:
24595 \end_layout
24596
24597 \begin_layout Standard
24598 \noindent
24599 \begin_inset Flex Multiple Columns
24600 status open
24601
24602 \begin_layout Plain Layout
24603 \noindent
24604
24605 \series bold
24606 \size small
24607 The Adventure of the Empty House
24608 \series default
24609
24610 \begin_inset Newline newline
24611 \end_inset
24612
24613 by Sir Arthur Conan Doyle
24614 \end_layout
24615
24616 \begin_layout Plain Layout
24617
24618 \size small
24619 It was in the spring of the year 1894 that all London was interested, and
24620  the fashionable world dismayed, by the murder of the Honourable Ronald
24621  Adair under most unusual and inexplicable circumstances.
24622  The public has already learned those particulars of the crime which came
24623  out in the police investigation, but a good deal was suppressed upon that
24624  occasion, since the case for the prosecution was so overwhelmingly strong
24625  that it was not necessary to bring forward all the facts.
24626  Only now, at the end of nearly ten years, am I allowed to supply those
24627  missing links which make up the whole of that remarkable chain.
24628  The crime was of interest in itself, but that interest was as nothing to
24629  me compared to the inconceivable sequel, which afforded me the greatest
24630  shock and surprise of any event in my adventurous life.
24631  Even now, after this long interval, I find myself thrilling as I think
24632  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24633 ty which utterly submerged my mind.
24634  Let me say to that public, which has shown some interest in those glimpses
24635  which I have occasionally given them of the thoughts and actions of a very
24636  remarkable man, that they are not to blame me if I have not shared my knowledge
24637  with them, for I should have considered it my first duty to do so, had
24638  I not been barred by a positive prohibition from his own lips, which was
24639  only withdrawn upon the third of last month.
24640 \end_layout
24641
24642 \end_inset
24643
24644
24645 \end_layout
24646
24647 \begin_layout Standard
24648 To get 3 or more columns, set the cursor into the multicolumn inset and
24649  use the menu 
24650 \family sans
24651 Insert\SpecialChar menuseparator
24652 Number
24653 \begin_inset space ~
24654 \end_inset
24655
24656 of
24657 \begin_inset space ~
24658 \end_inset
24659
24660 Columns
24661 \family default
24662 .
24663  The number of the desired columns is written into that inset (for 3
24664 \begin_inset space ~
24665 \end_inset
24666
24667 columns write 
24668 \begin_inset Quotes eld
24669 \end_inset
24670
24671 3
24672 \begin_inset Quotes erd
24673 \end_inset
24674
24675 ).
24676 \begin_inset Newline newline
24677 \end_inset
24678
24679 Here is an example with 3
24680 \begin_inset space ~
24681 \end_inset
24682
24683 columns:
24684 \end_layout
24685
24686 \begin_layout Standard
24687 \begin_inset Flex Multiple Columns
24688 status open
24689
24690 \begin_layout Plain Layout
24691
24692 \size footnotesize
24693 \begin_inset Argument 1
24694 status open
24695
24696 \begin_layout Plain Layout
24697
24698 3
24699 \end_layout
24700
24701 \end_inset
24702
24703 It can be imagined that my close intimacy with Sherlock Holmes had interested
24704  me deeply in crime, and that after his disappearance I never failed to
24705  read with care the various problems which came before the public.
24706  And I even attempted, more than once, for my own private satisfaction,
24707  to employ his methods in their solution, though with indifferent success.
24708  There was none, however, which appealed to me like this tragedy of Ronald
24709  Adair.
24710  As I read the evidence at the inquest, which led up to a verdict of willful
24711  murder against some person or persons unknown, I realized more clearly
24712  than I had ever done the loss which the community had sustained by the
24713  death of Sherlock Holmes.
24714  There were points about this strange business which would, I was sure,
24715  have specially appealed to him, and the efforts of the police would have
24716  been supplemented, or more probably anticipated, by the trained observation
24717  and the alert mind of the first criminal agent in Europe.
24718  All day, as I drove upon my round, I turned over the case in my mind and
24719  found no explanation which appeared to me to be adequate.
24720  At the risk of telling a twice-told tale, I will recapitulate the facts
24721  as they were known to the public at the conclusion of the inquest.
24722 \end_layout
24723
24724 \end_inset
24725
24726
24727 \end_layout
24728
24729 \begin_layout Standard
24730 You can have up to 10
24731 \begin_inset space ~
24732 \end_inset
24733
24734 columns if you want to, but that might not be very pleasant for the readers
24735  of your document.
24736 \end_layout
24737
24738 \begin_layout Standard
24739 \begin_inset Newpage newpage
24740 \end_inset
24741
24742
24743 \end_layout
24744
24745 \begin_layout Subsection
24746 Columns inside Columns
24747 \end_layout
24748
24749 \begin_layout Standard
24750 You can also have columns inside columns:
24751 \end_layout
24752
24753 \begin_layout Standard
24754 \begin_inset Flex Multiple Columns
24755 status open
24756
24757 \begin_layout Plain Layout
24758
24759 \size footnotesize
24760 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24761  at that time governor of one of the Australian colonies.
24762  Adair's mother had returned from Australia to undergo the operation for
24763  cataract, and she, her son Ronald, and her daughter Hilda were living together
24764  at 427 Park Lane.
24765 \end_layout
24766
24767 \begin_layout Plain Layout
24768 \begin_inset Flex Multiple Columns
24769 status open
24770
24771 \begin_layout Plain Layout
24772
24773 \size footnotesize
24774 The youth moved in the best society–had, so far as was known, no enemies
24775  and no particular vices.
24776  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24777  had been broken off by mutual consent some months before, and there was
24778  no sign that it had left any very profound feeling behind it.
24779  For the rest {sic} the man's life moved in a narrow and conventional circle,
24780  for his habits were quiet and his nature unemotional.
24781  Yet it was upon this easy-going young aristocrat that death came, in most
24782  strange and unexpected form, between the hours of ten and eleven-twenty
24783  on the night of March 30, 1894.
24784 \end_layout
24785
24786 \end_inset
24787
24788
24789 \end_layout
24790
24791 \begin_layout Plain Layout
24792
24793 \size footnotesize
24794 Ronald Adair was fond of cards–playing continually, but never for such stakes
24795  as would hurt him.
24796  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24797  It was shown that, after dinner on the day of his death, he had played
24798  a rubber of whist at the latter club.
24799  He had also played there in the afternoon.
24800
24801 \size default
24802  
24803 \size footnotesize
24804 The evidence of those who had played with him– Mr.
24805  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
24806  and that there was a fairly equal fall of the cards.
24807  Adair might have lost five pounds, but not more.
24808  His fortune was a considerable one, and such a loss could not in any way
24809  affect him.
24810  He had played nearly every day at one club or other, but he was a cautious
24811  player, and usually rose a winner.
24812  It came out in evidence that, in partnership with Colonel Moran, he had
24813  actually won as much as four hundred and twenty pounds in a sitting, some
24814  weeks before, from Godfrey Milner and Lord Balmoral.
24815  So much for his recent history as it came out at the inquest.
24816 \end_layout
24817
24818 \end_inset
24819
24820
24821 \end_layout
24822
24823 \begin_layout Subsection
24824 Advanced Examples
24825 \end_layout
24826
24827 \begin_layout Standard
24828 The examples in this section show some more special features of multiple
24829  columns.
24830 \end_layout
24831
24832 \begin_layout Standard
24833 For more features of multiple columns, have a look at the 
24834 \begin_inset CommandInset href
24835 LatexCommand href
24836 name "documentation"
24837 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24838 literal "false"
24839
24840 \end_inset
24841
24842  of the \SpecialChar LaTeX
24843 -package 
24844 \begin_inset Flex Code
24845 status collapsed
24846
24847 \begin_layout Plain Layout
24848 multicol
24849 \end_layout
24850
24851 \end_inset
24852
24853 .
24854 \end_layout
24855
24856 \begin_layout Subsubsection
24857 Preface
24858 \end_layout
24859
24860 \begin_layout Standard
24861 To add a preface text for multiple columns, set the cursor into the multicolumn
24862  inset and use the menu 
24863 \family sans
24864 Insert\SpecialChar menuseparator
24865 Preface
24866 \family default
24867 .
24868  Write your preface text into that inset.
24869 \begin_inset Newline newline
24870 \end_inset
24871
24872 This is an example with some preface text:
24873 \end_layout
24874
24875 \begin_layout Standard
24876 \begin_inset VSpace bigskip
24877 \end_inset
24878
24879
24880 \end_layout
24881
24882 \begin_layout Standard
24883 \begin_inset Flex Multiple Columns
24884 status open
24885
24886 \begin_layout Plain Layout
24887 \begin_inset Argument 2
24888 status open
24889
24890 \begin_layout Plain Layout
24891 And the story continues and continues and continues and continues\SpecialChar ldots
24892
24893 \end_layout
24894
24895 \end_inset
24896
24897
24898 \size small
24899 On the evening of the crime, he returned from the club exactly at ten.
24900  His mother and sister were out spending the evening with a relation.
24901  The servant deposed that she heard him enter the front room on the second
24902  floor, generally used as his sitting-room.
24903  She had lit a fire there, and as it smoked she had opened the window.
24904  No sound was heard from the room until eleven-twenty, the hour of the return
24905  of Lady Maynooth and her daughter.
24906  Desiring to say good-night, she attempted to enter her son's room.
24907  The door was locked on the inside, and no answer could be got to their
24908  cries and knocking.
24909  Help was obtained, and the door forced.
24910  The unfortunate young man was found lying near the table.
24911  His head had been horribly mutilated by an expanding revolver bullet, but
24912  no weapon of any sort was to be found in the room.
24913 \end_layout
24914
24915 \end_inset
24916
24917
24918 \end_layout
24919
24920 \begin_layout Standard
24921 You can also use a section heading as the preface if you use a section command
24922  as \SpecialChar TeX
24923  Code.
24924  For example the command
24925 \end_layout
24926
24927 \begin_layout LyX-Code
24928
24929 \backslash
24930 subsection{subsection title}
24931 \end_layout
24932
24933 \begin_layout Standard
24934 creates a subsection.
24935  In this example the preface is a subsubsection:
24936 \end_layout
24937
24938 \begin_layout Standard
24939 \begin_inset Flex Multiple Columns
24940 status open
24941
24942 \begin_layout Plain Layout
24943 \begin_inset Argument 2
24944 status open
24945
24946 \begin_layout Plain Layout
24947 \begin_inset ERT
24948 status collapsed
24949
24950 \begin_layout Plain Layout
24951
24952
24953 \backslash
24954 subsubsection{
24955 \end_layout
24956
24957 \end_inset
24958
24959 This is a subsubsection heading as a preface
24960 \begin_inset ERT
24961 status collapsed
24962
24963 \begin_layout Plain Layout
24964
24965 }
24966 \end_layout
24967
24968 \end_inset
24969
24970
24971 \end_layout
24972
24973 \end_inset
24974
24975
24976 \size small
24977 A minute examination of the circumstances served only to make the case more
24978  complex.
24979  In the first place, no reason could be given why the young man should have
24980  fastened the door upon the inside.
24981  There was the possibility that the murderer had done this, and had afterwards
24982  escaped by the window.
24983  The drop was at least twenty feet, however, and a bed of crocuses in full
24984  bloom lay beneath.
24985  Neither the flowers nor the earth showed any sign of having been disturbed,
24986  nor were there any marks upon the narrow strip of grass which separated
24987  the house from the road.
24988  Apparently, therefore, it was the young man himself who had fastened the
24989  door.
24990  But how did he come by his death? No one could have climbed up to the window
24991  without leaving traces.
24992  Suppose a man had fired through the window, he would indeed be a remarkable
24993  shot who could with a revolver inflict so deadly a wound.
24994  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
24995  a hundred yards of the house.
24996  No one had heard a shot.
24997 \end_layout
24998
24999 \end_inset
25000
25001
25002 \end_layout
25003
25004 \begin_layout Standard
25005 If there is less vertical space than 6
25006 \begin_inset space ~
25007 \end_inset
25008
25009 text lines is left on the page at the beginning of the multiple columns,
25010  a page break will be inserted before the multiple columns.
25011  Depending on the number of lines of the preface text, you might want to
25012  change this space.
25013  This is done by setting the cursor into the mulitcolumn inset behind the
25014  preface (if there is any) and using the menu 
25015 \family sans
25016 Insert\SpecialChar menuseparator
25017 Space
25018 \begin_inset space ~
25019 \end_inset
25020
25021 Before
25022 \begin_inset space ~
25023 \end_inset
25024
25025 Page
25026 \begin_inset space ~
25027 \end_inset
25028
25029 Break
25030 \family default
25031 .
25032  Insert into that inset the amount of space like e.
25033 \begin_inset space \thinspace{}
25034 \end_inset
25035
25036 g.
25037 \begin_inset space \space{}
25038 \end_inset
25039
25040
25041 \begin_inset Quotes eld
25042 \end_inset
25043
25044 5cm
25045 \begin_inset Quotes erd
25046 \end_inset
25047
25048 .
25049 \begin_inset Newline newline
25050 \end_inset
25051
25052 In this example the space is set to 7
25053 \begin_inset space ~
25054 \end_inset
25055
25056 text lines by using 
25057 \begin_inset Flex Code
25058 status collapsed
25059
25060 \begin_layout Plain Layout
25061 7
25062 \backslash
25063 baselineskip
25064 \end_layout
25065
25066 \end_inset
25067
25068  (where the command 
25069 \begin_inset Flex Code
25070 status collapsed
25071
25072 \begin_layout Plain Layout
25073
25074 \backslash
25075 baselineskip
25076 \end_layout
25077
25078 \end_inset
25079
25080  needs to be inserted as \SpecialChar TeX
25081  code):
25082 \end_layout
25083
25084 \begin_layout Standard
25085 \begin_inset Flex Multiple Columns
25086 status open
25087
25088 \begin_layout Plain Layout
25089 \begin_inset Argument 3
25090 status open
25091
25092 \begin_layout Plain Layout
25093 7
25094 \begin_inset ERT
25095 status collapsed
25096
25097 \begin_layout Plain Layout
25098
25099
25100 \backslash
25101 baselineskip
25102 \end_layout
25103
25104 \end_inset
25105
25106
25107 \end_layout
25108
25109 \end_inset
25110
25111
25112 \size small
25113 On the evening of the crime, he returned from the club exactly at ten.
25114  His mother and sister were out spending the evening with a relation.
25115  The servant deposed that she heard him enter the front room on the second
25116  floor, generally used as his sitting-room.
25117  She had lit a fire there, and as it smoked she had opened the window.
25118  No sound was heard from the room until eleven-twenty, the hour of the return
25119  of Lady Maynooth and her daughter.
25120  Desiring to say good-night, she attempted to enter her son's room.
25121  The door was locked on the inside, and no answer could be got to their
25122  cries and knocking.
25123  Help was obtained, and the door forced.
25124  The unfortunate young man was found lying near the table.
25125  His head had been horribly mutilated by an expanding revolver bullet, but
25126  no weapon of any sort was to be found in the room.
25127 \end_layout
25128
25129 \end_inset
25130
25131
25132 \end_layout
25133
25134 \begin_layout Subsubsection
25135 Surrounding Space
25136 \end_layout
25137
25138 \begin_layout Standard
25139 The amount of space before and after multiple columns can be changed by
25140  changing the length 
25141 \begin_inset Flex Code
25142 status collapsed
25143
25144 \begin_layout Plain Layout
25145
25146 \backslash
25147 multicolsep
25148 \end_layout
25149
25150 \end_inset
25151
25152 .
25153  For example the command
25154 \end_layout
25155
25156 \begin_layout LyX-Code
25157
25158 \backslash
25159 setlength{
25160 \backslash
25161 multicolsep}{3cm}
25162 \end_layout
25163
25164 \begin_layout Standard
25165 in \SpecialChar TeX
25166  Code changes its value to 3
25167 \begin_inset space \thinspace{}
25168 \end_inset
25169
25170 cm.
25171  The change must be made before the multiple columns' start.
25172  The predefined value is 13
25173 \begin_inset space \thinspace{}
25174 \end_inset
25175
25176 pt.
25177 \end_layout
25178
25179 \begin_layout Standard
25180 For this example 
25181 \begin_inset Flex Code
25182 status collapsed
25183
25184 \begin_layout Plain Layout
25185
25186 \backslash
25187 multicolsep
25188 \end_layout
25189
25190 \end_inset
25191
25192  was set to 2.5
25193 \begin_inset space \thinspace{}
25194 \end_inset
25195
25196 cm:
25197 \end_layout
25198
25199 \begin_layout Standard
25200 \begin_inset ERT
25201 status open
25202
25203 \begin_layout Plain Layout
25204
25205
25206 \backslash
25207 setlength{
25208 \backslash
25209 multicolsep}{2.5cm}
25210 \end_layout
25211
25212 \end_inset
25213
25214
25215 \end_layout
25216
25217 \begin_layout Standard
25218 \begin_inset Flex Multiple Columns
25219 status open
25220
25221 \begin_layout Plain Layout
25222
25223 \size small
25224 All day I turned these facts over in my mind, endeavouring to hit upon some
25225  theory which could reconcile them all, and to find that line of least resistanc
25226 e which my poor friend had declared to be the starting-point of every investigat
25227 ion.
25228  I confess that I made little progress.
25229  In the evening I strolled across the Park, and found myself about six o'clock
25230  at the Oxford Street end of Park Lane.
25231  A group of loafers upon the pavements, all staring up at a particular window,
25232  directed me to the house which I had come to see.
25233  A tall, thin man with coloured glasses, whom I strongly suspected of being
25234  a plain-clothes detective, was pointing out some theory of his own, while
25235  the others crowded round to listen to what he said.
25236  I got as near him as I could, but his observations seemed to me to be absurd,
25237  so I withdrew again in some disgust.
25238  As I did so I struck against an elderly, deformed man, who had been behind
25239  me, and I knocked down several books which he was carrying.
25240 \end_layout
25241
25242 \end_inset
25243
25244
25245 \end_layout
25246
25247 \begin_layout Standard
25248 \begin_inset Note Greyedout
25249 status open
25250
25251 \begin_layout Plain Layout
25252
25253 \series bold
25254 Note:
25255 \series default
25256  The values you set with 
25257 \begin_inset Flex Code
25258 status collapsed
25259
25260 \begin_layout Plain Layout
25261
25262 \backslash
25263 setlength
25264 \end_layout
25265
25266 \end_inset
25267
25268  will be used for all following multiple columns until you change them again.
25269 \end_layout
25270
25271 \end_inset
25272
25273
25274 \end_layout
25275
25276 \begin_layout Standard
25277 \begin_inset ERT
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281
25282
25283 \backslash
25284 setlength{
25285 \backslash
25286 multicolsep}{13pt}
25287 \end_layout
25288
25289 \end_inset
25290
25291
25292 \begin_inset Note Note
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 go back to the default
25297 \end_layout
25298
25299 \end_inset
25300
25301
25302 \end_layout
25303
25304 \begin_layout Standard
25305 \begin_inset Newpage newpage
25306 \end_inset
25307
25308
25309 \end_layout
25310
25311 \begin_layout Subsubsection
25312 Column Breaks
25313 \end_layout
25314
25315 \begin_layout Standard
25316 A column break can be forced by inserting the command 
25317 \begin_inset Flex Code
25318 status collapsed
25319
25320 \begin_layout Plain Layout
25321
25322 \backslash
25323 columnbreak{}
25324 \end_layout
25325
25326 \end_inset
25327
25328  as \SpecialChar TeX
25329  Code to that position in the text where the column should be broken.
25330  Note that this leads in most cases to whitespace in the text.
25331 \begin_inset Newline newline
25332 \end_inset
25333
25334 Here is an example:
25335 \end_layout
25336
25337 \begin_layout Standard
25338 \begin_inset Flex Multiple Columns
25339 status open
25340
25341 \begin_layout Plain Layout
25342
25343 \size small
25344 \begin_inset Quotes eld
25345 \end_inset
25346
25347 You're surprised to see me, sir,
25348 \begin_inset Quotes erd
25349 \end_inset
25350
25351  said he, in a strange, croaking voice.
25352 \end_layout
25353
25354 \begin_layout Plain Layout
25355
25356 \size small
25357 I acknowledged that I was.
25358 \end_layout
25359
25360 \begin_layout Plain Layout
25361
25362 \size small
25363 \begin_inset Quotes eld
25364 \end_inset
25365
25366 Well, I've a conscience, sir, and when I chanced to see you go into this
25367  house, as I came hobbling after you, I thought to myself, I'll just step
25368  in and see that kind gentleman, and tell him that if I was a bit gruff
25369  in my manner there was not any harm meant, and that I am much obliged to
25370  him for picking up my books.
25371 \begin_inset Quotes erd
25372 \end_inset
25373
25374
25375 \end_layout
25376
25377 \begin_layout Plain Layout
25378
25379 \size small
25380 \begin_inset Quotes eld
25381 \end_inset
25382
25383 You make too much of a trifle,
25384 \begin_inset Quotes erd
25385 \end_inset
25386
25387  said I.
25388  
25389 \begin_inset Quotes eld
25390 \end_inset
25391
25392 May I ask how you knew who I was?
25393 \begin_inset Quotes erd
25394 \end_inset
25395
25396  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25397 \begin_inset ERT
25398 status collapsed
25399
25400 \begin_layout Plain Layout
25401
25402
25403 \backslash
25404 columnbreak{}
25405 \end_layout
25406
25407 \end_inset
25408
25409
25410 \end_layout
25411
25412 \begin_layout Plain Layout
25413
25414 \size small
25415 \begin_inset Quotes eld
25416 \end_inset
25417
25418 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25419  you'll find my little bookshop at the corner of Church Street, and very
25420  happy to see you, I am sure.
25421  Maybe you collect yourself, sir.
25422  Here's 
25423 \noun on
25424 British
25425 \begin_inset space ~
25426 \end_inset
25427
25428 Birds
25429 \noun default
25430 , and 
25431 \noun on
25432 Catullus
25433 \noun default
25434 , and 
25435 \noun on
25436 The Holy War
25437 \noun default
25438 –a bargain, every one of them.
25439  With five volumes you could just fill that gap on that second shelf.
25440  It looks untidy, does it not, sir?
25441 \begin_inset Quotes erd
25442 \end_inset
25443
25444
25445 \end_layout
25446
25447 \end_inset
25448
25449
25450 \end_layout
25451
25452 \begin_layout Subsubsection
25453 Column Separation
25454 \end_layout
25455
25456 \begin_layout Standard
25457 The width of the columns is automatically calculated, but you can modify
25458  the space between the columns.
25459  This is done by changing the length 
25460 \begin_inset Flex Code
25461 status collapsed
25462
25463 \begin_layout Plain Layout
25464
25465 \backslash
25466 columnsep
25467 \end_layout
25468
25469 \end_inset
25470
25471 .
25472  Its predefined value is 10
25473 \begin_inset space \thinspace{}
25474 \end_inset
25475
25476 pt.
25477  Here is an example where 
25478 \begin_inset Flex Code
25479 status collapsed
25480
25481 \begin_layout Plain Layout
25482
25483 \backslash
25484 columnsep
25485 \end_layout
25486
25487 \end_inset
25488
25489  is set to 3
25490 \begin_inset space \thinspace{}
25491 \end_inset
25492
25493 cm:
25494 \end_layout
25495
25496 \begin_layout Standard
25497 \begin_inset ERT
25498 status open
25499
25500 \begin_layout Plain Layout
25501
25502
25503 \backslash
25504 setlength{
25505 \backslash
25506 columnsep}{3cm}
25507 \end_layout
25508
25509 \end_inset
25510
25511
25512 \end_layout
25513
25514 \begin_layout Standard
25515 \begin_inset Flex Multiple Columns
25516 status open
25517
25518 \begin_layout Plain Layout
25519
25520 \size small
25521 My observations of No.
25522 \begin_inset space \space{}
25523 \end_inset
25524
25525 427 Park Lane did little to clear up the problem in which I was interested.
25526  The house was separated from the street by a low wall and railing, the
25527  whole not more than five feet high.
25528  It was perfectly easy, therefore, for anyone to get into the garden, but
25529  the window was entirely inaccessible, since there was no water pipe or
25530  anything which could help the most active man to climb it.
25531  More puzzled than ever, I retraced my steps to Kensington.
25532  I had not been in my study five minutes when the maid entered to say that
25533  a person desired to see me.
25534  To my astonishment it was none other than my strange old book collector,
25535  his sharp, wizened face peering out from a frame of white hair, and his
25536  precious volumes, a dozen of them at least, wedged under his right arm.
25537 \end_layout
25538
25539 \end_inset
25540
25541
25542 \end_layout
25543
25544 \begin_layout Standard
25545 \begin_inset ERT
25546 status collapsed
25547
25548 \begin_layout Plain Layout
25549
25550
25551 \backslash
25552 setlength{
25553 \backslash
25554 columnsep}{10pt}
25555 \end_layout
25556
25557 \end_inset
25558
25559
25560 \begin_inset Note Note
25561 status collapsed
25562
25563 \begin_layout Plain Layout
25564 go back to the default
25565 \end_layout
25566
25567 \end_inset
25568
25569
25570 \end_layout
25571
25572 \begin_layout Subsubsection
25573 Vertical Lines
25574 \end_layout
25575
25576 \begin_layout Standard
25577 Between the columns a rule with a width of the length 
25578 \begin_inset Flex Code
25579 status collapsed
25580
25581 \begin_layout Plain Layout
25582
25583 \backslash
25584 columnseprule
25585 \end_layout
25586
25587 \end_inset
25588
25589  is placed.
25590  If this rule width is set to 0
25591 \begin_inset space \thinspace{}
25592 \end_inset
25593
25594 pt (this is the default), the rule is suppressed.
25595  In the following example the rule is 2
25596 \begin_inset space \thinspace{}
25597 \end_inset
25598
25599 pt wide:
25600 \end_layout
25601
25602 \begin_layout Standard
25603 \begin_inset ERT
25604 status open
25605
25606 \begin_layout Plain Layout
25607
25608
25609 \backslash
25610 setlength{
25611 \backslash
25612 columnseprule}{2pt}
25613 \end_layout
25614
25615 \end_inset
25616
25617
25618 \end_layout
25619
25620 \begin_layout Standard
25621 \begin_inset Flex Multiple Columns
25622 status open
25623
25624 \begin_layout Plain Layout
25625
25626 \size small
25627 \begin_inset Quotes eld
25628 \end_inset
25629
25630 You're surprised to see me, sir,
25631 \begin_inset Quotes erd
25632 \end_inset
25633
25634  said he, in a strange, croaking voice.
25635 \end_layout
25636
25637 \begin_layout Plain Layout
25638
25639 \size small
25640 I acknowledged that I was.
25641 \end_layout
25642
25643 \begin_layout Plain Layout
25644
25645 \size small
25646 \begin_inset Quotes eld
25647 \end_inset
25648
25649 Well, I've a conscience, sir, and when I chanced to see you go into this
25650  house, as I came hobbling after you, I thought to myself, I'll just step
25651  in and see that kind gentleman, and tell him that if I was a bit gruff
25652  in my manner there was not any harm meant, and that I am much obliged to
25653  him for picking up my books.
25654 \begin_inset Quotes erd
25655 \end_inset
25656
25657
25658 \end_layout
25659
25660 \begin_layout Plain Layout
25661
25662 \size small
25663 \begin_inset Quotes eld
25664 \end_inset
25665
25666 You make too much of a trifle,
25667 \begin_inset Quotes erd
25668 \end_inset
25669
25670  said I.
25671  
25672 \begin_inset Quotes eld
25673 \end_inset
25674
25675 May I ask how you knew who I was?
25676 \begin_inset Quotes erd
25677 \end_inset
25678
25679
25680 \end_layout
25681
25682 \begin_layout Plain Layout
25683
25684 \size small
25685 \begin_inset Quotes eld
25686 \end_inset
25687
25688 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25689  you'll find my little bookshop at the corner of Church Street, and very
25690  happy to see you, I am sure.
25691  Maybe you collect yourself, sir.
25692  Here's 
25693 \noun on
25694 British
25695 \begin_inset space ~
25696 \end_inset
25697
25698 Birds
25699 \noun default
25700 , and 
25701 \noun on
25702 Catullus
25703 \noun default
25704 , and 
25705 \noun on
25706 The Holy War
25707 \noun default
25708 –a bargain, every one of them.
25709  With five volumes you could just fill that gap on that second shelf.
25710  It looks untidy, does it not, sir?
25711 \begin_inset Quotes erd
25712 \end_inset
25713
25714
25715 \end_layout
25716
25717 \end_inset
25718
25719
25720 \end_layout
25721
25722 \begin_layout Standard
25723 \begin_inset VSpace defskip
25724 \end_inset
25725
25726
25727 \end_layout
25728
25729 \begin_layout Standard
25730 The rule can be colored by redefining the command 
25731 \begin_inset Flex Code
25732 status collapsed
25733
25734 \begin_layout Plain Layout
25735
25736 \backslash
25737 columnseprulecolor
25738 \end_layout
25739
25740 \end_inset
25741
25742 .
25743  This is done by inserting the command
25744 \end_layout
25745
25746 \begin_layout LyX-Code
25747
25748 \backslash
25749 renewcommand{
25750 \backslash
25751 columnseprulecolor}{
25752 \backslash
25753 color{red}}
25754 \end_layout
25755
25756 \begin_layout Standard
25757 as \SpecialChar TeX
25758  Code before the multicolumn inset.
25759  Replace 
25760 \begin_inset Flex Code
25761 status collapsed
25762
25763 \begin_layout Plain Layout
25764 red
25765 \end_layout
25766
25767 \end_inset
25768
25769  in this command by a color of your choice.
25770  You can use all pre- and self-defined colors.
25771  See the 
25772 \emph on
25773 EmbeddedObjects
25774 \emph default
25775  manual, section 
25776 \emph on
25777 Colored
25778 \begin_inset space ~
25779 \end_inset
25780
25781 Tables
25782 \emph default
25783  for more information about pre- and self-defined colors.
25784  To go back to the default color insert the command
25785 \end_layout
25786
25787 \begin_layout LyX-Code
25788
25789 \backslash
25790 renewcommand{
25791 \backslash
25792 columnseprulecolor}{
25793 \backslash
25794 normalcolor}
25795 \end_layout
25796
25797 \begin_layout Standard
25798 Here is the example with a cyan rule and 1
25799 \begin_inset space \thinspace{}
25800 \end_inset
25801
25802 cm column separation:
25803 \end_layout
25804
25805 \begin_layout Standard
25806 \begin_inset ERT
25807 status open
25808
25809 \begin_layout Plain Layout
25810
25811
25812 \backslash
25813 setlength{
25814 \backslash
25815 columnsep}{1cm}
25816 \end_layout
25817
25818 \begin_layout Plain Layout
25819
25820
25821 \backslash
25822 renewcommand{
25823 \backslash
25824 columnseprulecolor}{
25825 \backslash
25826 color{cyan}}
25827 \end_layout
25828
25829 \end_inset
25830
25831
25832 \end_layout
25833
25834 \begin_layout Standard
25835 \begin_inset Flex Multiple Columns
25836 status open
25837
25838 \begin_layout Plain Layout
25839
25840 \size small
25841 \begin_inset Quotes eld
25842 \end_inset
25843
25844 You're surprised to see me, sir,
25845 \begin_inset Quotes erd
25846 \end_inset
25847
25848  said he, in a strange, croaking voice.
25849 \end_layout
25850
25851 \begin_layout Plain Layout
25852
25853 \size small
25854 I acknowledged that I was.
25855 \end_layout
25856
25857 \begin_layout Plain Layout
25858
25859 \size small
25860 \begin_inset Quotes eld
25861 \end_inset
25862
25863 Well, I've a conscience, sir, and when I chanced to see you go into this
25864  house, as I came hobbling after you, I thought to myself, I'll just step
25865  in and see that kind gentleman, and tell him that if I was a bit gruff
25866  in my manner there was not any harm meant, and that I am much obliged to
25867  him for picking up my books.
25868 \begin_inset Quotes erd
25869 \end_inset
25870
25871
25872 \end_layout
25873
25874 \begin_layout Plain Layout
25875
25876 \size small
25877 \begin_inset Quotes eld
25878 \end_inset
25879
25880 You make too much of a trifle,
25881 \begin_inset Quotes erd
25882 \end_inset
25883
25884  said I.
25885  
25886 \begin_inset Quotes eld
25887 \end_inset
25888
25889 May I ask how you knew who I was?
25890 \begin_inset Quotes erd
25891 \end_inset
25892
25893
25894 \end_layout
25895
25896 \begin_layout Plain Layout
25897
25898 \size small
25899 \begin_inset Quotes eld
25900 \end_inset
25901
25902 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25903  you'll find my little bookshop at the corner of Church Street, and very
25904  happy to see you, I am sure.
25905  Maybe you collect yourself, sir.
25906  Here's 
25907 \noun on
25908 British
25909 \begin_inset space ~
25910 \end_inset
25911
25912 Birds
25913 \noun default
25914 , and 
25915 \noun on
25916 Catullus
25917 \noun default
25918 , and 
25919 \noun on
25920 The Holy War
25921 \noun default
25922 –a bargain, every one of them.
25923  With five volumes you could just fill that gap on that second shelf.
25924  It looks untidy, does it not, sir?
25925 \begin_inset Quotes erd
25926 \end_inset
25927
25928
25929 \end_layout
25930
25931 \end_inset
25932
25933
25934 \end_layout
25935
25936 \begin_layout Standard
25937 \begin_inset ERT
25938 status collapsed
25939
25940 \begin_layout Plain Layout
25941
25942
25943 \backslash
25944 setlength{
25945 \backslash
25946 columnseprule}{0pt}
25947 \end_layout
25948
25949 \begin_layout Plain Layout
25950
25951
25952 \backslash
25953 renewcommand{
25954 \backslash
25955 columnseprulecolor}{
25956 \backslash
25957 normalcolor}
25958 \end_layout
25959
25960 \end_inset
25961
25962
25963 \begin_inset Note Note
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 go back to the default
25968 \end_layout
25969
25970 \end_inset
25971
25972
25973 \end_layout
25974
25975 \begin_layout Section
25976 Non-standard Paragraph Shapes
25977 \end_layout
25978
25979 \begin_layout Standard
25980 \noindent
25981 \SpecialChar LaTeX
25982  as well as any other text processor uses by default rectangular paragraphs.
25983  For special cases like for example posters, invitation cards or poems you
25984  can modify the paragraph shape to one of your choice.
25985  This can be done by using the \SpecialChar LaTeX
25986 -package 
25987 \begin_inset Flex Code
25988 status collapsed
25989
25990 \begin_layout Plain Layout
25991 \noindent
25992 shapepar
25993 \end_layout
25994
25995 \end_inset
25996
25997  which is loaded by using in the document settings the module 
25998 \family sans
25999 Custom paragraph shapes
26000 \family default
26001 .
26002 \end_layout
26003
26004 \begin_layout Subsection
26005 Predefined shapes
26006 \end_layout
26007
26008 \begin_layout Standard
26009
26010 \series bold
26011 shapepar
26012 \series default
26013  provides the following shapes:
26014 \end_layout
26015
26016 \begin_layout Standard
26017 \begin_inset Tabular
26018 <lyxtabular version="3" rows="13" columns="3">
26019 <features booktabs="true" islongtable="true" longtabularalignment="center">
26020 <column alignment="left" valignment="middle" width="16col%">
26021 <column alignment="left" valignment="middle" width="40col%">
26022 <column alignment="left" valignment="middle" width="35col%">
26023 <row endhead="true">
26024 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26025 \begin_inset Text
26026
26027 \begin_layout Plain Layout
26028
26029 \series bold
26030 \size small
26031 Name
26032 \end_layout
26033
26034 \end_inset
26035 </cell>
26036 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26037 \begin_inset Text
26038
26039 \begin_layout Plain Layout
26040
26041 \series bold
26042 \size small
26043 Description
26044 \end_layout
26045
26046 \end_inset
26047 </cell>
26048 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26049 \begin_inset Text
26050
26051 \begin_layout Plain Layout
26052
26053 \series bold
26054 \size small
26055 Annotation
26056 \end_layout
26057
26058 \end_inset
26059 </cell>
26060 </row>
26061 <row interlinespace="default">
26062 <cell alignment="left" valignment="top" usebox="none">
26063 \begin_inset Text
26064
26065 \begin_layout Plain Layout
26066
26067 \size small
26068 CDlabel
26069 \end_layout
26070
26071 \end_inset
26072 </cell>
26073 <cell alignment="left" valignment="top" usebox="none">
26074 \begin_inset Text
26075
26076 \begin_layout Plain Layout
26077
26078 \size small
26079 Circle with circular hole (in the size of a CD/DVD)
26080 \end_layout
26081
26082 \end_inset
26083 </cell>
26084 <cell alignment="left" valignment="top" usebox="none">
26085 \begin_inset Text
26086
26087 \begin_layout Plain Layout
26088
26089 \size small
26090 Cannot be scaled, take care there is not too much text
26091 \end_layout
26092
26093 \end_inset
26094 </cell>
26095 </row>
26096 <row interlinespace="default">
26097 <cell alignment="left" valignment="top" usebox="none">
26098 \begin_inset Text
26099
26100 \begin_layout Plain Layout
26101
26102 \size small
26103 Circle
26104 \end_layout
26105
26106 \end_inset
26107 </cell>
26108 <cell alignment="left" valignment="top" usebox="none">
26109 \begin_inset Text
26110
26111 \begin_layout Plain Layout
26112
26113 \size small
26114 Circle
26115 \end_layout
26116
26117 \end_inset
26118 </cell>
26119 <cell alignment="left" valignment="top" usebox="none">
26120 \begin_inset Text
26121
26122 \begin_layout Plain Layout
26123
26124 \size small
26125 Fragile, calculation might fail
26126 \end_layout
26127
26128 \end_inset
26129 </cell>
26130 </row>
26131 <row interlinespace="default">
26132 <cell alignment="left" valignment="top" usebox="none">
26133 \begin_inset Text
26134
26135 \begin_layout Plain Layout
26136
26137 \size small
26138 Diamond
26139 \end_layout
26140
26141 \end_inset
26142 </cell>
26143 <cell alignment="left" valignment="top" usebox="none">
26144 \begin_inset Text
26145
26146 \begin_layout Plain Layout
26147
26148 \size small
26149 Rhomboid (symbolizing a 
26150 \begin_inset Quotes eld
26151 \end_inset
26152
26153 diamond
26154 \begin_inset Quotes erd
26155 \end_inset
26156
26157 )
26158 \end_layout
26159
26160 \end_inset
26161 </cell>
26162 <cell alignment="left" valignment="top" usebox="none">
26163 \begin_inset Text
26164
26165 \begin_layout Plain Layout
26166
26167 \size small
26168 -
26169 \end_layout
26170
26171 \end_inset
26172 </cell>
26173 </row>
26174 <row interlinespace="default">
26175 <cell alignment="left" valignment="top" usebox="none">
26176 \begin_inset Text
26177
26178 \begin_layout Plain Layout
26179
26180 \size small
26181 Heart
26182 \end_layout
26183
26184 \end_inset
26185 </cell>
26186 <cell alignment="left" valignment="top" usebox="none">
26187 \begin_inset Text
26188
26189 \begin_layout Plain Layout
26190
26191 \size small
26192 Heart-like shape
26193 \end_layout
26194
26195 \end_inset
26196 </cell>
26197 <cell alignment="left" valignment="top" usebox="none">
26198 \begin_inset Text
26199
26200 \begin_layout Plain Layout
26201
26202 \size small
26203 -
26204 \end_layout
26205
26206 \end_inset
26207 </cell>
26208 </row>
26209 <row interlinespace="default">
26210 <cell alignment="left" valignment="top" usebox="none">
26211 \begin_inset Text
26212
26213 \begin_layout Plain Layout
26214
26215 \size small
26216 Hexagon
26217 \end_layout
26218
26219 \end_inset
26220 </cell>
26221 <cell alignment="left" valignment="top" usebox="none">
26222 \begin_inset Text
26223
26224 \begin_layout Plain Layout
26225
26226 \size small
26227 Hexagon
26228 \end_layout
26229
26230 \end_inset
26231 </cell>
26232 <cell alignment="left" valignment="top" usebox="none">
26233 \begin_inset Text
26234
26235 \begin_layout Plain Layout
26236
26237 \size small
26238 -
26239 \end_layout
26240
26241 \end_inset
26242 </cell>
26243 </row>
26244 <row interlinespace="default">
26245 <cell alignment="left" valignment="top" usebox="none">
26246 \begin_inset Text
26247
26248 \begin_layout Plain Layout
26249
26250 \size small
26251 Nut
26252 \end_layout
26253
26254 \end_inset
26255 </cell>
26256 <cell alignment="left" valignment="top" usebox="none">
26257 \begin_inset Text
26258
26259 \begin_layout Plain Layout
26260
26261 \size small
26262 Nut for bolt (hexagon with circular hole)
26263 \end_layout
26264
26265 \end_inset
26266 </cell>
26267 <cell alignment="left" valignment="top" usebox="none">
26268 \begin_inset Text
26269
26270 \begin_layout Plain Layout
26271
26272 \size small
26273 -
26274 \end_layout
26275
26276 \end_inset
26277 </cell>
26278 </row>
26279 <row interlinespace="default">
26280 <cell alignment="left" valignment="top" usebox="none">
26281 \begin_inset Text
26282
26283 \begin_layout Plain Layout
26284
26285 \size small
26286 Square
26287 \end_layout
26288
26289 \end_inset
26290 </cell>
26291 <cell alignment="left" valignment="top" usebox="none">
26292 \begin_inset Text
26293
26294 \begin_layout Plain Layout
26295
26296 \size small
26297 Square
26298 \end_layout
26299
26300 \end_inset
26301 </cell>
26302 <cell alignment="left" valignment="top" usebox="none">
26303 \begin_inset Text
26304
26305 \begin_layout Plain Layout
26306
26307 \size small
26308 -
26309 \end_layout
26310
26311 \end_inset
26312 </cell>
26313 </row>
26314 <row interlinespace="default">
26315 <cell alignment="left" valignment="top" usebox="none">
26316 \begin_inset Text
26317
26318 \begin_layout Plain Layout
26319
26320 \size small
26321 Star
26322 \end_layout
26323
26324 \end_inset
26325 </cell>
26326 <cell alignment="left" valignment="top" usebox="none">
26327 \begin_inset Text
26328
26329 \begin_layout Plain Layout
26330
26331 \size small
26332 Five-point star
26333 \end_layout
26334
26335 \end_inset
26336 </cell>
26337 <cell alignment="left" valignment="top" usebox="none">
26338 \begin_inset Text
26339
26340 \begin_layout Plain Layout
26341
26342 \size small
26343 -
26344 \end_layout
26345
26346 \end_inset
26347 </cell>
26348 </row>
26349 <row interlinespace="default">
26350 <cell alignment="left" valignment="top" usebox="none">
26351 \begin_inset Text
26352
26353 \begin_layout Plain Layout
26354
26355 \size small
26356 Candle
26357 \end_layout
26358
26359 \end_inset
26360 </cell>
26361 <cell alignment="left" valignment="top" usebox="none">
26362 \begin_inset Text
26363
26364 \begin_layout Plain Layout
26365
26366 \size small
26367 Burning candle
26368 \end_layout
26369
26370 \end_inset
26371 </cell>
26372 <cell alignment="left" valignment="top" usebox="none">
26373 \begin_inset Text
26374
26375 \begin_layout Plain Layout
26376
26377 \size small
26378 -
26379 \end_layout
26380
26381 \end_inset
26382 </cell>
26383 </row>
26384 <row interlinespace="default">
26385 <cell alignment="left" valignment="top" usebox="none">
26386 \begin_inset Text
26387
26388 \begin_layout Plain Layout
26389
26390 \size small
26391 Drop down/up
26392 \end_layout
26393
26394 \end_inset
26395 </cell>
26396 <cell alignment="left" valignment="top" usebox="none">
26397 \begin_inset Text
26398
26399 \begin_layout Plain Layout
26400
26401 \size small
26402 Normal/reversed rain drop
26403 \end_layout
26404
26405 \end_inset
26406 </cell>
26407 <cell alignment="left" valignment="top" usebox="none">
26408 \begin_inset Text
26409
26410 \begin_layout Plain Layout
26411
26412 \size small
26413 Fragile, calculation might fail
26414 \end_layout
26415
26416 \end_inset
26417 </cell>
26418 </row>
26419 <row interlinespace="default">
26420 <cell alignment="left" valignment="top" usebox="none">
26421 \begin_inset Text
26422
26423 \begin_layout Plain Layout
26424
26425 \size small
26426 \SpecialChar TeX
26427
26428 \end_layout
26429
26430 \end_inset
26431 </cell>
26432 <cell alignment="left" valignment="top" usebox="none">
26433 \begin_inset Text
26434
26435 \begin_layout Plain Layout
26436
26437 \size small
26438 The \SpecialChar TeX
26439  logo
26440 \end_layout
26441
26442 \end_inset
26443 </cell>
26444 <cell alignment="left" valignment="top" usebox="none">
26445 \begin_inset Text
26446
26447 \begin_layout Plain Layout
26448
26449 \size small
26450 -
26451 \end_layout
26452
26453 \end_inset
26454 </cell>
26455 </row>
26456 <row interlinespace="default">
26457 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26458 \begin_inset Text
26459
26460 \begin_layout Plain Layout
26461
26462 \size small
26463 Triangle up/down/
26464 \begin_inset Newline newline
26465 \end_inset
26466
26467 left/right
26468 \end_layout
26469
26470 \end_inset
26471 </cell>
26472 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26473 \begin_inset Text
26474
26475 \begin_layout Plain Layout
26476
26477 \size small
26478 Triangles in different orientations
26479 \end_layout
26480
26481 \end_inset
26482 </cell>
26483 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26484 \begin_inset Text
26485
26486 \begin_layout Plain Layout
26487
26488 \size small
26489 -
26490 \end_layout
26491
26492 \end_inset
26493 </cell>
26494 </row>
26495 </lyxtabular>
26496
26497 \end_inset
26498
26499
26500 \end_layout
26501
26502 \begin_layout Standard
26503 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26504 's pull-down box
26505  for environments in the toolbar.
26506 \end_layout
26507
26508 \begin_layout Standard
26509 \begin_inset Newpage newpage
26510 \end_inset
26511
26512
26513 \end_layout
26514
26515 \begin_layout Standard
26516 Here is an example paragraph in the shape of a nut:
26517 \end_layout
26518
26519 \begin_layout Standard
26520 \begin_inset VSpace bigskip
26521 \end_inset
26522
26523
26524 \end_layout
26525
26526 \begin_layout Nut
26527
26528 \lang latin
26529 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26530  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26531  voluptua.
26532  At vero eos et accusam et justo duo dolores et ea rebum.
26533  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26534  sit amet.
26535  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26536  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26537  voluptua.
26538 \end_layout
26539
26540 \begin_layout Standard
26541 \begin_inset VSpace bigskip
26542 \end_inset
26543
26544
26545 \end_layout
26546
26547 \begin_layout Standard
26548 \begin_inset Note Greyedout
26549 status open
26550
26551 \begin_layout Plain Layout
26552
26553 \series bold
26554 Note
26555 \series default
26556
26557 \family sans
26558 shapepar
26559 \family default
26560  paragraphs cannot run over a page break.
26561 \end_layout
26562
26563 \end_inset
26564
26565
26566 \end_layout
26567
26568 \begin_layout Standard
26569 \begin_inset VSpace bigskip
26570 \end_inset
26571
26572
26573 \end_layout
26574
26575 \begin_layout Standard
26576 The package 
26577 \begin_inset Flex Code
26578 status collapsed
26579
26580 \begin_layout Plain Layout
26581 shapepar
26582 \end_layout
26583
26584 \end_inset
26585
26586  takes care that the shape will always be preserved, no matter how much
26587  text is in the paragraph.
26588  Therefore the paragraph size changes with the amount of contained text.
26589  This can lead to paragraph sizes exceeding the page margins.
26590  To demonstrate the size scaling, here is the same example paragraph but
26591  with twice as much text:
26592 \end_layout
26593
26594 \begin_layout Standard
26595 \begin_inset Newpage newpage
26596 \end_inset
26597
26598
26599 \end_layout
26600
26601 \begin_layout Nut
26602
26603 \lang latin
26604 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26605  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26606  voluptua.
26607  At vero eos et accusam et justo duo dolores et ea rebum.
26608  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26609  sit amet.
26610  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26611  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26612  voluptua.
26613  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26614  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26615  voluptua.
26616  At vero eos et accusam et justo duo dolores et ea rebum.
26617  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26618  sit amet.
26619  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26620  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26621  voluptua.
26622 \end_layout
26623
26624 \begin_layout Standard
26625 \begin_inset VSpace bigskip
26626 \end_inset
26627
26628
26629 \end_layout
26630
26631 \begin_layout Standard
26632 An exception is the shape 
26633 \family sans
26634 CDlabel
26635 \family default
26636 .
26637  It cannot be scaled because it must fit the size of a CD/DVD.
26638  Therefore the amount of text that fits into the shape is limited.
26639 \begin_inset Newline newline
26640 \end_inset
26641
26642 The 
26643 \family sans
26644 drop
26645 \family default
26646  shapes and the 
26647 \family sans
26648 circle
26649 \family default
26650  shape are fragile, meaning that the calculation of their size can fail,
26651  depending on the amount of text.
26652  You will then get the \SpecialChar LaTeX
26653  error 
26654 \begin_inset Quotes eld
26655 \end_inset
26656
26657 Arithmetic overflow
26658 \begin_inset Quotes erd
26659 \end_inset
26660
26661 .
26662  In this case one can try to remove or add some text; if nothing works one
26663  has to use another shape.
26664 \end_layout
26665
26666 \begin_layout Standard
26667 \begin_inset VSpace bigskip
26668 \end_inset
26669
26670
26671 \end_layout
26672
26673 \begin_layout Standard
26674 For shapes with tips you will maybe see that \SpecialChar LaTeX
26675 's hyphenation routine fails
26676  for text in the tips.
26677  Therefore it is often necessary to add hyphenation points 
26678 \family sans
26679 (
26680 \begin_inset Info
26681 type  "shortcut"
26682 arg   "specialchar-insert hyphenation"
26683 \end_inset
26684
26685
26686 \family default
26687 ) to the corresponding text parts.
26688 \end_layout
26689
26690 \begin_layout Standard
26691 \begin_inset VSpace bigskip
26692 \end_inset
26693
26694
26695 \end_layout
26696
26697 \begin_layout Standard
26698 Shapepar paragraphs are either always centered or placed on the page so
26699  that their left border touches the left page margin.
26700  You can therefore not use the paragraph dialog to align such paragraphs.
26701  A solution is to put the paragraph into a minipage or parbox and align
26702  the box.
26703  The problem is hereby to find the right width for the box.
26704  Because if it is too wide and you center the box, the paragraph is not
26705  centered too because it sticks at the left side of the box.
26706  So you might have to play a bit with the width until it fits.
26707  Here are two heart-shaped paragraphs, the first one is not aligned, the
26708  second one is right-aligned:
26709 \end_layout
26710
26711 \begin_layout Standard
26712 \begin_inset Newpage newpage
26713 \end_inset
26714
26715
26716 \end_layout
26717
26718 \begin_layout Heart
26719 \noindent
26720
26721 \lang latin
26722 Lo\SpecialChar softhyphen
26723 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26724  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26725  voluptua.
26726  At vero eos et accusam et justo duo dolores et ea rebum.
26727  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26728  sit amet.
26729 \end_layout
26730
26731 \begin_layout Standard
26732 \begin_inset VSpace bigskip
26733 \end_inset
26734
26735
26736 \end_layout
26737
26738 \begin_layout Standard
26739 \noindent
26740 \align right
26741 \begin_inset Box Frameless
26742 position "t"
26743 hor_pos "c"
26744 has_inner_box 1
26745 inner_pos "t"
26746 use_parbox 1
26747 use_makebox 0
26748 width "42col%"
26749 special "none"
26750 height "1in"
26751 height_special "totalheight"
26752 thickness "0.4pt"
26753 separation "3pt"
26754 shadowsize "4pt"
26755 framecolor "black"
26756 backgroundcolor "none"
26757 status open
26758
26759 \begin_layout Heart
26760 \noindent
26761
26762 \lang latin
26763 Lo\SpecialChar softhyphen
26764 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26765  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26766  voluptua.
26767  At vero eos et accusam et justo duo dolores et ea rebum.
26768  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26769  sit amet.
26770 \end_layout
26771
26772 \end_inset
26773
26774
26775 \end_layout
26776
26777 \begin_layout Subsection
26778 Custom shapes
26779 \end_layout
26780
26781 \begin_layout Standard
26782 You can define any shape you want.
26783  Doing this manually is a lot of work because every coordinate must be specified.
26784  But there is a way to let the computer calculate the coordinates:
26785 \end_layout
26786
26787 \begin_layout Enumerate
26788 Install the program 
26789 \begin_inset CommandInset href
26790 LatexCommand href
26791 name "Jpgfdraw"
26792 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
26793 literal "false"
26794
26795 \end_inset
26796
26797 .
26798 \end_layout
26799
26800 \begin_layout Enumerate
26801 In 
26802 \family sans
26803 Jpgfdraw
26804 \family default
26805  go to the menu 
26806 \family sans
26807 TeX/LaTeX\SpecialChar menuseparator
26808 Settings\SpecialChar menuseparator
26809 Set Normal Size
26810 \family default
26811  and select the font size you are using in your document.
26812  For example this document uses the size 12
26813 \begin_inset space \thinspace{}
26814 \end_inset
26815
26816 pt.
26817 \end_layout
26818
26819 \begin_layout Enumerate
26820 Draw a shape.
26821 \end_layout
26822
26823 \begin_layout Enumerate
26824 Use the menu 
26825 \family sans
26826 TeX/LaTeX\SpecialChar menuseparator
26827 Shapepar
26828 \family default
26829  to export the shape to coordinates.
26830  In the appearing dialog use either the outline of your shape for the coordinate
26831 s or the path itself.
26832 \begin_inset Foot
26833 status collapsed
26834
26835 \begin_layout Plain Layout
26836 For more information see 
26837 \begin_inset CommandInset href
26838 LatexCommand href
26839 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26840 literal "false"
26841
26842 \end_inset
26843
26844
26845 \end_layout
26846
26847 \end_inset
26848
26849
26850 \end_layout
26851
26852 \begin_layout Standard
26853 The coordinates are written into a \SpecialChar TeX
26854  file.
26855  To use it for your \SpecialChar LyX
26856  document
26857 \end_layout
26858
26859 \begin_layout Enumerate
26860 Place the cursor before the first character of your paragraph (or into a
26861  new empty one).
26862 \end_layout
26863
26864 \begin_layout Enumerate
26865 Open in \SpecialChar LyX
26866  the menu 
26867 \family sans
26868 Insert\SpecialChar menuseparator
26869 File\SpecialChar menuseparator
26870 Child
26871 \begin_inset space ~
26872 \end_inset
26873
26874 Document
26875 \family default
26876 , select the file and use 
26877 \family sans
26878 Input
26879 \family default
26880  as 
26881 \family sans
26882 Include Type.
26883 \end_layout
26884
26885 \begin_layout Standard
26886 \begin_inset VSpace defskip
26887 \end_inset
26888
26889
26890 \end_layout
26891
26892 \begin_layout Standard
26893 \begin_inset Note Greyedout
26894 status open
26895
26896 \begin_layout Plain Layout
26897
26898 \series bold
26899 Note
26900 \series default
26901 : The changed shape only applies to the current paragraph; everything is
26902  reset to normal for the next paragraph.
26903  Therefore the shape definition file must be input into every paragraph
26904  with the desired shape.
26905 \end_layout
26906
26907 \end_inset
26908
26909
26910 \end_layout
26911
26912 \begin_layout Standard
26913 \begin_inset VSpace bigskip
26914 \end_inset
26915
26916
26917 \end_layout
26918
26919 \begin_layout Standard
26920 Here is an example:
26921 \end_layout
26922
26923 \begin_layout Standard
26924 \begin_inset VSpace bigskip
26925 \end_inset
26926
26927
26928 \end_layout
26929
26930 \begin_layout Standard
26931 \begin_inset CommandInset include
26932 LatexCommand input
26933 filename "SpecialParagraphShape.tex"
26934
26935 \end_inset
26936
26937
26938 \lang latin
26939 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26940  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26941  voluptua.
26942  At vero eos et accusam et justo duo dolores et ea rebum.
26943  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26944  sit amet.
26945  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26946  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26947  voluptua.
26948 \end_layout
26949
26950 \begin_layout Standard
26951 \begin_inset VSpace bigskip
26952 \end_inset
26953
26954
26955 \end_layout
26956
26957 \begin_layout Standard
26958
26959 \series bold
26960 A tip:
26961 \series default
26962  to draw complexer shapes in 
26963 \family sans
26964 Jpgfdraw
26965 \family default
26966  you can draw the shape in a program of your choice and import the resulting
26967  image to 
26968 \family sans
26969 Jpgfdraw
26970 \family default
26971 .
26972  Then you only need to draw a line or spline along the outline of the image.
26973 \end_layout
26974
26975 \begin_layout Standard
26976 \begin_inset VSpace bigskip
26977 \end_inset
26978
26979
26980 \end_layout
26981
26982 \begin_layout Standard
26983 The module 
26984 \family sans
26985 Custom paragraph shapes
26986 \family default
26987  also provides the two commands 
26988 \family sans
26989 shapepar
26990 \family default
26991  and 
26992 \family sans
26993 Shapepar
26994 \family default
26995  which can be used to define custom shapes coordinate by coordinate.
26996 \begin_inset Foot
26997 status collapsed
26998
26999 \begin_layout Plain Layout
27000 These commands are internally used for all shapes described here.
27001 \end_layout
27002
27003 \end_inset
27004
27005  For information how these styles are used and about further customization
27006  possibilities, have a look at the 
27007 \begin_inset CommandInset href
27008 LatexCommand href
27009 name "documentation"
27010 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
27011 literal "false"
27012
27013 \end_inset
27014
27015  of the package 
27016 \begin_inset Flex Code
27017 status collapsed
27018
27019 \begin_layout Plain Layout
27020 shapepar
27021 \end_layout
27022
27023 \end_inset
27024
27025 .
27026 \end_layout
27027
27028 \end_body
27029 \end_document