]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
UserGuide.lyx: load math packages automatically
[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
21013 \change_inserted -712698321 1501253107
21014 ,
21015 \change_unchanged
21016  so we advise using SVN instead.
21017  A good place to start learning Subversion is
21018 \change_inserted -712698321 1501253115
21019  the
21020 \change_unchanged
21021  SVN Book
21022 \begin_inset Foot
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 \begin_inset CommandInset href
21027 LatexCommand href
21028 target "http://svnbook.red-bean.com/"
21029 literal "false"
21030
21031 \end_inset
21032
21033
21034 \end_layout
21035
21036 \end_inset
21037
21038 .
21039  In the case of RCS you should read 
21040 \begin_inset Quotes eld
21041 \end_inset
21042
21043 rcsintro
21044 \begin_inset Quotes erd
21045 \end_inset
21046
21047  (a man file, read it with 
21048 \family typewriter
21049 man rcsintro
21050 \family default
21051 ).
21052  This file describes all the basic features of RCS.
21053  You should especially notice the comment about a RCS directory, and the
21054  notion of a master RCS file (the file ending in 
21055 \family typewriter
21056 ,v
21057 \family default
21058 ).
21059 \end_layout
21060
21061 \begin_layout Standard
21062 Before you begin to use the version control features in \SpecialChar LyX
21063 , you should be
21064  familiar with RCS/CVS/SVN/GIT usage.
21065  The implementation in \SpecialChar LyX
21066  assumes a recent version of the GNU RCS or CVS/SVN
21067  package — no guarantees are made for older versions.
21068  Most of the log messages are not currently displayed after operations —
21069  you can check them in the Messages pane if 
21070 \change_inserted -712698321 1501253142
21071 you are 
21072 \change_unchanged
21073 unsure.
21074  Regular users of version control will appreciate 
21075 \change_inserted -712698321 1501253149
21076 the 
21077 \change_unchanged
21078 VC toolbar, which can be enabled via 
21079 \family sans
21080 View\SpecialChar menuseparator
21081 Toolbars\SpecialChar menuseparator
21082 Version
21083 \begin_inset space ~
21084 \end_inset
21085
21086 Control
21087 \family default
21088 .
21089 \end_layout
21090
21091 \begin_layout Standard
21092 For introducing your own external commands consult 
21093 \change_deleted -712698321 1501253161
21094 vc-command
21095 \change_inserted -712698321 1501253161
21096
21097 \begin_inset Flex Code
21098 status collapsed
21099
21100 \begin_layout Plain Layout
21101
21102 \change_inserted -712698321 1501253161
21103 vc-command
21104 \change_unchanged
21105
21106 \end_layout
21107
21108 \end_inset
21109
21110
21111 \change_unchanged
21112  in the manual 
21113 \change_deleted -712698321 1501253168
21114 of 
21115 \change_unchanged
21116
21117 \emph on
21118 \SpecialChar LyX
21119  
21120 \change_inserted -712698321 1501253174
21121 F
21122 \change_deleted -712698321 1501253173
21123 f
21124 \change_unchanged
21125 unctions
21126 \emph default
21127 .
21128 \end_layout
21129
21130 \begin_layout Standard
21131 It is strongly recommended to store documents in uncompressed format if
21132  using version control (uncheck 
21133 \family sans
21134 Document\SpecialChar menuseparator
21135 Compressed
21136 \family default
21137  if it is checked): Uncompressed LyX documents are text files and therefore
21138  for merging two different versions by version control systems.
21139  Compressed LyX documents are binary files, which cannot be merged by version
21140  control systems.
21141 \end_layout
21142
21143 \begin_layout Subsection
21144 RCS commands in \SpecialChar LyX
21145
21146 \end_layout
21147
21148 \begin_layout Standard
21149 The following sections describe the RCS commands supported by \SpecialChar LyX
21150 .
21151  You can find them in the 
21152 \family sans
21153 File\SpecialChar menuseparator
21154 Version
21155 \begin_inset space ~
21156 \end_inset
21157
21158 Control
21159 \family default
21160  submenu.
21161  \SpecialChar LyX
21162  was tested against RCS 5.7/5.8.
21163 \end_layout
21164
21165 \begin_layout Subsubsection
21166
21167 \family sans
21168 Register
21169 \end_layout
21170
21171 \begin_layout Standard
21172 If your document is not under revision control, this is the only item shown
21173  in the menu.
21174  And if it is under revision control, the 
21175 \family sans
21176 Register
21177 \family default
21178  item is not visible.
21179  
21180 \end_layout
21181
21182 \begin_layout Standard
21183 This command registers your document with RCS (unless you are under the
21184  directory managed by CVS)\SpecialChar endofsentence
21185  You are asked interactively to supply an initial
21186  description of the document.
21187  The document is now set in Read-Only mode and you have to 
21188 \family sans
21189 Check
21190 \begin_inset space ~
21191 \end_inset
21192
21193 Out
21194 \begin_inset space ~
21195 \end_inset
21196
21197 For
21198 \begin_inset space ~
21199 \end_inset
21200
21201 Edit
21202 \family default
21203 , before making any changes to it.
21204  A document under revision control has a 
21205 \begin_inset Quotes eld
21206 \end_inset
21207
21208 [RCS:<version> <locker>]
21209 \begin_inset Quotes erd
21210 \end_inset
21211
21212  item tagged to the filename in the minibuffer.
21213 \end_layout
21214
21215 \begin_layout Standard
21216 RCS command that is run:
21217 \change_inserted -712698321 1501253193
21218
21219 \end_layout
21220
21221 \begin_layout LyX-Code
21222
21223 \change_deleted -712698321 1501253193
21224  
21225 \change_unchanged
21226
21227 \family typewriter
21228 ci -q -u -i -t-"<initial description>" <file-name>
21229 \end_layout
21230
21231 \begin_layout Standard
21232 Read 
21233 \family typewriter
21234 man ci
21235 \family default
21236  to understand the switches.
21237  
21238 \end_layout
21239
21240 \begin_layout Subsubsection
21241
21242 \family sans
21243 Check In Changes
21244 \end_layout
21245
21246 \begin_layout Standard
21247 When you are finished editing a file, you check in your changes.
21248  When you do this, you are asked for a description of the changes.
21249  This is stored in the history log.
21250  The version number is bumped, your changes are applied to the master RCS
21251  file, the document is unlocked and set to Read-Only mode.
21252 \end_layout
21253
21254 \begin_layout Itemize
21255 RCS command: 
21256 \family typewriter
21257 ci -q -u -m"<description>" <file-name>
21258 \end_layout
21259
21260 \begin_layout Subsubsection
21261
21262 \family sans
21263 Check Out For Edit
21264 \end_layout
21265
21266 \begin_layout Standard
21267 By doing this you lock the document so that only you can edit it.
21268  This will also make the document Read-Write only for you.
21269  You will usually continue editing for a while and when you are finished
21270  you check in your changes.
21271  The status line is changed to reflect that you have locked the file.
21272 \end_layout
21273
21274 \begin_layout Itemize
21275 RCS command: 
21276 \family typewriter
21277 co -q -l <file-name>
21278 \end_layout
21279
21280 \begin_layout Subsubsection
21281
21282 \family sans
21283 Revert To Repository Version
21284 \end_layout
21285
21286 \begin_layout Standard
21287 This will discard all changes made to the document since the last check
21288  in.
21289  You get a warning before changes are discarded.
21290 \end_layout
21291
21292 \begin_layout Itemize
21293 RCS command: 
21294 \family typewriter
21295 co -f -u<version> <file-name>
21296 \end_layout
21297
21298 \begin_layout Subsubsection
21299
21300 \family sans
21301 Copy
21302 \end_layout
21303
21304 \begin_layout Standard
21305 This will create a copy of the current document.
21306  Since RCS does not support copy operations natively, the version history
21307  is not preserved, and the copy is added as a new file.
21308  It requires a clean document without any changes since the last checkin.
21309  You are asked for a file name and a description of the copy operation.
21310  After that the copy is created, both locally and in the repository.
21311  If the parent directories of the copied and original document differ, all
21312  relative paths of included files of the copy are adjusted (like in 
21313 \family sans
21314 File\SpecialChar menuseparator
21315 Save As
21316 \family default
21317 \SpecialChar ldots
21318 ).
21319  Finally, the copy is loaded instead of the original document.
21320 \end_layout
21321
21322 \begin_layout Labeling
21323 \labelwidthstring 00.00.0000
21324 RCS
21325 \begin_inset space ~
21326 \end_inset
21327
21328 commands: 
21329 \begin_inset space ~
21330 \end_inset
21331
21332
21333 \begin_inset Newline newline
21334 \end_inset
21335
21336 Copy 
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 \change_deleted -712698321 1501253225
21343
21344 \family typewriter
21345 \begin_inset Quotes eld
21346 \end_inset
21347
21348
21349 \change_inserted -712698321 1501253225
21350
21351 \begin_inset Quotes qld
21352 \end_inset
21353
21354
21355 \change_unchanged
21356 <file-name>
21357 \change_deleted -712698321 1501253231
21358
21359 \begin_inset Quotes erd
21360 \end_inset
21361
21362
21363 \change_inserted -712698321 1501253231
21364
21365 \begin_inset Quotes qld
21366 \end_inset
21367
21368
21369 \change_unchanged
21370
21371 \end_layout
21372
21373 \end_inset
21374
21375  to 
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380
21381 \change_deleted -712698321 1501253233
21382
21383 \family typewriter
21384 \begin_inset Quotes eld
21385 \end_inset
21386
21387
21388 \change_inserted -712698321 1501253233
21389
21390 \begin_inset Quotes qld
21391 \end_inset
21392
21393
21394 \change_unchanged
21395 <new-file-name>
21396 \change_deleted -712698321 1501253234
21397
21398 \begin_inset Quotes erd
21399 \end_inset
21400
21401
21402 \change_inserted -712698321 1501253235
21403
21404 \begin_inset Quotes qld
21405 \end_inset
21406
21407
21408 \change_unchanged
21409
21410 \end_layout
21411
21412 \end_inset
21413
21414
21415 \begin_inset Newline newline
21416 \end_inset
21417
21418
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 ci -q -u 
21424 \family typewriter
21425 -i 
21426 \change_deleted -712698321 1501253236
21427
21428 \begin_inset Quotes eld
21429 \end_inset
21430
21431
21432 \change_inserted -712698321 1501253236
21433
21434 \begin_inset Quotes qld
21435 \end_inset
21436
21437
21438 \change_unchanged
21439 <new-file-name>
21440 \change_deleted -712698321 1501253239
21441
21442 \begin_inset Quotes erd
21443 \end_inset
21444
21445
21446 \change_inserted -712698321 1501253239
21447
21448 \begin_inset Quotes qld
21449 \end_inset
21450
21451
21452 \change_unchanged
21453
21454 \end_layout
21455
21456 \end_inset
21457
21458
21459 \end_layout
21460
21461 \begin_layout Subsubsection
21462
21463 \family sans
21464 Undo Last Checkin
21465 \end_layout
21466
21467 \begin_layout Standard
21468 This makes as if the last check in never happened.
21469  No changes are made to the document loaded into \SpecialChar LyX
21470 , but the last version
21471  is removed from the master RCS file.
21472 \end_layout
21473
21474 \begin_layout Itemize
21475 RCS command: 
21476 \family typewriter
21477 rcs -o<version> <file-name>
21478 \end_layout
21479
21480 \begin_layout Subsubsection
21481
21482 \family sans
21483 Show History
21484 \end_layout
21485
21486 \begin_layout Standard
21487 This shows the complete history of the RCS document.
21488  The output of 
21489 \family typewriter
21490 rlog <file-name>
21491 \family default
21492  is shown in a browser.
21493  See 
21494 \family typewriter
21495 man rlog
21496 \family default
21497  for more info.
21498 \end_layout
21499
21500 \begin_layout Subsubsection
21501 Revision info
21502 \end_layout
21503
21504 \begin_layout Standard
21505 \SpecialChar LyX
21506  supports RCS version number, author name, date and time of last commit.
21507  All those are extracted from 
21508 \family typewriter
21509 rlog -r <file-name>
21510 \family default
21511 .
21512  See 
21513 \begin_inset CommandInset ref
21514 LatexCommand ref
21515 reference "subsec:VCS-Revision-Information"
21516
21517 \end_inset
21518
21519  for details.
21520 \end_layout
21521
21522 \begin_layout Subsection
21523 CVS commands in \SpecialChar LyX
21524
21525 \end_layout
21526
21527 \begin_layout Standard
21528 A subset of CVS operations is supported by \SpecialChar LyX
21529 .
21530  You can find the commands in the 
21531 \family sans
21532 File\SpecialChar menuseparator
21533 Version
21534 \begin_inset space ~
21535 \end_inset
21536
21537 Control
21538 \family default
21539  submenu.
21540  The version control system SVN is more powerful, so please use it instead
21541  of CVS if possible.
21542 \end_layout
21543
21544 \begin_layout Subsubsection
21545
21546 \family sans
21547 General CVS usage
21548 \end_layout
21549
21550 \begin_layout Standard
21551 If you start from scratch with CVS you have to create your repository and
21552  checkout the working copy with external tools.
21553  If you're using a client-server setup you may need to login before doing
21554  the first repository checkout.
21555 \end_layout
21556
21557 \begin_layout Standard
21558 If your documents are under revision control and others are using the same
21559  repository problems arise when different changes to the same document at
21560  the same location happen.
21561  Standard CVS repositories don't operate with a file locking mechanism.
21562  This may be surprising, but conflicts only occur if people disagree on
21563  the proper content of the same part of a document.
21564  So, if co-workers are used to communicate regularly, these conflicts occur
21565  rarely.
21566  If they don't communicate they have a fundamental problem anyway.
21567  Nevertheless some people like to work with so called 
21568 \begin_inset Quotes eld
21569 \end_inset
21570
21571 reserved checkouts
21572 \begin_inset Quotes erd
21573 \end_inset
21574
21575 .
21576  If they do so the working copy of all files is readonly when checked out
21577  first and the user starts editing after using a special command to make
21578  the working copy writable.
21579  When the changes are checked in the working copy returns to readonly state.
21580  With \SpecialChar LyX
21581  one has to edit the 
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586 .cvsrc
21587 \end_layout
21588
21589 \end_inset
21590
21591  file and add the line 
21592 \begin_inset Flex Code
21593 status collapsed
21594
21595 \begin_layout Plain Layout
21596 cvs -r
21597 \end_layout
21598
21599 \end_inset
21600
21601  to work with reserved checkouts.
21602  The benefit is the possibility to see who is using a writable copy of some
21603  document.
21604  It's not guaranteed only one user makes a copy writable.
21605 \end_layout
21606
21607 \begin_layout Standard
21608 \SpecialChar LyX
21609  tries to guess if you're using reserved or non-reserved checkouts.
21610  If your working copy is readonly or it is writable and an additional copy
21611  of your document exists in the CVS/Base sub-directory a reserved otherwise
21612  a non-reserved checkout is assumed.
21613  When a reserved checkout is detected you have to use 
21614 \begin_inset Flex Noun
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618 Check Out
21619 \end_layout
21620
21621 \end_inset
21622
21623  to make your working copy writable if it's readonly.
21624  After doing so the 
21625 \begin_inset Flex Noun
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 Check In
21630 \end_layout
21631
21632 \end_inset
21633
21634  operation is possible and that makes your working copy readonly again after
21635  transferring your changes to the repository.
21636 \end_layout
21637
21638 \begin_layout Standard
21639 More information about CVS can be found here 
21640 \begin_inset Flex URL
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644
21645 http://www.nongnu.org/cvs
21646 \end_layout
21647
21648 \end_inset
21649
21650  and here 
21651 \begin_inset Flex URL
21652 status collapsed
21653
21654 \begin_layout Plain Layout
21655
21656 http://ximbiot.com/cvs
21657 \end_layout
21658
21659 \end_inset
21660
21661 .
21662 \end_layout
21663
21664 \begin_layout Standard
21665 Read 
21666 \family typewriter
21667 man cvs
21668 \family default
21669  to understand the sub-commands and the switches mentioned below.
21670 \end_layout
21671
21672 \begin_layout Subsubsection
21673
21674 \family sans
21675 Register
21676 \end_layout
21677
21678 \begin_layout Standard
21679 If your document is not under revision control, this is the only item shown
21680  in the menu.
21681  And if it is under revision control, the 
21682 \family sans
21683 Register
21684 \family default
21685  item is not visible.
21686  
21687 \end_layout
21688
21689 \begin_layout Standard
21690 This command registers in CVS your document 
21691 \begin_inset Flex Strong
21692 status collapsed
21693
21694 \begin_layout Plain Layout
21695
21696 \emph on
21697 only
21698 \end_layout
21699
21700 \end_inset
21701
21702  in the case you have already the documents directory under CVS control
21703  (in particular 
21704 \family typewriter
21705 CVS/Entries
21706 \family default
21707  file exists).
21708  This means you have to create or checkout the archive by yourself using
21709  external tools.
21710  (In case you forget that step \SpecialChar LyX
21711  registers the document with RCS.)
21712 \end_layout
21713
21714 \begin_layout Standard
21715 Then you are asked interactively to supply an initial description of the
21716  document.
21717  Don't forget that registered file is not yet checked in.
21718 \end_layout
21719
21720 \begin_layout Standard
21721 CVS command that is run: 
21722 \family typewriter
21723 cvs -q add -m"<entered message>" "<file-name>"
21724 \end_layout
21725
21726 \begin_layout Standard
21727 The term 
21728 \family typewriter
21729 "<file-name>"
21730 \family default
21731  above and for all other CVS commands is an abbreviation for 
21732 \begin_inset Quotes eld
21733 \end_inset
21734
21735 change the current working directory to file location and use the file name
21736  without path component as argument
21737 \begin_inset Quotes erd
21738 \end_inset
21739
21740 .
21741 \end_layout
21742
21743 \begin_layout Subsubsection
21744
21745 \family sans
21746 Check In Changes
21747 \end_layout
21748
21749 \begin_layout Standard
21750 When you are finished editing a file, you commit your changes.
21751  When you do this and you had changed the document, you are asked for a
21752  description of the changes.
21753  After that changes are written to the repository.
21754  In case you didn't change the document and a reserved checkout is detected
21755  the reservation made on 
21756 \begin_inset Flex Noun
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 Check Out
21761 \end_layout
21762
21763 \end_inset
21764
21765  is undone.
21766 \end_layout
21767
21768 \begin_layout Labeling
21769 \labelwidthstring 00.00.0000
21770 CVS
21771 \begin_inset space ~
21772 \end_inset
21773
21774 command: 
21775 \begin_inset space ~
21776 \end_inset
21777
21778
21779 \begin_inset Newline newline
21780 \end_inset
21781
21782
21783 \begin_inset Flex Code
21784 status collapsed
21785
21786 \begin_layout Plain Layout
21787 cvs 
21788 \family typewriter
21789 -q commit -m"<description>" "<file-name>"
21790 \end_layout
21791
21792 \end_inset
21793
21794  or
21795 \begin_inset Newline newline
21796 \end_inset
21797
21798
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 cvs -q unedit 
21804 \family typewriter
21805 "<file-name>"
21806 \end_layout
21807
21808 \end_inset
21809
21810
21811 \end_layout
21812
21813 \begin_layout Subsubsection
21814
21815 \family sans
21816 Check Out Changes
21817 \end_layout
21818
21819 \begin_layout Standard
21820 When you are sharing a repository with others, you may have to incorporate
21821  their changes into your working copy.
21822 \end_layout
21823
21824 \begin_layout Standard
21825 CVS command: 
21826 \family typewriter
21827 cvs -q update "<file-name>"
21828 \end_layout
21829
21830 \begin_layout Standard
21831 If a readonly checkout is detected the working copy is made writable and
21832  reserved.
21833 \end_layout
21834
21835 \begin_layout Standard
21836 CVS command: 
21837 \family typewriter
21838 cvs -q edit "<file-name>"
21839 \end_layout
21840
21841 \begin_layout Subsubsection
21842
21843 \family sans
21844 Revert To Repository Version
21845 \end_layout
21846
21847 \begin_layout Standard
21848 This will discard all changes made to the document since the last check
21849  in.
21850  You get a warning before changes are discarded.
21851  Firstly the file is deleted, secondly CVS update command is run.
21852 \end_layout
21853
21854 \begin_layout Standard
21855 CVS command: 
21856 \family typewriter
21857 cvs -q update "<file-name>"
21858 \end_layout
21859
21860 \begin_layout Standard
21861 If a reserved checkout is detected and the working copy has no changes only
21862  the reservation is undone.
21863 \end_layout
21864
21865 \begin_layout Standard
21866 CVS command: 
21867 \family typewriter
21868 cvs -q unedit "<file-name>"
21869 \end_layout
21870
21871 \begin_layout Subsubsection
21872
21873 \family sans
21874 Copy
21875 \end_layout
21876
21877 \begin_layout Standard
21878 This will create a copy of the current document.
21879  Since CVS does not support copy operations natively, the version history
21880  is not preserved, and the copy is added as a new file.
21881  It requires a clean document without any changes since the last checkin.
21882  You are asked for a file name and a description of the copy operation.
21883  After that the copy is created, both locally and in the repository.
21884  If the parent directories of the copied and original document differ, all
21885  relative paths of included files of the copy are adjusted (like in 
21886 \family sans
21887 File\SpecialChar menuseparator
21888 Save As
21889 \family default
21890 \SpecialChar ldots
21891 ).
21892  Finally, the copy is loaded instead of the original document.
21893 \end_layout
21894
21895 \begin_layout Labeling
21896 \labelwidthstring 00.00.0000
21897 CVS
21898 \begin_inset space ~
21899 \end_inset
21900
21901 commands: 
21902 \begin_inset space ~
21903 \end_inset
21904
21905
21906 \begin_inset Newline newline
21907 \end_inset
21908
21909 Copy 
21910 \begin_inset Flex Code
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914
21915 \change_deleted -712698321 1501254263
21916
21917 \family typewriter
21918 \begin_inset Quotes eld
21919 \end_inset
21920
21921
21922 \change_inserted -712698321 1501254263
21923
21924 \lang ngerman
21925 "
21926 \change_unchanged
21927
21928 \lang english
21929 <file-name>
21930 \change_deleted -712698321 1501254266
21931
21932 \begin_inset Quotes erd
21933 \end_inset
21934
21935
21936 \change_inserted -712698321 1501254266
21937
21938 \lang ngerman
21939 "
21940 \change_unchanged
21941
21942 \end_layout
21943
21944 \end_inset
21945
21946  to 
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951
21952 \change_deleted -712698321 1501254267
21953
21954 \family typewriter
21955 \begin_inset Quotes eld
21956 \end_inset
21957
21958
21959 \change_inserted -712698321 1501254267
21960
21961 \lang ngerman
21962 "
21963 \change_unchanged
21964
21965 \lang english
21966 <new-file-name>
21967 \change_deleted -712698321 1501254269
21968
21969 \begin_inset Quotes erd
21970 \end_inset
21971
21972
21973 \change_inserted -712698321 1501254269
21974
21975 \lang ngerman
21976 "
21977 \change_unchanged
21978
21979 \end_layout
21980
21981 \end_inset
21982
21983
21984 \begin_inset Newline newline
21985 \end_inset
21986
21987
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 cvs -q add 
21993 \change_deleted -712698321 1501254271
21994
21995 \family typewriter
21996
21997 \begin_inset Quotes eld
21998 \end_inset
21999
22000
22001 \change_inserted -712698321 1501254271
22002
22003 \lang ngerman
22004 "
22005 \change_unchanged
22006
22007 \lang english
22008 <new-file-name>
22009 \change_deleted -712698321 1501254272
22010
22011 \begin_inset Quotes erd
22012 \end_inset
22013
22014
22015 \change_inserted -712698321 1501254272
22016
22017 \lang ngerman
22018 "
22019 \change_unchanged
22020
22021 \end_layout
22022
22023 \end_inset
22024
22025
22026 \end_layout
22027
22028 \begin_layout Subsubsection
22029
22030 \family sans
22031 Rename
22032 \end_layout
22033
22034 \begin_layout Standard
22035 This will rename the current document.
22036  Since CVS does not support rename operations natively, the version history
22037  is not preserved, the renamed document is added as a new file, and the
22038  original document is deleted.
22039  It requires a clean document without any changes since the last checkin.
22040  You are asked for a file name and a description of the rename operation.
22041  After that the document is renamed, both locally and in the repository.
22042  If the parent directories of the new and old file names differ, all relative
22043  paths of included files are adjusted (like in 
22044 \family sans
22045 File\SpecialChar menuseparator
22046 Save As
22047 \family default
22048 \SpecialChar ldots
22049 ).
22050  Finally, the document is reloaded using the new name.
22051 \end_layout
22052
22053 \begin_layout Labeling
22054 \labelwidthstring 00.00.0000
22055 CVS
22056 \begin_inset space ~
22057 \end_inset
22058
22059 commands: 
22060 \begin_inset space ~
22061 \end_inset
22062
22063
22064 \begin_inset Newline newline
22065 \end_inset
22066
22067 Rename 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072
22073 \change_deleted -712698321 1501254274
22074
22075 \family typewriter
22076 \begin_inset Quotes eld
22077 \end_inset
22078
22079
22080 \change_inserted -712698321 1501254274
22081
22082 \lang ngerman
22083 "
22084 \change_unchanged
22085
22086 \lang english
22087 <file-name>
22088 \change_deleted -712698321 1501254277
22089
22090 \begin_inset Quotes erd
22091 \end_inset
22092
22093
22094 \change_inserted -712698321 1501254277
22095
22096 \lang ngerman
22097 "
22098 \change_unchanged
22099
22100 \end_layout
22101
22102 \end_inset
22103
22104  to 
22105 \begin_inset Flex Code
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109
22110 \change_deleted -712698321 1501254278
22111
22112 \family typewriter
22113 \begin_inset Quotes eld
22114 \end_inset
22115
22116
22117 \change_inserted -712698321 1501254278
22118
22119 \lang ngerman
22120 "
22121 \change_unchanged
22122
22123 \lang english
22124 <new-file-name>
22125 \change_deleted -712698321 1501254279
22126
22127 \begin_inset Quotes erd
22128 \end_inset
22129
22130
22131 \change_inserted -712698321 1501254279
22132
22133 \lang ngerman
22134 "
22135 \change_unchanged
22136
22137 \end_layout
22138
22139 \end_inset
22140
22141
22142 \begin_inset Newline newline
22143 \end_inset
22144
22145
22146 \begin_inset Flex Code
22147 status collapsed
22148
22149 \begin_layout Plain Layout
22150 cvs -q add 
22151 \change_deleted -712698321 1501254281
22152
22153 \family typewriter
22154
22155 \begin_inset Quotes eld
22156 \end_inset
22157
22158
22159 \change_inserted -712698321 1501254281
22160
22161 \lang ngerman
22162 "
22163 \change_unchanged
22164
22165 \lang english
22166 <new-file-name>
22167 \change_deleted -712698321 1501254282
22168
22169 \begin_inset Quotes erd
22170 \end_inset
22171
22172
22173 \change_inserted -712698321 1501254282
22174
22175 \lang ngerman
22176 "
22177 \change_unchanged
22178
22179 \end_layout
22180
22181 \end_inset
22182
22183
22184 \begin_inset Newline newline
22185 \end_inset
22186
22187
22188 \begin_inset Flex Code
22189 status collapsed
22190
22191 \begin_layout Plain Layout
22192 cvs -q remove 
22193 \change_deleted -712698321 1501254285
22194
22195 \family typewriter
22196
22197 \begin_inset Quotes eld
22198 \end_inset
22199
22200
22201 \change_inserted -712698321 1501254285
22202
22203 \lang ngerman
22204 "
22205 \change_unchanged
22206
22207 \lang english
22208 <file-name>
22209 \change_deleted -712698321 1501254287
22210
22211 \begin_inset Quotes erd
22212 \end_inset
22213
22214
22215 \change_inserted -712698321 1501254287
22216
22217 \lang ngerman
22218 "
22219 \change_unchanged
22220
22221 \end_layout
22222
22223 \end_inset
22224
22225
22226 \end_layout
22227
22228 \begin_layout Subsubsection
22229 Update of the local directory checkout from repository
22230 \end_layout
22231
22232 \begin_layout Standard
22233 Once your documents gets more complex, containing sub-documents and pictures,
22234  including external 
22235 \begin_inset Flex Code
22236 status collapsed
22237
22238 \begin_layout Plain Layout
22239 .tex
22240 \end_layout
22241
22242 \end_inset
22243
22244  files and so on using version control becomes more complicated.
22245  \SpecialChar LyX
22246  supports updating the whole tree in which resides the document.
22247  This become especially useful once you cooperate with people which neither
22248  have detailed knowledge about CVS usage nor they have ambition to commit
22249  additional material to the repository.
22250  You have to organize the files structure so that all external files are
22251  in the same directory or subdirectories of the document.
22252  It's good practice anyway to store multipart documents in an extra directory.
22253 \end_layout
22254
22255 \begin_layout Standard
22256 The 
22257 \begin_inset Flex Code
22258 status collapsed
22259
22260 \begin_layout Plain Layout
22261 Update local directory from repository
22262 \end_layout
22263
22264 \end_inset
22265
22266  command updates the whole directory.
22267  If local changes are detected user is warned before update starts.
22268  In case of merge conflicts both versions of the conflicting document parts
22269  are placed in the final document.
22270  You have to review and correct the result of the merge.
22271  You'll find the conflicts enclosed in pairs of 
22272 \begin_inset Flex Code
22273 status collapsed
22274
22275 \begin_layout Plain Layout
22276 <<<<<<<
22277 \end_layout
22278
22279 \end_inset
22280
22281  and 
22282 \begin_inset Flex Code
22283 status collapsed
22284
22285 \begin_layout Plain Layout
22286 >>>>>>>
22287 \end_layout
22288
22289 \end_inset
22290
22291  separated by 
22292 \begin_inset Flex Code
22293 status collapsed
22294
22295 \begin_layout Plain Layout
22296 =======
22297 \end_layout
22298
22299 \end_inset
22300
22301 .
22302  The first part is your version as before the update operation with the
22303  document name prepended.
22304  The second one is the repository version with the version number after
22305  the sequence of 
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310 >
22311 \end_layout
22312
22313 \end_inset
22314
22315  signs.
22316 \end_layout
22317
22318 \begin_layout Labeling
22319 \labelwidthstring 00.00.0000
22320 CVS
22321 \begin_inset space ~
22322 \end_inset
22323
22324 commands: 
22325 \begin_inset space ~
22326 \end_inset
22327
22328
22329 \begin_inset Newline newline
22330 \end_inset
22331
22332
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337 cd $path; cvs diff 
22338 \family typewriter
22339 "."
22340 \end_layout
22341
22342 \end_inset
22343
22344  (Ask if changes are detected.)
22345 \begin_inset Newline newline
22346 \end_inset
22347
22348
22349 \begin_inset Flex Code
22350 status collapsed
22351
22352 \begin_layout Plain Layout
22353 cd $path; cvs -q update 
22354 \family typewriter
22355 "."
22356 \end_layout
22357
22358 \end_inset
22359
22360
22361 \end_layout
22362
22363 \begin_layout Standard
22364 where 
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369 $path
22370 \end_layout
22371
22372 \end_inset
22373
22374  stands for the path to the document.
22375 \end_layout
22376
22377 \begin_layout Subsubsection
22378
22379 \family sans
22380 Show History
22381 \end_layout
22382
22383 \begin_layout Standard
22384 This shows the complete history of the CVS document.
22385  The output of 
22386 \family typewriter
22387 cvs log "<file-name>"
22388 \family default
22389  is shown in a browser.
22390 \end_layout
22391
22392 \begin_layout Subsubsection
22393 Revision info
22394 \end_layout
22395
22396 \begin_layout Standard
22397 \SpecialChar LyX
22398  supports CVS version number, author name, date and time of last commit.
22399  All those are extracted from 
22400 \family typewriter
22401 cvs log -r <file-name>
22402 \family default
22403 .
22404  See 
22405 \begin_inset CommandInset ref
22406 LatexCommand ref
22407 reference "subsec:VCS-Revision-Information"
22408
22409 \end_inset
22410
22411  for details.
22412 \end_layout
22413
22414 \begin_layout Subsection
22415 SVN commands in \SpecialChar LyX
22416
22417 \end_layout
22418
22419 \begin_layout Standard
22420 SVN is now partially supported by \SpecialChar LyX
22421 .
22422  You can find the commands in the 
22423 \family sans
22424 File\SpecialChar menuseparator
22425 Version
22426 \begin_inset space ~
22427 \end_inset
22428
22429 Control
22430 \family default
22431  submenu.
22432  Please note that if you use password protected access to repository via
22433  ssh, you will be asked in terminal window.
22434  \SpecialChar LyX
22435  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22436 \begin_inset Foot
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 Most of the commands will work with 1.4 too, see 
22441 \begin_inset CommandInset ref
22442 LatexCommand ref
22443 reference "subsec:SVN-Repo-Update"
22444
22445 \end_inset
22446
22447 .
22448  There seems to be currently unresolved permissions problem under SVN 1.8
22449  with reverting changes when file is locked.
22450 \end_layout
22451
22452 \end_inset
22453
22454
22455 \end_layout
22456
22457 \begin_layout Subsubsection
22458
22459 \family sans
22460 Register
22461 \end_layout
22462
22463 \begin_layout Standard
22464 If your document is not under revision control, this is the only item shown
22465  in the menu.
22466  And if it is under revision control, the 
22467 \family sans
22468 Register
22469 \family default
22470  item is not visible.
22471 \end_layout
22472
22473 \begin_layout Standard
22474 This command registers in SVN your document ONLY in case you have already
22475  the documents directory under SVN control (in particular 
22476 \family typewriter
22477 .svn/entries
22478 \family default
22479  file exists).
22480  This means you have to checkout the archive by yourself.
22481 \end_layout
22482
22483 \begin_layout Standard
22484 Then you are asked interactively to supply an initial description of the
22485  document.
22486  Don't forget that registered file is not yet commited.
22487 \end_layout
22488
22489 \begin_layout Standard
22490 SVN command that is run: 
22491 \family typewriter
22492 svn add -q 
22493 \change_deleted -712698321 1501253346
22494
22495 \begin_inset Quotes eld
22496 \end_inset
22497
22498
22499 \change_inserted -712698321 1501253346
22500
22501 \begin_inset Quotes qld
22502 \end_inset
22503
22504
22505 \change_unchanged
22506 <file-name>
22507 \change_deleted -712698321 1501253348
22508
22509 \begin_inset Quotes erd
22510 \end_inset
22511
22512
22513 \change_inserted -712698321 1501253348
22514
22515 \begin_inset Quotes qld
22516 \end_inset
22517
22518
22519 \change_unchanged
22520
22521 \end_layout
22522
22523 \begin_layout Standard
22524 Read 
22525 \family typewriter
22526 man svn
22527 \family default
22528  to understand the switches.
22529 \end_layout
22530
22531 \begin_layout Subsubsection
22532
22533 \family sans
22534 Check In Changes
22535 \end_layout
22536
22537 \begin_layout Standard
22538 When you are finished editing a file, you commit your changes.
22539  When you do this, you are asked for a description of the changes.
22540  After that changes are commited.
22541 \end_layout
22542
22543 \begin_layout Standard
22544 SVN command:
22545 \begin_inset Foot
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549 In case locking is not enabled.
22550  See Section 
22551 \begin_inset CommandInset ref
22552 LatexCommand ref
22553 reference "subsec:SVN-File-Locking"
22554
22555 \end_inset
22556
22557 .
22558 \end_layout
22559
22560 \end_inset
22561
22562  
22563 \family typewriter
22564 svn commit -q -m"<description>" <file-name>
22565 \end_layout
22566
22567 \begin_layout Subsubsection
22568
22569 \family sans
22570 Check Out For Edit
22571 \end_layout
22572
22573 \begin_layout Standard
22574 Updates the changes of this file from the repository.
22575  Be sure you understand SVN merging and conflicts resolving before using
22576  this function, because all conflicts has to be resolved manually by you!
22577 \end_layout
22578
22579 \begin_layout Standard
22580 SVN command:
22581 \begin_inset Foot
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 Ditto.
22586 \end_layout
22587
22588 \end_inset
22589
22590  
22591 \family typewriter
22592 svn update --non-interactive 
22593 \change_deleted -712698321 1501253354
22594
22595 \begin_inset Quotes eld
22596 \end_inset
22597
22598
22599 \change_inserted -712698321 1501253354
22600
22601 \begin_inset Quotes qld
22602 \end_inset
22603
22604
22605 \change_unchanged
22606 <file-name>
22607 \change_deleted -712698321 1501253356
22608
22609 \begin_inset Quotes erd
22610 \end_inset
22611
22612
22613 \change_inserted -712698321 1501253356
22614
22615 \begin_inset Quotes qld
22616 \end_inset
22617
22618
22619 \change_unchanged
22620
22621 \end_layout
22622
22623 \begin_layout Subsubsection
22624
22625 \family sans
22626 Revert To Repository Version
22627 \end_layout
22628
22629 \begin_layout Standard
22630 This will discard all changes made to the document since the last check
22631  in.
22632  You get a warning before changes are discarded.
22633 \end_layout
22634
22635 \begin_layout Standard
22636 SVN command: 
22637 \family typewriter
22638 svn revert -q 
22639 \change_deleted -712698321 1501253358
22640
22641 \begin_inset Quotes eld
22642 \end_inset
22643
22644
22645 \change_inserted -712698321 1501253358
22646
22647 \begin_inset Quotes qld
22648 \end_inset
22649
22650
22651 \change_unchanged
22652 <file-name>
22653 \change_deleted -712698321 1501253360
22654
22655 \begin_inset Quotes erd
22656 \end_inset
22657
22658
22659 \change_inserted -712698321 1501253360
22660
22661 \begin_inset Quotes qld
22662 \end_inset
22663
22664
22665 \change_unchanged
22666
22667 \end_layout
22668
22669 \begin_layout Subsubsection
22670
22671 \family sans
22672 Copy
22673 \end_layout
22674
22675 \begin_layout Standard
22676 This will create a copy of the current document including the version history.
22677  It requires a clean document without any changes since the last checkin.
22678  You are asked for a file name and a description of the copy operation.
22679  After that the copy is created, both locally and in the repository.
22680  If the parent directories of the copied and original document differ, all
22681  relative paths of included files of the copy are adjusted (like in 
22682 \family sans
22683 File\SpecialChar menuseparator
22684 Save As
22685 \family default
22686 \SpecialChar ldots
22687 ).
22688  Finally, the copy is loaded instead of the original document.
22689 \end_layout
22690
22691 \begin_layout Labeling
22692 \labelwidthstring 00.00.0000
22693 SVN
22694 \begin_inset space ~
22695 \end_inset
22696
22697 commands: 
22698 \begin_inset space ~
22699 \end_inset
22700
22701
22702 \begin_inset Newline newline
22703 \end_inset
22704
22705
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 svn copy -q 
22711 \change_deleted -712698321 1501253363
22712
22713 \family typewriter
22714
22715 \begin_inset Quotes eld
22716 \end_inset
22717
22718
22719 \change_inserted -712698321 1501253363
22720
22721 \begin_inset Quotes qld
22722 \end_inset
22723
22724
22725 \change_unchanged
22726 <file-name>
22727 \change_deleted -712698321 1501253365
22728
22729 \begin_inset Quotes erd
22730 \end_inset
22731
22732
22733 \change_inserted -712698321 1501253365
22734
22735 \begin_inset Quotes qld
22736 \end_inset
22737
22738
22739 \change_unchanged
22740  
22741 \change_deleted -712698321 1501253366
22742
22743 \begin_inset Quotes eld
22744 \end_inset
22745
22746
22747 \change_inserted -712698321 1501253366
22748
22749 \begin_inset Quotes qld
22750 \end_inset
22751
22752
22753 \change_unchanged
22754 <new-file-name>
22755 \change_deleted -712698321 1501253368
22756
22757 \begin_inset Quotes erd
22758 \end_inset
22759
22760
22761 \change_inserted -712698321 1501253368
22762
22763 \begin_inset Quotes qld
22764 \end_inset
22765
22766
22767 \change_unchanged
22768
22769 \end_layout
22770
22771 \end_inset
22772
22773
22774 \begin_inset Newline newline
22775 \end_inset
22776
22777
22778 \begin_inset Flex Code
22779 status collapsed
22780
22781 \begin_layout Plain Layout
22782 svn commit
22783 \end_layout
22784
22785 \end_inset
22786
22787
22788 \end_layout
22789
22790 \begin_layout Subsubsection
22791
22792 \family sans
22793 Rename
22794 \end_layout
22795
22796 \begin_layout Standard
22797 This will rename the current document including the version history.
22798  It requires a clean document without any changes since the last checkin.
22799  You are asked for a file name and a description of the rename operation.
22800  After that the document is renamed, both locally and in the repository.
22801  If the parent directories of the new and old file names differ, all relative
22802  paths of included files are adjusted (like in 
22803 \family sans
22804 File\SpecialChar menuseparator
22805 Save As
22806 \family default
22807 \SpecialChar ldots
22808 ).
22809  Finally, the document is reloaded using the new name.
22810 \end_layout
22811
22812 \begin_layout Labeling
22813 \labelwidthstring 00.00.0000
22814 SVN
22815 \begin_inset space ~
22816 \end_inset
22817
22818 commands: 
22819 \begin_inset space ~
22820 \end_inset
22821
22822
22823 \begin_inset Newline newline
22824 \end_inset
22825
22826
22827 \begin_inset Flex Code
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 svn move -q 
22832 \change_deleted -712698321 1501253375
22833
22834 \family typewriter
22835
22836 \begin_inset Quotes eld
22837 \end_inset
22838
22839
22840 \change_inserted -712698321 1501253375
22841
22842 \begin_inset Quotes qld
22843 \end_inset
22844
22845
22846 \change_unchanged
22847 <file-name>
22848 \change_deleted -712698321 1501253377
22849
22850 \begin_inset Quotes erd
22851 \end_inset
22852
22853
22854 \change_inserted -712698321 1501253377
22855
22856 \begin_inset Quotes qld
22857 \end_inset
22858
22859
22860 \change_unchanged
22861  
22862 \change_deleted -712698321 1501253378
22863
22864 \begin_inset Quotes eld
22865 \end_inset
22866
22867
22868 \change_inserted -712698321 1501253378
22869
22870 \begin_inset Quotes qld
22871 \end_inset
22872
22873
22874 \change_unchanged
22875 <new-file-name>
22876 \change_deleted -712698321 1501253380
22877
22878 \begin_inset Quotes erd
22879 \end_inset
22880
22881
22882 \change_inserted -712698321 1501253380
22883
22884 \begin_inset Quotes qld
22885 \end_inset
22886
22887
22888 \change_unchanged
22889
22890 \end_layout
22891
22892 \end_inset
22893
22894
22895 \begin_inset Newline newline
22896 \end_inset
22897
22898
22899 \begin_inset Flex Code
22900 status collapsed
22901
22902 \begin_layout Plain Layout
22903 svn commit
22904 \end_layout
22905
22906 \end_inset
22907
22908
22909 \end_layout
22910
22911 \begin_layout Subsubsection
22912 \begin_inset CommandInset label
22913 LatexCommand label
22914 name "subsec:SVN-Repo-Update"
22915
22916 \end_inset
22917
22918 Update of the local directory checkout from repository
22919 \begin_inset Foot
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 Note that this command will work only with subversion 
22924 \begin_inset Formula $\geqq1.5$
22925 \end_inset
22926
22927
22928 \end_layout
22929
22930 \end_inset
22931
22932
22933 \end_layout
22934
22935 \begin_layout Standard
22936 All the commands above have one shortco
22937 \change_deleted -712698321 1501253385
22938 m
22939 \change_unchanged
22940 ming 
22941 \change_inserted -712698321 1501253389
22942
22943 \change_deleted -712698321 1501253389
22944 -
22945 \change_unchanged
22946  they deal with the current document only.
22947  Once your document contains pictures, includes external 
22948 \begin_inset Flex Code
22949 status collapsed
22950
22951 \begin_layout Plain Layout
22952 .tex
22953 \end_layout
22954
22955 \end_inset
22956
22957  files and so on administration becomes more complicated.
22958  \SpecialChar LyX
22959  now supports updating the whole tree in which resides the document
22960 \begin_inset Foot
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 One need to organize the files structure so that all external files are
22965  in the same directory or subdirectories of the document.
22966  
22967 \end_layout
22968
22969 \end_inset
22970
22971 .
22972  This become especially useful once you cooperate with people which neither
22973  know about subversion management nor they have ambition to commit additional
22974  material to the repository.
22975  
22976 \end_layout
22977
22978 \begin_layout Standard
22979 \begin_inset Flex Code
22980 status collapsed
22981
22982 \begin_layout Plain Layout
22983 Update local directory from repository
22984 \end_layout
22985
22986 \end_inset
22987
22988  command updates the whole directory and in case of merge conflicts local
22989  version of the files are left, so no unintended data loss occurs.
22990  If local changes are detected user is warned before update starts.
22991 \end_layout
22992
22993 \begin_layout Labeling
22994 \labelwidthstring 00.00.0000
22995 SVN
22996 \begin_inset space ~
22997 \end_inset
22998
22999 commands: 
23000 \begin_inset space ~
23001 \end_inset
23002
23003
23004 \begin_inset Newline newline
23005 \end_inset
23006
23007
23008 \begin_inset Flex Code
23009 status collapsed
23010
23011 \begin_layout Plain Layout
23012 svn diff $path
23013 \end_layout
23014
23015 \end_inset
23016
23017  (Ask if changes are detected.)
23018 \begin_inset Newline newline
23019 \end_inset
23020
23021
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 svn update –accept mine-full $path
23027 \end_layout
23028
23029 \end_inset
23030
23031
23032 \end_layout
23033
23034 \begin_layout Standard
23035 where 
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040 $path
23041 \end_layout
23042
23043 \end_inset
23044
23045  stands for the path to the document.
23046 \end_layout
23047
23048 \begin_layout Subsubsection
23049
23050 \family sans
23051 Show History
23052 \end_layout
23053
23054 \begin_layout Standard
23055 This shows the complete history of the SVN document.
23056  The output of 
23057 \family typewriter
23058 svn log 
23059 \change_deleted -712698321 1501253404
23060
23061 \begin_inset Quotes eld
23062 \end_inset
23063
23064
23065 \change_inserted -712698321 1501253404
23066
23067 \begin_inset Quotes qld
23068 \end_inset
23069
23070
23071 \change_unchanged
23072 <file-name>
23073 \change_deleted -712698321 1501253406
23074
23075 \begin_inset Quotes erd
23076 \end_inset
23077
23078
23079 \change_inserted -712698321 1501253406
23080
23081 \begin_inset Quotes qld
23082 \end_inset
23083
23084
23085 \change_unchanged
23086
23087 \family default
23088  is shown in a browser.
23089 \end_layout
23090
23091 \begin_layout Subsubsection
23092 File Locking
23093 \begin_inset CommandInset label
23094 LatexCommand label
23095 name "subsec:SVN-File-Locking"
23096
23097 \end_inset
23098
23099
23100 \end_layout
23101
23102 \begin_layout Standard
23103 The file exchange through various revision control systems brings the problem
23104  of merge conflicts in case two different users try to edit the same (parts
23105  of) document.
23106  When such a conflict happens it needs manual resolving and one reasonable
23107  alternative is to provide some kind of locking mechanism, which guarantees
23108  that only one user is allowed to edit file at the given time.
23109 \end_layout
23110
23111 \begin_layout Standard
23112 SVN has two such mechanisms to provide mutual exclusivity for file access
23113  
23114 \change_inserted -712698321 1501253410
23115
23116 \change_deleted -712698321 1501253410
23117 -
23118 \change_unchanged
23119  locks and automatic setting of write permissions (see sec.
23120  
23121 \begin_inset CommandInset ref
23122 LatexCommand ref
23123 reference "subsec:Automatical-Locking-Property"
23124
23125 \end_inset
23126
23127 ) based on 
23128 \begin_inset Flex Code
23129 status collapsed
23130
23131 \begin_layout Plain Layout
23132 svn:needs-lock
23133 \end_layout
23134
23135 \end_inset
23136
23137  file svn property
23138 \begin_inset Foot
23139 status collapsed
23140
23141 \begin_layout Plain Layout
23142
23143 \change_deleted -712698321 1501253418
23144 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23145 \change_inserted -712698321 1501253418
23146
23147 \begin_inset Flex URL
23148 status open
23149
23150 \begin_layout Plain Layout
23151
23152 \change_inserted -712698321 1501253418
23153
23154 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23155 \change_unchanged
23156
23157 \end_layout
23158
23159 \end_inset
23160
23161
23162 \change_unchanged
23163
23164 \end_layout
23165
23166 \end_inset
23167
23168 .
23169  If this property is detected for a given document \SpecialChar LyX
23170  starts to use SVN locks
23171  for document editing automatically and the whole check-in/out mechanism
23172  switches to the same regimen as for RCS.
23173  This in particular means there are two different modes of file use in \SpecialChar LyX
23174 :
23175 \end_layout
23176
23177 \begin_layout Itemize
23178 Unlocked state.
23179  The loaded file is in the read-only mode.
23180  For editing on needs to check-out.
23181  
23182 \emph on
23183 Check-out
23184 \emph default
23185  consists of updating from the repository and gaining write lock.
23186  If the lock is not possible to obtain, we remain in unlocked state.
23187 \end_layout
23188
23189 \begin_layout Itemize
23190 Locked state.
23191  The loaded file is in the 
23192 \change_deleted -712698321 1501253433
23193 '
23194 \change_inserted -712698321 1501253433
23195
23196 \begin_inset Quotes els
23197 \end_inset
23198
23199
23200 \change_unchanged
23201 normal
23202 \change_deleted -712698321 1501253435
23203 '
23204 \change_inserted -712698321 1501253435
23205
23206 \begin_inset Quotes ers
23207 \end_inset
23208
23209
23210 \change_unchanged
23211  edit mode.
23212  No other user is allowed to edit the file.
23213  
23214 \emph on
23215 Check-in
23216 \emph default
23217  consists of commiting changes and releasing write-lock.
23218  If no changes have been made to the document, no commit will be produced
23219 \begin_inset Foot
23220 status collapsed
23221
23222 \begin_layout Plain Layout
23223 Don't be puzzled by the fact that you will be asked for commit message anyway.
23224 \end_layout
23225
23226 \end_inset
23227
23228  and only the write-lock will be released.
23229 \end_layout
23230
23231 \begin_layout Standard
23232 SVN commands:
23233 \end_layout
23234
23235 \begin_layout Labeling
23236 \labelwidthstring 00.00.0000
23237 Check-in:
23238 \family typewriter
23239  svn commit -q -m"<description>" "<file-name>"
23240 \begin_inset Newline newline
23241 \end_inset
23242
23243 svn unlock "<file-name>"
23244 \end_layout
23245
23246 \begin_layout Labeling
23247 \labelwidthstring 00.00.0000
23248 Check-out: 
23249 \family typewriter
23250 svn update "<file-name>"
23251 \begin_inset Newline newline
23252 \end_inset
23253
23254 svn lock "<file-name>"
23255 \end_layout
23256
23257 \begin_layout Subsubsection
23258
23259 \family typewriter
23260 \begin_inset CommandInset label
23261 LatexCommand label
23262 name "subsec:Automatical-Locking-Property"
23263
23264 \end_inset
23265
23266
23267 \family default
23268 Automatic Locking Property
23269 \end_layout
23270
23271 \begin_layout Standard
23272 The above mentioned automatic setting of write permissions of the .lyx file
23273  can be set through
23274 \family sans
23275  File\SpecialChar menuseparator
23276 Version
23277 \begin_inset space ~
23278 \end_inset
23279
23280 Control\SpecialChar menuseparator
23281
23282 \change_deleted -712698321 1501244235
23283 Toggle
23284 \change_inserted -712698321 1501244235
23285 Use
23286 \change_unchanged
23287  
23288 \change_deleted -712698321 1501244236
23289 l
23290 \change_inserted -712698321 1501244237
23291 L
23292 \change_unchanged
23293 ocking 
23294 \change_inserted -712698321 1501244242
23295 P
23296 \change_deleted -712698321 1501244242
23297 p
23298 \change_unchanged
23299 roperty
23300 \family default
23301 .
23302  This command is active only when the file is not locked on the svn server
23303  (i.e.
23304  you need to check-out before proceeding).
23305 \end_layout
23306
23307 \begin_layout Labeling
23308 \labelwidthstring 00.00.0000
23309 SVN
23310 \begin_inset space ~
23311 \end_inset
23312
23313 commands:
23314 \end_layout
23315
23316 \begin_layout Labeling
23317 \labelwidthstring 00.00.0000
23318 Set:
23319 \family typewriter
23320  svn propset svn:needs-lock ON "<file-name>"
23321 \end_layout
23322
23323 \begin_layout Labeling
23324 \labelwidthstring 00.00.0000
23325 Unset: 
23326 \family typewriter
23327 svn propdel svn:needs-lock "<file-name>"
23328 \end_layout
23329
23330 \begin_layout Subsubsection
23331 \begin_inset CommandInset label
23332 LatexCommand label
23333 name "subsec:VCS-Revision-Information"
23334
23335 \end_inset
23336
23337 Revision Information in Documents
23338 \end_layout
23339
23340 \begin_layout Standard
23341 There are more possibilities how to activate revision information in our
23342  document.
23343 \end_layout
23344
23345 \begin_layout Itemize
23346 \SpecialChar LyX
23347  supports directly:
23348 \end_layout
23349
23350 \begin_deeper
23351 \begin_layout Itemize
23352 tree revision information (
23353 \begin_inset Flex Code
23354 status collapsed
23355
23356 \begin_layout Plain Layout
23357 vcs-tree-revision
23358 \end_layout
23359
23360 \end_inset
23361
23362 ).
23363  The result is the output of the 
23364 \begin_inset Flex Code
23365 status collapsed
23366
23367 \begin_layout Plain Layout
23368 svnversion
23369 \end_layout
23370
23371 \end_inset
23372
23373  command, the following table gives you an idea, how to read the results.
23374 \end_layout
23375
23376 \begin_layout Standard
23377 \align center
23378 \begin_inset Tabular
23379 <lyxtabular version="3" rows="6" columns="2">
23380 <features tabularvalignment="middle">
23381 <column alignment="left" valignment="top">
23382 <column alignment="left" valignment="top">
23383 <row>
23384 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23385 \begin_inset Text
23386
23387 \begin_layout Plain Layout
23388
23389 \series bold
23390 Output
23391 \end_layout
23392
23393 \end_inset
23394 </cell>
23395 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23396 \begin_inset Text
23397
23398 \begin_layout Plain Layout
23399
23400 \series bold
23401 Meaning
23402 \end_layout
23403
23404 \end_inset
23405 </cell>
23406 </row>
23407 <row>
23408 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23409 \begin_inset Text
23410
23411 \begin_layout Plain Layout
23412 4123:4168
23413 \end_layout
23414
23415 \end_inset
23416 </cell>
23417 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23418 \begin_inset Text
23419
23420 \begin_layout Plain Layout
23421 mixed revision working copy
23422 \end_layout
23423
23424 \end_inset
23425 </cell>
23426 </row>
23427 <row>
23428 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23429 \begin_inset Text
23430
23431 \begin_layout Plain Layout
23432 4168M
23433 \end_layout
23434
23435 \end_inset
23436 </cell>
23437 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23438 \begin_inset Text
23439
23440 \begin_layout Plain Layout
23441 modified working copy
23442 \end_layout
23443
23444 \end_inset
23445 </cell>
23446 </row>
23447 <row>
23448 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23449 \begin_inset Text
23450
23451 \begin_layout Plain Layout
23452 4123S
23453 \end_layout
23454
23455 \end_inset
23456 </cell>
23457 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23458 \begin_inset Text
23459
23460 \begin_layout Plain Layout
23461 switched working copy
23462 \end_layout
23463
23464 \end_inset
23465 </cell>
23466 </row>
23467 <row>
23468 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23469 \begin_inset Text
23470
23471 \begin_layout Plain Layout
23472 4123P
23473 \end_layout
23474
23475 \end_inset
23476 </cell>
23477 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23478 \begin_inset Text
23479
23480 \begin_layout Plain Layout
23481 partial working copy, from a sparse checkout
23482 \end_layout
23483
23484 \end_inset
23485 </cell>
23486 </row>
23487 <row>
23488 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23489 \begin_inset Text
23490
23491 \begin_layout Plain Layout
23492 4123:4168MS
23493 \end_layout
23494
23495 \end_inset
23496 </cell>
23497 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23498 \begin_inset Text
23499
23500 \begin_layout Plain Layout
23501 mixed revision, modified, switched working copy
23502 \end_layout
23503
23504 \end_inset
23505 </cell>
23506 </row>
23507 </lyxtabular>
23508
23509 \end_inset
23510
23511
23512 \end_layout
23513
23514 \begin_layout Itemize
23515 file revision information.
23516  The result comes from parsing the output of 
23517 \begin_inset Flex Code
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521 svn
23522 \begin_inset space ~
23523 \end_inset
23524
23525 info
23526 \begin_inset space ~
23527 \end_inset
23528
23529 –xml
23530 \begin_inset space ~
23531 \end_inset
23532
23533 file.lyx
23534 \end_layout
23535
23536 \end_inset
23537
23538 .
23539  Supported flags are:
23540 \end_layout
23541
23542 \begin_deeper
23543 \begin_layout Itemize
23544 version number of the last commit (
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549 vcs-revision
23550 \end_layout
23551
23552 \end_inset
23553
23554 )
23555 \end_layout
23556
23557 \begin_layout Itemize
23558 author of the last commit (
23559 \begin_inset Flex Code
23560 status collapsed
23561
23562 \begin_layout Plain Layout
23563 vcs-author
23564 \end_layout
23565
23566 \end_inset
23567
23568 )
23569 \end_layout
23570
23571 \begin_layout Itemize
23572 date of the last commit (
23573 \begin_inset Flex Code
23574 status collapsed
23575
23576 \begin_layout Plain Layout
23577 vcs-date
23578 \end_layout
23579
23580 \end_inset
23581
23582 )
23583 \end_layout
23584
23585 \begin_layout Itemize
23586 time of the last commit (
23587 \begin_inset Flex Code
23588 status collapsed
23589
23590 \begin_layout Plain Layout
23591 vcs-time
23592 \end_layout
23593
23594 \end_inset
23595
23596 )
23597 \end_layout
23598
23599 \end_deeper
23600 \begin_layout Standard
23601 You can obtain this info via InsetInfo (e.g.
23602  
23603 \begin_inset Flex Code
23604 status collapsed
23605
23606 \begin_layout Plain Layout
23607 info-insert buffer vcs-date
23608 \end_layout
23609
23610 \end_inset
23611
23612 ).
23613  The information will be available only when you have the file stored under
23614  svn managment (i.e.
23615  the 
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 .svn
23621 \end_layout
23622
23623 \end_inset
23624
23625  directory is available with your document).
23626 \end_layout
23627
23628 \end_deeper
23629 \begin_layout Itemize
23630 Another—a hacking one—possibility is to use svn keywords
23631 \begin_inset Foot
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23636 \end_layout
23637
23638 \end_inset
23639
23640 .
23641  In short – you set file keywords property (e.g.
23642  
23643 \family sans
23644 svn propset svn:keywords 'Rev' file.lyx
23645 \family default
23646 ) and then paste keyword \SpecialChar TeX
23647  code
23648 \begin_inset Foot
23649 status collapsed
23650
23651 \begin_layout Plain Layout
23652 This is an easy way how to ensure that \SpecialChar LyX
23653  won't break the line in the middle
23654  of keyword tag.
23655 \end_layout
23656
23657 \end_inset
23658
23659  tag in your document (e.g.
23660  
23661 \change_deleted -712698321 1501253475
23662
23663 \begin_inset ERT
23664 status open
23665
23666 \begin_layout Plain Layout
23667
23668 $Rev$
23669 \end_layout
23670
23671 \end_inset
23672
23673
23674 \change_inserted -712698321 1501253480
23675
23676 \begin_inset Flex Code
23677 status collapsed
23678
23679 \begin_layout Plain Layout
23680
23681 \change_inserted -712698321 1501253480
23682 $Rev$
23683 \change_unchanged
23684
23685 \end_layout
23686
23687 \end_inset
23688
23689
23690 \change_unchanged
23691 ).
23692  This way svn client will automatically substitute revision number (e.g.
23693  
23694 \change_deleted -712698321 1501253467
23695
23696 \begin_inset ERT
23697 status open
23698
23699 \begin_layout Plain Layout
23700
23701 $Rev: 59 $
23702 \end_layout
23703
23704 \end_inset
23705
23706
23707 \change_inserted -712698321 1501253473
23708
23709 \begin_inset Flex Code
23710 status collapsed
23711
23712 \begin_layout Plain Layout
23713
23714 \change_inserted -712698321 1501253473
23715 $Rev: 59 $
23716 \change_unchanged
23717
23718 \end_layout
23719
23720 \end_inset
23721
23722
23723 \change_unchanged
23724 ) after each update and commit.
23725  There are more problems with this approach.
23726  Firstly, the '$' character is used in \SpecialChar TeX
23727  world for math equations, so any
23728  occurence of math formula 
23729 \begin_inset Formula $Rev$
23730 \end_inset
23731
23732  become 
23733 \begin_inset Formula $Rev:59$
23734 \end_inset
23735
23736  in your \SpecialChar LyX
23737  document.
23738  Similarly for other keywords like Id, Date, Author, etc.
23739  Secondly svn output is dependent on your locales, so its very easy that
23740  svn would produce some problematic strings once Date is used.
23741  Thirdly you get the whole 'Rev: 59' string in your document instead of
23742  the plain number.
23743  Until subversion implements user's custom keywords it will be hard to use
23744  this approach reliably or let \SpecialChar LyX
23745  to support it directly.
23746 \end_layout
23747
23748 \begin_layout Subsection
23749 SVN and Windows Environment
23750 \end_layout
23751
23752 \begin_layout Quote
23753 My inclination is to say that if the user cannot figure out the command
23754  line operations on their own fairly quickly, they would be well advised
23755  to use TortoiseSVN.
23756  —P.
23757  A.
23758  Rubin
23759 \end_layout
23760
23761 \begin_layout Subsubsection
23762 Preparation
23763 \end_layout
23764
23765 \begin_layout Standard
23766 In addition to installing \SpecialChar LyX
23767 , and having access to a Subversion repository,
23768  the user will need to install the Subversion client program.
23769  A Windows installer for the client program is available from 
23770 \begin_inset CommandInset href
23771 LatexCommand href
23772 name "CollabNet"
23773 target "http://www.collab.net/nonav/downloads/subversion/"
23774 literal "false"
23775
23776 \end_inset
23777
23778 .
23779  The user may also want to install 
23780 \begin_inset CommandInset href
23781 LatexCommand href
23782 name "TortoiseSVN"
23783 target "http://tortoisesvn.tigris.org/"
23784 literal "false"
23785
23786 \end_inset
23787
23788 , which integrates Subversion operations into the context (rightclick) menu
23789  of Windows Explorer.
23790  Operations done outside \SpecialChar LyX
23791  will typically be more convenient using the Explorer
23792  context menu.
23793  Note that TortoiseSVN is not a replacement for the client program, which
23794  is what \SpecialChar LyX
23795  itself will use.
23796 \end_layout
23797
23798 \begin_layout Subsubsection
23799 Bringing a document under Subversion control
23800 \end_layout
23801
23802 \begin_layout Standard
23803 Before a \SpecialChar LyX
23804  document can be brought under version control in Subversion, its
23805  parent directory needs to be under version control.
23806  If the document is being added to a project already in the repository,
23807  this is accomplished by checking the project out to the directory where
23808  the new document will be placed.
23809  If the project itself is not yet under version control (for instance, if
23810  this document starts a new project), the directory must be imported into
23811  the repository.
23812  This is done outside \SpecialChar LyX
23813 .
23814  Both import and checkout are easily accomplished from the Explorer context
23815  menu using TortoiseSVN, or alternatively can be done using the command
23816  line client at a DOS prompt.
23817  The procedure for importing the project using TortoiseSVN is described
23818  below, assuming an existing repository and a new project being started
23819  in 
23820 \family typewriter
23821 C:
23822 \backslash
23823 new project
23824 \family default
23825 .
23826  For information on using the Subversion client program, run 
23827 \family typewriter
23828 svn --help 
23829 \family default
23830 in a DOS shell.
23831 \end_layout
23832
23833 \begin_layout Enumerate
23834 Locate 
23835 \family typewriter
23836 C:
23837 \backslash
23838 new project 
23839 \family default
23840 in Windows Explorer, right click it, and select 
23841 \family sans
23842 TortoiseSVN\SpecialChar menuseparator
23843 Repo-browser
23844 \family default
23845 .
23846  If necessary, adjust the URL for the repository, then click OK.
23847 \end_layout
23848
23849 \begin_layout Enumerate
23850 Right click the level of the repository under which you want to place the
23851  new project folder (typically the top level) and click 
23852 \family sans
23853 Create folder
23854 \family default
23855  Supply a name for the project folder and click OK.
23856  Add a message for the log file if desired, then click OK again.
23857  The new project folder should appear in the repository.
23858  Finally, click OK again to exit the repository browser.
23859 \end_layout
23860
23861 \begin_layout Enumerate
23862 Once again right click 
23863 \family typewriter
23864 C:
23865 \backslash
23866 new project
23867 \family default
23868 , this time selecting SVN Checkout\SpecialChar ldots
23869  Select the URL of the project folder
23870  you just created in the repository, and set the checkout directory to 
23871 \family typewriter
23872 C:
23873 \backslash
23874 new project.
23875
23876 \family default
23877  Click OK.
23878  You will be warned about a non-empty folder; click OK to proceed.
23879  You should now have a 
23880 \family typewriter
23881 .svn
23882 \family default
23883  directory under 
23884 \family typewriter
23885 C:
23886 \backslash
23887 new project.
23888 \end_layout
23889
23890 \begin_layout Enumerate
23891 Create or open your document in \SpecialChar LyX
23892  and click 
23893 \family sans
23894 File\SpecialChar menuseparator
23895 Version
23896 \begin_inset space ~
23897 \end_inset
23898
23899 Control\SpecialChar menuseparator
23900 Register.
23901  
23902 \family default
23903 Add a log message and click OK to commit the document to version control.
23904 \end_layout
23905
23906 \begin_layout Standard
23907 From this point onward, you should have full functionality in the 
23908 \family sans
23909 File\SpecialChar menuseparator
23910 Version
23911 \begin_inset space ~
23912 \end_inset
23913
23914 Control
23915 \family default
23916  menu.
23917  You also have the option of checking the document in and out, viewing its
23918  history, etc.
23919  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23920  client program from a command prompt.
23921 \end_layout
23922
23923 \begin_layout Subsubsection
23924 SSH tunnel used with SVN under Windows
23925 \end_layout
23926
23927 \begin_layout Standard
23928 Compared with Linux setting up an svn client to communicate over ssh under
23929  Windows is a rather troublesome task.
23930  We will at least offer some hints how to setup the client side but prior
23931  knowledge about ssh and the Windows command line is needed, also be prepared
23932  for a great deal of frustration\SpecialChar ldots
23933
23934 \end_layout
23935
23936 \begin_layout Enumerate
23937 Get an svn client for windows, as described in the previous sections.
23938  When it is a fresh install run some svn command (e.g.
23939  
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 svn –version
23945 \end_layout
23946
23947 \end_inset
23948
23949 ) to create config files, which you will need to change later on.
23950 \end_layout
23951
23952 \begin_layout Enumerate
23953 Choose an ssh client for Windows.
23954  There are several possibilities, we will use the one from Putty tools
23955 \begin_inset Foot
23956 status collapsed
23957
23958 \begin_layout Plain Layout
23959 \begin_inset Flex URL
23960 status collapsed
23961
23962 \begin_layout Plain Layout
23963
23964 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23965 \end_layout
23966
23967 \end_inset
23968
23969
23970 \end_layout
23971
23972 \end_inset
23973
23974 .
23975  You will need to set the connection up so that the client doesn't ask for
23976  any password from you.
23977  To keep things easy we will use only keys without any additional password
23978  protection etc.
23979 \end_layout
23980
23981 \begin_deeper
23982 \begin_layout Enumerate
23983 Generate keys by 
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988 puttygen
23989 \end_layout
23990
23991 \end_inset
23992
23993 .
23994  Save your private .ppk key file and put the public one on the server side.
23995  If the SVN server runs on Linux, note that the format of the public key
23996  is not compatible with Linux openssh and you will need to direcly copy-paste
23997  the key from the “
23998 \emph on
23999 Public key for pasting into OpenSSH authorized_keys file
24000 \emph default
24001 :” edit field into the server's 
24002 \begin_inset Flex Code
24003 status collapsed
24004
24005 \begin_layout Plain Layout
24006 ~/.ssh/authorized_keys
24007 \end_layout
24008
24009 \end_inset
24010
24011  / 
24012 \begin_inset Flex Code
24013 status collapsed
24014
24015 \begin_layout Plain Layout
24016 authorized_keys2
24017 \end_layout
24018
24019 \end_inset
24020
24021  file.
24022 \end_layout
24023
24024 \begin_layout Enumerate
24025 Get the Putty's 
24026 \begin_inset Flex Code
24027 status collapsed
24028
24029 \begin_layout Plain Layout
24030 plink
24031 \end_layout
24032
24033 \end_inset
24034
24035 .
24036  In the SVN config file
24037 \begin_inset Foot
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041 Exact path depends on Windows version, usually somewhere around 
24042 \begin_inset Flex Code
24043 status collapsed
24044
24045 \begin_layout Plain Layout
24046 c:
24047 \backslash
24048 Documents and Settings
24049 \backslash
24050 user
24051 \backslash
24052 Application Data
24053 \backslash
24054 Subversion
24055 \backslash
24056 config
24057 \end_layout
24058
24059 \end_inset
24060
24061  / 
24062 \begin_inset Flex Code
24063 status collapsed
24064
24065 \begin_layout Plain Layout
24066 AppData
24067 \backslash
24068 Roaming
24069 \backslash
24070 Subversion
24071 \end_layout
24072
24073 \end_inset
24074
24075 .
24076 \end_layout
24077
24078 \end_inset
24079
24080 , section [tunnels], setup ssh command, e.g.
24081  
24082 \begin_inset Flex Code
24083 status collapsed
24084
24085 \begin_layout Plain Layout
24086 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24087 \end_layout
24088
24089 \end_inset
24090
24091 .
24092 \begin_inset Foot
24093 status collapsed
24094
24095 \begin_layout Plain Layout
24096 It will usually take a lot of time to get exact command right and it depends
24097  on many things.
24098  For example do not have some remote server saved as a default session in
24099  Putty etc.
24100  If things fail, try to connect via plink without SVN first.
24101 \end_layout
24102
24103 \end_inset
24104
24105
24106 \end_layout
24107
24108 \end_deeper
24109 \begin_layout Enumerate
24110 Checkout the SVN archive, e.
24111 \begin_inset space \thinspace{}
24112 \end_inset
24113
24114 g.
24115 \begin_inset Newline newline
24116 \end_inset
24117
24118
24119 \begin_inset Flex Code
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 svn co svn+ssh://user@server/repository_path
24124 \end_layout
24125
24126 \end_inset
24127
24128 .
24129 \end_layout
24130
24131 \begin_layout Subsubsection
24132 End-of-Line Conversions
24133 \end_layout
24134
24135 \begin_layout Standard
24136 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24137  will
24138  use different line endings inside the .lyx files.
24139  This is not a problem as far as \SpecialChar LyX
24140  functionality is concerned, but the commit
24141  diffs will be huge and merge-conflicts prone.
24142  Fortunately SVN itself knows
24143 \begin_inset Foot
24144 status collapsed
24145
24146 \begin_layout Plain Layout
24147 \begin_inset Flex URL
24148 status collapsed
24149
24150 \begin_layout Plain Layout
24151
24152 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24153 \end_layout
24154
24155 \end_inset
24156
24157
24158 \end_layout
24159
24160 \end_inset
24161
24162  how to deal with CR/LF problems when switching .lyx files to the 
24163 \begin_inset Flex Code
24164 status collapsed
24165
24166 \begin_layout Plain Layout
24167 native
24168 \end_layout
24169
24170 \end_inset
24171
24172  mode.
24173 \begin_inset Foot
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 For the lazy guys: 
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182 svn propset svn:eol-style native FILE_NAME
24183 \end_layout
24184
24185 \end_inset
24186
24187
24188 \end_layout
24189
24190 \end_inset
24191
24192
24193 \end_layout
24194
24195 \begin_layout Subsection
24196 GIT commands in \SpecialChar LyX
24197
24198 \end_layout
24199
24200 \begin_layout Standard
24201 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24202 .
24203  You can find the commands in the 
24204 \family sans
24205 File\SpecialChar menuseparator
24206 Version
24207 \begin_inset space ~
24208 \end_inset
24209
24210 Control
24211 \family default
24212  submenu.
24213  Please note that if you use password protected access to repository via
24214  ssh, you will be asked in terminal window.
24215  \SpecialChar LyX
24216  was tested against GIT 1.7.
24217 \begin_inset Foot
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221 Windows users please note that you need to ensure that git is on the path.
24222  This can be set from within \SpecialChar LyX
24223  at 
24224 \family sans
24225 Tools\SpecialChar menuseparator
24226 Preferences\SpecialChar menuseparator
24227 Paths\SpecialChar menuseparator
24228 PATH prefix
24229 \family default
24230 .
24231 \end_layout
24232
24233 \end_inset
24234
24235
24236 \end_layout
24237
24238 \begin_layout Standard
24239 One big difference of GIT and the other supported version control systems
24240  is the distributed nature of GIT: With traditional version control systems
24241  there is one central server which hosts the repository.
24242  Users commit their changes to the server, and get updates made by other
24243  users from it.
24244  With GIT, users commit to a local repository.
24245  The local repository can be synchronized with one or more remote repositories
24246  using the 
24247 \begin_inset Flex Code
24248 status collapsed
24249
24250 \begin_layout Plain Layout
24251 pull
24252 \end_layout
24253
24254 \end_inset
24255
24256  and 
24257 \begin_inset Flex Code
24258 status collapsed
24259
24260 \begin_layout Plain Layout
24261 push
24262 \end_layout
24263
24264 \end_inset
24265
24266  GIT commands.
24267  \SpecialChar LyX
24268  does not interact in any way with remote GIT repositories.
24269  It works exclusively with the local repository in a very similar way as
24270  with a central CVS or SVN repository.
24271  If you use remote GIT repositories you need to do the 
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 pull
24277 \end_layout
24278
24279 \end_inset
24280
24281  and 
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 push
24287 \end_layout
24288
24289 \end_inset
24290
24291  operations with your favourite GIT client.
24292 \end_layout
24293
24294 \begin_layout Subsubsection
24295
24296 \family sans
24297 Register
24298 \end_layout
24299
24300 \begin_layout Standard
24301 If your document is not under revision control, this is the only item shown
24302  in the menu.
24303  And if it is under revision control, the 
24304 \family sans
24305 Register
24306 \family default
24307  item is not visible.
24308 \end_layout
24309
24310 \begin_layout Standard
24311 This command registers in GIT your document ONLY in case you have already
24312  the documents directory under GIT control (in particular 
24313 \family typewriter
24314 .git/index
24315 \family default
24316  file exists).
24317  This means you have to checkout the archive by yourself.
24318 \end_layout
24319
24320 \begin_layout Standard
24321 Then you are asked interactively to supply an initial description of the
24322  document.
24323  Don't forget that registered file is not yet commi
24324 \change_inserted -712698321 1501253542
24325 t
24326 \change_unchanged
24327 ted.
24328 \end_layout
24329
24330 \begin_layout Standard
24331 GIT command that is run: 
24332 \family typewriter
24333 git add 
24334 \change_deleted -712698321 1501253534
24335
24336 \begin_inset Quotes eld
24337 \end_inset
24338
24339
24340 \change_inserted -712698321 1501253534
24341
24342 \begin_inset Quotes qld
24343 \end_inset
24344
24345
24346 \change_unchanged
24347 <file-name>
24348 \change_deleted -712698321 1501253538
24349
24350 \begin_inset Quotes erd
24351 \end_inset
24352
24353
24354 \change_inserted -712698321 1501253538
24355
24356 \begin_inset Quotes qld
24357 \end_inset
24358
24359
24360 \change_unchanged
24361
24362 \end_layout
24363
24364 \begin_layout Standard
24365 Read 
24366 \family typewriter
24367 man git
24368 \family default
24369  to understand the switches.
24370 \end_layout
24371
24372 \begin_layout Subsubsection
24373
24374 \family sans
24375 Check In Changes
24376 \end_layout
24377
24378 \begin_layout Standard
24379 When you are finished editing a file, you commit your changes.
24380  When you do this, you are asked for a description of the changes.
24381  After that changes are commit
24382 \change_inserted -712698321 1501253548
24383 t
24384 \change_unchanged
24385 ed.
24386 \end_layout
24387
24388 \begin_layout Standard
24389 GIT command: 
24390 \family typewriter
24391 git commit -q -m"<description>" <file-name>
24392 \end_layout
24393
24394 \begin_layout Subsubsection
24395
24396 \family sans
24397 Revert To Repository Version
24398 \end_layout
24399
24400 \begin_layout Standard
24401 This will discard all changes made to the document since the last check
24402  in.
24403  You get a warning before changes are discarded.
24404 \end_layout
24405
24406 \begin_layout Standard
24407 GIT command: 
24408 \family typewriter
24409 git checkout -q 
24410 \change_deleted -712698321 1501253553
24411
24412 \begin_inset Quotes eld
24413 \end_inset
24414
24415
24416 \change_inserted -712698321 1501253553
24417
24418 \begin_inset Quotes qld
24419 \end_inset
24420
24421
24422 \change_unchanged
24423 <file-name>
24424 \change_deleted -712698321 1501253555
24425
24426 \begin_inset Quotes erd
24427 \end_inset
24428
24429
24430 \change_inserted -712698321 1501253555
24431
24432 \begin_inset Quotes qld
24433 \end_inset
24434
24435
24436 \change_unchanged
24437
24438 \end_layout
24439
24440 \begin_layout Subsubsection
24441
24442 \family sans
24443 Rename
24444 \end_layout
24445
24446 \begin_layout Standard
24447 This will rename the current document including the version history.
24448  It requires a clean document without any changes since the last checkin.
24449  You are asked for a file name and a description of the rename operation.
24450  After that the document is renamed, both locally and in the repository.
24451  If the parent directories of the new and old file names differ, all relative
24452  paths of included files are adjusted (like in 
24453 \family sans
24454 File\SpecialChar menuseparator
24455 Save As
24456 \family default
24457 \SpecialChar ldots
24458 ).
24459  Finally, the document is reloaded using the new name.
24460 \end_layout
24461
24462 \begin_layout Labeling
24463 \labelwidthstring 00.00.0000
24464 GIT
24465 \begin_inset space ~
24466 \end_inset
24467
24468 commands: 
24469 \begin_inset space ~
24470 \end_inset
24471
24472
24473 \begin_inset Newline newline
24474 \end_inset
24475
24476
24477 \begin_inset Flex Code
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481 git mv 
24482 \change_deleted -712698321 1501253559
24483
24484 \family typewriter
24485
24486 \begin_inset Quotes eld
24487 \end_inset
24488
24489
24490 \change_inserted -712698321 1501253559
24491
24492 \begin_inset Quotes qld
24493 \end_inset
24494
24495
24496 \change_unchanged
24497 <file-name>
24498 \change_deleted -712698321 1501253561
24499
24500 \begin_inset Quotes erd
24501 \end_inset
24502
24503
24504 \change_inserted -712698321 1501253561
24505
24506 \begin_inset Quotes qld
24507 \end_inset
24508
24509
24510 \change_unchanged
24511  
24512 \change_deleted -712698321 1501253562
24513
24514 \begin_inset Quotes eld
24515 \end_inset
24516
24517
24518 \change_inserted -712698321 1501253562
24519
24520 \begin_inset Quotes qld
24521 \end_inset
24522
24523
24524 \change_unchanged
24525 <new-file-name>
24526 \change_deleted -712698321 1501253564
24527
24528 \begin_inset Quotes erd
24529 \end_inset
24530
24531
24532 \change_inserted -712698321 1501253564
24533
24534 \begin_inset Quotes qld
24535 \end_inset
24536
24537
24538 \change_unchanged
24539
24540 \end_layout
24541
24542 \end_inset
24543
24544
24545 \begin_inset Newline newline
24546 \end_inset
24547
24548
24549 \begin_inset Flex Code
24550 status collapsed
24551
24552 \begin_layout Plain Layout
24553 git commit
24554 \end_layout
24555
24556 \end_inset
24557
24558
24559 \end_layout
24560
24561 \begin_layout Subsubsection
24562
24563 \family sans
24564 Show History
24565 \end_layout
24566
24567 \begin_layout Standard
24568 This shows the complete history of the GIT document.
24569  The output of 
24570 \family typewriter
24571 git log 
24572 \change_deleted -712698321 1501253567
24573
24574 \begin_inset Quotes eld
24575 \end_inset
24576
24577
24578 \change_inserted -712698321 1501253567
24579
24580 \begin_inset Quotes qld
24581 \end_inset
24582
24583
24584 \change_unchanged
24585 <file-name>
24586 \change_deleted -712698321 1501253569
24587
24588 \begin_inset Quotes erd
24589 \end_inset
24590
24591
24592 \change_inserted -712698321 1501253569
24593
24594 \begin_inset Quotes qld
24595 \end_inset
24596
24597
24598 \change_unchanged
24599
24600 \family default
24601  is shown in a browser.
24602 \end_layout
24603
24604 \begin_layout Subsubsection
24605 Version Info
24606 \end_layout
24607
24608 \begin_layout Standard
24609 \SpecialChar LyX
24610  supports GIT hash number of the last commit to the file, author name, date
24611  and time of last commit.
24612  All those are extracted from 
24613 \family typewriter
24614 git log -n 1 --pretty=format:%H%n%an%n%ai
24615 \family default
24616 .
24617  Tree version information is obtained via 
24618 \family typewriter
24619 git describe --abbrev --dirty --long
24620 \family default
24621 .
24622  See 
24623 \begin_inset CommandInset ref
24624 LatexCommand ref
24625 reference "subsec:VCS-Revision-Information"
24626
24627 \end_inset
24628
24629  for other details.
24630 \end_layout
24631
24632 \begin_layout Subsection
24633 Further tuning
24634 \end_layout
24635
24636 \begin_layout Standard
24637 With the recent addition of the 
24638 \change_deleted -712698321 1501253582
24639 vc-command
24640 \change_inserted -712698321 1501253582
24641
24642 \begin_inset Flex Code
24643 status collapsed
24644
24645 \begin_layout Plain Layout
24646
24647 \change_inserted -712698321 1501253582
24648 vc-command
24649 \change_unchanged
24650
24651 \end_layout
24652
24653 \end_inset
24654
24655
24656 \change_unchanged
24657  function \SpecialChar LyX
24658  power users are allowed to create their own commands for revision
24659  control.
24660 \end_layout
24661
24662 \begin_layout Standard
24663 As an example you can see how two TortoiseSVN commands could be integrated
24664  directly:
24665 \end_layout
24666
24667 \begin_layout Description
24668 Commit: 
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24674 \end_layout
24675
24676 \end_inset
24677
24678
24679 \end_layout
24680
24681 \begin_layout Description
24682 Revert: 
24683 \begin_inset Flex Code
24684 status collapsed
24685
24686 \begin_layout Plain Layout
24687 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24688 \end_layout
24689
24690 \end_inset
24691
24692
24693 \end_layout
24694
24695 \begin_layout Subsection
24696 Version control and Document comparison
24697 \end_layout
24698
24699 \begin_layout Standard
24700 One of the typical uses of version control is to inspect the changes between
24701  revisions, usually by creating 
24702 \begin_inset Flex Code
24703 status collapsed
24704
24705 \begin_layout Plain Layout
24706 diff
24707 \end_layout
24708
24709 \end_inset
24710
24711  dumps.
24712  While this is useful for plain text files, it is much less useful in the
24713  case of \SpecialChar LyX
24714  files, which have more a complicated structure.
24715  Hence we provide binding to the Document comparison feature.
24716  There are two ways of calling this feature 
24717 \change_inserted -712698321 1501253613
24718
24719 \change_deleted -712698321 1501253613
24720 -
24721 \change_unchanged
24722  either by direct call of 
24723 \begin_inset Flex Code
24724 status collapsed
24725
24726 \begin_layout Plain Layout
24727
24728 \change_deleted -712698321 1501253619
24729 VC_COMPARE
24730 \change_inserted -712698321 1501253621
24731 vc-compare
24732 \change_unchanged
24733
24734 \end_layout
24735
24736 \end_inset
24737
24738  \SpecialChar LyX
24739  function (for details see \SpecialChar LyX
24740  functions manual) or by
24741 \change_inserted -712698321 1501253630
24742  the toolbar
24743 \change_unchanged
24744  icon
24745 \change_inserted -712698321 1501253655
24746  
24747 \begin_inset Info
24748 type  "icon"
24749 arg   "vc-compare"
24750 \end_inset
24751
24752
24753 \change_deleted -712698321 1501253665
24754 /
24755 \change_inserted -712698321 1501253675
24756  or the 
24757 \change_unchanged
24758 menu item 
24759 \change_inserted -712698321 1501253679
24760
24761 \begin_inset Info
24762 type  "menu"
24763 arg   "vc-compare"
24764 \end_inset
24765
24766
24767 \change_deleted -712698321 1501253689
24768
24769 \begin_inset Flex Noun
24770 status collapsed
24771
24772 \begin_layout Plain Layout
24773 Compare with older revision...
24774 \end_layout
24775
24776 \end_inset
24777
24778
24779 \change_inserted -712698321 1501253693
24780 , respectively
24781 \change_unchanged
24782 .
24783  One can either compare two chosen revisions of the document or he can simply
24784  compare the current version of edited text with older revisions (where
24785  '
24786 \begin_inset Flex Noun
24787 status collapsed
24788
24789 \begin_layout Plain Layout
24790 0
24791 \end_layout
24792
24793 \end_inset
24794
24795 ' revisions back means comparison of the edited file with last commited
24796  revision).
24797  
24798 \end_layout
24799
24800 \begin_layout Standard
24801 This feature is supported for SVN and RCS though due to the more complicated
24802  versioning scheme of RCS there is a constraint – when addressing the revisions
24803  in dialog, numbers always point to the last number in RCS revision number,
24804  i.e.
24805  '35' in '1.2.35'.
24806  We don't currently support GIT addressing of revisions, one can just compare
24807  edited document with its revision X steps backs, where X is addressed as
24808  
24809 \change_deleted -712698321 1501253702
24810 HEAD~X
24811 \change_inserted -712698321 1501253702
24812
24813 \begin_inset Flex Code
24814 status collapsed
24815
24816 \begin_layout Plain Layout
24817
24818 \change_inserted -712698321 1501253702
24819 HEAD~X
24820 \change_unchanged
24821
24822 \end_layout
24823
24824 \end_inset
24825
24826
24827 \change_unchanged
24828 .
24829 \end_layout
24830
24831 \begin_layout Section
24832 Literate Programming
24833 \end_layout
24834
24835 \begin_layout Standard
24836 Updated by 
24837 \noun on
24838 Kayvan Sylvan 
24839 \noun default
24840 (kayvan@sylvan.com)
24841 \noun on
24842
24843 \noun default
24844 original documentation written by 
24845 \noun on
24846 Edmar Wienskoski Jr.
24847
24848 \noun default
24849  (edmar-w-jr@technologist.com)
24850 \end_layout
24851
24852 \begin_layout Subsection
24853 Introduction
24854 \end_layout
24855
24856 \begin_layout Standard
24857 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24858  for literate
24859  programming, where it is assumed that you are familiar with this programming
24860  technique, and know what 
24861 \begin_inset Quotes eld
24862 \end_inset
24863
24864 tangling
24865 \begin_inset Quotes erd
24866 \end_inset
24867
24868  and 
24869 \begin_inset Quotes eld
24870 \end_inset
24871
24872 weaving
24873 \begin_inset Quotes erd
24874 \end_inset
24875
24876  means.
24877  If that is not the case, please follow the web links provided in the following
24878  sections.
24879  There is a lot of good documentation out there covering old development
24880  history to the latest tools tips.
24881 \end_layout
24882
24883 \begin_layout Standard
24884 It is also assumed that you are familiar with \SpecialChar LyX
24885  itself to a point that you
24886  are comfortable changing your \SpecialChar LyX
24887  preferences, and X resources file.
24888  If that is not the case please refer to other \SpecialChar LyX
24889  documentation to cover your
24890  specific needs.
24891 \end_layout
24892
24893 \begin_layout Subsection
24894 Literate Programming
24895 \end_layout
24896
24897 \begin_layout Standard
24898 From the Literate Programming FAQ: 
24899 \end_layout
24900
24901 \begin_layout Quotation
24902 Literate programming is the combination of documentation and source together
24903  in a fashion suited for reading by human beings.
24904  In fact, literate programs should be enjoyable reading, even inviting!
24905  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24906  and documentation in a single file.
24907  Literate programming tools then parse the file to produce either readable
24908  documentation or compilable source.
24909  The WEB style of literate programming was created by D.
24910 \begin_inset space \thinspace{}
24911 \end_inset
24912
24913 E.
24914  Knuth during the development of his \SpecialChar TeX
24915  typesetting software.
24916  
24917 \end_layout
24918
24919 \begin_layout Standard
24920 Another excerpt says:
24921 \end_layout
24922
24923 \begin_layout Quotation
24924
24925 \emph on
24926 How is literate programming different from verbose commenting?
24927 \end_layout
24928
24929 \begin_layout Quotation
24930 There are three distinguishing characteristics.
24931  In order of importance, they are: 
24932 \end_layout
24933
24934 \begin_deeper
24935 \begin_layout Itemize
24936 flexible order of elaboration 
24937 \end_layout
24938
24939 \begin_layout Itemize
24940 automatic support for browsing 
24941 \end_layout
24942
24943 \begin_layout Itemize
24944 typeset documentation, especially diagrams and mathematics 
24945 \end_layout
24946
24947 \end_deeper
24948 \begin_layout Standard
24949 Now that I sparked your curiosity, take a look in the references.
24950 \end_layout
24951
24952 \begin_layout Subsubsection
24953 References
24954 \end_layout
24955
24956 \begin_layout Standard
24957 The complete Literate Programming FAQ can be found at:
24958 \end_layout
24959
24960 \begin_layout Quote
24961 Literate Programming FAQ 
24962 \begin_inset Flex URL
24963 status open
24964
24965 \begin_layout Plain Layout
24966
24967 http://www.literateprogramming.com/lpfaq.pdf
24968 \end_layout
24969
24970 \end_inset
24971
24972
24973 \end_layout
24974
24975 \begin_layout Standard
24976 The FAQ lists 23 (twenty three!) different literate programming tools.
24977  Where some are specialized or 
24978 \begin_inset Quotes eld
24979 \end_inset
24980
24981 tailored
24982 \begin_inset Quotes erd
24983 \end_inset
24984
24985  for particular programming languages, while other have general scope.
24986  I selected 
24987 \noun on
24988 Noweb
24989 \noun default
24990  for my own use for several reasons:
24991 \end_layout
24992
24993 \begin_layout Itemize
24994 It can generate the documentation either in \SpecialChar LaTeX
24995  or HTML.
24996 \end_layout
24997
24998 \begin_layout Itemize
24999 It has a open architecture, i.
25000 \begin_inset space \thinspace{}
25001 \end_inset
25002
25003 e.
25004 \begin_inset space \space{}
25005 \end_inset
25006
25007 it is easy to plug in new filters
25008 \change_inserted -712698321 1501229014
25009
25010 \begin_inset Foot
25011 status collapsed
25012
25013 \begin_layout Plain Layout
25014
25015 \change_inserted -712698321 1501229136
25016
25017 \emph on
25018 Filters 
25019 \emph default
25020 are programs that read a given data stream and output a manipulated data
25021  stream.
25022  That way, a WEB file (consisting of literate code) can be turned into a
25023  file consisting only of C program code or \SpecialChar LaTeX
25024  code.
25025 \end_layout
25026
25027 \end_inset
25028
25029
25030 \change_unchanged
25031  and to perform special processing that you may need.
25032  
25033 \end_layout
25034
25035 \begin_layout Itemize
25036 There is a good selection of filters available already (the HTML is one
25037  of them).
25038 \end_layout
25039
25040 \begin_layout Itemize
25041 It is free.
25042 \end_layout
25043
25044 \begin_layout Standard
25045 The Noweb web page can be found at: 
25046 \end_layout
25047
25048 \begin_layout Quote
25049 Noweb home page 
25050 \begin_inset Flex URL
25051 status collapsed
25052
25053 \begin_layout Plain Layout
25054
25055 http://www.cs.virginia.edu/~nr/noweb/
25056 \end_layout
25057
25058 \end_inset
25059
25060
25061 \end_layout
25062
25063 \begin_layout Standard
25064 Starting from there you can reach many other interesting links and even
25065  some literate program examples.
25066 \end_layout
25067
25068 \begin_layout Subsection
25069 \SpecialChar LyX
25070  and Literate Programming with Noweb
25071 \end_layout
25072
25073 \begin_layout Standard
25074 The \SpecialChar LyX
25075  support for Literate Programming is provided by using the generic \SpecialChar LyX
25076
25077  converters mechanism.
25078  This support is provided in a 
25079 \begin_inset Quotes eld
25080 \end_inset
25081
25082 Noweb independent
25083 \begin_inset Quotes erd
25084 \end_inset
25085
25086  way, i.
25087 \begin_inset space \thinspace{}
25088 \end_inset
25089
25090 e.
25091 \begin_inset space \space{}
25092 \end_inset
25093
25094 you will be able to use this new \SpecialChar LyX
25095  feature with some other literate programming
25096  tool of your choice by just changing your \SpecialChar LyX
25097  preferences.
25098 \end_layout
25099
25100 \begin_layout Subsubsection
25101 Generating documents and code (weaving and tangling)
25102 \end_layout
25103
25104 \begin_layout Paragraph
25105 Using the noweb module
25106 \end_layout
25107
25108 \begin_layout Standard
25109 If you have installed Noweb and \SpecialChar LyX
25110  successfully, whenever you open a new document,
25111  after you have chosen its document class, use the 
25112 \family sans
25113 Document
25114 \change_deleted -712698321 1501229457
25115 ->
25116 \change_inserted -712698321 1501229457
25117 \SpecialChar menuseparator
25118
25119 \change_unchanged
25120 Settings
25121 \family default
25122  menu to add the 
25123 \begin_inset Quotes eld
25124 \end_inset
25125
25126 noweb
25127 \begin_inset Quotes erd
25128 \end_inset
25129
25130  module.
25131  If Noweb is correctly installed, when you click on the 
25132 \begin_inset Quotes eld
25133 \end_inset
25134
25135 Modules
25136 \begin_inset Quotes erd
25137 \end_inset
25138
25139  link, you will see the 
25140 \begin_inset Quotes eld
25141 \end_inset
25142
25143 noweb
25144 \begin_inset Quotes erd
25145 \end_inset
25146
25147  module in the available list and you can add it to your document.
25148 \end_layout
25149
25150 \begin_layout Paragraph
25151 Typing code in
25152 \end_layout
25153
25154 \begin_layout Standard
25155 \SpecialChar LyX
25156  enables you to write code with a 
25157 \change_deleted -712698321 1501229783
25158 layout
25159 \change_inserted -712698321 1501229785
25160 custom inset
25161 \change_unchanged
25162  named 
25163 \begin_inset Flex Noun
25164 status collapsed
25165
25166 \begin_layout Plain Layout
25167 Chunk
25168 \end_layout
25169
25170 \end_inset
25171
25172 .
25173  Noweb delimits chunks like this:
25174 \end_layout
25175
25176 \begin_layout LyX-Code
25177 <<My code>>=
25178 \end_layout
25179
25180 \begin_layout LyX-Code
25181   code
25182 \end_layout
25183
25184 \begin_layout LyX-Code
25185   more code
25186 \end_layout
25187
25188 \begin_layout LyX-Code
25189   even more code
25190 \end_layout
25191
25192 \begin_layout LyX-Code
25193   @
25194 \end_layout
25195
25196 \begin_layout Standard
25197 The problem is that whatever is written in between the << and the 
25198 \family typewriter
25199 @
25200 \family default
25201  must be taken literally, i.
25202 \begin_inset space \thinspace{}
25203 \end_inset
25204
25205 e.
25206 \begin_inset space \space{}
25207 \end_inset
25208
25209 \SpecialChar LyX
25210  should be prevented from making any special interpretation of what has
25211  been written.
25212  This is also handled by 
25213 \begin_inset Flex Noun
25214 status collapsed
25215
25216 \begin_layout Plain Layout
25217 Chunk
25218 \end_layout
25219
25220 \end_inset
25221
25222 , that works like a normal 
25223 \change_deleted -712698321 1501229871
25224 paragraph
25225 \change_inserted -712698321 1501229873
25226 text inset
25227 \change_unchanged
25228  but has a free spacing capability.
25229 \end_layout
25230
25231 \begin_layout Standard
25232 As a special note, you can also use the 
25233 \begin_inset Quotes eld
25234 \end_inset
25235
25236 %def
25237 \begin_inset Quotes erd
25238 \end_inset
25239
25240  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25241 rence:
25242 \end_layout
25243
25244 \begin_layout LyX-Code
25245 <<My chunk>>=
25246 \end_layout
25247
25248 \begin_layout LyX-Code
25249 def some_function(args):
25250 \end_layout
25251
25252 \begin_layout LyX-Code
25253    "This is the doc string for this function."
25254 \end_layout
25255
25256 \begin_layout LyX-Code
25257    print "My args: ", args
25258 \end_layout
25259
25260 \begin_layout LyX-Code
25261 @ %def some_function
25262 \end_layout
25263
25264 \begin_layout Standard
25265 For an example of this usage and the resulting cross-reference output, look
25266  at the Literate python program in 
25267 \emph on
25268 LIBDIR/examples/listerrors.lyx
25269 \emph default
25270  which should make this all clear.
25271 \end_layout
25272
25273 \begin_layout Paragraph
25274 Generating the documentation
25275 \end_layout
25276
25277 \begin_layout Standard
25278 At this point you already have a new document file with a proper document
25279  class, and with some code and text on it.
25280  How do I print it? The answer is simple, you select 
25281 \family sans
25282 View\SpecialChar menuseparator
25283 DVI,
25284 \family default
25285  etc.
25286  Just like you would do for a plain document.
25287  No special procedure is required.
25288 \end_layout
25289
25290 \begin_layout Standard
25291 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25292 :
25293 \end_layout
25294
25295 \begin_layout Enumerate
25296 When the 
25297 \family sans
25298 Update\SpecialChar menuseparator
25299 DVI
25300 \family default
25301  menu option is chosen, a \SpecialChar LaTeX
25302  file is generated.
25303  
25304 \end_layout
25305
25306 \begin_deeper
25307 \begin_layout Standard
25308 If the document is of any literate class the generated file will be named
25309  with an extension name defined by the 
25310 \begin_inset Quotes eld
25311 \end_inset
25312
25313 literate
25314 \begin_inset Quotes erd
25315 \end_inset
25316
25317  format (defined in the Preferences panel), otherwise the file will have
25318  the usual 
25319 \family typewriter
25320 .tex
25321 \family default
25322  extension.
25323 \end_layout
25324
25325 \end_deeper
25326 \begin_layout Enumerate
25327 Note that the only difference so far is in the name of the file, no special
25328  processing is required by \SpecialChar LyX
25329 .
25330  Given that you formatted the code using the 
25331 \begin_inset Flex Noun
25332 status collapsed
25333
25334 \begin_layout Plain Layout
25335 Chunk
25336 \end_layout
25337
25338 \end_inset
25339
25340  
25341 \change_deleted -712698321 1501230025
25342 layout 
25343 \change_inserted -712698321 1501230027
25344 inset 
25345 \change_unchanged
25346 that, by itself, takes care of the business.
25347 \end_layout
25348
25349 \begin_layout Enumerate
25350 If the document is of any literate class \SpecialChar LyX
25351  will then use the internal \SpecialChar LyX
25352  to
25353  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25354  converter
25355 \begin_inset Foot
25356 status collapsed
25357
25358 \begin_layout Plain Layout
25359 The converters are defined in the 
25360 \family sans
25361 Tools\SpecialChar menuseparator
25362 Preferences
25363 \family default
25364  panel, under the 
25365 \begin_inset Quotes eld
25366 \end_inset
25367
25368 Conversion
25369 \begin_inset Quotes erd
25370 \end_inset
25371
25372  tab.
25373  See section 
25374 \emph on
25375 Converters
25376 \emph default
25377  of the 
25378 \emph on
25379 Customization
25380 \emph default
25381  manual for general information about converters.
25382 \end_layout
25383
25384 \end_inset
25385
25386  to generate the \SpecialChar LaTeX
25387  file.
25388 \end_layout
25389
25390 \begin_deeper
25391 \begin_layout Standard
25392 Otherwise it will just skip this step.
25393 \end_layout
25394
25395 \end_deeper
25396 \begin_layout Enumerate
25397 Finally, \SpecialChar LaTeX
25398  is invoked and the regular post processing continues as in a plain
25399  document.
25400 \end_layout
25401
25402 \begin_layout Standard
25403 Independence from a particular 
25404 \begin_inset Quotes eld
25405 \end_inset
25406
25407 literate tool
25408 \begin_inset Quotes erd
25409 \end_inset
25410
25411  is easily achieved by changing the commands that are run by the various
25412  converters.
25413 \end_layout
25414
25415 \begin_layout Paragraph
25416 Generating the code
25417 \end_layout
25418
25419 \begin_layout Standard
25420 When the build menu option is chosen or the corresponding button in the
25421  toolbar is pressed, a \SpecialChar LaTeX
25422  file is generated just like step 1 above.
25423  Next, \SpecialChar LyX
25424  invokes the 
25425 \family typewriter
25426 Noweb->Program
25427 \family default
25428  converter.
25429  This converter needs to be defined by the user and is not installed by
25430  default, though the Program format is.
25431  This converter (like any other converter) will have two parts:
25432 \end_layout
25433
25434 \begin_layout Enumerate
25435 The converter program itself.
25436  This program performs the conversion from the one format to the other (in
25437  this case, from the Noweb format to the Program pseudo-format).
25438 \end_layout
25439
25440 \begin_layout Enumerate
25441 The error log parser.
25442  This is a program whose sole purpose is to rewrite error messages in a
25443  format that \SpecialChar LyX
25444  understands.
25445  This makes it possible for \SpecialChar LyX
25446  to place error boxes in the right places in
25447  the file buffer.
25448 \end_layout
25449
25450 \begin_layout Standard
25451 The first part, the 
25452 \begin_inset Quotes eld
25453 \end_inset
25454
25455 Converter
25456 \begin_inset Quotes erd
25457 \end_inset
25458
25459  setting, should be set to
25460 \change_inserted -712698321 1501230220
25461
25462 \end_layout
25463
25464 \begin_layout LyX-Code
25465
25466 \change_deleted -712698321 1501230232
25467 \begin_inset Newline newline
25468 \end_inset
25469
25470
25471 \begin_inset Quotes eld
25472 \end_inset
25473
25474
25475 \change_unchanged
25476
25477 \family typewriter
25478 build-script $$i
25479 \family default
25480  $$r
25481 \change_deleted -712698321 1501230236
25482
25483 \begin_inset Quotes erd
25484 \end_inset
25485
25486 .
25487 \begin_inset Newline newline
25488 \end_inset
25489
25490
25491 \change_inserted -712698321 1501230224
25492
25493 \end_layout
25494
25495 \begin_layout Standard
25496 This basically means that \SpecialChar LyX
25497  will call 
25498 \begin_inset Quotes eld
25499 \end_inset
25500
25501 build-script
25502 \begin_inset Quotes erd
25503 \end_inset
25504
25505  (a program or script) with the name of the Noweb file (normally a file
25506  in the \SpecialChar LyX
25507  temp directory) and the directory path of the original \SpecialChar LyX
25508  file.
25509  
25510 \end_layout
25511
25512 \begin_layout Standard
25513 This is an implementation of 
25514 \begin_inset Quotes eld
25515 \end_inset
25516
25517 build-script
25518 \begin_inset Quotes erd
25519 \end_inset
25520
25521  that you can place in a directory on your path:
25522 \end_layout
25523
25524 \begin_layout Standard
25525
25526 \change_deleted -712698321 1501230298
25527 \begin_inset VSpace defskip
25528 \end_inset
25529
25530
25531 \change_unchanged
25532
25533 \end_layout
25534
25535 \begin_layout Standard
25536
25537 \change_deleted -712698321 1501230296
25538 \begin_inset Newpage pagebreak
25539 \end_inset
25540
25541
25542 \change_unchanged
25543
25544 \end_layout
25545
25546 \begin_layout LyX-Code
25547
25548 \family sans
25549 #!/bin/sh
25550 \end_layout
25551
25552 \begin_layout LyX-Code
25553
25554 \family sans
25555 #
25556 \end_layout
25557
25558 \begin_layout LyX-Code
25559
25560 \family sans
25561 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25562 \end_layout
25563
25564 \begin_layout Standard
25565
25566 \change_deleted -712698321 1501230299
25567 \begin_inset VSpace defskip
25568 \end_inset
25569
25570
25571 \change_unchanged
25572
25573 \end_layout
25574
25575 \begin_layout Standard
25576 The next part of the converter setting is the 
25577 \begin_inset Quotes eld
25578 \end_inset
25579
25580 Flags
25581 \begin_inset Quotes erd
25582 \end_inset
25583
25584  which is to be set to
25585 \change_inserted -712698321 1501230552
25586
25587 \end_layout
25588
25589 \begin_layout LyX-Code
25590
25591 \change_deleted -712698321 1501230577
25592 \begin_inset Newline newline
25593 \end_inset
25594
25595
25596 \begin_inset Quotes eld
25597 \end_inset
25598
25599
25600 \change_unchanged
25601
25602 \family typewriter
25603 parselog=$$s/scripts/listerrors
25604 \change_deleted -712698321 1501230575
25605
25606 \family default
25607
25608 \begin_inset Quotes erd
25609 \end_inset
25610
25611 .
25612 \begin_inset Newline newline
25613 \end_inset
25614
25615
25616 \change_inserted -712698321 1501230544
25617
25618 \end_layout
25619
25620 \begin_layout Standard
25621 This will run any errors that are generated by the 
25622 \begin_inset Quotes eld
25623 \end_inset
25624
25625 build-script
25626 \begin_inset Quotes erd
25627 \end_inset
25628
25629  process through the 
25630 \begin_inset Quotes eld
25631 \end_inset
25632
25633 listerrors
25634 \begin_inset Quotes erd
25635 \end_inset
25636
25637  program.
25638 \end_layout
25639
25640 \begin_layout Standard
25641 The build will normally take place in \SpecialChar LyX
25642 's temporary directory, so the files
25643  produced by the conversion will be in that directory.
25644  \SpecialChar LyX
25645  will copy out what it regards as the `main' file, but the 
25646 \family typewriter
25647 Noweb->Program
25648 \family default
25649  conversion may produce several files, and so most of these would then be
25650  deleted when \SpecialChar LyX
25651  was closed.
25652  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25653  the build-script chunk can place the generated files in that location.
25654 \end_layout
25655
25656 \begin_layout Paragraph
25657 Build instructions in the document
25658 \end_layout
25659
25660 \begin_layout Standard
25661 The last piece of the integration between \SpecialChar LyX
25662  and noweb is the 
25663 \begin_inset Quotes eld
25664 \end_inset
25665
25666 build-script
25667 \begin_inset Quotes erd
25668 \end_inset
25669
25670  chunk.
25671  Generally, the instructions for building your program should be embedded
25672  in a chunk of its own.
25673  The noweb-specific 
25674 \begin_inset Quotes eld
25675 \end_inset
25676
25677 build-script
25678 \begin_inset Quotes erd
25679 \end_inset
25680
25681  above uses the notangle command to look for this chunk (called 
25682 \begin_inset Quotes eld
25683 \end_inset
25684
25685 build-script
25686 \begin_inset Quotes erd
25687 \end_inset
25688
25689 ) and runs its contents through 
25690 \begin_inset Quotes eld
25691 \end_inset
25692
25693 sh
25694 \begin_inset Quotes erd
25695 \end_inset
25696
25697 .
25698 \end_layout
25699
25700 \begin_layout Standard
25701 Typically, such a chunk would look something like this:
25702 \end_layout
25703
25704 \begin_layout LyX-Code
25705 <<build-script>>=
25706 \end_layout
25707
25708 \begin_layout LyX-Code
25709 #!/bin/sh
25710 \begin_inset Newline newline
25711 \end_inset
25712
25713 if [ -z "${NOWEB_SOURCE}" ]
25714 \begin_inset Newline newline
25715 \end_inset
25716
25717 then
25718 \end_layout
25719
25720 \begin_layout LyX-Code
25721 NOWEB_SOURCE=myfile.nw
25722 \begin_inset Newline newline
25723 \end_inset
25724
25725 fi
25726 \begin_inset Newline newline
25727 \end_inset
25728
25729 [...
25730  code to extract files ...
25731  use NOWEB_OUTPUT_DIR here ...]
25732 \begin_inset Newline newline
25733 \end_inset
25734
25735 [...
25736  code to compile files ...]
25737 \begin_inset Newline newline
25738 \end_inset
25739
25740 @
25741 \end_layout
25742
25743 \begin_layout Standard
25744 Look in 
25745 \emph on
25746 LIBDIR/examples/listerrors.lyx
25747 \emph default
25748  or in 
25749 \emph on
25750 LIBDIR/examples/Literate.lyx
25751 \emph default
25752  which implement two versions of the 
25753 \begin_inset Quotes eld
25754 \end_inset
25755
25756 listerrors
25757 \begin_inset Quotes erd
25758 \end_inset
25759
25760  program for some illustrations of how all of these pieces go together or
25761  in 
25762 \emph on
25763 LIBDIR/examples/noweb2lyx.lyx.
25764
25765 \emph default
25766  Interestingly, these three files show off the language-indepence of the
25767  \SpecialChar LyX
25768  literate programming support since they are written in Python, C and Perl
25769  respectively.
25770 \end_layout
25771
25772 \begin_layout Subsubsection
25773 Configuring \SpecialChar LyX
25774
25775 \end_layout
25776
25777 \begin_layout Standard
25778 All the Literate Programming support is configured by the 
25779 \family sans
25780 Tools\SpecialChar menuseparator
25781 Preferences
25782 \family default
25783  panel in the 
25784 \begin_inset Quotes eld
25785 \end_inset
25786
25787 File Handling
25788 \begin_inset Quotes erd
25789 \end_inset
25790
25791  tab.
25792  The important parts are:
25793 \end_layout
25794
25795 \begin_layout Description
25796 the
25797 \begin_inset space ~
25798 \end_inset
25799
25800
25801 \begin_inset Quotes eld
25802 \end_inset
25803
25804 NoWeb
25805 \begin_inset Quotes erd
25806 \end_inset
25807
25808
25809 \begin_inset space ~
25810 \end_inset
25811
25812 format Set up via the File Formats tab, this is where the Noweb-specific
25813  pieces are set up.
25814  The 
25815 \family sans
25816 GUI Name
25817 \family default
25818  is set to 
25819 \family typewriter
25820 NoWeb
25821 \family default
25822 , the file extension is set to 
25823 \family typewriter
25824 .nw
25825 \family default
25826 .
25827  This tells \SpecialChar LyX
25828  to create a file with a 
25829 \family typewriter
25830 .nw
25831 \family default
25832  extension in the first step of the conversion process.
25833 \end_layout
25834
25835 \begin_layout Description
25836 the
25837 \begin_inset space ~
25838 \end_inset
25839
25840
25841 \family sans
25842 Program
25843 \family default
25844
25845 \begin_inset space ~
25846 \end_inset
25847
25848 format This is an empty format whose sole purpose is to be the endpoint
25849  of a conversion (which then allows us to set up a converter for it).
25850 \end_layout
25851
25852 \begin_layout Description
25853
25854 \family sans
25855 NoWeb
25856 \family default
25857 ->
25858 \family sans
25859 \SpecialChar LaTeX
25860
25861 \family default
25862  This converter performs the 
25863 \begin_inset Quotes eld
25864 \end_inset
25865
25866 weaving
25867 \begin_inset Quotes erd
25868 \end_inset
25869
25870  of the literate document.
25871  For Noweb, it is set to 
25872 \begin_inset Quotes eld
25873 \end_inset
25874
25875
25876 \family typewriter
25877 noweave -delay -index $$i > $$o
25878 \family default
25879
25880 \begin_inset Quotes erd
25881 \end_inset
25882
25883
25884 \end_layout
25885
25886 \begin_layout Description
25887
25888 \family sans
25889 NoWeb
25890 \family default
25891 ->
25892 \family sans
25893 Program
25894 \family default
25895  This performs the 
25896 \begin_inset Quotes eld
25897 \end_inset
25898
25899 tangling step
25900 \begin_inset Quotes erd
25901 \end_inset
25902
25903 .
25904  As stated above, the Converter is set to 
25905 \begin_inset Quotes eld
25906 \end_inset
25907
25908
25909 \family typewriter
25910 build-script $$i
25911 \family default
25912  $$r
25913 \begin_inset Quotes erd
25914 \end_inset
25915
25916 , with Flags set to
25917 \begin_inset Newline newline
25918 \end_inset
25919
25920
25921 \begin_inset Quotes eld
25922 \end_inset
25923
25924
25925 \family typewriter
25926 parselog=$$s/scripts/listerrors
25927 \family default
25928
25929 \begin_inset Quotes erd
25930 \end_inset
25931
25932 .
25933 \end_layout
25934
25935 \begin_layout Subsubsection
25936 Debug extensions
25937 \end_layout
25938
25939 \begin_layout Standard
25940 There is also a new function implemented in the \SpecialChar LyX
25941  server, the 
25942 \begin_inset Quotes eld
25943 \end_inset
25944
25945 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25946  
25947 \end_layout
25948
25949 \begin_layout Standard
25950 When debugging code with ddd/gdb, it is possible to invoke a text editor
25951  at the current execution position with a single key stroke.
25952  The default ddd configuration for that is shift-ctrl-V.
25953  It happens that you can define the editor command line invocation in ddd
25954  by accessing the 
25955 \family sans
25956 Edit\SpecialChar menuseparator
25957 Preferences\SpecialChar menuseparator
25958 Helpers
25959 \family default
25960  dialog and changing the "Edit Sources" entry.
25961 \end_layout
25962
25963 \begin_layout Standard
25964 I take advantage of the newly created \SpecialChar LyX
25965  server function and this ddd feature,
25966  and set 
25967 \begin_inset Quotes eld
25968 \end_inset
25969
25970 Edit Sources
25971 \begin_inset Quotes erd
25972 \end_inset
25973
25974  to:
25975 \end_layout
25976
25977 \begin_layout Standard
25978
25979 \change_deleted -712698321 1501232274
25980 \begin_inset VSpace defskip
25981 \end_inset
25982
25983
25984 \change_inserted -712698321 1501232276
25985
25986 \end_layout
25987
25988 \begin_layout LyX-Code
25989
25990 \size footnotesize
25991 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25992 \end_layout
25993
25994 \begin_layout Standard
25995
25996 \change_deleted -712698321 1501232278
25997 \begin_inset VSpace defskip
25998 \end_inset
25999
26000
26001 \change_unchanged
26002
26003 \end_layout
26004
26005 \begin_layout Standard
26006 With this, whenever you are using ddd and find a point in the program that
26007  you want to edit, you just press shift-ctrl-V (in the ddd window), and
26008  ddd will forward this information to \SpecialChar LyX
26009  through the \SpecialChar LyX
26010  server and then the
26011  \SpecialChar LyX
26012  window will show the same file with the cursor at the same position ddd
26013  was pointing to.
26014  No more guessing or long scrolling to locate a point in the program back
26015  from debugging !
26016 \end_layout
26017
26018 \begin_layout Standard
26019 Note however that you must enable the \SpecialChar LyX
26020  server to get this feature working
26021  (it is disabled by default).
26022  
26023 \change_deleted -712698321 1501232597
26024 You can enable it in 
26025 \family sans
26026 Preferences
26027 \family default
26028  (tabs 
26029 \family sans
26030 Inputs
26031 \family default
26032
26033 \family sans
26034 Paths
26035 \family default
26036 ) by entering in the 
26037 \family sans
26038 \SpecialChar LyX
26039 server pipe
26040 \family default
26041  a path like 
26042 \begin_inset Quotes eld
26043 \end_inset
26044
26045
26046 \family typewriter
26047 /home/<your-home-directory>/.lyx/lyxpipe
26048 \family default
26049
26050 \begin_inset Quotes erd
26051 \end_inset
26052
26053
26054 \end_layout
26055
26056 \begin_layout Standard
26057
26058 \change_inserted -712698321 1501232576
26059 Sec.
26060 \begin_inset space ~
26061 \end_inset
26062
26063
26064 \begin_inset CommandInset ref
26065 LatexCommand ref
26066 reference "sec:Starting-the-Server"
26067
26068 \end_inset
26069
26070  explains how to do that
26071 \change_deleted -712698321 1501232579
26072 Read the \SpecialChar LyX
26073  server documentation in the 
26074 \emph on
26075 Customization Manual
26076 \emph default
26077  for further information
26078 \change_unchanged
26079 .
26080 \end_layout
26081
26082 \begin_layout Subsubsection
26083 Toolbar extensions
26084 \end_layout
26085
26086 \begin_layout Standard
26087 There are six new buttons that can be added to your \SpecialChar LyX
26088  toolbar.
26089  
26090 \change_deleted -712698321 1501232976
26091 Five
26092 \change_inserted -712698321 1501232977
26093 Four
26094 \change_unchanged
26095  of these buttons are short cuts to layout styles: 
26096 \family sans
26097 Standard
26098 \family default
26099
26100 \family sans
26101 Section
26102 \family default
26103
26104 \family sans
26105 \SpecialChar LaTeX
26106
26107 \family default
26108 ,
26109 \change_inserted -712698321 1501232982
26110  and
26111 \change_unchanged
26112  
26113 \family sans
26114 \SpecialChar LyX
26115 -Code
26116 \family default
26117
26118 \change_deleted -712698321 1501232984
26119 and
26120 \change_inserted -712698321 1501232988
26121 one fpr the custom inset
26122 \change_unchanged
26123  
26124 \family sans
26125 Chunk
26126 \family default
26127 .
26128  The last one is a short cut to the 
26129 \begin_inset Quotes eld
26130 \end_inset
26131
26132 Build Program
26133 \begin_inset Quotes erd
26134 \end_inset
26135
26136  File menu entry.
26137  
26138 \end_layout
26139
26140 \begin_layout Standard
26141 \SpecialChar LyX
26142  has a range of buttons that are available for tool bar customization.
26143  In my toolbar I like to combine the six short cuts above with two more:
26144  One for 
26145 \family sans
26146 Document
26147 \family default
26148 \SpecialChar menuseparator
26149
26150 \family sans
26151 Update
26152 \family default
26153 \SpecialChar menuseparator
26154
26155 \family sans
26156 DVI
26157 \family default
26158  and the other for 
26159 \family sans
26160 Document\SpecialChar menuseparator
26161 View\SpecialChar menuseparator
26162 DVI
26163 \family default
26164  File menu entries.
26165  Here is how it looks like:
26166 \end_layout
26167
26168 \begin_layout LyX-Code
26169 Toolbar
26170 \end_layout
26171
26172 \begin_layout LyX-Code
26173   Layouts
26174 \end_layout
26175
26176 \begin_layout LyX-Code
26177   Icon "layout Standard"
26178 \end_layout
26179
26180 \begin_layout LyX-Code
26181   Icon "layout Section"
26182 \end_layout
26183
26184 \begin_layout LyX-Code
26185   Icon "layout \SpecialChar LaTeX
26186 "
26187 \end_layout
26188
26189 \begin_layout LyX-Code
26190   Icon "layout \SpecialChar LyX
26191 -Code"
26192 \end_layout
26193
26194 \begin_layout LyX-Code
26195   Icon "
26196 \change_deleted -712698321 1501232918
26197 layout
26198 \change_inserted -712698321 1501232921
26199 flex.insert
26200 \change_unchanged
26201  Chunk"
26202 \end_layout
26203
26204 \begin_layout LyX-Code
26205   Separator
26206 \end_layout
26207
26208 \begin_layout LyX-Code
26209   Icon "buffer-view"
26210 \end_layout
26211
26212 \begin_layout LyX-Code
26213   Icon "buffer-typeset"
26214 \end_layout
26215
26216 \begin_layout LyX-Code
26217   Icon "build-program"
26218 \end_layout
26219
26220 \begin_layout LyX-Code
26221   Separator
26222 \end_layout
26223
26224 \begin_layout LyX-Code
26225 .
26226 \end_layout
26227
26228 \begin_layout LyX-Code
26229 .
26230 \end_layout
26231
26232 \begin_layout LyX-Code
26233 .
26234 \end_layout
26235
26236 \begin_layout LyX-Code
26237 End
26238 \end_layout
26239
26240 \begin_layout Subsubsection
26241 Colors customization
26242 \end_layout
26243
26244 \begin_layout Standard
26245 There are a number of colors in \SpecialChar LyX
26246  that can be customized in 
26247 \family sans
26248 Preferences
26249 \family default
26250 .
26251  One of the things that bothers people is the \SpecialChar LaTeX
26252  font color.
26253  The default color is red, since the chunks uses \SpecialChar LaTeX
26254  font, and there is a lot
26255  of chunks in literate documents, you may get tired of seeing everything
26256  in red.
26257  You can change it by going to the tabs 
26258 \family sans
26259 Look&Feel
26260 \family default
26261
26262 \family sans
26263 Colors.
26264 \end_layout
26265
26266 \begin_layout Standard
26267 The next thing is the visible presence of the newline character in the screen.
26268  You can choose the color of this particular character and make it blend
26269  in the background.
26270  I recommend you choosing a color that is close to the background but not
26271  equal, that way you still can see it is there, but it is not bothering
26272  you anymore.
26273 \end_layout
26274
26275 \begin_layout Subsection
26276 \SpecialChar LyX
26277  and knitr/Sweave
26278 \end_layout
26279
26280 \begin_layout Standard
26281 Support for 
26282 \family sans
26283 knitr
26284 \family default
26285  and 
26286 \family sans
26287 Sweave
26288 \family default
26289  is documented in the 
26290 \emph on
26291 knitr.lyx
26292 \emph default
26293  example file and in the Sweave manual (menu 
26294 \family sans
26295 Help\SpecialChar menuseparator
26296 Specific Manuals
26297 \family default
26298 ).
26299 \end_layout
26300
26301 \begin_layout Chapter
26302 Special features
26303 \end_layout
26304
26305 \begin_layout Standard
26306 You can do everything with \SpecialChar LyX
26307  that you can do with \SpecialChar LaTeX
26308 .
26309  However, \SpecialChar LyX
26310  cannot support every \SpecialChar LaTeX
26311  feature directly.
26312  But you can always use \SpecialChar TeX
26313  Code.
26314  This chapter shows you some more special things you might want to use.
26315  For other special things you can do with figures, tables, floats, boxes
26316  and notes, have a look at the 
26317 \emph on
26318 Embedded
26319 \begin_inset space ~
26320 \end_inset
26321
26322 Objects
26323 \emph default
26324  manual.
26325 \end_layout
26326
26327 \begin_layout Section
26328 Multiple Text Columns
26329 \end_layout
26330
26331 \begin_layout Standard
26332 This feature is independent of the option 
26333 \family sans
26334 Two-column document
26335 \family default
26336  in the document settings under 
26337 \family sans
26338 Text Layout
26339 \family default
26340 .
26341  If you want to have 2
26342 \begin_inset space ~
26343 \end_inset
26344
26345 columns for the whole document, it is recommended to use the 
26346 \family sans
26347 Two-column document
26348 \family default
26349  option.
26350  For all other cases use this feature.
26351 \end_layout
26352
26353 \begin_layout Standard
26354 To use multiple text columns in your document, you have to load the module
26355  
26356 \family sans
26357 Multiple Columns
26358 \family default
26359  (menu 
26360 \family sans
26361 Document\SpecialChar menuseparator
26362 Settings\SpecialChar menuseparator
26363 Modules
26364 \family default
26365 ) and must have the \SpecialChar LaTeX
26366 -package 
26367 \change_deleted -712698321 1501235255
26368 multicol
26369 \change_inserted -712698321 1501235255
26370
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375
26376 \change_inserted -712698321 1501235255
26377 multicol
26378 \change_unchanged
26379
26380 \end_layout
26381
26382 \end_inset
26383
26384
26385 \change_unchanged
26386  installed.
26387 \end_layout
26388
26389 \begin_layout Standard
26390 Footnotes within multiple columns will be placed at the bottom of the page
26391  and not under each column.
26392  Within the different columns you can use everything, with the limitation
26393  that for floats you need to use the float option 
26394 \family sans
26395 Span columns
26396 \family default
26397 .
26398 \end_layout
26399
26400 \begin_layout Subsection
26401 Basics
26402 \end_layout
26403
26404 \begin_layout Standard
26405 If you want to have 2
26406 \begin_inset space ~
26407 \end_inset
26408
26409 columns in your text, insert a multicolumn inset via the menu 
26410 \family sans
26411 Insert\SpecialChar menuseparator
26412 Custom
26413 \begin_inset space ~
26414 \end_inset
26415
26416 Insets\SpecialChar menuseparator
26417 Multiple
26418 \begin_inset space ~
26419 \end_inset
26420
26421 Columns
26422 \family default
26423  where the columns should start.
26424  Write all text that should be printed in 2
26425 \begin_inset space ~
26426 \end_inset
26427
26428 columns into this inset.
26429 \end_layout
26430
26431 \begin_layout Standard
26432 Here is an example:
26433 \end_layout
26434
26435 \begin_layout Standard
26436 \noindent
26437 \begin_inset Flex Multiple Columns
26438 status open
26439
26440 \begin_layout Plain Layout
26441 \noindent
26442
26443 \series bold
26444 \size small
26445 The Adventure of the Empty House
26446 \series default
26447
26448 \begin_inset Newline newline
26449 \end_inset
26450
26451 by Sir Arthur Conan Doyle
26452 \end_layout
26453
26454 \begin_layout Plain Layout
26455
26456 \size small
26457 It was in the spring of the year 1894 that all London was interested, and
26458  the fashionable world dismayed, by the murder of the Honourable Ronald
26459  Adair under most unusual and inexplicable circumstances.
26460  The public has already learned those particulars of the crime which came
26461  out in the police investigation, but a good deal was suppressed upon that
26462  occasion, since the case for the prosecution was so overwhelmingly strong
26463  that it was not necessary to bring forward all the facts.
26464  Only now, at the end of nearly ten years, am I allowed to supply those
26465  missing links which make up the whole of that remarkable chain.
26466  The crime was of interest in itself, but that interest was as nothing to
26467  me compared to the inconceivable sequel, which afforded me the greatest
26468  shock and surprise of any event in my adventurous life.
26469  Even now, after this long interval, I find myself thrilling as I think
26470  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26471 ty which utterly submerged my mind.
26472  Let me say to that public, which has shown some interest in those glimpses
26473  which I have occasionally given them of the thoughts and actions of a very
26474  remarkable man, that they are not to blame me if I have not shared my knowledge
26475  with them, for I should have considered it my first duty to do so, had
26476  I not been barred by a positive prohibition from his own lips, which was
26477  only withdrawn upon the third of last month.
26478 \end_layout
26479
26480 \end_inset
26481
26482
26483 \end_layout
26484
26485 \begin_layout Standard
26486 To get 3 or more columns, set the cursor into the multicolumn inset and
26487  use the menu 
26488 \family sans
26489 Insert\SpecialChar menuseparator
26490 Number
26491 \begin_inset space ~
26492 \end_inset
26493
26494 of
26495 \begin_inset space ~
26496 \end_inset
26497
26498 Columns
26499 \family default
26500 .
26501  The number of the desired columns is written into that inset (for 3
26502 \begin_inset space ~
26503 \end_inset
26504
26505 columns write 
26506 \begin_inset Quotes eld
26507 \end_inset
26508
26509 3
26510 \begin_inset Quotes erd
26511 \end_inset
26512
26513 ).
26514 \begin_inset Newline newline
26515 \end_inset
26516
26517 Here is an example with 3
26518 \begin_inset space ~
26519 \end_inset
26520
26521 columns:
26522 \end_layout
26523
26524 \begin_layout Standard
26525 \begin_inset Flex Multiple Columns
26526 status open
26527
26528 \begin_layout Plain Layout
26529
26530 \size footnotesize
26531 \begin_inset Argument 1
26532 status open
26533
26534 \begin_layout Plain Layout
26535 3
26536 \end_layout
26537
26538 \end_inset
26539
26540 It can be imagined that my close intimacy with Sherlock Holmes had interested
26541  me deeply in crime, and that after his disappearance I never failed to
26542  read with care the various problems which came before the public.
26543  And I even attempted, more than once, for my own private satisfaction,
26544  to employ his methods in their solution, though with indifferent success.
26545  There was none, however, which appealed to me like this tragedy of Ronald
26546  Adair.
26547  As I read the evidence at the inquest, which led up to a verdict of willful
26548  murder against some person or persons unknown, I realized more clearly
26549  than I had ever done the loss which the community had sustained by the
26550  death of Sherlock Holmes.
26551  There were points about this strange business which would, I was sure,
26552  have specially appealed to him, and the efforts of the police would have
26553  been supplemented, or more probably anticipated, by the trained observation
26554  and the alert mind of the first criminal agent in Europe.
26555  All day, as I drove upon my round, I turned over the case in my mind and
26556  found no explanation which appeared to me to be adequate.
26557  At the risk of telling a twice-told tale, I will recapitulate the facts
26558  as they were known to the public at the conclusion of the inquest.
26559 \end_layout
26560
26561 \end_inset
26562
26563
26564 \end_layout
26565
26566 \begin_layout Standard
26567 You can have up to 10
26568 \begin_inset space ~
26569 \end_inset
26570
26571 columns if you want to, but that might not be very pleasant for the readers
26572  of your document.
26573 \end_layout
26574
26575 \begin_layout Standard
26576 \begin_inset Newpage newpage
26577 \end_inset
26578
26579
26580 \end_layout
26581
26582 \begin_layout Subsection
26583 Columns inside Columns
26584 \end_layout
26585
26586 \begin_layout Standard
26587 You can also have columns inside columns:
26588 \end_layout
26589
26590 \begin_layout Standard
26591 \begin_inset Flex Multiple Columns
26592 status open
26593
26594 \begin_layout Plain Layout
26595
26596 \size footnotesize
26597 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26598  at that time governor of one of the Australian colonies.
26599  Adair's mother had returned from Australia to undergo the operation for
26600  cataract, and she, her son Ronald, and her daughter Hilda were living together
26601  at 427 Park Lane.
26602 \end_layout
26603
26604 \begin_layout Plain Layout
26605 \begin_inset Flex Multiple Columns
26606 status open
26607
26608 \begin_layout Plain Layout
26609
26610 \size footnotesize
26611 The youth moved in the best society–had, so far as was known, no enemies
26612  and no particular vices.
26613  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26614  had been broken off by mutual consent some months before, and there was
26615  no sign that it had left any very profound feeling behind it.
26616  For the rest {sic} the man's life moved in a narrow and conventional circle,
26617  for his habits were quiet and his nature unemotional.
26618  Yet it was upon this easy-going young aristocrat that death came, in most
26619  strange and unexpected form, between the hours of ten and eleven-twenty
26620  on the night of March 30, 1894.
26621 \end_layout
26622
26623 \end_inset
26624
26625
26626 \end_layout
26627
26628 \begin_layout Plain Layout
26629
26630 \size footnotesize
26631 Ronald Adair was fond of cards–playing continually, but never for such stakes
26632  as would hurt him.
26633  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26634  It was shown that, after dinner on the day of his death, he had played
26635  a rubber of whist at the latter club.
26636  He had also played there in the afternoon.
26637
26638 \size default
26639  
26640 \size footnotesize
26641 The evidence of those who had played with him– Mr.
26642  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
26643  and that there was a fairly equal fall of the cards.
26644  Adair might have lost five pounds, but not more.
26645  His fortune was a considerable one, and such a loss could not in any way
26646  affect him.
26647  He had played nearly every day at one club or other, but he was a cautious
26648  player, and usually rose a winner.
26649  It came out in evidence that, in partnership with Colonel Moran, he had
26650  actually won as much as four hundred and twenty pounds in a sitting, some
26651  weeks before, from Godfrey Milner and Lord Balmoral.
26652  So much for his recent history as it came out at the inquest.
26653 \end_layout
26654
26655 \end_inset
26656
26657
26658 \end_layout
26659
26660 \begin_layout Subsection
26661 Advanced Examples
26662 \end_layout
26663
26664 \begin_layout Standard
26665 The examples in this section show some more special features of multiple
26666  columns.
26667 \end_layout
26668
26669 \begin_layout Standard
26670 For more features of multiple columns, have a look at the 
26671 \change_deleted -712698321 1501236578
26672 documentation
26673 \change_inserted -712698321 1501236578
26674
26675 \begin_inset CommandInset href
26676 LatexCommand href
26677 name "documentation"
26678 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26679 literal "false"
26680
26681 \end_inset
26682
26683
26684 \change_unchanged
26685  of the \SpecialChar LaTeX
26686 -package 
26687 \change_deleted -712698321 1501235271
26688 multicol
26689 \change_inserted -712698321 1501235271
26690
26691 \begin_inset Flex Code
26692 status collapsed
26693
26694 \begin_layout Plain Layout
26695
26696 \change_inserted -712698321 1501235271
26697 multicol
26698 \change_unchanged
26699
26700 \end_layout
26701
26702 \end_inset
26703
26704
26705 \change_deleted -712698321 1501236609
26706
26707 \begin_inset CommandInset citation
26708 LatexCommand cite
26709 key "multicol"
26710 literal "true"
26711
26712 \end_inset
26713
26714
26715 \change_unchanged
26716 .
26717 \end_layout
26718
26719 \begin_layout Subsubsection
26720 Preface
26721 \end_layout
26722
26723 \begin_layout Standard
26724 To add a preface text for multiple columns, set the cursor into the multicolumn
26725  inset and use the menu 
26726 \family sans
26727 Insert\SpecialChar menuseparator
26728 Preface
26729 \family default
26730 .
26731  Write your preface text into that inset.
26732 \begin_inset Newline newline
26733 \end_inset
26734
26735 This is an example with some preface text:
26736 \end_layout
26737
26738 \begin_layout Standard
26739 \begin_inset VSpace bigskip
26740 \end_inset
26741
26742
26743 \end_layout
26744
26745 \begin_layout Standard
26746 \begin_inset Flex Multiple Columns
26747 status open
26748
26749 \begin_layout Plain Layout
26750 \begin_inset Argument 2
26751 status open
26752
26753 \begin_layout Plain Layout
26754 And the story continues and continues and continues and continues\SpecialChar ldots
26755
26756 \end_layout
26757
26758 \end_inset
26759
26760
26761 \size small
26762 On the evening of the crime, he returned from the club exactly at ten.
26763  His mother and sister were out spending the evening with a relation.
26764  The servant deposed that she heard him enter the front room on the second
26765  floor, generally used as his sitting-room.
26766  She had lit a fire there, and as it smoked she had opened the window.
26767  No sound was heard from the room until eleven-twenty, the hour of the return
26768  of Lady Maynooth and her daughter.
26769  Desiring to say good-night, she attempted to enter her son's room.
26770  The door was locked on the inside, and no answer could be got to their
26771  cries and knocking.
26772  Help was obtained, and the door forced.
26773  The unfortunate young man was found lying near the table.
26774  His head had been horribly mutilated by an expanding revolver bullet, but
26775  no weapon of any sort was to be found in the room.
26776 \end_layout
26777
26778 \end_inset
26779
26780
26781 \end_layout
26782
26783 \begin_layout Standard
26784 You can also use a section heading as the preface if you use a section command
26785  as \SpecialChar TeX
26786  Code.
26787  For example the command
26788 \end_layout
26789
26790 \begin_layout LyX-Code
26791
26792 \backslash
26793 subsection{subsection title}
26794 \end_layout
26795
26796 \begin_layout Standard
26797 creates a subsection.
26798  In this example the preface is a subsubsection:
26799 \end_layout
26800
26801 \begin_layout Standard
26802 \begin_inset Flex Multiple Columns
26803 status open
26804
26805 \begin_layout Plain Layout
26806 \begin_inset Argument 2
26807 status open
26808
26809 \begin_layout Plain Layout
26810 \begin_inset ERT
26811 status collapsed
26812
26813 \begin_layout Plain Layout
26814
26815
26816 \backslash
26817 subsubsection{
26818 \end_layout
26819
26820 \end_inset
26821
26822 This is a subsubsection heading as a preface
26823 \begin_inset ERT
26824 status collapsed
26825
26826 \begin_layout Plain Layout
26827
26828 }
26829 \end_layout
26830
26831 \end_inset
26832
26833
26834 \end_layout
26835
26836 \end_inset
26837
26838
26839 \size small
26840 A minute examination of the circumstances served only to make the case more
26841  complex.
26842  In the first place, no reason could be given why the young man should have
26843  fastened the door upon the inside.
26844  There was the possibility that the murderer had done this, and had afterwards
26845  escaped by the window.
26846  The drop was at least twenty feet, however, and a bed of crocuses in full
26847  bloom lay beneath.
26848  Neither the flowers nor the earth showed any sign of having been disturbed,
26849  nor were there any marks upon the narrow strip of grass which separated
26850  the house from the road.
26851  Apparently, therefore, it was the young man himself who had fastened the
26852  door.
26853  But how did he come by his death? No one could have climbed up to the window
26854  without leaving traces.
26855  Suppose a man had fired through the window, he would indeed be a remarkable
26856  shot who could with a revolver inflict so deadly a wound.
26857  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26858  a hundred yards of the house.
26859  No one had heard a shot.
26860 \end_layout
26861
26862 \end_inset
26863
26864
26865 \end_layout
26866
26867 \begin_layout Standard
26868 If there is less vertical space than 6
26869 \begin_inset space ~
26870 \end_inset
26871
26872 text lines is left on the page at the beginning of the multiple columns,
26873  a page break will be inserted before the multiple columns.
26874  Depending on the number of lines of the preface text, you might want to
26875  change this space.
26876  This is done by setting the cursor into the mulitcolumn inset behind the
26877  preface (if there is any) and using the menu 
26878 \family sans
26879 Insert\SpecialChar menuseparator
26880 Space
26881 \begin_inset space ~
26882 \end_inset
26883
26884 Before
26885 \begin_inset space ~
26886 \end_inset
26887
26888 Page
26889 \begin_inset space ~
26890 \end_inset
26891
26892 Break
26893 \family default
26894 .
26895  Insert into that inset the amount of space like e.
26896 \begin_inset space \thinspace{}
26897 \end_inset
26898
26899 g.
26900 \begin_inset space \space{}
26901 \end_inset
26902
26903
26904 \begin_inset Quotes eld
26905 \end_inset
26906
26907 5cm
26908 \begin_inset Quotes erd
26909 \end_inset
26910
26911 .
26912 \begin_inset Newline newline
26913 \end_inset
26914
26915 In this example the space is set to 7
26916 \begin_inset space ~
26917 \end_inset
26918
26919 text lines by using 
26920 \change_deleted -712698321 1501235295
26921
26922 \begin_inset Quotes eld
26923 \end_inset
26924
26925 7
26926 \backslash
26927 baselineskip
26928 \change_inserted -712698321 1501235293
26929
26930 \begin_inset Flex Code
26931 status collapsed
26932
26933 \begin_layout Plain Layout
26934
26935 \change_inserted -712698321 1501235293
26936 7
26937 \backslash
26938 baselineskip
26939 \change_unchanged
26940
26941 \end_layout
26942
26943 \end_inset
26944
26945
26946 \change_deleted -712698321 1501235296
26947
26948 \begin_inset Quotes erd
26949 \end_inset
26950
26951
26952 \change_unchanged
26953  (where the command 
26954 \change_deleted -712698321 1501235285
26955
26956 \backslash
26957 baselineskip
26958 \change_inserted -712698321 1501235285
26959
26960 \begin_inset Flex Code
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964
26965 \change_inserted -712698321 1501235285
26966
26967 \backslash
26968 baselineskip
26969 \change_unchanged
26970
26971 \end_layout
26972
26973 \end_inset
26974
26975
26976 \change_unchanged
26977  needs to be inserted as \SpecialChar TeX
26978  code):
26979 \end_layout
26980
26981 \begin_layout Standard
26982 \begin_inset Flex Multiple Columns
26983 status open
26984
26985 \begin_layout Plain Layout
26986 \begin_inset Argument 3
26987 status open
26988
26989 \begin_layout Plain Layout
26990 7
26991 \begin_inset ERT
26992 status collapsed
26993
26994 \begin_layout Plain Layout
26995
26996
26997 \backslash
26998 baselineskip
26999 \end_layout
27000
27001 \end_inset
27002
27003
27004 \end_layout
27005
27006 \end_inset
27007
27008
27009 \size small
27010 On the evening of the crime, he returned from the club exactly at ten.
27011  His mother and sister were out spending the evening with a relation.
27012  The servant deposed that she heard him enter the front room on the second
27013  floor, generally used as his sitting-room.
27014  She had lit a fire there, and as it smoked she had opened the window.
27015  No sound was heard from the room until eleven-twenty, the hour of the return
27016  of Lady Maynooth and her daughter.
27017  Desiring to say good-night, she attempted to enter her son's room.
27018  The door was locked on the inside, and no answer could be got to their
27019  cries and knocking.
27020  Help was obtained, and the door forced.
27021  The unfortunate young man was found lying near the table.
27022  His head had been horribly mutilated by an expanding revolver bullet, but
27023  no weapon of any sort was to be found in the room.
27024 \end_layout
27025
27026 \end_inset
27027
27028
27029 \end_layout
27030
27031 \begin_layout Subsubsection
27032 Surrounding Space
27033 \end_layout
27034
27035 \begin_layout Standard
27036 The amount of space before and after multiple columns can be changed by
27037  changing the length 
27038 \change_deleted -712698321 1501235307
27039
27040 \backslash
27041 multicolsep
27042 \change_inserted -712698321 1501235307
27043
27044 \begin_inset Flex Code
27045 status collapsed
27046
27047 \begin_layout Plain Layout
27048
27049 \change_inserted -712698321 1501235307
27050
27051 \backslash
27052 multicolsep
27053 \change_unchanged
27054
27055 \end_layout
27056
27057 \end_inset
27058
27059
27060 \change_unchanged
27061 .
27062  For example the command
27063 \end_layout
27064
27065 \begin_layout LyX-Code
27066
27067 \backslash
27068 setlength{
27069 \backslash
27070 multicolsep}{3cm}
27071 \end_layout
27072
27073 \begin_layout Standard
27074 in \SpecialChar TeX
27075  Code changes its value to 3
27076 \begin_inset space \thinspace{}
27077 \end_inset
27078
27079 cm.
27080  The change must be made before the multiple columns' start.
27081  The predefined value is 13
27082 \begin_inset space \thinspace{}
27083 \end_inset
27084
27085 pt.
27086 \end_layout
27087
27088 \begin_layout Standard
27089 For this example 
27090 \change_deleted -712698321 1501235314
27091
27092 \backslash
27093 multicolsep
27094 \change_inserted -712698321 1501235315
27095
27096 \begin_inset Flex Code
27097 status collapsed
27098
27099 \begin_layout Plain Layout
27100
27101 \change_inserted -712698321 1501235315
27102
27103 \backslash
27104 multicolsep
27105 \change_unchanged
27106
27107 \end_layout
27108
27109 \end_inset
27110
27111
27112 \change_unchanged
27113  was set to 2.5
27114 \begin_inset space \thinspace{}
27115 \end_inset
27116
27117 cm:
27118 \end_layout
27119
27120 \begin_layout Standard
27121 \begin_inset ERT
27122 status open
27123
27124 \begin_layout Plain Layout
27125
27126
27127 \backslash
27128 setlength{
27129 \backslash
27130 multicolsep}{2.5cm}
27131 \end_layout
27132
27133 \end_inset
27134
27135
27136 \end_layout
27137
27138 \begin_layout Standard
27139 \begin_inset Flex Multiple Columns
27140 status open
27141
27142 \begin_layout Plain Layout
27143
27144 \size small
27145 All day I turned these facts over in my mind, endeavouring to hit upon some
27146  theory which could reconcile them all, and to find that line of least resistanc
27147 e which my poor friend had declared to be the starting-point of every investigat
27148 ion.
27149  I confess that I made little progress.
27150  In the evening I strolled across the Park, and found myself about six o'clock
27151  at the Oxford Street end of Park Lane.
27152  A group of loafers upon the pavements, all staring up at a particular window,
27153  directed me to the house which I had come to see.
27154  A tall, thin man with coloured glasses, whom I strongly suspected of being
27155  a plain-clothes detective, was pointing out some theory of his own, while
27156  the others crowded round to listen to what he said.
27157  I got as near him as I could, but his observations seemed to me to be absurd,
27158  so I withdrew again in some disgust.
27159  As I did so I struck against an elderly, deformed man, who had been behind
27160  me, and I knocked down several books which he was carrying.
27161 \end_layout
27162
27163 \end_inset
27164
27165
27166 \end_layout
27167
27168 \begin_layout Standard
27169 \begin_inset Note Greyedout
27170 status open
27171
27172 \begin_layout Plain Layout
27173
27174 \series bold
27175 Note:
27176 \series default
27177  The values you set with 
27178 \change_inserted -712698321 1501235328
27179
27180 \begin_inset Flex Code
27181 status collapsed
27182
27183 \begin_layout Plain Layout
27184
27185 \change_inserted -712698321 1501235333
27186
27187 \backslash
27188 setlength
27189 \change_unchanged
27190
27191 \end_layout
27192
27193 \end_inset
27194
27195
27196 \change_deleted -712698321 1501235331
27197
27198 \series bold
27199
27200 \backslash
27201 setlength
27202 \change_unchanged
27203
27204 \series default
27205  will be used for all following multiple columns until you change them again.
27206 \end_layout
27207
27208 \end_inset
27209
27210
27211 \end_layout
27212
27213 \begin_layout Standard
27214 \begin_inset ERT
27215 status collapsed
27216
27217 \begin_layout Plain Layout
27218
27219
27220 \backslash
27221 setlength{
27222 \backslash
27223 multicolsep}{13pt}
27224 \end_layout
27225
27226 \end_inset
27227
27228
27229 \begin_inset Note Note
27230 status collapsed
27231
27232 \begin_layout Plain Layout
27233 go back to the default
27234 \end_layout
27235
27236 \end_inset
27237
27238
27239 \end_layout
27240
27241 \begin_layout Standard
27242 \begin_inset Newpage newpage
27243 \end_inset
27244
27245
27246 \end_layout
27247
27248 \begin_layout Subsubsection
27249 Column Breaks
27250 \end_layout
27251
27252 \begin_layout Standard
27253 A column break can be forced by inserting the command 
27254 \change_deleted -712698321 1501235399
27255
27256 \backslash
27257 columnbreak{}
27258 \change_inserted -712698321 1501235399
27259
27260 \begin_inset Flex Code
27261 status collapsed
27262
27263 \begin_layout Plain Layout
27264
27265 \change_inserted -712698321 1501235399
27266
27267 \backslash
27268 columnbreak{}
27269 \change_unchanged
27270
27271 \end_layout
27272
27273 \end_inset
27274
27275
27276 \change_unchanged
27277  as \SpecialChar TeX
27278  Code to that position in the text where the column should be broken.
27279  Note that this leads in most cases to whitespace in the text.
27280 \begin_inset Newline newline
27281 \end_inset
27282
27283 Here is an example:
27284 \end_layout
27285
27286 \begin_layout Standard
27287 \begin_inset Flex Multiple Columns
27288 status open
27289
27290 \begin_layout Plain Layout
27291
27292 \size small
27293 \begin_inset Quotes eld
27294 \end_inset
27295
27296 You're surprised to see me, sir,
27297 \begin_inset Quotes erd
27298 \end_inset
27299
27300  said he, in a strange, croaking voice.
27301 \end_layout
27302
27303 \begin_layout Plain Layout
27304
27305 \size small
27306 I acknowledged that I was.
27307 \end_layout
27308
27309 \begin_layout Plain Layout
27310
27311 \size small
27312 \begin_inset Quotes eld
27313 \end_inset
27314
27315 Well, I've a conscience, sir, and when I chanced to see you go into this
27316  house, as I came hobbling after you, I thought to myself, I'll just step
27317  in and see that kind gentleman, and tell him that if I was a bit gruff
27318  in my manner there was not any harm meant, and that I am much obliged to
27319  him for picking up my books.
27320 \begin_inset Quotes erd
27321 \end_inset
27322
27323
27324 \end_layout
27325
27326 \begin_layout Plain Layout
27327
27328 \size small
27329 \begin_inset Quotes eld
27330 \end_inset
27331
27332 You make too much of a trifle,
27333 \begin_inset Quotes erd
27334 \end_inset
27335
27336  said I.
27337  
27338 \begin_inset Quotes eld
27339 \end_inset
27340
27341 May I ask how you knew who I was?
27342 \begin_inset Quotes erd
27343 \end_inset
27344
27345  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
27346 \begin_inset ERT
27347 status collapsed
27348
27349 \begin_layout Plain Layout
27350
27351
27352 \backslash
27353 columnbreak{}
27354 \end_layout
27355
27356 \end_inset
27357
27358
27359 \end_layout
27360
27361 \begin_layout Plain Layout
27362
27363 \size small
27364 \begin_inset Quotes eld
27365 \end_inset
27366
27367 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27368  you'll find my little bookshop at the corner of Church Street, and very
27369  happy to see you, I am sure.
27370  Maybe you collect yourself, sir.
27371  Here's 
27372 \noun on
27373 British
27374 \begin_inset space ~
27375 \end_inset
27376
27377 Birds
27378 \noun default
27379 , and 
27380 \noun on
27381 Catullus
27382 \noun default
27383 , and 
27384 \noun on
27385 The Holy War
27386 \noun default
27387 –a bargain, every one of them.
27388  With five volumes you could just fill that gap on that second shelf.
27389  It looks untidy, does it not, sir?
27390 \begin_inset Quotes erd
27391 \end_inset
27392
27393
27394 \end_layout
27395
27396 \end_inset
27397
27398
27399 \end_layout
27400
27401 \begin_layout Subsubsection
27402 Column Separation
27403 \end_layout
27404
27405 \begin_layout Standard
27406 The width of the columns is automatically calculated, but you can modify
27407  the space between the columns.
27408  This is done by changing the length 
27409 \change_deleted -712698321 1501235412
27410
27411 \backslash
27412 columnsep
27413 \change_inserted -712698321 1501235412
27414
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419
27420 \change_inserted -712698321 1501235412
27421
27422 \backslash
27423 columnsep
27424 \change_unchanged
27425
27426 \end_layout
27427
27428 \end_inset
27429
27430
27431 \change_unchanged
27432 .
27433  Its predefined value is 10
27434 \begin_inset space \thinspace{}
27435 \end_inset
27436
27437 pt.
27438  Here is an example where 
27439 \change_deleted -712698321 1501235418
27440
27441 \backslash
27442 columnsep
27443 \change_inserted -712698321 1501235418
27444
27445 \begin_inset Flex Code
27446 status collapsed
27447
27448 \begin_layout Plain Layout
27449
27450 \change_inserted -712698321 1501235418
27451
27452 \backslash
27453 columnsep
27454 \change_unchanged
27455
27456 \end_layout
27457
27458 \end_inset
27459
27460
27461 \change_unchanged
27462  is set to 3
27463 \begin_inset space \thinspace{}
27464 \end_inset
27465
27466 cm:
27467 \end_layout
27468
27469 \begin_layout Standard
27470 \begin_inset ERT
27471 status open
27472
27473 \begin_layout Plain Layout
27474
27475
27476 \backslash
27477 setlength{
27478 \backslash
27479 columnsep}{3cm}
27480 \end_layout
27481
27482 \end_inset
27483
27484
27485 \end_layout
27486
27487 \begin_layout Standard
27488 \begin_inset Flex Multiple Columns
27489 status open
27490
27491 \begin_layout Plain Layout
27492
27493 \size small
27494 My observations of No.
27495 \begin_inset space \space{}
27496 \end_inset
27497
27498 427 Park Lane did little to clear up the problem in which I was interested.
27499  The house was separated from the street by a low wall and railing, the
27500  whole not more than five feet high.
27501  It was perfectly easy, therefore, for anyone to get into the garden, but
27502  the window was entirely inaccessible, since there was no water pipe or
27503  anything which could help the most active man to climb it.
27504  More puzzled than ever, I retraced my steps to Kensington.
27505  I had not been in my study five minutes when the maid entered to say that
27506  a person desired to see me.
27507  To my astonishment it was none other than my strange old book collector,
27508  his sharp, wizened face peering out from a frame of white hair, and his
27509  precious volumes, a dozen of them at least, wedged under his right arm.
27510 \end_layout
27511
27512 \end_inset
27513
27514
27515 \end_layout
27516
27517 \begin_layout Standard
27518 \begin_inset ERT
27519 status collapsed
27520
27521 \begin_layout Plain Layout
27522
27523
27524 \backslash
27525 setlength{
27526 \backslash
27527 columnsep}{10pt}
27528 \end_layout
27529
27530 \end_inset
27531
27532
27533 \begin_inset Note Note
27534 status collapsed
27535
27536 \begin_layout Plain Layout
27537 go back to the default
27538 \end_layout
27539
27540 \end_inset
27541
27542
27543 \end_layout
27544
27545 \begin_layout Subsubsection
27546 Vertical Lines
27547 \end_layout
27548
27549 \begin_layout Standard
27550 Between the columns a rule with a width of the length 
27551 \change_deleted -712698321 1501235428
27552
27553 \backslash
27554 columnseprule
27555 \change_inserted -712698321 1501235428
27556
27557 \begin_inset Flex Code
27558 status collapsed
27559
27560 \begin_layout Plain Layout
27561
27562 \change_inserted -712698321 1501235428
27563
27564 \backslash
27565 columnseprule
27566 \change_unchanged
27567
27568 \end_layout
27569
27570 \end_inset
27571
27572
27573 \change_unchanged
27574  is placed.
27575  If this rule width is set to 0
27576 \begin_inset space \thinspace{}
27577 \end_inset
27578
27579 pt (this is the default), the rule is suppressed.
27580  In the following example the rule is 2
27581 \begin_inset space \thinspace{}
27582 \end_inset
27583
27584 pt wide:
27585 \end_layout
27586
27587 \begin_layout Standard
27588 \begin_inset ERT
27589 status open
27590
27591 \begin_layout Plain Layout
27592
27593
27594 \backslash
27595 setlength{
27596 \backslash
27597 columnseprule}{2pt}
27598 \end_layout
27599
27600 \end_inset
27601
27602
27603 \end_layout
27604
27605 \begin_layout Standard
27606 \begin_inset Flex Multiple Columns
27607 status open
27608
27609 \begin_layout Plain Layout
27610
27611 \size small
27612 \begin_inset Quotes eld
27613 \end_inset
27614
27615 You're surprised to see me, sir,
27616 \begin_inset Quotes erd
27617 \end_inset
27618
27619  said he, in a strange, croaking voice.
27620 \end_layout
27621
27622 \begin_layout Plain Layout
27623
27624 \size small
27625 I acknowledged that I was.
27626 \end_layout
27627
27628 \begin_layout Plain Layout
27629
27630 \size small
27631 \begin_inset Quotes eld
27632 \end_inset
27633
27634 Well, I've a conscience, sir, and when I chanced to see you go into this
27635  house, as I came hobbling after you, I thought to myself, I'll just step
27636  in and see that kind gentleman, and tell him that if I was a bit gruff
27637  in my manner there was not any harm meant, and that I am much obliged to
27638  him for picking up my books.
27639 \begin_inset Quotes erd
27640 \end_inset
27641
27642
27643 \end_layout
27644
27645 \begin_layout Plain Layout
27646
27647 \size small
27648 \begin_inset Quotes eld
27649 \end_inset
27650
27651 You make too much of a trifle,
27652 \begin_inset Quotes erd
27653 \end_inset
27654
27655  said I.
27656  
27657 \begin_inset Quotes eld
27658 \end_inset
27659
27660 May I ask how you knew who I was?
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664
27665 \end_layout
27666
27667 \begin_layout Plain Layout
27668
27669 \size small
27670 \begin_inset Quotes eld
27671 \end_inset
27672
27673 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27674  you'll find my little bookshop at the corner of Church Street, and very
27675  happy to see you, I am sure.
27676  Maybe you collect yourself, sir.
27677  Here's 
27678 \noun on
27679 British
27680 \begin_inset space ~
27681 \end_inset
27682
27683 Birds
27684 \noun default
27685 , and 
27686 \noun on
27687 Catullus
27688 \noun default
27689 , and 
27690 \noun on
27691 The Holy War
27692 \noun default
27693 –a bargain, every one of them.
27694  With five volumes you could just fill that gap on that second shelf.
27695  It looks untidy, does it not, sir?
27696 \begin_inset Quotes erd
27697 \end_inset
27698
27699
27700 \end_layout
27701
27702 \end_inset
27703
27704
27705 \end_layout
27706
27707 \begin_layout Standard
27708 \begin_inset VSpace defskip
27709 \end_inset
27710
27711
27712 \end_layout
27713
27714 \begin_layout Standard
27715 The rule can be colored by redefining the command 
27716 \change_deleted -712698321 1501235439
27717
27718 \backslash
27719 columnseprulecolor
27720 \change_inserted -712698321 1501235439
27721
27722 \begin_inset Flex Code
27723 status collapsed
27724
27725 \begin_layout Plain Layout
27726
27727 \change_inserted -712698321 1501235439
27728
27729 \backslash
27730 columnseprulecolor
27731 \change_unchanged
27732
27733 \end_layout
27734
27735 \end_inset
27736
27737
27738 \change_unchanged
27739 .
27740  This is done by inserting the command
27741 \change_deleted -712698321 1501235443
27742
27743 \begin_inset Newline newline
27744 \end_inset
27745
27746
27747 \change_inserted -712698321 1501235444
27748
27749 \end_layout
27750
27751 \begin_layout LyX-Code
27752
27753 \backslash
27754 renewcommand{
27755 \backslash
27756 columnseprulecolor}{
27757 \backslash
27758 color{red}}
27759 \change_deleted -712698321 1501235445
27760
27761 \begin_inset Newline newline
27762 \end_inset
27763
27764
27765 \change_inserted -712698321 1501235446
27766
27767 \end_layout
27768
27769 \begin_layout Standard
27770 as \SpecialChar TeX
27771  Code before the multicolumn inset.
27772  Replace 
27773 \change_deleted -712698321 1501235460
27774 red
27775 \change_inserted -712698321 1501235457
27776
27777 \begin_inset Flex Code
27778 status collapsed
27779
27780 \begin_layout Plain Layout
27781
27782 \change_inserted -712698321 1501235462
27783 red
27784 \change_unchanged
27785
27786 \end_layout
27787
27788 \end_inset
27789
27790
27791 \change_unchanged
27792  in this command by a color of your choice.
27793  You can use all pre- and self-defined colors.
27794  See the 
27795 \emph on
27796 EmbeddedObjects
27797 \emph default
27798  manual, section 
27799 \emph on
27800 Colored
27801 \begin_inset space ~
27802 \end_inset
27803
27804 Tables
27805 \emph default
27806  for more information about pre- and self-defined colors.
27807  To go back to the default color insert the command
27808 \change_inserted -712698321 1501235474
27809
27810 \end_layout
27811
27812 \begin_layout LyX-Code
27813
27814 \change_deleted -712698321 1501235472
27815 \begin_inset Newline newline
27816 \end_inset
27817
27818
27819 \change_unchanged
27820
27821 \backslash
27822 renewcommand{
27823 \backslash
27824 columnseprulecolor}{
27825 \backslash
27826 normalcolor}
27827 \change_inserted -712698321 1501235475
27828
27829 \end_layout
27830
27831 \begin_layout Standard
27832
27833 \change_deleted -712698321 1501235473
27834 \begin_inset Newline newline
27835 \end_inset
27836
27837
27838 \change_unchanged
27839 Here is the example with a cyan rule and 1
27840 \begin_inset space \thinspace{}
27841 \end_inset
27842
27843 cm column separation:
27844 \end_layout
27845
27846 \begin_layout Standard
27847 \begin_inset ERT
27848 status open
27849
27850 \begin_layout Plain Layout
27851
27852
27853 \backslash
27854 setlength{
27855 \backslash
27856 columnsep}{1cm}
27857 \end_layout
27858
27859 \begin_layout Plain Layout
27860
27861
27862 \backslash
27863 renewcommand{
27864 \backslash
27865 columnseprulecolor}{
27866 \backslash
27867 color{cyan}}
27868 \end_layout
27869
27870 \end_inset
27871
27872
27873 \end_layout
27874
27875 \begin_layout Standard
27876 \begin_inset Flex Multiple Columns
27877 status open
27878
27879 \begin_layout Plain Layout
27880
27881 \size small
27882 \begin_inset Quotes eld
27883 \end_inset
27884
27885 You're surprised to see me, sir,
27886 \begin_inset Quotes erd
27887 \end_inset
27888
27889  said he, in a strange, croaking voice.
27890 \end_layout
27891
27892 \begin_layout Plain Layout
27893
27894 \size small
27895 I acknowledged that I was.
27896 \end_layout
27897
27898 \begin_layout Plain Layout
27899
27900 \size small
27901 \begin_inset Quotes eld
27902 \end_inset
27903
27904 Well, I've a conscience, sir, and when I chanced to see you go into this
27905  house, as I came hobbling after you, I thought to myself, I'll just step
27906  in and see that kind gentleman, and tell him that if I was a bit gruff
27907  in my manner there was not any harm meant, and that I am much obliged to
27908  him for picking up my books.
27909 \begin_inset Quotes erd
27910 \end_inset
27911
27912
27913 \end_layout
27914
27915 \begin_layout Plain Layout
27916
27917 \size small
27918 \begin_inset Quotes eld
27919 \end_inset
27920
27921 You make too much of a trifle,
27922 \begin_inset Quotes erd
27923 \end_inset
27924
27925  said I.
27926  
27927 \begin_inset Quotes eld
27928 \end_inset
27929
27930 May I ask how you knew who I was?
27931 \begin_inset Quotes erd
27932 \end_inset
27933
27934
27935 \end_layout
27936
27937 \begin_layout Plain Layout
27938
27939 \size small
27940 \begin_inset Quotes eld
27941 \end_inset
27942
27943 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27944  you'll find my little bookshop at the corner of Church Street, and very
27945  happy to see you, I am sure.
27946  Maybe you collect yourself, sir.
27947  Here's 
27948 \noun on
27949 British
27950 \begin_inset space ~
27951 \end_inset
27952
27953 Birds
27954 \noun default
27955 , and 
27956 \noun on
27957 Catullus
27958 \noun default
27959 , and 
27960 \noun on
27961 The Holy War
27962 \noun default
27963 –a bargain, every one of them.
27964  With five volumes you could just fill that gap on that second shelf.
27965  It looks untidy, does it not, sir?
27966 \begin_inset Quotes erd
27967 \end_inset
27968
27969
27970 \end_layout
27971
27972 \end_inset
27973
27974
27975 \end_layout
27976
27977 \begin_layout Standard
27978 \begin_inset ERT
27979 status collapsed
27980
27981 \begin_layout Plain Layout
27982
27983
27984 \backslash
27985 setlength{
27986 \backslash
27987 columnseprule}{0pt}
27988 \end_layout
27989
27990 \begin_layout Plain Layout
27991
27992
27993 \backslash
27994 renewcommand{
27995 \backslash
27996 columnseprulecolor}{
27997 \backslash
27998 normalcolor}
27999 \end_layout
28000
28001 \end_inset
28002
28003
28004 \begin_inset Note Note
28005 status collapsed
28006
28007 \begin_layout Plain Layout
28008 go back to the default
28009 \end_layout
28010
28011 \end_inset
28012
28013
28014 \end_layout
28015
28016 \begin_layout Section
28017 Non-standard Paragraph Shapes
28018 \end_layout
28019
28020 \begin_layout Standard
28021 \noindent
28022 \SpecialChar LaTeX
28023  as well as any other text processor uses by default rectangular paragraphs.
28024  For special cases like for example posters, invitation cards or poems you
28025  can modify the paragraph shape to one of your choice.
28026  This can be done by using the \SpecialChar LaTeX
28027 -package 
28028 \change_deleted -712698321 1501236703
28029 shapepar
28030 \change_inserted -712698321 1501236703
28031
28032 \begin_inset Flex Code
28033 status collapsed
28034
28035 \begin_layout Plain Layout
28036 \noindent
28037
28038 \change_inserted -712698321 1501236703
28039 shapepar
28040 \change_unchanged
28041
28042 \end_layout
28043
28044 \end_inset
28045
28046
28047 \change_unchanged
28048  which is loaded by using in the document settings the module 
28049 \family sans
28050 Custom paragraph shapes
28051 \family default
28052 .
28053 \end_layout
28054
28055 \begin_layout Subsection
28056 Predefined shapes
28057 \end_layout
28058
28059 \begin_layout Standard
28060
28061 \series bold
28062 shapepar
28063 \series default
28064  provides the following shapes:
28065 \end_layout
28066
28067 \begin_layout Standard
28068 \begin_inset Tabular
28069 <lyxtabular version="3" rows="13" columns="3">
28070 <features booktabs="true" islongtable="true" longtabularalignment="center">
28071 <column alignment="left" valignment="middle" width="16col%">
28072 <column alignment="left" valignment="middle" width="40col%">
28073 <column alignment="left" valignment="middle" width="35col%">
28074 <row endhead="true">
28075 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28076 \begin_inset Text
28077
28078 \begin_layout Plain Layout
28079
28080 \series bold
28081 \size small
28082 Name
28083 \end_layout
28084
28085 \end_inset
28086 </cell>
28087 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28088 \begin_inset Text
28089
28090 \begin_layout Plain Layout
28091
28092 \series bold
28093 \size small
28094 Description
28095 \end_layout
28096
28097 \end_inset
28098 </cell>
28099 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28100 \begin_inset Text
28101
28102 \begin_layout Plain Layout
28103
28104 \series bold
28105 \size small
28106 Annotation
28107 \end_layout
28108
28109 \end_inset
28110 </cell>
28111 </row>
28112 <row interlinespace="default">
28113 <cell alignment="left" valignment="top" usebox="none">
28114 \begin_inset Text
28115
28116 \begin_layout Plain Layout
28117
28118 \size small
28119 CDlabel
28120 \end_layout
28121
28122 \end_inset
28123 </cell>
28124 <cell alignment="left" valignment="top" usebox="none">
28125 \begin_inset Text
28126
28127 \begin_layout Plain Layout
28128
28129 \size small
28130 Circle with circular hole (in the size of a CD/DVD)
28131 \end_layout
28132
28133 \end_inset
28134 </cell>
28135 <cell alignment="left" valignment="top" usebox="none">
28136 \begin_inset Text
28137
28138 \begin_layout Plain Layout
28139
28140 \size small
28141 Cannot be scaled, take care there is not too much text
28142 \end_layout
28143
28144 \end_inset
28145 </cell>
28146 </row>
28147 <row interlinespace="default">
28148 <cell alignment="left" valignment="top" usebox="none">
28149 \begin_inset Text
28150
28151 \begin_layout Plain Layout
28152
28153 \size small
28154 Circle
28155 \end_layout
28156
28157 \end_inset
28158 </cell>
28159 <cell alignment="left" valignment="top" usebox="none">
28160 \begin_inset Text
28161
28162 \begin_layout Plain Layout
28163
28164 \size small
28165 Circle
28166 \end_layout
28167
28168 \end_inset
28169 </cell>
28170 <cell alignment="left" valignment="top" usebox="none">
28171 \begin_inset Text
28172
28173 \begin_layout Plain Layout
28174
28175 \size small
28176 Fragile, calculation might fail
28177 \end_layout
28178
28179 \end_inset
28180 </cell>
28181 </row>
28182 <row interlinespace="default">
28183 <cell alignment="left" valignment="top" usebox="none">
28184 \begin_inset Text
28185
28186 \begin_layout Plain Layout
28187
28188 \size small
28189 Diamond
28190 \end_layout
28191
28192 \end_inset
28193 </cell>
28194 <cell alignment="left" valignment="top" usebox="none">
28195 \begin_inset Text
28196
28197 \begin_layout Plain Layout
28198
28199 \size small
28200 Rhomboid (symbolizing a 
28201 \begin_inset Quotes eld
28202 \end_inset
28203
28204 diamond
28205 \begin_inset Quotes erd
28206 \end_inset
28207
28208 )
28209 \end_layout
28210
28211 \end_inset
28212 </cell>
28213 <cell alignment="left" valignment="top" usebox="none">
28214 \begin_inset Text
28215
28216 \begin_layout Plain Layout
28217
28218 \size small
28219 -
28220 \end_layout
28221
28222 \end_inset
28223 </cell>
28224 </row>
28225 <row interlinespace="default">
28226 <cell alignment="left" valignment="top" usebox="none">
28227 \begin_inset Text
28228
28229 \begin_layout Plain Layout
28230
28231 \size small
28232 Heart
28233 \end_layout
28234
28235 \end_inset
28236 </cell>
28237 <cell alignment="left" valignment="top" usebox="none">
28238 \begin_inset Text
28239
28240 \begin_layout Plain Layout
28241
28242 \size small
28243 Heart-like shape
28244 \end_layout
28245
28246 \end_inset
28247 </cell>
28248 <cell alignment="left" valignment="top" usebox="none">
28249 \begin_inset Text
28250
28251 \begin_layout Plain Layout
28252
28253 \size small
28254 -
28255 \end_layout
28256
28257 \end_inset
28258 </cell>
28259 </row>
28260 <row interlinespace="default">
28261 <cell alignment="left" valignment="top" usebox="none">
28262 \begin_inset Text
28263
28264 \begin_layout Plain Layout
28265
28266 \size small
28267 Hexagon
28268 \end_layout
28269
28270 \end_inset
28271 </cell>
28272 <cell alignment="left" valignment="top" usebox="none">
28273 \begin_inset Text
28274
28275 \begin_layout Plain Layout
28276
28277 \size small
28278 Hexagon
28279 \end_layout
28280
28281 \end_inset
28282 </cell>
28283 <cell alignment="left" valignment="top" usebox="none">
28284 \begin_inset Text
28285
28286 \begin_layout Plain Layout
28287
28288 \size small
28289 -
28290 \end_layout
28291
28292 \end_inset
28293 </cell>
28294 </row>
28295 <row interlinespace="default">
28296 <cell alignment="left" valignment="top" usebox="none">
28297 \begin_inset Text
28298
28299 \begin_layout Plain Layout
28300
28301 \size small
28302 Nut
28303 \end_layout
28304
28305 \end_inset
28306 </cell>
28307 <cell alignment="left" valignment="top" usebox="none">
28308 \begin_inset Text
28309
28310 \begin_layout Plain Layout
28311
28312 \size small
28313 Nut for bolt (hexagon with circular hole)
28314 \end_layout
28315
28316 \end_inset
28317 </cell>
28318 <cell alignment="left" valignment="top" usebox="none">
28319 \begin_inset Text
28320
28321 \begin_layout Plain Layout
28322
28323 \size small
28324 -
28325 \end_layout
28326
28327 \end_inset
28328 </cell>
28329 </row>
28330 <row interlinespace="default">
28331 <cell alignment="left" valignment="top" usebox="none">
28332 \begin_inset Text
28333
28334 \begin_layout Plain Layout
28335
28336 \size small
28337 Square
28338 \end_layout
28339
28340 \end_inset
28341 </cell>
28342 <cell alignment="left" valignment="top" usebox="none">
28343 \begin_inset Text
28344
28345 \begin_layout Plain Layout
28346
28347 \size small
28348 Square
28349 \end_layout
28350
28351 \end_inset
28352 </cell>
28353 <cell alignment="left" valignment="top" usebox="none">
28354 \begin_inset Text
28355
28356 \begin_layout Plain Layout
28357
28358 \size small
28359 -
28360 \end_layout
28361
28362 \end_inset
28363 </cell>
28364 </row>
28365 <row interlinespace="default">
28366 <cell alignment="left" valignment="top" usebox="none">
28367 \begin_inset Text
28368
28369 \begin_layout Plain Layout
28370
28371 \size small
28372 Star
28373 \end_layout
28374
28375 \end_inset
28376 </cell>
28377 <cell alignment="left" valignment="top" usebox="none">
28378 \begin_inset Text
28379
28380 \begin_layout Plain Layout
28381
28382 \size small
28383 Five-point star
28384 \end_layout
28385
28386 \end_inset
28387 </cell>
28388 <cell alignment="left" valignment="top" usebox="none">
28389 \begin_inset Text
28390
28391 \begin_layout Plain Layout
28392
28393 \size small
28394 -
28395 \end_layout
28396
28397 \end_inset
28398 </cell>
28399 </row>
28400 <row interlinespace="default">
28401 <cell alignment="left" valignment="top" usebox="none">
28402 \begin_inset Text
28403
28404 \begin_layout Plain Layout
28405
28406 \size small
28407 Candle
28408 \end_layout
28409
28410 \end_inset
28411 </cell>
28412 <cell alignment="left" valignment="top" usebox="none">
28413 \begin_inset Text
28414
28415 \begin_layout Plain Layout
28416
28417 \size small
28418 Burning candle
28419 \end_layout
28420
28421 \end_inset
28422 </cell>
28423 <cell alignment="left" valignment="top" usebox="none">
28424 \begin_inset Text
28425
28426 \begin_layout Plain Layout
28427
28428 \size small
28429 -
28430 \end_layout
28431
28432 \end_inset
28433 </cell>
28434 </row>
28435 <row interlinespace="default">
28436 <cell alignment="left" valignment="top" usebox="none">
28437 \begin_inset Text
28438
28439 \begin_layout Plain Layout
28440
28441 \size small
28442 Drop down/up
28443 \end_layout
28444
28445 \end_inset
28446 </cell>
28447 <cell alignment="left" valignment="top" usebox="none">
28448 \begin_inset Text
28449
28450 \begin_layout Plain Layout
28451
28452 \size small
28453 Normal/reversed rain drop
28454 \end_layout
28455
28456 \end_inset
28457 </cell>
28458 <cell alignment="left" valignment="top" usebox="none">
28459 \begin_inset Text
28460
28461 \begin_layout Plain Layout
28462
28463 \size small
28464 Fragile, calculation might fail
28465 \end_layout
28466
28467 \end_inset
28468 </cell>
28469 </row>
28470 <row interlinespace="default">
28471 <cell alignment="left" valignment="top" usebox="none">
28472 \begin_inset Text
28473
28474 \begin_layout Plain Layout
28475
28476 \size small
28477 \SpecialChar TeX
28478
28479 \end_layout
28480
28481 \end_inset
28482 </cell>
28483 <cell alignment="left" valignment="top" usebox="none">
28484 \begin_inset Text
28485
28486 \begin_layout Plain Layout
28487
28488 \size small
28489 The \SpecialChar TeX
28490  logo
28491 \end_layout
28492
28493 \end_inset
28494 </cell>
28495 <cell alignment="left" valignment="top" usebox="none">
28496 \begin_inset Text
28497
28498 \begin_layout Plain Layout
28499
28500 \size small
28501 -
28502 \end_layout
28503
28504 \end_inset
28505 </cell>
28506 </row>
28507 <row interlinespace="default">
28508 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28509 \begin_inset Text
28510
28511 \begin_layout Plain Layout
28512
28513 \size small
28514 Triangle up/down/
28515 \begin_inset Newline newline
28516 \end_inset
28517
28518 left/right
28519 \end_layout
28520
28521 \end_inset
28522 </cell>
28523 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28524 \begin_inset Text
28525
28526 \begin_layout Plain Layout
28527
28528 \size small
28529 Triangles in different orientations
28530 \end_layout
28531
28532 \end_inset
28533 </cell>
28534 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28535 \begin_inset Text
28536
28537 \begin_layout Plain Layout
28538
28539 \size small
28540 -
28541 \end_layout
28542
28543 \end_inset
28544 </cell>
28545 </row>
28546 </lyxtabular>
28547
28548 \end_inset
28549
28550
28551 \end_layout
28552
28553 \begin_layout Standard
28554 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28555 's pull-down box
28556  for environments in the toolbar.
28557 \end_layout
28558
28559 \begin_layout Standard
28560 \begin_inset Newpage newpage
28561 \end_inset
28562
28563
28564 \end_layout
28565
28566 \begin_layout Standard
28567 Here is an example paragraph in the shape of a nut:
28568 \end_layout
28569
28570 \begin_layout Standard
28571 \begin_inset VSpace bigskip
28572 \end_inset
28573
28574
28575 \end_layout
28576
28577 \begin_layout Nut
28578
28579 \lang latin
28580 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28581  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28582  voluptua.
28583  At vero eos et accusam et justo duo dolores et ea rebum.
28584  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28585  sit amet.
28586  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28587  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28588  voluptua.
28589 \end_layout
28590
28591 \begin_layout Standard
28592 \begin_inset VSpace bigskip
28593 \end_inset
28594
28595
28596 \end_layout
28597
28598 \begin_layout Standard
28599 \begin_inset Note Greyedout
28600 status open
28601
28602 \begin_layout Plain Layout
28603
28604 \series bold
28605 Note
28606 \series default
28607 : shapepar paragraphs cannot run over a page break.
28608 \end_layout
28609
28610 \end_inset
28611
28612
28613 \end_layout
28614
28615 \begin_layout Standard
28616 \begin_inset VSpace bigskip
28617 \end_inset
28618
28619
28620 \end_layout
28621
28622 \begin_layout Standard
28623
28624 \change_inserted -712698321 1501236716
28625
28626 \series bold
28627 The package 
28628 \change_deleted -712698321 1501236722
28629
28630 \series default
28631 shapepar
28632 \change_inserted -712698321 1501236723
28633
28634 \begin_inset Flex Code
28635 status collapsed
28636
28637 \begin_layout Plain Layout
28638
28639 \change_inserted -712698321 1501236723
28640 shapepar
28641 \change_unchanged
28642
28643 \end_layout
28644
28645 \end_inset
28646
28647
28648 \change_unchanged
28649  takes care that the shape will always be preserved, no matter how much
28650  text is in the paragraph.
28651  Therefore the paragraph size changes with the amount of contained text.
28652  This can lead to paragraph sizes exceeding the page margins.
28653  To demonstrate the size scaling, here is the same example paragraph but
28654  with twice as much text:
28655 \end_layout
28656
28657 \begin_layout Standard
28658 \begin_inset Newpage newpage
28659 \end_inset
28660
28661
28662 \end_layout
28663
28664 \begin_layout Nut
28665
28666 \lang latin
28667 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28668  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28669  voluptua.
28670  At vero eos et accusam et justo duo dolores et ea rebum.
28671  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28672  sit amet.
28673  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28674  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28675  voluptua.
28676  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28677  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28678  voluptua.
28679  At vero eos et accusam et justo duo dolores et ea rebum.
28680  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28681  sit amet.
28682  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28683  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28684  voluptua.
28685 \end_layout
28686
28687 \begin_layout Standard
28688 \begin_inset VSpace bigskip
28689 \end_inset
28690
28691
28692 \end_layout
28693
28694 \begin_layout Standard
28695 An exception is the shape 
28696 \family sans
28697 CDlabel
28698 \family default
28699 .
28700  It cannot be scaled because it must fit the size of a CD/DVD.
28701  Therefore the amount of text that fits into the shape is limited.
28702 \begin_inset Newline newline
28703 \end_inset
28704
28705 The 
28706 \family sans
28707 drop
28708 \family default
28709  shapes and the 
28710 \family sans
28711 circle
28712 \family default
28713  shape are fragile, meaning that the calculation of their size can fail,
28714  depending on the amount of text.
28715  You will then get the \SpecialChar LaTeX
28716  error 
28717 \begin_inset Quotes eld
28718 \end_inset
28719
28720 Arithmetic overflow
28721 \begin_inset Quotes erd
28722 \end_inset
28723
28724 .
28725  In this case one can try to remove or add some text; if nothing works one
28726  has to use another shape.
28727 \end_layout
28728
28729 \begin_layout Standard
28730 \begin_inset VSpace bigskip
28731 \end_inset
28732
28733
28734 \end_layout
28735
28736 \begin_layout Standard
28737 For shapes with tips you will maybe see that \SpecialChar LaTeX
28738 's hyphenation routine fails
28739  for text in the tips.
28740  Therefore it is often necessary to add hyphenation points 
28741 \family sans
28742 (
28743 \begin_inset Info
28744 type  "shortcut"
28745 arg   "specialchar-insert hyphenation"
28746 \end_inset
28747
28748
28749 \family default
28750 ) to the corresponding text parts.
28751 \end_layout
28752
28753 \begin_layout Standard
28754 \begin_inset VSpace bigskip
28755 \end_inset
28756
28757
28758 \end_layout
28759
28760 \begin_layout Standard
28761 Shapepar paragraphs are either always centered or placed on the page so
28762  that their left border touches the left page margin.
28763  You can therefore not use the paragraph dialog to align such paragraphs.
28764  A solution is to put the paragraph into a minipage or parbox and align
28765  the box.
28766  The problem is hereby to find the right width for the box.
28767  Because if it is too wide and you center the box, the paragraph is not
28768  centered too because it sticks at the left side of the box.
28769  So you might have to play a bit with the width until it fits.
28770  Here are two heart-shaped paragraphs, the first one is not aligned, the
28771  second one is right-aligned:
28772 \end_layout
28773
28774 \begin_layout Standard
28775 \begin_inset Newpage newpage
28776 \end_inset
28777
28778
28779 \end_layout
28780
28781 \begin_layout Heart
28782 \noindent
28783
28784 \lang latin
28785 Lo\SpecialChar softhyphen
28786 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28787  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28788  voluptua.
28789  At vero eos et accusam et justo duo dolores et ea rebum.
28790  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28791  sit amet.
28792 \end_layout
28793
28794 \begin_layout Standard
28795 \begin_inset VSpace bigskip
28796 \end_inset
28797
28798
28799 \end_layout
28800
28801 \begin_layout Standard
28802 \noindent
28803 \align right
28804 \begin_inset Box Frameless
28805 position "t"
28806 hor_pos "c"
28807 has_inner_box 1
28808 inner_pos "t"
28809 use_parbox 1
28810 use_makebox 0
28811 width "42col%"
28812 special "none"
28813 height "1in"
28814 height_special "totalheight"
28815 thickness "0.4pt"
28816 separation "3pt"
28817 shadowsize "4pt"
28818 framecolor "black"
28819 backgroundcolor "none"
28820 status open
28821
28822 \begin_layout Heart
28823 \noindent
28824
28825 \lang latin
28826 Lo\SpecialChar softhyphen
28827 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28828  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28829  voluptua.
28830  At vero eos et accusam et justo duo dolores et ea rebum.
28831  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28832  sit amet.
28833 \end_layout
28834
28835 \end_inset
28836
28837
28838 \end_layout
28839
28840 \begin_layout Subsection
28841 Custom shapes
28842 \end_layout
28843
28844 \begin_layout Standard
28845 You can define any shape you want.
28846  Doing this manually is a lot of work because every coordinate must be specified.
28847  But there is a way to let the computer calculate the coordinates:
28848 \end_layout
28849
28850 \begin_layout Enumerate
28851 Install the program 
28852 \begin_inset CommandInset href
28853 LatexCommand href
28854 name "Jpgfdraw"
28855 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
28856 literal "false"
28857
28858 \end_inset
28859
28860 .
28861 \end_layout
28862
28863 \begin_layout Enumerate
28864 In 
28865 \family sans
28866 Jpgfdraw
28867 \family default
28868  go to the menu 
28869 \family sans
28870 TeX/LaTeX\SpecialChar menuseparator
28871 Settings\SpecialChar menuseparator
28872 Set Normal Size
28873 \family default
28874  and select the font size you are using in your document.
28875  For example this document uses the size 12
28876 \begin_inset space \thinspace{}
28877 \end_inset
28878
28879 pt.
28880 \end_layout
28881
28882 \begin_layout Enumerate
28883 Draw a shape.
28884 \end_layout
28885
28886 \begin_layout Enumerate
28887 Use the menu 
28888 \family sans
28889 TeX/LaTeX\SpecialChar menuseparator
28890 Shapepar
28891 \family default
28892  to export the shape to coordinates.
28893  In the appearing dialog use either the outline of your shape for the coordinate
28894 s or the path itself.
28895 \begin_inset Foot
28896 status collapsed
28897
28898 \begin_layout Plain Layout
28899 For more information see 
28900 \begin_inset CommandInset href
28901 LatexCommand href
28902 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28903 literal "false"
28904
28905 \end_inset
28906
28907
28908 \end_layout
28909
28910 \end_inset
28911
28912
28913 \end_layout
28914
28915 \begin_layout Standard
28916 The coordinates are written into a \SpecialChar TeX
28917  file.
28918  To use it for your \SpecialChar LyX
28919  document
28920 \end_layout
28921
28922 \begin_layout Enumerate
28923 Place the cursor before the first character of your paragraph (or into a
28924  new empty one).
28925 \end_layout
28926
28927 \begin_layout Enumerate
28928 Open in \SpecialChar LyX
28929  the menu 
28930 \family sans
28931 Insert\SpecialChar menuseparator
28932 File\SpecialChar menuseparator
28933 Child
28934 \begin_inset space ~
28935 \end_inset
28936
28937 Document
28938 \family default
28939 , select the file and use 
28940 \family sans
28941 Input
28942 \family default
28943  as 
28944 \family sans
28945 Include Type.
28946 \end_layout
28947
28948 \begin_layout Standard
28949 \begin_inset VSpace defskip
28950 \end_inset
28951
28952
28953 \end_layout
28954
28955 \begin_layout Standard
28956 \begin_inset Note Greyedout
28957 status open
28958
28959 \begin_layout Plain Layout
28960
28961 \series bold
28962 Note
28963 \series default
28964 : The changed shape only applies to the current paragraph; everything is
28965  reset to normal for the next paragraph.
28966  Therefore the shape definition file must be input into every paragraph
28967  with the desired shape.
28968 \end_layout
28969
28970 \end_inset
28971
28972
28973 \end_layout
28974
28975 \begin_layout Standard
28976 \begin_inset VSpace bigskip
28977 \end_inset
28978
28979
28980 \end_layout
28981
28982 \begin_layout Standard
28983 Here is an example:
28984 \end_layout
28985
28986 \begin_layout Standard
28987 \begin_inset VSpace bigskip
28988 \end_inset
28989
28990
28991 \end_layout
28992
28993 \begin_layout Standard
28994 \begin_inset CommandInset include
28995 LatexCommand input
28996 filename "SpecialParagraphShape.tex"
28997
28998 \end_inset
28999
29000
29001 \lang latin
29002 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
29003  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
29004  voluptua.
29005  At vero eos et accusam et justo duo dolores et ea rebum.
29006  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
29007  sit amet.
29008  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
29009  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
29010  voluptua.
29011 \end_layout
29012
29013 \begin_layout Standard
29014 \begin_inset VSpace bigskip
29015 \end_inset
29016
29017
29018 \end_layout
29019
29020 \begin_layout Standard
29021
29022 \series bold
29023 A tip:
29024 \series default
29025  to draw complexer shapes in 
29026 \family sans
29027 Jpgfdraw
29028 \family default
29029  you can draw the shape in a program of your choice and import the resulting
29030  image to 
29031 \family sans
29032 Jpgfdraw
29033 \family default
29034 .
29035  Then you only need to draw a line or spline along the outline of the image.
29036 \end_layout
29037
29038 \begin_layout Standard
29039 \begin_inset VSpace bigskip
29040 \end_inset
29041
29042
29043 \end_layout
29044
29045 \begin_layout Standard
29046 The module 
29047 \family sans
29048 Custom paragraph shapes
29049 \family default
29050  also provides the two commands 
29051 \family sans
29052 shapepar
29053 \family default
29054  and 
29055 \family sans
29056 Shapepar
29057 \family default
29058  which can be used to define custom shapes coordinate by coordinate.
29059 \begin_inset Foot
29060 status collapsed
29061
29062 \begin_layout Plain Layout
29063 These commands are internally used for all shapes described here.
29064 \end_layout
29065
29066 \end_inset
29067
29068  For information how these styles are used and about further customization
29069  possibilities, have a look at the 
29070 \change_inserted -712698321 1501236534
29071
29072 \lang ngerman
29073
29074 \begin_inset CommandInset href
29075 LatexCommand href
29076 name "documentation"
29077 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
29078 literal "false"
29079
29080 \end_inset
29081
29082
29083 \change_deleted -712698321 1501236537
29084
29085 \lang english
29086 documentation
29087 \change_unchanged
29088  of the package 
29089 \change_deleted -712698321 1501236618
29090 shapepar
29091 \change_inserted -712698321 1501236618
29092
29093 \begin_inset Flex Code
29094 status collapsed
29095
29096 \begin_layout Plain Layout
29097
29098 \change_inserted -712698321 1501236618
29099 shapepar
29100 \change_unchanged
29101
29102 \end_layout
29103
29104 \end_inset
29105
29106
29107 \change_deleted -712698321 1501236618
29108
29109 \begin_inset CommandInset citation
29110 LatexCommand cite
29111 key "shapepar"
29112 literal "true"
29113
29114 \end_inset
29115
29116
29117 \change_unchanged
29118 .
29119 \change_deleted -712698321 1501236666
29120
29121 \end_layout
29122
29123 \begin_layout Bibliography
29124
29125 \change_deleted -712698321 1501236522
29126 \begin_inset CommandInset bibitem
29127 LatexCommand bibitem
29128 key "multicol"
29129 literal "true"
29130
29131 \end_inset
29132
29133 Documentation of the \SpecialChar LaTeX
29134 -package 
29135 \begin_inset CommandInset href
29136 LatexCommand href
29137 name "multicol"
29138 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
29139 literal "false"
29140
29141 \end_inset
29142
29143
29144 \end_layout
29145
29146 \begin_layout Bibliography
29147
29148 \change_deleted -712698321 1501236522
29149 \begin_inset CommandInset bibitem
29150 LatexCommand bibitem
29151 key "shapepar"
29152 literal "true"
29153
29154 \end_inset
29155
29156 Documentation of the \SpecialChar LaTeX
29157 -package 
29158 \begin_inset CommandInset href
29159 LatexCommand href
29160 name "shapepar"
29161 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
29162 literal "false"
29163
29164 \end_inset
29165
29166
29167 \change_unchanged
29168
29169 \end_layout
29170
29171 \end_body
29172 \end_document