]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Some updates in the Literate Programming section I did while translating.
[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 0
90 \use_package esint 0
91 \use_package mathdots 1
92 \use_package mathtools 0
93 \use_package mhchem 1
94 \use_package stackrel 0
95 \use_package stmaryrd 0
96 \use_package undertilde 0
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 true
125 \output_changes false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \author -712698321 "Jürgen Spitzmüller"
130 \end_header
131
132 \begin_body
133
134 \begin_layout Title
135 Additional \SpecialChar LyX
136  Features
137 \end_layout
138
139 \begin_layout Subtitle
140 Version 2.3.x
141 \end_layout
142
143 \begin_layout Author
144 by the \SpecialChar LyX
145  Team
146 \begin_inset Foot
147 status collapsed
148
149 \begin_layout Plain Layout
150 \noindent
151 Principal maintainer of this file is
152 \noun on
153  Richard Heck
154 \noun default
155 .
156  If you have comments or error corrections, please send them to the \SpecialChar LyX
157  Documentati
158 on mailing list, 
159 \begin_inset Flex Code
160 status collapsed
161
162 \begin_layout Plain Layout
163 \noindent
164 <lyx-docs@lists.lyx.org>
165 \end_layout
166
167 \end_inset
168
169 .
170 \end_layout
171
172 \end_inset
173
174
175 \end_layout
176
177 \begin_layout Standard
178 \begin_inset CommandInset toc
179 LatexCommand tableofcontents
180
181 \end_inset
182
183
184 \end_layout
185
186 \begin_layout Chapter
187 Introduction
188 \end_layout
189
190 \begin_layout Standard
191 This manual is essentially Part II of the 
192 \emph on
193 User's Guide\SpecialChar endofsentence
194
195 \emph default
196  The reason for separating the two documents is simple: the 
197 \emph on
198 User's Guide
199 \emph default
200  is already quite lengthy, and it contains information on all of the basic
201  features one needs to know in order to prepare most documents.
202  However, the \SpecialChar LyX
203  Team has worked to make \SpecialChar LyX
204  extensible through various configuration
205  files and external packages.
206  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
207  package, you can
208  create a layout file (or module) for it without having to alter \SpecialChar LyX
209  itself.
210  We've already had contributions of several new features this way, and some
211  of them are documented here.
212  There are also some more `advanced' features, such as how to control the
213  presentation of bibliographies and how to work with multi-part documents,
214  that are not covered in the 
215 \emph on
216 User's Guide
217 \emph default
218  and are discussed here.
219 \end_layout
220
221 \begin_layout Standard
222 This manual also documents some special features, like fax support, version
223  control, and SGML support, which require additional software to work properly.
224  There is also a chapter on \SpecialChar LyX
225 's support for HTML.
226  And lastly, there's a chapter of \SpecialChar LaTeX
227  tools and tips, things you can use to
228  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
229 .
230  After all, \SpecialChar LyX
231  
232 \emph on
233 is
234 \emph default
235  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
236  features.
237 \end_layout
238
239 \begin_layout Standard
240 If you haven't read the 
241 \emph on
242 Introduction
243 \emph default
244  yet, you are definitely in the wrong manual.
245  The 
246 \emph on
247 Introduction
248 \emph default
249  is the first place to go, since it describes the notation and format of
250  all of the manuals.
251  You should also be thoroughly familiar with the 
252 \emph on
253 User's Guide
254 \emph default
255  and all of the basic features of \SpecialChar LyX
256  before attempting to read this one.
257 \end_layout
258
259 \begin_layout Standard
260 Since many of the topics in this manual depend heavily on \SpecialChar LyX
261 's interaction
262  with \SpecialChar LaTeX
263 , this first chapter covers the inner workings of \SpecialChar LyX
264  and how to direct
265  \SpecialChar LyX
266  to generate exactly the \SpecialChar LaTeX
267  code you want.
268  It is obviously for more seasoned \SpecialChar LyX
269  users.
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  and \SpecialChar LaTeX
275
276 \end_layout
277
278 \begin_layout Section
279 How \SpecialChar LyX
280  Uses \SpecialChar LaTeX
281
282 \end_layout
283
284 \begin_layout Standard
285 This chapter is for both \SpecialChar TeX
286 -nicians and the \SpecialChar LaTeX
287 -curious.
288  In it, we'll explain how \SpecialChar LyX
289  and \SpecialChar LaTeX
290  work together to produce printable output.
291  This is the only place in any of the manuals where we assume you know something
292  about \SpecialChar LaTeX
293 .
294 \end_layout
295
296 \begin_layout Standard
297 At one time, \SpecialChar LyX
298  was called a 
299 \begin_inset Quotes eld
300 \end_inset
301
302 WYSIWYM frontend to \SpecialChar LaTeX
303 ,
304 \begin_inset Quotes erd
305 \end_inset
306
307  but that's no longer true.
308  There are frontends to \SpecialChar LaTeX
309  out there.
310 \begin_inset Foot
311 status collapsed
312
313 \begin_layout Plain Layout
314 Some familar ones are \SpecialChar TeX
315 maker and kile, on Linux, and \SpecialChar TeX
316 shop, OSX.
317  There are also the \SpecialChar LaTeX
318  modes for vi and emacs, of course.
319 \end_layout
320
321 \end_inset
322
323  These are basically text editors with the ability to run \SpecialChar LaTeX
324  and mark any
325  errors in the file you're editing.
326  Although \SpecialChar LyX
327  
328 \emph on
329 is
330 \emph default
331  an editor, and it 
332 \emph on
333 does
334 \emph default
335  run \SpecialChar LaTeX
336 , and it also indicates errors in the file, it also does much, much
337  more.
338  For one thing, you don't need to know \SpecialChar LaTeX
339  to use \SpecialChar LyX
340  effectively.
341  And \SpecialChar LyX
342  has added its own extensions to \SpecialChar LaTeX
343 .
344  Try the following sometime: select 
345 \begin_inset Flex Noun
346 status collapsed
347
348 \begin_layout Plain Layout
349 Export\SpecialChar menuseparator
350 LaTeX
351 \end_layout
352
353 \end_inset
354
355  from the 
356 \begin_inset Flex Noun
357 status collapsed
358
359 \begin_layout Plain Layout
360 File
361 \end_layout
362
363 \end_inset
364
365  menu (or 
366 \begin_inset Flex Noun
367 status collapsed
368
369 \begin_layout Plain Layout
370 View\SpecialChar menuseparator
371 Source
372 \begin_inset space ~
373 \end_inset
374
375 Pane
376 \end_layout
377
378 \end_inset
379
380 ), then look at the preamble of the resulting 
381 \begin_inset Flex Code
382 status collapsed
383
384 \begin_layout Plain Layout
385 .tex
386 \end_layout
387
388 \end_inset
389
390  file.
391  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
392 .
393  These macros are defined automatically, according to the features you use
394  in the document.
395 \end_layout
396
397 \begin_layout Standard
398 There are several commands that automatically invoke \SpecialChar LaTeX
399 .
400  They are:
401 \end_layout
402
403 \begin_layout Itemize
404 \begin_inset Flex Noun
405 status collapsed
406
407 \begin_layout Plain Layout
408 Document\SpecialChar menuseparator
409 View
410 \end_layout
411
412 \end_inset
413
414
415 \end_layout
416
417 \begin_layout Itemize
418 \begin_inset Flex Noun
419 status collapsed
420
421 \begin_layout Plain Layout
422 Document\SpecialChar menuseparator
423 Update
424 \end_layout
425
426 \end_inset
427
428
429 \end_layout
430
431 \begin_layout Standard
432 They will only invoke \SpecialChar LaTeX
433  if the file has changed since the last time \SpecialChar LaTeX
434  was
435  run.
436  
437 \end_layout
438
439 \begin_layout Standard
440 When \SpecialChar LyX
441  runs \SpecialChar LaTeX
442  on the file you're editing, it performs these steps:
443 \end_layout
444
445 \begin_layout Enumerate
446 Convert the document to \SpecialChar LaTeX
447  and save to a file with the extension 
448 \begin_inset Flex Code
449 status collapsed
450
451 \begin_layout Plain Layout
452 .tex
453 \end_layout
454
455 \end_inset
456
457  in place of 
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 .lyx
463 \end_layout
464
465 \end_inset
466
467 .
468 \end_layout
469
470 \begin_layout Enumerate
471 Run \SpecialChar LaTeX
472  on the 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 .tex
478 \end_layout
479
480 \end_inset
481
482  file (maybe several times), and run any other commands (such as 
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 bibtex
488 \end_layout
489
490 \end_inset
491
492  or 
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 makeindex
498 \end_layout
499
500 \end_inset
501
502 ) needed to compile the \SpecialChar LaTeX
503  file.
504 \end_layout
505
506 \begin_layout Enumerate
507 If there are any errors, show the error log.
508 \end_layout
509
510 \begin_layout Standard
511 If you have run \SpecialChar LaTeX
512  using 
513 \begin_inset Flex Noun
514 status collapsed
515
516 \begin_layout Plain Layout
517 View\SpecialChar menuseparator
518 DVI
519 \end_layout
520
521 \end_inset
522
523 , \SpecialChar LyX
524  then runs a DVI viewer to display the DVI-file.
525  If you have used 
526 \begin_inset Flex Noun
527 status collapsed
528
529 \begin_layout Plain Layout
530 View\SpecialChar menuseparator
531 PostScript
532 \end_layout
533
534 \end_inset
535
536 , \SpecialChar LyX
537  performs further steps:
538 \end_layout
539
540 \begin_layout Itemize
541 Run 
542 \begin_inset Flex Code
543 status collapsed
544
545 \begin_layout Plain Layout
546 dvips
547 \end_layout
548
549 \end_inset
550
551  to convert the DVI file to PostScript.
552 \end_layout
553
554 \begin_layout Itemize
555 Run a PostScript viewer, such as 
556 \begin_inset Flex Code
557 status collapsed
558
559 \begin_layout Plain Layout
560 ghostview
561 \end_layout
562
563 \end_inset
564
565 , to display the PostScript file.
566 \end_layout
567
568 \begin_layout Standard
569 \SpecialChar LyX
570  does similar things when viewing, or exporting, other formats.
571 \end_layout
572
573 \begin_layout Section
574 Translating \SpecialChar LaTeX
575  files into \SpecialChar LyX
576
577 \end_layout
578
579 \begin_layout Standard
580 You can import a \SpecialChar LaTeX
581  file into \SpecialChar LyX
582  by using the 
583 \begin_inset Flex Noun
584 status collapsed
585
586 \begin_layout Plain Layout
587 File\SpecialChar menuseparator
588 Import\SpecialChar menuseparator
589 LaTeX
590 \end_layout
591
592 \end_inset
593
594  command in \SpecialChar LyX
595 .
596  This will call a program named 
597 \begin_inset Flex Code
598 status collapsed
599
600 \begin_layout Plain Layout
601 tex2lyx
602 \end_layout
603
604 \end_inset
605
606  which will create a file 
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 foo.lyx
612 \end_layout
613
614 \end_inset
615
616  from the file 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 foo.tex
622 \end_layout
623
624 \end_inset
625
626 .
627  \SpecialChar LyX
628  will then open that file.
629 \begin_inset Foot
630 status collapsed
631
632 \begin_layout Plain Layout
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 tex2lyx
638 \end_layout
639
640 \end_inset
641
642  can also be run from the command line, of course.
643 \end_layout
644
645 \end_inset
646
647
648 \end_layout
649
650 \begin_layout Standard
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655 tex2lyx
656 \end_layout
657
658 \end_inset
659
660  will translate most legal \SpecialChar LaTeX
661 , but not everything.
662  It will put things it doesn't understand into \SpecialChar TeX
663  code, so after translating
664  a file with 
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 tex2lyx
670 \end_layout
671
672 \end_inset
673
674 , you can look for \SpecialChar TeX
675  code and hand-edit it until it looks right.
676 \end_layout
677
678 \begin_layout Standard
679 If you don't know what \SpecialChar TeX
680  code is, read the next section.
681 \end_layout
682
683 \begin_layout Section
684 \begin_inset CommandInset label
685 LatexCommand label
686 name "sec:Inserting-TeX-Code"
687
688 \end_inset
689
690 Inserting \SpecialChar TeX
691  Code into \SpecialChar LyX
692  Documents 
693 \end_layout
694
695 \begin_layout Standard
696 Anything you can do in \SpecialChar LaTeX
697  you can do in \SpecialChar LyX
698 , for a very simple reason: You can
699  always insert \SpecialChar TeX
700  code into any \SpecialChar LyX
701  document.
702  \SpecialChar LyX
703  cannot, and will never be able to, display every possible \SpecialChar LaTeX
704  construct.
705  If ever you need to insert \SpecialChar LaTeX
706  commands into your \SpecialChar LyX
707  document, you can use the
708  
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713 \SpecialChar TeX
714  Code
715 \end_layout
716
717 \end_inset
718
719  box, which you can insert into your document with 
720 \begin_inset Flex Noun
721 status collapsed
722
723 \begin_layout Plain Layout
724 Insert\SpecialChar menuseparator
725
726 \family sans
727 TeX
728 \family default
729  Code
730 \end_layout
731
732 \end_inset
733
734  or the keyboard shortcut 
735 \begin_inset Info
736 type  "shortcut"
737 arg   "ert-insert"
738 \end_inset
739
740 .
741 \end_layout
742
743 \begin_layout Standard
744 Here's an example of inserting \SpecialChar LaTeX
745  commands in a \SpecialChar LyX
746  document.
747  The code looks like this:
748 \end_layout
749
750 \begin_layout LyX-Code
751
752 \backslash
753 begin{tabular}{ll}
754 \begin_inset Newline newline
755 \end_inset
756
757
758 \backslash
759 begin{minipage}{5cm}
760 \begin_inset Newline newline
761 \end_inset
762
763 This is an example of a minipage environment.
764  You 
765 \begin_inset Newline newline
766 \end_inset
767
768 can put nearly everything in it, even (non-floating) 
769 \begin_inset Newline newline
770 \end_inset
771
772 figures and tables.
773  
774 \begin_inset Newline newline
775 \end_inset
776
777
778 \backslash
779 end{minipage}
780 \begin_inset Newline newline
781 \end_inset
782
783 &
784 \begin_inset Newline newline
785 \end_inset
786
787
788 \backslash
789 begin{minipage}{5cm}
790 \begin_inset Newline newline
791 \end_inset
792
793
794 \backslash
795 begin{verbatim}
796 \begin_inset Newline newline
797 \end_inset
798
799
800 \backslash
801 begin{minipage}{5cm}
802 \begin_inset Newline newline
803 \end_inset
804
805 This ...
806  
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 end{minipage}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 end{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 end{minipage}
825 \begin_inset Newline newline
826 \end_inset
827
828
829 \backslash
830 end{tabular}
831 \end_layout
832
833 \begin_layout LyX-Code
834
835 \end_layout
836
837 \begin_layout Standard
838 The 
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 \SpecialChar TeX
844  Code
845 \end_layout
846
847 \end_inset
848
849  box containing this text is directly after this paragraph.
850  Those of you reading the manual in \SpecialChar LyX
851  will only see the \SpecialChar TeX
852  code inset.
853  Those reading a printed version of the manuals will see the actual results:
854 \begin_inset VSpace bigskip
855 \end_inset
856
857
858 \end_layout
859
860 \begin_layout Standard
861 \begin_inset ERT
862 status open
863
864 \begin_layout Plain Layout
865
866
867 \backslash
868 begin{tabular}{ll}
869 \end_layout
870
871 \begin_layout Plain Layout
872
873
874 \backslash
875 begin{minipage}{5cm}
876 \end_layout
877
878 \begin_layout Plain Layout
879
880 This is an example of a minipage environment.
881  You can put nearly everything in it, even (non-floating) figures and tables.
882  
883 \end_layout
884
885 \begin_layout Plain Layout
886
887
888 \backslash
889 end{minipage}
890 \end_layout
891
892 \begin_layout Plain Layout
893
894 &
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{minipage}{5cm}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906
907 \backslash
908 begin{verbatim}
909 \end_layout
910
911 \begin_layout Plain Layout
912
913
914 \backslash
915 begin{minipage}{5cm}
916 \end_layout
917
918 \begin_layout Plain Layout
919
920 This ...
921  
922 \end_layout
923
924 \begin_layout Plain Layout
925
926
927 \backslash
928 end{minipage}
929 \end_layout
930
931 \begin_layout Plain Layout
932
933
934 \backslash
935 end{verbatim}
936 \end_layout
937
938 \begin_layout Plain Layout
939
940
941 \backslash
942 end{minipage}
943 \end_layout
944
945 \begin_layout Plain Layout
946
947
948 \backslash
949 end{tabular}
950 \end_layout
951
952 \end_inset
953
954
955 \begin_inset VSpace bigskip
956 \end_inset
957
958
959 \end_layout
960
961 \begin_layout Standard
962 In addition to using \SpecialChar TeX
963  code, you can also create a separate file containing
964  some complex \SpecialChar LaTeX
965  structure and then use 
966 \begin_inset Flex Noun
967 status collapsed
968
969 \begin_layout Plain Layout
970 Insert\SpecialChar menuseparator
971 Child
972 \begin_inset space ~
973 \end_inset
974
975 Document
976 \end_layout
977
978 \end_inset
979
980  to include your file (you should select the type 
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 Input
986 \end_layout
987
988 \end_inset
989
990 ).
991  We recommend that you only do this if you have a 
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996 .tex
997 \end_layout
998
999 \end_inset
1000
1001  file which you 
1002 \emph on
1003 know
1004 \emph default
1005  works already.
1006  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1007  errors.
1008 \end_layout
1009
1010 \begin_layout Standard
1011 There are a few last points to emphasize:
1012 \end_layout
1013
1014 \begin_layout Itemize
1015 \SpecialChar LyX
1016  
1017 \emph on
1018 does not
1019 \emph default
1020  check if your \SpecialChar LaTeX
1021  code is correct.
1022 \end_layout
1023
1024 \begin_layout Itemize
1025 Beware of reinventing the wheel.
1026 \end_layout
1027
1028 \begin_layout Standard
1029 On that last point, \SpecialChar LyX
1030  does have quite a few features tucked into it, and
1031  more are coming.
1032  Be sure to check the manuals to make sure that \SpecialChar LyX
1033  doesn't have such-and-such
1034  feature before you decide you have to do it by hand.
1035  Moreover, there are numerous \SpecialChar LaTeX
1036  packages out there to do all sorts of things,
1037  from labels to envelopes to fancy multipage tables.
1038  Check out 
1039 \begin_inset CommandInset href
1040 LatexCommand href
1041 name "CTAN"
1042 target "http://www.ctan.org/"
1043 literal "false"
1044
1045 \end_inset
1046
1047  for details.
1048 \end_layout
1049
1050 \begin_layout Standard
1051 If you do need to do some wild and fancy things within your document, be
1052  sure to check out a good \SpecialChar LaTeX
1053  book for assistance.
1054  There are a number of them listed in the bibliography of the 
1055 \emph on
1056 User's Guide
1057 \emph default
1058 .
1059 \end_layout
1060
1061 \begin_layout Section
1062 \SpecialChar LyX
1063  and the \SpecialChar LaTeX
1064  Preamble
1065 \end_layout
1066
1067 \begin_layout Subsection
1068 About the \SpecialChar LaTeX
1069  Preamble
1070 \end_layout
1071
1072 \begin_layout Standard
1073 If you already know \SpecialChar LaTeX
1074 , there is no need to explain here what the preamble
1075  is good for.
1076  If you don't, the following will give you some ideas—we recommend again
1077  that you consult a \SpecialChar LaTeX
1078  book for further information.
1079  In any case, you should read the points below, because they explain what
1080  you can do and what you don't need to do in the \SpecialChar LaTeX
1081  preamble of a \SpecialChar LyX
1082  document.
1083 \end_layout
1084
1085 \begin_layout Standard
1086 The \SpecialChar LaTeX
1087  preamble comes at the very beginning of a document, 
1088 \emph on
1089 before
1090 \emph default
1091  the text.
1092  It serves to:
1093 \end_layout
1094
1095 \begin_layout Itemize
1096 Declare the document class.
1097  
1098 \begin_inset Newline newline
1099 \end_inset
1100
1101 \SpecialChar LyX
1102  already does this for you.
1103  If you're a seasoned \SpecialChar LaTeX
1104 -nician, and you have a custom document class you
1105  want to use, check out the 
1106 \emph on
1107 Customization Manual
1108 \emph default
1109  for information on how to make \SpecialChar LyX
1110  interface to it.
1111 \end_layout
1112
1113 \begin_layout Itemize
1114 Declare the usage of packages.
1115  
1116 \begin_inset Newline newline
1117 \end_inset
1118
1119 \SpecialChar LaTeX
1120  packages provide special commands, which are only available within a document
1121  when the package has been declared in the preamble.
1122  In addition to providing special commands, the inclusion of a package can
1123  change the document.
1124  For example, the package 
1125 \begin_inset Flex Code
1126 status collapsed
1127
1128 \begin_layout Plain Layout
1129 indentfirst
1130 \end_layout
1131
1132 \end_inset
1133
1134  forces all paragraphs to be indented.
1135  There are other packages for labels, envelopes, margins, etc.
1136  
1137 \end_layout
1138
1139 \begin_layout Itemize
1140 Set counters, variables, lengths and widths.
1141  
1142 \begin_inset Newline newline
1143 \end_inset
1144
1145 There are several \SpecialChar LaTeX
1146  counters and variables that 
1147 \emph on
1148 must
1149 \emph default
1150  be set globally from within the preamble in order to have the desired effect.
1151  (There are variables that you can set and reset inside the document, too.)
1152  Margins are a good example of something that must be set in the preamble.
1153  Another example is the label format for lists.
1154  You can actually set these just about anywhere, but it's best to do it
1155  just once, inside the preamble.
1156 \end_layout
1157
1158 \begin_layout Itemize
1159 Declare user defined commands (with 
1160 \begin_inset Flex Code
1161 status collapsed
1162
1163 \begin_layout Plain Layout
1164
1165 \backslash
1166 newcommand
1167 \end_layout
1168
1169 \end_inset
1170
1171  or 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176
1177 \backslash
1178 renewcommand
1179 \end_layout
1180
1181 \end_inset
1182
1183 ).
1184 \begin_inset Newline newline
1185 \end_inset
1186
1187 These are abbreviations for \SpecialChar LaTeX
1188  commands which appear very often inside a document.
1189  Although the preamble is a good place to declare such commands, they 
1190 \emph on
1191 can
1192 \emph default
1193  be declared anywhere (before they are used for the first time, of course).
1194  This can be useful if there is a lot of raw \SpecialChar LaTeX
1195  code in your document, which
1196  normally should not be the case.
1197 \end_layout
1198
1199 \begin_layout Standard
1200 \SpecialChar LyX
1201  adds its own set of definitions to the preamble of the 
1202 \begin_inset Flex Code
1203 status collapsed
1204
1205 \begin_layout Plain Layout
1206 .tex
1207 \end_layout
1208
1209 \end_inset
1210
1211  file it produces.
1212  This makes \SpecialChar LaTeX
1213  files generated by \SpecialChar LyX
1214  portable.
1215 \end_layout
1216
1217 \begin_layout Subsection
1218 Changing the Preamble
1219 \end_layout
1220
1221 \begin_layout Standard
1222 The commands which \SpecialChar LyX
1223  adds to the preamble of a \SpecialChar LaTeX
1224  file are fixed; you can't
1225  change them without patching \SpecialChar LyX
1226  itself.
1227  You can, however, add your own stuff to the preamble by selecting 
1228 \begin_inset Flex Noun
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 \SpecialChar LaTeX
1233
1234 \begin_inset space ~
1235 \end_inset
1236
1237 Preamble
1238 \end_layout
1239
1240 \end_inset
1241
1242  in the 
1243 \begin_inset Flex Noun
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 Document\SpecialChar menuseparator
1248 Settings
1249 \end_layout
1250
1251 \end_inset
1252
1253  dialog.
1254  \SpecialChar LyX
1255  adds anything in the 
1256 \begin_inset Flex Noun
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 Preamble
1261 \end_layout
1262
1263 \end_inset
1264
1265  dialog to its own built-in preamble.
1266  Before adding your own declarations in the preamble, you should make sure
1267  that \SpecialChar LyX
1268  doesn't already support what you want to do.
1269  (Remember what we said about reinventing the wheel?) Also, 
1270 \emph on
1271 make sure your preamble code is correct
1272 \emph default
1273 .
1274  \SpecialChar LyX
1275  doesn't check it for you.
1276  If there is an error, you're likely to get an error like 
1277 \begin_inset Quotes eld
1278 \end_inset
1279
1280
1281 \begin_inset Flex Code
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Missing 
1286 \backslash
1287 begin{document}
1288 \end_layout
1289
1290 \end_inset
1291
1292
1293 \begin_inset Quotes erd
1294 \end_inset
1295
1296 .
1297  If you see this error, check your preamble.
1298 \end_layout
1299
1300 \begin_layout Subsection
1301 Examples
1302 \end_layout
1303
1304 \begin_layout Standard
1305 Here are some examples of what you can add to a preamble, and what they
1306  do.
1307 \end_layout
1308
1309 \begin_layout Subsubsection
1310 Example #1: Offsets
1311 \end_layout
1312
1313 \begin_layout Standard
1314 There are two variables under \SpecialChar LaTeX
1315  that control page position: 
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320
1321 \backslash
1322 hoffset
1323 \end_layout
1324
1325 \end_inset
1326
1327  and 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332
1333 \backslash
1334 voffset
1335 \end_layout
1336
1337 \end_inset
1338
1339 .
1340  Their names should be self-explanatory.
1341  These variables are useful if you think for a moment about computer labels.
1342  Sometimes, the size of a print medium and the area of the medium that you
1343  can actually print on aren't the same.
1344  This is where 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349
1350 \backslash
1351 hoffset
1352 \end_layout
1353
1354 \end_inset
1355
1356  and 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361
1362 \backslash
1363 voffset
1364 \end_layout
1365
1366 \end_inset
1367
1368  come in.
1369 \end_layout
1370
1371 \begin_layout Standard
1372 The default values for 
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377
1378 \backslash
1379 hoffset
1380 \end_layout
1381
1382 \end_inset
1383
1384  and 
1385 \begin_inset Flex Code
1386 status collapsed
1387
1388 \begin_layout Plain Layout
1389
1390 \backslash
1391 voffset
1392 \end_layout
1393
1394 \end_inset
1395
1396  are both 0
1397 \begin_inset space \thinspace{}
1398 \end_inset
1399
1400 points, i.
1401 \begin_inset space \thinspace{}
1402 \end_inset
1403
1404 e.
1405 \begin_inset space \space{}
1406 \end_inset
1407
1408 the page isn't shifted.
1409  Unfortunately, some DVI drivers always seem to shift the page.
1410  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1411  If you're using \SpecialChar LyX
1412  on a system that you don't personally maintain, and your
1413  sysadmin is a doofus, 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 hoffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  and 
1426 \begin_inset Flex Code
1427 status collapsed
1428
1429 \begin_layout Plain Layout
1430
1431 \backslash
1432 voffset
1433 \end_layout
1434
1435 \end_inset
1436
1437  can save the day.
1438  Suppose your left and top margins are always 0.5
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 inches too big.
1443  You can add this to the preamble:
1444 \end_layout
1445
1446 \begin_layout LyX-Code
1447
1448 \backslash
1449 setlength{
1450 \backslash
1451 hoffset}{-0.5 in}
1452 \end_layout
1453
1454 \begin_layout LyX-Code
1455
1456 \backslash
1457 setlength{
1458 \backslash
1459 voffset}{-0.5 in}
1460 \end_layout
1461
1462 \begin_layout Standard
1463 and your margins should now be correct.
1464 \end_layout
1465
1466 \begin_layout Subsubsection
1467 Example #2: Labels
1468 \end_layout
1469
1470 \begin_layout Standard
1471 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1472  There's a rather nice package, available at your nearest CTAN archive,
1473  for printing sheets of labels: 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 labels.sty
1479 \end_layout
1480
1481 \end_inset
1482
1483 .
1484  Now, your system may not have this package installed by default.
1485  We leave that up to you to check.
1486  You'll also want to read the documentation for it; we're not going to do
1487  that for you.
1488  Since this is an example, however, we'll give you an example of how you
1489  use this package.
1490 \end_layout
1491
1492 \begin_layout Standard
1493 First, make sure you're using the 
1494 \begin_inset Flex Code
1495 status collapsed
1496
1497 \begin_layout Plain Layout
1498 article
1499 \end_layout
1500
1501 \end_inset
1502
1503  document class.
1504  Next, you need to put the following in your preamble:
1505 \end_layout
1506
1507 \begin_layout LyX-Code
1508
1509 \backslash
1510 usepackage{labels}
1511 \end_layout
1512
1513 \begin_layout LyX-Code
1514
1515 \backslash
1516 LabelCols=3
1517 \end_layout
1518
1519 \begin_layout LyX-Code
1520
1521 \backslash
1522 LabelRows=7
1523 \end_layout
1524
1525 \begin_layout LyX-Code
1526
1527 \backslash
1528 LeftBorder=8mm
1529 \end_layout
1530
1531 \begin_layout LyX-Code
1532
1533 \backslash
1534 RightBorder=8mm
1535 \end_layout
1536
1537 \begin_layout LyX-Code
1538
1539 \backslash
1540 TopBorder=9mm
1541 \end_layout
1542
1543 \begin_layout LyX-Code
1544
1545 \backslash
1546 BottomBorder=2mm
1547 \end_layout
1548
1549 \begin_layout Standard
1550 This sets things up for Avery label sheets, stock #5360.
1551  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1552  code, placing
1553  the commands 
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558
1559 \backslash
1560 begin{labels}
1561 \end_layout
1562
1563 \end_inset
1564
1565  and 
1566 \begin_inset Flex Code
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570
1571 \backslash
1572 end{labels}
1573 \end_layout
1574
1575 \end_inset
1576
1577  around each label text.
1578  This and other special features of 
1579 \begin_inset Flex Code
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 labels.sty
1584 \end_layout
1585
1586 \end_inset
1587
1588  are explained in its documentation.
1589 \end_layout
1590
1591 \begin_layout Standard
1592 Someday, someone may write a \SpecialChar LyX
1593  layout file to support this package directly.
1594  Maybe that someone is you.
1595 \end_layout
1596
1597 \begin_layout Subsubsection
1598 Example #3: Paragraph Indentation
1599 \end_layout
1600
1601 \begin_layout Standard
1602 Americans are trained to indent the first line of 
1603 \emph on
1604 every
1605 \emph default
1606  paragraph.
1607  As with all of their other weird quirks, most Americans will whine and
1608  moan until they can have their way and indent the first line of all paragraphs.
1609  (Yes, we're joking.
1610  (We are?) 
1611 \emph on
1612 Yeah
1613 \emph default
1614 , we are.)
1615 \end_layout
1616
1617 \begin_layout Standard
1618 Of course, this behavior isn't standard typography.
1619  In books, you typically only indent the first line of a paragraph 
1620 \emph on
1621 if
1622 \emph default
1623  it follows another one.
1624  The idea behind indenting the first line of a paragraph is to distinguish
1625  neighboring paragraphs from one another.
1626  If there is no previous paragraph—for example, if it follows a figure or
1627  is the first paragraph in a section—then there is no need for indentation.
1628  
1629 \end_layout
1630
1631 \begin_layout Standard
1632 If you're a typical American (we're still joking!), though, you don't care
1633  about such esoteric things; you want your indentation! Add this to the
1634  preamble:
1635 \end_layout
1636
1637 \begin_layout LyX-Code
1638
1639 \backslash
1640 usepackage{indentfirst}
1641 \end_layout
1642
1643 \begin_layout Standard
1644 If your \SpecialChar TeX
1645  distribution isn't braindead, you'll have this package, and all
1646  of your paragraphs will get the indentation the Founding Fathers intended
1647  they should have.
1648 \end_layout
1649
1650 \begin_layout Subsubsection
1651 Example #4: This Document
1652 \end_layout
1653
1654 \begin_layout Standard
1655 You can also check out the preamble of this document to get an idea of some
1656  of the advanced things you can do.
1657 \end_layout
1658
1659 \begin_layout Section
1660 \SpecialChar LyX
1661  and \SpecialChar LaTeX
1662  Errors
1663 \end_layout
1664
1665 \begin_layout Standard
1666 When \SpecialChar LyX
1667  calls \SpecialChar LaTeX
1668 , it tells \SpecialChar LaTeX
1669  to blithely ignore any errors and keep going.
1670  It then uses the logfile from the \SpecialChar LaTeX
1671  run to do a post-mortem.
1672  After analyzing the logfile, \SpecialChar LyX
1673  displays a dialog listing the errors.
1674  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1675  file
1676  where the error occurred.
1677 \begin_inset Foot
1678 status collapsed
1679
1680 \begin_layout Plain Layout
1681 Well, usually.
1682  Analyzing the logfile is a tough job, and \SpecialChar LyX
1683  doesn't always go to the right
1684  line.
1685  There are also cases where \SpecialChar LaTeX
1686  reports the error on one line, but the actual
1687  error is earlier.
1688  This is not unlike forgetting a closing brace in a program: You'll get
1689  an error, but only later.
1690 \end_layout
1691
1692 \end_inset
1693
1694
1695 \end_layout
1696
1697 \begin_layout Standard
1698 Some folks also like to look at the log file directly: It is available from
1699  
1700 \begin_inset Flex Noun
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 Document\SpecialChar menuseparator
1705 LaTeX
1706 \begin_inset space ~
1707 \end_inset
1708
1709 Log
1710 \end_layout
1711
1712 \end_inset
1713
1714 .
1715  There are some fairly common error messages and warnings.
1716  We'll cover those here.
1717  You should look at a good \SpecialChar LaTeX
1718  book for a complete listing.
1719 \end_layout
1720
1721 \begin_layout Itemize
1722 \begin_inset Flex Code
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 LaTeX Warning
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Newline newline
1733 \end_inset
1734
1735 Anything beginning with these words is a warning message for the purpose
1736  of 
1737 \begin_inset Quotes eld
1738 \end_inset
1739
1740 debugging
1741 \begin_inset Quotes erd
1742 \end_inset
1743
1744  the \SpecialChar LaTeX
1745  code itself.
1746  You'll get messages like this if you added or changed cross-references
1747  or bibliography entries, in which case, \SpecialChar LaTeX
1748  is trying to tell you that you
1749  need to make another run.
1750  You can by-and-large ignore these.
1751 \end_layout
1752
1753 \begin_layout Itemize
1754 \begin_inset Flex Code
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 LaTeX Font Warning
1759 \end_layout
1760
1761 \end_inset
1762
1763
1764 \begin_inset Newline newline
1765 \end_inset
1766
1767 Another warning message, this time about fonts which \SpecialChar LaTeX
1768  couldn't find.
1769  The rest of the message will often say something about a replacement font
1770  that \SpecialChar LaTeX
1771  used.
1772  You can safely ignore these, too.
1773 \end_layout
1774
1775 \begin_layout Itemize
1776 \begin_inset Flex Code
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Overfull 
1781 \backslash
1782 hbox
1783 \end_layout
1784
1785 \end_inset
1786
1787
1788 \begin_inset Newline newline
1789 \end_inset
1790
1791 \SpecialChar LaTeX
1792  absolutely 
1793 \emph on
1794 loves
1795 \emph default
1796  to spew these out.
1797  
1798 \change_inserted -712698321 1501222056
1799 It seems to generate at least one of these messages for just about any document
1800  you write.
1801  
1802 \change_unchanged
1803 They are warnings about lines that were too long and run past the right
1804  margin.
1805
1806 \change_inserted -712698321 1501222913
1807  This happens if \SpecialChar LaTeX
1808  does not find a reasonable way to break the lines (notoriously
1809  often with typewriter font, since this does not allow for automatic break
1810  points).
1811
1812 \change_unchanged
1813  
1814 \change_deleted -712698321 1501221633
1815 Almost always
1816 \change_inserted -712698321 1501221635
1817 In many cases
1818 \change_unchanged
1819 , this is unnoticeable in the final output.
1820  (It can be just a point or two.) 
1821 \change_deleted -712698321 1501221644
1822 Or, only one or two characters extend past the margin
1823 \change_inserted -712698321 1501222092
1824 Sometimes, however, the lines run rather visibly into the margin; something
1825  you will not want to have in your final print
1826 \change_unchanged
1827 .
1828  
1829 \change_deleted -712698321 1501222038
1830 \SpecialChar LaTeX
1831  seems to generate at least one of these messages for just about any document
1832  you write.
1833 \change_unchanged
1834
1835 \begin_inset Newline newline
1836 \end_inset
1837
1838
1839 \change_deleted -712698321 1501222960
1840 You can ignore these messages.
1841  Your eyes will tell you if there's a problem with something that's too
1842  wide; just look at the output.
1843 \begin_inset Foot
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 You can also enable the `draft' option in 
1848 \begin_inset Flex Noun
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 Document\SpecialChar menuseparator
1853 Settings
1854 \end_layout
1855
1856 \end_inset
1857
1858 , and then \SpecialChar LaTeX
1859  will draw a black box in the margin of lines that are overfull.
1860 \end_layout
1861
1862 \end_inset
1863
1864
1865 \change_inserted -712698321 1501223436
1866 There are several global ways to try to minimize the overfull lines.
1867  Clicking 
1868 \family sans
1869 Enable micro-typographic extensions
1870 \family default
1871  in 
1872 \family sans
1873 Document\SpecialChar menuseparator
1874 Settings\SpecialChar menuseparator
1875 Fonts
1876 \family default
1877  might already improve things a lot.
1878  Furthermore, \SpecialChar LaTeX
1879  code such as the following in 
1880 \family sans
1881 Document\SpecialChar menuseparator
1882 Settings\SpecialChar menuseparator
1883 Preamble
1884 \family default
1885  usually reduces the overfull lines drastically (we use this in the preamble
1886  of this document):
1887 \end_layout
1888
1889 \begin_deeper
1890 \begin_layout LyX-Code
1891
1892 \change_inserted -712698321 1501223447
1893
1894 \backslash
1895 tolerance 1414
1896 \begin_inset Newline newline
1897 \end_inset
1898
1899
1900 \backslash
1901 hbadness 1414
1902 \begin_inset Newline newline
1903 \end_inset
1904
1905
1906 \backslash
1907 emergencystretch 1.5em
1908 \begin_inset Newline newline
1909 \end_inset
1910
1911
1912 \backslash
1913 hfuzz 0.3pt
1914 \end_layout
1915
1916 \begin_layout Standard
1917
1918 \change_inserted -712698321 1501223436
1919 In some cases, however, you eventually have to rewrite the text to get the
1920  line breaking right.
1921 \begin_inset Foot
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925
1926 \change_inserted -712698321 1501223436
1927 For more information, see 
1928 \begin_inset Flex URL
1929 status open
1930
1931 \begin_layout Plain Layout
1932
1933 \change_inserted -712698321 1501223436
1934
1935 http://www.tex.ac.uk/FAQ-overfull.html
1936 \end_layout
1937
1938 \end_inset
1939
1940
1941 \end_layout
1942
1943 \end_inset
1944
1945
1946 \end_layout
1947
1948 \begin_layout Standard
1949
1950 \change_inserted -712698321 1501223436
1951 In any case, you should check the respective lines, at least for the final
1952  version of your document.
1953  Your eyes will tell you if there's a problem with something that's too
1954  wide.
1955 \begin_inset Foot
1956 status collapsed
1957
1958 \begin_layout Plain Layout
1959
1960 \change_inserted -712698321 1501223436
1961 You can also enable the `draft' option in 
1962 \begin_inset Flex Noun
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966
1967 \change_inserted -712698321 1501223436
1968 Document\SpecialChar menuseparator
1969 Settings
1970 \end_layout
1971
1972 \end_inset
1973
1974 , and then \SpecialChar LaTeX
1975  will draw a black box in the margin of lines that are overfull.
1976 \end_layout
1977
1978 \end_inset
1979
1980  
1981 \end_layout
1982
1983 \end_deeper
1984 \begin_layout Itemize
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 Underfull 
1990 \backslash
1991 hbox
1992 \end_layout
1993
1994 \end_inset
1995
1996
1997 \begin_inset Newline newline
1998 \end_inset
1999
2000 Not quite as common as its cousin.
2001
2002 \change_inserted -712698321 1501223875
2003  This happens again if
2004 \change_unchanged
2005  \SpecialChar LaTeX
2006  
2007 \change_inserted -712698321 1501223913
2008 does not find a reasonable break point and consequently generates too loose
2009  lines.
2010  
2011 \change_deleted -712698321 1501223919
2012 seems to like to print lines that are a bit too wide as opposed to ones
2013  that are a bit too narrow.
2014  We have no idea why.
2015 \change_inserted -712698321 1501223940
2016 As with the overfull lines, you should check if this is a visible problem.
2017 \change_unchanged
2018
2019 \end_layout
2020
2021 \begin_layout Itemize
2022 \begin_inset Flex Code
2023 status collapsed
2024
2025 \begin_layout Plain Layout
2026 Overfull 
2027 \backslash
2028 vbox
2029 \end_layout
2030
2031 \end_inset
2032
2033  and 
2034 \begin_inset Flex Code
2035 status collapsed
2036
2037 \begin_layout Plain Layout
2038 Underfull 
2039 \backslash
2040 vbox
2041 \end_layout
2042
2043 \end_inset
2044
2045
2046 \begin_inset Newline newline
2047 \end_inset
2048
2049 Warnings about troubles breaking the page.
2050  Once again, just look at the output.
2051  Your eyes will tell you where something has gone wrong.
2052 \end_layout
2053
2054 \begin_layout Itemize
2055 \begin_inset Flex Code
2056 status collapsed
2057
2058 \begin_layout Plain Layout
2059 LaTeX Error: File 
2060 \begin_inset Quotes els
2061 \end_inset
2062
2063 Xxxx
2064 \begin_inset Quotes ers
2065 \end_inset
2066
2067  not found
2068 \end_layout
2069
2070 \end_inset
2071
2072
2073 \begin_inset Newline newline
2074 \end_inset
2075
2076 The file 
2077 \begin_inset Quotes eld
2078 \end_inset
2079
2080 Xxxx
2081 \begin_inset Quotes erd
2082 \end_inset
2083
2084  isn't installed on this system.
2085  This usually appears because some package your document needs isn't installed.
2086  If you didn't touch the preamble or didn't use the 
2087 \begin_inset Flex Code
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091
2092 \backslash
2093 usepackage{}
2094 \end_layout
2095
2096 \end_inset
2097
2098  command, then one of the packages \SpecialChar LyX
2099  tried to load is missing.
2100  Use 
2101 \begin_inset Flex Noun
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105 Help\SpecialChar menuseparator
2106 \SpecialChar LaTeX
2107  Configuration
2108 \end_layout
2109
2110 \end_inset
2111
2112  to get a list of packages that \SpecialChar LyX
2113  knows about.
2114  This file is updated whenever you reconfigure \SpecialChar LyX
2115  (using 
2116 \begin_inset Flex Noun
2117 status collapsed
2118
2119 \begin_layout Plain Layout
2120 Tools\SpecialChar menuseparator
2121 Reconfigure
2122 \end_layout
2123
2124 \end_inset
2125
2126 ) and tells you which packages have been detected and what they do.
2127 \begin_inset Newline newline
2128 \end_inset
2129
2130 If you did use the 
2131 \begin_inset Flex Code
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135
2136 \backslash
2137 usepackage{}
2138 \end_layout
2139
2140 \end_inset
2141
2142  command and the package in question isn't installed, then you'll need to
2143  install it yourself.
2144 \end_layout
2145
2146 \begin_layout Itemize
2147 \begin_inset Flex Code
2148 status collapsed
2149
2150 \begin_layout Plain Layout
2151 LaTeX Error: Unknown option
2152 \end_layout
2153
2154 \end_inset
2155
2156
2157 \begin_inset Newline newline
2158 \end_inset
2159
2160 Error messages beginning with this are trying to tell you that you specified
2161  a bad or undefined option to a package.
2162  Check the package's documentation.
2163 \end_layout
2164
2165 \begin_layout Itemize
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 Undefined control sequence
2171 \end_layout
2172
2173 \end_inset
2174
2175
2176 \begin_inset Newline newline
2177 \end_inset
2178
2179 If you've inserted \SpecialChar LaTeX
2180  code into your document, but made a typo, you'll get
2181  one of these.
2182  You may have forgotten to load a package.
2183  In any case, this error message usually means that you used an undefined
2184  command.
2185  
2186 \end_layout
2187
2188 \begin_layout Standard
2189 There are other error and warning messages.
2190  Some are self-explanatory.
2191  These are usually \SpecialChar LaTeX
2192  messages.
2193  Others are downright cryptic.
2194  These are usually \SpecialChar TeX
2195  error messages, and we really have 
2196 \emph on
2197 no clue
2198 \emph default
2199  what they mean or how to decipher them.
2200  No-one does.
2201 \end_layout
2202
2203 \begin_layout Standard
2204 There's a general sequence you should follow if you get error messages:
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Look at the \SpecialChar LaTeX
2209  code you inserted for typos.
2210 \end_layout
2211
2212 \begin_layout Enumerate
2213 If there are no typos, check that you used the command(s) correctly.
2214 \end_layout
2215
2216 \begin_layout Enumerate
2217 If you get a bunch of error boxes piled up at the very top of the document—and
2218  especially if you see a 
2219 \begin_inset Quotes eld
2220 \end_inset
2221
2222
2223 \begin_inset Flex Code
2224 status collapsed
2225
2226 \begin_layout Plain Layout
2227 Missing 
2228 \backslash
2229 begin{document}
2230 \end_layout
2231
2232 \end_inset
2233
2234
2235 \begin_inset Quotes erd
2236 \end_inset
2237
2238  error—it means that there are errors in the preamble.
2239  Start debugging your preamble.
2240 \end_layout
2241
2242 \begin_layout Enumerate
2243 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2244  code to the
2245  document, the first suspect is your \SpecialChar LaTeX
2246  distribution itself.
2247  Check for missing packages and install them.
2248 \end_layout
2249
2250 \begin_layout Enumerate
2251 Okay, so there are no missing packages.
2252  Did you use any of the fine-tuning options in \SpecialChar LyX
2253 ? Specifically, did you 
2254 \emph on
2255 misuse
2256 \emph default
2257  any of them, like trying to manually insert lots of 
2258 \begin_inset Flex Code
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 Protected
2263 \begin_inset space ~
2264 \end_inset
2265
2266 Blanks
2267 \end_layout
2268
2269 \end_inset
2270
2271
2272 \begin_inset Flex Code
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 Linebreaks
2277 \end_layout
2278
2279 \end_inset
2280
2281 , or 
2282 \begin_inset Flex Code
2283 status collapsed
2284
2285 \begin_layout Plain Layout
2286 Pagebreaks
2287 \end_layout
2288
2289 \end_inset
2290
2291 ? Did you try to kludge something together with these instead of using the
2292  appropriate paragraph environment?
2293 \end_layout
2294
2295 \begin_layout Enumerate
2296 All right, you didn't use any of the fine-tuning options, you played by
2297  the rules.
2298  Did you try to pull a fancy maneuver? Did you do something funky inside
2299  a table or an equation, like inserting a graphic into a table cell?
2300 \end_layout
2301
2302 \begin_layout Enumerate
2303 Do you have long sections of text where \SpecialChar LaTeX
2304  cannot find a place to break a
2305  line? By default, \SpecialChar LaTeX
2306  is rather strict about how much extra inter-word spacing
2307  it will add in order to break a line.
2308  Preferably, you should rework the paragraph to avoid the problem.
2309 \end_layout
2310
2311 \begin_layout Enumerate
2312 Did you go overboard with the nesting? \SpecialChar LyX
2313  (currently) doesn't check to make
2314  sure you're in the limits for nesting environments.
2315  If you nested a bunch of environments to the 
2316 \begin_inset Formula $17^{\mathrm{th}}$
2317 \end_inset
2318
2319  level, that's the problem.
2320  (The limit in \SpecialChar LaTeX
2321  is five.)
2322 \end_layout
2323
2324 \begin_layout Enumerate
2325 Okay, you didn't get any error messages, but your output looks awful.
2326  If you have a table or figure that's too wide or long for the page, you
2327  need to:
2328 \end_layout
2329
2330 \begin_deeper
2331 \begin_layout Enumerate
2332 rescale the figure so it fits.
2333 \end_layout
2334
2335 \begin_layout Enumerate
2336 trim down the table so it fits.
2337 \end_layout
2338
2339 \end_deeper
2340 \begin_layout Enumerate
2341 If something else is wrong with the output, and you didn't try to pull anything
2342  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2343 \end_layout
2344
2345 \begin_layout Standard
2346 If all this doesn't help—well, then 
2347 \emph on
2348 perhaps
2349 \emph default
2350  you might have found a bug in \SpecialChar LyX
2351 \SpecialChar ldots
2352 .
2353 \end_layout
2354
2355 \begin_layout Chapter
2356 Supplemental Tools
2357 \end_layout
2358
2359 \begin_layout Section
2360 Customizing Bibliographies with Bib\SpecialChar TeX
2361  or Biblatex
2362 \end_layout
2363
2364 \begin_layout Standard
2365 The most basic information about how to use Bib\SpecialChar TeX
2366  or 
2367 \family sans
2368 Biblatex
2369 \family default
2370  with \SpecialChar LyX
2371  is contained in the section 
2372 \emph on
2373 Bibliography databases
2374 \emph default
2375  of the 
2376 \emph on
2377 User's Guide
2378 \emph default
2379 .
2380  The following subsections explain special bibliography features supported
2381  by \SpecialChar LyX
2382 .
2383 \end_layout
2384
2385 \begin_layout Subsection
2386 Alternative Citation Styles
2387 \end_layout
2388
2389 \begin_layout Standard
2390 Standard Bib\SpecialChar TeX
2391  uses numbers (e.
2392 \begin_inset space \thinspace{}
2393 \end_inset
2394
2395 g.
2396 \begin_inset space \space{}
2397 \end_inset
2398
2399
2400 \begin_inset Quotes eld
2401 \end_inset
2402
2403 [12]
2404 \begin_inset Quotes erd
2405 \end_inset
2406
2407 ) to refer to a cited work.
2408  However, in many scientific disciplines, other citation styles are in use.
2409  The most common one is the author-year style (e.
2410 \begin_inset space \thinspace{}
2411 \end_inset
2412
2413 g.
2414 \begin_inset space \space{}
2415 \end_inset
2416
2417
2418 \begin_inset Quotes eld
2419 \end_inset
2420
2421 Knuth 1984a
2422 \begin_inset Quotes erd
2423 \end_inset
2424
2425 ).
2426  \SpecialChar LyX
2427  supports three packages that provide this style, 
2428 \begin_inset Flex Code
2429 status collapsed
2430
2431 \begin_layout Plain Layout
2432 biblatex
2433 \end_layout
2434
2435 \end_inset
2436
2437
2438 \begin_inset Flex Code
2439 status collapsed
2440
2441 \begin_layout Plain Layout
2442 natbib
2443 \end_layout
2444
2445 \end_inset
2446
2447 , and 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 jurabib
2453 \end_layout
2454
2455 \end_inset
2456
2457 .
2458  Each of these packages has their pros and cons, which cannot be listed
2459  in detail.
2460  If you only want to have simple author-year (or author-numerical) style,
2461  or if you want to use one of the countless style files for 
2462 \begin_inset Flex Code
2463 status collapsed
2464
2465 \begin_layout Plain Layout
2466 natbib
2467 \end_layout
2468
2469 \end_inset
2470
2471 , then the established 
2472 \begin_inset Flex Code
2473 status collapsed
2474
2475 \begin_layout Plain Layout
2476 natbib
2477 \end_layout
2478
2479 \end_inset
2480
2481  package is probably your choice.
2482  If you look for specific citation styles common in law studies, you might
2483  consider the 
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 jurabib
2489 \end_layout
2490
2491 \end_inset
2492
2493  package.
2494  If you want to have full control over the formatting or look for advanced
2495  features such as ibidem, footnote citations, full title citations, advanced
2496  date formats (such as 400 BC) or full localization to other languages than
2497  English, you should definitely consider 
2498 \begin_inset Flex Code
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 biblatex
2503 \end_layout
2504
2505 \end_inset
2506
2507 , which exceeds all other packages in terms of features, but is also quite
2508  heavy and more resource-hungry.
2509 \end_layout
2510
2511 \begin_layout Standard
2512 The handling of these packages in \SpecialChar LyX
2513  is basically the same.
2514  Go to 
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 Document\SpecialChar menuseparator
2520 Settings
2521 \end_layout
2522
2523 \end_inset
2524
2525  and select under 
2526 \begin_inset Flex Noun
2527 status collapsed
2528
2529 \begin_layout Plain Layout
2530 Bibliography
2531 \end_layout
2532
2533 \end_inset
2534
2535  the 
2536 \begin_inset Flex Noun
2537 status collapsed
2538
2539 \begin_layout Plain Layout
2540 Style Format
2541 \end_layout
2542
2543 \end_inset
2544
2545  
2546 \begin_inset Flex Noun
2547 status collapsed
2548
2549 \begin_layout Plain Layout
2550 Biblatex
2551 \end_layout
2552
2553 \end_inset
2554
2555
2556 \begin_inset Flex Noun
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 Biblatex (Natbib mode)
2561 \end_layout
2562
2563 \end_inset
2564
2565
2566 \begin_inset Flex Noun
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570 Natbib (BibTeX)
2571 \end_layout
2572
2573 \end_inset
2574
2575  or 
2576 \begin_inset Flex Noun
2577 status collapsed
2578
2579 \begin_layout Plain Layout
2580 Jurabib (BibTeX)
2581 \end_layout
2582
2583 \end_inset
2584
2585  (see sec.
2586 \begin_inset space ~
2587 \end_inset
2588
2589 6.5.3 in the User's Guide for more information on these choices).
2590  With all these packages, you will get some extra features in the citation
2591  dialog and you can select the style of the reference (
2592 \begin_inset Quotes eld
2593 \end_inset
2594
2595 Knuth 1984
2596 \begin_inset Quotes erd
2597 \end_inset
2598
2599
2600 \begin_inset Quotes eld
2601 \end_inset
2602
2603 Knuth (1984)
2604 \begin_inset Quotes erd
2605 \end_inset
2606
2607
2608 \begin_inset Quotes eld
2609 \end_inset
2610
2611 Knuth, 1984
2612 \begin_inset Quotes erd
2613 \end_inset
2614
2615
2616 \begin_inset Quotes eld
2617 \end_inset
2618
2619 1984
2620 \begin_inset Quotes erd
2621 \end_inset
2622
2623  etc.).
2624  Note that either package needs specifically designed style files.
2625  They all ship their own, but there are lots of additional style files,
2626  and there is even an interactive style file builder
2627 \begin_inset Foot
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 See 
2632 \begin_inset Flex URL
2633 status open
2634
2635 \begin_layout Plain Layout
2636
2637 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2638 \end_layout
2639
2640 \end_inset
2641
2642
2643 \end_layout
2644
2645 \end_inset
2646
2647  for 
2648 \begin_inset Flex Code
2649 status collapsed
2650
2651 \begin_layout Plain Layout
2652 natbib
2653 \end_layout
2654
2655 \end_inset
2656
2657 .
2658 \end_layout
2659
2660 \begin_layout Subsection
2661 Subdivided Bibliographies
2662 \end_layout
2663
2664 \begin_layout Standard
2665 Sometimes you might need to divide your bibliography into several sections.
2666  If you are for instance a historian, the possibility to separate sources
2667  and scientific works is most likely a 
2668 \begin_inset Quotes eld
2669 \end_inset
2670
2671 must have
2672 \begin_inset Quotes erd
2673 \end_inset
2674
2675 .
2676  Unfortunately, Bib\SpecialChar TeX
2677  itself does not allow you to do this.
2678  But with the help of some \SpecialChar LaTeX
2679  packages, Bib\SpecialChar TeX
2680  can be extended to fit your needs.
2681 \end_layout
2682
2683 \begin_layout Standard
2684 \SpecialChar LyX
2685  provides native support for one of these packages, 
2686 \family typewriter
2687 bibtopic
2688 \family default
2689 .
2690 \begin_inset Foot
2691 status collapsed
2692
2693 \begin_layout Plain Layout
2694 Available from 
2695 \begin_inset Flex URL
2696 status open
2697
2698 \begin_layout Plain Layout
2699
2700 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2701 \end_layout
2702
2703 \end_inset
2704
2705
2706 \end_layout
2707
2708 \end_inset
2709
2710  The advantage of this package (compared to other packages such as 
2711 \family typewriter
2712 multibib
2713 \family default
2714 ) is that you don't need to define new citation commands.
2715  Instead, you need to prepare different bibliographic databases which include
2716  the entries for the different sections of the bibliography.
2717  For example: If you want to divide your bibliography into the sections
2718  
2719 \begin_inset Quotes eld
2720 \end_inset
2721
2722 Sources
2723 \begin_inset Quotes erd
2724 \end_inset
2725
2726  and 
2727 \begin_inset Quotes eld
2728 \end_inset
2729
2730 Scientific works
2731 \begin_inset Quotes erd
2732 \end_inset
2733
2734 , you first need to create two bibliographic databases, e.
2735 \begin_inset space \thinspace{}
2736 \end_inset
2737
2738 g.
2739 \begin_inset space \space{}
2740 \end_inset
2741
2742
2743 \begin_inset Flex Code
2744 status collapsed
2745
2746 \begin_layout Plain Layout
2747 sources.bib
2748 \end_layout
2749
2750 \end_inset
2751
2752  and 
2753 \begin_inset Flex Code
2754 status collapsed
2755
2756 \begin_layout Plain Layout
2757 scientific.bib
2758 \end_layout
2759
2760 \end_inset
2761
2762 .
2763  
2764 \end_layout
2765
2766 \begin_layout Standard
2767 Go to 
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 Document\SpecialChar menuseparator
2773 Settings
2774 \end_layout
2775
2776 \end_inset
2777
2778  and check under 
2779 \begin_inset Flex Noun
2780 status collapsed
2781
2782 \begin_layout Plain Layout
2783 Bibliography
2784 \end_layout
2785
2786 \end_inset
2787
2788  the option 
2789 \begin_inset Flex Noun
2790 status collapsed
2791
2792 \begin_layout Plain Layout
2793 Subdivided bibliography
2794 \end_layout
2795
2796 \end_inset
2797
2798 .
2799  Now you can insert multiple Bib\SpecialChar TeX
2800  bibliographies, one for each section of
2801  your bibliography.
2802  Returning to our example: Insert the Bib\SpecialChar TeX
2803  bibliography 
2804 \begin_inset Flex Code
2805 status collapsed
2806
2807 \begin_layout Plain Layout
2808 sources.bib
2809 \end_layout
2810
2811 \end_inset
2812
2813  and a second one for the database 
2814 \begin_inset Flex Code
2815 status collapsed
2816
2817 \begin_layout Plain Layout
2818 scientific.bib
2819 \end_layout
2820
2821 \end_inset
2822
2823 .
2824  You are free to use the same or different styles for each section.
2825  Additionally, you can choose if the bibliography section should contain
2826  
2827 \begin_inset Quotes eld
2828 \end_inset
2829
2830 all cited references
2831 \begin_inset Quotes erd
2832 \end_inset
2833
2834  of the specified database(s) (which is the default), 
2835 \begin_inset Quotes eld
2836 \end_inset
2837
2838 all uncited references
2839 \begin_inset Quotes erd
2840 \end_inset
2841
2842  or even 
2843 \begin_inset Quotes eld
2844 \end_inset
2845
2846 all references
2847 \begin_inset Quotes erd
2848 \end_inset
2849
2850 .
2851  This might be useful if you would like to separate your bibliography into
2852  three sections: 
2853 \begin_inset Quotes eld
2854 \end_inset
2855
2856 Cited sources
2857 \begin_inset Quotes erd
2858 \end_inset
2859
2860
2861 \begin_inset Quotes eld
2862 \end_inset
2863
2864 Uncited sources
2865 \begin_inset Quotes erd
2866 \end_inset
2867
2868 , and 
2869 \begin_inset Quotes eld
2870 \end_inset
2871
2872 Scientific works
2873 \begin_inset Quotes erd
2874 \end_inset
2875
2876 .
2877  The titles for the sections can be added as ordinary sections or subsections.
2878  Since 
2879 \begin_inset Flex Code
2880 status collapsed
2881
2882 \begin_layout Plain Layout
2883 bibtopic
2884 \end_layout
2885
2886 \end_inset
2887
2888  removes the bibliography title, you have to manually re-add that, too (as
2889  a chapter* or section*, for instance).
2890 \end_layout
2891
2892 \begin_layout Standard
2893 With 
2894 \family sans
2895 Biblatex
2896 \family default
2897 , the procedure is a bit different.
2898  Since 
2899 \family typewriter
2900 bibtopic
2901 \family default
2902  does not work with 
2903 \family sans
2904 Biblatex
2905 \family default
2906 , the aforementioned 
2907 \begin_inset Flex Noun
2908 status collapsed
2909
2910 \begin_layout Plain Layout
2911 Subdivided bibliography
2912 \end_layout
2913
2914 \end_inset
2915
2916  option is disabled if you use 
2917 \family sans
2918 Biblatex
2919 \family default
2920 .
2921  However, 
2922 \family sans
2923 Biblatex
2924 \family default
2925  provides its own means to generate subdivided bibliographies.
2926  You can either add keywords to bibliography entries via the 
2927 \begin_inset Flex Code
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 keywords
2932 \end_layout
2933
2934 \end_inset
2935
2936  entry option and then filter bibliography sections by keyword (by adding
2937  
2938 \begin_inset Flex Code
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 keyword=mykeyword
2943 \end_layout
2944
2945 \end_inset
2946
2947  to the 
2948 \begin_inset Flex Noun
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 Options
2953 \end_layout
2954
2955 \end_inset
2956
2957  field of the dialog that opens if you right-click on the 
2958 \begin_inset Flex Noun
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 Biblatex Generated Bibliography
2963 \end_layout
2964
2965 \end_inset
2966
2967  button), or you can filter by entry types (such as 
2968 \emph on
2969 book
2970 \emph default
2971  or 
2972 \emph on
2973 article
2974 \emph default
2975 ) by entering e.
2976 \begin_inset space \thinspace{}
2977 \end_inset
2978
2979 g.
2980  
2981 \begin_inset Flex Code
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 type=book
2986 \end_layout
2987
2988 \end_inset
2989
2990  or 
2991 \begin_inset Flex Code
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 nottype=collection
2996 \end_layout
2997
2998 \end_inset
2999
3000  to the mentioned 
3001 \begin_inset Flex Noun
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 Options
3006 \end_layout
3007
3008 \end_inset
3009
3010  field, or you can create so-called 
3011 \begin_inset Quotes eld
3012 \end_inset
3013
3014 Bibliography Categories
3015 \begin_inset Quotes erd
3016 \end_inset
3017
3018  to which you can assign individual entries.
3019  Please refer to the Biblatex manual, section 
3020 \emph on
3021 Subdivided Bibliographies
3022 \emph default
3023 , for details.
3024 \end_layout
3025
3026 \begin_layout Subsection
3027 Multiple Bibliographies
3028 \change_inserted -712698321 1501227893
3029
3030 \begin_inset CommandInset label
3031 LatexCommand label
3032 name "subsec:Multiple-Bibliographies"
3033
3034 \end_inset
3035
3036
3037 \change_unchanged
3038
3039 \end_layout
3040
3041 \begin_layout Standard
3042 Multiple bibliographies, e.
3043 \begin_inset space \thinspace{}
3044 \end_inset
3045
3046 g.
3047 \begin_inset space \space{}
3048 \end_inset
3049
3050 a bibliography for each part, chapter, section, subsection or child (sub-documen
3051 t) of the document, are also supported by \SpecialChar LyX
3052 .
3053  In order to enable it, go to 
3054 \begin_inset Flex Noun
3055 status collapsed
3056
3057 \begin_layout Plain Layout
3058 Document\SpecialChar menuseparator
3059 Settings\SpecialChar menuseparator
3060 Bibliography
3061 \end_layout
3062
3063 \end_inset
3064
3065  and select the relevant unit (e.
3066 \begin_inset space \thinspace{}
3067 \end_inset
3068
3069 g., 
3070 \begin_inset Quotes eld
3071 \end_inset
3072
3073 per section
3074 \begin_inset Quotes erd
3075 \end_inset
3076
3077 ) in the 
3078 \begin_inset Flex Noun
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 Multiple Bibliographies
3083 \end_layout
3084
3085 \end_inset
3086
3087  combo box.
3088  Then add a Bib(la)\SpecialChar TeX
3089  bibliography to each unit (e.
3090 \begin_inset space \thinspace{}
3091 \end_inset
3092
3093 g., section) of your document.
3094  In the output, a separate bibliography, containing only the references
3095  done in the current unit is generated.
3096 \end_layout
3097
3098 \begin_layout Standard
3099 If you use Bib\SpecialChar TeX
3100 , either the 
3101 \begin_inset Flex Code
3102 status collapsed
3103
3104 \begin_layout Plain Layout
3105 chapterbib
3106 \end_layout
3107
3108 \end_inset
3109
3110  o
3111 \change_deleted -712698321 1501067466
3112 f
3113 \change_inserted -712698321 1501067466
3114 r
3115 \change_unchanged
3116  the 
3117 \begin_inset Flex Code
3118 status collapsed
3119
3120 \begin_layout Plain Layout
3121 bibtopic
3122 \end_layout
3123
3124 \end_inset
3125
3126  package is used to create multiple bibliographies.
3127  The former package is used if you select 
3128 \begin_inset Quotes eld
3129 \end_inset
3130
3131 per child document
3132 \begin_inset Quotes erd
3133 \end_inset
3134
3135  and do 
3136 \emph on
3137 not
3138 \emph default
3139  check 
3140 \begin_inset Flex Noun
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 Sectioned Bibliography
3145 \end_layout
3146
3147 \end_inset
3148
3149 .
3150  In all other cases, 
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 bibtopic
3156 \end_layout
3157
3158 \end_inset
3159
3160  is used.
3161 \begin_inset Foot
3162 status collapsed
3163
3164 \begin_layout Plain Layout
3165 An alternative approach, if you are willing to use some 
3166 \begin_inset Flex Noun
3167 status collapsed
3168
3169 \begin_layout Plain Layout
3170 \SpecialChar TeX
3171  Code
3172 \end_layout
3173
3174 \end_inset
3175
3176  (see section
3177 \begin_inset space ~
3178 \end_inset
3179
3180
3181 \begin_inset CommandInset ref
3182 LatexCommand ref
3183 reference "sec:Inserting-TeX-Code"
3184
3185 \end_inset
3186
3187 ), is to use the 
3188 \begin_inset Flex Code
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192 bibunits
3193 \end_layout
3194
3195 \end_inset
3196
3197  package.
3198 \end_layout
3199
3200 \end_inset
3201
3202  If 
3203 \begin_inset Flex Code
3204 status collapsed
3205
3206 \begin_layout Plain Layout
3207 bibtopic
3208 \end_layout
3209
3210 \end_inset
3211
3212  is used, \SpecialChar LyX
3213  encloses the specified units in 
3214 \begin_inset Flex Code
3215 status collapsed
3216
3217 \begin_layout Plain Layout
3218 bibtopic
3219 \end_layout
3220
3221 \end_inset
3222
3223 's 
3224 \begin_inset Flex Code
3225 status collapsed
3226
3227 \begin_layout Plain Layout
3228
3229 \backslash
3230 begin{btUnit}
3231 \end_layout
3232
3233 \end_inset
3234
3235  and 
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240
3241 \backslash
3242 end{btUnit}
3243 \end_layout
3244
3245 \end_inset
3246
3247  in order to create the units.
3248  Note that this approach has some limitations.
3249  First, every citation reference has to be inside some 
3250 \begin_inset Flex Code
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 btUnit
3255 \end_layout
3256
3257 \end_inset
3258
3259 .
3260  So citations outside a defined unit (e.
3261 \begin_inset space \thinspace{}
3262 \end_inset
3263
3264 g., before the first section if you use 
3265 \begin_inset Quotes eld
3266 \end_inset
3267
3268 by section
3269 \begin_inset Quotes erd
3270 \end_inset
3271
3272 ) will appear as 
3273 \begin_inset Quotes eld
3274 \end_inset
3275
3276 ???
3277 \begin_inset Quotes erd
3278 \end_inset
3279
3280 .
3281  You can also create your own units by entering 
3282 \begin_inset Flex Code
3283 status collapsed
3284
3285 \begin_layout Plain Layout
3286
3287 \backslash
3288 begin{btUnit}
3289 \end_layout
3290
3291 \end_inset
3292
3293  and 
3294 \begin_inset Flex Code
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298
3299 \backslash
3300 end{btUnit}
3301 \end_layout
3302
3303 \end_inset
3304
3305  as \SpecialChar TeX
3306  code (for instance to work around the mentioned limitation).
3307  Note, though, that 
3308 \begin_inset Flex Code
3309 status collapsed
3310
3311 \begin_layout Plain Layout
3312 btUnit
3313 \end_layout
3314
3315 \end_inset
3316
3317 s cannot be nested.
3318  A second limitation is that 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 bibtopic
3324 \end_layout
3325
3326 \end_inset
3327
3328  always processes all references of a bibliography database, even if they
3329  are not cited.
3330  This can result in odd labels (e.
3331 \begin_inset space \thinspace{}
3332 \end_inset
3333
3334 g.
3335  
3336 \begin_inset Quotes eld
3337 \end_inset
3338
3339 Miller 2014b
3340 \begin_inset Quotes erd
3341 \end_inset
3342
3343  if two works of this author from 2014 are in the database, even if only
3344  one is cited).
3345 \end_layout
3346
3347 \begin_layout Standard
3348 If you use 
3349 \family sans
3350 Biblatex
3351 \family default
3352 , the 
3353 \begin_inset Flex Code
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 refsection
3358 \end_layout
3359
3360 \end_inset
3361
3362  option is used instead.
3363  If you need specific units, you can start them with the \SpecialChar TeX
3364  code 
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369
3370 \backslash
3371 newrefsection
3372 \end_layout
3373
3374 \end_inset
3375
3376  or 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381
3382 \backslash
3383 newrefsegment
3384 \end_layout
3385
3386 \end_inset
3387
3388 , respectively.
3389  If you also want to control the end of the unit, use the environment 
3390 \begin_inset Flex Code
3391 status collapsed
3392
3393 \begin_layout Plain Layout
3394
3395 \backslash
3396 begin{refsection}
3397 \end_layout
3398
3399 \end_inset
3400
3401  \SpecialChar ldots
3402  
3403 \begin_inset Flex Code
3404 status collapsed
3405
3406 \begin_layout Plain Layout
3407
3408 \backslash
3409 end{refsection}
3410 \end_layout
3411
3412 \end_inset
3413
3414  instead.
3415  Note, though, that 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 refsection
3421 \end_layout
3422
3423 \end_inset
3424
3425 s cannot be nested.
3426  In addition to the individual bibliography of the current unit, 
3427 \family sans
3428 Biblatex
3429 \family default
3430  also provides an easy way to output all bibliographies, subsequently, at
3431  one place (e.
3432 \begin_inset space \thinspace{}
3433 \end_inset
3434
3435 g., at the end of the document).
3436  Select 
3437 \begin_inset Quotes eld
3438 \end_inset
3439
3440 all reference units
3441 \begin_inset Quotes erd
3442 \end_inset
3443
3444  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3445  this.
3446  Please refer to the 
3447 \family sans
3448 Biblatex
3449 \family default
3450  manual for more information on this topic.
3451 \end_layout
3452
3453 \begin_layout Section
3454 Multipart Documents
3455 \end_layout
3456
3457 \begin_layout Subsection
3458 General Operation
3459 \end_layout
3460
3461 \begin_layout Standard
3462 When you are working on a large file with many sections, it is often convenient
3463  to break up the document into several files, or perhaps you have something
3464  where a table may change from time to time, but the preceding text does
3465  not.
3466  In these cases, you should seriously consider using multipart documents.
3467  For example, scientific papers often have five major sections: the introduction
3468 , observations, results, discussion, and conclusion.
3469  Each of these could be its own separate \SpecialChar LyX
3470  file, with one 
3471 \begin_inset Quotes eld
3472 \end_inset
3473
3474 master
3475 \begin_inset Quotes erd
3476 \end_inset
3477
3478  file which contains the title, authors, abstract, references, etc., plus
3479  the five included files.
3480  It is important to note that each of these files is a full \SpecialChar LyX
3481  file which
3482  can be formatted and printed on its own, as well as included in a master
3483  file.
3484  Each of these files must have the same document class, however—don't attempt
3485  to mix book classes with article classes.
3486  You may also include \SpecialChar LaTeX
3487  files; however, these files must not have their own
3488  preamble (i.
3489 \begin_inset space \thinspace{}
3490 \end_inset
3491
3492 e.
3493 \begin_inset space \space{}
3494 \end_inset
3495
3496 everything up to and including the 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501
3502 \backslash
3503 begin{document}
3504 \end_layout
3505
3506 \end_inset
3507
3508  line as well as the 
3509 \begin_inset Flex Code
3510 status collapsed
3511
3512 \begin_layout Plain Layout
3513
3514 \backslash
3515 end{document}
3516 \end_layout
3517
3518 \end_inset
3519
3520  line must be deleted) or else errors will be generated when you try to
3521  make a DVI file.
3522 \end_layout
3523
3524 \begin_layout Standard
3525 \SpecialChar LyX
3526  allows you to include files quite easily with 
3527 \begin_inset Flex Noun
3528 status collapsed
3529
3530 \begin_layout Plain Layout
3531 Insert\SpecialChar menuseparator
3532 Chi
3533 \change_deleted -712698321 1501147443
3534 I
3535 \change_inserted -712698321 1501147443
3536 l
3537 \change_unchanged
3538 d
3539 \begin_inset space ~
3540 \end_inset
3541
3542 Document
3543 \end_layout
3544
3545 \end_inset
3546
3547 .
3548  When you click on this selection a small box is inserted into the file
3549  at the current cursor location.
3550  Clicking on the box raises a dialog which allows you to select the file
3551  to be included, and the method of its inclusion.
3552  
3553 \end_layout
3554
3555 \begin_layout Standard
3556 The file selection box should by now be obvious.
3557  The three inclusion methods are 
3558 \begin_inset Quotes eld
3559 \end_inset
3560
3561 include
3562 \begin_inset Quotes erd
3563 \end_inset
3564
3565
3566 \begin_inset Quotes eld
3567 \end_inset
3568
3569 input
3570 \begin_inset Quotes erd
3571 \end_inset
3572
3573 , and 
3574 \begin_inset Quotes eld
3575 \end_inset
3576
3577 verbatim
3578 \begin_inset Quotes erd
3579 \end_inset
3580
3581 .
3582  The 
3583 \change_deleted -712698321 1501225702
3584 difference between
3585 \change_inserted -712698321 1501225703
3586 methods
3587 \change_unchanged
3588  
3589 \begin_inset Quotes eld
3590 \end_inset
3591
3592 include
3593 \begin_inset Quotes erd
3594 \end_inset
3595
3596  and 
3597 \begin_inset Quotes eld
3598 \end_inset
3599
3600 input
3601 \begin_inset Quotes erd
3602 \end_inset
3603
3604  
3605 \change_deleted -712698321 1501225710
3606 is really only meaningful to \SpecialChar LaTeX
3607 perts
3608 \change_inserted -712698321 1501225747
3609 are similar in many ways, but there are also some notable differences:
3610 \end_layout
3611
3612 \begin_layout Enumerate
3613
3614 \change_deleted -712698321 1501225754
3615 , but the practical difference is that f
3616 \change_inserted -712698321 1501225754
3617 F
3618 \change_unchanged
3619 iles that are 
3620 \begin_inset Quotes eld
3621 \end_inset
3622
3623 included
3624 \begin_inset Quotes erd
3625 \end_inset
3626
3627  are typeset beginning on a new page, while files that are 
3628 \begin_inset Quotes eld
3629 \end_inset
3630
3631 inputted
3632 \begin_inset Quotes erd
3633 \end_inset
3634
3635  are typeset starting on the current page.
3636 \change_inserted -712698321 1501225760
3637
3638 \end_layout
3639
3640 \begin_layout Enumerate
3641
3642 \change_inserted -712698321 1501225830
3643 \begin_inset Quotes eld
3644 \end_inset
3645
3646 Included
3647 \begin_inset Quotes erd
3648 \end_inset
3649
3650  files cannot themselves 
3651 \begin_inset Quotes eld
3652 \end_inset
3653
3654 include
3655 \begin_inset Quotes erd
3656 \end_inset
3657
3658  further files (
3659 \begin_inset Quotes eld
3660 \end_inset
3661
3662 grandchilds
3663 \begin_inset Quotes erd
3664 \end_inset
3665
3666 ).
3667  With 
3668 \begin_inset Quotes eld
3669 \end_inset
3670
3671 input
3672 \begin_inset Quotes erd
3673 \end_inset
3674
3675 , on the other hand, infinite sub-inputting is possible.
3676 \end_layout
3677
3678 \begin_layout Enumerate
3679
3680 \change_inserted -712698321 1501226017
3681 \begin_inset Quotes eld
3682 \end_inset
3683
3684 Include
3685 \begin_inset Quotes erd
3686 \end_inset
3687
3688  allow for the output of only selected 
3689 \begin_inset Quotes eld
3690 \end_inset
3691
3692 included
3693 \begin_inset Quotes erd
3694 \end_inset
3695
3696  files, while maintaining the actual counters (pagination etc.) and references
3697  (please refer to the section 
3698 \emph on
3699 Child
3700 \begin_inset space ~
3701 \end_inset
3702
3703 Documents
3704 \emph default
3705  of the 
3706 \emph on
3707 Embedded
3708 \begin_inset space ~
3709 \end_inset
3710
3711 Objects
3712 \emph default
3713  manual for details).
3714 \change_unchanged
3715
3716 \end_layout
3717
3718 \begin_layout Standard
3719
3720 \change_inserted -712698321 1501225947
3721 Hence, 
3722 \begin_inset Quotes eld
3723 \end_inset
3724
3725 include
3726 \begin_inset Quotes erd
3727 \end_inset
3728
3729  is the preferred method for chapters that are outsourced to child documents,
3730  while 
3731 \begin_inset Quotes eld
3732 \end_inset
3733
3734 input
3735 \begin_inset Quotes erd
3736 \end_inset
3737
3738  is more suitable for arbitrary file inheritance.
3739 \end_layout
3740
3741 \begin_layout Standard
3742
3743 \change_deleted -712698321 1501226562
3744 Generally, the master file is converted into a full \SpecialChar LaTeX
3745  file before typesetting,
3746  while the included files are converted to \SpecialChar LaTeX
3747  files that do not have all the
3748  preamble information.
3749 \change_unchanged
3750
3751 \end_layout
3752
3753 \begin_layout Standard
3754
3755 \begin_inset Quotes eld
3756 \end_inset
3757
3758 verbatim
3759 \begin_inset Quotes erd
3760 \end_inset
3761
3762  included file allows you to include a file typeset exactly as it appears
3763  in the file, i.
3764 \begin_inset space \thinspace{}
3765 \end_inset
3766
3767 e.
3768 \begin_inset space \space{}
3769 \end_inset
3770
3771 in 
3772 \begin_inset Flex Code
3773 status collapsed
3774
3775 \begin_layout Plain Layout
3776 verbatim
3777 \end_layout
3778
3779 \end_inset
3780
3781  mode, with the characters set in a fixed-width typewriter font.
3782  Normally, spaces in this file are invisible, though two consecutive spaces
3783  are conserved, unlike \SpecialChar LyX
3784 's normal treatment of spaces.
3785  However, setting the 
3786 \begin_inset Flex Noun
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790 Mark
3791 \begin_inset space ~
3792 \end_inset
3793
3794 spaces
3795 \begin_inset space ~
3796 \end_inset
3797
3798 in
3799 \begin_inset space ~
3800 \end_inset
3801
3802 output
3803 \end_layout
3804
3805 \end_inset
3806
3807  checkbox typesets a mark to unambiguously define the presence of a space.
3808  
3809 \change_inserted -712698321 1501226563
3810
3811 \end_layout
3812
3813 \begin_layout Standard
3814
3815 \change_inserted -712698321 1501226564
3816 Generally, the master file is converted into a full \SpecialChar LaTeX
3817  file before typesetting,
3818  while the included files are converted to \SpecialChar LaTeX
3819  files that do not have all the
3820  preamble information.
3821 \change_unchanged
3822
3823 \end_layout
3824
3825 \begin_layout Subsection
3826 Cross-References Between Files
3827 \end_layout
3828
3829 \begin_layout Standard
3830 \begin_inset Box Shadowbox
3831 position "t"
3832 hor_pos "c"
3833 has_inner_box 1
3834 inner_pos "t"
3835 use_parbox 0
3836 use_makebox 0
3837 width "100col%"
3838 special "none"
3839 height "1in"
3840 height_special "totalheight"
3841 thickness "0.4pt"
3842 separation "3pt"
3843 shadowsize "4pt"
3844 framecolor "black"
3845 backgroundcolor "none"
3846 status open
3847
3848 \begin_layout Plain Layout
3849 This section is somewhat out of date.
3850  Need to describe default master documents and how children are opened when
3851  the master is.
3852  [[FIXME]]
3853 \end_layout
3854
3855 \end_inset
3856
3857
3858 \end_layout
3859
3860 \begin_layout Standard
3861 It is possible to set up cross-references between the different files.
3862  First, open all the files in question: let's call them A and B in a two
3863  file example, where B is included in A.
3864  Let's say you insert a label in A, then want to reference it in B.
3865  Open the cross-reference dialog whilst in document B, and you can select
3866  the 
3867 \begin_inset Quotes eld
3868 \end_inset
3869
3870 buffer
3871 \begin_inset Quotes erd
3872 \end_inset
3873
3874  to use.
3875 \end_layout
3876
3877 \begin_layout Subsection
3878 Bibliography Lists in all Subdocuments
3879 \end_layout
3880
3881 \begin_layout Standard
3882
3883 \change_deleted -712698321 1501227275
3884 \begin_inset Box Frameless
3885 position "t"
3886 hor_pos "c"
3887 has_inner_box 1
3888 inner_pos "t"
3889 use_parbox 0
3890 use_makebox 0
3891 width "100col%"
3892 special "none"
3893 height "1in"
3894 height_special "totalheight"
3895 thickness "0.4pt"
3896 separation "3pt"
3897 shadowsize "4pt"
3898 framecolor "black"
3899 backgroundcolor "none"
3900 status open
3901
3902 \begin_layout Plain Layout
3903 This section also needs updating.
3904  There is now material about this on the wiki, and it could be copied here.
3905 \end_layout
3906
3907 \end_inset
3908
3909
3910 \change_unchanged
3911
3912 \end_layout
3913
3914 \begin_layout Standard
3915
3916 \change_inserted -712698321 1501226979
3917 If you work with child documents, you might want to have only one main bibliogra
3918 phy at the end, but still be able to have a selected bibliography for the
3919  child if you output it on its own.
3920  Here is how to achieve this.
3921 \end_layout
3922
3923 \begin_layout Standard
3924
3925 \change_inserted -712698321 1501227105
3926 For the main document, you just insert a bibliography inset at the place
3927  where the main bibliography has to appear (within the master file or within
3928  a child).
3929  If the bibliography inset is in the master file, the references will be
3930  inherited by all children, so they are available in the citation dialog
3931  within each child.
3932 \end_layout
3933
3934 \begin_layout Standard
3935
3936 \change_inserted -712698321 1501227910
3937 For child-specific bibliographies, insert bibliography insets within the
3938  child documents, at the place where the bibliography should appear when
3939  the child is compiled separately.
3940  However, the trick is to insert them into a branch (
3941 \family sans
3942 Insert\SpecialChar menuseparator
3943 Branch\SpecialChar menuseparator
3944 Insert New Branch...
3945 \family default
3946 ), e.
3947 \begin_inset space \thinspace{}
3948 \end_inset
3949
3950 g.
3951  called 
3952 \begin_inset Quotes eld
3953 \end_inset
3954
3955 Childonly
3956 \begin_inset Quotes erd
3957 \end_inset
3958
3959 .
3960  Within the children, activate the branch (
3961 \family sans
3962 Document\SpecialChar menuseparator
3963 Settings...\SpecialChar menuseparator
3964 Branches
3965 \family default
3966 ).
3967  Within the master, deactivate the branch (
3968 \family sans
3969 Document\SpecialChar menuseparator
3970 Settings...\SpecialChar menuseparator
3971 Branches
3972 \family default
3973 ).
3974  Now the child's bibliography will be ignored by the master, but considered
3975  by the child.
3976 \end_layout
3977
3978 \begin_layout Standard
3979
3980 \change_inserted -712698321 1501228082
3981 If you need multiple bibliographies (e.
3982 \begin_inset space \thinspace{}
3983 \end_inset
3984
3985 g., one per child in the 
3986 \emph on
3987 main document
3988 \emph default
3989 ), please refer to sec.
3990 \begin_inset space ~
3991 \end_inset
3992
3993
3994 \begin_inset CommandInset ref
3995 LatexCommand ref
3996 reference "subsec:Multiple-Bibliographies"
3997
3998 \end_inset
3999
4000 .
4001 \change_unchanged
4002
4003 \end_layout
4004
4005 \begin_layout Standard
4006
4007 \change_deleted -712698321 1501227257
4008 Copy the bibliography list with all entries to all subdocuments and transform
4009  them to a comment.
4010  This way \SpecialChar LyX
4011  will find the 
4012 \begin_inset Flex Code
4013 status collapsed
4014
4015 \begin_layout Plain Layout
4016 .bib
4017 \end_layout
4018
4019 \end_inset
4020
4021 -files and you can easily insert references without making the bibliography
4022  list visible.
4023 \end_layout
4024
4025 \begin_layout Standard
4026
4027 \change_deleted -712698321 1501227257
4028 As the bibliography list is in a comment, \SpecialChar LaTeX
4029  won't use it and the references
4030  will look like this: [?], instead of like this: [1].
4031  One solution is to use the \SpecialChar LaTeX
4032 -package 
4033 \begin_inset Flex Code
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037 comment
4038 \end_layout
4039
4040 \end_inset
4041
4042  that will only include comments by processing the files separately.
4043  To do this, add in the \SpecialChar LaTeX
4044  preamble of every subdocument the following:
4045 \end_layout
4046
4047 \begin_layout LyX-Code
4048
4049 \change_deleted -712698321 1501227257
4050
4051 \backslash
4052 usepackage{comment}
4053 \end_layout
4054
4055 \begin_layout LyX-Code
4056
4057 \change_deleted -712698321 1501227257
4058
4059 \backslash
4060 includecomment{comment}
4061 \end_layout
4062
4063 \begin_layout Standard
4064
4065 \change_deleted -712698321 1501227257
4066 See also 
4067 \begin_inset Flex URL
4068 status open
4069
4070 \begin_layout Plain Layout
4071
4072 http://wiki.lyx.org/FAQ/Unsorted#toc31
4073 \end_layout
4074
4075 \end_inset
4076
4077 .
4078 \change_unchanged
4079
4080 \end_layout
4081
4082 \begin_layout Section
4083 \SpecialChar LyX
4084  Archives
4085 \end_layout
4086
4087 \begin_layout Standard
4088 Users sometimes need to be able to 
4089 \begin_inset Quotes eld
4090 \end_inset
4091
4092 bundle
4093 \begin_inset Quotes erd
4094 \end_inset
4095
4096  a \SpecialChar LyX
4097  file together with all the images (and other files) on which it depends,
4098  either for sending to a publisher or for sharing with a co-author.
4099  \SpecialChar LyX
4100  2.0 includes a Python script (
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105 lyxpak.py
4106 \end_layout
4107
4108 \end_inset
4109
4110 ) that automates this process.
4111  To use it, you must have either the 
4112 \begin_inset Flex Code
4113 status collapsed
4114
4115 \begin_layout Plain Layout
4116 zipfile
4117 \end_layout
4118
4119 \end_inset
4120
4121  or 
4122 \begin_inset Flex Code
4123 status collapsed
4124
4125 \begin_layout Plain Layout
4126 tarfile
4127 \end_layout
4128
4129 \end_inset
4130
4131  python modules installed on your system.
4132  By default, the script prefers the 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 gzip
4138 \end_layout
4139
4140 \end_inset
4141
4142 -compressed 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 tar
4148 \end_layout
4149
4150 \end_inset
4151
4152  format on Unix-like systems and the 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 zip
4158 \end_layout
4159
4160 \end_inset
4161
4162  format on Windows.
4163 \end_layout
4164
4165 \begin_layout Standard
4166 \SpecialChar LyX
4167 's configuration process will set the script up to export a `\SpecialChar LyX
4168  Archive',
4169  and this format will then be available under 
4170 \begin_inset Flex Code
4171 status collapsed
4172
4173 \begin_layout Plain Layout
4174 File\SpecialChar menuseparator
4175 Export
4176 \end_layout
4177
4178 \end_inset
4179
4180 .
4181 \end_layout
4182
4183 \begin_layout Standard
4184 Independently of the platform, the generation of a particular archive format
4185  can be forced by adding either the 
4186 \begin_inset Flex Code
4187 status collapsed
4188
4189 \begin_layout Plain Layout
4190 -t
4191 \end_layout
4192
4193 \end_inset
4194
4195  (for the 
4196 \begin_inset Flex Code
4197 status collapsed
4198
4199 \begin_layout Plain Layout
4200 tar
4201 \end_layout
4202
4203 \end_inset
4204
4205  format) or 
4206 \begin_inset Flex Code
4207 status collapsed
4208
4209 \begin_layout Plain Layout
4210 -z
4211 \end_layout
4212
4213 \end_inset
4214
4215  (for the 
4216 \begin_inset Flex Code
4217 status collapsed
4218
4219 \begin_layout Plain Layout
4220 zip
4221 \end_layout
4222
4223 \end_inset
4224
4225  format) switch to the 
4226 \begin_inset Flex Code
4227 status collapsed
4228
4229 \begin_layout Plain Layout
4230 \SpecialChar LyX
4231 \SpecialChar menuseparator
4232 \SpecialChar LyX
4233  Archive
4234 \end_layout
4235
4236 \end_inset
4237
4238  converter in 
4239 \begin_inset Flex Code
4240 status collapsed
4241
4242 \begin_layout Plain Layout
4243 Tools\SpecialChar menuseparator
4244 Preferences\SpecialChar menuseparator
4245 File Handling\SpecialChar menuseparator
4246 Converters
4247 \end_layout
4248
4249 \end_inset
4250
4251 .
4252  (Make sure you add the switch after the script name, not before it.)
4253 \end_layout
4254
4255 \begin_layout Section
4256 Fancy Headers and Footers
4257 \end_layout
4258
4259 \begin_layout Standard
4260 The default page layout is rather plain; for an 
4261 \begin_inset Flex Code
4262 status collapsed
4263
4264 \begin_layout Plain Layout
4265 article
4266 \end_layout
4267
4268 \end_inset
4269
4270  document class, all you get is a centered page number at the bottom of
4271  the page.
4272  This document uses KOMA-script's book class, so it appears to be a bit
4273  fancier.
4274  But to really put on a show, you need to set the document page style to
4275  
4276 \begin_inset Quotes eld
4277 \end_inset
4278
4279 fancy
4280 \begin_inset Quotes erd
4281 \end_inset
4282
4283 , as mentioned in the 
4284 \emph on
4285 User Guide
4286 \emph default
4287 .
4288  This section describes the \SpecialChar LaTeX
4289  code you need to insert in your \SpecialChar LaTeX
4290  preamble in
4291  order to get the desired effects.
4292 \end_layout
4293
4294 \begin_layout Standard
4295 For more information on fancy headers, see the 
4296 \begin_inset Flex Code
4297 status collapsed
4298
4299 \begin_layout Plain Layout
4300 fancyhdr
4301 \end_layout
4302
4303 \end_inset
4304
4305  package documentation.
4306  (
4307 \begin_inset Flex URL
4308 status collapsed
4309
4310 \begin_layout Plain Layout
4311
4312 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4313 \end_layout
4314
4315 \end_inset
4316
4317 )
4318 \end_layout
4319
4320 \begin_layout Standard
4321 The page header is divided into three fields, not surprisingly labeled 
4322 \begin_inset Quotes eld
4323 \end_inset
4324
4325 left
4326 \begin_inset Quotes erd
4327 \end_inset
4328
4329
4330 \begin_inset Quotes eld
4331 \end_inset
4332
4333 center
4334 \begin_inset Quotes erd
4335 \end_inset
4336
4337 , and 
4338 \begin_inset Quotes eld
4339 \end_inset
4340
4341 right
4342 \begin_inset Quotes erd
4343 \end_inset
4344
4345 .
4346  The footer is also divided into these three fields.
4347  The \SpecialChar LaTeX
4348  commands to set these fields in the simplest manner are 
4349 \begin_inset Flex Code
4350 status collapsed
4351
4352 \begin_layout Plain Layout
4353
4354 \backslash
4355 lhead
4356 \end_layout
4357
4358 \end_inset
4359
4360
4361 \begin_inset Flex Code
4362 status collapsed
4363
4364 \begin_layout Plain Layout
4365
4366 \backslash
4367 chead
4368 \end_layout
4369
4370 \end_inset
4371
4372
4373 \begin_inset Flex Code
4374 status collapsed
4375
4376 \begin_layout Plain Layout
4377
4378 \backslash
4379 rhead
4380 \end_layout
4381
4382 \end_inset
4383
4384
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \backslash
4391 lfoot
4392 \end_layout
4393
4394 \end_inset
4395
4396 , etc.
4397  Suppose you wish to put your name in the upper left hand corner of each
4398  page.
4399  Simply insert the following command in the preamble: 
4400 \end_layout
4401
4402 \begin_layout Standard
4403
4404 \family typewriter
4405
4406 \backslash
4407 lhead{John Q.
4408  DocWriter}
4409 \end_layout
4410
4411 \begin_layout Standard
4412 You will now see your name in the upper left.
4413  If a field has a default entry that you would like to get rid of (often
4414  the page number appears in the central footer) simply include a command
4415  with a blank argument, e.
4416 \begin_inset space \thinspace{}
4417 \end_inset
4418
4419 g.:
4420 \end_layout
4421
4422 \begin_layout Standard
4423
4424 \family typewriter
4425
4426 \backslash
4427 cfoot{}
4428 \end_layout
4429
4430 \begin_layout Standard
4431 Let's get really fancy: lets put the section number with the word 
4432 \begin_inset Quotes eld
4433 \end_inset
4434
4435 Section
4436 \begin_inset Quotes erd
4437 \end_inset
4438
4439  (e.
4440 \begin_inset space \thinspace{}
4441 \end_inset
4442
4443 g.
4444 \begin_inset space \space{}
4445 \end_inset
4446
4447 Section 3) in the upper left, the page number (e.
4448 \begin_inset space \thinspace{}
4449 \end_inset
4450
4451 g.
4452 \begin_inset space \space{}
4453 \end_inset
4454
4455 Page 4) in the upper right, your name in the lower left, and the date in
4456  the lower right.
4457  The following commands should now appear in the preamble:
4458 \end_layout
4459
4460 \begin_layout Standard
4461
4462 \family typewriter
4463
4464 \backslash
4465 lhead{Section 
4466 \backslash
4467 thesection}
4468 \end_layout
4469
4470 \begin_layout Standard
4471
4472 \family typewriter
4473
4474 \backslash
4475 chead{}
4476 \end_layout
4477
4478 \begin_layout Standard
4479
4480 \family typewriter
4481
4482 \backslash
4483 rhead{Page 
4484 \backslash
4485 thepage}
4486 \end_layout
4487
4488 \begin_layout Standard
4489
4490 \family typewriter
4491
4492 \backslash
4493 lfoot{John Q.
4494  DocWriter}
4495 \end_layout
4496
4497 \begin_layout Standard
4498
4499 \family typewriter
4500
4501 \backslash
4502 cfoot{}
4503 \end_layout
4504
4505 \begin_layout Standard
4506
4507 \family typewriter
4508
4509 \backslash
4510 rfoot{
4511 \backslash
4512 today}
4513 \end_layout
4514
4515 \begin_layout Standard
4516 The commands 
4517 \begin_inset Flex Code
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521
4522 \backslash
4523 thesection
4524 \end_layout
4525
4526 \end_inset
4527
4528  and 
4529 \begin_inset Flex Code
4530 status collapsed
4531
4532 \begin_layout Plain Layout
4533
4534 \backslash
4535 thepage
4536 \end_layout
4537
4538 \end_inset
4539
4540  access \SpecialChar LaTeX
4541 's section and page counters, and so print out the current section
4542  and page numbers.
4543  
4544 \begin_inset Flex Code
4545 status collapsed
4546
4547 \begin_layout Plain Layout
4548
4549 \backslash
4550 today
4551 \end_layout
4552
4553 \end_inset
4554
4555  simply prints out today's date.
4556 \end_layout
4557
4558 \begin_layout Standard
4559 The thicknesses of the horizontal rules drawn beneath the header and above
4560  the footer can also be modified.
4561  If you don't want one of the rules, set its thickness to 0.
4562  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4563  Use commands
4564 \family typewriter
4565  
4566 \family default
4567 like 
4568 \begin_inset Flex Code
4569 status collapsed
4570
4571 \begin_layout Plain Layout
4572
4573 \backslash
4574 renewcommand{
4575 \backslash
4576 headrulewidth}{0.4pt}
4577 \end_layout
4578
4579 \end_inset
4580
4581  and 
4582 \begin_inset Flex Code
4583 status collapsed
4584
4585 \begin_layout Plain Layout
4586
4587 \backslash
4588 renewcommand{
4589 \backslash
4590 footrulewidth}{0.4pt}
4591 \end_layout
4592
4593 \end_inset
4594
4595  to set the thicknesses.
4596 \end_layout
4597
4598 \begin_layout Standard
4599 You can switch the header/footer settings on and off for individual pages
4600  using commands like 
4601 \begin_inset Flex Code
4602 status collapsed
4603
4604 \begin_layout Plain Layout
4605
4606 \backslash
4607 thispagestyle{empty}
4608 \end_layout
4609
4610 \end_inset
4611
4612
4613 \begin_inset Flex Code
4614 status collapsed
4615
4616 \begin_layout Plain Layout
4617
4618 \backslash
4619 thispagestyle{plain}
4620 \end_layout
4621
4622 \end_inset
4623
4624 , and 
4625 \begin_inset Flex Code
4626 status collapsed
4627
4628 \begin_layout Plain Layout
4629
4630 \backslash
4631 thispagestyle{fancy}
4632 \end_layout
4633
4634 \end_inset
4635
4636 .
4637  Simply insert them in the text on the page you want changed and mark them
4638  as \SpecialChar TeX
4639  code.
4640  In fact, title pages are marked as plain by default, while following pages
4641  are marked fancy when using the global fancy setting.
4642 \end_layout
4643
4644 \begin_layout Standard
4645 As a final example, it is possible to include an image in the header or
4646  footer.
4647  Suppose you want to put a company logo in the upper lefthand corner.
4648  You might try something like
4649 \end_layout
4650
4651 \begin_layout Standard
4652
4653 \family typewriter
4654
4655 \backslash
4656 lhead{
4657 \backslash
4658 resizebox{1in}{!}{
4659 \backslash
4660 includegraphics{logo.eps}}}
4661 \end_layout
4662
4663 \begin_layout Standard
4664 \noindent
4665 (you may need to preface this with 
4666 \begin_inset Flex Code
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670 \noindent
4671
4672 \backslash
4673 usepackage{graphics}
4674 \end_layout
4675
4676 \end_inset
4677
4678  if you don't include graphics elsewhere in your document).
4679 \end_layout
4680
4681 \begin_layout Section
4682 Itemize Bullet Selection
4683 \begin_inset CommandInset label
4684 LatexCommand label
4685 name "sec:bullet"
4686
4687 \end_inset
4688
4689
4690 \end_layout
4691
4692 \begin_layout Standard
4693 by
4694 \noun on
4695  Allan Rae
4696 \end_layout
4697
4698 \begin_layout Subsection
4699 Introduction
4700 \end_layout
4701
4702 \begin_layout Standard
4703 \SpecialChar LyX
4704  provides 216 bullet shapes that can be accessed from a simple dialog.
4705  Using this dialog you can easily specify what bullet shape to use at each
4706  level of an itemized list.
4707  These settings are document-wide so you won't be able to specify different
4708  sets of bullets for different paragraphs.
4709 \begin_inset Foot
4710 status collapsed
4711
4712 \begin_layout Plain Layout
4713 Well, actually you can but you'll have to do it by hand.
4714 \end_layout
4715
4716 \end_inset
4717
4718
4719 \end_layout
4720
4721 \begin_layout Subsection
4722 How it looks
4723 \end_layout
4724
4725 \begin_layout Standard
4726 Open the dialog by selecting the 
4727 \begin_inset Flex Noun
4728 status collapsed
4729
4730 \begin_layout Plain Layout
4731 Document\SpecialChar menuseparator
4732 Settings
4733 \end_layout
4734
4735 \end_inset
4736
4737  menu item and then select the 
4738 \begin_inset Flex Noun
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742 Bullets
4743 \end_layout
4744
4745 \end_inset
4746
4747  tab.
4748 \end_layout
4749
4750 \begin_layout Standard
4751 The dialog provides you with a table of bullet shapes.
4752  A column of buttons on the left of the table provides access to the six
4753  different panels of bullet shapes.
4754  The row of buttons across the top is used to select which bullet depth
4755  you are changing.
4756  A text entry under the table shows the currently selected bullet shape's
4757  \SpecialChar LaTeX
4758  equivalent and this can be edited if desired.
4759  If you do modify the text you will also need to specify any needed packages
4760  in the \SpecialChar LaTeX
4761  preamble.
4762 \end_layout
4763
4764 \begin_layout Standard
4765 The six panels are divided up by the packages they require.
4766  The following table shows the mappings from button name to \SpecialChar LaTeX
4767  package.
4768 \end_layout
4769
4770 \begin_layout Standard
4771 \align center
4772 \begin_inset Tabular
4773 <lyxtabular version="3" rows="7" columns="2">
4774 <features tabularvalignment="middle">
4775 <column alignment="center" valignment="top" width="0pt">
4776 <column alignment="center" valignment="top" width="0pt">
4777 <row>
4778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4779 \begin_inset Text
4780
4781 \begin_layout Plain Layout
4782
4783 \family roman
4784 \series medium
4785 \shape up
4786 \size normal
4787 \emph off
4788 \bar no
4789 \noun off
4790 \color none
4791 Button
4792 \end_layout
4793
4794 \end_inset
4795 </cell>
4796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4797 \begin_inset Text
4798
4799 \begin_layout Plain Layout
4800
4801 \family roman
4802 \series medium
4803 \shape up
4804 \size normal
4805 \emph off
4806 \bar no
4807 \noun off
4808 \color none
4809 Packages Required
4810 \end_layout
4811
4812 \end_inset
4813 </cell>
4814 </row>
4815 <row>
4816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4817 \begin_inset Text
4818
4819 \begin_layout Plain Layout
4820
4821 \family sans
4822 \series medium
4823 \shape up
4824 \size normal
4825 \emph off
4826 \bar no
4827 \noun off
4828 \color none
4829 Standard
4830 \end_layout
4831
4832 \end_inset
4833 </cell>
4834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4835 \begin_inset Text
4836
4837 \begin_layout Plain Layout
4838
4839 \series medium
4840 \shape up
4841 \size normal
4842 \emph off
4843 \bar no
4844 \noun off
4845 \color none
4846 base \SpecialChar LaTeX
4847
4848 \end_layout
4849
4850 \end_inset
4851 </cell>
4852 </row>
4853 <row>
4854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4855 \begin_inset Text
4856
4857 \begin_layout Plain Layout
4858
4859 \family sans
4860 \series medium
4861 \shape up
4862 \size normal
4863 \emph off
4864 \bar no
4865 \noun off
4866 \color none
4867 Maths
4868 \end_layout
4869
4870 \end_inset
4871 </cell>
4872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4873 \begin_inset Text
4874
4875 \begin_layout Plain Layout
4876
4877 \family typewriter
4878 \series medium
4879 \shape up
4880 \size normal
4881 \emph off
4882 \bar no
4883 \noun off
4884 \color none
4885 amssymb.sty
4886 \end_layout
4887
4888 \end_inset
4889 </cell>
4890 </row>
4891 <row>
4892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4893 \begin_inset Text
4894
4895 \begin_layout Plain Layout
4896
4897 \family sans
4898 \series medium
4899 \shape up
4900 \size normal
4901 \emph off
4902 \bar no
4903 \noun off
4904 \color none
4905 Ding1
4906 \end_layout
4907
4908 \end_inset
4909 </cell>
4910 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4911 \begin_inset Text
4912
4913 \begin_layout Plain Layout
4914
4915 \family typewriter
4916 \series medium
4917 \shape up
4918 \size normal
4919 \emph off
4920 \bar no
4921 \noun off
4922 \color none
4923 pifont.sty
4924 \end_layout
4925
4926 \end_inset
4927 </cell>
4928 </row>
4929 <row>
4930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4931 \begin_inset Text
4932
4933 \begin_layout Plain Layout
4934
4935 \family sans
4936 \series medium
4937 \shape up
4938 \size normal
4939 \emph off
4940 \bar no
4941 \noun off
4942 \color none
4943 Ding2
4944 \end_layout
4945
4946 \end_inset
4947 </cell>
4948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4949 \begin_inset Text
4950
4951 \begin_layout Plain Layout
4952
4953 \family typewriter
4954 \series medium
4955 \shape up
4956 \size normal
4957 \emph off
4958 \bar no
4959 \noun off
4960 \color none
4961 pifont.sty
4962 \end_layout
4963
4964 \end_inset
4965 </cell>
4966 </row>
4967 <row>
4968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4969 \begin_inset Text
4970
4971 \begin_layout Plain Layout
4972
4973 \family sans
4974 \series medium
4975 \shape up
4976 \size normal
4977 \emph off
4978 \bar no
4979 \noun off
4980 \color none
4981 Ding3
4982 \end_layout
4983
4984 \end_inset
4985 </cell>
4986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4987 \begin_inset Text
4988
4989 \begin_layout Plain Layout
4990
4991 \family typewriter
4992 \series medium
4993 \shape up
4994 \size normal
4995 \emph off
4996 \bar no
4997 \noun off
4998 \color none
4999 pifont.sty
5000 \end_layout
5001
5002 \end_inset
5003 </cell>
5004 </row>
5005 <row>
5006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5007 \begin_inset Text
5008
5009 \begin_layout Plain Layout
5010
5011 \family sans
5012 \series medium
5013 \shape up
5014 \size normal
5015 \emph off
5016 \bar no
5017 \noun off
5018 \color none
5019 Ding4
5020 \end_layout
5021
5022 \end_inset
5023 </cell>
5024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5025 \begin_inset Text
5026
5027 \begin_layout Plain Layout
5028
5029 \family typewriter
5030 \series medium
5031 \shape up
5032 \size normal
5033 \emph off
5034 \bar no
5035 \noun off
5036 \color none
5037 pifont.sty
5038 \end_layout
5039
5040 \end_inset
5041 </cell>
5042 </row>
5043 </lyxtabular>
5044
5045 \end_inset
5046
5047
5048 \end_layout
5049
5050 \begin_layout Standard
5051 \SpecialChar LyX
5052  doesn't stop you using bullets from packages you don't have.
5053  If you get errors from \SpecialChar LaTeX
5054  when you try to view or print the file, then it
5055  is likely you are missing a package.
5056 \begin_inset Foot
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060 \SpecialChar LyX
5061  doesn't restrict your use since you may be editing locally and exporting
5062  elsewhere.
5063 \end_layout
5064
5065 \end_inset
5066
5067
5068 \end_layout
5069
5070 \begin_layout Subsection
5071 How to use it
5072 \end_layout
5073
5074 \begin_layout Standard
5075 Select which bullet depth you want to change then select the bullet shape
5076  and size.
5077  Any changes will not be visible in \SpecialChar LyX
5078 , but are visible when viewing the document.
5079 \end_layout
5080
5081 \begin_layout Standard
5082 You can reset a bullet shape to the default simply by clicking your right
5083  mouse button on the appropriate bullet depth button.
5084 \begin_inset Foot
5085 status open
5086
5087 \begin_layout Plain Layout
5088 If you 
5089 \emph on
5090 really
5091 \emph default
5092  want to have multiple sets of paragraphs with different sets of bullets
5093  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
5094  code.
5095  The bullet selection dialog can help though because it provides you with
5096  the \SpecialChar LaTeX
5097  code for a wide range of bullet shapes.
5098  To make your own custom paragraphs you have the following options:
5099 \end_layout
5100
5101 \begin_layout Plain Layout
5102 \begin_inset ERT
5103 status open
5104
5105 \begin_layout Plain Layout
5106
5107
5108 \backslash
5109 let
5110 \backslash
5111 savelabelitemi=
5112 \backslash
5113 labelitemi
5114 \end_layout
5115
5116 \end_inset
5117
5118
5119 \end_layout
5120
5121 \begin_layout Plain Layout
5122 \begin_inset ERT
5123 status open
5124
5125 \begin_layout Plain Layout
5126
5127
5128 \backslash
5129 renewcommand
5130 \backslash
5131 labelitemi[0]{
5132 \backslash
5133 small
5134 \backslash
5135 (
5136 \backslash
5137 sharp
5138 \backslash
5139 )}
5140 \end_layout
5141
5142 \end_inset
5143
5144
5145 \end_layout
5146
5147 \begin_layout Itemize
5148 Use the \SpecialChar LaTeX
5149  command 
5150 \begin_inset Flex Code
5151 status collapsed
5152
5153 \begin_layout Plain Layout
5154
5155 \backslash
5156 renewcommand{}{}
5157 \end_layout
5158
5159 \end_inset
5160
5161  to specify a new bullet shape for a given depth.
5162  You'll also need to save the current bullet shape so you can restore it
5163  again afterwards.
5164  In this itemized list the following \SpecialChar LaTeX
5165  code was used to change the bullet
5166  used for the first depth.
5167 \end_layout
5168
5169 \begin_deeper
5170 \begin_layout LyX-Code
5171
5172 \backslash
5173 let
5174 \backslash
5175 savelabelitemi=
5176 \backslash
5177 labelitemi 
5178 \end_layout
5179
5180 \begin_layout LyX-Code
5181
5182 \backslash
5183 renewcommand
5184 \backslash
5185 labelitemi[0]{
5186 \backslash
5187 small
5188 \backslash
5189 (
5190 \backslash
5191 sharp
5192 \backslash
5193 )}
5194 \end_layout
5195
5196 \end_deeper
5197 \begin_layout Itemize
5198 Note that the itemize depth is specified in Roman numerals as part of the
5199  
5200 \family typewriter
5201
5202 \backslash
5203 labelitem
5204 \family default
5205  command.
5206 \end_layout
5207
5208 \begin_layout Itemize
5209
5210 \change_deleted -712698321 1501149643
5211 \begin_inset ERT
5212 status open
5213
5214 \begin_layout Plain Layout
5215
5216 \change_deleted -712698321 1501149634
5217
5218 [
5219 \change_unchanged
5220
5221 \backslash
5222 (
5223 \backslash
5224 star
5225 \backslash
5226 )
5227 \change_deleted -712698321 1501149636
5228 ]
5229 \change_unchanged
5230
5231 \end_layout
5232
5233 \end_inset
5234
5235
5236 \change_inserted -712698321 1501149643
5237
5238 \begin_inset Argument item:1
5239 status open
5240
5241 \begin_layout Plain Layout
5242
5243 \change_inserted -712698321 1501149643
5244 \begin_inset ERT
5245 status open
5246
5247 \begin_layout Plain Layout
5248
5249 \change_inserted -712698321 1501149643
5250
5251
5252 \backslash
5253 (
5254 \backslash
5255 star
5256 \backslash
5257 )
5258 \end_layout
5259
5260 \end_inset
5261
5262
5263 \change_unchanged
5264
5265 \end_layout
5266
5267 \end_inset
5268
5269
5270 \change_unchanged
5271  Specify each individual entry by starting each item with the bullet shape
5272  enclosed in 
5273 \change_deleted -712698321 1501149707
5274 square brackets
5275 \change_inserted -712698321 1501149740
5276
5277 \begin_inset Quotes eld
5278 \end_inset
5279
5280 Custom Item
5281 \begin_inset Quotes erd
5282 \end_inset
5283
5284  inset (available at 
5285 \family sans
5286 Insert\SpecialChar menuseparator
5287 Custom Item
5288 \family default
5289 )
5290 \change_unchanged
5291  and set as 
5292 \begin_inset Flex Noun
5293 status collapsed
5294
5295 \begin_layout Plain Layout
5296 \SpecialChar TeX
5297  Code
5298 \end_layout
5299
5300 \end_inset
5301
5302 .
5303  For example, this item was started with 
5304 \begin_inset Flex Code
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308
5309 \change_deleted -712698321 1501149692
5310 [
5311 \change_unchanged
5312
5313 \backslash
5314 (
5315 \backslash
5316 star
5317 \backslash
5318 )
5319 \change_deleted -712698321 1501149693
5320 ]
5321 \change_unchanged
5322
5323 \end_layout
5324
5325 \end_inset
5326
5327 .
5328 \end_layout
5329
5330 \begin_layout Plain Layout
5331 \begin_inset ERT
5332 status open
5333
5334 \begin_layout Plain Layout
5335
5336
5337 \backslash
5338 renewcommand
5339 \backslash
5340 labelitemi[0]{
5341 \backslash
5342 savelabelitemi}
5343 \end_layout
5344
5345 \end_inset
5346
5347
5348 \end_layout
5349
5350 \begin_layout Plain Layout
5351 You'll also need to revert the labelitem back to its previous setting for
5352  the global bullet shape settings to remain in effect.
5353  The way used here was:
5354 \end_layout
5355
5356 \begin_layout LyX-Code
5357
5358 \backslash
5359 renewcommand
5360 \backslash
5361 labelitemi[0]{
5362 \backslash
5363 savelabelitemi}
5364 \end_layout
5365
5366 \end_inset
5367
5368
5369 \end_layout
5370
5371 \begin_layout Chapter
5372 \SpecialChar LyX
5373  and the World Wide Web
5374 \end_layout
5375
5376 \begin_layout Standard
5377 \SpecialChar LyX
5378  has long supported the export of documents to various web-friendly formats,
5379  such as HTML.
5380  Before vers
5381 \change_inserted -712698321 1501076595
5382 i
5383 \change_unchanged
5384 on 2.0, however, HTML export was always accomplished by the use of external
5385  converters.
5386 \begin_inset Foot
5387 status collapsed
5388
5389 \begin_layout Plain Layout
5390 For details on the use of external converters with \SpecialChar LyX
5391 , see the 
5392 \emph on
5393 Converters
5394 \emph default
5395  section of the Customization manual.
5396 \end_layout
5397
5398 \end_inset
5399
5400  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5401  as an
5402  intermediate format, such as 
5403 \begin_inset Flex Code
5404 status collapsed
5405
5406 \begin_layout Plain Layout
5407 htlatex
5408 \end_layout
5409
5410 \end_inset
5411
5412
5413 \begin_inset Flex Code
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 html2latex
5418 \end_layout
5419
5420 \end_inset
5421
5422 , and 
5423 \begin_inset Flex Code
5424 status collapsed
5425
5426 \begin_layout Plain Layout
5427 plastex
5428 \end_layout
5429
5430 \end_inset
5431
5432 , relying upon \SpecialChar LyX
5433  to produce the \SpecialChar LaTeX
5434 ; and there is a converter that works directly
5435  on \SpecialChar LyX
5436  files, 
5437 \begin_inset Flex Code
5438 status collapsed
5439
5440 \begin_layout Plain Layout
5441 e\SpecialChar LyX
5442 er
5443 \end_layout
5444
5445 \end_inset
5446
5447 .
5448  All of these have different advantages and disadvantages.
5449  
5450 \end_layout
5451
5452 \begin_layout Standard
5453 The \SpecialChar LaTeX
5454 -based converters have the advantage that, in principle, they know everythin
5455 g about the exported document that \SpecialChar LaTeX
5456  does.
5457  Such converters do not care, for example, if a certain block of code was
5458  produced by \SpecialChar LyX
5459  or was Evil Red Text.
5460  These converters know about 
5461 \begin_inset Flex Code
5462 status collapsed
5463
5464 \begin_layout Plain Layout
5465 aux
5466 \end_layout
5467
5468 \end_inset
5469
5470  files, counters, and references, and can often make use of the 
5471 \begin_inset Flex Code
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475 bbl
5476 \end_layout
5477
5478 \end_inset
5479
5480  files generated by Bib\SpecialChar TeX
5481 .
5482  On the other hand, \SpecialChar LaTeX
5483  is a very hard language to parse—it is sometimes said
5484  that only \SpecialChar TeX
5485  itself understands \SpecialChar TeX
5486 —and \SpecialChar LaTeX
5487 -based converters will often choke on
5488  what seem to be quite simple constructs; complex ones can throw them completely
5489 , and as of this writing, for example, the 
5490 \emph on
5491 Embedded Objects
5492 \emph default
5493  manual will not export with 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 htlatex
5499 \end_layout
5500
5501 \end_inset
5502
5503 , though the others will.
5504  The other issue concerns how math is handled.
5505  These converters typically convert the formulae into little pictures that
5506  are then linked from the HTML document.
5507  Since these are actually generated by \SpecialChar LaTeX
5508 , they are accurate.
5509  But they do not scale well, and just getting them to look as if they are
5510  actually meant to be in your document—so that the font sizes seem to be
5511  roughly the same—can be a challenge.
5512 \end_layout
5513
5514 \begin_layout Standard
5515 Alex Fernandez's 
5516 \begin_inset Flex Code
5517 status collapsed
5518
5519 \begin_layout Plain Layout
5520 e\SpecialChar LyX
5521 er
5522 \end_layout
5523
5524 \end_inset
5525
5526  (
5527 \begin_inset CommandInset href
5528 LatexCommand href
5529 name "http://elyxer.nongnu.org/"
5530 target "http://elyxer.nongnu.org/"
5531 literal "false"
5532
5533 \end_inset
5534
5535 ) solves some of these problems.
5536  In particular, the formulae it produces scale perfectly, since it renders
5537  math using a combination of HTML and CSS rather than converting the formulae
5538  to images.
5539  But even moderately complex formula are rendered less well than with 
5540 \begin_inset Flex Code
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 htlatex
5545 \end_layout
5546
5547 \end_inset
5548
5549 ; this reflects the limitations of HTML.
5550 \begin_inset Foot
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 That said, 
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 e\SpecialChar LyX
5560 er
5561 \end_layout
5562
5563 \end_inset
5564
5565  can also use jsMath and MathJax for equations, but this setting is only
5566  available globally and requires one to have access to a server that runs
5567  the backend.
5568 \end_layout
5569
5570 \end_inset
5571
5572  More importantly (as of version 1.1.1, at least), 
5573 \begin_inset Flex Code
5574 status collapsed
5575
5576 \begin_layout Plain Layout
5577 e\SpecialChar LyX
5578 er
5579 \end_layout
5580
5581 \end_inset
5582
5583  has limited support for math macros and no support for user-defined paragraph
5584  or character styles.
5585  These limitations make 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590 e\SpecialChar LyX
5591 er
5592 \end_layout
5593
5594 \end_inset
5595
5596  unsuitable for many of the documents \SpecialChar LyX
5597  users produce.
5598  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5599  developers
5600  have decided to follow a different path and have made \SpecialChar LyX
5601  itself capable of
5602  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5603 , DocBook, and plaintext.
5604 \end_layout
5605
5606 \begin_layout Standard
5607 As of this writing, XHTML output remains under development and should probably
5608  be regarded as 
5609 \begin_inset Quotes eld
5610 \end_inset
5611
5612 experimental
5613 \begin_inset Quotes erd
5614 \end_inset
5615
5616 .
5617 \begin_inset Foot
5618 status collapsed
5619
5620 \begin_layout Plain Layout
5621 The file 
5622 \begin_inset Flex Code
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 development/
5627 \change_inserted -712698321 1501078933
5628 HTML/
5629 \change_unchanged
5630 HTML.notes
5631 \end_layout
5632
5633 \end_inset
5634
5635 , which can be found in the \SpecialChar LyX
5636  source tree or 
5637 \begin_inset CommandInset href
5638 LatexCommand href
5639 name "accessed online"
5640 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5641 literal "false"
5642
5643 \end_inset
5644
5645 , usually contains up-to-date information about the state of XHTML output.
5646  See also the list of XHTML bugs on 
5647 \begin_inset CommandInset href
5648 LatexCommand href
5649 name "the bug tracker"
5650 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"
5651 literal "false"
5652
5653 \end_inset
5654
5655 .
5656 \end_layout
5657
5658 \end_inset
5659
5660  Still, the developers have chosen this approach because it has several
5661  potential advantages over the other two.
5662 \end_layout
5663
5664 \begin_layout Standard
5665 These advantages are primarily due to the fact that the XHTML output routines,
5666  since they are part of \SpecialChar LyX
5667 , know everything \SpecialChar LyX
5668  knows about the document being
5669  exported.
5670 \begin_inset Foot
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 Another advantage is that, since these routines are internal to \SpecialChar LyX
5675 , they are
5676  immune to changes in \SpecialChar LyX
5677 's file format, or to changes in the semantics of
5678  existing insets.
5679 \end_layout
5680
5681 \end_inset
5682
5683  So they know about the table of contents (as displayed in the outline),
5684  about the counters associated with different paragraph styles, and about
5685  user-defined styles.
5686  The XHTML output routines know what \SpecialChar LyX
5687  knows about internationalization,
5688  too, so they will output 
5689 \begin_inset Quotes eld
5690 \end_inset
5691
5692 Chapter 1
5693 \begin_inset Quotes erd
5694 \end_inset
5695
5696  or 
5697 \begin_inset Quotes eld
5698 \end_inset
5699
5700
5701 \lang ngerman
5702 Kapitel
5703 \lang english
5704  1
5705 \begin_inset Quotes erd
5706 \end_inset
5707
5708 , depending upon the language in effect at the time.
5709  
5710 \end_layout
5711
5712 \begin_layout Standard
5713 Quite generally, the output routines know what \SpecialChar LyX
5714  knows about document layout,
5715  that is, about how the document is to be rendered on screen.
5716  We use this information when we output the document as XHTML.
5717  In particular, \SpecialChar LyX
5718  
5719 \emph on
5720 automatically
5721 \emph default
5722  generates CSS style information corresponding to the layout information
5723  it uses to render the document on screen: if section headings are supposed
5724  to be sans-serif and bold as seen in \SpecialChar LyX
5725 , then (by default) they will be sans-seri
5726 f and bold when viewed in a web browser, too.
5727  And this is true not just for pre-defined styles, like Section, but for
5728  any style, including user-defined styles.
5729  Indeed, the XHTML output routines make no distinction between user-defined
5730  paragraph and character styles and \SpecialChar LyX
5731 's own pre-defined styles: in each case,
5732  everything \SpecialChar LyX
5733  knows about the styles is contained in the layout files.
5734  And much the same is true as regards pre-defined textual insets, such as
5735  footnotes, and various custom insets.
5736  
5737 \end_layout
5738
5739 \begin_layout Standard
5740 The result is that XHTML output can be customized and extended in exactly
5741  the same way \SpecialChar LaTeX
5742  output can be customized and extended: through layout files
5743  and modules.
5744  See chapter five of the 
5745 \emph on
5746 Customization 
5747 \emph default
5748 manual for the details.
5749 \end_layout
5750
5751 \begin_layout Standard
5752 The remainder of this chapter contains more detailed information on XHTML
5753  output, its limitations, and ways to work around those limitations.
5754 \end_layout
5755
5756 \begin_layout Section
5757 Math Output in XHTML
5758 \end_layout
5759
5760 \begin_layout Standard
5761 \SpecialChar LyX
5762  offers four choices for how math is rendered.
5763  These have various advantages and disadvantages:
5764 \end_layout
5765
5766 \begin_layout Itemize
5767 MathML
5768 \begin_inset Newline newline
5769 \end_inset
5770
5771 MathML is a dialect of XML designed specifically for mathematics on the
5772  web, and it typically renders very well in browsers that support it.
5773  The disadvantage is that not all browsers support MathML, and support is
5774  not complete even in the Gecko-based browsers, such as Firefox.
5775 \begin_inset Newline newline
5776 \end_inset
5777
5778 If \SpecialChar LyX
5779  is unable to render a formula as MathML—for example, if the formula
5780  uses the 
5781 \begin_inset Flex Code
5782 status collapsed
5783
5784 \begin_layout Plain Layout
5785 xymatrix
5786 \end_layout
5787
5788 \end_inset
5789
5790  package or ERT—then it will instead output the formula as an image.
5791  
5792 \end_layout
5793
5794 \begin_layout Itemize
5795 HTML
5796 \begin_inset Newline newline
5797 \end_inset
5798
5799 As mentioned above, 
5800 \begin_inset Flex Code
5801 status collapsed
5802
5803 \begin_layout Plain Layout
5804 elyxer
5805 \end_layout
5806
5807 \end_inset
5808
5809  outputs math as HTML, styled by CSS.
5810 \begin_inset Foot
5811 status collapsed
5812
5813 \begin_layout Plain Layout
5814 \SpecialChar LyX
5815  has borrowed some of the CSS for its HTML output from 
5816 \begin_inset Flex Code
5817 status collapsed
5818
5819 \begin_layout Plain Layout
5820 elyxer
5821 \end_layout
5822
5823 \end_inset
5824
5825 .
5826 \end_layout
5827
5828 \end_inset
5829
5830  For simple formulae, this can work quite well, though with more complicated
5831  formulae it tends to break down.
5832  Still, this method has the advantage that it is very widely supported and
5833  so it may be appropriate for documents that contain only a little, fairly
5834  simple math.
5835 \begin_inset Newline newline
5836 \end_inset
5837
5838 If Lyx is unable to render a formula as HTML—for example, if the formula
5839  uses the 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 xymatrix
5845 \end_layout
5846
5847 \end_inset
5848
5849  package or ERT—then it will instead output the formula as an image.
5850  
5851 \end_layout
5852
5853 \begin_layout Itemize
5854 Images
5855 \begin_inset Newline newline
5856 \end_inset
5857
5858 Like 
5859 \begin_inset Flex Code
5860 status collapsed
5861
5862 \begin_layout Plain Layout
5863 htlatex
5864 \end_layout
5865
5866 \end_inset
5867
5868 , \SpecialChar LyX
5869  will output formulae as images, the very same images, in fact, that are
5870  used for instant preview.
5871 \begin_inset Foot
5872 status collapsed
5873
5874 \begin_layout Plain Layout
5875 Instant preview does 
5876 \emph on
5877 not 
5878 \emph default
5879 have to be on for images to be output, however.
5880 \end_layout
5881
5882 \end_inset
5883
5884  The advantage to this method is that the images are simply generated by
5885  \SpecialChar LaTeX
5886 , so they are very accurate.
5887  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5888  so they do not scale terribly well, and one cannot copy them, etc.
5889
5890 \change_deleted -712698321 1501075981
5891  (As of this writing, there are also problems about equation numbering.
5892  See 
5893 \begin_inset CommandInset href
5894 LatexCommand href
5895 name "bug 6894"
5896 target "http://www.lyx.org/trac/ticket/6894"
5897 literal "false"
5898
5899 \end_inset
5900
5901 .)
5902 \change_unchanged
5903
5904 \begin_inset Newline newline
5905 \end_inset
5906
5907 The size of the images can be controlled by setting the 
5908 \begin_inset Quotes eld
5909 \end_inset
5910
5911 Math Images Scaling
5912 \begin_inset Quotes erd
5913 \end_inset
5914
5915  parameter under 
5916 \begin_inset Flex Noun
5917 status collapsed
5918
5919 \begin_layout Plain Layout
5920 Document\SpecialChar menuseparator
5921 Settings\SpecialChar menuseparator
5922
5923 \change_deleted -712698321 1501076136
5924 Output
5925 \change_inserted -712698321 1501076137
5926 Formats
5927 \change_unchanged
5928
5929 \end_layout
5930
5931 \end_inset
5932
5933 .
5934 \begin_inset Foot
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 For those who want to know, this controls the resolution of the image in
5939  dots per inch and is based upon a default of 75 dpi.
5940 \end_layout
5941
5942 \end_inset
5943
5944
5945 \begin_inset Newline newline
5946 \end_inset
5947
5948 If \SpecialChar LyX
5949  for some reason fails to create an image for a formula (e.g., if a required
5950  \SpecialChar LaTeX
5951  package is not installed), then it will fall back to outputing the raw
5952  \SpecialChar LaTeX
5953 .
5954 \end_layout
5955
5956 \begin_layout Itemize
5957 \SpecialChar LaTeX
5958
5959 \begin_inset Newline newline
5960 \end_inset
5961
5962 Finally, \SpecialChar LyX
5963  will happily output math as \SpecialChar LaTeX
5964 .
5965  As well as being the output of last resort, this method can be used with
5966  such tools as 
5967 \begin_inset CommandInset href
5968 LatexCommand href
5969 name "jsMath"
5970 target "http://www.math.union.edu/~dpvc/jsMath/"
5971 literal "false"
5972
5973 \end_inset
5974
5975 , which uses JavaScript to render \SpecialChar LaTeX
5976  embedded in HTML documents.
5977  \SpecialChar LyX
5978  wraps the \SpecialChar LaTeX
5979  in either a 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 span
5985 \end_layout
5986
5987 \end_inset
5988
5989  (for inline formulas) or 
5990 \begin_inset Flex Code
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994 div
5995 \end_layout
5996
5997 \end_inset
5998
5999  (for displayed formulas) with 
6000 \begin_inset Flex Code
6001 status collapsed
6002
6003 \begin_layout Plain Layout
6004 class='math'
6005 \end_layout
6006
6007 \end_inset
6008
6009 , as is required for jsMath.
6010 \end_layout
6011
6012 \begin_layout Standard
6013 One of these output methods must be selected under 
6014 \begin_inset Flex Noun
6015 status collapsed
6016
6017 \begin_layout Plain Layout
6018 Document\SpecialChar menuseparator
6019 Settings\SpecialChar menuseparator
6020
6021 \change_deleted -712698321 1501076586
6022 Output
6023 \change_inserted -712698321 1501076587
6024 Formats
6025 \change_unchanged
6026
6027 \end_layout
6028
6029 \end_inset
6030
6031 .
6032  By default, \SpecialChar LyX
6033  outputs MathML.
6034  This is a document-wide setting, therefore.
6035 \end_layout
6036
6037 \begin_layout Standard
6038 Eventually, \SpecialChar LyX
6039  will offer the user the option to select an alternate output
6040  method for a particular inset, say, one that isn't being rendered very
6041  well by MathML.
6042 \begin_inset Foot
6043 status collapsed
6044
6045 \begin_layout Plain Layout
6046 That said, since \SpecialChar LyX
6047  falls back to images if the inset contains ERT, then one
6048  can force output as an image by putting some harmless ERT into the math,
6049  for example: 
6050 \begin_inset Formula $a=b\relax$
6051 \end_inset
6052
6053 .
6054 \end_layout
6055
6056 \end_inset
6057
6058
6059 \end_layout
6060
6061 \begin_layout Section
6062 Bibliography and Citations
6063 \end_layout
6064
6065 \begin_layout Standard
6066 XHTML output fully supports bibliographies and citations.
6067  
6068 \end_layout
6069
6070 \begin_layout Standard
6071 Citation labels are generated by the same machinery that generates \SpecialChar LyX
6072 's on-screen
6073  labels, so the labels will look in the output much as they do in \SpecialChar LyX
6074 , though
6075  better.
6076  If you are using numerical citations, then \SpecialChar LyX
6077  will output numerical labels,
6078  such as [1] or [17], rather than simply showing the citation key in square
6079  brackets, as it does on-screen.
6080  If you are using author-year citations, then \SpecialChar LyX
6081  will add lowercase letters
6082  to the years, just as Bib\SpecialChar TeX
6083  does, if it finds more than one citation for
6084  a given author-year combination.
6085  The labels will be printed with the bibliography entries.
6086  Note that there is, at present, no way to customize the appearance of the
6087  labels, for example, to choose between square brackets and parentheses.
6088 \end_layout
6089
6090 \begin_layout Standard
6091 Bibliography output is handled by the same machinery that handles the presentati
6092 on of reference information in the citation dialog, so you will see in the
6093  XHTML output pretty much what you would see if you were to look at a given
6094  entry in the citation dialog.
6095  The formatting can be customized in your layout file or, preferably, in
6096  a module.
6097  See the 
6098 \emph on
6099 Customization
6100 \emph default
6101  manual for the details.
6102 \end_layout
6103
6104 \begin_layout Standard
6105 The main defect at present is that cross-referenced information is printed
6106  with every entry with which it is associated.
6107  So you can see things like this:
6108 \end_layout
6109
6110 \begin_layout Quote
6111 Jason Stanley, 
6112 \begin_inset Quotes eld
6113 \end_inset
6114
6115 Context and Logical Form
6116 \begin_inset Quotes erd
6117 \end_inset
6118
6119 , in 
6120 \emph on
6121 Language in Context: Selected Essays
6122 \emph default
6123  (Oxford: Oxford University Press, 2007), pp.
6124  30–68.
6125 \end_layout
6126
6127 \begin_layout Quote
6128 Jason Stanley, 
6129 \begin_inset Quotes eld
6130 \end_inset
6131
6132 Semantics in Context
6133 \begin_inset Quotes erd
6134 \end_inset
6135
6136 , in 
6137 \emph on
6138 Language in Context: Selected Essays
6139 \emph default
6140  (Oxford: Oxford University Press, 2007), pp.
6141  201–30.
6142 \end_layout
6143
6144 \begin_layout Standard
6145 This should be fixed before long.
6146 \end_layout
6147
6148 \begin_layout Standard
6149 There is no support at present for sectioned bibliographies.
6150  If you have multiple bibliographies, then \SpecialChar LyX
6151  will print the same bibliography
6152  over and over.
6153 \end_layout
6154
6155 \begin_layout Section
6156 Indexes
6157 \end_layout
6158
6159 \begin_layout Standard
6160 \SpecialChar LyX
6161  will happily export indexes as XHTML, but with certain limitations at the
6162  moment.
6163 \end_layout
6164
6165 \begin_layout Standard
6166 Index export will be most reliable when you do not attempt to use the fancy
6167  constructs that are described in the section on indexes in the 
6168 \emph on
6169 User's Guide
6170 \emph default
6171 .
6172 \begin_inset Foot
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 The main issue here is that \SpecialChar LyX
6177  itself does not really handle these.
6178  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
6179 .
6180 \end_layout
6181
6182 \end_inset
6183
6184  We'll describe how they are handled using the subsection headings from
6185  that section.
6186 \end_layout
6187
6188 \begin_layout Itemize
6189 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
6190  makes an effort to support these,
6191  but the entries must be separated by 
6192 \begin_inset Quotes eld
6193 \end_inset
6194
6195  ! 
6196 \begin_inset Quotes erd
6197 \end_inset
6198
6199 , that is, there must be spaces around the exclamation point.
6200  This is because it is otherwise too difficult to check for escaped exclamation
6201  points, ones in math, and so forth.
6202 \end_layout
6203
6204 \begin_layout Itemize
6205 Page Ranges: There is no support at all for page ranges, since these make
6206  no sense with XHMTL.
6207  Instead, you will just get two index entries, one at either end.
6208 \end_layout
6209
6210 \begin_layout Itemize
6211 Cross-referencing: There is no support for cross-referencing.
6212  If \SpecialChar LyX
6213  finds an entry containing the 
6214 \begin_inset Quotes eld
6215 \end_inset
6216
6217 |see\SpecialChar ldots
6218
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222  construct, it is just dropped, and the rest is treated as an ordinary index
6223  entry.
6224 \end_layout
6225
6226 \begin_layout Itemize
6227 Index Entry Order: \SpecialChar LyX
6228  does support attempts to fix the sorting order.
6229  It will take what is before the first `@' it finds and use that for sorting,
6230  taking what follows the first `@' to be the actual entry.
6231  At present, \SpecialChar LyX
6232  does not check for escaped `@', so do not try to index email
6233  addresses.
6234 \end_layout
6235
6236 \begin_layout Itemize
6237 Index Entry Layout: You can format entries by using the text style dialog,
6238  or by using any other method available within \SpecialChar LyX
6239  itself.
6240  There is no support for constructs like: 
6241 \begin_inset Quotes eld
6242 \end_inset
6243
6244 entry|textbf
6245 \begin_inset Quotes erd
6246 \end_inset
6247
6248 .
6249  Indeed, if \SpecialChar LyX
6250  finds a pipe symbol, `|', in an entry, it will delete it and
6251  everything that follows it.
6252 \end_layout
6253
6254 \begin_layout Itemize
6255 Multiple Indexes: There is no support for multiple indexes.
6256  Rather, all index entries will be printed as one large index.
6257  To avoid our printing several versions of the index, we print only the
6258  main index, so make sure you have one.
6259 \end_layout
6260
6261 \begin_layout Section
6262 Nomenclature and Glossary
6263 \end_layout
6264
6265 \begin_layout Standard
6266 There is at present no support for glossaries.
6267  Adding it would be fairly trivial, and welcome.
6268 \end_layout
6269
6270 \begin_layout Chapter
6271 The \SpecialChar LyX
6272  Server
6273 \end_layout
6274
6275 \begin_layout Section
6276 Introduction
6277 \end_layout
6278
6279 \begin_layout Standard
6280 The `\SpecialChar LyX
6281  server' allows other programs to talk to \SpecialChar LyX
6282 , invoke \SpecialChar LyX
6283  commands, and retrieve
6284  information about the \SpecialChar LyX
6285  internal state.
6286  This is only intended for advanced users, but they should find it useful.
6287  It is by writing to the \SpecialChar LyX
6288  server, for example, that bibliography managers,
6289  such as JabRef, are able to 
6290 \begin_inset Quotes eld
6291 \end_inset
6292
6293 push
6294 \begin_inset Quotes erd
6295 \end_inset
6296
6297  citations to \SpecialChar LyX
6298 .
6299 \end_layout
6300
6301 \begin_layout Section
6302 Starting the \SpecialChar LyX
6303  Server
6304 \change_inserted -712698321 1501232552
6305
6306 \begin_inset CommandInset label
6307 LatexCommand label
6308 name "sec:Starting-the-Server"
6309
6310 \end_inset
6311
6312
6313 \change_unchanged
6314
6315 \end_layout
6316
6317 \begin_layout Standard
6318 The \SpecialChar LyX
6319  server works through the use of a pair of named pipes.
6320  These are usually located in 
6321 \begin_inset Flex Code
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325 UserDir
6326 \end_layout
6327
6328 \end_inset
6329
6330 , (except on Windows, where 
6331 \emph on
6332 local
6333 \emph default
6334  named pipes are special objects located in 
6335 \begin_inset Flex Code
6336 status collapsed
6337
6338 \begin_layout Plain Layout
6339
6340 \backslash
6341
6342 \backslash
6343 .
6344 \backslash
6345 pipe
6346 \end_layout
6347
6348 \end_inset
6349
6350 ) and have the names 
6351 \begin_inset Quotes eld
6352 \end_inset
6353
6354
6355 \begin_inset Flex Code
6356 status collapsed
6357
6358 \begin_layout Plain Layout
6359 lyxpipe.in
6360 \end_layout
6361
6362 \end_inset
6363
6364
6365 \begin_inset Quotes erd
6366 \end_inset
6367
6368  and 
6369 \begin_inset Quotes eld
6370 \end_inset
6371
6372
6373 \begin_inset Flex Code
6374 status collapsed
6375
6376 \begin_layout Plain Layout
6377 lyxpipe.out
6378 \end_layout
6379
6380 \end_inset
6381
6382
6383 \begin_inset Quotes erd
6384 \end_inset
6385
6386 .
6387  External programs write into 
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 lyxpipe.in
6393 \end_layout
6394
6395 \end_inset
6396
6397  and read back data from 
6398 \begin_inset Flex Code
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 lyxpipe.out
6403 \end_layout
6404
6405 \end_inset
6406
6407 .
6408  The stem of the pipe names can be defined in the 
6409 \begin_inset Flex Noun
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 Tools\SpecialChar menuseparator
6414 Preferences
6415 \end_layout
6416
6417 \end_inset
6418
6419  dialog, for example 
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 "/home/myhome/lyxpipe"
6425 \end_layout
6426
6427 \end_inset
6428
6429 , or 
6430 \begin_inset Flex Code
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434 "
6435 \backslash
6436
6437 \backslash
6438 .
6439 \backslash
6440 pipe
6441 \backslash
6442 lyxpipe"
6443 \end_layout
6444
6445 \end_inset
6446
6447  on Windows (where any working path instead of lyxpipe can be used, for
6448  example 
6449 \begin_inset Flex Code
6450 status collapsed
6451
6452 \begin_layout Plain Layout
6453 "
6454 \backslash
6455
6456 \backslash
6457 .
6458 \backslash
6459 pipe
6460 \backslash
6461 my
6462 \backslash
6463 lyx
6464 \backslash
6465 pipe"
6466 \end_layout
6467
6468 \end_inset
6469
6470  would also work).
6471  You 
6472 \emph on
6473 must
6474 \emph default
6475  configure this manually in order for the server to start.
6476 \end_layout
6477
6478 \begin_layout Standard
6479 \SpecialChar LyX
6480  will add the '
6481 \begin_inset Flex Code
6482 status collapsed
6483
6484 \begin_layout Plain Layout
6485 .in
6486 \end_layout
6487
6488 \end_inset
6489
6490 ' and '
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 .out
6496 \end_layout
6497
6498 \end_inset
6499
6500 ' to create the pipes.
6501  If one of the pipes already exists, \SpecialChar LyX
6502  will assume that another \SpecialChar LyX
6503  process
6504  is already running and will not start the server.
6505  On POSIX (Unix like) systems, if for some other reason, an unused 
6506 \begin_inset Quotes eld
6507 \end_inset
6508
6509 stale
6510 \begin_inset Quotes erd
6511 \end_inset
6512
6513  pipe is left in existence when \SpecialChar LyX
6514  closes, then \SpecialChar LyX
6515  will try to delete it.
6516  If this fails for some reason, you will need to delete the pipes manually
6517  and then restart \SpecialChar LyX
6518 .
6519  On Windows, pipes are deleted by the OS on program termination or crash,
6520  so 
6521 \begin_inset Quotes eld
6522 \end_inset
6523
6524 stale
6525 \begin_inset Quotes erd
6526 \end_inset
6527
6528  pipes should not be possible.
6529 \end_layout
6530
6531 \begin_layout Standard
6532 To have several \SpecialChar LyX
6533  processes with servers at the same time, you have to use
6534  different configurations, perhaps by using separate user directories, each
6535  with its own 
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 preferences
6541 \end_layout
6542
6543 \end_inset
6544
6545  file, for each process.
6546 \end_layout
6547
6548 \begin_layout Standard
6549 If you are developing a client program, you might find it useful to enable
6550  debugging information from the \SpecialChar LyX
6551  server.
6552  Do this by starting \SpecialChar LyX
6553  as 
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 lyx -dbg lyxserver
6559 \end_layout
6560
6561 \end_inset
6562
6563 .
6564 \end_layout
6565
6566 \begin_layout Standard
6567 You can find a complete example client written in C++ in the source distribution
6568  as 
6569 \begin_inset Flex Code
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 development/lyxserver/server_monitor.cpp
6574 \end_layout
6575
6576 \end_inset
6577
6578 .
6579 \end_layout
6580
6581 \begin_layout Standard
6582 Another useful tool is the command-line based client found in 
6583 \begin_inset Flex Code
6584 status collapsed
6585
6586 \begin_layout Plain Layout
6587 src/client/lyxclient
6588 \end_layout
6589
6590 \end_inset
6591
6592 .
6593 \end_layout
6594
6595 \begin_layout Section
6596 Normal communication
6597 \end_layout
6598
6599 \begin_layout Standard
6600 To issue a \SpecialChar LyX
6601  call, the client writes a line of ASCII text into the input
6602  pipe.
6603  This line has the following format:
6604 \end_layout
6605
6606 \begin_layout Quote
6607 LYXCMD:
6608 \emph on
6609 clientname
6610 \emph default
6611 :
6612 \emph on
6613 function
6614 \emph default
6615 :
6616 \emph on
6617 argument
6618 \end_layout
6619
6620 \begin_layout Description
6621 clientname is a name that the client can choose arbitrarily.
6622  Its only use is that \SpecialChar LyX
6623  will echo it if it sends an answer—so a client can
6624  dispatch results from different requesters.
6625 \end_layout
6626
6627 \begin_layout Description
6628 function is the function you want \SpecialChar LyX
6629  to perform.
6630  It is the same as the commands you'd use in the minibuffer.
6631 \end_layout
6632
6633 \begin_layout Description
6634 argument is an optional argument which is meaningful only to some functions
6635  (for instance, the 
6636 \begin_inset Quotes eld
6637 \end_inset
6638
6639 self-insert
6640 \begin_inset Quotes erd
6641 \end_inset
6642
6643  LFUN will insert the argument as text at the cursor position).
6644 \end_layout
6645
6646 \begin_layout Standard
6647 The answer from \SpecialChar LyX
6648  will arrive in the output pipe and be of the form
6649 \end_layout
6650
6651 \begin_layout Quote
6652 INFO:
6653 \emph on
6654 clientname
6655 \emph default
6656 :
6657 \emph on
6658 function
6659 \emph default
6660 :
6661 \emph on
6662 data
6663 \end_layout
6664
6665 \begin_layout Standard
6666 where 
6667 \emph on
6668 clientname
6669 \emph default
6670  and 
6671 \emph on
6672 function
6673 \emph default
6674  are just echoed from the command request, while 
6675 \emph on
6676 data
6677 \emph default
6678  is more or less useful information filled according to how the command
6679  execution worked out.
6680  Some commands, such as 
6681 \begin_inset Quotes eld
6682 \end_inset
6683
6684 font-state
6685 \begin_inset Quotes erd
6686 \end_inset
6687
6688 , will return information about the internal state of \SpecialChar LyX
6689 , while other will
6690  return an empty data-response.
6691  This means that the command execution went fine.
6692 \end_layout
6693
6694 \begin_layout Standard
6695 In case of errors, the response from \SpecialChar LyX
6696  will have this form
6697 \end_layout
6698
6699 \begin_layout Quote
6700 ERROR:
6701 \emph on
6702 clientname
6703 \emph default
6704 :
6705 \emph on
6706 function
6707 \emph default
6708 :
6709 \emph on
6710 error message
6711 \end_layout
6712
6713 \begin_layout Standard
6714 where the 
6715 \emph on
6716 error message
6717 \emph default
6718  should contain an explanation of why the command failed.
6719 \end_layout
6720
6721 \begin_layout Standard
6722 Examples:
6723 \end_layout
6724
6725 \begin_layout LyX-Code
6726 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6727 \begin_inset Newline newline
6728 \end_inset
6729
6730 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6731 \begin_inset Newline newline
6732 \end_inset
6733
6734 read a <~/.lyxpipe.out
6735 \begin_inset Newline newline
6736 \end_inset
6737
6738 echo $a
6739 \end_layout
6740
6741 \begin_layout Subsection
6742 AppleScript (Mac OS X)
6743 \end_layout
6744
6745 \begin_layout Standard
6746 Since \SpecialChar LyX
6747  2.1, \SpecialChar LyX
6748  supports basic interactions with AppleScript for normal communicatio
6749 n through the command run.
6750  This command takes a direct argument (the 
6751 \series bold
6752 function
6753 \series default
6754  to perform) and an optional argument.
6755  It either returns the output of the function or triggers an error with
6756  the error message and code.
6757 \end_layout
6758
6759 \begin_layout Standard
6760 Example:
6761 \end_layout
6762
6763 \begin_layout LyX-Code
6764 tell application "\SpecialChar LyX
6765 "
6766 \end_layout
6767
6768 \begin_layout LyX-Code
6769   try
6770 \end_layout
6771
6772 \begin_layout LyX-Code
6773     -- Stores the current file name into f
6774 \end_layout
6775
6776 \begin_layout LyX-Code
6777     set f to (run "server-get-filename" with argument "")
6778 \end_layout
6779
6780 \begin_layout LyX-Code
6781     on error the error_message number the error_number
6782 \end_layout
6783
6784 \begin_layout LyX-Code
6785       display dialog "Error: " & the error_number & ".
6786  " ¬
6787 \end_layout
6788
6789 \begin_layout LyX-Code
6790               & the error_message buttons {"OK"} default button 1
6791 \end_layout
6792
6793 \begin_layout LyX-Code
6794   end try
6795 \end_layout
6796
6797 \begin_layout LyX-Code
6798 end tell
6799 \end_layout
6800
6801 \begin_layout Section
6802 Notification
6803 \end_layout
6804
6805 \begin_layout Standard
6806 \SpecialChar LyX
6807  can notify clients of events going on asynchronously.
6808  Currently it will only do this if the user binds a key sequence with the
6809  function 
6810 \begin_inset Quotes eld
6811 \end_inset
6812
6813 notify
6814 \begin_inset Quotes erd
6815 \end_inset
6816
6817 .
6818  The format of the string \SpecialChar LyX
6819  sends is as follows:
6820 \end_layout
6821
6822 \begin_layout Quote
6823 \begin_inset Flex Code
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 NOTIFY:
6828 \end_layout
6829
6830 \end_inset
6831
6832
6833 \emph on
6834 key-sequence
6835 \end_layout
6836
6837 \begin_layout Standard
6838 where 
6839 \emph on
6840 key-sequence
6841 \emph default
6842  is the printed representation of the key sequence that was actually typed
6843  by the user.
6844 \end_layout
6845
6846 \begin_layout Standard
6847 This mechanism can be used to extend \SpecialChar LyX
6848 's command set and implement macros.
6849  Bind some key sequence to 
6850 \begin_inset Quotes eld
6851 \end_inset
6852
6853 notify
6854 \begin_inset Quotes erd
6855 \end_inset
6856
6857 .
6858  Then start a client that listens on the output pipe, dispatches the command
6859  according to the sequence, and starts a function that may use \SpecialChar LyX
6860  calls and
6861  \SpecialChar LyX
6862  requests to issue a command or a series of commands to \SpecialChar LyX
6863 .
6864 \end_layout
6865
6866 \begin_layout Section
6867 The simple \SpecialChar LyX
6868  Server Protocol
6869 \end_layout
6870
6871 \begin_layout Standard
6872 \SpecialChar LyX
6873  implements a simple protocol that can be used for session management.
6874  All messages are of the form
6875 \end_layout
6876
6877 \begin_layout Quote
6878 LYXSRV:
6879 \emph on
6880 clientname
6881 \emph default
6882 :
6883 \emph on
6884 protocol message
6885 \end_layout
6886
6887 \begin_layout Standard
6888 where 
6889 \emph on
6890 protocol message
6891 \emph default
6892  can be 
6893 \begin_inset Quotes eld
6894 \end_inset
6895
6896 hello
6897 \begin_inset Quotes erd
6898 \end_inset
6899
6900  or 
6901 \begin_inset Quotes eld
6902 \end_inset
6903
6904 bye
6905 \begin_inset Quotes erd
6906 \end_inset
6907
6908 .
6909  If 
6910 \begin_inset Quotes eld
6911 \end_inset
6912
6913 hello
6914 \begin_inset Quotes erd
6915 \end_inset
6916
6917  is received from a client, \SpecialChar LyX
6918  will report back to inform the client that
6919  it's listening to it's messages, while 
6920 \begin_inset Quotes eld
6921 \end_inset
6922
6923 bye
6924 \begin_inset Quotes erd
6925 \end_inset
6926
6927  sent from \SpecialChar LyX
6928  will inform clients that \SpecialChar LyX
6929  is closing.
6930 \end_layout
6931
6932 \begin_layout Section
6933 Reverse DVI/PDF search
6934 \end_layout
6935
6936 \begin_layout Standard
6937 Some DVI/PDF viewers
6938 \begin_inset Foot
6939 status collapsed
6940
6941 \begin_layout Plain Layout
6942 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6943  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6944 \end_layout
6945
6946 \end_inset
6947
6948  provide 
6949 \emph on
6950 reverse search
6951 \emph default
6952  facility (also called 
6953 \emph on
6954 inverse search
6955 \emph default
6956 ).
6957  This means that you can tell \SpecialChar LyX
6958  to put the cursor to a specific line in the
6959  document by clicking at the respective position in the DVI/PDF output.
6960  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6961 .
6962  This is done via the \SpecialChar LyX
6963  server either by using the named pipe (
6964 \emph on
6965 lyxpipe
6966 \emph default
6967 ), or the UNIX domain socket (
6968 \emph on
6969 lyxsocket
6970 \emph default
6971 ) that \SpecialChar LyX
6972  creates in its temporary directory (this is the way the 
6973 \begin_inset Flex Code
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 lyxclient
6978 \end_layout
6979
6980 \end_inset
6981
6982  program communicates with \SpecialChar LyX
6983 ).
6984  In some cases, you need a helper script that mediates between the viewer
6985  and \SpecialChar LyX
6986 , in others, the viewer can communicate with \SpecialChar LyX
6987  directly.
6988  This depends on the selected viewer and on your operating system.
6989  The same applies to the way viewers need to be configured and the way the
6990  reverse search is actually performed.
6991  In what follows, we will thus describe how to setup reverse search for
6992  specific viewers.
6993  Before we turn to this, though, we will explain what needs to be done generally
6994  to enable reverse search in the DVI/PDF output.
6995 \end_layout
6996
6997 \begin_layout Subsection
6998 Automatic setup
6999 \begin_inset CommandInset label
7000 LatexCommand label
7001 name "subsec:rev-search"
7002
7003 \end_inset
7004
7005
7006 \end_layout
7007
7008 \begin_layout Standard
7009 In most cases \SpecialChar LyX
7010  will do the work for you by 
7011 \change_inserted -712698321 1500975045
7012 pressing the following button in the toolbar: 
7013 \begin_inset Info
7014 type  "icon"
7015 arg   "buffer-toggle-output-sync"
7016 \end_inset
7017
7018 .
7019  Alternatively, you can also enable the feature by checking 
7020 \family sans
7021 Synchronize with Output
7022 \family default
7023  in 
7024 \begin_inset Flex Noun
7025 status collapsed
7026
7027 \begin_layout Plain Layout
7028
7029 \change_inserted -712698321 1500975071
7030 Document\SpecialChar menuseparator
7031 Settings\SpecialChar menuseparator
7032 Formats
7033 \end_layout
7034
7035 \end_inset
7036
7037
7038 \change_deleted -712698321 1500974764
7039 enabling the option 
7040 \begin_inset Flex Noun
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 Synchronize with Output
7045 \end_layout
7046
7047 \end_inset
7048
7049  in the menu 
7050 \begin_inset Flex Noun
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 Document\SpecialChar menuseparator
7055 Settings\SpecialChar menuseparator
7056 Output
7057 \end_layout
7058
7059 \end_inset
7060
7061
7062 \change_unchanged
7063 .
7064  In such a case \SpecialChar LyX
7065  will automatically insert the necessary Sync\SpecialChar TeX
7066  macro (for
7067  PDF) or load the srcltx package (for DVI) respectively.
7068  This option can be easily reached also on 
7069 \begin_inset Flex Code
7070 status collapsed
7071
7072 \begin_layout Plain Layout
7073 View/Update
7074 \end_layout
7075
7076 \end_inset
7077
7078  Toolbar.
7079 \end_layout
7080
7081 \begin_layout Standard
7082 If you need a different setting, you can select or input a custom macro
7083  from the drop down box just below 
7084 \begin_inset Flex Noun
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 Document\SpecialChar menuseparator
7089 Settings\SpecialChar menuseparator
7090 Output\SpecialChar menuseparator
7091 Synchronize with Output
7092 \end_layout
7093
7094 \end_inset
7095
7096 .
7097 \end_layout
7098
7099 \begin_layout Standard
7100 Note that the method 
7101 \begin_inset Flex Code
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105
7106 \backslash
7107 synctex=1
7108 \end_layout
7109
7110 \end_inset
7111
7112  enables gzip compression.
7113  If your viewer does not support it, you should instead use 
7114 \begin_inset Flex Code
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118
7119 \backslash
7120 synctex=-1
7121 \end_layout
7122
7123 \end_inset
7124
7125 .
7126 \end_layout
7127
7128 \begin_layout Standard
7129 Please also note that including the 
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 srcltx
7135 \end_layout
7136
7137 \end_inset
7138
7139  package or 
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 src-specials
7145 \end_layout
7146
7147 \end_inset
7148
7149  sometimes has an undesired impact on the typesetting.
7150  Thus, you should switch output synchronization off for the final typesetting
7151  if you use the 
7152 \begin_inset Flex Code
7153 status collapsed
7154
7155 \begin_layout Plain Layout
7156 srcltx
7157 \end_layout
7158
7159 \end_inset
7160
7161  package or 
7162 \begin_inset Flex Code
7163 status collapsed
7164
7165 \begin_layout Plain Layout
7166 src-specials
7167 \end_layout
7168
7169 \end_inset
7170
7171 .
7172  
7173 \end_layout
7174
7175 \begin_layout Standard
7176 In case you need some more special settings that are not covered by the
7177  automatic settings, read the next section about how to set up output synchroniz
7178 ation manually.
7179  If the automatic setup suits your needs, you can readily jump to section
7180 \begin_inset space ~
7181 \end_inset
7182
7183
7184 \begin_inset CommandInset ref
7185 LatexCommand ref
7186 reference "subsec:configuring-viewers"
7187
7188 \end_inset
7189
7190 , where the necessary configuration steps in your viewer – needed both with
7191  the automatic and the manual setup – are described.
7192 \end_layout
7193
7194 \begin_layout Subsection
7195 Manual setup
7196 \end_layout
7197
7198 \begin_layout Standard
7199 \SpecialChar LaTeX
7200  provides several different methods for reverse search.
7201  Some are built-in in the 
7202 \begin_inset Flex Code
7203 status collapsed
7204
7205 \begin_layout Plain Layout
7206 latex/pdflatex
7207 \end_layout
7208
7209 \end_inset
7210
7211  program, some are provided by external packages.
7212  Your choice depends on whether your \SpecialChar LaTeX
7213  distribution already provides a given
7214  method (the built-in methods are rather new) and whether your viewer can
7215  cope with it.
7216  The available methods are described in the following.
7217 \end_layout
7218
7219 \begin_layout Subsubsection*
7220 Built-in DVI-search via src-specials (DVI only) 
7221 \end_layout
7222
7223 \begin_layout Standard
7224 This method provides the DVI file with the necessary information for reverse
7225  search.
7226  It is available in \SpecialChar LaTeX
7227  since quite some time (any somewhat recent \SpecialChar LaTeX
7228  distribution
7229  should include it), and it works reliably.
7230  To enable it, change the 
7231 \begin_inset Flex Noun
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 La
7236 \family sans
7237 TeX
7238 \family default
7239  (plain)->DVI
7240 \end_layout
7241
7242 \end_inset
7243
7244  or 
7245 \begin_inset Flex Noun
7246 status collapsed
7247
7248 \begin_layout Plain Layout
7249 La
7250 \family sans
7251 TeX
7252 \family default
7253  (plain)->DraftDVI
7254 \end_layout
7255
7256 \end_inset
7257
7258  converter in 
7259 \begin_inset Flex Noun
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 Preferences\SpecialChar menuseparator
7264 File Handling\SpecialChar menuseparator
7265 Converters
7266 \end_layout
7267
7268 \end_inset
7269
7270  to 
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 latex -src-specials $$i
7276 \end_layout
7277
7278 \end_inset
7279
7280 .
7281  If this doesn't work, check if your \SpecialChar TeX
7282  engine needs different options (the
7283  syntax might differ in some distributions).
7284 \end_layout
7285
7286 \begin_layout Subsubsection*
7287 External Packages (PDFSync and scrltx) 
7288 \end_layout
7289
7290 \begin_layout Standard
7291 The packages 
7292 \emph on
7293 pdfsync
7294 \emph default
7295  and 
7296 \emph on
7297 scrltx
7298 \emph default
7299  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7300  respectively.
7301  In order to enable it, load the packages in the \SpecialChar LyX
7302  preamble: 
7303 \end_layout
7304
7305 \begin_layout Itemize
7306 \begin_inset Flex Code
7307 status collapsed
7308
7309 \begin_layout Plain Layout
7310
7311 \backslash
7312 usepackage{pdfsync}
7313 \end_layout
7314
7315 \end_inset
7316
7317  for reverse PDF search,
7318 \end_layout
7319
7320 \begin_layout Itemize
7321 \begin_inset Flex Code
7322 status collapsed
7323
7324 \begin_layout Plain Layout
7325
7326 \backslash
7327 usepackage[active]{srcltx}
7328 \end_layout
7329
7330 \end_inset
7331
7332  for reverse DVI search.
7333 \end_layout
7334
7335 \begin_layout Standard
7336 If you want to be able to perform both DVI and PDF reverse searches, you
7337  can also insert in the preamble the following lines
7338 \end_layout
7339
7340 \begin_layout LyX-Code
7341
7342 \backslash
7343 usepackage{ifpdf}
7344 \begin_inset Newline newline
7345 \end_inset
7346
7347
7348 \backslash
7349 ifpdf
7350 \begin_inset Newline newline
7351 \end_inset
7352
7353   
7354 \backslash
7355 usepackage{pdfsync}
7356 \begin_inset Newline newline
7357 \end_inset
7358
7359
7360 \backslash
7361 else
7362 \begin_inset Newline newline
7363 \end_inset
7364
7365   
7366 \backslash
7367 usepackage[active]{srcltx}
7368 \begin_inset Newline newline
7369 \end_inset
7370
7371
7372 \backslash
7373 fi
7374 \end_layout
7375
7376 \begin_layout Standard
7377 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7378  right package will be used.
7379 \end_layout
7380
7381 \begin_layout Standard
7382 Note that PDFSync might affect the output layout of your document.
7383  It is therefore advised to disable PDFsync for final documents.
7384 \end_layout
7385
7386 \begin_layout Subsubsection*
7387 Built-in reverse search via Sync\SpecialChar TeX
7388  (DVI and PDF) 
7389 \end_layout
7390
7391 \begin_layout Standard
7392 Recent versions of 
7393 \begin_inset Flex Code
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 (pdf)latex
7398 \end_layout
7399
7400 \end_inset
7401
7402  have built-in support for both PDF and DVI reverse search.
7403  This so-called 
7404 \emph on
7405 Sync\SpecialChar TeX
7406
7407 \emph default
7408  facility is basically the result of the integration of the PDFSync package
7409  to the pdftex program and its merge with the 
7410 \emph on
7411 scr-specials
7412 \emph default
7413  approach.
7414  You need at least \SpecialChar TeX
7415 Live 2008 or a recent Mik\SpecialChar TeX
7416  distribution in order to use
7417  it.
7418 \begin_inset Foot
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 For some reason, Mik\SpecialChar TeX
7423  does not understand/obey the command \SpecialChar LyX
7424  inserts into
7425  the preamble when you check the "Enable Forward/Reverse Search" button
7426  in the toolbar and does not generate the necessary info.
7427 \end_layout
7428
7429 \begin_layout Plain Layout
7430 The generation of the required info can be forced by changing the converter
7431  "\SpecialChar LaTeX
7432  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7433  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7434  the -synctex=1 switch).
7435 \end_layout
7436
7437 \end_inset
7438
7439  Also note that only a few PDF viewers (
7440 \change_inserted -712698321 1500977288
7441 such as 
7442 \change_unchanged
7443 Okular and Qpdfview on Unix, Skim on the Mac, SumatraPDF on Windows
7444 \change_inserted -712698321 1500977299
7445 ; see the next section for details
7446 \change_unchanged
7447 ) already provide Sync\SpecialChar TeX
7448  support.
7449 \end_layout
7450
7451 \begin_layout Standard
7452 To enable Sync\SpecialChar TeX
7453  for DVI output, change the 
7454 \begin_inset Flex Noun
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 La
7459 \family sans
7460 TeX
7461 \family default
7462  (plain) -> DVI
7463 \end_layout
7464
7465 \end_inset
7466
7467  or 
7468 \begin_inset Flex Noun
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 La
7473 \family sans
7474 TeX
7475 \family default
7476  (plain) -> DraftDVI
7477 \end_layout
7478
7479 \end_inset
7480
7481  converter in 
7482 \begin_inset Flex Noun
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 Preferences\SpecialChar menuseparator
7487 File Handling\SpecialChar menuseparator
7488 Converters
7489 \end_layout
7490
7491 \end_inset
7492
7493  to 
7494 \begin_inset Flex Code
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498 latex -synctex=1 $$i
7499 \end_layout
7500
7501 \end_inset
7502
7503 , and for PDF output, change the 
7504 \begin_inset Flex Noun
7505 status collapsed
7506
7507 \begin_layout Plain Layout
7508 La
7509 \family sans
7510 TeX
7511 \family default
7512  (pdflatex) -> PDF (pdflatex)
7513 \end_layout
7514
7515 \end_inset
7516
7517  
7518 \change_deleted -712698321 1500977453
7519 or
7520 \change_unchanged
7521  converter to 
7522 \begin_inset Flex Code
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 pdflatex -synctex=1 $$i
7527 \end_layout
7528
7529 \end_inset
7530
7531 .
7532  
7533 \change_inserted -712698321 1500977740
7534 Should your viewer not be considered in the following description, or in
7535  case of missing success, please 
7536 \change_deleted -712698321 1500977741
7537 C
7538 \change_inserted -712698321 1500977744
7539 c
7540 \change_unchanged
7541 heck the documentation of your viewer whether the viewer needs to be configured
7542  for the use with Sync\SpecialChar TeX
7543 .
7544 \begin_inset Foot
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 Note that the option 
7549 \begin_inset Flex Code
7550 status collapsed
7551
7552 \begin_layout Plain Layout
7553 -synctex=1
7554 \end_layout
7555
7556 \end_inset
7557
7558  option enables gzip compression.
7559  If your viewer does not support it, you should instead use 
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 -synctex=-1
7565 \end_layout
7566
7567 \end_inset
7568
7569 .
7570 \end_layout
7571
7572 \end_inset
7573
7574
7575 \end_layout
7576
7577 \begin_layout Subsection
7578 Configuring and using specific viewers
7579 \begin_inset CommandInset label
7580 LatexCommand label
7581 name "subsec:configuring-viewers"
7582
7583 \end_inset
7584
7585
7586 \end_layout
7587
7588 \begin_layout Subsubsection*
7589 Xdvi (all platforms)
7590 \end_layout
7591
7592 \begin_layout Standard
7593 If you use 
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 xdvi
7599 \end_layout
7600
7601 \end_inset
7602
7603 , you don't need to do anything else for performing a reverse DVI search,
7604  as \SpecialChar LyX
7605  already provides the necessary hooks for automatically using the 
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 lyxclient
7611 \end_layout
7612
7613 \end_inset
7614
7615  program.
7616  Just setup your document as described above (reverse search is triggered
7617  by Ctrl-click or Alt-click on Mac OSX, respectively).
7618 \end_layout
7619
7620 \begin_layout Standard
7621 However, if for whatever reason you want to use the named pipe instead of
7622  the socket for communicating with \SpecialChar LyX
7623 , simply change the DVI viewer in 
7624 \begin_inset Flex Noun
7625 status collapsed
7626
7627 \begin_layout Plain Layout
7628 Preferences\SpecialChar menuseparator
7629 File Handling\SpecialChar menuseparator
7630 File formats
7631 \end_layout
7632
7633 \end_inset
7634
7635  to
7636 \begin_inset Foot
7637 status collapsed
7638
7639 \begin_layout Plain Layout
7640 On Mac OSX you have to use 
7641 \begin_inset Flex Code
7642 status collapsed
7643
7644 \begin_layout Plain Layout
7645 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7646 \end_layout
7647
7648 \end_inset
7649
7650
7651 \end_layout
7652
7653 \end_inset
7654
7655  
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 xdvi -editor "lyxeditor.sh %f %l"
7661 \end_layout
7662
7663 \end_inset
7664
7665 , where 
7666 \begin_inset Flex Code
7667 status collapsed
7668
7669 \begin_layout Plain Layout
7670 lyxeditor.sh
7671 \end_layout
7672
7673 \end_inset
7674
7675  is a suitable script.
7676  For example, a minimal shell script is the following one:
7677 \end_layout
7678
7679 \begin_layout LyX-Code
7680 #!/bin/sh
7681 \begin_inset Newline newline
7682 \end_inset
7683
7684 LYXPIPE="/path/to/lyxpipe"
7685 \begin_inset Newline newline
7686 \end_inset
7687
7688 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7689 \begin_inset Newline newline
7690 \end_inset
7691
7692 echo "$COMMAND" > "${LYXPIPE}".in || exit
7693 \begin_inset Newline newline
7694 \end_inset
7695
7696 read TMP < "${LYXPIPE}".out || exit
7697 \end_layout
7698
7699 \begin_layout Standard
7700 where 
7701 \begin_inset Flex Code
7702 status collapsed
7703
7704 \begin_layout Plain Layout
7705 /path/to/lyxpipe
7706 \end_layout
7707
7708 \end_inset
7709
7710  is the LyXServer pipe path specified in 
7711 \begin_inset Flex Noun
7712 status collapsed
7713
7714 \begin_layout Plain Layout
7715 Preferences\SpecialChar menuseparator
7716 Paths
7717 \end_layout
7718
7719 \end_inset
7720
7721 .
7722 \begin_inset Foot
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 In the 
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 development/tools
7732 \end_layout
7733
7734 \end_inset
7735
7736  folder of a source distribution you can find a 
7737 \begin_inset Flex Code
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 lyxeditor
7742 \end_layout
7743
7744 \end_inset
7745
7746  script which is able to locate the 
7747 \emph on
7748 lyxpipe
7749 \emph default
7750  based on your preferences.
7751 \end_layout
7752
7753 \end_inset
7754
7755
7756 \end_layout
7757
7758 \begin_layout Subsubsection*
7759 MacDviX (Mac OSX)
7760 \end_layout
7761
7762 \begin_layout Standard
7763 At the end of 
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 /Applications/MacDviX_Folder/calleditor.script
7769 \end_layout
7770
7771 \end_inset
7772
7773 , add the following lines:
7774 \end_layout
7775
7776 \begin_layout LyX-Code
7777 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7778 \begin_inset Newline newline
7779 \end_inset
7780
7781 exit 1
7782 \end_layout
7783
7784 \begin_layout Standard
7785 Modify the lines accordingly if you install \SpecialChar LyX
7786  somewhere else than in the
7787  Applications folder.
7788 \end_layout
7789
7790 \begin_layout Standard
7791 Reverse search is triggered by Alt-click (OPTION-click).
7792 \end_layout
7793
7794 \begin_layout Subsubsection*
7795 Skim (Mac OSX)
7796 \end_layout
7797
7798 \begin_layout Standard
7799 Enter 
7800 \begin_inset Flex Code
7801 status collapsed
7802
7803 \begin_layout Plain Layout
7804 open -a Skim.app $$i
7805 \end_layout
7806
7807 \end_inset
7808
7809  to the viewer setting in 
7810 \begin_inset Flex Noun
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814 Preferences\SpecialChar menuseparator
7815 File Handling\SpecialChar menuseparator
7816 File formats\SpecialChar menuseparator
7817 PDF (pdflatex)
7818 \end_layout
7819
7820 \end_inset
7821
7822 , and then in 
7823 \begin_inset Flex Noun
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827 Skim\SpecialChar menuseparator
7828 Preferences\SpecialChar menuseparator
7829 Sync
7830 \end_layout
7831
7832 \end_inset
7833
7834  choose 
7835 \begin_inset Flex Noun
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 custom
7840 \end_layout
7841
7842 \end_inset
7843
7844  preset and enter command 
7845 \begin_inset Flex Noun
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849 /Applications/\SpecialChar LyX
7850 .app/Contents/MacOS/lyxeditor
7851 \end_layout
7852
7853 \end_inset
7854
7855 .
7856 \end_layout
7857
7858 \begin_layout Standard
7859 Reverse search is triggered by COMMAND-SHIFT-click
7860 \end_layout
7861
7862 \begin_layout Subsubsection*
7863 Evince (GNOME)
7864 \end_layout
7865
7866 \begin_layout Standard
7867 Reverse search with evince does not work out of the box, but it can be achieved
7868  by means of some third party helper scripts.
7869  Please refer to 
7870 \begin_inset CommandInset href
7871 LatexCommand href
7872 target "http://wiki.lyx.org/LyX/SyncTeX"
7873 literal "false"
7874
7875 \end_inset
7876
7877  for details.
7878 \end_layout
7879
7880 \begin_layout Subsubsection*
7881 Okular (KDE)
7882 \end_layout
7883
7884 \begin_layout Standard
7885 Go to 
7886 \begin_inset Flex Noun
7887 status collapsed
7888
7889 \begin_layout Plain Layout
7890 Settings\SpecialChar menuseparator
7891 Configure Okular\SpecialChar menuseparator
7892 Editor
7893 \end_layout
7894
7895 \end_inset
7896
7897
7898 \change_inserted -712698321 1500981642
7899  and
7900 \change_deleted -712698321 1500981641
7901 ,
7902 \change_unchanged
7903  select 
7904 \change_deleted -712698321 1500981634
7905
7906 \begin_inset Quotes eld
7907 \end_inset
7908
7909 Custom Text Editor
7910 \change_inserted -712698321 1500981635
7911 LyX
7912 \change_unchanged
7913
7914 \begin_inset Quotes erd
7915 \end_inset
7916
7917  
7918 \change_inserted -712698321 1500981659
7919 as editor.
7920  This inserts the appropriate 
7921 \change_deleted -712698321 1500981663
7922 and add the 
7923 \change_unchanged
7924 command 
7925 \change_inserted -712698321 1500981665
7926 (
7927 \change_unchanged
7928
7929 \begin_inset Flex Code
7930 status collapsed
7931
7932 \begin_layout Plain Layout
7933 lyxclient -g %f %l
7934 \end_layout
7935
7936 \end_inset
7937
7938
7939 \change_inserted -712698321 1500981668
7940 )
7941 \change_unchanged
7942 .
7943 \end_layout
7944
7945 \begin_layout Standard
7946 Reverse search is triggered by SHIFT-click.
7947 \end_layout
7948
7949 \begin_layout Subsubsection*
7950 Qpdfview (Unix)
7951 \end_layout
7952
7953 \begin_layout Standard
7954 Qpdfview supports Sync\SpecialChar TeX
7955  since version 0.3.5.
7956  Go to 
7957 \begin_inset Flex Noun
7958 status collapsed
7959
7960 \begin_layout Plain Layout
7961 Edit\SpecialChar menuseparator
7962 Settings\SpecialChar menuseparator
7963 Behavior
7964 \end_layout
7965
7966 \end_inset
7967
7968 , click on the input field of the 
7969 \begin_inset Quotes eld
7970 \end_inset
7971
7972 Source editor
7973 \begin_inset Quotes erd
7974 \end_inset
7975
7976  item and add the command 
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 lyxclient -g %1 %2
7982 \end_layout
7983
7984 \end_inset
7985
7986 .
7987 \end_layout
7988
7989 \begin_layout Standard
7990 Reverse search is triggered by double-click or, in more recent versions,
7991  by context menu.
7992 \end_layout
7993
7994 \begin_layout Subsubsection*
7995 YAP (Windows)
7996 \end_layout
7997
7998 \begin_layout Standard
7999 Launch yap, choose its 
8000 \begin_inset Flex Noun
8001 status collapsed
8002
8003 \begin_layout Plain Layout
8004 View\SpecialChar menuseparator
8005 Options
8006 \end_layout
8007
8008 \end_inset
8009
8010  menu and select the 
8011 \begin_inset Quotes eld
8012 \end_inset
8013
8014 Inverse DVI Search
8015 \begin_inset Quotes erd
8016 \end_inset
8017
8018  tab.
8019  Click on the 
8020 \begin_inset Quotes eld
8021 \end_inset
8022
8023 New\SpecialChar ldots
8024
8025 \begin_inset Quotes erd
8026 \end_inset
8027
8028  button and, in the window that opens, enter 
8029 \begin_inset Quotes eld
8030 \end_inset
8031
8032 \SpecialChar LyX
8033  Editor
8034 \begin_inset Quotes erd
8035 \end_inset
8036
8037  (or any other name you like) in the 
8038 \begin_inset Quotes eld
8039 \end_inset
8040
8041 Name:
8042 \begin_inset Quotes erd
8043 \end_inset
8044
8045  field.
8046  Now click on the button labeled 
8047 \begin_inset Quotes eld
8048 \end_inset
8049
8050 \SpecialChar ldots
8051
8052 \begin_inset Quotes erd
8053 \end_inset
8054
8055  to open a file dialog and navigate to the directory containing the batch
8056  file 
8057 \begin_inset Flex Code
8058 status collapsed
8059
8060 \begin_layout Plain Layout
8061 lyxeditor.bat
8062 \end_layout
8063
8064 \end_inset
8065
8066  (see below).
8067  Select 
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 lyxeditor.bat
8073 \end_layout
8074
8075 \end_inset
8076
8077  and then specify the program arguments as 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 %f %l
8083 \end_layout
8084
8085 \end_inset
8086
8087 .
8088  The 
8089 \begin_inset Flex Code
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 lyxeditor.bat
8094 \end_layout
8095
8096 \end_inset
8097
8098  wrapper is used for communicating with \SpecialChar LyX
8099  through the 
8100 \emph on
8101 lyxpipe
8102 \emph default
8103  and is as follows:
8104 \end_layout
8105
8106 \begin_layout LyX-Code
8107 @echo off
8108 \begin_inset Newline newline
8109 \end_inset
8110
8111 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8112 \backslash
8113
8114 \backslash
8115 .
8116 \backslash
8117 pipe
8118 \backslash
8119 lyxpipe.in
8120 \begin_inset Newline newline
8121 \end_inset
8122
8123 type 
8124 \backslash
8125
8126 \backslash
8127 .
8128 \backslash
8129 pipe
8130 \backslash
8131 lyxpipe.out
8132 \end_layout
8133
8134 \begin_layout Standard
8135 Make sure that the \SpecialChar LyX
8136 Server pipe path you specified in \SpecialChar LyX
8137  is 
8138 \begin_inset Flex Code
8139 status collapsed
8140
8141 \begin_layout Plain Layout
8142
8143 \backslash
8144
8145 \backslash
8146 .
8147 \backslash
8148 pipe
8149 \backslash
8150 lyxpipe
8151 \end_layout
8152
8153 \end_inset
8154
8155 , otherwise change the 
8156 \begin_inset Flex Code
8157 status collapsed
8158
8159 \begin_layout Plain Layout
8160 lyxeditor.bat
8161 \end_layout
8162
8163 \end_inset
8164
8165  wrapper accordingly.
8166 \end_layout
8167
8168 \begin_layout Standard
8169 In yap, reverse search is triggered by double-click.
8170 \end_layout
8171
8172 \begin_layout Subsubsection*
8173 SumatraPDF (Windows)
8174 \end_layout
8175
8176 \begin_layout Standard
8177 In order to use SumatraPDF for inverse search, enter 
8178 \begin_inset Flex Code
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8183 \end_layout
8184
8185 \end_inset
8186
8187  in the viewer setting in 
8188 \begin_inset Flex Noun
8189 status collapsed
8190
8191 \begin_layout Plain Layout
8192 Preferences\SpecialChar menuseparator
8193 File Handling\SpecialChar menuseparator
8194 File formats\SpecialChar menuseparator
8195 PDF (pdflatex)
8196 \end_layout
8197
8198 \end_inset
8199
8200 , where 
8201 \begin_inset Flex Code
8202 status collapsed
8203
8204 \begin_layout Plain Layout
8205 lyxeditor.bat
8206 \end_layout
8207
8208 \end_inset
8209
8210  is the previous wrapper.
8211  If SumatraPDF.exe is not in your command PATH, use its full file name.
8212 \end_layout
8213
8214 \begin_layout Standard
8215 Reverse search is triggered by double-click.
8216 \end_layout
8217
8218 \begin_layout Subsubsection*
8219 YAP (Cygwin)
8220 \end_layout
8221
8222 \begin_layout Standard
8223 First of all, make sure that yap is your default DVI viewer in the Windows
8224  environment, then launch it, choose its 
8225 \begin_inset Flex Noun
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 View\SpecialChar menuseparator
8230 Options
8231 \end_layout
8232
8233 \end_inset
8234
8235  menu and select the 
8236 \begin_inset Quotes eld
8237 \end_inset
8238
8239 Inverse DVI Search
8240 \begin_inset Quotes erd
8241 \end_inset
8242
8243  tab.
8244  Click on the 
8245 \begin_inset Quotes eld
8246 \end_inset
8247
8248 New\SpecialChar ldots
8249
8250 \begin_inset Quotes erd
8251 \end_inset
8252
8253  button and, in the window that opens, enter 
8254 \begin_inset Quotes eld
8255 \end_inset
8256
8257 \SpecialChar LyX
8258  Editor
8259 \begin_inset Quotes erd
8260 \end_inset
8261
8262  (or any other name you like) in the 
8263 \begin_inset Quotes eld
8264 \end_inset
8265
8266 Name:
8267 \begin_inset Quotes erd
8268 \end_inset
8269
8270  field.
8271  Now click on the button labeled 
8272 \begin_inset Quotes eld
8273 \end_inset
8274
8275 \SpecialChar ldots
8276
8277 \begin_inset Quotes erd
8278 \end_inset
8279
8280  to open a file dialog and navigate to the directory containing the 
8281 \begin_inset Flex Code
8282 status collapsed
8283
8284 \begin_layout Plain Layout
8285 lyxeditor.exe
8286 \end_layout
8287
8288 \end_inset
8289
8290  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8291  executable).
8292  Select 
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 lyxeditor.exe
8298 \end_layout
8299
8300 \end_inset
8301
8302  and then specify the program arguments as 
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 -g %f %l
8308 \end_layout
8309
8310 \end_inset
8311
8312 .
8313  In this way, you will be using the 
8314 \emph on
8315 lyxsocket
8316 \emph default
8317  for communicating with \SpecialChar LyX
8318 .
8319  If, for whatever reason, you want to use the 
8320 \emph on
8321 lyxpipe
8322 \emph default
8323 , omit the 
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 -g
8329 \end_layout
8330
8331 \end_inset
8332
8333  option and be sure to specify the \SpecialChar LyX
8334 Server pipe path in the \SpecialChar LyX
8335  preferences.
8336 \end_layout
8337
8338 \begin_layout Standard
8339 In yap, reverse search is triggered by double-click.
8340 \end_layout
8341
8342 \begin_layout Subsubsection*
8343 SumatraPDF (Cygwin)
8344 \end_layout
8345
8346 \begin_layout Standard
8347 In order to use SumatraPDF for inverse search, enter 
8348 \begin_inset Flex Code
8349 status collapsed
8350
8351 \begin_layout Plain Layout
8352 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8353 \end_layout
8354
8355 \end_inset
8356
8357  in the viewer setting in 
8358 \begin_inset Flex Noun
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362 Preferences\SpecialChar menuseparator
8363 File Handling\SpecialChar menuseparator
8364 File formats\SpecialChar menuseparator
8365 PDF (pdflatex)
8366 \end_layout
8367
8368 \end_inset
8369
8370 .
8371  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8372  The 
8373 \begin_inset Flex Code
8374 status collapsed
8375
8376 \begin_layout Plain Layout
8377 -g
8378 \end_layout
8379
8380 \end_inset
8381
8382  enables communication via the 
8383 \emph on
8384 lyxsocket
8385 \emph default
8386 .
8387  Again, omit the 
8388 \begin_inset Flex Code
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 -g
8393 \end_layout
8394
8395 \end_inset
8396
8397  option if you want to use the 
8398 \emph on
8399 lyxpipe
8400 \emph default
8401 , and be sure to specify the \SpecialChar LyX
8402 Server pipe path in the \SpecialChar LyX
8403  preferences.
8404 \end_layout
8405
8406 \begin_layout Standard
8407 Reverse search is triggered by double-click.
8408 \end_layout
8409
8410 \begin_layout Section
8411 Forward search
8412 \end_layout
8413
8414 \begin_layout Standard
8415 Forward search is, as the name implies, in a sense the 
8416 \begin_inset Quotes eld
8417 \end_inset
8418
8419 opposite
8420 \begin_inset Quotes erd
8421 \end_inset
8422
8423  of reverse search.
8424  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8425 .
8426  If forward search is set up (as described in what follows), you can put
8427  the cursor anywhere in your \SpecialChar LyX
8428  document, and hit 
8429 \begin_inset Flex Noun
8430 status collapsed
8431
8432 \begin_layout Plain Layout
8433 Navigate\SpecialChar menuseparator
8434 Forward search
8435 \end_layout
8436
8437 \end_inset
8438
8439  (or select 
8440 \begin_inset Flex Noun
8441 status collapsed
8442
8443 \begin_layout Plain Layout
8444 Forward search
8445 \end_layout
8446
8447 \end_inset
8448
8449  in the context menu via right mouse click), and then the viewer will jump
8450  to that position as well.
8451  This implies, of course, that your viewer supports this function.
8452 \end_layout
8453
8454 \begin_layout Standard
8455 To make forward search possible, you first need to provide the generated
8456  output PDF/DVI file with additional information about the \SpecialChar TeX
8457  sources.
8458  This can be done via the methods described in the section 
8459 \begin_inset CommandInset ref
8460 LatexCommand ref
8461 reference "subsec:rev-search"
8462
8463 \end_inset
8464
8465 .
8466 \end_layout
8467
8468 \begin_layout Standard
8469 Additionally, you need to configure \SpecialChar LyX
8470  for using your viewers in 
8471 \begin_inset Flex Noun
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 Tools\SpecialChar menuseparator
8476 Preferences\SpecialChar menuseparator
8477 Output\SpecialChar menuseparator
8478 General
8479 \end_layout
8480
8481 \end_inset
8482
8483 .
8484  We provide a range of tested configurations for some viewers, which you
8485  can select from the drop down list.
8486  If none of these configurations suits you, you have to find out and enter
8487  a suitable configuration yourself.
8488  The definition syntax uses the following placeholders:
8489 \end_layout
8490
8491 \begin_layout Itemize
8492 \noindent
8493 \begin_inset Flex Code
8494 status collapsed
8495
8496 \begin_layout Plain Layout
8497 $$n
8498 \end_layout
8499
8500 \end_inset
8501
8502 : row number
8503 \end_layout
8504
8505 \begin_layout Itemize
8506 \noindent
8507 \begin_inset Flex Code
8508 status collapsed
8509
8510 \begin_layout Plain Layout
8511 $$t
8512 \end_layout
8513
8514 \end_inset
8515
8516 : name of the (temporary) exported .tex file (without path)
8517 \end_layout
8518
8519 \begin_layout Itemize
8520 \noindent
8521 \begin_inset Flex Code
8522 status collapsed
8523
8524 \begin_layout Plain Layout
8525 $$f
8526 \end_layout
8527
8528 \end_inset
8529
8530 : name of the (temporary) exported .tex file (including path)
8531 \end_layout
8532
8533 \begin_layout Itemize
8534 \noindent
8535 \begin_inset Flex Code
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 $$o
8540 \end_layout
8541
8542 \end_inset
8543
8544 : name of the exported output file (either dvi or pdf, depending on which
8545  one exists in the temporary directory)
8546 \end_layout
8547
8548 \begin_layout Standard
8549 Note that only some of the viewers provide full and usable forward search
8550  functionality out of the box, among them yap, xdvi, okular
8551 \begin_inset Foot
8552 status collapsed
8553
8554 \begin_layout Plain Layout
8555 You might want to set 
8556 \begin_inset Flex Code
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 okular –unique
8561 \end_layout
8562
8563 \end_inset
8564
8565  in 
8566 \begin_inset Flex Noun
8567 status collapsed
8568
8569 \begin_layout Plain Layout
8570 Tools\SpecialChar menuseparator
8571 Preferences\SpecialChar menuseparator
8572 File Handling\SpecialChar menuseparator
8573 File
8574 \begin_inset space ~
8575 \end_inset
8576
8577 Formats
8578 \end_layout
8579
8580 \end_inset
8581
8582
8583 \end_layout
8584
8585 \end_inset
8586
8587 , qpdfview, and SumatraPDF
8588 \begin_inset Foot
8589 status collapsed
8590
8591 \begin_layout Plain Layout
8592 SumatraPDF can also use DDE commands through the external program CMCDDE
8593  — downloadable from 
8594 \begin_inset CommandInset href
8595 LatexCommand href
8596 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8597 literal "false"
8598
8599 \end_inset
8600
8601
8602 \end_layout
8603
8604 \end_inset
8605
8606 .
8607  Others, such as evince
8608 \begin_inset Foot
8609 status collapsed
8610
8611 \begin_layout Plain Layout
8612 Forward search with evince can be achieved by means of third party helper
8613  scripts.
8614  Please refer to 
8615 \begin_inset CommandInset href
8616 LatexCommand href
8617 target "http://wiki.lyx.org/LyX/SyncTeX"
8618 literal "false"
8619
8620 \end_inset
8621
8622  for details.
8623 \end_layout
8624
8625 \end_inset
8626
8627 , require some extra tools in order to use forward search.
8628  While many of the widespread PDF viewers (most notably Adobe Reader) do
8629  not support forward search at all, some other viewers – e.
8630 \begin_inset space \thinspace{}
8631 \end_inset
8632
8633 g.
8634  xpdf – allow at least to reload the document and jump to a specific page
8635  of the file, so you can at least navigate 
8636 \begin_inset Quotes eld
8637 \end_inset
8638
8639 near
8640 \begin_inset Quotes erd
8641 \end_inset
8642
8643 .
8644  This latter functionality is provided by an external call of synctex (see
8645  the predefined example configurations).
8646  
8647 \end_layout
8648
8649 \begin_layout Standard
8650 Forward search works both with DVI and PDF output.
8651  \SpecialChar LyX
8652  simply checks which preview format you have used before (i.
8653 \begin_inset space \thinspace{}
8654 \end_inset
8655
8656 e., which format is already there in the temporary directory) and chooses
8657  the appropriate configuration for the respective format.
8658 \end_layout
8659
8660 \begin_layout Chapter
8661 Special Document Classes
8662 \end_layout
8663
8664 \begin_layout Section
8665 A&A Paper
8666 \end_layout
8667
8668 \begin_layout Standard
8669 by 
8670 \noun on
8671 Peter Sütterlin
8672 \end_layout
8673
8674 \begin_layout Subsection
8675 Introduction
8676 \end_layout
8677
8678 \begin_layout Standard
8679 This section describes how \SpecialChar LyX
8680  can be used to write articles for submission
8681  to the scientific journal 
8682 \emph on
8683 Astronomy and Astrophysics
8684 \emph default
8685  (
8686 \begin_inset Flex URL
8687 status collapsed
8688
8689 \begin_layout Plain Layout
8690
8691 http://www.edpsciences.fr/aa/
8692 \end_layout
8693
8694 \end_inset
8695
8696 ) using Version 5.01 of the document class 
8697 \family typewriter
8698 aa.cls
8699 \family default
8700 .
8701  This package can be downloaded from the ftp site
8702 \end_layout
8703
8704 \begin_layout Standard
8705 \begin_inset VSpace medskip
8706 \end_inset
8707
8708
8709 \end_layout
8710
8711 \begin_layout Standard
8712 \align center
8713 \begin_inset Flex URL
8714 status collapsed
8715
8716 \begin_layout Plain Layout
8717
8718 ftp://ftp.edpsciences.org/pub/aa/readme.html
8719 \end_layout
8720
8721 \end_inset
8722
8723
8724 \end_layout
8725
8726 \begin_layout Standard
8727 \begin_inset VSpace medskip
8728 \end_inset
8729
8730
8731 \end_layout
8732
8733 \begin_layout Standard
8734 A manual comes together with that package, and this text is not meant to
8735  replace the original manual but is merely a short guide in how to realize
8736  the correct form of your paper.
8737  
8738 \end_layout
8739
8740 \begin_layout Standard
8741 Please note that the publisher of the journal was changed from Springer
8742  to EDP Sciences starting January 1, 2001.
8743  That change involved also some slight changes to the style files, namely
8744  the removal of the thesaurus command.
8745  The \SpecialChar LyX
8746  class aa supports the newest version of these style files, V 5.01.
8747  If you have an older version installed, please upgrade.
8748  For compatibility, the old (version 4) layout has been kept as 
8749 \family sans
8750 article (A&A V4)
8751 \family default
8752 .
8753  Please refer to the comments in 
8754 \family typewriter
8755 \SpecialChar LyX
8756 Dir/layouts/aapaper.layout
8757 \family default
8758 .
8759 \end_layout
8760
8761 \begin_layout Subsection
8762 Getting started
8763 \end_layout
8764
8765 \begin_layout Standard
8766 It is recommended you start from the example template distributed with \SpecialChar LyX
8767 .
8768  If you are not using a template, note the following settings:
8769 \end_layout
8770
8771 \begin_layout Itemize
8772 Select 
8773 \family sans
8774 article (A&A)
8775 \family default
8776  in the 
8777 \family sans
8778 Document\SpecialChar menuseparator
8779 Settings
8780 \family default
8781  dialog (OK, that one was obvious).
8782 \end_layout
8783
8784 \begin_layout Itemize
8785 Don't change the option 
8786 \family sans
8787 Page
8788 \begin_inset space ~
8789 \end_inset
8790
8791 style
8792 \family default
8793 : Leave it set to 
8794 \family sans
8795 default
8796 \family default
8797 .
8798  The whole layout is done by the macros, you shouldn't change anything.
8799 \end_layout
8800
8801 \begin_layout Subsection
8802 The header block
8803 \end_layout
8804
8805 \begin_layout Standard
8806 First thing to enter is the header information.
8807  It consists of seven entries, of which some are optional.
8808  They are
8809 \end_layout
8810
8811 \begin_layout Itemize
8812
8813 \family sans
8814 Title
8815 \family default
8816 : [required] 
8817 \end_layout
8818
8819 \begin_layout Itemize
8820
8821 \family sans
8822 Subtitle
8823 \family default
8824 : [optional] 
8825 \end_layout
8826
8827 \begin_layout Itemize
8828
8829 \family sans
8830 Author
8831 \family default
8832 : [required]
8833 \end_layout
8834
8835 \begin_layout Itemize
8836
8837 \family sans
8838 Address
8839 \family default
8840 : [required]
8841 \end_layout
8842
8843 \begin_layout Itemize
8844
8845 \family sans
8846 Offprints
8847 \family default
8848 : [optional] if more than one author: whom to contact for offprint requests.
8849 \end_layout
8850
8851 \begin_layout Itemize
8852
8853 \family sans
8854 Mail
8855 \family default
8856 : [optional] mail address for contacts.
8857 \end_layout
8858
8859 \begin_layout Itemize
8860
8861 \family sans
8862 Date
8863 \family default
8864 : [required].
8865  Suggested format is 
8866 \family typewriter
8867 Received: <date>; Accepted <date> 
8868 \end_layout
8869
8870 \begin_layout Standard
8871 There is no need to issue the 
8872 \family typewriter
8873
8874 \backslash
8875 maketitle
8876 \family default
8877  command, this is done automatically by \SpecialChar LyX
8878  when the header is finished.
8879  Although the order of the single header entries doesn't matter it is advised
8880  to keep the above sequence, just to get the best optics and meets the layout
8881  of the real document.
8882 \end_layout
8883
8884 \begin_layout Standard
8885 If you want to place footnotes in the header block, e.
8886 \begin_inset space \thinspace{}
8887 \end_inset
8888
8889 g.
8890 \begin_inset space \space{}
8891 \end_inset
8892
8893 to state your present address, just use the standard footnote via the menu
8894  
8895 \family sans
8896 Insert\SpecialChar menuseparator
8897 Footnote.
8898
8899 \family default
8900  \SpecialChar LyX
8901  will automagically use the term 
8902 \family typewriter
8903
8904 \backslash
8905 thanks{}
8906 \family default
8907  in that case.
8908 \change_inserted -712698321 1501150851
8909
8910 \end_layout
8911
8912 \begin_layout Standard
8913
8914 \change_inserted -712698321 1501150892
8915 Under 
8916 \family sans
8917 Edit\SpecialChar menuseparator
8918 Text Style
8919 \family default
8920 , you'll find two insets which are relevant for the titling:
8921 \end_layout
8922
8923 \begin_layout Itemize
8924
8925 \change_inserted -712698321 1501150936
8926
8927 \family sans
8928 Institute
8929 \family typewriter
8930  
8931 \family default
8932 to mark corresponding author\SpecialChar breakableslash
8933 institute pairs.
8934  The institutes are numbered sequentially as they appear in the 
8935 \family sans
8936 Address
8937 \family default
8938  field, so you have to put a marker to each author.
8939 \end_layout
8940
8941 \begin_layout Itemize
8942
8943 \change_inserted -712698321 1501150947
8944
8945 \family sans
8946 Email
8947 \family default
8948  to supply an email address for fast contact.
8949 \change_unchanged
8950
8951 \end_layout
8952
8953 \begin_layout Standard
8954 In addition to these topics, the macros use
8955 \change_deleted -712698321 1501150958
8956  three
8957 \change_inserted -712698321 1501150961
8958  one
8959 \change_unchanged
8960  additional \SpecialChar LaTeX
8961  command
8962 \change_deleted -712698321 1501150963
8963 s
8964 \change_unchanged
8965  that ha
8966 \change_deleted -712698321 1501150967
8967 ve
8968 \change_inserted -712698321 1501150967
8969 s
8970 \change_unchanged
8971  no counterpart in \SpecialChar LyX
8972 :
8973 \end_layout
8974
8975 \begin_layout Itemize
8976
8977 \family typewriter
8978
8979 \backslash
8980 and
8981 \family default
8982  to separate different names for more than one author and institute, respectivel
8983 y.
8984 \end_layout
8985
8986 \begin_layout Itemize
8987
8988 \change_deleted -712698321 1501150911
8989
8990 \family typewriter
8991
8992 \backslash
8993 inst{<nr>}
8994 \family default
8995 to mark corresponding author/institute pairs.
8996  The institutes are numbered sequentially as they appear in the 
8997 \family sans
8998 Address
8999 \family default
9000  field, so you have to put a marker to each author.
9001 \end_layout
9002
9003 \begin_layout Itemize
9004
9005 \change_deleted -712698321 1501150911
9006
9007 \family typewriter
9008
9009 \backslash
9010 email{address}
9011 \family default
9012  to supply an email address for fast contact.
9013 \change_unchanged
9014
9015 \end_layout
9016
9017 \begin_layout Standard
9018
9019 \change_deleted -712698321 1501150972
9020 In all cases, t
9021 \change_inserted -712698321 1501150972
9022 T
9023 \change_unchanged
9024 he appropriate command has to be entered in \SpecialChar LyX
9025  and marked as \SpecialChar LaTeX
9026  code.
9027  See the examples.
9028  
9029 \end_layout
9030
9031 \begin_layout Subsection
9032 The abstract
9033 \end_layout
9034
9035 \begin_layout Standard
9036 The abstract should immediately follow the header block.
9037  With version 5 the abstract environment was changed to a command, and there
9038  is now a resctriction to only one paragraph.
9039  In addition, it should contain an entry with the keywords.
9040  This is 
9041 \change_deleted -712698321 1501151111
9042 not yet implemented for \SpecialChar LyX
9043 , therefore you have to enter the \SpecialChar LaTeX
9044  command 
9045 \family typewriter
9046
9047 \backslash
9048 keywords{}
9049 \family default
9050  by hand and mark it as \SpecialChar LaTeX
9051  code
9052 \change_inserted -712698321 1501151122
9053 done via the paragraph style 
9054 \family sans
9055 Keywords
9056 \change_unchanged
9057
9058 \family default
9059 .
9060  Refer to the example paper.
9061 \end_layout
9062
9063 \begin_layout Subsection
9064 Supported environments
9065 \end_layout
9066
9067 \begin_layout Standard
9068 The A&A paper layout supports the following environments for structuring
9069  your text:
9070 \end_layout
9071
9072 \begin_layout Itemize
9073
9074 \family sans
9075 Standard
9076 \end_layout
9077
9078 \begin_layout Itemize
9079
9080 \family sans
9081 Section
9082 \end_layout
9083
9084 \begin_layout Itemize
9085
9086 \family sans
9087 Subsection
9088 \end_layout
9089
9090 \begin_layout Itemize
9091
9092 \family sans
9093 Subsubsection
9094 \end_layout
9095
9096 \begin_layout Itemize
9097
9098 \family sans
9099 Itemize
9100 \end_layout
9101
9102 \begin_layout Itemize
9103
9104 \family sans
9105 Enumerate
9106 \end_layout
9107
9108 \begin_layout Itemize
9109
9110 \family sans
9111 Description
9112 \end_layout
9113
9114 \begin_layout Itemize
9115
9116 \family sans
9117 Caption
9118 \end_layout
9119
9120 \begin_layout Itemize
9121
9122 \family sans
9123 Abstract
9124 \end_layout
9125
9126 \begin_layout Itemize
9127
9128 \family sans
9129 Acknowledgment
9130 \end_layout
9131
9132 \begin_layout Itemize
9133
9134 \family sans
9135 Bibliography
9136 \end_layout
9137
9138 \begin_layout Itemize
9139
9140 \family sans
9141 \SpecialChar LaTeX
9142
9143 \end_layout
9144
9145 \begin_layout Subsection
9146 Commands not supported by \SpecialChar LyX
9147
9148 \end_layout
9149
9150 \begin_layout Standard
9151 Some commands are not yet supported by the 
9152 \family sans
9153 paper (A&A)
9154 \family default
9155  layout for \SpecialChar LyX
9156 .
9157  Some have already been mentioned.
9158  For the sake of completeness, they are listed all together here:
9159 \end_layout
9160
9161 \begin_layout Itemize
9162
9163 \family typewriter
9164
9165 \backslash
9166 and
9167 \end_layout
9168
9169 \begin_layout Itemize
9170
9171 \change_deleted -712698321 1501151229
9172
9173 \family typewriter
9174
9175 \backslash
9176 email
9177 \change_unchanged
9178
9179 \end_layout
9180
9181 \begin_layout Itemize
9182
9183 \change_deleted -712698321 1501151308
9184
9185 \family typewriter
9186
9187 \backslash
9188 appendix
9189 \change_unchanged
9190
9191 \end_layout
9192
9193 \begin_layout Itemize
9194
9195 \family typewriter
9196
9197 \backslash
9198 authorrunning
9199 \end_layout
9200
9201 \begin_layout Itemize
9202
9203 \change_deleted -712698321 1501151231
9204
9205 \family typewriter
9206
9207 \backslash
9208 inst{}
9209 \end_layout
9210
9211 \begin_layout Itemize
9212
9213 \change_deleted -712698321 1501151231
9214
9215 \family typewriter
9216
9217 \backslash
9218 keywords{}
9219 \change_unchanged
9220
9221 \end_layout
9222
9223 \begin_layout Itemize
9224
9225 \family typewriter
9226
9227 \backslash
9228 object{}
9229 \end_layout
9230
9231 \begin_layout Itemize
9232
9233 \family typewriter
9234
9235 \backslash
9236 titlerunning{}
9237 \end_layout
9238
9239 \begin_layout Standard
9240 If you want to use any of these commands, you have to enter them yourself.
9241  
9242 \series bold
9243 Do not forget to mark them as \SpecialChar LaTeX
9244  code!
9245 \end_layout
9246
9247 \begin_layout Subsection
9248 Figure and Table Floats
9249 \end_layout
9250
9251 \begin_layout Standard
9252 \SpecialChar LyX
9253  provides support for the necessary float environments 
9254 \family sans
9255 figure, figure*, table
9256 \family default
9257  and 
9258 \family sans
9259 table*
9260 \family default
9261 , therefore we won't tell much about it here.
9262  Refer to the 
9263 \emph on
9264 User's
9265 \begin_inset space ~
9266 \end_inset
9267
9268 Guide
9269 \emph default
9270 .
9271  Just remember that tables should be left-aligned.
9272  For that, select the table and change the alignment in 
9273 \family sans
9274 Edit\SpecialChar menuseparator
9275 Paragraph
9276 \begin_inset space ~
9277 \end_inset
9278
9279 Settings.
9280 \end_layout
9281
9282 \begin_layout Standard
9283 There is only one special thing: the figures with caption besides the figure.
9284  To create such a figure, you have to do the following:
9285 \end_layout
9286
9287 \begin_layout Enumerate
9288 Create a wide figure float: 
9289 \family sans
9290 Insert\SpecialChar menuseparator
9291 Float\SpecialChar menuseparator
9292 Figure
9293 \family default
9294 , then right click in the figure and select 
9295 \family sans
9296 Span
9297 \begin_inset space ~
9298 \end_inset
9299
9300 columns
9301 \family default
9302 .
9303 \end_layout
9304
9305 \begin_layout Enumerate
9306 Enter your caption text.
9307 \end_layout
9308
9309 \begin_layout Enumerate
9310 Press 
9311 \family sans
9312 Return
9313 \family default
9314  to move the cursor above the caption.
9315 \end_layout
9316
9317 \begin_layout Enumerate
9318 Insert your figure
9319 \end_layout
9320
9321 \begin_layout Enumerate
9322 Position the cursor behind the figure and insert a horizontal fill: 
9323 \family sans
9324 Insert\SpecialChar menuseparator
9325 Special
9326 \begin_inset space ~
9327 \end_inset
9328
9329 Character\SpecialChar menuseparator
9330 Horizontal
9331 \begin_inset space ~
9332 \end_inset
9333
9334 Fill
9335 \family default
9336 .
9337 \end_layout
9338
9339 \begin_layout Enumerate
9340 Switch to \SpecialChar LaTeX
9341  mode: 
9342 \family sans
9343 M-c
9344 \begin_inset space ~
9345 \end_inset
9346
9347 t
9348 \family default
9349 .
9350 \end_layout
9351
9352 \begin_layout Enumerate
9353 Enter 
9354 \family typewriter
9355
9356 \backslash
9357 parbox[b]{55mm}{
9358 \family default
9359 .
9360  
9361 \series bold
9362 Do not close the brace!
9363 \end_layout
9364
9365 \begin_layout Enumerate
9366 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9367  mode and insert
9368  the closing brace: 
9369 \family sans
9370 M-c
9371 \begin_inset space ~
9372 \end_inset
9373
9374 t
9375 \family default
9376  
9377 \family typewriter
9378 }
9379 \family default
9380 .
9381 \end_layout
9382
9383 \begin_layout Standard
9384 Also, refer to the figures in the example paper.
9385 \end_layout
9386
9387 \begin_layout Subsection
9388 Referee layout
9389 \end_layout
9390
9391 \begin_layout Standard
9392 For submission, the paper has to be formated in a special double-spacing
9393  layout.
9394  For this purpose, you have to give the option 
9395 \family typewriter
9396 referee
9397 \family default
9398  to the documentclass.
9399  This must be done using the 
9400 \change_deleted -712698321 1501151486
9401 extra
9402 \change_inserted -712698321 1501151487
9403 custom
9404 \change_unchanged
9405  class options field in the 
9406 \family sans
9407 Document\SpecialChar menuseparator
9408 Settings
9409 \family default
9410  dialog.
9411  Just enter the string 
9412 \family typewriter
9413 referee
9414 \family default
9415  there.
9416 \end_layout
9417
9418 \begin_layout Subsection
9419 The example paper
9420 \end_layout
9421
9422 \begin_layout Standard
9423 The 
9424 \family sans
9425 Examples
9426 \family default
9427  directory contains an example paper written with \SpecialChar LyX
9428 .
9429  It is the example paper from the original macro package, translated to
9430  \SpecialChar LyX
9431 .
9432  Use it for inspiration, and compare the original \SpecialChar LaTeX
9433  code with \SpecialChar LyX
9434  way of writing.
9435 \end_layout
9436
9437 \begin_layout Section
9438 AAS\SpecialChar TeX
9439
9440 \end_layout
9441
9442 \begin_layout Standard
9443 by 
9444 \noun on
9445 Mike Ressler
9446 \end_layout
9447
9448 \begin_layout Subsection
9449 Introduction
9450 \end_layout
9451
9452 \begin_layout Standard
9453 AAS\SpecialChar TeX
9454  is a set of macros produced by the American Astronomical Society to
9455  facilitate electronic manuscript submission to the three journals they
9456  publish: the Astrophysical Journal (including the Letters and Supplement),
9457  the Astronomical Journal, and the Publications of the Astronomical Society
9458  of the Pacific.
9459  \SpecialChar LyX
9460  has proven to be an excellent tool for generating these documents, especially
9461  given its equation, citation, and figure handling capabilities.
9462  \SpecialChar LyX
9463  requires version 5.0 (or higher) of these macros; preferably 
9464 \change_deleted -712698321 1501152764
9465 5.2
9466 \change_inserted -712698321 1501152766
9467 6.0
9468 \change_unchanged
9469 , which is the version described here, or higher.
9470  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9471 2.09 and are fundamentally
9472  incompatible with \SpecialChar LyX
9473 .
9474  The AAS\SpecialChar TeX
9475  package may be downloaded from the AAS\SpecialChar TeX
9476  Web site
9477 \end_layout
9478
9479 \begin_layout Standard
9480 \begin_inset VSpace medskip
9481 \end_inset
9482
9483
9484 \end_layout
9485
9486 \begin_layout Standard
9487 \align center
9488 \begin_inset Flex URL
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492
9493 https://aas.org/aastex/aastex-downloads
9494 \end_layout
9495
9496 \end_inset
9497
9498
9499 \end_layout
9500
9501 \begin_layout Standard
9502 \begin_inset VSpace medskip
9503 \end_inset
9504
9505
9506 \end_layout
9507
9508 \begin_layout Standard
9509 A complete user guide is contained in that package and you should familiarize
9510  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9511 .
9512  \SpecialChar LyX
9513  will not reduce the need to figure out all the AAS\SpecialChar TeX
9514  commands, it will only
9515  reduce the drudgery of typing everything in.
9516  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9517  document conforms
9518  completely to the requirements of the journal to which you are submitting
9519  your paper.
9520 \end_layout
9521
9522 \begin_layout Subsection
9523 Starting a New Paper
9524 \end_layout
9525
9526 \begin_layout Standard
9527 I strongly suggest that you start with the AAS\SpecialChar TeX
9528  template file.
9529  Click on 
9530 \family sans
9531 File\SpecialChar menuseparator
9532 New from
9533 \family default
9534  
9535 \family sans
9536 Template
9537 \family default
9538 , enter the new file name, then choose the 
9539 \family typewriter
9540 aastex
9541 \change_inserted -712698321 1501152130
9542 6
9543 \change_unchanged
9544 .lyx
9545 \family default
9546  template.
9547  This will show the most common fields found in a manuscript.
9548  Simply overwrite the existing text (including the brackets, 
9549 \family typewriter
9550 <>
9551 \family default
9552 ) with the correct information.
9553  Many of the AAS\SpecialChar TeX
9554  commands and environments can be implemented directly in
9555  \SpecialChar LyX
9556 , but some cannot
9557 \change_deleted -712698321 1501152213
9558 : most noticeably 
9559 \family typewriter
9560
9561 \backslash
9562 altaffilmark
9563 \family default
9564  and 
9565 \family typewriter
9566
9567 \backslash
9568 altaffiltext
9569 \family default
9570 , which should stick out like a sore thumb if you actually just opened the
9571  template file
9572 \change_unchanged
9573 .
9574  For commands such as these, the \SpecialChar LaTeX
9575  code must be entered directly and marked
9576  as such.
9577  Such commands are referred to as \SpecialChar TeX
9578  code, or Evil Red Text.
9579  I tried to minimize the amount of \SpecialChar TeX
9580  code needed in an AAS\SpecialChar TeX
9581  document
9582 \change_deleted -712698321 1501152220
9583 , but there is still a bit more required than any of us would like
9584 \change_unchanged
9585 .
9586 \end_layout
9587
9588 \begin_layout Subsection
9589 Finishing Your Paper
9590 \end_layout
9591
9592 \begin_layout Standard
9593 When the paper is finished to your satisfaction and previews/prints correctly,
9594  there are a few 
9595 \begin_inset Quotes eld
9596 \end_inset
9597
9598 postprocessing
9599 \begin_inset Quotes erd
9600 \end_inset
9601
9602  actions which need to be done before you submit it to the journals.
9603  
9604 \end_layout
9605
9606 \begin_layout Enumerate
9607 Export your paper as a \SpecialChar LaTeX
9608  file (
9609 \family sans
9610 File\SpecialChar menuseparator
9611 Export\SpecialChar menuseparator
9612 \SpecialChar LaTeX
9613
9614 \family default
9615 ).
9616  
9617 \end_layout
9618
9619 \begin_layout Enumerate
9620 Edit the resulting 
9621 \family typewriter
9622 .tex
9623 \family default
9624  file with your favorite text editor
9625 \end_layout
9626
9627 \begin_deeper
9628 \begin_layout Enumerate
9629 remove the comment lines before the 
9630 \family typewriter
9631
9632 \backslash
9633 documentclass
9634 \family default
9635  command
9636 \end_layout
9637
9638 \begin_layout Enumerate
9639 remove the 
9640 \family typewriter
9641
9642 \backslash
9643 usepackage...{fontenc}
9644 \family default
9645  line if it appears (usually just after 
9646 \family typewriter
9647
9648 \backslash
9649 documentclass
9650 \family default
9651 }; also remove the 
9652 \family typewriter
9653
9654 \backslash
9655 secnumdepth
9656 \family default
9657  line if it appears.
9658 \end_layout
9659
9660 \begin_layout Enumerate
9661 remove everything between (and including) the 
9662 \family typewriter
9663
9664 \backslash
9665 makeatletter
9666 \family default
9667  and 
9668 \family typewriter
9669
9670 \backslash
9671 makeatother
9672 \family default
9673  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9674  preamble
9675  (which should appear immediately after the 
9676 \begin_inset Quotes eld
9677 \end_inset
9678
9679 User specified \SpecialChar LaTeX
9680  commands
9681 \begin_inset Quotes erd
9682 \end_inset
9683
9684  comment in the 
9685 \family typewriter
9686 .tex
9687 \family default
9688  file).
9689 \end_layout
9690
9691 \end_deeper
9692 \begin_layout Enumerate
9693 Run the resulting file through \SpecialChar LaTeX
9694  to make sure it still processes correctly.
9695 \end_layout
9696
9697 \begin_layout Enumerate
9698 Reread the journal requirements to make sure your filenames and formats
9699  are correct.
9700 \end_layout
9701
9702 \begin_layout Enumerate
9703 Submit it.
9704 \end_layout
9705
9706 \begin_layout Subsection
9707 Comments On Specific Commands
9708 \end_layout
9709
9710 \begin_layout Standard
9711 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9712  commands: the
9713  AAS\SpecialChar TeX
9714  User Guide (
9715 \family typewriter
9716 aasguide.tex
9717 \family default
9718 ) gives a good description of each.
9719  Thus it's probably easiest for me to go down the list as found in the guide
9720  and offer comments where necessary.
9721  So let's begin \SpecialChar ldots
9722
9723 \end_layout
9724
9725 \begin_layout Subsubsection
9726 Things that work as expected
9727 \end_layout
9728
9729 \begin_layout Standard
9730 Because they work as you might expect, I simply list them and the section
9731  they are found in: 
9732 \family typewriter
9733
9734 \backslash
9735 documentclass
9736 \family default
9737  (2.1.1), 
9738 \family typewriter
9739
9740 \backslash
9741 begin{document}
9742 \family default
9743  (2.2), 
9744 \family typewriter
9745
9746 \backslash
9747 title
9748 \family default
9749  (2.3), 
9750 \family typewriter
9751
9752 \backslash
9753 author
9754 \family default
9755  (2.3), 
9756 \family typewriter
9757
9758 \backslash
9759 affil
9760 \family default
9761  (2.3), 
9762 \family typewriter
9763
9764 \backslash
9765 abstract
9766 \family default
9767  (2.4), 
9768 \family typewriter
9769
9770 \backslash
9771 keywords
9772 \family default
9773  (2.5), 
9774 \family typewriter
9775
9776 \backslash
9777 section
9778 \family default
9779  (2.7), 
9780 \family typewriter
9781
9782 \backslash
9783 subsection
9784 \family default
9785  (2.7), 
9786 \family typewriter
9787
9788 \backslash
9789 subsubsection
9790 \family default
9791  (2.7), 
9792 \family typewriter
9793
9794 \backslash
9795 paragraph
9796 \family default
9797  (2.7), 
9798 \family typewriter
9799
9800 \backslash
9801 facility
9802 \family default
9803  (2.10), 
9804 \family typewriter
9805
9806 \backslash
9807 begin{displaymath}
9808 \family default
9809  (2.12), 
9810 \family typewriter
9811
9812 \backslash
9813 begin{equation}
9814 \family default
9815  (2.12), 
9816 \family typewriter
9817
9818 \backslash
9819 begin{eqnarray}
9820 \family default
9821  (2.12), 
9822 \family typewriter
9823
9824 \backslash
9825 begin{mathletters}
9826 \family default
9827  (2.12), 
9828 \family typewriter
9829
9830 \backslash
9831 begin{thebibliography}
9832 \family default
9833  (2.13.1), 
9834 \family typewriter
9835
9836 \backslash
9837 bibitem
9838 \family default
9839  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9840  graphicx figure commands (2.14.1), 
9841 \family typewriter
9842
9843 \backslash
9844 begin{table}
9845 \family default
9846  (2.15.4), 
9847 \family typewriter
9848
9849 \backslash
9850 begin{tabular}
9851 \family default
9852  (2.15.4), 
9853 \family typewriter
9854
9855 \backslash
9856 caption
9857 \family default
9858  (2.15.4), 
9859 \family typewriter
9860
9861 \backslash
9862 label
9863 \family default
9864  (2.15.4, amongst other places), 
9865 \family typewriter
9866
9867 \backslash
9868 tablerefs
9869 \family default
9870  (2.15.5), 
9871 \family typewriter
9872
9873 \backslash
9874 tablecomments
9875 \family default
9876  (2.15.5), 
9877 \family typewriter
9878
9879 \backslash
9880 url
9881 \family default
9882  (2.17.4), 
9883 \family typewriter
9884
9885 \backslash
9886 end{document}
9887 \family default
9888  (2.18).
9889 \end_layout
9890
9891 \begin_layout Standard
9892 The following style options also work correctly: 
9893 \family typewriter
9894 longabstract
9895 \family default
9896  (2.4), 
9897 \family typewriter
9898 preprint
9899 \family default
9900  (3.2.1), 
9901 \family typewriter
9902 preprint2
9903 \family default
9904  (3.2.2), 
9905 \family typewriter
9906 eqsecnum
9907 \family default
9908  (3.3), 
9909 \family typewriter
9910 flushrt
9911 \family default
9912  (3.4).
9913  Simply put them in the 
9914 \family sans
9915 Options
9916 \family default
9917  box in 
9918 \family sans
9919 Layout\SpecialChar menuseparator
9920 Document
9921 \family default
9922 .
9923 \end_layout
9924
9925 \begin_layout Subsubsection
9926 Things that work, but require more comment
9927 \end_layout
9928
9929 \begin_layout Standard
9930 The following items work, but require a little more discussion:
9931 \end_layout
9932
9933 \begin_layout Itemize
9934 These items are reserved for use by the journal editors, but you can put
9935  them into the \SpecialChar LaTeX
9936  preamble if you feel compelled to do so: 
9937 \family typewriter
9938
9939 \backslash
9940 received
9941 \family default
9942
9943 \family typewriter
9944
9945 \backslash
9946 revised
9947 \family default
9948
9949 \family typewriter
9950
9951 \backslash
9952 accepted
9953 \family default
9954
9955 \family typewriter
9956
9957 \backslash
9958 ccc
9959 \family default
9960
9961 \family typewriter
9962
9963 \backslash
9964 cpright
9965 \family default
9966  (all from 2.1.3)
9967 \end_layout
9968
9969 \begin_layout Itemize
9970 These items may be placed in the \SpecialChar LaTeX
9971  preamble, and are included as blanks in
9972  the template file: 
9973 \family typewriter
9974
9975 \backslash
9976 slugcomment
9977 \family default
9978  (2.1.4), 
9979 \family typewriter
9980
9981 \backslash
9982 shorttitle
9983 \family default
9984  (2.1.5), 
9985 \family typewriter
9986
9987 \backslash
9988 shortauthors
9989 \family default
9990  (2.1.5)
9991 \end_layout
9992
9993 \begin_layout Itemize
9994
9995 \family typewriter
9996
9997 \backslash
9998 email
9999 \family default
10000  (2.3) – can only be used 
10001 \begin_inset Quotes eld
10002 \end_inset
10003
10004 standalone
10005 \begin_inset Quotes erd
10006 \end_inset
10007
10008 , not in the middle of a paragraph.
10009  Use \SpecialChar TeX
10010  code if you need to embed it.
10011 \end_layout
10012
10013 \begin_layout Itemize
10014
10015 \family typewriter
10016
10017 \backslash
10018 and
10019 \family default
10020  (2.3) – will have extra {} after it.
10021  This should not cause an error.
10022 \end_layout
10023
10024 \begin_layout Itemize
10025
10026 \family typewriter
10027
10028 \backslash
10029 notetoeditor
10030 \family default
10031  (2.6) – can only be used 
10032 \begin_inset Quotes eld
10033 \end_inset
10034
10035 standalone
10036 \begin_inset Quotes erd
10037 \end_inset
10038
10039 , not in the middle of a paragraph.
10040  Use \SpecialChar TeX
10041  code if you need to embed it.
10042 \end_layout
10043
10044 \begin_layout Itemize
10045
10046 \family typewriter
10047
10048 \backslash
10049 placetable
10050 \family default
10051  (2.8) – can't insert a cross-reference tag, you must type the tag name by
10052  hand
10053 \end_layout
10054
10055 \begin_layout Itemize
10056
10057 \family typewriter
10058
10059 \backslash
10060 placefigure
10061 \family default
10062  (2.8) – same as for 
10063 \family typewriter
10064
10065 \backslash
10066 placetable
10067 \end_layout
10068
10069 \begin_layout Itemize
10070
10071 \family typewriter
10072
10073 \backslash
10074 acknowledgements
10075 \family default
10076  (2.9) – will have extra {} after it.
10077  This should not cause an error.
10078 \end_layout
10079
10080 \begin_layout Itemize
10081
10082 \family typewriter
10083
10084 \backslash
10085 appendix
10086 \family default
10087  (2.11) – will have extra {} after it.
10088  This should not cause an error.
10089 \end_layout
10090
10091 \begin_layout Itemize
10092
10093 \family typewriter
10094
10095 \backslash
10096 figcaption
10097 \family default
10098  (2.14.2) – you can insert an optional filename argument by placing the cursor
10099  at the beginning of the text and selecting 
10100 \family sans
10101 Insert\SpecialChar menuseparator
10102 Short Title
10103 \family default
10104 .
10105  
10106 \begin_inset Quotes eld
10107 \end_inset
10108
10109 Short Title
10110 \begin_inset Quotes erd
10111 \end_inset
10112
10113  inserts an optional argument of the type needed by 
10114 \family typewriter
10115
10116 \backslash
10117 figcaption
10118 \family default
10119 .
10120  Hopefully it will be renamed someday.
10121 \end_layout
10122
10123 \begin_layout Itemize
10124
10125 \family typewriter
10126
10127 \backslash
10128 objectname
10129 \family default
10130  (2.17.1) – same as 
10131 \family typewriter
10132
10133 \backslash
10134 figcaption
10135 \family default
10136  for the catalog ID optional parameter
10137 \end_layout
10138
10139 \begin_layout Itemize
10140
10141 \family typewriter
10142
10143 \backslash
10144 dataset
10145 \family default
10146  (2.17.1) – same as 
10147 \family typewriter
10148
10149 \backslash
10150 figcaption
10151 \family default
10152  for the catalog ID optional parameter
10153 \end_layout
10154
10155 \begin_layout Subsubsection
10156 Things not implemented, use \SpecialChar TeX
10157  code
10158 \end_layout
10159
10160 \begin_layout Standard
10161
10162 \change_deleted -712698321 1501152401
10163
10164 \family typewriter
10165
10166 \backslash
10167 altaffilmark
10168 \family default
10169  (2.3), 
10170 \family typewriter
10171
10172 \backslash
10173 altaffiltext
10174 \family default
10175  (2.3), 
10176 \change_unchanged
10177
10178 \family typewriter
10179
10180 \backslash
10181 eqnum
10182 \family default
10183  (2.12), 
10184 \family typewriter
10185
10186 \backslash
10187 setcounter{equation}
10188 \family default
10189  (2.12), Journal name abbreviations (2.13.4), 
10190 \family typewriter
10191
10192 \backslash
10193 figurenum
10194 \family default
10195  (2.14.1), 
10196 \family typewriter
10197
10198 \backslash
10199 epsscale
10200 \family default
10201  (2.14.1), 
10202 \family typewriter
10203
10204 \backslash
10205 plotone
10206 \family default
10207  (2.14.1), 
10208 \family typewriter
10209
10210 \backslash
10211 plottwo
10212 \family default
10213  (2.14.1), 
10214 \family typewriter
10215
10216 \backslash
10217 tablenum
10218 \family default
10219  (2.15.4), 
10220 \family typewriter
10221
10222 \backslash
10223 tableline
10224 \family default
10225  (2.15.4, insert it as the first element in the lefthand cell after where
10226  you want it.
10227  Don't use any of \SpecialChar LyX
10228 's rules in the table), 
10229 \family typewriter
10230
10231 \backslash
10232 tablenotemark
10233 \family default
10234  (2.15.5), 
10235 \family typewriter
10236
10237 \backslash
10238 tablenotetext
10239 \family default
10240  (2.15.5), much of Misc (2.17, except 
10241 \family typewriter
10242
10243 \backslash
10244 objectname
10245 \family default
10246
10247 \family typewriter
10248
10249 \backslash
10250 dataset
10251 \family default
10252
10253 \family typewriter
10254
10255 \backslash
10256 url
10257 \family default
10258 , and 
10259 \family typewriter
10260
10261 \backslash
10262 email
10263 \family default
10264 ; see above), 
10265 \family typewriter
10266
10267 \backslash
10268 singlespace
10269 \family default
10270  (3.1), 
10271 \family typewriter
10272
10273 \backslash
10274 doublespace
10275 \family default
10276  (3.1), 
10277 \family typewriter
10278
10279 \backslash
10280 onecolumn
10281 \family default
10282  (3.2), 
10283 \family typewriter
10284
10285 \backslash
10286 twocolumn
10287 \family default
10288  (3.2)
10289 \end_layout
10290
10291 \begin_layout Subsubsection
10292 Things that cannot be implemented
10293 \end_layout
10294
10295 \begin_layout Standard
10296 \SpecialChar ldots
10297  at least in any meaningful sort of way, so I suggest ignoring them.
10298  They are the references environment (2.13.3), and the deluxetable environment
10299  (2.15).
10300  If you really, really need to use deluxetable, I suggest editing it in
10301  a separate file with a text editor, then using 
10302 \family sans
10303 Insert\SpecialChar menuseparator
10304 Child
10305 \begin_inset space ~
10306 \end_inset
10307
10308 Document
10309 \family default
10310  to include it in your \SpecialChar LyX
10311  document.
10312  See the 
10313 \family typewriter
10314 aas_sample.lyx
10315 \family default
10316  file to see an example of this.
10317 \end_layout
10318
10319 \begin_layout Subsection
10320 FAQs, Tips, Tricks, and Other Ruminations
10321 \end_layout
10322
10323 \begin_layout Subsubsection
10324 Getting \SpecialChar LyX
10325  and AAS\SpecialChar TeX
10326  to cooperate
10327 \end_layout
10328
10329 \begin_layout Standard
10330 It can be a bit tricky to get \SpecialChar LyX
10331  to recognize a new layout and document class.
10332  When all else fails, do this:
10333 \end_layout
10334
10335 \begin_layout Enumerate
10336 Make certain that \SpecialChar LaTeX
10337  can find AAS\SpecialChar TeX
10338 .
10339  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
10340  distribution into a
10341  directory completely unrelated to \SpecialChar LaTeX
10342  or AAS\SpecialChar TeX
10343  and run \SpecialChar LaTeX
10344  on 
10345 \family typewriter
10346 sample.tex
10347 \family default
10348 .
10349 \end_layout
10350
10351 \begin_layout Enumerate
10352 Make certain that 
10353 \family typewriter
10354 aastex.layout
10355 \family default
10356  appears in \SpecialChar LyX
10357 's 
10358 \family typewriter
10359 layouts
10360 \family default
10361  folder
10362 \end_layout
10363
10364 \begin_layout Enumerate
10365 Rerun 
10366 \family sans
10367 Tools\SpecialChar menuseparator
10368 Reconfigure
10369 \family default
10370  in \SpecialChar LyX
10371 , then restart \SpecialChar LyX
10372 .
10373 \end_layout
10374
10375 \begin_layout Enumerate
10376 Open a regular new file, not from a template.
10377  Does AAS\SpecialChar TeX
10378  appear in the class list in 
10379 \family sans
10380 Document\SpecialChar menuseparator
10381 Settings
10382 \family default
10383 ?
10384 \end_layout
10385
10386 \begin_layout Standard
10387 If you get a warning from an existing AAS\SpecialChar TeX
10388  document about not being able
10389  to find the AAS\SpecialChar TeX
10390  layout or a message about 
10391 \begin_inset Quotes eld
10392 \end_inset
10393
10394 You should not mix title layouts with normal ones
10395 \begin_inset Quotes erd
10396 \end_inset
10397
10398 , things haven't been installed correctly.
10399 \end_layout
10400
10401 \begin_layout Subsubsection
10402 \SpecialChar LaTeX
10403  error processing a table 
10404 \end_layout
10405
10406 \begin_layout Standard
10407 \SpecialChar LyX
10408 , by default, attempts to center the table caption/title.
10409  This seems to produce a bad interaction in AAS\SpecialChar TeX
10410  so you should click somewhere
10411  in the caption/title, then select 
10412 \family sans
10413 Edit\SpecialChar menuseparator
10414 Paragraph
10415 \begin_inset space ~
10416 \end_inset
10417
10418 Settings
10419 \family default
10420 , then set the 
10421 \family sans
10422 Alignment
10423 \family default
10424  to 
10425 \family sans
10426 Block
10427 \family default
10428 .
10429  This took care of it for me.
10430 \end_layout
10431
10432 \begin_layout Subsubsection
10433 References
10434 \end_layout
10435
10436 \begin_layout Standard
10437 A couple of things: 1) I have noticed some funny spacing in the reference
10438  entries in the text.
10439  When you enter the bibliography item data, make sure their is 
10440 \emph on
10441 no
10442 \emph default
10443  space between the last author and the parenthesis setting off the year;
10444  
10445 \emph on
10446 e.
10447 \begin_inset space \thinspace{}
10448 \end_inset
10449
10450 g.
10451 \begin_inset space \space{}
10452 \end_inset
10453
10454
10455 \emph default
10456 type 
10457 \family typewriter
10458 Ressler(1992)
10459 \family default
10460 , not 
10461 \family typewriter
10462 Ressler (1992)
10463 \family default
10464 .
10465  2) Entering the references at all is not obvious.
10466  The easiest thing is to start typing your first reference at the end of
10467  the document, then mark it as type 
10468 \family sans
10469 References
10470 \family default
10471 .
10472  That will put a small gray box in front of what you just typed.
10473  Click on the box to fill in the rest of the information.
10474  For new references, go to the end of an existing reference and press return.
10475  That will create a new line with its own box, etc.
10476 \end_layout
10477
10478 \begin_layout Subsubsection
10479 Including EPS files
10480 \end_layout
10481
10482 \begin_layout Standard
10483 Even though AAS\SpecialChar TeX
10484  provides its own figure commands (
10485 \family typewriter
10486
10487 \backslash
10488 plotone
10489 \family default
10490 , for example), I much prefer \SpecialChar LaTeX
10491 's standard figure commands (with the default
10492  graphicx).
10493  You can insert the 
10494 \family typewriter
10495
10496 \backslash
10497 plotone
10498 \family default
10499 , etc.
10500 \begin_inset space ~
10501 \end_inset
10502
10503 commands as \SpecialChar TeX
10504  code into a Figure Float box if you desire, but I never have
10505  much luck getting the layout right.
10506  With the standard graphics, \SpecialChar LyX
10507  will insert a 
10508 \family typewriter
10509
10510 \backslash
10511 usepackage{graphicx}
10512 \family default
10513  command into the \SpecialChar LaTeX
10514  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10515  way,
10516  interspersing the figures in the text.
10517  I believe ApJ accepts figures exactly this way now; AJ might still use
10518  the 
10519 \begin_inset Quotes eld
10520 \end_inset
10521
10522 stack everything at the end
10523 \begin_inset Quotes erd
10524 \end_inset
10525
10526  technique.
10527 \end_layout
10528
10529 \begin_layout Subsubsection
10530 Things I could have done, but didn't
10531 \end_layout
10532
10533 \begin_layout Standard
10534 There are a few 
10535 \begin_inset Quotes eld
10536 \end_inset
10537
10538 pretty
10539 \begin_inset Quotes erd
10540 \end_inset
10541
10542  things I could have implemented, but chose not to.
10543  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10544  window,
10545  even though it is double-spaced in the paper manuscript.
10546  Also, I chose not to make separate layouts for the preprint and preprint2
10547  styles.
10548  Since I assume you will spend most of your time in the plain manuscript
10549  mode anyway, I decided not to chew up more disk space with this.
10550  
10551 \end_layout
10552
10553 \begin_layout Subsection
10554 Final Caveat
10555 \end_layout
10556
10557 \begin_layout Standard
10558 Your mileage may vary.
10559  I've now had papers published by both ApJ and AJ that have had 98% of the
10560  effort done in \SpecialChar LyX
10561 ; the last 2% was the \SpecialChar LaTeX
10562  post-processing and a few cleanups.
10563  I have had no trouble with the submission process, and I'm sure the journals
10564  were never aware that there might be a difference.
10565  So, go forth and publish!
10566 \end_layout
10567
10568 \begin_layout Section
10569 AMS \SpecialChar LaTeX
10570
10571 \end_layout
10572
10573 \begin_layout Standard
10574 by 
10575 \noun on
10576 David Johnson
10577 \noun default
10578 ; updated by 
10579 \noun on
10580 Richard Heck
10581 \end_layout
10582
10583 \begin_layout Standard
10584 \begin_inset VSpace bigskip
10585 \end_inset
10586
10587
10588 \end_layout
10589
10590 \begin_layout Standard
10591 \noindent
10592 The AMS \SpecialChar LaTeX
10593  layouts are set up to conform to suggested styles for mathematical
10594  papers to be submitted to American Mathematical Society publications.
10595  The layouts are not tailored to a specific journal, but easily can be.
10596  You should refer to the AMS documentation for specific instructions for
10597  each journal (usually it will entail only changing a single line in the
10598  \SpecialChar TeX
10599  output).
10600  That documentation is available on the Web at 
10601 \begin_inset Flex URL
10602 status open
10603
10604 \begin_layout Plain Layout
10605
10606 http://www.ams.org
10607 \end_layout
10608
10609 \end_inset
10610
10611  or by ftp at 
10612 \begin_inset Flex URL
10613 status open
10614
10615 \begin_layout Plain Layout
10616
10617 ftp://ftp.ams.org/pub/tex/amslatex/
10618 \end_layout
10619
10620 \end_inset
10621
10622 .
10623  These layouts are appropriate, and useful, for any mathematical writing.
10624  
10625 \end_layout
10626
10627 \begin_layout Standard
10628 There are two basic AMS \SpecialChar LaTeX
10629  layouts: 
10630 \end_layout
10631
10632 \begin_layout Itemize
10633 amsart: The standard AMS article format.
10634 \end_layout
10635
10636 \begin_layout Itemize
10637 amsbook: the standard AMS book (really, monograph) format.
10638  
10639 \end_layout
10640
10641 \begin_layout Standard
10642 The layouts themselves contain only the minimum necessary to use the AMS
10643  classes.
10644  They do not, in particular, contain any of the `theorem' environments used
10645  for setting theorems, lemmas, and the like.
10646  These are contained, instead, in the 
10647 \begin_inset Flex Code
10648 status collapsed
10649
10650 \begin_layout Plain Layout
10651 Theorems (AMS)
10652 \end_layout
10653
10654 \end_inset
10655
10656  module, which is loaded by default when you select one of the AMS classes.
10657  (It can also be used with other classes and can be removed, if you would
10658  rather use something else.) Less commonly used environments are in the 
10659 \begin_inset Flex Code
10660 status collapsed
10661
10662 \begin_layout Plain Layout
10663 Theorems (AMS-Extended)
10664 \end_layout
10665
10666 \end_inset
10667
10668  module, which must be loaded manually.
10669 \end_layout
10670
10671 \begin_layout Standard
10672 By default, theorems and the like are numbered consecutively throughout
10673  the document, but this may be modified by loading the module 
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678 Theorems (Order by Section)
10679 \end_layout
10680
10681 \end_inset
10682
10683  or, if you are using 
10684 \begin_inset Flex Code
10685 status collapsed
10686
10687 \begin_layout Plain Layout
10688 book (AMS)
10689 \end_layout
10690
10691 \end_inset
10692
10693 , the module 
10694 \begin_inset Flex Code
10695 status collapsed
10696
10697 \begin_layout Plain Layout
10698 Theorems (Order by Chapter)
10699 \end_layout
10700
10701 \end_inset
10702
10703 .
10704  These will number the results as 
10705 \begin_inset Formula $n.m$
10706 \end_inset
10707
10708 , where the first number refers to the section (or chapter) and the second
10709  refers to the total number of results so far in that section (or chapter).
10710  Many environments are also available unnumbered.
10711  These are indicated by an asterisk at the end.
10712  If you happen to want 
10713 \emph on
10714 only
10715 \emph default
10716  unnumbered results, the module 
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 Theorems (Starred)
10722 \end_layout
10723
10724 \end_inset
10725
10726  provides that option.
10727 \end_layout
10728
10729 \begin_layout Standard
10730 Note that these modules do not 
10731 \emph on
10732 have
10733 \emph default
10734  to be used with the AMS classes.
10735  It is perfectly possible to use the 
10736 \begin_inset Flex Code
10737 status collapsed
10738
10739 \begin_layout Plain Layout
10740 Theorems (AMS)
10741 \end_layout
10742
10743 \end_inset
10744
10745  module, and the others mentioned, with other classes, such as 
10746 \begin_inset Flex Code
10747 status collapsed
10748
10749 \begin_layout Plain Layout
10750 article
10751 \end_layout
10752
10753 \end_inset
10754
10755
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 report
10761 \end_layout
10762
10763 \end_inset
10764
10765
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 book (KOMA-script)
10771 \end_layout
10772
10773 \end_inset
10774
10775 , and so forth.
10776 \end_layout
10777
10778 \begin_layout Subsection
10779 What these layouts provide
10780 \end_layout
10781
10782 \begin_layout Standard
10783 There is a long list of included environments provided by these layouts.
10784  In AMS-\SpecialChar LaTeX
10785 , there is, in fact, an opportunity to define an unlimited variety
10786  of `theorem' environments.
10787  However, the AMS recommends the environments that are available in \SpecialChar LyX
10788 .
10789  
10790 \end_layout
10791
10792 \begin_layout Standard
10793 The following environments—as well as the standard environments, such as
10794  
10795 \begin_inset Flex Noun
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 section
10800 \end_layout
10801
10802 \end_inset
10803
10804
10805 \begin_inset Flex Noun
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 bibliography
10810 \end_layout
10811
10812 \end_inset
10813
10814
10815 \begin_inset Flex Noun
10816 status collapsed
10817
10818 \begin_layout Plain Layout
10819 title
10820 \end_layout
10821
10822 \end_inset
10823
10824
10825 \begin_inset Flex Noun
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 author
10830 \end_layout
10831
10832 \end_inset
10833
10834 , and 
10835 \begin_inset Flex Noun
10836 status collapsed
10837
10838 \begin_layout Plain Layout
10839 date
10840 \end_layout
10841
10842 \end_inset
10843
10844 —are provided by 
10845 \begin_inset Flex Code
10846 status collapsed
10847
10848 \begin_layout Plain Layout
10849 article (AMS)
10850 \end_layout
10851
10852 \end_inset
10853
10854  and 
10855 \begin_inset Flex Code
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859 book (AMS)
10860 \end_layout
10861
10862 \end_inset
10863
10864 :
10865 \end_layout
10866
10867 \begin_layout Description
10868 Address This should be the author's permanent address.
10869 \end_layout
10870
10871 \begin_layout Description
10872 Current
10873 \begin_inset space ~
10874 \end_inset
10875
10876 Address This should be the author's temporary address at the time of submission,
10877  if different from the Address.
10878 \end_layout
10879
10880 \begin_layout Description
10881 Email Author's e-mail address
10882 \end_layout
10883
10884 \begin_layout Description
10885 URL Author's Web address, if desired.
10886 \end_layout
10887
10888 \begin_layout Description
10889 Keywords Key words or phrases used to identify specific topics discussed
10890  in the paper.
10891 \end_layout
10892
10893 \begin_layout Description
10894 Subjectclass These refer to the AMS Subject Classifications, published and
10895  described in 
10896 \emph on
10897 Mathematical Reviews
10898 \emph default
10899 .
10900  These are also available online at the AMS cites listed above.
10901 \end_layout
10902
10903 \begin_layout Description
10904 Thanks
10905 \end_layout
10906
10907 \begin_layout Description
10908 Dedicatory
10909 \end_layout
10910
10911 \begin_layout Description
10912 Translator
10913 \end_layout
10914
10915 \begin_layout Standard
10916 The following environments are provided by both the 
10917 \begin_inset Flex Code
10918 status collapsed
10919
10920 \begin_layout Plain Layout
10921 Theorems
10922 \end_layout
10923
10924 \end_inset
10925
10926  and 
10927 \begin_inset Flex Code
10928 status collapsed
10929
10930 \begin_layout Plain Layout
10931 Theorems (AMS)
10932 \end_layout
10933
10934 \end_inset
10935
10936  modules, in the latter case in both starred (unnumbered) and unstarred
10937  (numbered) versions.
10938  These same environments are provided only in the starred versions by the
10939  
10940 \begin_inset Flex Code
10941 status collapsed
10942
10943 \begin_layout Plain Layout
10944 Theorems (Starred)
10945 \end_layout
10946
10947 \end_inset
10948
10949  module:
10950 \end_layout
10951
10952 \begin_layout Theorem
10953 This is typically used for the statements of major results.
10954  
10955 \end_layout
10956
10957 \begin_layout Corollary*
10958 This is used for statements which follow fairly directly from previous statement
10959 s.
10960  Again, these can be major results.
10961  
10962 \end_layout
10963
10964 \begin_layout Lemma
10965 These are smaller results needed to prove other statements.
10966 \end_layout
10967
10968 \begin_layout Proposition
10969 These are less major results which (hopefully) add to the general theory
10970  being discussed.
10971 \end_layout
10972
10973 \begin_layout Conjecture
10974 These are statements provided without justification, which the author does
10975  not know how to prove, but which seem to be true (to the author, at least).
10976 \end_layout
10977
10978 \begin_layout Definition*
10979 Guess what this is for.
10980  The font is different for this environment than for the previous ones.
10981  
10982 \end_layout
10983
10984 \begin_layout Example*
10985 Used for examples illustrating proven results.
10986 \end_layout
10987
10988 \begin_layout Problem
10989 It's not really known what this is for.
10990  You should figure it out.
10991 \end_layout
10992
10993 \begin_layout Exercise*
10994 Write a description for this one.
10995 \end_layout
10996
10997 \begin_layout Remark
10998 This environment is also a type of theorem, usually a lesser sort of observation.
10999 \end_layout
11000
11001 \begin_layout Claim*
11002 Often used in the course of giving a proof of a larger result.
11003 \end_layout
11004
11005 \begin_layout Case
11006 Generally, these are used to break up long arguments, using specific instances
11007  of some condition.
11008  
11009 \end_layout
11010
11011 \begin_layout Case
11012 The numbering scheme for cases is on its own, not together with other numbered
11013  statements.
11014  
11015 \end_layout
11016
11017 \begin_layout Proof
11018 At the end of this environment, a QED symbol (usually a square, but it can
11019  vary with different styles) is placed.
11020  If you want to have other environments within this one—for example, Case
11021  environments—and have the QED symbol appear only after them, then the other
11022  environments need to be nested within the proof environment.
11023  See the section 
11024 \emph on
11025 Nesting Environments
11026 \emph default
11027  of the 
11028 \emph on
11029 User's Guide
11030 \emph default
11031  for information on nesting.
11032 \end_layout
11033
11034 \begin_layout Standard
11035 And these environments are provided by 
11036 \begin_inset Flex Code
11037 status collapsed
11038
11039 \begin_layout Plain Layout
11040 Theorems (AMS-Extended)
11041 \end_layout
11042
11043 \end_inset
11044
11045 :
11046 \end_layout
11047
11048 \begin_layout Criterion*
11049 A required condition.
11050 \end_layout
11051
11052 \begin_layout Algorithm*
11053 A general procedure to be used.
11054 \end_layout
11055
11056 \begin_layout Axiom*
11057 This is a property or statement taken as true within the system being discussed.
11058 \end_layout
11059
11060 \begin_layout Condition*
11061 Sometimes used to state a condition assumed within the present context of
11062  discussion.
11063 \end_layout
11064
11065 \begin_layout Note*
11066 Similar to a Remark.
11067 \end_layout
11068
11069 \begin_layout Notation*
11070 Used for the explanation of, yes, notation.
11071 \end_layout
11072
11073 \begin_layout Summary
11074 Do we really need to tell you? 
11075 \end_layout
11076
11077 \begin_layout Acknowledgement*
11078 Acknowledgement.
11079 \end_layout
11080
11081 \begin_layout Conclusion*
11082 Sometimes used at the end of a long train of argument.
11083 \end_layout
11084
11085 \begin_layout Fact
11086 Used in a way similar to Proposition, though perhaps lower on the scale.
11087 \end_layout
11088
11089 \begin_layout Standard
11090 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
11091  and AMS fonts
11092  packages.
11093  They need to be available on your system in order to use these environments.
11094 \end_layout
11095
11096 \begin_layout Section
11097 AGU journals (
11098 \family sans
11099 aguplus
11100 \family default
11101 )
11102 \end_layout
11103
11104 \begin_layout Standard
11105 by 
11106 \shape smallcaps
11107 Martin Vermeer
11108 \end_layout
11109
11110 \begin_layout Subsection
11111 Description
11112 \end_layout
11113
11114 \begin_layout Standard
11115 These are the layout files for some of the journals of the American Geophysical
11116  Society.
11117  It is assumed that you have both the AGU's own class files and AGUplus
11118  installed (everything to be found at
11119 \begin_inset Flex URL
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123
11124 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11125 \end_layout
11126
11127 \end_inset
11128
11129 ).
11130 \end_layout
11131
11132 \begin_layout Subsection
11133 New styles
11134 \end_layout
11135
11136 \begin_layout Standard
11137 Redefined are 
11138 \family sans
11139 Paragraph
11140 \family default
11141
11142 \family sans
11143 Paragraph*
11144 \family default
11145 .
11146  They are still called this in the \SpecialChar LyX
11147  GUI, though their \SpecialChar LaTeX
11148  equivalents in the
11149  AGU classes are 
11150 \family sans
11151 Subsubsubsection
11152 \family default
11153  and 
11154 \family sans
11155 Subsubsubsection*
11156 \family default
11157 .
11158 \end_layout
11159
11160 \begin_layout Standard
11161 Newly defined styles are 
11162 \family sans
11163 Left_Header
11164 \family default
11165
11166 \family sans
11167 Right_Header
11168 \family default
11169
11170 \family sans
11171 Received
11172 \family default
11173
11174 \family sans
11175 Revised
11176 \family default
11177
11178 \family sans
11179 Accepted
11180 \family default
11181
11182 \family sans
11183 CCC
11184 \family default
11185
11186 \family sans
11187 PaperId
11188 \family default
11189
11190 \family sans
11191 AuthorAddr
11192 \family default
11193
11194 \family sans
11195 SlugComment
11196 \family default
11197 .
11198  These are mostly manuscript attributes and defined in the AGU class documentati
11199 on.
11200 \end_layout
11201
11202 \begin_layout Standard
11203 I suspect this is still badly incomplete.
11204 \end_layout
11205
11206 \begin_layout Subsection
11207 New floats
11208 \end_layout
11209
11210 \begin_layout Standard
11211
11212 \family sans
11213 Planotable
11214 \family default
11215  and 
11216 \family sans
11217 Plate
11218 \family default
11219 .
11220  We also have a new 
11221 \family sans
11222 Table_Caption
11223 \family default
11224 .
11225 \end_layout
11226
11227 \begin_layout Subsection
11228 Supported journals
11229 \end_layout
11230
11231 \begin_layout Itemize
11232
11233 \emph on
11234 Journal of Geophysical Research
11235 \emph default
11236
11237 \family typewriter
11238 jgrga.layout
11239 \family default
11240  — Martin Vermeer
11241 \end_layout
11242
11243 \begin_layout Standard
11244 Add your own, it isn't so hard! Look at the 
11245 \family typewriter
11246 jgrga.layout
11247 \family default
11248  example and 
11249 \family typewriter
11250 aguplus.inc
11251 \family default
11252 .
11253 \end_layout
11254
11255 \begin_layout Subsection
11256 Bugs and things to remember
11257 \end_layout
11258
11259 \begin_layout Standard
11260 In order to use the new layouts, you must remember to do the following for
11261  a new document:
11262 \end_layout
11263
11264 \begin_layout Enumerate
11265
11266 \emph on
11267 Turn off babel
11268 \emph default
11269 .
11270  This can be done in the 
11271 \family sans
11272 Layout\SpecialChar menuseparator
11273 Document
11274 \family default
11275  or 
11276 \family sans
11277 Document\SpecialChar menuseparator
11278 Settings
11279 \family default
11280  menu item.
11281  (AGU articles are always in English, right? So 
11282 \emph on
11283 don't
11284 \emph default
11285  choose a language.)
11286 \end_layout
11287
11288 \begin_layout Enumerate
11289 Enter 
11290 \family typewriter
11291 jgrga
11292 \family default
11293  into the document's 
11294 \family sans
11295 Extra Options
11296 \family default
11297  field.
11298  (Yes, this is a bug.)
11299 \end_layout
11300
11301 \begin_layout Enumerate
11302 Make sure you use the 
11303 \family typewriter
11304 agu.bst
11305 \family default
11306  bibliography style, by entering 
11307 \family sans
11308 agu
11309 \family default
11310  into the second field of the Bib\SpecialChar TeX
11311  inset.
11312  None of the standard styles will do.
11313 \end_layout
11314
11315 \begin_layout Section
11316 Broadway
11317 \end_layout
11318
11319 \begin_layout Standard
11320 by 
11321 \shape smallcaps
11322 Garst Reese
11323 \end_layout
11324
11325 \begin_layout Subsection
11326 Introduction
11327 \end_layout
11328
11329 \begin_layout Standard
11330 Broadway is for writing plays.
11331  The format is more decorative than Hollywood, and much less standardized.
11332  This format should be suitable for workshops.
11333 \end_layout
11334
11335 \begin_layout Subsection
11336 Special problems
11337 \end_layout
11338
11339 \begin_layout Standard
11340 The same as in Hollywood.
11341 \end_layout
11342
11343 \begin_layout Subsection
11344 Special features
11345 \end_layout
11346
11347 \begin_layout Standard
11348 Insert the 
11349 \family sans
11350 Speaker
11351 \family default
11352  names as labels then cross-reference the label to insert the name.
11353  The cross-reference dialog will show the current cast of characters.
11354 \end_layout
11355
11356 \begin_layout Subsection
11357 Paper size and Margins
11358 \end_layout
11359
11360 \begin_layout Standard
11361 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11362 \end_layout
11363
11364 \begin_layout Subsection
11365 Environments
11366 \end_layout
11367
11368 \begin_layout Standard
11369 The following environments are available.
11370  You can use broadway.bind to get the bind keys shown at the right.
11371 \end_layout
11372
11373 \begin_layout Itemize
11374
11375 \family sans
11376 Standard
11377 \begin_inset Newline newline
11378 \end_inset
11379
11380
11381 \family default
11382 You should not have to use this, but it is here for anything that does not
11383  fit otherwise.
11384 \end_layout
11385
11386 \begin_layout Itemize
11387
11388 \family sans
11389 Narrative
11390 \begin_inset space \hfill{}
11391 \end_inset
11392
11393 M-z n
11394 \begin_inset Newline newline
11395 \end_inset
11396
11397
11398 \family default
11399 Used to describe stage setting and the action.
11400  First use of speaker names in all CAPs.
11401 \end_layout
11402
11403 \begin_layout Itemize
11404
11405 \family sans
11406 ACT
11407 \begin_inset space \hfill{}
11408 \end_inset
11409
11410 M-z a
11411 \begin_inset Newline newline
11412 \end_inset
11413
11414
11415 \family default
11416 Automatically numbered.
11417  On screen it will be arabic, but will print as Roman.
11418 \end_layout
11419
11420 \begin_layout Itemize
11421
11422 \family sans
11423 ACT*
11424 \begin_inset space \hfill{}
11425 \end_inset
11426
11427 M-z S at
11428 \begin_inset Newline newline
11429 \end_inset
11430
11431
11432 \family default
11433 Subtitle for 
11434 \family sans
11435 ACT.
11436
11437 \family default
11438  It is just centered text.
11439 \end_layout
11440
11441 \begin_layout Itemize
11442
11443 \family sans
11444 SCENE
11445 \begin_inset space \hfill{}
11446 \end_inset
11447
11448 M-z S-S
11449 \begin_inset Newline newline
11450 \end_inset
11451
11452
11453 \family default
11454 Not automatically numbered.
11455  You supply the number.
11456  This is because I couldn't figure out how.
11457 \end_layout
11458
11459 \begin_layout Itemize
11460
11461 \family sans
11462 AT_RISE:
11463 \begin_inset space \hfill{}
11464 \end_inset
11465
11466 M-z S-R
11467 \begin_inset Newline newline
11468 \end_inset
11469
11470
11471 \family default
11472 A special case of Narrative to describe the setting and action as the curtain
11473  rises.
11474 \end_layout
11475
11476 \begin_layout Itemize
11477
11478 \family sans
11479 Speaker
11480 \begin_inset space \hfill{}
11481 \end_inset
11482
11483 M-z s
11484 \begin_inset Newline newline
11485 \end_inset
11486
11487
11488 \family default
11489 The speaker's (actor's) title, centered in all CAPS.
11490 \end_layout
11491
11492 \begin_layout Itemize
11493
11494 \family sans
11495 Parenthetical
11496 \begin_inset space \hfill{}
11497 \end_inset
11498
11499 M-z p
11500 \begin_inset Newline newline
11501 \end_inset
11502
11503
11504 \family default
11505 Instructions to the speaker.
11506  The parentheses are automatically inserted.
11507  The ( will appear on screen, but both will be in the printed play.
11508  This environment is only used within 
11509 \family sans
11510 Dialogue
11511 \family default
11512 .
11513 \end_layout
11514
11515 \begin_layout Itemize
11516
11517 \family sans
11518 Dialogue
11519 \begin_inset space \hfill{}
11520 \end_inset
11521
11522 M-z d
11523 \begin_inset Newline newline
11524 \end_inset
11525
11526
11527 \family default
11528 What the Speaker says.
11529 \end_layout
11530
11531 \begin_layout Itemize
11532
11533 \family sans
11534 CURTAIN
11535 \begin_inset space \hfill{}
11536 \end_inset
11537
11538 M-z S-C
11539 \begin_inset Newline newline
11540 \end_inset
11541
11542
11543 \family default
11544 The curtain comes down.
11545 \end_layout
11546
11547 \begin_layout Itemize
11548
11549 \family sans
11550 Title
11551 \begin_inset space \hfill{}
11552 \end_inset
11553
11554 M-z S-T
11555 \end_layout
11556
11557 \begin_layout Itemize
11558
11559 \family sans
11560 Author
11561 \begin_inset space \hfill{}
11562 \end_inset
11563
11564 M-z S-A
11565 \end_layout
11566
11567 \begin_layout Itemize
11568
11569 \family sans
11570 Right_Address
11571 \begin_inset space \hfill{}
11572 \end_inset
11573
11574 M-z r
11575 \end_layout
11576
11577 \begin_layout Standard
11578 Hello there.
11579 \end_layout
11580
11581 \begin_layout Section
11582 Dinbrief
11583 \end_layout
11584
11585 \begin_layout Standard
11586 The document class 
11587 \family sans
11588 dinbrief
11589 \family default
11590  can be used to type letters according to German conventions.
11591  A template file is included in 
11592 \family typewriter
11593 .../lyx/share/templates
11594 \family default
11595  for you to use as a starting point.
11596 \end_layout
11597
11598 \begin_layout Section
11599 EGS journals (
11600 \family sans
11601 egs
11602 \family default
11603 )
11604 \end_layout
11605
11606 \begin_layout Standard
11607 by 
11608 \shape smallcaps
11609 Martin Vermeer
11610 \end_layout
11611
11612 \begin_layout Subsection
11613 Description
11614 \end_layout
11615
11616 \begin_layout Standard
11617 This is the layout file for the European Geophysical Society journals.
11618  The needed 
11619 \family typewriter
11620 egs.cls
11621 \family default
11622  can be downloaded from the web site of the EGS under 
11623 \begin_inset Flex URL
11624 status collapsed
11625
11626 \begin_layout Plain Layout
11627
11628 www.copernicus.org
11629 \end_layout
11630
11631 \end_inset
11632
11633 .
11634 \end_layout
11635
11636 \begin_layout Subsection
11637 New styles
11638 \end_layout
11639
11640 \begin_layout Standard
11641
11642 \family sans
11643 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11644  Accepted
11645 \family default
11646
11647 \family sans
11648 Offsets
11649 \family default
11650 .
11651  The current layout file is unfortunately very unmodular and would benefit
11652  from using the various 
11653 \family typewriter
11654 std*.inc
11655 \family default
11656  file inclusions.
11657 \end_layout
11658
11659 \begin_layout Section
11660 Elsevier Journals
11661 \end_layout
11662
11663 \begin_layout Standard
11664 See the \SpecialChar LyX
11665  template file 
11666 \family typewriter
11667 elsarticle.lyx
11668 \family default
11669 .
11670  It contains all infos you need.
11671 \end_layout
11672
11673 \begin_layout Section
11674 Foils [aka 
11675 \family sans
11676 Foil\SpecialChar TeX
11677
11678 \family default
11679 ]
11680 \begin_inset CommandInset label
11681 LatexCommand label
11682 name "sec:foiltex"
11683
11684 \end_inset
11685
11686
11687 \end_layout
11688
11689 \begin_layout Standard
11690 by 
11691 \noun on
11692 Allan Rae
11693 \end_layout
11694
11695 \begin_layout Subsection
11696 Introduction
11697 \end_layout
11698
11699 \begin_layout Standard
11700 This section describes how to use \SpecialChar LyX
11701  to make slides for overhead projectors.
11702  There are two document classes that can do this: the default slides class
11703  and the 
11704 \family sans
11705 Foil\SpecialChar TeX
11706
11707 \family default
11708  slides class.
11709  This section documents the latter.
11710 \end_layout
11711
11712 \begin_layout Standard
11713 I'm going to say this again, nice and clear, so that there's no misunderstanding
11714 :
11715 \end_layout
11716
11717 \begin_layout Standard
11718 \begin_inset VSpace bigskip
11719 \end_inset
11720
11721
11722 \end_layout
11723
11724 \begin_layout Standard
11725 \align center
11726
11727 \size large
11728 This section documents the class 
11729 \begin_inset Quotes eld
11730 \end_inset
11731
11732
11733 \family sans
11734 FoilTeX
11735 \family default
11736
11737 \begin_inset Quotes erd
11738 \end_inset
11739
11740  
11741 \emph on
11742 only.
11743 \end_layout
11744
11745 \begin_layout Standard
11746 \begin_inset VSpace bigskip
11747 \end_inset
11748
11749
11750 \end_layout
11751
11752 \begin_layout Standard
11753 If you're looking for the documentation for 
11754 \begin_inset Quotes eld
11755 \end_inset
11756
11757
11758 \family sans
11759 slides (default)
11760 \family default
11761
11762 \begin_inset Quotes erd
11763 \end_inset
11764
11765 , check out section
11766 \begin_inset space ~
11767 \end_inset
11768
11769
11770 \begin_inset CommandInset ref
11771 LatexCommand ref
11772 reference "sec:slitex"
11773
11774 \end_inset
11775
11776 .
11777  If your machine doesn't have the 
11778 \family sans
11779 foils
11780 \family default
11781  class 
11782 \family sans
11783 FoilTeX
11784 \family default
11785  installed, you'll probably have to use the default 
11786 \family sans
11787 slides
11788 \family default
11789  class, which isn't quite as good as 
11790 \family sans
11791 foils.
11792 \end_layout
11793
11794 \begin_layout Standard
11795 The 
11796 \family sans
11797 foils
11798 \family default
11799  class is designed for use with version
11800 \begin_inset space ~
11801 \end_inset
11802
11803 2.1 of the 
11804 \family sans
11805 foils.cls
11806 \family default
11807  \SpecialChar LaTeX
11808  class file which is now an integral part of \SpecialChar LaTeX2e
11809 .
11810 \end_layout
11811
11812 \begin_layout Subsection
11813 Getting Started
11814 \end_layout
11815
11816 \begin_layout Standard
11817 Obviously, to use this document class, you need to select 
11818 \family sans
11819 FoilTeX
11820 \family default
11821  from the 
11822 \family sans
11823 Class
11824 \family default
11825  entry in the 
11826 \family sans
11827 Document
11828 \begin_inset space ~
11829 \end_inset
11830
11831 Layout
11832 \family default
11833  dialog.
11834  There are some settings in the 
11835 \family sans
11836 Document
11837 \begin_inset space ~
11838 \end_inset
11839
11840 Layout
11841 \family default
11842  dialog that you should know about that are specific to this class:
11843 \end_layout
11844
11845 \begin_layout Itemize
11846 Don't change the options 
11847 \family sans
11848 Sides
11849 \family default
11850  and 
11851 \family sans
11852 Columns
11853 \family default
11854  on the 
11855 \family sans
11856 Document
11857 \begin_inset space ~
11858 \end_inset
11859
11860 Layout
11861 \family default
11862  dialog.
11863  They're ignored by the 
11864 \family sans
11865 foils
11866 \family default
11867  class.
11868 \end_layout
11869
11870 \begin_layout Itemize
11871 The default font size is 20
11872 \begin_inset space \thinspace{}
11873 \end_inset
11874
11875 pt with the other options being 17
11876 \begin_inset space \thinspace{}
11877 \end_inset
11878
11879 pt, 25
11880 \begin_inset space \thinspace{}
11881 \end_inset
11882
11883 pt and 30
11884 \begin_inset space \thinspace{}
11885 \end_inset
11886
11887 pt.
11888 \end_layout
11889
11890 \begin_layout Itemize
11891 The default font is 
11892 \family sans
11893 sans
11894 \family default
11895  
11896 \family sans
11897 serif
11898 \family default
11899  but all math equations are still typeset in the usual roman font.
11900 \end_layout
11901
11902 \begin_layout Itemize
11903
11904 \family sans
11905 Foil\SpecialChar TeX
11906
11907 \family default
11908  supports A4 and Letter paper sizes as well as a special size for working
11909  with 35
11910 \begin_inset space \thinspace{}
11911 \end_inset
11912
11913 mm slides.
11914  It doesn't support A5, B5, legal or executive paper sizes.
11915 \end_layout
11916
11917 \begin_layout Itemize
11918 Don't bother changing the 
11919 \family sans
11920 Float Placement
11921 \family default
11922  settings because they are ignored anyway.
11923  All floats appear where they are defined in the text.
11924 \end_layout
11925
11926 \begin_layout Itemize
11927 The 
11928 \family sans
11929 Pagestyle
11930 \family default
11931  setting behaves a bit differently for this class.
11932  
11933 \family sans
11934 Foil\SpecialChar TeX
11935
11936 \family default
11937  provides extensive footer and header capabilities including a user-defined
11938  logo.
11939  See section
11940 \begin_inset space ~
11941 \end_inset
11942
11943
11944 \begin_inset CommandInset ref
11945 LatexCommand ref
11946 reference "sec:foilfoot"
11947
11948 \end_inset
11949
11950  for more details.
11951  The title page is treated differently to all other pages in the document
11952  and is 
11953 \emph on
11954 always
11955 \emph default
11956  unnumbered and 
11957 \emph on
11958 always
11959 \emph default
11960  has the logo centered at the bottom of the page (if one is defined).
11961  The possible page style choices and what they do are as follows:
11962 \end_layout
11963
11964 \begin_deeper
11965 \begin_layout Labeling
11966 \labelwidthstring MMMMMMM
11967
11968 \family sans
11969 \series bold
11970 empty
11971 \family default
11972 \series default
11973  The final output contains no page numbers, or other headers or footers
11974  (except footnotes of course).
11975  
11976 \end_layout
11977
11978 \begin_layout Labeling
11979 \labelwidthstring MMMMMMM
11980
11981 \family sans
11982 \series bold
11983 plain
11984 \family default
11985 \series default
11986  The final output contains page numbers centered at the bottom of the page.
11987  No other headings or footers (other than footnotes).
11988 \end_layout
11989
11990 \begin_layout Labeling
11991 \labelwidthstring MMMMMMM
11992
11993 \series bold
11994 foilheadings
11995 \series default
11996  Page numbers in lower right corner.
11997  Additional headers and footers are also shown.
11998  This is also the default.
11999 \end_layout
12000
12001 \begin_layout Labeling
12002 \labelwidthstring MMMMMMM
12003
12004 \series bold
12005 fancy
12006 \series default
12007  Gives you access to the 
12008 \family sans
12009 fancyheadings
12010 \family default
12011  package although its use with 
12012 \family sans
12013 Foil\SpecialChar TeX
12014
12015 \family default
12016  is discouraged by the writer of the 
12017 \family sans
12018 Foil\SpecialChar TeX
12019
12020 \family default
12021  package because of some potential page layout clashes.
12022 \end_layout
12023
12024 \end_deeper
12025 \begin_layout Subsubsection
12026 Extra Options
12027 \end_layout
12028
12029 \begin_layout Standard
12030 The following options may be used in the extra class options in the 
12031 \family sans
12032 Document\SpecialChar menuseparator
12033 Settings
12034 \family default
12035  dialog.
12036 \end_layout
12037
12038 \begin_layout Labeling
12039 \labelwidthstring MMMMMMx
12040
12041 \series bold
12042 35mmSlide
12043 \series default
12044  This sets up the page layout for 7.33
12045 \begin_inset space \thinspace{}
12046 \end_inset
12047
12048 in by 11
12049 \begin_inset space \thinspace{}
12050 \end_inset
12051
12052 in paper, which is about the same aspect ratio as a 35
12053 \begin_inset space \thinspace{}
12054 \end_inset
12055
12056 mm slide, making it a bit easier to work with this medium.
12057 \end_layout
12058
12059 \begin_layout Labeling
12060 \labelwidthstring MMMMMMx
12061
12062 \series bold
12063 headrule
12064 \series default
12065  Places a rule across the page below the header on every page except the
12066  title page.
12067 \end_layout
12068
12069 \begin_layout Labeling
12070 \labelwidthstring MMMMMMx
12071
12072 \series bold
12073 footrule
12074 \series default
12075  Places a rule across the page above the footer on every page except the
12076  title page.
12077 \end_layout
12078
12079 \begin_layout Labeling
12080 \labelwidthstring MMMMMMx
12081
12082 \series bold
12083 dvips
12084 \series default
12085  This is automatically set each time you create a new 
12086 \family sans
12087 foils
12088 \family default
12089  document.
12090  This option tells 
12091 \family sans
12092 Foil\SpecialChar TeX
12093
12094 \family default
12095  to use the dvips driver to rotate those pages that are set as landscape
12096  foils.
12097 \end_layout
12098
12099 \begin_layout Labeling
12100 \labelwidthstring MMMMMMx
12101
12102 \series bold
12103 landscape
12104 \series default
12105  Simply changes the page dimensions to those of a landscape page but doesn't
12106  do any rotation.
12107  Thus if you use this option you need to use an external program to rotate
12108  each page or feed your paper through your printer as landscape.
12109  Note that this option effectively reverses the roles of the 
12110 \family sans
12111 Foilhead
12112 \family default
12113  and 
12114 \family sans
12115 Rotatefoilhead
12116 \family default
12117  environments (don't worry these are described in the next section).
12118 \end_layout
12119
12120 \begin_layout Labeling
12121 \labelwidthstring MMMMMMx
12122
12123 \series bold
12124 leqno
12125 \series default
12126  Equation numbers on the left.
12127 \end_layout
12128
12129 \begin_layout Labeling
12130 \labelwidthstring MMMMMMx
12131
12132 \series bold
12133 fleqn
12134 \series default
12135  Flush-left equations.
12136 \end_layout
12137
12138 \begin_layout Subsection
12139 Supported Environments
12140 \end_layout
12141
12142 \begin_layout Standard
12143 Most of the environments commonly supported in other classes are also supported
12144  by the 
12145 \family sans
12146 foils
12147 \family default
12148  class.
12149  There are several additional environments provided by 
12150 \family sans
12151 Foil\SpecialChar TeX
12152
12153 \family default
12154  as well as a couple added by \SpecialChar LyX
12155 .
12156  The following environments are shared with other classes:
12157 \end_layout
12158
12159 \begin_layout Standard
12160 \begin_inset Flex Multiple Columns
12161 status open
12162
12163 \begin_layout Itemize
12164
12165 \family sans
12166 Standard
12167 \end_layout
12168
12169 \begin_layout Itemize
12170
12171 \family sans
12172 Itemize
12173 \end_layout
12174
12175 \begin_layout Itemize
12176
12177 \family sans
12178 Enumerate
12179 \end_layout
12180
12181 \begin_layout Itemize
12182
12183 \family sans
12184 Description
12185 \end_layout
12186
12187 \begin_layout Itemize
12188
12189 \family sans
12190 List
12191 \end_layout
12192
12193 \begin_layout Itemize
12194
12195 \family sans
12196 \SpecialChar LyX
12197 -Code
12198 \end_layout
12199
12200 \begin_layout Itemize
12201
12202 \family sans
12203 Verse
12204 \end_layout
12205
12206 \begin_layout Itemize
12207
12208 \family sans
12209 Quote
12210 \end_layout
12211
12212 \begin_layout Itemize
12213
12214 \family sans
12215 Quotation
12216 \end_layout
12217
12218 \begin_layout Itemize
12219
12220 \family sans
12221 Title
12222 \change_deleted -712698321 1501158884
12223
12224 \end_layout
12225
12226 \begin_layout Itemize
12227
12228 \family sans
12229 Author
12230 \end_layout
12231
12232 \begin_layout Itemize
12233
12234 \family sans
12235 Date
12236 \end_layout
12237
12238 \begin_layout Itemize
12239
12240 \family sans
12241 Abstract
12242 \end_layout
12243
12244 \begin_layout Itemize
12245
12246 \family sans
12247 Bibliography
12248 \end_layout
12249
12250 \begin_layout Itemize
12251
12252 \family sans
12253 Address
12254 \end_layout
12255
12256 \begin_layout Itemize
12257
12258 \family sans
12259 RightAddress
12260 \end_layout
12261
12262 \begin_layout Itemize
12263
12264 \change_deleted -712698321 1501158888
12265
12266 \family sans
12267 Caption
12268 \change_unchanged
12269
12270 \end_layout
12271
12272 \begin_layout Itemize
12273
12274 \change_deleted -712698321 1501158891
12275
12276 \family sans
12277 Comment
12278 \change_unchanged
12279
12280 \end_layout
12281
12282 \end_inset
12283
12284
12285 \end_layout
12286
12287 \begin_layout Standard
12288 That is, all the major environments apart from the sectioning environments.
12289  Since foils are essentially self-contained sections, with a title and body,
12290  
12291 \family sans
12292 Foil\SpecialChar TeX
12293
12294 \family default
12295  provides specific commands for starting new foils and these are:
12296 \end_layout
12297
12298 \begin_layout Itemize
12299
12300 \family sans
12301 Foilhead
12302 \end_layout
12303
12304 \begin_layout Itemize
12305
12306 \family sans
12307 Rotatefoilhead
12308 \end_layout
12309
12310 \begin_layout Standard
12311 \SpecialChar LyX
12312  also provides slightly modified versions of these two environments called:
12313 \end_layout
12314
12315 \begin_layout Itemize
12316
12317 \family sans
12318 ShortFoilhead
12319 \end_layout
12320
12321 \begin_layout Itemize
12322
12323 \family sans
12324 ShortRotatefoilhead
12325 \end_layout
12326
12327 \begin_layout Standard
12328 and the differences will be explained in the next section.
12329 \end_layout
12330
12331 \begin_layout Standard
12332 Since foils are often used in presenting ideas or new theorems and such
12333  
12334 \family sans
12335 Foil\SpecialChar TeX
12336
12337 \family default
12338  also provides a comprehensive box of goodies for presenting them:
12339 \end_layout
12340
12341 \begin_layout Standard
12342 \begin_inset Flex Multiple Columns
12343 status open
12344
12345 \begin_layout Itemize
12346
12347 \family sans
12348 Theorem
12349 \end_layout
12350
12351 \begin_layout Itemize
12352
12353 \family sans
12354 Lemma
12355 \end_layout
12356
12357 \begin_layout Itemize
12358
12359 \family sans
12360 Corollary
12361 \end_layout
12362
12363 \begin_layout Itemize
12364
12365 \family sans
12366 Proposition
12367 \end_layout
12368
12369 \begin_layout Itemize
12370
12371 \family sans
12372 Definition
12373 \end_layout
12374
12375 \begin_layout Itemize
12376
12377 \family sans
12378 Proof
12379 \end_layout
12380
12381 \begin_layout Itemize
12382
12383 \family sans
12384 Theorem*
12385 \end_layout
12386
12387 \begin_layout Itemize
12388
12389 \family sans
12390 Lemma*
12391 \end_layout
12392
12393 \begin_layout Itemize
12394
12395 \family sans
12396 Corollary*
12397 \end_layout
12398
12399 \begin_layout Itemize
12400
12401 \family sans
12402 Proposition*
12403 \end_layout
12404
12405 \begin_layout Itemize
12406
12407 \family sans
12408 Definition*
12409 \end_layout
12410
12411 \end_inset
12412
12413
12414 \end_layout
12415
12416 \begin_layout Standard
12417 The starred versions are unnumbered while the unstarred versions are numbered.
12418  There are also two list environments added by \SpecialChar LyX
12419  and these are:
12420 \end_layout
12421
12422 \begin_layout Itemize
12423
12424 \family sans
12425 TickList
12426 \end_layout
12427
12428 \begin_layout Itemize
12429
12430 \family sans
12431 CrossList
12432 \end_layout
12433
12434 \begin_layout Standard
12435
12436 \family sans
12437 Foil\SpecialChar TeX
12438
12439 \family default
12440  provides some powerful header and footer capabilities that are best set
12441  in the preamble although they may be set at any point in a document.
12442  If you want to change these settings in your document the best place to
12443  do so is at the very top of a foil, i.
12444 \begin_inset space \thinspace{}
12445 \end_inset
12446
12447 e.
12448 \emph on
12449
12450 \begin_inset space \space{}
12451 \end_inset
12452
12453
12454 \emph default
12455 straight after the foilhead.
12456 \end_layout
12457
12458 \begin_layout Standard
12459 For this purpose, the following command styles are provided [
12460 \shape smallcaps
12461 Martin Vermeer
12462 \shape default
12463 ]:
12464 \end_layout
12465
12466 \begin_layout Standard
12467 \begin_inset Flex Multiple Columns
12468 status open
12469
12470 \begin_layout Itemize
12471
12472 \family sans
12473 My
12474 \begin_inset space ~
12475 \end_inset
12476
12477 Logo
12478 \end_layout
12479
12480 \begin_layout Itemize
12481
12482 \family sans
12483 Restriction
12484 \end_layout
12485
12486 \begin_layout Itemize
12487
12488 \family sans
12489 Right
12490 \begin_inset space ~
12491 \end_inset
12492
12493 Footer
12494 \end_layout
12495
12496 \begin_layout Itemize
12497
12498 \family sans
12499 Right
12500 \begin_inset space ~
12501 \end_inset
12502
12503 Header
12504 \end_layout
12505
12506 \begin_layout Itemize
12507
12508 \family sans
12509 Left
12510 \begin_inset space ~
12511 \end_inset
12512
12513 Header
12514 \end_layout
12515
12516 \begin_deeper
12517 \begin_layout Plain Layout
12518 \begin_inset space ~
12519 \end_inset
12520
12521
12522 \end_layout
12523
12524 \end_deeper
12525 \end_inset
12526
12527
12528 \end_layout
12529
12530 \begin_layout Standard
12531 There are also a few commands provided by 
12532 \family sans
12533 Foil\SpecialChar TeX
12534
12535 \family default
12536  that aren't directly supported by \SpecialChar LyX
12537  but I'll tell you what they do and how
12538  to use them in section
12539 \begin_inset space ~
12540 \end_inset
12541
12542
12543 \begin_inset CommandInset ref
12544 LatexCommand ref
12545 reference "sec:unsuppfoils"
12546
12547 \end_inset
12548
12549 .
12550 \end_layout
12551
12552 \begin_layout Subsection
12553 Building a Set of Foils
12554 \end_layout
12555
12556 \begin_layout Standard
12557 This section will give a simple introduction to using the different environments
12558  to build a set of foils.
12559  If you want to see an example set of foils, take a look at the 
12560 \family typewriter
12561 Foils.lyx
12562 \family default
12563  file you find in \SpecialChar LyX
12564 's 
12565 \family typewriter
12566 examples
12567 \family default
12568  folder.
12569 \end_layout
12570
12571 \begin_layout Subsubsection
12572 Give It a Title Page
12573 \end_layout
12574
12575 \begin_layout Standard
12576 Unlike other classes that provide 
12577 \family sans
12578 Title
12579 \family default
12580
12581 \family sans
12582 Author
12583 \family default
12584
12585 \family sans
12586 Date
12587 \family default
12588  and 
12589 \family sans
12590 Abstract
12591 \family default
12592  environments, 
12593 \family sans
12594 foils
12595 \family default
12596  creates the title on a page of its own.
12597  If you leave out the 
12598 \family sans
12599 Date
12600 \family default
12601  environment \SpecialChar LaTeX
12602  will substitute the current date (every time you regenerate
12603  the output).
12604 \end_layout
12605
12606 \begin_layout Subsubsection
12607 Start a New Foil
12608 \end_layout
12609
12610 \begin_layout Standard
12611 As I mentioned earlier, there are four ways of starting a new foil.
12612  For portrait foils you should use 
12613 \family sans
12614 Foilhead
12615 \family default
12616  or 
12617 \family sans
12618 ShortFoilhead.
12619
12620 \family default
12621  The difference between these two environments is the amount of space between
12622  the title of the foil (the foilhead) and the body of the foil.
12623 \end_layout
12624
12625 \begin_layout Standard
12626 Landscape foils are generated using the 
12627 \family sans
12628 Rotatefoilhead
12629 \family default
12630  and 
12631 \family sans
12632 ShortRotatefoilhead
12633 \family default
12634  environments.
12635  Again the only difference is the spacing between foilhead and body.
12636  Both of the short versions have 0.5
12637 \begin_inset space ~
12638 \end_inset
12639
12640 inches less separation between the foilhead and the body.
12641  
12642 \end_layout
12643
12644 \begin_layout Standard
12645 One problem with the support for landscape foils is the requirement that
12646  you have to use the 
12647 \family typewriter
12648 dvips
12649 \family default
12650  driver to generate the PostScript output otherwise the foils won't be rotated.
12651  It is possible to get landscape foils even if you haven't got the 
12652 \family typewriter
12653 dvips
12654 \family default
12655  driver provided you can feed your foils sideways through your printer ;-)
12656 \end_layout
12657
12658 \begin_layout Subsubsection
12659 Theorems, Lemmas, Proofs and more
12660 \end_layout
12661
12662 \begin_layout Standard
12663
12664 \change_deleted -712698321 1501160146
12665 Due to a small bug in \SpecialChar LyX
12666  y
12667 \change_inserted -712698321 1501160146
12668 Y
12669 \change_unchanged
12670 ou can't have two of the same type of these environments directly following
12671  each other.
12672  
12673 \change_inserted -712698321 1501160182
12674 If you use a normal paragraph break, 
12675 \change_deleted -712698321 1501160188
12676 They must be separated by something.
12677  If you try
12678 \change_unchanged
12679 , you will just be extending the previous environment as if you had merged
12680  the two environments together.
12681  
12682 \change_deleted -712698321 1501160194
12683 So, how do you get around this problem? The simplest option is to insert
12684  some text between the two environments or add a 
12685 \family sans
12686 \SpecialChar LaTeX
12687
12688 \family default
12689  environment between the two with just a 
12690 \begin_inset Quotes eld
12691 \end_inset
12692
12693
12694 \family typewriter
12695 %
12696 \family default
12697
12698 \begin_inset Quotes erd
12699 \end_inset
12700
12701  in it.
12702  This will force \SpecialChar LyX
12703  to produce two separate environments and hence the correct
12704  \SpecialChar LaTeX
12705  output.
12706  An example is provided in the example file included with the \SpecialChar LyX
12707  distribution.
12708  Remember, this problem only occurs if you are trying to place two of the
12709  same type of theorem-like environments one directly after the other.
12710
12711 \change_inserted -712698321 1501160255
12712  Rather than that, you need to insert a so-called separator.
12713  Please refer to the section entitled 
12714 \emph on
12715 Separate Nestings
12716 \emph default
12717  in the 
12718 \emph on
12719 User's Guide
12720 \emph default
12721 .
12722 \change_unchanged
12723
12724 \end_layout
12725
12726 \begin_layout Subsubsection
12727 Lists
12728 \end_layout
12729
12730 \begin_layout Standard
12731 You get all the commonly supported list styles found in other classes as
12732  well as two new ones.
12733  I'll only describe the new ones here.
12734  If you want to find out more about the other list environments check out
12735  the 
12736 \emph on
12737 User's Guide.
12738
12739 \emph default
12740  If you intend to use itemized lists you might also want to read about the
12741  
12742 \family sans
12743 Itemize
12744 \begin_inset space ~
12745 \end_inset
12746
12747 Bullet
12748 \begin_inset space ~
12749 \end_inset
12750
12751 Selection
12752 \family default
12753  dialog described above in section
12754 \begin_inset space ~
12755 \end_inset
12756
12757
12758 \begin_inset CommandInset ref
12759 LatexCommand ref
12760 reference "sec:bullet"
12761
12762 \end_inset
12763
12764 .
12765 \end_layout
12766
12767 \begin_layout Standard
12768 The two new list styles, 
12769 \family sans
12770 TickList
12771 \family default
12772  and 
12773 \family sans
12774 CrossList
12775 \family default
12776 , are designed to make it easier for you to create lists of do's and don'ts
12777  or right and wrong by providing dedicated environments that use a tick
12778  or a cross as the label of the list.
12779  These lists are in fact dedicated variants of the 
12780 \family sans
12781 Itemize
12782 \family default
12783  environment.
12784  They do however require that you have the 
12785 \family typewriter
12786 psnfss
12787 \family default
12788  packages installed.
12789 \end_layout
12790
12791 \begin_layout Subsubsection
12792 Figures and Tables
12793 \end_layout
12794
12795 \begin_layout Standard
12796
12797 \family sans
12798 Foil\SpecialChar TeX
12799
12800 \family default
12801  redefines the floating tables and figures so that they appear exactly where
12802  they are in the text rather than pushing them to the top of the page or
12803  to some user specified location.
12804  In fact if you change the float placement settings they are simply ignored.
12805 \end_layout
12806
12807 \begin_layout Subsubsection
12808 Page Headers and Footers
12809 \begin_inset CommandInset label
12810 LatexCommand label
12811 name "sec:foilfoot"
12812
12813 \end_inset
12814
12815
12816 \end_layout
12817
12818 \begin_layout Standard
12819
12820 \family sans
12821 My
12822 \begin_inset space ~
12823 \end_inset
12824
12825 Logo
12826 \family default
12827  and 
12828 \family sans
12829 Restriction
12830 \family default
12831  are two commands used to control the left-footer text string.
12832  The first is meant to allow you to include a graphic logo on your foils
12833  and defaults to 
12834 \begin_inset Quotes eld
12835 \end_inset
12836
12837 -Typeset by 
12838 \family sans
12839 Foil\SpecialChar TeX
12840
12841 \family default
12842 -
12843 \begin_inset Quotes erd
12844 \end_inset
12845
12846 .
12847  While the second is meant to provide a classification for the audience,
12848  
12849 \emph on
12850 e.
12851 \begin_inset space \thinspace{}
12852 \end_inset
12853
12854 g.
12855 \emph default
12856
12857 \begin_inset space \space{}
12858 \end_inset
12859
12860 Confidential.
12861  It is empty by default.
12862 \end_layout
12863
12864 \begin_layout Standard
12865 The remaining page corners can be filled by 
12866 \family sans
12867 Right
12868 \begin_inset space ~
12869 \end_inset
12870
12871 Footer
12872 \family default
12873  (which defaults to page numbers), 
12874 \family sans
12875 Right
12876 \begin_inset space ~
12877 \end_inset
12878
12879 Header
12880 \family default
12881  (top right) and 
12882 \family sans
12883 Left
12884 \begin_inset space ~
12885 \end_inset
12886
12887 Header
12888 \family default
12889  (top left).
12890 \end_layout
12891
12892 \begin_layout Subsection
12893 Unsupported 
12894 \family sans
12895 Foil\SpecialChar TeX
12896
12897 \family default
12898  Goodies
12899 \begin_inset CommandInset label
12900 LatexCommand label
12901 name "sec:unsuppfoils"
12902
12903 \end_inset
12904
12905
12906 \end_layout
12907
12908 \begin_layout Standard
12909 All the commands mentioned below need to be set in a 
12910 \family sans
12911 \SpecialChar LaTeX
12912
12913 \family default
12914  environment or as 
12915 \family sans
12916 \SpecialChar TeX
12917
12918 \family default
12919  within another environment.
12920 \end_layout
12921
12922 \begin_layout Subsubsection
12923 Lengths
12924 \end_layout
12925
12926 \begin_layout Standard
12927 All lengths are adjusted using the 
12928 \family typewriter
12929
12930 \backslash
12931 setlength{
12932 \family default
12933 \emph on
12934 lengthname
12935 \family typewriter
12936 \emph default
12937 }{
12938 \family default
12939 \emph on
12940 newlength
12941 \family typewriter
12942 \emph default
12943 }
12944 \family default
12945  command.
12946  Where 
12947 \emph on
12948 lengthname
12949 \emph default
12950  should be replaced by the name given to the length you want to change and
12951  
12952 \emph on
12953 newlength
12954 \emph default
12955  is the length value.
12956  All lengths should be specified in units of length such as inches (
12957 \family typewriter
12958 in
12959 \family default
12960 ), millimeters (
12961 \family typewriter
12962 mm
12963 \family default
12964 ) or points (
12965 \family typewriter
12966 pt
12967 \family default
12968 ) or relative to some document or font-based length such as 
12969 \family typewriter
12970
12971 \backslash
12972 textwidth
12973 \family default
12974 .
12975  
12976 \end_layout
12977
12978 \begin_layout Standard
12979 It's possible to change the spacing between a foilhead and the body of the
12980  foil by adjusting the length specified by 
12981 \family typewriter
12982
12983 \backslash
12984 foilheadskip
12985 \family default
12986 .
12987  For example, to make 
12988 \emph on
12989 all
12990 \emph default
12991  foilheads 0.5
12992 \begin_inset space \space{}
12993 \end_inset
12994
12995 in closer to their bodies put the following in the preamble: 
12996 \family typewriter
12997
12998 \backslash
12999 setlength{
13000 \backslash
13001 foilheadskip}{-0.5in}
13002 \end_layout
13003
13004 \begin_layout Standard
13005 The spacings around floats can be adjusted by setting these lengths:
13006 \end_layout
13007
13008 \begin_layout Labeling
13009 \labelwidthstring MMMMMMMMMMM
13010
13011 \family typewriter
13012
13013 \backslash
13014 abovefloatskip
13015 \family default
13016  Separation between the text and the top of the float
13017 \end_layout
13018
13019 \begin_layout Labeling
13020 \labelwidthstring MMMMMMMMMMM
13021
13022 \family typewriter
13023
13024 \backslash
13025 abovecaptionskip
13026 \family default
13027  Separation between the float and the caption
13028 \end_layout
13029
13030 \begin_layout Labeling
13031 \labelwidthstring MMMMMMMMMMM
13032
13033 \family typewriter
13034
13035 \backslash
13036 belowcaptionskip
13037 \family default
13038  Separation between the caption and the following text
13039 \end_layout
13040
13041 \begin_layout Labeling
13042 \labelwidthstring MMMMMMMMMMM
13043
13044 \family typewriter
13045
13046 \backslash
13047 captionwidth
13048 \family default
13049  You can make the captions narrower than the surrounding text by adjusting
13050  this length.
13051  Best done relative to 
13052 \family typewriter
13053
13054 \backslash
13055 textwidth
13056 \family default
13057 .
13058 \end_layout
13059
13060 \begin_layout Standard
13061 There are also several title page related lengths that you may find useful
13062  if you have a long title or several authors:
13063 \end_layout
13064
13065 \begin_layout Labeling
13066 \labelwidthstring MMMMMMMMMMM
13067
13068 \family typewriter
13069
13070 \backslash
13071 abovetitleskip
13072 \family default
13073  Separation from headers to 
13074 \family sans
13075 Title
13076 \end_layout
13077
13078 \begin_layout Labeling
13079 \labelwidthstring MMMMMMMMMMM
13080
13081 \family typewriter
13082
13083 \backslash
13084 titleauthorskip
13085 \family default
13086  between 
13087 \family sans
13088 Title
13089 \family default
13090  and 
13091 \family sans
13092 Author
13093 \family default
13094  environments
13095 \end_layout
13096
13097 \begin_layout Labeling
13098 \labelwidthstring MMMMMMMMMMM
13099
13100 \family typewriter
13101
13102 \backslash
13103 authorauthorskip
13104 \family default
13105  between multiple 
13106 \family sans
13107 Author
13108 \family default
13109  lines
13110 \end_layout
13111
13112 \begin_layout Labeling
13113 \labelwidthstring MMMMMMMMMMM
13114
13115 \family typewriter
13116
13117 \backslash
13118 authordateskip
13119 \family default
13120  between the 
13121 \family sans
13122 Author
13123 \family default
13124  and the 
13125 \family sans
13126 Date
13127 \end_layout
13128
13129 \begin_layout Labeling
13130 \labelwidthstring MMMMMMMMMMM
13131
13132 \family typewriter
13133
13134 \backslash
13135 dateabstractskip
13136 \family default
13137  between the 
13138 \family sans
13139 Date
13140 \family default
13141  and the 
13142 \family sans
13143 Abstract
13144 \end_layout
13145
13146 \begin_layout Standard
13147 The last length related command affects all the list environments.
13148  If you place 
13149 \family typewriter
13150
13151 \backslash
13152 zerolistvertdimens
13153 \family default
13154  
13155 \emph on
13156 inside
13157 \emph default
13158  a list environment then all the vertical spacing between the list items
13159  is removed.
13160  Note that this is a command not a length so it doesn't require 
13161 \family typewriter
13162
13163 \backslash
13164 setlength
13165 \family default
13166  like the stuff mentioned above.
13167 \end_layout
13168
13169 \begin_layout Subsubsection
13170 Headers and Footers
13171 \end_layout
13172
13173 \begin_layout Standard
13174 The 
13175 \family typewriter
13176
13177 \backslash
13178 LogoOn
13179 \family default
13180  and 
13181 \family typewriter
13182
13183 \backslash
13184 LogoOff
13185 \family default
13186  commands control whether the logo in the 
13187 \family sans
13188 MyLogo
13189 \family default
13190  definition appear on a given page.
13191  If you put 
13192 \family typewriter
13193
13194 \backslash
13195 LogoOff
13196 \family default
13197  in the preamble then none of the foils will have the logo on them.
13198  If you don't want the logo on a particular page place the 
13199 \family typewriter
13200
13201 \backslash
13202 LogoOff
13203 \family default
13204  directly after the foilhead of that page and the 
13205 \family typewriter
13206
13207 \backslash
13208 LogoOn
13209 \family default
13210  directly after the next foilhead.
13211 \end_layout
13212
13213 \begin_layout Standard
13214 If you decide to use the 
13215 \family sans
13216 fancy
13217 \family default
13218  page style setting in the 
13219 \family sans
13220 Document
13221 \begin_inset space ~
13222 \end_inset
13223
13224 Layout
13225 \family default
13226  dialog you should probably add 
13227 \family typewriter
13228
13229 \backslash
13230 let
13231 \backslash
13232 headwidth
13233 \backslash
13234 textwidth
13235 \family default
13236  to your preamble so headers and footers on landscape pages are correctly
13237  placed when rotated.
13238  This is due to some clashes between the page layouts provided by the 
13239 \family sans
13240 fancyheadings
13241 \family default
13242  package and the 
13243 \family sans
13244 foils
13245 \family default
13246  class.
13247 \end_layout
13248
13249 \begin_layout Section
13250 Hollywood (Hollywood spec scripts)
13251 \end_layout
13252
13253 \begin_layout Standard
13254 by 
13255 \shape smallcaps
13256 Garst Reese
13257 \end_layout
13258
13259 \begin_layout Subsection
13260 Introduction
13261 \end_layout
13262
13263 \begin_layout Standard
13264 Getting the format of a Hollywood script right is a 
13265 \begin_inset Quotes eld
13266 \end_inset
13267
13268 rite of passage.
13269 \begin_inset Quotes erd
13270 \end_inset
13271
13272  It is designed to make the readers focus on content and to be easy and
13273  familiar for the actors to read.
13274  Each page of a script should be one minute of film.
13275  Nothing goes in a script that you cannot see or hear on screen.
13276  The courier 12 pt font should be used throughout.
13277  No italics.
13278 \end_layout
13279
13280 \begin_layout Subsection
13281 Special problems
13282 \end_layout
13283
13284 \begin_layout Standard
13285 Speakers' lines should NEVER break in mid-sentence.
13286  If a speaker's lines continue over a page break, repeat the 
13287 \family sans
13288 Speaker
13289 \family default
13290  title followed by (Cont'd).
13291 \end_layout
13292
13293 \begin_layout Subsection
13294 Special features
13295 \end_layout
13296
13297 \begin_layout Standard
13298 Insert the 
13299 \family sans
13300 Speaker
13301 \family default
13302  names as labels then cross-reference the label to insert the name.
13303  The cross-reference dialog will show the current cast of characters.
13304  You can use this to insert the speaker name in narratives also.
13305 \end_layout
13306
13307 \begin_layout Subsection
13308 Paper size and Margins
13309 \end_layout
13310
13311 \begin_layout Standard
13312 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13313 \end_layout
13314
13315 \begin_layout Subsection
13316 Environments
13317 \end_layout
13318
13319 \begin_layout Standard
13320 The following environments are available.
13321  You can use hollywood.bind to get the bind keys shown at the right.
13322 \end_layout
13323
13324 \begin_layout Itemize
13325
13326 \family sans
13327 Standard
13328 \begin_inset Newline newline
13329 \end_inset
13330
13331
13332 \family default
13333 Used where nothing else works.
13334  Try to avoid it.
13335 \end_layout
13336
13337 \begin_layout Itemize
13338
13339 \family sans
13340 FADE_IN
13341 \family default
13342 :
13343 \begin_inset space \hfill{}
13344 \end_inset
13345
13346
13347 \family sans
13348 M-z S-I
13349 \family default
13350
13351 \begin_inset Newline newline
13352 \end_inset
13353
13354 Usually followed by something like 
13355 \begin_inset Quotes eld
13356 \end_inset
13357
13358 on Sally waking up.
13359 \begin_inset Quotes erd
13360 \end_inset
13361
13362
13363 \end_layout
13364
13365 \begin_layout Itemize
13366
13367 \family sans
13368 INT:
13369 \begin_inset space \hfill{}
13370 \end_inset
13371
13372 M-z i
13373 \begin_inset Newline newline
13374 \end_inset
13375
13376
13377 \family default
13378 Introduces a new INTERIOR camera set-up.
13379  Always followed by DAY or NIGHT, or something similar to define the lighting
13380  required.
13381  Everthing on this line in CAPS.
13382 \end_layout
13383
13384 \begin_layout Itemize
13385
13386 \family sans
13387 EXT:
13388 \begin_inset space \hfill{}
13389 \end_inset
13390
13391 M-z e
13392 \begin_inset Newline newline
13393 \end_inset
13394
13395
13396 \family default
13397 Introduces a new EXTERIOR camera set-up.
13398  Everthing on this line in CAPS.
13399 \end_layout
13400
13401 \begin_layout Itemize
13402
13403 \family sans
13404 Speaker
13405 \begin_inset space \hfill{}
13406 \end_inset
13407
13408 M-z s
13409 \begin_inset Newline newline
13410 \end_inset
13411
13412
13413 \family default
13414 The character speaking.
13415 \end_layout
13416
13417 \begin_layout Itemize
13418
13419 \family sans
13420 Parenthetical
13421 \begin_inset space \hfill{}
13422 \end_inset
13423
13424 M-z p
13425 \begin_inset Newline newline
13426 \end_inset
13427
13428
13429 \family default
13430 Instructions to the speaker.
13431  The () are automatically inserted
13432 \change_deleted -712698321 1501161286
13433 , but only the ( will show in \SpecialChar LyX
13434 .
13435  Both will be printed
13436 \change_unchanged
13437 .
13438 \end_layout
13439
13440 \begin_layout Itemize
13441
13442 \family sans
13443 Dialogue
13444 \begin_inset space \hfill{}
13445 \end_inset
13446
13447 M-z d
13448 \begin_inset Newline newline
13449 \end_inset
13450
13451
13452 \family default
13453 What the 
13454 \family sans
13455 Speaker
13456 \family default
13457  says.
13458 \end_layout
13459
13460 \begin_layout Itemize
13461
13462 \family sans
13463 Transition
13464 \begin_inset space \hfill{}
13465 \end_inset
13466
13467 M-z t
13468 \begin_inset Newline newline
13469 \end_inset
13470
13471
13472 \family default
13473 Camera movement instruction.
13474  e.
13475 \begin_inset space \thinspace{}
13476 \end_inset
13477
13478 g.
13479 \begin_inset space \space{}
13480 \end_inset
13481
13482 CUT TO:
13483 \end_layout
13484
13485 \begin_layout Itemize
13486
13487 \family sans
13488 FADE OUT:
13489 \begin_inset space \hfill{}
13490 \end_inset
13491
13492 M-z S-I
13493 \end_layout
13494
13495 \begin_layout Itemize
13496
13497 \family sans
13498 Author
13499 \begin_inset space \hfill{}
13500 \end_inset
13501
13502 M-z S-A
13503 \end_layout
13504
13505 \begin_layout Itemize
13506
13507 \family sans
13508 Title
13509 \begin_inset space \hfill{}
13510 \end_inset
13511
13512 M-z S-T
13513 \end_layout
13514
13515 \begin_layout Itemize
13516
13517 \family sans
13518 Right_Address
13519 \begin_inset space \hfill{}
13520 \end_inset
13521
13522 M-z r
13523 \end_layout
13524
13525 \begin_layout Subsection
13526 Script jargon
13527 \end_layout
13528
13529 \begin_layout Itemize
13530 (O.S) — off screen
13531 \end_layout
13532
13533 \begin_layout Itemize
13534 (V.0) — voice over
13535 \end_layout
13536
13537 \begin_layout Itemize
13538 b.
13539 \begin_inset space \thinspace{}
13540 \end_inset
13541
13542 g.
13543  — background
13544 \end_layout
13545
13546 \begin_layout Itemize
13547 C.U.
13548  — close-up
13549 \end_layout
13550
13551 \begin_layout Itemize
13552 PAN — camera movement
13553 \end_layout
13554
13555 \begin_layout Itemize
13556 INSERT — cut to close-up of
13557 \end_layout
13558
13559 \begin_layout Section
13560 ijmpc and ijmpd
13561 \end_layout
13562
13563 \begin_layout Standard
13564 by 
13565 \noun on
13566 Panayotis Papasotiriou
13567 \end_layout
13568
13569 \begin_layout Subsection
13570 Overview
13571 \end_layout
13572
13573 \begin_layout Standard
13574 The ijmpc package is a set of macros that facilitates electronic manuscript
13575  submission to the 
13576 \emph on
13577 International Journal of Modern Physics C
13578 \emph default
13579 .
13580  Similarly, the ijmpd package is for creating manuscripts to be submitted
13581  to the 
13582 \emph on
13583 International Journal of Modern Physics D
13584 \emph default
13585 .
13586  Both journals are published by World Scientific.
13587  The corresponding document classes are named 
13588 \family typewriter
13589 ws-ijmpc.cls
13590 \family default
13591  and 
13592 \family typewriter
13593 ws-ijmpd.cls
13594 \family default
13595 , respectively.
13596  These files, together with instructions for the authors, can be downloaded
13597  from the sites 
13598 \begin_inset Flex URL
13599 status collapsed
13600
13601 \begin_layout Plain Layout
13602
13603 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13604 \end_layout
13605
13606 \end_inset
13607
13608  and 
13609 \begin_inset Flex URL
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613
13614 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13615 \end_layout
13616
13617 \end_inset
13618
13619 .
13620  Both packages are modified versions of the standard 
13621 \begin_inset Quotes eld
13622 \end_inset
13623
13624 article
13625 \begin_inset Quotes erd
13626 \end_inset
13627
13628  package, and they are almost (but not exactly) identical.
13629  Most of their features are supported by \SpecialChar LyX
13630 .
13631  I have used \SpecialChar LyX
13632  successfully to write articles submitted to both journals
13633  without any problem.
13634 \end_layout
13635
13636 \begin_layout Subsection
13637 Writing a paper
13638 \end_layout
13639
13640 \begin_layout Standard
13641 As usual, the easiest way to write a paper is to start with a template.
13642  Click on 
13643 \family sans
13644 File\SpecialChar menuseparator
13645 New from
13646 \family default
13647  
13648 \family sans
13649 Template
13650 \family default
13651 , then choose the 
13652 \family typewriter
13653 ijmpc.lyx
13654 \family default
13655  or 
13656 \family typewriter
13657 ijmpd.lyx
13658 \family default
13659  template.
13660  This will give an (almost) empty document that includes the most common
13661  fields found in a manuscript.
13662  Simply overwrite the existing text (including the brackets, 
13663 \family typewriter
13664 <>
13665 \family default
13666 ) with your text.
13667  You should keep in mind the following remarks.
13668 \end_layout
13669
13670 \begin_layout Enumerate
13671 \SpecialChar LyX
13672  won't let you change the font size and the page style of the document,
13673  because such modifications are not allowed by both packages.
13674 \end_layout
13675
13676 \begin_layout Enumerate
13677 The language of the document should not be changed.
13678  Before previewing your paper, be sure that the babel package is not used.
13679  To do this, click on
13680 \change_inserted -712698321 1501082726
13681  
13682 \begin_inset Info
13683 type  "menu"
13684 arg   "dialog-show document"
13685 \end_inset
13686
13687
13688 \change_unchanged
13689  
13690 \change_deleted -712698321 1501082743
13691
13692 \family sans
13693 Tools
13694 \change_unchanged
13695 \SpecialChar menuseparator
13696
13697 \change_deleted -712698321 1501082747
13698 Preferences
13699 \change_inserted -712698321 1501082748
13700 Language
13701 \change_unchanged
13702
13703 \family default
13704
13705 \change_deleted -712698321 1501082762
13706 select the 
13707 \family sans
13708 Lang Opts
13709 \family default
13710  tab, deselect the 
13711 \family sans
13712 Use babel
13713 \family default
13714  checkbox in the language settings, and click on 
13715 \family sans
13716 Apply
13717 \family default
13718  (or 
13719 \family sans
13720 Save
13721 \family default
13722 , if you wish to make this change permanent)
13723 \change_inserted -712698321 1501082770
13724 and select 
13725 \begin_inset Quotes eld
13726 \end_inset
13727
13728 None
13729 \begin_inset Quotes erd
13730 \end_inset
13731
13732  as 
13733 \family sans
13734 Language Package
13735 \change_unchanged
13736
13737 \family default
13738 .
13739 \end_layout
13740
13741 \begin_layout Enumerate
13742 The 
13743 \begin_inset Quotes eld
13744 \end_inset
13745
13746 Keywords
13747 \begin_inset Quotes erd
13748 \end_inset
13749
13750  style must be used to define keywords.
13751 \end_layout
13752
13753 \begin_layout Enumerate
13754 The ijmpc package provides a style named 
13755 \begin_inset Quotes eld
13756 \end_inset
13757
13758 Classification Codes
13759 \begin_inset Quotes erd
13760 \end_inset
13761
13762 , which can be used to define classification codes, such as PACS numbers.
13763  Note that this facility is not supported by the ijmpd package.
13764 \end_layout
13765
13766 \begin_layout Enumerate
13767 Several new environments are available: 
13768 \begin_inset Quotes eld
13769 \end_inset
13770
13771 Definition
13772 \begin_inset Quotes erd
13773 \end_inset
13774
13775
13776 \begin_inset Quotes eld
13777 \end_inset
13778
13779 Step
13780 \begin_inset Quotes erd
13781 \end_inset
13782
13783
13784 \begin_inset Quotes eld
13785 \end_inset
13786
13787 Example
13788 \begin_inset Quotes erd
13789 \end_inset
13790
13791
13792 \begin_inset Quotes eld
13793 \end_inset
13794
13795 Remark
13796 \begin_inset Quotes erd
13797 \end_inset
13798
13799
13800 \begin_inset Quotes eld
13801 \end_inset
13802
13803 Notation
13804 \begin_inset Quotes erd
13805 \end_inset
13806
13807
13808 \begin_inset Quotes eld
13809 \end_inset
13810
13811 Theorem
13812 \begin_inset Quotes erd
13813 \end_inset
13814
13815
13816 \begin_inset Quotes eld
13817 \end_inset
13818
13819 Proof
13820 \begin_inset Quotes erd
13821 \end_inset
13822
13823
13824 \begin_inset Quotes eld
13825 \end_inset
13826
13827 Corollary
13828 \begin_inset Quotes erd
13829 \end_inset
13830
13831
13832 \begin_inset Quotes eld
13833 \end_inset
13834
13835 Lemma
13836 \begin_inset Quotes erd
13837 \end_inset
13838
13839
13840 \begin_inset Quotes eld
13841 \end_inset
13842
13843 Proposition
13844 \begin_inset Quotes erd
13845 \end_inset
13846
13847
13848 \begin_inset Quotes eld
13849 \end_inset
13850
13851 Prop
13852 \begin_inset Quotes erd
13853 \end_inset
13854
13855
13856 \begin_inset Quotes eld
13857 \end_inset
13858
13859 Question
13860 \begin_inset Quotes erd
13861 \end_inset
13862
13863
13864 \begin_inset Quotes eld
13865 \end_inset
13866
13867 Claim
13868 \begin_inset Quotes erd
13869 \end_inset
13870
13871 , and 
13872 \begin_inset Quotes eld
13873 \end_inset
13874
13875 Conjecture
13876 \begin_inset Quotes erd
13877 \end_inset
13878
13879 .
13880  Their use is more or less obvious.
13881  \SpecialChar LyX
13882  supports all these environments; it will use the proper label, text style,
13883  and numbering scheme for each of them.
13884 \end_layout
13885
13886 \begin_layout Enumerate
13887 Both packages use basic citations; the natbib package should not be used.
13888  In \SpecialChar LyX
13889 , citation references are shown as usual; in the output, citations are
13890  shown as superscripts.
13891  If you want to use a citation as normal text, you should use the 
13892 \family typewriter
13893 refcite
13894 \family default
13895  command, e.
13896 \begin_inset space \thinspace{}
13897 \end_inset
13898
13899 g.
13900 \begin_inset space \space{}
13901 \end_inset
13902
13903
13904 \begin_inset Quotes eld
13905 \end_inset
13906
13907 See Ref.
13908 \begin_inset space \space{}
13909 \end_inset
13910
13911
13912 \family typewriter
13913
13914 \backslash
13915 refcite{key}
13916 \family default
13917
13918 \begin_inset Quotes erd
13919 \end_inset
13920
13921 .
13922 \end_layout
13923
13924 \begin_layout Enumerate
13925 There is no 
13926 \begin_inset Quotes eld
13927 \end_inset
13928
13929 Acknowledgments
13930 \begin_inset Quotes erd
13931 \end_inset
13932
13933  section in both packages.
13934  To put acknowledgments, just use the 
13935 \begin_inset Quotes eld
13936 \end_inset
13937
13938 Section*
13939 \begin_inset Quotes erd
13940 \end_inset
13941
13942  environment.
13943 \end_layout
13944
13945 \begin_layout Enumerate
13946 Appendices may be added to the paper, 
13947 \emph on
13948 after
13949 \emph default
13950  the Acknowledgments and 
13951 \shape italic
13952 before
13953 \shape default
13954  the References.
13955  \SpecialChar LyX
13956  provides a special environment, called 
13957 \begin_inset Quotes eld
13958 \end_inset
13959
13960 Appendices Section
13961 \begin_inset Quotes erd
13962 \end_inset
13963
13964  which marks the beginning of the appendices.
13965  This environment should be left blank; it just sends a \SpecialChar LaTeX
13966  command, but nothing
13967  is really printed.
13968  In \SpecialChar LyX
13969 , the word 
13970 \begin_inset Quotes eld
13971 \end_inset
13972
13973 Appendix
13974 \begin_inset Quotes erd
13975 \end_inset
13976
13977  is printed with blue letters, as a signal that all sections after that
13978  point are appendices.
13979  To write an appendix, use the 
13980 \begin_inset Quotes eld
13981 \end_inset
13982
13983 Appendix
13984 \begin_inset Quotes erd
13985 \end_inset
13986
13987  environment.
13988  \SpecialChar LyX
13989  will number each appendix with capital letters, as required by both journals.
13990  Note that 
13991 \begin_inset Quotes eld
13992 \end_inset
13993
13994 Appendices Section
13995 \begin_inset Quotes erd
13996 \end_inset
13997
13998  
13999 \emph on
14000 must
14001 \emph default
14002  be present before the first appendix; if not, all appendices will be numbered
14003  as normal sections in the output.
14004 \end_layout
14005
14006 \begin_layout Enumerate
14007 The ijmpc and the ijmpd packages use the 
14008 \family typewriter
14009 tbl
14010 \family default
14011  command to implement table captions.
14012  As a result, a table created by \SpecialChar LyX
14013  is printed correctly, but its caption
14014  is ignored.
14015  However, you can use some \SpecialChar TeX
14016  code to overcome this problem, so that captions
14017  are printed as expected.
14018  To do so, create a float table as usual, remove the caption, and replace
14019  it with the \SpecialChar TeX
14020  code 
14021 \family typewriter
14022
14023 \backslash
14024 tbl{
14025 \emph on
14026 your table caption
14027 \emph default
14028 }{
14029 \family default
14030  (sic); you must also the \SpecialChar TeX
14031  code 
14032 \family typewriter
14033 }
14034 \family default
14035  immediately after the tabular material.
14036  Study the example table included in the template files to see how this
14037  trick is implemented.
14038  Alternatively, If you need table captions, you should implement the whole
14039  table float in a 
14040 \family typewriter
14041 .tex
14042 \family default
14043  file, then include this file to the \SpecialChar LyX
14044  document (
14045 \family sans
14046 Insert\SpecialChar menuseparator
14047 File\SpecialChar menuseparator
14048 Child
14049 \begin_inset space ~
14050 \end_inset
14051
14052 Document
14053 \family default
14054 ).
14055  Details on how to create a table float can be found in the files 
14056 \family typewriter
14057 ws-ijmpc.tex
14058 \family default
14059  and 
14060 \family typewriter
14061 ws-ijmpd.tex
14062 \family default
14063 , included in the corresponding packages.
14064 \end_layout
14065
14066 \begin_layout Subsection
14067 Preparing a paper for submission
14068 \end_layout
14069
14070 \begin_layout Standard
14071 Before you submit your paper you must export the \SpecialChar LyX
14072  document as a \SpecialChar LaTeX
14073  file (
14074 \family sans
14075 File\SpecialChar menuseparator
14076 Export\SpecialChar menuseparator
14077 \SpecialChar LaTeX
14078
14079 \family default
14080 )
14081 \begin_inset Foot
14082 status open
14083
14084 \begin_layout Plain Layout
14085 Actually you have the choice between \SpecialChar LaTeX
14086  (plain) and pdflatex.
14087  If you intend to use pdflatex to prepare the paper, you should use the
14088  pdflatex option so that included graphics are converted to PDF format,
14089  ready for use by pdflatex.
14090 \end_layout
14091
14092 \end_inset
14093
14094 , then make the following changes to the resulting 
14095 \family typewriter
14096 .tex
14097 \family default
14098  file.
14099 \end_layout
14100
14101 \begin_layout Enumerate
14102 Remove the comment lines before the 
14103 \family typewriter
14104
14105 \backslash
14106 documentclass
14107 \family default
14108  command.
14109 \end_layout
14110
14111 \begin_layout Enumerate
14112 Remove everything between (and including) the 
14113 \family typewriter
14114
14115 \backslash
14116 makeatletter
14117 \family default
14118  and 
14119 \family typewriter
14120
14121 \backslash
14122 makeatother
14123 \family default
14124  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14125  preamble.
14126 \end_layout
14127
14128 \begin_layout Standard
14129 The modified 
14130 \family typewriter
14131 .tex
14132 \family default
14133  file should be saved and processed through \SpecialChar LaTeX
14134  as many times as necessary.
14135  You may also want to check the resulting 
14136 \family typewriter
14137 .dvi
14138 \family default
14139  document.
14140 \end_layout
14141
14142 \begin_layout Subsection
14143
14144 \change_deleted -712698321 1501082212
14145 Use of \SpecialChar TeX
14146  code
14147 \end_layout
14148
14149 \begin_layout Standard
14150
14151 \change_deleted -712698321 1501082212
14152 The use of \SpecialChar TeX
14153  code is reduced to two commands, which must be placed at the
14154  top of the document.
14155  If you started writing your paper by using the 
14156 \family typewriter
14157 ijmpc.lyx
14158 \family default
14159  or the 
14160 \family typewriter
14161 ijmpd.lyx
14162 \family default
14163  template, the \SpecialChar TeX
14164  code needed is already in its place; you usually don't need
14165  to delete it.
14166  You may only modify the first \SpecialChar TeX
14167  code to specify the information printed
14168  to the top of odd and even pages (authors' names and short paper's title,
14169  respectively).
14170  This \SpecialChar TeX
14171  code must have the form 
14172 \family typewriter
14173
14174 \backslash
14175 markboth{Authors' Names}{Short Paper's Title}
14176 \family default
14177 .
14178 \change_unchanged
14179
14180 \end_layout
14181
14182 \begin_layout Section
14183 iopart
14184 \end_layout
14185
14186 \begin_layout Standard
14187 by 
14188 \noun on
14189 Uwe Stöhr
14190 \end_layout
14191
14192 \begin_layout Subsection
14193 Overview
14194 \end_layout
14195
14196 \begin_layout Standard
14197 The iopart package provides a document class to create electronic manuscript
14198  submission to the journals published by the Institute of Physics.
14199  Instructions for the authors how to create a paper using the iopart class
14200  can be downloaded together with the iopart package from the site 
14201 \begin_inset Flex URL
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205
14206 ftp://ftp.iop.org/pub/journals/latex2e
14207 \end_layout
14208
14209 \end_inset
14210
14211 .
14212 \end_layout
14213
14214 \begin_layout Subsection
14215 Writing a paper
14216 \end_layout
14217
14218 \begin_layout Standard
14219 The easiest way to write a paper is to start with the 
14220 \change_deleted -712698321 1501162201
14221 file
14222 \change_inserted -712698321 1501162202
14223 template
14224 \change_unchanged
14225  
14226 \emph on
14227 IOP-article.lyx
14228 \emph default
14229  that is available 
14230 \change_deleted -712698321 1501162208
14231 in \SpecialChar LyX
14232 's examples files folder
14233 \change_inserted -712698321 1501162222
14234 via 
14235 \family sans
14236 File\SpecialChar menuseparator
14237 New From Template\SpecialChar ldots
14238
14239 \change_deleted -712698321 1501162219
14240
14241 \family default
14242 .
14243
14244 \change_unchanged
14245  
14246 \change_deleted -712698321 1501162234
14247 Open this file, save it under a new name, and start writing.
14248
14249 \change_unchanged
14250  The 
14251 \change_deleted -712698321 1501162238
14252 example file
14253 \change_inserted -712698321 1501162239
14254 template
14255 \change_unchanged
14256  explains how to use the special text environments.
14257  Here are the most important advices:
14258 \end_layout
14259
14260 \begin_layout Itemize
14261 To be able to compile your document to a PDF, PS, or DVI, ensure that the
14262  
14263 \change_deleted -712698321 1501162254
14264 two options 
14265 \family sans
14266 Use AMS math package
14267 \family default
14268  in the document settings under 
14269 \family sans
14270 Math Options
14271 \family default
14272  are not used
14273 \change_inserted -712698321 1501162277
14274 no AMS packages are loaded in 
14275 \family sans
14276 Document\SpecialChar menuseparator
14277 Settings\SpecialChar menuseparator
14278 Math Options
14279 \change_unchanged
14280
14281 \family default
14282 !
14283 \end_layout
14284
14285 \begin_layout Itemize
14286
14287 \size normal
14288 The title environment defines the kind of your paper.
14289  So use one of the following environments for the title:
14290 \end_layout
14291
14292 \begin_deeper
14293 \begin_layout Itemize
14294
14295 \family sans
14296 \size normal
14297 Title
14298 \family default
14299  for a Paper
14300 \end_layout
14301
14302 \begin_layout Itemize
14303
14304 \family sans
14305 \size normal
14306 Review
14307 \family default
14308  for a Review
14309 \end_layout
14310
14311 \begin_layout Itemize
14312
14313 \family sans
14314 \size normal
14315 Topical
14316 \family default
14317  for a Topical review
14318 \end_layout
14319
14320 \begin_layout Itemize
14321
14322 \family sans
14323 \size normal
14324 Comment
14325 \family default
14326  for a Comment
14327 \end_layout
14328
14329 \begin_layout Itemize
14330
14331 \family sans
14332 \size normal
14333 Note
14334 \family default
14335  for a Note
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 \size normal
14342 Paper
14343 \family default
14344  for a Paper (same as Title)
14345 \end_layout
14346
14347 \begin_layout Itemize
14348
14349 \family sans
14350 \size normal
14351 Prelim
14352 \family default
14353  for a Preliminary communication
14354 \end_layout
14355
14356 \begin_layout Itemize
14357
14358 \family sans
14359 \size normal
14360 Rapid
14361 \family default
14362  for a Rapid communication
14363 \end_layout
14364
14365 \begin_layout Itemize
14366
14367 \family sans
14368 \size normal
14369 Letter
14370 \family default
14371  for a Letter to the editor
14372 \end_layout
14373
14374 \end_deeper
14375 \begin_layout Itemize
14376
14377 \size normal
14378 All title environments except of 
14379 \family sans
14380 Letter
14381 \family default
14382  can have an optional short title.
14383 \end_layout
14384
14385 \begin_layout Itemize
14386 There is a general title environment 
14387 \family sans
14388 Article
14389 \family default
14390  which is not directly supported by
14391 \change_deleted -712698321 1501162663
14392  the
14393 \change_unchanged
14394  \SpecialChar LyX
14395 .
14396  This can be used as \SpecialChar TeX
14397  code when your document doesn't fit into one of the
14398  other title types.
14399 \end_layout
14400
14401 \begin_layout Standard
14402 For more informations like hints for special table and formula formatting,
14403  look at the IOP author guidelines.
14404 \end_layout
14405
14406 \begin_layout Section
14407 Kluwer
14408 \end_layout
14409
14410 \begin_layout Standard
14411 by 
14412 \noun on
14413 Panayotis Papasotiriou
14414 \end_layout
14415
14416 \begin_layout Subsection
14417 Overview
14418 \end_layout
14419
14420 \begin_layout Standard
14421 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
14422  that facilitates electronic manuscript submission to the journals they
14423  publish.
14424  Most known of them (at least in my domain of interest) are 
14425 \emph on
14426 Astrophysics and Space Science
14427 \emph default
14428  and 
14429 \emph on
14430 Solar Physics
14431 \emph default
14432 , but there are many others (see a complete list at 
14433 \begin_inset Flex URL
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437
14438 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14439 \end_layout
14440
14441 \end_inset
14442
14443 ).
14444  The Kluwer package may be downloaded from the site 
14445 \begin_inset Flex URL
14446 status collapsed
14447
14448 \begin_layout Plain Layout
14449
14450 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14451 \end_layout
14452
14453 \end_inset
14454
14455 .
14456  A complete user guide is contained in that package (but it can also be
14457  downloaded separately).
14458 \end_layout
14459
14460 \begin_layout Standard
14461 \SpecialChar LyX
14462  supports many features of the package but not everything.
14463  However, the \SpecialChar TeX
14464  code needed is reduced to some 
14465 \begin_inset Quotes eld
14466 \end_inset
14467
14468 peculiar
14469 \begin_inset Quotes erd
14470 \end_inset
14471
14472  commands of the package (see
14473 \begin_inset space ~
14474 \end_inset
14475
14476
14477 \begin_inset CommandInset ref
14478 LatexCommand ref
14479 reference "subsec:kluwer_peculiarities"
14480
14481 \end_inset
14482
14483 ).
14484  I have recently used \SpecialChar LyX
14485  to write an article submitted to the 
14486 \emph on
14487 Astrophysics and Space Science
14488 \emph default
14489  without any problem.
14490 \end_layout
14491
14492 \begin_layout Subsection
14493 Writing a paper
14494 \end_layout
14495
14496 \begin_layout Standard
14497 The easiest way to write a paper is to start with the Kluwer template file.
14498  Click on 
14499 \family sans
14500 File\SpecialChar menuseparator
14501 New from
14502 \family default
14503  
14504 \family sans
14505 Template
14506 \family default
14507 , then choose the 
14508 \family typewriter
14509 kluwer.lyx
14510 \family default
14511  template.
14512  This will give an (almost) empty document that includes the most common
14513  fields found in a manuscript and a short description of their use.
14514  As in most templates, simply overwrite the existing text (including the
14515  brackets, 
14516 \family typewriter
14517 <>
14518 \family default
14519 ) with the correct information.
14520 \end_layout
14521
14522 \begin_layout Subsection
14523 Preparing a paper for submission
14524 \end_layout
14525
14526 \begin_layout Standard
14527 As in the AAS\SpecialChar TeX
14528  package, before you submit your paper to a journal you must
14529  
14530 \begin_inset Quotes eld
14531 \end_inset
14532
14533 postprocess
14534 \begin_inset Quotes erd
14535 \end_inset
14536
14537  it as follows.
14538 \end_layout
14539
14540 \begin_layout Enumerate
14541 Export your paper as a \SpecialChar LaTeX
14542  file.
14543  To do this, click on 
14544 \family sans
14545 File\SpecialChar menuseparator
14546 Export\SpecialChar menuseparator
14547 \SpecialChar LaTeX
14548
14549 \family default
14550 .
14551  
14552 \end_layout
14553
14554 \begin_layout Enumerate
14555 Edit the resulting 
14556 \family typewriter
14557 .tex
14558 \family default
14559  file with a text editor and make the following changes
14560 \end_layout
14561
14562 \begin_deeper
14563 \begin_layout Enumerate
14564 remove the comment lines before the 
14565 \family typewriter
14566
14567 \backslash
14568 documentclass
14569 \family default
14570  command,
14571 \end_layout
14572
14573 \begin_layout Enumerate
14574 remove everything between (and including) the 
14575 \family typewriter
14576
14577 \backslash
14578 makeatletter
14579 \family default
14580  and 
14581 \family typewriter
14582
14583 \backslash
14584 makeatother
14585 \family default
14586  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14587  preamble.
14588 \end_layout
14589
14590 \begin_layout Standard
14591 Save the resulting 
14592 \family typewriter
14593 .tex
14594 \family default
14595  file.
14596 \end_layout
14597
14598 \end_deeper
14599 \begin_layout Enumerate
14600 Run the 
14601 \family typewriter
14602 .tex
14603 \family default
14604  file through \SpecialChar LaTeX
14605  as many times as necessary (usually up to three).
14606 \end_layout
14607
14608 \begin_layout Enumerate
14609 View the resulting 
14610 \family typewriter
14611 .dvi
14612 \family default
14613  document using, e.
14614 \begin_inset space \thinspace{}
14615 \end_inset
14616
14617 g.
14618 \begin_inset space \space{}
14619 \end_inset
14620
14621
14622 \family sans
14623 xdvi
14624 \family default
14625 , and check if everything is OK (it should, if you didn't make any mistake).
14626 \end_layout
14627
14628 \begin_layout Subsection
14629 \begin_inset Quotes eld
14630 \end_inset
14631
14632 Peculiarities
14633 \begin_inset Quotes erd
14634 \end_inset
14635
14636  of the Kluwer package
14637 \begin_inset CommandInset label
14638 LatexCommand label
14639 name "subsec:kluwer_peculiarities"
14640
14641 \end_inset
14642
14643
14644 \end_layout
14645
14646 \begin_layout Standard
14647 The Kluwer package has the following 
14648 \begin_inset Quotes eld
14649 \end_inset
14650
14651 peculiarities
14652 \begin_inset Quotes erd
14653 \end_inset
14654
14655 .
14656 \end_layout
14657
14658 \begin_layout Enumerate
14659 It is possible to write multiple articles in the same \SpecialChar LaTeX
14660  file
14661 \begin_inset Foot
14662 status collapsed
14663
14664 \begin_layout Plain Layout
14665 I can't imagine any good reason to do this.
14666 \end_layout
14667
14668 \end_inset
14669
14670 .
14671  Each article must be included in the environment 
14672 \begin_inset Quotes eld
14673 \end_inset
14674
14675 article
14676 \begin_inset Quotes erd
14677 \end_inset
14678
14679 .
14680  Unfortunately, this environment cannot be omitted, even if you write just
14681  one article.
14682  Therefore, each article starts with the command 
14683 \family typewriter
14684
14685 \backslash
14686 begin{article}
14687 \family default
14688  and, obviously, ends with the command 
14689 \family typewriter
14690
14691 \backslash
14692 end{article}
14693 \family default
14694 .
14695  Although this can be implemented in \SpecialChar LyX
14696 , I didn't included it, since it looks
14697  ugly and can confuse the novice user.
14698  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14699  code (the
14700  well-known 
14701 \begin_inset Quotes eld
14702 \end_inset
14703
14704 \SpecialChar TeX
14705  code
14706 \begin_inset Quotes erd
14707 \end_inset
14708
14709 ).
14710 \end_layout
14711
14712 \begin_layout Enumerate
14713 Information given at the beginning of the article (i.
14714 \begin_inset space \thinspace{}
14715 \end_inset
14716
14717 e.
14718 \begin_inset space \space{}
14719 \end_inset
14720
14721 title, subtitle, author, institution, running title, running author, abstract
14722  and keywords) must be included in an environment called 
14723 \begin_inset Quotes eld
14724 \end_inset
14725
14726 opening
14727 \begin_inset Quotes erd
14728 \end_inset
14729
14730 .
14731  This is not implemented in \SpecialChar LyX
14732 , so you must enter title, subtitle etc.
14733 \begin_inset space ~
14734 \end_inset
14735
14736 between two \SpecialChar TeX
14737  code lines (
14738 \family typewriter
14739
14740 \backslash
14741 begin{opening}
14742 \family default
14743  and 
14744 \family typewriter
14745
14746 \backslash
14747 end{opening}
14748 \family default
14749 ).
14750 \end_layout
14751
14752 \begin_layout Enumerate
14753 According to the user manual, the label of each bibliography item must be
14754  written as 
14755 \family typewriter
14756
14757 \backslash
14758 protect
14759 \backslash
14760 citeauthoryear{
14761 \family default
14762 \emph on
14763 author(s)
14764 \family typewriter
14765 \emph default
14766 }{
14767 \family default
14768 \emph on
14769 year
14770 \family typewriter
14771 \emph default
14772 }
14773 \family default
14774 .
14775 \end_layout
14776
14777 \begin_layout Standard
14778 The 
14779 \family typewriter
14780 kluwer.lyx
14781 \family default
14782  template takes care of all these 
14783 \begin_inset Quotes eld
14784 \end_inset
14785
14786 peculiarities
14787 \begin_inset Quotes erd
14788 \end_inset
14789
14790 .
14791  If you start a new paper using this template you don't need to do anything
14792  special.
14793  Just 
14794 \end_layout
14795
14796 \begin_layout Enumerate
14797 don't delete the \SpecialChar TeX
14798  code included in the template, and
14799 \end_layout
14800
14801 \begin_layout Enumerate
14802 copy the example bibliography item included in the template and modify it
14803  as necessary to enter new bibliography items.
14804 \end_layout
14805
14806 \begin_layout Section
14807 Koma-Script
14808 \end_layout
14809
14810 \begin_layout Standard
14811 by 
14812 \noun on
14813 Bernd Rellermeyer
14814 \end_layout
14815
14816 \begin_layout Subsection
14817 Overview
14818 \end_layout
14819
14820 \begin_layout Standard
14821 The \SpecialChar LyX
14822  document classes 
14823 \emph on
14824 article (koma-script)
14825 \emph default
14826
14827 \emph on
14828 report (koma-script)
14829 \emph default
14830
14831 \emph on
14832 book
14833 \emph default
14834  
14835 \emph on
14836 (koma-script)
14837 \emph default
14838 , and 
14839 \emph on
14840 letter
14841 \emph default
14842  
14843 \emph on
14844 (koma-script)
14845 \emph default
14846  correspond to the \SpecialChar LaTeX
14847  document classes 
14848 \family typewriter
14849 scrartcl.cls
14850 \family default
14851
14852 \family typewriter
14853 scrreprt.cls
14854 \family default
14855
14856 \family typewriter
14857 scrbook.cls
14858 \family default
14859 , and 
14860 \family typewriter
14861 scrlettr.cls
14862 \family default
14863 , resp.
14864 \begin_inset space ~
14865 \end_inset
14866
14867 of the Koma-Script family.
14868  They are replacements for the standard document classes 
14869 \family typewriter
14870 article.cls
14871 \family default
14872
14873 \family typewriter
14874 report.cls
14875 \family default
14876
14877 \family typewriter
14878 book.cls
14879 \family default
14880  and 
14881 \family typewriter
14882 letter.cls
14883 \family default
14884 , resp., and fit better to European typography conventions in a number of
14885  points.
14886 \end_layout
14887
14888 \begin_layout Itemize
14889 Standard character size is 11pt in 
14890 \emph on
14891 article (koma-script)
14892 \emph default
14893
14894 \emph on
14895 report (koma-script)
14896 \emph default
14897 , and 
14898 \emph on
14899 book (koma-script)
14900 \emph default
14901 , and 12pt in 
14902 \emph on
14903 letter (koma-script)
14904 \emph default
14905 .
14906 \end_layout
14907
14908 \begin_layout Itemize
14909 Headings, labels of the description environment, and a number of elements
14910  of the 
14911 \emph on
14912 letter (koma-script)
14913 \emph default
14914  document class are set in a bold sans serif font.
14915 \begin_inset Foot
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 There is a big difference between the bold sans serif old cm fonts and new
14920  ec fonts, especially in the appearance of headings.
14921  In comparison, the ec bold sans serif fonts look a bit thin.
14922  Here the \SpecialChar LaTeX
14923  package 
14924 \family typewriter
14925 cmsd.sty by
14926 \family default
14927  
14928 \shape smallcaps
14929 Walter Schmidt
14930 \shape default
14931  helps to produce the 
14932 \begin_inset Quotes eld
14933 \end_inset
14934
14935 usual
14936 \begin_inset Quotes erd
14937 \end_inset
14938
14939  appearance when using the ec fonts.
14940 \end_layout
14941
14942 \end_inset
14943
14944  The numbering of chapter headings is made in the same way as the numbering
14945  of section headings, that is without the extra line 
14946 \begin_inset Quotes eld
14947 \end_inset
14948
14949 Chapter\SpecialChar ldots
14950
14951 \begin_inset Quotes erd
14952 \end_inset
14953
14954 .
14955  In addition, the appearance of the headings can be modified by using a
14956  number of options (in \SpecialChar LyX
14957  to be entered in the field 
14958 \family sans
14959 Extra
14960 \begin_inset space ~
14961 \end_inset
14962
14963 Options
14964 \family default
14965  of the dialog 
14966 \family sans
14967 Layout\SpecialChar menuseparator
14968 Document
14969 \family default
14970 ).
14971  
14972 \end_layout
14973
14974 \begin_layout Itemize
14975 The main means in the Koma-Script document classes to design the type area
14976  are the options 
14977 \family sans
14978 BCOR
14979 \family default
14980  and 
14981 \family sans
14982 DIV
14983 \family default
14984  (in \SpecialChar LyX
14985  to be entered in the extra class options field in the dialog 
14986 \family sans
14987 Document\SpecialChar menuseparator
14988 Settings
14989 \family default
14990 ).
14991  They make a clearer modification of page margins possible as do the options
14992  of the dialog 
14993 \family sans
14994 Document\SpecialChar menuseparator
14995 Settings
14996 \family default
14997 .
14998  
14999 \end_layout
15000
15001 \begin_layout Itemize
15002 The \SpecialChar LaTeX
15003  document classes of the Koma-Script family define a number of additional
15004  commands.
15005  Those part of it which makes sense in \SpecialChar LyX
15006  is implemented in corresponding
15007  paragraph types.
15008 \end_layout
15009
15010 \begin_layout Standard
15011 Detailed descriptions of the \SpecialChar LaTeX
15012  document classes of the Koma-Script family
15013  can be found in the Koma-Script documentation 
15014 \emph on
15015 scrguide
15016 \emph default
15017  (German) and 
15018 \emph on
15019 scrguien
15020 \emph default
15021  (English).
15022 \end_layout
15023
15024 \begin_layout Subsection
15025 article (koma-script), report (koma-script), and book (koma-script)
15026 \end_layout
15027
15028 \begin_layout Standard
15029 The document classes 
15030 \emph on
15031 article (koma-script)
15032 \emph default
15033
15034 \emph on
15035 report (koma-script)
15036 \emph default
15037 , and 
15038 \emph on
15039 book
15040 \emph default
15041  
15042 \emph on
15043 (koma-script)
15044 \emph default
15045  are implemented in the layout files 
15046 \family typewriter
15047 scrartcl.layout
15048 \family default
15049
15050 \family typewriter
15051 scrreprt.layout
15052 \family default
15053 , and 
15054 \family typewriter
15055 scrbook.layout
15056 \family default
15057 , resp.
15058  They contain all the paragraph types of the corresponding standard document
15059  classes 
15060 \emph on
15061 article
15062 \emph default
15063
15064 \emph on
15065 report
15066 \emph default
15067 , and 
15068 \emph on
15069 book
15070 \emph default
15071 , resp., partly modified, with the exception of the \SpecialChar LyX
15072  specific 
15073 \family sans
15074 List
15075 \family default
15076 -type, which is replaced by the new 
15077 \family sans
15078 Labeling
15079 \family default
15080 -type having the same functionality.
15081  Beside the 
15082 \family sans
15083 Labeling
15084 \family default
15085 -Type there is a number of new paragraph types added.
15086  They are 
15087 \emph on
15088 not
15089 \emph default
15090  part of 
15091 \emph on
15092 letter (koma-script)
15093 \emph default
15094 .
15095 \end_layout
15096
15097 \begin_layout Itemize
15098
15099 \family sans
15100 Addpart, Addchap
15101 \family default
15102
15103 \family sans
15104 Addsec
15105 \family default
15106 : are equivalents to 
15107 \family sans
15108 Part*, Chapter*
15109 \family default
15110  and 
15111 \family sans
15112 Section*
15113 \family default
15114 , resp., additionally inserting an entry in the table of contents.
15115  
15116 \family sans
15117 Addpart
15118 \family default
15119  and 
15120 \family sans
15121 Addchap
15122 \family default
15123  are not contained in 
15124 \emph on
15125 article (koma-script)
15126 \emph default
15127 .
15128 \end_layout
15129
15130 \begin_layout Itemize
15131
15132 \family sans
15133 Addchap*
15134 \family default
15135
15136 \family sans
15137 Addsec*
15138 \family default
15139 : behave exactly as 
15140 \family sans
15141 Addchap
15142 \family default
15143  and 
15144 \family sans
15145 Addsec
15146 \family default
15147 , resp., additionally clearing running heads.
15148  
15149 \family sans
15150 Addchap*
15151 \family default
15152  is not contained in 
15153 \emph on
15154 article (koma-script)
15155 \emph default
15156 .
15157 \begin_inset Foot
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 There is also an 
15162 \family typewriter
15163
15164 \backslash
15165 addpart*
15166 \family default
15167  command in 
15168 \emph on
15169 book (koma-script)
15170 \emph default
15171  and in 
15172 \emph on
15173 report (koma-script)
15174 \emph default
15175 , but since this is identical to 
15176 \family sans
15177 Part*
15178 \family default
15179 , is has not been implemented in \SpecialChar LyX
15180 .
15181 \end_layout
15182
15183 \end_inset
15184
15185
15186 \end_layout
15187
15188 \begin_layout Itemize
15189
15190 \family sans
15191 Minisec
15192 \family default
15193 : generates a heading directly above the following paragraph in the standard
15194  character size without affecting the structure of the document.
15195 \end_layout
15196
15197 \begin_layout Itemize
15198
15199 \family sans
15200 Captionabove
15201 \family default
15202  and 
15203 \family sans
15204 Captionbelow
15205 \family default
15206  are special captions which respect the different space settings needed
15207  for captions placed above or below an element (if you follow strict typographic
15208  rules, you might want to place table captions always above the table).
15209  You can also use the class option 
15210 \family typewriter
15211 tablecaptionsabove
15212 \family default
15213 , which will switch 
15214 \family sans
15215 caption
15216 \family default
15217  to 
15218 \family sans
15219 captionabove
15220 \family default
15221  for tables and 
15222 \family sans
15223 captionbelow
15224 \family default
15225  for figures.
15226  You need at least Koma-Script version 2.8q to use this.
15227 \end_layout
15228
15229 \begin_layout Itemize
15230
15231 \family sans
15232 Dictum
15233 \family default
15234 : can be used to set a bonmot, e.
15235 \begin_inset space \thinspace{}
15236 \end_inset
15237
15238 g.
15239 \begin_inset space \space{}
15240 \end_inset
15241
15242 at the beginning of a chapter.
15243  If you use the optional argument (
15244 \family sans
15245 Insert\SpecialChar menuseparator
15246
15247 \change_deleted -712698321 1501163301
15248 Short
15249 \begin_inset space ~
15250 \end_inset
15251
15252 Title
15253 \change_inserted -712698321 1501163306
15254 Dictum
15255 \begin_inset space ~
15256 \end_inset
15257
15258 Author
15259 \change_unchanged
15260
15261 \family default
15262 ), you can insert the dictum's author there.
15263  Dictum and author are separated by a line.
15264  You need at least Koma-Script version 2.8q to use this.
15265  
15266 \family sans
15267 Dictum
15268 \family default
15269  is not contained in 
15270 \emph on
15271 article (koma-script)
15272 \emph default
15273 .
15274 \end_layout
15275
15276 \begin_layout Standard
15277 The following types, together with the standard types 
15278 \family sans
15279 Title
15280 \family default
15281
15282 \family sans
15283 Author
15284 \family default
15285 , and 
15286 \family sans
15287 Date
15288 \family default
15289 , form the title area of the document.
15290  They must be entered ahead of the first 
15291 \begin_inset Quotes eld
15292 \end_inset
15293
15294 ordinary
15295 \begin_inset Quotes erd
15296 \end_inset
15297
15298  paragraph.
15299 \begin_inset Foot
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 The corresponding \SpecialChar LaTeX
15304  commands must appear before the 
15305 \family typewriter
15306
15307 \backslash
15308 maketitle
15309 \family default
15310  command.
15311 \end_layout
15312
15313 \end_inset
15314
15315  When such a type is used more than once, the latter usage overwrites the
15316  former one, that means, for every type only the latest usage is valid.
15317  The order of the different types however has, like 
15318 \family sans
15319 Title
15320 \family default
15321
15322 \family sans
15323 Author
15324 \family default
15325 , and 
15326 \family sans
15327 Date
15328 \family default
15329 , no effect on the appearance of the produced document.
15330 \end_layout
15331
15332 \begin_layout Itemize
15333
15334 \family sans
15335 Subject
15336 \family default
15337 : produces a centered paragraph above the ordinary title (
15338 \family sans
15339 Title
15340 \family default
15341
15342 \family sans
15343 Author
15344 \family default
15345
15346 \family sans
15347 Date
15348 \family default
15349 ) for the subject of the document.
15350 \end_layout
15351
15352 \begin_layout Itemize
15353
15354 \family sans
15355 Publishers
15356 \family default
15357 : produces a centered paragraph below the ordinary title (
15358 \family sans
15359 Title
15360 \family default
15361
15362 \family sans
15363 Author
15364 \family default
15365
15366 \family sans
15367 Date
15368 \family default
15369 ) for the publishers' name.
15370 \end_layout
15371
15372 \begin_layout Itemize
15373
15374 \family sans
15375 Dedication
15376 \family default
15377 : in 
15378 \emph on
15379 report (koma-script)
15380 \emph default
15381  and 
15382 \emph on
15383 book (koma-script)
15384 \emph default
15385  produces a centered paragraph on its own page behind the title page, or
15386  in 
15387 \emph on
15388 article (koma-script)
15389 \emph default
15390  produces a centered paragraph below the ordinary title (
15391 \family sans
15392 Title
15393 \family default
15394
15395 \family sans
15396 Author
15397 \family default
15398
15399 \family sans
15400 Date
15401 \family default
15402
15403 \family sans
15404 Publishers
15405 \family default
15406 ) for a dedication.
15407 \end_layout
15408
15409 \begin_layout Itemize
15410
15411 \family sans
15412 Titlehead
15413 \family default
15414 : produces a left aligned paragraph above the ordinary title (
15415 \family sans
15416 Title
15417 \family default
15418
15419 \family sans
15420 Author
15421 \family default
15422
15423 \family sans
15424 Date
15425 \family default
15426
15427 \family sans
15428 Subject
15429 \family default
15430 ) for a document`s head.
15431 \end_layout
15432
15433 \begin_layout Itemize
15434
15435 \family sans
15436 Uppertitleback
15437 \family default
15438 : produces in a double-sided print in 
15439 \emph on
15440 report (koma-script)
15441 \emph default
15442  and 
15443 \emph on
15444 book (koma-script)
15445 \emph default
15446  a left-aligned paragraph at the top of the title page`s back or has no
15447  effect in a single-sided print or in 
15448 \emph on
15449 article (koma-script)
15450 \emph default
15451 .
15452 \end_layout
15453
15454 \begin_layout Itemize
15455
15456 \family sans
15457 Lowertitleback
15458 \family default
15459 : produces in a double-sided print in 
15460 \emph on
15461 report (koma-script)
15462 \emph default
15463  and 
15464 \emph on
15465 book (koma-script)
15466 \emph default
15467  a left-aligned paragraph at the bottom of the title page`s back or has
15468  no effect in a single-sided print or in 
15469 \emph on
15470 article (koma-script)
15471 \emph default
15472 .
15473 \end_layout
15474
15475 \begin_layout Itemize
15476
15477 \family sans
15478 Extratitle
15479 \family default
15480 : produces a special 
15481 \begin_inset Quotes eld
15482 \end_inset
15483
15484 dirty
15485 \begin_inset Quotes erd
15486 \end_inset
15487
15488  page ahead of the actual document containing a paragraph without special
15489  formatting.
15490 \end_layout
15491
15492 \begin_layout Standard
15493 The layout files for the document classes 
15494 \emph on
15495 article (koma-script)
15496 \emph default
15497
15498 \emph on
15499 report (koma-script)
15500 \emph default
15501 , and 
15502 \emph on
15503 book (koma-script)
15504 \emph default
15505  do include the file 
15506 \family typewriter
15507 scrmacros.inc
15508 \family default
15509 .
15510  This is thought of as a place to define your own types.
15511  Copy scrmacros
15512 \family typewriter
15513 .inc
15514 \family default
15515  in your personal layout directory and edit the file!
15516 \end_layout
15517
15518 \begin_layout Subsection
15519 letter (koma-script)
15520 \end_layout
15521
15522 \begin_layout Description
15523
15524 \change_inserted -712698321 1501163945
15525 Note: This section discusses the obsolete 
15526 \family sans
15527 KOMA-Script-Letter (v.
15528 \begin_inset space ~
15529 \end_inset
15530
15531 1)
15532 \family default
15533 , which is not even included anymore in recent KOMA releases.
15534  Please refer to the next section for the current KOMA-Script-Letter class
15535  (v.
15536 \begin_inset space ~
15537 \end_inset
15538
15539 2)!
15540 \end_layout
15541
15542 \begin_layout Standard
15543 \noindent
15544 The document class 
15545 \emph on
15546 letter (koma-script)
15547 \emph default
15548  is implemented in the layout file 
15549 \family typewriter
15550 scrlettr.layout
15551 \family default
15552 .
15553  It contains all the paragraph types of the corresponding standard document
15554  class 
15555 \emph on
15556 letter
15557 \emph default
15558 , partly modified, with the exception of the \SpecialChar LyX
15559  specific types 
15560 \family sans
15561 \SpecialChar LyX
15562 -Code
15563 \family default
15564  and 
15565 \family sans
15566 Comment
15567 \family default
15568  and the 
15569 \family sans
15570 List
15571 \family default
15572  type, which is replaced by the new 
15573 \family sans
15574 Labeling
15575 \family default
15576  type.
15577  In addition, it contains, in contrast to the standard document class, the
15578  standard types 
15579 \family sans
15580 \SpecialChar LaTeX
15581
15582 \family default
15583
15584 \family sans
15585 Quotation
15586 \family default
15587
15588 \family sans
15589 Quote
15590 \family default
15591 , and 
15592 \family sans
15593 Verse
15594 \family default
15595 .
15596  Furthermore, there are a number of new letter specific types.
15597 \end_layout
15598
15599 \begin_layout Standard
15600 The appearance of the letter produced by this document class can be controlled
15601  by a number of \SpecialChar LaTeX
15602  commands, which you can put in the \SpecialChar LaTeX
15603  preamble.
15604 \begin_inset Foot
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608 For example, the standard appearance of the letter`s heading, consisting
15609  of name and address, is quite self-willed.
15610  An 
15611 \begin_inset Quotes eld
15612 \end_inset
15613
15614 ordinary
15615 \begin_inset Quotes erd
15616 \end_inset
15617
15618  heading is produced by the following \SpecialChar LaTeX
15619  commands in the preamble:
15620 \end_layout
15621
15622 \begin_layout LyX-Code
15623
15624 \backslash
15625 firsthead{
15626 \backslash
15627 parbox[b]{
15628 \backslash
15629 textwidth}
15630 \end_layout
15631
15632 \begin_layout LyX-Code
15633   {
15634 \backslash
15635 ignorespaces 
15636 \backslash
15637 fromname
15638 \backslash
15639
15640 \backslash
15641  
15642 \backslash
15643 ignorespaces 
15644 \backslash
15645 fromaddress}} 
15646 \end_layout
15647
15648 \begin_layout LyX-Code
15649
15650 \backslash
15651 nexthead{
15652 \backslash
15653 parbox[b]{
15654 \backslash
15655 textwidth}
15656 \end_layout
15657
15658 \begin_layout LyX-Code
15659   {
15660 \backslash
15661 ignorespaces 
15662 \backslash
15663 fromname 
15664 \backslash
15665 hfill 
15666 \backslash
15667 ignorespaces 
15668 \backslash
15669 pagename
15670 \backslash
15671  
15672 \backslash
15673 thepage}}
15674 \end_layout
15675
15676 \end_inset
15677
15678  A detailed German description of such \SpecialChar LaTeX
15679  commands can be found in the Koma-Script
15680  documentation 
15681 \emph on
15682 scrguide
15683 \emph default
15684 .
15685  With it, the letter's author can produce his personal letter layout.
15686 \end_layout
15687
15688 \begin_layout Standard
15689 The types 
15690 \family sans
15691 Letter
15692 \family default
15693  and 
15694 \family sans
15695 Opening
15696 \family default
15697  define the beginning of the letter and must be used in every letter.
15698  To emphasize them in the \SpecialChar LyX
15699  document class, they are marked with the letter
15700  
15701 \shape italic
15702 L
15703 \shape default
15704  or 
15705 \shape italic
15706 O
15707 \shape default
15708 , resp.
15709 \begin_inset space ~
15710 \end_inset
15711
15712 in the left margin.
15713  It is possible to write any number of letters in one file.
15714  An 
15715 \family sans
15716 Opening
15717 \family default
15718  type produces a new letter using the same addressee and a 
15719 \family sans
15720 Letter
15721 \family default
15722  type produces a new addressee.
15723  The types 
15724 \family sans
15725 Closing
15726 \family default
15727
15728 \family sans
15729 PS
15730 \family default
15731
15732 \family sans
15733 CC
15734 \family default
15735 , and 
15736 \family sans
15737 Encl
15738 \family default
15739  are ordinary paragraph types and can also be used several times in one
15740  and the same letter.
15741 \end_layout
15742
15743 \begin_layout Itemize
15744
15745 \family sans
15746 Letter
15747 \family default
15748 : produces a paragraph for the addressee and implicitly defines the beginning
15749  of the letter.
15750 \end_layout
15751
15752 \begin_layout Itemize
15753
15754 \family sans
15755 Opening
15756 \family default
15757 : produces a paragraph for the form of address and implicitly produces a
15758  new letter.
15759 \end_layout
15760
15761 \begin_layout Itemize
15762
15763 \family sans
15764 Closing
15765 \family default
15766 : produces a paragraph for a close.
15767 \end_layout
15768
15769 \begin_layout Itemize
15770
15771 \family sans
15772 PS
15773 \family default
15774 : produces a paragraph for a postscript.
15775 \end_layout
15776
15777 \begin_layout Itemize
15778
15779 \family sans
15780 CC
15781 \family default
15782 : produces a paragraph for a distribution list.
15783 \end_layout
15784
15785 \begin_layout Itemize
15786
15787 \family sans
15788 Encl
15789 \family default
15790 : produces a paragraph for enclosures.
15791 \end_layout
15792
15793 \begin_layout Standard
15794 The types 
15795 \family sans
15796 Name
15797 \family default
15798
15799 \family sans
15800 Signature
15801 \family default
15802
15803 \family sans
15804 Address
15805 \family default
15806
15807 \family sans
15808 Telephone
15809 \family default
15810
15811 \family sans
15812 Place
15813 \family default
15814
15815 \family sans
15816 Backaddress
15817 \family default
15818
15819 \family sans
15820 Specialmail
15821 \family default
15822
15823 \family sans
15824 Location
15825 \family default
15826
15827 \family sans
15828 Title
15829 \family default
15830 , and 
15831 \family sans
15832 Subject
15833 \family default
15834  are input types provided with a label to enter information, which will
15835  be processed by the document class.
15836 \begin_inset Foot
15837 status collapsed
15838
15839 \begin_layout Plain Layout
15840 It could be seen as a matter of inconsequence, that the types 
15841 \family sans
15842 Letter
15843 \family default
15844  and 
15845 \family sans
15846 Opening
15847 \family default
15848  described above are not such input types as well.
15849  Because of the special meaning of those types, however, I have implemented
15850  them as ordinary paragraph types with a one letter mark in the left margin.
15851  Moreover, it would affect my feeling of symmetry, if the 
15852 \family sans
15853 Opening
15854 \family default
15855  type and the 
15856 \family sans
15857 Closing
15858 \family default
15859  type had such a serious different appearance.
15860 \end_layout
15861
15862 \end_inset
15863
15864  The types must be used ahead of the corresponding 
15865 \family sans
15866 Opening
15867 \family default
15868  type.
15869 \end_layout
15870
15871 \begin_layout Standard
15872 An implementation of these types in a WYSIWYG fashion does not seem to make
15873  sense, because the real appearance of the produced letter does not only
15874  depend on the usage of the particular type, but also on other factors.
15875  For example, a signature entered in the 
15876 \family sans
15877 Signature
15878 \family default
15879  type will in the standard behavior appear in the produced letter only,
15880  when in the same letter also a 
15881 \family sans
15882 Closing
15883 \family default
15884  type is used.
15885  The entered value of the 
15886 \family sans
15887 Telephone
15888 \family default
15889  type will in the standard behavior not appear in the produced letter at
15890  all.
15891  The possibility to design the letter`s heading freely is already indicated
15892  in a footnote above.
15893 \end_layout
15894
15895 \begin_layout Standard
15896 The input types can also be used as empty paragraphs.
15897  This makes sense e.
15898 \begin_inset space \thinspace{}
15899 \end_inset
15900
15901 g.
15902 \begin_inset space \space{}
15903 \end_inset
15904
15905 for the 
15906 \family sans
15907 Signature
15908 \family default
15909  type.
15910  If the 
15911 \family sans
15912 Signature
15913 \family default
15914  type is not used at all, in the standard behavior the value of the 
15915 \family sans
15916 Name
15917 \family default
15918  type is used as signature, whereas if an empty 
15919 \family sans
15920 Signature
15921 \family default
15922  type is used, no signature value is defined.
15923 \end_layout
15924
15925 \begin_layout Standard
15926 By using the input types it is possible to write a letter template, containing
15927  filled input types with your personal dates (name, address, etc.) and empty
15928  input types for other dates you want to enter.
15929 \end_layout
15930
15931 \begin_layout Itemize
15932
15933 \family sans
15934 Name
15935 \family default
15936 : sender's name, in the standard behavior appears as a centered paragraph
15937  in small caps in the letter`s heading.
15938 \end_layout
15939
15940 \begin_layout Itemize
15941
15942 \family sans
15943 Signature
15944 \family default
15945 : sender's signature, in the standard behavior appears below the 
15946 \family sans
15947 Closing
15948 \family default
15949  type.
15950  If no 
15951 \family sans
15952 Signature
15953 \family default
15954  type is used, the value of the 
15955 \family sans
15956 Name
15957 \family default
15958  type appears instead.
15959 \end_layout
15960
15961 \begin_layout Itemize
15962
15963 \family sans
15964 Address
15965 \family default
15966 : sender's address, in the standard behavior appears in a centered paragraph
15967  in the letter`s heading below the sender's name.
15968 \end_layout
15969
15970 \begin_layout Itemize
15971
15972 \family sans
15973 Telephone
15974 \family default
15975 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15976  variable
15977  
15978 \family typewriter
15979
15980 \backslash
15981 telephonenum
15982 \family default
15983 .
15984 \end_layout
15985
15986 \begin_layout Itemize
15987
15988 \family sans
15989 Place
15990 \family default
15991 : place of the letter`s making.
15992 \end_layout
15993
15994 \begin_layout Itemize
15995
15996 \family sans
15997 Date
15998 \family default
15999 : date of the letter`s making.
16000  
16001 \family sans
16002 Place
16003 \family default
16004  and 
16005 \family sans
16006 Date
16007 \family default
16008 , in the standard behavior, produce the place and the date in a right-aligned
16009  line below the addressee's field.
16010  If an empty 
16011 \family sans
16012 Date
16013 \family default
16014  type is used, neither place nor date appear, independent of the value of
16015  the 
16016 \family sans
16017 Place
16018 \family default
16019  type.
16020  If no 
16021 \family sans
16022 Date
16023 \family default
16024  type is used, the date of the letter `s production is used.
16025 \end_layout
16026
16027 \begin_layout Itemize
16028
16029 \family sans
16030 Backaddress
16031 \family default
16032 : sender`s back address, in the standard behavior appears above the addressee's
16033  field in a small sans serif font.
16034 \end_layout
16035
16036 \begin_layout Itemize
16037
16038 \family sans
16039 Specialmail
16040 \family default
16041 : special mail information, in the standard behavior appears underlined
16042  above the addressee's field below the back address.
16043 \end_layout
16044
16045 \begin_layout Itemize
16046
16047 \family sans
16048 Location
16049 \family default
16050 : additional information, in the standard behavior appears on right side
16051  below the addressee`s field.
16052 \end_layout
16053
16054 \begin_layout Itemize
16055
16056 \family sans
16057 Title
16058 \family default
16059 : the letter's title, in the standard behavior appears in a big, bold, sans
16060  serif font above the subject.
16061 \end_layout
16062
16063 \begin_layout Itemize
16064
16065 \family sans
16066 Subject
16067 \family default
16068 : the letter's subject, in the standard behavior appears in a bold font
16069  above the 
16070 \family sans
16071 Opening
16072 \family default
16073  paragraph.
16074 \end_layout
16075
16076 \begin_layout Standard
16077 The types 
16078 \family sans
16079 Yourref
16080 \family default
16081
16082 \family sans
16083 Yourmail
16084 \family default
16085
16086 \family sans
16087 Myref
16088 \family default
16089
16090 \family sans
16091 Customer
16092 \family default
16093 , and 
16094 \family sans
16095 Invoice
16096 \family default
16097  produce a business letter like line above the 
16098 \family sans
16099 Title
16100 \family default
16101  line containing the fields 
16102 \begin_inset Quotes eld
16103 \end_inset
16104
16105 Your ref.
16106 \begin_inset Quotes erd
16107 \end_inset
16108
16109
16110 \begin_inset Quotes eld
16111 \end_inset
16112
16113 Your letter of
16114 \begin_inset Quotes erd
16115 \end_inset
16116
16117
16118 \begin_inset Quotes eld
16119 \end_inset
16120
16121 Our ref.
16122 \begin_inset Quotes erd
16123 \end_inset
16124
16125
16126 \begin_inset Quotes eld
16127 \end_inset
16128
16129 Customer no.
16130 \begin_inset Quotes erd
16131 \end_inset
16132
16133
16134 \begin_inset Quotes eld
16135 \end_inset
16136
16137 Invoice no.
16138 \begin_inset Quotes erd
16139 \end_inset
16140
16141 , and 
16142 \begin_inset Quotes eld
16143 \end_inset
16144
16145 Date
16146 \begin_inset Quotes erd
16147 \end_inset
16148
16149 .
16150  For the date field, the value of the 
16151 \family sans
16152 Date
16153 \family default
16154  type is used.
16155  If one of these 
16156 \begin_inset Quotes eld
16157 \end_inset
16158
16159 business letter types
16160 \begin_inset Quotes erd
16161 \end_inset
16162
16163  is used, the value of the 
16164 \family sans
16165 Place
16166 \family default
16167  type however does not appear, but only the \SpecialChar LaTeX
16168  variable 
16169 \family typewriter
16170
16171 \backslash
16172 fromplace
16173 \family default
16174  is set.
16175  The ordinary output of place and date in a right-aligned line below the
16176  addressee`s field is suppressed.
16177  The types are implemented as input types provided with a label and must
16178  be used ahead of the corresponding 
16179 \family sans
16180 Opening
16181 \family default
16182  type.
16183 \end_layout
16184
16185 \begin_layout Itemize
16186
16187 \family sans
16188 Yourref
16189 \family default
16190 : Your ref.
16191 \end_layout
16192
16193 \begin_layout Itemize
16194
16195 \family sans
16196 Yourmail
16197 \family default
16198 : Your letter of.
16199 \end_layout
16200
16201 \begin_layout Itemize
16202
16203 \family sans
16204 Myref
16205 \family default
16206 : Our ref.
16207 \end_layout
16208
16209 \begin_layout Itemize
16210
16211 \family sans
16212 Customer
16213 \family default
16214 : Customer no.
16215 \end_layout
16216
16217 \begin_layout Itemize
16218
16219 \family sans
16220 Invoice
16221 \family default
16222 : Invoice no.
16223 \end_layout
16224
16225 \begin_layout Subsection
16226 The new letter class: letter (koma-script v.2)
16227 \end_layout
16228
16229 \begin_layout Standard
16230 by 
16231 \noun on
16232 Jürgen Spitzmüller
16233 \end_layout
16234
16235 \begin_layout Standard
16236 \begin_inset VSpace medskip
16237 \end_inset
16238
16239
16240 \end_layout
16241
16242 \begin_layout Standard
16243 \noindent
16244 Koma-Script version 2.8 has introduced a new letter class 
16245 \family typewriter
16246 scrlttr2
16247 \family default
16248  which supersedes the now unsupported 
16249 \family typewriter
16250 scrlettr
16251 \family default
16252 .
16253  It has — on the \SpecialChar LaTeX
16254  side — a completely new interface and is not compatible
16255  with the old class.
16256  Therefore, \SpecialChar LyX
16257  supports both, though it is recommended you use the new class.
16258 \end_layout
16259
16260 \begin_layout Standard
16261 This class covers the same functionality as 
16262 \emph on
16263 letter (koma-script),
16264 \emph default
16265  and a few more.
16266  The basic items are 
16267 \family sans
16268 Address
16269 \family default
16270  (receiver's address, same as 
16271 \family sans
16272 Letter
16273 \family default
16274  in the old layout), 
16275 \family sans
16276 Opening
16277 \family default
16278 , and 
16279 \family sans
16280 Closing
16281 \family default
16282 .
16283  
16284 \family sans
16285 NextAddress
16286 \family default
16287  will start a new letter (i.
16288 \begin_inset space \thinspace{}
16289 \end_inset
16290
16291 e.
16292 \begin_inset space \space{}
16293 \end_inset
16294
16295 you can write several letters per document).
16296  New elements are sender's 
16297 \family sans
16298 E-Mail
16299 \family default
16300
16301 \family sans
16302 URL
16303 \family default
16304
16305 \family sans
16306 Fax
16307 \family default
16308
16309 \family sans
16310 Bank
16311 \family default
16312  and the possibility to use a 
16313 \family sans
16314 Logo
16315 \family default
16316  (via 
16317 \family sans
16318 Insert\SpecialChar menuseparator
16319 Graphics
16320 \family default
16321 ) in the header.
16322 \end_layout
16323
16324 \begin_layout Standard
16325 The biggest improvement is, though, that the letter's layout is configurable
16326  to meet almost any needs.
16327  This can be done via the preamble or with a special style file (Letter
16328  Class Option, extension 
16329 \family typewriter
16330 *.lco
16331 \family default
16332 ), that will be read in as a class option.
16333 \begin_inset Foot
16334 status collapsed
16335
16336 \begin_layout Plain Layout
16337 The KOMA package comes with some default 
16338 \family typewriter
16339 *.lco
16340 \family default
16341  files.
16342  There is, for instance, a 
16343 \family typewriter
16344 DIN.lco
16345 \family default
16346  file that follows german typesetting rules, or a 
16347 \family typewriter
16348 KOMAold.lco
16349 \family default
16350  that provides the default layout of the old 
16351 \family typewriter
16352 scrlettr
16353 \family default
16354  class.
16355  The latter can be loaded with the class option 
16356 \family typewriter
16357 KOMAold
16358 \family default
16359 , inserted via the 
16360 \family sans
16361 Layout\SpecialChar menuseparator
16362 Document\SpecialChar menuseparator
16363 Extra Options
16364 \family default
16365  field.
16366 \end_layout
16367
16368 \end_inset
16369
16370  Have a look at the 
16371 \emph on
16372 koma-letter2
16373 \emph default
16374  template that is included in \SpecialChar LyX
16375  for examples.
16376  A detailed description is to be found in the Koma-Script documentation
16377  (
16378 \emph on
16379 scrguide
16380 \emph default
16381 ).
16382 \end_layout
16383
16384 \begin_layout Subsection
16385 Problems
16386 \end_layout
16387
16388 \begin_layout Standard
16389 Visualizing the Koma-Script document classes in \SpecialChar LyX
16390 , the \SpecialChar LyX
16391  internals cause some
16392  problems.
16393 \end_layout
16394
16395 \begin_layout Itemize
16396 The chapter number of a 
16397 \family sans
16398 Chapter
16399 \family default
16400  type appears on a line of its own above the chapter heading instead of
16401  appearing in the same line ahead of it.
16402  The cause for that is the \SpecialChar LyX
16403  internal behavior for the labeltype 
16404 \family sans
16405 Counter_Chapter
16406 \family default
16407  in the layout file.
16408 \end_layout
16409
16410 \begin_layout Itemize
16411 The headings of the types 
16412 \family sans
16413 Addchap
16414 \family default
16415  and 
16416 \family sans
16417 Addsec
16418 \family default
16419  are only put in the 
16420 \begin_inset Quotes eld
16421 \end_inset
16422
16423 true
16424 \begin_inset Quotes erd
16425 \end_inset
16426
16427  \SpecialChar LaTeX
16428  table of contents, but not in the \SpecialChar LyX
16429  table of contents (
16430 \family sans
16431 Document\SpecialChar menuseparator
16432 Table
16433 \begin_inset space ~
16434 \end_inset
16435
16436 of
16437 \begin_inset space ~
16438 \end_inset
16439
16440 Contents
16441 \family default
16442 ).
16443 \end_layout
16444
16445 \begin_layout Itemize
16446 The paragraphs in a 
16447 \emph on
16448 letter
16449 \emph default
16450  document class appear in a skip separation mode, not indented.
16451  This is the standard behavior, no special \SpecialChar LaTeX
16452  commands are needed for that.
16453  But in the 
16454 \family sans
16455 Document\SpecialChar menuseparator
16456 Settings
16457 \family default
16458  dialog the corresponding radio button indicates 
16459 \family sans
16460 Indent
16461 \family default
16462 .
16463  A 
16464 \family sans
16465 Skip
16466 \family default
16467  value always has the effect that extra \SpecialChar LaTeX
16468  commands are inserted in the document
16469  to produce the gap, which is not what is wanted in this case.
16470 \end_layout
16471
16472 \begin_layout Section
16473 Memoir
16474 \end_layout
16475
16476 \begin_layout Standard
16477 By 
16478 \noun on
16479 Jürgen Spitzmüller
16480 \end_layout
16481
16482 \begin_layout Subsection
16483 Overview
16484 \end_layout
16485
16486 \begin_layout Standard
16487 Memoir is a very powerful and constantly evolving class.
16488  It has been designed with regard to fictional and non-fictional literature.
16489  Its aim is to let the user have maximum control over the typesetting of
16490  his document.
16491  Memoir is based on the standard book class, but it can also emulate the
16492  article class (see below).
16493 \end_layout
16494
16495 \begin_layout Standard
16496 Peter Wilson, the developer of Memoir, is known as the author of lots of
16497  useful packages in the \SpecialChar LaTeX
16498  world.
16499  Most of them have been merged with Memoir.
16500  Therefore, it is much easier to layout the table of contents, appendices,
16501  chapter designs and such.
16502  \SpecialChar LyX
16503 , though, does not support all of these goodies natively.
16504  Some of them might be added to forthcoming releases
16505 \begin_inset Foot
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509 You are invited to send suggestions to 
16510 \begin_inset Flex URL
16511 status collapsed
16512
16513 \begin_layout Plain Layout
16514
16515 lyx-devel@lists.lyx.org
16516 \end_layout
16517
16518 \end_inset
16519
16520 .
16521 \end_layout
16522
16523 \end_inset
16524
16525 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
16526 's framework.
16527  Of course you can still use all features with the help of some native \SpecialChar LaTeX
16528
16529  commands (\SpecialChar TeX
16530  code
16531 \begin_inset Foot
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Cf.
16536 \begin_inset ERT
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540
16541
16542 \backslash
16543  
16544 \end_layout
16545
16546 \end_inset
16547
16548 section
16549 \begin_inset space ~
16550 \end_inset
16551
16552
16553 \begin_inset CommandInset ref
16554 LatexCommand ref
16555 reference "sec:Inserting-TeX-Code"
16556
16557 \end_inset
16558
16559  for details.
16560 \end_layout
16561
16562 \end_inset
16563
16564 ).
16565  In this section, we can only list those features that are natively supported
16566  by \SpecialChar LyX
16567 .
16568  For detailed descriptions (and for the rest of features) we recommend you
16569  have a look at the detailed manual of the Memoir class
16570 \begin_inset Foot
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574 Cf.
16575 \begin_inset ERT
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579
16580
16581 \backslash
16582  
16583 \end_layout
16584
16585 \end_inset
16586
16587
16588 \begin_inset Flex URL
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592
16593 CTAN:/macros/latex/memoir/memman.pdf
16594 \end_layout
16595
16596 \end_inset
16597
16598 .
16599 \end_layout
16600
16601 \end_inset
16602
16603 , which is not only a user guide for the class, but also both a comprehensive
16604  description on good typesetting and a superb example for good typesetting
16605  itself.
16606 \end_layout
16607
16608 \begin_layout Subsection
16609 Basic features and restrictions
16610 \end_layout
16611
16612 \begin_layout Standard
16613 Memoir supports basically all features of the standard book classes.
16614  There are, however, some differences, as follows:
16615 \end_layout
16616
16617 \begin_layout Description
16618 Font
16619 \begin_inset space ~
16620 \end_inset
16621
16622 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16623 \end_layout
16624
16625 \begin_layout Description
16626 Page
16627 \begin_inset space ~
16628 \end_inset
16629
16630 style: The fancy page style is not supported, due to a command clash between
16631  Memoir and the fancyhdr package (they both define a command with the same
16632  name, which confuses \SpecialChar LaTeX
16633 ).
16634  Instead, Memoir comes with a number of its own page styles (see 
16635 \change_deleted -712698321 1501165256
16636
16637 \family sans
16638 Layout\SpecialChar menuseparator
16639
16640 \change_unchanged
16641 Document\SpecialChar menuseparator
16642
16643 \change_inserted -712698321 1501165264
16644 Settings\SpecialChar menuseparator
16645
16646 \change_unchanged
16647 Page
16648 \begin_inset space ~
16649 \end_inset
16650
16651 Style
16652 \family default
16653 ).
16654  If you want to use these for the chapter pages, you have to use the command
16655  
16656 \family typewriter
16657
16658 \backslash
16659 chapterstyle
16660 \family default
16661  in the main text or in preamble (e.
16662 \begin_inset space \thinspace{}
16663 \end_inset
16664
16665 g.
16666 \begin_inset space \space{}
16667 \end_inset
16668
16669
16670 \family typewriter
16671
16672 \backslash
16673 chapterstyle{companion}
16674 \family default
16675 ).
16676 \end_layout
16677
16678 \begin_layout Description
16679 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16680  optional argument in the standard classes.
16681  With this, you can specify an alternative version of the title for the
16682  table of contents and the headers (for instance, if the title is too long).
16683  In \SpecialChar LyX
16684 , you can do this via 
16685 \family sans
16686 Insert\SpecialChar menuseparator
16687 Short
16688 \begin_inset space ~
16689 \end_inset
16690
16691 Title
16692 \family default
16693  at the beginning of a chapter/section.
16694  Memoir features a second optional argument and thus separates the table
16695  of contents from the header.
16696  You can define three variants of a title with this: one for the main text,
16697  one for the table of contents, and one for the headers.
16698  
16699 \change_deleted -712698321 1501165686
16700 Simply insert two optional arguments if you need this feature, the first
16701  one containing the short title for the Table of Contents, the second one
16702  containing an alternative short title for the headers
16703 \change_inserted -712698321 1501165708
16704 \SpecialChar LyX
16705  makes these available in form of specific 
16706 \family sans
16707 Short Title
16708 \family default
16709  variants in the 
16710 \family sans
16711 Insert
16712 \family default
16713  menu
16714 \change_unchanged
16715 .
16716 \end_layout
16717
16718 \begin_layout Description
16719 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16720  of contents, the list of figures and the list of table start a new page
16721  automatically.
16722  Memoir does not follow this route.
16723  You have to insert a page break yourself, if you want to have one.
16724 \end_layout
16725
16726 \begin_layout Description
16727 Titlepage: For some unknown reason, Memoir uses pagination on the title
16728  page (in the standard classes, title pages are 
16729 \begin_inset Quotes eld
16730 \end_inset
16731
16732 empty
16733 \begin_inset Quotes erd
16734 \end_inset
16735
16736 ).
16737  If you want an empty title page, type 
16738 \family typewriter
16739
16740 \backslash
16741 aliaspagestyle{title}{empty}
16742 \family default
16743  in the preamble.
16744 \end_layout
16745
16746 \begin_layout Description
16747 Article: With the class option 
16748 \emph on
16749 article
16750 \emph default
16751  (to be inserted in 
16752 \change_deleted -712698321 1501165976
16753
16754 \family sans
16755 Layout\SpecialChar menuseparator
16756
16757 \change_unchanged
16758 Document\SpecialChar menuseparator
16759
16760 \change_inserted -712698321 1501165986
16761 Settings\SpecialChar menuseparator
16762 Class Settings\SpecialChar menuseparator
16763
16764 \change_deleted -712698321 1501165988
16765 Extra
16766 \change_inserted -712698321 1501165989
16767 Custom
16768 \change_unchanged
16769
16770 \begin_inset space ~
16771 \end_inset
16772
16773 Options
16774 \family default
16775 ), you can emulate article style.
16776  That is, counters (footnotes, figures, tables etc.) will not be reset on
16777  new chapters, chapters don't start a new page (but are—in contrary to 
16778 \begin_inset Quotes eld
16779 \end_inset
16780
16781 real
16782 \begin_inset Quotes erd
16783 \end_inset
16784
16785  article classes—still allowed), parts, though, use their own page, as in
16786  book.
16787 \end_layout
16788
16789 \begin_layout Description
16790 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16791  font commands, which have been used in the old \SpecialChar LaTeX
16792  version 2.09 (e.
16793 \begin_inset space \thinspace{}
16794 \end_inset
16795
16796 g.
16797 \begin_inset space \space{}
16798 \end_inset
16799
16800
16801 \family typewriter
16802
16803 \backslash
16804 rm
16805 \family default
16806
16807 \family typewriter
16808
16809 \backslash
16810 it
16811 \family default
16812 ).
16813  It produces an error and stops \SpecialChar LaTeX
16814  whenever such a command appears.
16815  The class option 
16816 \emph on
16817 oldfontcommands
16818 \emph default
16819  reallows the commands and spits out warnings instead (which does at least
16820  not stop \SpecialChar LaTeX
16821 ).
16822  Since a lot of packages and particularly Bib\SpecialChar TeX
16823  style files are still using
16824  those commands, we have decided to use this option by default.
16825 \end_layout
16826
16827 \begin_layout Subsection
16828 Extra features
16829 \end_layout
16830
16831 \begin_layout Standard
16832 We will only describe the features supported by \SpecialChar LyX
16833  (which is not much currently).
16834  Please consult the Memoir manual
16835 \begin_inset Foot
16836 status collapsed
16837
16838 \begin_layout Plain Layout
16839 Cf.
16840 \begin_inset ERT
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844
16845
16846 \backslash
16847  
16848 \end_layout
16849
16850 \end_inset
16851
16852
16853 \begin_inset Flex URL
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857
16858 CTAN:/macros/latex/memoir/memman.pdf
16859 \end_layout
16860
16861 \end_inset
16862
16863 .
16864 \end_layout
16865
16866 \end_inset
16867
16868  for details.
16869 \end_layout
16870
16871 \begin_layout Description
16872 Abstract: You may wonder why an abstract is an extra feature.
16873  Well, it is in book class.
16874  Usually books don't have abstracts.
16875  Memoir, however, has.
16876  You can use it wherever and how often you like.
16877 \end_layout
16878
16879 \begin_layout Description
16880 Chapterprecis: You may know this older typesetting style: The contents of
16881  a chapter are summarized below the title and also in the table of contents
16882  (e.
16883 \begin_inset space \thinspace{}
16884 \end_inset
16885
16886 g.
16887 \begin_inset space \space{}
16888 \end_inset
16889
16890
16891 \emph on
16892 Our hero arrives in Troia; he loses some friends; he finds others
16893 \emph default
16894 ).
16895  Chapterprecis does exactly this.
16896  It is therefore only sensible below a chapter.
16897 \end_layout
16898
16899 \begin_layout Description
16900 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16901  The epigraph environment provides an elegant way of typesetting such a
16902  motto.
16903  The motto itself (text) and its 
16904 \change_inserted -712698321 1501166968
16905 (optional) 
16906 \change_unchanged
16907 author (source) are divided by a short line.
16908  
16909 \change_deleted -712698321 1501166972
16910 Unfortunately, we have to fool \SpecialChar LyX
16911  a bit here again, since the environment
16912  needs two arguments (text and source).
16913  In this case, we have to use curly brackets (in \SpecialChar TeX
16914  mode) between the two
16915  arguments: 
16916 \emph on
16917 <smart slogan>
16918 \emph default
16919  
16920 \family typewriter
16921 }{
16922 \family default
16923  
16924 \emph on
16925 <author of the slogan>
16926 \change_inserted -712698321 1501166996
16927
16928 \emph default
16929 The author (source) can be inserted via 
16930 \family sans
16931 Insert\SpecialChar menuseparator
16932 Epigraph Source
16933 \change_unchanged
16934
16935 \family default
16936 \emph on
16937 .
16938 \end_layout
16939
16940 \begin_layout Description
16941 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16942  complex figurative poems).
16943  \SpecialChar LyX
16944  can only support a few of them.
16945  One is poemtitle, which is a centered title for poems, which will also
16946  be added to the table of contents (verse is the standard environment for
16947  poems.
16948  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16949  code,
16950  because they have to be nested inside regular verse environments, which
16951  is not possible with \SpecialChar LyX
16952 ).
16953 \end_layout
16954
16955 \begin_layout Description
16956 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16957 \end_layout
16958
16959 \begin_layout Section
16960 Article (mwart), book (mwbk) and report (mwrep)
16961 \begin_inset Argument status
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 The 
16966 \family typewriter
16967 mw
16968 \family default
16969  Classes
16970 \end_layout
16971
16972 \end_inset
16973
16974
16975 \end_layout
16976
16977 \begin_layout Standard
16978 by 
16979 \noun on
16980 Tomasz Luczak
16981 \end_layout
16982
16983 \begin_layout Standard
16984 The \SpecialChar LyX
16985  document classes 
16986 \emph on
16987 article (mwart)
16988 \emph default
16989
16990 \emph on
16991 report (mwrep)
16992 \emph default
16993  and 
16994 \emph on
16995 book
16996 \emph default
16997  
16998 \emph on
16999 (mwbk)
17000 \emph default
17001  correspond to the \SpecialChar LaTeX
17002  document classes 
17003 \family typewriter
17004 mwart.cls
17005 \family default
17006
17007 \family typewriter
17008 mwrep.cls
17009 \family default
17010  and 
17011 \family typewriter
17012 mwbk.cls
17013 \family default
17014 , resp.
17015  They are replacements for the standard document classes 
17016 \family typewriter
17017 article.cls
17018 \family default
17019
17020 \family typewriter
17021 report.cls
17022 \family default
17023  and 
17024 \family typewriter
17025 book.cls
17026 \family default
17027 , resp., and fit better to Polish typography conventions in a number of points.
17028  
17029 \end_layout
17030
17031 \begin_layout Standard
17032 Basic differences:
17033 \end_layout
17034
17035 \begin_layout Itemize
17036 Unnumbered titles (with star, e.
17037 \begin_inset space \thinspace{}
17038 \end_inset
17039
17040 g.
17041 \begin_inset space \space{}
17042 \end_inset
17043
17044
17045 \family sans
17046 Section*
17047 \family default
17048 ) are added into table of contents,
17049 \end_layout
17050
17051 \begin_layout Itemize
17052 Additional page styles:
17053 \end_layout
17054
17055 \begin_deeper
17056 \begin_layout Description
17057 uheadings header with separated lines,
17058 \end_layout
17059
17060 \begin_layout Description
17061 myheadings custom header, contents headers via commands: 
17062 \family typewriter
17063
17064 \backslash
17065 markright
17066 \family default
17067  and 
17068 \family typewriter
17069
17070 \backslash
17071 markboth
17072 \family default
17073 ,
17074 \end_layout
17075
17076 \begin_layout Description
17077 myuheadings custom header with separated lines,
17078 \end_layout
17079
17080 \begin_layout Description
17081 outer page number is placed on outer side of page
17082 \end_layout
17083
17084 \end_deeper
17085 \begin_layout Itemize
17086 Options 
17087 \end_layout
17088
17089 \begin_deeper
17090 \begin_layout Description
17091 rmheadings serif titles — default,
17092 \end_layout
17093
17094 \begin_layout Description
17095 sfheadings sansserif titles,
17096 \end_layout
17097
17098 \begin_layout Description
17099 authortitle on title page first placed is author next title — default,
17100 \end_layout
17101
17102 \begin_layout Description
17103 titleauthor on title page first placed is title next author,
17104 \end_layout
17105
17106 \begin_layout Description
17107 withmarginpar reserve place on page for margins.
17108 \end_layout
17109
17110 \end_deeper
17111 \begin_layout Section
17112 Paper
17113 \end_layout
17114
17115 \begin_layout Standard
17116 The document class 
17117 \family sans
17118 paper
17119 \family default
17120  provides an alternative to the standard 
17121 \family sans
17122 article
17123 \family default
17124  class.
17125  It provides similar functionality, but you might prefer this layout with
17126  sans serif sections, headings, and more.
17127 \end_layout
17128
17129 \begin_layout Section
17130 Rev\SpecialChar TeX
17131 4
17132 \end_layout
17133
17134 \begin_layout Standard
17135 by 
17136 \noun on
17137 Amir Karger
17138 \end_layout
17139
17140 \begin_layout Standard
17141 \begin_inset VSpace bigskip
17142 \end_inset
17143
17144
17145 \end_layout
17146
17147 \begin_layout Standard
17148 \noindent
17149 The 
17150 \family sans
17151 Revtex
17152 \begin_inset space ~
17153 \end_inset
17154
17155 4
17156 \family default
17157  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
17158  4.0 (the 
17159 \begin_inset Formula $\beta$
17160 \end_inset
17161
17162  release of May, 1999) class.
17163 \end_layout
17164
17165 \begin_layout Standard
17166 \SpecialChar LyX
17167  has a 
17168 \family sans
17169 Revtex
17170 \family default
17171  textclass, which works with Rev\SpecialChar TeX
17172  3.1.
17173  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
17174  2.09.
17175  That means that it doesn't interact very well with \SpecialChar LyX
17176 , which requires \SpecialChar LaTeX2e
17177 , although
17178  it has been kludged to work.
17179  Since Rev\SpecialChar TeX
17180  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
17181 , \SpecialChar LyX
17182  with the
17183  
17184 \family sans
17185 Rev\SpecialChar TeX
17186
17187 \begin_inset space ~
17188 \end_inset
17189
17190 4
17191 \family default
17192  textclass should also be pretty easy to use.
17193 \end_layout
17194
17195 \begin_layout Standard
17196 These documents are supposed to be used in 
17197 \emph on
17198 addition
17199 \emph default
17200  to the Rev\SpecialChar TeX
17201  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
17202  macros,
17203  and assume you'll know what to put in the preamble if necessary.
17204 \end_layout
17205
17206 \begin_layout Subsection
17207 Installation
17208 \end_layout
17209
17210 \begin_layout Standard
17211 All you need to do is install Rev\SpecialChar TeX
17212  4, as described in the package's README
17213  file.
17214  The package can be found at The Rev\SpecialChar TeX
17215  4 Web Site 
17216 \begin_inset Flex URL
17217 status collapsed
17218
17219 \begin_layout Plain Layout
17220
17221 http://publish.aps.org/revtex4/
17222 \end_layout
17223
17224 \end_inset
17225
17226 .
17227  Install it somewhere that \SpecialChar LaTeX
17228  can see it.
17229  Test it by trying to \SpecialChar LaTeX
17230  a short Rev\SpecialChar TeX
17231  4 document in some random directory (i.
17232 \begin_inset space \thinspace{}
17233 \end_inset
17234
17235 e.
17236 \begin_inset space \space{}
17237 \end_inset
17238
17239 not the directory where you installed the class file.) Then, if you reconfigure
17240  \SpecialChar LyX
17241 , it will find the class file and let you use the Rev\SpecialChar TeX
17242 4 textclass.
17243 \end_layout
17244
17245 \begin_layout Standard
17246 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
17247  4 document
17248  using 
17249 \family typewriter
17250 tex2lyx
17251 \family default
17252 , or to use the 
17253 \family sans
17254 Revtex
17255 \begin_inset space ~
17256 \end_inset
17257
17258 4
17259 \family default
17260  template, found in the templates directory.
17261 \end_layout
17262
17263 \begin_layout Subsection
17264 Preamble Matter
17265 \end_layout
17266
17267 \begin_layout Standard
17268 Optional arguments to 
17269 \family typewriter
17270
17271 \backslash
17272 documentclass
17273 \family default
17274 , like 
17275 \begin_inset Quotes eld
17276 \end_inset
17277
17278 preprint
17279 \begin_inset Quotes erd
17280 \end_inset
17281
17282  and 
17283 \begin_inset Quotes eld
17284 \end_inset
17285
17286 aps
17287 \begin_inset Quotes erd
17288 \end_inset
17289
17290 , go in the 
17291 \family sans
17292 Extra
17293 \begin_inset space ~
17294 \end_inset
17295
17296 Options
17297 \family default
17298  field in the 
17299 \family sans
17300 Document
17301 \begin_inset space ~
17302 \end_inset
17303
17304 Layout
17305 \family default
17306  dialog, as usual.
17307  Remember that in Rev\SpecialChar TeX
17308 , at least one optional argument is required! 
17309 \end_layout
17310
17311 \begin_layout Standard
17312 Other preamble matter, like 
17313 \family typewriter
17314
17315 \backslash
17316 draft
17317 \family default
17318  etc.
17319 \begin_inset space ~
17320 \end_inset
17321
17322 goes in the 
17323 \family sans
17324 \SpecialChar LaTeX
17325
17326 \begin_inset space ~
17327 \end_inset
17328
17329 Preamble
17330 \family default
17331  dialog, also as usual.
17332 \end_layout
17333
17334 \begin_layout Subsection
17335 Layouts
17336 \end_layout
17337
17338 \begin_layout Standard
17339 The layouts basically correspond to the commands in Rev\SpecialChar TeX
17340 4.0.
17341  For example, the Email layout corresponds to 
17342 \family typewriter
17343
17344 \backslash
17345 email{}
17346 \family default
17347 .
17348  Note that (at least as of Rev\SpecialChar TeX
17349  4.0 Beta), the 
17350 \family sans
17351 Address
17352 \family default
17353  and 
17354 \family sans
17355 Affiliation
17356 \family default
17357  layouts are exactly equivalent, so you shouldn't need to use both.
17358 \begin_inset Foot
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 In case you're curious, both were included so that 
17363 \family typewriter
17364 tex2lyx
17365 \family default
17366  would be able to translate both 
17367 \family typewriter
17368
17369 \backslash
17370 address
17371 \family default
17372  and 
17373 \family typewriter
17374
17375 \backslash
17376 affiliation
17377 \family default
17378 .
17379 \end_layout
17380
17381 \end_inset
17382
17383
17384 \end_layout
17385
17386 \begin_layout Subsection
17387 Important Notes
17388 \end_layout
17389
17390 \begin_layout Standard
17391 There are a couple of important unique aspects of Rev\SpecialChar TeX
17392  4 which might cause
17393  bugs that will be even more confusing in \SpecialChar LyX
17394 .
17395 \end_layout
17396
17397 \begin_layout Standard
17398 In Rev\SpecialChar TeX
17399 , the 
17400 \family typewriter
17401
17402 \backslash
17403 thanks
17404 \family default
17405  command goes 
17406 \emph on
17407 outside
17408 \emph default
17409  the 
17410 \family typewriter
17411
17412 \backslash
17413 author
17414 \family default
17415  command.
17416  The \SpecialChar LyX
17417  equivalent is that there is a separate Thanks layout.
17418  Do 
17419 \emph on
17420 not
17421 \emph default
17422  write footnotes in the 
17423 \family sans
17424 Author
17425 \family default
17426  layout, or weird things may happen.
17427  See the Rev\SpecialChar TeX
17428  4 documentation for more details.
17429 \end_layout
17430
17431 \begin_layout Standard
17432 Also, the 
17433 \family sans
17434 Author
17435 \begin_inset space ~
17436 \end_inset
17437
17438 Email
17439 \family default
17440
17441 \family sans
17442 Author
17443 \begin_inset space ~
17444 \end_inset
17445
17446 URL
17447 \family default
17448 , and 
17449 \family sans
17450 Thanks
17451 \family default
17452  layouts must be placed 
17453 \emph on
17454 in between
17455 \emph default
17456  the 
17457 \family sans
17458 Author
17459 \family default
17460  layout and the corresponding 
17461 \family sans
17462 Address
17463 \family default
17464  (or equivalent 
17465 \family sans
17466 Affiliation
17467 \family default
17468 ) layout.
17469  If you put the 
17470 \family sans
17471 Thanks
17472 \family default
17473  after the 
17474 \family sans
17475 Address
17476 \family default
17477 , the \SpecialChar LaTeX
17478  won't compile.
17479 \end_layout
17480
17481 \begin_layout Subsection
17482
17483 \change_deleted -712698321 1501168252
17484 Drawbacks
17485 \end_layout
17486
17487 \begin_layout Standard
17488
17489 \change_deleted -712698321 1501168252
17490 The main problem with this layout is that you can't use the optional arguments
17491  to layouts like Email and Title.
17492  (The problem is not unique to this layout; you can't use optional arguments
17493  to the Section layouts either.) This means that after you export that file
17494  to \SpecialChar LaTeX
17495  (which you'll need to do eventually to send it in to APS), you'll need
17496  to edit the \SpecialChar LaTeX
17497  file with a text editor to add the optional arguments to set,
17498  e.
17499 \begin_inset space \thinspace{}
17500 \end_inset
17501
17502 g.
17503 \begin_inset space \space{}
17504 \end_inset
17505
17506 the running title for the page headers.
17507  Lacking these layouts makes the 
17508 \family typewriter
17509
17510 \backslash
17511 altaffiliation
17512 \family default
17513  (and the equivalent 
17514 \family typewriter
17515
17516 \backslash
17517 altaddress
17518 \family default
17519 ) useless, so the corresponding layouts don't exist, and will have to be
17520  added by hand.
17521 \begin_inset Foot
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525
17526 \emph on
17527 Note from JMarc:
17528 \emph default
17529  actually, \SpecialChar LyX
17530  1.3.0 supports some forms of optional arguments, but this layout
17531  has not been updated yet to take advantage of it.
17532 \end_layout
17533
17534 \end_inset
17535
17536  
17537 \change_unchanged
17538
17539 \end_layout
17540
17541 \begin_layout Section
17542 Springer Journals (
17543 \family sans
17544 svjour
17545 \family default
17546 )
17547 \end_layout
17548
17549 \begin_layout Standard
17550 by 
17551 \noun on
17552 Martin Vermeer
17553 \end_layout
17554
17555 \begin_layout Subsection
17556 Description
17557 \end_layout
17558
17559 \begin_layout Standard
17560 These are the layout files for some of the journal formats used by Springer
17561  Verlag and listed on 
17562 \begin_inset Flex URL
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566
17567 http://www.springer.de/author/tex/help-journals.html
17568 \end_layout
17569
17570 \end_inset
17571
17572 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
17573  now!).
17574  It is a modular system: the things common to all journals are implemented
17575  in 
17576 \family typewriter
17577 svjour.inc
17578 \family default
17579 , which journal-specific layout files (such as, e.
17580 \begin_inset space \thinspace{}
17581 \end_inset
17582
17583 g.
17584 \begin_inset space \space{}
17585 \end_inset
17586
17587
17588 \family typewriter
17589 svjog.layout
17590 \family default
17591  for Journal of Geodesy) can include.
17592 \end_layout
17593
17594 \begin_layout Standard
17595 This means that implementing support for any other Springer journal on this
17596  list is as simple as writing your own 
17597 \family typewriter
17598 sv
17599 \family default
17600 <myjournal>
17601 \family typewriter
17602 .layout
17603 \family default
17604  file following the outline given in 
17605 \family typewriter
17606 svjog.layout
17607 \family default
17608 .
17609  
17610 \end_layout
17611
17612 \begin_layout Standard
17613 It is reasonably well tested only for the Journal of Geodesy.
17614  
17615 \family typewriter
17616 svjour
17617 \family default
17618  and 
17619 \family typewriter
17620 svjog
17621 \family default
17622  come with the standard \SpecialChar LyX
17623  distribution.
17624  Install the relevant class file (downloaded from Springer) in a proper
17625  directory, reconfigure \SpecialChar LaTeX
17626  (in the te\SpecialChar TeX
17627  case by running 
17628 \family typewriter
17629 texhash
17630 \family default
17631 , as root if necessary — doesn't \SpecialChar LyX
17632  take care of this?), reconfigure \SpecialChar LyX
17633  and
17634  it should work.
17635 \end_layout
17636
17637 \begin_layout Subsection
17638 New styles
17639 \end_layout
17640
17641 \begin_layout Standard
17642 A large number of theorem-like styles — 
17643 \family sans
17644 Claim, Conjecture,
17645 \family default
17646  
17647 \family sans
17648 \SpecialChar ldots
17649 Theorem
17650 \family default
17651 .
17652 \end_layout
17653
17654 \begin_layout Standard
17655
17656 \family sans
17657 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17658 _Title, Author_Running, Institute,
17659  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17660 \family default
17661 .
17662  See the Springer class file documentation for details.
17663 \end_layout
17664
17665 \begin_layout Subsection
17666 Supported journals
17667 \end_layout
17668
17669 \begin_layout Itemize
17670
17671 \emph on
17672 Journal of Geodesy
17673 \emph default
17674
17675 \family typewriter
17676 svjog.layout
17677 \family default
17678  — Martin Vermeer
17679 \end_layout
17680
17681 \begin_layout Itemize
17682
17683 \emph on
17684 Probability Theory and Related Fields
17685 \emph default
17686
17687 \family typewriter
17688 svprobth.layout
17689 \family default
17690  — Jean-Marc Lasgouttes
17691 \end_layout
17692
17693 \begin_layout Standard
17694 Add your own, it isn't so hard!
17695 \end_layout
17696
17697 \begin_layout Subsection
17698 Credits
17699 \end_layout
17700
17701 \begin_layout Standard
17702 These files are partly based on the older 
17703 \family typewriter
17704 ejour2.layout
17705 \family default
17706 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17707  2.09 style
17708  file from Springer.
17709  All this, and the 
17710 \family typewriter
17711 ejour2
17712 \family default
17713  layout, are now defunct.
17714  Jean-Marc Lasgouttes helped out big in making me find my way around the
17715  \SpecialChar LyX
17716  layout file mechanism.
17717 \end_layout
17718
17719 \begin_layout Subsection
17720 Bugs
17721 \end_layout
17722
17723 \begin_layout Standard
17724 Probably.
17725  But probably less than in the old hacked-\SpecialChar LaTeX
17726  
17727 \family typewriter
17728 ejour2
17729 \family default
17730 .
17731 \end_layout
17732
17733 \begin_layout Standard
17734
17735 \change_deleted -712698321 1501168901
17736 Limitations e.
17737 \begin_inset space \thinspace{}
17738 \end_inset
17739
17740 g.: does not display the number for theorem-like layouts, just #.
17741 \change_unchanged
17742
17743 \end_layout
17744
17745 \begin_layout Section
17746 Slides [aka 
17747 \noun on
17748 Sli\SpecialChar TeX
17749
17750 \noun default
17751 ]
17752 \begin_inset CommandInset label
17753 LatexCommand label
17754 name "sec:slitex"
17755
17756 \end_inset
17757
17758
17759 \end_layout
17760
17761 \begin_layout Standard
17762 by 
17763 \noun on
17764 John Weiss
17765 \noun default
17766  
17767 \end_layout
17768
17769 \begin_layout Subsection
17770 Introduction
17771 \end_layout
17772
17773 \begin_layout Standard
17774 This section describes how to use \SpecialChar LyX
17775  to make slides for overhead projectors.
17776  There are two document classes that can do this: the default slides class
17777  and the 
17778 \family sans
17779 Foil\SpecialChar TeX
17780
17781 \family default
17782  slides class.
17783  This section documents the former.
17784 \end_layout
17785
17786 \begin_layout Standard
17787 I'm going to say this again, nice and clear, so that there's no misunderstanding
17788 :
17789 \end_layout
17790
17791 \begin_layout Standard
17792 \begin_inset VSpace bigskip
17793 \end_inset
17794
17795
17796 \end_layout
17797
17798 \begin_layout Standard
17799 \align center
17800
17801 \size large
17802 This section documents the class 
17803 \begin_inset Quotes eld
17804 \end_inset
17805
17806
17807 \family sans
17808 slides (default)
17809 \family default
17810
17811 \begin_inset Quotes erd
17812 \end_inset
17813
17814  
17815 \emph on
17816 only.
17817 \end_layout
17818
17819 \begin_layout Standard
17820 \begin_inset VSpace bigskip
17821 \end_inset
17822
17823
17824 \end_layout
17825
17826 \begin_layout Standard
17827 If you're looking for the documentation for 
17828 \begin_inset Quotes eld
17829 \end_inset
17830
17831
17832 \family sans
17833 slides (Foil\SpecialChar TeX
17834 )
17835 \family default
17836
17837 \begin_inset Quotes erd
17838 \end_inset
17839
17840 , check out section
17841 \begin_inset space ~
17842 \end_inset
17843
17844
17845 \begin_inset CommandInset ref
17846 LatexCommand ref
17847 reference "sec:foiltex"
17848
17849 \end_inset
17850
17851 .
17852  The 
17853 \family sans
17854 foils
17855 \family default
17856  class [
17857 \begin_inset Quotes eld
17858 \end_inset
17859
17860
17861 \family sans
17862 slides (Foil\SpecialChar TeX
17863 )
17864 \family default
17865
17866 \begin_inset Quotes erd
17867 \end_inset
17868
17869 ] is actually somewhat better than the default 
17870 \family sans
17871 slides
17872 \family default
17873  class,
17874 \begin_inset Foot
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878 \SpecialChar ldots
17879 or so I've been told repeatedly by its advocates.
17880  Having never used it, I have no idea if this claim is true or not.
17881 \end_layout
17882
17883 \end_inset
17884
17885  which this section documents.
17886 \end_layout
17887
17888 \begin_layout Standard
17889 This class is the \SpecialChar LaTeX2e
17890  improvement of the old 
17891 \noun on
17892 Sli\SpecialChar TeX
17893
17894 \noun default
17895  package.
17896  Every \SpecialChar LaTeX2e
17897  distribution includes this class [which I'll just refer to as 
17898 \begin_inset Quotes eld
17899 \end_inset
17900
17901
17902 \family sans
17903 slides
17904 \family default
17905
17906 \begin_inset Quotes erd
17907 \end_inset
17908
17909  from now on], so you're bound to have it.
17910  As I noted earlier, there are other classes, such as 
17911 \family sans
17912 foils
17913 \family default
17914 , which also produce slides for overhead projectors and do a better job
17915  at it.
17916  However, there are some things which 
17917 \family sans
17918 slides
17919 \family default
17920  can do which the others can't, such as generate overlays.
17921  Read on to learn more!
17922 \end_layout
17923
17924 \begin_layout Subsection
17925 Getting Started
17926 \begin_inset CommandInset label
17927 LatexCommand label
17928 name "sec:slidesetup"
17929
17930 \end_inset
17931
17932
17933 \end_layout
17934
17935 \begin_layout Standard
17936 Obviously, to use this document class, you need to select 
17937 \begin_inset Quotes eld
17938 \end_inset
17939
17940
17941 \family sans
17942 slides (default)
17943 \family default
17944
17945 \begin_inset Quotes erd
17946 \end_inset
17947
17948  from the class list in the 
17949 \family sans
17950 Document\SpecialChar menuseparator
17951 Settings
17952 \family default
17953  dialog.
17954  There are some other special things you should know about this class:
17955 \end_layout
17956
17957 \begin_layout Itemize
17958 Don't bother changing the options 
17959 \family sans
17960 Sides and Columns
17961 \family default
17962 .
17963  They're not supported by the 
17964 \family sans
17965 slides
17966 \family default
17967  class, anyways.
17968 \end_layout
17969
17970 \begin_layout Itemize
17971 The option 
17972 \family sans
17973 Page
17974 \begin_inset space ~
17975 \end_inset
17976
17977 style
17978 \family default
17979  behaves a bit differently for this class.
17980  The possible choices and what they do are as follows:
17981 \end_layout
17982
17983 \begin_deeper
17984 \begin_layout Description
17985
17986 \family sans
17987 plain
17988 \family default
17989  The final output contains page numbers in the lower right corner.
17990 \end_layout
17991
17992 \begin_layout Description
17993
17994 \family sans
17995 headings
17996 \family default
17997  Like 
17998 \family sans
17999 plain
18000 \family default
18001 , but also prints out any time markers you've put in.
18002  This is the default.
18003 \end_layout
18004
18005 \begin_layout Description
18006
18007 \family sans
18008 empty
18009 \family default
18010  The final output contains no page numbers, time markers, or alignment markers.
18011 \end_layout
18012
18013 \end_deeper
18014 \begin_layout Itemize
18015 The 
18016 \family sans
18017 slides
18018 \family default
18019  class has an extra option: 
18020 \family typewriter
18021 clock
18022 \family default
18023 .
18024  To use it, put 
18025 \begin_inset Quotes eld
18026 \end_inset
18027
18028
18029 \family typewriter
18030 clock
18031 \family default
18032
18033 \begin_inset Quotes erd
18034 \end_inset
18035
18036  in the extra class options.
18037 \end_layout
18038
18039 \begin_deeper
18040 \begin_layout Standard
18041 Using this options allows you to add time markers to 
18042 \family sans
18043 Note
18044 \family default
18045 s.
18046  See section
18047 \begin_inset space ~
18048 \end_inset
18049
18050
18051 \begin_inset CommandInset ref
18052 LatexCommand ref
18053 reference "sec:slideNote"
18054
18055 \end_inset
18056
18057  for more details.
18058 \end_layout
18059
18060 \end_deeper
18061 \begin_layout Standard
18062 You can also use the template file 
18063 \begin_inset Quotes eld
18064 \end_inset
18065
18066
18067 \family typewriter
18068 slides.lyx
18069 \family default
18070
18071 \begin_inset Quotes erd
18072 \end_inset
18073
18074  to automatically set up a document to use the 
18075 \family sans
18076 slides
18077 \family default
18078  class [using 
18079 \family sans
18080 File\SpecialChar menuseparator
18081 New
18082 \begin_inset space ~
18083 \end_inset
18084
18085 from
18086 \begin_inset space ~
18087 \end_inset
18088
18089 Template
18090 \family default
18091  to open your new document].
18092  The template file also contains some examples of the special paragraph
18093  environments used by this class.
18094  I'll describe those next.
18095 \end_layout
18096
18097 \begin_layout Subsection
18098 Paragraph Environments
18099 \end_layout
18100
18101 \begin_layout Subsubsection
18102 Supported Environments
18103 \end_layout
18104
18105 \begin_layout Standard
18106 The first thing you'll notice when you start up a new 
18107 \family sans
18108 slides
18109 \family default
18110  document is the font size and type: it's the equivalent of the size 
18111 \begin_inset Quotes eld
18112 \end_inset
18113
18114
18115 \family sans
18116 Largest
18117 \family default
18118
18119 \begin_inset Quotes erd
18120 \end_inset
18121
18122  in the 
18123 \family sans
18124 Sans
18125 \begin_inset space ~
18126 \end_inset
18127
18128 Serif
18129 \family default
18130  font.
18131  This is also what's used in the output.
18132  Think of this as a 
18133 \begin_inset Quotes eld
18134 \end_inset
18135
18136 visual cue
18137 \begin_inset Quotes erd
18138 \end_inset
18139
18140  to remind you that this is a slide.
18141  Your final slides will use a larger font; ergo, you'll have less space.
18142  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18143 \end_layout
18144
18145 \begin_layout Standard
18146 The next thing that becomes obvious is the changes to the paragraph environment
18147  pull-down box [at the far-left end of the toolbar].
18148  Most of the paragraph environments you're used to seeing are missing.
18149  There are also five new ones.
18150  That's because the 
18151 \family sans
18152 slides
18153 \family default
18154  class itself only supports certain paragraph environments:
18155 \end_layout
18156
18157 \begin_layout Itemize
18158
18159 \family sans
18160 Standard
18161 \end_layout
18162
18163 \begin_layout Itemize
18164
18165 \family sans
18166 Itemize
18167 \end_layout
18168
18169 \begin_layout Itemize
18170
18171 \family sans
18172 Enumerate
18173 \end_layout
18174
18175 \begin_layout Itemize
18176
18177 \family sans
18178 Description
18179 \end_layout
18180
18181 \begin_layout Itemize
18182
18183 \family sans
18184 List
18185 \end_layout
18186
18187 \begin_layout Itemize
18188
18189 \family sans
18190 Quotation
18191 \end_layout
18192
18193 \begin_layout Itemize
18194
18195 \family sans
18196 Quote
18197 \end_layout
18198
18199 \begin_layout Itemize
18200
18201 \family sans
18202 Verse
18203 \end_layout
18204
18205 \begin_layout Itemize
18206
18207 \family sans
18208 Caption
18209 \end_layout
18210
18211 \begin_layout Itemize
18212
18213 \family sans
18214 \SpecialChar LyX
18215 -Code
18216 \end_layout
18217
18218 \begin_layout Itemize
18219
18220 \change_deleted -712698321 1501169265
18221
18222 \family sans
18223 Comment
18224 \change_unchanged
18225
18226 \end_layout
18227
18228 \begin_layout Standard
18229 All of the other standard environments, including the section-heading environmen
18230 ts, aren't used in the 
18231 \family sans
18232 slides
18233 \family default
18234  class.
18235 \end_layout
18236
18237 \begin_layout Standard
18238 On the other hand, you'll notice the following new environments:
18239 \end_layout
18240
18241 \begin_layout Itemize
18242
18243 \family sans
18244 Slide
18245 \end_layout
18246
18247 \begin_layout Itemize
18248
18249 \family sans
18250 Overlay
18251 \end_layout
18252
18253 \begin_layout Itemize
18254
18255 \family sans
18256 Note
18257 \end_layout
18258
18259 \begin_layout Itemize
18260
18261 \family sans
18262 InvisibleText
18263 \end_layout
18264
18265 \begin_layout Itemize
18266
18267 \family sans
18268 VisibleText
18269 \end_layout
18270
18271 \begin_layout Standard
18272 These five are kind of quirky, due to a 
18273 \begin_inset Quotes eld
18274 \end_inset
18275
18276 feature
18277 \begin_inset Quotes erd
18278 \end_inset
18279
18280  in \SpecialChar LyX
18281 .
18282  You see, \SpecialChar LyX
18283  doesn't permit you to nest any other paragraph environment into
18284  an empty environment.
18285  Now, that's fine and dandy, but it means that you wouldn't be able to start
18286  a slide with anything except plain text.
18287  To deal with this, I've performed a little 
18288 \begin_inset Quotes eld
18289 \end_inset
18290
18291 \SpecialChar LaTeX
18292  magic.
18293 \begin_inset Quotes erd
18294 \end_inset
18295
18296  
18297 \end_layout
18298
18299 \begin_layout Subsubsection
18300 Quirks of the New Environments
18301 \begin_inset CommandInset label
18302 LatexCommand label
18303 name "sec:slideQuirk"
18304
18305 \end_inset
18306
18307
18308 \end_layout
18309
18310 \begin_layout Standard
18311 All five of the new paragraph environments are somewhat quirky due to inherent
18312  limitiations in the current version of \SpecialChar LyX
18313 .
18314  As I just mentioned, \SpecialChar LyX
18315  forbids environments that begin with another environment.
18316  To get around this, the 
18317 \family sans
18318 Slide
18319 \family default
18320  environment isn't a paragraph environment as described in the 
18321 \emph on
18322 User's Guide
18323 \emph default
18324 .
18325  
18326 \end_layout
18327
18328 \begin_layout Standard
18329 You should consider 
18330 \family sans
18331 Slide
18332 \family default
18333
18334 \family sans
18335 Overlay
18336 \family default
18337 , and 
18338 \family sans
18339 Note
18340 \family default
18341  to be 
18342 \begin_inset Quotes eld
18343 \end_inset
18344
18345 pseudo-environments.
18346 \begin_inset Quotes erd
18347 \end_inset
18348
18349  They look like a section heading or a 
18350 \begin_inset Quotes eld
18351 \end_inset
18352
18353
18354 \family sans
18355 Caption
18356 \family default
18357 ,
18358 \begin_inset Quotes erd
18359 \end_inset
18360
18361  but really begin a [and, if necessary, end the previous] paragraph environment.
18362  Likewise, treat 
18363 \family sans
18364 InvisibleText
18365 \family default
18366  and 
18367 \family sans
18368 VisibleText
18369 \family default
18370  as 
18371 \begin_inset Quotes eld
18372 \end_inset
18373
18374 pseudo-commands.
18375 \begin_inset Quotes erd
18376 \end_inset
18377
18378  These two perform some action.
18379 \end_layout
18380
18381 \begin_layout Standard
18382 A common feature of all five environments, 
18383 \family sans
18384 Slide
18385 \family default
18386
18387 \family sans
18388 Overlay
18389 \family default
18390
18391 \family sans
18392 Note
18393 \family default
18394
18395 \family sans
18396 InvisibleText
18397 \family default
18398  and 
18399 \family sans
18400 VisibleText
18401 \family default
18402 , is a rather long-ish label.
18403  The text following this label — ordinarily the contents of the paragraph
18404  environment — is utterly irrelevant for 
18405 \family sans
18406 Slide
18407 \family default
18408
18409 \family sans
18410 Overlay
18411 \family default
18412
18413 \family sans
18414 Note
18415 \family default
18416
18417 \family sans
18418 InvisibleText
18419 \family default
18420  and 
18421 \family sans
18422 VisibleText
18423 \family default
18424 .
18425  \SpecialChar LyX
18426  completely ignores it.
18427  In fact, you can leave these five environments completely empty.
18428  
18429 \end_layout
18430
18431 \begin_layout Standard
18432 While you don't 
18433 \emph on
18434 have
18435 \emph default
18436  to put any text after the rather long-ish label, you might want to.
18437  This could be a short description of the contents of the 
18438 \family sans
18439 Slide
18440 \family default
18441 , for example.
18442  In that case, enter your descriptive comment and hit 
18443 \family sans
18444 Return
18445 \family default
18446  as you normally would.
18447 \end_layout
18448
18449 \begin_layout Standard
18450 If, on the other hand, you don't want to enter any descriptive text, you'll
18451  hit another \SpecialChar LyX
18452  quirk.
18453  \SpecialChar LyX
18454 , like nature, abhors a vacuum, and will not let you start a new paragraph
18455  environment until you put something in the old one.
18456  So, do this:
18457 \end_layout
18458
18459 \begin_layout Itemize
18460 Start entering the text that will 
18461 \emph on
18462 follow
18463 \emph default
18464  the new 
18465 \family sans
18466 Slide
18467 \family default
18468
18469 \family sans
18470 Overlay
18471 \family default
18472
18473 \family sans
18474 Note
18475 \family default
18476
18477 \family sans
18478 InvisibleText
18479 \family default
18480  or 
18481 \family sans
18482 VisibleText
18483 \family default
18484 .
18485  
18486 \end_layout
18487
18488 \begin_layout Itemize
18489 Now move to the beginning of that paragraph.
18490  
18491 \end_layout
18492
18493 \begin_layout Itemize
18494 Next, hit 
18495 \family sans
18496 Return
18497 \family default
18498 .
18499  
18500 \end_layout
18501
18502 \begin_layout Itemize
18503 Finally, change this new, empty paragraph to a 
18504 \family sans
18505 Slide
18506 \family default
18507
18508 \family sans
18509 Overlay
18510 \family default
18511
18512 \family sans
18513 Note
18514 \family default
18515
18516 \family sans
18517 InvisibleText
18518 \family default
18519  or 
18520 \family sans
18521 VisibleText
18522 \family default
18523 .
18524  
18525 \end_layout
18526
18527 \begin_layout Standard
18528 Some future version of \SpecialChar LyX
18529  will, hopefully, resolve this quirkiness\SpecialChar ldots
18530
18531 \end_layout
18532
18533 \begin_layout Subsection
18534 Making a Presentation with 
18535 \family sans
18536 Slide
18537 \family default
18538
18539 \family sans
18540 Overlay
18541 \family default
18542  and 
18543 \family sans
18544 Note
18545 \end_layout
18546
18547 \begin_layout Subsubsection
18548 Using the 
18549 \family sans
18550 Slide
18551 \family default
18552  Environment
18553 \end_layout
18554
18555 \begin_layout Standard
18556 If you're expecting this section to teach you how to actually make a presentatio
18557 n, you'll be sorely disappointed.
18558  Naturally, I'll describe all of the ways the 
18559 \family sans
18560 slides
18561 \family default
18562  class can assist you in preparing the materials for a presentation.
18563  Filling in the contents, however, is up to you.
18564  [Then again, that 
18565 \emph on
18566 is
18567 \emph default
18568  the \SpecialChar LyX
18569  philosophy.]
18570 \end_layout
18571
18572 \begin_layout Standard
18573 Choosing the 
18574 \family sans
18575 Slide
18576 \family default
18577  environment [in the manner described in section
18578 \begin_inset space ~
18579 \end_inset
18580
18581
18582 \begin_inset CommandInset ref
18583 LatexCommand ref
18584 reference "sec:slideQuirk"
18585
18586 \end_inset
18587
18588 ] tells \SpecialChar LyX
18589  to begin a new slide [duh].
18590  The label for this environment/
18591 \begin_inset Quotes erd
18592 \end_inset
18593
18594 pseudo-command
18595 \begin_inset Quotes erd
18596 \end_inset
18597
18598  is an 
18599 \begin_inset Quotes eld
18600 \end_inset
18601
18602 ASCII line,
18603 \begin_inset Quotes erd
18604 \end_inset
18605
18606  in cool blue, followed by the label, 
18607 \begin_inset Quotes eld
18608 \end_inset
18609
18610 NewSlide:
18611 \begin_inset Quotes erd
18612 \end_inset
18613
18614 .
18615  Any text or paragraph environments that follow this one go on the new slide.
18616  It's that simple.
18617 \end_layout
18618
18619 \begin_layout Standard
18620 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18621
18622  (this can be specified in the 
18623 \family sans
18624 Paragraph Layout
18625 \family default
18626  dialog).
18627  In fact, you'll want to, once you finish entering the contents of one slide.
18628  If you've entered more text than can physically fit on a slide, the extra
18629  overflows onto a new slide.
18630  I don't recommend doing this, however, since the overflow slide won't have
18631  any page number on it.
18632  Furthermore, it may interfere with any 
18633 \family sans
18634 Overlay
18635 \family default
18636  you've made to accompany the oversized 
18637 \family sans
18638 Slide
18639 \family default
18640 .
18641 \end_layout
18642
18643 \begin_layout Standard
18644 The 
18645 \family sans
18646 Overlay
18647 \family default
18648  and 
18649 \family sans
18650 Note
18651 \family default
18652  environments work the same way as the 
18653 \family sans
18654 Slide
18655 \family default
18656  environment.
18657  They both create an 
18658 \begin_inset Quotes eld
18659 \end_inset
18660
18661 ASCII line
18662 \begin_inset Quotes erd
18663 \end_inset
18664
18665  followed by a label [
18666 \begin_inset Quotes eld
18667 \end_inset
18668
18669 NewOverlay:
18670 \begin_inset Quotes erd
18671 \end_inset
18672
18673  and 
18674 \begin_inset Quotes eld
18675 \end_inset
18676
18677 NewNote:
18678 \begin_inset Quotes erd
18679 \end_inset
18680
18681 , respectively].
18682  The color is a stunning magenta instead of blue, and the 
18683 \begin_inset Quotes eld
18684 \end_inset
18685
18686 ASCII line
18687 \begin_inset Quotes erd
18688 \end_inset
18689
18690  will look different, in style and in length.
18691  The label fonts of all three also differ from one another.
18692 \end_layout
18693
18694 \begin_layout Standard
18695 As with a 
18696 \family sans
18697 Slide
18698 \family default
18699 , if the contents of a 
18700 \family sans
18701 Note
18702 \family default
18703  or 
18704 \family sans
18705 Overlay
18706 \family default
18707  exceed the physical size of a slide or sheet of paper, the extra will overflow
18708  onto a new sheet.
18709  Again, you should avoid this.
18710  It defeats the whole purpose of 
18711 \family sans
18712 Note
18713 \family default
18714 s and 
18715 \family sans
18716 Overlay
18717 \family default
18718 s.
18719 \end_layout
18720
18721 \begin_layout Subsubsection
18722 Using 
18723 \family sans
18724 Overlay
18725 \family default
18726  with 
18727 \family sans
18728 Slide
18729 \end_layout
18730
18731 \begin_layout Standard
18732 The idea behind an 
18733 \family sans
18734 Overlay
18735 \family default
18736  is a slide that sits atop another slide.
18737  Perhaps you wish to discuss a figure on the main 
18738 \family sans
18739 Slide
18740 \family default
18741  before displaying the text associated with it.
18742  One way to accomplish this is tape a flap of dark paper over the part of
18743  the 
18744 \family sans
18745 Slide
18746 \family default
18747  you want to display later.
18748  This method fails, however, if you wish to overlap one graph with another,
18749  for example.
18750  You would then have to fumble while speaking to align the two separate,
18751  overlapping 
18752 \family sans
18753 Slide
18754 \family default
18755 s to align the two graphs.
18756  The use of an 
18757 \family sans
18758 Overlay
18759 \family default
18760  environment in both cases makes life much easier.
18761 \end_layout
18762
18763 \begin_layout Standard
18764 Each 
18765 \family sans
18766 Overlay
18767 \family default
18768  receives the page number of its 
18769 \begin_inset Quotes eld
18770 \end_inset
18771
18772 parent
18773 \begin_inset Quotes erd
18774 \end_inset
18775
18776  
18777 \family sans
18778 Slide
18779 \family default
18780 , appended by 
18781 \begin_inset Quotes eld
18782 \end_inset
18783
18784
18785 \family typewriter
18786 -a
18787 \family default
18788
18789 \begin_inset Quotes erd
18790 \end_inset
18791
18792 .
18793 \begin_inset Foot
18794 status collapsed
18795
18796 \begin_layout Plain Layout
18797 Presumably, mutliple 
18798 \family sans
18799 Overlay
18800 \family default
18801 s would have 
18802 \begin_inset Quotes eld
18803 \end_inset
18804
18805
18806 \family typewriter
18807 -a
18808 \family default
18809
18810 \begin_inset Quotes erd
18811 \end_inset
18812
18813
18814 \begin_inset Quotes eld
18815 \end_inset
18816
18817
18818 \family typewriter
18819 -b
18820 \family default
18821
18822 \begin_inset Quotes erd
18823 \end_inset
18824
18825
18826 \begin_inset Quotes eld
18827 \end_inset
18828
18829
18830 \family typewriter
18831 -c
18832 \family default
18833
18834 \begin_inset Quotes erd
18835 \end_inset
18836
18837 , etc.
18838 \begin_inset space ~
18839 \end_inset
18840
18841 appended to the page number of the parent 
18842 \family sans
18843 Slide
18844 \family default
18845 .
18846  
18847 \end_layout
18848
18849 \end_inset
18850
18851  Clearly, you want the contents of both the 
18852 \family sans
18853 Slide
18854 \family default
18855  and the 
18856 \family sans
18857 Overlay
18858 \family default
18859  to each fit on a single physical slide! You should probably consider an
18860  
18861 \family sans
18862 Overlay
18863 \family default
18864  as 
18865 \begin_inset Quotes eld
18866 \end_inset
18867
18868 part of
18869 \begin_inset Quotes erd
18870 \end_inset
18871
18872  a 
18873 \family sans
18874 Slide
18875 \family default
18876 .
18877  Indeed, the \SpecialChar LyX
18878  
18879 \family sans
18880 slides
18881 \family default
18882  class provides a visual cue for this: the label at the start of an 
18883 \family sans
18884 Overlay
18885 \family default
18886  is shorter than that at the start of a 
18887 \family sans
18888 Slide
18889 \family default
18890 .
18891  Lastly, when you generate printable output, you'll find alignment markers
18892  in all four corners of both the 
18893 \family sans
18894 Overlay
18895 \family default
18896  page and its parent 
18897 \family sans
18898 Slide
18899 \family default
18900 .
18901  These will assist you in lining up the two physical slides.
18902 \end_layout
18903
18904 \begin_layout Standard
18905 The major problem in overlaying two slides is aligning the contents of the
18906  two transparencies.
18907  How much space should you leave for that graph on the second slide? Worse
18908  still, what if you want a graph and a sentence on second slide, but there
18909  is text on the main transparency that goes in between them? You could try
18910  and insert vertical space of the right size.
18911  The better way is to use 
18912 \family sans
18913 InvisibleText
18914 \family default
18915  and 
18916 \family sans
18917 VisibleText
18918 \family default
18919 .
18920 \end_layout
18921
18922 \begin_layout Standard
18923 As their names imply, 
18924 \family sans
18925 InvisibleText
18926 \family default
18927  and 
18928 \family sans
18929 VisibleText
18930 \family default
18931  are two command-like paragraph environments that make all subsequent text
18932  invisible and visible, respectively.
18933  Note from section
18934 \begin_inset space ~
18935 \end_inset
18936
18937
18938 \begin_inset CommandInset ref
18939 LatexCommand ref
18940 reference "sec:slideQuirk"
18941
18942 \end_inset
18943
18944  that you don't place anything 
18945 \emph on
18946 into
18947 \emph default
18948  these two environments, however.
18949  When you create an 
18950 \family sans
18951 InvisibleText
18952 \family default
18953 , it inserts a centered, sky-blue label into the page reading 
18954 \begin_inset Quotes eld
18955 \end_inset
18956
18957 <Invisible Text Follows>
18958 \begin_inset Quotes erd
18959 \end_inset
18960
18961 .
18962  For paragraphs following this label, the parts of the 
18963 \family sans
18964 Slide
18965 \family default
18966  [or 
18967 \family sans
18968 Overlay
18969 \family default
18970 ; it doesn't matter which] where they would be contain instead blank space.
18971  
18972 \end_layout
18973
18974 \begin_layout Standard
18975 For 
18976 \family sans
18977 VisibleText
18978 \family default
18979 , the corresponding centered label is 
18980 \begin_inset Quotes eld
18981 \end_inset
18982
18983 <Visible Text Follows>
18984 \begin_inset Quotes erd
18985 \end_inset
18986
18987  in blazing green.
18988  Paragraphs following this label behave normally.
18989  Note that the beginning of a new 
18990 \family sans
18991 Slide
18992 \family default
18993
18994 \family sans
18995 Overlay
18996 \family default
18997 , or 
18998 \family sans
18999 Note
19000 \family default
19001  automatically shuts off an 
19002 \family sans
19003 InvisibleText
19004 \family default
19005 .
19006  It's therefore not necessary to use 
19007 \family sans
19008 VisibleText
19009 \family default
19010  at the end of a 
19011 \family sans
19012 Slide
19013 \family default
19014 .
19015 \end_layout
19016
19017 \begin_layout Standard
19018 By now, it should be obvious how to create overlay transparencies using
19019  the proper combination of 
19020 \family sans
19021 InvisibleText
19022 \family default
19023  and 
19024 \family sans
19025 VisibleText
19026 \family default
19027  on a 
19028 \family sans
19029 Slide
19030 \family default
19031  and 
19032 \family sans
19033 Overlay
19034 \family default
19035 :
19036 \end_layout
19037
19038 \begin_layout Enumerate
19039 Create a 
19040 \family sans
19041 Slide
19042 \family default
19043 , including everything that will appear on it, whether on the main slide
19044  or on the 
19045 \family sans
19046 Overlay
19047 \family default
19048 .
19049 \end_layout
19050
19051 \begin_layout Enumerate
19052 Before each figure or paragraph that will appear only on the 
19053 \family sans
19054 Overlay
19055 \family default
19056 , insert an 
19057 \family sans
19058 InvisibleText
19059 \family default
19060  environment.
19061  If necessary, insert a 
19062 \family sans
19063 VisibleText
19064 \family default
19065  environment after the 
19066 \family sans
19067 Overlay
19068 \family default
19069 -only text.
19070 \end_layout
19071
19072 \begin_layout Enumerate
19073 Start an 
19074 \family sans
19075 Overlay
19076 \family default
19077  immediately following the 
19078 \family sans
19079 Slide
19080 \family default
19081 .
19082 \end_layout
19083
19084 \begin_layout Enumerate
19085 Copy the contents of this 
19086 \family sans
19087 Slide
19088 \family default
19089  into the 
19090 \family sans
19091 Overlay
19092 \family default
19093 .
19094 \end_layout
19095
19096 \begin_layout Enumerate
19097 Within the 
19098 \family sans
19099 Overlay
19100 \family default
19101 , change all of the 
19102 \family sans
19103 InvisibleText
19104 \family default
19105  lines to 
19106 \family sans
19107 VisibleText
19108 \family default
19109  and vice-versa.
19110 \end_layout
19111
19112 \begin_layout Standard
19113 That's it.
19114  You've just made an 
19115 \family sans
19116 Overlay
19117 \family default
19118 .
19119 \end_layout
19120
19121 \begin_layout Standard
19122 There's one problem with the way I've designed the \SpecialChar LyX
19123  
19124 \family sans
19125 slides
19126 \family default
19127  class: you can't make text in the middle of a paragraph invisible, nor
19128  make text in the middle of an invisible paragraph visible again.
19129  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19130  codes.
19131 \begin_inset Foot
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 The commands of interest are: 
19136 \end_layout
19137
19138 \begin_layout Itemize
19139
19140 \family typewriter
19141 {
19142 \backslash
19143 invisible \SpecialChar ldots
19144  }
19145 \end_layout
19146
19147 \begin_layout Itemize
19148
19149 \family typewriter
19150 {
19151 \backslash
19152 visible \SpecialChar ldots
19153  }
19154 \end_layout
19155
19156 \begin_layout Plain Layout
19157 \SpecialChar ldots
19158 and need to be marked as \SpecialChar TeX
19159 .
19160  The text whose 
19161 \begin_inset Quotes eld
19162 \end_inset
19163
19164 visibility
19165 \begin_inset Quotes erd
19166 \end_inset
19167
19168  you wish to change goes in between the brackets [and after the 
19169 \family typewriter
19170
19171 \backslash
19172 invisible
19173 \family default
19174  or 
19175 \family typewriter
19176
19177 \backslash
19178 visible
19179 \family default
19180  command].
19181  If you don't know how to mark text as \SpecialChar TeX
19182 , see the appropriate section of
19183  the 
19184 \emph on
19185 User's Guide
19186 \emph default
19187 .
19188 \end_layout
19189
19190 \end_inset
19191
19192
19193 \end_layout
19194
19195 \begin_layout Subsubsection
19196 Using 
19197 \family sans
19198 Note
19199 \family default
19200  with 
19201 \family sans
19202 Slide
19203 \family default
19204
19205 \begin_inset CommandInset label
19206 LatexCommand label
19207 name "sec:slideNote"
19208
19209 \end_inset
19210
19211
19212 \end_layout
19213
19214 \begin_layout Standard
19215 Like an 
19216 \family sans
19217 Overlay
19218 \family default
19219 , a 
19220 \family sans
19221 Note
19222 \family default
19223  is associated with a 
19224 \begin_inset Quotes eld
19225 \end_inset
19226
19227 parent
19228 \begin_inset Quotes erd
19229 \end_inset
19230
19231  
19232 \family sans
19233 Slide
19234 \family default
19235 .
19236  Here, too, the \SpecialChar LyX
19237  
19238 \family sans
19239 slides
19240 \family default
19241  class provides visual cues.
19242  The label for a 
19243 \family sans
19244 Note
19245 \family default
19246  is shorter than that of a 
19247 \family sans
19248 Slide
19249 \family default
19250  [yet longer than that of an 
19251 \family sans
19252 Overlay
19253 \family default
19254 ] and, like the label of an 
19255 \family sans
19256 Overlay
19257 \family default
19258  is shockingly magenta.
19259  Additionally, the printed 
19260 \family sans
19261 Note
19262 \family default
19263  has the page number of its 
19264 \begin_inset Quotes eld
19265 \end_inset
19266
19267 parent
19268 \begin_inset Quotes erd
19269 \end_inset
19270
19271  
19272 \family sans
19273 Slide
19274 \family default
19275 , appended by 
19276 \begin_inset Quotes eld
19277 \end_inset
19278
19279
19280 \family typewriter
19281 -
19282 \family default
19283 1
19284 \begin_inset Quotes erd
19285 \end_inset
19286
19287
19288 \begin_inset Quotes eld
19289 \end_inset
19290
19291
19292 \family typewriter
19293 -
19294 \family default
19295 2
19296 \begin_inset Quotes erd
19297 \end_inset
19298
19299
19300 \begin_inset Quotes eld
19301 \end_inset
19302
19303
19304 \family typewriter
19305 -
19306 \family default
19307 3
19308 \begin_inset Quotes erd
19309 \end_inset
19310
19311 , etc.
19312  You can have multiple 
19313 \family sans
19314 Note
19315 \family default
19316 s associated with a single 
19317 \family sans
19318 Slide
19319 \family default
19320 , and, as with 
19321 \family sans
19322 Slide
19323 \family default
19324  and 
19325 \family sans
19326 Overlay
19327 \family default
19328 , you'll probably want to break up long 
19329 \family sans
19330 Note
19331 \family default
19332 s so that they fit on a single sheet of paper.
19333 \end_layout
19334
19335 \begin_layout Standard
19336 The purpose of a 
19337 \family sans
19338 Note
19339 \family default
19340  is obvious: it contains anything additional you might want to say about
19341  a 
19342 \family sans
19343 Slide
19344 \family default
19345 .
19346  It could also be used as a sheet of reminders for a particular 
19347 \family sans
19348 Slide
19349 \family default
19350 .
19351  In the case of the latter, you might want to make use of time markers.
19352  Currently, the \SpecialChar LyX
19353  
19354 \family sans
19355 slides
19356 \family default
19357  class has no 
19358 \begin_inset Quotes eld
19359 \end_inset
19360
19361 native
19362 \begin_inset Quotes erd
19363 \end_inset
19364
19365  support for time markers, a 
19366 \noun on
19367 Sli\SpecialChar TeX
19368
19369 \noun default
19370  feature.
19371  So, you'll have to resort to using the \SpecialChar LaTeX
19372  codes.
19373 \end_layout
19374
19375 \begin_layout Standard
19376 To use time markers, you'll need to specify the extra class option 
19377 \begin_inset Quotes eld
19378 \end_inset
19379
19380
19381 \family typewriter
19382 clock
19383 \family default
19384
19385 \begin_inset Quotes erd
19386 \end_inset
19387
19388  [see section
19389 \begin_inset space ~
19390 \end_inset
19391
19392
19393 \begin_inset CommandInset ref
19394 LatexCommand ref
19395 reference "sec:slidesetup"
19396
19397 \end_inset
19398
19399 ].
19400  This option turns on timing marks, which will appear in the lower-left-hand
19401  corner of every 
19402 \family sans
19403 Note
19404 \family default
19405  you generate.
19406  To set what appears in the time marker, you use the \SpecialChar LaTeX
19407  commands 
19408 \begin_inset Quotes eld
19409 \end_inset
19410
19411
19412 \family typewriter
19413
19414 \backslash
19415 settime{}
19416 \family default
19417
19418 \begin_inset Quotes erd
19419 \end_inset
19420
19421  and 
19422 \begin_inset Quotes eld
19423 \end_inset
19424
19425
19426 \family typewriter
19427
19428 \backslash
19429 addtime{}
19430 \family default
19431
19432 \begin_inset Quotes erd
19433 \end_inset
19434
19435 .
19436  The arguments of both commands are time measured in seconds.
19437  
19438 \begin_inset Quotes eld
19439 \end_inset
19440
19441
19442 \family typewriter
19443
19444 \backslash
19445 settime{}
19446 \family default
19447
19448 \begin_inset Quotes erd
19449 \end_inset
19450
19451  sets the time marker to a given time.
19452  
19453 \begin_inset Quotes eld
19454 \end_inset
19455
19456
19457 \family typewriter
19458
19459 \backslash
19460 addtime{}
19461 \family default
19462
19463 \begin_inset Quotes erd
19464 \end_inset
19465
19466  increments the time marker by the specified amount.
19467  Using time markers and 
19468 \family sans
19469 Note
19470 \family default
19471 s in this fashion, you can remind yourself how much time to spend on a particula
19472
19473 \family sans
19474 Slide
19475 \family default
19476 .
19477 \end_layout
19478
19479 \begin_layout Standard
19480 There's one last feature to describe.
19481  Clearly, you'd like to print out all of your 
19482 \family sans
19483 Slide
19484 \family default
19485 s and 
19486 \family sans
19487 Overlay
19488 \family default
19489 s on transparencies while printing all of your 
19490 \family sans
19491 Note
19492 \family default
19493 s on plain paper.
19494  However, a 
19495 \family sans
19496 Note
19497 \family default
19498  
19499 \emph on
19500 must
19501 \emph default
19502  follow the 
19503 \family sans
19504 Slide
19505 \family default
19506  with which it is associated.
19507  What's a person to do?
19508 \end_layout
19509
19510 \begin_layout Standard
19511 Luckily, there are two \SpecialChar LaTeX
19512  commands that allow you to select what to print
19513  out.
19514  Both must be placed into the preamble of your document.
19515  The command 
19516 \begin_inset Quotes eld
19517 \end_inset
19518
19519
19520 \family typewriter
19521
19522 \backslash
19523 onlyslides{
19524 \backslash
19525 slides}
19526 \family default
19527
19528 \begin_inset Quotes erd
19529 \end_inset
19530
19531  will cause the output to contain only the 
19532 \family sans
19533 Slide
19534 \family default
19535 s and 
19536 \family sans
19537 Overlay
19538 \family default
19539 s.
19540  Correspondingly, the command 
19541 \begin_inset Quotes eld
19542 \end_inset
19543
19544
19545 \family typewriter
19546
19547 \backslash
19548 onlynotes{
19549 \backslash
19550 notes}
19551 \family default
19552
19553 \begin_inset Quotes erd
19554 \end_inset
19555
19556  prevents the output of anything but 
19557 \family sans
19558 Note
19559 \family default
19560 s.
19561  I'd advise placing both commands in the preamble and initially comment
19562  both out.
19563  You can then preview your entire presentation as you write.
19564  When you're done writing, you can then uncomment one of the two to select
19565  what you want to print.
19566  I like to uncomment 
19567 \begin_inset Quotes eld
19568 \end_inset
19569
19570
19571 \family typewriter
19572
19573 \backslash
19574 onlyslides{
19575 \backslash
19576 slides}
19577 \family default
19578
19579 \begin_inset Quotes erd
19580 \end_inset
19581
19582  , print to a file with 
19583 \begin_inset Quotes eld
19584 \end_inset
19585
19586
19587 \family typewriter
19588 -slides
19589 \family default
19590
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594  in its name, comment it back out, then uncomment 
19595 \begin_inset Quotes eld
19596 \end_inset
19597
19598
19599 \family typewriter
19600
19601 \backslash
19602 onlynotes{
19603 \backslash
19604 notes}
19605 \family default
19606
19607 \begin_inset Quotes erd
19608 \end_inset
19609
19610  and print to a 
19611 \begin_inset Quotes eld
19612 \end_inset
19613
19614
19615 \family typewriter
19616 *-notes.ps
19617 \family default
19618
19619 \begin_inset Quotes erd
19620 \end_inset
19621
19622  file.
19623  I can then send either file to a printer, loading transparencies or plain
19624  paper as appropriate.
19625 \end_layout
19626
19627 \begin_layout Standard
19628 You can also provide other arguments to the 
19629 \begin_inset Quotes eld
19630 \end_inset
19631
19632
19633 \family typewriter
19634
19635 \backslash
19636 onlyslides{}
19637 \family default
19638
19639 \begin_inset Quotes erd
19640 \end_inset
19641
19642  and 
19643 \begin_inset Quotes eld
19644 \end_inset
19645
19646
19647 \family typewriter
19648
19649 \backslash
19650 onlynotes{}
19651 \family default
19652
19653 \begin_inset Quotes erd
19654 \end_inset
19655
19656  commands.
19657  See a good \SpecialChar LaTeX
19658  book for details.
19659 \end_layout
19660
19661 \begin_layout Subsection
19662 The 
19663 \family sans
19664 slides
19665 \family default
19666  Class Template File
19667 \end_layout
19668
19669 \begin_layout Standard
19670 I have also provided a template file, 
19671 \begin_inset Quotes eld
19672 \end_inset
19673
19674
19675 \family typewriter
19676 slides.lyx
19677 \family default
19678
19679 \begin_inset Quotes erd
19680 \end_inset
19681
19682 , with the 
19683 \family sans
19684 slides
19685 \family default
19686  class.
19687  To use it, begin your new presentation with 
19688 \family sans
19689 File\SpecialChar menuseparator
19690 New
19691 \begin_inset space ~
19692 \end_inset
19693
19694 from
19695 \begin_inset space ~
19696 \end_inset
19697
19698 Template
19699 \family default
19700 .
19701  Your new \SpecialChar LyX
19702  presentation file will contain an example 
19703 \family sans
19704 Slide
19705 \family default
19706  – 
19707 \family sans
19708 Overlay
19709 \family default
19710  – 
19711 \family sans
19712 Note
19713 \family default
19714  triplet.
19715  The 
19716 \family sans
19717 Slide
19718 \family default
19719  and 
19720 \family sans
19721 Overlay
19722 \family default
19723  additionally contain an example of the use of 
19724 \family sans
19725 InvisibleText
19726 \family default
19727  and 
19728 \family sans
19729 VisibleText
19730 \family default
19731 .
19732  Lastly, the preamble will contain:
19733 \end_layout
19734
19735 \begin_layout LyX-Code
19736 % Uncomment to print out only slides and overlays
19737 \end_layout
19738
19739 \begin_layout LyX-Code
19740 %
19741 \end_layout
19742
19743 \begin_layout LyX-Code
19744 %
19745 \backslash
19746 onlyslides{
19747 \backslash
19748 slides}
19749 \begin_inset Newline newline
19750 \end_inset
19751
19752  
19753 \end_layout
19754
19755 \begin_layout LyX-Code
19756 % Uncomment to print out only notes
19757 \end_layout
19758
19759 \begin_layout LyX-Code
19760 %
19761 \end_layout
19762
19763 \begin_layout LyX-Code
19764 %
19765 \backslash
19766 onlynotes{
19767 \backslash
19768 notes}
19769 \end_layout
19770
19771 \begin_layout Standard
19772 One final thing: I created this class to support the \SpecialChar LaTeX2e
19773  
19774 \begin_inset Quotes eld
19775 \end_inset
19776
19777
19778 \noun on
19779 Sli\SpecialChar TeX
19780
19781 \noun default
19782  emulation
19783 \begin_inset Quotes erd
19784 \end_inset
19785
19786  class, one of the built-in \SpecialChar LaTeX2e
19787  classes.
19788  Neither I nor the rest of the \SpecialChar LyX
19789  Team endorse or oppose the use of this built-in
19790  slide class.
19791  It's here if you want it or need it.
19792  There exist other \SpecialChar LaTeX2e
19793  classes for creating presentations, such as the 
19794 \family sans
19795 Foils
19796 \family default
19797  class [see section
19798 \begin_inset space ~
19799 \end_inset
19800
19801
19802 \begin_inset CommandInset ref
19803 LatexCommand ref
19804 reference "sec:foiltex"
19805
19806 \end_inset
19807
19808 ] or the 
19809 \begin_inset Quotes eld
19810 \end_inset
19811
19812
19813 \family typewriter
19814 seminar
19815 \family default
19816
19817 \begin_inset Quotes erd
19818 \end_inset
19819
19820  package [present on some \SpecialChar TeX
19821  distributions].
19822  The latter is not yet supported under \SpecialChar LyX
19823 .
19824 \begin_inset Foot
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 Perhaps you can take on the task\SpecialChar ldots
19829
19830 \end_layout
19831
19832 \end_inset
19833
19834  I know nothing about these other classes.
19835  Try them out to see what sort of alternative they provide.
19836 \end_layout
19837
19838 \begin_layout Chapter
19839 \SpecialChar LyX
19840  Features needing Extra Software
19841 \end_layout
19842
19843 \begin_layout Section
19844 Checking \SpecialChar TeX
19845
19846 \end_layout
19847
19848 \begin_layout Standard
19849 by 
19850 \noun on
19851 Asger Alstrup
19852 \end_layout
19853
19854 \begin_layout Subsection
19855 Introduction
19856 \end_layout
19857
19858 \begin_layout Standard
19859 If you have the 
19860 \family typewriter
19861 chktex
19862 \family default
19863  program installed
19864 \begin_inset Foot
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868
19869 \family typewriter
19870 chktex
19871 \family default
19872  is not yet available when you are using the \SpecialChar LaTeX
19873  distribution MiK\SpecialChar TeX
19874 .
19875 \end_layout
19876
19877 \end_inset
19878
19879 , you'll find in the 
19880 \family sans
19881 Tools
19882 \family default
19883  menu the entry: 
19884 \family sans
19885 Check
19886 \begin_inset space ~
19887 \end_inset
19888
19889 TeX
19890 \family default
19891 .
19892  You can get 
19893 \family typewriter
19894 chktex
19895 \family default
19896  from CTAN,
19897 \begin_inset Newline newline
19898 \end_inset
19899
19900
19901 \begin_inset CommandInset href
19902 LatexCommand href
19903 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19904 literal "false"
19905
19906 \end_inset
19907
19908 .
19909 \end_layout
19910
19911 \begin_layout Standard
19912 The 
19913 \family sans
19914 Chk\SpecialChar TeX
19915
19916 \family default
19917  package is a program that was written by 
19918 \begin_inset Flex Noun
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 Jens T.
19923 \begin_inset space ~
19924 \end_inset
19925
19926 Berger Thielemann
19927 \end_layout
19928
19929 \end_inset
19930
19931  in frustration because some constructs in \SpecialChar LaTeX
19932  are sometimes non-intuitive,
19933  and easy to forget.
19934  The program runs over your \SpecialChar LaTeX
19935  file, checks the integrity of the file, and
19936  flags some common errors.
19937  In other technical words, it is 
19938 \family typewriter
19939 lint
19940 \family default
19941  for \SpecialChar LaTeX
19942 .
19943 \end_layout
19944
19945 \begin_layout Standard
19946 Well, what is a syntax checker doing in \SpecialChar LyX
19947  which is supposed to produce correct
19948  \SpecialChar LaTeX
19949  anyways? The answer is simple: Just as 
19950 \family typewriter
19951 Lint
19952 \family default
19953  not only checks the 
19954 \emph on
19955 syntax
19956 \emph default
19957  of C programs, but also does 
19958 \emph on
19959 semantic
19960 \emph default
19961  checks for type-errors, 
19962 \family sans
19963 Chk\SpecialChar TeX
19964
19965 \family default
19966  catches some common 
19967 \emph on
19968 typographic
19969 \emph default
19970  errors, in addition to the syntactical ones.
19971  Specifically, 
19972 \family sans
19973 Chk\SpecialChar TeX
19974
19975 \family default
19976  is capable of detecting several common errors, such as
19977 \end_layout
19978
19979 \begin_layout Itemize
19980 Ellipsis detection:
19981 \begin_inset Newline newline
19982 \end_inset
19983
19984 Use \SpecialChar ldots
19985  instead of ...
19986 \end_layout
19987
19988 \begin_layout Itemize
19989 No space in front of/after parenthesis:
19990 \begin_inset Newline newline
19991 \end_inset
19992
19993 ( wrong spacing )
19994 \end_layout
19995
19996 \begin_layout Itemize
19997 Enforcement of normal space after common abbreviations:
19998 \begin_inset Newline newline
19999 \end_inset
20000
20001 e.
20002 \begin_inset space \thinspace{}
20003 \end_inset
20004
20005 g.
20006 \begin_inset space \space{}
20007 \end_inset
20008
20009 is too wide spacing.
20010 \end_layout
20011
20012 \begin_layout Itemize
20013 Enforcement of end-of-sentence space when the last sentence ends with a
20014  capital letter:
20015 \begin_inset Newline newline
20016 \end_inset
20017
20018 This is a TEST.
20019  And this is wrong spacing.
20020 \end_layout
20021
20022 \begin_layout Itemize
20023 Space in front of labels and similar commands:
20024 \begin_inset Newline newline
20025 \end_inset
20026
20027 The label should stick right up to the text to avoid falling to a wrong
20028  page.
20029  
20030 \begin_inset CommandInset label
20031 LatexCommand label
20032 name "sec:chktex"
20033
20034 \end_inset
20035
20036  
20037 \begin_inset Foot
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 This footnote is in danger of falling off to a wrong page
20042 \end_layout
20043
20044 \end_inset
20045
20046  The label is separated too much.
20047 \end_layout
20048
20049 \begin_layout Itemize
20050 Space in front of references, instead of hard spaces:
20051 \begin_inset Newline newline
20052 \end_inset
20053
20054 If you have bad luck, the text will break right between the referenced text
20055  and reference number, and that's a pity.
20056  See section 
20057 \begin_inset CommandInset ref
20058 LatexCommand ref
20059 reference "sec:chktex"
20060
20061 \end_inset
20062
20063 .
20064 \end_layout
20065
20066 \begin_layout Itemize
20067 Use of 
20068 \begin_inset Quotes eld
20069 \end_inset
20070
20071 x
20072 \begin_inset Quotes erd
20073 \end_inset
20074
20075  instead of 
20076 \begin_inset Formula $\times$
20077 \end_inset
20078
20079  between numbers:
20080 \begin_inset Newline newline
20081 \end_inset
20082
20083 2x2 looks cheap compared to 
20084 \begin_inset Formula $2\times2$
20085 \end_inset
20086
20087 .
20088 \end_layout
20089
20090 \begin_layout Standard
20091 and more \SpecialChar ldots
20092  It is an invaluable tool when you are 
20093 \begin_inset Quotes eld
20094 \end_inset
20095
20096 finishing up
20097 \begin_inset Quotes erd
20098 \end_inset
20099
20100  your document before printing, and you should run it right after the obligatory
20101  spelling check, and before you go fine tuning the typesetting.
20102 \end_layout
20103
20104 \begin_layout Subsection
20105 How to use it
20106 \end_layout
20107
20108 \begin_layout Standard
20109 If you have the program installed, usage is as simple as choosing 
20110 \family sans
20111 Tools\SpecialChar menuseparator
20112 Check
20113 \begin_inset space ~
20114 \end_inset
20115
20116 TeX
20117 \family default
20118 .
20119  This will make \SpecialChar LyX
20120  generate a \SpecialChar LaTeX
20121  file of your document, start 
20122 \family sans
20123 Chk\SpecialChar TeX
20124
20125 \family default
20126  to check it, and then make \SpecialChar LyX
20127  insert 
20128 \begin_inset Quotes eld
20129 \end_inset
20130
20131 error boxes
20132 \begin_inset Quotes erd
20133 \end_inset
20134
20135  with the warnings from 
20136 \family sans
20137 Chk\SpecialChar TeX
20138
20139 \family default
20140 , if there were any.
20141  The warnings will be placed close to the point of the mistake, and you
20142  can quickly find them by using the 
20143 \family sans
20144 Navigate\SpecialChar menuseparator
20145 Error
20146 \family default
20147  menu item, or the shortcut key 
20148 \family sans
20149 C-g
20150 \family default
20151  from the default 
20152 \family typewriter
20153 cua
20154 \family default
20155  bind file.
20156  Open the error boxes by clicking on them with the mouse, or use the shortcut
20157  key 
20158 \family sans
20159 C-i
20160 \family default
20161  from 
20162 \family typewriter
20163 cua
20164 \family default
20165  bindings, or the corresponding 
20166 \family sans
20167 C-o
20168 \family default
20169  for the alternate 
20170 \family typewriter
20171 emacs
20172 \family default
20173  bind file.
20174  Read the warning and correct the mistake, if it is a mistake.
20175  If you have trouble understanding what the warning is about, you can safely
20176  ignore it.
20177  Remember that there is a hidden layer between the document on screen and
20178  the technical details in invoking 
20179 \family sans
20180 Chk\SpecialChar TeX
20181
20182 \family default
20183 , and this gap can make some warnings seem arcane or just plain silly.
20184 \end_layout
20185
20186 \begin_layout Standard
20187 This document is an excellent testing bed for the feature, and it should
20188  provide quite a few warnings for you to fiddle with.
20189  Since computers are only so smart, expect most of the warnings to be false
20190  alarms, though.
20191 \end_layout
20192
20193 \begin_layout Subsection
20194 How to fine tune it
20195 \end_layout
20196
20197 \begin_layout Standard
20198 Sometimes, you'll find that 
20199 \family sans
20200 Chk\SpecialChar TeX
20201
20202 \family default
20203  makes more noise than suits your mood.
20204  Then you can choose not to use it, wait until your mood changes, or try
20205  to customize 
20206 \family sans
20207 Chk\SpecialChar TeX
20208
20209 \family default
20210  to get better along with you.
20211 \end_layout
20212
20213 \begin_layout Standard
20214 Although 
20215 \family sans
20216 Chk\SpecialChar TeX
20217
20218 \family default
20219  
20220 \emph on
20221 is
20222 \emph default
20223  very configurable and extensible, you should not expect to solve all problems
20224  with 
20225 \family sans
20226 Chk\SpecialChar TeX
20227
20228 \family default
20229  in \SpecialChar LyX
20230  this way.
20231  Since \SpecialChar LyX
20232  has to generate a somewhat special \SpecialChar LaTeX
20233  file to be able to match the
20234  line numbers from the 
20235 \family sans
20236 Chk\SpecialChar TeX
20237
20238 \family default
20239  output
20240 \begin_inset Foot
20241 status collapsed
20242
20243 \begin_layout Plain Layout
20244 You can inspect the specific output from 
20245 \family sans
20246 chktex
20247 \family default
20248  by using 
20249 \family sans
20250 Document\SpecialChar menuseparator
20251 \SpecialChar LaTeX
20252
20253 \begin_inset space ~
20254 \end_inset
20255
20256 Log
20257 \family default
20258  right after a 
20259 \family sans
20260 chktex
20261 \family default
20262  run.
20263 \end_layout
20264
20265 \end_inset
20266
20267  to the internal document structure, some of the warnings will not appear
20268  correctly.
20269  There are two things you can do about this:
20270 \end_layout
20271
20272 \begin_layout Itemize
20273 Fine tune the 
20274 \family sans
20275 Chk\SpecialChar TeX
20276
20277 \family default
20278  invocation command line in 
20279 \begin_inset Flex Noun
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 Tools\SpecialChar menuseparator
20284 Preferences\SpecialChar menuseparator
20285 Output\SpecialChar menuseparator
20286 LaTeX\SpecialChar menuseparator
20287 CheckTeX command
20288 \end_layout
20289
20290 \end_inset
20291
20292 , or the global 
20293 \family sans
20294 Chk\SpecialChar TeX
20295
20296 \family default
20297  installation configuration file (usually with the file 
20298 \family typewriter
20299 chktexrc
20300 \family default
20301 ).
20302  See below to learn what warnings can be enabled and disabled on the command
20303  line.
20304 \end_layout
20305
20306 \begin_layout Itemize
20307 Export your document as a raw \SpecialChar LaTeX
20308  file using 
20309 \family sans
20310 File\SpecialChar menuseparator
20311 Export\SpecialChar menuseparator
20312 \SpecialChar LaTeX
20313
20314 \family default
20315  and run 
20316 \family typewriter
20317 chktex
20318 \family default
20319  manually on that.
20320  Invoked in this way, it can be a hassle to find the corresponding place
20321  in the document inside \SpecialChar LyX
20322 , but with a little patience, you should be able
20323  to do it.
20324 \end_layout
20325
20326 \begin_layout Standard
20327 Here follows the warning messages that can be enabled and disabled in 
20328 \family sans
20329 Preferences
20330 \family default
20331 .
20332  Use 
20333 \family typewriter
20334 -n#
20335 \family default
20336  to disable a warning, and 
20337 \family typewriter
20338 -w#
20339 \family default
20340  to enable a warning.
20341  The emphasized entries are disabled by default, because the default is
20342  "
20343 \family typewriter
20344 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20345 \family default
20346 ".
20347 \end_layout
20348
20349 \begin_layout Standard
20350 Notice that you should only use the options that enable and disable warnings,
20351  because \SpecialChar LyX
20352  relies on some of the other command line parameters to be set
20353  in a specific way to have a chance to communicate with 
20354 \family typewriter
20355 chktex
20356 \family default
20357 .
20358 \end_layout
20359
20360 \begin_layout Enumerate
20361
20362 \size small
20363 \emph on
20364 Command terminated with space.
20365 \end_layout
20366
20367 \begin_layout Enumerate
20368
20369 \size small
20370 Non-breaking space (
20371 \begin_inset Quotes eld
20372 \end_inset
20373
20374
20375 \family typewriter
20376 ~
20377 \family default
20378
20379 \begin_inset Quotes erd
20380 \end_inset
20381
20382 ) should have been used.
20383 \end_layout
20384
20385 \begin_layout Enumerate
20386
20387 \size small
20388 \emph on
20389 You should enclose the previous parenthesis with 
20390 \begin_inset Quotes eld
20391 \end_inset
20392
20393
20394 \family typewriter
20395 {}
20396 \family default
20397
20398 \begin_inset Quotes erd
20399 \end_inset
20400
20401 .
20402 \end_layout
20403
20404 \begin_layout Enumerate
20405
20406 \size small
20407 Italic correction (
20408 \begin_inset Quotes eld
20409 \end_inset
20410
20411
20412 \family typewriter
20413
20414 \backslash
20415 /
20416 \family default
20417
20418 \begin_inset Quotes erd
20419 \end_inset
20420
20421 ) found in non-italic buffer.
20422 \end_layout
20423
20424 \begin_layout Enumerate
20425
20426 \size small
20427 Italic correction (
20428 \begin_inset Quotes eld
20429 \end_inset
20430
20431
20432 \family typewriter
20433
20434 \backslash
20435 /
20436 \family default
20437
20438 \begin_inset Quotes erd
20439 \end_inset
20440
20441 ) found more than once.
20442 \end_layout
20443
20444 \begin_layout Enumerate
20445
20446 \size small
20447 \emph on
20448 No italic correction (
20449 \begin_inset Quotes eld
20450 \end_inset
20451
20452
20453 \family typewriter
20454
20455 \backslash
20456 /
20457 \family default
20458
20459 \begin_inset Quotes erd
20460 \end_inset
20461
20462 ) found.
20463 \end_layout
20464
20465 \begin_layout Enumerate
20466
20467 \size small
20468 Accent command 
20469 \begin_inset Quotes eld
20470 \end_inset
20471
20472
20473 \family typewriter
20474 cmd
20475 \family default
20476
20477 \begin_inset Quotes erd
20478 \end_inset
20479
20480  needs use of 
20481 \begin_inset Quotes eld
20482 \end_inset
20483
20484
20485 \family typewriter
20486 cmd
20487 \family default
20488
20489 \begin_inset Quotes erd
20490 \end_inset
20491
20492 .
20493 \end_layout
20494
20495 \begin_layout Enumerate
20496
20497 \size small
20498 Wrong length of dash may have been used.
20499 \end_layout
20500
20501 \begin_layout Enumerate
20502
20503 \size small
20504 \emph on
20505 \begin_inset Quotes eld
20506 \end_inset
20507
20508
20509 \family typewriter
20510 %s
20511 \family default
20512
20513 \begin_inset Quotes erd
20514 \end_inset
20515
20516  expected, found 
20517 \begin_inset Quotes eld
20518 \end_inset
20519
20520
20521 \family typewriter
20522 %s
20523 \family default
20524
20525 \begin_inset Quotes erd
20526 \end_inset
20527
20528 .
20529 \end_layout
20530
20531 \begin_layout Enumerate
20532
20533 \size small
20534 Solo 
20535 \begin_inset Quotes eld
20536 \end_inset
20537
20538
20539 \family typewriter
20540 %s
20541 \family default
20542
20543 \begin_inset Quotes erd
20544 \end_inset
20545
20546  found.
20547 \end_layout
20548
20549 \begin_layout Enumerate
20550
20551 \size small
20552 You should use 
20553 \begin_inset Quotes eld
20554 \end_inset
20555
20556
20557 \family typewriter
20558 %s
20559 \family default
20560
20561 \begin_inset Quotes erd
20562 \end_inset
20563
20564  to achieve an ellipsis.
20565 \end_layout
20566
20567 \begin_layout Enumerate
20568
20569 \size small
20570 Inter-word spacing (
20571 \begin_inset Quotes eld
20572 \end_inset
20573
20574
20575 \family typewriter
20576
20577 \backslash
20578
20579 \family default
20580  
20581 \begin_inset Quotes eld
20582 \end_inset
20583
20584 ) should perhaps be used.
20585 \end_layout
20586
20587 \begin_layout Enumerate
20588
20589 \size small
20590 Inter-sentence spacing (
20591 \begin_inset Quotes eld
20592 \end_inset
20593
20594
20595 \family typewriter
20596
20597 \backslash
20598 @
20599 \family default
20600
20601 \begin_inset Quotes erd
20602 \end_inset
20603
20604 ) should perhaps be used.
20605 \end_layout
20606
20607 \begin_layout Enumerate
20608
20609 \size small
20610 Could not find argument for command.
20611 \end_layout
20612
20613 \begin_layout Enumerate
20614
20615 \size small
20616 No match found for 
20617 \begin_inset Quotes eld
20618 \end_inset
20619
20620
20621 \family typewriter
20622 %s
20623 \family default
20624
20625 \begin_inset Quotes erd
20626 \end_inset
20627
20628 .
20629 \end_layout
20630
20631 \begin_layout Enumerate
20632
20633 \size small
20634 Math mode still on at end of \SpecialChar LaTeX
20635  file.
20636 \end_layout
20637
20638 \begin_layout Enumerate
20639
20640 \size small
20641 Number of 
20642 \begin_inset Quotes eld
20643 \end_inset
20644
20645
20646 \family typewriter
20647 char
20648 \family default
20649
20650 \begin_inset Quotes erd
20651 \end_inset
20652
20653  doesn't match the number of 
20654 \begin_inset Quotes eld
20655 \end_inset
20656
20657
20658 \family typewriter
20659 char
20660 \family default
20661
20662 \begin_inset Quotes erd
20663 \end_inset
20664
20665 .
20666 \end_layout
20667
20668 \begin_layout Enumerate
20669
20670 \size small
20671 You should use either 
20672 \family typewriter
20673
20674 \begin_inset Quotes eld
20675 \end_inset
20676
20677
20678 \family default
20679  or 
20680 \family typewriter
20681
20682 \begin_inset Quotes erd
20683 \end_inset
20684
20685
20686 \family default
20687  as an alternative to 
20688 \begin_inset Quotes eld
20689 \end_inset
20690
20691
20692 \family typewriter
20693 "
20694 \family default
20695
20696 \begin_inset Quotes erd
20697 \end_inset
20698
20699 .
20700 \end_layout
20701
20702 \begin_layout Enumerate
20703
20704 \size small
20705 You should use "
20706 \family typewriter
20707 '
20708 \family default
20709 " (ASCII 39) instead of "
20710 \family typewriter
20711 ´
20712 \family default
20713 " (ASCII 180).
20714 \end_layout
20715
20716 \begin_layout Enumerate
20717
20718 \size small
20719 User-specified pattern found.
20720 \end_layout
20721
20722 \begin_layout Enumerate
20723
20724 \size small
20725 This command might not be intended.
20726 \end_layout
20727
20728 \begin_layout Enumerate
20729
20730 \size small
20731 \emph on
20732 Comment displayed.
20733 \end_layout
20734
20735 \begin_layout Enumerate
20736
20737 \size small
20738 Either 
20739 \family typewriter
20740 ''
20741 \backslash
20742 ,'
20743 \family default
20744  or 
20745 \family typewriter
20746 '
20747 \backslash
20748 ,''
20749 \family default
20750  will look better.
20751 \end_layout
20752
20753 \begin_layout Enumerate
20754
20755 \size small
20756 Delete this space to maintain correct page references.
20757 \end_layout
20758
20759 \begin_layout Enumerate
20760
20761 \size small
20762 \emph on
20763 You might wish to put this between a pair of 
20764 \begin_inset Quotes eld
20765 \end_inset
20766
20767
20768 \family typewriter
20769 {}
20770 \family default
20771
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775 .
20776 \end_layout
20777
20778 \begin_layout Enumerate
20779
20780 \size small
20781 You ought to remove spaces in front of punctuation.
20782 \end_layout
20783
20784 \begin_layout Enumerate
20785
20786 \size small
20787 Could not execute \SpecialChar LaTeX
20788  command.
20789 \end_layout
20790
20791 \begin_layout Enumerate
20792
20793 \size small
20794 Don't use 
20795 \family typewriter
20796
20797 \backslash
20798 /
20799 \family default
20800  in front of small punctuation.
20801 \end_layout
20802
20803 \begin_layout Enumerate
20804
20805 \family typewriter
20806 \size small
20807 $
20808 \backslash
20809 times$
20810 \family default
20811  may look prettier here.
20812 \end_layout
20813
20814 \begin_layout Enumerate
20815
20816 \size small
20817 \emph on
20818 Multiple spaces detected in output.
20819 \end_layout
20820
20821 \begin_layout Enumerate
20822
20823 \size small
20824 This text may be ignored.
20825 \end_layout
20826
20827 \begin_layout Enumerate
20828
20829 \size small
20830 Use 
20831 \family typewriter
20832
20833 \begin_inset Quotes eld
20834 \end_inset
20835
20836
20837 \family default
20838  to begin quotation, not 
20839 \family typewriter
20840 '
20841 \family default
20842 .
20843 \end_layout
20844
20845 \begin_layout Enumerate
20846
20847 \size small
20848 Use 
20849 \family typewriter
20850 '
20851 \family default
20852  to end quotation, not 
20853 \family typewriter
20854
20855 \begin_inset Quotes eld
20856 \end_inset
20857
20858
20859 \family default
20860 .
20861 \end_layout
20862
20863 \begin_layout Enumerate
20864
20865 \size small
20866 Don't mix quotes.
20867 \end_layout
20868
20869 \begin_layout Enumerate
20870
20871 \size small
20872 You should perhaps use 
20873 \begin_inset Quotes eld
20874 \end_inset
20875
20876
20877 \family typewriter
20878 cmd
20879 \family default
20880
20881 \begin_inset Quotes erd
20882 \end_inset
20883
20884  instead.
20885 \end_layout
20886
20887 \begin_layout Enumerate
20888
20889 \size small
20890 You should put a space in front of/after parenthesis.
20891 \end_layout
20892
20893 \begin_layout Enumerate
20894
20895 \size small
20896 You should avoid spaces in front of/after parenthesis.
20897 \end_layout
20898
20899 \begin_layout Enumerate
20900
20901 \size small
20902 \emph on
20903 You should not use punctuation in front of/after quotes.
20904 \end_layout
20905
20906 \begin_layout Enumerate
20907
20908 \size small
20909 Double space found.
20910 \end_layout
20911
20912 \begin_layout Enumerate
20913
20914 \size small
20915 You should put punctuation outside inner/inside display math mode.
20916 \end_layout
20917
20918 \begin_layout Enumerate
20919
20920 \size small
20921 You ought to not use primitive \SpecialChar TeX
20922  in \SpecialChar LaTeX
20923  code.
20924 \end_layout
20925
20926 \begin_layout Enumerate
20927
20928 \size small
20929 You should remove spaces in front of 
20930 \begin_inset Quotes eld
20931 \end_inset
20932
20933
20934 \family typewriter
20935 %s
20936 \family default
20937
20938 \begin_inset Quotes erd
20939 \end_inset
20940
20941
20942 \end_layout
20943
20944 \begin_layout Enumerate
20945
20946 \size small
20947 \begin_inset Quotes eld
20948 \end_inset
20949
20950
20951 \family typewriter
20952 %s
20953 \family default
20954
20955 \begin_inset Quotes erd
20956 \end_inset
20957
20958  is normally not followed by 
20959 \begin_inset Quotes eld
20960 \end_inset
20961
20962
20963 \family typewriter
20964 %c
20965 \family default
20966
20967 \begin_inset Quotes erd
20968 \end_inset
20969
20970 .
20971 \end_layout
20972
20973 \begin_layout Standard
20974 In later versions of \SpecialChar LyX
20975 , we hope to provide a more complete interface to this
20976  tool (and it's smaller cousin 
20977 \family typewriter
20978 lacheck
20979 \family default
20980 ) to exploit the full power of it.
20981  But it's not exactly useless as it is now: go try it on one of your existing
20982  documents of a certain length and be surprised.
20983 \end_layout
20984
20985 \begin_layout Section
20986 Version Control in \SpecialChar LyX
20987
20988 \end_layout
20989
20990 \begin_layout Standard
20991 by
20992 \noun on
20993  Lars Gullik Bjønnes 
20994 \noun default
20995 and 
20996 \noun on
20997 Pavel Sanda
20998 \end_layout
20999
21000 \begin_layout Subsection
21001 Introduction
21002 \end_layout
21003
21004 \begin_layout Standard
21005 \SpecialChar LyX
21006  supports some of the most basic RCS/CVS/SVN/GIT commands.
21007  If you need something a bit more sophisticated you will have to do that
21008  manually in a terminal.
21009 \end_layout
21010
21011 \begin_layout Standard
21012 Also note that CVS support is not as good as subversion support so we advise
21013  using SVN instead.
21014  A good place to start learning Subversion is SVN Book
21015 \begin_inset Foot
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 \begin_inset CommandInset href
21020 LatexCommand href
21021 target "http://svnbook.red-bean.com/"
21022 literal "false"
21023
21024 \end_inset
21025
21026
21027 \end_layout
21028
21029 \end_inset
21030
21031 .
21032  In the case of RCS you should read 
21033 \begin_inset Quotes eld
21034 \end_inset
21035
21036 rcsintro
21037 \begin_inset Quotes erd
21038 \end_inset
21039
21040  (a man file, read it with 
21041 \family typewriter
21042 man rcsintro
21043 \family default
21044 ).
21045  This file describes all the basic features of RCS.
21046  You should especially notice the comment about a RCS directory, and the
21047  notion of a master RCS file (the file ending in 
21048 \family typewriter
21049 ,v
21050 \family default
21051 ).
21052 \end_layout
21053
21054 \begin_layout Standard
21055 Before you begin to use the version control features in \SpecialChar LyX
21056 , you should be
21057  familiar with RCS/CVS/SVN/GIT usage.
21058  The implementation in \SpecialChar LyX
21059  assumes a recent version of the GNU RCS or CVS/SVN
21060  package — no guarantees are made for older versions.
21061  Most of the log messages are not currently displayed after operations —
21062  you can check them in the Messages pane if unsure.
21063  Regular users of version control will appreciate VC toolbar, which can
21064  be enabled via 
21065 \family sans
21066 View\SpecialChar menuseparator
21067 Toolbars\SpecialChar menuseparator
21068 Version
21069 \begin_inset space ~
21070 \end_inset
21071
21072 Control
21073 \family default
21074 .
21075 \end_layout
21076
21077 \begin_layout Standard
21078 For introducing your own external commands consult vc-command in the manual
21079  of \SpecialChar LyX
21080  functions.
21081 \end_layout
21082
21083 \begin_layout Standard
21084 It is strongly recommended to store documents in uncompressed format if
21085  using version control (uncheck 
21086 \family sans
21087 Document\SpecialChar menuseparator
21088 Compressed
21089 \family default
21090  if it is checked): Uncompressed LyX documents are text files and therefore
21091  for merging two different versions by version control systems.
21092  Compressed LyX documents are binary files, which cannot be merged by version
21093  control systems.
21094 \end_layout
21095
21096 \begin_layout Subsection
21097 RCS commands in \SpecialChar LyX
21098
21099 \end_layout
21100
21101 \begin_layout Standard
21102 The following sections describe the RCS commands supported by \SpecialChar LyX
21103 .
21104  You can find them in the 
21105 \family sans
21106 File\SpecialChar menuseparator
21107 Version
21108 \begin_inset space ~
21109 \end_inset
21110
21111 Control
21112 \family default
21113  submenu.
21114  \SpecialChar LyX
21115  was tested against RCS 5.7/5.8.
21116 \end_layout
21117
21118 \begin_layout Subsubsection
21119
21120 \family sans
21121 Register
21122 \end_layout
21123
21124 \begin_layout Standard
21125 If your document is not under revision control, this is the only item shown
21126  in the menu.
21127  And if it is under revision control, the 
21128 \family sans
21129 Register
21130 \family default
21131  item is not visible.
21132  
21133 \end_layout
21134
21135 \begin_layout Standard
21136 This command registers your document with RCS (unless you are under the
21137  directory managed by CVS)\SpecialChar endofsentence
21138  You are asked interactively to supply an initial
21139  description of the document.
21140  The document is now set in Read-Only mode and you have to 
21141 \family sans
21142 Check
21143 \begin_inset space ~
21144 \end_inset
21145
21146 Out
21147 \begin_inset space ~
21148 \end_inset
21149
21150 For
21151 \begin_inset space ~
21152 \end_inset
21153
21154 Edit
21155 \family default
21156 , before making any changes to it.
21157  A document under revision control has a 
21158 \begin_inset Quotes eld
21159 \end_inset
21160
21161 [RCS:<version> <locker>]
21162 \begin_inset Quotes erd
21163 \end_inset
21164
21165  item tagged to the filename in the minibuffer.
21166 \end_layout
21167
21168 \begin_layout Standard
21169 RCS command that is run: 
21170 \family typewriter
21171 ci -q -u -i -t-"<initial description>" <file-name>
21172 \end_layout
21173
21174 \begin_layout Standard
21175 Read 
21176 \family typewriter
21177 man ci
21178 \family default
21179  to understand the switches.
21180  
21181 \end_layout
21182
21183 \begin_layout Subsubsection
21184
21185 \family sans
21186 Check In Changes
21187 \end_layout
21188
21189 \begin_layout Standard
21190 When you are finished editing a file, you check in your changes.
21191  When you do this, you are asked for a description of the changes.
21192  This is stored in the history log.
21193  The version number is bumped, your changes are applied to the master RCS
21194  file, the document is unlocked and set to Read-Only mode.
21195 \end_layout
21196
21197 \begin_layout Standard
21198 RCS command: 
21199 \family typewriter
21200 ci -q -u -m"<description>" <file-name>
21201 \end_layout
21202
21203 \begin_layout Subsubsection
21204
21205 \family sans
21206 Check Out For Edit
21207 \end_layout
21208
21209 \begin_layout Standard
21210 By doing this you lock the document so that only you can edit it.
21211  This will also make the document Read-Write only for you.
21212  You will usually continue editing for a while and when you are finished
21213  you check in your changes.
21214  The status line is changed to reflect that you have locked the file.
21215 \end_layout
21216
21217 \begin_layout Standard
21218 RCS command: 
21219 \family typewriter
21220 co -q -l <file-name>
21221 \end_layout
21222
21223 \begin_layout Subsubsection
21224
21225 \family sans
21226 Revert To Repository Version
21227 \end_layout
21228
21229 \begin_layout Standard
21230 This will discard all changes made to the document since the last check
21231  in.
21232  You get a warning before changes are discarded.
21233 \end_layout
21234
21235 \begin_layout Standard
21236 RCS command: 
21237 \family typewriter
21238 co -f -u<version> <file-name>
21239 \end_layout
21240
21241 \begin_layout Subsubsection
21242
21243 \family sans
21244 Copy
21245 \end_layout
21246
21247 \begin_layout Standard
21248 This will create a copy of the current document.
21249  Since RCS does not support copy operations natively, the version history
21250  is not preserved, and the copy is added as a new file.
21251  It requires a clean document without any changes since the last checkin.
21252  You are asked for a file name and a description of the copy operation.
21253  After that the copy is created, both locally and in the repository.
21254  If the parent directories of the copied and original document differ, all
21255  relative paths of included files of the copy are adjusted (like in 
21256 \family sans
21257 File\SpecialChar menuseparator
21258 Save As
21259 \family default
21260 \SpecialChar ldots
21261 ).
21262  Finally, the copy is loaded instead of the original document.
21263 \end_layout
21264
21265 \begin_layout Labeling
21266 \labelwidthstring 00.00.0000
21267 RCS
21268 \begin_inset space ~
21269 \end_inset
21270
21271 commands: 
21272 \begin_inset space ~
21273 \end_inset
21274
21275
21276 \begin_inset Newline newline
21277 \end_inset
21278
21279 Copy 
21280 \begin_inset Flex Code
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284
21285 \family typewriter
21286 \begin_inset Quotes eld
21287 \end_inset
21288
21289 <file-name>
21290 \begin_inset Quotes erd
21291 \end_inset
21292
21293
21294 \end_layout
21295
21296 \end_inset
21297
21298  to 
21299 \begin_inset Flex Code
21300 status collapsed
21301
21302 \begin_layout Plain Layout
21303
21304 \family typewriter
21305 \begin_inset Quotes eld
21306 \end_inset
21307
21308 <new-file-name>
21309 \begin_inset Quotes erd
21310 \end_inset
21311
21312
21313 \end_layout
21314
21315 \end_inset
21316
21317
21318 \begin_inset Newline newline
21319 \end_inset
21320
21321
21322 \begin_inset Flex Code
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 ci -q -u 
21327 \family typewriter
21328 -i 
21329 \begin_inset Quotes eld
21330 \end_inset
21331
21332 <new-file-name>
21333 \begin_inset Quotes erd
21334 \end_inset
21335
21336
21337 \end_layout
21338
21339 \end_inset
21340
21341
21342 \end_layout
21343
21344 \begin_layout Subsubsection
21345
21346 \family sans
21347 Undo Last Checkin
21348 \end_layout
21349
21350 \begin_layout Standard
21351 This makes as if the last check in never happened.
21352  No changes are made to the document loaded into \SpecialChar LyX
21353 , but the last version
21354  is removed from the master RCS file.
21355 \end_layout
21356
21357 \begin_layout Standard
21358 RCS command: 
21359 \family typewriter
21360 rcs -o<version> <file-name>
21361 \end_layout
21362
21363 \begin_layout Subsubsection
21364
21365 \family sans
21366 Show History
21367 \end_layout
21368
21369 \begin_layout Standard
21370 This shows the complete history of the RCS document.
21371  The output of 
21372 \family typewriter
21373 rlog <file-name>
21374 \family default
21375  is shown in a browser.
21376  See 
21377 \family typewriter
21378 man rlog
21379 \family default
21380  for more info.
21381 \end_layout
21382
21383 \begin_layout Subsubsection
21384 Revision info
21385 \end_layout
21386
21387 \begin_layout Standard
21388 \SpecialChar LyX
21389  supports RCS version number, author name, date and time of last commit.
21390  All those are extracted from 
21391 \family typewriter
21392 rlog -r <file-name>
21393 \family default
21394 .
21395  See 
21396 \begin_inset CommandInset ref
21397 LatexCommand ref
21398 reference "subsec:VCS-Revision-Information"
21399
21400 \end_inset
21401
21402  for details.
21403 \end_layout
21404
21405 \begin_layout Subsection
21406 CVS commands in \SpecialChar LyX
21407
21408 \end_layout
21409
21410 \begin_layout Standard
21411 A subset of CVS operations is supported by \SpecialChar LyX
21412 .
21413  You can find the commands in the 
21414 \family sans
21415 File\SpecialChar menuseparator
21416 Version
21417 \begin_inset space ~
21418 \end_inset
21419
21420 Control
21421 \family default
21422  submenu.
21423  The version control system SVN is more powerful, so please use it instead
21424  of CVS if possible.
21425 \end_layout
21426
21427 \begin_layout Subsubsection
21428
21429 \family sans
21430 General CVS usage
21431 \end_layout
21432
21433 \begin_layout Standard
21434 If you start from scratch with CVS you have to create your repository and
21435  checkout the working copy with external tools.
21436  If you're using a client-server setup you may need to login before doing
21437  the first repository checkout.
21438 \end_layout
21439
21440 \begin_layout Standard
21441 If your documents are under revision control and others are using the same
21442  repository problems arise when different changes to the same document at
21443  the same location happen.
21444  Standard CVS repositories don't operate with a file locking mechanism.
21445  This may be surprising, but conflicts only occur if people disagree on
21446  the proper content of the same part of a document.
21447  So, if co-workers are used to communicate regularly, these conflicts occur
21448  rarely.
21449  If they don't communicate they have a fundamental problem anyway.
21450  Nevertheless some people like to work with so called 
21451 \begin_inset Quotes eld
21452 \end_inset
21453
21454 reserved checkouts
21455 \begin_inset Quotes erd
21456 \end_inset
21457
21458 .
21459  If they do so the working copy of all files is readonly when checked out
21460  first and the user starts editing after using a special command to make
21461  the working copy writable.
21462  When the changes are checked in the working copy returns to readonly state.
21463  With \SpecialChar LyX
21464  one has to edit the 
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 .cvsrc
21470 \end_layout
21471
21472 \end_inset
21473
21474  file and add the line 
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 cvs -r
21480 \end_layout
21481
21482 \end_inset
21483
21484  to work with reserved checkouts.
21485  The benefit is the possibility to see who is using a writable copy of some
21486  document.
21487  It's not guaranteed only one user makes a copy writable.
21488 \end_layout
21489
21490 \begin_layout Standard
21491 \SpecialChar LyX
21492  tries to guess if you're using reserved or non-reserved checkouts.
21493  If your working copy is readonly or it is writable and an additional copy
21494  of your document exists in the CVS/Base sub-directory a reserved otherwise
21495  a non-reserved checkout is assumed.
21496  When a reserved checkout is detected you have to use 
21497 \begin_inset Flex Noun
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 Check Out
21502 \end_layout
21503
21504 \end_inset
21505
21506  to make your working copy writable if it's readonly.
21507  After doing so the 
21508 \begin_inset Flex Noun
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 Check In
21513 \end_layout
21514
21515 \end_inset
21516
21517  operation is possible and that makes your working copy readonly again after
21518  transferring your changes to the repository.
21519 \end_layout
21520
21521 \begin_layout Standard
21522 More information about CVS can be found here 
21523 \begin_inset Flex URL
21524 status collapsed
21525
21526 \begin_layout Plain Layout
21527
21528 http://www.nongnu.org/cvs
21529 \end_layout
21530
21531 \end_inset
21532
21533  and here 
21534 \begin_inset Flex URL
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538
21539 http://ximbiot.com/cvs
21540 \end_layout
21541
21542 \end_inset
21543
21544 .
21545 \end_layout
21546
21547 \begin_layout Standard
21548 Read 
21549 \family typewriter
21550 man cvs
21551 \family default
21552  to understand the sub-commands and the switches mentioned below.
21553 \end_layout
21554
21555 \begin_layout Subsubsection
21556
21557 \family sans
21558 Register
21559 \end_layout
21560
21561 \begin_layout Standard
21562 If your document is not under revision control, this is the only item shown
21563  in the menu.
21564  And if it is under revision control, the 
21565 \family sans
21566 Register
21567 \family default
21568  item is not visible.
21569  
21570 \end_layout
21571
21572 \begin_layout Standard
21573 This command registers in CVS your document 
21574 \begin_inset Flex Strong
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578
21579 \emph on
21580 only
21581 \end_layout
21582
21583 \end_inset
21584
21585  in the case you have already the documents directory under CVS control
21586  (in particular 
21587 \family typewriter
21588 CVS/Entries
21589 \family default
21590  file exists).
21591  This means you have to create or checkout the archive by yourself using
21592  external tools.
21593  (In case you forget that step \SpecialChar LyX
21594  registers the document with RCS.)
21595 \end_layout
21596
21597 \begin_layout Standard
21598 Then you are asked interactively to supply an initial description of the
21599  document.
21600  Don't forget that registered file is not yet checked in.
21601 \end_layout
21602
21603 \begin_layout Standard
21604 CVS command that is run: 
21605 \family typewriter
21606 cvs -q add -m"<entered message>" "<file-name>"
21607 \end_layout
21608
21609 \begin_layout Standard
21610 The term 
21611 \family typewriter
21612 "<file-name>"
21613 \family default
21614  above and for all other CVS commands is an abbreviation for 
21615 \begin_inset Quotes eld
21616 \end_inset
21617
21618 change the current working directory to file location and use the file name
21619  without path component as argument
21620 \begin_inset Quotes erd
21621 \end_inset
21622
21623 .
21624 \end_layout
21625
21626 \begin_layout Subsubsection
21627
21628 \family sans
21629 Check In Changes
21630 \end_layout
21631
21632 \begin_layout Standard
21633 When you are finished editing a file, you commit your changes.
21634  When you do this and you had changed the document, you are asked for a
21635  description of the changes.
21636  After that changes are written to the repository.
21637  In case you didn't change the document and a reserved checkout is detected
21638  the reservation made on 
21639 \begin_inset Flex Noun
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643 Check Out
21644 \end_layout
21645
21646 \end_inset
21647
21648  is undone.
21649 \end_layout
21650
21651 \begin_layout Labeling
21652 \labelwidthstring 00.00.0000
21653 CVS
21654 \begin_inset space ~
21655 \end_inset
21656
21657 command: 
21658 \begin_inset space ~
21659 \end_inset
21660
21661
21662 \begin_inset Newline newline
21663 \end_inset
21664
21665
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 cvs 
21671 \family typewriter
21672 -q commit -m"<description>" "<file-name>"
21673 \end_layout
21674
21675 \end_inset
21676
21677  or
21678 \begin_inset Newline newline
21679 \end_inset
21680
21681
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 cvs -q unedit 
21687 \family typewriter
21688 "<file-name>"
21689 \end_layout
21690
21691 \end_inset
21692
21693
21694 \end_layout
21695
21696 \begin_layout Subsubsection
21697
21698 \family sans
21699 Check Out Changes
21700 \end_layout
21701
21702 \begin_layout Standard
21703 When you are sharing a repository with others, you may have to incorporate
21704  their changes into your working copy.
21705 \end_layout
21706
21707 \begin_layout Standard
21708 CVS command: 
21709 \family typewriter
21710 cvs -q update "<file-name>"
21711 \end_layout
21712
21713 \begin_layout Standard
21714 If a readonly checkout is detected the working copy is made writable and
21715  reserved.
21716 \end_layout
21717
21718 \begin_layout Standard
21719 CVS command: 
21720 \family typewriter
21721 cvs -q edit "<file-name>"
21722 \end_layout
21723
21724 \begin_layout Subsubsection
21725
21726 \family sans
21727 Revert To Repository Version
21728 \end_layout
21729
21730 \begin_layout Standard
21731 This will discard all changes made to the document since the last check
21732  in.
21733  You get a warning before changes are discarded.
21734  Firstly the file is deleted, secondly CVS update command is run.
21735 \end_layout
21736
21737 \begin_layout Standard
21738 CVS command: 
21739 \family typewriter
21740 cvs -q update "<file-name>"
21741 \end_layout
21742
21743 \begin_layout Standard
21744 If a reserved checkout is detected and the working copy has no changes only
21745  the reservation is undone.
21746 \end_layout
21747
21748 \begin_layout Standard
21749 CVS command: 
21750 \family typewriter
21751 cvs -q unedit "<file-name>"
21752 \end_layout
21753
21754 \begin_layout Subsubsection
21755
21756 \family sans
21757 Copy
21758 \end_layout
21759
21760 \begin_layout Standard
21761 This will create a copy of the current document.
21762  Since CVS does not support copy operations natively, the version history
21763  is not preserved, and the copy is added as a new file.
21764  It requires a clean document without any changes since the last checkin.
21765  You are asked for a file name and a description of the copy operation.
21766  After that the copy is created, both locally and in the repository.
21767  If the parent directories of the copied and original document differ, all
21768  relative paths of included files of the copy are adjusted (like in 
21769 \family sans
21770 File\SpecialChar menuseparator
21771 Save As
21772 \family default
21773 \SpecialChar ldots
21774 ).
21775  Finally, the copy is loaded instead of the original document.
21776 \end_layout
21777
21778 \begin_layout Labeling
21779 \labelwidthstring 00.00.0000
21780 CVS
21781 \begin_inset space ~
21782 \end_inset
21783
21784 commands: 
21785 \begin_inset space ~
21786 \end_inset
21787
21788
21789 \begin_inset Newline newline
21790 \end_inset
21791
21792 Copy 
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797
21798 \family typewriter
21799 \begin_inset Quotes eld
21800 \end_inset
21801
21802 <file-name>
21803 \begin_inset Quotes erd
21804 \end_inset
21805
21806
21807 \end_layout
21808
21809 \end_inset
21810
21811  to 
21812 \begin_inset Flex Code
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816
21817 \family typewriter
21818 \begin_inset Quotes eld
21819 \end_inset
21820
21821 <new-file-name>
21822 \begin_inset Quotes erd
21823 \end_inset
21824
21825
21826 \end_layout
21827
21828 \end_inset
21829
21830
21831 \begin_inset Newline newline
21832 \end_inset
21833
21834
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 cvs -q add 
21840 \family typewriter
21841
21842 \begin_inset Quotes eld
21843 \end_inset
21844
21845 <new-file-name>
21846 \begin_inset Quotes erd
21847 \end_inset
21848
21849
21850 \end_layout
21851
21852 \end_inset
21853
21854
21855 \end_layout
21856
21857 \begin_layout Subsubsection
21858
21859 \family sans
21860 Rename
21861 \end_layout
21862
21863 \begin_layout Standard
21864 This will rename the current document.
21865  Since CVS does not support rename operations natively, the version history
21866  is not preserved, the renamed document is added as a new file, and the
21867  original document is deleted.
21868  It requires a clean document without any changes since the last checkin.
21869  You are asked for a file name and a description of the rename operation.
21870  After that the document is renamed, both locally and in the repository.
21871  If the parent directories of the new and old file names differ, all relative
21872  paths of included files are adjusted (like in 
21873 \family sans
21874 File\SpecialChar menuseparator
21875 Save As
21876 \family default
21877 \SpecialChar ldots
21878 ).
21879  Finally, the document is reloaded using the new name.
21880 \end_layout
21881
21882 \begin_layout Labeling
21883 \labelwidthstring 00.00.0000
21884 CVS
21885 \begin_inset space ~
21886 \end_inset
21887
21888 commands: 
21889 \begin_inset space ~
21890 \end_inset
21891
21892
21893 \begin_inset Newline newline
21894 \end_inset
21895
21896 Rename 
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901
21902 \family typewriter
21903 \begin_inset Quotes eld
21904 \end_inset
21905
21906 <file-name>
21907 \begin_inset Quotes erd
21908 \end_inset
21909
21910
21911 \end_layout
21912
21913 \end_inset
21914
21915  to 
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920
21921 \family typewriter
21922 \begin_inset Quotes eld
21923 \end_inset
21924
21925 <new-file-name>
21926 \begin_inset Quotes erd
21927 \end_inset
21928
21929
21930 \end_layout
21931
21932 \end_inset
21933
21934
21935 \begin_inset Newline newline
21936 \end_inset
21937
21938
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 cvs -q add 
21944 \family typewriter
21945
21946 \begin_inset Quotes eld
21947 \end_inset
21948
21949 <new-file-name>
21950 \begin_inset Quotes erd
21951 \end_inset
21952
21953
21954 \end_layout
21955
21956 \end_inset
21957
21958
21959 \begin_inset Newline newline
21960 \end_inset
21961
21962
21963 \begin_inset Flex Code
21964 status collapsed
21965
21966 \begin_layout Plain Layout
21967 cvs -q remove 
21968 \family typewriter
21969
21970 \begin_inset Quotes eld
21971 \end_inset
21972
21973 <file-name>
21974 \begin_inset Quotes erd
21975 \end_inset
21976
21977
21978 \end_layout
21979
21980 \end_inset
21981
21982
21983 \end_layout
21984
21985 \begin_layout Subsubsection
21986 Update of the local directory checkout from repository
21987 \end_layout
21988
21989 \begin_layout Standard
21990 Once your documents gets more complex, containing sub-documents and pictures,
21991  including external 
21992 \begin_inset Flex Code
21993 status collapsed
21994
21995 \begin_layout Plain Layout
21996 .tex
21997 \end_layout
21998
21999 \end_inset
22000
22001  files and so on using version control becomes more complicated.
22002  \SpecialChar LyX
22003  supports updating the whole tree in which resides the document.
22004  This become especially useful once you cooperate with people which neither
22005  have detailed knowledge about CVS usage nor they have ambition to commit
22006  additional material to the repository.
22007  You have to organize the files structure so that all external files are
22008  in the same directory or subdirectories of the document.
22009  It's good practice anyway to store multipart documents in an extra directory.
22010 \end_layout
22011
22012 \begin_layout Standard
22013 The 
22014 \begin_inset Flex Code
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 Update local directory from repository
22019 \end_layout
22020
22021 \end_inset
22022
22023  command updates the whole directory.
22024  If local changes are detected user is warned before update starts.
22025  In case of merge conflicts both versions of the conflicting document parts
22026  are placed in the final document.
22027  You have to review and correct the result of the merge.
22028  You'll find the conflicts enclosed in pairs of 
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033 <<<<<<<
22034 \end_layout
22035
22036 \end_inset
22037
22038  and 
22039 \begin_inset Flex Code
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043 >>>>>>>
22044 \end_layout
22045
22046 \end_inset
22047
22048  separated by 
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 =======
22054 \end_layout
22055
22056 \end_inset
22057
22058 .
22059  The first part is your version as before the update operation with the
22060  document name prepended.
22061  The second one is the repository version with the version number after
22062  the sequence of 
22063 \begin_inset Flex Code
22064 status collapsed
22065
22066 \begin_layout Plain Layout
22067 >
22068 \end_layout
22069
22070 \end_inset
22071
22072  signs.
22073 \end_layout
22074
22075 \begin_layout Labeling
22076 \labelwidthstring 00.00.0000
22077 CVS
22078 \begin_inset space ~
22079 \end_inset
22080
22081 commands: 
22082 \begin_inset space ~
22083 \end_inset
22084
22085
22086 \begin_inset Newline newline
22087 \end_inset
22088
22089
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 cd $path; cvs diff 
22095 \family typewriter
22096 "."
22097 \end_layout
22098
22099 \end_inset
22100
22101  (Ask if changes are detected.)
22102 \begin_inset Newline newline
22103 \end_inset
22104
22105
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 cd $path; cvs -q update 
22111 \family typewriter
22112 "."
22113 \end_layout
22114
22115 \end_inset
22116
22117
22118 \end_layout
22119
22120 \begin_layout Standard
22121 where 
22122 \begin_inset Flex Code
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 $path
22127 \end_layout
22128
22129 \end_inset
22130
22131  stands for the path to the document.
22132 \end_layout
22133
22134 \begin_layout Subsubsection
22135
22136 \family sans
22137 Show History
22138 \end_layout
22139
22140 \begin_layout Standard
22141 This shows the complete history of the CVS document.
22142  The output of 
22143 \family typewriter
22144 cvs log "<file-name>"
22145 \family default
22146  is shown in a browser.
22147 \end_layout
22148
22149 \begin_layout Subsubsection
22150 Revision info
22151 \end_layout
22152
22153 \begin_layout Standard
22154 \SpecialChar LyX
22155  supports CVS version number, author name, date and time of last commit.
22156  All those are extracted from 
22157 \family typewriter
22158 cvs log -r <file-name>
22159 \family default
22160 .
22161  See 
22162 \begin_inset CommandInset ref
22163 LatexCommand ref
22164 reference "subsec:VCS-Revision-Information"
22165
22166 \end_inset
22167
22168  for details.
22169 \end_layout
22170
22171 \begin_layout Subsection
22172 SVN commands in \SpecialChar LyX
22173
22174 \end_layout
22175
22176 \begin_layout Standard
22177 SVN is now partially supported by \SpecialChar LyX
22178 .
22179  You can find the commands in the 
22180 \family sans
22181 File\SpecialChar menuseparator
22182 Version
22183 \begin_inset space ~
22184 \end_inset
22185
22186 Control
22187 \family default
22188  submenu.
22189  Please note that if you use password protected access to repository via
22190  ssh, you will be asked in terminal window.
22191  \SpecialChar LyX
22192  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22193 \begin_inset Foot
22194 status open
22195
22196 \begin_layout Plain Layout
22197 Most of the commands will work with 1.4 too, see 
22198 \begin_inset CommandInset ref
22199 LatexCommand ref
22200 reference "subsec:SVN-Repo-Update"
22201
22202 \end_inset
22203
22204 .
22205  There seems to be currently unresolved permissions problem under SVN 1.8
22206  with reverting changes when file is locked.
22207 \end_layout
22208
22209 \end_inset
22210
22211
22212 \end_layout
22213
22214 \begin_layout Subsubsection
22215
22216 \family sans
22217 Register
22218 \end_layout
22219
22220 \begin_layout Standard
22221 If your document is not under revision control, this is the only item shown
22222  in the menu.
22223  And if it is under revision control, the 
22224 \family sans
22225 Register
22226 \family default
22227  item is not visible.
22228 \end_layout
22229
22230 \begin_layout Standard
22231 This command registers in SVN your document ONLY in case you have already
22232  the documents directory under SVN control (in particular 
22233 \family typewriter
22234 .svn/entries
22235 \family default
22236  file exists).
22237  This means you have to checkout the archive by yourself.
22238 \end_layout
22239
22240 \begin_layout Standard
22241 Then you are asked interactively to supply an initial description of the
22242  document.
22243  Don't forget that registered file is not yet commited.
22244 \end_layout
22245
22246 \begin_layout Standard
22247 SVN command that is run: 
22248 \family typewriter
22249 svn add -q 
22250 \begin_inset Quotes eld
22251 \end_inset
22252
22253 <file-name>
22254 \begin_inset Quotes erd
22255 \end_inset
22256
22257
22258 \end_layout
22259
22260 \begin_layout Standard
22261 Read 
22262 \family typewriter
22263 man svn
22264 \family default
22265  to understand the switches.
22266 \end_layout
22267
22268 \begin_layout Subsubsection
22269
22270 \family sans
22271 Check In Changes
22272 \end_layout
22273
22274 \begin_layout Standard
22275 When you are finished editing a file, you commit your changes.
22276  When you do this, you are asked for a description of the changes.
22277  After that changes are commited.
22278 \end_layout
22279
22280 \begin_layout Standard
22281 SVN command:
22282 \begin_inset Foot
22283 status collapsed
22284
22285 \begin_layout Plain Layout
22286 In case locking is not enabled.
22287  See Section 
22288 \begin_inset CommandInset ref
22289 LatexCommand ref
22290 reference "subsec:SVN-File-Locking"
22291
22292 \end_inset
22293
22294 .
22295 \end_layout
22296
22297 \end_inset
22298
22299  
22300 \family typewriter
22301 svn commit -q -m"<description>" <file-name>
22302 \end_layout
22303
22304 \begin_layout Subsubsection
22305
22306 \family sans
22307 Check Out For Edit
22308 \end_layout
22309
22310 \begin_layout Standard
22311 Updates the changes of this file from the repository.
22312  Be sure you understand SVN merging and conflicts resolving before using
22313  this function, because all conflicts has to be resolved manually by you!
22314 \end_layout
22315
22316 \begin_layout Standard
22317 SVN command:
22318 \begin_inset Foot
22319 status collapsed
22320
22321 \begin_layout Plain Layout
22322 Ditto.
22323 \end_layout
22324
22325 \end_inset
22326
22327  
22328 \family typewriter
22329 svn update --non-interactive 
22330 \begin_inset Quotes eld
22331 \end_inset
22332
22333 <file-name>
22334 \begin_inset Quotes erd
22335 \end_inset
22336
22337
22338 \end_layout
22339
22340 \begin_layout Subsubsection
22341
22342 \family sans
22343 Revert To Repository Version
22344 \end_layout
22345
22346 \begin_layout Standard
22347 This will discard all changes made to the document since the last check
22348  in.
22349  You get a warning before changes are discarded.
22350 \end_layout
22351
22352 \begin_layout Standard
22353 SVN command: 
22354 \family typewriter
22355 svn revert -q 
22356 \begin_inset Quotes eld
22357 \end_inset
22358
22359 <file-name>
22360 \begin_inset Quotes erd
22361 \end_inset
22362
22363
22364 \end_layout
22365
22366 \begin_layout Subsubsection
22367
22368 \family sans
22369 Copy
22370 \end_layout
22371
22372 \begin_layout Standard
22373 This will create a copy of the current document including the version history.
22374  It requires a clean document without any changes since the last checkin.
22375  You are asked for a file name and a description of the copy operation.
22376  After that the copy is created, both locally and in the repository.
22377  If the parent directories of the copied and original document differ, all
22378  relative paths of included files of the copy are adjusted (like in 
22379 \family sans
22380 File\SpecialChar menuseparator
22381 Save As
22382 \family default
22383 \SpecialChar ldots
22384 ).
22385  Finally, the copy is loaded instead of the original document.
22386 \end_layout
22387
22388 \begin_layout Labeling
22389 \labelwidthstring 00.00.0000
22390 SVN
22391 \begin_inset space ~
22392 \end_inset
22393
22394 commands: 
22395 \begin_inset space ~
22396 \end_inset
22397
22398
22399 \begin_inset Newline newline
22400 \end_inset
22401
22402
22403 \begin_inset Flex Code
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 svn copy -q 
22408 \family typewriter
22409
22410 \begin_inset Quotes eld
22411 \end_inset
22412
22413 <file-name>
22414 \begin_inset Quotes erd
22415 \end_inset
22416
22417  
22418 \begin_inset Quotes eld
22419 \end_inset
22420
22421 <new-file-name>
22422 \begin_inset Quotes erd
22423 \end_inset
22424
22425
22426 \end_layout
22427
22428 \end_inset
22429
22430
22431 \begin_inset Newline newline
22432 \end_inset
22433
22434
22435 \begin_inset Flex Code
22436 status collapsed
22437
22438 \begin_layout Plain Layout
22439 svn commit
22440 \end_layout
22441
22442 \end_inset
22443
22444
22445 \end_layout
22446
22447 \begin_layout Subsubsection
22448
22449 \family sans
22450 Rename
22451 \end_layout
22452
22453 \begin_layout Standard
22454 This will rename the current document including the version history.
22455  It requires a clean document without any changes since the last checkin.
22456  You are asked for a file name and a description of the rename operation.
22457  After that the document is renamed, both locally and in the repository.
22458  If the parent directories of the new and old file names differ, all relative
22459  paths of included files are adjusted (like in 
22460 \family sans
22461 File\SpecialChar menuseparator
22462 Save As
22463 \family default
22464 \SpecialChar ldots
22465 ).
22466  Finally, the document is reloaded using the new name.
22467 \end_layout
22468
22469 \begin_layout Labeling
22470 \labelwidthstring 00.00.0000
22471 SVN
22472 \begin_inset space ~
22473 \end_inset
22474
22475 commands: 
22476 \begin_inset space ~
22477 \end_inset
22478
22479
22480 \begin_inset Newline newline
22481 \end_inset
22482
22483
22484 \begin_inset Flex Code
22485 status collapsed
22486
22487 \begin_layout Plain Layout
22488 svn move -q 
22489 \family typewriter
22490
22491 \begin_inset Quotes eld
22492 \end_inset
22493
22494 <file-name>
22495 \begin_inset Quotes erd
22496 \end_inset
22497
22498  
22499 \begin_inset Quotes eld
22500 \end_inset
22501
22502 <new-file-name>
22503 \begin_inset Quotes erd
22504 \end_inset
22505
22506
22507 \end_layout
22508
22509 \end_inset
22510
22511
22512 \begin_inset Newline newline
22513 \end_inset
22514
22515
22516 \begin_inset Flex Code
22517 status collapsed
22518
22519 \begin_layout Plain Layout
22520 svn commit
22521 \end_layout
22522
22523 \end_inset
22524
22525
22526 \end_layout
22527
22528 \begin_layout Subsubsection
22529 \begin_inset CommandInset label
22530 LatexCommand label
22531 name "subsec:SVN-Repo-Update"
22532
22533 \end_inset
22534
22535 Update of the local directory checkout from repository
22536 \begin_inset Foot
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 Note that this command will work only with subversion 
22541 \begin_inset Formula $\geqq1.5$
22542 \end_inset
22543
22544
22545 \end_layout
22546
22547 \end_inset
22548
22549
22550 \end_layout
22551
22552 \begin_layout Standard
22553 All the commands above have one shortcomming - they deal with the current
22554  document only.
22555  Once your document contains pictures, includes external 
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 .tex
22561 \end_layout
22562
22563 \end_inset
22564
22565  files and so on administration becomes more complicated.
22566  \SpecialChar LyX
22567  now supports updating the whole tree in which resides the document
22568 \begin_inset Foot
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 One need to organize the files structure so that all external files are
22573  in the same directory or subdirectories of the document.
22574  
22575 \end_layout
22576
22577 \end_inset
22578
22579 .
22580  This become especially useful once you cooperate with people which neither
22581  know about subversion management nor they have ambition to commit additional
22582  material to the repository.
22583  
22584 \end_layout
22585
22586 \begin_layout Standard
22587 \begin_inset Flex Code
22588 status collapsed
22589
22590 \begin_layout Plain Layout
22591 Update local directory from repository
22592 \end_layout
22593
22594 \end_inset
22595
22596  command updates the whole directory and in case of merge conflicts local
22597  version of the files are left, so no unintended data loss occurs.
22598  If local changes are detected user is warned before update starts.
22599 \end_layout
22600
22601 \begin_layout Labeling
22602 \labelwidthstring 00.00.0000
22603 SVN
22604 \begin_inset space ~
22605 \end_inset
22606
22607 commands: 
22608 \begin_inset space ~
22609 \end_inset
22610
22611
22612 \begin_inset Newline newline
22613 \end_inset
22614
22615
22616 \begin_inset Flex Code
22617 status collapsed
22618
22619 \begin_layout Plain Layout
22620 svn diff $path
22621 \end_layout
22622
22623 \end_inset
22624
22625  (Ask if changes are detected.)
22626 \begin_inset Newline newline
22627 \end_inset
22628
22629
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 svn update –accept mine-full $path
22635 \end_layout
22636
22637 \end_inset
22638
22639
22640 \end_layout
22641
22642 \begin_layout Standard
22643 where 
22644 \begin_inset Flex Code
22645 status collapsed
22646
22647 \begin_layout Plain Layout
22648 $path
22649 \end_layout
22650
22651 \end_inset
22652
22653  stands for the path to the document.
22654 \end_layout
22655
22656 \begin_layout Subsubsection
22657
22658 \family sans
22659 Show History
22660 \end_layout
22661
22662 \begin_layout Standard
22663 This shows the complete history of the SVN document.
22664  The output of 
22665 \family typewriter
22666 svn log 
22667 \begin_inset Quotes eld
22668 \end_inset
22669
22670 <file-name>
22671 \begin_inset Quotes erd
22672 \end_inset
22673
22674
22675 \family default
22676  is shown in a browser.
22677 \end_layout
22678
22679 \begin_layout Subsubsection
22680 File Locking
22681 \begin_inset CommandInset label
22682 LatexCommand label
22683 name "subsec:SVN-File-Locking"
22684
22685 \end_inset
22686
22687
22688 \end_layout
22689
22690 \begin_layout Standard
22691 The file exchange through various revision control systems brings the problem
22692  of merge conflicts in case two different users try to edit the same (parts
22693  of) document.
22694  When such a conflict happens it needs manual resolving and one reasonable
22695  alternative is to provide some kind of locking mechanism, which guarantees
22696  that only one user is allowed to edit file at the given time.
22697 \end_layout
22698
22699 \begin_layout Standard
22700 SVN has two such mechanisms to provide mutual exclusivity for file access
22701  - locks and automatic setting of write permissions (see sec.
22702  
22703 \begin_inset CommandInset ref
22704 LatexCommand ref
22705 reference "subsec:Automatical-Locking-Property"
22706
22707 \end_inset
22708
22709 ) based on 
22710 \begin_inset Flex Code
22711 status collapsed
22712
22713 \begin_layout Plain Layout
22714 svn:needs-lock
22715 \end_layout
22716
22717 \end_inset
22718
22719  file svn property
22720 \begin_inset Foot
22721 status open
22722
22723 \begin_layout Plain Layout
22724 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
22725 \end_layout
22726
22727 \end_inset
22728
22729 .
22730  If this property is detected for a given document \SpecialChar LyX
22731  starts to use SVN locks
22732  for document editing automatically and the whole check-in/out mechanism
22733  switches to the same regimen as for RCS.
22734  This in particular means there are two different modes of file use in \SpecialChar LyX
22735 :
22736 \end_layout
22737
22738 \begin_layout Itemize
22739 Unlocked state.
22740  The loaded file is in the read-only mode.
22741  For editing on needs to check-out.
22742  
22743 \emph on
22744 Check-out
22745 \emph default
22746  consists of updating from the repository and gaining write lock.
22747  If the lock is not possible to obtain, we remain in unlocked state.
22748 \end_layout
22749
22750 \begin_layout Itemize
22751 Locked state.
22752  The loaded file is in the 'normal' edit mode.
22753  No other user is allowed to edit the file.
22754  
22755 \emph on
22756 Check-in
22757 \emph default
22758  consists of commiting changes and releasing write-lock.
22759  If no changes have been made to the document, no commit will be produced
22760 \begin_inset Foot
22761 status collapsed
22762
22763 \begin_layout Plain Layout
22764 Don't be puzzled by the fact that you will be asked for commit message anyway.
22765 \end_layout
22766
22767 \end_inset
22768
22769  and only the write-lock will be released.
22770 \end_layout
22771
22772 \begin_layout Standard
22773 SVN commands:
22774 \end_layout
22775
22776 \begin_layout Labeling
22777 \labelwidthstring 00.00.0000
22778 Check-in:
22779 \family typewriter
22780  svn commit -q -m"<description>" "<file-name>"
22781 \begin_inset Newline newline
22782 \end_inset
22783
22784 svn unlock "<file-name>"
22785 \end_layout
22786
22787 \begin_layout Labeling
22788 \labelwidthstring 00.00.0000
22789 Check-out: 
22790 \family typewriter
22791 svn update "<file-name>"
22792 \begin_inset Newline newline
22793 \end_inset
22794
22795 svn lock "<file-name>"
22796 \end_layout
22797
22798 \begin_layout Subsubsection
22799
22800 \family typewriter
22801 \begin_inset CommandInset label
22802 LatexCommand label
22803 name "subsec:Automatical-Locking-Property"
22804
22805 \end_inset
22806
22807
22808 \family default
22809 Automatic Locking Property
22810 \end_layout
22811
22812 \begin_layout Standard
22813 The above mentioned automatic setting of write permissions of the .lyx file
22814  can be set through
22815 \family sans
22816  File\SpecialChar menuseparator
22817 Version
22818 \begin_inset space ~
22819 \end_inset
22820
22821 Control\SpecialChar menuseparator
22822 Toggle locking property
22823 \family default
22824 .
22825  This command is active only when the file is not locked on the svn server
22826  (i.e.
22827  you need to check-out before proceeding).
22828 \end_layout
22829
22830 \begin_layout Labeling
22831 \labelwidthstring 00.00.0000
22832 SVN
22833 \begin_inset space ~
22834 \end_inset
22835
22836 commands:
22837 \end_layout
22838
22839 \begin_layout Labeling
22840 \labelwidthstring 00.00.0000
22841 Set:
22842 \family typewriter
22843  svn propset svn:needs-lock ON "<file-name>"
22844 \end_layout
22845
22846 \begin_layout Labeling
22847 \labelwidthstring 00.00.0000
22848 Unset: 
22849 \family typewriter
22850 svn propdel svn:needs-lock "<file-name>"
22851 \end_layout
22852
22853 \begin_layout Subsubsection
22854 \begin_inset CommandInset label
22855 LatexCommand label
22856 name "subsec:VCS-Revision-Information"
22857
22858 \end_inset
22859
22860 Revision Information in Documents
22861 \end_layout
22862
22863 \begin_layout Standard
22864 There are more possibilities how to activate revision information in our
22865  document.
22866 \end_layout
22867
22868 \begin_layout Itemize
22869 \SpecialChar LyX
22870  supports directly:
22871 \end_layout
22872
22873 \begin_deeper
22874 \begin_layout Itemize
22875 tree revision information (
22876 \begin_inset Flex Code
22877 status collapsed
22878
22879 \begin_layout Plain Layout
22880 vcs-tree-revision
22881 \end_layout
22882
22883 \end_inset
22884
22885 ).
22886  The result is the output of the 
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891 svnversion
22892 \end_layout
22893
22894 \end_inset
22895
22896  command, the following table gives you an idea, how to read the results.
22897 \end_layout
22898
22899 \begin_layout Standard
22900 \align center
22901 \begin_inset Tabular
22902 <lyxtabular version="3" rows="6" columns="2">
22903 <features tabularvalignment="middle">
22904 <column alignment="center" valignment="top">
22905 <column alignment="center" valignment="top">
22906 <row>
22907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22908 \begin_inset Text
22909
22910 \begin_layout Plain Layout
22911 Output
22912 \end_layout
22913
22914 \end_inset
22915 </cell>
22916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22917 \begin_inset Text
22918
22919 \begin_layout Plain Layout
22920 Meaning
22921 \end_layout
22922
22923 \end_inset
22924 </cell>
22925 </row>
22926 <row>
22927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22928 \begin_inset Text
22929
22930 \begin_layout Plain Layout
22931 4123:4168
22932 \end_layout
22933
22934 \end_inset
22935 </cell>
22936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22937 \begin_inset Text
22938
22939 \begin_layout Plain Layout
22940 mixed revision working copy
22941 \end_layout
22942
22943 \end_inset
22944 </cell>
22945 </row>
22946 <row>
22947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22948 \begin_inset Text
22949
22950 \begin_layout Plain Layout
22951 4168M
22952 \end_layout
22953
22954 \end_inset
22955 </cell>
22956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22957 \begin_inset Text
22958
22959 \begin_layout Plain Layout
22960 modified working copy
22961 \end_layout
22962
22963 \end_inset
22964 </cell>
22965 </row>
22966 <row>
22967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22968 \begin_inset Text
22969
22970 \begin_layout Plain Layout
22971 4123S
22972 \end_layout
22973
22974 \end_inset
22975 </cell>
22976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22977 \begin_inset Text
22978
22979 \begin_layout Plain Layout
22980 switched working copy
22981 \end_layout
22982
22983 \end_inset
22984 </cell>
22985 </row>
22986 <row>
22987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22988 \begin_inset Text
22989
22990 \begin_layout Plain Layout
22991 4123P
22992 \end_layout
22993
22994 \end_inset
22995 </cell>
22996 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22997 \begin_inset Text
22998
22999 \begin_layout Plain Layout
23000 partial working copy, from a sparse checkout
23001 \end_layout
23002
23003 \end_inset
23004 </cell>
23005 </row>
23006 <row>
23007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23008 \begin_inset Text
23009
23010 \begin_layout Plain Layout
23011 4123:4168MS
23012 \end_layout
23013
23014 \end_inset
23015 </cell>
23016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23017 \begin_inset Text
23018
23019 \begin_layout Plain Layout
23020 mixed revision, modified, switched working copy
23021 \end_layout
23022
23023 \end_inset
23024 </cell>
23025 </row>
23026 </lyxtabular>
23027
23028 \end_inset
23029
23030
23031 \end_layout
23032
23033 \begin_layout Itemize
23034 file revision information.
23035  The result comes from parsing the output of 
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040 svn
23041 \begin_inset space ~
23042 \end_inset
23043
23044 info
23045 \begin_inset space ~
23046 \end_inset
23047
23048 –xml
23049 \begin_inset space ~
23050 \end_inset
23051
23052 file.lyx
23053 \end_layout
23054
23055 \end_inset
23056
23057 .
23058  Supported flags are:
23059 \end_layout
23060
23061 \begin_deeper
23062 \begin_layout Itemize
23063 version number of the last commit (
23064 \begin_inset Flex Code
23065 status collapsed
23066
23067 \begin_layout Plain Layout
23068 vcs-revision
23069 \end_layout
23070
23071 \end_inset
23072
23073 )
23074 \end_layout
23075
23076 \begin_layout Itemize
23077 author of the last commit (
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 vcs-author
23083 \end_layout
23084
23085 \end_inset
23086
23087 )
23088 \end_layout
23089
23090 \begin_layout Itemize
23091 date of the last commit (
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096 vcs-date
23097 \end_layout
23098
23099 \end_inset
23100
23101 )
23102 \end_layout
23103
23104 \begin_layout Itemize
23105 time of the last commit (
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110 vcs-time
23111 \end_layout
23112
23113 \end_inset
23114
23115 )
23116 \end_layout
23117
23118 \end_deeper
23119 \begin_layout Standard
23120 You can obtain this info via InsetInfo (e.g.
23121  
23122 \begin_inset Flex Code
23123 status collapsed
23124
23125 \begin_layout Plain Layout
23126 info-insert buffer vcs-date
23127 \end_layout
23128
23129 \end_inset
23130
23131 ).
23132  The information will be available only when you have the file stored under
23133  svn managment (i.e.
23134  the 
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 .svn
23140 \end_layout
23141
23142 \end_inset
23143
23144  directory is available with your document).
23145 \end_layout
23146
23147 \end_deeper
23148 \begin_layout Itemize
23149 Another—a hacking one—possibility is to use svn keywords
23150 \begin_inset Foot
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23155 \end_layout
23156
23157 \end_inset
23158
23159 .
23160  In short – you set file keywords property (e.g.
23161  
23162 \family sans
23163 svn propset svn:keywords 'Rev' file.lyx
23164 \family default
23165 ) and then paste keyword \SpecialChar TeX
23166  code
23167 \begin_inset Foot
23168 status collapsed
23169
23170 \begin_layout Plain Layout
23171 This is an easy way how to ensure that \SpecialChar LyX
23172  won't break the line in the middle
23173  of keyword tag.
23174 \end_layout
23175
23176 \end_inset
23177
23178  tag in your document (e.g.
23179  
23180 \begin_inset ERT
23181 status open
23182
23183 \begin_layout Plain Layout
23184
23185 $Rev$
23186 \end_layout
23187
23188 \end_inset
23189
23190 ).
23191  This way svn client will automatically substitute revision number (e.g.
23192  
23193 \begin_inset ERT
23194 status open
23195
23196 \begin_layout Plain Layout
23197
23198 $Rev: 59 $
23199 \end_layout
23200
23201 \end_inset
23202
23203 ) after each update and commit.
23204  There are more problems with this approach.
23205  Firstly, the '$' character is used in \SpecialChar TeX
23206  world for math equations, so any
23207  occurence of math formula 
23208 \begin_inset Formula $Rev$
23209 \end_inset
23210
23211  become 
23212 \begin_inset Formula $Rev:59$
23213 \end_inset
23214
23215  in your \SpecialChar LyX
23216  document.
23217  Similarly for other keywords like Id, Date, Author, etc.
23218  Secondly svn output is dependent on your locales, so its very easy that
23219  svn would produce some problematic strings once Date is used.
23220  Thirdly you get the whole 'Rev: 59' string in your document instead of
23221  the plain number.
23222  Until subversion implements user's custom keywords it will be hard to use
23223  this approach reliably or let \SpecialChar LyX
23224  to support it directly.
23225 \end_layout
23226
23227 \begin_layout Subsection
23228 SVN and Windows Environment
23229 \end_layout
23230
23231 \begin_layout Quote
23232 My inclination is to say that if the user cannot figure out the command
23233  line operations on their own fairly quickly, they would be well advised
23234  to use TortoiseSVN.
23235  —P.
23236  A.
23237  Rubin
23238 \end_layout
23239
23240 \begin_layout Subsubsection
23241 Preparation
23242 \end_layout
23243
23244 \begin_layout Standard
23245 In addition to installing \SpecialChar LyX
23246 , and having access to a Subversion repository,
23247  the user will need to install the Subversion client program.
23248  A Windows installer for the client program is available from 
23249 \begin_inset CommandInset href
23250 LatexCommand href
23251 name "CollabNet"
23252 target "http://www.collab.net/nonav/downloads/subversion/"
23253 literal "false"
23254
23255 \end_inset
23256
23257 .
23258  The user may also want to install 
23259 \begin_inset CommandInset href
23260 LatexCommand href
23261 name "TortoiseSVN"
23262 target "http://tortoisesvn.tigris.org/"
23263 literal "false"
23264
23265 \end_inset
23266
23267 , which integrates Subversion operations into the context (rightclick) menu
23268  of Windows Explorer.
23269  Operations done outside \SpecialChar LyX
23270  will typically be more convenient using the Explorer
23271  context menu.
23272  Note that TortoiseSVN is not a replacement for the client program, which
23273  is what \SpecialChar LyX
23274  itself will use.
23275 \end_layout
23276
23277 \begin_layout Subsubsection
23278 Bringing a document under Subversion control
23279 \end_layout
23280
23281 \begin_layout Standard
23282 Before a \SpecialChar LyX
23283  document can be brought under version control in Subversion, its
23284  parent directory needs to be under version control.
23285  If the document is being added to a project already in the repository,
23286  this is accomplished by checking the project out to the directory where
23287  the new document will be placed.
23288  If the project itself is not yet under version control (for instance, if
23289  this document starts a new project), the directory must be imported into
23290  the repository.
23291  This is done outside \SpecialChar LyX
23292 .
23293  Both import and checkout are easily accomplished from the Explorer context
23294  menu using TortoiseSVN, or alternatively can be done using the command
23295  line client at a DOS prompt.
23296  The procedure for importing the project using TortoiseSVN is described
23297  below, assuming an existing repository and a new project being started
23298  in 
23299 \family typewriter
23300 C:
23301 \backslash
23302 new project
23303 \family default
23304 .
23305  For information on using the Subversion client program, run 
23306 \family typewriter
23307 svn --help 
23308 \family default
23309 in a DOS shell.
23310 \end_layout
23311
23312 \begin_layout Enumerate
23313 Locate 
23314 \family typewriter
23315 C:
23316 \backslash
23317 new project 
23318 \family default
23319 in Windows Explorer, right click it, and select 
23320 \family sans
23321 TortoiseSVN\SpecialChar menuseparator
23322 Repo-browser
23323 \family default
23324 .
23325  If necessary, adjust the URL for the repository, then click OK.
23326 \end_layout
23327
23328 \begin_layout Enumerate
23329 Right click the level of the repository under which you want to place the
23330  new project folder (typically the top level) and click 
23331 \family sans
23332 Create folder
23333 \family default
23334  Supply a name for the project folder and click OK.
23335  Add a message for the log file if desired, then click OK again.
23336  The new project folder should appear in the repository.
23337  Finally, click OK again to exit the repository browser.
23338 \end_layout
23339
23340 \begin_layout Enumerate
23341 Once again right click 
23342 \family typewriter
23343 C:
23344 \backslash
23345 new project
23346 \family default
23347 , this time selecting SVN Checkout\SpecialChar ldots
23348  Select the URL of the project folder
23349  you just created in the repository, and set the checkout directory to 
23350 \family typewriter
23351 C:
23352 \backslash
23353 new project.
23354
23355 \family default
23356  Click OK.
23357  You will be warned about a non-empty folder; click OK to proceed.
23358  You should now have a 
23359 \family typewriter
23360 .svn
23361 \family default
23362  directory under 
23363 \family typewriter
23364 C:
23365 \backslash
23366 new project.
23367 \end_layout
23368
23369 \begin_layout Enumerate
23370 Create or open your document in \SpecialChar LyX
23371  and click 
23372 \family sans
23373 File\SpecialChar menuseparator
23374 Version
23375 \begin_inset space ~
23376 \end_inset
23377
23378 Control\SpecialChar menuseparator
23379 Register.
23380  
23381 \family default
23382 Add a log message and click OK to commit the document to version control.
23383 \end_layout
23384
23385 \begin_layout Standard
23386 From this point onward, you should have full functionality in the 
23387 \family sans
23388 File\SpecialChar menuseparator
23389 Version
23390 \begin_inset space ~
23391 \end_inset
23392
23393 Control
23394 \family default
23395  menu.
23396  You also have the option of checking the document in and out, viewing its
23397  history, etc.
23398  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23399  client program from a command prompt.
23400 \end_layout
23401
23402 \begin_layout Subsubsection
23403 SSH tunnel used with SVN under Windows
23404 \end_layout
23405
23406 \begin_layout Standard
23407 Compared with Linux setting up an svn client to communicate over ssh under
23408  Windows is a rather troublesome task.
23409  We will at least offer some hints how to setup the client side but prior
23410  knowledge about ssh and the Windows command line is needed, also be prepared
23411  for a great deal of frustration\SpecialChar ldots
23412
23413 \end_layout
23414
23415 \begin_layout Enumerate
23416 Get an svn client for windows, as described in the previous sections.
23417  When it is a fresh install run some svn command (e.g.
23418  
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 svn –version
23424 \end_layout
23425
23426 \end_inset
23427
23428 ) to create config files, which you will need to change later on.
23429 \end_layout
23430
23431 \begin_layout Enumerate
23432 Choose an ssh client for Windows.
23433  There are several possibilities, we will use the one from Putty tools
23434 \begin_inset Foot
23435 status collapsed
23436
23437 \begin_layout Plain Layout
23438 \begin_inset Flex URL
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442
23443 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23444 \end_layout
23445
23446 \end_inset
23447
23448
23449 \end_layout
23450
23451 \end_inset
23452
23453 .
23454  You will need to set the connection up so that the client doesn't ask for
23455  any password from you.
23456  To keep things easy we will use only keys without any additional password
23457  protection etc.
23458 \end_layout
23459
23460 \begin_deeper
23461 \begin_layout Enumerate
23462 Generate keys by 
23463 \begin_inset Flex Code
23464 status collapsed
23465
23466 \begin_layout Plain Layout
23467 puttygen
23468 \end_layout
23469
23470 \end_inset
23471
23472 .
23473  Save your private .ppk key file and put the public one on the server side.
23474  If the SVN server runs on Linux, note that the format of the public key
23475  is not compatible with Linux openssh and you will need to direcly copy-paste
23476  the key from the “
23477 \emph on
23478 Public key for pasting into OpenSSH authorized_keys file
23479 \emph default
23480 :” edit field into the server's 
23481 \begin_inset Flex Code
23482 status collapsed
23483
23484 \begin_layout Plain Layout
23485 ~/.ssh/authorized_keys
23486 \end_layout
23487
23488 \end_inset
23489
23490  / 
23491 \begin_inset Flex Code
23492 status collapsed
23493
23494 \begin_layout Plain Layout
23495 authorized_keys2
23496 \end_layout
23497
23498 \end_inset
23499
23500  file.
23501 \end_layout
23502
23503 \begin_layout Enumerate
23504 Get the Putty's 
23505 \begin_inset Flex Code
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509 plink
23510 \end_layout
23511
23512 \end_inset
23513
23514 .
23515  In the SVN config file
23516 \begin_inset Foot
23517 status collapsed
23518
23519 \begin_layout Plain Layout
23520 Exact path depends on Windows version, usually somewhere around 
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 c:
23526 \backslash
23527 Documents and Settings
23528 \backslash
23529 user
23530 \backslash
23531 Application Data
23532 \backslash
23533 Subversion
23534 \backslash
23535 config
23536 \end_layout
23537
23538 \end_inset
23539
23540  / 
23541 \begin_inset Flex Code
23542 status collapsed
23543
23544 \begin_layout Plain Layout
23545 AppData
23546 \backslash
23547 Roaming
23548 \backslash
23549 Subversion
23550 \end_layout
23551
23552 \end_inset
23553
23554 .
23555 \end_layout
23556
23557 \end_inset
23558
23559 , section [tunnels], setup ssh command, e.g.
23560  
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
23566 \end_layout
23567
23568 \end_inset
23569
23570 .
23571 \begin_inset Foot
23572 status collapsed
23573
23574 \begin_layout Plain Layout
23575 It will usually take a lot of time to get exact command right and it depends
23576  on many things.
23577  For example do not have some remote server saved as a default session in
23578  Putty etc.
23579  If things fail, try to connect via plink without SVN first.
23580 \end_layout
23581
23582 \end_inset
23583
23584
23585 \end_layout
23586
23587 \end_deeper
23588 \begin_layout Enumerate
23589 Checkout the SVN archive, e.
23590 \begin_inset space \thinspace{}
23591 \end_inset
23592
23593 g.
23594 \begin_inset Newline newline
23595 \end_inset
23596
23597
23598 \begin_inset Flex Code
23599 status collapsed
23600
23601 \begin_layout Plain Layout
23602 svn co svn+ssh://user@server/repository_path
23603 \end_layout
23604
23605 \end_inset
23606
23607 .
23608 \end_layout
23609
23610 \begin_layout Subsubsection
23611 End-of-Line Conversions
23612 \end_layout
23613
23614 \begin_layout Standard
23615 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
23616  will
23617  use different line endings inside the .lyx files.
23618  This is not a problem as far as \SpecialChar LyX
23619  functionality is concerned, but the commit
23620  diffs will be huge and merge-conflicts prone.
23621  Fortunately SVN itself knows
23622 \begin_inset Foot
23623 status collapsed
23624
23625 \begin_layout Plain Layout
23626 \begin_inset Flex URL
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630
23631 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
23632 \end_layout
23633
23634 \end_inset
23635
23636
23637 \end_layout
23638
23639 \end_inset
23640
23641  how to deal with CR/LF problems when switching .lyx files to the 
23642 \begin_inset Flex Code
23643 status collapsed
23644
23645 \begin_layout Plain Layout
23646 native
23647 \end_layout
23648
23649 \end_inset
23650
23651  mode.
23652 \begin_inset Foot
23653 status collapsed
23654
23655 \begin_layout Plain Layout
23656 For the lazy guys: 
23657 \begin_inset Flex Code
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 svn propset svn:eol-style native FILE_NAME
23662 \end_layout
23663
23664 \end_inset
23665
23666
23667 \end_layout
23668
23669 \end_inset
23670
23671
23672 \end_layout
23673
23674 \begin_layout Subsection
23675 GIT commands in \SpecialChar LyX
23676
23677 \end_layout
23678
23679 \begin_layout Standard
23680 A minimal subset of GIT commands is now supported by \SpecialChar LyX
23681 .
23682  You can find the commands in the 
23683 \family sans
23684 File\SpecialChar menuseparator
23685 Version
23686 \begin_inset space ~
23687 \end_inset
23688
23689 Control
23690 \family default
23691  submenu.
23692  Please note that if you use password protected access to repository via
23693  ssh, you will be asked in terminal window.
23694  \SpecialChar LyX
23695  was tested against GIT 1.7.
23696 \begin_inset Foot
23697 status open
23698
23699 \begin_layout Plain Layout
23700 Windows users please note that you need to ensure that git is on the path.
23701  This can be set from within \SpecialChar LyX
23702  at 
23703 \family sans
23704 Tools\SpecialChar menuseparator
23705 Preferences\SpecialChar menuseparator
23706 Paths\SpecialChar menuseparator
23707 PATH prefix
23708 \family default
23709 .
23710 \end_layout
23711
23712 \end_inset
23713
23714
23715 \end_layout
23716
23717 \begin_layout Standard
23718 One big difference of GIT and the other supported version control systems
23719  is the distributed nature of GIT: With traditional version control systems
23720  there is one central server which hosts the repository.
23721  Users commit their changes to the server, and get updates made by other
23722  users from it.
23723  With GIT, users commit to a local repository.
23724  The local repository can be synchronized with one or more remote repositories
23725  using the 
23726 \begin_inset Flex Code
23727 status collapsed
23728
23729 \begin_layout Plain Layout
23730 pull
23731 \end_layout
23732
23733 \end_inset
23734
23735  and 
23736 \begin_inset Flex Code
23737 status collapsed
23738
23739 \begin_layout Plain Layout
23740 push
23741 \end_layout
23742
23743 \end_inset
23744
23745  GIT commands.
23746  \SpecialChar LyX
23747  does not interact in any way with remote GIT repositories.
23748  It works exclusively with the local repository in a very similar way as
23749  with a central CVS or SVN repository.
23750  If you use remote GIT repositories you need to do the 
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 pull
23756 \end_layout
23757
23758 \end_inset
23759
23760  and 
23761 \begin_inset Flex Code
23762 status collapsed
23763
23764 \begin_layout Plain Layout
23765 push
23766 \end_layout
23767
23768 \end_inset
23769
23770  operations with your favourite GIT client.
23771 \end_layout
23772
23773 \begin_layout Subsubsection
23774
23775 \family sans
23776 Register
23777 \end_layout
23778
23779 \begin_layout Standard
23780 If your document is not under revision control, this is the only item shown
23781  in the menu.
23782  And if it is under revision control, the 
23783 \family sans
23784 Register
23785 \family default
23786  item is not visible.
23787 \end_layout
23788
23789 \begin_layout Standard
23790 This command registers in GIT your document ONLY in case you have already
23791  the documents directory under GIT control (in particular 
23792 \family typewriter
23793 .git/index
23794 \family default
23795  file exists).
23796  This means you have to checkout the archive by yourself.
23797 \end_layout
23798
23799 \begin_layout Standard
23800 Then you are asked interactively to supply an initial description of the
23801  document.
23802  Don't forget that registered file is not yet commited.
23803 \end_layout
23804
23805 \begin_layout Standard
23806 GIT command that is run: 
23807 \family typewriter
23808 git add 
23809 \begin_inset Quotes eld
23810 \end_inset
23811
23812 <file-name>
23813 \begin_inset Quotes erd
23814 \end_inset
23815
23816
23817 \end_layout
23818
23819 \begin_layout Standard
23820 Read 
23821 \family typewriter
23822 man git
23823 \family default
23824  to understand the switches.
23825 \end_layout
23826
23827 \begin_layout Subsubsection
23828
23829 \family sans
23830 Check In Changes
23831 \end_layout
23832
23833 \begin_layout Standard
23834 When you are finished editing a file, you commit your changes.
23835  When you do this, you are asked for a description of the changes.
23836  After that changes are commited.
23837 \end_layout
23838
23839 \begin_layout Standard
23840 GIT command: 
23841 \family typewriter
23842 git commit -q -m"<description>" <file-name>
23843 \end_layout
23844
23845 \begin_layout Subsubsection
23846
23847 \family sans
23848 Revert To Repository Version
23849 \end_layout
23850
23851 \begin_layout Standard
23852 This will discard all changes made to the document since the last check
23853  in.
23854  You get a warning before changes are discarded.
23855 \end_layout
23856
23857 \begin_layout Standard
23858 GIT command: 
23859 \family typewriter
23860 git checkout -q 
23861 \begin_inset Quotes eld
23862 \end_inset
23863
23864 <file-name>
23865 \begin_inset Quotes erd
23866 \end_inset
23867
23868
23869 \end_layout
23870
23871 \begin_layout Subsubsection
23872
23873 \family sans
23874 Rename
23875 \end_layout
23876
23877 \begin_layout Standard
23878 This will rename the current document including the version history.
23879  It requires a clean document without any changes since the last checkin.
23880  You are asked for a file name and a description of the rename operation.
23881  After that the document is renamed, both locally and in the repository.
23882  If the parent directories of the new and old file names differ, all relative
23883  paths of included files are adjusted (like in 
23884 \family sans
23885 File\SpecialChar menuseparator
23886 Save As
23887 \family default
23888 \SpecialChar ldots
23889 ).
23890  Finally, the document is reloaded using the new name.
23891 \end_layout
23892
23893 \begin_layout Labeling
23894 \labelwidthstring 00.00.0000
23895 GIT
23896 \begin_inset space ~
23897 \end_inset
23898
23899 commands: 
23900 \begin_inset space ~
23901 \end_inset
23902
23903
23904 \begin_inset Newline newline
23905 \end_inset
23906
23907
23908 \begin_inset Flex Code
23909 status collapsed
23910
23911 \begin_layout Plain Layout
23912 git mv 
23913 \family typewriter
23914
23915 \begin_inset Quotes eld
23916 \end_inset
23917
23918 <file-name>
23919 \begin_inset Quotes erd
23920 \end_inset
23921
23922  
23923 \begin_inset Quotes eld
23924 \end_inset
23925
23926 <new-file-name>
23927 \begin_inset Quotes erd
23928 \end_inset
23929
23930
23931 \end_layout
23932
23933 \end_inset
23934
23935
23936 \begin_inset Newline newline
23937 \end_inset
23938
23939
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 git commit
23945 \end_layout
23946
23947 \end_inset
23948
23949
23950 \end_layout
23951
23952 \begin_layout Subsubsection
23953
23954 \family sans
23955 Show History
23956 \end_layout
23957
23958 \begin_layout Standard
23959 This shows the complete history of the GIT document.
23960  The output of 
23961 \family typewriter
23962 git log 
23963 \begin_inset Quotes eld
23964 \end_inset
23965
23966 <file-name>
23967 \begin_inset Quotes erd
23968 \end_inset
23969
23970
23971 \family default
23972  is shown in a browser.
23973 \end_layout
23974
23975 \begin_layout Subsubsection
23976 Version Info
23977 \end_layout
23978
23979 \begin_layout Standard
23980 \SpecialChar LyX
23981  supports GIT hash number of the last commit to the file, author name, date
23982  and time of last commit.
23983  All those are extracted from 
23984 \family typewriter
23985 git log -n 1 --pretty=format:%H%n%an%n%ai
23986 \family default
23987 .
23988  Tree version information is obtained via 
23989 \family typewriter
23990 git describe --abbrev --dirty --long
23991 \family default
23992 .
23993  See 
23994 \begin_inset CommandInset ref
23995 LatexCommand ref
23996 reference "subsec:VCS-Revision-Information"
23997
23998 \end_inset
23999
24000  for other details.
24001 \end_layout
24002
24003 \begin_layout Subsection
24004 Further tuning
24005 \end_layout
24006
24007 \begin_layout Standard
24008 With the recent addition of the vc-command function \SpecialChar LyX
24009  power users are allowed
24010  to create their own commands for revision control.
24011 \end_layout
24012
24013 \begin_layout Standard
24014 As an example you can see how two TortoiseSVN commands could be integrated
24015  directly:
24016 \end_layout
24017
24018 \begin_layout Description
24019 Commit: 
24020 \begin_inset Flex Code
24021 status collapsed
24022
24023 \begin_layout Plain Layout
24024 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24025 \end_layout
24026
24027 \end_inset
24028
24029
24030 \end_layout
24031
24032 \begin_layout Description
24033 Revert: 
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24039 \end_layout
24040
24041 \end_inset
24042
24043
24044 \end_layout
24045
24046 \begin_layout Subsection
24047 Version control and Document comparison
24048 \end_layout
24049
24050 \begin_layout Standard
24051 One of the typical uses of version control is to inspect the changes between
24052  revisions, usually by creating 
24053 \begin_inset Flex Code
24054 status collapsed
24055
24056 \begin_layout Plain Layout
24057 diff
24058 \end_layout
24059
24060 \end_inset
24061
24062  dumps.
24063  While this is useful for plain text files, it is much less useful in the
24064  case of \SpecialChar LyX
24065  files, which have more a complicated structure.
24066  Hence we provide binding to the Document comparison feature.
24067  There are two ways of calling this feature - either by direct call of 
24068 \begin_inset Flex Code
24069 status collapsed
24070
24071 \begin_layout Plain Layout
24072 VC_COMPARE
24073 \end_layout
24074
24075 \end_inset
24076
24077  \SpecialChar LyX
24078  function (for details see \SpecialChar LyX
24079  functions manual) or by icon/menu item 
24080 \begin_inset Flex Noun
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 Compare with older revision...
24085 \end_layout
24086
24087 \end_inset
24088
24089 .
24090  One can either compare two chosen revisions of the document or he can simply
24091  compare the current version of edited text with older revisions (where
24092  '
24093 \begin_inset Flex Noun
24094 status collapsed
24095
24096 \begin_layout Plain Layout
24097 0
24098 \end_layout
24099
24100 \end_inset
24101
24102 ' revisions back means comparison of the edited file with last commited
24103  revision).
24104  
24105 \end_layout
24106
24107 \begin_layout Standard
24108 This feature is supported for SVN and RCS though due to the more complicated
24109  versioning scheme of RCS there is a constraint – when addressing the revisions
24110  in dialog, numbers always point to the last number in RCS revision number,
24111  i.e.
24112  '35' in '1.2.35'.
24113  We don't currently support GIT addressing of revisions, one can just compare
24114  edited document with its revision X steps backs, where X is addressed as
24115  HEAD~X.
24116 \end_layout
24117
24118 \begin_layout Section
24119 Literate Programming
24120 \end_layout
24121
24122 \begin_layout Standard
24123 Updated by 
24124 \noun on
24125 Kayvan Sylvan 
24126 \noun default
24127 (kayvan@sylvan.com)
24128 \noun on
24129
24130 \noun default
24131 original documentation written by 
24132 \noun on
24133 Edmar Wienskoski Jr.
24134
24135 \noun default
24136  (edmar-w-jr@technologist.com)
24137 \end_layout
24138
24139 \begin_layout Subsection
24140 Introduction
24141 \end_layout
24142
24143 \begin_layout Standard
24144 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24145  for literate
24146  programming, where it is assumed that you are familiar with this programming
24147  technique, and know what 
24148 \begin_inset Quotes eld
24149 \end_inset
24150
24151 tangling
24152 \begin_inset Quotes erd
24153 \end_inset
24154
24155  and 
24156 \begin_inset Quotes eld
24157 \end_inset
24158
24159 weaving
24160 \begin_inset Quotes erd
24161 \end_inset
24162
24163  means.
24164  If that is not the case, please follow the web links provided in the following
24165  sections.
24166  There is a lot of good documentation out there covering old development
24167  history to the latest tools tips.
24168 \end_layout
24169
24170 \begin_layout Standard
24171 It is also assumed that you are familiar with \SpecialChar LyX
24172  itself to a point that you
24173  are comfortable changing your \SpecialChar LyX
24174  preferences, and X resources file.
24175  If that is not the case please refer to other \SpecialChar LyX
24176  documentation to cover your
24177  specific needs.
24178 \end_layout
24179
24180 \begin_layout Subsection
24181 Literate Programming
24182 \end_layout
24183
24184 \begin_layout Standard
24185 From the Literate Programming FAQ: 
24186 \end_layout
24187
24188 \begin_layout Quotation
24189 Literate programming is the combination of documentation and source together
24190  in a fashion suited for reading by human beings.
24191  In fact, literate programs should be enjoyable reading, even inviting!
24192  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24193  and documentation in a single file.
24194  Literate programming tools then parse the file to produce either readable
24195  documentation or compilable source.
24196  The WEB style of literate programming was created by D.
24197 \begin_inset space \thinspace{}
24198 \end_inset
24199
24200 E.
24201  Knuth during the development of his \SpecialChar TeX
24202  typesetting software.
24203  
24204 \end_layout
24205
24206 \begin_layout Standard
24207 Another excerpt says:
24208 \end_layout
24209
24210 \begin_layout Quotation
24211
24212 \emph on
24213 How is literate programming different from verbose commenting?
24214 \end_layout
24215
24216 \begin_layout Quotation
24217 There are three distinguishing characteristics.
24218  In order of importance, they are: 
24219 \end_layout
24220
24221 \begin_deeper
24222 \begin_layout Itemize
24223 flexible order of elaboration 
24224 \end_layout
24225
24226 \begin_layout Itemize
24227 automatic support for browsing 
24228 \end_layout
24229
24230 \begin_layout Itemize
24231 typeset documentation, especially diagrams and mathematics 
24232 \end_layout
24233
24234 \end_deeper
24235 \begin_layout Standard
24236 Now that I sparked your curiosity, take a look in the references.
24237 \end_layout
24238
24239 \begin_layout Subsubsection
24240 References
24241 \end_layout
24242
24243 \begin_layout Standard
24244 The complete Literate Programming FAQ can be found at:
24245 \end_layout
24246
24247 \begin_layout Quote
24248 Literate Programming FAQ 
24249 \begin_inset Flex URL
24250 status open
24251
24252 \begin_layout Plain Layout
24253
24254 http://www.literateprogramming.com/lpfaq.pdf
24255 \end_layout
24256
24257 \end_inset
24258
24259
24260 \end_layout
24261
24262 \begin_layout Standard
24263 The FAQ lists 23 (twenty three!) different literate programming tools.
24264  Where some are specialized or 
24265 \begin_inset Quotes eld
24266 \end_inset
24267
24268 tailored
24269 \begin_inset Quotes erd
24270 \end_inset
24271
24272  for particular programming languages, while other have general scope.
24273  I selected 
24274 \noun on
24275 Noweb
24276 \noun default
24277  for my own use for several reasons:
24278 \end_layout
24279
24280 \begin_layout Itemize
24281 It can generate the documentation either in \SpecialChar LaTeX
24282  or HTML.
24283 \end_layout
24284
24285 \begin_layout Itemize
24286 It has a open architecture, i.
24287 \begin_inset space \thinspace{}
24288 \end_inset
24289
24290 e.
24291 \begin_inset space \space{}
24292 \end_inset
24293
24294 it is easy to plug in new filters
24295 \change_inserted -712698321 1501229014
24296
24297 \begin_inset Foot
24298 status collapsed
24299
24300 \begin_layout Plain Layout
24301
24302 \change_inserted -712698321 1501229136
24303
24304 \emph on
24305 Filters 
24306 \emph default
24307 are programs that read a given data stream and output a manipulated data
24308  stream.
24309  That way, a WEB file (consisting of literate code) can be turned into a
24310  file consisting only of C program code or \SpecialChar LaTeX
24311  code.
24312 \end_layout
24313
24314 \end_inset
24315
24316
24317 \change_unchanged
24318  and to perform special processing that you may need.
24319  
24320 \end_layout
24321
24322 \begin_layout Itemize
24323 There is a good selection of filters available already (the HTML is one
24324  of them).
24325 \end_layout
24326
24327 \begin_layout Itemize
24328 It is free.
24329 \end_layout
24330
24331 \begin_layout Standard
24332 The Noweb web page can be found at: 
24333 \end_layout
24334
24335 \begin_layout Quote
24336 Noweb home page 
24337 \begin_inset Flex URL
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341
24342 http://www.cs.virginia.edu/~nr/noweb/
24343 \end_layout
24344
24345 \end_inset
24346
24347
24348 \end_layout
24349
24350 \begin_layout Standard
24351 Starting from there you can reach many other interesting links and even
24352  some literate program examples.
24353 \end_layout
24354
24355 \begin_layout Subsection
24356 \SpecialChar LyX
24357  and Literate Programming with Noweb
24358 \end_layout
24359
24360 \begin_layout Standard
24361 The \SpecialChar LyX
24362  support for Literate Programming is provided by using the generic \SpecialChar LyX
24363
24364  converters mechanism.
24365  This support is provided in a 
24366 \begin_inset Quotes eld
24367 \end_inset
24368
24369 Noweb independent
24370 \begin_inset Quotes erd
24371 \end_inset
24372
24373  way, i.
24374 \begin_inset space \thinspace{}
24375 \end_inset
24376
24377 e.
24378 \begin_inset space \space{}
24379 \end_inset
24380
24381 you will be able to use this new \SpecialChar LyX
24382  feature with some other literate programming
24383  tool of your choice by just changing your \SpecialChar LyX
24384  preferences.
24385 \end_layout
24386
24387 \begin_layout Subsubsection
24388 Generating documents and code (weaving and tangling)
24389 \end_layout
24390
24391 \begin_layout Paragraph
24392 Using the noweb module
24393 \end_layout
24394
24395 \begin_layout Standard
24396 If you have installed Noweb and \SpecialChar LyX
24397  successfully, whenever you open a new document,
24398  after you have chosen its document class, use the 
24399 \family sans
24400 Document
24401 \change_deleted -712698321 1501229457
24402 ->
24403 \change_inserted -712698321 1501229457
24404 \SpecialChar menuseparator
24405
24406 \change_unchanged
24407 Settings
24408 \family default
24409  menu to add the 
24410 \begin_inset Quotes eld
24411 \end_inset
24412
24413 noweb
24414 \begin_inset Quotes erd
24415 \end_inset
24416
24417  module.
24418  If Noweb is correctly installed, when you click on the 
24419 \begin_inset Quotes eld
24420 \end_inset
24421
24422 Modules
24423 \begin_inset Quotes erd
24424 \end_inset
24425
24426  link, you will see the 
24427 \begin_inset Quotes eld
24428 \end_inset
24429
24430 noweb
24431 \begin_inset Quotes erd
24432 \end_inset
24433
24434  module in the available list and you can add it to your document.
24435 \end_layout
24436
24437 \begin_layout Paragraph
24438 Typing code in
24439 \end_layout
24440
24441 \begin_layout Standard
24442 \SpecialChar LyX
24443  enables you to write code with a 
24444 \change_deleted -712698321 1501229783
24445 layout
24446 \change_inserted -712698321 1501229785
24447 custom inset
24448 \change_unchanged
24449  named 
24450 \begin_inset Flex Noun
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 Chunk
24455 \end_layout
24456
24457 \end_inset
24458
24459 .
24460  Noweb delimits chunks like this:
24461 \end_layout
24462
24463 \begin_layout LyX-Code
24464 <<My code>>=
24465 \end_layout
24466
24467 \begin_layout LyX-Code
24468   code
24469 \end_layout
24470
24471 \begin_layout LyX-Code
24472   more code
24473 \end_layout
24474
24475 \begin_layout LyX-Code
24476   even more code
24477 \end_layout
24478
24479 \begin_layout LyX-Code
24480   @
24481 \end_layout
24482
24483 \begin_layout Standard
24484 The problem is that whatever is written in between the << and the 
24485 \family typewriter
24486 @
24487 \family default
24488  must be taken literally, i.
24489 \begin_inset space \thinspace{}
24490 \end_inset
24491
24492 e.
24493 \begin_inset space \space{}
24494 \end_inset
24495
24496 \SpecialChar LyX
24497  should be prevented from making any special interpretation of what has
24498  been written.
24499  This is also handled by 
24500 \begin_inset Flex Noun
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 Chunk
24505 \end_layout
24506
24507 \end_inset
24508
24509 , that works like a normal 
24510 \change_deleted -712698321 1501229871
24511 paragraph
24512 \change_inserted -712698321 1501229873
24513 text inset
24514 \change_unchanged
24515  but has a free spacing capability.
24516 \end_layout
24517
24518 \begin_layout Standard
24519 As a special note, you can also use the 
24520 \begin_inset Quotes eld
24521 \end_inset
24522
24523 %def
24524 \begin_inset Quotes erd
24525 \end_inset
24526
24527  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
24528 rence:
24529 \end_layout
24530
24531 \begin_layout LyX-Code
24532 <<My chunk>>=
24533 \end_layout
24534
24535 \begin_layout LyX-Code
24536 def some_function(args):
24537 \end_layout
24538
24539 \begin_layout LyX-Code
24540    "This is the doc string for this function."
24541 \end_layout
24542
24543 \begin_layout LyX-Code
24544    print "My args: ", args
24545 \end_layout
24546
24547 \begin_layout LyX-Code
24548 @ %def some_function
24549 \end_layout
24550
24551 \begin_layout Standard
24552 For an example of this usage and the resulting cross-reference output, look
24553  at the Literate python program in 
24554 \emph on
24555 LIBDIR/examples/listerrors.lyx
24556 \emph default
24557  which should make this all clear.
24558 \end_layout
24559
24560 \begin_layout Paragraph
24561 Generating the documentation
24562 \end_layout
24563
24564 \begin_layout Standard
24565 At this point you already have a new document file with a proper document
24566  class, and with some code and text on it.
24567  How do I print it? The answer is simple, you select 
24568 \family sans
24569 View\SpecialChar menuseparator
24570 DVI,
24571 \family default
24572  etc.
24573  Just like you would do for a plain document.
24574  No special procedure is required.
24575 \end_layout
24576
24577 \begin_layout Standard
24578 To help orientate you, I will now explain what happens inside \SpecialChar LyX
24579 :
24580 \end_layout
24581
24582 \begin_layout Enumerate
24583 When the 
24584 \family sans
24585 Update\SpecialChar menuseparator
24586 DVI
24587 \family default
24588  menu option is chosen, a \SpecialChar LaTeX
24589  file is generated.
24590  
24591 \end_layout
24592
24593 \begin_deeper
24594 \begin_layout Standard
24595 If the document is of any literate class the generated file will be named
24596  with an extension name defined by the 
24597 \begin_inset Quotes eld
24598 \end_inset
24599
24600 literate
24601 \begin_inset Quotes erd
24602 \end_inset
24603
24604  format (defined in the Preferences panel), otherwise the file will have
24605  the usual 
24606 \family typewriter
24607 .tex
24608 \family default
24609  extension.
24610 \end_layout
24611
24612 \end_deeper
24613 \begin_layout Enumerate
24614 Note that the only difference so far is in the name of the file, no special
24615  processing is required by \SpecialChar LyX
24616 .
24617  Given that you formatted the code using the 
24618 \begin_inset Flex Noun
24619 status collapsed
24620
24621 \begin_layout Plain Layout
24622 Chunk
24623 \end_layout
24624
24625 \end_inset
24626
24627  
24628 \change_deleted -712698321 1501230025
24629 layout 
24630 \change_inserted -712698321 1501230027
24631 inset 
24632 \change_unchanged
24633 that, by itself, takes care of the business.
24634 \end_layout
24635
24636 \begin_layout Enumerate
24637 If the document is of any literate class \SpecialChar LyX
24638  will then use the internal \SpecialChar LyX
24639  to
24640  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
24641  converter
24642 \begin_inset Foot
24643 status collapsed
24644
24645 \begin_layout Plain Layout
24646 The converters are defined in the 
24647 \family sans
24648 Tools\SpecialChar menuseparator
24649 Preferences
24650 \family default
24651  panel, under the 
24652 \begin_inset Quotes eld
24653 \end_inset
24654
24655 Conversion
24656 \begin_inset Quotes erd
24657 \end_inset
24658
24659  tab.
24660  See section 
24661 \emph on
24662 Converters
24663 \emph default
24664  of the 
24665 \emph on
24666 Customization
24667 \emph default
24668  manual for general information about converters.
24669 \end_layout
24670
24671 \end_inset
24672
24673  to generate the \SpecialChar LaTeX
24674  file.
24675 \end_layout
24676
24677 \begin_deeper
24678 \begin_layout Standard
24679 Otherwise it will just skip this step.
24680 \end_layout
24681
24682 \end_deeper
24683 \begin_layout Enumerate
24684 Finally, \SpecialChar LaTeX
24685  is invoked and the regular post processing continues as in a plain
24686  document.
24687 \end_layout
24688
24689 \begin_layout Standard
24690 Independence from a particular 
24691 \begin_inset Quotes eld
24692 \end_inset
24693
24694 literate tool
24695 \begin_inset Quotes erd
24696 \end_inset
24697
24698  is easily achieved by changing the commands that are run by the various
24699  converters.
24700 \end_layout
24701
24702 \begin_layout Paragraph
24703 Generating the code
24704 \end_layout
24705
24706 \begin_layout Standard
24707 When the build menu option is chosen or the corresponding button in the
24708  toolbar is pressed, a \SpecialChar LaTeX
24709  file is generated just like step 1 above.
24710  Next, \SpecialChar LyX
24711  invokes the 
24712 \family typewriter
24713 Noweb->Program
24714 \family default
24715  converter.
24716  This converter needs to be defined by the user and is not installed by
24717  default, though the Program format is.
24718  This converter (like any other converter) will have two parts:
24719 \end_layout
24720
24721 \begin_layout Enumerate
24722 The converter program itself.
24723  This program performs the conversion from the one format to the other (in
24724  this case, from the Noweb format to the Program pseudo-format).
24725 \end_layout
24726
24727 \begin_layout Enumerate
24728 The error log parser.
24729  This is a program whose sole purpose is to rewrite error messages in a
24730  format that \SpecialChar LyX
24731  understands.
24732  This makes it possible for \SpecialChar LyX
24733  to place error boxes in the right places in
24734  the file buffer.
24735 \end_layout
24736
24737 \begin_layout Standard
24738 The first part, the 
24739 \begin_inset Quotes eld
24740 \end_inset
24741
24742 Converter
24743 \begin_inset Quotes erd
24744 \end_inset
24745
24746  setting, should be set to
24747 \change_inserted -712698321 1501230220
24748
24749 \end_layout
24750
24751 \begin_layout LyX-Code
24752
24753 \change_deleted -712698321 1501230232
24754 \begin_inset Newline newline
24755 \end_inset
24756
24757
24758 \begin_inset Quotes eld
24759 \end_inset
24760
24761
24762 \change_unchanged
24763
24764 \family typewriter
24765 build-script $$i
24766 \family default
24767  $$r
24768 \change_deleted -712698321 1501230236
24769
24770 \begin_inset Quotes erd
24771 \end_inset
24772
24773 .
24774 \begin_inset Newline newline
24775 \end_inset
24776
24777
24778 \change_inserted -712698321 1501230224
24779
24780 \end_layout
24781
24782 \begin_layout Standard
24783 This basically means that \SpecialChar LyX
24784  will call 
24785 \begin_inset Quotes eld
24786 \end_inset
24787
24788 build-script
24789 \begin_inset Quotes erd
24790 \end_inset
24791
24792  (a program or script) with the name of the Noweb file (normally a file
24793  in the \SpecialChar LyX
24794  temp directory) and the directory path of the original \SpecialChar LyX
24795  file.
24796  
24797 \end_layout
24798
24799 \begin_layout Standard
24800 This is an implementation of 
24801 \begin_inset Quotes eld
24802 \end_inset
24803
24804 build-script
24805 \begin_inset Quotes erd
24806 \end_inset
24807
24808  that you can place in a directory on your path:
24809 \end_layout
24810
24811 \begin_layout Standard
24812
24813 \change_deleted -712698321 1501230298
24814 \begin_inset VSpace defskip
24815 \end_inset
24816
24817
24818 \change_unchanged
24819
24820 \end_layout
24821
24822 \begin_layout Standard
24823
24824 \change_deleted -712698321 1501230296
24825 \begin_inset Newpage pagebreak
24826 \end_inset
24827
24828
24829 \change_unchanged
24830
24831 \end_layout
24832
24833 \begin_layout LyX-Code
24834
24835 \family sans
24836 #!/bin/sh
24837 \end_layout
24838
24839 \begin_layout LyX-Code
24840
24841 \family sans
24842 #
24843 \end_layout
24844
24845 \begin_layout LyX-Code
24846
24847 \family sans
24848 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24849 \end_layout
24850
24851 \begin_layout Standard
24852
24853 \change_deleted -712698321 1501230299
24854 \begin_inset VSpace defskip
24855 \end_inset
24856
24857
24858 \change_unchanged
24859
24860 \end_layout
24861
24862 \begin_layout Standard
24863 The next part of the converter setting is the 
24864 \begin_inset Quotes eld
24865 \end_inset
24866
24867 Flags
24868 \begin_inset Quotes erd
24869 \end_inset
24870
24871  which is to be set to
24872 \change_inserted -712698321 1501230552
24873
24874 \end_layout
24875
24876 \begin_layout LyX-Code
24877
24878 \change_deleted -712698321 1501230577
24879 \begin_inset Newline newline
24880 \end_inset
24881
24882
24883 \begin_inset Quotes eld
24884 \end_inset
24885
24886
24887 \change_unchanged
24888
24889 \family typewriter
24890 parselog=$$s/scripts/listerrors
24891 \change_deleted -712698321 1501230575
24892
24893 \family default
24894
24895 \begin_inset Quotes erd
24896 \end_inset
24897
24898 .
24899 \begin_inset Newline newline
24900 \end_inset
24901
24902
24903 \change_inserted -712698321 1501230544
24904
24905 \end_layout
24906
24907 \begin_layout Standard
24908 This will run any errors that are generated by the 
24909 \begin_inset Quotes eld
24910 \end_inset
24911
24912 build-script
24913 \begin_inset Quotes erd
24914 \end_inset
24915
24916  process through the 
24917 \begin_inset Quotes eld
24918 \end_inset
24919
24920 listerrors
24921 \begin_inset Quotes erd
24922 \end_inset
24923
24924  program.
24925 \end_layout
24926
24927 \begin_layout Standard
24928 The build will normally take place in \SpecialChar LyX
24929 's temporary directory, so the files
24930  produced by the conversion will be in that directory.
24931  \SpecialChar LyX
24932  will copy out what it regards as the `main' file, but the 
24933 \family typewriter
24934 Noweb->Program
24935 \family default
24936  conversion may produce several files, and so most of these would then be
24937  deleted when \SpecialChar LyX
24938  was closed.
24939  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24940  the build-script chunk can place the generated files in that location.
24941 \end_layout
24942
24943 \begin_layout Paragraph
24944 Build instructions in the document
24945 \end_layout
24946
24947 \begin_layout Standard
24948 The last piece of the integration between \SpecialChar LyX
24949  and noweb is the 
24950 \begin_inset Quotes eld
24951 \end_inset
24952
24953 build-script
24954 \begin_inset Quotes erd
24955 \end_inset
24956
24957  chunk.
24958  Generally, the instructions for building your program should be embedded
24959  in a chunk of its own.
24960  The noweb-specific 
24961 \begin_inset Quotes eld
24962 \end_inset
24963
24964 build-script
24965 \begin_inset Quotes erd
24966 \end_inset
24967
24968  above uses the notangle command to look for this chunk (called 
24969 \begin_inset Quotes eld
24970 \end_inset
24971
24972 build-script
24973 \begin_inset Quotes erd
24974 \end_inset
24975
24976 ) and runs its contents through 
24977 \begin_inset Quotes eld
24978 \end_inset
24979
24980 sh
24981 \begin_inset Quotes erd
24982 \end_inset
24983
24984 .
24985 \end_layout
24986
24987 \begin_layout Standard
24988 Typically, such a chunk would look something like this:
24989 \end_layout
24990
24991 \begin_layout LyX-Code
24992 <<build-script>>=
24993 \end_layout
24994
24995 \begin_layout LyX-Code
24996 #!/bin/sh
24997 \begin_inset Newline newline
24998 \end_inset
24999
25000 if [ -z "${NOWEB_SOURCE}" ]
25001 \begin_inset Newline newline
25002 \end_inset
25003
25004 then
25005 \end_layout
25006
25007 \begin_layout LyX-Code
25008 NOWEB_SOURCE=myfile.nw
25009 \begin_inset Newline newline
25010 \end_inset
25011
25012 fi
25013 \begin_inset Newline newline
25014 \end_inset
25015
25016 [...
25017  code to extract files ...
25018  use NOWEB_OUTPUT_DIR here ...]
25019 \begin_inset Newline newline
25020 \end_inset
25021
25022 [...
25023  code to compile files ...]
25024 \begin_inset Newline newline
25025 \end_inset
25026
25027 @
25028 \end_layout
25029
25030 \begin_layout Standard
25031 Look in 
25032 \emph on
25033 LIBDIR/examples/listerrors.lyx
25034 \emph default
25035  or in 
25036 \emph on
25037 LIBDIR/examples/Literate.lyx
25038 \emph default
25039  which implement two versions of the 
25040 \begin_inset Quotes eld
25041 \end_inset
25042
25043 listerrors
25044 \begin_inset Quotes erd
25045 \end_inset
25046
25047  program for some illustrations of how all of these pieces go together or
25048  in 
25049 \emph on
25050 LIBDIR/examples/noweb2lyx.lyx.
25051
25052 \emph default
25053  Interestingly, these three files show off the language-indepence of the
25054  \SpecialChar LyX
25055  literate programming support since they are written in Python, C and Perl
25056  respectively.
25057 \end_layout
25058
25059 \begin_layout Subsubsection
25060 Configuring \SpecialChar LyX
25061
25062 \end_layout
25063
25064 \begin_layout Standard
25065 All the Literate Programming support is configured by the 
25066 \family sans
25067 Tools\SpecialChar menuseparator
25068 Preferences
25069 \family default
25070  panel in the 
25071 \begin_inset Quotes eld
25072 \end_inset
25073
25074 File Handling
25075 \begin_inset Quotes erd
25076 \end_inset
25077
25078  tab.
25079  The important parts are:
25080 \end_layout
25081
25082 \begin_layout Description
25083 the
25084 \begin_inset space ~
25085 \end_inset
25086
25087
25088 \begin_inset Quotes eld
25089 \end_inset
25090
25091 NoWeb
25092 \begin_inset Quotes erd
25093 \end_inset
25094
25095
25096 \begin_inset space ~
25097 \end_inset
25098
25099 format Set up via the File Formats tab, this is where the Noweb-specific
25100  pieces are set up.
25101  The 
25102 \family sans
25103 GUI Name
25104 \family default
25105  is set to 
25106 \family typewriter
25107 NoWeb
25108 \family default
25109 , the file extension is set to 
25110 \family typewriter
25111 .nw
25112 \family default
25113 .
25114  This tells \SpecialChar LyX
25115  to create a file with a 
25116 \family typewriter
25117 .nw
25118 \family default
25119  extension in the first step of the conversion process.
25120 \end_layout
25121
25122 \begin_layout Description
25123 the
25124 \begin_inset space ~
25125 \end_inset
25126
25127
25128 \family sans
25129 Program
25130 \family default
25131
25132 \begin_inset space ~
25133 \end_inset
25134
25135 format This is an empty format whose sole purpose is to be the endpoint
25136  of a conversion (which then allows us to set up a converter for it).
25137 \end_layout
25138
25139 \begin_layout Description
25140
25141 \family sans
25142 NoWeb
25143 \family default
25144 ->
25145 \family sans
25146 \SpecialChar LaTeX
25147
25148 \family default
25149  This converter performs the 
25150 \begin_inset Quotes eld
25151 \end_inset
25152
25153 weaving
25154 \begin_inset Quotes erd
25155 \end_inset
25156
25157  of the literate document.
25158  For Noweb, it is set to 
25159 \begin_inset Quotes eld
25160 \end_inset
25161
25162
25163 \family typewriter
25164 noweave -delay -index $$i > $$o
25165 \family default
25166
25167 \begin_inset Quotes erd
25168 \end_inset
25169
25170
25171 \end_layout
25172
25173 \begin_layout Description
25174
25175 \family sans
25176 NoWeb
25177 \family default
25178 ->
25179 \family sans
25180 Program
25181 \family default
25182  This performs the 
25183 \begin_inset Quotes eld
25184 \end_inset
25185
25186 tangling step
25187 \begin_inset Quotes erd
25188 \end_inset
25189
25190 .
25191  As stated above, the Converter is set to 
25192 \begin_inset Quotes eld
25193 \end_inset
25194
25195
25196 \family typewriter
25197 build-script $$i
25198 \family default
25199  $$r
25200 \begin_inset Quotes erd
25201 \end_inset
25202
25203 , with Flags set to
25204 \begin_inset Newline newline
25205 \end_inset
25206
25207
25208 \begin_inset Quotes eld
25209 \end_inset
25210
25211
25212 \family typewriter
25213 parselog=$$s/scripts/listerrors
25214 \family default
25215
25216 \begin_inset Quotes erd
25217 \end_inset
25218
25219 .
25220 \end_layout
25221
25222 \begin_layout Subsubsection
25223 Debug extensions
25224 \end_layout
25225
25226 \begin_layout Standard
25227 There is also a new function implemented in the \SpecialChar LyX
25228  server, the 
25229 \begin_inset Quotes eld
25230 \end_inset
25231
25232 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25233  
25234 \end_layout
25235
25236 \begin_layout Standard
25237 When debugging code with ddd/gdb, it is possible to invoke a text editor
25238  at the current execution position with a single key stroke.
25239  The default ddd configuration for that is shift-ctrl-V.
25240  It happens that you can define the editor command line invocation in ddd
25241  by accessing the 
25242 \family sans
25243 Edit\SpecialChar menuseparator
25244 Preferences\SpecialChar menuseparator
25245 Helpers
25246 \family default
25247  dialog and changing the "Edit Sources" entry.
25248 \end_layout
25249
25250 \begin_layout Standard
25251 I take advantage of the newly created \SpecialChar LyX
25252  server function and this ddd feature,
25253  and set 
25254 \begin_inset Quotes eld
25255 \end_inset
25256
25257 Edit Sources
25258 \begin_inset Quotes erd
25259 \end_inset
25260
25261  to:
25262 \end_layout
25263
25264 \begin_layout Standard
25265
25266 \change_deleted -712698321 1501232274
25267 \begin_inset VSpace defskip
25268 \end_inset
25269
25270
25271 \change_inserted -712698321 1501232276
25272
25273 \end_layout
25274
25275 \begin_layout LyX-Code
25276
25277 \size footnotesize
25278 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25279 \end_layout
25280
25281 \begin_layout Standard
25282
25283 \change_deleted -712698321 1501232278
25284 \begin_inset VSpace defskip
25285 \end_inset
25286
25287
25288 \change_unchanged
25289
25290 \end_layout
25291
25292 \begin_layout Standard
25293 With this, whenever you are using ddd and find a point in the program that
25294  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25295  ddd will forward this information to \SpecialChar LyX
25296  through the \SpecialChar LyX
25297  server and then the
25298  \SpecialChar LyX
25299  window will show the same file with the cursor at the same position ddd
25300  was pointing to.
25301  No more guessing or long scrolling to locate a point in the program back
25302  from debugging !
25303 \end_layout
25304
25305 \begin_layout Standard
25306 Note however that you must enable the \SpecialChar LyX
25307  server to get this feature working
25308  (it is disabled by default).
25309  
25310 \change_deleted -712698321 1501232597
25311 You can enable it in 
25312 \family sans
25313 Preferences
25314 \family default
25315  (tabs 
25316 \family sans
25317 Inputs
25318 \family default
25319
25320 \family sans
25321 Paths
25322 \family default
25323 ) by entering in the 
25324 \family sans
25325 \SpecialChar LyX
25326 server pipe
25327 \family default
25328  a path like 
25329 \begin_inset Quotes eld
25330 \end_inset
25331
25332
25333 \family typewriter
25334 /home/<your-home-directory>/.lyx/lyxpipe
25335 \family default
25336
25337 \begin_inset Quotes erd
25338 \end_inset
25339
25340
25341 \end_layout
25342
25343 \begin_layout Standard
25344
25345 \change_inserted -712698321 1501232576
25346 Sec.
25347 \begin_inset space ~
25348 \end_inset
25349
25350
25351 \begin_inset CommandInset ref
25352 LatexCommand ref
25353 reference "sec:Starting-the-Server"
25354
25355 \end_inset
25356
25357  explains how to do that
25358 \change_deleted -712698321 1501232579
25359 Read the \SpecialChar LyX
25360  server documentation in the 
25361 \emph on
25362 Customization Manual
25363 \emph default
25364  for further information
25365 \change_unchanged
25366 .
25367 \end_layout
25368
25369 \begin_layout Subsubsection
25370 Toolbar extensions
25371 \end_layout
25372
25373 \begin_layout Standard
25374 There are six new buttons that can be added to your \SpecialChar LyX
25375  toolbar.
25376  Five of these buttons are short cuts to layout styles: 
25377 \family sans
25378 Standard
25379 \family default
25380
25381 \family sans
25382 Section
25383 \family default
25384
25385 \family sans
25386 \SpecialChar LaTeX
25387
25388 \family default
25389
25390 \family sans
25391 \SpecialChar LyX
25392 -Code
25393 \family default
25394 , and 
25395 \family sans
25396 Chunk
25397 \family default
25398 .
25399  The last one is a short cut to the 
25400 \begin_inset Quotes eld
25401 \end_inset
25402
25403 Build Program
25404 \begin_inset Quotes erd
25405 \end_inset
25406
25407  File menu entry.
25408  
25409 \end_layout
25410
25411 \begin_layout Standard
25412 \SpecialChar LyX
25413  has a range of buttons that are available for tool bar customization.
25414  In my toolbar I like to combine the six short cuts above with two more:
25415  One for 
25416 \family sans
25417 Document
25418 \family default
25419 \SpecialChar menuseparator
25420
25421 \family sans
25422 Update
25423 \family default
25424 \SpecialChar menuseparator
25425
25426 \family sans
25427 DVI
25428 \family default
25429  and the other for 
25430 \family sans
25431 Document\SpecialChar menuseparator
25432 View\SpecialChar menuseparator
25433 DVI
25434 \family default
25435  File menu entries.
25436  Here is how it looks like:
25437 \end_layout
25438
25439 \begin_layout LyX-Code
25440 Toolbar
25441 \end_layout
25442
25443 \begin_layout LyX-Code
25444   Layouts
25445 \end_layout
25446
25447 \begin_layout LyX-Code
25448   Icon "layout Standard"
25449 \end_layout
25450
25451 \begin_layout LyX-Code
25452   Icon "layout Section"
25453 \end_layout
25454
25455 \begin_layout LyX-Code
25456   Icon "layout \SpecialChar LaTeX
25457 "
25458 \end_layout
25459
25460 \begin_layout LyX-Code
25461   Icon "layout \SpecialChar LyX
25462 -Code"
25463 \end_layout
25464
25465 \begin_layout LyX-Code
25466   Icon "layout Chunk"
25467 \end_layout
25468
25469 \begin_layout LyX-Code
25470   Separator
25471 \end_layout
25472
25473 \begin_layout LyX-Code
25474   Icon "buffer-view"
25475 \end_layout
25476
25477 \begin_layout LyX-Code
25478   Icon "buffer-typeset"
25479 \end_layout
25480
25481 \begin_layout LyX-Code
25482   Icon "build-program"
25483 \end_layout
25484
25485 \begin_layout LyX-Code
25486   Separator
25487 \end_layout
25488
25489 \begin_layout LyX-Code
25490 .
25491 \end_layout
25492
25493 \begin_layout LyX-Code
25494 .
25495 \end_layout
25496
25497 \begin_layout LyX-Code
25498 .
25499 \end_layout
25500
25501 \begin_layout LyX-Code
25502 End
25503 \end_layout
25504
25505 \begin_layout Subsubsection
25506 Colors customization
25507 \end_layout
25508
25509 \begin_layout Standard
25510 There are a number of colors in \SpecialChar LyX
25511  that can be customized in 
25512 \family sans
25513 Preferences
25514 \family default
25515 .
25516  One of the things that bothers people is the \SpecialChar LaTeX
25517  font color.
25518  The default color is red, since the chunks uses \SpecialChar LaTeX
25519  font, and there is a lot
25520  of chunks in literate documents, you may get tired of seeing everything
25521  in red.
25522  You can change it by going to the tabs 
25523 \family sans
25524 Look&Feel
25525 \family default
25526
25527 \family sans
25528 Colors.
25529 \end_layout
25530
25531 \begin_layout Standard
25532 The next thing is the visible presence of the newline character in the screen.
25533  You can choose the color of this particular character and make it blend
25534  in the background.
25535  I recommend you choosing a color that is close to the background but not
25536  equal, that way you still can see it is there, but it is not bothering
25537  you anymore.
25538 \end_layout
25539
25540 \begin_layout Subsection
25541 \SpecialChar LyX
25542  and knitr/Sweave
25543 \end_layout
25544
25545 \begin_layout Standard
25546 Support for 
25547 \family sans
25548 knitr
25549 \family default
25550  and 
25551 \family sans
25552 Sweave
25553 \family default
25554  is documented in the 
25555 \emph on
25556 knitr.lyx
25557 \emph default
25558  example file and in the Sweave manual (menu 
25559 \family sans
25560 Help\SpecialChar menuseparator
25561 Specific Manuals
25562 \family default
25563 ).
25564 \end_layout
25565
25566 \begin_layout Chapter
25567 Special features
25568 \end_layout
25569
25570 \begin_layout Standard
25571 You can do everything with \SpecialChar LyX
25572  that you can do with \SpecialChar LaTeX
25573 .
25574  However, \SpecialChar LyX
25575  cannot support every \SpecialChar LaTeX
25576  feature directly.
25577  But you can always use \SpecialChar TeX
25578  Code.
25579  This chapter shows you some more special things you might want to use.
25580  For other special things you can do with figures, tables, floats, boxes
25581  and notes, have a look at the 
25582 \emph on
25583 Embedded
25584 \begin_inset space ~
25585 \end_inset
25586
25587 Objects
25588 \emph default
25589  manual.
25590 \end_layout
25591
25592 \begin_layout Section
25593 Multiple Text Columns
25594 \end_layout
25595
25596 \begin_layout Standard
25597 This feature is independent of the option 
25598 \family sans
25599 Two-column document
25600 \family default
25601  in the document settings under 
25602 \family sans
25603 Text Layout
25604 \family default
25605 .
25606  If you want to have 2
25607 \begin_inset space ~
25608 \end_inset
25609
25610 columns for the whole document, it is recommended to use the 
25611 \family sans
25612 Two-column document
25613 \family default
25614  option.
25615  For all other cases use this feature.
25616 \end_layout
25617
25618 \begin_layout Standard
25619 To use multiple text columns in your document, you have to load the module
25620  
25621 \family sans
25622 Multiple Columns
25623 \family default
25624  (menu 
25625 \family sans
25626 Document\SpecialChar menuseparator
25627 Settings\SpecialChar menuseparator
25628 Modules
25629 \family default
25630 ) and must have the \SpecialChar LaTeX
25631 -package 
25632 \series bold
25633 multicol
25634 \series default
25635  installed.
25636 \end_layout
25637
25638 \begin_layout Standard
25639 Footnotes within multiple columns will be placed at the bottom of the page
25640  and not under each column.
25641  Within the different columns you can use everything, with the limitation
25642  that for floats you need to use the float option 
25643 \family sans
25644 Span columns
25645 \family default
25646 .
25647 \end_layout
25648
25649 \begin_layout Subsection
25650 Basics
25651 \end_layout
25652
25653 \begin_layout Standard
25654 If you want to have 2
25655 \begin_inset space ~
25656 \end_inset
25657
25658 columns in your text, insert a multicolumn inset via the menu 
25659 \family sans
25660 Insert\SpecialChar menuseparator
25661 Custom
25662 \begin_inset space ~
25663 \end_inset
25664
25665 Insets\SpecialChar menuseparator
25666 Multiple
25667 \begin_inset space ~
25668 \end_inset
25669
25670 Columns
25671 \family default
25672  where the columns should start.
25673  Write all text that should be printed in 2
25674 \begin_inset space ~
25675 \end_inset
25676
25677 columns into this inset.
25678 \end_layout
25679
25680 \begin_layout Standard
25681 Here is an example:
25682 \end_layout
25683
25684 \begin_layout Standard
25685 \noindent
25686 \begin_inset Flex Multiple Columns
25687 status open
25688
25689 \begin_layout Plain Layout
25690 \noindent
25691
25692 \series bold
25693 \size small
25694 The Adventure of the Empty House
25695 \series default
25696
25697 \begin_inset Newline newline
25698 \end_inset
25699
25700 by Sir Arthur Conan Doyle
25701 \end_layout
25702
25703 \begin_layout Plain Layout
25704
25705 \size small
25706 It was in the spring of the year 1894 that all London was interested, and
25707  the fashionable world dismayed, by the murder of the Honourable Ronald
25708  Adair under most unusual and inexplicable circumstances.
25709  The public has already learned those particulars of the crime which came
25710  out in the police investigation, but a good deal was suppressed upon that
25711  occasion, since the case for the prosecution was so overwhelmingly strong
25712  that it was not necessary to bring forward all the facts.
25713  Only now, at the end of nearly ten years, am I allowed to supply those
25714  missing links which make up the whole of that remarkable chain.
25715  The crime was of interest in itself, but that interest was as nothing to
25716  me compared to the inconceivable sequel, which afforded me the greatest
25717  shock and surprise of any event in my adventurous life.
25718  Even now, after this long interval, I find myself thrilling as I think
25719  of it, and feeling once more that sudden flood of joy, amazement, and increduli
25720 ty which utterly submerged my mind.
25721  Let me say to that public, which has shown some interest in those glimpses
25722  which I have occasionally given them of the thoughts and actions of a very
25723  remarkable man, that they are not to blame me if I have not shared my knowledge
25724  with them, for I should have considered it my first duty to do so, had
25725  I not been barred by a positive prohibition from his own lips, which was
25726  only withdrawn upon the third of last month.
25727 \end_layout
25728
25729 \end_inset
25730
25731
25732 \end_layout
25733
25734 \begin_layout Standard
25735 To get 3 or more columns, set the cursor into the multicolumn inset and
25736  use the menu 
25737 \family sans
25738 Insert\SpecialChar menuseparator
25739 Number
25740 \begin_inset space ~
25741 \end_inset
25742
25743 of
25744 \begin_inset space ~
25745 \end_inset
25746
25747 Columns
25748 \family default
25749 .
25750  The number of the desired columns is written into that inset (for 3
25751 \begin_inset space ~
25752 \end_inset
25753
25754 columns write 
25755 \begin_inset Quotes eld
25756 \end_inset
25757
25758 3
25759 \begin_inset Quotes erd
25760 \end_inset
25761
25762 ).
25763 \begin_inset Newline newline
25764 \end_inset
25765
25766 Here is an example with 3
25767 \begin_inset space ~
25768 \end_inset
25769
25770 columns:
25771 \end_layout
25772
25773 \begin_layout Standard
25774 \begin_inset Flex Multiple Columns
25775 status open
25776
25777 \begin_layout Plain Layout
25778
25779 \size footnotesize
25780 \begin_inset Argument 1
25781 status open
25782
25783 \begin_layout Plain Layout
25784 3
25785 \end_layout
25786
25787 \end_inset
25788
25789 It can be imagined that my close intimacy with Sherlock Holmes had interested
25790  me deeply in crime, and that after his disappearance I never failed to
25791  read with care the various problems which came before the public.
25792  And I even attempted, more than once, for my own private satisfaction,
25793  to employ his methods in their solution, though with indifferent success.
25794  There was none, however, which appealed to me like this tragedy of Ronald
25795  Adair.
25796  As I read the evidence at the inquest, which led up to a verdict of willful
25797  murder against some person or persons unknown, I realized more clearly
25798  than I had ever done the loss which the community had sustained by the
25799  death of Sherlock Holmes.
25800  There were points about this strange business which would, I was sure,
25801  have specially appealed to him, and the efforts of the police would have
25802  been supplemented, or more probably anticipated, by the trained observation
25803  and the alert mind of the first criminal agent in Europe.
25804  All day, as I drove upon my round, I turned over the case in my mind and
25805  found no explanation which appeared to me to be adequate.
25806  At the risk of telling a twice-told tale, I will recapitulate the facts
25807  as they were known to the public at the conclusion of the inquest.
25808 \end_layout
25809
25810 \end_inset
25811
25812
25813 \end_layout
25814
25815 \begin_layout Standard
25816 You can have up to 10
25817 \begin_inset space ~
25818 \end_inset
25819
25820 columns if you want to, but that might not be very pleasant for the readers
25821  of your document.
25822 \end_layout
25823
25824 \begin_layout Standard
25825 \begin_inset Newpage newpage
25826 \end_inset
25827
25828
25829 \end_layout
25830
25831 \begin_layout Subsection
25832 Columns inside Columns
25833 \end_layout
25834
25835 \begin_layout Standard
25836 You can also have columns inside columns:
25837 \end_layout
25838
25839 \begin_layout Standard
25840 \begin_inset Flex Multiple Columns
25841 status open
25842
25843 \begin_layout Plain Layout
25844
25845 \size footnotesize
25846 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
25847  at that time governor of one of the Australian colonies.
25848  Adair's mother had returned from Australia to undergo the operation for
25849  cataract, and she, her son Ronald, and her daughter Hilda were living together
25850  at 427 Park Lane.
25851 \end_layout
25852
25853 \begin_layout Plain Layout
25854 \begin_inset Flex Multiple Columns
25855 status open
25856
25857 \begin_layout Plain Layout
25858
25859 \size footnotesize
25860 The youth moved in the best society–had, so far as was known, no enemies
25861  and no particular vices.
25862  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25863  had been broken off by mutual consent some months before, and there was
25864  no sign that it had left any very profound feeling behind it.
25865  For the rest {sic} the man's life moved in a narrow and conventional circle,
25866  for his habits were quiet and his nature unemotional.
25867  Yet it was upon this easy-going young aristocrat that death came, in most
25868  strange and unexpected form, between the hours of ten and eleven-twenty
25869  on the night of March 30, 1894.
25870 \end_layout
25871
25872 \end_inset
25873
25874
25875 \end_layout
25876
25877 \begin_layout Plain Layout
25878
25879 \size footnotesize
25880 Ronald Adair was fond of cards–playing continually, but never for such stakes
25881  as would hurt him.
25882  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25883  It was shown that, after dinner on the day of his death, he had played
25884  a rubber of whist at the latter club.
25885  He had also played there in the afternoon.
25886
25887 \size default
25888  
25889 \size footnotesize
25890 The evidence of those who had played with him– Mr.
25891  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
25892  and that there was a fairly equal fall of the cards.
25893  Adair might have lost five pounds, but not more.
25894  His fortune was a considerable one, and such a loss could not in any way
25895  affect him.
25896  He had played nearly every day at one club or other, but he was a cautious
25897  player, and usually rose a winner.
25898  It came out in evidence that, in partnership with Colonel Moran, he had
25899  actually won as much as four hundred and twenty pounds in a sitting, some
25900  weeks before, from Godfrey Milner and Lord Balmoral.
25901  So much for his recent history as it came out at the inquest.
25902 \end_layout
25903
25904 \end_inset
25905
25906
25907 \end_layout
25908
25909 \begin_layout Subsection
25910 Advanced Examples
25911 \end_layout
25912
25913 \begin_layout Standard
25914 The examples in this section show some more special features of multiple
25915  columns.
25916 \end_layout
25917
25918 \begin_layout Standard
25919 For more features of multiple columns, have a look at the documentation
25920  of the \SpecialChar LaTeX
25921 -package 
25922 \series bold
25923 multicol
25924 \series default
25925
25926 \begin_inset CommandInset citation
25927 LatexCommand cite
25928 key "multicol"
25929 literal "true"
25930
25931 \end_inset
25932
25933 .
25934 \end_layout
25935
25936 \begin_layout Subsubsection
25937 Preface
25938 \end_layout
25939
25940 \begin_layout Standard
25941 To add a preface text for multiple columns, set the cursor into the multicolumn
25942  inset and use the menu 
25943 \family sans
25944 Insert\SpecialChar menuseparator
25945 Preface
25946 \family default
25947 .
25948  Write your preface text into that inset.
25949 \begin_inset Newline newline
25950 \end_inset
25951
25952 This is an example with some preface text:
25953 \end_layout
25954
25955 \begin_layout Standard
25956 \begin_inset VSpace bigskip
25957 \end_inset
25958
25959
25960 \end_layout
25961
25962 \begin_layout Standard
25963 \begin_inset Flex Multiple Columns
25964 status open
25965
25966 \begin_layout Plain Layout
25967 \begin_inset Argument 2
25968 status open
25969
25970 \begin_layout Plain Layout
25971 And the story continues and continues and continues and continues\SpecialChar ldots
25972
25973 \end_layout
25974
25975 \end_inset
25976
25977
25978 \size small
25979 On the evening of the crime, he returned from the club exactly at ten.
25980  His mother and sister were out spending the evening with a relation.
25981  The servant deposed that she heard him enter the front room on the second
25982  floor, generally used as his sitting-room.
25983  She had lit a fire there, and as it smoked she had opened the window.
25984  No sound was heard from the room until eleven-twenty, the hour of the return
25985  of Lady Maynooth and her daughter.
25986  Desiring to say good-night, she attempted to enter her son's room.
25987  The door was locked on the inside, and no answer could be got to their
25988  cries and knocking.
25989  Help was obtained, and the door forced.
25990  The unfortunate young man was found lying near the table.
25991  His head had been horribly mutilated by an expanding revolver bullet, but
25992  no weapon of any sort was to be found in the room.
25993 \end_layout
25994
25995 \end_inset
25996
25997
25998 \end_layout
25999
26000 \begin_layout Standard
26001 You can also use a section heading as the preface if you use a section command
26002  as \SpecialChar TeX
26003  Code.
26004  For example the command
26005 \end_layout
26006
26007 \begin_layout Standard
26008
26009 \series bold
26010
26011 \backslash
26012 subsection{subsection title}
26013 \end_layout
26014
26015 \begin_layout Standard
26016 creates a subsection.
26017  In this example the preface is a subsubsection:
26018 \end_layout
26019
26020 \begin_layout Standard
26021 \begin_inset Flex Multiple Columns
26022 status open
26023
26024 \begin_layout Plain Layout
26025 \begin_inset Argument 2
26026 status open
26027
26028 \begin_layout Plain Layout
26029 \begin_inset ERT
26030 status collapsed
26031
26032 \begin_layout Plain Layout
26033
26034
26035 \backslash
26036 subsubsection{
26037 \end_layout
26038
26039 \end_inset
26040
26041 This is a subsubsection heading as a preface
26042 \begin_inset ERT
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046
26047 }
26048 \end_layout
26049
26050 \end_inset
26051
26052
26053 \end_layout
26054
26055 \end_inset
26056
26057
26058 \size small
26059 A minute examination of the circumstances served only to make the case more
26060  complex.
26061  In the first place, no reason could be given why the young man should have
26062  fastened the door upon the inside.
26063  There was the possibility that the murderer had done this, and had afterwards
26064  escaped by the window.
26065  The drop was at least twenty feet, however, and a bed of crocuses in full
26066  bloom lay beneath.
26067  Neither the flowers nor the earth showed any sign of having been disturbed,
26068  nor were there any marks upon the narrow strip of grass which separated
26069  the house from the road.
26070  Apparently, therefore, it was the young man himself who had fastened the
26071  door.
26072  But how did he come by his death? No one could have climbed up to the window
26073  without leaving traces.
26074  Suppose a man had fired through the window, he would indeed be a remarkable
26075  shot who could with a revolver inflict so deadly a wound.
26076  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26077  a hundred yards of the house.
26078  No one had heard a shot.
26079 \end_layout
26080
26081 \end_inset
26082
26083
26084 \end_layout
26085
26086 \begin_layout Standard
26087 If there is less vertical space than 6
26088 \begin_inset space ~
26089 \end_inset
26090
26091 text lines is left on the page at the beginning of the multiple columns,
26092  a page break will be inserted before the multiple columns.
26093  Depending on the number of lines of the preface text, you might want to
26094  change this space.
26095  This is done by setting the cursor into the mulitcolumn inset behind the
26096  preface (if there is any) and using the menu 
26097 \family sans
26098 Insert\SpecialChar menuseparator
26099 Space
26100 \begin_inset space ~
26101 \end_inset
26102
26103 Before
26104 \begin_inset space ~
26105 \end_inset
26106
26107 Page
26108 \begin_inset space ~
26109 \end_inset
26110
26111 Break
26112 \family default
26113 .
26114  Insert into that inset the amount of space like e.
26115 \begin_inset space \thinspace{}
26116 \end_inset
26117
26118 g.
26119 \begin_inset space \space{}
26120 \end_inset
26121
26122
26123 \begin_inset Quotes eld
26124 \end_inset
26125
26126 5cm
26127 \begin_inset Quotes erd
26128 \end_inset
26129
26130 .
26131 \begin_inset Newline newline
26132 \end_inset
26133
26134 In this example the space is set to 7
26135 \begin_inset space ~
26136 \end_inset
26137
26138 text lines by using 
26139 \begin_inset Quotes eld
26140 \end_inset
26141
26142 7
26143 \backslash
26144 baselineskip
26145 \begin_inset Quotes erd
26146 \end_inset
26147
26148  (where the command 
26149 \series bold
26150
26151 \backslash
26152 baselineskip
26153 \series default
26154  needs to be inserted as \SpecialChar TeX
26155  code):
26156 \end_layout
26157
26158 \begin_layout Standard
26159 \begin_inset Flex Multiple Columns
26160 status open
26161
26162 \begin_layout Plain Layout
26163 \begin_inset Argument 3
26164 status open
26165
26166 \begin_layout Plain Layout
26167 7
26168 \begin_inset ERT
26169 status collapsed
26170
26171 \begin_layout Plain Layout
26172
26173
26174 \backslash
26175 baselineskip
26176 \end_layout
26177
26178 \end_inset
26179
26180
26181 \end_layout
26182
26183 \end_inset
26184
26185
26186 \size small
26187 On the evening of the crime, he returned from the club exactly at ten.
26188  His mother and sister were out spending the evening with a relation.
26189  The servant deposed that she heard him enter the front room on the second
26190  floor, generally used as his sitting-room.
26191  She had lit a fire there, and as it smoked she had opened the window.
26192  No sound was heard from the room until eleven-twenty, the hour of the return
26193  of Lady Maynooth and her daughter.
26194  Desiring to say good-night, she attempted to enter her son's room.
26195  The door was locked on the inside, and no answer could be got to their
26196  cries and knocking.
26197  Help was obtained, and the door forced.
26198  The unfortunate young man was found lying near the table.
26199  His head had been horribly mutilated by an expanding revolver bullet, but
26200  no weapon of any sort was to be found in the room.
26201 \end_layout
26202
26203 \end_inset
26204
26205
26206 \end_layout
26207
26208 \begin_layout Subsubsection
26209 Surrounding Space
26210 \end_layout
26211
26212 \begin_layout Standard
26213 The amount of space before and after multiple columns can be changed by
26214  changing the length 
26215 \series bold
26216
26217 \backslash
26218 multicolsep
26219 \series default
26220 .
26221  For example the command
26222 \end_layout
26223
26224 \begin_layout Standard
26225
26226 \series bold
26227
26228 \backslash
26229 setlength{
26230 \backslash
26231 multicolsep}{3cm}
26232 \end_layout
26233
26234 \begin_layout Standard
26235 in \SpecialChar TeX
26236  Code changes its value to 3
26237 \begin_inset space \thinspace{}
26238 \end_inset
26239
26240 cm.
26241  The change must be made before the multiple columns' start.
26242  The predefined value is 13
26243 \begin_inset space \thinspace{}
26244 \end_inset
26245
26246 pt.
26247 \end_layout
26248
26249 \begin_layout Standard
26250 For this example 
26251 \series bold
26252
26253 \backslash
26254 multicolsep
26255 \series default
26256  was set to 2.5
26257 \begin_inset space \thinspace{}
26258 \end_inset
26259
26260 cm:
26261 \end_layout
26262
26263 \begin_layout Standard
26264 \begin_inset ERT
26265 status open
26266
26267 \begin_layout Plain Layout
26268
26269
26270 \backslash
26271 setlength{
26272 \backslash
26273 multicolsep}{2.5cm}
26274 \end_layout
26275
26276 \end_inset
26277
26278
26279 \end_layout
26280
26281 \begin_layout Standard
26282 \begin_inset Flex Multiple Columns
26283 status open
26284
26285 \begin_layout Plain Layout
26286
26287 \size small
26288 All day I turned these facts over in my mind, endeavouring to hit upon some
26289  theory which could reconcile them all, and to find that line of least resistanc
26290 e which my poor friend had declared to be the starting-point of every investigat
26291 ion.
26292  I confess that I made little progress.
26293  In the evening I strolled across the Park, and found myself about six o'clock
26294  at the Oxford Street end of Park Lane.
26295  A group of loafers upon the pavements, all staring up at a particular window,
26296  directed me to the house which I had come to see.
26297  A tall, thin man with coloured glasses, whom I strongly suspected of being
26298  a plain-clothes detective, was pointing out some theory of his own, while
26299  the others crowded round to listen to what he said.
26300  I got as near him as I could, but his observations seemed to me to be absurd,
26301  so I withdrew again in some disgust.
26302  As I did so I struck against an elderly, deformed man, who had been behind
26303  me, and I knocked down several books which he was carrying.
26304 \end_layout
26305
26306 \end_inset
26307
26308
26309 \end_layout
26310
26311 \begin_layout Standard
26312 \begin_inset Note Greyedout
26313 status open
26314
26315 \begin_layout Plain Layout
26316
26317 \series bold
26318 Note:
26319 \series default
26320  The values you set with 
26321 \series bold
26322
26323 \backslash
26324 setlength
26325 \series default
26326  will be used for all following multiple columns until you change them again.
26327 \end_layout
26328
26329 \end_inset
26330
26331
26332 \end_layout
26333
26334 \begin_layout Standard
26335 \begin_inset ERT
26336 status collapsed
26337
26338 \begin_layout Plain Layout
26339
26340
26341 \backslash
26342 setlength{
26343 \backslash
26344 multicolsep}{13pt}
26345 \end_layout
26346
26347 \end_inset
26348
26349
26350 \begin_inset Note Note
26351 status collapsed
26352
26353 \begin_layout Plain Layout
26354 go back to the default
26355 \end_layout
26356
26357 \end_inset
26358
26359
26360 \end_layout
26361
26362 \begin_layout Standard
26363 \begin_inset Newpage newpage
26364 \end_inset
26365
26366
26367 \end_layout
26368
26369 \begin_layout Subsubsection
26370 Column Breaks
26371 \end_layout
26372
26373 \begin_layout Standard
26374 A column break can be forced by inserting the command 
26375 \series bold
26376
26377 \backslash
26378 columnbreak{}
26379 \series default
26380  as \SpecialChar TeX
26381  Code to that position in the text where the column should be broken.
26382  Note that this leads in most cases to whitespace in the text.
26383 \begin_inset Newline newline
26384 \end_inset
26385
26386 Here is an example:
26387 \end_layout
26388
26389 \begin_layout Standard
26390 \begin_inset Flex Multiple Columns
26391 status open
26392
26393 \begin_layout Plain Layout
26394
26395 \size small
26396 \begin_inset Quotes eld
26397 \end_inset
26398
26399 You're surprised to see me, sir,
26400 \begin_inset Quotes erd
26401 \end_inset
26402
26403  said he, in a strange, croaking voice.
26404 \end_layout
26405
26406 \begin_layout Plain Layout
26407
26408 \size small
26409 I acknowledged that I was.
26410 \end_layout
26411
26412 \begin_layout Plain Layout
26413
26414 \size small
26415 \begin_inset Quotes eld
26416 \end_inset
26417
26418 Well, I've a conscience, sir, and when I chanced to see you go into this
26419  house, as I came hobbling after you, I thought to myself, I'll just step
26420  in and see that kind gentleman, and tell him that if I was a bit gruff
26421  in my manner there was not any harm meant, and that I am much obliged to
26422  him for picking up my books.
26423 \begin_inset Quotes erd
26424 \end_inset
26425
26426
26427 \end_layout
26428
26429 \begin_layout Plain Layout
26430
26431 \size small
26432 \begin_inset Quotes eld
26433 \end_inset
26434
26435 You make too much of a trifle,
26436 \begin_inset Quotes erd
26437 \end_inset
26438
26439  said I.
26440  
26441 \begin_inset Quotes eld
26442 \end_inset
26443
26444 May I ask how you knew who I was?
26445 \begin_inset Quotes erd
26446 \end_inset
26447
26448  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
26449 \begin_inset ERT
26450 status collapsed
26451
26452 \begin_layout Plain Layout
26453
26454
26455 \backslash
26456 columnbreak{}
26457 \end_layout
26458
26459 \end_inset
26460
26461
26462 \end_layout
26463
26464 \begin_layout Plain Layout
26465
26466 \size small
26467 \begin_inset Quotes eld
26468 \end_inset
26469
26470 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26471  you'll find my little bookshop at the corner of Church Street, and very
26472  happy to see you, I am sure.
26473  Maybe you collect yourself, sir.
26474  Here's 
26475 \noun on
26476 British
26477 \begin_inset space ~
26478 \end_inset
26479
26480 Birds
26481 \noun default
26482 , and 
26483 \noun on
26484 Catullus
26485 \noun default
26486 , and 
26487 \noun on
26488 The Holy War
26489 \noun default
26490 –a bargain, every one of them.
26491  With five volumes you could just fill that gap on that second shelf.
26492  It looks untidy, does it not, sir?
26493 \begin_inset Quotes erd
26494 \end_inset
26495
26496
26497 \end_layout
26498
26499 \end_inset
26500
26501
26502 \end_layout
26503
26504 \begin_layout Subsubsection
26505 Column Separation
26506 \end_layout
26507
26508 \begin_layout Standard
26509 The width of the columns is automatically calculated, but you can modify
26510  the space between the columns.
26511  This is done by changing the length 
26512 \series bold
26513
26514 \backslash
26515 columnsep
26516 \series default
26517 .
26518  Its predefined value is 10
26519 \begin_inset space \thinspace{}
26520 \end_inset
26521
26522 pt.
26523  Here is an example where 
26524 \series bold
26525
26526 \backslash
26527 columnsep
26528 \series default
26529  is set to 3
26530 \begin_inset space \thinspace{}
26531 \end_inset
26532
26533 cm:
26534 \end_layout
26535
26536 \begin_layout Standard
26537 \begin_inset ERT
26538 status open
26539
26540 \begin_layout Plain Layout
26541
26542
26543 \backslash
26544 setlength{
26545 \backslash
26546 columnsep}{3cm}
26547 \end_layout
26548
26549 \end_inset
26550
26551
26552 \end_layout
26553
26554 \begin_layout Standard
26555 \begin_inset Flex Multiple Columns
26556 status open
26557
26558 \begin_layout Plain Layout
26559
26560 \size small
26561 My observations of No.
26562 \begin_inset space \space{}
26563 \end_inset
26564
26565 427 Park Lane did little to clear up the problem in which I was interested.
26566  The house was separated from the street by a low wall and railing, the
26567  whole not more than five feet high.
26568  It was perfectly easy, therefore, for anyone to get into the garden, but
26569  the window was entirely inaccessible, since there was no water pipe or
26570  anything which could help the most active man to climb it.
26571  More puzzled than ever, I retraced my steps to Kensington.
26572  I had not been in my study five minutes when the maid entered to say that
26573  a person desired to see me.
26574  To my astonishment it was none other than my strange old book collector,
26575  his sharp, wizened face peering out from a frame of white hair, and his
26576  precious volumes, a dozen of them at least, wedged under his right arm.
26577 \end_layout
26578
26579 \end_inset
26580
26581
26582 \end_layout
26583
26584 \begin_layout Standard
26585 \begin_inset ERT
26586 status collapsed
26587
26588 \begin_layout Plain Layout
26589
26590
26591 \backslash
26592 setlength{
26593 \backslash
26594 columnsep}{10pt}
26595 \end_layout
26596
26597 \end_inset
26598
26599
26600 \begin_inset Note Note
26601 status collapsed
26602
26603 \begin_layout Plain Layout
26604 go back to the default
26605 \end_layout
26606
26607 \end_inset
26608
26609
26610 \end_layout
26611
26612 \begin_layout Subsubsection
26613 Vertical Lines
26614 \end_layout
26615
26616 \begin_layout Standard
26617 Between the columns a rule with a width of the length 
26618 \series bold
26619
26620 \backslash
26621 columnseprule
26622 \series default
26623  is placed.
26624  If this rule width is set to 0
26625 \begin_inset space \thinspace{}
26626 \end_inset
26627
26628 pt (this is the default), the rule is suppressed.
26629  In the following example the rule is 2
26630 \begin_inset space \thinspace{}
26631 \end_inset
26632
26633 pt wide:
26634 \end_layout
26635
26636 \begin_layout Standard
26637 \begin_inset ERT
26638 status open
26639
26640 \begin_layout Plain Layout
26641
26642
26643 \backslash
26644 setlength{
26645 \backslash
26646 columnseprule}{2pt}
26647 \end_layout
26648
26649 \end_inset
26650
26651
26652 \end_layout
26653
26654 \begin_layout Standard
26655 \begin_inset Flex Multiple Columns
26656 status open
26657
26658 \begin_layout Plain Layout
26659
26660 \size small
26661 \begin_inset Quotes eld
26662 \end_inset
26663
26664 You're surprised to see me, sir,
26665 \begin_inset Quotes erd
26666 \end_inset
26667
26668  said he, in a strange, croaking voice.
26669 \end_layout
26670
26671 \begin_layout Plain Layout
26672
26673 \size small
26674 I acknowledged that I was.
26675 \end_layout
26676
26677 \begin_layout Plain Layout
26678
26679 \size small
26680 \begin_inset Quotes eld
26681 \end_inset
26682
26683 Well, I've a conscience, sir, and when I chanced to see you go into this
26684  house, as I came hobbling after you, I thought to myself, I'll just step
26685  in and see that kind gentleman, and tell him that if I was a bit gruff
26686  in my manner there was not any harm meant, and that I am much obliged to
26687  him for picking up my books.
26688 \begin_inset Quotes erd
26689 \end_inset
26690
26691
26692 \end_layout
26693
26694 \begin_layout Plain Layout
26695
26696 \size small
26697 \begin_inset Quotes eld
26698 \end_inset
26699
26700 You make too much of a trifle,
26701 \begin_inset Quotes erd
26702 \end_inset
26703
26704  said I.
26705  
26706 \begin_inset Quotes eld
26707 \end_inset
26708
26709 May I ask how you knew who I was?
26710 \begin_inset Quotes erd
26711 \end_inset
26712
26713
26714 \end_layout
26715
26716 \begin_layout Plain Layout
26717
26718 \size small
26719 \begin_inset Quotes eld
26720 \end_inset
26721
26722 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26723  you'll find my little bookshop at the corner of Church Street, and very
26724  happy to see you, I am sure.
26725  Maybe you collect yourself, sir.
26726  Here's 
26727 \noun on
26728 British
26729 \begin_inset space ~
26730 \end_inset
26731
26732 Birds
26733 \noun default
26734 , and 
26735 \noun on
26736 Catullus
26737 \noun default
26738 , and 
26739 \noun on
26740 The Holy War
26741 \noun default
26742 –a bargain, every one of them.
26743  With five volumes you could just fill that gap on that second shelf.
26744  It looks untidy, does it not, sir?
26745 \begin_inset Quotes erd
26746 \end_inset
26747
26748
26749 \end_layout
26750
26751 \end_inset
26752
26753
26754 \end_layout
26755
26756 \begin_layout Standard
26757 \begin_inset VSpace defskip
26758 \end_inset
26759
26760
26761 \end_layout
26762
26763 \begin_layout Standard
26764 The rule can be colored by redefining the command 
26765 \series bold
26766
26767 \backslash
26768 columnseprulecolor
26769 \series default
26770 .
26771  This is done by inserting the command
26772 \begin_inset Newline newline
26773 \end_inset
26774
26775
26776 \series bold
26777
26778 \backslash
26779 renewcommand{
26780 \backslash
26781 columnseprulecolor}{
26782 \backslash
26783 color{red}}
26784 \series default
26785
26786 \begin_inset Newline newline
26787 \end_inset
26788
26789 as \SpecialChar TeX
26790  Code before the multicolumn inset.
26791  Replace 
26792 \series bold
26793 red
26794 \series default
26795  in this command by a color of your choice.
26796  You can use all pre- and self-defined colors.
26797  See the 
26798 \emph on
26799 EmbeddedObjects
26800 \emph default
26801  manual, section 
26802 \emph on
26803 Colored
26804 \begin_inset space ~
26805 \end_inset
26806
26807 Tables
26808 \emph default
26809  for more information about pre- and self-defined colors.
26810  To go back to the default color insert the command
26811 \begin_inset Newline newline
26812 \end_inset
26813
26814
26815 \series bold
26816
26817 \backslash
26818 renewcommand{
26819 \backslash
26820 columnseprulecolor}{
26821 \backslash
26822 normalcolor}
26823 \series default
26824
26825 \begin_inset Newline newline
26826 \end_inset
26827
26828 Here is the example with a cyan rule and 1
26829 \begin_inset space \thinspace{}
26830 \end_inset
26831
26832 cm column separation:
26833 \end_layout
26834
26835 \begin_layout Standard
26836 \begin_inset ERT
26837 status open
26838
26839 \begin_layout Plain Layout
26840
26841
26842 \backslash
26843 setlength{
26844 \backslash
26845 columnsep}{1cm}
26846 \end_layout
26847
26848 \begin_layout Plain Layout
26849
26850
26851 \backslash
26852 renewcommand{
26853 \backslash
26854 columnseprulecolor}{
26855 \backslash
26856 color{cyan}}
26857 \end_layout
26858
26859 \end_inset
26860
26861
26862 \end_layout
26863
26864 \begin_layout Standard
26865 \begin_inset Flex Multiple Columns
26866 status open
26867
26868 \begin_layout Plain Layout
26869
26870 \size small
26871 \begin_inset Quotes eld
26872 \end_inset
26873
26874 You're surprised to see me, sir,
26875 \begin_inset Quotes erd
26876 \end_inset
26877
26878  said he, in a strange, croaking voice.
26879 \end_layout
26880
26881 \begin_layout Plain Layout
26882
26883 \size small
26884 I acknowledged that I was.
26885 \end_layout
26886
26887 \begin_layout Plain Layout
26888
26889 \size small
26890 \begin_inset Quotes eld
26891 \end_inset
26892
26893 Well, I've a conscience, sir, and when I chanced to see you go into this
26894  house, as I came hobbling after you, I thought to myself, I'll just step
26895  in and see that kind gentleman, and tell him that if I was a bit gruff
26896  in my manner there was not any harm meant, and that I am much obliged to
26897  him for picking up my books.
26898 \begin_inset Quotes erd
26899 \end_inset
26900
26901
26902 \end_layout
26903
26904 \begin_layout Plain Layout
26905
26906 \size small
26907 \begin_inset Quotes eld
26908 \end_inset
26909
26910 You make too much of a trifle,
26911 \begin_inset Quotes erd
26912 \end_inset
26913
26914  said I.
26915  
26916 \begin_inset Quotes eld
26917 \end_inset
26918
26919 May I ask how you knew who I was?
26920 \begin_inset Quotes erd
26921 \end_inset
26922
26923
26924 \end_layout
26925
26926 \begin_layout Plain Layout
26927
26928 \size small
26929 \begin_inset Quotes eld
26930 \end_inset
26931
26932 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26933  you'll find my little bookshop at the corner of Church Street, and very
26934  happy to see you, I am sure.
26935  Maybe you collect yourself, sir.
26936  Here's 
26937 \noun on
26938 British
26939 \begin_inset space ~
26940 \end_inset
26941
26942 Birds
26943 \noun default
26944 , and 
26945 \noun on
26946 Catullus
26947 \noun default
26948 , and 
26949 \noun on
26950 The Holy War
26951 \noun default
26952 –a bargain, every one of them.
26953  With five volumes you could just fill that gap on that second shelf.
26954  It looks untidy, does it not, sir?
26955 \begin_inset Quotes erd
26956 \end_inset
26957
26958
26959 \end_layout
26960
26961 \end_inset
26962
26963
26964 \end_layout
26965
26966 \begin_layout Standard
26967 \begin_inset ERT
26968 status collapsed
26969
26970 \begin_layout Plain Layout
26971
26972
26973 \backslash
26974 setlength{
26975 \backslash
26976 columnseprule}{0pt}
26977 \end_layout
26978
26979 \begin_layout Plain Layout
26980
26981
26982 \backslash
26983 renewcommand{
26984 \backslash
26985 columnseprulecolor}{
26986 \backslash
26987 normalcolor}
26988 \end_layout
26989
26990 \end_inset
26991
26992
26993 \begin_inset Note Note
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 go back to the default
26998 \end_layout
26999
27000 \end_inset
27001
27002
27003 \end_layout
27004
27005 \begin_layout Section
27006 Non-standard Paragraph Shapes
27007 \end_layout
27008
27009 \begin_layout Standard
27010 \noindent
27011 \SpecialChar LaTeX
27012  as well as any other text processor uses by default rectangular paragraphs.
27013  For special cases like for example posters, invitation cards or poems you
27014  can modify the paragraph shape to one of your choice.
27015  This can be done by using the \SpecialChar LaTeX
27016 -package 
27017 \series bold
27018 shapepar
27019 \series default
27020  which is loaded by using in the document settings the module 
27021 \family sans
27022 Custom paragraph shapes
27023 \family default
27024 .
27025 \end_layout
27026
27027 \begin_layout Subsection
27028 Predefined shapes
27029 \end_layout
27030
27031 \begin_layout Standard
27032
27033 \series bold
27034 shapepar
27035 \series default
27036  provides the following shapes:
27037 \end_layout
27038
27039 \begin_layout Standard
27040 \begin_inset Tabular
27041 <lyxtabular version="3" rows="13" columns="3">
27042 <features booktabs="true" islongtable="true" longtabularalignment="center">
27043 <column alignment="center" valignment="middle" width="16col%">
27044 <column alignment="center" valignment="middle" width="40col%">
27045 <column alignment="center" valignment="middle" width="35col%">
27046 <row endhead="true">
27047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27048 \begin_inset Text
27049
27050 \begin_layout Plain Layout
27051 Name
27052 \end_layout
27053
27054 \end_inset
27055 </cell>
27056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27057 \begin_inset Text
27058
27059 \begin_layout Plain Layout
27060 Description
27061 \end_layout
27062
27063 \end_inset
27064 </cell>
27065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27066 \begin_inset Text
27067
27068 \begin_layout Plain Layout
27069 Annotation
27070 \end_layout
27071
27072 \end_inset
27073 </cell>
27074 </row>
27075 <row>
27076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27077 \begin_inset Text
27078
27079 \begin_layout Plain Layout
27080 CDlabel
27081 \end_layout
27082
27083 \end_inset
27084 </cell>
27085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27086 \begin_inset Text
27087
27088 \begin_layout Plain Layout
27089 Circle with circular hole (in the size of a CD/DVD)
27090 \end_layout
27091
27092 \end_inset
27093 </cell>
27094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27095 \begin_inset Text
27096
27097 \begin_layout Plain Layout
27098 Cannot be scaled, take care there is not too much text
27099 \end_layout
27100
27101 \end_inset
27102 </cell>
27103 </row>
27104 <row>
27105 <cell alignment="center" valignment="top" topline="true" usebox="none">
27106 \begin_inset Text
27107
27108 \begin_layout Plain Layout
27109 Circle
27110 \end_layout
27111
27112 \end_inset
27113 </cell>
27114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27115 \begin_inset Text
27116
27117 \begin_layout Plain Layout
27118 Circle
27119 \end_layout
27120
27121 \end_inset
27122 </cell>
27123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27124 \begin_inset Text
27125
27126 \begin_layout Plain Layout
27127 Fragile, calculation might fail
27128 \end_layout
27129
27130 \end_inset
27131 </cell>
27132 </row>
27133 <row>
27134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27135 \begin_inset Text
27136
27137 \begin_layout Plain Layout
27138 Diamond
27139 \end_layout
27140
27141 \end_inset
27142 </cell>
27143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27144 \begin_inset Text
27145
27146 \begin_layout Plain Layout
27147 Rhomboid (symbolizing a 
27148 \begin_inset Quotes eld
27149 \end_inset
27150
27151 diamond
27152 \begin_inset Quotes erd
27153 \end_inset
27154
27155 )
27156 \end_layout
27157
27158 \end_inset
27159 </cell>
27160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27161 \begin_inset Text
27162
27163 \begin_layout Plain Layout
27164 -
27165 \end_layout
27166
27167 \end_inset
27168 </cell>
27169 </row>
27170 <row>
27171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27172 \begin_inset Text
27173
27174 \begin_layout Plain Layout
27175 Heart
27176 \end_layout
27177
27178 \end_inset
27179 </cell>
27180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27181 \begin_inset Text
27182
27183 \begin_layout Plain Layout
27184 Heart-like shape
27185 \end_layout
27186
27187 \end_inset
27188 </cell>
27189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27190 \begin_inset Text
27191
27192 \begin_layout Plain Layout
27193 -
27194 \end_layout
27195
27196 \end_inset
27197 </cell>
27198 </row>
27199 <row>
27200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27201 \begin_inset Text
27202
27203 \begin_layout Plain Layout
27204 Hexagon
27205 \end_layout
27206
27207 \end_inset
27208 </cell>
27209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27210 \begin_inset Text
27211
27212 \begin_layout Plain Layout
27213 Hexagon
27214 \end_layout
27215
27216 \end_inset
27217 </cell>
27218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27219 \begin_inset Text
27220
27221 \begin_layout Plain Layout
27222 -
27223 \end_layout
27224
27225 \end_inset
27226 </cell>
27227 </row>
27228 <row>
27229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27230 \begin_inset Text
27231
27232 \begin_layout Plain Layout
27233 Nut
27234 \end_layout
27235
27236 \end_inset
27237 </cell>
27238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27239 \begin_inset Text
27240
27241 \begin_layout Plain Layout
27242 Nut for bolt (hexagon with circular hole)
27243 \end_layout
27244
27245 \end_inset
27246 </cell>
27247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27248 \begin_inset Text
27249
27250 \begin_layout Plain Layout
27251 -
27252 \end_layout
27253
27254 \end_inset
27255 </cell>
27256 </row>
27257 <row>
27258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27259 \begin_inset Text
27260
27261 \begin_layout Plain Layout
27262 Square
27263 \end_layout
27264
27265 \end_inset
27266 </cell>
27267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27268 \begin_inset Text
27269
27270 \begin_layout Plain Layout
27271 Square
27272 \end_layout
27273
27274 \end_inset
27275 </cell>
27276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27277 \begin_inset Text
27278
27279 \begin_layout Plain Layout
27280 -
27281 \end_layout
27282
27283 \end_inset
27284 </cell>
27285 </row>
27286 <row>
27287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27288 \begin_inset Text
27289
27290 \begin_layout Plain Layout
27291 Star
27292 \end_layout
27293
27294 \end_inset
27295 </cell>
27296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27297 \begin_inset Text
27298
27299 \begin_layout Plain Layout
27300 Five-point star
27301 \end_layout
27302
27303 \end_inset
27304 </cell>
27305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27306 \begin_inset Text
27307
27308 \begin_layout Plain Layout
27309 -
27310 \end_layout
27311
27312 \end_inset
27313 </cell>
27314 </row>
27315 <row>
27316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27317 \begin_inset Text
27318
27319 \begin_layout Plain Layout
27320 Candle
27321 \end_layout
27322
27323 \end_inset
27324 </cell>
27325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27326 \begin_inset Text
27327
27328 \begin_layout Plain Layout
27329 Burning candle
27330 \end_layout
27331
27332 \end_inset
27333 </cell>
27334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27335 \begin_inset Text
27336
27337 \begin_layout Plain Layout
27338 -
27339 \end_layout
27340
27341 \end_inset
27342 </cell>
27343 </row>
27344 <row>
27345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27346 \begin_inset Text
27347
27348 \begin_layout Plain Layout
27349 Drop down/up
27350 \end_layout
27351
27352 \end_inset
27353 </cell>
27354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27355 \begin_inset Text
27356
27357 \begin_layout Plain Layout
27358 Normal/reversed rain drop
27359 \end_layout
27360
27361 \end_inset
27362 </cell>
27363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27364 \begin_inset Text
27365
27366 \begin_layout Plain Layout
27367 Fragile, calculation might fail
27368 \end_layout
27369
27370 \end_inset
27371 </cell>
27372 </row>
27373 <row>
27374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27375 \begin_inset Text
27376
27377 \begin_layout Plain Layout
27378 \SpecialChar TeX
27379
27380 \end_layout
27381
27382 \end_inset
27383 </cell>
27384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27385 \begin_inset Text
27386
27387 \begin_layout Plain Layout
27388 The \SpecialChar TeX
27389  logo
27390 \end_layout
27391
27392 \end_inset
27393 </cell>
27394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27395 \begin_inset Text
27396
27397 \begin_layout Plain Layout
27398 -
27399 \end_layout
27400
27401 \end_inset
27402 </cell>
27403 </row>
27404 <row>
27405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27406 \begin_inset Text
27407
27408 \begin_layout Plain Layout
27409 Triangle up/down/
27410 \begin_inset Newline newline
27411 \end_inset
27412
27413 left/right
27414 \end_layout
27415
27416 \end_inset
27417 </cell>
27418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27419 \begin_inset Text
27420
27421 \begin_layout Plain Layout
27422 Triangles in different orientations
27423 \end_layout
27424
27425 \end_inset
27426 </cell>
27427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27428 \begin_inset Text
27429
27430 \begin_layout Plain Layout
27431 -
27432 \end_layout
27433
27434 \end_inset
27435 </cell>
27436 </row>
27437 </lyxtabular>
27438
27439 \end_inset
27440
27441
27442 \end_layout
27443
27444 \begin_layout Standard
27445 To use a shape for your paragraph, simply select it in \SpecialChar LyX
27446 's pull-down box
27447  for environments in the toolbar.
27448 \end_layout
27449
27450 \begin_layout Standard
27451 \begin_inset Newpage newpage
27452 \end_inset
27453
27454
27455 \end_layout
27456
27457 \begin_layout Standard
27458 Here is an example paragraph in the shape of a nut:
27459 \end_layout
27460
27461 \begin_layout Standard
27462 \begin_inset VSpace bigskip
27463 \end_inset
27464
27465
27466 \end_layout
27467
27468 \begin_layout Nut
27469
27470 \lang latin
27471 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27472  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27473  voluptua.
27474  At vero eos et accusam et justo duo dolores et ea rebum.
27475  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27476  sit amet.
27477  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27478  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27479  voluptua.
27480 \end_layout
27481
27482 \begin_layout Standard
27483 \begin_inset VSpace bigskip
27484 \end_inset
27485
27486
27487 \end_layout
27488
27489 \begin_layout Standard
27490 \begin_inset Note Greyedout
27491 status open
27492
27493 \begin_layout Plain Layout
27494
27495 \series bold
27496 Note
27497 \series default
27498 : shapepar paragraphs cannot run over a page break.
27499 \end_layout
27500
27501 \end_inset
27502
27503
27504 \end_layout
27505
27506 \begin_layout Standard
27507 \begin_inset VSpace bigskip
27508 \end_inset
27509
27510
27511 \end_layout
27512
27513 \begin_layout Standard
27514
27515 \series bold
27516 shapepar
27517 \series default
27518  takes care that the shape will always be preserved, no matter how much
27519  text is in the paragraph.
27520  Therefore the paragraph size changes with the amount of contained text.
27521  This can lead to paragraph sizes exceeding the page margins.
27522  To demonstrate the size scaling, here is the same example paragraph but
27523  with twice as much text:
27524 \end_layout
27525
27526 \begin_layout Standard
27527 \begin_inset Newpage newpage
27528 \end_inset
27529
27530
27531 \end_layout
27532
27533 \begin_layout Nut
27534
27535 \lang latin
27536 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27537  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27538  voluptua.
27539  At vero eos et accusam et justo duo dolores et ea rebum.
27540  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27541  sit amet.
27542  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27543  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27544  voluptua.
27545  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27546  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27547  voluptua.
27548  At vero eos et accusam et justo duo dolores et ea rebum.
27549  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27550  sit amet.
27551  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27552  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27553  voluptua.
27554 \end_layout
27555
27556 \begin_layout Standard
27557 \begin_inset VSpace bigskip
27558 \end_inset
27559
27560
27561 \end_layout
27562
27563 \begin_layout Standard
27564 An exception is the shape 
27565 \family sans
27566 CDlabel
27567 \family default
27568 .
27569  It cannot be scaled because it must fit the size of a CD/DVD.
27570  Therefore the amount of text that fits into the shape is limited.
27571 \begin_inset Newline newline
27572 \end_inset
27573
27574 The 
27575 \family sans
27576 drop
27577 \family default
27578  shapes and the 
27579 \family sans
27580 circle
27581 \family default
27582  shape are fragile, meaning that the calculation of their size can fail,
27583  depending on the amount of text.
27584  You will then get the \SpecialChar LaTeX
27585  error 
27586 \begin_inset Quotes eld
27587 \end_inset
27588
27589 Arithmetic overflow
27590 \begin_inset Quotes erd
27591 \end_inset
27592
27593 .
27594  In this case one can try to remove or add some text; if nothing works one
27595  has to use another shape.
27596 \end_layout
27597
27598 \begin_layout Standard
27599 \begin_inset VSpace bigskip
27600 \end_inset
27601
27602
27603 \end_layout
27604
27605 \begin_layout Standard
27606 For shapes with tips you will maybe see that \SpecialChar LaTeX
27607 's hyphenation routine fails
27608  for text in the tips.
27609  Therefore it is often necessary to add hyphenation points 
27610 \family sans
27611 (
27612 \begin_inset Info
27613 type  "shortcut"
27614 arg   "specialchar-insert hyphenation"
27615 \end_inset
27616
27617
27618 \family default
27619 ) to the corresponding text parts.
27620 \end_layout
27621
27622 \begin_layout Standard
27623 \begin_inset VSpace bigskip
27624 \end_inset
27625
27626
27627 \end_layout
27628
27629 \begin_layout Standard
27630 Shapepar paragraphs are either always centered or placed on the page so
27631  that their left border touches the left page margin.
27632  You can therefore not use the paragraph dialog to align such paragraphs.
27633  A solution is to put the paragraph into a minipage or parbox and align
27634  the box.
27635  The problem is hereby to find the right width for the box.
27636  Because if it is too wide and you center the box, the paragraph is not
27637  centered too because it sticks at the left side of the box.
27638  So you might have to play a bit with the width until it fits.
27639  Here are two heart-shaped paragraphs, the first one is not aligned, the
27640  second one is right-aligned:
27641 \end_layout
27642
27643 \begin_layout Standard
27644 \begin_inset Newpage newpage
27645 \end_inset
27646
27647
27648 \end_layout
27649
27650 \begin_layout Heart
27651 \noindent
27652
27653 \lang latin
27654 Lo\SpecialChar softhyphen
27655 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27656  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27657  voluptua.
27658  At vero eos et accusam et justo duo dolores et ea rebum.
27659  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27660  sit amet.
27661 \end_layout
27662
27663 \begin_layout Standard
27664 \begin_inset VSpace bigskip
27665 \end_inset
27666
27667
27668 \end_layout
27669
27670 \begin_layout Standard
27671 \noindent
27672 \align right
27673 \begin_inset Box Frameless
27674 position "t"
27675 hor_pos "c"
27676 has_inner_box 1
27677 inner_pos "t"
27678 use_parbox 1
27679 use_makebox 0
27680 width "42col%"
27681 special "none"
27682 height "1in"
27683 height_special "totalheight"
27684 thickness "0.4pt"
27685 separation "3pt"
27686 shadowsize "4pt"
27687 framecolor "black"
27688 backgroundcolor "none"
27689 status open
27690
27691 \begin_layout Heart
27692 \noindent
27693
27694 \lang latin
27695 Lo\SpecialChar softhyphen
27696 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27697  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27698  voluptua.
27699  At vero eos et accusam et justo duo dolores et ea rebum.
27700  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27701  sit amet.
27702 \end_layout
27703
27704 \end_inset
27705
27706
27707 \end_layout
27708
27709 \begin_layout Subsection
27710 Custom shapes
27711 \end_layout
27712
27713 \begin_layout Standard
27714 You can define any shape you want.
27715  Doing this manually is a lot of work because every coordinate must be specified.
27716  But there is a way to let the computer calculate the coordinates:
27717 \end_layout
27718
27719 \begin_layout Enumerate
27720 Install the program 
27721 \begin_inset CommandInset href
27722 LatexCommand href
27723 name "Jpgfdraw"
27724 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
27725 literal "false"
27726
27727 \end_inset
27728
27729 .
27730 \end_layout
27731
27732 \begin_layout Enumerate
27733 In 
27734 \family sans
27735 Jpgfdraw
27736 \family default
27737  go to the menu 
27738 \family sans
27739 TeX/LaTeX\SpecialChar menuseparator
27740 Settings\SpecialChar menuseparator
27741 Set Normal Size
27742 \family default
27743  and select the font size you are using in your document.
27744  For example this document uses the size 12
27745 \begin_inset space \thinspace{}
27746 \end_inset
27747
27748 pt.
27749 \end_layout
27750
27751 \begin_layout Enumerate
27752 Draw a shape.
27753 \end_layout
27754
27755 \begin_layout Enumerate
27756 Use the menu 
27757 \family sans
27758 TeX/LaTeX\SpecialChar menuseparator
27759 Shapepar
27760 \family default
27761  to export the shape to coordinates.
27762  In the appearing dialog use either the outline of your shape for the coordinate
27763 s or the path itself.
27764 \begin_inset Foot
27765 status collapsed
27766
27767 \begin_layout Plain Layout
27768 For more information see 
27769 \begin_inset CommandInset href
27770 LatexCommand href
27771 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27772 literal "false"
27773
27774 \end_inset
27775
27776
27777 \end_layout
27778
27779 \end_inset
27780
27781
27782 \end_layout
27783
27784 \begin_layout Standard
27785 The coordinates are written into a \SpecialChar TeX
27786  file.
27787  To use it for your \SpecialChar LyX
27788  document
27789 \end_layout
27790
27791 \begin_layout Enumerate
27792 Place the cursor before the first character of your paragraph (or into a
27793  new empty one).
27794 \end_layout
27795
27796 \begin_layout Enumerate
27797 Open in \SpecialChar LyX
27798  the menu 
27799 \family sans
27800 Insert\SpecialChar menuseparator
27801 File\SpecialChar menuseparator
27802 Child
27803 \begin_inset space ~
27804 \end_inset
27805
27806 Document
27807 \family default
27808 , select the file and use 
27809 \family sans
27810 Input
27811 \family default
27812  as 
27813 \family sans
27814 Include Type.
27815 \end_layout
27816
27817 \begin_layout Standard
27818 \begin_inset VSpace defskip
27819 \end_inset
27820
27821
27822 \end_layout
27823
27824 \begin_layout Standard
27825 \begin_inset Note Greyedout
27826 status open
27827
27828 \begin_layout Plain Layout
27829
27830 \series bold
27831 Note
27832 \series default
27833 : The changed shape only applies to the current paragraph; everything is
27834  reset to normal for the next paragraph.
27835  Therefore the shape definition file must be input into every paragraph
27836  with the desired shape.
27837 \end_layout
27838
27839 \end_inset
27840
27841
27842 \end_layout
27843
27844 \begin_layout Standard
27845 \begin_inset VSpace bigskip
27846 \end_inset
27847
27848
27849 \end_layout
27850
27851 \begin_layout Standard
27852 Here is an example:
27853 \end_layout
27854
27855 \begin_layout Standard
27856 \begin_inset VSpace bigskip
27857 \end_inset
27858
27859
27860 \end_layout
27861
27862 \begin_layout Standard
27863 \begin_inset CommandInset include
27864 LatexCommand input
27865 filename "SpecialParagraphShape.tex"
27866
27867 \end_inset
27868
27869
27870 \lang latin
27871 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27872  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27873  voluptua.
27874  At vero eos et accusam et justo duo dolores et ea rebum.
27875  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27876  sit amet.
27877  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27878  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27879  voluptua.
27880 \end_layout
27881
27882 \begin_layout Standard
27883 \begin_inset VSpace bigskip
27884 \end_inset
27885
27886
27887 \end_layout
27888
27889 \begin_layout Standard
27890
27891 \series bold
27892 A tip:
27893 \series default
27894  to draw complexer shapes in 
27895 \family sans
27896 Jpgfdraw
27897 \family default
27898  you can draw the shape in a program of your choice and import the resulting
27899  image to 
27900 \family sans
27901 Jpgfdraw
27902 \family default
27903 .
27904  Then you only need to draw a line or spline along the outline of the image.
27905 \end_layout
27906
27907 \begin_layout Standard
27908 \begin_inset VSpace bigskip
27909 \end_inset
27910
27911
27912 \end_layout
27913
27914 \begin_layout Standard
27915 The module 
27916 \family sans
27917 Custom paragraph shapes
27918 \family default
27919  also provides the two commands 
27920 \family sans
27921 shapepar
27922 \family default
27923  and 
27924 \family sans
27925 Shapepar
27926 \family default
27927  which can be used to define custom shapes coordinate by coordinate.
27928 \begin_inset Foot
27929 status collapsed
27930
27931 \begin_layout Plain Layout
27932 These commands are internally used for all shapes described here.
27933 \end_layout
27934
27935 \end_inset
27936
27937  For information how these styles are used and about further customization
27938  possibilities, have a look at the documentation of the package 
27939 \series bold
27940 shapepar
27941 \series default
27942
27943 \begin_inset CommandInset citation
27944 LatexCommand cite
27945 key "shapepar"
27946 literal "true"
27947
27948 \end_inset
27949
27950 .
27951 \end_layout
27952
27953 \begin_layout Bibliography
27954 \begin_inset CommandInset bibitem
27955 LatexCommand bibitem
27956 key "multicol"
27957 literal "true"
27958
27959 \end_inset
27960
27961 Documentation of the \SpecialChar LaTeX
27962 -package 
27963 \begin_inset CommandInset href
27964 LatexCommand href
27965 name "multicol"
27966 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
27967 literal "false"
27968
27969 \end_inset
27970
27971
27972 \end_layout
27973
27974 \begin_layout Bibliography
27975 \begin_inset CommandInset bibitem
27976 LatexCommand bibitem
27977 key "shapepar"
27978 literal "true"
27979
27980 \end_inset
27981
27982 Documentation of the \SpecialChar LaTeX
27983 -package 
27984 \begin_inset CommandInset href
27985 LatexCommand href
27986 name "shapepar"
27987 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
27988 literal "false"
27989
27990 \end_inset
27991
27992
27993 \end_layout
27994
27995 \end_body
27996 \end_document